/* Ansvarlig Pengespill — institutional / health. Indigo, lavender, one coral accent. Nunito Sans served by the site. */
@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #2b2a6b;
  --ink-deep: #1d1c4c;
  --ink-soft: #4f4d96;
  --lav: #f4f3fb;
  --lav-2: #e9e7f6;
  --line: #dcd9ee;
  --coral: #e0664a;
  --coral-dk: #b84329;
  --coral-bg: #fdeee9;
  --text: #22223a;
  --muted: #5c5c78;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 28, 76, .06), 0 8px 24px rgba(29, 28, 76, .08);
  --font: "Nunito Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral-dk); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink-deep); line-height: 1.2; letter-spacing: -.01em; font-weight: 800; }
h2 { font-size: 1.6rem; margin: 2.2em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.6em 0 .4em; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }
.ico-s { flex: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 .6em; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--coral-dk); }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--coral); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 800; font-size: .98rem; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-coral { background: var(--coral-dk); color: #fff; }
.btn-coral:hover { background: #9c3520; color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-deep); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-block { width: 100%; }

/* help strip and header */
.helpstrip { background: var(--ink-deep); color: #dcdaf5; font-size: .88rem; }
.helpstrip-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.helpstrip p { margin: 0; }
.helpstrip a { color: #fff; text-decoration: none; }
.helpstrip a:hover { text-decoration: underline; color: #fff; }
.helpstrip-dot { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(224, 102, 74, .25); vertical-align: 1px; }
.helpstrip-note { color: #b9b6e3; margin-left: 4px; }
.helpstrip ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-deep); }
.logo-mark { flex: none; }
.logo-words { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-size: 1.32rem; font-weight: 900; letter-spacing: -.015em; }
.logo-light { color: #fff; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.head-test { font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--lav-2); padding-bottom: 2px; }
.head-test:hover { border-color: var(--coral); color: var(--ink); }
.menu { border-top: 1px solid var(--lav-2); }
.menu ul { display: flex; flex-wrap: nowrap; gap: 4px; list-style: none; margin: 0; padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.menu a { display: block; padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.menu a:hover { background: var(--lav); color: var(--ink-deep); }
.menu a[aria-current] { background: var(--ink); color: #fff; }
.menu-mobile { display: none; }

/* home: hero */
.hero { position: relative; overflow: hidden; background: var(--lav); border-bottom: 1px solid var(--line); }
.hero-beams { position: absolute; inset: 0; pointer-events: none;
  background:
    conic-gradient(from 222deg at 92% -8%, transparent 0deg, rgba(224, 102, 74, .13) 10deg, transparent 22deg, transparent 34deg, rgba(43, 42, 107, .07) 44deg, transparent 58deg); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; padding: 56px 24px 88px; }
.hero-visual { position: relative; padding: 0 0 0 64px; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 28px 28px 28px 6px; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); margin: .1em 0 .4em; max-width: 15em; }
.hero-lead p { font-size: 1.18rem; color: #35355a; max-width: 34em; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 1em; }
.hero-date { font-size: .88rem; color: var(--muted); margin: 0; }
.hero-card { position: absolute; left: 0; bottom: -44px; width: min(290px, 56%); background: #fff; border-radius: 20px; box-shadow: 0 2px 4px rgba(29, 28, 76, .08), 0 18px 40px rgba(29, 28, 76, .18); padding: 22px 24px 20px; border-top: 6px solid var(--coral); }
.hero-card-top { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-weight: 800; color: var(--coral-dk); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-card-name { margin: 0; font-weight: 800; font-size: 1.15rem; color: var(--ink-deep); }
.hero-card-num { margin: 0 0 6px; font-size: 2.1rem; font-weight: 900; letter-spacing: -.01em; line-height: 1.1; }
.hero-card-num a { text-decoration: none; color: var(--ink); }
.hero-card-facts { list-style: none; padding: 0; margin: 0 0 18px; }
.hero-card-txt { font-size: .9rem; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.hero-card-facts li { position: relative; padding: 5px 0 5px 26px; border-top: 1px solid var(--lav-2); font-size: .92rem; }
.hero-card-facts li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 10px; height: 6px; border-left: 2px solid var(--coral); border-bottom: 2px solid var(--coral); transform: rotate(-45deg); }
.hero-card-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; }

/* bands */
.band { padding: 72px 0; }
.band-lav { background: var(--lav); }
.band-ink { background: var(--ink); color: #e6e4fa; }
.band-head { margin-bottom: 32px; max-width: 760px; }
.band-head h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.band-head-light h2 { color: #fff; }
.band-head-light .eyebrow { color: #ffb4a1; }
.more { margin: 28px 0 0; }
.more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; }

/* home: tasks */
.tasks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.tasks a { display: flex; align-items: center; gap: 18px; padding: 20px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.tasks li:nth-child(-n+2) a { border-top: 1px solid var(--line); }
.task-ico svg { width: 44px; height: 44px; }
.task-txt { flex: 1; display: flex; flex-direction: column; }
.task-txt strong { font-size: 1.1rem; color: var(--ink-deep); }
.task-txt span { color: var(--muted); font-size: .95rem; }
.tasks a > .ico-s { color: var(--ink-soft); transition: transform .15s; }
.tasks a:hover strong { color: var(--coral-dk); }
.tasks a:hover > .ico-s { transform: translateX(4px); color: var(--coral-dk); }

/* home: facts */
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.facts li { border-left: 3px solid var(--coral); padding: 4px 0 4px 20px; }
.fact-num { display: block; font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 8px; white-space: nowrap; }
.fact-txt { font-size: .98rem; }
.facts-src { margin: 32px 0 0; font-size: .82rem; color: #b9b6e3; max-width: 900px; }
.facts-src a { color: #fff; }

/* home: self-test (CSS counter, no script) */
.test-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.test-intro h2 { margin-top: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.test-scale { background: var(--lav); border-radius: var(--radius); padding: 22px 24px; margin-top: 20px; }
.test-scale-t { font-weight: 800; color: var(--ink-deep); margin-bottom: .4em; }
.test-note { font-size: .84rem; color: var(--muted); margin: 0; }
.test { counter-reset: tegn; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 10px 26px 22px; box-shadow: var(--shadow); }
.test-q { list-style: none; margin: 0; padding: 0; }
.test-q li { border-bottom: 1px solid var(--lav-2); }
.test-q label { display: flex; align-items: flex-start; gap: 14px; padding: 13px 0; cursor: pointer; }
.test-box { flex: none; width: 26px; height: 26px; margin-top: 1px; border: 2px solid var(--ink-soft); border-radius: 8px; background: #fff; position: relative; transition: background .15s, border-color .15s; }
.test-in { position: fixed; top: 50%; left: 0; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; } /* fixed: focusing a hidden box never scrolls the page */
.test-in:checked { counter-increment: tegn; }
#tegn1:checked ~ .test-q label[for=tegn1] .test-box, #tegn2:checked ~ .test-q label[for=tegn2] .test-box, #tegn3:checked ~ .test-q label[for=tegn3] .test-box, #tegn4:checked ~ .test-q label[for=tegn4] .test-box, #tegn5:checked ~ .test-q label[for=tegn5] .test-box, #tegn6:checked ~ .test-q label[for=tegn6] .test-box, #tegn7:checked ~ .test-q label[for=tegn7] .test-box, #tegn8:checked ~ .test-q label[for=tegn8] .test-box, #tegn9:checked ~ .test-q label[for=tegn9] .test-box { background: var(--ink); border-color: var(--ink); }
#tegn1:checked ~ .test-q label[for=tegn1] .test-box::after, #tegn2:checked ~ .test-q label[for=tegn2] .test-box::after, #tegn3:checked ~ .test-q label[for=tegn3] .test-box::after, #tegn4:checked ~ .test-q label[for=tegn4] .test-box::after, #tegn5:checked ~ .test-q label[for=tegn5] .test-box::after, #tegn6:checked ~ .test-q label[for=tegn6] .test-box::after, #tegn7:checked ~ .test-q label[for=tegn7] .test-box::after, #tegn8:checked ~ .test-q label[for=tegn8] .test-box::after, #tegn9:checked ~ .test-q label[for=tegn9] .test-box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 7px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
#tegn1:focus-visible ~ .test-q label[for=tegn1] .test-box, #tegn2:focus-visible ~ .test-q label[for=tegn2] .test-box, #tegn3:focus-visible ~ .test-q label[for=tegn3] .test-box, #tegn4:focus-visible ~ .test-q label[for=tegn4] .test-box, #tegn5:focus-visible ~ .test-q label[for=tegn5] .test-box, #tegn6:focus-visible ~ .test-q label[for=tegn6] .test-box, #tegn7:focus-visible ~ .test-q label[for=tegn7] .test-box, #tegn8:focus-visible ~ .test-q label[for=tegn8] .test-box, #tegn9:focus-visible ~ .test-q label[for=tegn9] .test-box { outline: 3px solid var(--coral); outline-offset: 2px; }
.test-sum { margin: 18px 0 6px; font-size: 1.05rem; font-weight: 700; color: var(--ink-deep); }
.test-total::after { content: counter(tegn); display: inline-block; min-width: 1.6em; padding: 0 8px; margin: 0 2px; border-radius: 8px; background: var(--coral-bg); color: var(--coral-dk); font-weight: 900; text-align: center; }
.test-res { margin: 10px 0 8px; padding: 16px 18px; border-radius: 14px; background: var(--lav); }
.test-res p { margin: 0 0 .5em; font-size: .97rem; }
.test-res p:last-child { margin-bottom: 0; }
.res-t { font-weight: 800; color: var(--ink-deep); }
.res-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px !important; }
.res-1, .res-n { display: none; }
.test:has(.test-in:checked) .res-0 { display: none; }
.test:has(.test-in:checked) .res-1 { display: block; }
.test:has(.test-in:checked ~ .test-in:checked) .res-1 { display: none; }
.test:has(.test-in:checked ~ .test-in:checked) .res-n { display: block; }
.test:has(.test-in:checked ~ .test-in:checked) .test-res { background: var(--coral-bg); }
.test-reset { margin: 0; }
.test-clear { background: none; border: 0; padding: 8px 0; min-height: 44px; font: inherit; font-size: .88rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.test-clear:hover { color: var(--coral-dk); }

/* home: limits and law */
.limits, .law { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.limits li { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.limit-ico svg { width: 52px; height: 52px; }
.limit-big, .law-big { font-size: 1.9rem; font-weight: 900; color: var(--ink); margin: 12px 0 6px; line-height: 1.1; }
.limits-src { margin: 24px 0 0; font-size: .86rem; color: var(--muted); }
.law li { border-top: 3px solid var(--ink); padding-top: 14px; }
.law-big { margin-top: 0; color: var(--coral-dk); }

/* cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); border: 1px solid var(--line); transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.card-pic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.card-label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--coral-dk); }
.card-title { font-size: 1.13rem; font-weight: 800; color: var(--ink-deep); line-height: 1.3; }
.card-lede { font-size: .95rem; color: var(--muted); }

/* crumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #a9a7c8; }
.crumbs a { color: var(--muted); display: inline-block; padding: 6px 0; }

/* section (tema) page */
.topic-head { background: var(--lav); padding: 40px 0 44px; border-bottom: 1px solid var(--line); }
.topic-head-in { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 52px; align-items: center; }
.topic-photo { margin: 0; }
.topic-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px 20px 20px 4px; box-shadow: var(--shadow); }
.topic-text { padding: 0; }
.topic-label { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-weight: 800; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; color: var(--coral-dk); }
.topic-ico svg { display: block; }
.topic-text h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: .1em 0 .4em; }
.topic-lede p { font-size: 1.12rem; color: #35355a; max-width: 38em; }
.topic-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2em 0 .8em; }
.topic-date { font-size: .86rem; color: var(--muted); margin: 0; }
.topic-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding: 48px 24px 72px; }
.list-title { margin: 0 0 12px; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.list-title span { font-size: .85rem; background: var(--lav-2); color: var(--ink); border-radius: 999px; padding: 1px 10px; }
.rows { list-style: none; padding: 0; margin: 0; }
.row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 132px; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.rows li:first-child .row { border-top: 1px solid var(--line); }
.row-n { font-size: 1.7rem; font-weight: 900; color: var(--lav-2); -webkit-text-stroke: 1px var(--ink-soft); }
.row-body { display: flex; flex-direction: column; gap: 4px; }
.row-title { font-size: 1.2rem; font-weight: 800; color: var(--ink-deep); line-height: 1.3; }
.row:hover .row-title { color: var(--coral-dk); }
.row-lede { color: var(--muted); font-size: .97rem; }
.row-meta { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); }
.row-pic img { width: 132px; height: 100px; object-fit: cover; border-radius: 12px; }
.help-side { position: sticky; top: 140px; background: var(--ink); color: #e6e4fa; border-radius: 20px; padding: 24px; }
.help-side-t { color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: .4em; }
.help-side-num { margin: 14px 0 18px; }
.help-side-num a { display: block; font-size: 2rem; font-weight: 900; color: #fff; text-decoration: none; line-height: 1.1; }
.help-side-num span { font-size: .88rem; color: #b9b6e3; }
.help-side .btn-ink { background: #fff; color: var(--ink); }
.help-side .btn-ink:hover { background: var(--coral-bg); color: var(--ink-deep); }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.pager span { background: var(--ink); color: #fff; border-color: var(--ink); }

/* article */
.art-head { background: #fff; border-bottom: 1px solid var(--lav-2); padding: 34px 0 26px; }
.art-head .wrap { max-width: 1152px; }
.art-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .84rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--coral-dk); text-decoration: none; }
.art-head h1 { margin: 0 0 16px; font-size: 2.55rem; max-width: none; }
.art-head h1.t-m { font-size: 2.1rem; }
.art-head h1.t-s { font-size: 1.8rem; }
.art-head h1.t-xs { font-size: 1.55rem; }
.art-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-size: .9rem; color: var(--muted); }
.art-meta li { display: inline-flex; align-items: center; gap: 7px; }
.art-meta .checked { color: #2f6f4f; font-weight: 700; }
.art-grid { display: grid; grid-template-columns: minmax(0, 736px) minmax(0, 300px); justify-content: space-between; gap: 64px; padding: 36px 24px 64px; max-width: 1152px; }
.art-pic { margin: 0 0 28px; }
.art-pic img { width: 100%; border-radius: 18px; aspect-ratio: 16 / 9; object-fit: cover; }
.art-side { position: relative; }
.toc-side { position: sticky; top: 140px; border-left: 3px solid var(--lav-2); padding-left: 18px; }
.toc-title { font-weight: 800; color: var(--ink-deep); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.toc-title span { font-size: .8rem; color: var(--muted); font-weight: 700; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; gap: 10px; padding: 6px 0; text-decoration: none; font-size: .93rem; color: var(--text); line-height: 1.4; }
.toc a:hover { color: var(--coral-dk); }
.toc-n { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--lav-2); color: var(--ink); font-size: .75rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.toc-mobile { display: none; background: var(--lav); border-radius: var(--radius); padding: 12px 18px; margin-bottom: 24px; }
.toc-mobile summary { font-weight: 800; cursor: pointer; color: var(--ink-deep); min-height: 32px; }
.prose { font-size: 1.06rem; }
.prose > :first-child { margin-top: 0; }
.prose .lead { font-size: 1.2rem; color: #33335a; }
.prose h2 { padding-top: .2em; }
.prose h2::before { content: ""; display: block; width: 36px; height: 3px; border-radius: 2px; background: var(--coral); margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--coral-dk); font-weight: 800; }
.prose blockquote { margin: 1.4em 0; padding: 16px 22px; background: var(--lav); border-left: 4px solid var(--ink); border-radius: 0 12px 12px 0; }
.prose blockquote p:last-child { margin: 0; }
.src-line { font-size: .84rem; color: var(--muted); margin-top: -.4em; }

/* tables: never scroll sideways */
.tbl { margin: 1.4em 0 .8em; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tbl table { width: 100%; border-collapse: collapse; table-layout: auto; font-size: .97rem; }
.tbl thead th { background: var(--lav); color: var(--ink-deep); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; text-align: left; padding: 12px 14px; border-bottom: 2px solid var(--ink); vertical-align: bottom; hyphens: auto; }
.tbl td, .tbl tbody th { padding: 12px 14px; border-bottom: 1px solid var(--lav-2); text-align: left; vertical-align: top; overflow-wrap: anywhere; hyphens: auto; }
.tbl tbody th { font-weight: 700; color: var(--ink-deep); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tbody tr:hover { background: #faf9fe; }
.tbl .n { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl-wide table { font-size: .9rem; }
.tbl-wide td, .tbl-wide th { padding: 10px 10px; }

/* faq, sources, author */
.faq { margin-top: 48px; }
.faq h2 { font-size: 1.5rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 40px 16px 0; font-weight: 800; color: var(--ink-deep); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; color: var(--coral-dk); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-a p { margin: 0 0 16px; }
.sources { margin-top: 40px; background: var(--lav); border-radius: var(--radius); padding: 22px 26px; font-size: .92rem; }
.sources h2 { font-size: 1.1rem; margin: 0 0 10px; }
.sources ol { margin: 0; padding-left: 1.2em; }
.sources li { margin: .3em 0; overflow-wrap: anywhere; }
.sources-note { margin: 12px 0 0; color: var(--muted); }
.author-card { margin-top: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.author-top { display: flex; gap: 20px; align-items: center; padding: 26px 28px 0; }
.author-avatar { flex: none; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff;
  font-weight: 900; font-size: 1.35rem; letter-spacing: .05em; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--coral); }
.author-avatar-mark { overflow: hidden; }
.author-avatar-mark svg { width: 100%; height: 100%; }
.author-card .eyebrow { margin: 0 0 4px; font-size: .74rem; }
.author-name { margin: 0; font-size: 1.35rem; font-weight: 800; line-height: 1.2; color: var(--ink-deep); }
.author-name a { color: inherit; text-decoration: none; }
.author-name a:hover { color: var(--coral-dk); }
.author-role { margin: 3px 0 0; font-size: .92rem; color: var(--muted); }
.author-bio { margin: 18px 28px 0; padding-top: 18px; border-top: 1px solid var(--lav-2); font-size: .98rem; line-height: 1.7; }
.author-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: 22px;
  padding: 14px 28px; background: var(--lav); border-top: 1px solid var(--lav-2); font-size: .9rem; }
.author-check { display: inline-flex; align-items: center; gap: 7px; color: #2f6f4f; font-weight: 700; }
.author-check a { color: inherit; }
.author-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; }

/* help cards above the footer */
.helpcards { padding: 72px 0; border-top: 1px solid var(--line); }
.helpcards-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.helpcard { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--ink); border-radius: var(--radius); padding: 24px; }
.helpcard-ico svg { width: 44px; height: 44px; }
.helpcard-name { margin: 12px 0 0; font-weight: 800; color: var(--ink-deep); }
.helpcard-num { margin: 0 0 8px; font-size: 1.9rem; font-weight: 900; }
.helpcard-num a { text-decoration: none; }
.helpcard p:not([class]) { font-size: .95rem; color: var(--muted); }
.helpcard-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; }

/* pages */
.page-head { background: var(--lav); padding: 36px 0 30px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(1.9rem, 3.2vw, 2.4rem); }
.page-date, .page-lede { color: var(--muted); margin: 0; }
.page-lede { font-size: 1.1rem; margin-bottom: 1em; }
.page-grid { display: grid; grid-template-columns: minmax(0, 736px) minmax(0, 300px); justify-content: space-between; gap: 64px; padding: 36px 24px 64px; max-width: 1152px; }
.links-404 { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 12px 0 0; }
.links-404 a { display: inline-block; padding: 10px 18px; border-radius: 999px; background: #fff; font-weight: 800; text-decoration: none; }

/* footer */
.site-foot { background: var(--ink-deep); color: #cfcdee; font-size: .94rem; }
.site-foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding: 56px 24px 40px; }
.foot-about p { margin-top: 16px; }
.foot-mail a { white-space: nowrap; }
.foot-title { color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 6px 0; }
.site-foot li a { text-decoration: none; display: inline-block; padding: 5px 0; }
.site-foot li a:hover { text-decoration: underline; }
.foot-help p { margin: 0 0 .6em; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, .12); }
.foot-base-in { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 18px 24px; font-size: .84rem; color: #b9b6e3; }
.foot-base-in p { margin: 0; }

/* responsive */
@media (max-width: 1100px) {
  .head-test { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-grid, .page-grid { grid-template-columns: minmax(0, 1fr); max-width: 784px; }
  .art-side { display: none; }
  .toc-mobile { display: block; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .menu a { padding: 7px 9px; font-size: .9rem; }
}
@media (max-width: 900px) {
  body { font-size: 16.5px; }
  .helpstrip ul, .helpstrip-note { display: none; }
  .head-row { min-height: 72px; }
  .head-actions { display: none; }
  .menu { display: none; }
  .menu-mobile { display: block; margin-left: auto; position: static; }
  .menu-mobile summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); font-weight: 800; color: var(--ink); cursor: pointer; }
  .menu-mobile summary::-webkit-details-marker { display: none; }
  .burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -6px; }
  .burger::after { top: 6px; }
  .menu-mobile nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 24px 16px; }
  .menu-mobile ul { list-style: none; margin: 0; padding: 0; }
  .menu-mobile a { display: block; padding: 12px 0; border-bottom: 1px solid var(--lav-2); font-weight: 800; text-decoration: none; }
  .hero-in, .test-grid, .topic-head-in, .topic-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-in { gap: 32px; padding: 40px 24px 48px; }
  .hero-visual { padding: 0; }
  .hero-card { position: relative; left: auto; bottom: auto; width: auto; margin: -56px 16px 0; }
  .tasks { grid-template-columns: minmax(0, 1fr); }
  .tasks li:nth-child(2) a { border-top: 0; }
  .cards, .limits, .law, .helpcards-list { grid-template-columns: minmax(0, 1fr); }
  .topic-head { background: var(--lav); padding-top: 24px; }
  .topic-head-in { gap: 0; }
  .topic-photo { order: 2; margin-bottom: 24px; }
  .topic-photo img { aspect-ratio: 16 / 9; border-radius: 16px; }
  .topic-text { padding-bottom: 24px; }
  .topic-grid { gap: 32px; padding-top: 32px; }
  .help-side { position: static; }
  .band { padding: 52px 0; }
  .art-head h1 { font-size: 1.9rem; }
  .art-head h1.t-m, .art-head h1.t-s, .art-head h1.t-xs { font-size: 1.6rem; }
}
@media (max-width: 560px) {
  .author-top { gap: 16px; padding: 22px 20px 0; }
  .author-avatar { width: 56px; height: 56px; font-size: 1.12rem; }
  .author-bio { margin: 16px 20px 0; }
  .author-foot { padding: 12px 20px; }
  .wrap { padding: 0 16px; }
  .hero-in, .topic-grid, .art-grid, .page-grid { padding-left: 16px; padding-right: 16px; }
  .logo-name { font-size: 1.12rem; }
  .logo-mark { width: 44px; height: 44px; }
  .menu-mobile summary { padding: 0; width: 48px; justify-content: center; font-size: 0; }
  .helpstrip-lead { display: none; }
  .helpstrip-in { min-height: 36px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .cards-4 { grid-template-columns: minmax(0, 1fr); }
  .hero-card-num { font-size: 2.2rem; }
  .row { grid-template-columns: 38px minmax(0, 1fr); }
  .row-pic { display: none; }
  .row-n { font-size: 1.3rem; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .tbl table { font-size: .9rem; }
  .tbl thead th, .tbl td, .tbl tbody th { padding: 9px 8px; }
  .tbl-wide table { font-size: .82rem; }
  .tbl .n { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* section page: newest guide as a card, questions and sources (all built from the guides) */
.feat { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.feat-pic { margin: 0; }
.feat-pic img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }
.feat-body { padding: 24px 28px 28px; }
.feat-title { margin: 0 0 8px; font-size: 1.5rem; line-height: 1.25; }
.feat-title a { color: var(--ink-deep); text-decoration: none; }
.feat-title a:hover { color: var(--coral-dk); }
.feat-lede { margin: 0 0 10px; color: #35355a; font-size: 1.02rem; }
.feat-meta { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .86rem; color: var(--muted); }
.feat-toc { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--lav-2); }
.feat-toc-t { margin: 0 0 8px; font-weight: 800; color: var(--ink-deep); }
.feat-toc-t span { margin-left: 6px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.feat-toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.feat-toc li { break-inside: avoid; }
.feat-toc a { display: flex; gap: 10px; padding: 6px 0; text-decoration: none; font-size: .95rem; line-height: 1.4; color: var(--text); }
.feat-toc a:hover { color: var(--coral-dk); }
.feat-more { margin: 22px 0 0; }
.feat + .rows { margin-top: 16px; }
.sec-block { margin-top: 48px; }
.sec-qs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sec-qs a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; border: 1px solid transparent; border-radius: var(--radius); background: var(--lav); color: var(--ink-deep); font-weight: 700; line-height: 1.35; text-decoration: none; transition: background .15s, border-color .15s; }
.sec-qs a:hover { background: #fff; border-color: var(--coral); }
.q-mark { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--coral-dk); font-weight: 900; box-shadow: inset 0 0 0 2px var(--coral-bg); }
.q-text { flex: 1; }
.sec-qs .ico-s { color: var(--ink-soft); transition: transform .15s; }
.sec-qs a:hover .ico-s { transform: translateX(3px); color: var(--coral-dk); }
.sec-src { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sec-src li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .92rem; font-weight: 700; color: var(--ink); }
.sec-src .ico-s { color: #2f6f4f; }
.sec-src-note { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 560px) {
  .feat-body { padding: 20px; }
  .feat-title { font-size: 1.3rem; }
  .feat-toc ol { columns: 1; }
  .sec-qs { grid-template-columns: 1fr; }
}
