/* Bitcoin Insights
 * Clean fintech: bright white, one crisp sans, rounded panels, data shown plainly.
 * Palette: white #ffffff, surface #f4f6f9, ink #0d1321, ink-2 #4b5565, line #e3e7ed,
 *          gold #e8a317 (fills), gold-ink #8a5a00 (text on white), up #15803d, down #c8372d
 * Type: Instrument Sans (variable 400-700), self-hosted.
 * Loud element: the network panel. Everything else stays calm.
 */

@font-face { font-family: "Instrument Sans"; font-weight: 400 700; font-style: normal; font-display: swap; src: url(../fonts/instrument-sans-latin-wght-normal.woff2) format("woff2"); }

:root {
  --white: #fff;
  --surface: #f4f6f9;
  --surface-2: #eaeef3;
  --ink: #0d1321;
  --ink-2: #4b5565;
  --ink-3: #6b7380;
  --line: #e3e7ed;
  --gold: #e8a317;
  --gold-soft: #fdf3dc;
  --gold-ink: #8a5a00;
  --up: #15803d;
  --down: #c8372d;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gap: clamp(16px, 2.4vw, 32px);
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.6 var(--font); font-feature-settings: "ss01"; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.015em; }
p { margin: 0 0 1em; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--white); color: var(--ink); z-index: 100; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }

/* Header ------------------------------------------------------------------ */
.masthead { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.masthead-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { flex: 0 0 auto; }
.brand img { max-height: 40px; width: auto; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark:hover { color: var(--ink); }
.wordmark-mark { width: 32px; height: 32px; flex: 0 0 auto; }
.wordmark-name { font-weight: 700; font-size: 19px; letter-spacing: -.02em; }

.site-nav { display: flex; align-items: center; min-width: 0; }
.nav-list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list a { display: block; padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav-list a:hover { color: var(--ink); background: var(--surface); }
.nav-list .current-menu-item > a, .nav-list .current-cat > a { color: var(--ink); background: var(--surface); font-weight: 600; }
.nav-list .sub-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; list-style: none; margin: 0; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(13,19,33,.1); }
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { display: block; }
.nav-search { display: none; }

.masthead-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.block-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.block-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px rgba(21,128,61,.15); }
.masthead-search { width: 220px; }

.search-form { display: flex; position: relative; }
.search-field { flex: 1; min-width: 0; border: 1px solid var(--line); padding: 8px 12px; font: inherit; font-size: 14.5px; border-radius: var(--r-sm) 0 0 var(--r-sm); border-right: 0; background: var(--surface); color: var(--ink); }
.search-field:focus { background: var(--white); border-color: var(--ink); outline: none; }
.search-submit, .button { background: var(--ink); color: var(--white); border: 0; padding: 8px 14px; font: 600 14.5px var(--font); cursor: pointer; text-decoration: none; display: inline-block; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.button { border-radius: var(--r-sm); margin-top: 12px; }
.search-submit:hover, .button:hover { background: #222b3d; color: var(--white); }

.menu-toggle { display: none; width: 42px; height: 42px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; position: relative; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink); content: ""; }
.menu-toggle-bars { top: 19px; }
.menu-toggle-bars::before { top: -6px; left: 0; right: 0; }
.menu-toggle-bars::after { top: 6px; left: 0; right: 0; }

/* Shared pieces ------------------------------------------------------------- */
.chip { display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.chip:hover { background: var(--surface-2); color: var(--ink); }
.block { margin-top: 48px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.block-title { font-size: 22px; letter-spacing: -.02em; }
.block-title a { color: inherit; text-decoration: none; }
.block-title a:hover { color: var(--gold-ink); }
.block-desc { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.block-more { flex: 0 0 auto; font-size: 14px; font-weight: 600; color: var(--gold-ink); text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.block-more:hover { background: var(--surface); color: var(--ink); }
.empty-state { padding: 60px 0; text-align: center; color: var(--ink-3); }
.empty-state h2 { font-size: 28px; margin-bottom: 8px; }
.empty-note { color: var(--ink-3); }
.grid { display: grid; gap: 32px var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }

/* Cards -------------------------------------------------------------------- */
.card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-media { display: block; aspect-ratio: 16 / 10; background: var(--surface); overflow: hidden; border-radius: var(--r-md); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media-empty { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--surface), var(--surface-2)); }
.card-body { display: flex; flex-direction: column; gap: 8px; }
.card-title { font-size: 20px; font-weight: 650; line-height: 1.25; letter-spacing: -.015em; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--ink); text-decoration: underline; }
.card-excerpt { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; margin: 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; font-size: 13px; color: var(--ink-3); }

.card--feature { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 28px; align-items: stretch; background: var(--surface); border-radius: var(--r-lg); padding: 14px; }
.card--feature .card-media { aspect-ratio: auto; min-height: 320px; height: 100%; border-radius: var(--r-md); }
.card--feature .card-body { justify-content: center; }
.card--feature .card-body { gap: 12px; padding: 8px 14px 8px 0; }
.card--feature .chip { background: var(--white); }
.card--feature .card-title { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -.025em; }
.card--feature .card-excerpt { font-size: 17px; }

.card--compact { gap: 10px; }
.card--compact .card-title { font-size: 16.5px; }
.card--compact .chip { display: none; }

.card--row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-top: 1px solid var(--line); align-items: start; }
.card--row:first-child { border-top: 0; padding-top: 0; }
.card--row .card-title { font-size: 22px; }

/* Home ------------------------------------------------------------------------ */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: calc(var(--gap) * 1.5); padding: 28px 0 56px; align-items: start; }
.home-main { min-width: 0; }
.front-intro { margin-top: 40px; }

.learn { margin-top: 48px; background: var(--surface); border-radius: var(--r-lg); padding: 24px; }
.learn .block-more { background: var(--white); }
.learn-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.learn-list a { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; height: 100%; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; }
.learn-list a:hover { border-color: var(--ink); color: var(--ink); }
.learn-name { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.learn-time { font-size: 12.5px; color: var(--ink-3); }

/* Network panel: the signature element -------------------------------------------- */
.network { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 14px; }
.network-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--ink-2); }
.network-title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px rgba(21,128,61,.15); }
.network-list { margin: 0; }
.network-row { padding: 11px 0; border-top: 1px solid var(--line); }
.network-row:first-child { border-top: 0; padding-top: 0; }
.network-row dt { font-size: 12.5px; color: var(--ink-3); margin-bottom: 2px; }
.network-row dd { margin: 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.network-big { font-size: 32px !important; font-weight: 700 !important; letter-spacing: -.03em; line-height: 1.1; }
.network-row--fees dd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.network-row--fees span { display: flex; flex-direction: column; gap: 1px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); background: var(--surface); border-radius: var(--r-sm); padding: 7px 9px; }
.network-row--fees b { font-size: 17px; font-weight: 700; color: var(--ink); }
.network-chg { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-right: 6px; }
.network-chg--up { color: var(--up); background: #e8f5ec; }
.network-chg--down { color: var(--down); background: #fbecea; }
.halving { margin-top: 4px; padding: 14px; background: var(--gold-soft); border-radius: var(--r-md); }
.halving-head { margin: 0 0 10px; font-size: 13.5px; font-weight: 600; }
.halving-bar { height: 8px; border-radius: 999px; background: rgba(138,90,0,.15); overflow: hidden; }
.halving-bar span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.halving-meta { margin: 10px 0 0; font-size: 12.5px; color: #5c4a22; line-height: 1.45; }
.network-src { margin: 12px 0 0; font-size: 11.5px; color: var(--ink-3); }

/* Sidebar ---------------------------------------------------------------------------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: calc(var(--gap) * 1.5); padding: 4px 0 56px; align-items: start; }
.layout-main { min-width: 0; }
.sidebar { display: grid; gap: 24px; }
.most-read { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.most-read .block-title { font-size: 16px; margin-bottom: 10px; }
.most-read-list { list-style: none; counter-reset: rank; margin: 0; padding: 0; }
.most-read-list li { counter-increment: rank; display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.most-read-list li:first-child { border-top: 0; padding-top: 0; }
.most-read-list li::before { content: counter(rank); font-weight: 700; font-size: 15px; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.most-read-list a { font-weight: 600; font-size: 14.5px; line-height: 1.35; text-decoration: none; }
.most-read-list a:hover { text-decoration: underline; color: var(--ink); }
.widget-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }

/* Breadcrumbs ------------------------------------------------------------------------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; margin: 24px 0 0; padding: 0; font-size: 13.5px; color: var(--ink-3); }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: #c3c9d2; }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }

/* Article --------------------------------------------------------------------------------- */
.article-head { max-width: 800px; padding: 16px 0 26px; }
.article-title { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -.03em; margin: 14px 0 14px; }
.article-standfirst { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; margin-bottom: 22px; }
.byline { display: flex; align-items: center; gap: 12px; }
.byline-avatar { border-radius: 50%; background: var(--surface); }
.byline-name { margin: 0; font-size: 14.5px; }
.byline-name a { font-weight: 600; text-decoration: none; }
.byline-name a:hover { text-decoration: underline; }
.byline-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--ink-3); }
.article-image { margin: 0 0 36px; }
.article-image img { width: 100%; border-radius: var(--r-lg); }
.article-image figcaption { font-size: 13px; color: var(--ink-3); padding-top: 8px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 720px) 320px; justify-content: space-between; gap: calc(var(--gap) * 1.5); align-items: start; padding-bottom: 40px; }
.article-main { min-width: 0; }
.article-rail { display: grid; gap: 24px; }

.key-points { background: var(--surface); border-radius: var(--r-lg); padding: 20px 22px 10px; margin-bottom: 32px; }
.key-points-title { font-size: 15px; margin-bottom: 12px; }
.key-points ul { list-style: none; margin: 0; padding: 0; }
.key-points li { position: relative; padding: 0 0 12px 30px; font-size: 16px; line-height: 1.5; }
.key-points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); }
.key-points li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.toc { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.toc-title { font-size: 15px; margin-bottom: 10px; }
.toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 22px 1fr; gap: 4px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.toc li:first-child { border-top: 0; padding-top: 0; }
.toc li::before { content: counter(toc); color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.toc a { text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--gold-ink); text-decoration: underline; }

.risk-note { margin: 34px 0 20px; padding: 14px 16px; background: var(--gold-soft); border-radius: var(--r-md); font-size: 14px; color: #5c4a22; }
.risk-note p { margin: 0; }
.article-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 500; text-decoration: none; }
.related { margin-top: 48px; }
.related .block-title { margin-bottom: 18px; }

.entry-content { font-size: 18px; line-height: 1.75; color: #1d2433; }
.entry-content--wide { max-width: none; }
.entry-content > * { margin-top: 0; margin-bottom: 1.1em; }
.entry-content h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); margin-top: 1.7em; margin-bottom: .55em; scroll-margin-top: 90px; }
.entry-content h3 { font-size: 20px; color: var(--ink); margin-top: 1.5em; margin-bottom: .45em; }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); font-size: 20px; font-weight: 500; line-height: 1.5; color: var(--ink); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; font-size: 14px; font-weight: 400; font-style: normal; color: var(--ink-3); margin-top: 8px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--gold-ink); }
.entry-content table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.entry-content th { text-align: left; font-weight: 600; padding: 10px 12px; background: var(--surface); }
.entry-content td { border-top: 1px solid var(--line); padding: 10px 12px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figure img { border-radius: var(--r-md); }
.entry-content figcaption { font-size: 13px; color: var(--ink-3); }
.entry-content code { font-size: .88em; background: var(--surface); padding: 2px 6px; border-radius: 6px; }
.entry-content .wp-block-cover h1, .entry-content .wp-block-cover h2 { color: var(--white); }

/* Listings -------------------------------------------------------------------------------- */
.listing-head { padding: 16px 0 30px; max-width: 760px; }
.listing-title { font-size: clamp(34px, 4.4vw, 50px); line-height: 1.06; letter-spacing: -.03em; }
.listing-desc { font-size: 18px; line-height: 1.55; color: var(--ink-2); margin-top: 12px; }
.listing-desc p:last-child { margin-bottom: 0; }
.listing-search { margin-top: 18px; max-width: 520px; }
.page-article { max-width: 760px; margin: 0 auto; padding: 36px 0 64px; }
.page-title { font-size: clamp(32px, 4.2vw, 46px); letter-spacing: -.03em; margin-bottom: 22px; }
.not-found { max-width: 640px; padding: 64px 0; }

.pagination, .navigation.pagination { margin-top: 32px; }
.nav-links, .pagination { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-block; min-width: 40px; padding: 8px 12px; text-align: center; border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 600; text-decoration: none; color: var(--ink); }
.page-numbers:hover { background: var(--surface); }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Footer ---------------------------------------------------------------------------------- */
.site-footer { background: var(--surface); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: calc(var(--gap) * 1.5); padding: 44px var(--gap) 28px; }
.footer-name { font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.footer-about p { color: var(--ink-2); font-size: 15px; }
.footer-heading { font-size: 13.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { padding: 4px 0; }
.footer-list a { text-decoration: none; font-weight: 500; font-size: 15px; }
.footer-list a:hover { text-decoration: underline; }
.social-links { list-style: none; display: flex; gap: 8px; margin: 16px 0 0; padding: 0; }
.social-links a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.social-links a:hover { border-color: var(--ink); }
.footer-base { border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 24px; font-size: 13px; color: var(--ink-3); }
.footer-base p { margin: 0; }

/* Comments ---------------------------------------------------------------------------------- */
.comments-area { margin-top: 48px; }
.comments-area .block-title { font-size: 20px; margin-bottom: 14px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 13px; }
.comment-metadata a { color: var(--ink-3); }
.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; background: var(--surface); }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--ink); background: var(--white); outline: none; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }
.comment-form .button { border-radius: var(--r-sm); margin-top: 0; padding: 10px 18px; }
.comment-notes, .logged-in-as { font-size: 13.5px; color: var(--ink-3); }

/* Responsive -------------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .masthead-search { display: none; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 > .card:nth-child(3) { display: none; }
  .learn-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(13,19,33,.08); flex-direction: column; align-items: stretch; padding: 10px var(--gap) 18px; }
  .nav-open .site-nav { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 12px 10px; font-size: 16px; }
  .nav-list .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; }
  .nav-search { display: block; margin-top: 12px; }
  .home-grid, .layout, .article-grid { grid-template-columns: 1fr; }
  .home-side .sidebar { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .article-rail { order: -1; }
  .article-rail .sidebar { display: none; }
  .card--feature { grid-template-columns: 1fr; gap: 16px; }
  .card--feature .card-media { aspect-ratio: 16 / 10; min-height: 0; height: auto; }
  .card--feature .card-body { padding: 4px 8px 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .masthead-row { min-height: 60px; gap: 12px; }
  .wordmark-name { font-size: 17px; }
  .block-pill { padding: 5px 9px; font-size: 12px; }
  .grid--2, .grid--3, .learn-list { grid-template-columns: 1fr; }
  .grid--3 > .card:nth-child(3) { display: flex; }
  .card--compact { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
  .card--row { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
  .card--row .card-media, .card--compact .card-media { aspect-ratio: 1; border-radius: var(--r-sm); }
  .card--row .card-title { font-size: 17px; }
  .card--row .card-excerpt { display: none; }
  .learn { padding: 18px; margin-left: calc(var(--gap) * -1); margin-right: calc(var(--gap) * -1); border-radius: 0; }
  .entry-content { font-size: 17px; }
  .breadcrumbs [aria-current] { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .block-pill { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (min-width: 961px) and (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .masthead, .article-rail, .sidebar, .site-footer, .related, .ad-slot { display: none !important; }
  .article-grid, .layout { display: block; }
}

/* Ad slots (shared). Space is reserved so the page does not jump when an ad loads;
 * unfilled AdSense units collapse. */
.ad-slot { display: block; text-align: center; overflow: hidden; }
.ad-label { display: block; margin-bottom: 6px; font-size: 11px; line-height: 1; letter-spacing: .04em; color: #8a9097; }
.ad-slot--sidebar { min-height: 274px; }
.ad-slot--in_article, .ad-slot--below_article, .ad-slot--listing { min-height: 120px; margin: 32px 0; }
.ad-slot--home { min-height: 120px; margin: 8px 0 40px; }
.ad-slot ins.adsbygoogle { display: block; }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
@media (max-width: 640px) {
  .ad-slot--in_article, .ad-slot--below_article, .ad-slot--listing, .ad-slot--home { min-height: 300px; }
}
.grid > .ad-slot, .row-grid > .ad-slot, .stream > .ad-slot { grid-column: 1 / -1; }
