@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/InstrumentSerif-italic-400.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #0f0f10;
  --ink-2: #26262a;
  --text: #47474e;
  --muted: #606066;
  --line: #e7e4dc;
  --line-2: #dedbd3;
  --paper: #fff;
  --soft: #faf9f6;
  --cream: #fffaee;
  --cream-2: #fff4d6;
  --marker: #ffe27a;
  --sun: #ffd23f;
  --gold: #735406;
  --gold-line: #b67d0f;
  --link: #cdb877;
  --shadow-sm: 0 1px 2px rgba(15, 15, 16, .05), 0 2px 8px rgba(15, 15, 16, .05);
  --shadow: 0 1px 2px rgba(15, 15, 16, .05), 0 10px 30px rgba(15, 15, 16, .09);
  --page-width: 1120px;
  --gutter: clamp(18px, 4vw, 34px);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Arrowheads drawn once, reused by the diagrams and the cover. */
  --arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 14'%3E%3Cpath d='M1 7h35M30 1.5 37 7l-7 5.5' fill='none' stroke='%23b08f3a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 40'%3E%3Cpath d='M7 1v35M1.5 30 7 37l5.5-7' fill='none' stroke='%23b08f3a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --arrow-head: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 14'%3E%3Cpath d='M0 7h36M30 1.5 37 7l-7 5.5' fill='none' stroke='%23cdb877' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-block-start: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.58 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, p { margin: 0; overflow-wrap: break-word; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.03em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #4f6bff; outline-offset: 4px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.wrap { width: min(100%, calc(var(--page-width) + 2 * var(--gutter))); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; z-index: 3; top: 8px; left: 8px; padding: 10px 14px; background: var(--marker); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 700; line-height: 1; letter-spacing: -.05em; text-decoration: none; }
.brand img { border-radius: 8px; }
.brand i { font: italic 400 1.1em/1 var(--serif); letter-spacing: -.045em; }
.site-links, .footer-inner nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); font-size: 15px; font-weight: 600; }
.site-links a, .footer-inner nav a { text-decoration: none; }
.site-links a:not(.button):hover, .footer-inner nav a:hover { text-decoration: underline; }
.site-links a[aria-current] { text-decoration: underline; text-decoration-color: var(--gold-line); text-decoration-thickness: 2px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 18px; color: white; background: var(--ink); border-radius: 999px; font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background-color .15s ease, transform .15s ease; }
.button:hover { background: #302e27; }
.button span { color: var(--marker); transition: transform .15s ease; }
.button:hover span { transform: translateX(3px); }
.text-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-weight: 700; text-decoration-color: var(--gold-line); }
.text-link:hover { text-decoration-thickness: 2px; }

/* ── Blog index ─────────────────────────────────────────────── */
.collection { padding-block: clamp(39px, 7vw, 84px) clamp(52px, 9vw, 106px); }
.collection-heading { max-width: 700px; margin-bottom: clamp(27px, 5vw, 48px); }
.collection-heading h1 { font-size: clamp(46px, 8vw, 86px); line-height: .98; letter-spacing: -.054em; }
.collection-heading h1 em { margin-inline-start: .045em; font: italic 400 1.04em/.98 var(--serif); letter-spacing: -.05em; }
.collection-heading p { max-width: 53ch; margin-top: 18px; color: var(--text); font-size: clamp(17px, 2vw, 20px); }
.featured { display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; min-width: 0; border: 1px solid #f1e3b4; border-radius: 26px; background: var(--cream); }
.featured-copy { min-width: 0; padding: clamp(23px, 4.6vw, 56px); }
.featured h2 { margin-block: 14px; font-size: clamp(28px, 3.7vw, 44px); line-height: 1.08; }
.featured h2 a, .post-card h3 a { text-decoration: none; }
.featured h2 a:hover { text-decoration: underline; text-decoration-color: var(--gold-line); text-decoration-thickness: 2px; }
.featured p { color: var(--text); font-size: 17px; }
.featured .text-link { margin-top: 22px; }
.brazil-home .featured h1 { margin-bottom: 20px; font-size: clamp(42px, 5.3vw, 75px); line-height: .98; letter-spacing: -.055em; }
.brazil-home .featured h1 em { font: italic 400 1.01em/.98 var(--serif); }
.brazil-home .featured .cta-actions { margin-top: 24px; justify-content: flex-start; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.post-meta > span:first-child { color: var(--gold); font-weight: 700; }
.post-meta time { white-space: nowrap; }
.post-platforms { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: auto; }
.post-platforms img { width: 18px; height: 18px; }
.cover { align-self: stretch; display: grid; place-items: center; min-height: 236px; margin: 8px; overflow: hidden; border-radius: 18px; background: radial-gradient(ellipse at 58% 46%, #fff7cb 8%, transparent 64%), #fae7a9; }
.cover-flow { display: flex; align-items: center; width: min(78%, 350px); }
.cover-brand { flex: 0 0 auto; width: clamp(58px, 8vw, 78px); height: auto; border-radius: 24%; box-shadow: 0 14px 18px #6f531834; }
.cover-link { flex: 1 1 26px; height: 2px; background: #9d875c; }
.cover-platforms { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(58%, 176px); padding-inline-start: 22px; }
.cover-platforms::before { position: absolute; inset-block: 23% 23%; inset-inline-start: 0; width: 22px; content: ''; border: 2px solid #9d875c; border-inline-end: 0; border-radius: 12px 0 0 12px; }
.cover-platforms span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 15px; border: 1px solid #a8853b26; background: white; box-shadow: 0 6px 16px #6e521829; }
.cover-platforms img { width: 48%; height: auto; }

/* Source → WeRepost → destinations, built from the platforms the title names. */
.route { --stub: 22px; --gap: 10px; display: flex; align-items: center; padding: 24px 18px; }
.route-source, .route-targets li { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 7px 14px 7px 7px; border-radius: 14px; border: 1px solid #a8853b29; background: white; box-shadow: 0 8px 20px #6e52181f; white-space: nowrap; }
.route-tile { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: var(--soft); }
.route-tile img { width: 22px; height: 22px; }
.route-name { color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.route-hub { position: relative; flex: 0 0 auto; margin-inline: 34px var(--stub); }
.route-hub img { width: 52px; height: 52px; border-radius: 15px; box-shadow: 0 12px 22px #6f531840; }
.route-hub::before, .route-hub::after { position: absolute; top: 50%; height: 2px; content: ''; background: #b9a26a; }
.route-hub::before { right: calc(100% + 4px); width: 26px; height: 14px; margin-top: -7px; background: var(--arrow-right) center / 100% 100% no-repeat; }
.route-hub::after { left: 100%; width: var(--stub); }
.route-targets { display: grid; gap: var(--gap); margin: 0; padding: 0 0 0 var(--stub); list-style: none; }
.route-targets li { position: relative; }
.route-targets li::before { position: absolute; top: 50%; right: 100%; width: calc(var(--stub) - 2px); height: 2px; content: ''; background: #b9a26a; }
.route-targets li::after { position: absolute; top: calc(var(--gap) / -2); bottom: calc(var(--gap) / -2); left: calc(-1 * var(--stub) - 1px); width: 2px; content: ''; background: #b9a26a; }
.route-targets li:first-child::after { top: 50%; }
.route-targets li:last-child::after { bottom: 50%; }
.route-targets li:only-child::after { display: none; }

.collection-list, .related { margin-top: clamp(44px, 7vw, 84px); }
.collection-list > h2, .related > h2 { margin-bottom: 22px; font-size: clamp(26px, 3.3vw, 36px); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.post-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: white; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.post-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card:focus-within { border-color: var(--ink); }
.post-card h3 { font-size: clamp(20px, 2.2vw, 23px); line-height: 1.2; letter-spacing: -.025em; }
.post-card h3 a::after { position: absolute; inset: 0; content: ''; border-radius: inherit; }
.post-card h3 a:focus-visible { outline: none; }
.post-card p { color: var(--text); font-size: 15.5px; line-height: 1.55; }
.pagination { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 32px; }
.pagination a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 15px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; font-weight: 650; text-decoration: none; }
.pagination a:hover { background: #fff0be; }
.empty { max-width: 645px; padding: 18px 20px; border-radius: 12px; background: var(--cream); color: var(--text); }

/* ── Article header ─────────────────────────────────────────── */
.article-top, .guide-header { background: var(--cream); }
.breadcrumb { display: flex; align-items: center; gap: 10px; min-width: 0; padding-top: 22px; color: var(--muted); font-size: 14px; }
.breadcrumb a { font-weight: 700; color: var(--ink); }
.breadcrumb span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.guide-header { padding-block: clamp(28px, 5vw, 56px) clamp(34px, 6vw, 72px); border-bottom: 1px solid #f1e3b4; }
.guide-kicker { display: inline-flex; margin-bottom: 18px; padding: 5px 13px; border: 1px solid #efd88f; border-radius: 999px; background: white; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.guide-heading h1 { max-width: 15em; font-size: clamp(36px, 5.4vw, 62px); line-height: 1.03; letter-spacing: -.045em; }
.guide-lede { max-width: 40em; margin-top: 20px; color: var(--text); font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 26px; color: var(--muted); font-size: 14px; }
.byline-author { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; text-decoration: none; }
.byline-author:hover { text-decoration: underline; }
.byline-author img { border-radius: 7px; }
.guide-heading.has-cover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 400px); align-items: center; gap: clamp(24px, 4vw, 56px); }
.guide-intro { min-width: 0; }
.guide-heading .cover { align-self: center; min-height: 250px; margin: 0; }
.language-link { color: var(--ink); font-weight: 700; }
.language-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 14px; }

/* ── Article layout: table of contents beside one reading column ─ */
.guide-layout { display: grid; grid-template-columns: minmax(170px, 220px) minmax(0, 700px); grid-template-areas: "toc answer" "toc keys" "toc body"; grid-template-rows: auto auto 1fr; gap: 22px clamp(28px, 5.5vw, 76px); justify-content: center; padding-top: clamp(32px, 5vw, 60px); }
.guide-toc { grid-area: toc; align-self: start; position: sticky; top: 28px; max-height: calc(100vh - 56px); overflow-y: auto; padding: 4px 8px 4px 0; }
.guide-toc h2 { color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.guide-toc ul { display: grid; gap: 4px; margin: 12px 0 0; padding: 0; list-style: none; }
.guide-toc a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px; padding: 7px 8px; border-radius: 9px; color: var(--text); font-size: 14.5px; line-height: 1.35; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.guide-toc a:hover { background: var(--cream); color: var(--ink); }
.toc-num { color: #a3874a; font-size: 12.5px; font-weight: 700; line-height: 1.55; font-variant-numeric: tabular-nums; }

.direct-answer { grid-area: answer; position: relative; padding: 24px 28px 26px; border: 1px solid #f1dfa3; border-radius: 20px; background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.direct-answer h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.direct-answer h2::before { width: 22px; height: 22px; content: ''; border-radius: 7px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M12.2 4.5 6.8 12h4.1l-1 5.5 5.3-7.6h-4.1l1.1-5.4Z' fill='%23ffe27a'/%3E%3C/svg%3E") center / 22px no-repeat; }
.direct-answer p { color: var(--ink-2); font-size: clamp(18px, 1.9vw, 20px); line-height: 1.62; font-weight: 500; }

.takeaways { grid-area: keys; padding: 24px 28px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow-sm); }
.takeaways h2 { margin-bottom: 14px; color: var(--ink); font-size: 20px; letter-spacing: -.02em; }
.takeaways ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.takeaways li { position: relative; padding-inline-start: 36px; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.takeaways li::before { position: absolute; top: 1px; left: 0; width: 24px; height: 24px; content: ''; border-radius: 50%; background: var(--marker) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.5 12.4l3 3 6-6.3' fill='none' stroke='%230f0f10' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat; }

/* ── Reading column ─────────────────────────────────────────── */
.guide-body { grid-area: body; min-width: 0; padding-top: 18px; color: var(--text); font-size: clamp(17px, 1.8vw, 19px); line-height: 1.75; }
.guide-body > section + section, .guide-body > .inline-cta + section { margin-top: clamp(52px, 7vw, 76px); }
.guide-body > .inline-cta { margin-top: clamp(40px, 6vw, 56px); }
.inline-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 18px; padding: 20px 22px; border: 1px solid #f1dfa3; border-radius: 20px; background: var(--cream); }
.inline-cta > img { width: 44px; height: 44px; border-radius: 13px; box-shadow: 0 8px 16px #6f531830; }
.inline-cta p { color: var(--ink); font-size: clamp(17px, 1.8vw, 19px); font-weight: 650; line-height: 1.4; letter-spacing: -.015em; }
.inline-cta .cta-actions { flex-wrap: nowrap; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.cta-actions .text-link { min-height: 44px; font-size: 15.5px; text-decoration-line: underline; }
.article-cta .cta-actions { margin-top: 24px; }
.article-cta .cta-actions .button { margin-top: 0; }
.article-cta .text-link { color: white; text-decoration-color: var(--marker); }
.guide-body section h2 { margin-bottom: 18px; color: var(--ink); font-size: clamp(27px, 3.4vw, 36px); line-height: 1.12; letter-spacing: -.035em; }
.section-num { display: block; width: fit-content; margin-bottom: 14px; padding: 3px 9px; border-radius: 7px; background: var(--marker); color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .02em; line-height: 1.45; font-variant-numeric: tabular-nums; }
.guide-body section > p { max-width: 68ch; }
.guide-body section > * + p, .guide-body section > p + * { margin-top: 18px; }
.guide-body section > * + .callout, .guide-body section > * + .diagram, .guide-body section > * + .table-block, .guide-body section > * + ol { margin-top: 28px; }
.guide-body section > h2 + * { margin-top: 0; }

/* Steps: numbered cards, still an ordered list. */
.guide-body section > ol { display: grid; gap: 12px; margin-bottom: 0; padding: 0; list-style: none; counter-reset: step; }
.guide-body section > ol > li { position: relative; min-height: 72px; padding: 20px 22px 20px 78px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow-sm); color: var(--ink-2); font-size: clamp(16.5px, 1.7vw, 18px); line-height: 1.6; counter-increment: step; }
.guide-body section > ol > li::before { position: absolute; top: 18px; left: 20px; display: grid; place-items: center; width: 40px; height: 40px; content: counter(step); border-radius: 12px; background: var(--ink); color: var(--marker); font-size: 19px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }

/* Callouts */
.callout { margin: 0; border-radius: 18px; }
.callout p { color: var(--ink-2); font-size: clamp(16.5px, 1.7vw, 18px); line-height: 1.65; }
.callout .callout-label { font-size: 13.5px; line-height: 1.3; }
.callout-label { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.callout-label svg { flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.callout-tip, .callout-warning, .callout-example { padding: 20px 24px 22px; border: 1px solid; }
.callout-tip { border-color: #bfe5c9; background: #f1fbf4; }
.callout-tip .callout-label { color: #146c31; }
.callout-warning { border-color: #f4cdb3; background: #fff5ee; }
.callout-warning .callout-label { color: #a13a08; }
.callout-example { border-color: #d2dafb; background: #f3f6ff; }
.callout-example .callout-label { color: #2f43b8; }
.callout-pain { position: relative; padding: 30px 32px 32px 32px; background: var(--ink); color: white; box-shadow: var(--shadow); overflow: hidden; }
.callout-pain::before { position: absolute; top: 8px; right: 24px; content: '\201C'; color: var(--marker); font: italic 400 120px/1 var(--serif); opacity: .9; }
.callout-pain figcaption { position: relative; margin-bottom: 12px; color: var(--marker); font-size: 13.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.callout-pain blockquote { position: relative; margin: 0; }
.callout-pain blockquote p { max-width: 34em; color: white; font-size: clamp(19px, 2.1vw, 22px); font-weight: 500; line-height: 1.55; letter-spacing: -.01em; }

/* Tables */
.table-block { min-width: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 3px; border-radius: 18px; }
.table-wrap table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 1.5; }
.table-wrap caption { padding: 16px 20px 14px; border-bottom: 1px solid var(--line); background: var(--cream); color: var(--ink); font-size: 15.5px; font-weight: 700; text-align: start; letter-spacing: -.01em; }
.table-wrap th, .table-wrap td { padding: 16px 20px; text-align: start; vertical-align: top; }
.table-wrap thead th, .table-wrap thead td { padding-block: 14px; background: var(--soft); border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 700; white-space: nowrap; }
.th-platform { display: inline-flex; align-items: center; gap: 9px; }
.th-platform img { width: 20px; height: 20px; }
.table-wrap tbody th { width: 30%; color: var(--ink); font-size: 15.5px; font-weight: 650; background: white; }
.table-wrap tbody td { color: var(--text); }
.table-wrap tbody tr + tr > * { border-top: 1px solid var(--line); }
.table-wrap tbody tr:nth-child(even) > * { background: #fdfcf9; }
.table-hint { display: none; }

/* Diagrams */
.diagram { margin: 0; padding: clamp(20px, 3vw, 28px); border: 1px solid #f1e3b4; border-radius: 22px; background: radial-gradient(ellipse at 30% 0%, #fff8db, transparent 70%), var(--cream); }
.diagram figcaption { margin-bottom: 20px; color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; }
.diagram ol { margin: 0; padding: 0; list-style: none; }
.node { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; border: 1px solid #ebdcae; border-radius: 16px; background: white; box-shadow: 0 6px 18px #6e521814; }
.node-logo { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); }
.node-logo img { width: 26px; height: 26px; border-radius: 6px; }
.node-logo img[src*="werepost-icon"] { width: 44px; height: 44px; border-radius: 12px; }
.node-number { background: var(--ink); color: var(--marker); font-size: 17px; font-weight: 700; }
.node-text { display: grid; gap: 2px; min-width: 0; }
.node-text strong { color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.node-note { color: var(--muted); font-size: 14px; line-height: 1.4; }

/* flow: a row of cards joined by arrows */
.flow { --arrow: 34px; display: grid; grid-template-columns: repeat(var(--nodes), minmax(0, 1fr)); column-gap: var(--arrow); }
.flow .node { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
.flow .node + .node::before { position: absolute; top: 37px; right: calc(100% + 4px); width: calc(var(--arrow) - 8px); height: 14px; content: ''; background: var(--arrow-right) center / 100% 100% no-repeat; }
.flow.flow-long { grid-template-columns: minmax(0, 1fr); row-gap: var(--arrow); }
.flow.flow-long .node { flex-direction: row; align-items: center; }
.flow.flow-long .node + .node::before { top: auto; right: auto; bottom: calc(100% + 4px); left: 31px; width: 14px; height: calc(var(--arrow) - 8px); background-image: var(--arrow-down); }

/* fanout: one origin branching into its destinations */
.fanout { --join: 34px; --gap: 12px; display: grid; grid-template-columns: minmax(0, .9fr) calc(2 * var(--join)) minmax(0, 1.1fr); row-gap: var(--gap); }
.fanout .node-origin { grid-column: 1; grid-row: 1 / span var(--targets); align-self: center; flex-direction: column; align-items: flex-start; padding: 18px; border-color: var(--ink); box-shadow: 0 10px 26px #6e521824; }
.fanout .node-origin::after { position: absolute; top: 50%; left: calc(100% + 1px); width: var(--join); height: 2px; content: ''; background: var(--link); }
.fanout .node-target { grid-column: 3; }
.fanout .node-target::before { position: absolute; top: 50%; right: calc(100% + 3px); width: calc(var(--join) - 2px); height: 14px; margin-top: -7px; content: ''; background: var(--arrow-head) center / 100% 100% no-repeat; }
.fanout .node-target::after { position: absolute; top: calc(var(--gap) / -2 - 1px); bottom: calc(var(--gap) / -2 - 1px); left: calc(-1 * var(--join) - 2px); width: 2px; content: ''; background: var(--link); }
.fanout .node-origin + .node-target::after { top: 50%; }
.fanout .node-target:last-child::after { bottom: 50%; }
.fanout .node-origin + .node-target:last-child::after { display: none; }

/* timeline: moments along a rail */
.timeline { position: relative; display: grid; grid-template-columns: repeat(var(--nodes), minmax(0, 1fr)); gap: 18px; }
.timeline::before { position: absolute; top: 9px; right: 0; left: 0; height: 2px; content: ''; border-radius: 2px; background: var(--link); }
.timeline li { position: relative; display: grid; align-content: start; gap: 6px; padding-top: 36px; }
.timeline li::before { position: absolute; top: 0; left: 0; width: 20px; height: 20px; content: ''; border: 4px solid var(--ink); border-radius: 50%; background: var(--marker); }
.moment { display: flex; align-items: center; gap: 8px; }
.moment img { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 5px; }
.moment strong { color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.moment-note { color: var(--text); font-size: 15px; line-height: 1.45; }
.timeline.timeline-long { grid-template-columns: minmax(0, 1fr); gap: 22px; }

/* ── After the guide ────────────────────────────────────────── */
.guide-faq, .guide-sources { margin-top: clamp(56px, 8vw, 84px); }
.guide-faq > h2, .guide-sources > h2 { margin-bottom: 20px; color: var(--ink); font-size: clamp(27px, 3.4vw, 36px); letter-spacing: -.035em; }
.guide-faq { display: grid; gap: 12px; }
.guide-faq > h2 { margin-bottom: 8px; }
.faq-item { padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.faq-item h3 { margin-bottom: 8px; color: var(--ink); font-size: clamp(18px, 1.9vw, 20px); line-height: 1.3; letter-spacing: -.02em; }
.faq-item p { font-size: clamp(16px, 1.7vw, 17.5px); line-height: 1.65; }
.guide-sources ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 16px; }
.guide-sources li { position: relative; padding-inline-start: 22px; }
.guide-sources li::before { position: absolute; left: 0; content: '↗'; color: var(--gold-line); font-weight: 700; }
.guide-sources a { overflow-wrap: anywhere; text-decoration-color: var(--gold-line); }
.article-cta { position: relative; margin-top: clamp(56px, 8vw, 84px); padding: clamp(28px, 5vw, 46px); overflow: hidden; border-radius: 26px; background: radial-gradient(ellipse at 100% 0%, #3a3420 0%, transparent 60%), var(--ink); color: #c9c9cf; }
.article-cta h2 { max-width: 16em; margin-bottom: 12px; color: white; font-size: clamp(28px, 3.8vw, 40px); line-height: 1.08; letter-spacing: -.04em; }
.article-cta p { max-width: 36em; font-size: clamp(16.5px, 1.8vw, 18.5px); line-height: 1.6; }
.article-cta .button { min-height: 50px; padding-inline: 22px; background: var(--marker); color: var(--ink); font-size: 16px; }
.article-cta .button:hover { background: var(--sun); }
.article-cta .button span { color: var(--ink); }
.cta-logos { display: flex; align-items: center; margin-bottom: 22px; }
.cta-logos > img { width: 46px; height: 46px; margin-inline-end: 14px; border-radius: 13px; box-shadow: 0 0 0 1px #ffffff2e; }
.cta-logos span { display: grid; place-items: center; width: 38px; height: 38px; margin-inline-start: -5px; border: 2px solid var(--ink); border-radius: 50%; background: white; }
.cta-logos span:first-of-type { margin-inline-start: 0; }
.cta-logos span img { width: 19px; height: 19px; }
.related { margin-bottom: clamp(45px, 8vw, 92px); padding-top: clamp(36px, 6vw, 64px); border-top: 1px solid var(--line); }
.guide { margin-bottom: clamp(45px, 8vw, 88px); }
.status-page { min-height: 42vh; padding-block: clamp(42px, 8vw, 100px); }
.status-page h1 { font-size: clamp(35px, 6vw, 66px); }
.status-page p { margin-block: 15px; color: var(--text); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; padding-block: 28px; }
.footer-inner nav { flex-wrap: wrap; color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .post-card:hover { transform: none; }
}

@media (max-width: 1020px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-layout { grid-template-columns: minmax(0, 700px); grid-template-areas: "answer" "keys" "toc" "body"; grid-template-rows: none; }
  .guide-toc { position: static; max-height: none; overflow: visible; padding: 18px 16px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--soft); }
  .guide-toc h2 { padding-inline: 8px; }
  .guide-toc ul { margin-top: 8px; gap: 0; }
  .guide-heading.has-cover { grid-template-columns: minmax(0, 1fr); }
  .guide-heading .cover { justify-self: start; width: min(100%, 440px); min-height: 0; }
  .guide-heading .cover:not(.cover-route) { min-height: 180px; }
}

@media (max-width: 720px) {
  /* Diagrams stack: arrows turn down, the fanout becomes a tree. */
  .flow { grid-template-columns: minmax(0, 1fr); row-gap: var(--arrow); }
  .flow .node { flex-direction: row; align-items: center; }
  .flow .node + .node::before { top: auto; right: auto; bottom: calc(100% + 4px); left: 31px; width: 14px; height: calc(var(--arrow) - 8px); background-image: var(--arrow-down); }
  .fanout { --join: 24px; grid-template-columns: minmax(0, 1fr); }
  .fanout .node-origin { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; margin-bottom: 10px; }
  .fanout .node-origin::after { display: none; }
  .fanout .node-target { grid-column: 1; margin-inline-start: calc(16px + 2 * var(--join)); }
  .fanout .node-target::before { right: calc(100% + 3px); }
  .fanout .node-target::after { left: calc(-1 * var(--join) - 2px); }
  .fanout .node-origin + .node-target::after { top: calc(-10px - var(--gap) / 2 - 1px); display: block; }
  .fanout .node-origin + .node-target:last-child::after { bottom: 50%; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .timeline::before, .timeline.timeline-long::before { top: 4px; bottom: 4px; left: 9px; right: auto; width: 2px; height: auto; }
  .timeline li { padding: 0 0 0 38px; }
  .timeline li::before { top: 2px; }
}
@media (min-width: 721px) {
  .timeline.timeline-long::before { top: 4px; bottom: 4px; left: 9px; right: auto; width: 2px; height: auto; }
  .timeline.timeline-long li { padding: 0 0 0 38px; }
  .timeline.timeline-long li::before { top: 2px; }
}

@media (max-width: 600px) {
  .site-nav { min-height: 61px; }
  .site-links .pricing { display: none; }
  .brand { font-size: 20px; }
  .brand img { width: 27px; height: 27px; }
  .featured { grid-template-columns: 1fr; }
  .cover { min-height: 184px; margin-top: 0; }
  .cover-flow { width: min(68%, 260px); }
  .post-grid { grid-template-columns: 1fr; }
  .post-card { padding: 20px; }
  .guide-heading .cover { width: 100%; }
  .route { --stub: 16px; justify-content: center; padding: 20px 10px; }
  .route-hub { margin-inline: 26px var(--stub); }
  .route-hub::before { width: 20px; }
  .route-hub img { width: 44px; height: 44px; border-radius: 13px; }
  .route-source, .route-targets li { gap: 7px; min-height: 42px; padding: 5px 10px 5px 5px; }
  .route-tile { width: 30px; height: 30px; }
  .route-tile img { width: 19px; height: 19px; }
  .route-name { font-size: 13px; }
  .direct-answer, .takeaways { padding: 20px 20px 22px; }
  .guide-body section > ol > li { padding: 16px 18px 16px 66px; }
  .guide-body section > ol > li::before { top: 15px; left: 16px; width: 36px; height: 36px; font-size: 17px; }
  .callout-pain { padding: 26px 22px 26px; }
  .callout-pain::before { font-size: 96px; right: 14px; top: 6px; }
  .callout-tip, .callout-warning, .callout-example { padding: 18px 18px 20px; }
  .diagram { margin-inline: calc(-1 * var(--gutter) / 2); padding: 18px 14px; }
  .table-wrap table { min-width: max(100%, 520px); font-size: 15px; }
  .table-wrap tbody th { position: sticky; left: 0; z-index: 1; min-width: 132px; max-width: 150px; box-shadow: 1px 0 0 var(--line); }
  .table-wrap thead :is(th, td):first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line); }
  .table-wrap th, .table-wrap td { padding: 14px 14px; }
  .table-wrap caption { padding: 14px 16px 12px; }
  /* The caption stays in view while the table scrolls sideways. */
  .table-wrap caption span { position: sticky; left: 16px; display: block; width: fit-content; max-width: calc(100vw - 2 * var(--gutter) - 34px); }
  .table-hint { display: block; margin-top: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
  .faq-item { padding: 18px 18px 20px; }
  .inline-cta { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
  .inline-cta .cta-actions { flex-wrap: wrap; }
  .inline-cta .cta-actions { grid-column: 1 / -1; }
}

/* The featured guide's cover is wide enough for a bigger route. */
@media (min-width: 900px) { .featured .route { transform: scale(1.18); } }
