/* =====================================================================
   The survey in the site's new design (survey-new.html).

   The home page's look over the survey's own layout: Söhne for questions, answers
   and buttons, Tiempos for the explaining lines, ink on white, grey surface tiles
   like the pillar boxes, navy for whatever is chosen, the name in black with the
   Menu pill in the header. A layer over base.css, survey.css and ending.css: the
   markup, the questions and the answers are the survey's own, unchanged.
   ===================================================================== */

@font-face { font-family: "Sohne VF"; src: url("/fonts/web/sohne-vf.woff2") format("woff2"); font-weight: 1 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Tiempos Text"; src: url("/fonts/web/tiempos-text-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Tiempos Text"; src: url("/fonts/web/tiempos-text-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Tokens: the survey's names, the home page's values ---------- */
:root:has(body.survey-new) {
  --backdrop-photo: none;
  --edge-top: #ffffff;
  --edge-bottom: #ffffff;
  --sans: "Sohne VF", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
body.survey-new {
  --backdrop-photo: none;
  --ink: #000c1f;
  --muted: #000c1fa6;
  --graphite: #000c1f99;
  --line: #000c1f1a;
  --wash: #f4f5f7;
  --surface: #ffffff;
  --bg: #ffffff;
  --accent: var(--navy);
  --accent-ink: var(--navy);
  --accent-deep: var(--navy);
  --teal-ink: var(--navy);
  --alert: #b3261e;
  --sans: "Sohne VF", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Tiempos Text", Georgia, serif;

  --navy: #a30b3f;        /* the campaign red, more vivid on wide-gamut screens (below) */
  --navy-hover: #680126;
  --blue: var(--navy);
  --tile: #f4f5f7;
  --tile-hover: #eceef2;
  --hairline: #000c1f0d;
  --border: #000c1f1a;
  --ink-30: #000c1f4d;
  --ink-45: #000c1f73;
  --ink-65: #000c1fa6;
  --shadow-panel: 0 0 0 1px var(--hairline), 2px 11px 24px #0000001a, 8px 42px 43px #00000017, 18px 95px 58px #0000000d;
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);

  --glass: #ffffff;
  --glass-blur: none;
  --band-tint: 255 255 255;
  --band-blur: 16px;
  --field-bg: #ffffff;
  --field-edge: inset 0 0 0 1px #000c1f33;
  --field-edge-hover: inset 0 0 0 1px #000c1f73;
  --field-focus: inset 0 0 0 2px #000c1f;
  --tick-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5 8.5 14.5 15.5 6' fill='none' stroke='%23a30b3f' style='stroke:color(display-p3 0.614 0.017 0.236)' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: normal;
}
html:has(body.survey-new) { background: #ffffff; }
@media (color-gamut: p3) { body.survey-new { --navy: color(display-p3 0.614 0.017 0.236); --navy-hover: color(display-p3 0.387 0.005 0.143); } }
/* The wrapper the Menu makes inert while it's open; it adds no box of its own */
.survey-new .page-wrap { display: contents; }

/* White page: no valley photo, no frost, no tint at the top */
body.survey-new::before { display: none; }
body.survey-new::after { box-shadow: 0 130px 0 130px #ffffff; }
.survey-new .top-tint, .survey-new .intro-veil { display: none; }

.survey-new a { color: var(--ink); }
.survey-new a:not(.btn-go):not(.brand):hover { color: var(--navy); }
.survey-new a.btn-go, .survey-new a.btn-go:hover, .survey-new a.btn-go:focus-visible { color: #ffffff; }
.survey-new :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.survey-new :is(h1, h2, h3):focus, .survey-new #screen:focus { outline: none; }

/* ---------- Header: the name top left, the Menu pill top right, progress under them ---------- */
.survey-new .masthead {
  --logo: 2rem;
  --head-pad: 1.5rem;
  background: rgb(255 255 255 / 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 -120px 0 0 #ffffff, 0 1px 0 var(--hairline);
}
.survey-new .masthead-inner {
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  max-width: calc(1040px + 2 * var(--gutter));
  padding-block: 20px 6px;
}
.survey-new .masthead .brand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-items: start;
  column-gap: 8px;
  row-gap: 4px;
  grid-column: 1;
  grid-row: 1;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  border-radius: 6px;
}
.survey-new .wordmark-name { font-family: var(--sans); font-size: 26px; font-weight: 600; line-height: 1; letter-spacing: -0.025em; }
.survey-new .wordmark-role { font-family: var(--serif); font-size: 15px; font-weight: 400; line-height: 1; white-space: nowrap; }
.survey-new .masthead .brand:hover { color: var(--ink); }
.survey-new .masthead .survey-name {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin: 0;
  color: var(--ink-65);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  text-box: none;
}
.survey-new .masthead .survey-name.is-test { color: var(--blue); font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.survey-new .masthead .menu-trigger-wrap { grid-column: 3; grid-row: 1; }
@media (min-width: 768px) {
  .survey-new .masthead-inner { padding-block: 28px 8px; }
  .survey-new .wordmark-name { font-size: 30px; }
  .survey-new .wordmark-role { font-size: 18px; }
}
@media (max-width: 34rem) {
  .survey-new .masthead { --logo: 1.6rem; --head-pad: 0.9rem; }
  .survey-new .masthead-inner { grid-template-columns: 1fr auto; padding-block: 14px 4px; }
  .survey-new .masthead .survey-name { display: none; }
  .survey-new .masthead .survey-name.is-test { display: block; grid-column: 1 / -1; grid-row: 2; justify-self: start; font-size: 11px; }
  .survey-new .masthead .menu-trigger-wrap { grid-column: 2; }
  .survey-new .wordmark-name { font-size: 24px; }
  .survey-new .wordmark-role { font-size: 14px; }
}

/* Progress: a thin navy line in chapters, a navy dot where you are */
.survey-new .steps { max-width: calc(1040px + 2 * var(--gutter)); padding-block: 8px 12px; }
.survey-new .steps-now { font-family: var(--sans); }
.survey-new .steps-now > b { color: var(--ink); font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.1rem; }
.survey-new .steps-count { color: var(--ink-65); }
.survey-new .steps-count .n { color: var(--ink); }
.survey-new .steps-count .sep { color: var(--ink-30); }
.survey-new .steps-bar a,
.survey-new .steps-bar > li > span { height: 3px; background: #000c1f17; }
.survey-new .steps-bar .done { background: var(--navy); }
.survey-new .steps-bar .done.ahead { background: #a30b3f4d; }
@media (hover: hover) { .survey-new .steps-bar .done:hover { background: var(--navy-hover); } }
.survey-new .steps-bar .now { background: linear-gradient(to right, var(--navy) var(--fill), #000c1f17 var(--fill)); }
.survey-new .steps-bar .now::after { width: 11px; height: 11px; background: var(--navy); box-shadow: 0 0 0 3px #ffffff, 0 2px 6px 1px #a30b3f4d; }
.survey-new .steps-bar .optional { background: repeating-linear-gradient(90deg, #000c1f40 0 3px, transparent 3px 7px); }
@media (max-width: 34rem) {
  .survey-new .steps { padding-block: 6px 8px; }
  .survey-new .steps-now .save-status { top: auto; bottom: 0.4rem; translate: none; position: static; }
}

/* ---------- The card ---------- */
.survey-new #screen {
  --t-title: clamp(1.75rem, 2.4vw + 1rem, 2.6rem);
  --t-screen: clamp(2.4rem, 5vw + 1rem, 4.25rem);
  --tile-radius: 22px;
  max-width: calc(1040px + 2 * var(--gutter));
}
@media (max-width: 34rem) {
  .survey-new #screen { --t-title: 1.6rem; --t-screen: 2.1rem; --tile-radius: 18px; }
}
.survey-new .q-title,
.survey-new .screen-head h1,
.survey-new .pri-intro h1 {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.survey-new .screen-head h1, .survey-new .pri-intro h1 { letter-spacing: -0.03em; line-height: 1.03; }
@media (min-width: 64rem) {
  .survey-new .pri-intro h1 { font-size: clamp(2.4rem, 2.4vw + 1rem, 3.2rem); }
}

/* The explaining lines read in Tiempos, a shade lighter than the questions */
.survey-new .lede,
.survey-new .pri-intro .lede,
.survey-new .screen-head .lede,
.survey-new .step > .q-title + .lede,
.survey-new .chapter-lede,
.survey-new .q-hint,
.survey-new .hint,
.survey-new .meta,
.survey-new .fine {
  font-family: var(--serif);
  color: var(--ink-65);
  letter-spacing: 0;
}
.survey-new .pri-intro .lede { color: var(--ink-80, #000c1fcc); font-size: 1.1rem; line-height: 1.55; }
.survey-new .fu-reason, .survey-new .block-tag { font-family: var(--sans); color: var(--ink-65); }
.survey-new .block-tag { color: var(--ink); font-weight: 500; }
.survey-new .fu-reason::before, .survey-new .record p::before { background: var(--navy); }
.survey-new .note { background: var(--tile); border-radius: 18px; }

/* ---------- Answers: grey tiles that turn navy when chosen ---------- */
.survey-new .opt,
.survey-new .rank-btn,
.survey-new .qrank-btn {
  background: var(--tile);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  transition: background-color 0.2s var(--ease-out-quint), color 0.2s var(--ease-out-quint), box-shadow 0.2s var(--ease-out-quint), scale 0.2s var(--ease-out-quint);
}
.survey-new .opt::before, .survey-new .rank-btn::before, .survey-new .qrank-btn::before { display: none; }
@media (hover: hover) {
  .survey-new .opt:hover, .survey-new .rank-btn:hover, .survey-new .qrank-btn:hover {
    background: var(--tile-hover);
    box-shadow: inset 0 0 0 1px var(--border);
  }
}
.survey-new .opt:active, .survey-new .rank-btn:active, .survey-new .qrank-btn:active { scale: 0.99; }
.survey-new .opt:has(input:checked),
.survey-new .rank-btn[aria-pressed='true'],
.survey-new .qrank-btn[aria-pressed='true'] {
  background: var(--navy);
  color: #ffffff;
  translate: none;
  box-shadow: 0 10px 24px -14px #a30b3fb3;
}
.survey-new .opt:has(input:checked) small { color: #ffffffcc; }
/* the round check at the end of an answer: an empty ring, then white with a navy tick */
.survey-new .opt::after { background: #ffffff var(--tick-navy) center / 0 no-repeat; box-shadow: inset 0 0 0 1.5px var(--ink-30); }
.survey-new .opt:has(input:checked)::after { background-color: #ffffff; background-size: 15px; box-shadow: none; }
.survey-new .opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }

/* The numbered priorities */
.survey-new .rank-slot { background: #ffffff; border-color: var(--border); color: var(--ink); font-family: var(--sans); }
.survey-new .rank-btn[aria-pressed='true'] .rank-slot,
.survey-new .qrank-btn[aria-pressed='true'] .rank-slot { background: #ffffff; border-color: #ffffff; color: var(--navy); }
.survey-new .block-tag .rank-slot { background: var(--navy); border-color: var(--navy); color: #ffffff; }
.survey-new .rank-summary, .survey-new .rank-length { font-family: var(--serif); }
.survey-new .rank-list li.is-dragging .rank-btn { box-shadow: 0 22px 40px -16px #a30b3fb3; }

/* Phones: each answer list is one grey tray; a white capsule glides to the choice */
@media (max-width: 34rem) {
  .survey-new .opts.glide { background: var(--tile); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .survey-new .opts.glide > .opt { background: transparent; color: var(--ink-80, #000c1fcc); box-shadow: none; }
  .survey-new .opts.glide > .opt:has(input:checked) { color: var(--ink); background: transparent; box-shadow: none; }
  .survey-new .opts.glide:not(.glide-one) > .opt:has(input:checked) { background: #ffffff; box-shadow: 0 0 0 1px var(--hairline), 0 8px 20px -14px #000c1f73; }
  .survey-new .opts.glide > .opt + .opt::before { background: var(--border); }
  .survey-new .opts.glide > .opt::after { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-30); }
  .survey-new .opts.glide > .opt:has(input:checked)::after { background: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy), inset 0 0 0 5px #fff; }
  .survey-new .opts.glide > .opt:has(input[type='checkbox']:checked)::after { background: var(--navy) var(--tick) center / 14px no-repeat; box-shadow: none; }
  .survey-new .opts.glide > .glide-cap { background: #ffffff; box-shadow: 0 0 0 1px var(--hairline), 0 10px 24px -14px #000c1f73; }
  @media (hover: hover) { .survey-new .opts.glide > .opt:hover { background: transparent; box-shadow: none; } }
}

/* Agree or disagree: a grey pill in four parts, the choice in navy */
.survey-new .likert { border-top-color: var(--border); }
.survey-new .likert:last-child { border-bottom-color: var(--border); }
.survey-new .likert-q { font-family: var(--sans); font-weight: 500; }
.survey-new .likert-scale { background: var(--tile); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.survey-new .lk { font-family: var(--sans); }
@media (hover: hover) { .survey-new .lk:hover { background: var(--tile-hover); } }
.survey-new .lk:has(input:checked) { background: var(--navy); color: #ffffff; box-shadow: 0 8px 18px -10px #a30b3fb3; }
.survey-new .likert-scale > .lk + .lk::before { background: var(--border); }
.survey-new .lk-unsure { background: var(--tile); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.survey-new .lk-unsure:has(input:checked) { background: var(--navy); color: #ffffff; }

/* Two-way choices drawn as a segmented control */
.survey-new .seg { background: var(--tile); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.survey-new .seg > .opt { background: transparent; }
.survey-new .seg > .opt:has(input:checked) { background: var(--navy); color: #ffffff; box-shadow: none; }

/* ---------- Fields ---------- */
.survey-new :is(input[type='text'], input[type='email'], input[type='tel'], select, textarea) {
  background-color: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: 16px;
  font-family: var(--sans);
  font-weight: 400;
}
.survey-new ::placeholder { color: var(--ink-45); }
.survey-new .field label, .survey-new .label { font-family: var(--sans); font-weight: 500; }
.survey-new .field > label:not(.visually-hidden):has(+ :is(input, select, textarea)) { color: var(--ink-65); }
.survey-new .email-known { background: var(--tile); box-shadow: none; }
.survey-new .counter { color: var(--ink-45); }

/* ---------- Buttons: navy pills, as on the home page ---------- */
.survey-new .btn-go { font-family: var(--sans); font-weight: 500; letter-spacing: -0.01em; }
.survey-new .btn-go::before { background: var(--navy); }
@media (hover: hover) {
  .survey-new .btn-go:hover::before { background: var(--navy-hover); }
  .survey-new .btn-go:hover .disc { color: var(--navy-hover); }
}
.survey-new .btn-go .disc { color: var(--navy); }
.survey-new .btn-primary { background: var(--navy); border-color: var(--navy); color: #ffffff; font-family: var(--sans); }
@media (hover: hover) { .survey-new .btn-primary:hover { background: var(--navy-hover); border-color: var(--navy-hover); } }
.survey-new .btn-secondary { background: #ffffff; color: var(--ink); border-color: var(--border); box-shadow: 0 0 0 1px var(--hairline), 0 10px 40px rgba(1, 14, 36, 0.08); font-family: var(--sans); }
@media (hover: hover) { .survey-new .btn-secondary:hover { background: #fafafa; color: var(--ink); border-color: var(--border); } }
.survey-new .btn-quiet { font-family: var(--sans); color: var(--ink); }
.survey-new .btn-quiet:hover { color: var(--navy); }
.survey-new .btn-back { font-family: var(--sans); }
.survey-new .btn-back .disc { border: 0; background: var(--tile); }
@media (hover: hover) { .survey-new .btn-back:hover .disc { background: var(--tile-hover); } }
.survey-new .btn-skip { font-family: var(--sans); color: var(--ink-65); }
@media (hover: hover) { .survey-new .btn-skip:hover { color: var(--ink); background: var(--tile); } }

/* ---------- Pop-up cards ---------- */
.survey-new dialog.notice,
.survey-new .reply-dlg,
.survey-new .picker {
  border-radius: 28px;
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: var(--shadow-panel);
}
.survey-new dialog.notice::backdrop,
.survey-new .reply-dlg::backdrop,
.survey-new .picker::backdrop { background: rgba(0, 12, 31, 0.16); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
.survey-new dialog.notice h2 { font-family: var(--sans); font-weight: 400; letter-spacing: -0.03em; }
.survey-new dialog.notice p { font-family: var(--serif); color: var(--ink-65); }
.survey-new .notice-x { background: var(--tile); }

/* The band at the foot of the window behind Continue: white frost, not the valley */
.survey-new .dock-fade,
.survey-new .dock-fade:is(*) {
  background-image: linear-gradient(to bottom, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0.85));
  background-size: auto;
  background-position: 0 0;
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

/* ---------- Footer ---------- */
.survey-new .site-footer { color: var(--ink-65); font-family: var(--sans); font-size: 13px; }
.survey-new .site-footer a { color: var(--ink-65); }
.survey-new .site-footer a:hover { color: var(--ink); }

/* ---------- The closing pages (ending.css) ---------- */
.survey-new :is(.end-h2, .ty-h, .end-head h1, .end-head h2, .open-head h1) { font-family: var(--sans); font-weight: 400; letter-spacing: -0.03em; }
.survey-new :is(.end-lede, .ty-lede, .end-card p, .card-p) { font-family: var(--serif); }
.survey-new :is(.end-card, .sum-card, .vote-card) {
  background: var(--tile);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
