/* Fluent 2 tokens: keep aligned with docs/fluent-ui-theme.md and fluentScope.js. */
:root {
  --brand:#0f6cbd; --brand-hover:#115ea3; --brand-pressed:#0f548c; --brand-tint:#ebf3fc;
  --text:#242424; --text2:#424242; --text3:#616161; --text4:#707070;
  --surface:#fff; --surface2:#fafafa; --canvas:#f5f5f5;
  --stroke:#d1d1d1; --stroke2:#e0e0e0; --stroke3:#ebebeb; --radius:4px;
  --shadow2:0 0 2px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.14);
}
*,*::before,*::after { box-sizing:border-box; }
html { scroll-padding-top:84px; }
body { margin:0; color:var(--text); background:var(--canvas); font:400 14px/1.6 Roboto,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; -webkit-font-smoothing:antialiased; }
a { color:var(--brand); text-underline-offset:3px; }
a:hover { color:var(--brand-hover); }
button,input { font:inherit; }
button,a,input { touch-action:manipulation; }
button,a { -webkit-tap-highlight-color:transparent; }
a:focus-visible,button:focus-visible,input:focus-visible { outline:2px solid var(--text); outline-offset:2px; }
h1,h2,h3,h4,strong,b { font-weight:600; }
h1 { margin:0; font-size:20px; line-height:1.4; }
h2 { margin:0; font-size:16px; line-height:1.5; }
p { margin:0; }
.help-icon { display:block; flex-shrink:0; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.help-icon.small { width:16px; height:16px; }
.help-icon.large { width:32px; height:32px; }
.sr-only,.skip-link:not(:focus) { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.skip-link:focus { position:fixed; top:12px; left:12px; z-index:30; padding:8px 12px; color:var(--text); background:var(--surface); }

/* 64px application bar; 32px commands. */
.site-header { position:sticky; top:0; z-index:20; height:64px; background:var(--surface); box-shadow:inset 0 -1px 0 var(--stroke2); }
.header-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; height:64px; max-width:1440px; margin:auto; padding:0 24px; }
.wordmark { display:inline-flex; align-items:center; gap:10px; color:var(--text); text-decoration:none; flex-shrink:0; white-space:nowrap; }
.wordmark:hover { color:var(--text); }
.brand-logo { display:block; width:40px; height:28px; object-fit:contain; }
.brand-name { font-size:17px; font-weight:600; }
.brand-divider { width:1px; height:24px; margin:0 4px; background:var(--stroke2); }
.brand-section { color:var(--text2); font-size:14px; font-weight:600; }
.header-inner nav { display:flex; align-items:center; gap:8px; min-width:0; }
.header-link,.secondary-link { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:32px; padding:0 12px; border:1px solid transparent; border-radius:var(--radius); color:var(--text2); background:transparent; font-size:12px; font-weight:600; text-decoration:none; white-space:nowrap; }
.header-link:hover,.secondary-link:hover { background:var(--canvas); color:var(--text); }
.header-link.outlined,.secondary-link { border-color:var(--stroke); background:var(--surface); }
.header-link.outlined:hover,.secondary-link:hover { background:var(--canvas); border-color:#c7c7c7; }
.header-link .help-icon { color:var(--text3); }
.preview-banner { display:flex; justify-content:center; align-items:center; gap:8px; min-height:32px; padding:6px 24px; border-bottom:1px solid #fdcfb4; background:#fff9f5; color:#bc4b09; font-size:12px; }

/* Topic rail uses native document scrolling; no new JavaScript. */
.help-layout { display:grid; grid-template-columns:248px minmax(0,1fr); max-width:1440px; min-height:calc(100dvh - 64px); margin:auto; }
.help-sidebar { position:sticky; top:64px; align-self:start; display:flex; flex-direction:column; gap:20px; height:calc(100dvh - 64px); padding:20px 12px 16px; overflow-y:auto; border-right:1px solid var(--stroke2); background:var(--surface); }
.back-link { display:inline-flex; align-items:center; gap:8px; align-self:flex-start; margin-left:8px; color:var(--text3); font-size:12px; text-decoration:none; }
.back-link:hover { color:var(--brand); }
.sidebar-heading { display:flex; align-items:flex-start; gap:10px; padding:0 8px; }
.sidebar-heading>.help-icon { color:var(--brand); margin-top:2px; }
.sidebar-title { font-size:13px; font-weight:600; line-height:1.5; }
.sidebar-caption { color:var(--text4); font-size:12px; }
.help-sidebar nav { display:flex; flex-direction:column; gap:4px; }
.help-sidebar nav a { position:relative; display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:36px; padding:8px 12px; border-radius:var(--radius); color:var(--text2); font-size:12px; line-height:1.5; text-decoration:none; }
.help-sidebar nav a:hover { color:var(--text); background:var(--canvas); }
.help-sidebar nav a[aria-current="page"],.help-sidebar nav a.section-link { color:var(--brand); background:var(--brand-tint); font-weight:600; }
.help-sidebar nav a[aria-current="page"]::before,.help-sidebar nav a.section-link::before { position:absolute; top:9px; bottom:9px; left:0; width:3px; border-radius:2px; background:var(--brand); content:""; }
.section-count { flex-shrink:0; color:var(--text4); font-size:11px; font-weight:400; font-variant-numeric:tabular-nums; }
.sidebar-support { margin-top:auto; padding:16px 8px 0; border-top:1px solid var(--stroke3); color:var(--text3); font-size:12px; }
.sidebar-support a { display:inline-flex; align-items:center; gap:6px; margin-top:6px; text-decoration:none; }
.collection-main,.article-main { min-width:0; padding:24px; }
.page-heading { display:flex; align-items:flex-start; gap:12px; margin-bottom:20px; }
.page-heading>.help-icon { color:var(--brand); margin-top:4px; }
.eyebrow { color:var(--text3); font-size:12px; line-height:1.5; margin-bottom:4px; }
.lead { max-width:760px; margin-top:8px; color:var(--text3); font-size:13px; line-height:1.7; }

/* Existing GET/Enter, reset and autocomplete behavior is preserved. */
.help-search { display:flex; align-items:center; gap:8px; max-width:800px; margin:0 0 20px; }
.search-field { position:relative; display:flex; align-items:center; gap:8px; height:32px; min-width:0; flex:1; padding:0 8px 0 10px; border:1px solid var(--stroke); border-radius:var(--radius); background:var(--surface); }
.search-field::after { position:absolute; right:-1px; bottom:-1px; left:-1px; height:2px; border-radius:0 0 var(--radius) var(--radius); background:var(--brand); opacity:0; content:""; }
.search-field:focus-within::after { opacity:1; }
.search-field>.help-icon { color:var(--text3); }
.help-search input { flex:1; width:100%; min-width:0; height:30px; padding:0; border:0; color:var(--text); background:transparent; font-size:12px; outline:none; }
.help-search input::placeholder { color:var(--text4); opacity:1; }
.help-search input:focus-visible { outline:none; }
.help-search button { display:inline-flex; justify-content:center; align-items:center; height:32px; min-width:72px; padding:0 12px; border:1px solid transparent; border-radius:var(--radius); color:var(--surface); background:var(--brand); font-size:12px; font-weight:600; cursor:pointer; }
.help-search button:hover { background:var(--brand-hover); }
.help-search button:active { background:var(--brand-pressed); }
.help-search .clear-search { position:relative; z-index:1; flex-shrink:0; width:24px; min-width:24px; height:24px; padding:0; color:var(--text3); background:transparent; font-size:18px; font-weight:400; }
.help-search .clear-search:hover { color:var(--text); background:var(--canvas); }
.help-search [hidden] { display:none; }

/* Compact, scannable answer rows on a single quiet surface. */
.results-panel,.article-panel,.related,.support-card,.on-this-page { border:1px solid var(--stroke2); border-radius:var(--radius); background:var(--surface); }
.results-panel { box-shadow:var(--shadow2); }
.search-count { display:flex; align-items:center; flex-wrap:wrap; gap:6px; min-height:42px; margin:0; padding:10px 16px; border-bottom:1px solid var(--stroke2); color:var(--text3); font-size:12px; }
.search-count a { margin-left:auto; text-decoration:none; }
.article-list { display:flex; flex-direction:column; }
.article-card { display:flex; align-items:center; gap:12px; min-width:0; padding:16px; border-bottom:1px solid var(--stroke3); color:var(--text); text-decoration:none; }
.article-card:last-child { border-bottom:0; border-radius:0 0 var(--radius) var(--radius); }
.article-card>.help-icon { align-self:flex-start; color:var(--text3); margin-top:3px; }
.article-card-copy { min-width:0; flex:1; }
.article-section { display:block; margin-bottom:3px; color:var(--text4); font-size:11px; }
.article-card h2 { color:var(--brand); font-size:14px; line-height:1.5; }
.article-card p { max-width:800px; margin-top:4px; color:var(--text3); font-size:12px; line-height:1.7; }
.article-card:hover { color:var(--text); background:var(--surface2); }
.article-card:hover h2 { text-decoration:underline; }
.read-answer { display:inline-flex; align-items:center; gap:8px; flex-shrink:0; margin-left:8px; color:var(--text3); font-size:11px; }
.empty-state { display:flex; flex-direction:column; align-items:center; gap:10px; padding:48px 24px; text-align:center; }
.empty-state>.help-icon { color:var(--text4); margin-bottom:4px; }
.empty-state h2 { font-size:16px; }
.empty-state p { max-width:420px; color:var(--text3); font-size:13px; }
.empty-state .secondary-link { margin-top:6px; }
.pagination { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:16px; margin-top:16px; color:var(--text3); font-size:12px; }
.pagination a { display:inline-flex; align-items:center; min-height:32px; padding:0 10px; border:1px solid var(--stroke); border-radius:var(--radius); color:var(--text2); background:var(--surface); text-decoration:none; }
.pagination a:hover { background:var(--canvas); }

/* Reading canvas and desktop article outline. */
.breadcrumbs { margin:0 0 16px; color:var(--text4); font-size:12px; line-height:1.7; }
.breadcrumbs a { color:var(--text3); text-decoration:none; }
.breadcrumbs a:hover { color:var(--brand); text-decoration:underline; }
.article-main>.help-search { margin-bottom:20px; }
.article-layout { display:grid; grid-template-columns:minmax(0,1fr) 184px; align-items:start; gap:20px; }
.article-column { min-width:0; }
.article-panel { box-shadow:var(--shadow2); }
.article-heading { padding:24px; border-bottom:1px solid var(--stroke2); }
.article-heading .eyebrow { display:flex; align-items:center; gap:6px; margin-bottom:8px; }
.article-heading .eyebrow .help-icon { color:var(--brand); }
.answer-summary { margin-top:12px; color:var(--text2); font-size:14px; line-height:1.7; }
.article-meta { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px; margin-top:16px; color:var(--text4); font-size:11px; }
.article-audience { display:inline-flex; align-items:center; min-height:22px; padding:1px 6px; border:1px solid var(--stroke); border-radius:var(--radius); color:var(--text3); background:var(--canvas); }
.answer-body { padding:4px 24px 24px; font-size:14px; line-height:1.8; overflow-wrap:anywhere; }
.answer-body h2 { margin:24px 0 12px; font-size:15px; }
.answer-body h3 { margin:20px 0 8px; font-size:14px; }
.answer-body h4 { margin:16px 0 8px; font-size:14px; }
.answer-body p { margin:0 0 12px; }
.answer-body ul,.answer-body ol { margin:0 0 16px; padding-left:22px; }
.answer-body li { margin:8px 0; padding-left:4px; }
.answer-body ol>li::marker { color:var(--text2); font-weight:600; }
.answer-body blockquote { margin:16px 0; padding:12px 16px; border-left:3px solid var(--brand); background:var(--surface2); color:var(--text2); }
.answer-body blockquote p:last-child { margin-bottom:0; }
.answer-body code,.answer-body pre { font:12px/1.7 Consolas,"Courier New",monospace; background:var(--canvas); }
.answer-body code { padding:1px 4px; border-radius:2px; }
.answer-body pre { overflow-x:auto; padding:12px; border:1px solid var(--stroke2); border-radius:var(--radius); }
.answer-body img { max-width:100%; height:auto; border:1px solid var(--stroke2); border-radius:var(--radius); }
.answer-body table { display:block; width:100%; margin:16px 0; border-collapse:collapse; overflow-x:auto; font-size:12px; }
.answer-body th,.answer-body td { padding:8px 12px; border:1px solid var(--stroke2); text-align:left; }
.answer-body th { background:var(--surface2); color:var(--text2); font-weight:600; }
.article-tools { position:sticky; top:84px; }
.on-this-page { padding:16px; }
.on-this-page h2 { margin-bottom:12px; font-size:12px; }
.on-this-page nav { display:flex; flex-direction:column; border-left:1px solid var(--stroke2); }
.on-this-page a { padding:6px 0 6px 12px; color:var(--text3); font-size:12px; text-decoration:none; }
.on-this-page a:hover { color:var(--brand); box-shadow:-2px 0 0 var(--brand); }
.related { margin-top:16px; }
.related h2 { padding:12px 16px; border-bottom:1px solid var(--stroke3); font-size:14px; }
.related a { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px; border-bottom:1px solid var(--stroke3); font-size:12px; text-decoration:none; }
.related a:last-child { border-bottom:0; }
.related a:hover { background:var(--surface2); text-decoration:underline; }
.support-card { display:flex; align-items:flex-start; gap:12px; margin-top:16px; padding:16px; background:var(--surface2); }
.support-card>.help-icon { color:var(--text3); margin-top:1px; }
.support-card h2 { margin-bottom:6px; font-size:14px; }
.support-card p { color:var(--text3); font-size:12px; }
.support-card a { display:inline-flex; align-items:center; gap:8px; margin-top:8px; font-size:12px; text-decoration:none; }
.support-card a:hover { text-decoration:underline; }

/* Library landing page. */
.home-main { max-width:1180px; min-height:calc(100dvh - 220px); margin:0 auto; padding:32px 24px; }
.home-intro { padding:24px; border:1px solid var(--stroke2); border-radius:var(--radius); background:var(--surface); }
.home-intro .page-heading { margin-bottom:0; }
.library-heading { display:flex; align-items:center; gap:8px; margin:24px 0 12px; color:var(--text2); font-size:14px; }
.library-heading .help-icon { color:var(--text3); }
.collection-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.collection-card { display:flex; flex-direction:column; min-width:0; border:1px solid var(--stroke2); border-radius:var(--radius); color:var(--text); background:var(--surface); text-decoration:none; box-shadow:var(--shadow2); }
.collection-card:hover { border-color:var(--stroke); color:var(--text); }
.collection-card-heading { display:flex; align-items:center; gap:10px; padding:16px 16px 0; }
.collection-card-heading>.help-icon { color:var(--brand); }
.collection-card h2 { font-size:15px; }
.collection-card>p { flex:1; margin:8px 16px 16px; color:var(--text3); font-size:13px; }
.collection-card:hover h2 { color:var(--brand); text-decoration:underline; }
.collection-card-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px; border-top:1px solid var(--stroke3); color:var(--text3); font-size:12px; }
.home-support { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:24px; padding:16px; border:1px solid var(--stroke2); border-radius:var(--radius); background:var(--surface); }
.home-support h2 { margin-bottom:4px; font-size:14px; }
.home-support p { color:var(--text3); font-size:12px; }
.muted { color:var(--text3); font-size:12px; }
.site-footer { display:flex; align-items:center; flex-wrap:wrap; gap:8px 20px; max-width:1440px; margin:auto; padding:16px 24px 24px; border-top:1px solid var(--stroke2); color:var(--text4); font-size:12px; }
.site-footer>span { color:var(--text3); font-weight:600; }
.site-footer a { color:var(--text3); text-decoration:none; }
.site-footer a:hover { color:var(--brand); text-decoration:underline; }
.site-footer p { width:100%; max-width:900px; font-size:11px; }

@media(max-width:1180px) {
  .help-layout { grid-template-columns:224px minmax(0,1fr); }
  .article-layout { display:block; }
  .article-tools { display:none; }
}
@media(max-width:900px) {
  .help-layout { grid-template-columns:200px minmax(0,1fr); }
  .header-inner { padding:0 16px; gap:12px; }
  .header-link { padding:0 8px; }
  .collection-main,.article-main { padding:20px 16px; }
  .read-answer>span { display:none; }
  .article-heading { padding:20px; }
  .answer-body { padding:0 20px 20px; }
}
@media(max-width:650px) {
  .header-inner { padding:0 12px; gap:8px; }
  .wordmark { gap:6px; }
  .brand-logo { width:34px; height:24px; }
  .brand-name { font-size:15px; }
  .brand-divider { margin:0 2px; height:20px; }
  .brand-section { font-size:12px; }
  .header-inner nav { gap:4px; }
  .header-link { padding:0 7px; }
  .header-link.website-link,.header-link.support-link { display:none; }
  .header-link.outlined { font-size:11px; }
  .header-link.outlined>.help-icon { display:none; }
  .help-layout { display:block; }
  .help-sidebar { position:static; display:block; height:auto; padding:12px; overflow:visible; border-right:0; border-bottom:1px solid var(--stroke2); }
  .back-link { margin-left:0; }
  .sidebar-heading { align-items:center; gap:8px; margin:12px 0; padding:0; }
  .sidebar-caption,.sidebar-support { display:none; }
  .help-sidebar nav { flex-direction:row; gap:6px; padding:2px 2px 6px; overflow-x:auto; }
  .help-sidebar nav a { flex-shrink:0; gap:8px; min-height:32px; padding:6px 10px; border:1px solid var(--stroke2); white-space:nowrap; }
  .help-sidebar nav a[aria-current="page"],.help-sidebar nav a.section-link { border-color:#b4d6fa; }
  .help-sidebar nav a[aria-current="page"]::before,.help-sidebar nav a.section-link::before { display:none; }
  .collection-main,.article-main { padding:20px 12px; }
  .page-heading { gap:10px; margin-bottom:16px; }
  .lead { font-size:12px; }
  .article-card { align-items:flex-start; gap:10px; padding:14px 12px; }
  .article-card h2 { font-size:13px; }
  .read-answer { margin:4px 0 0; }
  .article-card>.help-icon { display:none; }
  .search-count { padding:10px 12px; }
  .empty-state { padding:32px 16px; }
  .breadcrumbs { font-size:11px; }
  .article-heading { padding:16px; }
  .answer-summary { font-size:13px; }
  .article-meta { gap:8px 12px; }
  .answer-body { padding:0 16px 16px; font-size:14px; }
  .article-heading h1 { font-size:20px; }
  .preview-banner { justify-content:flex-start; padding:8px 12px; }
  .home-main { padding:20px 12px; }
  .home-intro { padding:20px 16px; }
  .collection-grid { grid-template-columns:minmax(0,1fr); }
  .home-support { flex-direction:column; align-items:flex-start; gap:12px; }
  .site-footer { gap:8px 16px; padding:16px 12px 24px; }
}
@media(max-width:380px) {
  .brand-name { display:none; }
}
@media print {
  .site-header,.help-sidebar,.help-search,.related,.support-card,.site-footer,.article-tools { display:none; }
  .help-layout,.article-layout { display:block; }
  .article-main { padding:0; }
  .article-panel { border:0; box-shadow:none; }
  .article-heading,.answer-body { padding-right:0; padding-left:0; }
  body { background:#fff; font-size:12pt; }
  a { color:inherit; }
}
@media(forced-colors:active) {
  .site-header { border-bottom:1px solid CanvasText; }
  .help-sidebar nav a[aria-current="page"],.help-sidebar nav a.section-link { outline:1px solid Highlight; }
  .search-field:focus-within { outline:2px solid Highlight; }
}
