/* DIE SKISCHULE · Online-Casting
   Snow, ink, Tyrolean red. One loud element: the barrier tape. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/barlow-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/barlow-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/barlow-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/barlow-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/barlow-condensed-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url(fonts/barlow-condensed-latin-800-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url(fonts/barlow-condensed-latin-ext-800-italic.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --snow: #F2F6F9;
  --paper: #FFFFFF;
  --ink: #16202B;
  --ink-2: #3B4856;
  --muted: #5B6876;
  --line: #CBD5DE;
  --line-strong: #8E9DAB;
  --red: #C8102E;
  --red-dark: #A00C24;
  --red-wash: #FCEEF0;
  --blue: #1554A5;
  --ok: #1E7A4C;
  --focus: 0 0 0 3px rgba(21, 84, 165, .35);
  --text: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { top: 12px; color: #fff; }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  background: var(--snow);
  overflow: hidden;
  padding: 28px 0 150px;
}
.hero__inner { position: relative; }
.lang { display: flex; justify-content: flex-end; gap: 18px; font-size: 15px; margin-bottom: clamp(28px, 7vw, 64px); }
.lang a { color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.lang a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.hero__byline { margin: 0 0 6px; font-weight: 500; font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); }
.hero__title { margin: 0; line-height: .86; }
.hero__show {
  display: block;
  font: italic 800 clamp(64px, 14.5vw, 172px)/.84 var(--display);
  letter-spacing: -.012em;
  text-transform: uppercase;
  margin-left: -.03em;
}
.hero__sub {
  display: block;
  margin-top: .32em;
  font: 700 clamp(30px, 4.6vw, 52px)/1 var(--display);
  color: var(--ink-2);
}
.hero__intro { max-width: 60ch; margin: 28px 0 0; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); }
.facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 32px 0 0; padding: 0; }
.facts div { min-width: 120px; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 18px; }

/* The barrier tape: ski-slope closure and crime scene at once */
.tape {
  position: absolute;
  left: -10vw;
  right: -10vw;
  bottom: 44px;
  transform: rotate(-3.2deg);
  filter: drop-shadow(0 6px 10px rgba(22, 32, 43, .18));
  pointer-events: none;
}
.tape__band {
  display: flex;
  align-items: center;
  height: 54px;
  background: var(--red);
  border-top: 3px solid #fff;
  border-bottom: 3px solid #fff;
  box-shadow: inset 0 3px 0 var(--red), inset 0 -3px 0 var(--red);
  white-space: nowrap;
  overflow: hidden;
  animation: tape-in 900ms cubic-bezier(.2, .8, .2, 1) 150ms both;
}
.tape__text {
  flex: none;
  padding: 0 26px;
  color: #fff;
  font: 700 27px/1 var(--display);
  letter-spacing: .06em;
}
.tape__stripes {
  flex: none;
  width: 88px;
  height: 100%;
  background: repeating-linear-gradient(-45deg, #fff 0 13px, var(--red) 13px 26px);
}
.tape--closed .tape__band { background: var(--ink); box-shadow: inset 0 3px 0 var(--ink), inset 0 -3px 0 var(--ink); }
.tape--closed .tape__stripes { background: repeating-linear-gradient(-45deg, #fff 0 13px, var(--ink) 13px 26px); }
@keyframes tape-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .tape__band { animation: none; } }

/* -------------------------------------------------------------- layout */

.main { padding: 56px 0 96px; outline: none; }
.layout { display: block; }
.rail { display: none; }

@media (min-width: 1000px) {
  .layout { display: grid; grid-template-columns: 210px minmax(0, 720px); gap: 64px; }
  .rail { display: block; }
  .rail__list { position: sticky; top: 32px; list-style: none; margin: 0; padding: 0; }
}
.rail__list li + li { margin-top: 4px; }
.rail__link { display: flex; align-items: center; gap: 12px; padding: 7px 0; text-decoration: none; color: var(--muted); font-weight: 500; }
.rail__n {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--line-strong);
  font: 700 17px/1 var(--display);
  color: var(--muted);
  background: var(--paper);
}
.rail__link.is-current { color: var(--ink); }
.rail__link.is-current .rail__n { background: var(--ink); border-color: var(--ink); color: #fff; }
.rail__link.is-done .rail__n { background: var(--red); border-color: var(--red); color: #fff; font-size: 0; }
.rail__link.is-done .rail__n::after { content: ""; width: 10px; height: 5px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-2px) rotate(-45deg); }
.rail__help { position: sticky; top: 300px; margin-top: 36px; font-size: 15px; color: var(--muted); }

/* ---------------------------------------------------------------- form */

.form__note { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.step { padding: 48px 0 8px; border-top: 1px solid var(--line); }
.step:first-of-type { border-top: 0; padding-top: 16px; }
.step + .step { margin-top: 40px; }
.step__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.step__n { font: 700 54px/.8 var(--display); color: var(--red); min-width: .6em; }
.step__title { margin: 0; font: 700 clamp(32px, 4vw, 40px)/1 var(--display); }
.step__lead { margin: 4px 0 20px; color: var(--ink-2); }

.field { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.field__label { display: block; margin: 0 0 6px; padding: 0; font-weight: 600; font-size: 17px; }
.field__hint { margin: -2px 0 8px; color: var(--muted); font-size: 15px; max-width: 62ch; }
.field__error { margin: 8px 0 0; color: var(--red); font-weight: 500; font-size: 15px; }
.req { color: var(--red); font-weight: 600; }

.row { display: grid; gap: 0 20px; }
@media (min-width: 640px) {
  .row { grid-template-columns: 1fr 1fr; }
  .row--3 { grid-template-columns: repeat(3, 1fr); }
}

.input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  transition: border-color .12s, box-shadow .12s;
}
.input:hover { border-color: var(--ink-2); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); }
.input--area { min-height: 120px; resize: vertical; line-height: 1.5; }
.input--select {
  appearance: none;
  padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.is-invalid .input, .input.is-invalid { border-color: var(--red); }

.affix { display: flex; align-items: stretch; }
.affix .input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.affix__text { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--line-strong); border-left: 0; border-radius: 0 3px 3px 0; background: var(--snow); color: var(--muted); font-size: 15px; }

.date { display: flex; gap: 12px; }
.date__part { display: flex; flex-direction: column; gap: 4px; width: 76px; font-size: 14px; color: var(--muted); }
.date__part--year { width: 104px; }
.date__part .input { text-align: center; }

/* Optional field groups: invisible wrappers, children keep the grid */
.grp { display: contents; }

/* Roles */
.roles { display: grid; gap: 10px; align-items: start; }
@media (min-width: 640px) { .roles { grid-template-columns: 1fr 1fr; } }
.role { min-width: 0; }
.role:has(.role__details[open]) { grid-column: 1 / -1; }
.role__pick { position: relative; display: block; cursor: pointer; }
.role__pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.role__body {
  position: relative;
  display: block;
  padding: 14px 16px 14px 50px;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  transition: border-color .12s, background-color .12s;
}
.role--more .role__body { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.role__body::before {
  content: "";
  position: absolute;
  left: 16px; top: 18px;
  width: 20px; height: 20px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
}
.role__pick:hover .role__body { border-color: var(--ink-2); }
.role__pick input:checked + .role__body { border-color: var(--red); background: var(--red-wash); box-shadow: inset 4px 0 0 var(--red); }
.role__pick input:checked + .role__body::before { border-color: var(--red); box-shadow: inset 0 0 0 4px #fff; background: var(--red); }
.role__pick input:focus-visible + .role__body { box-shadow: var(--focus); }
.role__name { display: inline; font: 700 25px/1.1 var(--display); }
.role__meta { display: inline; margin-left: 8px; color: var(--muted); font-size: 15px; }
.role__desc { display: block; margin-top: 4px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }

.role__details { border: 1.5px solid var(--line); border-top: 0; border-radius: 0 0 3px 3px; background: var(--snow); }
.role:has(.role__pick input:checked) .role__details { border-color: var(--red); }
.role__details summary {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 50px;
  font-size: 15px; font-weight: 600; color: var(--blue);
  cursor: pointer; list-style: none;
}
.role__details summary::-webkit-details-marker { display: none; }
.role__details summary::before {
  content: ""; width: 7px; height: 7px; margin-left: -22px; margin-right: 8px;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s;
}
.role__details[open] summary::before { transform: rotate(45deg); }
.role__details summary:hover { color: var(--ink); }
.role__info { padding: 4px 20px 18px 50px; max-width: 70ch; }
.role__info p { margin: 0 0 10px; color: var(--ink-2); }
.role__sides-title { margin: 16px 0 8px !important; font: 700 21px/1 var(--display); color: var(--ink) !important; }
.sides { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sides__link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 3px;
  color: var(--ink); text-decoration: none;
}
.sides__link:hover { border-color: var(--blue); color: var(--ink); }
.sides__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 2px; background: var(--red); color: #fff; font: 700 13px/1 var(--display); letter-spacing: .04em; }
.sides__title { flex: 1; min-width: 0; font-weight: 600; }
.sides__size { flex: none; font-size: 14px; color: var(--muted); }
.sides__hint { margin: 8px 0 0 !important; font-size: 14px; color: var(--muted) !important; }

/* Checkboxes */
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.45; max-width: 64ch; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--red); cursor: pointer; }
.check--open { margin-top: 16px; font-weight: 500; }

/* Availability */
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented__opt { position: relative; }
.segmented__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented__opt span {
  display: block; padding: 11px 18px; border: 1.5px solid var(--line-strong); border-radius: 3px;
  font-weight: 500; cursor: pointer; background: var(--paper);
}
.segmented__opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.segmented__opt input:focus-visible + span { box-shadow: var(--focus); }

/* Piste markers for ski level */
.piste { display: grid; gap: 8px; }
@media (min-width: 720px) { .piste { grid-template-columns: repeat(5, 1fr); } }
.piste__opt {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 2px 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  background: var(--paper);
}
.piste__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.piste__disc { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--line-strong); background: var(--paper); }
.piste__opt--blue .piste__disc { background: #1D5FBF; border-color: #1D5FBF; }
.piste__opt--red .piste__disc { background: var(--red); border-color: var(--red); }
.piste__opt--black .piste__disc { background: #111; border-color: #111; }
.piste__opt--pro .piste__disc { background: #111; border-color: #111; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 9px var(--red); }
.piste__name { font: 700 21px/1.05 var(--display); }
.piste__desc { font-size: 14px; color: var(--muted); line-height: 1.35; }
@media (min-width: 720px) {
  .piste__opt { grid-template-columns: 1fr; justify-items: start; align-content: start; padding: 16px 14px 14px; }
  .piste__disc { grid-row: auto; margin-bottom: 10px; }
}
.piste__opt:hover { border-color: var(--ink-2); }
.piste__opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--snow); }
.piste__opt:has(input:focus-visible) { box-shadow: var(--focus); }
.piste__opt.is-checked { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--snow); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: block; padding: 8px 15px; border: 1.5px solid var(--line-strong); border-radius: 999px; font-weight: 500; font-size: 16px; cursor: pointer; background: var(--paper); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:checked + span::before { content: "✓ "; }
.chip input:focus-visible + span { box-shadow: var(--focus); }

/* Minor box */
.minor { margin-top: 24px; padding: 18px 20px 22px; background: var(--snow); border-left: 4px solid var(--blue); }
.minor__title { margin: 0; font: 700 24px/1.1 var(--display); }
.minor__text { margin: 4px 0 0; color: var(--ink-2); max-width: 60ch; }
.minor .field:first-of-type { margin-top: 14px; }

/* Uploads */
.drop__zone {
  display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; justify-content: center;
  width: 100%;
  margin-top: 10px;
  padding: 26px 20px;
  font: inherit;
  color: var(--ink);
  background: var(--snow);
  border: 2px dashed var(--line-strong);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color .12s, background-color .12s;
}
.drop__zone strong { font: 700 22px/1 var(--display); color: var(--blue); }
.drop__zone span { color: var(--muted); }
.drop__zone:hover, .drop.is-over .drop__zone { border-color: var(--blue); background: #E8F0FA; }
.drop.is-full .drop__zone { display: none; }
.drop.is-invalid .drop__zone { border-color: var(--red); }
.drop__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.drop__list:empty { display: none; }
.drop__list--photos { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }

.file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 3px; background: var(--paper); }
.file__icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: var(--snow); border-radius: 2px; font: 700 13px/1 var(--display); color: var(--muted); text-transform: uppercase; }
.file__meta { flex: 1; min-width: 0; }
.file__name { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file__size { font-size: 14px; color: var(--muted); }
.file__remove {
  flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer;
}
.file__remove:hover { background: var(--red-wash); color: var(--red); }

.photo { position: relative; aspect-ratio: 3 / 4; background: var(--snow); border-radius: 3px; overflow: hidden; border: 1.5px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo__fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; text-align: center; font-size: 13px; color: var(--muted); word-break: break-word; }
.photo .file__remove { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }

/* Honeypot */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Error summary */
.summary { margin-top: 32px; padding: 18px 20px; border: 3px solid var(--red); border-radius: 3px; outline: none; }
.summary__title { margin: 0 0 8px; font: 700 23px/1.15 var(--display); }
.summary__list { margin: 0; padding-left: 20px; }
.summary__list a { color: var(--red); font-weight: 500; }

/* Submit */
.send { margin-top: 32px; }
.send__total { margin: 0 0 12px; color: var(--ink-2); font-weight: 500; }
.send__total:empty { display: none; }
.send__note { margin: 12px 0 0; font-size: 15px; color: var(--muted); max-width: 56ch; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 58px; padding: 0 30px;
  font: 700 25px/1 var(--display);
  color: #fff; background: var(--red);
  border: 0; border-radius: 3px;
  cursor: pointer; text-decoration: none;
  transition: background-color .12s;
}
.button:hover { background: var(--red-dark); color: #fff; }
.button:disabled { background: var(--line-strong); cursor: default; }
.button--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.button--quiet:hover { background: var(--ink); color: #fff; }
@media (max-width: 639px) { .send .button { width: 100%; } }

/* Notices */
.notice { padding: 8px 0 40px; }
.notice__title { font: 700 clamp(34px, 5vw, 48px)/1 var(--display); margin: 0 0 12px; }
.notice--warn { padding: 16px 20px; background: var(--red-wash); border-left: 4px solid var(--red); }

/* Done */
.done { padding-top: 8px; padding-bottom: 40px; outline: none; max-width: 820px; margin-left: 0; }
.done__title { font: 700 clamp(38px, 6vw, 64px)/.98 var(--display); margin: 0 0 24px; max-width: 16ch; }
.done__ref { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0 0 18px; padding: 12px 18px; background: var(--snow); border-left: 4px solid var(--red); }
.done__ref span { color: var(--muted); }
.done__ref strong { font: 700 30px/1 var(--display); letter-spacing: .04em; }
.done__text { max-width: 58ch; color: var(--ink-2); margin: 0 0 28px; }

/* Footer */
.footer { background: var(--snow); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 15px; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer p { margin: 0; }
.footer__links { display: flex; gap: 20px; }

/* ------------------------------------------------------------- overlay */

.overlay {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(22, 32, 43, .74);
  backdrop-filter: blur(3px);
}
.overlay__panel {
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 30px 28px 26px;
  background: var(--paper);
  border-radius: 4px;
  border-top: 6px solid var(--red);
  outline: none;
}
.overlay__title { margin: 0 0 6px; font: 700 34px/1 var(--display); }
.overlay__status { margin: 0 0 20px; color: var(--ink-2); min-height: 1.5em; }
.meter { height: 12px; background: var(--snow); border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.meter__bar { width: 0; height: 100%; background: var(--red); transition: width .25s linear; }
.overlay__stats { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 18px; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.overlay__stats span:first-child { color: var(--ink); font-weight: 600; }
.overlay__files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.overlay__files li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.overlay__files .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overlay__files .state { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.overlay__files .is-up .state { color: var(--blue); font-weight: 600; }
.overlay__files .is-ok .state { color: var(--ok); font-weight: 600; }
.overlay__files .is-failed .state { color: var(--red); font-weight: 600; }
.overlay__keep { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.overlay__problem { margin-top: 18px; padding: 16px; background: var(--red-wash); border-radius: 3px; }
.overlay__problem p { margin: 0 0 12px; }
.overlay__problem .button { min-height: 48px; font-size: 21px; margin: 4px 8px 0 0; }

/* Privacy page */
.legal { max-width: 760px; margin-left: 0; }
.legal h2 { font: 700 26px/1.1 var(--display); margin: 32px 0 8px; }
.legal p { max-width: 68ch; color: var(--ink-2); }

/* Role questions and motivation */
.role-q { margin-top: 20px; padding: 16px 20px 20px; background: var(--red-wash); border-left: 4px solid var(--red); }
.role-q__title { margin: 0; font: 700 22px/1.1 var(--display); }
.role-q .field:first-of-type { margin-top: 10px; }
.field__count { margin: 6px 0 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.field__count.is-ok { color: var(--ok); }
