@layer reset, base, layout, components, utilities;

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/atkinson-hyperlegible-next-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/jetbrains-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/jetbrains-mono-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Body Fallback";
  src: local("Arial");
  size-adjust: 98%;
  ascent-override: 95%;
  descent-override: 24%;
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body, h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; padding: 0; }
  ul, ol { list-style-position: outside; }
  table { border-collapse: collapse; border-spacing: 0; }
  svg { display: inline-block; vertical-align: -2px; flex: none; }
}

@layer base {
  :root {
    --pageBg: #FFFFFF;
    --panelBg: #F4F5F7;
    --inkMain: #111827;
    --inkSoft: #5B6472;
    --lineMain: #DADDE3;
    --accentMain: #334155;
    --fontBody: "Atkinson Hyperlegible Next", "Body Fallback", Arial, sans-serif;
    --fontMono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
    --radiusBase: 4px;
    --measure: 46rem;
  }
  body {
    background: var(--pageBg);
    color: var(--inkMain);
    font-family: var(--fontBody);
    font-size: 16px;
    line-height: 1.6;
  }
  h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; }
  h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); line-height: 1.25; }
  h3 { font-size: 1.08rem; line-height: 1.35; }
  a { color: var(--accentMain); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  a:hover { color: var(--inkMain); text-decoration-thickness: 2px; }
  a:focus-visible, summary:focus-visible { outline: 2px solid var(--inkMain); outline-offset: 2px; border-radius: 2px; }
  strong { font-weight: 700; }
  time { white-space: nowrap; }
}

@layer layout {
  .tabStrip { background: var(--panelBg); border-bottom: 1px solid var(--lineMain); }
  .tabStripInner { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; align-items: stretch; column-gap: 28px; }
  .pageShell { max-width: 1280px; margin: 0 auto; padding: 0 20px 72px; }
  .pageHead { padding: 44px 0 26px; max-width: 58rem; }
  .docSection { padding: 34px 0 6px; border-top: 1px solid var(--lineMain); margin-top: 34px; }
  .docSection > * + * { margin-top: 14px; }
  .docSection > p, .docSection > ul, .docSection > ol, .docSection > h3, .docSection > dl { max-width: var(--measure); }
  .footLine { border-top: 1px solid var(--lineMain); background: var(--panelBg); }
  .footLineInner { max-width: 1280px; margin: 0 auto; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 6px 26px; font-family: var(--fontMono); font-size: 13px; color: var(--inkMain); }
}

@layer components {
  .siteName { font-weight: 700; font-size: 1.05rem; color: var(--inkMain); text-decoration: none; padding: 14px 0; display: inline-flex; align-items: center; gap: 10px; }
  .siteMark { width: 26px; height: 26px; border-radius: var(--radiusBase); }
  .tabList { display: flex; flex-wrap: wrap; list-style: none; gap: 0 4px; align-items: stretch; }
  .tabList a { display: block; padding: 17px 10px 14px; font-family: var(--fontMono); font-size: 13px; color: var(--inkMain); text-decoration: none; border-bottom: 3px solid transparent; }
  .tabList a:hover { border-bottom-color: var(--lineMain); }
  .tabList a[aria-current="page"] { border-bottom-color: var(--accentMain); color: var(--accentMain); font-weight: 500; }

  .monoTag { display: block; font-family: var(--fontMono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accentMain); margin-bottom: 12px; }
  .crumbLine { font-family: var(--fontMono); font-size: 13px; color: var(--inkSoft); margin-bottom: 14px; }
  .crumbLine ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 8px; }
  .crumbLine li + li::before { content: "/"; margin-right: 8px; color: var(--inkSoft); }
  .leadAnswer { margin-top: 18px; font-size: 1.12rem; line-height: 1.55; max-width: 52rem; }
  .metaLine { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--lineMain); border-left: 3px solid var(--accentMain); border-radius: var(--radiusBase); font-size: 14px; color: var(--inkMain); max-width: 52rem; }
  .metaLine b { font-family: var(--fontMono); font-weight: 500; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accentMain); margin-right: 6px; }
  .metaLine span + span { margin-left: 4px; }

  .matrixScroll { overflow-x: auto; border: 1px solid var(--lineMain); border-radius: var(--radiusBase); margin-top: 8px; }
  .compareMatrix { width: 100%; min-width: 720px; font-size: 14px; line-height: 1.4; }
  .compareMatrix caption { caption-side: top; text-align: left; padding: 12px 14px; font-size: 14px; color: var(--inkSoft); border-bottom: 1px solid var(--lineMain); }
  .compareMatrix caption span { display: inline-block; position: sticky; left: 14px; max-width: min(100%, calc(100vw - 62px)); }
  .compareMatrixHead th { font-family: var(--fontMono); font-weight: 500; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; background: var(--panelBg); color: var(--inkMain); padding: 11px 12px; border-bottom: 1px solid var(--lineMain); text-align: center; white-space: nowrap; }
  .compareMatrix td, .compareMatrix tbody th { padding: 10px 12px; border-bottom: 1px solid var(--lineMain); text-align: center; vertical-align: middle; }
  .compareMatrix td + td, .compareMatrix th + td, .compareMatrix th + th { border-left: 1px solid var(--lineMain); }
  .compareMatrix tbody tr:last-child > * { border-bottom: 0; }
  .compareMatrix tbody th, .compareMatrixHead th:first-child { text-align: left; position: sticky; left: 0; background: var(--pageBg); font-weight: 700; min-width: 148px; box-shadow: 1px 0 0 var(--lineMain); }
  .compareMatrixHead th:first-child { background: var(--panelBg); font-weight: 500; }
  .compareMatrix .rankCell { font-family: var(--fontMono); width: 56px; }
  .cellYes { color: var(--inkMain); font-weight: 700; white-space: nowrap; }
  .cellNo { color: var(--inkSoft); white-space: nowrap; }
  .cellMuted { color: var(--inkSoft); }
  .cellLink { display: block; font-size: 13px; margin-top: 2px; }
  .operatorNote td { text-align: left; font-size: 14px; color: var(--inkMain); background: var(--pageBg); }
  .paidTag { display: inline-block; margin-left: 6px; font-family: var(--fontMono); font-size: 13px; font-weight: 500; color: var(--inkMain); border: 1px solid var(--inkMain); border-radius: var(--radiusBase); padding: 0 6px; }

  .statRow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--lineMain); border-radius: var(--radiusBase); margin-top: 22px; max-width: 58rem; }
  .statRow div { padding: 14px 16px; border-right: 1px solid var(--lineMain); }
  .statRow div:last-child { border-right: 0; }
  .statRow dt { font-family: var(--fontMono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--inkSoft); }
  .statRow dd { font-family: var(--fontMono); font-weight: 500; font-size: 1.7rem; line-height: 1.2; margin-top: 4px; }

  .entryGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 0; border-top: 1px solid var(--lineMain); border-left: 1px solid var(--lineMain); margin-top: 18px; }
  .entryCard { padding: 18px 18px 20px; border-right: 1px solid var(--lineMain); border-bottom: 1px solid var(--lineMain); scroll-margin-top: 12px; }
  .entryCard h3 { margin-bottom: 8px; }
  .entryCard p { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
  .entryCard p + p { margin-top: 8px; }
  .entrySource { font-size: 14px; color: var(--inkSoft); }

  .plainList { padding-left: 1.2rem; }
  .plainList li + li { margin-top: 8px; }
  .checkList { list-style: none; }
  .checkList li { position: relative; padding-left: 28px; }
  .checkList li + li { margin-top: 10px; }
  .checkList li svg { position: absolute; left: 0; top: 5px; }
  .pairTable { width: 100%; min-width: 620px; font-size: 15px; }
  .pairTable th, .pairTable td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--lineMain); }
  .pairTable thead th { font-family: var(--fontMono); font-weight: 500; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; background: var(--panelBg); }
  .pairTable tbody th { font-weight: 700; width: 22%; }
  .pairTable td + td, .pairTable th + td, .pairTable th + th { border-left: 1px solid var(--lineMain); }
  .pairTable tbody tr:last-child > * { border-bottom: 0; }
  .stepList { padding-left: 1.5rem; }
  .stepList li + li { margin-top: 10px; }
  .faqItem + .faqItem { margin-top: 20px; }
  .faqItem h3 { margin-bottom: 6px; }
  .sourceList { padding-left: 1.4rem; font-size: 15px; overflow-wrap: anywhere; }
  .sourceList li + li { margin-top: 8px; }
  .citeLine { font-family: var(--fontMono); font-size: 13px; line-height: 1.6; padding: 12px 14px; background: var(--panelBg); border-radius: var(--radiusBase); overflow-wrap: anywhere; }
  .mailLine { font-family: var(--fontMono); font-size: 1.25rem; font-weight: 500; overflow-wrap: anywhere; }
  .linkRow { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; font-family: var(--fontMono); font-size: 14px; }
}

@layer utilities {
  .srOnly { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  @media (max-width: 640px) {
    .tabStripInner { column-gap: 12px; padding: 0 14px; }
    .tabList a { padding: 9px 8px 8px; }
    .siteName { padding: 12px 0 2px; width: 100%; }
    .pageShell { padding: 0 14px 56px; }
    .pageHead { padding-top: 28px; }
    .statRow div { border-right: 0; border-bottom: 1px solid var(--lineMain); }
    .statRow div:last-child { border-bottom: 0; }
    .footLineInner { padding: 16px 14px; }
    .compareMatrix { min-width: 600px; font-size: 13px; }
    .compareMatrix td, .compareMatrix tbody th, .compareMatrixHead th { padding: 9px 8px; }
    .compareMatrixHead th { white-space: normal; letter-spacing: 0; font-size: 11px; }
    .compareMatrix tbody th, .compareMatrixHead th:first-child { min-width: 102px; max-width: 112px; overflow-wrap: anywhere; }
  }
}

.quickBrief {
  background: var(--panelBg);
  border: 1px solid var(--lineMain);
  border-left: 3px solid var(--accentMain);
  border-radius: var(--radiusBase);
  padding: 16px 20px;
  margin: 18px 0 6px;
}
.quickBriefTag {
  font-family: var(--fontMono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accentMain);
  margin: 0 0 6px;
}
.quickBrief h2 {
  font-size: 1.08rem;
  margin: 0 0 8px;
  color: var(--inkMain);
}
.quickBrief p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.56;
  color: var(--inkMain);
}
.quickBriefFacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 16px;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--lineMain);
}
.quickBriefFacts dt {
  font-size: 12px;
  color: var(--inkSoft);
  margin: 0 0 2px;
}
.quickBriefFacts dd {
  margin: 0;
  font-size: 14px;
  color: var(--inkMain);
  font-weight: 500;
}
