:root {
  --bg: #f5efe4;
  --bg-2: #eadfce;
  --panel: rgba(255,255,255,.82);
  --panel-strong: #fffaf2;
  --ink: #112228;
  --muted: #5c6768;
  --line: rgba(17,34,40,.12);
  --brand: #d74f2a;
  --brand-dark: #143a40;
  --accent: #d8a227;
  --shadow: 0 24px 60px rgba(17,34,40,.10);
  --radius: 28px;
  --display: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Tahoma, sans-serif;
  --accent: #d74f2a;
  --accent-text: #8a2f18;
}

.dark {
  --bg: #101719;
  --bg-2: #172225;
  --panel: rgba(24,33,36,.84);
  --panel-strong: #1b2528;
  --ink: #eff4f2;
  --muted: #b2bfbb;
  --line: rgba(239,244,242,.10);
  --brand: #eb6f4e;
  --brand-dark: #7fd0c4;
  --accent: #f0bf52;
  --shadow: 0 24px 60px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  background:
    radial-gradient(circle at top left, rgba(215,79,42,.10), transparent 24%),
    radial-gradient(circle at top right, rgba(20,58,64,.12), transparent 22%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

a { color: var(--brand-dark); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
img { max-width: 100%; display: block; }
.container { width: min(1380px, calc(100% - 40px)); margin: 0 auto; }
.site-frame { min-height: 100vh; }

.site-shell {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 14px auto 0;
  width: min(1420px, calc(100% - 24px));
  border: 1px solid var(--line);
  border-radius: 30px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.shell-topline,
.masthead,
.section-rail,
.section-heading-row,
.meta-cluster,
.hero-actions,
.site-footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.shell-topline {
  padding: 14px 28px 10px;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.shell-topline p { margin: 0; color: var(--muted); }
.shell-mini-nav,
.main-nav,
.support-rail { display: flex; flex-wrap: wrap; gap: 12px; }
.shell-mini-nav a,
.main-nav a,
.section-rail a,
.support-rail a,
.site-footer-grid a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}
.shell-mini-nav a:hover,
.main-nav a:hover,
.section-rail a:hover,
.support-rail a:hover,
.site-footer-grid a:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }

.masthead { padding: 18px 28px; }
.brand-lockup { display: flex; align-items: center; gap: 16px; }
.brand-seal {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-weight: 900;
  font-size: 1.45rem;
}
.brand-text strong {
  display: block;
  font: 800 1.6rem/1.05 var(--display);
}
.brand-text small { color: var(--muted); }

.section-rail {
  padding: 0 28px 20px;
  flex-wrap: wrap;
}
.section-rail a {
  background: color-mix(in srgb, var(--panel-strong) 86%, transparent);
  border: 1px solid var(--line);
}
.theme-toggle {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--ink);
  border-radius: 999px;
  min-width: 48px;
  min-height: 48px;
  cursor: pointer;
}

.site-main { padding: 28px 0 72px; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .92rem;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 4px;
}

.breadcrumbs [aria-current="page"] {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
}

.hero-slab,
.section-block,
.info-panel,
.list-preview-panel,
.copy-panel,
.metric-panel,
.directory-tile,
.catalog-card,
.section-chip-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-slab {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
  gap: 20px;
  padding: 26px;
}
.home-slab {
  background:
    radial-gradient(circle at 80% 20%, rgba(215,79,42,.14), transparent 18%),
    radial-gradient(circle at 8% 90%, rgba(20,58,64,.14), transparent 18%),
    var(--panel);
}
.hero-copy h1,
.section-heading-row h2,
.info-panel h2,
.list-preview-panel h2,
.copy-panel h2,
.site-footer-grid h2,
.site-footer-grid h3 {
  margin: 0;
  font-family: var(--display);
}
.hero-copy h1 {
  margin-top: 10px;
  font-size: clamp(2.8rem, 4.5vw, 5.4rem);
  line-height: .96;
  max-width: 10.5ch;
}
.slab-kicker,
.section-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-summary { max-width: 62ch; font-size: 1.05rem; color: var(--muted); }
.hero-search-box { max-width: 760px; }
.search-box { position: relative; margin: 22px 0 18px; }
.search-box input,
.copy-field-input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-strong);
  color: var(--ink);
  font: inherit;
}
.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  z-index: 25;
}
.search-results.open { display: block; }
.search-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.search-item:first-child { border-top: 0; }
.search-item:hover,
.search-item.is-active { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.search-code { font-weight: 900; color: var(--brand); }

.primary-cta,
.secondary-cta,
.copy-button,
.meta-cluster span,
.metric-panel span,
.directory-tile span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.primary-cta,
.copy-button {
  min-height: 54px;
  padding: 0 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  font-weight: 800;
}
.secondary-cta {
  min-height: 54px;
  padding: 0 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  font-weight: 800;
}
.hero-actions { justify-content: flex-start; flex-wrap: wrap; }
.meta-cluster { justify-content: flex-start; flex-wrap: wrap; margin-top: 16px; }
.meta-cluster span {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-strong) 90%, transparent);
  font-weight: 700;
}
.hero-panel-stack { display: grid; gap: 16px; }
.metric-panel { padding: 22px; }
.metric-panel strong {
  display: block;
  font: 800 clamp(2rem, 4vw, 3.4rem)/1 var(--display);
  color: var(--ink);
  letter-spacing: -.03em;
}
.metric-panel span {
  justify-content: flex-start;
  font-weight: 800;
  color: var(--ink);
}
.metric-panel small { color: color-mix(in srgb, var(--ink) 70%, white 30%); }
.metric-panel-accent { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 18%, var(--panel-strong)), var(--panel)); }
.metric-panel-accent p { color: var(--muted); margin-bottom: 0; }

.section-block { margin-top: 18px; padding: 18px; }
.section-heading-row { align-items: end; }
.section-heading-row p { margin: 0; max-width: 40ch; color: var(--muted); }
.catalog-grid,
.directory-deck,
.section-chip-grid,
.ladder-grid,
.faq-list {
  display: grid;
  gap: 16px;
}
.catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
.catalog-card { padding: 16px; min-height: 0; }
.catalog-card-wide { grid-column: span 2; }
.catalog-card small,
.directory-tile small { color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
.catalog-card strong,
.directory-tile strong,
.section-chip-card strong,
.ladder-grid strong { display: block; font-size: 1.22rem; margin: 10px 0 8px; font-family: var(--display); }
.catalog-card p,
.directory-tile p,
.copy-panel p,
.info-panel p,
.prose-panel li,
.site-footer-grid p { color: var(--muted); }
.split-block {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 18px;
}
.info-panel { padding: 22px; }
.accent-panel { background: linear-gradient(180deg, color-mix(in srgb, var(--brand-dark) 10%, var(--panel)), var(--panel)); }
.prose-panel-rich table { width: 100%; border-collapse: collapse; }
.prose-panel-rich th,
.prose-panel-rich td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose-panel-rich ul { padding-left: 20px; }
.ladder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.ladder-grid a,
.support-rail a {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}
.ladder-grid span { display: block; color: var(--muted); }
.section-chip-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  align-items: start;
}
.section-chip-card {
  padding: 12px 12px 10px;
  align-self: start;
  height: fit-content;
}
.section-chip-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-weight: 900;
}
.section-chip-card small { color: var(--muted); font-size: .88rem; }

.list-preview-panel,
.copy-panel { padding: 22px; }
.list-preview-panel ul { margin: 14px 0 0; padding-left: 18px; }
.list-preview-panel li { margin-bottom: 8px; }
.support-panel h2 { margin-bottom: 12px; }
.support-rail { display: grid; gap: 10px; }
.directory-deck { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.directory-tile { padding: 18px; min-height: 210px; }
.directory-tile span {
  margin-top: 12px;
  justify-content: flex-start;
  color: var(--brand);
  font-weight: 900;
}
.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 14px 0 8px;
}
.copy-button {
  border: 0;
  min-width: 130px;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(20,58,64,.20);
}
.copy-button.is-copied { background: linear-gradient(135deg, #17744f, #26a06c); }
.faq-box { margin-top: 28px; }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-strong);
  padding: 0 16px;
}
.faq-list summary { cursor: pointer; font-weight: 800; padding: 16px 0; }

.site-footer-shell { padding: 0 0 32px; }
.site-footer-grid {
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: color-mix(in srgb, var(--panel) 95%, transparent);
  box-shadow: var(--shadow);
}
.site-footer-grid nav { display: grid; gap: 8px; }
.footer-brand p { max-width: 42ch; }
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
mark { background: color-mix(in srgb, var(--accent) 35%, transparent); }

@media (max-width: 1180px) {
  .catalog-grid,
  .directory-deck,
  .section-chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-card-wide { grid-column: span 1; }
}

@media (max-width: 920px) {
  .site-shell { position: static; width: calc(100% - 18px); }
  .shell-topline,
  .masthead,
  .section-rail,
  .section-heading-row,
  .split-block,
  .hero-slab,
  .site-footer-grid,
  .hero-actions,
  .meta-cluster { flex-direction: column; align-items: stretch; }
  .hero-slab,
  .split-block { grid-template-columns: 1fr; }
  .catalog-grid,
  .directory-deck,
  .section-chip-grid,
  .ladder-grid { grid-template-columns: 1fr; }
  .main-nav,
  .shell-mini-nav { flex-wrap: wrap; }
  .copy-field { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: none; font-size: clamp(2.4rem, 11vw, 4rem); }
}
.catalog-card,
.directory-tile,
.section-chip-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.primary-cta,
.secondary-cta,
.main-nav a,
.shell-mini-nav a,
.section-rail a,
.support-rail a {
  display: inline-flex;
}

.main-nav a,
.shell-mini-nav a,
.section-rail a,
.support-rail a {
  align-items: center;
  justify-content: center;
}

.hero-actions a {
  box-shadow: 0 16px 34px rgba(17,34,40,.12);
}

.catalog-card:hover,
.directory-tile:hover,
.section-chip-card:hover {
  transform: translateY(-2px);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
  border-color: color-mix(in srgb, var(--brand) 26%, var(--line));
}

.site-shell,
.hero-slab,
.section-block,
.info-panel,
.list-preview-panel,
.copy-panel,
.metric-panel,
.directory-tile,
.catalog-card,
.section-chip-card {
  overflow: hidden;
}

.trust-banner {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 9%, var(--panel-strong)), var(--panel));
  color: var(--ink);
}

.trust-banner strong {
  color: var(--brand-dark);
}

.masthead-actions {
  display: grid;
  grid-template-columns: minmax(280px, 390px) auto;
  gap: 18px;
  align-items: center;
}

.header-search,
.search-page-form,
.glossary-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.header-search input,
.search-page-form input,
.glossary-search input {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-strong);
  color: var(--ink);
  font: inherit;
}

.header-search button,
.search-page-form button {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.brand-lockup,
.shell-mini-nav a,
.main-nav a,
.section-rail a,
.support-rail a,
.site-footer-grid a,
.catalog-card,
.directory-tile,
.section-chip-card,
.primary-cta,
.secondary-cta,
.copy-button,
.ladder-grid a,
.breadcrumbs a,
.header-search button,
.search-page-form button,
.search-page-card,
.glossary-card-links a {
  text-decoration: none;
}

.main-nav a,
.shell-mini-nav a,
.section-rail a,
.support-rail a,
.site-footer-grid a,
.catalog-card,
.directory-tile,
.section-chip-card,
.primary-cta,
.secondary-cta,
.copy-button,
.ladder-grid a,
.search-page-card,
.glossary-card-links a {
  color: inherit;
}

.prose-panel a,
.prose-panel-rich a,
.list-preview-panel a,
.trust-banner a,
.search-page-empty a,
.glossary-intro a {
  color: var(--brand-dark);
  font-weight: 700;
}

.prose-panel a:hover,
.prose-panel-rich a:hover,
.list-preview-panel a:hover,
.trust-banner a:hover {
  color: var(--brand);
}

.prose-panel ul li::marker,
.prose-panel-rich ul li::marker {
  color: var(--brand);
}

.masthead {
  align-items: start;
}

.section-rail {
  border-top: 1px solid var(--line);
}

.support-panel {
  position: sticky;
  top: 150px;
  align-self: start;
}

.info-panel,
.list-preview-panel,
.copy-panel,
.metric-panel,
.catalog-card,
.directory-tile,
.section-chip-card,
.search-page-card,
.glossary-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 72%, transparent), var(--panel));
}

.catalog-card strong,
.directory-tile strong,
.section-chip-card strong,
.ladder-grid strong,
.search-page-card strong,
.glossary-card h3 {
  letter-spacing: -.02em;
}

.directory-tile small,
.catalog-card small,
.glossary-card small {
  color: var(--brand);
}

.search-page-shell,
.glossary-shell {
  display: grid;
  gap: 18px;
}

.search-page-results,
.glossary-results {
  display: grid;
  gap: 14px;
}

.search-page-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.search-page-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.search-page-card small {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 800;
}

.search-page-card p,
.search-page-empty p,
.glossary-card p,
.glossary-intro p {
  margin: 0;
  color: var(--muted);
}

.search-page-card span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  width: fit-content;
  font-weight: 800;
  color: var(--brand);
}

.search-page-empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel-strong) 84%, transparent);
}

.glossary-intro,
.glossary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.glossary-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-strong) 90%, transparent);
  font-weight: 700;
}

.glossary-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.glossary-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.glossary-card h3 {
  margin: 8px 0 6px;
  font: 800 1.4rem/1.1 var(--display);
}

.glossary-card-links {
  display: grid;
  gap: 8px;
}

.glossary-card-links a {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  font-weight: 700;
}

.glossary-card-links a:hover,
.search-page-card:hover,
.header-search button:hover,
.search-page-form button:hover {
  border-color: color-mix(in srgb, var(--brand) 26%, var(--line));
  transform: translateY(-1px);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.search-item small { color: var(--muted); }

@media (max-width: 1180px) {
  .masthead-actions,
  .search-page-results,
  .glossary-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .masthead-actions,
  .header-search,
  .search-page-form,
  .glossary-search {
    grid-template-columns: 1fr;
  }

  .support-panel {
    position: static;
  }
}

/* polish-round-2 */
.hero-copy h1 {
  max-width: 11.8ch;
  font-size: clamp(2.7rem, 4.2vw, 4.8rem);
}

.hero-summary {
  max-width: 58ch;
}

.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-search-box {
  max-width: 860px;
  align-items: stretch;
}

.hero-search-box .search-results {
  left: 0;
  right: 0;
}

.hero-search-box button {
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.masthead-actions {
  gap: 14px;
}

.main-nav {
  justify-content: flex-end;
}

.main-nav a,
.shell-mini-nav a,
.section-rail a,
.support-rail a,
.site-footer-grid a,
.ladder-grid a {
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.main-nav a:hover,
.shell-mini-nav a:hover,
.section-rail a:hover,
.support-rail a:hover,
.site-footer-grid a:hover,
.ladder-grid a:hover {
  transform: translateY(-1px);
}

.prose-panel-rich h2,
.prose-panel-rich h3,
.prose-panel h2,
.prose-panel h3 {
  margin: 28px 0 12px;
  letter-spacing: -.02em;
  font-family: var(--display);
}

.prose-panel-rich p,
.prose-panel p {
  max-width: 72ch;
}

.prose-panel-rich ul,
.prose-panel ul,
.list-preview-panel ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.prose-panel-rich ul li,
.prose-panel ul li,
.list-preview-panel li {
  position: relative;
  margin: 0;
  padding: 14px 16px 14px 48px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 88%, transparent), color-mix(in srgb, var(--panel) 98%, transparent));
}

.prose-panel-rich ul li::before,
.prose-panel ul li::before,
.list-preview-panel li::before {
  content: "↗";
  position: absolute;
  left: 16px;
  top: 14px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
  font-size: .8rem;
  font-weight: 900;
}

.prose-panel-rich li a,
.prose-panel li a,
.list-preview-panel li a {
  text-decoration: none;
  font-weight: 800;
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 32%, transparent);
}

.prose-panel-rich li a:hover,
.prose-panel li a:hover,
.list-preview-panel li a:hover {
  color: var(--brand);
  border-bottom-color: color-mix(in srgb, var(--brand) 72%, transparent);
}

.prose-panel-rich table {
  margin-top: 12px;
  border-radius: 22px;
  overflow: hidden;
  background: color-mix(in srgb, var(--panel-strong) 96%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
}

.prose-panel-rich th {
  background: color-mix(in srgb, var(--brand-dark) 8%, transparent);
}

.support-rail {
  gap: 12px;
}

.support-rail a,
.ladder-grid a {
  position: relative;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 92%, transparent), color-mix(in srgb, var(--panel) 98%, transparent));
}

.support-rail a::after,
.ladder-grid a::after,
.search-page-card::after,
.catalog-card::after,
.directory-tile::after,
.section-chip-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 0%, transparent);
  pointer-events: none;
  transition: box-shadow .16s ease;
}

.support-rail a:hover::after,
.ladder-grid a:hover::after,
.search-page-card:hover::after,
.catalog-card:hover::after,
.directory-tile:hover::after,
.section-chip-card:hover::after {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent);
}

.search-page-card,
.glossary-card {
  position: relative;
}

.search-page-card span {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  align-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand-dark);
  font-weight: 800;
}

.glossary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.glossary-meta span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-strong) 92%, transparent);
  font-weight: 700;
}

.glossary-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.glossary-card-links {
  display: grid;
  gap: 10px;
}

.glossary-card-links a {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-strong) 94%, transparent);
}

.glossary-card-links a:hover {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}

@media (max-width: 1180px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .hero-search-box,
  .search-page-form,
  .glossary-search,
  .header-search {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .support-panel {
    position: static;
  }
}
/* premium-pass-3 */
:root {
  --display: Constantia, Georgia, serif;
  --sans: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
}

body {
  background:
    radial-gradient(circle at 0% 0%, rgba(215,79,42,.16), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(20,58,64,.18), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(216,162,39,.10), transparent 22%),
    linear-gradient(180deg, #f6efe3, #ece0cb 42%, #e6d7bf 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(17,34,40,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(17,34,40,.035) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.46), transparent 80%);
}

.site-shell {
  border-radius: 34px;
}

.site-shell::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand-dark));
}

.shell-topline {
  padding-top: 12px;
}

.main-nav a,
.shell-mini-nav a,
.section-rail a {
  border: 1px solid transparent;
}

.main-nav a {
  background: color-mix(in srgb, var(--panel-strong) 88%, transparent);
}

.main-nav a:hover,
.shell-mini-nav a:hover,
.section-rail a:hover {
  border-color: color-mix(in srgb, var(--brand) 24%, var(--line));
}

.editorial-slab {
  position: relative;
  overflow: hidden;
}

.editorial-slab::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 86% 16%, rgba(215,79,42,.13), transparent 20%),
    radial-gradient(circle at 12% 88%, rgba(20,58,64,.14), transparent 18%);
  pointer-events: none;
}

.editorial-slab > * {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 12.2ch;
  font-size: clamp(2.9rem, 4.6vw, 5.1rem);
  letter-spacing: -.05em;
}

.hero-summary {
  font-size: 1.08rem;
}

.metric-panel-contrast {
  background: linear-gradient(180deg, rgba(20,58,64,.98), rgba(28,70,77,.88));
  color: #f8f3eb;
  border-color: rgba(255,255,255,.08);
}

.metric-panel-contrast span,
.metric-panel-contrast small,
.metric-panel-contrast strong {
  color: inherit;
  text-shadow: 0 1px 0 rgba(0,0,0,.18);
}

.note-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-dark) 10%, var(--panel)), color-mix(in srgb, var(--panel-strong) 94%, transparent));
  box-shadow: var(--shadow);
}

.note-panel small,
.signal-card small,
.scenario-card small,
.copy-side-actions a,
.list-preview-panel-strong p {
  color: var(--muted);
}

.note-panel strong,
.signal-card strong,
.scenario-card strong {
  display: block;
  margin: 10px 0 8px;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -.03em;
}

.note-panel a,
.query-ribbon a,
.copy-side-actions a {
  text-decoration: none;
}

.note-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 92%, transparent);
  border: 1px solid var(--line);
  color: var(--brand-dark);
  font-weight: 800;
}

.query-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.query-ribbon a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-strong) 94%, transparent);
  color: var(--brand-dark);
  font-weight: 800;
}

.query-ribbon a:hover {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  color: var(--brand);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.signal-card,
.scenario-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 96%, transparent), color-mix(in srgb, var(--panel) 98%, transparent));
  box-shadow: var(--shadow);
}

.signal-card::before,
.scenario-card::before,
.copy-panel-prominent::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent), transparent);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.scenario-card {
  text-decoration: none;
  color: inherit;
}

.scenario-card p,
.signal-card p,
.support-note p {
  margin-bottom: 0;
  color: var(--muted);
}

.split-block-balanced {
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
}

.list-preview-panel-strong {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-dark) 8%, var(--panel)), color-mix(in srgb, var(--panel-strong) 96%, transparent));
}

.list-preview-panel-strong h2 {
  margin-bottom: 8px;
}

.compact-inline-search {
  max-width: 760px;
  margin-top: 18px;
}

.copy-panel-prominent {
  position: relative;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 10%, var(--panel)), color-mix(in srgb, var(--panel-strong) 98%, transparent));
}

.copy-panel-prominent .copy-field-input {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.copy-side-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.copy-side-actions a {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-strong) 94%, transparent);
  color: var(--brand-dark);
  font-weight: 800;
}

.copy-side-actions a:hover {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
}

.support-note {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-strong) 94%, transparent);
}

.support-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-dark);
}

.directory-tile span {
  min-height: 34px;
  width: fit-content;
  padding: 0 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand-dark);
}

.catalog-card,
.directory-tile,
.section-chip-card,
.signal-card,
.scenario-card,
.note-panel,
.copy-panel-prominent,
.metric-panel,
.list-preview-panel,
.info-panel,
.search-page-card,
.glossary-card {
  backdrop-filter: blur(14px);
}

.prose-panel-rich h2,
.prose-panel-rich h3,
.prose-panel h2,
.prose-panel h3 {
  scroll-margin-top: 140px;
}

.search-page-card strong,
.glossary-card h3,
.catalog-card strong,
.directory-tile strong,
.section-chip-card strong {
  max-width: 22ch;
}

@media (max-width: 1180px) {
  .signal-strip,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .home-slab,
  .split-block-balanced {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .query-ribbon {
    gap: 8px;
  }

  .query-ribbon a,
  .note-panel a {
    width: 100%;
    justify-content: center;
  }

  .signal-strip,
  .scenario-grid {
    grid-template-columns: 1fr;
  }
}
/* hub-filter-and-source-pass */
.filter-panel {
  display: grid;
  gap: 16px;
}

.hub-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.hub-filter-bar input {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-strong) 95%, transparent);
  color: var(--ink);
  font: inherit;
}

.hub-filter-bar button {
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-strong) 95%, transparent);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.hub-filter-bar span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand-dark);
  font-weight: 800;
}

.hub-filter-empty {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed color-mix(in srgb, var(--brand) 35%, var(--line));
  background: color-mix(in srgb, var(--panel-strong) 94%, transparent);
  color: var(--muted);
}

.is-hidden-by-filter {
  display: none !important;
}

.source-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.source-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 96%, transparent), color-mix(in srgb, var(--panel) 98%, transparent));
  box-shadow: var(--shadow);
}

.source-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent), transparent);
}

.source-card small {
  color: var(--muted);
}

.source-card strong {
  display: block;
  margin: 10px 0 8px;
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: -.03em;
}

.source-card p {
  margin-bottom: 14px;
  color: var(--muted);
}

.source-card a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-strong) 95%, transparent);
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.source-card a:hover {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
}

.source-card-warning {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 8%, var(--panel)), color-mix(in srgb, var(--panel-strong) 96%, transparent));
}

@media (max-width: 1180px) {
  .source-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .hub-filter-bar {
    grid-template-columns: 1fr;
  }
}/* premium-pass-4 */
a {
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.prose-panel a,
.info-panel a:not(.support-rail a):not(.copy-side-actions a):not(.compare-card-actions a) {
  font-weight: 700;
  text-decoration-thickness: 2px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 12%, transparent);
}

.topline-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.topline-badge,
.brand-badge,
.footer-meta-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-strong) 94%, transparent);
  color: var(--brand-dark);
  font-size: .82rem;
  font-weight: 800;
}

.masthead-premium {
  align-items: flex-start;
}

.brand-column {
  display: grid;
  gap: 14px;
}

.brand-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.masthead-actions-premium {
  display: grid;
  gap: 16px;
  justify-items: end;
  width: min(760px, 100%);
}

.main-nav {
  justify-content: flex-end;
}

.main-nav a,
.section-rail a,
.rail-cta,
.footer-column a,
.footer-bottom-nav a {
  text-decoration: none;
}

.main-nav a.is-active,
.section-rail a.is-active,
.rail-cta.is-active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, transparent), color-mix(in srgb, var(--accent) 12%, transparent));
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 35%, var(--line));
}

.header-search {
  position: relative;
  width: min(420px, 100%);
}

.header-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 120px 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-strong) 96%, transparent);
  color: var(--ink);
  font: inherit;
}

.header-search button {
  position: absolute;
  top: 6px;
  right: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.section-rail {
  align-items: center;
}

.rail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.rail-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, transparent), color-mix(in srgb, var(--panel-strong) 96%, transparent));
  color: var(--brand-dark);
  font-weight: 800;
}

.site-footer-grid-premium {
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, .8fr));
  padding: 30px 0 24px;
}

.footer-brand-strong {
  padding-right: 20px;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column a,
.footer-bottom-nav a {
  width: fit-content;
  padding: 0;
  color: var(--muted);
}

.footer-column a:hover,
.footer-bottom-nav a:hover {
  color: var(--brand-dark);
  background: transparent;
}

.footer-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 34px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
}

.footer-bottom-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.compare-side-panel {
  min-height: 100%;
}

.compare-workbench {
  display: grid;
  gap: 18px;
}

.compare-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.compare-field {
  display: grid;
  gap: 8px;
}

.compare-field label {
  font-weight: 800;
  color: var(--brand-dark);
}

.compare-field small {
  color: var(--muted);
}

.compare-input-shell {
  position: relative;
}

.compare-input-shell input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-strong) 96%, transparent);
  color: var(--ink);
  font: inherit;
}

.compare-toolbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.compare-toolbar-actions .primary-cta,
.compare-toolbar-actions .secondary-cta {
  min-width: 170px;
}

.compare-option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.compare-hint-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.compare-hint-card,
.compare-overview-card,
.compare-matrix {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel-strong) 96%, transparent);
  box-shadow: var(--shadow);
}

.compare-hint-card strong,
.compare-overview-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 1.22rem;
}

.compare-output {
  min-height: 220px;
}

.compare-empty-state {
  padding: 28px;
  border: 1px dashed color-mix(in srgb, var(--brand) 30%, var(--line));
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel-strong) 96%, transparent);
}

.compare-empty-state h2 {
  margin-top: 0;
}

.compare-result-shell {
  display: grid;
  gap: 18px;
}

.compare-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.compare-overview-card small {
  color: var(--muted);
}

.compare-overview-card p {
  color: var(--muted);
}

.compare-overview-card-center {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 10%, transparent), color-mix(in srgb, var(--panel-strong) 96%, transparent));
}

.compare-card-actions {
  margin-top: 14px;
}

.compare-card-actions a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-strong) 96%, transparent);
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.compare-matrix {
  overflow-x: auto;
}

.compare-matrix table {
  width: 100%;
  border-collapse: collapse;
}

.compare-matrix th,
.compare-matrix td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-matrix thead th {
  border-top: 0;
  color: var(--brand-dark);
  font-weight: 900;
}

.compare-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compare-chip-list span,
.compare-muted {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand-dark);
  font-size: .92rem;
}

@media (max-width: 1180px) {
  .masthead-premium,
  .site-footer-grid-premium,
  .compare-toolbar,
  .compare-overview,
  .compare-hint-grid {
    grid-template-columns: 1fr;
  }

  .masthead-actions-premium {
    width: 100%;
    justify-items: stretch;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .header-search {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 920px) {
  .topline-actions,
  .brand-meta,
  .rail-actions,
  .compare-toolbar-actions,
  .footer-bottom-nav {
    width: 100%;
  }

  .rail-actions {
    margin-left: 0;
    flex-wrap: wrap;
  }

  .header-search input {
    padding-right: 100px;
  }

  .header-search button {
    padding: 0 14px;
  }
}

/* 2026-03-22 layout cleanup */
body .site-topline {
  padding-top: 12px;
}

body .site-shell {
  position: relative;
  top: auto;
  z-index: 10;
  margin: 0 auto;
  width: min(1420px, calc(100% - 28px));
  border: 1px solid rgba(17,34,40,.10);
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel-strong) 96%, white 4%);
  backdrop-filter: none;
  box-shadow: 0 18px 45px rgba(17,34,40,.08);
}

body .shell-topline {
  padding: 0 0 10px;
  border-bottom: 0;
  font-size: .9rem;
}

body .shell-topline p {
  color: var(--muted);
}

body .status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}

body .shell-mini-nav a,
body .main-nav a,
body .header-utility a,
body .brand-lockup,
body .preview-entry,
body .directory-tile,
body .catalog-card,
body .scenario-card,
body .section-chip-card,
body .support-rail a,
body .site-footer-grid a,
body .footer-bottom-nav a {
  text-decoration: none;
}

body .masthead-clean {
  align-items: start;
  gap: 28px;
  padding: 24px 28px 26px;
}

body .brand-column {
  display: grid;
  gap: 12px;
  min-width: 280px;
}

body .brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

body .brand-lockup:hover strong {
  color: var(--brand);
}

body .brand-text strong {
  display: block;
  font: 800 1.9rem/1 var(--display);
  color: var(--ink);
}

body .brand-text small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .98rem;
}

body .brand-summary {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: .98rem;
}

body .masthead-actions-clean {
  flex: 1 1 auto;
  display: grid;
  gap: 16px;
}

body .main-nav {
  justify-content: flex-start;
  align-items: center;
  gap: 16px 20px;
}

body .main-nav a {
  padding: 0 0 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

body .main-nav a:hover,
body .main-nav a.is-active {
  color: var(--accent-text);
  border-color: color-mix(in srgb, var(--accent) 70%, white 30%);
  background: transparent;
}

body .masthead-tools {
  display: grid;
  grid-template-columns: minmax(280px, 420px) auto;
  gap: 16px;
  align-items: center;
}

body .header-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

body .header-search input,
body .hub-filter-bar input,
body .compact-inline-search input,
body .search-page-form input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(17,34,40,.12);
  border-radius: 16px;
  background: #fffdf9;
  color: var(--ink);
  font: inherit;
}

body .header-search button,
body .compact-inline-search button,
body .search-page-form button,
body .hub-filter-bar button {
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  font: 800 .95rem/1 var(--sans);
  cursor: pointer;
}

body .header-utility {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}

body .header-utility a,
body .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(17,34,40,.10);
  border-radius: 999px;
  background: #fffdf9;
  color: var(--ink);
  font-weight: 700;
}

body .theme-toggle {
  min-width: 72px;
}

body .site-main {
  padding: 22px 0 72px;
}

body .breadcrumbs {
  margin: 0 0 16px;
  font-size: .92rem;
}

body .hero-slab,
body .section-block,
body .info-panel,
body .list-preview-panel,
body .copy-panel,
body .metric-panel,
body .directory-tile,
body .catalog-card,
body .section-chip-card,
body .signal-card,
body .overview-card,
body .note-panel,
body .source-card,
body .search-page-card,
body .glossary-card,
body .compare-overview-card,
body .compare-matrix,
body .compare-field,
body .scenario-card {
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(17,34,40,.07);
}

body .hero-slab {
  gap: 22px;
  padding: 28px;
}

body .list-slab-compact {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

body .list-slab .hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(2.7rem, 4vw, 4.6rem);
}

body .hero-summary {
  max-width: 58ch;
}

body .hero-note {
  max-width: 64ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

body .compact-inline-search,
body .search-page-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 760px;
  margin-top: 18px;
}

body .query-ribbon {
  margin-top: 16px;
}

body .query-ribbon a {
  text-decoration: none;
}

body .list-preview-panel-strong {
  background: linear-gradient(180deg, rgba(248,250,251,.95), rgba(255,251,244,.94));
}

body .list-preview-panel-strong h2 {
  margin-top: 12px;
  font-size: 2rem;
}

body .list-preview-panel-strong p {
  margin: 8px 0 0;
  color: var(--muted);
}

body .preview-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

body .preview-entry {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(17,34,40,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body .preview-entry:hover,
body .directory-tile:hover,
body .catalog-card:hover,
body .scenario-card:hover,
body .section-chip-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 40%, white 60%);
  box-shadow: 0 20px 44px rgba(17,34,40,.10);
}

body .preview-entry strong {
  color: var(--ink);
  font: 800 1.04rem/1.35 var(--sans);
}

body .preview-entry span {
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

body .preview-entry small {
  color: var(--brand);
  font-weight: 800;
}

body .signal-strip,
body .overview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

body .signal-card,
body .overview-card {
  padding: 20px;
  border: 1px solid rgba(17,34,40,.10);
  background: color-mix(in srgb, var(--panel) 92%, white 8%);
}

body .signal-card small,
body .overview-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

body .signal-card strong,
body .overview-card strong {
  display: block;
  margin-top: 8px;
  font: 800 1.25rem/1.2 var(--display);
}

body .signal-card p,
body .overview-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

body .section-block {
  margin-top: 22px;
  padding: 24px;
}

body .section-block-tight {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body .trust-banner {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(215,79,42,.18);
  border-radius: 18px;
  background: rgba(255,246,241,.92);
  color: #6d3426;
}

body :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.action-bar {
  margin: 12px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel-strong) 95%, transparent);
}

.action-btn {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.action-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, white 92%);
}

.action-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.role-chip-grid,
.sibling-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.role-chip-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.role-chip,
.sibling-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-strong) 94%, transparent);
  text-decoration: none;
  color: var(--ink);
  max-width: 100%;
}

.role-chip.is-current,
.sibling-chip.is-current {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  font-weight: 800;
}

.role-chip-grid-compact .role-chip,
.role-chip-grid-compact .sibling-chip {
  width: 100%;
  justify-content: flex-start;
  font-size: .92rem;
}

.role-trust-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: .95rem;
}

.code-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.code-prev-next a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
}

body .page-tail-notes {
  margin-top: 28px;
}

body .code-slab .hero-copy h1 {
  max-width: 17ch;
  font-size: clamp(1.7rem, 1.9vw, 2.25rem);
  line-height: 1.04;
}

body .filter-panel {
  background: linear-gradient(180deg, rgba(247,248,248,.96), rgba(255,251,245,.94));
}

body .section-heading-row {
  align-items: end;
}

body .hub-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  margin-top: 18px;
}

body .hub-filter-bar span {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(17,34,40,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.85);
  color: var(--muted);
  font-weight: 700;
}

body .split-block-reading {
  align-items: start;
}

body .prose-panel-rich h2 {
  margin-top: 28px;
  font-size: 2rem;
}

body .prose-panel-rich > :first-child {
  margin-top: 0;
}

body .prose-panel-rich table {
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255,255,255,.84);
}

body .prose-panel-rich ul {
  padding-left: 18px;
}

body .support-panel-stickyless {
  background: linear-gradient(180deg, rgba(247,249,250,.96), rgba(255,252,247,.96));
}

body .support-rail {
  display: grid;
  gap: 10px;
}

body .support-rail-inline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body .support-rail a {
  padding: 14px 16px;
  border: 1px solid rgba(17,34,40,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-weight: 700;
}

body .support-note {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,246,241,.9);
  color: #623127;
}

body .directory-deck {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

body .directory-deck-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body .directory-tile {
  display: grid;
  grid-template-areas:
    "meta meta"
    "title title"
    "body body"
    "cta cta";
  align-content: start;
  gap: 6px 10px;
  min-height: 0;
  padding: 16px;
  background: rgba(255,255,255,.92);
}

body .directory-tile small {
  grid-area: meta;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: .04em;
}

body .directory-tile strong {
  grid-area: title;
  margin: 0;
  color: var(--ink);
  font: 800 1.05rem/1.28 var(--sans);
}

body .directory-tile p {
  grid-area: body;
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: .94rem;
}

body .directory-deck-wide .directory-tile {
  min-height: 0;
  align-self: start;
}

body .directory-tile span {
  grid-area: cta;
  margin-top: 2px;
  justify-content: flex-start;
  color: var(--brand-dark);
  font-weight: 800;
  font-size: .94rem;
}

body .catalog-grid {
  gap: 12px;
}

body .catalog-card,
body .scenario-card,
body .section-chip-card,
body .metric-panel,
body .note-panel,
body .source-card,
body .compare-overview-card,
body .search-page-card,
body .glossary-card {
  background: rgba(255,255,255,.92);
}

body .catalog-card strong,
body .scenario-card strong,
body .section-chip-card strong {
  font-family: var(--sans);
  line-height: 1.3;
}

body .site-footer-shell {
  padding: 8px 0 34px;
}

body .site-footer-grid-premium {
  align-items: start;
  gap: 24px;
  padding: 26px 28px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel) 94%, white 6%);
}

body .footer-meta-badges,
body .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

body .footer-meta-badges span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(17,34,40,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  font-weight: 700;
}

body .footer-bottom {
  margin-top: 18px;
  padding: 0 4px;
}

body .footer-bottom p {
  margin: 0;
  color: var(--muted);
}

body .footer-bottom-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body .back-to-top {
  display: none !important;
}

@media (max-width: 1180px) {
  body .masthead-clean,
  body .masthead-tools,
  body .signal-strip,
  body .overview-strip,
  body .list-slab-compact,
  body .split-block-reading,
  body .directory-deck,
  body .directory-deck-wide,
  body .catalog-grid,
  body .section-chip-grid,
  body .scenario-grid {
    grid-template-columns: 1fr;
  }

  body .masthead-clean {
    padding: 22px;
  }

  body .main-nav {
    gap: 12px 16px;
  }

  body .main-nav a {
    padding-bottom: 4px;
  }

  body .header-utility,
  body .footer-bottom,
  body .shell-topline {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body .container {
    width: min(100%, calc(100% - 24px));
  }

  body .site-shell {
    width: calc(100% - 20px);
    border-radius: 20px;
  }

  body .shell-topline,
  body .masthead-clean,
  body .hero-slab,
  body .section-block,
  body .site-footer-grid-premium {
    padding-left: 18px;
    padding-right: 18px;
  }

  body .brand-text strong {
    font-size: 1.55rem;
  }

  body .hero-copy h1,
  body .list-slab .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  body .code-slab .hero-copy h1 {
    max-width: none;
    font-size: clamp(1.45rem, 6.6vw, 2rem);
  }

  body .compact-inline-search,
  body .search-page-form,
  body .hub-filter-bar,
  body .header-search {
    grid-template-columns: 1fr;
  }

  body .header-search button,
  body .compact-inline-search button,
  body .search-page-form button,
  body .hub-filter-bar button {
    width: 100%;
  }

  body .preview-entry,
  body .directory-tile,
  body .support-rail a {
    padding: 16px;
  }

  .action-bar {
    position: sticky;
    bottom: 0;
    z-index: 40;
    margin-top: 16px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, .08);
  }
}

/* 2026-05-04 tile-first hierarchy pass */
body .catalog-grid,
body .section-chip-grid,
body .directory-deck {
  align-items: start;
  grid-auto-rows: auto;
}

body .catalog-card,
body .section-chip-card,
body .directory-tile {
  min-height: 0;
}

body .catalog-card,
body .directory-tile {
  padding: 16px;
}

body .section-chip-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 8px;
  align-content: start;
  padding: 12px 12px 10px;
  align-self: start;
  height: fit-content;
}

body .catalog-card strong,
body .directory-tile strong,
body .section-chip-card strong {
  max-width: 16ch;
  line-height: 1.02;
  margin: 6px 0 4px;
  font-size: 1rem;
}

body .catalog-card p,
body .directory-tile p,
body .section-chip-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: .95rem;
}

body .section-chip-card span {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  margin-top: 0;
}

body .catalog-card-wide {
  aspect-ratio: auto;
}

body .directory-deck-wide {
  grid-auto-rows: auto;
  align-items: start;
}

body .main-nav,
body .header-utility,
body .query-ribbon {
  scrollbar-width: none;
}

body .main-nav::-webkit-scrollbar,
body .header-utility::-webkit-scrollbar,
body .query-ribbon::-webkit-scrollbar {
  display: none;
}

@media (max-width: 920px) {
  body .catalog-card,
  body .section-chip-card,
  body .directory-tile {
    aspect-ratio: auto;
    min-height: 0;
  }

  body .catalog-grid,
  body .section-chip-grid,
  body .directory-deck {
    grid-auto-rows: auto;
  }

  body .section-chip-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  body .role-chip-grid-compact {
    grid-template-columns: 1fr;
  }

  body .support-rail-inline {
    grid-template-columns: 1fr;
  }

  body .main-nav,
  body .header-utility,
  body .query-ribbon {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  body .main-nav a,
  body .header-utility a,
  body .query-ribbon a {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  body .masthead-clean {
    gap: 16px;
  }

  body .brand-column {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  body .section-chip-card,
  body .directory-tile,
  body .catalog-card {
    padding: 12px;
  }

  body .section-chip-card strong,
  body .directory-tile strong,
  body .catalog-card strong {
    max-width: none;
  }

  body .section-chip-card p,
  body .directory-tile p,
  body .catalog-card p {
    -webkit-line-clamp: 2;
  }

  body .catalog-grid,
  body .section-chip-grid,
  body .directory-deck {
    gap: 12px;
  }
}

/* compliance-risk-score */
:root {
  --score-good: #1b7f53;
  --score-mid: #a96a00;
  --score-bad: #b4332e;
}

.risk-score-block {
  margin-top: 20px;
  border: 1px solid var(--line);
}

.risk-score-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.risk-score-head h2 {
  margin: 0;
}

.risk-score-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.risk-score-head .risk-score-note {
  max-width: 68ch;
  font-size: .94rem;
}

.risk-score-value {
  margin: 0;
  font: 800 clamp(1.5rem, 2.8vw, 2rem)/1 var(--display);
  letter-spacing: -0.02em;
}

.risk-score-good .risk-score-value {
  color: var(--score-good);
}

.risk-score-mid .risk-score-value {
  color: var(--score-mid);
}

.risk-score-bad .risk-score-value {
  color: var(--score-bad);
}

.risk-score-warning {
  border-color: color-mix(in srgb, var(--score-mid) 50%, var(--line));
}

.risk-score-factors {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.risk-score-factor {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel-strong) 92%, transparent);
}

.risk-score-icon {
  font-weight: 900;
}

.risk-score-factor-pass .risk-score-icon {
  color: var(--score-good);
}

.risk-score-factor-fail .risk-score-icon {
  color: var(--score-bad);
}

.risk-score-factor-n\/a .risk-score-icon {
  color: var(--muted);
}

.risk-score-line {
  color: var(--muted);
}

.risk-score-line > a,
.risk-score-line > span:first-child {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.risk-score-line > a:hover {
  color: var(--brand);
}

.risk-score-meta {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.risk-score-meta span {
  color: var(--muted);
  font-size: .92rem;
}

/* heading-density-tuning */
body .code-slab .hero-copy h1 {
  max-width: none;
  font-size: clamp(1.2rem, 1.5vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: 0;
}

body .prose-panel h2,
body .prose-panel-rich h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  line-height: 1.25;
  max-width: none;
}

/* 2026-05-04 compact layout pass */
body .site-main {
  padding-top: 14px;
}

body .section-block {
  margin-top: 16px;
  padding: 18px;
}

body .section-block-first {
  margin-top: 0;
}

body .hero-slab {
  padding: 22px;
  gap: 18px;
}

body .signal-strip,
body .overview-strip {
  margin-top: 18px;
  gap: 12px;
}

body .catalog-grid,
body .directory-deck,
body .section-chip-grid,
body .scenario-grid {
  gap: 12px;
}

body .section-heading-row {
  gap: 12px;
}

body .section-heading-row p,
body .hero-summary,
body .hero-note {
  max-width: 52ch;
}

body .prose-panel strong,
body .prose-panel-rich strong {
  font-weight: 400;
  color: inherit;
}

body .prose-panel em,
body .prose-panel-rich em {
  font-style: normal;
}

body .split-block-balanced {
  grid-template-columns: 1fr;
}

@media (max-width: 920px) {
  body .site-main {
    padding-top: 12px;
  }

  body .hero-slab {
    padding: 18px;
  }

  body .section-block {
    padding: 16px;
  }

  body .section-heading-row {
    align-items: start;
  }

  body .section-heading-row p,
  body .hero-summary,
  body .hero-note {
    max-width: none;
  }
}

@media (max-width: 760px) {
  body .section-block {
    margin-top: 12px;
    padding: 14px;
  }

  body .hero-slab {
    padding: 16px;
  }

  body .section-heading-row h2 {
    font-size: 1.35rem;
  }

  body .signal-strip,
  body .overview-strip {
    margin-top: 14px;
  }
}

/* 2026-05-04 catalog polish and QA pass */
body .hero-slab,
body .section-block,
body .info-panel,
body .list-preview-panel,
body .copy-panel,
body .metric-panel,
body .directory-tile,
body .catalog-card,
body .section-chip-card,
body .signal-card,
body .overview-card,
body .note-panel,
body .source-card,
body .search-page-card,
body .glossary-card,
body .compare-overview-card,
body .compare-matrix,
body .compare-field,
body .scenario-card {
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(17,34,40,.055);
}

body .site-main {
  padding-top: 10px;
}

body .section-block {
  padding: 16px;
}

body .hero-slab {
  padding: 18px;
}

body .list-slab .hero-copy h1 {
  max-width: none;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  line-height: 1.05;
}

body .section-heading-row {
  align-items: center;
}

body .section-heading-row p {
  max-width: 58ch;
}

body .section-chip-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

body .section-chip-card {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 2px 8px;
  padding: 11px;
}

body .section-chip-card span {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

body .section-chip-card strong {
  max-width: none;
  margin: 0;
  font-size: .98rem;
  line-height: 1.08;
}

body .section-chip-card small {
  grid-column: 2;
  margin-top: 2px;
}

body .directory-deck {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
}

body .directory-tile {
  padding: 13px 14px;
  gap: 5px;
  border-radius: 14px;
}

body .directory-tile strong {
  max-width: none;
  margin: 0;
  font-size: 1rem;
  line-height: 1.15;
}

body .directory-tile p {
  font-size: .9rem;
  line-height: 1.45;
}

body .directory-tile span {
  width: fit-content;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 10%, white 90%);
}

body .prose-panel-rich p,
body .prose-panel p,
body .info-panel p {
  max-width: 88ch;
}

body .prose-panel-rich h2 {
  margin-top: 22px;
}

body .prose-panel-rich table {
  font-size: .95rem;
}

body .faq-list {
  gap: 10px;
}

body .faq-list details {
  border-radius: 12px;
}

body .page-tail-notes {
  margin-top: 18px;
}

@media (max-width: 760px) {
  body .section-chip-grid,
  body .directory-deck {
    grid-template-columns: 1fr;
  }

  body .hero-slab,
body .section-block {
  padding: 12px;
}

  body .section-heading-row {
    gap: 8px;
  }
}

/* 2026-05-08 readability scale pass */
body .hero-copy h1,
body .home-slab .hero-copy h1,
body .list-slab .hero-copy h1,
body .list-slab-compact .hero-copy h1,
body .code-slab .hero-copy h1,
body .trust-slab .hero-copy h1,
body .compare-slab .hero-copy h1 {
  max-width: min(100%, 1120px);
  font-size: clamp(1.8rem, 2.45vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}

body .hero-summary,
body .hero-note,
body .section-heading-row p {
  max-width: min(100%, 104ch);
}

body .prose-panel-rich p,
body .prose-panel p,
body .info-panel p {
  max-width: min(100%, 118ch);
}

body .prose-panel-rich,
body .prose-panel,
body .info-panel {
  text-align: left;
}

body .home-slab .metric-panel-contrast {
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,250,242,.9));
  color: var(--ink);
  border-color: var(--line);
}

body .home-slab .metric-panel-contrast strong,
body .home-slab .metric-panel-contrast span {
  color: var(--ink);
  text-shadow: none;
}

body .home-slab .metric-panel-contrast small {
  color: var(--muted);
  text-shadow: none;
}

body .profession-index-block {
  margin: 18px 0 16px;
}

body .profession-index-block > p {
  max-width: 920px;
  margin: 6px 0 14px;
}

body .profession-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body .profession-hub-card {
  display: grid;
  gap: 6px;
  min-height: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,250,242,.88));
  box-shadow: 0 12px 26px rgba(38, 26, 14, .07);
  color: var(--ink);
  text-decoration: none;
}

body .profession-hub-card:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 79, 42, .45);
  box-shadow: 0 16px 34px rgba(38, 26, 14, .11);
}

body .profession-hub-card small {
  color: var(--accent-text);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body .profession-hub-card strong {
  font-family: var(--font-sans);
  font-size: clamp(.96rem, 1.1vw, 1.1rem);
  line-height: 1.12;
}

body .profession-hub-card span,
body .profession-hub-card p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  body .hero-copy h1,
  body .home-slab .hero-copy h1,
  body .list-slab .hero-copy h1,
  body .list-slab-compact .hero-copy h1,
  body .code-slab .hero-copy h1,
  body .trust-slab .hero-copy h1,
  body .compare-slab .hero-copy h1 {
    font-size: clamp(1.45rem, 7vw, 2.05rem);
    line-height: 1.12;
  }

  body .profession-hub-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  body .profession-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body .contact-hero-grid,
body .network-grid,
body .network-stats,
body .contact-tail-actions {
  display: grid;
  gap: 16px;
}

body .contact-hero-grid {
  grid-template-columns: 1.15fr .9fr .9fr;
  margin: 0 0 34px;
}

body .contact-channel,
body .network-card,
body .contact-tail-cta {
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 94% 10%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 34%),
    var(--panel-strong);
}

body .contact-channel {
  padding: 24px;
}

body .contact-channel-primary {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, transparent), transparent 54%),
    var(--panel-strong);
}

body .contact-channel small,
body .network-card small {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body .contact-channel h2,
body .contact-tail-cta h2,
body .network-region-heading h2 {
  margin: 0;
  font-family: var(--display);
}

body .contact-channel p {
  margin: 10px 0 0;
}

body .contact-channel a,
body .network-card strong,
body .contact-tail-actions a {
  font-weight: 900;
}

body .network-intro {
  max-width: 920px;
  margin-bottom: 28px;
}

body .network-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

body .network-stats span {
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-strong) 92%, transparent);
  font-weight: 850;
}

body .network-region {
  margin-top: 34px;
}

body .network-region-heading {
  align-items: end;
  margin-bottom: 16px;
}

body .network-region-heading p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

body .network-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body .network-card {
  display: flex;
  min-height: 230px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

body .network-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
  background:
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--brand) 15%, transparent), transparent 36%),
    var(--panel-strong);
}

body .network-card strong {
  display: block;
  margin: 0 0 10px;
  font: 900 1.32rem/1.12 var(--display);
}

body .network-card p {
  margin: 0;
  color: var(--muted);
}

body .network-card span {
  margin-top: 16px;
  color: var(--brand);
  font-weight: 900;
}

body .contact-tail-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 34px;
  padding: 26px;
}

body .contact-tail-cta p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
}

body .contact-tail-actions {
  grid-template-columns: 1fr;
  min-width: min(360px, 100%);
}

body .contact-tail-actions a {
  display: block;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 92%, transparent);
  text-align: center;
}

@media (max-width: 980px) {
  body .contact-hero-grid,
  body .network-grid {
    grid-template-columns: 1fr 1fr;
  }

  body .contact-tail-cta {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  body .contact-hero-grid,
  body .network-grid,
  body .network-stats {
    grid-template-columns: 1fr;
  }

  body .network-card {
    min-height: 0;
  }
}
