/* EuTraffic: calm paper-and-ink design, road-sign accents. Tokens first; dark mode redefines them. */
:root {
  --bg: #f7f5ef;
  --bg-alt: #efece3;
  --surface: #ffffff;
  --ink: #16202a;
  --ink-soft: #46525e;
  --muted: #5b6671;            /* >= 4.5:1 on bg, bg-alt, surface and the soft tints (WCAG AA) */
  --line: #dcd7ca;
  --primary: #0f6b5c;          /* road-sign green */
  --primary-ink: #ffffff;
  --primary-soft: #dcefe9;
  --accent: #b86e00;           /* amber, warnings */
  --accent-soft: #fbedd3;
  --danger: #b4282f;
  --focus: #1b66c9;
  --road: #4a535c;
  --road-line: #f7f5ef;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(22 32 42 / 6%), 0 6px 20px rgb(22 32 42 / 6%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11161c; --bg-alt: #171e26; --surface: #1c242d; --ink: #e8ecef; --ink-soft: #b9c2ca; --muted: #8d98a3; --line: #2c3742;
    --primary: #4fc2a8; --primary-ink: #0b1714; --primary-soft: #183630; --accent: #f0b04a; --accent-soft: #3a2c14; --danger: #f07178;
    --focus: #7fb2ff; --road: #3a444e; --road-line: #11161c; --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 6px 20px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11161c; --bg-alt: #171e26; --surface: #1c242d; --ink: #e8ecef; --ink-soft: #b9c2ca; --muted: #8d98a3; --line: #2c3742;
  --primary: #4fc2a8; --primary-ink: #0b1714; --primary-soft: #183630; --accent: #f0b04a; --accent-soft: #3a2c14; --danger: #f07178;
  --focus: #7fb2ff; --road: #3a444e; --road-line: #11161c; --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 6px 20px rgb(0 0 0 / 25%);
  color-scheme: dark;
}

/* Scripts the guide will be read in: system fonts first (no webfonts are loaded from anywhere else). */
:lang(hi) { --font: "Nirmala UI", "Noto Sans Devanagari", "Mangal", system-ui, sans-serif; }
:lang(bn) { --font: "Nirmala UI", "Noto Sans Bengali", "Vrinda", system-ui, sans-serif; }
:lang(th) { --font: "Leelawadee UI", "Noto Sans Thai", "Tahoma", system-ui, sans-serif; }
:lang(zh) { --font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw + .5rem, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2vw + .8rem, 2rem); font-weight: 750; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: .5em 1em; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 760px; }
.muted { color: var(--muted); font-size: .95rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.brand b { color: var(--primary); font-weight: 800; }
.brand-mark { display: inline-flex; width: 34px; height: 34px; color: var(--primary); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: .5em .8em; border-radius: 8px; color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-alt); }
.header-tools { display: flex; align-items: center; gap: 6px; }
.langs { position: relative; }
.langs summary { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; list-style: none; font-weight: 700; font-size: .9rem; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover { border-color: var(--ink-soft); }
.langs summary .ico { width: 1em; height: 1em; vertical-align: 0; transition: transform .15s; }
.langs[open] summary .ico { transform: rotate(180deg); }
.flag { width: 21px; height: 14px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); }
.langs ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 13rem; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgb(0 0 0 / .14); }
.langs li a { display: flex; align-items: center; gap: 10px; padding: .55em .7em; border-radius: 8px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.langs li a:hover, .langs li a:focus-visible { background: var(--bg-alt); }
.langs li a[aria-current="true"] { background: var(--primary-soft); font-weight: 700; }
.langs li .langs-code { margin-left: auto; padding-left: 12px; color: var(--muted); font-size: .8rem; font-weight: 600; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink-soft); }
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: inline; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: inline; }
  :root:not([data-theme="light"]) .only-light { display: none; }
}
.nav-burger { display: none; }
@media (max-width: 760px) {
  .nav-burger { display: inline-grid; }
  .header-tools { margin-left: auto; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: .8em .6em; }
}

/* buttons, notes */
.btn { display: inline-flex; align-items: center; gap: .5em; min-height: 48px; padding: .7em 1.25em; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; color: var(--primary); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75em; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 46em; }
.note { display: flex; gap: .6em; align-items: flex-start; padding: .9em 1.1em; border-radius: 12px; background: var(--primary-soft); color: var(--ink); font-size: .98rem; max-width: 46em; }
.note .ico { color: var(--primary); margin-top: .2em; }
.verified { display: flex; gap: .5em; align-items: center; color: var(--muted); font-size: .95rem; margin-top: 1em; }
/* Sign finder: filters (radio chips), then the list */
.finder-link { display: flex; gap: .5em; align-items: center; margin-top: .6em; font-weight: 600; }
.finder-filters { display: grid; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.finder-filters[hidden], .finder-empty[hidden], .finder-item[hidden] { display: none; }
.finder-search { display: grid; gap: .35em; font-weight: 700; }
.finder-search input { min-height: 48px; padding: .6em .9em; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; }
.finder-filters fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.finder-filters legend { padding: 0; margin-bottom: .45em; font-weight: 700; }
.chip.finder-choice { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; cursor: pointer; font-weight: 600; }
.finder-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip.finder-choice:has(input:checked) { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.finder-choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.finder-shape { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.finder-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid #1b1b1b; }
.finder-swatch-red { background: #c1121f; } .finder-swatch-yellow { background: #f2c200; } .finder-swatch-green { background: #1a9b6c; }
.finder-swatch-blue { background: #1d5fbf; } .finder-swatch-white { background: #ffffff; } .finder-swatch-black { background: #1b1b1b; border-color: #8d98a3; }
.finder-count { margin: 0; color: var(--muted); }
.finder-filters .btn { justify-self: start; }
.sheet-brand { display: none; }
.sheet-print[hidden] { display: none; }
.sheet-print .btn { margin-top: .4em; }
.sheet h2 { margin-top: 1.4em; }
.sheet h2:first-child { margin-top: 0; }
.sheet-rules { margin: 0; padding-left: 1.4em; display: grid; gap: .55em; max-width: 60em; }
.sheet-more { font-size: .88rem; white-space: nowrap; }
.sheet-signs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.sheet-signs li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .95rem; line-height: 1.3; }
.sheet-signs img { width: 56px; height: 56px; object-fit: contain; }
.sheet-code { display: inline-block; font-weight: 700; color: var(--ink-soft); }
.sheet-note { color: var(--muted); max-width: 46em; }
.sheet-words { list-style: none; margin: 0; padding: 0; columns: 3 15em; column-gap: 2em; }
.sheet-words li { break-inside: avoid; padding: .2em 0; }
.sheet-words a { font-weight: 700; }
.sheet-topic { color: var(--muted); font-size: .9rem; }
.sheet-foot { margin-top: 1.6em; color: var(--muted); max-width: 46em; }
.finder-list { list-style: none; margin: 1.25em 0 0; padding: 0; display: grid; gap: 12px; }
.finder-item { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.finder-item img { width: 88px; height: 88px; }
.finder-item > div { overflow-wrap: anywhere; }
.finder-item h2 { margin: 0 0 .3em; font-size: 1.15rem; }
.finder-item p { margin: 0 0 .5em; }
.finder-national { font-size: .92rem; }
.finder-national a { white-space: nowrap; }
.finder-national a span { white-space: normal; }   /* a long sign text (e.g. Italy's FERMARSI E DARE PRECEDENZA) may wrap; short codes still stay with their country */
.finder-empty { margin-top: 1em; font-weight: 600; }
@media (max-width: 480px) { .finder-item { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px; } .finder-item img { width: 64px; height: 64px; } }

/* "Who goes first?" scenarios: picture beside question and steps; stacked on phones */
.scenario { margin-top: 1.25em; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 80px; }
.scenario h3 { margin: 0 0 .75em; }
.scenario-stage { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 18px; align-items: start; }
.scenario-picture { display: block; width: 100%; height: auto; border-radius: 10px; outline: 1px solid var(--line); }
.scenario-question { margin: 0 0 .6em; font-weight: 700; }
.scenario-choices, .scenario-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.scenario-choices[hidden], .scenario-controls[hidden], .scenario-steps[hidden], .scenario-steps li[hidden] { display: none; }
.scenario-feedback { margin: 0 0 .6em; font-weight: 700; color: var(--primary); }
.scenario-feedback:empty { display: none; }
.scenario-steps { margin: 0 0 1em; padding-left: 1.4em; }
.scenario-steps li { margin: 0 0 .5em; color: var(--ink-soft); }
.scenario-steps li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.scenario-controls .btn:disabled { opacity: .45; cursor: default; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid #1b1b1b; }
.swatch-you { background: #1a9b6c; }
.swatch-other { background: #c1121f; }
.swatch-tram { background: #f2c200; }
.swatch-emergency { background: linear-gradient(90deg, #1d5fbf 0 50%, #ffffff 50%); }
.scenario-rules { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.scenario-rules p { margin: 0 0 .3em; font-weight: 700; }
.scenario-rules ul { margin: 0; padding-left: 1.2em; }
@media (max-width: 640px) { .scenario { padding: 14px; } .scenario-stage { grid-template-columns: 1fr; } .scenario-picture { max-width: 300px; } }

.offline-save { margin-top: 1.25em; max-width: 46em; }
.offline-save[hidden] { display: none; }
.offline-save .muted { margin: .5em 0 0; }

/* hero */
.hero { padding: 40px 0 24px; }
.hero-in { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 72px 0 48px; } .hero-in { grid-template-columns: 1.4fr 1fr; } }
.hero-art { justify-self: center; width: min(320px, 80vw); }
.hero-art svg { display: block; width: 100%; height: auto; }
.art-road { fill: none; stroke: var(--road); stroke-width: 56; }
.art-island { fill: var(--primary-soft); stroke: var(--primary); stroke-width: 3; }
.art-lane { fill: none; stroke: var(--road-line); stroke-width: 2.5; stroke-dasharray: 10 12; opacity: .7; }
.art-arrow, .art-arrow-head { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 899px) { .hero-art { display: none; } }

/* sections */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { color: var(--ink-soft); max-width: 46em; margin-bottom: 1.5em; }
.page-head { padding: 40px 0 8px; }
@media (min-width: 900px) { .page-head { padding: 64px 0 16px; } }

/* cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); border-color: var(--primary); }
.card-code { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; border: 3px solid var(--primary); color: var(--primary); font-weight: 800; font-size: 1.05rem; letter-spacing: .03em; }
.card-baseline { background: var(--primary-soft); }
.card-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.card-title { font-weight: 700; font-size: 1.15rem; }
.card-sub { color: var(--ink-soft); font-size: .95rem; }
.card-meta { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.card-go { color: var(--muted); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-weight: 800; margin-bottom: 12px; }
.steps p { margin: 0; color: var(--ink-soft); }

.callout { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); }
.callout > .ico { width: 36px; height: 36px; margin-top: 2px; }
.callout p { margin: 0; max-width: 52em; }
.callout-warn { background: var(--accent-soft); border-left: 6px solid var(--accent); }
.callout-warn > .ico { color: var(--accent); }
@media (max-width: 560px) { .callout { flex-direction: column; } }

.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.topic { display: flex; gap: 14px; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.topic > .ico, .topic-row > .ico, .trust .ico { width: 28px; height: 28px; color: var(--primary); }
.topic h3 { margin-bottom: .2em; }
.topic p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

.topic-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.topic-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.topic-row h3 { margin: 0; }
.topic-row p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.topic-planned, .topic-researching { opacity: .85; }
@media (max-width: 560px) { .topic-row { grid-template-columns: auto minmax(0, 1fr); } .topic-row .badge { grid-column: 2; justify-self: start; } }
.badge { display: inline-block; padding: .2em .7em; border-radius: 99px; font-size: .82rem; font-weight: 700; white-space: nowrap; background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }
.badge-researching, .badge-draft { background: var(--accent-soft); color: var(--ink); border-color: transparent; }
.badge-published { background: var(--primary); color: var(--primary-ink); border-color: transparent; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-block; padding: .55em 1.1em; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.chip:hover { border-color: var(--primary); }

.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.lang-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lang-list li { display: inline-flex; align-items: center; gap: .4em; padding: .4em .9em; border-radius: 99px; background: var(--primary-soft); font-weight: 600; }
.lang-list .lang-planned { background: var(--surface); border: 1px dashed var(--line); color: var(--ink-soft); font-weight: 500; }
.trust, .checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.trust li, .checks li { display: flex; gap: 12px; align-items: flex-start; }
.trust h3 { margin-bottom: .15em; }
.trust p { margin: 0; color: var(--ink-soft); }
.checks .ico { color: var(--primary); margin-top: .25em; }

.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

.disclaimer { display: flex; gap: .7em; align-items: flex-start; margin: 32px 0 48px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font-size: .95rem; }
.disclaimer p { margin: 0; }
.disclaimer .ico { color: var(--accent); margin-top: .2em; }
.notice-unreviewed { display: flex; gap: .6em; align-items: flex-start; margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--accent); background: var(--surface); font-size: .92rem; }
.notice-unreviewed .ico { color: var(--accent); flex: none; margin-top: .25em; }

.page-404 { padding-bottom: 64px; }
.big-404 { font-size: 5rem; font-weight: 800; color: var(--primary); margin: 0; line-height: 1; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 40px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-about p { color: var(--ink-soft); margin-top: .75em; max-width: 30em; }
.footer-col h2 { font-size: 1rem; margin-bottom: .6em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35em; }
.footer-col a { color: var(--ink-soft); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-independent { margin: 28px 0 8px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.footer-bottom { color: var(--muted); margin: 0; }
.footer-bottom a { color: inherit; }

/* topic pages */
.crumbs { display: flex; flex-wrap: wrap; gap: .5em; font-size: .95rem; color: var(--muted); margin-bottom: 1em; }
.crumbs a { color: var(--ink-soft); }
.layer { display: flex; gap: .6em; align-items: flex-start; padding: .9em 1.1em; border-radius: 12px; font-size: .98rem; max-width: 46em; }
.layer .ico { margin-top: .2em; }
.layer-shared { background: var(--primary-soft); }
.layer-shared .ico { color: var(--primary); }
.layer-national { background: var(--accent-soft); }
.layer-national .ico { color: var(--accent); }
.section-topic { padding: 28px 0; }
.section-topic + .section-topic { padding-top: 8px; }
.facts { list-style: none; margin: 1em 0 0; padding: 0; display: grid; gap: 12px; }
.fact { padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--primary); scroll-margin-top: 80px; }
.fact-text { margin: 0 0 .5em; font-size: 1.05rem; }
.fact-meta { margin: 0; font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.fact-meta a { color: var(--ink-soft); }
.topic-link { color: var(--ink); text-decoration-color: var(--primary); }
.topic-published { border-color: var(--primary); }
.fact-region { display: inline-block; margin-bottom: .35em; padding: .1em .6em; border-radius: 99px; background: var(--accent-soft); color: var(--ink); font-size: .8rem; font-weight: 700; }
.fact-local { margin: 0 0 .4em; font-size: .92rem; color: var(--ink-soft); }
.fact-local span { font-weight: 700; color: var(--ink); }
.tips { list-style: none; margin: 1em 0; padding: 0; display: grid; gap: 14px; }
.tips li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: var(--accent-soft); }
.tips .ico { color: var(--accent); margin-top: .2em; }
.tips h3 { margin-bottom: .2em; }
.tips p { margin: 0; }
.fact-with-picture { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: start; }
.fact-picture { width: 88px; height: 88px; }
@media (max-width: 420px) { .fact-with-picture { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; } .fact-picture { width: 64px; height: 64px; } }
.fact-scene { grid-template-columns: 150px 1fr; }
.fact-scene .fact-picture { width: 150px; height: 150px; }
@media (max-width: 560px) { .fact-scene { grid-template-columns: 1fr; } .fact-scene .fact-picture { width: 100%; max-width: 240px; height: auto; } }

/* print: the quick card (and any topic page) prints as plain black on white, without navigation */
@media print {
  :root, :root[data-theme="dark"] { --bg: #fff; --bg-alt: #fff; --surface: #fff; --ink: #000; --ink-soft: #222; --muted: #444; --line: #bbb; }
  @page { margin: 12mm; }
  body { font-size: 9pt; line-height: 1.35; }
  .wrap, .narrow { max-width: none; padding: 0; }
  .site-header, .site-footer, .skip, .section-alt, .layer, .crumbs, .tips, .tips + .muted, .offline-save, .scenario-choices, .scenario-controls, .scenario-feedback, .finder-filters, .finder-link { display: none !important; }
  .sheet-print, .sheet-head .lead { display: none !important; }
  .sheet-brand { display: flex; gap: .4em; align-items: center; margin: 0; font-weight: 700; font-size: 8pt; }
  .sheet-head .verified { margin: 0; }
  .sheet h2 { margin: 5pt 0 2pt; font-size: 10.5pt; }
  .sheet-rules { gap: 1pt; padding-left: 12pt; font-size: 8pt; line-height: 1.25; max-width: none; }
  .sheet-more { font-size: 6.5pt; }
  .sheet-signs { grid-template-columns: repeat(4, 1fr); gap: 3pt; }
  .sheet-signs li { grid-template-columns: 26pt 1fr; gap: 4pt; padding: 2pt 4pt; border-radius: 4pt; font-size: 7.5pt; break-inside: avoid; }
  .sheet-signs img { width: 26pt; height: 26pt; }
  .sheet-note { margin: 0 0 2pt; font-size: 7.5pt; }
  .sheet-words { columns: 4; column-gap: 10pt; font-size: 7pt; line-height: 1.25; }
  .sheet-words li { padding: 0; }
  .sheet-topic { font-size: 6.5pt; }
  .sheet-foot { margin-top: 5pt; font-size: 7pt; max-width: none; }
  .sheet a { color: inherit; text-decoration: none; }
  /* a printed sheet ends with its own "summary, not legal advice" line (.sheet-foot), so the page disclaimer is not repeated */
  body:has(.sheet) .disclaimer { display: none; }
  .notice-unreviewed { margin: 0 0 4pt; padding: 3pt 6pt; border-radius: 4pt; font-size: 7.5pt; }
  .sheet-signs li { padding: 1pt 4pt; }
  .sheet-signs img { width: 22pt; height: 22pt; }
  .scenario-steps[hidden] { display: block !important; } .scenario-steps li[hidden] { display: list-item !important; }
  .scenario { break-inside: avoid; } .scenario-stage { grid-template-columns: 120pt 1fr; }
  .section, .section-topic, .page-head { padding: 3pt 0; }
  .lead { font-size: 9.5pt; margin-bottom: 2pt; }
  .verified { margin: 0; font-size: 8pt; }
  .facts { grid-template-columns: 1fr 1fr; gap: 4pt; margin-top: 2pt; }
  .fact { break-inside: avoid; box-shadow: none; padding: 4pt 6pt; border-left-width: 2pt; border-radius: 4pt; }
  .fact-with-picture, .fact-scene { grid-template-columns: 34pt 1fr; gap: 6pt; }
  .fact-picture, .fact-scene .fact-picture { width: 34pt; height: 34pt; }
  .fact-text { font-size: 9pt; margin-bottom: 2pt; }
  .fact-local { font-size: 8pt; margin-bottom: 1pt; }
  .fact-meta { font-size: 6.5pt; line-height: 1.25; }
  .fact-region { font-size: 7pt; padding: 0 4pt; margin-bottom: 1pt; }
  .disclaimer { margin: 6pt 0 0; padding: 4pt 6pt; font-size: 7.5pt; }
  h1 { font-size: 16pt; margin-bottom: 2pt; } h2 { font-size: 11pt; margin: 4pt 0 2pt; } h3 { font-size: 9.5pt; }
  .section-topic > .wrap > p { font-size: 8.5pt; margin-bottom: 2pt; }
}

/* ad places (only built when ads are switched on in _src/ads.php) */
.ad { margin: 8px 0 24px; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.ad-label { margin: 0 0 6px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ad .adsbygoogle { display: block; min-height: 90px; }
@media print { .ad { display: none !important; } }
