/* handling.html — page styles on top of style.css (Prototype A). */

/* ---------- hero + jump nav ---------- */
.hd-hero { padding-top: clamp(1.5rem, 5vw, 4rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hd-hero h1 { font-size: clamp(3rem, 14.5vw, 12rem); line-height: .9; letter-spacing: -.03em; }
.jump { position: sticky; top: var(--head); z-index: 15; background: var(--cream); border-block: 1px solid var(--rule); }
.jump ul { display: flex; gap: clamp(.9rem, 3vw, 2.5rem); max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); overflow-x: auto; scrollbar-width: none; }
.jump a { display: block; padding: .75rem 0; font-size: clamp(.8rem, 3.5vw, .9rem); font-weight: 600; white-space: nowrap; 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); }

/* ---------- shared bits ---------- */
.kicker { font-weight: 600; color: var(--ink-2); }
.navy .kicker { color: rgb(246 240 228 / .72); }
.verse { font-weight: 600; line-height: 1.5; padding-left: 1rem; border-left: 4px solid currentColor; }
.prose > * + * { margin-top: 1.1em; }
.prose p { line-height: 1.75; }
.share-part { display: block; }
.navy .share-part { color: rgb(246 240 228 / .72); }
.navy .share-part:hover { color: var(--cream); }
#styrke, #positionen { padding-top: 0; }
.h-sub { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1; }

/* disclosure: native <details>, one ruled row per item */
.folds { border-bottom: 1px solid var(--rule); }
.fold { border-top: 1px solid var(--rule); }
.navy .fold, .navy .folds { border-color: rgb(246 240 228 / .22); }
.fold > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .95rem 0; font-weight: 700; line-height: 1.3; list-style: none; cursor: pointer; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ""; flex: none; width: .55em; height: .55em; margin-right: .3em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-25%); }
.fold[open] > summary::after { transform: rotate(-135deg) translateY(-25%); }
.fold > summary h4 { margin: 0; font: inherit; }
.fold > summary:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.fold > div { padding: .25rem 0 1.6rem; }
.fold.all { border: 0; }
.fold.all > summary { display: inline-flex; border: 2px solid currentColor; border-radius: 10px; padding: .7rem 1.25rem; font-weight: 600; }
.fold.all > summary:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); text-decoration: none; }
.fold.all[open] > summary .closed, .fold.all:not([open]) > summary .opened { display: none; }
.fold.all > div { padding-top: 1.75rem; }

/* ---------- part 1: the four steps ---------- */
.step { position: relative; padding-block: 2.5rem; }
.step > .hex { margin: 0 0 1.1rem calc(var(--pad) + var(--inset)); }
.step h3 { margin-top: .3rem; }
.step .kicker + h3 { margin-top: .3rem; }
.note { border-top: 1px solid var(--rule); padding-top: 1rem; }
@media (min-width: 960px) {
  .step { padding-block: 8rem 3rem; }
  .step > .hex { position: absolute; left: 50%; top: 8rem; width: 104px; font-size: 3.2rem; margin: 0; transform: translateX(-50%); }
}

/* templates: a sheet of paper, clamped until asked for */
.tpl-text { margin: 0; padding: 1.25rem; background: var(--cream-2); border-radius: 10px 10px 0 0; font: inherit; font-size: .9rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: break-word; }
.tpl-text mark { background: var(--cream); color: inherit; font-weight: 600; padding: .05em .25em; border-radius: 4px; }
.js .tpl:not(.open) .tpl-text { max-height: 15.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.tpl-more { display: block; width: 100%; padding: .7rem 1.25rem; background: var(--cream-2); border: 0; border-top: 1px solid var(--rule); border-radius: 0 0 10px 10px; font-size: .9rem; font-weight: 600; text-align: left; text-decoration: underline; text-underline-offset: .2em; }
.tpl-more[hidden] { display: none; }
.tpl .cta { margin-top: 1rem; }

/* the A4 poster: every size in cqw, so screen preview and print are the same drawing */
.opslag { container-type: inline-size; max-width: 420px; aspect-ratio: 210 / 297; background: #fff; color: var(--navy); border: 1px solid var(--rule); overflow: hidden; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.op { height: 100%; display: flex; flex-direction: column; padding: 7cqw 7cqw 6cqw 16cqw; line-height: 1.3; }
.op .pill { font-size: 3.3cqw; }
.op-title { font-size: 11.6cqw; line-height: .92; letter-spacing: -.025em; margin-top: 3cqw; }
.op-title span { display: block; }
.op-line { position: relative; flex: none; height: 2cqw; margin: 3cqw -7cqw 0 -9cqw; background: var(--red); }
.op-line::before { content: ""; position: absolute; left: 0; top: 0; width: 2cqw; height: 200cqw; background: var(--red); }
.op-say { font-size: 3.3cqw; font-weight: 500; margin-top: 4cqw; }
.op-say b { display: block; font-size: 17cqw; font-weight: 800; line-height: .85; letter-spacing: -.04em; margin-bottom: 2.5cqw; }
.op-src { font-size: 2.1cqw; color: var(--ink-2); margin-top: 1.5cqw; }
.op-do { margin-top: 4cqw; font-size: 3.7cqw; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.op-do li { display: flex; align-items: center; gap: 2cqw; padding: .6cqw 0; }
.op-do li::before { content: ""; flex: none; width: 2.6cqw; aspect-ratio: .866; background: var(--navy); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.op-foot { display: flex; align-items: flex-end; gap: 4cqw; margin-top: auto; padding-top: 2cqw; font-size: 2.7cqw; }
.op-foot img { width: 19cqw; height: auto; margin: -1.2cqw; }

/* advice list */
.advice li { border-top: 1px solid var(--rule); padding: 1rem 0; }
.advice li:last-child { border-bottom: 1px solid var(--rule); }
.advice b { display: block; font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin-bottom: .2rem; }

/* ---------- part 2 ---------- */
.ways em { font-style: normal; }
.pillars > li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: .25rem 1.25rem; padding: 1.25rem 0; border-top: 3px solid var(--navy); }
.pillars .hex { grid-row: span 2; width: 48px; font-size: 1.4rem; }
.pillars h4 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.05; align-self: center; }
.pillars p { grid-column: 2; }
.line-in-sand { border-top: 3px solid var(--navy); padding-top: 2rem; }

/* the foundation: four storeys, the lowest carries the rest */
.found { margin: 0; }
.found div { margin-inline: auto; padding: .7rem 1rem; border: 2px solid var(--navy); border-bottom: 0; text-align: center; line-height: 1.25; }
.found div:nth-child(1) { width: 64%; }
.found div:nth-child(2) { width: 76%; }
.found div:nth-child(3) { width: 88%; }
.found div:nth-child(4) { background: var(--navy); color: var(--cream); padding-block: 1rem; }
.found b { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.found span { font-size: .875rem; }
.found figcaption { margin-top: 1rem; font-weight: 600; line-height: 1.4; }

/* what they talk about / what weighs */
.weigh { margin: 0; display: grid; gap: 1.5rem; }
.weigh .light p:not(.kicker) { font-size: .95rem; }
.weigh .heavy li { border-top: 1px solid rgb(246 240 228 / .22); padding: .7rem 0; font-weight: 500; line-height: 1.35; }
.weigh .heavy b { font-size: 2.1em; font-weight: 800; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.weigh figcaption { font-weight: 600; line-height: 1.4; }
@media (min-width: 520px) {
  .weigh { grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); column-gap: 2rem; }
  .weigh figcaption { grid-column: 1 / -1; }
}

/* expectation / reality */
.shift { margin: 0; }
.shift .tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: .6rem; font-size: .95rem; line-height: 1.35; }
.shift .tracks b { font-weight: 800; }
.shift li { border-top: 1px solid var(--rule); padding: .55rem 0; }
.shift ol { margin-top: .4rem; }
.shift .tracks > div:first-child li { color: var(--ink-2); }
.shift figcaption { margin-top: .75rem; padding-top: .75rem; border-top: 3px solid var(--navy); font-weight: 700; }

.free { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.4; }
.free th, .free td { width: 50%; text-align: left; vertical-align: top; padding: .7rem .9rem .7rem 0; border-top: 1px solid var(--rule); }
.free th { border-top: 3px solid var(--navy); font-weight: 800; }
.free td:first-child { color: var(--ink-2); }
.ask { border-top: 3px solid var(--navy); padding-top: 1.5rem; margin-top: 2.5rem; }

/* ---------- print ---------- */
@media print {
  .line, .jump, .nav, .nav-toggle, .skip, .tpl-more, .cta, .share-part, .share { display: none !important; }
  .site-head { position: static; }
  .js .tpl:not(.open) .tpl-text { max-height: none; -webkit-mask-image: none; mask-image: none; }
  .sec { padding-block: 1.5rem; }
  .sec.navy { background: none; color: inherit; }
  /* "Print opslaget": only the poster, full A4 (handling.js adds the class and the @page rule) */
  .print-opslag body { background: #fff; }
  .print-opslag body *:not(:has(.opslag)):not(.opslag):not(.opslag *) { display: none !important; }
  .print-opslag body *:has(.opslag) { display: block !important; position: static !important; margin: 0 !important; padding: 0 !important; max-width: none !important; }
  .print-opslag .opslag { width: 210mm; height: 296mm; aspect-ratio: auto; max-width: none; border: 0; break-inside: avoid; }
}
