/* Self-hosted typefaces (SIL Open Font License): Atkinson Hyperlegible Next and Bricolage Grotesque */
@font-face{font-family:"Atkinson Hyperlegible Next";font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/atkinson-hyperlegible-next-normal-1.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:italic;font-weight:400;font-display:swap;src:url(/fonts/atkinson-hyperlegible-next-italic-0.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:"Bricolage Grotesque";font-style:normal;font-weight:600 800;font-stretch:100%;font-display:swap;src:url(/fonts/bricolage-grotesque-normal-2.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}
/* Retired Not Dead — design tokens
   Ink #14213D  Paper #FFFFFF  Marigold #FFB703  Lagoon #0A5C63  Butter #FFF4D6  Tomato #C1121F
   Type: Bricolage Grotesque (display), Atkinson Hyperlegible Next (reading) */
:root {
  --ink: #14213d;
  --ink-soft: #3d4a66;
  --paper: #ffffff;
  --marigold: #ffb703;
  --marigold-deep: #f59e0b;
  --lagoon: #0a5c63;
  --butter: #fff4d6;
  --mist: #eef3f6;
  --tomato: #c1121f;
  --line: #cfd6e0;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  --base: 19px;
  --wrap: 1180px;
  --narrow: 760px;
  --r-sm: 8px;
  --r-lg: 20px;
}
html[data-text="large"] { --base: 22px; }
html[data-text="xlarge"] { --base: 25px; }
@media (min-width: 900px) {
  :root { --base: 20px; }
  html[data-text="large"] { --base: 23px; }
  html[data-text="xlarge"] { --base: 26px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--base); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lagoon); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-color: var(--marigold); }
:focus-visible { outline: 4px solid var(--marigold-deep); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
.small { font-size: 0.86rem; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.icon { flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: var(--narrow); margin-inline: auto; padding-inline: 20px; }
.wrap-wide { max-width: 1000px; margin-inline: auto; padding-inline: 20px; }
main > section, main > div.wrap { margin-block: 3.2rem; }

.skip { position: absolute; left: 12px; top: -80px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; font: 700 1rem/1.2 var(--body); text-decoration: none; border: 2px solid var(--ink); cursor: pointer; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; color: #fff; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-lg { min-height: 56px; padding: 12px 28px; font-size: 1.08rem; }

/* header */
.site-header { border-bottom: 2px solid var(--ink); background: var(--paper); }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--display); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; line-height: 1; white-space: nowrap; }
.logo-b { background: var(--marigold); padding: 5px 9px 6px; border-radius: 6px; transform: rotate(-2deg); display: inline-block; }
.logo:hover { color: var(--ink); }
.logo:hover .logo-b { transform: rotate(1deg); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.text-size { display: flex; align-items: center; gap: 4px; }
.text-size-label { font-size: 0.8rem; color: var(--ink-soft); margin-right: 4px; }
.text-size button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--ink); font: 700 15px var(--body); cursor: pointer; }
.text-size button:nth-of-type(2) { font-size: 19px; }
.text-size button:nth-of-type(3) { font-size: 24px; }
.text-size button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tool-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; color: var(--ink); font-weight: 700; text-decoration: none; }
.tool-link:hover { text-decoration: underline; }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: 700 1rem var(--body); cursor: pointer; }
.site-nav { background: var(--ink); }
.site-nav ul { list-style: none; margin: 0 auto; padding-block: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.site-nav a { display: block; padding: 13px 11px; color: #fff; font-weight: 600; font-size: 0.92rem; text-decoration: none; border-bottom: 4px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--marigold); color: #fff; }
.site-nav .nav-extra { display: none; }
.site-nav .nav-extra a { color: var(--marigold); }
@media (max-width: 1040px) {
  .text-size-label, .header-cta { display: none; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .tool-link span { position: absolute; left: -9999px; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding-block: 8px; }
  .site-nav a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
  .site-nav .nav-extra { display: block; }
  .logo { font-size: 1.25rem; }
  .text-size button { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .text-size button:nth-of-type(1) { display: none; }
  .header-tools { gap: 6px; }
}

/* hero */
.hero { background: var(--marigold); margin-block: 0 !important; padding-block: clamp(2rem, 6vw, 4.5rem); border-bottom: 2px solid var(--ink); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.2rem; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; } }
.hero h1 { font-size: clamp(3.4rem, 11vw, 7.2rem); line-height: 0.92; letter-spacing: -0.025em; margin-bottom: 0.35em; }
.hero-sub { font-size: 1.2rem; max-width: 34ch; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.hero-lead { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: 10px 10px 0 var(--ink); }
.hero-lead-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-lead-body { padding: 1.3rem 1.5rem 1.4rem; }
.hero-lead h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-bottom: 0.4em; }
.hero-lead h2 a { color: var(--ink); text-decoration: none; }
.hero-lead h2 a:hover { text-decoration: underline; text-decoration-color: var(--marigold-deep); }
.hero-lead p { margin-bottom: 0.6em; }

/* topics */
.topics h2 { margin-bottom: 1rem; }
.topic-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.topic-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; min-height: 100%; padding: 18px; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); color: var(--ink); text-decoration: none; }
.topic-tile .icon { grid-row: 1 / 3; color: var(--lagoon); }
.topic-name { font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1.15; }
.topic-tag { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.35; }
.topic-tile:hover { background: var(--butter); color: var(--ink); }

/* section heads */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 1.3rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--ink); }
.section-head h2 { margin: 0; }
.section-head h2 a { color: var(--ink); text-decoration: none; }
.section-head p { margin: 0; color: var(--ink-soft); }
.section-more { margin-left: auto; font-weight: 700; }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; }
.card-media, .row-media { display: block; border-radius: 14px; overflow: hidden; background: var(--mist); border: 2px solid var(--ink); }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.thumb-fallback { display: grid; place-items: center; aspect-ratio: 3 / 2; background: var(--butter); color: var(--lagoon); }
.card-body { padding-top: 0.9rem; }
.card-cat { margin: 0 0 0.25rem; font-weight: 700; font-size: 0.9rem; }
.card-cat a { color: var(--lagoon); text-decoration: none; }
.card-cat a:hover { text-decoration: underline; }
.card-title { font-size: 1.32rem; font-weight: 800; margin-bottom: 0.4em; }
.card-title a, .row-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover, .row-title a:hover { text-decoration: underline; text-decoration-color: var(--marigold-deep); text-decoration-thickness: 3px; }
.card-desc { margin: 0 0 0.5em; font-size: 0.96rem; line-height: 1.5; color: var(--ink-soft); }
.card-meta { margin: 0; font-size: 0.86rem; color: var(--ink-soft); }
.row-list { display: grid; gap: 30px; }
.row-item { display: grid; grid-template-columns: 1fr; gap: 14px; }
.row-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.row-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.35em; }
@media (min-width: 700px) {
  .row-item { grid-template-columns: 300px 1fr; gap: 26px; align-items: start; }
}

/* newsletter */
.newsletter { background: var(--butter); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: clamp(1.4rem, 4vw, 2.4rem); }
.newsletter-inner { display: grid; gap: 1.2rem 2.5rem; align-items: center; }
@media (min-width: 900px) { .newsletter-band .newsletter-inner { grid-template-columns: 1fr 1fr; } }
.newsletter h2 { margin-bottom: 0.3em; }
.newsletter p { margin: 0; }
.nl-form label, .contact-form label, .search-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.nl-row { display: flex; flex-wrap: wrap; gap: 10px; }
input[type="email"], input[type="text"], input[type="search"], select, textarea { font: 1rem var(--body); color: var(--ink); min-height: 52px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; width: 100%; }
.nl-row input { flex: 1 1 240px; width: auto; }
textarea { min-height: 170px; resize: vertical; }
.contact-form { display: grid; gap: 4px; margin-top: 1.5rem; }
.contact-form label { margin-top: 14px; }
.contact-form .btn { margin-top: 20px; justify-self: start; }
.form-error { background: #fde8e8; border: 2px solid var(--tomato); border-radius: 12px; padding: 12px 16px; font-weight: 700; }
.search-form { max-width: 640px; margin-bottom: 1rem; }

/* columnists */
.columnist-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 14px; }
.columnist { display: grid; justify-items: center; text-align: center; gap: 4px; color: var(--ink); text-decoration: none; padding: 8px; border-radius: 14px; }
.columnist:hover { background: var(--butter); }
.avatar { border-radius: 50%; border: 2px solid var(--ink); background: var(--mist); flex: none; }
.columnist-name { font-family: var(--display); font-weight: 800; line-height: 1.15; margin-top: 6px; }
.columnist-role { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.3; }
.author-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.author-card, .author-hero, .cat-hero { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
.author-card { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.author-card h2 { margin-bottom: 0.1em; font-size: 1.6rem; }
.author-card h2 a { color: var(--ink); }
.author-role { color: var(--ink-soft); font-weight: 700; margin-bottom: 0.5em; }
.persona-note { background: var(--mist); border-left: 6px solid var(--lagoon); padding: 14px 18px; border-radius: 0 12px 12px 0; font-size: 0.94rem; }
.cat-hero > .icon { color: var(--lagoon); margin-top: 6px; }
.cat-columnist { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
@media (max-width: 600px) { .author-card, .author-hero { grid-template-columns: 1fr; } .cat-hero > .icon { display: none; } .cat-hero { grid-template-columns: 1fr; } }

/* listing */
.list-head { margin-top: 2.2rem !important; margin-bottom: 0 !important; }
.list-intro { font-size: 1.15rem; max-width: 62ch; }
.breadcrumb { font-size: 0.9rem; margin-bottom: 1rem; color: var(--ink-soft); }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 2.5rem; }
.empty { background: var(--butter); padding: 1.5rem; border-radius: 14px; }
.start-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.start-block { border: 2px solid var(--ink); border-radius: 16px; padding: 1.3rem 1.4rem; }
.start-block h2 { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; margin-bottom: 0.2em; }
.start-block h2 a { color: var(--ink); }
.start-block h2 .icon { color: var(--lagoon); }
.start-block p { color: var(--ink-soft); margin-bottom: 0.6em; }
.start-block ul { margin: 0; padding-left: 1.2em; }
.start-block li { margin-bottom: 0.5em; }

/* article */
.article-head { margin-top: 2rem; }
.article-head h1 { margin-bottom: 0.35em; }
.article-lede { font-size: 1.22rem; line-height: 1.5; color: var(--ink-soft); }
.byline { display: flex; align-items: center; gap: 14px; margin: 1.3rem 0 1rem; }
.byline p { margin: 0; }
.byline-name { font-weight: 700; }
.byline-meta { font-size: 0.9rem; color: var(--ink-soft); }
.article-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.6rem; }
.tool-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 700 0.92rem var(--body); text-decoration: none; cursor: pointer; }
.tool-btn:hover, .tool-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--butter); color: var(--ink); }
figure { margin: 0; }
.hero-figure img { width: 100%; border-radius: var(--r-lg); border: 2px solid var(--ink); aspect-ratio: 16 / 9; object-fit: cover; }
.inline-figure { margin: 2rem 0; }
.inline-figure img { width: 100%; border-radius: 14px; }
figcaption { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }
figcaption a { color: var(--ink-soft); }
.article-body { margin-top: 2rem; }
.takeaways { background: var(--butter); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 1.3rem 1.5rem; margin-bottom: 1.8rem; box-shadow: 6px 6px 0 var(--marigold); }
.takeaways h2 { font-size: 1.35rem; margin-bottom: 0.5em; }
.takeaways ul { margin: 0; padding-left: 1.2em; }
.takeaways li { margin-bottom: 0.5em; }
.takeaways li:last-child { margin-bottom: 0; }
.toc { border-left: 6px solid var(--marigold); padding: 0.3rem 0 0.3rem 1.3rem; margin-bottom: 2rem; }
.toc h2 { font-size: 1.1rem; margin-bottom: 0.5em; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin-bottom: 0.35em; }
.prose { font-size: 1.06rem; }
.prose h2 { margin-top: 2.1em; padding-top: 0.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose li > p { margin-bottom: 0.5em; }
.prose strong { font-weight: 700; }
.prose a.shop-link::after { content: " (shopping link)"; font-size: 0.78em; color: var(--ink-soft); }
.prose hr { border: 0; border-top: 2px solid var(--line); margin: 2.4em 0; }
blockquote { margin: 1.6em 0; padding: 0.2em 0 0.2em 1.2em; border-left: 6px solid var(--line); color: var(--ink-soft); }
blockquote.callout { color: var(--ink); border: 0; border-left: 8px solid var(--lagoon); background: var(--mist); padding: 1rem 1.2rem; border-radius: 0 14px 14px 0; }
blockquote.callout p:last-child { margin-bottom: 0; }
blockquote.callout-tip { border-left-color: var(--marigold-deep); background: var(--butter); }
blockquote.callout-warn { border-left-color: var(--tomato); background: #fdecec; }
blockquote.callout-key { border-left-color: var(--ink); background: var(--mist); }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 2px solid var(--ink); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--ink); color: #fff; font-weight: 700; }
tbody tr:nth-child(even) { background: #f7f9fb; }
tbody tr:last-child td { border-bottom: 0; }
.video-block { margin: 2rem 0; }
.yt-lite { position: relative; display: block; width: 100%; padding: 0; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: #000; cursor: pointer; aspect-ratio: 16 / 9; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; }
.yt-label { position: absolute; left: 14px; bottom: 12px; background: #fff; color: var(--ink); font: 700 1rem var(--body); padding: 6px 14px; border-radius: 999px; }
.yt-frame { width: 100%; aspect-ratio: 16 / 9; border: 2px solid var(--ink); border-radius: 14px; display: block; }
.video-caption { font-size: 0.9rem; margin-top: 8px; }
.faq { margin-top: 3rem; }
.faq-item { border-top: 2px solid var(--line); padding: 1.1rem 0 0.2rem; }
.faq-item h3 { font-size: 1.2rem; font-weight: 800; }
.sources { margin-top: 2.5rem; font-size: 0.92rem; }
.sources h2 { font-size: 1.3rem; }
.sources ul { padding-left: 1.2em; }
.sources li { margin-bottom: 0.4em; overflow-wrap: anywhere; }
.notice { margin-top: 2.2rem; padding: 1.1rem 1.3rem; background: var(--mist); border-radius: 14px; font-size: 0.88rem; line-height: 1.55; }
.notice p:last-child { margin-bottom: 0; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 2rem; font-weight: 700; }
.author-box { display: grid; grid-template-columns: auto 1fr; gap: 20px; margin-top: 2.5rem; padding: 1.4rem; border: 2px solid var(--ink); border-radius: var(--r-lg); }
.author-box h2 { font-size: 1.3rem; margin-bottom: 0.3em; }
.author-box p { font-size: 0.96rem; margin-bottom: 0.6em; }
@media (max-width: 520px) { .author-box { grid-template-columns: 1fr; } }
.static-page { margin-top: 2rem; margin-bottom: 4rem; }
.message-page { text-align: left; }

/* footer */
.site-footer { margin-top: 5rem; background: var(--ink); color: #e8ecf3; padding-top: 3rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--marigold); }
.site-footer .logo { color: #fff; margin-bottom: 1rem; }
.site-footer .logo-b { color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem 2.5rem; }
.footer-brand { grid-column: span 1; }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.site-footer h2 { font-size: 1.05rem; color: var(--marigold); margin-bottom: 0.7em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55em; }
.site-footer li a { text-decoration: none; display: inline-block; padding: 3px 0; }
.site-footer li a:hover { text-decoration: underline; }
.footer-base { margin-top: 2.5rem; padding-block: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.25); font-size: 0.88rem; }
.footer-base p { margin: 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 700; z-index: 50; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print {
  .site-header, .site-footer, .newsletter, .article-tools, .share, .toc, .video-block, .skip, main > section:not(.wrap-narrow), .author-box { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .takeaways { box-shadow: none; }
  a { color: #000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; word-break: break-all; }
}

/* phones: two-row header so nothing is cut off */
@media (max-width: 600px) {
  .header-top { flex-direction: column; align-items: stretch; gap: 10px; padding-block: 12px 10px; }
  .header-tools { justify-content: space-between; gap: 8px; }
  .text-size-label { display: inline; }
  .text-size button:nth-of-type(1) { display: inline-block; }
  .logo { font-size: 1.5rem; }
}

/* topic tiles: icon and name on one line, tagline underneath */
.topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .topic-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.topic-tile { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; row-gap: 8px; column-gap: 10px; align-items: center; padding: 16px; }
.topic-tile .icon { grid-row: 1; width: 30px; height: 30px; }
.topic-name { font-size: 1.12rem; overflow-wrap: anywhere; }
.topic-tag { grid-column: 1 / -1; align-self: start; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* section labels on cards: comfortable tap area */
.card-cat a { display: inline-block; padding: 6px 0; }
.card-cat { margin-bottom: 0; }
