
/* Fraunces variable (500-700), self-hosted — no third-party font requests */
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url('/assets/fonts/fraunces-latin.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;
}
:root {
  --accent: #0f766e;
  --accent-dark: color-mix(in srgb, var(--accent) 78%, #10151b);
  --accent-tint: color-mix(in srgb, var(--accent) 8%, #ffffff);
  --accent-line: color-mix(in srgb, var(--accent) 22%, #ffffff);
  --ink: #17212e; --dim: #5a6b7b; --line: #e6eaf0; --bg: #ffffff; --bg-soft: #f6f8fb;
  --ui: -apple-system, 'Segoe UI', Roboto, system-ui, Helvetica, Arial, sans-serif;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--ui); font-size: 18px; line-height: 1.72; color: var(--ink);
       background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; border-radius: 8px; }

/* ---- header ---- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92);
   backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
   box-shadow: 0 1px 8px rgba(20,30,45,.04); }
.topbar .inner { max-width: 1140px; margin: 0 auto; padding: 15px 24px; display: flex;
   align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700;
   font-size: 22px; letter-spacing: -.01em; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; color: var(--accent); }
.brand b { color: var(--accent-dark); }
.nav { margin-left: auto; display: flex; gap: 22px; font-weight: 600; font-size: 15.5px; }
.nav a { color: var(--dim); } .nav a:hover { color: var(--accent-dark); text-decoration: none; }
.nav-toggle { display: none; }
.burger { display: none; margin-left: auto; padding: 6px; cursor: pointer; color: var(--ink);
   border-radius: 8px; }
.burger:hover { background: var(--bg-soft); }
@media (max-width: 760px){
  .burger { display: inline-flex; align-items: center; }
  .nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; gap: 0; margin: 10px 0 0; }
  .nav a { padding: 13px 4px; border-top: 1px solid var(--line); font-size: 16.5px; }
  .nav-toggle:checked ~ .nav { display: flex; }
}

/* ---- layout ---- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.layout { max-width: 1140px; margin: 0 auto; padding: 44px 24px 72px; display: grid;
   grid-template-columns: minmax(0,1fr) 300px; gap: 56px; align-items: start; }
.content { min-width: 0; max-width: 720px; }
.sidebar { font-family: var(--ui); }
.solo { max-width: 780px; margin: 0 auto; padding: 44px 24px 72px; }
@media (max-width: 900px){ .layout { grid-template-columns: 1fr; gap: 40px; }
   .sidebar { position: static; } }

/* ---- typography ---- */
h1 { font-family: var(--display); font-weight: 600; font-size: 2.4rem; line-height: 1.14;
     letter-spacing: -.015em; margin: .3em 0 .4em; }
h2 { font-family: var(--display); font-weight: 600; font-size: 1.62rem; line-height: 1.22;
     margin: 1.7em 0 .5em; }
h3 { font-size: 1.22rem; margin: 1.4em 0 .4em; }
p { margin: 0 0 1.05em; } li { margin: .3em 0; }
.content ul, .content ol { padding-left: 1.3em; }

/* ---- byline + trust ---- */
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--dim);
   font-size: 15px; margin: 0 0 1.4em; padding-bottom: 1.1em; border-bottom: 1px solid var(--line); }
.byline .who { font-weight: 600; color: var(--ink); }
.trust { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-tint);
   color: var(--accent-dark); font-weight: 600; font-size: 13.5px; padding: 4px 10px;
   border-radius: 999px; border: 1px solid var(--accent-line); }
.crumbs { font-size: 13.5px; color: var(--dim); margin: 0 0 6px; }
.crumbs a { color: var(--dim); } .crumbs a:hover { color: var(--accent-dark); }

/* ---- callouts ---- */
blockquote { margin: 1.3em 0; }
blockquote.full-guide-callout, blockquote.article-cta, .quick-answer {
   padding: 1em 1.2em; background: var(--accent-tint); border: 1px solid var(--accent-line);
   border-left: 4px solid var(--accent); border-radius: 10px; font-size: 16.5px; }
.quick-answer { margin: 0 0 1.6em; }
.quick-answer .qa-label, .full-guide-label { display: block; font-weight: 800; color: var(--accent-dark);
   font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3em; }

/* ---- table of contents ---- */
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
   padding: 16px 20px; margin: 0 0 1.8em; }
.toc .t { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em;
   color: var(--dim); margin-bottom: .5em; }
.toc ol { margin: 0; padding-left: 1.2em; } .toc li { margin: .25em 0; }
.toc a { color: var(--accent-dark); font-weight: 600; }

/* ---- hero (home) ---- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
   background: radial-gradient(1100px 460px at 82% -20%, var(--accent-tint), transparent 70%),
               linear-gradient(165deg, var(--accent-tint), #fff 62%); }
.hero .inner { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto;
   padding: 84px 24px 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700;
   letter-spacing: .13em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero h1 { font-size: 3.1rem; max-width: 17ch; margin: 0 0 .3em; }
.hero p { font-size: 1.18rem; color: var(--dim); max-width: 56ch; margin-bottom: 1.5em; }
.hero .cta { display: inline-flex; align-items: center; gap: 8px; background: var(--accent);
   color: #fff; font-weight: 700; padding: 13px 24px; border-radius: 11px; font-size: 16px;
   box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 30%, transparent); }
.hero .cta:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }
.hero-trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap;
   gap: 12px 26px; font-size: 15px; color: var(--ink); font-weight: 500; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--accent); flex: none; }
.hero-art { position: absolute; right: -70px; top: 50%; transform: translateY(-50%);
   color: var(--accent); opacity: .06; pointer-events: none; z-index: 0; }
@media (max-width: 820px){ .hero-art { display: none; } .hero h1 { font-size: 2.4rem; } }

/* ---- homepage sections ---- */
.home-sec { padding: 72px 0 76px; }
.home-sec.alt { background: var(--bg-soft); border-top: 1px solid var(--line);
   border-bottom: 1px solid var(--line); }
.home-sec.alt .card { border-color: #dde3ea; }
.section-head { text-align: left; margin: 0 0 40px; }
.badge-row { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.badge-row::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sec-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-dark);
   color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
   padding: 7px 15px; border-radius: 999px; white-space: nowrap; }
.sec-badge svg { color: var(--accent-line); }
.section-head .section-h { margin: 0 0 8px; font-size: 2rem; }
.section-sub { color: var(--dim); font-size: 1.08rem; margin: 0; max-width: 62ch; }
.more-link { text-align: center; margin: 44px 0 0; }
.cta.ghost { background: transparent; color: var(--accent-dark); border: 2px solid var(--accent-line);
   box-shadow: none; }
.cta.ghost:hover { background: var(--accent-tint); color: var(--accent-dark); }

/* ---- 3-col card grid (topic cards on home + /topics/) ---- */
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px){ .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .cards-3 { grid-template-columns: 1fr; } }

/* ---- cards (editorial) ---- */
.section-h { font-family: var(--display); font-weight: 600; font-size: 1.7rem; margin: 2em 0 .7em;
   letter-spacing: -.01em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px;
   padding: 0; list-style: none; margin: 0; }
.card { position: relative; background: #fff; border: 1px solid var(--line);
   border-radius: 16px; overflow: hidden; box-shadow: 0 6px 22px rgba(20,30,45,.05);
   transition: transform .16s ease, box-shadow .16s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 46px rgba(20,30,45,.13); }
.card::before { content: ""; position: absolute; top: 0; left: 26px; width: 52px; height: 4px;
   background: var(--accent); border-radius: 0 0 3px 3px; z-index: 1; }
/* equal heights per row: grid stretches the li; the link is a flex column, the body absorbs
   the slack (below the excerpt) and the foot pins to the bottom */
.card > a { display: flex; flex-direction: column; height: 100%; color: inherit; }
.card > a:hover { text-decoration: none; }
.card .body { padding: 28px 28px 22px; flex: 1; }
.chip { display: inline-block; background: var(--accent-tint); color: var(--accent-dark);
   font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
   padding: 4px 11px; border-radius: 999px; }
.card .title { font-family: var(--display); font-weight: 600; font-size: 1.46rem; line-height: 1.2;
   letter-spacing: -.01em; color: var(--ink); margin: 15px 0 11px; }
.card .excerpt { color: var(--dim); font-size: .98rem; line-height: 1.55; margin: 0;
   display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 26px;
   background: var(--accent-tint); border-top: 1px solid var(--accent-line); }
.card .foot .meta { display: flex; flex-direction: column; gap: 1px; color: var(--ink);
   font-size: 14px; font-weight: 600; }
.card .foot .meta .rt { color: var(--dim); font-weight: 500; font-size: 13px; }
.card .foot .go { color: var(--accent-dark); font-weight: 600; font-size: 12px; letter-spacing: .02em;
   text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid var(--accent-line);
   padding-bottom: 2px; transition: border-color .15s; }
.card:hover .foot .go { border-color: var(--accent); }

/* ---- related band (full-width under post + sidebar, homepage-style cards) ---- */
.related-band { padding: 56px 0 64px; margin-top: 24px; }

/* ---- ad slots (empty unless real ad code is configured) ---- */
.adslot { margin: 1.8em 0; text-align: center; }

/* ---- sidebar overlay cards ---- */
.side-list .t { font-size: 1.12rem; font-weight: 800; margin: 0 0 14px; }
.side-list ul { list-style: none; padding: 0; margin: 0; }
.ov-card { position: relative; display: flex; align-items: flex-end; min-height: 215px;
   border-radius: 14px; overflow: hidden; margin-bottom: 14px; background-size: cover;
   background-position: center; background-color: var(--accent-dark);
   box-shadow: 0 4px 14px rgba(20,30,45,.08); transition: transform .15s, box-shadow .15s; }
.ov-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20,30,45,.18);
   text-decoration: none; }
.ov-card::before { content: ""; position: absolute; inset: 0;
   background: linear-gradient(180deg, rgba(13,19,26,.18) 0%, rgba(13,19,26,.55) 45%,
   rgba(13,19,26,.93) 100%); }
.ov-body { position: relative; padding: 16px 17px 17px; }
.ov-chip { display: inline-block; background: var(--accent); color: #fff; font-size: 11.5px;
   font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 6px;
   margin-bottom: 9px; }
.ov-title { color: #fff; font-weight: 650; font-size: 15.5px; line-height: 1.38;
   margin-bottom: 7px; }
.ov-go { color: color-mix(in srgb, var(--accent) 45%, #fff); font-weight: 600;
   font-size: 14px; }
.ov-card:hover .ov-go { text-decoration: underline; }

/* ---- sidebar CTA (error-code lookup) ---- */
.side-cta { background: linear-gradient(160deg, var(--accent-dark), var(--accent));
   color: #fff; border-radius: 16px; padding: 26px 24px; margin: 0 0 28px;
   box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 28%, transparent); }
.side-cta .ic { display: inline-flex; align-items: center; justify-content: center;
   width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.16);
   margin-bottom: 14px; }
.side-cta .t { font-family: var(--display); font-weight: 600; font-size: 1.3rem;
   line-height: 1.2; margin-bottom: 8px; }
.side-cta p { font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.85);
   margin: 0 0 18px; }
.side-cta .btn { display: block; text-align: center; background: #fff;
   color: var(--accent-dark); font-weight: 700; font-size: 14.5px; padding: 11px 16px;
   border-radius: 10px; }
.side-cta .btn:hover { text-decoration: none; transform: translateY(-1px);
   box-shadow: 0 6px 16px rgba(0,0,0,.18); }

/* ---- tables ---- */
table { border-collapse: collapse; width: 100%; font-size: 16px; margin: 1.2em 0; }
th { background: var(--bg-soft); } td, th { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }

/* ---- site footer (NOTE: .sitefoot, not .foot — .foot is the card footer) ---- */
.sitefoot { background: #10161e; color: #aeb9c6; margin-top: 72px; font-size: 15px; }
main:has(> .home-sec.alt:last-child) + .sitefoot { margin-top: 0; }  /* home: grey meets dark */
.sitefoot .cols { max-width: 1120px; margin: 0 auto; padding: 40px 20px 20px; display: grid;
   grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px){ .sitefoot .cols { grid-template-columns: 1fr; gap: 22px; } }
.sitefoot h4 { color: #fff; font-size: 15px; margin: 0 0 .7em; }
.sitefoot a { color: #aeb9c6; display: block; padding: 3px 0; } .sitefoot a:hover { color: #fff; }
.sitefoot .brand-f { font-family: var(--display); color: #fff; font-weight: 600; font-size: 20px; margin-bottom: .5em; }
.sitefoot .bar { border-top: 1px solid #232c38; margin-top: 12px; padding: 16px 20px; font-size: 13px;
   color: #7f8a98; max-width: 1120px; margin-left: auto; margin-right: auto; }

/* ---- card image, archives, pagination, article hero image ---- */
.card-img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 0; }
.hero-img { margin: 0 0 1.6em; }
.hero-img img { width: 100%; border-radius: 12px; }
.page-head { margin: 44px 0 44px; }
.page-head .crumbs { margin-bottom: 18px; }
.page-head h1 { font-size: 2.3rem; margin: 0 0 10px; }
.page-head .badge-row { margin-bottom: 20px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 34px 0 8px;
   font-weight: 600; font-size: 15px; }
.pagination a, .pagination .cur { padding: 9px 15px; border: 1px solid var(--line); border-radius: 9px; }
.pagination a:hover { border-color: var(--accent-line); text-decoration: none; }
.pagination .cur { background: var(--accent); border-color: var(--accent); color: #fff; }
.topic-list { margin: 1.5em 0; }
