/* v121 brass: one visual contract across home, editorial, hubs and tools. */

/* The editorial reset is more specific than the base skip-link rule. */
body:not(.home-template) a.skip,
body:not(.home-template) a.skip:visited,
.home-template a.skip,
.home-template a.skip:visited {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
}

/* Homepage disclosure sits on the dark hero and must not inherit light-copy links. */
.home-template .hero .independence a,
.home-template .hero .independence a:visited {
  color: #d9d1c2 !important;
  text-decoration-color: #d8b26a !important;
}
.home-template .hero .independence a:hover {
  color: #ffffff !important;
  text-decoration-color: #ffffff !important;
}

/* Footer labels and links share the same readable dark-surface system. */
.site-footer .editorial-footer-hubs b,
.editorial-footer .editorial-footer-hubs b {
  color: #bfb7a8;
  font-size: 10px;
  line-height: 1.4;
}
.site-footer :is(.footer-main, .editorial-footer-main) nav a,
.editorial-footer :is(.footer-main, .editorial-footer-main) nav a,
.site-footer .editorial-footer-hubs a,
.editorial-footer .editorial-footer-hubs a,
.site-footer .footer-legal a,
.editorial-footer .footer-legal a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* v121: article title scale. Kept !important because legacy post code
   injection can still carry its own masthead sizes. */
body.post-template:not(.tag-audio-tools) .article-masthead h1 {
  font-size: clamp(32px, 3.4vw, 46px) !important;
}
body.post-template.tag-audio-tools .article-hero {
  min-height: 0 !important;
}
body.post-template.tag-audio-tools .article-masthead {
  min-height: 0 !important;
  padding: 34px 34px 28px !important;
}
body.post-template.tag-audio-tools .article-masthead h1 {
  margin-bottom: 20px !important;
  font-size: clamp(30px, 2.8vw, 40px) !important;
  line-height: 1.05 !important;
  letter-spacing: -.03em !important;
}
@media (max-width: 900px) {
  body.post-template:not(.tag-audio-tools) .article-masthead h1 {
    font-size: 34px !important;
  }
  body.post-template.tag-audio-tools .article-masthead {
    padding: 26px 20px 22px !important;
  }
  body.post-template.tag-audio-tools .article-masthead h1 {
    margin-bottom: 16px !important;
    font-size: 30px !important;
  }
}
@media (max-width: 420px) {
  body.post-template:not(.tag-audio-tools) .article-masthead h1 {
    font-size: 30px !important;
  }
}

/* ==========================================================================
   v121 brass layer: light paper reading surfaces, night only for chrome,
   hub mastheads and the header/footer. One accent (brass) everywhere.
   The download-contract block in default.hbs loads after this file; nothing
   below targets .sf-download-layout, .sf-article-toc or [data-sf-download-card].
   ========================================================================== */

body:not(.home-template) { font-family: var(--b-read); }

/* Breadcrumbs and kickers */
body:not(.home-template) .crumbs {
  color: var(--b-ink-3);
  font: 500 13px/1.4 var(--b-ui);
  letter-spacing: 0;
  text-transform: none;
}
body:not(.home-template) .crumbs a {
  color: var(--b-accent-ink);
  text-decoration: underline;
  text-decoration-color: rgba(165, 124, 58, .45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
body:not(.home-template) .crumbs a:hover { color: var(--b-ink); text-decoration-color: currentColor; }
body:not(.home-template) .crumbs .sep { color: #a89f8f; }
body:not(.home-template) .crumbs .cur { color: var(--b-ink-3); }
.editorial-kicker {
  font: 700 12px/1.3 var(--b-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Articles: light masthead card ---------- */
body.post-template .article-hero {
  min-height: 0;
  margin: 0 0 40px;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  border: 1px solid var(--b-line);
  border-radius: 18px;
  background: var(--b-card);
  color: var(--b-ink);
}
body.post-template .article-hero:not(:has(.article-cover)) { grid-template-columns: minmax(0, 1fr); }
body.post-template .article-masthead {
  padding: 44px 42px 34px;
  justify-content: center;
  border-right: 1px solid var(--b-line);
  background: transparent;
  color: var(--b-ink);
}
body.post-template .article-hero:not(:has(.article-cover)) .article-masthead { border-right: 0; }
body.post-template .article-masthead .editorial-kicker { color: var(--b-accent-ink); }
body.post-template .article-masthead h1 {
  max-width: 22ch;
  margin: 0 0 26px;
  color: var(--b-ink);
  font-family: var(--b-ui);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}
body.post-template .article-masthead .byline {
  min-height: 0;
  padding-top: 18px;
  flex-wrap: wrap;
  gap: 12px 14px;
  border-top: 1px solid var(--b-line);
}
body.post-template .article-masthead .avatar {
  background: var(--b-ink);
  color: var(--b-paper);
  font: 700 12px/1 var(--b-ui);
}
body.post-template .article-masthead .who b { color: var(--b-ink); font: 700 14px/1.3 var(--b-ui); }
body.post-template .article-masthead .who a:hover b { color: var(--b-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
body.post-template .article-masthead .who > span { color: var(--b-ink-3); font: 500 12.5px/1.35 var(--b-ui); }
body.post-template .article-masthead .chips { margin-top: 2px; gap: 8px; }
body.post-template .article-masthead .chip {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--b-line);
  border-radius: 999px;
  background: var(--b-paper);
  color: var(--b-ink-2);
  font: 600 12px/1 var(--b-ui);
  letter-spacing: 0;
}
body.post-template .article-masthead .chip.verdict {
  border-color: var(--b-accent);
  border-radius: 999px;
  background: var(--b-accent-soft);
  color: var(--b-accent-ink);
}

body.post-template .article-cover {
  align-self: center;
  margin: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
}
body.post-template .article-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 12px;
  background: var(--b-paper-2);
  filter: none;
}
body.post-template .article-cover figcaption {
  position: static;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0 2px;
  background: none;
  color: var(--b-ink-3);
  font: 500 13.5px/1.45 var(--b-ui);
  letter-spacing: 0;
}

/* Collapsible table of contents inside the masthead card */
body.post-template .compact-article-toc {
  margin: 0 18px 18px;
  overflow: hidden;
  border: 1px solid var(--b-line);
  border-radius: 12px;
  background: var(--b-paper);
}
body.post-template .compact-article-toc summary {
  min-height: 60px;
  padding: 10px 18px;
  border: 0;
  background: transparent;
  color: var(--b-ink);
}
body.post-template .compact-article-toc summary:hover { background: var(--b-paper-2); border-color: transparent; }
body.post-template .compact-article-toc summary:focus-visible { outline: 3px solid var(--b-accent-ink); outline-offset: -3px; }
body.post-template .compact-article-toc .toc-heading small {
  color: var(--b-ink-3);
  font: 700 11px/1.2 var(--b-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.post-template .compact-article-toc .toc-heading strong { color: var(--b-ink); font: 800 16px/1.25 var(--b-ui); }
body.post-template .compact-article-toc .toc-count {
  color: var(--b-ink-3);
  font: 600 12.5px/1 var(--b-ui);
  letter-spacing: 0;
  text-transform: none;
}
body.post-template .compact-article-toc .toc-action {
  border-color: var(--b-line);
  background: var(--b-card);
  color: var(--b-ink);
  font: 700 12px/1 var(--b-ui);
  letter-spacing: 0;
  text-transform: none;
}
body.post-template .compact-article-toc .toc-summary-meta i { border-color: var(--b-accent); }
body.post-template .compact-article-toc .ed-rail-toc {
  padding: 4px 18px 14px;
  column-gap: 30px;
  border-top: 1px solid var(--b-line);
  background: transparent;
}
body.post-template .compact-article-toc .ed-rail-toc a {
  min-height: 46px;
  padding: 10px 0;
  grid-template-columns: 28px minmax(0, 1fr);
  border-bottom: 1px solid var(--b-line);
  color: var(--b-ink-2);
  font: 500 15px/1.4 var(--b-ui);
}
body.post-template .compact-article-toc .ed-rail-toc a::before {
  color: var(--b-ink-3);
  font: 600 12px/1 var(--b-ui);
  font-variant-numeric: tabular-nums;
}
body.post-template .compact-article-toc .ed-rail-toc a::after { left: 32px; }
body.post-template .compact-article-toc .ed-rail-toc a:hover,
body.post-template .compact-article-toc .ed-rail-toc a.on { color: var(--b-ink); }
body.post-template .compact-article-toc .ed-rail-toc a.on::before { color: var(--b-accent-ink); }
body.post-template .compact-article-toc .ed-rail-toc a.on::after { background: var(--b-accent); }

/* Reading column */
body.post-template .article-layout:not(.sf-download-layout) { padding-top: 6px; border-top: 0; }
.article-content,
.page-content {
  font-family: var(--b-read);
  font-size: 17.5px;
  line-height: 1.68;
  letter-spacing: 0;
}
.article-content h2,
.page-content h2 {
  margin: 54px 0 16px;
  font: 800 clamp(26px, 2.6vw, 34px)/1.12 var(--b-ui);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.article-content h3,
.page-content h3 {
  margin: 36px 0 12px;
  font: 700 22px/1.22 var(--b-ui);
  letter-spacing: -.015em;
}
.article-content h4,
.page-content h4 {
  margin: 28px 0 10px;
  font: 700 18px/1.3 var(--b-ui);
  letter-spacing: -.01em;
}
.article-content table,
.page-content table { font: 15px/1.5 var(--b-ui); }
.article-content th,
.page-content th {
  border-color: var(--b-night-2);
  background: var(--b-night);
  color: var(--b-on-night);
  font-weight: 700;
}
.article-content td,
.page-content td { border-color: var(--b-line); }
.article-content figure img,
.page-content figure img {
  border: 1px solid var(--b-line);
  border-radius: 12px;
}
.article-content figcaption,
.page-content figcaption { color: var(--b-ink-3); font: 500 14px/1.5 var(--b-ui); }
.article-content blockquote,
.page-content blockquote {
  border-left: 3px solid var(--b-accent);
  border-radius: 0 10px 10px 0;
  background: var(--b-paper-2);
}
.article-content hr,
.page-content hr { border-top-color: var(--b-line); }
.article-content .relbox {
  border: 1px solid var(--b-line);
  border-top: 3px solid var(--b-accent);
  border-radius: 12px;
  background: var(--b-card);
}
.article-content .relbox h2 { font-size: 24px; }
.article-content .relbox a { border-color: var(--b-line); font-family: var(--b-ui); }
.article-content .kg-bookmark-card,
.page-content .kg-bookmark-card { border-color: var(--b-line); border-radius: 12px; background: var(--b-card); }

/* Rail: actions and related reading (layout untouched) */
.article-rail > section,
.article-rail > details { border-top-color: var(--b-line); }
.article-rail .ed-rail-bar {
  color: var(--b-ink-3);
  font: 700 11px/1.2 var(--b-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.article-rail .ed-rail-action.ghost {
  border-bottom-color: var(--b-line);
  color: var(--b-ink);
  font: 650 15px/1.35 var(--b-ui);
}
.article-rail .ed-rail-action.ghost:hover { color: var(--b-accent-ink); }
.article-rail .ed-rail-action.ghost small { color: var(--b-ink-3); font: 500 12px/1.3 var(--b-ui); }
.article-rail .ed-rail-related > a { border-bottom-color: var(--b-line); }
.article-rail .ed-rail-related img { border-radius: 6px; }
.article-rail .ed-rail-related b { color: var(--b-ink); font: 650 14px/1.35 var(--b-ui); }
.article-rail .ed-rail-related > a:hover b { color: var(--b-accent-ink); }
.article-rail .ed-rail-related .cat {
  color: var(--b-ink-3);
  font: 600 11px/1.2 var(--b-ui);
  letter-spacing: .06em;
}

/* Author outro */
.article-outro .author { border-color: var(--b-line); }
.article-outro .avatar { background: var(--b-ink); color: var(--b-paper); font: 700 12px/1 var(--b-ui); }
.article-outro .author b { color: var(--b-ink); font: 700 15px/1.3 var(--b-ui); }
.article-outro .author p { color: var(--b-ink-2); font: 15px/1.6 var(--b-read); }
.article-outro .author a { color: var(--b-accent-ink); font: 700 13px/1.3 var(--b-ui); letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  body.post-template .article-hero { grid-template-columns: minmax(0, 1fr); border-radius: 14px; }
  body.post-template .article-masthead {
    grid-row: 1;
    padding: 30px 22px 24px;
    border-right: 0;
    border-bottom: 0;
  }
  body.post-template .article-cover { grid-column: 1; grid-row: 2; padding: 0 16px 16px; }
  body.post-template .compact-article-toc { grid-column: 1; grid-row: 3; margin: 0 16px 16px; }
  body.post-template .article-masthead .chips { margin-left: 0; }
  .article-content,
  .page-content { font-size: 17px; line-height: 1.66; }
  .article-content h2,
  .page-content h2 { margin-top: 46px; }
}
@media (max-width: 700px) {
  body.post-template .compact-article-toc summary { min-height: 58px; padding: 9px 14px; }
  body.post-template .compact-article-toc .toc-heading small { font-size: 10.5px; }
  body.post-template .compact-article-toc .toc-heading strong { font-size: 15px; }
  body.post-template .compact-article-toc .toc-count { font-size: 12px; }
  body.post-template .compact-article-toc .toc-action { font-size: 11.5px; }
  body.post-template .compact-article-toc .ed-rail-toc { padding-inline: 14px; }
}

/* ---------- Pages, author and archive mastheads: light cards ---------- */
body.page-template .page-masthead,
body.author-template .author-masthead {
  margin: 4px 0 34px;
  padding: 46px 50px;
  border: 1px solid var(--b-line);
  border-radius: 16px;
  background: var(--b-card);
  color: var(--b-ink);
}
body.page-template .page-masthead .editorial-kicker,
body.author-template .author-masthead .editorial-kicker { color: var(--b-accent-ink); }
body.page-template .page-masthead h1,
body.author-template .author-masthead h1 {
  max-width: 22ch;
  color: var(--b-ink);
  font: 800 clamp(36px, 4.6vw, 58px)/1.04 var(--b-ui);
  letter-spacing: -.03em;
  text-wrap: balance;
}
body.page-template .page-cover {
  margin: 0 auto 40px;
  border-radius: 14px;
  background: var(--b-paper-2);
}
body.page-template .page-cover figcaption {
  padding: 10px 2px 0;
  background: var(--b-paper);
  color: var(--b-ink-3);
  font: 500 13.5px/1.45 var(--b-ui);
  letter-spacing: 0;
}
body.author-template .author-mark { background: var(--b-ink); color: var(--b-paper); font: 800 18px/1 var(--b-ui); }
body.author-template .author-masthead p:last-child { color: var(--b-ink-2); font: 16px/1.6 var(--b-read); }
body.author-template .author-masthead p strong { color: var(--b-ink); }
.author-bio { font-family: var(--b-read); }
.archive-masthead h1,
.archive-subhead h2 {
  font-family: var(--b-ui);
  font-weight: 800;
  letter-spacing: -.035em;
  text-wrap: balance;
}
body.tag-template .th-h1 {
  font-family: var(--b-ui);
  font-weight: 800;
  letter-spacing: -.035em;
  text-wrap: balance;
}
body.tag-template .prose { font-family: var(--b-read); }
body.tag-template .prose h2,
body.tag-template .prose h3 { font-family: var(--b-ui); font-weight: 800; letter-spacing: -.025em; }
body.tag-template .track.archive .archive-summary { font: 17px/1.65 var(--b-read); }
body.tag-template .hub-masthead-visual figcaption { font: 600 12.5px/1.4 var(--b-ui); letter-spacing: 0; }

/* Article libraries: a dense reading list instead of a tile grid */
body:not(.home-template) .clips {
  max-width: 940px;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 2px solid var(--b-ink);
}
body:not(.home-template) .clip {
  position: relative;
  padding: 22px 0;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 24px;
  align-items: start;
  border-bottom: 1px solid var(--b-line);
}
body:not(.home-template) .clip .cover { grid-column: 1; grid-row: 1 / span 2; border-radius: 10px; background: var(--b-paper-2); }
body:not(.home-template) .clip > .head {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 6px;
  color: var(--b-ink-3) !important;
  font: 600 12px/1.3 var(--b-ui);
  letter-spacing: .04em;
}
body:not(.home-template) .clip .body { grid-column: 2; min-height: 0; padding: 0; border-bottom: 0; }
body:not(.home-template) .clip > .head ~ .body { grid-row: 2; }
body:not(.home-template) .clip .card-meta {
  margin: 0 0 6px;
  justify-content: flex-start;
  color: var(--b-ink-3);
  font: 600 12px/1.3 var(--b-ui);
  letter-spacing: .04em;
}
body:not(.home-template) .clip h2,
body:not(.home-template) .clip h3 {
  margin: 0 0 8px;
  color: var(--b-ink);
  font: 700 20px/1.25 var(--b-ui);
  letter-spacing: -.015em;
}
body:not(.home-template) .clip .body > p:not(.card-meta) { color: var(--b-ink-2); font: 15px/1.55 var(--b-read); }
body:not(.home-template) .clip .hint { padding-top: 10px; color: var(--b-accent-ink); font: 700 13px/1.3 var(--b-ui); }
body:not(.home-template) .clip:hover h2,
body:not(.home-template) .clip:hover h3 { color: var(--b-accent-ink); }
body:not(.home-template) .pagination { color: var(--b-ink-3); font: 600 13px/1.3 var(--b-ui); letter-spacing: 0; text-transform: none; }
body:not(.home-template) .pagination a { border-color: var(--b-line); border-radius: 999px; background: var(--b-card); }
body:not(.home-template) .pagination a:hover { border-color: var(--b-accent-ink); background: var(--b-accent-ink); color: #ffffff; }

@media (max-width: 900px) {
  body.page-template .page-masthead,
  body.author-template .author-masthead { padding: 32px 22px; border-radius: 14px; }
  body.page-template .page-masthead h1,
  body.author-template .author-masthead h1 { max-width: none; font-size: 34px; }
}
@media (max-width: 640px) {
  body:not(.home-template) .clip { grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; padding: 18px 0; }
  body:not(.home-template) .clip h2,
  body:not(.home-template) .clip h3 { font-size: 17px; }
  body:not(.home-template) .clip .body > p:not(.card-meta) {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  body:not(.home-template) .clip .hint { display: none; }
}

/* ---------- Guide hub pages (partials/hub-page.hbs) ---------- */
.hub-hero {
  border-top: 1px solid var(--b-night-line);
  background: var(--b-night);
  color: var(--b-on-night);
}
body:not(.home-template) .hub-hero-in {
  padding: 22px 0 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 48px;
  align-items: center;
}
body:not(.home-template) .hub-hero.no-cover .hub-hero-in,
body:not(.home-template) .hub-hero-in:not(:has(.hub-cover)) { grid-template-columns: minmax(0, 1fr); }
body:not(.home-template) .hub-hero .crumbs { min-height: 0; padding: 0 0 22px; color: var(--b-on-night-2); }
body:not(.home-template) .hub-hero .crumbs a { color: var(--b-accent-lt); text-decoration-color: rgba(216, 178, 106, .5); }
body:not(.home-template) .hub-hero .crumbs a:hover { color: var(--b-on-night); }
body:not(.home-template) .hub-hero .crumbs .sep { color: #7d7567; }
body:not(.home-template) .hub-hero .crumbs .cur { color: var(--b-on-night-2); }
.hub-hero h1 {
  max-width: 22ch;
  margin: 0 0 18px;
  color: var(--b-on-night);
  font: 800 clamp(34px, 4.2vw, 54px)/1.04 var(--b-ui);
  letter-spacing: -.032em;
  text-wrap: balance;
}
.hub-lede {
  max-width: 58ch;
  margin: 0;
  color: var(--b-on-night-2);
  font: 18px/1.6 var(--b-read);
}
.hub-cover { min-width: 0; margin: 0; }
body:not(.home-template) .hub-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 1px solid var(--b-night-line);
  border-radius: 12px;
  background: var(--b-night-2);
}
.hub-cover figcaption { margin-top: 10px; color: var(--b-on-night-2); font: 500 13px/1.45 var(--b-ui); }

.hub-subnav { border-bottom: 1px solid var(--b-line); background: var(--b-card); }
body:not(.home-template) .hub-subnav .wrap {
  display: flex;
  gap: 4px 26px;
  overflow-x: auto;
  scrollbar-width: none;
}
.hub-subnav .wrap::-webkit-scrollbar { display: none; }
.hub-subnav a {
  min-height: 52px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  color: var(--b-ink-2);
  font: 600 15px/1.2 var(--b-ui);
  white-space: nowrap;
}
.hub-subnav a:hover { color: var(--b-ink); }
.hub-subnav a[aria-current="page"] { border-bottom-color: var(--b-accent); color: var(--b-ink); }
body:not(.home-template) .hub-subnav a:focus-visible { outline-offset: -3px; }

body:not(.home-template) .hub-shell { padding-top: 36px; }
body.page-template .hub-content { margin: 0 auto 64px; padding-top: 0; }

.hub-guides {
  max-width: 820px;
  margin: 0 auto 96px;
  padding-top: 26px;
  border-top: 2px solid var(--b-ink);
}
.hub-guides h2 {
  margin: 0 0 4px;
  color: var(--b-ink);
  font: 800 clamp(26px, 2.6vw, 34px)/1.12 var(--b-ui);
  letter-spacing: -.025em;
}
.hub-guide-list { margin: 0; padding: 0; list-style: none; }
.hub-guide {
  position: relative;
  padding: 20px 0;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  border-bottom: 1px solid var(--b-line);
}
.hub-guide.no-thumb { grid-template-columns: minmax(0, 1fr); }
body:not(.home-template) .hub-guide-thumb {
  width: 176px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: var(--b-paper-2);
}
.hub-guide h3 { margin: 0 0 6px; color: var(--b-ink); font: 700 19px/1.3 var(--b-ui); letter-spacing: -.012em; }
.hub-guide h3 a { color: inherit; }
.hub-guide h3 a::after { content: ""; position: absolute; inset: 0; }
.hub-guide:hover h3 a { color: var(--b-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.hub-guide p { margin: 0 0 8px; color: var(--b-ink-2); font: 15px/1.55 var(--b-read); }
.hub-guide time { color: var(--b-ink-3); font: 500 13px/1.3 var(--b-ui); }

@media (max-width: 900px) {
  body:not(.home-template) .hub-hero-in { padding: 16px 0 34px; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hub-hero h1 { max-width: none; font-size: clamp(32px, 7.4vw, 42px); }
  .hub-lede { font-size: 17px; }
  body:not(.home-template) .hub-shell { padding-top: 26px; }
}
@media (max-width: 640px) {
  .hub-guide { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
  body:not(.home-template) .hub-guide-thumb { width: 104px; }
  .hub-guide h3 { font-size: 17px; }
  .hub-guide p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.home-template) .clip .cover img,
  body:not(.home-template) .clip:hover .cover img { transition: none; transform: none; }
}

/* Tag hub tables, FAQ and router rows share the UI face (sizes unchanged). */
body.tag-template :is(.wftable table, .wf-sym td:first-child, .console.hubfaq summary, .console.hubfaq details p, .diag.router .desc) {
  font-family: var(--b-ui);
}
