/* language 19 criteria-compare cards — from docs/proto/v05/19-criteria-compare/styles.css (approved mockup, values = tokens.json).
   Static-guide changes: provider cards carry posts/topics, post tables become chip+attribute cards on phones, no ad parts. */
:root {
  --bg: #FFFFFF;
  --band: #0E4A5C;
  --band-text: #FFFFFF;
  --band-name: #F4E58A;
  --chip-bg: #E6F1F4;
  --chip-text: #0E4A5C;
  --ink: #000000;
  --body: #333D4B;
  --heading: #191F28;
  --muted: #6B7684;
  --label: #4E5968;
  --link: #1A5FB4;
  --line: #E0E0E0;
  --card-line: #D8D9DA;
  --soft: #F9FAFB;
  --softer: #F2F4F6;
  --button: #0E4A5C;
  --button-soft: rgba(14, 74, 92, 0.10);
  --frame: 1152px;
  --prose: 700px;
  --gutter: 24px;
  --r-card: 8px;
  --r-chip: 4px;
  --r-btn: 2px;
  --r-fig: 10px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; word-break: keep-all; overflow-wrap: break-word; }
[id] { scroll-margin-top: 24px; }
a { color: var(--link); text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.frame { max-width: calc(var(--frame) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: #fff; color: var(--ink); padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; }
.skip:focus { top: 12px; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- header (nerdwallet: 82 tall, logo + word nav + buttons) ---------- */
.hd { border-bottom: 1px solid var(--line); background: #fff; }
.hd .frame { height: 82px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.logo svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--band); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.hd-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: var(--r-btn); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-btn); font: 700 14px/1 var(--font); letter-spacing: 0.02em; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.btn-fill { background: var(--button); color: #fff; }
.btn-fill:hover { background: #0A3946; color: #fff; }
.btn-soft { background: var(--button-soft); color: var(--button); border-radius: 10px; }
.btn .ic { width: 18px; height: 18px; }
.menu-btn { display: none; }
.mnav { display: none; border-top: 1px solid var(--line); }
.mnav.open { display: block; }
.mnav a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--gutter); color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }

/* ---------- topic row (nerdwallet category icons) ---------- */
.topics { border-bottom: 1px solid var(--line); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04); }
.topics ul { list-style: none; margin: 0 auto; padding: 10px 0 8px; display: flex; justify-content: flex-start; gap: 8px 20px; }
.topics a { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 96px; max-width: 132px; min-height: 76px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 20px; text-align: center; }
.topics a:hover { color: var(--band); }
.topics .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--chip-bg); color: var(--band); display: flex; align-items: center; justify-content: center; flex: none; }
.topics .dot .ic { width: 22px; height: 22px; }

/* ---------- title band (one solid band per page) ---------- */
.band { background: var(--band); color: var(--band-text); }
.band .frame { padding-top: 30px; padding-bottom: 34px; }
.crumbs { display: flex; align-items: center; justify-content: space-between; gap: 0 16px; flex-wrap: wrap; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; }
.crumbs li { display: flex; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.crumbs li + li::before { content: '›'; margin: 0 12px; opacity: 0.8; }
.crumbs a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .home-ic { width: 20px; height: 20px; color: var(--band-name); }
.disc-link { color: #fff; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.disc-link:hover { color: var(--band-name); }
.band h1 { margin: 10px 0 14px; font-size: 40px; font-weight: 600; line-height: 52px; letter-spacing: -0.01em; max-width: 1000px; }
.byline { display: flex; align-items: center; gap: 12px; }
.faces { display: flex; flex: none; }
.faces span { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--band); border: 2px solid var(--band); display: flex; align-items: center; justify-content: center; }
.faces span + span { margin-left: -9px; }
.faces .ic { width: 18px; height: 18px; }
.byline p { margin: 0; font-size: 13px; line-height: 19px; }
.byline b { color: var(--band-name); font-weight: 600; }
.byline a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }
.badges { display: inline-flex; align-items: center; gap: 12px; margin: 10px 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.badges .ok { display: inline-flex; align-items: center; gap: 4px; }
.badges .ok .ic { width: 16px; height: 16px; stroke-width: 2.2; }
.badges .sep { width: 1px; height: 14px; background: rgba(255, 255, 255, 0.5); }
.badges .alt { color: var(--band-name); }
.lead { margin: 20px 0 0; max-width: 1060px; font-size: 17px; line-height: 27px; }
.lead strong { font-weight: 700; }

/* medical variant: one notice strip right under the band (home) */
.notice { margin: 0; background: var(--softer); color: var(--body); font-size: 14px; line-height: 22px; padding: 11px var(--gutter); text-align: center; }

/* ---------- sections ---------- */
main { display: block; }
.sec { margin-top: 56px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sec-head h2, .prose h2 { margin: 0; font-size: 26px; font-weight: 700; line-height: 36px; color: var(--heading); letter-spacing: -0.01em; }
.sec-head p { margin: 0; color: var(--muted); font-size: 14px; line-height: 22px; }
.sec-note { margin: 12px 0 0; font-size: 14px; line-height: 22px; color: var(--muted); }

/* ---------- criteria card (chip -> head -> attribute grid) ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.card { border: 1px solid var(--card-line); border-radius: var(--r-card); background: #fff; overflow: hidden; }
.card-body { padding: 24px 24px 0; }
.pick-chip { display: inline-flex; align-items: center; gap: 10px; background: var(--chip-bg); color: var(--chip-text); border-radius: var(--r-chip); padding: 8px 16px; margin: 0 0 24px; font-size: 16px; font-weight: 500; line-height: 24px; }
.pick-chip .ic { width: 22px; height: 22px; stroke-width: 2; }
.pick-chip b { font-weight: 700; }
.card-head { display: grid; grid-template-columns: 163px minmax(0, 1fr) 256px; gap: 24px; align-items: start; }
.tile { width: 163px; aspect-ratio: 163 / 105; border-radius: var(--r-chip); background: var(--soft); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; gap: 2px; overflow: hidden; }
.tile small { font-size: 12px; color: var(--muted); line-height: 16px; }
.tile strong { font-size: 15px; line-height: 20px; color: var(--ink); font-weight: 700; }
.tile .ic { color: var(--band); width: 28px; height: 28px; margin-bottom: auto; }
.tile.photo { padding: 0; }
.tile.photo img { width: 100%; height: 100%; object-fit: cover; }
.card-name { margin: 0; font-size: 24px; font-weight: 700; line-height: 32px; color: var(--ink); }
.card-name a { color: inherit; text-decoration: none; display: inline-block; padding: 6px 0; }
.card-name a:hover { text-decoration: underline; }
.tag-sample { display: inline-block; vertical-align: middle; margin-left: 8px; font-size: 12px; font-weight: 600; line-height: 18px; color: var(--label); border: 1px solid #B9C0C8; border-radius: var(--r-chip); padding: 2px 6px; letter-spacing: 0; white-space: nowrap; }
.card-reason { margin: 8px 0 0; font-size: 16px; line-height: 25px; color: var(--body); }
.card-act { display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: center; }
.card-act .btn { min-height: 45px; width: 100%; font-size: 14px; }
.card-act small { font-size: 12px; color: var(--muted); line-height: 18px; }
.attrs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 20px 0 0; }
.attrs div { padding: 12px 24px 16px; border-left: 1px solid var(--line); min-width: 0; }
.attrs div:first-child { border-left: 0; padding-left: 0; }
.attrs dt { font-size: 13px; line-height: 19.5px; color: var(--label); }
.attrs dd { margin: 4px 0 0; font-size: 16px; font-weight: 700; line-height: 24px; color: var(--ink); }

/* home: topic cards (one card per topic, posts as rows) */
.topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.topic-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.card.topic { display: flex; flex-direction: column; }
.card.topic .card-body { flex: 1; padding-bottom: 8px; }
.card.topic .pick-chip { margin-bottom: 12px; }
.topic-posts { list-style: none; margin: 0; padding: 0; }
.topic-posts li + li { border-top: 1px solid var(--line); }
.topic-posts a { display: block; padding: 12px 0; min-height: 44px; color: var(--ink); text-decoration: none; }
.topic-posts a:hover .t { text-decoration: underline; }
.topic-posts .t { display: block; font-size: 18px; font-weight: 700; line-height: 27px; }
.topic-posts .k { display: block; margin-top: 2px; font-size: 13px; line-height: 20px; color: var(--muted); }
.topic-more { display: flex; align-items: center; gap: 6px; min-height: 60px; padding: 0 24px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; }
.topic-more .ic { width: 20px; height: 20px; margin-left: auto; color: var(--band); }
.topic-more:hover { color: var(--band); }

/* home: criteria box ("글을 쓰는 기준") */
.criteria { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin: 0; }
.criteria > div { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 12px; align-content: start; }
.criteria .dot { width: 36px; height: 36px; border-radius: 50%; background: var(--chip-bg); color: var(--band); display: flex; align-items: center; justify-content: center; grid-row: span 2; }
.criteria .dot .ic { width: 20px; height: 20px; }
.criteria strong { font-size: 16px; line-height: 24px; color: var(--ink); }
.criteria span:not(.dot) { font-size: 14px; line-height: 22px; color: var(--body); }
.criteria a { display: inline-flex; align-items: center; min-height: 44px; margin: -11px 0; font-weight: 600; }

/* home: finder box */
.finder { margin-top: 56px; border: 1px solid var(--card-line); border-radius: var(--r-card); padding: 28px 32px; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.finder .art { width: 96px; height: 72px; border-radius: var(--r-chip); background: var(--chip-bg); color: var(--band); display: flex; align-items: center; justify-content: center; }
.finder .art .ic { width: 40px; height: 40px; stroke-width: 1.5; }
.finder h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 30px; }
.finder p { margin: 4px 0 0; font-size: 15px; line-height: 23px; color: var(--body); }

/* ---------- list page (tossfeed centered head + nerdwallet table rows) ---------- */
.list-head { text-align: center; padding: 72px 0 32px; }
.list-head h1 { margin: 0; font-size: 44px; font-weight: 600; line-height: 58px; color: var(--body); }
.list-head p { margin: 14px 0 0; font-size: 13px; line-height: 20.8px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 32px; padding: 0; list-style: none; }
.filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: 600 15px/1 var(--font); color: var(--body); text-decoration: none; }
.filters a span { color: var(--muted); font-weight: 500; margin-left: 6px; }
.filters a:hover { border-color: var(--band); }
.filters a[aria-current='true'] { background: var(--button-soft); border-color: transparent; color: var(--band); }
.filters a[aria-current='true'] span { color: var(--band); }
.feat { margin: 0 0 8px; }
.cat-sec { display: none; margin-top: 48px; }
.cat-sec#c0 { display: block; }
.cat-sec:target { display: block; }
.lists:has(.cat-sec:target) .cat-sec#c0:not(:target) { display: none; }
.empty { font-size: 16px; color: var(--body); }
table.posts { width: 100%; border-collapse: collapse; }
table.posts thead th { text-align: left; font-size: 16px; font-weight: 700; line-height: 24px; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--ink); }
table.posts td { vertical-align: top; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 21px; color: var(--ink); }
table.posts td.t a { font-size: 18px; font-weight: 700; line-height: 27px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0; }
table.posts td.t a:hover { text-decoration: underline; }
table.posts .mini-chip, .rel .mini-chip { display: inline-block; margin-top: 6px; background: var(--chip-bg); color: var(--chip-text); border-radius: var(--r-chip); padding: 3px 10px; font-size: 13px; font-weight: 500; line-height: 20px; }
table.posts .kind { font-weight: 600; white-space: nowrap; }
table.posts td.go { width: 100px; text-align: right; padding-right: 0; }
table.posts tr[hidden] { display: none; }
.list-end { text-align: center; margin: 40px auto 0; max-width: var(--prose); font-size: 14px; line-height: 22px; color: var(--muted); }

/* ---------- post: tossfeed body column ---------- */
.prose { max-width: var(--prose); margin: 0 auto; }
.post .prose { padding-top: 32px; }
.prose p, .prose li { font-size: 17px; line-height: 27.2px; color: var(--body); }
.prose p { margin: 0 0 22px; }
.prose h2 { margin: 56px 0 18px; }
.prose h3 { margin: 36px 0 12px; font-size: 20px; font-weight: 700; line-height: 30px; color: var(--heading); }
.prose h4 { margin: 28px 0 8px; font-size: 18px; font-weight: 700; line-height: 27px; color: var(--heading); }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose b, .prose strong { color: var(--heading); }
.prose blockquote { margin: 0 0 22px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 20px; }
.prose blockquote p { margin: 0 0 8px; font-size: 16px; line-height: 26px; }
.prose blockquote p:last-child { margin: 0; }
.prose code { font-size: 15px; background: var(--softer); padding: 1px 4px; border-radius: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.cite { font-size: 13px; font-weight: 600; vertical-align: 2px; text-decoration: none; padding: 15px 4px; margin: 0 -2px; position: relative; white-space: nowrap; }
.cite:hover { text-decoration: underline; }
.samplebar { background: var(--softer); border: 1px solid var(--card-line); border-radius: var(--r-card); padding: 12px 16px; font-size: 15px !important; line-height: 24px !important; }
.post-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 8px !important; font-size: 14px !important; color: var(--muted) !important; }
.post-cats span { margin-right: 4px; }
.post-cats a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; background: var(--chip-bg); color: var(--chip-text); border-radius: var(--r-chip); font-size: 14px; font-weight: 600; text-decoration: none; }
.post-cats a:hover { text-decoration: underline; }
/* contents box — same soft box as the criteria box */
.toc-box { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 24px 10px; margin: 16px 0 32px; }
.toc-box h2 { margin: 0 0 4px !important; font-size: 16px !important; line-height: 24px !important; }
.toc-box ul { list-style: none; margin: 0; padding: 0; }
.toc-box li { margin: 0; border-top: 1px solid var(--line); }
.toc-box li:first-child { border-top: 0; }
.toc-box a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 15px; line-height: 23px; color: var(--ink); text-decoration: none; }
.toc-box a:hover { color: var(--band); text-decoration: underline; }

/* medical disclaimer (core p.disclaim) — same size as body, soft box, full 1px frame */
.prose .disclaim { background: var(--softer); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 20px; font-size: 17px; line-height: 27.2px; color: var(--body); }
.prose .adnote { background: var(--softer); border-radius: var(--r-card); padding: 16px 20px; font-size: 14px; line-height: 22px; }
.prose .adnote a { display: inline-flex; align-items: center; min-height: 44px; margin: -11px 0; font-weight: 600; }

/* figures (tossfeed r10 panel) */
.prose figure.fig { margin: 8px 0 30px; }
.prose figure.fig img { width: 100%; border-radius: var(--r-fig); background: var(--softer); }
.prose figure.fig figcaption { margin-top: 10px; font-size: 13px; line-height: 20px; color: var(--muted); }

/* compare tables in posts (nerdwallet: head 16/700 + 1px ink line, 14 cells, 1px rows, no fill, no verticals) */
.prose .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 22px; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 560px; }
table.cmp th, table.cmp td { text-align: left; vertical-align: top; }
table.cmp thead th { font-size: 16px; font-weight: 700; line-height: 24px; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--ink); color: var(--ink); }
table.cmp tbody th, table.cmp tbody td { font-size: 14px; line-height: 21px; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
table.cmp tbody th { font-weight: 700; font-size: 15px; }
table.cmp .cite { font-size: 13px; }
.prose p.table-note { margin: -10px 0 22px; font-size: 14px; line-height: 22px; color: var(--muted); }

/* sources (expanded numbered list — the only numbered list in this language) */
.refs { margin-top: 56px; }
.refs .sec-note { margin: -8px 0 16px; }
.sources { margin: 0; padding-left: 26px; }
.sources li { font-size: 15px; line-height: 24px; color: var(--body); margin-bottom: 12px; padding-left: 4px; }
.sources li:target { background: var(--chip-bg); }
.sources a { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; word-break: break-all; }
.sources .k { color: var(--muted); }
.end-disc { margin: 40px 0 0 !important; padding: 18px 0 0; border-top: 1px solid var(--line); font-size: 14px !important; line-height: 22px !important; color: var(--label) !important; }
.end-disc a { display: inline-flex; align-items: center; min-height: 44px; margin: -11px 0; font-weight: 600; }

/* related posts — small cards, 3 across */
.more { max-width: var(--frame); margin: 56px auto 0; }
.rel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rel a { display: block; height: 100%; min-height: 44px; border: 1px solid var(--card-line); border-radius: var(--r-card); padding: 16px 18px 18px; color: var(--ink); text-decoration: none; }
.rel a:hover { border-color: var(--band); }
.rel a:hover b { text-decoration: underline; }
.rel .mini-chip { margin: 0 0 10px; }
.rel b { display: block; font-size: 17px; line-height: 26px; }
.rel .k { display: block; margin-top: 6px; font-size: 13px; line-height: 20px; color: var(--muted); }

/* plain pages: about, disclosure, 404 */
.page { padding-top: 40px; }
.page h2 { margin: 48px 0 14px; }
.page h2:first-child { margin-top: 0; }
.page blockquote p { font-size: 14px; line-height: 22px; color: var(--body); }
.page .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.todo { background: var(--softer); padding: 0 6px; font-weight: 600; }

/* ---------- footer ---------- */
.ft { margin-top: 96px; background: var(--soft); border-top: 1px solid var(--line); }
.ft .frame { padding-top: 40px; padding-bottom: 48px; }
.ft-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.ft h2 { margin: 0 0 10px; font-size: 18px; font-weight: 700; line-height: 27px; }
.ft p { margin: 0 0 10px; font-size: 14px; line-height: 23px; color: var(--body); max-width: 720px; }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft li a { display: flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 15px; text-decoration: none; }
.ft li a:hover { text-decoration: underline; }
.ft-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; font-size: 13px; line-height: 20px; color: var(--muted); }
.ft-bottom .logo { font-size: 15px; }
.ft-bottom .logo svg { width: 20px; height: 20px; }

/* ---------- wide post tables: break out of the 700 column toward the 1152 frame ---------- */
@media (min-width: 769px) {
  .prose .body .table-scroll { width: min(960px, calc(100vw - 64px)); position: relative; left: 50%; transform: translateX(-50%); }
}

/* ---------- tablet ≤ 768 ---------- */
@media (max-width: 768px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hd-tools { gap: 4px; }
  .hd-tools .btn { display: none; }
  .topics ul { overflow-x: auto; scrollbar-width: none; padding-left: 8px; padding-right: 8px; gap: 8px; }
  .topics ul::-webkit-scrollbar { display: none; }
  .topics .frame { padding: 0; }
  .topics li { flex: none; }
  .card-head { grid-template-columns: 120px minmax(0, 1fr); }
  .tile { width: 120px; }
  .card-act { grid-column: 1 / -1; flex-direction: row; align-items: center; text-align: left; gap: 14px; }
  .card-act .btn { width: auto; flex: none; padding: 0 22px; }
  .attrs { grid-template-columns: 1fr 1fr; }
  .attrs div:nth-child(3) { border-left: 0; padding-left: 0; }
  .attrs div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .topic-grid { grid-template-columns: minmax(0, 1fr); }
  .criteria { grid-template-columns: 1fr; }
  .rel { grid-template-columns: minmax(0, 1fr); }
  .ft-grid { grid-template-columns: 1fr; gap: 24px; }
  table.posts thead { display: none; }
  table.posts, table.posts tbody, table.posts tr, table.posts td { display: block; width: 100%; }
  table.posts tr { border-bottom: 1px solid var(--line); padding: 14px 0; }
  table.posts td { border: 0; padding: 4px 0; }
  table.posts td.go { width: auto; text-align: left; padding-top: 8px; }
  table.posts td[data-k]::before { content: attr(data-k) ' '; color: var(--label); font-weight: 400; }
}

/* ---------- phone ≤ 640 ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hd .frame { height: 64px; gap: 10px; }
  .logo { font-size: 18px; }
  .logo svg { width: 24px; height: 24px; }
  .hd-tools { gap: 0; }
  .topics a { min-width: 84px; font-size: 13px; line-height: 19px; }
  .band .frame { padding-top: 14px; padding-bottom: 28px; }
  .band h1 { font-size: 26px; line-height: 34px; margin: 6px 0 14px; }
  .byline { align-items: flex-start; }
  .badges { margin-top: 12px; display: flex; }
  .lead { font-size: 17px; line-height: 28px; }
  .notice { text-align: left; }
  .sec { margin-top: 44px; }
  .sec-head h2, .prose h2 { font-size: 22px; line-height: 31px; }
  .card-body { padding: 18px 16px 0; }
  .pick-chip { font-size: 14px; line-height: 21px; padding: 8px 12px; margin-bottom: 18px; gap: 8px; }
  .card-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tile { width: 100%; aspect-ratio: auto; min-height: 64px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
  .tile .ic { margin: 0; }
  .tile.photo { aspect-ratio: 3 / 2; }
  .card-name { font-size: 20px; line-height: 28px; }
  .card-act { flex-direction: column; align-items: stretch; text-align: center; }
  .card-act .btn { width: 100%; }
  .attrs div { padding: 12px 12px 14px 0; }
  .attrs div:nth-child(2n) { padding-left: 12px; }
  .topic-more { padding: 0 16px; }
  .prose p, .prose li { font-size: 17px; line-height: 28px; }
  .prose .disclaim { font-size: 17px; line-height: 28px; padding: 14px 16px; }
  .toc-box { padding: 14px 16px 6px; }
  .criteria { padding: 18px 16px; }
  .finder { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; gap: 14px; }
  .finder .btn { width: 100%; }
  .list-head { padding: 44px 0 24px; }
  .list-head h1 { font-size: 28px; line-height: 38px; }
  .filters { justify-content: flex-start; }
  .ft { margin-top: 72px; }
  /* post tables become cards: row head = criteria chip, cells = label / value lines (site.js adds the labels) */
  .prose table.cmp.stack { min-width: 0; }
  .prose table.cmp.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose table.cmp.stack, .prose table.cmp.stack tbody, .prose table.cmp.stack tr { display: block; width: 100%; }
  .prose table.cmp.stack tr { border: 1px solid var(--card-line); border-radius: var(--r-card); padding: 16px 16px 4px; margin: 0 0 12px; }
  .prose table.cmp.stack tbody th { display: inline-block; border: 0; padding: 6px 12px; margin: 0 0 8px; background: var(--chip-bg); color: var(--chip-text); border-radius: var(--r-chip); font-size: 15px; line-height: 22px; }
  .prose table.cmp.stack td { display: flow-root; border: 0; border-top: 1px solid var(--line); padding: 10px 0 10px 7.5em; font-size: 15px; line-height: 23px; }
  .prose table.cmp.stack td::before { content: attr(data-k); float: left; width: 6.5em; margin-left: -7.5em; font-size: 13px; line-height: 23px; color: var(--label); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
