/* CostLoop Community — typography, rhythm, and hierarchy over decoration. */
:root {
  --blue: #2363fe;
  --blue-strong: #1a52d9;
  --blue-wash: #edf3ff;
  --ink: #182132;
  --secondary: #475569;
  --muted: #647084;
  --line: #e3e8ef;
  --line-soft: #edf0f4;
  --surface: #ffffff;
  --canvas: #ffffff;
  --radius: 9px;
  --radius-control: 8px;
  --shadow-subtle: 0 2px 6px #18213204;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', 'Segoe UI', sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue-strong); }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
img, svg { vertical-align: middle; max-width: 100%; }
.icon { display: inline-block; flex-shrink: 0; pointer-events: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.35; font-weight: 600; }
h1 { font-size: 34px; letter-spacing: -1.1px; }
h2 { font-size: 19px; letter-spacing: -.4px; }
h3 { font-size: 17px; letter-spacing: -.25px; }
p { color: var(--secondary); }
a, button, input, select, textarea, summary { outline-offset: 4px; touch-action: manipulation; }
:focus-visible { outline: 2px solid #647084; }
[tabindex='-1']:focus:not(:focus-visible) { outline: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; background: white; border: 1px solid var(--line); border-radius: 8px; padding: 12px 20px; z-index: 20; }
.skip:focus { top: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 17px; border: 1px solid #dce3ed; border-radius: var(--radius-control); background: white; color: var(--ink); font-size: 14px; font-weight: 550; line-height: 1.35; white-space: nowrap; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.button:hover { background: #f4f7fc; border-color: #c9d5e8; }
.primary { background: var(--blue); border-color: var(--blue); color: white; box-shadow: 0 1px 2px #18213210; }
.primary:hover { background: var(--blue-strong); border-color: var(--blue-strong); color: white; box-shadow: 0 3px 8px #2363fe1a; }
.primary:active { background: #1540b0; box-shadow: none; }
button:disabled { cursor: default; }
/* A familiar website header, kept separate from the community's application UI. */
.announcement { min-height: 33px; padding: 6px 24px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 14px; background: var(--blue); color: white; font-size: 12px; }
.announcement a { color: white; display: inline-flex; gap: 6px; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.site-header { height: 76px; display: flex; align-items: center; gap: 28px; padding: 0 max(32px, calc((100vw - 1376px)/2)); border-bottom: 1px solid var(--line); background: white; white-space: nowrap; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 22px; font-weight: 650; letter-spacing: -.8px; }
.brand img { border-radius: 6px; }
.desktop-nav { display: flex; align-items: center; gap: 24px; font-size: 13px; margin-left: auto; }
.desktop-nav > a, .explore > summary { min-height: 44px; display: inline-flex; align-items: center; }
.desktop-nav a[aria-current] { color: var(--blue-strong); }
.explore { position: relative; }
.explore > summary { list-style: none; gap: 5px; }
.explore > summary::-webkit-details-marker { display: none; }
.explore > div { position: absolute; top: 44px; right: 0; padding: 8px; display: flex; flex-direction: column; min-width: 248px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 8px 24px #1821320c; z-index: 12; }
.explore > div a { padding: 11px; border-radius: 5px; }
.explore > div a:hover { background: var(--canvas); }
.header-actions { display: flex; gap: 18px; align-items: center; font-size: 13px; }
.header-actions .extension, .header-actions .signin, .header-search { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; }
.header-search { width: 36px; }
.header-actions .button { font-size: 13px; padding-inline: 15px; }
.mobile-nav { display: none; }
.preview-banner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 24px; font-size: 11px; color: #53627a; background: #f1f5fa; border-bottom: 1px solid var(--line); }
.preview-banner strong { font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .9px; }
.preview-dot { width: 5px; height: 5px; background: var(--blue); border-radius: 50%; flex-shrink: 0; }
/* Approved community composition. Existing site header/footer and behaviors are retained. */
.forum-layout { width:100%; max-width:1440px; margin:auto; padding:44px 40px 64px; display:grid; grid-template-columns:218px minmax(0,1fr) 260px; gap:40px; align-items:start; }
main { min-width:0; }
.category-sidebar { position:sticky; top:28px; }
.community-label { display:flex; align-items:center; gap:11px; margin:0 10px 27px; font-size:17px; font-weight:600; letter-spacing:-.3px; }
.community-symbol { display:flex; color:var(--ink); }
.category-disclosure > summary { display:none; }
/* Desktop categories remain visible before enhancement; mobile starts collapsed.
   This avoids collapsing a full category list after the first mobile paint. */
@media (min-width:768px) {
  @supports selector(details::details-content) {
    .category-disclosure::details-content { content-visibility:visible; display:block; }
  }
  @supports not selector(details::details-content) {
    .category-disclosure:not([open]) > summary { display:flex; }
  }
}

.category-nav { display:flex; flex-direction:column; gap:3px; }
.category-nav > a { display:flex; align-items:center; gap:12px; min-height:44px; padding:10px 11px; font-size:13px; line-height:1.5; color:var(--secondary); border-radius:6px; transition:background .15s ease,color .15s ease; }
.category-icon { display:flex; flex:0 0 18px; color:#687384; }
.category-nav > a:hover { background:#f6f7f9; color:var(--ink); }
.category-nav > a.selected { background:#f0f4ff; color:#1a52d9; font-weight:550; }
.category-nav > a.selected .category-icon { color:var(--blue); }
.sidebar-secondary { border-top:1px solid var(--line); padding:18px 10px 0; margin-top:23px; display:flex; flex-direction:column; gap:3px; }
.sidebar-secondary a { display:flex; align-items:center; gap:12px; min-height:40px; font-size:12px; color:#586273; }
.sidebar-secondary .icon { color:#727b89; }
.sidebar-bottom { margin:25px 10px 0; padding-top:23px; border-top:1px solid var(--line); }
.sidebar-bottom h2 { font-size:14px; letter-spacing:-.1px; }
.sidebar-bottom p { font-size:12px; line-height:1.8; margin-top:8px; color:#647084; }
.sidebar-bottom a { display:inline-flex; align-items:center; gap:8px; min-height:44px; margin-top:8px; font-size:12px; font-weight:550; color:var(--blue-strong); }
.page-heading { display:block; margin-bottom:25px; }
.eyebrow { display:block; color:#667080; font-size:10px; line-height:1.5; font-weight:600; letter-spacing:1.4px; margin-bottom:10px; }
.page-heading h1 { font-size:36px; line-height:1.18; font-weight:600; letter-spacing:-1.25px; }
.page-heading p { max-width:580px; margin-top:13px; font-size:14px; line-height:1.8; color:#5e6878; }
.create-discussion { margin-top:20px; min-height:40px; padding:9px 15px; font-size:12px; gap:7px; border-radius:6px; }
.create-discussion > span { font-size:18px; line-height:1; font-weight:400; }
.forum-search { display:grid; grid-template-columns:minmax(0,1fr) 142px auto; gap:10px; position:relative; }
.search-field { display:flex; align-items:center; gap:10px; min-width:0; height:46px; padding:0 13px; border:1px solid #dfe3e9; border-radius:7px; background:white; box-shadow:0 1px 2px #18213203; }
.search-field > .icon { color:#7a8491; }
.forum-search input { width:100%; min-width:0; border:0; height:42px; background:transparent; color:var(--ink); font-size:13px; outline-offset:0; }
.forum-search input::placeholder { color:#697382; }
.search-field:focus-within { border-color:#94a0b1; }
.search-filter { min-width:0; }
.forum-search select { width:100%; height:46px; padding:0 10px; border:1px solid #dfe3e9; border-radius:7px; background:white; color:#525d6d; font-size:12px; }
.forum-search button { min-height:46px; padding:0 12px; border:1px solid #dfe3e9; border-radius:7px; background:#fafbfc; font-size:12px; color:#475366; font-weight:500; }
.forum-search button:hover { background:#f0f2f5; }
.search-loading { display:none; position:absolute; top:100%; right:0; background:white; border:1px solid var(--line); padding:6px 10px; font-size:12px; z-index:2; }
.is-loading .search-loading { display:block; }
.sort-tabs { display:flex; align-items:center; gap:28px; margin-top:17px; border-bottom:1px solid var(--line); }
.sort-tabs a { position:relative; display:inline-flex; justify-content:center; align-items:center; min-height:47px; padding:0 1px; font-size:13px; font-weight:500; color:#646e7e; white-space:nowrap; }
.sort-tabs a:hover { color:var(--ink); }
.sort-tabs a.active { color:var(--blue-strong); }
.sort-tabs a.active::after { content:''; position:absolute; bottom:-1px; left:0; right:0; height:2px; background:var(--blue); border-radius:2px; }
.section-label { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.section-label h2 { font-size:13px; font-weight:600; letter-spacing:-.1px; }
.section-label > span { color:#647084; font-size:11px; }
.trending { margin-top:24px; padding:17px 20px 0; border:1px solid #e1e5eb; border-radius:9px; background:#fff; }
.trending > .section-label { margin-bottom:0; }
.trending > .section-label h2 { font-size:12px; color:#536072; }
.topic-row { display:flex; align-items:flex-start; min-width:0; gap:16px; padding:22px 0; background:white; border:0; border-bottom:1px solid var(--line); transition:background .15s ease; }
.topic-row:hover { background:#fcfcfd; }
.topic-summary { flex:1; min-width:0; }
.topic-kicker { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin-bottom:6px; font-size:11px; line-height:1.5; }
.category-tag { color:#596779; font-weight:500; }
.category-tag:hover { color:var(--blue-strong); }
.badge { display:inline-flex; align-items:center; gap:4px; border-radius:4px; padding:2px 5px; background:#f0f4fc; color:#365b9c; font-size:10px; font-weight:500; line-height:1.4; }
.badge.neutral { color:#596575; background:#f3f4f6; }
.topic-row h3 { font-size:16px; line-height:1.5; font-weight:550; letter-spacing:-.25px; overflow-wrap:anywhere; }
.excerpt { font-size:13px; color:#647084; line-height:1.7; margin-top:7px; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.topic-meta { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:11px; color:#647084; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.author-meta { display:inline-flex; align-items:center; gap:7px; min-width:0; }
.avatar { display:inline-flex; align-items:center; justify-content:center; width:23px; height:23px; flex-shrink:0; border:1px solid #e2e5ea; background:#f2f4f7; color:#586579; border-radius:50%; font-size:8px; font-weight:600; line-height:1; }
.author-name { max-width:160px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#596575; }
.meta-divider { color:#798391; }
.reply-count { display:inline-flex; align-items:center; gap:5px; min-height:28px; margin-left:auto; white-space:nowrap; color:#5b687b; font-size:12px; }
.activity-date { margin-top:5px; font-size:11px; color:#647084; }
.score-box { width:38px; min-height:62px; align-self:flex-start; flex-shrink:0; display:flex; flex-direction:column; align-items:center; gap:3px; padding:7px 3px; border:1px solid #e1e5eb; border-radius:6px; color:#647084; background:white; line-height:1.1; }
.score-box:hover { border-color:#b8c9ed; color:var(--blue-strong); }
.score-box strong { font-size:13px; font-weight:600; }
.score-label { font-size:9px; color:#647084; }
.feed { margin-top:26px; }
.feed > .section-label { padding-bottom:13px; margin:0; border-bottom:1px solid var(--line); }
.trending .topic-row { padding:16px 0 18px; border:0; gap:14px; }
.compact h3 { font-size:17px; line-height:1.5; }
.compact .activity-date { display:none; }
.more-trending { margin:0 -20px; border-top:1px solid var(--line-soft); }
.more-trending > summary { display:flex; align-items:center; justify-content:center; gap:7px; list-style:none; min-height:38px; font-size:11px; color:#5f6d80; border-radius:0 0 9px 9px; }
.more-trending > summary::-webkit-details-marker { display:none; }
.more-trending > summary:hover { background:#f8f9fb; }
.more-trending[open] > summary { border-bottom:1px solid var(--line); }
.more-trending[open] > summary .icon { transform:rotate(180deg); }
.more-trending > .topic-row { margin:0 20px; border-bottom:1px solid var(--line); }
.more-trending > .topic-row:last-child { border:0; }
.resource-sidebar { display:flex; flex-direction:column; gap:20px; }
.side-panel, .product-panel { padding:23px; border:1px solid var(--line); border-radius:9px; background:white; box-shadow:0 1px 3px #18213203; }
.side-panel h2 { font-size:18px; font-weight:600; line-height:1.4; letter-spacing:-.4px; margin-bottom:12px; }
.side-panel p { font-size:13px; line-height:1.8; color:#647084; }
.community-points { list-style:none; padding:0; margin:18px 0 0; display:flex; flex-direction:column; gap:10px; }
.community-points li { position:relative; padding-left:18px; font-size:12px; color:#596575; line-height:1.6; }
.community-points li::before { content:'✓'; position:absolute; left:0; color:#677282; font-size:12px; }
.resources { padding-bottom:14px; }
.resources h2 { font-size:14px; letter-spacing:-.15px; margin-bottom:9px; }
.resources > a { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:46px; padding:10px 0; font-size:12px; line-height:1.5; color:#596575; border-bottom:1px solid var(--line-soft); }
.resources > a:last-child { border:0; }
.resources > a:hover { color:var(--blue-strong); }
.resources > a > .icon { color:#7a8491; }
.product-panel { background:#fafbfc; }
.product-wordmark { display:flex; align-items:center; gap:8px; font-size:15px; font-weight:600; letter-spacing:-.3px; }
.product-wordmark img { border-radius:5px; }
.product-panel h2 { font-size:23px; font-weight:600; line-height:1.3; letter-spacing:-.7px; margin:21px 0 12px; }
.product-panel p { font-size:13px; color:#647084; line-height:1.8; }
.product-panel .button { margin-top:20px; font-size:12px; width:100%; min-height:40px; border-radius:6px; }
.pagination { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:25px; font-size:12px; color:#647084; }
.first-page { display:inline-flex; align-items:center; gap:8px; min-height:44px; }
.pagination .button { font-size:12px; min-width:115px; }
.empty-state { text-align:center; padding:40px 24px; border:1px solid var(--line); border-radius:9px; background:white; }
.empty-state > .icon { color:#647084; margin-bottom:16px; }
.empty-state h2 { font-size:20px; }
.empty-state p { font-size:14px; line-height:1.8; max-width:420px; margin:12px auto; }
.empty-state a { display:inline-flex; align-items:center; min-height:44px; color:var(--blue-strong); font-size:13px; }
.community-info { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:40px; max-width:1360px; margin:0 auto 36px; padding:27px 0; border-top:1px solid var(--line); font-size:13px; }
.community-info > div { position:relative; padding-left:38px; }
.info-icon { position:absolute; left:0; top:1px; color:#647084; }
.community-info h2 { font-size:14px; margin-bottom:8px; }
.community-info p { font-size:12px; color:#647084; line-height:1.8; max-width:780px; }
.community-info summary { display:flex; justify-content:space-between; align-items:center; min-height:44px; font-size:13px; color:#526077; list-style:none; }
.community-info summary::-webkit-details-marker { display:none; }
.community-info details p { margin-top:8px; }
.site-footer { background: white; border-top: 1px solid var(--line); padding: 29px max(32px,calc((100vw - 1376px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-brand .brand { font-size: 18px; }
.footer-brand p { font-size: 12px; color: #647084; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; color: #536178; }
.site-footer nav a { min-height: 36px; display: inline-flex; align-items: center; }
/* Discussion reading and search use the same editorial hierarchy. */
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #66768b; font-size: 12px; margin: -4px 0 17px; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 34px; }
.discussion { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-subtle); }
.discussion h1 { font-size: 29px; letter-spacing: -.85px; line-height: 1.4; margin: 14px 0 16px; overflow-wrap: anywhere; }
.discussion .topic-kicker { margin-bottom: 14px; }
.discussion .topic-meta { margin-bottom: 29px; }
.markdown { font-size: 15px; line-height: 1.9; color: #3a475b; overflow-wrap: anywhere; min-width: 0; }
.markdown p { color: inherit; margin: 0 0 20px; }
.markdown h2 { font-size: 21px; margin: 28px 0 14px; }
.markdown h3 { font-size: 18px; margin: 23px 0 12px; }
.markdown ul, .markdown ol { margin: 14px 0 23px; padding-left: 24px; }
.markdown li { margin: 6px 0; }
.markdown a { color: #1c50bd; text-decoration: underline; text-underline-offset: 3px; }
.markdown blockquote { border-left: 2px solid #a8bee5; background: #f5f8fd; margin: 22px 0; padding: 14px 18px; }
.markdown blockquote p { margin: 0; }
.markdown code { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: .87em; background: #eff3f8; padding: 3px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.markdown pre { max-width: 100%; overflow: auto; padding: 18px; border: 1px solid var(--line-soft); border-radius: 7px; background: #f3f6fa; }
.markdown pre code { padding: 0; background: none; white-space: pre-wrap; word-break: break-word; }
.markdown hr { border: 0; border-top: 1px solid var(--line); margin: 25px 0; }
.supporting-link { color: #1e53c3; font-size: 13px; text-decoration: underline; }
.discussion-stats { clear: both; margin-top: 26px; padding-top: 19px; border-top: 1px solid var(--line); font-size: 12px; color: #66758b; }
.participation-actions { display: flex; flex-wrap: wrap; gap: 10px 19px; margin-top: 8px; align-items: center; }
.participation-actions a, .participation-actions button { display: inline-flex; align-items: center; min-height: 40px; background: none; padding: 0; border: 0; font-size: 13px; font-family: inherit; color: #526783; }
.participation-actions [data-copy-url] { margin-left: auto; }
.replies { margin-top: 30px; }
.replies > .section-label { padding-bottom: 6px; }
.reply { padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: white; margin-bottom: 12px; min-width: 0; scroll-margin-top: 24px; }
.reply:target { border-color: #84a7ff; box-shadow: 0 0 0 3px #2363fe12; }
.reply .topic-meta { margin: 0 0 16px; font-size: 12px; }
.reply .topic-meta > span:not(.avatar) { max-width: 280px; }
.reply .markdown { font-size: 14px; }
.depth-1 { margin-left: 14px; border-left: 2px solid #cbd9f0; }
.depth-2 { margin-left: 28px; border-left: 2px solid #cbd9f0; }
.depth-3 { margin-left: 42px; border-left: 2px solid #cbd9f0; }
.reply-permalink { margin-left: auto; color: #2756aa; min-height: 30px; display: inline-flex; align-items: center; }
.parent-link { display: inline-flex; min-height: 30px; align-items: center; margin-bottom: 13px; font-size: 12px; color: #2b5bb1; }
.reply-footer { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; color: #60718a; font-size: 12px; }
.reply-footer a { min-height: 38px; display: inline-flex; align-items: center; }
.related { margin-top: 27px; border-top: 1px solid var(--line); padding-top: 25px; }
.related h2 { font-size: 16px; margin-bottom: 13px; }
.related a { display: block; padding: 12px 0; font-size: 14px; color: #2756aa; }
.search-result { padding: 25px; border: 1px solid var(--line); border-bottom: 0; background: white; overflow-wrap: anywhere; }
.search-result:nth-child(2) { border-radius: var(--radius) var(--radius) 0 0; }
.search-result:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.search-result h2 { font-size: 18px; margin: 13px 0 11px; }
.search-result p { font-size: 14px; margin-bottom: 12px; line-height: 1.8; }
.search-result time { color: #66758b; font-size: 12px; }
.error-heading { font-size: 28px; margin-bottom: 22px; }
.share-help { font-size: 12px; margin-top: 15px; }

/* Supporting content remains available below the feed on tablet and mobile. */
@media(max-width:1250px) and (min-width:1100px){.forum-layout{grid-template-columns:190px minmax(0,1fr) 230px;gap:28px;padding-inline:28px}.category-nav>a{font-size:12px}.side-panel,.product-panel{padding:19px}.desktop-nav{gap:17px}.header-actions{gap:12px}.header-actions .extension{display:none}}
@media(max-width:1099px){.forum-layout{grid-template-columns:195px minmax(0,1fr);gap:30px;padding-inline:28px}.resource-sidebar{grid-column:2;display:grid;grid-template-columns:1fr;gap:18px;margin-top:8px}.community-info{margin-inline:28px}.site-header{gap:20px}.desktop-nav{gap:16px}.header-actions .extension{display:none}.page-heading h1{font-size:33px}.site-footer{flex-wrap:wrap}}
@media(max-width:1000px){
  .desktop-nav, .header-actions .signin, .header-actions .signup { display: none; }
  .header-actions { margin-left: auto; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav > summary { display: inline-flex; align-items: center; gap: 7px; list-style: none; min-height: 44px; font-size: 13px; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav > nav { position: absolute; right: 0; top: 52px; display: flex; flex-direction: column; min-width: 240px; background: white; border: 1px solid var(--line); border-radius: 10px; padding: 10px; box-shadow: 0 8px 24px #1821320c; z-index: 12; white-space: normal; }
  .mobile-nav nav > a { min-height: 44px; padding: 10px 12px; font-size: 14px; }
  .mobile-nav .explore { padding: 0 12px; }
  .mobile-nav .explore > div { position: static; box-shadow: none; min-width: 0; }
}
@media(max-width:767px){
  .site-header { height: 66px; padding: 0 20px; }
  .brand { font-size: 21px; }
  .announcement { padding: 7px 16px; gap: 3px 9px; font-size: 11px; }
  .announcement > a:last-child { display: none; }
  .preview-banner { justify-content: flex-start; align-items: flex-start; gap: 8px; padding: 9px 20px; font-size: 10px; }
  .preview-banner strong { white-space: nowrap; font-size: 9px; }
  .preview-dot { margin-top: 5px; }

.forum-layout{display:block;padding:20px 20px 40px}
.category-sidebar{position:static;margin:0 0 26px}
.community-label,.sidebar-secondary,.sidebar-bottom{display:none}
.category-disclosure{border:1px solid var(--line);border-radius:7px;background:white}
.category-disclosure>summary{display:flex;align-items:center;gap:10px;list-style:none;min-height:46px;padding:10px 13px;font-size:13px;color:#475569}
.category-disclosure>summary::-webkit-details-marker{display:none}
.category-disclosure>summary>.icon:last-child{margin-left:auto}
.category-disclosure[open]>summary{border-bottom:1px solid var(--line)}
.category-disclosure[open]>summary>.icon:last-child{transform:rotate(180deg)}
.category-nav{padding:8px;gap:2px;overflow:visible}
.category-nav>a{min-height:44px;font-size:13px;gap:12px}
.page-heading{margin-bottom:23px}
.page-heading h1{font-size:30px;letter-spacing:-1px;line-height:1.25}
.eyebrow{font-size:10px;margin-bottom:9px}
.page-heading p{font-size:14px;line-height:1.8;margin-top:12px}
.create-discussion{min-height:44px;margin-top:18px;font-size:13px}
.forum-search{grid-template-columns:minmax(0,1fr) 76px;gap:9px}
.search-field{grid-column:1/-1;height:46px}
.forum-search input{font-size:13px}
.forum-search select{font-size:12px}
.sort-tabs{gap:0;justify-content:space-between;margin-top:14px;overflow:visible}
.sort-tabs a{font-size:12px;min-height:47px;padding-inline:3px}
.trending{padding:16px 16px 0;margin-top:20px}
.trending .section-label h2{font-size:12px}
.section-label>span{font-size:10px}
.compact h3{font-size:16px}
.topic-row{gap:12px;padding:21px 0}
.topic-row h3{font-size:16px;line-height:1.5}
.topic-meta{font-size:12px;gap:5px 7px}
.author-name{max-width:135px}
.reply-count{margin-left:0;min-height:28px}
.topic-kicker{font-size:11px}
.score-box{width:34px;min-height:60px}
.excerpt{-webkit-line-clamp:2;font-size:12px}
.more-trending{margin-inline:-16px}
.more-trending>summary{min-height:44px;font-size:12px}
.more-trending>.topic-row{margin-inline:16px}
.feed{margin-top:25px}
.feed>.section-label{padding-bottom:12px}
.activity-date{font-size:11px}
.resource-sidebar{display:flex;gap:18px;margin-top:32px}
.side-panel,.product-panel{padding:23px}
.side-panel h2{font-size:20px}
.side-panel p,.product-panel p{font-size:14px}
.resources h2{font-size:15px}
.resources>a,.community-points li{font-size:13px}
.product-panel .button{width:auto;min-height:44px;padding-inline:18px;font-size:13px}
.community-info{display:block;margin:0 20px 25px;padding-top:24px}
.community-info details{margin:18px 0 0 38px}
  .site-footer { padding: 26px 20px; display: block; }
  .footer-brand { display: block; }
  .footer-brand p { margin-top: 10px; font-size: 12px; }
  .site-footer nav { margin-top: 19px; gap: 5px 22px; font-size: 12px; }
  .site-footer nav a { min-height: 44px; }
  .breadcrumbs { font-size: 11px; gap: 8px; }
  .discussion { padding: 23px 18px; border-radius: 10px; }
  .discussion h1 { font-size: 25px; line-height: 1.4; letter-spacing: -.65px; }
  .discussion .topic-meta { font-size: 11px; gap: 7px; margin-bottom: 25px; }
  .markdown { font-size: 14px; line-height: 1.85; }
  .markdown h2 { font-size: 19px; }
  .markdown h3 { font-size: 17px; }
  .discussion-stats { font-size: 11px; }
  .participation-actions { gap: 6px 15px; }
  .participation-actions a, .participation-actions button { font-size: 12px; min-height: 44px; }
  .reply { padding: 20px 15px; }
  .reply .topic-meta { font-size: 11px; }
  .reply .topic-meta > span:not(.avatar) { max-width: 150px; }
  .reply .markdown { font-size: 14px; }
  .depth-1 { margin-left: 7px; }
  .depth-2, .depth-3 { margin-left: 14px; }
  .parent-link { font-size: 11px; min-height: 36px; }
  .reply-footer { gap: 12px; font-size: 11px; }
  .reply-footer a { min-height: 44px; }
  .search-result { padding: 22px 17px; }
  .search-result h2 { font-size: 17px; }
  .search-result p { font-size: 13px; }
}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Participation uses the same typography, surfaces and restrained blue. */
.member-bar{max-width:1296px;margin:0 auto;display:flex;align-items:center;gap:20px;padding:12px 24px;font-size:12px;border-bottom:1px solid var(--line);flex-wrap:wrap}.member-bar>span{font-weight:600;margin-right:auto}.member-bar>a,.member-bar>button{min-height:36px;display:inline-flex;align-items:center;color:#174cc9}.member-bar button{background:none;border:0;font:inherit;cursor:pointer}.member-intro{margin:12px 0 24px}.local-login{max-width:580px;margin:15px auto}.local-login h1{margin:15px 0}.local-login p{margin:15px 0;font-size:13px}.local-login form,.composer,.report-panel form{display:flex;flex-direction:column;gap:19px}.local-login label,.composer>label,.report-panel label,.editor-link label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:550;color:var(--ink)}.local-login select,.composer input,.composer select,.report-panel select,.report-panel textarea,.editor-link input{width:100%;background:white;border:1px solid #d6deea;border-radius:7px;padding:11px 12px;min-height:44px;color:var(--ink);font:inherit}.field-hint{font-size:11px;font-weight:400;color:#586579}.editor-frame{border:1px solid #d6deea;border-radius:9px;overflow:hidden;background:#fff}.editor-toolbar{display:flex;gap:4px;padding:8px;background:#f3f6fa;border-bottom:1px solid var(--line);flex-wrap:wrap}.editor-toolbar button{min-width:34px;min-height:38px;border:0;background:none;border-radius:5px;font-size:12px;font-weight:600}.editor-toolbar button:hover{background:#e2eafa}.editor-frame textarea{width:100%;border:0;resize:vertical;padding:16px;font:inherit;line-height:1.8;min-height:240px;display:block;background:white}.editor-count{padding:8px 16px;border-top:1px solid var(--line);font-size:11px;color:#586579}.editor-link{padding:12px;border-bottom:1px solid var(--line)}.editor-preview{background:white;border:1px solid var(--line);padding:20px;border-radius:8px}.composer-actions{display:flex;gap:10px;flex-wrap:wrap}.composer-actions button{font-family:inherit;cursor:pointer}.review-notice{background:#edf3ff;color:#405b86;font-size:12px;padding:14px;border-radius:7px}.action-status{font-size:12px;padding:10px 0;flex-basis:100%;overflow-wrap:anywhere}.is-error{color:#a4262c}.save-state{font-size:12px}.submission-success{padding:24px;background:#edf3ff;border-radius:10px}.submission-success h2{font-size:20px}.submission-success p{margin:12px 0 18px}.vote-controls{display:flex;flex-direction:column;align-items:center;border:1px solid #dfe5ee;border-radius:7px;min-width:40px;max-width:46px;background:white;flex-shrink:0;align-self:flex-start}.vote-controls button{min-height:32px;min-width:36px;border:0;background:none;font-size:19px;line-height:1;cursor:pointer;color:#4a607f;border-radius:5px}.vote-controls button[aria-pressed=true]{background:#e6efff;color:#1549c5}.vote-controls button:disabled{opacity:.55;cursor:default}.vote-controls output{font-size:12px;font-weight:600}.discussion>.vote-controls{float:right;margin:0 0 12px 18px}.reply>.vote-controls{float:right;margin:0 0 10px 12px}.topic-row{flex-wrap:wrap}.topic-row .topic-summary{flex-basis:calc(100% - 60px)}.report-panel{clear:both;background:#f6f8fc;border:1px solid var(--line);padding:18px;margin-top:16px;border-radius:8px}.report-panel h2{font-size:16px;margin-bottom:8px}.report-panel p{font-size:12px;margin-bottom:16px}.report-panel button,.reply-footer button{font:inherit;cursor:pointer}.reply-footer button{border:0;background:none;color:#405574;min-height:36px}.reply-context{background:white;border-left:3px solid #bed0f5;margin:18px 0;padding:15px;max-height:220px;overflow:auto}.activity-section{margin-top:28px}.activity-section>h2{font-size:18px;margin-bottom:14px}.activity-item,.notification-item{background:white;border:1px solid var(--line);border-radius:9px;padding:18px;margin-bottom:12px;overflow-wrap:anywhere}.activity-item h3,.notification-item h2{font-size:15px;margin:10px 0}.activity-item p,.notification-item p{font-size:12px;margin:10px 0}.activity-item a,.notification-item a{display:inline-flex;min-height:44px;align-items:center;margin-right:18px;color:#174cc9;font-size:12px}.notification-item[data-read=false]{border-left:3px solid var(--blue)}.notification-item button{margin-left:auto;font-family:inherit}.has-new-activity:after{content:'';height:6px;width:6px;flex-shrink:0;border-radius:50%;background:#2363fe;margin-left:auto}.reply-footer{flex-wrap:wrap}.member-bar .action-status{margin:0;padding:0}.editor-frame:focus-within{border-color:var(--blue)}.editor-frame textarea:focus-visible{outline-offset:-4px}.editor-toolbar button:focus-visible{outline-offset:-2px}
@media(max-width:767px){.member-bar{padding:10px 16px;gap:8px 17px}.member-bar>span{width:100%}.member-bar a,.member-bar button{min-height:44px}.composer{gap:15px}.editor-toolbar button{min-width:36px;min-height:44px}.editor-frame textarea{padding:12px}.composer-actions .button{flex:1;min-height:44px}.vote-controls{min-width:35px}.vote-controls button{min-width:34px;min-height:40px}.reply>.vote-controls{margin-left:8px}.reply .vote-controls{float:none;flex-direction:row;max-width:none;width:max-content;margin:0 0 12px}.reply-footer button{min-height:44px}.local-login h1{font-size:25px}}

.conflict-review pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:260px;overflow:auto;background:white;padding:12px;border:1px solid var(--line)}
/* Participation components inherit the same visual system. Interaction code is unchanged. */
.member-bar { max-width: 1376px; padding: 12px 0; margin-inline: auto; font-size: 13px; }
.member-bar > span { font-weight: 550; }
.member-bar > a, .member-bar > button { font-size: 13px; color: #2756b0; }
.member-intro { font-size: 14px; line-height: 1.8; margin-bottom: 26px; }
.composer { gap: 21px; }
.composer label, .local-login label, .report-panel label { font-size: 14px; font-weight: 550; }
.composer input, .composer select, .local-login select, .report-panel select, .report-panel textarea { font-size: 14px; min-height: 47px; border-radius: 8px; border-color: #dae2ed; }
.field-hint { font-size: 12px; font-weight: 400; color: #647084; }
.editor-frame { border-color: #dae2ed; border-radius: 10px; box-shadow: var(--shadow-subtle); }
.editor-toolbar { background: #f6f8fc; padding: 9px; gap: 5px; }
.editor-toolbar button { min-height: 36px; min-width: 36px; font-size: 13px; font-weight: 550; }
.editor-frame textarea { font-size: 15px; line-height: 1.9; padding: 20px; }
.editor-count, .save-state { font-size: 12px; }
.composer-actions { padding-top: 2px; gap: 10px; }
.review-notice { font-size: 13px; line-height: 1.7; background: #eff4fd; color: #4a6186; }
.action-status { font-size: 12px; }
.vote-controls { min-width: 42px; width: 42px; max-width: none; padding: 3px; border-radius: 8px; border-color: #dfe7f2; background: #fbfcff; }
.vote-controls button { display: grid; place-items: center; font-size: 0; min-height: 30px; min-width: 34px; width: 34px; padding: 0; color: #546c8e; transition: background .15s ease,color .15s ease; }
.vote-controls button::before { content: ''; width: 7px; height: 7px; border-left: 1.7px solid currentColor; border-top: 1.7px solid currentColor; transform: translateY(2px) rotate(45deg); }
.vote-controls button[data-direction='-1']::before { transform: translateY(-2px) rotate(225deg); }
.vote-controls button:hover:not(:disabled) { background: #eaf1ff; color: var(--blue); }
.vote-controls button[aria-pressed='true'] { color: #154cc7; background: #e5eeff; }
.vote-controls output { font-size: 14px; font-weight: 600; line-height: 1.5; }
.compact .vote-controls { width: 36px; min-width: 36px; padding: 2px; }
.compact .vote-controls button { min-width: 30px; width: 30px; min-height: 26px; }
.compact .vote-controls output { font-size: 13px; }
.topic-row { flex-wrap: nowrap; }
.topic-row .topic-summary { flex-basis: auto; }
.topic-row > .action-status { flex-basis: auto; }
.topic-row:has(> .action-status) { flex-wrap: wrap; }
.topic-row:has(> .action-status) > .topic-summary { flex-basis: calc(100% - 70px); }
.activity-item, .notification-item { padding: 23px; border-radius: 10px; box-shadow: var(--shadow-subtle); }
.activity-item h3, .notification-item h2 { font-size: 17px; }
.activity-item p, .notification-item p { font-size: 13px; line-height: 1.75; }
.activity-item a, .notification-item a { font-size: 13px; }
.local-login { padding: 30px; background: white; border: 1px solid var(--line); border-radius: var(--radius); max-width: 620px; margin: 0 auto; }
.local-login h1 { font-size: 30px; line-height: 1.35; letter-spacing: -.85px; }
.local-login p { font-size: 14px; line-height: 1.8; }
.report-panel { background: #f7f9fc; padding: 22px; border-radius: 9px; }
.report-panel p { font-size: 13px; line-height: 1.8; }
.reply-footer button { font-size: 12px; }
@media(max-width:1439px) { .member-bar { margin-inline: 32px; } }
@media(max-width:767px) {
  .member-bar { margin-inline: 18px; padding: 11px 0; gap: 5px 19px; font-size: 12px; }
  .member-bar > a, .member-bar > button { font-size: 12px; }
  .local-login { padding: 24px 20px; }
  .local-login h1 { font-size: 26px; }
  .local-login p { font-size: 13px; }
  .editor-toolbar button { min-height: 44px; min-width: 35px; }
  .editor-frame textarea { padding: 16px; font-size: 14px; }
  .vote-controls { min-width: 36px; width: 36px; }
  .vote-controls button { min-width: 30px; width: 30px; min-height: 34px; }
  .vote-controls output { font-size: 13px; }
  .reply > .vote-controls { display: inline-flex; width: auto; min-width: 108px; flex-direction: row; padding: 2px; float: none; margin-bottom: 15px; }
  .reply > .vote-controls button { min-height: 40px; min-width: 36px; }
  .reply > .vote-controls output { min-width: 24px; text-align: center; }
  .activity-item, .notification-item { padding: 20px 17px; }
  .activity-item h3, .notification-item h2 { font-size: 16px; }
}


/* Neutral participation surfaces keep feedback legible without bluewashed panels. */
.review-notice,.submission-success{background:#f6f7f9;color:#526077;border:1px solid var(--line)}
.editor-toolbar{background:#fafbfc}
.vote-controls{background:#fff;border-color:#e1e5eb;border-radius:6px}
.vote-controls button{min-height:30px}
.compact .vote-controls{width:38px;min-width:38px}
.compact .vote-controls button{width:30px;min-height:30px}
.member-bar{max-width:1360px}
.editor-preview:empty::before{content:'Add a message to preview its formatting.';font-size:14px;color:#647084}
.composer-actions .primary{min-width:158px}
@media(max-width:767px){.member-bar{margin-inline:20px}.vote-controls button,.compact .vote-controls button{min-height:36px}.vote-controls{width:36px;min-width:36px}.compact .vote-controls{width:36px;min-width:36px}}

/* Approved-reference correction, measured at 1536 × 1024.
   Site shell, data, permissions and interaction contracts remain unchanged. */
.forum-layout { max-width:1536px; grid-template-columns:250px minmax(0,1fr) 322px; gap:34px; padding:0 34px 56px 40px; }
.category-sidebar { padding:43px 17px 0 0; border-right:1px solid var(--line); align-self:stretch; }
.community-label { color:var(--ink); font-size:18px; font-weight:650; gap:12px; margin:0 10px 20px; }
.category-nav { gap:2px; }
.category-nav > a { font-size:14px; color:#283343; gap:14px; min-height:44px; padding:10px 0 10px 14px; border-radius:9px; }
.category-nav > a.selected { color:var(--ink); font-weight:600; background:#edf2ff; }
.category-nav > a.selected .category-icon { color:var(--blue); }
.category-icon,.category-nav .icon { width:19px; flex-basis:19px; }
.sidebar-secondary { padding-top:20px; margin-top:29px; margin-inline:0 13px; }
.sidebar-secondary a { color:#283343; font-size:14px; gap:14px; min-height:44px; }
.sidebar-secondary .icon { width:19px; height:19px; }
.sidebar-bottom { margin:34px 0 0; padding:22px 20px; border:1px solid var(--line); border-radius:13px; }
.sidebar-bottom h2 { font-size:20px; font-weight:650; letter-spacing:-.45px; }
.sidebar-bottom p { font-size:14px; line-height:1.6; margin-top:9px; }
.sidebar-bottom a { margin-top:18px; font-size:14px; color:var(--ink); min-height:43px; border:1px solid var(--line); border-radius:9px; padding:9px 14px; background:white; gap:12px; }
#main-content { padding-top:43px; }
.page-heading { margin-bottom:26px; }
.eyebrow { letter-spacing:2.6px; font-size:11px; font-weight:600; margin-bottom:13px; }
.page-heading h1 { font-size:40px; letter-spacing:-1.3px; line-height:1.2; font-weight:700; color:#101827; }
.page-heading p { font-size:18px; line-height:1.5; max-width:620px; margin-top:10px; color:#4e596b; }
.create-discussion { font-size:16px; font-weight:600; min-height:48px; margin-top:19px; padding:11px 24px; border-radius:11px; gap:12px; }
.create-discussion > span { font-size:24px; }
.forum-search { grid-template-columns:minmax(0,1fr) 188px; gap:12px; }
.search-field { grid-column:1; grid-row:1; height:48px; border-radius:11px; padding:0 17px; gap:13px; }
.search-field > .icon { width:22px; height:22px; color:#334155; }
.forum-search input { height:44px; font-size:15px; padding-right:70px; }
.forum-search select { height:48px; font-size:14px; padding:0 14px; border-radius:11px; }
.search-filter { grid-column:2; grid-row:1; }
.forum-search button { grid-column:1; grid-row:1; justify-self:end; align-self:center; min-height:36px; margin:5px; padding:0 11px; border:0; border-left:1px solid var(--line); border-radius:0 7px 7px 0; background:white; font-size:12px; z-index:1; }
.sort-tabs { gap:22px; margin-top:18px; }
.sort-tabs a { display:inline-flex; align-items:center; gap:9px; padding:0 16px; font-size:16px; min-height:51px; color:#263244; }
.sort-tabs a:first-child { padding-left:16px; }
.sort-tabs a.active { font-weight:600; color:var(--blue-strong); }
.sort-tabs a.active::after { left:0; right:0; height:2px; }
.sort-tabs .icon { width:20px; height:20px; }
.sort-tabs a.active .icon { color:var(--blue); }
.sort-tabs a:first-child.active .icon { fill:currentColor; }
.trending { position:relative; border:1px solid #d7e2f7; border-radius:13px; margin-top:20px; padding:19px 22px 20px; background:#fcfdff; }
.trending > .section-label { margin-bottom:13px; padding-left:70px; min-height:22px; }
.trending > .section-label h2 { font-size:14px; color:#174dc5; font-weight:650; }
.trending > .section-label h2 > .icon { position:absolute; left:23px; top:20px; color:var(--blue); }
.trending > .section-label > span { position:absolute; width:1px; height:1px; clip:rect(0,0,0,0); overflow:hidden; }
.trending > .topic-row { padding:0; gap:22px; background:transparent; }
.trending > .topic-row .topic-kicker { position:absolute; top:18px; right:22px; max-width:38%; }
.trending > .topic-row .topic-title-line h3 { font-size:18px; font-weight:650; line-height:1.4; }
.trending > .topic-row .excerpt { font-size:14px; line-height:1.5; -webkit-line-clamp:2; margin-top:6px; }
.trending > .topic-row .topic-meta { margin-top:11px; }
.topic-row { padding:22px 4px; gap:18px; }
.topic-title-line { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.topic-title-line h3 { flex:1; min-width:0; font-size:18px; font-weight:650; letter-spacing:-.35px; line-height:1.4; color:#111827; }
.topic-title-line .topic-kicker { flex-shrink:0; max-width:42%; justify-content:flex-end; margin:0; gap:5px; }
.category-tag { display:inline-block; border-radius:16px; background:#eef2fa; padding:5px 10px; font-size:12px; line-height:1.45; color:#28384e; font-weight:400; }
.topic-meta { margin-top:12px; font-size:14px; gap:8px; color:#536174; min-height:30px; }
.author-name { color:#475469; max-width:170px; }
.avatar { width:30px; height:30px; font-size:11px; border:0; background:#e9edf5; color:#34445b; }
.reply-count { min-height:30px; font-size:13px; color:#344258; gap:7px; }
.reply-count .icon { width:18px; height:18px; }
.excerpt { margin-top:7px; font-size:14px; line-height:1.5; -webkit-line-clamp:1; }
.activity-date { font-size:12px; }
.score-box { border-radius:10px; width:48px; min-height:70px; padding:9px 4px; justify-content:center; gap:8px; background:white; color:#172235; }
.score-box > .icon { width:21px; height:21px; }
.score-box strong { font-size:16px; font-weight:600; }
.score-label { display:none; }
.vote-controls,.compact .vote-controls { width:48px; min-width:48px; border-radius:10px; padding:3px; background:white; }
.vote-controls button,.compact .vote-controls button { width:40px; min-width:40px; min-height:24px; height:24px; color:#35445c; }
.vote-controls output,.compact .vote-controls output { font-size:16px; line-height:20px; }
.feed { margin-top:7px; }
/* Retain the section's accessible label while matching the reference's continuous feed. */
.feed:not(.search-results) > .section-label { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.more-trending { margin:15px -22px -20px; border-radius:0 0 13px 13px; background:white; }
.more-trending > summary { min-height:34px; font-size:12px; }
.more-trending > .topic-row { margin-inline:22px; padding-block:20px; }
.resource-sidebar { padding-top:40px; gap:22px; }
.side-panel,.product-panel { border-radius:15px; padding:25px; background:white; }
.community-panel { padding-top:25px; }
.side-panel h2 { font-size:22px; font-weight:650; letter-spacing:-.55px; line-height:1.3; margin-bottom:12px; }
.side-panel p { font-size:16px; line-height:1.5; color:#4e5b6e; }
.community-points { margin-top:19px; gap:8px; }
.community-points li { font-size:14px; color:#283343; padding-left:29px; line-height:1.5; }
.community-points li::before { color:var(--blue-strong); font-weight:650; font-size:17px; }
.resources { padding:22px 25px 12px; }
.resources h2 { display:flex; align-items:center; gap:12px; font-size:21px; margin-bottom:9px; }
.resources > a { font-size:14px; min-height:40px; padding:8px 0; color:#263244; gap:14px; }
.resources > a > span { flex:1; }
.resources > a > .icon { color:#4e5b70; }
.resources > a > .icon:last-child { margin-left:auto; }
.product-panel { overflow:hidden; }
.product-wordmark { font-size:16px; gap:9px; }
.product-panel h2 { font-size:26px; line-height:1.2; font-weight:700; letter-spacing:-.7px; margin-top:20px; margin-bottom:6px; }
.product-panel p { font-size:16px; line-height:1.5; color:#4e5b6e; }
.product-panel .button { min-height:44px; font-size:15px; width:auto; padding-inline:18px; margin-top:18px; border-radius:10px; }
.product-preview { position:relative; height:125px; margin:14px -25px -25px; overflow:hidden; }
.product-preview img { position:absolute; width:350px; max-width:none; height:auto; left:72px; top:18px; border:4px solid #172033; border-radius:14px; transform:rotate(-13deg); }
@media(min-width:1400px){
 .trending > .more-trending { margin:0; border:0; background:transparent; }
 .trending > .more-trending > summary { position:absolute; right:195px; top:14px; min-height:30px; padding:0 4px; font-size:11px; }
 .trending > .more-trending[open] > summary { border:0; }
 .trending > .more-trending[open] { border-top:1px solid var(--line); margin-top:20px; padding-top:10px; }
 .trending > .more-trending > .topic-row { margin-inline:0; }
}
@media(max-width:1300px) and (min-width:1100px){
 .forum-layout{grid-template-columns:220px minmax(0,1fr) 280px;gap:24px;padding-inline:24px}
 .category-sidebar{padding-right:13px}
 .category-nav>a{font-size:13px;gap:12px}
 .side-panel,.product-panel{padding:22px}
 .page-heading h1{font-size:35px}
 .page-heading p{font-size:17px}
 .forum-search{grid-template-columns:minmax(0,1fr) 160px}
 .sort-tabs{gap:6px}.sort-tabs a{padding-inline:10px;font-size:14px}
 .topic-title-line{flex-direction:column;gap:7px}
 .topic-title-line .topic-kicker{max-width:100%;justify-content:flex-start;order:-1}
 .trending>.topic-row .topic-kicker{position:static;max-width:100%}
 .trending>.section-label{padding-left:0}.trending>.section-label h2{gap:9px;display:flex;align-items:center}
 .trending>.section-label h2>.icon{position:static}
}
@media(max-width:1099px){
 .forum-layout{grid-template-columns:206px minmax(0,1fr);gap:25px;padding-inline:24px}
 .resource-sidebar{padding-top:0;grid-template-columns:1fr}
 .category-sidebar{padding-right:15px}
 .page-heading h1{font-size:34px}.page-heading p{font-size:16px}
 .topic-title-line{flex-direction:column;gap:7px}
 .topic-title-line .topic-kicker{max-width:100%;justify-content:flex-start;order:-1}
 .trending>.topic-row .topic-kicker{position:static;max-width:100%}
 .trending>.section-label{padding-left:0}.trending>.section-label h2{gap:9px;display:flex;align-items:center}
 .trending>.section-label h2>.icon{position:static}
 .forum-search{grid-template-columns:minmax(0,1fr) 145px}
 .sort-tabs{gap:8px}.sort-tabs a{font-size:14px;padding-inline:10px;gap:7px}
 .product-preview{max-width:340px;margin-left:auto;margin-right:-25px}
}
@media(max-width:767px){
 .forum-layout{display:block;padding:20px 20px 40px}
 .category-sidebar{position:static;padding:0;border:0;margin-bottom:26px}
 #main-content{padding-top:0}
 .page-heading h1{font-size:31px;font-weight:650;letter-spacing:-1px}
 .page-heading p{font-size:16px;line-height:1.65}
 .eyebrow{letter-spacing:1.6px;margin-bottom:10px}
 .create-discussion{font-size:15px;min-height:46px;margin-top:18px;padding-inline:20px}
 .forum-search{grid-template-columns:minmax(0,1fr) 80px}
 .search-field{grid-column:1/-1;grid-row:1;height:48px}
 .forum-search input{font-size:14px;padding-right:0}
 .search-filter{grid-column:1;grid-row:2}
 .forum-search select{font-size:14px}
 .forum-search button{grid-column:2;grid-row:2;min-height:48px;justify-self:stretch;margin:0;border:1px solid var(--line);border-radius:9px;background:#fafbfc;font-size:13px}
 .sort-tabs{gap:0;justify-content:space-between;margin-top:14px}
 .sort-tabs a,.sort-tabs a:first-child{font-size:13px;padding-inline:3px;gap:6px;min-height:50px}
 .sort-tabs .icon{width:17px;height:17px}
 .category-nav>a{font-size:14px}
 .topic-row{padding:23px 0;gap:13px}
 .topic-title-line h3,.trending>.topic-row .topic-title-line h3{font-size:18px;font-weight:600;line-height:1.45}
 .topic-title-line .topic-kicker{margin:0}
 .category-tag{font-size:12px;padding:4px 8px}
 .topic-meta{font-size:13px;gap:7px}.author-name{max-width:145px}
 .avatar{width:28px;height:28px;font-size:10px}
 .reply-count{font-size:13px;min-height:32px}
 .score-box{width:42px;min-height:68px}
 .score-box strong{font-size:16px}
 .vote-controls,.compact .vote-controls{width:42px;min-width:42px}
 .vote-controls button,.compact .vote-controls button{width:34px;min-width:34px;min-height:36px;height:36px}
 .trending{padding:19px 17px 0;margin-top:20px}
 .trending>.topic-row{gap:13px;padding-bottom:19px}
 .trending>.section-label h2{font-size:14px}
 .trending>.topic-row .excerpt{font-size:14px}
 .more-trending{margin:0 -17px;border-top:1px solid var(--line)}
 .more-trending>summary{min-height:44px;font-size:12px}
 .more-trending>.topic-row{margin-inline:17px}
 .feed{margin-top:5px}
 .resource-sidebar{padding-top:0;margin-top:32px}
 .side-panel,.product-panel{padding:24px}
 .resources h2{font-size:21px}
 .product-panel .button{min-height:44px}
 .product-preview{margin-right:-24px;margin-bottom:-24px}
 .excerpt{font-size:14px;-webkit-line-clamp:2}
}
@media(max-width:360px){
 .forum-layout{padding-inline:15px}.sort-tabs a,.sort-tabs a:first-child{font-size:12px;gap:4px;padding-inline:2px}
 .sort-tabs .icon{width:15px;height:15px}.page-heading h1{font-size:29px}
 .topic-row,.trending>.topic-row{gap:10px}.author-name{max-width:120px}
}

/* Mouse/touch clicks stay quiet; keyboard navigation keeps a clear neutral focus ring. */
:root[data-input-modality="pointer"] :focus { outline:none; box-shadow:none; }
:root[data-input-modality="pointer"] .search-field:focus-within { border-color:#dfe3e9; }
.search-filter { position:relative; }
.forum-search select { appearance:none; -webkit-appearance:none; padding-right:42px; }
.search-filter::after { content:''; position:absolute; right:18px; top:50%; width:7px; height:7px; border-right:1.5px solid #526077; border-bottom:1.5px solid #526077; transform:translateY(-70%) rotate(45deg); pointer-events:none; }

/* Styled category popover, progressively enhanced from the real GET-form select. */
.search-filter.is-enhanced::after { display:none; }
.forum-search .category-trigger { display:block; position:relative; width:100%; height:48px; min-height:48px; margin:0; padding:0 42px 0 16px; border:1px solid #dfe3e9; border-radius:11px; background:white; text-align:left; color:#475569; font-size:14px; font-weight:400; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.forum-search .category-trigger:hover { background:#fafbfc; border-color:#cbd3df; }
.forum-search .category-trigger[aria-expanded='true'] { border-color:#bcc6d5; background:#fafbfc; }
.category-trigger::after { content:''; position:absolute; right:18px; top:50%; width:7px; height:7px; border-right:1.5px solid #526077; border-bottom:1.5px solid #526077; transform:translateY(-70%) rotate(45deg); }
.category-trigger[aria-expanded='true']::after { transform:translateY(-30%) rotate(225deg); }
.category-options { position:absolute; top:calc(100% + 8px); right:0; z-index:30; width:300px; max-width:calc(100vw - 40px); max-height:min(360px,50vh); overflow-y:auto; overscroll-behavior:contain; padding:6px; border:1px solid #e0e5ec; border-radius:12px; background:white; box-shadow:0 12px 32px #18213216,0 2px 6px #18213208; scrollbar-width:thin; }
.category-option { display:flex; align-items:center; position:relative; min-height:40px; padding:10px 36px 10px 12px; border-radius:7px; color:#475569; font-size:14px; line-height:1.45; cursor:pointer; }
.category-option.is-highlighted { background:#f2f4f7; color:#182132; }
.category-option[aria-selected='true'] { color:#182132; font-weight:550; }
.category-option[aria-selected='true']::after { content:''; position:absolute; right:15px; top:14px; width:5px; height:9px; border-right:1.7px solid #2363fe; border-bottom:1.7px solid #2363fe; transform:rotate(45deg); }
@media(max-width:767px){.category-options{left:0;right:auto}.category-option{min-height:44px}.category-option[aria-selected='true']::after{top:16px}}

/* A restrained, macOS-inspired segmented sort control. Links retain their real URLs. */
.sort-tabs { display:inline-flex; align-items:stretch; width:max-content; max-width:100%; gap:3px; margin-top:20px; padding:4px; border:1px solid #e5e8ed; border-radius:13px; background:#f1f3f6; vertical-align:top; }
.sort-tabs a,.sort-tabs a:first-child { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:8px 17px; border:1px solid transparent; border-radius:9px; font-size:14px; line-height:1.3; font-weight:500; color:#596575; transition:background .15s ease,color .15s ease,box-shadow .15s ease; }
.sort-tabs a:hover { background:#e7ebf0; color:#263244; }
.sort-tabs a.active,.sort-tabs a.active:hover { background:white; border-color:#dfe4eb; color:#182132; font-weight:600; box-shadow:0 1px 3px #1821320d; }
.sort-tabs a.active::after { display:none; }
.sort-tabs .icon { width:17px; height:17px; color:#6a7686; }
.sort-tabs a.active .icon { color:var(--blue); }
@media(max-width:767px){
 .sort-tabs{display:grid;width:100%;grid-template-columns:.8fr .8fr .8fr 1.6fr;gap:2px;margin-top:17px;padding:4px;border-radius:12px}
 .sort-tabs a,.sort-tabs a:first-child{min-height:44px;padding:8px 4px;gap:5px;font-size:12px;border-radius:8px}
 .sort-tabs .icon{width:16px;height:16px}
}
@media(max-width:360px){.sort-tabs .icon{display:none}}

/* A calmer display heading and balanced supporting copy. */
.page-heading h1 { font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display','Helvetica Neue','Segoe UI',sans-serif; font-size:42px; font-weight:600; line-height:1.18; letter-spacing:-.02em; color:#182132; text-wrap:balance; }
.page-heading p { max-width:620px; margin-top:14px; font-size:17px; font-weight:400; line-height:1.65; letter-spacing:0; color:#5b6678; text-wrap:balance; }
.page-heading .eyebrow { margin-bottom:12px; font-size:11px; font-weight:500; letter-spacing:1.6px; color:#697586; }
@media(max-width:1099px){.page-heading h1{font-size:36px}}
@media(max-width:767px){.page-heading h1{font-size:32px;line-height:1.2}.page-heading p{font-size:16px;line-height:1.65;margin-top:12px}.page-heading .eyebrow{font-size:10px;letter-spacing:1.4px}}
@media(max-width:360px){.page-heading h1{font-size:30px}}

/* Treat the introduction as one aligned text-and-action group. */
.page-heading { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; align-items:start; }
.page-heading .heading-copy { display:grid; gap:10px; min-width:0; }
.page-heading .eyebrow { margin:0; }
.page-heading h1 { margin:0; }
.page-heading p { margin:0; max-width:46ch; text-wrap:pretty; }
.page-heading .create-discussion { justify-self:start; margin:0; min-height:44px; padding:10px 17px; gap:8px; font-size:14px; font-weight:550; border-radius:10px; }
.page-heading .create-discussion > span { font-size:20px; }
@media(min-width:1400px){
 .page-heading { grid-template-columns:minmax(0,1fr) auto; column-gap:24px; align-items:end; }
 .page-heading .create-discussion { justify-self:end; margin-bottom:2px; }
}
@media(max-width:767px){.page-heading{gap:16px}.page-heading .heading-copy{gap:10px}.page-heading p{max-width:100%}}

/* Keep the primary action with the search/filter tools, in reading order. */
.page-heading { grid-template-columns:minmax(0,1fr); margin-bottom:22px; }
.forum-search.has-create { grid-template-columns:150px minmax(0,1fr) 188px; align-items:center; }
.forum-search.has-create .create-discussion { grid-column:1; grid-row:1; min-height:48px; height:48px; margin:0; padding:10px 14px; font-size:14px; font-weight:550; gap:0; border-radius:10px; text-transform:capitalize; white-space:nowrap; }
/* Preserve the local adapter's existing markup hook, without displaying its plus sign. */
.forum-search .create-discussion > span { display:none; }
.forum-search.has-create .search-field { grid-column:2; grid-row:1; }
.forum-search.has-create .search-filter { grid-column:3; grid-row:1; }
.forum-search.has-create > button[type='submit'] { grid-column:2; grid-row:1; }
@media(max-width:1099px) and (min-width:768px){.forum-search.has-create{grid-template-columns:140px minmax(0,1fr) 145px;gap:9px}.forum-search.has-create .create-discussion{font-size:13px}}
@media(max-width:767px){
 .forum-search.has-create{grid-template-columns:minmax(0,1fr) 80px;gap:10px}
 .forum-search.has-create .create-discussion{grid-column:1/-1;grid-row:1;justify-self:start;min-height:44px;height:44px;padding-inline:18px;margin-bottom:2px}
 .forum-search.has-create .search-field{grid-column:1/-1;grid-row:2}
 .forum-search.has-create .search-filter{grid-column:1;grid-row:3}
 .forum-search.has-create > button[type='submit']{grid-column:2;grid-row:3}
}

/* A simple product link, matching the supporting copy rather than a second primary CTA. */
.product-panel .product-link { display:flex; align-items:center; gap:6px; width:fit-content; min-height:28px; margin-top:4px; padding:2px 0; color:var(--blue-strong); font-size:14px; font-weight:500; line-height:1.5; }
.product-panel .product-link:hover { color:var(--blue); text-decoration:underline; text-underline-offset:4px; }
@media(max-width:767px){.product-panel .product-link{min-height:32px}}

.product-panel .product-link .icon { width:16px; height:16px; }

/* Share vote and text columns across featured and ordinary feed rows. */
.forum-layout { --discussion-inset:23px; --discussion-gap:22px; }
.feed > .topic-row { padding-inline:var(--discussion-inset); gap:var(--discussion-gap); }
.trending > .topic-row,.more-trending > .topic-row { gap:var(--discussion-gap); }
.more-trending > .topic-row { padding-inline:0; }
@media(max-width:767px){.forum-layout{--discussion-inset:18px;--discussion-gap:13px}}
@media(max-width:360px){.forum-layout{--discussion-gap:10px}}

/* Profile pictures: stable local illustrations, shared across feed, topics and replies. */
.avatar.avatar-portrait { width:32px; height:32px; overflow:hidden; border:1px solid #e0e5ed; background:#edf1f6; }
.avatar-portrait .portrait { display:block; width:100%; height:100%; max-width:none; flex-shrink:0; }
@media(max-width:767px){.avatar.avatar-portrait{width:30px;height:30px}}

/* Reply in the current conversation, with the existing editor and submission flow. */
.discussion-reply-bar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:16px 0 26px; }
.discussion-reply-bar > .button { min-width:94px; min-height:42px; padding:10px 22px; font-size:14px; border-radius:9px; }
[data-reply-action][aria-disabled='true'] { opacity:.55; cursor:not-allowed; }
.empty-replies { padding:20px 0; color:#647084; font-size:14px; }
.reply-dialog { width:min(540px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); padding:24px; margin:auto; border:1px solid #dfe5ed; border-radius:16px; background:white; color:var(--ink); box-shadow:0 20px 70px #18213226; overflow-y:auto; overscroll-behavior:contain; }
.reply-dialog::backdrop { background:#18213266; }
.reply-dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.reply-dialog-heading h2 { margin:0; font-size:22px; font-weight:600; letter-spacing:-.5px; }
.reply-dialog-close { display:grid; place-items:center; flex-shrink:0; width:36px; height:36px; padding:0; border:0; border-radius:50%; color:#596575; background:#f1f3f6; font-size:25px; font-weight:400; line-height:1; }
.reply-dialog-close:hover { background:#e6eaf0; color:var(--ink); }
.reply-dialog-context { margin:8px 0 20px; font-size:13px; line-height:1.6; color:#647084; overflow-wrap:anywhere; }
.reply-dialog .composer { gap:13px; }
.reply-dialog .composer label { font-size:13px; }
.reply-dialog .field-hint { font-size:11px; }
.reply-dialog .editor-toolbar { padding:6px; gap:2px; }
.reply-dialog .editor-toolbar button { min-width:34px; min-height:32px; }
.reply-dialog .editor-frame textarea { min-height:130px; max-height:300px; padding:14px; font-size:15px; line-height:1.7; }
.reply-dialog .editor-count { padding:6px 12px; font-size:11px; }
.reply-dialog .review-notice { padding:10px 12px; font-size:12px; }
.reply-dialog .composer-actions { align-items:center; gap:8px; }
.reply-dialog .composer-actions .primary { order:3; margin-left:auto; min-width:110px; }
.reply-dialog .composer-actions .button { min-height:40px; font-size:13px; padding-inline:13px; }
.reply-dialog .save-state:empty { display:none; }
.reply-dialog .editor-preview { max-height:180px; overflow:auto; padding:14px; font-size:14px; }
.reply-dialog .submission-success { padding:18px; }
.reply-dialog .submission-success h2 { font-size:19px; }
.reply-dialog .action-status { font-size:13px; }
@media(max-width:767px){
 .reply-dialog{padding:20px;max-height:calc(100dvh - 24px)}
 .reply-dialog-heading h2{font-size:21px}.reply-dialog-close{width:40px;height:40px}
 .reply-dialog .editor-toolbar button{min-width:32px;min-height:36px}
 .reply-dialog .composer-actions .button{flex:0 1 auto;min-height:44px}
 .discussion-reply-bar > .button{min-height:44px}
}
.reply-dialog .editor-frame:focus-within { border-color:#aab5c5; box-shadow:0 0 0 2px #64708414; }
.reply-dialog .editor-frame textarea:focus { outline:none; }
.reply-dialog .editor-frame:has(textarea:focus-visible) { outline:2px solid #647084; outline-offset:2px; }
.reply-formatting > summary { min-height:36px; padding:7px 12px; font-size:12px; color:#647084; background:#fafbfc; cursor:pointer; }
.reply-formatting[open] .editor-toolbar { border-top:1px solid var(--line); }
.reply-dialog .review-notice { margin:0; }
.reply-dialog .editor-frame:focus-within { box-shadow:none; }
.reply-dialog .editor-frame:has(textarea:focus-visible) { outline-offset:-1px; border-color:transparent; }

/* Compact conversation cards with a single Facebook-style action row. */
.reply { padding:14px 18px; margin-bottom:9px; border-radius:10px; }
.reply .topic-meta { min-height:28px; margin:0 0 8px; gap:8px; font-size:12px; line-height:1.4; }
.reply .avatar.avatar-portrait { width:28px; height:28px; }
.reply .topic-meta > time { font-size:11px; color:#647084; }
.reply .reply-permalink { min-height:24px; color:#8390a2; }
.reply .parent-link:focus-visible { position:static; clip:auto; width:auto; height:auto; overflow:visible; margin:0 0 6px; min-height:26px; font-size:12px; }
.reply .markdown { font-size:14px; line-height:1.55; }
.reply .markdown p { margin:0 0 8px; }
.reply .markdown > :last-child { margin-bottom:0; }
.reply .markdown ul,.reply .markdown ol { margin:6px 0; }
.reply .markdown li { margin:3px 0; }
.reply .markdown blockquote { margin:8px 0; padding:8px 12px; }
.reply-footer { display:flex; align-items:center; flex-wrap:wrap; gap:18px; margin-top:8px; min-height:28px; }
.reply-footer a,.reply-footer button { display:inline-flex; align-items:center; justify-content:center; min-height:28px; padding:2px 0; border:0; background:none; font-size:12px; font-weight:500; line-height:1.4; color:#647084; white-space:nowrap; }
.reply-footer .comment-like { gap:6px; }
.reply-footer .comment-like .like-count { font-variant-numeric:tabular-nums; }
.reply-footer .comment-like:hover:not(:disabled),.reply-footer a:hover,.reply-footer button:hover:not(:disabled) { color:var(--blue-strong); }
.reply-footer .comment-like[aria-pressed='true'] { color:var(--blue-strong); }
.reply-footer .comment-like[aria-pressed='true'] svg { fill:var(--blue-wash); }
.reply-footer .comment-like:disabled { cursor:default; opacity:.55; }
.reply-footer .comment-report { margin-left:auto; font-weight:400; }
.reply.depth-1 { margin-left:12px; }
.reply.depth-2,.reply.depth-3 { margin-left:24px; }
.reply > .action-status { padding:4px 0 0; font-size:11px; }
.reply .report-panel { margin-top:10px; padding:14px; }
@media(max-width:767px){
 .reply{padding:12px 14px;margin-bottom:8px}
 .reply .topic-meta{margin-bottom:7px;gap:6px;font-size:12px}
 .reply-footer{gap:14px;margin-top:7px}
 .reply-footer a,.reply-footer button{min-height:32px;font-size:12px}
 .reply.depth-1{margin-left:8px}.reply.depth-2,.reply.depth-3{margin-left:16px}
}

/* An obvious entry point between the opening post and its comments. */
.discussion-reply-bar { display:block; margin:16px 0 22px; padding:14px; border:1px solid var(--line); border-radius:12px; background:white; }
.discussion-reply-bar h2 { margin:0 0 9px; font-size:14px; font-weight:600; line-height:1.4; letter-spacing:-.15px; }
.reply-entry { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:52px; padding:6px 6px 6px 14px; border:1px solid #dfe5ed; border-radius:10px; background:#f8fafc; }
.reply-entry:hover { border-color:#c6d0df; color:inherit; }
.reply-entry-placeholder { min-width:0; font-size:14px; line-height:1.5; color:#647084; }
.reply-entry-action { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; min-height:38px; padding:8px 19px; border-radius:8px; background:var(--blue); color:white; font-size:13px; font-weight:550; line-height:1.4; }
.reply-entry:hover .reply-entry-action { background:var(--blue-strong); }
.discussion-reply-bar + .replies { margin-top:20px; }
@media(max-width:767px){.discussion-reply-bar{padding:12px}.reply-entry{min-height:54px}.reply-entry-action{min-height:40px;padding-inline:16px}}

/* Inline social comments: write directly beneath the post, without a dialog. */
.social-post-actions { display:flex; align-items:center; flex-wrap:wrap; gap:24px; margin-top:20px; padding-top:13px; border-top:1px solid var(--line); }
.social-post-actions a,.social-post-actions button { display:inline-flex; align-items:center; gap:7px; min-height:36px; padding:0; border:0; background:none; color:#647084; font:inherit; font-size:13px; cursor:pointer; }
.social-post-actions .post-like { gap:7px; }
.social-post-actions .post-like .like-count { order:2; font-variant-numeric:tabular-nums; }
.social-post-actions .post-like[aria-pressed=true] { color:var(--blue-strong); }
.social-post-actions .post-like:disabled { opacity:.55; cursor:default; }
.social-post-actions > button:not([data-copy-url]) { font-size:11px; }
.post-comment-count { color:#647084; font-size:12px; }
.discussion-reply-bar { margin:0 0 24px; padding:16px 20px; border-top:0; border-radius:0 0 12px 12px; }
.discussion:has(+ .discussion-reply-bar) { margin-bottom:0; border-bottom-left-radius:0; border-bottom-right-radius:0; }
.reply-entry { align-items:flex-start; gap:10px; padding:0; background:none; border:0; min-height:0; }
.comment-avatar { display:flex; align-items:center; justify-content:center; width:32px; height:32px; flex:0 0 32px; border-radius:50%; background:#e7edf5; color:#405574; font-size:11px; font-weight:600; }
.guest-comment-field { flex:1; min-width:0; background:#f1f3f6; padding:10px 12px; border-radius:16px; }
.guest-comment-field textarea { display:block; width:100%; min-height:38px; padding:0; resize:none; border:0; background:none; color:var(--ink); font:inherit; font-size:14px; }
.guest-comment-field .reply-entry-action { display:flex; width:max-content; min-height:32px; margin-left:auto; padding:5px 15px; font-size:12px; }
.comment-signin-hint { margin:7px 0 0 42px; font-size:11px; color:#647084; }
.inline-comment-mount { display:flex; align-items:flex-start; gap:10px; min-width:0; }
.inline-comment-mount:empty { display:none; }
.inline-comment-form { flex:1; min-width:0; gap:0; margin:0; }
.inline-comment-form .editor-frame { overflow:visible; border:1px solid transparent; border-radius:16px; background:#f1f3f6; }
.inline-comment-form .editor-frame:focus-within { border-color:#c8d1df; }
.inline-comment-form .editor-frame textarea { display:block; width:100%; min-height:48px; max-height:240px; padding:11px 13px 3px; border:0; border-radius:16px 16px 0 0; background:transparent; font-size:14px; line-height:1.5; resize:vertical; outline:none; }
.inline-comment-form .composer-actions { display:flex; flex-wrap:nowrap; align-items:center; gap:10px; padding:3px 8px 7px; }
.inline-comment-form .composer-actions [type=submit] { flex:none; min-height:32px; margin-left:auto; padding:6px 16px; border-radius:9px; font-size:12px; line-height:1.4; }
.inline-comment-form [hidden] { display:none!important; }
.inline-comment-form .review-notice { order:5; margin:6px 0 0; padding:0 2px; background:none; font-size:11px; line-height:1.5; color:#647084; }
.inline-comment-form .submission-success { padding:12px; background:#f1f3f6; }
.inline-comment-form .submission-success h2 { font-size:14px; line-height:1.5; }
.inline-comment-form .submission-success p { margin:5px 0; font-size:12px; }
.inline-comment-form .submission-success a { min-height:32px; padding:5px 10px; font-size:12px; }
.comment-emojis { position:relative; }
.comment-emojis summary { display:flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:8px; cursor:pointer; color:#647084; list-style:none; }
.comment-emojis summary::-webkit-details-marker { display:none; }
.comment-emojis summary:hover { background:#e3e8ef; }
.emoji-options { position:absolute; bottom:38px; left:0; z-index:10; display:grid; grid-template-columns:repeat(4,36px); gap:3px; width:max-content; padding:7px; border:1px solid var(--line); border-radius:12px; background:white; box-shadow:0 8px 28px #17243c20; }
.emoji-options button { display:flex; align-items:center; justify-content:center; width:36px; height:36px; padding:0; border:0; background:none; font-size:21px; border-radius:7px; cursor:pointer; }
.emoji-options button:hover { background:#edf1f7; }
.reply > .inline-comment-mount { margin-top:10px; }
@media(max-width:767px){
 .discussion-reply-bar { padding:14px 12px; }
 .social-post-actions { gap:17px; }
 .social-post-actions a,.social-post-actions button { min-height:40px; }
 .inline-comment-form .composer-actions [type=submit] { min-height:36px; }
 .inline-comment-mount { gap:8px; }
 .comment-avatar { width:28px; height:28px; flex-basis:28px; }
 .reply-footer { gap:12px; }
 .reply-footer .comment-report { font-size:11px; }
}
/* Keep the writing controls as compact as the conversation actions. */
.discussion:has(+ .discussion-reply-bar) { padding-bottom:12px; }
.social-post-actions [data-copy-url] { margin-left:0; }
.social-post-actions > button:not([data-copy-url]):first-of-type { margin-left:auto; }
.inline-comment-form .composer-actions [type=submit] { min-width:88px; }
.inline-comment-form .review-notice { border:0; border-radius:0; }
.inline-comment-form .editor-frame textarea { min-height:36px; resize:none; }
.social-post-actions { justify-content:flex-start; }
.social-post-actions > [data-copy-url] + button { margin-left:auto; }
.post-tools { position:relative; margin-left:auto; }
.post-tools summary { display:flex; align-items:center; justify-content:center; width:32px; height:36px; list-style:none; color:#647084; font-size:22px; cursor:pointer; }
.post-tools summary::-webkit-details-marker { display:none; }
.post-tools-menu { position:absolute; right:0; top:38px; z-index:12; display:flex; flex-direction:column; align-items:stretch; min-width:166px; padding:6px; background:white; border:1px solid var(--line); border-radius:10px; box-shadow:0 8px 28px #17243c20; }
.social-post-actions .post-tools-menu button,.social-post-actions .post-tools-menu a { justify-content:flex-start; padding:7px 10px; font-size:12px; border-radius:5px; }
.post-tools-menu button:hover,.post-tools-menu a:hover { background:#f1f3f6; }
/* The comment editor stays in its card and changes height only through its grip. */
.discussion-reply-bar > h2 { margin:0 0 12px; font-size:14px; font-weight:600; }
.inline-comment-form .editor-toolbar { display:flex; align-items:center; gap:4px; padding:6px 9px; border:0; border-bottom:1px solid #e0e5ec; border-radius:16px 16px 0 0; background:transparent; }
.inline-comment-form .editor-toolbar button { display:flex; align-items:center; justify-content:center; min-width:32px; min-height:32px; padding:4px 8px; background:none; border:0; border-radius:6px; color:#526077; font-size:14px; }
.inline-comment-form .editor-toolbar button:hover { background:#e3e8ef; }
.inline-comment-form .editor-frame textarea { height:112px; min-height:96px; max-height:480px; border-radius:0; resize:none; overflow:auto; }
.comment-resize { display:flex; align-items:center; justify-content:center; height:16px; cursor:ns-resize; touch-action:none; user-select:none; border-radius:0 0 16px 16px; }
.comment-resize::after { content:''; width:32px; height:3px; border-radius:4px; background:#b7c1cf; }
.comment-resize:hover::after,.comment-resize:focus-visible::after { background:#647084; }
.inline-comment-form .editor-link { padding:8px 12px; }
.inline-comment-form .editor-link [data-insert-link] { margin-top:6px; padding:6px 10px; border:1px solid #c8d1df; border-radius:6px; background:white; font:inherit; font-size:12px; cursor:pointer; }
.discussion-reply-bar .comment-signin-hint { margin:0; font-size:14px; line-height:1.6; color:#647084; }
.comment-signin-hint a { color:var(--blue-strong); font-weight:600; text-decoration:none; }
.comment-signin-hint a:hover { text-decoration:underline; text-underline-offset:3px; }

/* Approved discussion reference: one reading card and one conversation panel. */
body:has(.discussion) .forum-layout { max-width:1420px; grid-template-columns:230px minmax(0,1fr) 297px; gap:31px; padding:0 75px 56px 0; margin-inline:auto; }
body:has(.discussion) #main-content { padding-top:36px; }
body:has(.discussion) .category-sidebar { padding:43px 15px 0 0; }
body:has(.discussion) .community-label { font-size:16px; font-weight:600; margin:0 10px 21px; gap:10px; }
body:has(.discussion) .category-nav > a { font-size:13px; min-height:42px; padding:10px 13px; gap:12px; }
body:has(.discussion) .sidebar-secondary { margin-top:25px; padding-top:17px; margin-right:0; }
body:has(.discussion) .sidebar-secondary a { font-size:13px; }
body:has(.discussion) .sidebar-bottom { padding:22px; margin-top:28px; border-radius:25px; }
body:has(.discussion) .sidebar-bottom h2 { font-size:18px; font-weight:600; letter-spacing:-.3px; }
body:has(.discussion) .sidebar-bottom p { font-size:13px; line-height:1.45; margin-top:6px; }
body:has(.discussion) .sidebar-bottom a { margin-top:14px; padding:8px 12px; min-height:37px; background:#f1f4f8; border:0; font-size:14px; gap:8px; }
body:has(.discussion) .breadcrumbs { font-size:11px; margin:0 0 9px; gap:10px; }
body:has(.discussion) .breadcrumbs a { min-height:23px; }
body:has(.discussion) .resource-sidebar { padding-top:36px; }
body:has(.discussion) .side-panel { border-radius:15px; padding:23px; margin-bottom:20px; }
body:has(.discussion) .side-panel h2 { font-size:18px; font-weight:600; letter-spacing:-.3px; }
body:has(.discussion) .community-panel p { font-size:14px; line-height:1.45; margin-top:14px; }
body:has(.discussion) .community-points { margin-top:20px; gap:9px; font-size:13px; }
body:has(.discussion) .resources { padding-bottom:15px; }
body:has(.discussion) .resources a { font-size:13px; min-height:36px; gap:9px; padding:8px 0; }
body:has(.discussion) .product-panel { border-radius:15px; padding:23px; }
body:has(.discussion) .product-wordmark { font-size:14px; margin-bottom:21px; }
body:has(.discussion) .product-wordmark img { width:22px; height:22px; }
body:has(.discussion) .product-panel h2 { font-size:23px; line-height:1.4; letter-spacing:-.45px; margin-bottom:0; }
body:has(.discussion) .product-panel p { font-size:14px; line-height:1.5; margin:0; }
body:has(.discussion) .product-link { margin-top:7px; font-size:13px; }
body:has(.discussion) .product-preview { margin-top:23px; }
.discussion:has(+ .conversation-panel) { padding:24px 22px 22px; margin:0 0 22px; border-radius:10px; box-shadow:none; }
.discussion:has(+ .conversation-panel) .topic-kicker { margin:5px 0 15px; }
.discussion:has(+ .conversation-panel) h1 { font-size:26px; font-weight:600; line-height:1.4; letter-spacing:-.25px; margin:0 0 14px; }
.discussion:has(+ .conversation-panel) .topic-meta { margin:0 0 22px; gap:9px; font-size:13px; }
.discussion:has(+ .conversation-panel) .topic-meta .avatar { width:30px; height:30px; }
.discussion:has(+ .conversation-panel) > .markdown { font-size:14px; line-height:1.6; }
.discussion:has(+ .conversation-panel) > .markdown > :last-child { margin-bottom:0; }
.social-post-actions { position:relative; justify-content:flex-start; gap:8px; padding-top:6px; margin-top:27px; min-height:31px; }
.social-post-actions .post-like { font-size:13px; font-weight:600; min-height:24px; gap:3px; }
.social-post-actions [data-copy-url] { margin-left:auto; min-height:24px; font-size:12px; }
.social-post-actions .post-comment-entry { position:absolute; width:1px; height:1px; min-height:0; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.social-post-actions .post-comment-entry:focus-visible { position:static; width:auto; height:auto; clip:auto; margin:0 8px; overflow:visible; }
.social-post-actions .post-tools { position:absolute; right:65px; top:4px; opacity:0; }
.social-post-actions:hover .post-tools,.social-post-actions .post-tools:focus-within { opacity:1; }
.conversation-panel { border:1px solid var(--line); border-radius:13px; padding:19px 24px 0; background:white; }
.comment-order-row { display:flex; justify-content:flex-end; margin:0 0 22px; }
.comment-order { display:inline-flex; align-items:center; gap:10px; min-height:26px; color:#647896; font-size:13px; }
.conversation-panel .discussion-reply-bar { padding:0; margin:0 0 20px; border:0; border-radius:0; }
.discussion-reply-bar:has(.inline-comment-form) > h2 { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.conversation-panel .inline-comment-mount { gap:15px; }
.conversation-panel .comment-avatar { width:44px; height:44px; flex:0 0 44px; background:#e8eff2; font-size:12px; }
.comment-avatar .avatar { width:44px; height:44px; }
.conversation-panel .inline-comment-form .editor-frame { position:relative; background:#f8f9fb; border:1px solid #cdd8e7; border-radius:24px; padding:0 14px; }
.conversation-panel .inline-comment-form .editor-frame textarea { height:82px; min-height:64px; max-height:480px; padding:14px 0 5px; font-size:14px; color:#1c273c; border-radius:0; }
.conversation-panel .inline-comment-form .composer-actions { min-height:49px; padding:6px 0; gap:10px; border-top:1px solid #dfe5ee; }
.conversation-panel .inline-comment-form .editor-toolbar { padding:0; border:0; gap:15px; }
.conversation-panel .inline-comment-form .editor-toolbar button { min-width:13px; min-height:29px; padding:0; font-size:14px; background:none; }
.conversation-panel .inline-comment-form [data-format=bold] { font-weight:700; }
.conversation-panel .inline-comment-form [data-format=italic] { font-style:italic; }
.conversation-panel .inline-comment-form [data-format=link] { text-decoration:underline; text-underline-offset:2px; font-size:13px; }
.conversation-panel .inline-comment-form .composer-actions [type=submit] { min-width:69px; min-height:24px; padding:4px 14px; border-radius:6px; background:#001d2b; color:white; font-size:12px; line-height:1.35; }
.conversation-panel .inline-comment-form .review-notice { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.conversation-panel .comment-resize { position:absolute; right:4px; bottom:1px; width:26px; height:10px; opacity:0; }
.conversation-panel .editor-frame:hover .comment-resize,.conversation-panel .comment-resize:focus-visible { opacity:1; }
.conversation-panel .comment-resize::after { width:15px; height:2px; }
.conversation-panel .replies { margin:0; }
.conversation-panel .replies > .section-label { border-bottom:1px solid var(--line); padding:0 0 5px; margin:0 0 15px; }
.conversation-panel .replies > .section-label h2 { font-size:18px; font-weight:600; line-height:1.4; letter-spacing:-.2px; }
.conversation-panel .reply { display:grid; grid-template-columns:44px minmax(0,1fr); column-gap:15px; row-gap:0; padding:0; margin:0 0 19px; border:0; border-radius:0; background:none; box-shadow:none; }
.conversation-panel .reply.depth-1 { margin-left:59px; }
.conversation-panel .reply.depth-2,.conversation-panel .reply.depth-3 { margin-left:89px; }
.reply-portrait { grid-column:1; grid-row:1; padding-top:3px; }
.reply-portrait .avatar { width:44px; height:44px; }
.comment-bubble { grid-column:2; grid-row:1; padding:13px 15px; border:1px solid #cdd8e7; border-radius:24px; background:#f8f9fb; min-width:0; }
.comment-bubble .topic-meta { display:flex; flex-wrap:wrap; min-height:20px; margin:0 0 5px; gap:11px; font-size:14px; line-height:1.4; font-weight:600; color:#1c273c; }
.comment-bubble .markdown { font-size:14px; line-height:1.5; color:#1c273c; }
.comment-bubble .markdown p { margin:0 0 7px; }
.comment-bubble .markdown > :last-child { margin-bottom:0; }
.comment-author-badge { display:inline-flex; padding:1px 10px; border:1px solid #cdd7e6; border-radius:6px; background:#e5eaf1; font-size:11px; font-weight:500; line-height:1.4; color:#506079; }
.conversation-panel .reply-footer { grid-column:2; display:flex; flex-wrap:wrap; align-items:center; gap:18px; margin:0; min-height:25px; padding:0 0 0 18px; }
.conversation-panel .reply-footer a,.conversation-panel .reply-footer button { min-height:25px; padding:0; font-size:12px; line-height:1.4; }
.conversation-panel .reply-footer .comment-like,.conversation-panel .reply-footer .comment-reply { font-weight:600; gap:0; }
.conversation-panel .reply-footer time { margin-left:auto; color:#647896; font-size:12px; }
.conversation-panel .reply-footer .comment-report { margin-left:0; font-weight:400; }
.conversation-panel .reply-footer .comment-share { position:absolute; width:1px; height:1px; min-height:0; overflow:hidden; clip:rect(0,0,0,0); }
.conversation-panel .reply-footer .comment-share:focus-visible { position:static; width:auto; height:auto; min-height:25px; overflow:visible; clip:auto; }
.conversation-panel .reply > .inline-comment-mount,.conversation-panel .reply > .report-panel,.conversation-panel .reply > .action-status { grid-column:2; min-width:0; }
body:has(.discussion) .related { margin-top:23px; }
body:has(.discussion) .related h2 { font-size:14px; font-weight:500; margin-bottom:17px; }
body:has(.discussion) .related a { font-size:13px; }
@media(max-width:1300px){
 body:has(.discussion) .forum-layout{padding:0 24px 40px;grid-template-columns:210px minmax(0,1fr) 260px;gap:24px}
}
@media(max-width:1100px){
 body:has(.discussion) .forum-layout{grid-template-columns:200px minmax(0,1fr)}
 body:has(.discussion) .resource-sidebar{display:none}
}
@media(max-width:767px){
 body:has(.discussion) .forum-layout{display:block;padding:20px 15px 40px}
 body:has(.discussion) #main-content{padding-top:0}
 body:has(.discussion) .category-sidebar{padding:0;border:0}
 .discussion:has(+ .conversation-panel){padding:19px 16px}
 .discussion:has(+ .conversation-panel) h1{font-size:23px}
 .conversation-panel{padding:15px 12px 0}
 .conversation-panel .inline-comment-mount,.conversation-panel .reply{gap:0 9px}
 .conversation-panel .comment-avatar,.comment-avatar .avatar,.reply-portrait .avatar{width:32px;height:32px;flex-basis:32px}
 .conversation-panel .reply{grid-template-columns:32px minmax(0,1fr)}
 .conversation-panel .reply.depth-1{margin-left:24px}
 .conversation-panel .reply.depth-2,.conversation-panel .reply.depth-3{margin-left:32px}
 .comment-bubble{padding:11px 12px;border-radius:19px}
 .conversation-panel .inline-comment-form .editor-frame{border-radius:19px;padding-inline:11px}
 .conversation-panel .reply-footer{padding-left:10px;gap:4px 12px}
 .conversation-panel .reply-footer time{font-size:10px}
 .conversation-panel .reply-footer .comment-report{font-size:10px}
 .conversation-panel .reply-footer a,.conversation-panel .reply-footer button{min-height:28px}
 .comment-order-row{margin-bottom:15px}
}
.comment-order,.conversation-panel .reply-footer time { color:#647084; }
/* Final reference alignment: compact sidebar rhythm and left-aligned post actions. */
body:has(.discussion) .category-nav { padding:0; }
body:has(.discussion) .category-nav > a { white-space:nowrap; }
body:has(.discussion) .category-icon,body:has(.discussion) .category-nav .icon { width:16px; height:16px; flex-basis:16px; }
body:has(.discussion) .resource-sidebar { gap:20px; margin-top:0; }
body:has(.discussion) .side-panel { margin-bottom:0; }
body:has(.discussion) .community-points li { font-size:13px; }
body:has(.discussion) .product-preview { margin-top:12px; height:115px; }
.social-post-actions > button.post-like { margin-left:0; font-size:13px; }
.discussion:has(+ .conversation-panel) > .markdown { font-size:13px; }
.conversation-panel .reply-portrait .avatar.avatar-portrait { width:44px; height:44px; }
body:has(.discussion) .related { border:0; padding-top:0; }
body:has(.discussion) .related a { padding:8px 0; }
@media(max-width:767px){
 .conversation-panel .reply-portrait .avatar.avatar-portrait { width:32px; height:32px; }
 body:has(.discussion) .category-nav > a { white-space:normal; }
 .discussion:has(+ .conversation-panel) > .markdown { font-size:14px; }
}
.conversation-panel .inline-comment-form .composer-actions [type=submit] { border-color:#001d2b; box-shadow:none; }
.social-post-actions > button.post-like:first-of-type { margin-left:0; }
body:has(.discussion) .category-sidebar { padding-top:40px; }
body:has(.discussion) .category-nav { gap:0; }
@media(max-width:767px){body:has(.discussion) .category-sidebar{padding-top:0}}
/* Submitted comment reports use the approved full-width blue confirmation bubble. */
.conversation-panel > .report-confirmation { display:block; margin:20px 0 26px; padding:18px; border:1px solid #aac3ff; border-radius:30px; background:#e7eeff; color:#084acb; }
.conversation-panel > .report-confirmation h2 { margin:0 0 5px; color:inherit; font-size:14px; font-weight:650; line-height:1.5; }
.conversation-panel > .report-confirmation p { margin:0; color:inherit; font-size:14px; line-height:1.5; }
@media(max-width:767px){.conversation-panel > .report-confirmation{padding:15px;border-radius:24px;margin:16px 0 20px}}
/* Private community administration. */
.admin-dashboard { max-width:880px; margin-bottom:35px; }
.admin-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:22px; }
.admin-heading h1 { font-size:32px; font-weight:600; letter-spacing:-.8px; line-height:1.2; margin:10px 0; }
.admin-heading p { font-size:14px; line-height:1.6; color:#647084; }
.admin-heading .button { flex-shrink:0; min-height:40px; padding:9px 15px; font-size:12px; }
.admin-notice { padding:13px 16px; margin-bottom:20px; border:1px solid var(--line); border-radius:10px; background:#f6f8fb; font-size:13px; line-height:1.6; color:#526077; }
.admin-notice.is-error { border-color:#e8b4b8; color:#9b2833; background:#fff6f6; }
.admin-tabs { display:flex; width:max-content; gap:4px; padding:4px; border-radius:11px; background:#eef1f5; }
.admin-tabs button { display:flex; align-items:center; gap:10px; min-height:38px; padding:8px 16px; border:0; border-radius:8px; background:none; font:inherit; font-size:13px; color:#526077; cursor:pointer; }
.admin-tabs button[aria-pressed=true] { background:white; color:#1c273c; box-shadow:0 1px 4px #1b2a4010; font-weight:600; }
.admin-tabs span { display:inline-flex; align-items:center; justify-content:center; min-width:23px; min-height:23px; padding:2px 6px; border-radius:6px; background:#e5ebf4; font-size:11px; font-variant-numeric:tabular-nums; }
.admin-queue-hint { font-size:11px; line-height:1.6; color:#647084; margin:10px 0 20px; }
.admin-review-card { border:1px solid var(--line); border-radius:14px; padding:22px; background:white; margin-bottom:18px; min-width:0; overflow-wrap:anywhere; }
.admin-review-card h2 { font-size:19px; line-height:1.4; font-weight:600; margin:10px 0; letter-spacing:-.3px; }
.admin-review-card .admin-meta { font-size:10px; color:#647084; line-height:1.6; margin-bottom:17px; }
.admin-context { display:inline-flex; align-items:center; min-height:30px; font-size:12px; color:var(--blue-strong); }
.admin-content { padding:16px; background:#f8f9fb; border:1px solid #e3e8ef; border-radius:9px; font-size:14px; line-height:1.7; max-height:420px; overflow:auto; margin-bottom:20px; }
.admin-content > :last-child { margin-bottom:0; }
.admin-decision label { display:flex; flex-direction:column; gap:8px; font-size:13px; font-weight:500; }
.admin-decision textarea { width:100%; min-height:70px; resize:vertical; padding:10px 12px; border:1px solid #d2dbe8; border-radius:9px; font:inherit; font-weight:400; line-height:1.5; color:var(--ink); background:white; }
.admin-decision-actions { display:flex; gap:10px; margin-top:12px; }
.admin-decision-actions .button { font:inherit; font-size:13px; min-height:38px; padding:9px 18px; cursor:pointer; }
.admin-reject { color:#a02c37; border-color:#e2c2c7; }
.admin-empty { padding:40px 20px; border:1px solid var(--line); border-radius:14px; text-align:center; }
.admin-empty h2 { font-size:18px; font-weight:600; margin-bottom:10px; }
.admin-empty p { font-size:14px; color:#647084; }
@media(max-width:767px){.admin-heading{align-items:flex-start;flex-direction:column;gap:12px}.admin-heading h1{font-size:29px}.admin-review-card{padding:16px}.admin-content{padding:12px}.admin-heading .button{min-height:44px}.admin-decision-actions .button{min-height:44px}.admin-tabs button{min-height:44px}}
.forum-layout:has(.admin-dashboard) { max-width:1320px; grid-template-columns:230px minmax(0,1fr); padding-inline:24px; }
.forum-layout:has(.admin-dashboard) .resource-sidebar { display:none; }
.admin-dashboard { max-width:none; }
@media(max-width:767px){.forum-layout:has(.admin-dashboard){display:block;padding-inline:20px}}
/* Comment order is a real, progressively enhanced dropdown. */
.comment-sort { position:relative; }
.comment-sort > summary { list-style:none; cursor:pointer; user-select:none; min-height:32px; padding:3px 2px 3px 10px; border-radius:7px; }
.comment-sort > summary::-webkit-details-marker { display:none; }
.comment-sort > summary:hover { background:#f5f7fa; }
.comment-sort[open] > summary .icon { transform:rotate(180deg); }
.comment-sort-menu { position:absolute; right:0; top:calc(100% + 5px); z-index:20; display:flex; flex-direction:column; min-width:155px; padding:5px; border:1px solid #dde4ee; border-radius:12px; background:white; box-shadow:0 8px 26px #17243c1a; }
.comment-sort-menu a { display:flex; align-items:center; min-height:38px; padding:8px 12px; border-radius:7px; color:#40516a; font-size:13px; line-height:1.4; }
.comment-sort-menu a:hover { background:#f0f3f8; }
.comment-sort-menu a[aria-current=true] { color:#174dc7; background:#edf2ff; font-weight:600; }
.sorted-parent-context { display:inline-flex; align-items:center; min-height:26px; margin-bottom:4px; color:#647084; font-size:11px; }
@media(max-width:767px){.comment-sort > summary{min-height:40px}.comment-sort-menu a{min-height:42px}}
/* Comment moderation controls are rendered only for an authorized administrator. */
.conversation-panel .reply > .admin-comment-edit,.conversation-panel .reply > .admin-comment-delete { grid-column:2; min-width:0; margin:10px 0 0; padding:15px; border:1px solid var(--line); border-radius:12px; background:#f8f9fb; }
.admin-comment-edit .editor-frame textarea { min-height:120px; font-size:14px; line-height:1.6; }
.admin-comment-edit .composer { gap:12px; }
.admin-comment-edit .review-notice { font-size:11px; padding:8px 10px; }
.admin-comment-delete h2 { font-size:14px; font-weight:600; margin-bottom:6px; }
.admin-comment-delete p { font-size:12px; line-height:1.6; margin-bottom:10px; }
.admin-comment-delete .button { min-height:36px; padding:7px 12px; font-size:12px; margin-right:8px; }
.admin-confirm-delete,.reply-footer .admin-delete-comment { color:#a02c37; }
.admin-comment-filter { margin-top:13px; font-size:13px; color:#526077; }
.admin-comment-filter label { display:flex; align-items:center; gap:9px; min-height:30px; }
.admin-older { margin-top:8px; min-height:40px; padding:8px 15px; font-size:13px; }
.admin-reports { margin:0 0 15px; padding:12px 14px; border:1px solid #edcfab; border-radius:9px; background:#fff9f1; font-size:12px; line-height:1.6; color:#754719; }
.admin-reports h3 { margin-bottom:5px; font-size:13px; font-weight:600; }
.admin-reports p { margin:4px 0; overflow-wrap:anywhere; }
@media(max-width:767px){.conversation-panel .reply > .admin-comment-edit,.conversation-panel .reply > .admin-comment-delete{grid-column:1 / -1}.admin-comment-edit .composer-actions .button{min-height:40px}}
/* Public identity badges: thread Author, or verified Administrator (takes priority). */
.comment-author-badge.administrator-badge { border-color:#ffabab; background:#ffe5e5; color:#b71f26; }
.author-meta .comment-author-badge { flex-shrink:0; }

/* Thread context remains readable on narrow screens; no hidden parent content. */
.comment-page-status{font-size:13px;color:#617086;margin:0 0 18px;line-height:1.6}
.parent-context-label{display:block;color:#617086;font-size:12px;margin-bottom:6px}
.reply{scroll-margin-block:100px}
.inline-comment-form [data-cancel]{display:inline-flex}

/* Clearly distinguished editorial example conversations. */
.illustrative-conversation{margin:24px 0;padding:22px;border:1px solid var(--line);border-radius:13px;background:#f8fafc}.illustrative-conversation h2{font-size:20px;margin:0 0 8px}.illustrative-notice{font-size:14px;color:#526077;margin:0 0 20px;line-height:1.6}.illustrative-reply{padding:18px 0}.example-author{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:10px}.illustrative-label{display:inline-block;font-size:12px;padding:3px 8px;border:1px solid #b3c4e4;border-radius:6px;background:#edf2ff;color:#294879}.illustrative-reply .markdown>:last-child{margin-bottom:0}@media(max-width:600px){.illustrative-conversation{padding:16px}}

/* Standalone forum sign-in page */
.forum-signin {
  box-sizing: border-box;
  width: min(100% - 32px, 440px);
  margin: clamp(24px, 8vh, 80px) auto 24px;
  padding: 24px;
  border: 1px solid #dae2ed;
  border-radius: 16px;
  background: #fff;
}
.forum-signin h1 { margin: 0 0 12px; }
.forum-signin form { display: grid; gap: 14px; }
.forum-signin label { display: grid; gap: 6px; }
.forum-signin input { box-sizing: border-box; width: 100%; min-width: 0; }
.forum-signin button[type="submit"] { justify-self: start; }
@media (max-width: 400px) {
  .forum-signin { width: 100%; padding-inline: 10px; border-inline: 0; }
}
