/* Silva Perpetua — how-to guides. Brand tokens from docs/marketing_site.html; no external scripts. */
:root {
  --paper: #eceee7; --paper2: #e4e8de; --card: #f8f9f5; --line: #ccd2c4;
  --ink: #153029; --ink-soft: #33413a; --muted: #5d655c;
  --spruce: #122b25; --spruce2: #1b3a32; --on-spruce: #dfe4da; --on-spruce-muted: #b4c2b8;
  --link: #1a6e4c; --link-hover: #0f4d34;
  --target: #d7a13f; --actual: #54c088; --actual-ink: #1f8a5f; --timber: #8a5a30;
  --tip-bg: #e3efe6; --tip-line: #1f8a5f;
  --warn-bg: #fbf1dc; --warn-line: #b7791f;
  --notyet-bg: #f2ece4; --notyet-line: #8a5a30;
  --mark: #c2410c; --mark-fill: rgba(194, 65, 12, .07);
  --disp: "Spectral", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1c18; --paper2: #142520; --card: #172a24; --line: #2c4038;
    --ink: #e8eee9; --ink-soft: #cdd8d0; --muted: #9fb0a5;
    --link: #7fd1a6; --link-hover: #a9e4c4;
    --tip-bg: #173328; --tip-line: #54c088; --warn-bg: #33290f; --warn-line: #d7a13f; --notyet-bg: #2a2219; --notyet-line: #c79a6b;
    --mark: #fb923c; --mark-fill: rgba(251, 146, 60, .1);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink-soft); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
h1, h2, h3, h4 { font-family: var(--disp); color: var(--ink); font-weight: 600; line-height: 1.18; }
h1 { font-size: clamp(32px, 5vw, 44px); margin: 6px 0 10px; letter-spacing: -.01em; }
h2 { font-size: 27px; margin: 52px 0 14px; padding-top: 8px; border-top: 1px solid var(--line); }
h3 { font-size: 21px; margin: 32px 0 8px; }
h4 { font-family: var(--body); font-size: 16px; font-weight: 600; margin: 22px 0 6px; }
p { margin: 0 0 14px; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--target); outline-offset: 2px; border-radius: 3px; }
code, kbd { font-family: var(--mono); font-size: .86em; background: var(--paper2); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.ui { font-family: var(--body); font-weight: 600; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--target); color: #111; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 18px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; }
ul, ol { padding-left: 1.3em; }
li { margin: 4px 0; }

/* top bar */
.top { position: sticky; top: 0; z-index: 30; background: var(--spruce); color: var(--on-spruce); border-bottom: 1px solid rgba(236, 238, 231, .1); }
.top-in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: #eceee7; font-family: var(--disp); font-weight: 700; font-size: 19px; text-decoration: none; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand-sub { font-family: var(--body); font-weight: 500; font-size: 13px; color: var(--on-spruce-muted); border-left: 1px solid rgba(236, 238, 231, .25); padding-left: 9px; }
.search { position: relative; flex: 1; max-width: 460px; margin-left: auto; }
.search input { width: 100%; height: 38px; border-radius: 8px; border: 1px solid rgba(236, 238, 231, .25); background: rgba(255, 255, 255, .08); color: #fff; padding: 0 36px 0 12px; font: 15px var(--body); }
.search input::placeholder { color: var(--on-spruce-muted); }
.search kbd { position: absolute; right: 9px; top: 9px; background: transparent; color: var(--on-spruce-muted); border-color: rgba(236, 238, 231, .3); }
.top-links { display: flex; gap: 16px; align-items: center; }
.top-links a { color: var(--on-spruce); text-decoration: none; font-size: 14px; white-space: nowrap; }
.top-links a:hover { color: #fff; text-decoration: underline; }
.top-links a.app { border: 1px solid rgba(236, 238, 231, .35); padding: 6px 12px; border-radius: 6px; }
@media (max-width: 760px) {
  .top-in { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 8px 12px; }
  .brand-sub { display: none; }
  .search { order: 3; flex: 1 0 100%; max-width: none; }
  .top-links { margin-left: auto; gap: 12px; }
  .top-links a:first-child { display: none; }
}

/* search results */
[role=listbox] { list-style: none; margin: 6px 0 0; padding: 6px; position: absolute; left: 0; right: 0; z-index: 40; background: var(--card); color: var(--ink-soft); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .22); max-height: min(70vh, 520px); overflow-y: auto; }
[role=listbox] li { margin: 0; }
[role=listbox] a { display: block; padding: 8px 10px; border-radius: 7px; text-decoration: none; color: inherit; }
[role=listbox] a b { color: var(--ink); display: block; font-weight: 600; }
[role=listbox] a span { font-size: 13.5px; color: var(--muted); display: block; }
[role=listbox] a .sec { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
[role=listbox] [aria-selected=true] a, [role=listbox] a:hover { background: var(--paper2); }
[role=listbox] .none { padding: 10px; color: var(--muted); font-size: 14px; }
mark { background: rgba(215, 161, 63, .35); color: inherit; border-radius: 2px; }

/* layout */
.page { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 48px; }
.side { position: relative; }
.toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 34px 0 20px; font-size: 14px; }
.toc-h { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--link); }
.toc a.on { border-left-color: var(--actual-ink); color: var(--ink); font-weight: 600; }
.toc-mobile { display: none; }
.content { min-width: 0; max-width: 820px; padding: 28px 0 60px; }
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { display: none; }
  .toc-mobile { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 4px 0 24px; }
  .toc-mobile summary { cursor: pointer; padding: 10px 14px; font-weight: 600; color: var(--ink); }
  .toc-mobile .toc { position: static; max-height: none; padding: 0 14px 12px; }
  .toc-mobile .toc-h { display: none; }
  .content { margin: 0 auto; width: 100%; }
}
.crumbs { font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.summary { font-family: var(--disp); font-style: italic; font-size: 21px; line-height: 1.45; color: var(--ink-soft); max-width: 60ch; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 16px 0 20px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14.5px; }
.facts div { min-width: 0; }
.facts dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }

/* steps */
ol.steps { list-style: none; padding: 0; margin: 14px 0 22px; counter-reset: step; }
ol.steps > li { counter-increment: step; position: relative; padding: 2px 0 12px 46px; margin: 0; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--mark); color: #fff; font: 600 15px/30px var(--body); text-align: center; }
ol.steps > li::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
ol.steps > li:last-child::after { display: none; }
ol.steps > li > b:first-child { color: var(--ink); }

/* boxes */
.tip, .warn, .notyet, .prereq, .why { border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; border: 1px solid var(--line); border-left-width: 5px; }
.tip { background: var(--tip-bg); border-left-color: var(--tip-line); }
.warn { background: var(--warn-bg); border-left-color: var(--warn-line); }
.notyet { background: var(--notyet-bg); border-left-color: var(--notyet-line); }
.prereq, .why { background: var(--card); border-left-color: var(--actual-ink); }
.tip > :last-child, .warn > :last-child, .notyet > :last-child, .prereq > :last-child, .why > :last-child { margin-bottom: 0; }
.box-h { display: block; font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin: 0 0 4px; }
.notyet h2, .notyet h3 { border: 0; margin: 0 0 6px; padding: 0; font-size: 20px; }
.badge { display: inline-block; font: 600 12px/1.6 var(--body); padding: 0 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); white-space: nowrap; vertical-align: 1px; }
.badge.prov { background: #fbf1dc; color: #6b4a0f; border-color: #e7c98d; }
.badge.built { background: #e3efe6; color: #17583c; border-color: #aed5bd; }
.badge.no { background: #eee; color: #444; }
@media (prefers-color-scheme: dark) { .badge.prov { background: #33290f; color: #f1d08c; border-color: #6b5420; } .badge.built { background: #173328; color: #a9e4c4; border-color: #2f6b4f; } .badge.no { background: #222; color: #ccc; } }

/* screenshots */
figure.shot { margin: 18px 0 26px; }
figure.shot .zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.frame { position: relative; display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(18, 43, 37, .08); }
.frame img { display: block; width: 100%; height: auto; }
figure.android .frame { border-radius: 22px; border: 6px solid #1c2421; }
figure.android, figure.phone { max-width: 290px; }
figure.wide { margin-left: 0; margin-right: 0; }
.marks { position: absolute; inset: 0; pointer-events: none; }
.mk { position: absolute; border: 2.5px solid var(--mark); border-radius: 6px; background: var(--mark-fill); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); transition: background .15s, box-shadow .15s; }
.mk b { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--mark); color: #fff; font: 700 12.5px/22px var(--body); text-align: center; box-shadow: 0 0 0 2px #fff; }
.mk.hl { background: rgba(194, 65, 12, .2); box-shadow: 0 0 0 4px rgba(194, 65, 12, .35); }
figcaption { font-size: 14.5px; color: var(--muted); margin-top: 8px; }
figcaption .where { display: inline-block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--timber); margin-right: 8px; }
.legend { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); color: var(--ink-soft); }
.legend li { margin: 0; display: flex; gap: 8px; align-items: baseline; cursor: default; }
.legend li b { flex: 0 0 20px; height: 20px; border-radius: 50%; background: var(--mark); color: #fff; font: 700 11.5px/20px var(--body); text-align: center; }
.pair { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; margin: 18px 0 26px; }
.pair figure.shot { margin: 0; max-width: none; }
.pair.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pair.phones { grid-template-columns: repeat(auto-fill, minmax(190px, 250px)); }
@media (max-width: 640px) { .pair, .pair.even { grid-template-columns: minmax(0, 1fr); } figure.android, figure.phone, .pair figure.android { max-width: 300px; } }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 14px 0; }
.gcard { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink-soft); transition: border-color .15s, transform .15s; }
.gcard:hover { border-color: var(--actual-ink); color: var(--ink-soft); transform: translateY(-1px); }
.gcard b { font-family: var(--disp); font-size: 19px; color: var(--ink); line-height: 1.25; }
.gcard span { font-size: 14.5px; line-height: 1.5; }
.gcard .meta { margin-top: auto; font-size: 12.5px; color: var(--muted); }
.hubcard { grid-column: 1 / -1; border-left: 5px solid var(--actual-ink); }
.related h2 { font-size: 22px; }
.prevnext { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin: 36px 0 0; }
.prevnext a { display: block; hyphens: auto; overflow-wrap: break-word; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--card); font-weight: 600; }
.prevnext a span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; }
.prevnext .next { text-align: right; }

/* home */
.hero { background: var(--spruce); color: var(--on-spruce); padding: 54px 20px 60px; }
.hero-in { max-width: 1000px; margin: 0 auto; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #9fb0a4; margin: 0; }
.hero h1 { color: #fff; font-size: clamp(32px, 5.4vw, 50px); max-width: 21ch; margin: 14px 0 12px; }
.hero h1 em { color: var(--target); }
.hero-sub { font-size: 18px; color: #c2cabf; max-width: 60ch; }
.hero-search { position: relative; max-width: 640px; margin-top: 24px; }
.hero-search label { display: block; font-size: 13px; color: #9fb0a4; margin-bottom: 6px; }
.hero-search input { width: 100%; height: 50px; border-radius: 10px; border: 1px solid rgba(236, 238, 231, .3); background: #fff; color: #153029; padding: 0 16px; font: 17px var(--body); }
.home-main { max-width: 1100px; margin: 0 auto; }
.home-main h2 { border-top: 0; margin-top: 44px; }
.sec-intro { color: var(--muted); margin-top: -6px; }
.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.role { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--actual-ink); border-radius: var(--radius); padding: 14px 18px; }
.role h3 { margin: 4px 0 4px; font-size: 20px; }
.role p { font-size: 14.5px; color: var(--muted); margin-bottom: 8px; }
.role ol { margin: 0; padding-left: 1.2em; font-size: 15px; }
.principles ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.principles li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 0; font-size: 15.5px; }
.principles b { color: var(--ink); display: block; font-family: var(--disp); font-size: 18px; }
.newslist { list-style: none; padding: 0; }
.newslist li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.newslist time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .newslist li { grid-template-columns: 1fr; gap: 0; } .hero { padding: 36px 16px 44px; } .page { padding: 0 16px; } body { font-size: 16.5px; } h2 { font-size: 24px; } }
.hub .cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* footer */
.foot { background: var(--spruce); color: var(--on-spruce-muted); margin-top: 40px; }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 28px 20px; display: grid; gap: 6px; font-size: 13.5px; }
.foot .note { max-width: 80ch; margin: 0; }
.foot a { color: var(--on-spruce); }

/* lightbox */
dialog#lightbox { width: min(96vw, 1500px); max-height: 94vh; padding: 0; border: 0; border-radius: 12px; background: var(--card); color: var(--ink-soft); }
dialog#lightbox::backdrop { background: rgba(8, 18, 15, .78); }
.lb-bar { position: sticky; top: 0; z-index: 2; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--card); border-bottom: 1px solid var(--line); font-size: 14px; }
.lb-title { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-close { font: 600 14px var(--body); padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; white-space: nowrap; }
.lb-body { padding: 14px; overflow: auto; max-height: calc(94vh - 56px); }
.lb-body .frame { box-shadow: none; }
.lb-body.android .frame { max-width: 520px; margin: 0 auto; border-radius: 22px; border: 6px solid #1c2421; }
.lb-body .legend { margin-top: 12px; }

/* print */
@media print {
  :root { --paper: #fff; --card: #fff; }
  body { font-size: 11pt; background: #fff; color: #000; }
  .top, .side, .toc-mobile, .prevnext, .related, .foot, .skip, dialog, .hero-search, .search { display: none !important; }
  .layout { display: block; }
  .content { max-width: none; padding: 0; }
  h2 { break-after: avoid; margin-top: 24px; }
  figure.shot, .pair, .tip, .warn, .notyet, ol.steps > li { break-inside: avoid; }
  .frame { box-shadow: none; }
  figure.android, figure.phone { max-width: 6cm; }
  a { color: #000; }
  .hero { background: #fff; color: #000; padding: 0; } .hero h1 { color: #000; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* glossary, FAQ, sources */
dl.glossary dt { font-family: var(--disp); font-weight: 600; font-size: 19px; color: var(--ink); margin: 20px 0 2px; scroll-margin-top: 84px; }
dl.glossary dd { margin: 0; }
.content details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin: 10px 0; }
.content details summary { cursor: pointer; color: var(--ink); }
.content details[open] summary { margin-bottom: 6px; }
.content details p { margin: 0 0 6px; }
.sources { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 32px; }
@media (max-width: 760px) { .search kbd { display: none; } }
@media (max-width: 520px) { .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; } }
/* the lightbox shows a screenshot at its own size (never stretched), centred */
.lb-body .frame { width: fit-content; max-width: 100%; margin: 0 auto; }
.lb-body .frame img { width: auto; max-width: 100%; }

/* your region: the picker (top bar and home hero), the region panels and what folds away for other regions */
.region-pick { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.region-pick[hidden] { display: none; }
.region-pick label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--on-spruce-muted); white-space: nowrap; }
.region-pick select { height: 38px; max-width: 220px; border-radius: 8px; border: 1px solid rgba(236, 238, 231, .25); background: rgba(255, 255, 255, .08); color: #fff; padding: 0 8px; font: 14px var(--body); cursor: pointer; }
.region-pick select option, .region-pick select optgroup { color: #153029; background: #fff; }
html[data-region]:not([data-region=all]) .top .region-pick select { border-color: var(--target); }
@media (max-width: 760px) {
  .search { flex: 1 1 55%; min-width: 0; }
  .top .region-pick { order: 4; flex: 1 1 35%; min-width: 0; }
  .top .region-pick label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .top .region-pick select { width: 100%; max-width: none; }
}
.hero-region { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; padding: 14px 16px; border: 1px solid rgba(215, 161, 63, .55); border-radius: 12px; background: rgba(255, 255, 255, .05); max-width: 760px; }
.hero-pick label { font-size: 13px; font-weight: 600; color: var(--target); }
.hero-pick select { height: 46px; min-width: 240px; max-width: 100%; font-size: 16px; background: #fff; color: #153029; border-color: transparent; }
.hr-note { margin: 0; flex: 1 1 260px; font-size: 14.5px; color: #c2cabf; }
@media (max-width: 520px) { .hero-pick { flex-wrap: wrap; width: 100%; } .hero-pick select { min-width: 0; width: 100%; } }

.rpanel { min-width: 0; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--target); border-radius: var(--radius); padding: 12px 18px; margin: 4px 0 26px; font-size: 15.5px; }
.rpanel > div > :last-child { margin-bottom: 0; }
.rp-h { font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin: 0 0 6px; }
.rp-k { font-weight: 600; color: var(--ink); margin-right: 6px; }
.rp-rec .rp-k::after, .rp-alt .rp-k::after { content: ":"; }
.rp-rec { margin: 0 0 6px; }
.rp-rec a { font-weight: 600; }
.rp-alt { margin: 0 0 6px; font-size: 15px; }
.rp-where, .rp-in { color: var(--muted); font-size: 14px; }
.rp-note { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
ul.rp-sum { list-style: none; padding: 0; margin: 0; }
ul.rp-sum > li { margin: 0; padding: 5px 0; border-top: 1px solid var(--line); }
ul.rp-sum > li:first-child { border-top: 0; }
ul.rp-sum ul { margin: 2px 0 0; }
ul.rp-topics { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 22px; }
ul.rp-topics li { margin: 0; display: flex; flex-direction: column; padding: 6px 0; border-top: 1px solid var(--line); }
ul.rp-topics li > a { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-decoration: none; }
ul.rp-topics li > span a { font-weight: 600; }
table.matrix td { font-size: 14.5px; }
table.matrix ul.rp-sum > li { padding: 3px 0; }
.yours { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--target); border-radius: var(--radius); padding: 4px 20px 16px; margin-top: 30px; }
.home-main .yours h2 { margin-top: 12px; }
.rtag { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--timber); background: var(--paper2); border: 1px solid var(--line); border-radius: 999px; padding: 0 9px; margin: -4px 0 12px; }

.content details.elsewhere { border-style: dashed; background: transparent; padding: 8px 14px; margin: 18px 0; }
.content details.elsewhere > summary { color: var(--ink-soft); font-size: 15px; }
.content details.elsewhere > summary b { color: var(--ink); }
.ew-what { color: var(--ink-soft); }
.ew-what::before { content: "— "; }
.ew-where { display: block; color: var(--muted); font-size: 13.5px; padding-left: 1.1em; }
.content details.elsewhere[open] > summary { margin-bottom: 4px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.content details.elsewhere > h2 { margin-top: 18px; }
.elsewhere-toggle { display: inline-block; margin: -8px 0 18px; padding: 5px 12px; font: 600 13.5px var(--body); color: var(--link); background: transparent; border: 1px dashed var(--line); border-radius: 999px; cursor: pointer; }
.elsewhere-toggle:hover { color: var(--link-hover); border-color: var(--link); }
.elsewhere-row.shown { opacity: .72; }
tr.elsewhere-row.shown td:first-child { box-shadow: inset 3px 0 0 var(--line); }
.toc a.elsewhere { color: var(--muted); }
.toc a.elsewhere::after { content: " · other regions"; font-size: 12px; }
@media print { .region-pick, .elsewhere-toggle { display: none !important; } }
table.matrix .alt { display: block; padding: 1px 0; }
@media (max-width: 640px) {
  table.matrix thead { display: none; }
  table.matrix tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
  table.matrix td { display: block; border: 0; padding: 2px 0; }
  table.matrix td:first-child a { font-weight: 600; }
  table.matrix td:nth-child(2)::before, table.matrix td:nth-child(3):not(:empty)::before { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 4px; }
  table.matrix td:nth-child(2)::before { content: "Recommended"; }
  table.matrix td:nth-child(3):not(:empty)::before { content: "Also fits"; }
}

/* languages: EN · FR · DE · ES in the top bar (the same page in each), the machine-translation note, and a page whose
   translation is older than the English guide */
.langs { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex: 0 0 auto; line-height: 1.2; }
.lang-links { display: flex; gap: 2px; }
.lang-links a { color: var(--on-spruce-muted); text-decoration: none; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; padding: 3px 5px; border-radius: 4px; }
.lang-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lang-links a[aria-current] { color: #fff; box-shadow: inset 0 -2px 0 var(--target); border-radius: 0; }
.lang-mt { font-size: 10.5px; color: var(--target); white-space: nowrap; cursor: help; }
@media (max-width: 760px) {
  .langs { order: 2; flex-direction: row; align-items: center; gap: 6px; }
  .lang-links a { padding: 3px 4px; }
}
@media (max-width: 420px) { .lang-mt { display: none; } }
.mt-stale { background: var(--card); border: 1px dashed var(--target); border-radius: var(--radius); padding: 8px 14px; font-size: 14.5px; color: var(--ink-soft); }
