/* M28 Investigates · v0.5 · Learning & Resources: courses, the #Investigate28 fellowship, the Digital Security Lab and
   the Resource Lab. Light reading pages (brief v0.4 §14): white and warm grey, charcoal rules, red only as a marker. */
/* converted to the v0.5 design language by tools/restyle_v05.py; the parts drawn by hand for v0.5 follow at the end */

/* ---------------------------------------------------------------- small shared parts */
.lab-h { padding-bottom: .8rem; margin-bottom: 1.25rem; border-bottom: var(--bar) solid var(--accent); font: 500 var(--t-label)/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--head); }
.sidebox2 { border-top: var(--bar) solid var(--accent); padding-top: 1rem; }
.sidebox2 + .sidebox2 { margin-top: 2.25rem; }
.sidebox2 > h2 { display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; font: 500 var(--t-label)/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--head); }
.sidebox2 > h2 .icon { width: 1.1rem; height: 1.1rem; }
.sidebox2 > p { font-size: var(--t-small); line-height: 1.5; color: var(--ink); }
.sidebox2 .dl dt:first-of-type, .sidebox2 .dl dd:first-of-type { border-top: 0; padding-top: 0; }
.phead__badges { margin-top: 1.1rem; }
.lr-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; }
.lr-cta h2 { max-width: 26ch; font-size: var(--t-h2); }
.lr-cta p { margin-top: .8rem; max-width: 40rem; color: var(--ink-2); }
.lr-reuse { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin-top: 1.4rem; font: 500 .9375rem/1.4 var(--f-ui); color: var(--ink-2); }
.lr-reuse .icon { width: 1.15rem; height: 1.15rem; color: var(--head); }
@media (max-width: 54em) { .lr-cta { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- landing page */
.lr-head__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap) clamp(2rem, 5vw, 6rem); align-items: end; }
.lr-head h1 { max-width: 11ch; font: 600 var(--t-display)/.96 var(--f-serif); letter-spacing: -.028em; }
.lr-head__say { font: italic 500 clamp(1.5rem, 1.25rem + 1vw, 2rem)/1.2 var(--f-serif); color: var(--head); text-wrap: balance; }
.lr-head .deck { margin-top: 1rem; font-size: 1.125rem; line-height: 1.55; }
.lr-head .stats { margin-top: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }
@media (max-width: 61.99em) { .lr-head__grid { grid-template-columns: 1fr; } }
@media (max-width: 36em) { .lr-head .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lr-head .stats > * { padding-right: .75rem; } .lr-head .stats span { font-size: .6875rem; letter-spacing: .06em; } }

.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap) clamp(2rem, 5vw, 6rem); }
.door { display: flex; flex-direction: column; border-top: var(--bar) solid var(--accent); padding-top: 1.1rem; }
.door > .ref { color: var(--accent-ink); }
.door h2 { margin-top: .7rem; font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); letter-spacing: -.02em; }
.door__d { margin-top: .8rem; max-width: 34rem; font-size: 1.125rem; line-height: 1.5; color: var(--ink); }
.door__links { margin-top: 1.5rem; border-top: 1px solid var(--line-2); }
.door__links li { border-bottom: 1px solid var(--line-2); }
.door__links a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1.5rem; align-items: baseline; padding: 1rem 2.25rem 1.05rem 0; }
.door__links a::after { content: "→"; position: absolute; right: 0; top: 1.1rem; font: 400 1.125rem/1 var(--f-ui); color: var(--ink-2); transition: transform .2s var(--ease), color .2s; }
.door__links a:hover::after { transform: translateX(.25rem); color: var(--accent-ink); }
.door__links b { grid-column: 1; font: 600 1.375rem/1.2 var(--f-serif); color: var(--head); }
.door__links a:hover b { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .16em; }
.door__links span { grid-column: 1; font-size: var(--t-small); line-height: 1.45; color: var(--ink); }
.door__links i { grid-column: 2; grid-row: 1; font: 400 .75rem/1.3 var(--f-mono); font-style: normal; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.door > .more { align-self: flex-start; margin-top: 1.5rem; }
@media (max-width: 54em) { .doors { grid-template-columns: 1fr; gap: 3rem; } }

/* ---------------------------------------------------------------- courses: the list (IICI model) */
.cl__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.25rem; }
.cl__count { font: 500 var(--t-mono)/1.3 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.cl { border-top: var(--bar) solid var(--accent); }
.cl__row { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr) auto; gap: .75rem clamp(1.25rem, 3vw, 3rem); align-items: start; padding-block: 1.6rem; border-bottom: 1px solid var(--line-2); }
.cl__when { font: 500 var(--t-mono)/1.4 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.cl__when time { display: grid; gap: .35rem; color: var(--head); }
.cl__when time b { font: 600 2.75rem/.9 var(--f-serif); letter-spacing: -.03em; font-feature-settings: "lnum"; }
.cl__when .badge { margin-top: .7rem; }
.cl__when--tbd::before { content: "—"; content: "—" / ""; display: block; font: 600 2.75rem/.9 var(--f-serif); color: var(--line-2); }
.cl__when--tbd > span:not(.vh) { display: block; max-width: 8.5rem; margin-top: .35rem; color: var(--ink-2); }
.cl__body h3 { font-size: clamp(1.375rem, 1.25rem + .6vw, 1.75rem); line-height: 1.12; letter-spacing: -.01em; }
.cl__body h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .16em; }
.cl__body > p:not([class]) { margin-top: .5rem; max-width: 44rem; font-size: var(--t-small); line-height: 1.5; color: var(--ink); }
.cl__body .meta { margin-top: .75rem; }
.cl__row > .btn { align-self: center; white-space: nowrap; }
@media (max-width: 54em) {
  .cl__row { grid-template-columns: 1fr; gap: .85rem; padding-block: 1.4rem 1.5rem; }
  .cl__when time { display: flex; align-items: baseline; gap: .55rem; }
  .cl__when time b { font-size: 1.75rem; line-height: 1; }
  .cl__when { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
  .cl__when .badge { margin-top: 0; }
  .cl__when--tbd::before { display: none; }
  .cl__when--tbd > span:not(.vh) { max-width: none; margin-top: 0; }
  .cl__row > .btn { justify-self: start; }
}

/* three steps in a row: how applying works, what the fellowship offers */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap) clamp(1.5rem, 3.5vw, 4rem); }
.proto + .how { margin-top: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.how li { border-top: var(--bar) solid var(--accent); padding-top: 1rem; }
.how .ref { color: var(--accent-ink); }
.how h3 { margin-top: .6rem; font-size: 1.5rem; line-height: 1.15; }
.how p { margin-top: .5rem; font-size: var(--t-small); line-height: 1.5; color: var(--ink); }
.how--big h3 { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.375rem); letter-spacing: -.015em; }
.how--big p { font-size: 1.125rem; line-height: 1.55; }
@media (max-width: 54em) { .how { grid-template-columns: 1fr; } }

/* before you apply */
.cnotes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap) clamp(1.5rem, 3vw, 3rem); }
.cnotes li { border-top: 1px solid var(--line-2); padding-top: 1.1rem; }
.cnotes .icon { width: 1.5rem; height: 1.5rem; color: var(--head); stroke-width: 1.5; }
.cnotes h3 { margin-top: .8rem; font: 600 1rem/1.3 var(--f-ui); letter-spacing: 0; }
.cnotes p { margin-top: .45rem; font-size: var(--t-small); line-height: 1.5; color: var(--ink); }
@media (max-width: 68em) { .cnotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36em) { .cnotes { grid-template-columns: 1fr; } }

/* a testimonial's place: filled only with the person's consent */
.tslot { max-width: 46rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border: 1px dashed var(--ink-3); background: var(--bg-2); }
.tslot .icon { width: 2rem; height: 2rem; color: var(--ink-2); }
.tslot blockquote p { margin-top: 1rem; font: italic 500 clamp(1.375rem, 1.2rem + .8vw, 1.75rem)/1.3 var(--f-serif); color: var(--ink-2); }
.tslot figcaption { margin-top: 1rem; font: 500 var(--t-label)/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }

/* ---------------------------------------------------------------- the fellowship */
.fell { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap) clamp(2rem, 5vw, 6rem); align-items: center; }
.fell h2 { margin-top: 1rem; max-width: 16ch; font-size: clamp(2rem, 1.6rem + 1.8vw, 3.25rem); letter-spacing: -.02em; }
.fell .deck { margin-top: 1rem; }
.fell__3 { margin-top: 1.75rem; border-top: 1px solid var(--line-2); }
.fell__3 li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line-2); }
.fell__3 .ref { color: var(--accent-ink); line-height: 1.9; }
.fell__3 span:last-child { font-size: 1.0625rem; line-height: 1.5; color: var(--ink); }
.fell .btnrow { margin-top: 1.75rem; }
.cohort__in { aspect-ratio: 4 / 3; display: grid; place-content: center; justify-items: center; gap: .9rem; padding: 1.5rem; text-align: center; border: 1px dashed var(--ink-3); background: var(--bg-2); }
.cohort__in .icon { width: 2.75rem; height: 2.75rem; color: var(--ink-2); stroke-width: 1.3; }
.cohort__in b { font: 600 1.25rem/1.25 var(--f-serif); color: var(--ink-2); }
.cohort figcaption { margin-top: .75rem; }
.cohort .proto { max-width: none; }
.fwho { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap) clamp(2rem, 5vw, 6rem); align-items: start; }
.fwho .lede { max-width: 26em; font: 500 clamp(1.5rem, 1.3rem + 1vw, 2.125rem)/1.28 var(--f-serif); letter-spacing: -.008em; color: var(--head); text-wrap: pretty; }
.fcall { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border: 1px solid var(--rule); background: var(--bg-3); }
.fcall__when { margin-top: .6rem; font: 600 clamp(1.75rem, 1.5rem + 1vw, 2.25rem)/1.1 var(--f-serif); letter-spacing: -.015em; color: var(--head); }
.fcall p:not([class]) { margin-top: .7rem; font-size: var(--t-small); line-height: 1.5; color: var(--ink); }
.fcall .btnrow { margin-top: 1.25rem; }
.fphoto .cohort { max-width: 62rem; }
.fphoto .cohort__in { aspect-ratio: 21 / 9; }
@media (max-width: 61.99em) { .fell, .fwho { grid-template-columns: 1fr; } .fphoto .cohort__in { aspect-ratio: 4 / 3; } }


/* ---------------------------------------------------------------- one course */
.course { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gap) clamp(2rem, 5vw, 6rem); align-items: start; }
.course__main > section + section { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.course__main .lede { max-width: var(--measure); }
.course__main section > p:not([class]) { max-width: var(--measure); font-size: var(--t-body); line-height: 1.66; }
.course__side { position: sticky; top: 1.5rem; }
.course__next { margin-bottom: 1.1rem; font: 600 1.75rem/1.15 var(--f-serif); letter-spacing: -.01em; color: var(--head); }
.course__next .badge { vertical-align: middle; margin-left: .35rem; }
.course__side .btn { width: 100%; }
.course__side .more { margin-top: 1rem; }
.topics { counter-reset: tp; columns: 2; column-gap: clamp(2rem, 4vw, 4rem); }
.topics li { counter-increment: tp; break-inside: avoid; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .5rem; padding: .8rem 0; border-bottom: 1px solid var(--line-2); font-size: 1.0625rem; line-height: 1.4; }
.topics li::before { content: counter(tp, decimal-leading-zero); font: 500 var(--t-mono)/1.85 var(--f-mono); color: var(--accent-ink); }
.sess { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border: 1px solid var(--rule); }
.sess .proto { margin-bottom: 1.5rem; }
.sess__dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem 1.25rem; }
.sess__dl > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem .7rem; align-content: start; }
.sess__dl .icon { grid-row: span 2; width: 1.25rem; height: 1.25rem; margin-top: .05rem; color: var(--ink-2); }
.sess__dl dt { font: 500 var(--t-label)/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.sess__dl dd { margin: 0; font: 500 1.0625rem/1.3 var(--f-ui); color: var(--head); }
.sess__d { max-width: var(--measure); margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-2); font-size: var(--t-small); line-height: 1.5; color: var(--ink); }
.sess .btnrow { margin-top: 1.5rem; }
.tbd { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border: 1px dashed var(--ink-3); background: var(--bg-2); }
.tbd h3 { margin-top: .6rem; font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); letter-spacing: -.015em; }
.tbd p:not(.ref) { margin-top: .6rem; max-width: 36rem; color: var(--ink-2); }
.tbd .btnrow { margin-top: 1.4rem; }
@media (max-width: 68em) { .sess__dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 61.99em) { .course { grid-template-columns: 1fr; } .course__side { position: static; order: -1; } .topics { columns: 1; } }

/* ---------------------------------------------------------------- the application form */
.apply { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2.5rem, 2rem + 2vw, 3.5rem) clamp(2rem, 6vw, 7rem); align-items: start; }
.apply .proto { margin-bottom: 2rem; }
.form__msg { padding: .9rem 1rem; border: 1px solid var(--rule); background: var(--bg-2); font: 500 .9375rem/1.4 var(--f-ui); color: var(--head); }
.nextl li { display: grid; gap: .25rem; padding: .85rem 0; border-top: 1px solid var(--line-2); }
.nextl li:first-child { border-top: 0; padding-top: 0; }
.nextl b { font: 600 .9375rem/1.35 var(--f-ui); color: var(--head); }
.nextl span { font-size: var(--t-small); line-height: 1.5; color: var(--ink); }
@media (max-width: 61.99em) { .apply { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Digital Security Lab */
.dintro { max-width: 50rem; font-size: clamp(1.1875rem, 1.1rem + .45vw, 1.375rem); line-height: 1.5; }
.dtools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.dtools--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dtool { display: flex; flex-direction: column; height: 100%; padding: 1.25rem 1.4rem 1.5rem; border: 1px solid var(--line-2); border-top: var(--bar) solid var(--accent); background: var(--bg-3); transition: border-color .2s; }
:root:not([data-theme="night"]) .dtools:not(.dtools--2) .dtool { background: var(--bg); }
.dtool:hover { border-color: var(--rule); }
.dtool:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .16em; }
.dtool .ref { color: var(--accent-ink); }
.dtool > .icon { width: 2rem; height: 2rem; margin-top: 1.5rem; color: var(--head); stroke-width: 1.4; }
.dtool .ref + .icon { margin-top: 1.75rem; }
.dtool > .icon:first-child { margin-top: 0; }
.dtool h3 { margin-top: 1rem; font-size: 1.625rem; line-height: 1.1; }
.dtool p { margin-top: .6rem; margin-bottom: 1.25rem; font-size: var(--t-small); line-height: 1.5; color: var(--ink); }
.dtool .more { align-self: flex-start; margin-top: auto; }
.emg { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.6rem; }
.emg p { display: flex; align-items: center; gap: .8rem; font: 600 clamp(1.25rem, 1.1rem + .7vw, 1.625rem)/1.25 var(--f-serif); color: var(--head); }
.emg .icon { flex: none; width: 1.5rem; height: 1.5rem; color: var(--accent-ink); }
.dplan li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem 1.25rem; align-items: start; padding: 1.25rem 0; border-top: 1px solid var(--line-2); }
.dplan li:first-child { border-top: var(--bar) solid var(--accent); }
.dplan .icon { width: 1.5rem; height: 1.5rem; margin-top: .15rem; color: var(--ink-2); }
.dplan h3 { font: 600 1.3125rem/1.2 var(--f-serif); }
.dplan p { max-width: 44rem; margin-top: .35rem; font-size: var(--t-small); line-height: 1.5; color: var(--ink); }
.dtabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 3rem); }
.dtabs a { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: .5rem 1rem; border: 1px solid var(--line-2); border-radius: var(--radius); font: 500 .9375rem/1.2 var(--f-ui); color: var(--ink); }
.dtabs a:hover { border-color: var(--head); }
.dtabs a[aria-current] { background: var(--head); border-color: var(--head); color: var(--bg); }
.dtabs .icon { width: 1.1rem; height: 1.1rem; }
@media (max-width: 54em) {
  .dtools, .dtools--2 { grid-template-columns: 1fr; }
  .dplan li { grid-template-columns: auto minmax(0, 1fr); }
  .dplan .badge { grid-column: 2; justify-self: start; }
  .dtabs { flex-wrap: nowrap; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .dtabs::-webkit-scrollbar { display: none; }
  .dtabs a { flex: none; }
}

/* the teaser on the landing page */
.dslt { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap) clamp(2rem, 5vw, 6rem); align-items: center; }
.dslt h2 { margin-top: 1rem; font-size: clamp(2rem, 1.6rem + 1.8vw, 3.25rem); letter-spacing: -.02em; }
.dslt .deck { margin-top: 1rem; }
.dslt > div > .more { margin-top: 1.5rem; }
.qcard { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border: 1px solid var(--rule); background: var(--bg); }
.qcard__top { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line-2); font: 500 var(--t-mono)/1.4 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.qcard__top span:first-child { color: var(--head); }
.qcard__q { margin-top: 1.5rem; font: 600 clamp(1.5rem, 1.3rem + 1vw, 2rem)/1.18 var(--f-serif); letter-spacing: -.01em; color: var(--head); text-wrap: balance; }
.qcard .btnrow { margin-top: 1.75rem; }
.qcard .note, .assess__res .note, .route__side .note { display: flex; gap: .6rem; margin-top: 1.25rem; }
.qcard .note .icon, .assess__res .note .icon, .route__side .note .icon { flex: none; width: 1rem; height: 1rem; margin-top: .2rem; }
@media (max-width: 61.99em) { .dslt { grid-template-columns: 1fr; } }

/* the self-assessment: the score is counted by this style sheet (CSS counters); no script, nothing stored, nothing sent */
.assess { counter-reset: score answered; display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem); gap: var(--gap) clamp(2rem, 5vw, 6rem); align-items: start; }
.assess input[value="yes"]:checked { counter-increment: score answered; }
.assess input[value="no"]:checked { counter-increment: answered; }
.assess__num::after { content: counter(score); }
.assess__qs { grid-column: 1; border-top: var(--bar) solid var(--accent); }
.aq { padding-block: 1.6rem; border-bottom: 1px solid var(--line-2); scroll-margin-top: 1.5rem; }
.aq fieldset { position: relative; min-width: 0; margin: 0; padding: 0 0 0 3.25rem; border: 0; }
.aq legend { position: relative; display: block; width: 100%; padding: 0; }
.aq__n { position: absolute; left: -3.25rem; top: .45rem; font: 500 var(--t-mono)/1.4 var(--f-mono); letter-spacing: .04em; color: var(--accent-ink); }
.aq__q { font: 600 clamp(1.25rem, 1.15rem + .5vw, 1.5rem)/1.25 var(--f-serif); letter-spacing: -.005em; color: var(--head); text-wrap: pretty; }
.aq__a { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.aq__a input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.aq__a label { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: .5rem 1.1rem .5rem .9rem; border: 1px solid var(--field-line); border-radius: var(--radius); font: 500 .9375rem/1.2 var(--f-ui); color: var(--ink); cursor: pointer; user-select: none; }
.aq__a label::before { content: ""; flex: none; width: .9rem; height: .9rem; border: 1px solid currentColor; border-radius: 50%; }
.aq__a label:hover { border-color: var(--head); }
.aq__a input:checked + label { background: var(--head); border-color: var(--head); color: var(--bg); }
.aq__a input:checked + label::before { background: var(--bg); border-color: var(--bg); box-shadow: inset 0 0 0 3px var(--head); }
.aq__a input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.aq__fix { display: none; flex-basis: 100%; margin-top: .4rem; padding: .8rem 1rem; border-left: var(--bar) solid var(--accent); background: var(--bg-2); font-size: var(--t-small); line-height: 1.5; }
.aq__a input[value="no"]:checked ~ .aq__fix { display: block; }
.aq__fix b { display: inline-block; margin-right: .6rem; font: 500 var(--t-label)/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.assess__res { grid-column: 2; grid-row: 1; position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; padding-top: 1rem; border-top: var(--bar) solid var(--accent); scrollbar-width: thin; }
.assess__res > .lab-h:first-child { margin: 0; padding: 0; border: 0; }
.assess__res h3.lab-h { margin: 1.9rem 0 0; }
.assess__big { display: flex; align-items: baseline; gap: .6rem; margin-top: 1.1rem; }
.assess__big b { font: 600 clamp(4rem, 3rem + 4vw, 6rem)/.9 var(--f-serif); letter-spacing: -.04em; color: var(--head); font-feature-settings: "lnum"; }
.assess__big i { font: 400 1.25rem/1 var(--f-mono); font-style: normal; color: var(--ink-2); }
.assess__ans { margin-top: .7rem; font: 400 .75rem/1.3 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.segs, .seglegend, .fixl { display: none; }
.segs { grid-template-columns: repeat(10, 1fr); gap: 3px; margin-top: 1rem; }
.seg { display: block; height: .85rem; border: 1px solid var(--line-2); background: var(--bg-3); }
.seg:hover { border-color: var(--head); }
.seglegend { flex-wrap: wrap; gap: .3rem 1rem; margin-top: .65rem; font: 400 .6875rem/1.3 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.seglegend span { display: inline-flex; align-items: center; gap: .4rem; }
.seglegend i { width: .7rem; height: .7rem; border: 1px solid var(--line-2); background: var(--bg-3); }
.seglegend .k-yes { background: var(--head); border-color: var(--head); }
.seglegend .k-no { background: var(--red); border-color: var(--red); }
.bands li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--line-2); font-size: var(--t-small); line-height: 1.45; }
.bands b { font: 500 var(--t-mono)/1.75 var(--f-mono); color: var(--head); }
.fixl__none { padding-top: .8rem; font-size: var(--t-small); line-height: 1.5; color: var(--ink); }
.fixl__i { display: none; grid-template-columns: 2rem minmax(0, 1fr); gap: .5rem; padding: .7rem 0; border-bottom: 1px solid var(--line-2); font-size: var(--t-small); line-height: 1.45; }
.fixl__i .ref { color: var(--accent-ink); line-height: 1.75; }
.assess__res .btnrow { margin-top: 1.5rem; }
.assess__bar { display: none; }
@supports selector(:has(a)) {
  .segs { display: grid; }
  .seglegend { display: flex; }
  .fixl { display: block; }
  .assess:has(input[value="no"]:checked) .fixl__none { display: none; }
}
@media (max-width: 61.99em) {
  .assess { display: block; }
  .assess__res { position: static; max-height: none; overflow: visible; margin-top: 2.5rem; }
  .assess__bar { display: flex; align-items: baseline; gap: .55rem; position: sticky; bottom: calc(env(safe-area-inset-bottom, 0px) + .6rem); z-index: 5; width: max-content; max-width: 100%; margin: 1.25rem auto 0; padding: .65rem 1rem; background: var(--charcoal); color: var(--grey); font: 500 var(--t-mono)/1.3 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 6px 24px rgb(0 0 0 / .28); }
  .assess__bar { border: 1px solid var(--charcoal-t25); }
  .assess__bar b { font: 600 1.375rem/1 var(--f-serif); letter-spacing: 0; color: var(--white); font-feature-settings: "lnum"; }
  .assess__bar i { font-style: normal; }
  .assess__bar .assess__done { margin-left: .9rem; padding-left: .9rem; border-left: 1px solid var(--charcoal-t25); }
  .aq fieldset { padding-left: 2.5rem; }
  .aq__n { left: -2.5rem; }
  .seg { height: 2rem; }
  .aq__a label { min-height: 3rem; padding-inline: 1rem 1.25rem; }
}
@media print { .assess { display: block; } .assess__res { position: static; max-height: none; overflow: visible; margin-top: 2rem; } .assess__bar { display: none; } }

/* threat guides by country */
.thr { display: grid; grid-template-columns: minmax(15rem, 4fr) minmax(0, 8fr); gap: var(--gap) clamp(2rem, 5vw, 6rem); align-items: start; }
.thr__side { position: sticky; top: 1.5rem; }
.thr__side figure { padding: .75rem; border: 1px solid var(--line-2); background: var(--bg-2); }
.thr__side .mp { display: block; max-height: 24rem; margin-inline: auto; --mp-0: var(--grey); --mp-2: var(--charcoal); --mp-edge: var(--grey-t50); --mp-water: var(--grey-t50); }
.thr__side figcaption { margin-top: .6rem; font: 400 .75rem/1.4 var(--f-mono); letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); }
.thr__jump { margin-top: 1.5rem; border-top: var(--bar) solid var(--accent); }
.thr__jump a { display: flex; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line-2); font: 600 1.1875rem/1.2 var(--f-serif); color: var(--head); }
.thr__jump a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .16em; }
.thr__jump .ref { color: var(--accent-ink); }
.thr__c { margin-bottom: clamp(2.25rem, 1.75rem + 2vw, 3.5rem); scroll-margin-top: 1.5rem; }
.thr__c header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; align-items: end; padding-bottom: 1rem; border-bottom: var(--bar) solid var(--accent); }
.thr__c header .ref { grid-column: 1 / -1; color: var(--accent-ink); }
.thr__c h2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); letter-spacing: -.02em; }
.thr__c header .meta { padding-bottom: .35rem; }
.thr__facts li { padding: 1.25rem 0; border-bottom: 1px solid var(--line-2); }
.thr__facts li > p:first-child { max-width: var(--measure); font-size: 1.1875rem; line-height: 1.5; }
.thr__src { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; margin-top: .65rem; font: 400 var(--t-mono)/1.4 var(--f-mono); letter-spacing: .02em; }
.thr__src span { font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.thr__src a { color: var(--head); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.thr__src a:hover { color: var(--accent-ink); }
.thr__c > .more { margin-top: 1.25rem; }
.helps { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border: 1px solid var(--rule); }
.helps h2 { font-size: 1.75rem; }
.helps p { max-width: var(--measure); margin-top: .7rem; font-size: 1.125rem; line-height: 1.55; }
.helps .btnrow { margin-top: 1.25rem; }
@media (max-width: 61.99em) { .thr { grid-template-columns: 1fr; } .thr__side { position: static; } .thr__side figure { max-width: 22rem; } }

/* the emergency route */
.routewrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gap) clamp(2rem, 5vw, 6rem); align-items: start; }
.route { max-width: 46rem; }
.route__s { position: relative; padding: 0 0 2.5rem 3.5rem; }
.route__s::before { content: ""; position: absolute; left: .7rem; top: .6rem; bottom: -.4rem; width: 1px; background: var(--line-2); }
.route__s:last-child { padding-bottom: 0; }
.route__s:last-child::before { display: none; }
.route__s::after { content: ""; position: absolute; left: .175rem; top: .3rem; width: 1.1rem; height: 1.1rem; border: 2px solid var(--head); border-radius: 50%; background: var(--bg); }
.route__s--first::after { background: var(--red); border-color: var(--red); }
.route__s--first .ref { color: var(--accent-ink); }
.route__s h2 { margin-top: .35rem; font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); line-height: 1.15; }
.route__s p:not(.ref) { margin-top: .6rem; font-size: 1.125rem; line-height: 1.55; }
.route__side { position: sticky; top: 1.5rem; padding-top: 1rem; border-top: var(--bar) solid var(--accent); }
.route__side .note { margin-top: 0; }
.route__side .btnrow { margin-top: 1rem; }
@media (max-width: 61.99em) { .routewrap { grid-template-columns: 1fr; } .route__side { position: static; } .route__s { padding-left: 2.75rem; } }

/* ---------------------------------------------------------------- Resource Lab */
.rl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 0 var(--gap); border-top: var(--bar) solid var(--accent); }
.rl--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rl--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rc { position: relative; display: flex; flex-direction: column; gap: .6rem; min-width: 0; padding-block: 1.4rem 1.5rem; border-bottom: 1px solid var(--line-2); }
.rc__k { display: flex; align-items: center; gap: .75rem; min-height: 1.5rem; }
.rc__langs { margin-left: auto; font: 400 .75rem/1 var(--f-mono); letter-spacing: .08em; color: var(--ink-2); white-space: nowrap; }
.rc__type { display: inline-flex; align-items: center; gap: .5rem; font: 500 var(--t-label)/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.rc__type .icon { width: 1.05rem; height: 1.05rem; }
.rc h3 { font: 600 1.375rem/1.16 var(--f-serif); letter-spacing: -.008em; color: var(--head); text-wrap: balance; }
.rc h3 a::after { content: ""; position: absolute; inset: 0; }
.rc:hover h3 a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .16em; }
.rc__d { font-size: var(--t-small); line-height: 1.5; color: var(--ink); }
.rc .meta { margin-top: auto; padding-top: .3rem; }
.rl__ext { margin-top: 1.25rem; }
.rfeat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 2.5rem) var(--gap); }
.rc--feat { gap: .7rem; padding-block: 0; border-bottom: 0; }
.rc--feat .ph, .rc__tile { margin-bottom: .35rem; }
.rc--feat:hover .ph img { transform: scale(1.025); }
.rc__tile { aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center; gap: .7rem; background: var(--bg-3); color: var(--ink-2); }
.rc__tile .icon { width: 2.5rem; height: 2.5rem; color: var(--head); stroke-width: 1.3; }
.rc__tile span { font: 500 .6875rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.ess { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 6rem); border-top: var(--bar) solid var(--accent); }
.ess li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line-2); }
.ess .ref { color: var(--accent-ink); }
.ess a { font: 600 1.25rem/1.2 var(--f-serif); color: var(--head); }
.ess a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .16em; }
.ess__t { font: 400 .75rem/1.3 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.filters .note { margin-top: .7rem; font-size: .8125rem; }

.arch .rl { border-top: 0; }
.arch .rl .rc:nth-child(-n+3) { padding-top: .4rem; }
@media (max-width: 68em) { .rfeat { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rl--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); } }
@media (max-width: 54em) { .ess, .rl--2 { grid-template-columns: 1fr; } }
@media (max-width: 36em) {
  .rfeat { grid-template-columns: 1fr; gap: 0; border-top: var(--bar) solid var(--accent); }
  .rc--feat { padding-block: 1.4rem 1.5rem; border-bottom: 1px solid var(--line-2); }
  .rc--feat .rc__tile { display: none; }       /* on a phone the icon tiles only add length; photographs stay */
  .rc--feat .ph { margin-bottom: .5rem; }
}

/* one resource */
.res { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gap) clamp(2rem, 5vw, 6rem); align-items: start; }
.res__body > .proto { margin-bottom: 1.75rem; }
.res__body .lede { max-width: var(--measure); font-size: clamp(1.25rem, 1.15rem + .5vw, 1.4375rem); line-height: 1.5; }
.res__body > .lab-h { max-width: 46rem; margin-top: 2.5rem; margin-bottom: 0; }
.rsteps, .res__body .steps { counter-reset: st; max-width: 46rem; padding: 0; list-style: none; }
.rsteps > li, .res__body .steps > li { counter-increment: st; position: relative; margin: 0; padding: 1.4rem 0 1.4rem 4.25rem; border-bottom: 1px solid var(--line-2); }
.rsteps > li::before, .res__body .steps > li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 1.3rem; font: 600 2rem/1 var(--f-serif); letter-spacing: -.02em; color: var(--head); font-feature-settings: "lnum"; }
.rsteps h3 { font-size: 1.5rem; line-height: 1.15; }
.rsteps p { margin-top: .45rem; font-size: 1.125rem; line-height: 1.6; }
.res__body .steps { border-top: var(--bar) solid var(--accent); }
.res__body .steps strong { display: block; margin-bottom: .35rem; font: 600 1.375rem/1.2 var(--f-serif); color: var(--head); }
.res__body .learn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.5rem; border-top: var(--bar) solid var(--accent); border-bottom: 1px solid var(--line-2); }
.res__body .learn > div { padding: 1rem 0; }
.res__body .learn dt { font: 500 var(--t-label)/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.res__body .learn dd { margin: .35rem 0 0; font: 500 1.0625rem/1.35 var(--f-ui); color: var(--head); }
.watch { max-width: 46rem; margin-top: 2.5rem; padding: clamp(1.25rem, 1rem + 1.5vw, 1.9rem); }
.watch h2 { display: flex; align-items: center; gap: .6rem; font: 500 var(--t-label)/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--head); }
.watch h2 .icon { width: 1.15rem; height: 1.15rem; color: var(--accent-ink); }
.watch ul { margin-top: 1rem; }
.watch li { position: relative; padding: .55rem 0 .55rem 1.4rem; font-size: 1.0625rem; line-height: 1.5; }
.watch li::before { content: ""; position: absolute; left: 0; top: 1.1rem; width: .45rem; height: .45rem; background: var(--red); }
.sheet { margin-block: 2rem; padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); border: 1px solid var(--line-2); border-top: var(--bar) solid var(--accent); background: var(--bg-2); font-size: 1.0625rem; line-height: 1.6; }
.sheet > * + * { margin-top: 1em; }
.sheet ol { padding-left: 1.75em; list-style: decimal; }
.sheet__tools { margin-top: 1.5rem; }
.sheet--table { padding: 0; border-width: 2px 0 0; background: none; }
.sheet--table table { width: 100%; }
.sheet--table th, .sheet--table td { padding-left: 0; }
.sheet--table td:first-child { width: 9.5rem; font: 600 .9375rem/1.45 var(--f-ui); color: var(--head); }
.res__side { position: sticky; top: 1.5rem; }
.rtools li { border-bottom: 1px solid var(--line-2); }
.rtools a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; font: 500 .9375rem/1.35 var(--f-ui); color: var(--head); }
.rtools a:hover { text-decoration: underline; text-underline-offset: .2em; }
.rtools a span { color: var(--ink-2); }
.rep { margin-top: .9rem; }
.rep summary { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.375rem; font: 500 .875rem/1.3 var(--f-ui); color: var(--head); cursor: pointer; }
.rep summary .icon { width: 1.05rem; height: 1.05rem; }
.rep .note { margin-top: .4rem; }
.rep textarea { width: 100%; margin-top: .7rem; padding: .6rem; border: 1px solid var(--field-line); border-radius: var(--radius); background: var(--field); font: 400 .75rem/1.5 var(--f-mono); color: var(--ink); resize: vertical; }
@media (max-width: 61.99em) { .res { grid-template-columns: 1fr; } .res__side { position: static; } }
@media (max-width: 36em) { .res__body .learn { grid-template-columns: 1fr; } .res__body .learn > div + div { border-top: 1px solid var(--line-2); } .rsteps > li, .res__body .steps > li { padding-left: 3.25rem; } .rsteps > li::before, .res__body .steps > li::before { font-size: 1.5rem; top: 1.5rem; } }

/* ================================================================ v0.5, drawn by hand (brief §3.6, §4): placeholders designed on purpose.
   A photograph still to come is a dark frame with crop marks and a stamp, the way an exhibit waits for its picture. */
.cohort__in { position: relative; border: 0; background: var(--charcoal) repeating-linear-gradient(135deg, transparent 0 14px, rgb(255 255 255 / .025) 14px 15px); color: var(--grey); border-top: var(--bar) solid var(--red-t25); }
.cohort__in::before, .cohort__in::after { content: ""; position: absolute; width: 1.75rem; height: 1.75rem; border: 2px solid var(--grey-s38); }
.cohort__in::before { left: 1rem; top: 1rem; border-right: 0; border-bottom: 0; }
.cohort__in::after { right: 1rem; bottom: 1rem; border-left: 0; border-top: 0; }
.cohort__in .icon { color: var(--red-t45); }
.cohort__in b { color: var(--white); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); }
.tslot { border: 0; border-top: var(--bar) solid var(--accent); background: var(--bg-2); }
.tslot .icon { color: var(--accent-ink); }
.tslot blockquote p { color: var(--head); }

/* D-214: the link to the phishing quiz below the lead */
.pq-cta { margin-top: 1rem; font: 600 1.0625rem/1.5 var(--f-text); }
.pq-cta .badge { margin-left: .5rem; vertical-align: .1em; }
