/* svarene.html — page styles on top of style.css. "Dem" is always left of the red line, "Os" right. */
:root { --jump: 3.25rem; }
html { scroll-padding-top: calc(var(--head) + var(--jump) + 1rem); }
[hidden] { display: none !important; }

.sub { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem); }
.lbl { font-size: .875rem; font-weight: 600; line-height: 1.4; color: var(--ink-2); }
.navy .lbl { color: rgb(246 240 228 / .72); }
.sv-hero { padding-bottom: clamp(1rem, 3vw, 2rem); }

/* ---------- jump nav: second row of the header ---------- */
.jump { position: sticky; top: var(--head); z-index: 15; background: var(--cream); border-block: 1px solid var(--rule); }
.jump .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; height: var(--jump); }
.jump a { display: flex; align-items: center; font-size: .8rem; font-weight: 600; line-height: 1.2; text-decoration: none; color: var(--ink-2); }
.jump a:hover { color: var(--navy); }
.jump a[aria-current] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--navy); }
@media (min-width: 960px) {
  .jump .wrap { grid-template-columns: minmax(0, 1fr) 240px minmax(0, 1fr); gap: 0; }
  .jump a { font-size: .95rem; }
  .jump a + a { grid-column: 3; }
  .sticky { top: calc(var(--head) + var(--jump) + 2rem); }
}

/* ---------- the shield: 0 against the state's own figures ---------- */
.shield .fig-num { margin-top: 0; }
.figs li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: baseline; padding: .9rem 0; border-top: 1px solid var(--rule); line-height: 1.4; }
.figs b { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; white-space: nowrap; min-width: 3.1em; }
.figs { font-size: 1rem; }

/* ---------- three steps threaded on the line ---------- */
.rail.mid { left: var(--spine); }
.step { position: relative; padding-block: 1.5rem; }
.step .hex { position: absolute; z-index: 3; left: var(--spine); top: 1.5rem; width: 40px; font-size: 1.2rem; transform: translateX(-50%); }
@media (min-width: 960px) {
  .rail.mid { left: 50%; }
  .step { padding-block: 0; }
  .step .row { min-height: 300px; align-items: center; }
  .step .hex { left: 50%; top: 50%; width: 104px; font-size: 3.2rem; transform: translate(-50%, -50%); }
  .step .L { text-align: right; }
}

/* ---------- the dialogue: De left of the line, Du right ---------- */
.dialog, .dialog-end { padding-left: var(--inset); }
.dialog { margin-top: 2rem; }
.dialog li { padding: .7rem 0; line-height: 1.45; }
.dialog b { display: block; font-size: .875rem; font-weight: 800; }
.dialog .du { font-weight: 500; font-size: 1.15rem; }
.dialog .de { color: var(--ink-2); padding-left: 1.5rem; }
.dialog-end { margin-top: 2rem; }
@media (min-width: 960px) {
  .dialog, .dialog-end { padding-left: 0; }
  .dialog .de { margin-right: calc(50% + 120px); padding-left: 0; text-align: right; }
  .dialog .du, .dialog-end { margin-left: calc(50% + 120px); }
  .dialog .du { font-size: 1.3rem; line-height: 1.4; }
}

/* ---------- quick reference: accusation → answer ---------- */
.qa { margin-top: .6rem; border-bottom: 3px solid var(--navy); }
.qa details { border-top: 3px solid var(--navy); scroll-margin-top: calc(var(--head) + var(--jump) + 1rem); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 700; line-height: 1.25; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font-weight: 500; font-size: 1.6rem; line-height: 1; }
.qa details[open] summary::after { content: "−"; }
.qa summary:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .15em; }
.qa .stack { padding-bottom: 1.5rem; max-width: 36rem; }
.qa .stack p:not(.lbl) { margin-top: .3rem; }

/* ---------- prose blocks ---------- */
.prose > * { max-width: 36rem; }
.prose > * + * { margin-top: 1.25em; }
.prose h4 { font-size: 1.25rem; font-weight: 800; line-height: 1.2; margin-top: 2.5rem; }
.prose h4 + p { margin-top: .6rem; }
.prose .lede { font-size: clamp(1.2rem, 2vw, 1.45rem); }
.fold summary { font-weight: 600; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; cursor: pointer; }
.fold[open] summary { display: none; }
.fold .prose h4:first-child { margin-top: 1rem; }
.years li { display: grid; grid-template-columns: 4.6em 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--rule); font-size: 1rem; line-height: 1.45; }
.years b { font-weight: 800; }
.tre li { padding: .7rem 0; border-top: 1px solid rgb(246 240 228 / .25); }
.til .R { margin-top: 4rem; }
.husk { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 600; line-height: 1.28; text-wrap: balance; padding-top: .75rem; }
.husk strong { font-weight: 800; }

/* ---------- part 2: ten smart answers ---------- */
.pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); hyphens: auto; gap: .25rem 1rem; margin-top: 2.5rem; padding-left: var(--inset); }
.pick a { display: grid; grid-template-columns: 30px 1fr; gap: .6rem; align-items: center; min-height: 48px; font-size: .875rem; font-weight: 500; line-height: 1.25; text-decoration: none; }
.pick b { display: grid; place-items: center; width: 30px; aspect-ratio: .866; background: var(--cream-2); font-weight: 800; line-height: 1; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.pick a:hover span, .pick a[aria-current] span { text-decoration: underline; text-decoration-thickness: 2px; }
.pick a[aria-current] { font-weight: 700; }
.pick a[aria-current] b { background: var(--navy); color: #fff; }

.trap { padding-block: 3rem 1rem; }
.trap-grid.wrap { padding-left: calc(var(--pad) + var(--inset)); }
.trap h3:focus { outline: none; }
.trap .hex { width: 48px; font-size: 1.4rem; }
.chain { margin-top: 1.75rem; }
.chain li { padding: 1rem 0; border-top: 1px solid var(--rule); }
.chain li p:last-child { font-weight: 500; }
.fejl { background: var(--navy); color: var(--cream); padding: 1.4rem 1.25rem 1.5rem; margin-top: .5rem; }
.fejl .lbl { color: rgb(246 240 228 / .72); }
.fejl-navn { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.05; margin-block: .2rem .7rem; }
.islam { margin-top: 2rem; padding-top: 1.25rem; border-top: 6px solid var(--navy); }

/* the meter: the red line, pulled towards Dem or held at Os */
.meter-q { font-size: .875rem; font-weight: 600; }
.track { position: relative; height: var(--stroke); margin: 1.4rem 13px .9rem; background: var(--cream-2); }
.track::before { content: ""; position: absolute; left: 50%; top: -7px; bottom: -7px; width: 2px; margin-left: -1px; background: var(--navy); }
.track i { position: absolute; top: 0; bottom: 0; left: 50%; right: 50%; background: var(--red); transition: left .5s, right .5s; }
.track b { position: absolute; left: 50%; top: 50%; width: 26px; aspect-ratio: .866; transform: translate(-50%, -50%); background: var(--navy); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: left .5s; }
.ends { display: flex; justify-content: space-between; font-weight: 800; text-transform: uppercase; line-height: 1; color: rgb(75 86 107 / .55); }
.meter[data-side="dem"] .ends span:first-child, .meter[data-side="os"] .ends span:last-child { color: var(--navy); }
.ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.5rem; scroll-margin-bottom: 1.5rem; }
.ctrl .btn { flex: 1 1 14rem; text-align: left; }
.ctrl .share-part { margin: 0; }

.stepper .trap:not(.on) { display: none; }
.stepper .trap { padding-top: 2.5rem; }
.stepper .meter { margin-top: 2.25rem; }
.stepper .new { animation: sv-in .4s both; }
@keyframes sv-in { from { opacity: 0; transform: translateY(8px); } }

@media (min-width: 960px) {
  .pick { grid-template-columns: minmax(0, 1fr) 240px minmax(0, 1fr); grid-template-rows: repeat(5, auto); grid-auto-flow: column; padding-left: 0; }
  .pick li { grid-column: 1; }
  .pick li:nth-child(n+6) { grid-column: 3; }
  .pick a { font-size: 1rem; }
  .trap-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px minmax(0, 1fr); align-items: start; }
  .dem { grid-column: 1; }
  .os { grid-column: 3; display: flex; flex-direction: column; position: sticky; top: calc(var(--head) + var(--jump) + 2rem); }
  .islam { margin-top: 0; }
  .stepper .meter { order: -1; margin: 0 0 2.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .track i, .track b { transition: none; }
  .stepper .new { animation: none; }
}
