/* Content pages: guides, glossary, FAQ, about, methodology, legal pages and the 404.
   The shared motif is the chart excerpt: a crop of the world chart inside a graduated border, like the margin of
   a printed nautical chart, with an italic caption naming the sea area. */

/* ---------- chart excerpt ---------- */
.crop { margin: 0; display: grid; gap: 10px; }
.crop-frame {
  --tick: var(--ink);
  padding: 5px; position: relative; background:
    repeating-linear-gradient(90deg, var(--tick) 0 22px, var(--paper) 22px 44px) top / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, var(--tick) 0 22px, var(--paper) 22px 44px) bottom / 100% 5px no-repeat,
    repeating-linear-gradient(180deg, var(--tick) 0 22px, var(--paper) 22px 44px) left / 5px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--tick) 0 22px, var(--paper) 22px 44px) right / 5px 100% no-repeat;
  outline: 1px solid var(--ink); outline-offset: 0;
}
.crop-art { position: relative; overflow: hidden; contain: paint; background: var(--shoal-2); box-shadow: inset 0 0 0 1px var(--ink); }
.crop-art svg { width: 100%; height: 100%; }
.crop-svg .base { opacity: 0; transition: opacity .6s var(--ease); }
.crop.is-drawn .crop-svg .base { opacity: 1; }
.crop-cap { color: var(--ink-2); font-size: 1rem; line-height: 1.35; }

/* ---------- guide ---------- */
.guide-head { display: grid; gap: 32px; padding-block: 28px 8px; align-items: end; }
@media (min-width: 960px) { .guide-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; padding-block: 40px 16px; } }
.guide-head h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.9rem); }
.guide-head .lede { max-width: 52ch; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); }
.guide-meta span { display: inline-flex; align-items: center; gap: 7px; }
.guide-meta a { text-decoration: none; font-weight: 600; color: var(--ink); }
.guide-meta a:hover { text-decoration: underline; }
.guide-crop { max-width: 520px; width: 100%; justify-self: end; }
@media (max-width: 959px) { .guide-crop { justify-self: stretch; max-width: none; } .guide-crop .crop-art { aspect-ratio: 16 / 9 !important; } }

.guide-layout { display: grid; gap: 24px; padding-block: 40px 72px; }
@media (min-width: 1080px) { .guide-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 72px; padding-block: 56px 96px; } }
.guide-main { min-width: 0; max-width: 70ch; display: grid; gap: 56px; align-content: start; }
.guide-prose > h2:first-child { margin-top: 0; }
.guide-prose h2 { scroll-margin-top: calc(var(--header) + 20px); }
.guide-prose p, .guide-prose li { font-size: 1.06rem; line-height: 1.7; }
.guide-prose a:not(.btn) { color: var(--magenta); text-decoration-color: color-mix(in srgb, var(--magenta) 40%, transparent); }
.guide-prose ol { counter-reset: step; list-style: none; padding-left: 0; }
.guide-prose ol > li { counter-increment: step; position: relative; padding-left: 2.6em; }
.guide-prose ol > li::before {
  content: counter(step); position: absolute; left: 0; top: .1em; width: 1.75em; height: 1.75em; border-radius: 50%;
  display: grid; place-items: center; border: 1.5px solid var(--magenta); color: var(--magenta); font-weight: 700; font-size: .9em;
}
.guide-prose ol > li + li { margin-top: .8em; }
.guide-note { max-width: 62ch; border-top: 1px solid var(--rule); padding-top: 16px; }
.guide-note a { color: var(--magenta); }
.guide-faq h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-bottom: 12px; scroll-margin-top: calc(var(--header) + 20px); }

/* table of contents */
.toc { display: none; }
@media (min-width: 1080px) {
  .toc { display: block; position: sticky; top: calc(var(--header) + 28px); align-self: start; max-height: calc(100dvh - var(--header) - 56px); overflow-y: auto; }
  .toc-mobile { display: none; }
}
.toc-title { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 10px; }
.toc-list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule-strong); }
.toc-list a {
  display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none;
  color: var(--ink-2); font-size: .93rem; line-height: 1.35; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.toc-list a:hover { color: var(--ink); }
.toc-list a.is-active { color: var(--magenta); border-left-color: var(--magenta); font-weight: 600; }
.toc-mobile { border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 0 16px; }
.toc-mobile summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.toc-mobile ol { margin: 0 0 14px; padding-left: 1.2em; display: grid; gap: 6px; }
.toc-mobile a { text-decoration: none; color: var(--ink-2); }

/* tool callout inside the article */
.tool-callout {
  margin-block: 2.2em; padding: 22px; border-radius: var(--radius); background: var(--shoal-1);
  border-left: 4px solid var(--magenta); display: grid; gap: 16px; grid-template-columns: auto minmax(0, 1fr); align-items: start;
}
.tool-callout-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--magenta); }
.tool-callout-icon .i { width: 24px; height: 24px; }
.tool-callout-copy { display: grid; gap: 6px; }
.tool-callout-copy p { font-size: 1rem !important; line-height: 1.5 !important; }
.tool-callout-title { font-weight: 680; font-stretch: 90%; font-size: 1.2rem !important; }
.tool-callout .btn { grid-column: 2; justify-self: start; }
@media (min-width: 720px) { .tool-callout { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; } .tool-callout .btn { grid-column: auto; } }

/* related guides */
.guide-related { border-top: 1px solid var(--rule); }
.guide-related h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.rel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .rel-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.rel-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: center; text-decoration: none; }
.rel-art .crop-frame { padding: 3px; background-size: 100% 3px, 100% 3px, 3px 100%, 3px 100%; }
.rel-copy { display: grid; gap: 2px; }
.rel-title { font-weight: 640; font-stretch: 90%; font-size: 1.12rem; line-height: 1.2; }
.rel-arrow { color: var(--magenta); transition: transform .2s var(--ease); }
.rel-row:hover .rel-title { text-decoration: underline; text-decoration-color: var(--magenta); }
.rel-row:hover .rel-arrow { transform: translateX(3px); }

/* ---------- guides index ---------- */
.guides-top { padding-block: 32px 28px; }
@media (min-width: 960px) { .guides-top { padding-block: 48px 36px; } }
.gf-card { display: grid; gap: 24px; text-decoration: none; align-items: center; }
@media (min-width: 960px) { .gf-card { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; } }
.gf-kicker { color: var(--magenta); font-size: 1.1rem; }
.gf-title { display: block; font-weight: 650; font-stretch: 86%; letter-spacing: -.018em; line-height: 1.05; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.gf-card:hover .gf-title { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--magenta); text-underline-offset: .12em; }
.gf-copy .muted { display: block; max-width: 46ch; font-size: 1.08rem; }
.gl-list { list-style: none; margin: 0; padding: 0; display: grid; }
@media (min-width: 900px) { .gl-list { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.gl-list li { border-top: 1px solid var(--rule-strong); }
.gl-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 22px 0; text-decoration: none; align-items: start; }
.gl-art .crop-frame { padding: 3px; background-size: 100% 3px, 100% 3px, 3px 100%, 3px 100%; }
.gl-copy { display: grid; gap: 6px; }
.gl-title { font-weight: 650; font-stretch: 88%; font-size: 1.3rem; line-height: 1.15; letter-spacing: -.01em; }
.gl-row:hover .gl-title { text-decoration: underline; text-decoration-color: var(--magenta); }
.gl-ex { font-size: .97rem; line-height: 1.5; }
.gl-meta { color: var(--ink-3); font-size: .98rem; }
@media (max-width: 520px) { .gl-row { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; } .gl-ex { display: none; } }
.guides-more-grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .guides-more-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; } }
.more-link { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; padding: 14px 0; }
.more-link > .i { width: 28px; height: 28px; color: var(--magenta); margin-top: 2px; }
.more-link > span { display: grid; gap: 2px; }
.more-link:hover strong { text-decoration: underline; text-decoration-color: var(--magenta); }

/* ---------- shared page tops ---------- */
.page-top { padding-block: 32px 28px; }
@media (min-width: 960px) { .page-top { padding-block: 48px 40px; } }
.page-hero { display: grid; gap: 32px; padding-block: 28px 16px; align-items: center; }
@media (min-width: 960px) { .page-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; padding-block: 48px 24px; } }
.page-hero h1 { max-width: 16ch; }
.page-hero-crop { width: 100%; max-width: 500px; justify-self: end; }
@media (max-width: 959px) { .page-hero-crop { max-width: none; } .page-hero-crop .crop-art { aspect-ratio: 16 / 9 !important; } }
.end-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.end-strip-text { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); font-weight: 600; font-stretch: 90%; letter-spacing: -.01em; line-height: 1.25; }

/* ---------- glossary ---------- */
.az { position: sticky; top: var(--header); z-index: 5; background: color-mix(in srgb, var(--paper) 94%, transparent); padding-block: 10px; }
.az-bar { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); border: 1px solid var(--ink); }
@media (min-width: 768px) { .az-bar { grid-template-columns: repeat(26, minmax(0, 1fr)); } }
.az-seg { display: grid; place-items: center; height: 36px; font-weight: 600; font-size: .92rem; color: var(--ink-3); text-decoration: none; }
.az-seg:nth-child(odd) { background: var(--paper-2); }
.az-seg.is-on { color: var(--paper); background: var(--ink); }
.az-seg.is-on:nth-child(even) { background: var(--ink-2); }
.az-seg.is-on:hover, .az-seg.is-on:focus-visible { background: var(--magenta); color: var(--on-magenta); }
.az-list { padding-block: 24px 72px; }
.az-group { display: grid; gap: 8px 40px; padding-block: 28px; border-top: 1px solid var(--rule-strong); scroll-margin-top: calc(var(--header) + 70px); }
@media (min-width: 900px) { .az-group { grid-template-columns: 140px minmax(0, 1fr); } }
.az-letter { font-size: clamp(3.4rem, 2.6rem + 3vw, 5.6rem); line-height: .9; color: var(--magenta); font-weight: 400; letter-spacing: 0; font-stretch: 100%; }
.az-terms { display: grid; gap: 32px; max-width: 70ch; }
.term { display: grid; gap: 8px; scroll-margin-top: calc(var(--header) + 70px); border-left: 3px solid transparent; transition: border-color .3s var(--ease), padding .3s var(--ease); }
.term:target { border-left-color: var(--magenta); padding-left: 16px; }
.term h3 { font-size: clamp(1.35rem, 1.15rem + .6vw, 1.7rem); }
.term p { font-size: 1.05rem; }
.term-rel { color: var(--ink-2); }
.term-rel .chart-label { margin-right: 4px; }
.term-rel a { color: var(--magenta); }

/* ---------- FAQ ---------- */
.faq-chips { padding-top: 8px; }
.faq-groups { padding-block: 16px 80px; display: grid; }
.faq-group { display: grid; gap: 16px 56px; padding-block: 36px; border-top: 1px solid var(--rule-strong); scroll-margin-top: calc(var(--header) + 16px); }
@media (min-width: 960px) { .faq-group { grid-template-columns: 300px minmax(0, 1fr); } .faq-group-head { position: sticky; top: calc(var(--header) + 28px); align-self: start; } }
.faq-group-head { display: grid; gap: 10px; align-content: start; }
.faq-group-head h2 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.2rem); }
.faq-group-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--shoal-1); color: var(--magenta); }
.faq-group-icon .i { width: 24px; height: 24px; }
.faq-group .faq { max-width: none; }
.faq-a a { color: var(--magenta); }

/* ---------- about ---------- */
.ab-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .ab-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; } }
.ab-feature { display: grid; gap: 10px; padding: 28px; border-radius: var(--radius); background: var(--ink); color: var(--paper); text-decoration: none; margin-top: 24px; justify-items: start; }
.ab-feature strong { font-size: 1.6rem; font-stretch: 86%; font-weight: 650; }
.ab-feature .muted { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.ab-feature .link-arrow { color: var(--paper); margin-top: 6px; }
.ab-feature-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--magenta); color: var(--on-magenta); }
.ab-feature-icon .i { width: 26px; height: 26px; }
.ab-feature:hover .link-arrow { text-decoration: underline; }
.ab-tools { list-style: none; margin: 0; padding: 0; }
.ab-tools li + li { border-top: 1px solid var(--rule); }
.ab-tool { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding: 18px 0; text-decoration: none; }
.ab-tool > .i { width: 26px; height: 26px; color: var(--magenta); margin-top: 2px; }
.ab-tool > span { display: grid; gap: 2px; }
.ab-tool strong { font-size: 1.12rem; }
.ab-tool:hover strong { text-decoration: underline; text-decoration-color: var(--magenta); }
.legend { margin: 0; display: grid; border-top: 1px solid var(--rule-strong); }
.legend-row { display: grid; gap: 6px 40px; padding: 22px 0; border-bottom: 1px solid var(--rule-strong); }
@media (min-width: 860px) { .legend-row { grid-template-columns: 300px minmax(0, 1fr); align-items: baseline; } }
.legend dt { display: flex; align-items: center; gap: 14px; font-weight: 650; font-size: 1.3rem; font-stretch: 88%; }
.legend dd { margin: 0; color: var(--ink-2); max-width: 64ch; }
.sw { width: 34px; height: 14px; flex: none; border-radius: var(--pill); }
.sw-measured { background: var(--magenta); }
.sw-read { background: var(--ink); }
.sw-estimate { background: transparent; border: 2px dashed var(--ink-2); }
.money-grid { display: grid; gap: 16px 56px; align-items: center; }
@media (min-width: 860px) { .money-grid { grid-template-columns: auto minmax(0, 1fr); } }
.money-num { font-size: clamp(6rem, 4rem + 9vw, 11rem); line-height: .85; font-weight: 700; font-stretch: 80%; color: var(--magenta); letter-spacing: -.04em; }
.who-grid { display: grid; gap: 20px 56px; }
@media (min-width: 860px) { .who-grid { grid-template-columns: 4fr 7fr; } }
.who-grid a { color: var(--magenta); }

/* ---------- methodology ---------- */
.m-copy { max-width: 66ch; }
.m-copy a { color: var(--magenta); }
.m-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .m-split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; } .m-split-rev > :first-child { order: 2; } }
.m-sec { scroll-margin-top: var(--header); }
.mx-fig { margin: 0; display: grid; gap: 10px; min-width: 0; }
.wgrid, .fgrid { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .95rem; }
.fgrid { min-width: 560px; }
.wgrid th, .wgrid td, .fgrid th, .fgrid td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--rule); }
.wgrid thead th, .fgrid thead th { font-weight: 600; font-size: .88rem; color: var(--ink-2); vertical-align: bottom; }
.wgrid tbody th, .fgrid tbody th { text-align: left; font-weight: 600; white-space: nowrap; }
@media (max-width: 767px) { .wgrid tbody th, .fgrid tbody th, .wgrid thead th:first-child, .fgrid thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--paper-2); box-shadow: 1px 0 0 var(--rule); } .wgrid tbody th, .fgrid tbody th { white-space: normal; min-width: 130px; } }
.wgrid td { height: 54px; white-space: nowrap; }
.wdot { display: inline-block; width: var(--d); height: var(--d); border-radius: 50%; background: var(--ink-3); vertical-align: middle; }
.wnum { display: inline-block; min-width: 2.2ch; margin-left: 8px; vertical-align: middle; text-align: left; color: var(--ink-2); font-weight: 600; }
.wgrid td.is-top .wdot { background: var(--magenta); }
.wgrid td.is-top .wnum { color: var(--magenta); }
.est { font-weight: 400; color: var(--ink-3); font-size: .9rem; margin-left: 6px; }
.m-factors { display: grid; gap: 24px 48px; }
@media (min-width: 860px) { .m-factors { grid-template-columns: 1fr 1fr; } }
.m-factor { display: grid; gap: 6px; padding-top: 16px; border-top: 2px solid var(--ink); align-content: start; }
.m-factor h3 { font-size: 1.2rem; }
.m-factor p { color: var(--ink-2); font-size: .98rem; }
.m-two { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1100px) { .m-two { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; } }
.fcell { display: inline-grid; place-items: center; width: 40px; height: 32px; border-radius: 4px; font-weight: 600;
  background: color-mix(in srgb, var(--ink) calc(var(--v) * 85%), var(--paper)); color: var(--ink); }
.fcell.is-dark { color: var(--paper); }
.mx-svg { width: 100%; height: auto; overflow: visible; }
.mx-svg text { font-family: var(--label); font-style: italic; font-size: 13px; fill: var(--ink-2); }
.mx-grid { stroke: var(--rule-strong); stroke-dasharray: 2 3; }
.mx-grid-strong { stroke: var(--ink-3); }
.mx-axis-line { stroke: var(--ink); }
.mx-area { fill: var(--shoal-2); }
.mx-line { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.mx-svg .mx-note { fill: var(--magenta); }
.mx-cost { fill: none; stroke: var(--magenta); stroke-width: 3; stroke-linejoin: round; }
.mx-dash { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-dasharray: 5 5; }
.mx-end { fill: var(--magenta); }
.mx-svg .mx-val { font-family: var(--font); font-style: normal; font-weight: 700; font-size: 15px; fill: var(--magenta); }
.mx-svg .mx-val-muted { fill: var(--ink-2); font-weight: 600; }
.m-cats { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); }
.m-cats li::marker { color: var(--magenta); }
.m-cats strong { color: var(--ink); }
.vscale { display: flex; height: 64px; border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.vseg { display: grid; place-items: center; font-size: 1.05rem; padding: 0 6px; text-align: center; line-height: 1.1; }
.v-tie { background: var(--shoal-1); }
.v-edge { background: var(--shoal-3); }
.v-win { background: var(--magenta); color: var(--on-magenta); }
.vticks { position: relative; height: 20px; font-size: .85rem; color: var(--ink-2); }
.vticks span { position: absolute; transform: translateX(-50%); }
.vticks span:first-child { transform: none; }
.vticks span:last-child { transform: translateX(-100%); }
.lat-diagram .ld-node rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.lat-diagram .ld-title { font-family: var(--font); font-style: normal; font-weight: 650; font-size: 15px; fill: var(--ink); }
.lat-diagram .ld-sub { font-size: 12.5px; }
.lat-diagram .ld-warm { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 4 5; }
.lat-diagram .ld-req { fill: none; stroke: var(--ink-2); stroke-width: 2; }
.lat-diagram .ld-best { stroke: var(--magenta); stroke-width: 3.5; }
.lat-diagram .ld-label-best { fill: var(--magenta); }
.lat-diagram .ld-hc rect { fill: var(--paper-2); stroke: var(--rule-strong); stroke-dasharray: 3 3; }
.lat-diagram .ld-hc text { font-family: var(--font); font-style: normal; font-size: 13px; fill: var(--ink-3); }
@media (max-width: 640px) { .lat-diagram text.ld-label { font-size: 17px; } .lat-diagram .ld-title { font-size: 17px; } .lat-diagram .ld-sub { font-size: 14px; } .lat-diagram .ld-hc text { font-size: 15px; } .mx-svg text { font-size: 14px; } }
.lat-diagram .ld-none { stroke: var(--ink-3); stroke-dasharray: 2 3; }
.sbar { display: flex; height: 26px; gap: 2px; }
.sb-seg { display: block; min-width: 4px; }
.sb-seg:first-child { border-radius: var(--pill) 0 0 var(--pill); }
.sb-seg:last-child { border-radius: 0 var(--pill) var(--pill) 0; }
.s-checked { background: var(--magenta); }
.s-unconf { background: repeating-linear-gradient(135deg, var(--magenta) 0 4px, var(--paper) 4px 7px); }
.s-listing { background: var(--ink); }
.s-profile { background: var(--ink-3); }
.s-none { background: var(--rule-strong); }
.sb-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--ink-2); font-size: .95rem; }
.sb-legend li { display: flex; align-items: center; gap: 8px; }
.sb-legend strong { color: var(--ink); }
.sb-key { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.profile-card { margin: 0; padding: 24px; display: grid; gap: 14px; max-width: 460px; width: 100%; justify-self: center; }
.pf-head { display: flex; align-items: center; gap: 14px; }
.pf-head > div { display: grid; }
.pf-head strong { font-size: 1.25rem; }
.pf-facts, .pf-scores { margin: 0; display: grid; }
.pf-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.pf-row dt { color: var(--ink-2); }
.pf-row dd { margin: 0; font-weight: 560; }
.pf-est { color: var(--magenta); font-size: 1.02rem; margin-top: 6px; }
.pf-scores { border: 1.5px dashed var(--rule-strong); border-radius: var(--radius); padding: 4px 14px; }
.pf-scores .pf-row:last-child { border-bottom: 0; }
.pips { display: inline-flex; gap: 5px; vertical-align: middle; }
.pip { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink-2); }
.pip.on { background: var(--ink); border-color: var(--ink); }
.aff-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.aff-list li { display: inline-flex; padding: 5px 12px; border-radius: var(--pill); border: 1px solid var(--rule-strong); font-size: .92rem; }
.aff-list li:has(a) { padding: 0; border: 0; }
.aff-list a { padding: 5px 12px; border-radius: var(--pill); border: 1px solid var(--rule-strong); text-decoration: none; }
.aff-list a:hover { border-color: var(--magenta); color: var(--magenta); }

/* ---------- legal pages ---------- */
.legal { display: grid; gap: 32px; padding-block: 32px 96px; }
@media (min-width: 1000px) { .legal { grid-template-columns: minmax(0, 1fr) 260px; gap: 80px; padding-block: 48px 120px; } }
.legal-main { display: grid; gap: 24px; align-content: start; min-width: 0; }
.legal-main .prose a { color: var(--magenta); }
.legal-updated { color: var(--ink-2); }
.legal-side { display: grid; gap: 12px; align-content: start; }
@media (min-width: 1000px) { .legal-side { position: sticky; top: calc(var(--header) + 28px); align-self: start; } }
.legal-side ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule-strong); }
.legal-side a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-2); }
.legal-side a:hover { color: var(--ink); }
.legal-side a[aria-current] { color: var(--magenta); border-left-color: var(--magenta); font-weight: 600; }
.consent-box { padding: 20px; border-radius: var(--radius); background: var(--shoal-1); display: grid; gap: 12px; justify-items: start; }

/* ---------- 404 ---------- */
.nf { display: grid; gap: 40px; padding-block: 40px 96px; align-items: center; }
@media (min-width: 960px) { .nf { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; padding-block: 72px 128px; } }
.nf-crop { position: relative; }
.nf-mark { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; pointer-events: none; }
.nf-mark svg { width: 64px; height: 64px; }
.nf-mark circle, .nf-mark line { fill: none; stroke: var(--magenta); stroke-width: 2.5; }
.nf-mark .chart-label { color: var(--magenta); font-size: 1.1rem; background: color-mix(in srgb, var(--paper) 80%, transparent); padding: 0 8px; border-radius: var(--pill); }
.nf-copy h1 { font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.4rem); }
.nf-links { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.nf-links li + li { border-top: 1px solid var(--rule); }
.nf-links a { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; text-decoration: none; }
.nf-links a > .i:first-child { color: var(--magenta); width: 24px; height: 24px; }
.nf-links a > .i:last-child { color: var(--magenta); }
.nf-links a span { display: grid; }
.nf-links a:hover strong { text-decoration: underline; text-decoration-color: var(--magenta); }
