/* Role Request Form. The look was agreed in Stage 2 (fourth build, 15 Nov 2026, with the changes of
   16 Nov) and every question page follows it.

   How it works: one colour on every screen, answers typed on a line, and the question you are on
   sits in the middle of the window with its neighbours set back above and below (Typeform's way).

   Type follows themintsource.com, measured 15 Nov 2026: main heading 60px / 800 / 1.1 / -0.02em
   (40px on a phone), section heading 28px / 700, text 16px, buttons 55px tall with 14px / 600 text
   and 10px corners.

   Kept plain on purpose: no glows or gradient washes, no capital-letter labels, no arrows on
   buttons, no fade-up on every block. The one piece of show is the logo mark: it draws itself on
   the start screen, gets a step brighter on every page, and is fully bright on the thank-you screen.
   Its leaf also sits at the tip of the progress line (18 Nov 2026).

   Colours: the Mint Source palette only (root CLAUDE.md). No red. Text on teal is Deep Forest.
   On Deep Forest, text is white, Teal Tint or teal. Muted Gray is too faint there and is not used.
   Olive is used in one place only, the leaf on the progress line (Abdullah, 18 Nov 2026).
   The one exception to the palette, on Abdullah's say-so (15 Nov 2026): the mark's in-between fills,
   which run from Deep Forest to teal through the brandbook's two darker teals. */

:root {
  --teal: #5F9E8F;
  --forest: #092322;
  --olive: #879B3E;
  --teal-tint: #E8F2EF;
  --olive-tint: #F0F2DC;
  --olive-strong: #D9DEAA;
  --white: #FFFFFF;
  --rule: rgba(95, 158, 143, 0.28);   /* a thin dividing line: teal at 28% */

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --col: 720px;
  --pad: clamp(20px, 5vw, 40px);
  --top-h: 90px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --h1-size: clamp(2.5rem, 1.6rem + 3.6vw, 3.75rem);       /* 40px on a phone, 60px on a computer: the website's main heading */
  --lead-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);  /* the line under a main heading */
  --q-size: clamp(1.1875rem, 1.02rem + 0.55vw, 1.5rem);    /* a question and its typed answer share one size */
  --q-gap: clamp(2.75rem, 7vh, 4rem);                      /* space between questions (much larger with a mouse, below) */
  --gap-l: clamp(1.5rem, 4.4vh, 2.75rem);
  --gap-m: clamp(1rem, 2.6vh, 1.5rem);

  /* The logo mark behind the page: where it sits, how big, outline and fill strength. */
  --w0: 135vw;
  --mx: 24vw; --my: 30vh; --ms: 1; --mso: 0;

  /* The mark's fill, page by page: light at the start, a step brighter on every page, full teal on the
     thank-you. Start, pages 1 to 7, check your answers, thank-you. The steps are even in lightness and
     climb the brandbook's teals (#103A37 on page 2, #1B635C on page 6); the last step is the biggest. */
  --m0: #0E2A29; --m1: #0D302E; --m2: #103A37; --m3: #134440; --m4: #154E49;
  --m5: #185852; --m6: #1B635C; --m7: #276D65; --m8: #32776E; --m9: #5F9E8F;
  --mark-fill: #0D2927;   /* narrow screens: the mark sits behind the words, so it stays this faint on every page */
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  scrollbar-color: var(--teal) var(--forest);
  background: var(--forest);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--white);
  background: var(--forest);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--teal); color: var(--forest); }

h1, h2, p, ol, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
legend { display: block; width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
[hidden] { display: none !important; }
h1:focus { outline: none; }

.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.cover__title, .cover__lead, .form__name, .q__label, .thanks__hello, .thanks__got { text-wrap: balance; }
.cover__foot p, .form__sub, .q__help, .next__list li, .jd__help { text-wrap: pretty; }

/* Opening a later screen directly (boot.js) never shows the start screen first. */
html[data-boot] #screen-start { display: none; }

/* ---------- What stays put on every screen ---------- */

/* The logo mark sits behind the page, the way it does on the website.
   Narrow screens: one large, flat, faint shape that does not move.
   Wide screens: it stands beside the words on the start screen as an outline, slides to the right
   edge while you answer and gets a step brighter on every page, and comes back fully bright on the
   thank-you screen. */
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.backdrop__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--w0);
  height: auto;
  margin: calc(var(--w0) * -0.382) 0 0 calc(var(--w0) * -0.5);
  fill: var(--mark-fill);
  stroke: var(--teal);
  stroke-opacity: var(--mso);
  stroke-width: calc(0.1px / var(--ms));   /* in the drawing's own units, so the line stays about 1.25px however large the mark is */
  transform: translate(var(--mx), var(--my)) scale(var(--ms));
  transition: transform 1.1s var(--ease), fill 0.9s ease, stroke-opacity 0.6s ease, stroke-width 1.1s var(--ease);
}

@media (min-width: 1100px) {
  :root { --w0: min(34vw, 560px); }
  html[data-screen="start"]  { --mx: min(24vw, 330px); --my: -1vh; --ms: 1; --mso: 1; --mark-fill: var(--m0); }
  html[data-kind="form"], html[data-kind="check"] { --mx: calc(var(--col) / 2 + 48px + var(--w0) * 0.8); --my: 24vh; --ms: 1.6; --mso: 0; }
  html[data-screen="check"] { --mark-fill: var(--m8); }
  html[data-screen="step-1"] { --mark-fill: var(--m1); }
  html[data-screen="step-2"] { --mark-fill: var(--m2); }
  html[data-screen="step-3"] { --mark-fill: var(--m3); }
  html[data-screen="step-4"] { --mark-fill: var(--m4); }
  html[data-screen="step-5"] { --mark-fill: var(--m5); }
  html[data-screen="step-6"] { --mark-fill: var(--m6); }
  html[data-screen="step-7"] { --mark-fill: var(--m7); }
  html[data-screen="thanks"] { --mx: min(24vw, 330px); --my: -1vh; --ms: 1; --mso: 1; --mark-fill: var(--m9); }
  /* On the thank-you screen the mark arrives first, then fills in. */
  html[data-screen="thanks"] .backdrop__mark { transition-delay: 0s, 0.55s, 0s, 0s; }
  /* The mark draws itself once, when the page first opens. */
  .backdrop__mark { animation: mark-draw 2.2s cubic-bezier(0.65, 0, 0.35, 1) 0.2s backwards; }
}
@keyframes mark-draw {
  from { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; }
  75% { fill-opacity: 0; }
  to { stroke-dasharray: 1; stroke-dashoffset: 0; }
}

/* A line across the very top shows how far through you are. It is in as many parts as there are pages
   of questions (--steps, set by form.js), so what is left can be counted. The leaf from the logo sits
   at the tip, in olive, so the eye finds where you are. Olive is used nowhere else on the form.
   The strip behind the line is solid, so answers scrolling up the page pass behind the line and the
   leaf and not through them. */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  height: 16px;
  background: var(--forest);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.progress__rail {
  --part: calc(100% / var(--steps, 7));
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(95, 158, 143, 0.36);   /* the parts still to come: teal at 36% */
  -webkit-mask: repeating-linear-gradient(to right, #000 0, #000 calc(var(--part) - 4px), transparent calc(var(--part) - 4px), transparent var(--part));
  mask: repeating-linear-gradient(to right, #000 0, #000 calc(var(--part) - 4px), transparent calc(var(--part) - 4px), transparent var(--part));
}
.progress__fill {
  display: block;
  height: 100%;
  background: var(--teal);
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
  transition: transform 0.9s var(--ease);
}
/* As wide as the line, and moved along by the same share of it, so the leaf's point is always at the tip. */
.progress__at {
  position: absolute;
  inset: 0;
  transform: translateX(calc(var(--p, 0) * 100%));
  transition: transform 0.9s var(--ease);
}
.progress__leaf { position: absolute; top: 1px; left: 0; width: 24px; height: 14px; margin-left: -24px; fill: var(--olive); }
html[data-kind="form"] .progress, html[data-kind="check"] .progress { opacity: 1; }

.top {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  padding: calc(28px + env(safe-area-inset-top)) 32px 0;
  color: var(--teal);
  pointer-events: none;
}
.logo { display: block; height: 34px; width: auto; aspect-ratio: 110 / 34; fill: currentColor; }

/* Once the screen's title has scrolled away, a quiet reminder of where you are, top right. */
.where {
  position: fixed;
  top: calc(35px + env(safe-area-inset-top));
  right: 32px;
  z-index: 5;
  display: none;
  gap: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--teal-tint);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.where__name { color: var(--white); font-weight: 600; }

@media (min-width: 1100px) {
  .top { position: fixed; }
}
/* The reminder needs room beside the answers. In a window narrower than this it ran into the end of
   the answer lines as they scrolled past it (found in Stage 4, 19 Nov 2026; he saw it as a picture). */
@media (min-width: 1400px) {
  html[data-kind="form"] .where { display: flex; }
  html[data-kind="form"].is-deep .where { opacity: 1; }
}
/* In a short or zoomed-in window the start and thank-you screens scroll, and a logo that stayed put
   sat on top of the heading. There the logo scrolls away with the page. */
@media (min-width: 1100px) and (max-height: 640px) {
  html:has(.screen--cover.is-active) .top { position: absolute; }
}
/* On a phone the leaf is a little smaller, and the logo and the job description button sit 4px lower
   than they did, so the leaf has air above them. */
@media (max-width: 640px) {
  :root { --top-h: 76px; }
  .top { padding: calc(26px + env(safe-area-inset-top)) var(--pad) 0; }
  .logo { height: 28px; }
  .progress__rail { top: 5px; }
  .progress__leaf { width: 20px; height: 12px; margin-left: -20px; }
}

/* ---------- Screens and the move between them ---------- */

/* One plain move when you change screen. Nothing fades up block by block. */
.screen { position: relative; z-index: 1; display: none; }
.screen.is-active { display: block; }
.screen--cover.is-active { display: flex; }

.screen.is-leaving { animation: screen-out 0.16s ease-in both; pointer-events: none; }
.screen.is-entering { animation: screen-in 0.42s var(--ease) both; }
html[data-dir="back"] .screen.is-entering { animation-name: screen-in-back; }

@keyframes screen-out { to { opacity: 0; } }
@keyframes screen-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes screen-in-back { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* ---------- Start and thank-you ---------- */

.screen--cover {
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--top-h) + env(safe-area-inset-top)) var(--pad) 0;
}
.cover__body {
  width: 100%;
  max-width: var(--col);
  margin: auto;
  padding: var(--gap-m) 0;
}
.cover__title, .thanks__hello {
  font-size: var(--h1-size);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}
.cover__lead, .thanks__got {
  margin-top: 1.25rem;
  font-size: var(--lead-size);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--white);
}
.cover__cta { display: flex; align-items: center; gap: 0.5rem; margin-top: 2rem; }
/* A client who comes back: Continue, with Start again beside it, the way Continue and Back sit on a
   question page. Start again asks first, in the same place. */
.cover__cta--ask { flex-direction: column; align-items: flex-start; gap: 0.875rem; }
.cover__ask { font-size: 1rem; line-height: 1.5; color: var(--white); }
.cover__ask-btns { display: flex; align-items: center; gap: 0.5rem; }

.cover__foot {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 0 calc(28px + env(safe-area-inset-bottom));
}
.cover__foot p { max-width: 30rem; font-size: 0.875rem; line-height: 1.6; color: var(--teal-tint); }
.cover__foot a { color: var(--white); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cover__foot a:hover { color: var(--teal); }

/* Wide screens: the words take the left, the mark stands beside them on the right (as on the website). */
@media (min-width: 1100px) {
  .screen--start .cover__body, .screen--start .cover__foot, .screen--thanks .cover__body { max-width: 1200px; }
  .hero { max-width: min(600px, 50vw); }
}

/* Short windows: a little tighter, so the start screen still fits in one view. */
@media (max-height: 740px) and (min-width: 641px) {
  .cover__foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* On a phone the Start button is as wide as the screen and sits under the words. The start screen is
   one line of text now, so the button no longer has to stay put while text scrolls behind it. (When it
   did, the solid colour behind it cut a hard edge across the faint mark.) For a client who comes back,
   Continue takes the row and Start again sits at its end; the same when Start again asks. */
@media (max-width: 640px) {
  .cover__body { margin-top: 0; padding-top: clamp(20px, 5vh, 48px); }
  .cover__cta .btn--primary, .cover__ask-btns .btn--primary { flex: 1 1 auto; }
  .cover__cta .btn--ghost { flex: none; }
  .cover__cta--ask { align-items: stretch; }
  .screen--thanks .cover__body { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}

/* ---------- Buttons: the website's size and shape, in teal ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 55px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}
.btn:focus-visible, .stepper__btn:focus-visible, .hop__btn:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

.btn--primary { min-width: 124px; background: var(--teal); color: var(--forest); }
.btn--ghost { padding: 0 14px; background: transparent; color: var(--teal-tint); }

@media (hover: hover) {
  .btn--primary:hover { background: var(--teal-tint); }
  .btn--ghost:hover { color: var(--white); }
}
.btn:active { transform: scale(0.98); }

/* ---------- Question screen ---------- */

.form {
  width: 100%;
  max-width: calc(var(--col) + 2 * var(--pad));
  margin: 0 auto;
  padding: calc(var(--top-h) + env(safe-area-inset-top) + clamp(8px, 4vh, 40px)) var(--pad) calc(96px + env(safe-area-inset-bottom));
}

.form__step { display: block; font-size: 0.875rem; font-weight: 400; line-height: 1.5; letter-spacing: 0; color: var(--teal); }
.form__name {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white);
}
.form__sub { margin-top: 0.375rem; font-size: 1rem; line-height: 1.5; color: var(--teal-tint); }

/* One question. The one you are on is white; the rest sit back in teal. */
.q { display: block; margin-top: var(--q-gap); }
.form__head + .q { margin-top: clamp(2.5rem, 7vh, 4.5rem); }
.q__label {
  display: block;
  font-size: var(--q-size);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.006em;
  color: var(--teal);
  transition: color 0.35s ease;
}
.q.is-current .q__label { color: var(--white); }
.q__help { margin-top: 0.375rem; font-size: 1rem; line-height: 1.55; color: var(--teal); transition: color 0.35s ease; }
.q.is-current .q__help { color: var(--teal-tint); }
.q__answer { margin-top: 0.875rem; }

.tag { display: block; margin-bottom: 0.125rem; font-size: 0.875rem; line-height: 1.5; color: var(--teal); }

/* The answer: typed on a line, the same size as the question. A long answer starts as one line and grows. */
.line {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.3em 0 0.42em;
  border: 0;
  border-bottom: 1px solid var(--teal);
  border-radius: 0;
  background: transparent;
  font-family: var(--font);
  font-size: var(--q-size);
  font-weight: 400;
  line-height: 1.4;
  color: var(--teal-tint);
  caret-color: var(--teal);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
textarea.line { resize: none; overflow: hidden; }
.line::placeholder { color: transparent; opacity: 1; transition: color 0.25s ease; }
.q.is-current .line { color: var(--white); }
.q.is-current .line::placeholder { color: var(--teal); }
@media (hover: hover) { .line:hover { border-bottom-color: var(--teal-tint); } }
.line:focus { border-bottom-color: var(--white); box-shadow: 0 1px 0 0 var(--white); }
/* A browser's saved-details fill must not paint the line white. */
.line:-webkit-autofill, .line:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  -webkit-box-shadow: 0 0 0 1000px var(--forest) inset, 0 1px 0 0 var(--white);
  caret-color: var(--teal);
}

/* Choices: small pills with a letter you can press */
/* Every pill in one question is the same width: as wide as its longest choice, and never under 280px. */
.choices {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  min-width: min(100%, 17.5rem);
  max-width: 100%;
  padding-top: 0.25rem;
}
.choice { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.choice input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.5rem 1rem 0.5rem 0.625rem;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: transparent;
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.3;
  color: var(--teal-tint);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.choice__key {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--teal);
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--teal);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.choice__tick { flex: none; width: 18px; height: 18px; margin-left: auto; fill: none; stroke: var(--forest); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 0.15s ease; }
@media (hover: hover) { .choice:hover .choice__pill { border-color: var(--white); color: var(--white); } }
.choice input:checked + .choice__pill { background: var(--teal); border-color: var(--teal); color: var(--forest); font-weight: 600; }
.choice input:checked + .choice__pill .choice__key { border-color: var(--forest); color: var(--forest); }
.choice input:checked + .choice__pill .choice__tick { opacity: 1; }
.choice input:focus-visible + .choice__pill { outline: 2px solid var(--white); outline-offset: 4px; }
/* Picking a choice blinks it once, so you see it took, before you are moved on. */
.choice.is-picked .choice__pill { animation: pick 0.34s ease 1; }
@keyframes pick { 0%, 100% { opacity: 1; } 35% { opacity: 0.45; } 70% { opacity: 1; } 85% { opacity: 0.7; } }
/* No keyboard, no letters. */
@media (hover: none) {
  .choices { width: 100%; }
  .choice__key { display: none; }
  .choice__pill { min-height: 54px; padding-left: 1rem; }
}

/* Number with minus and plus */
.stepper { display: inline-flex; align-items: center; gap: 0.875rem; padding-top: 0.25rem; }
.stepper__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--teal);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.12s ease;
}
.stepper__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.stepper__btn:active:not(:disabled) { transform: scale(0.94); }
.stepper__btn:disabled { color: var(--teal); cursor: default; }
@media (hover: hover) { .stepper__btn:hover:not(:disabled) { border-color: var(--white); } }
.stepper__value { width: 3.25rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Three lines under one question */
.group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.375rem 2rem; padding-top: 0.25rem; }
.sub--wide { grid-column: 1 / -1; }
.sub__label { display: block; font-size: 0.875rem; font-weight: 600; line-height: 1.3; color: var(--teal); transition: color 0.35s ease; }
.q.is-current .sub__label { color: var(--teal-tint); }

/* Under the answer: the note for a missed answer, and the new-line hint */
.q__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; min-height: 44px; margin-top: 0.375rem; }

/* With a keyboard, Enter moves you on, so a long answer says how to start a new line. */
.q__hint { display: none; margin-left: auto; font-size: 0.8125rem; line-height: 1.3; color: var(--teal); }
.q__hint kbd { font: inherit; font-weight: 600; color: var(--teal-tint); }
@media (hover: hover) and (pointer: fine) { .q.is-current .q__hint { display: block; } }

/* A missed answer, or an email address that cannot be right: one small note, under the box it is
   about. Olive, never red. */
.q__error {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem 0.375rem 0.625rem;
  border-radius: 6px;
  background: var(--olive-strong);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--forest);
}
.q__error::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: var(--forest);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 1.5a8.5 8.5 0 100 17 8.5 8.5 0 000-17zm-1 4.25h2v6.25H9zm1 7.75a1.25 1.25 0 110 2.5 1.25 1.25 0 010-2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 1.5a8.5 8.5 0 100 17 8.5 8.5 0 000-17zm-1 4.25h2v6.25H9zm1 7.75a1.25 1.25 0 110 2.5 1.25 1.25 0 010-2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.q__error.is-shown { display: inline-flex; }
.sub .q__error { margin-top: 0.5rem; }
.q.has-error .line[aria-invalid="true"] { border-bottom-color: var(--olive-strong); box-shadow: 0 1px 0 0 var(--olive-strong); }

/* Continue and Back */
.nav { display: flex; align-items: center; gap: 0.5rem; margin-top: var(--q-gap); }

/* Up and down between questions */
.hop { display: none; }
.hop__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 36px;
  padding: 0;
  border: 0;
  background: var(--teal);
  color: var(--forest);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.12s ease;
}
.hop__btn:first-child { border-radius: 8px 0 0 8px; }
.hop__btn:last-child { border-radius: 0 8px 8px 0; }
.hop__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hop__btn:hover { background: var(--teal-tint); }
.hop__btn:active { transform: scale(0.94); }

/* With a mouse: every question gets the middle of the window to itself. */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  :root { --q-gap: clamp(5.5rem, 21vh, 12rem); }
  .form { padding-bottom: 42vh; }
}
/* The up and down arrows need room beside the answers: in a window narrower than this they sat on the
   end of an answer line. */
@media (hover: hover) and (pointer: fine) and (min-width: 980px) {
  html[data-kind="form"] .hop { position: fixed; right: 32px; bottom: 28px; z-index: 5; display: flex; gap: 1px; }
}

@media (max-width: 560px) {
  .group { grid-template-columns: 1fr; }
  .nav { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .nav .btn--ghost { align-self: center; }
}

/* ---------- Check your answers ----------
   What was answered, page by page, the way it will reach us. It reads like the question pages turned
   into a document: the question small and in teal, the answer under it in white. Each one can be
   changed. What was left blank is one quiet line at the end of its page. */
.sum { margin-top: clamp(2rem, 6vh, 3.5rem); }
.sum__sec { padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.sum__sec + .sum__sec { margin-top: 2.25rem; }
.sum__name { margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.4; color: var(--white); }
.sum__row { margin-top: 1.375rem; }
.sum__q { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; }
.sum__label { font-size: 0.875rem; line-height: 1.5; color: var(--teal); }
.sum__change {
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--teal);   /* quiet: there is one beside every answer, and the answers are what the page is for */
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
}
@media (hover: hover) { .sum__change:hover { color: var(--white); text-decoration: underline; } }
.sum__change:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 2px; }
.sum__a { margin-top: 0.125rem; font-size: 1.0625rem; line-height: 1.55; color: var(--white); overflow-wrap: anywhere; }
.sum__line { display: block; white-space: pre-line; }   /* a line break typed inside one box stays a line break */
.sum__line + .sum__line { margin-top: 0.125rem; }
/* Under the first line of a pasted job description: how many more lines there are */
.sum__more { font-size: 0.875rem; line-height: 1.5; color: var(--teal); }
/* What was left blank on that page: a small label, then each question on its own line, each a link to it. */
.sum__blank { margin-top: 1.5rem; }
.sum__blanks { margin: 0.125rem 0 0; padding: 0; list-style: none; }
.sum__blanks li { font-size: 0.875rem; line-height: 1.7; }
.sum__blanks .sum__change { font-weight: 400; color: var(--teal-tint); text-decoration: underline; }
/* A must-answer question with nothing in it: the same note as on the question pages. */
.sum__row.is-missing .sum__label { color: var(--white); }
.sum__row .q__error { margin-top: 0.5rem; }
/* On a touch screen each Change is at least 44px tall to tap. The room is borrowed from around it, so nothing moves. */
@media (hover: none) { .sum__change { padding: 0.75rem 0; margin: -0.75rem 0; } }
.screen--check .nav { margin-top: clamp(2.5rem, 7vh, 4rem); }

/* ---------- Sending ----------
   While a request is on its way the button says so, and nothing on the screen can be changed. */
.screen--check .sum { transition: opacity 0.2s ease; }
.is-sending .screen--check .sum { opacity: 0.5; pointer-events: none; }
.is-sending .jd { pointer-events: none; }
.btn[aria-disabled="true"] { cursor: default; }
.btn--primary[aria-disabled="true"], .btn--primary[aria-disabled="true"]:hover { background: var(--teal); }
.btn[aria-disabled="true"]:active { transform: none; }
.btn:disabled { opacity: 0.5; cursor: default; }
/* The bot check's own box (Cloudflare's). Almost always there is nothing to show. When Cloudflare is
   not sure about a visitor, its box to tick sits here, under the buttons, which stay where they are.
   Its words and its logo are Cloudflare's: that it is the dark one is all we choose. Its room is
   kept from the moment it is asked for, so the page can bring it into view at once. */
.botcheck { max-width: 300px; line-height: 0; }
.botcheck.is-asking { min-height: 65px; margin-top: 1.25rem; scroll-margin-bottom: 1.5rem; }
.botcheck.is-asking.is-small { min-height: 140px; }   /* Cloudflare's small box, where there is less than 300px of room */
@media (max-width: 560px) { .botcheck { max-width: none; } }   /* on a phone it is as wide as the buttons */

/* When sending did not work: one message, just above the buttons. The same olive as the note under
   an answer, set as a paragraph. Never red. */
.trouble { margin-top: clamp(2.5rem, 7vh, 4rem); border-radius: 10px; background: var(--olive-strong); color: var(--forest); }
.trouble__body { position: relative; padding: 1.125rem 1.25rem 1.25rem 3.125rem; }
.trouble__body::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 20px;
  height: 20px;
  background: var(--forest);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 1.5a8.5 8.5 0 100 17 8.5 8.5 0 000-17zm-1 4.25h2v6.25H9zm1 7.75a1.25 1.25 0 110 2.5 1.25 1.25 0 010-2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 1.5a8.5 8.5 0 100 17 8.5 8.5 0 000-17zm-1 4.25h2v6.25H9zm1 7.75a1.25 1.25 0 110 2.5 1.25 1.25 0 010-2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.trouble__text { max-width: 35rem; font-size: 1rem; line-height: 1.55; }
.trouble__text a { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.trouble__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 0.875rem;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--forest);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
@media (hover: hover) { .trouble__copy:hover { background: var(--m3); } }
.trouble__copy:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.trouble:not([hidden]) + .nav { margin-top: 1.25rem; }
.screen--check .nav { scroll-margin-bottom: 1.5rem; }   /* room under the buttons when they are brought back into view */
/* Only where a browser will not let the form copy: the answers, in a box, to copy by hand. */
.copybox {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--forest);
  border-radius: 6px;
  background: var(--white);
  font-family: var(--font);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--forest);
}
@media (max-width: 560px) {
  .trouble__body { padding: 1rem 1rem 1.125rem 2.875rem; }
  .trouble__body::before { left: 1rem; top: 1.125rem; }
  .trouble__copy { width: 100%; }
}

/* ---------- Thank-you screen ---------- */

.thanks__title { font-weight: 800; }
.thanks__hello, .thanks__got { display: block; overflow-wrap: anywhere; }

.next { margin-top: var(--gap-l); max-width: 34rem; }
.next__title { font-size: 1rem; font-weight: 600; line-height: 1.5; color: var(--white); }
.next__list { margin-top: 0.5rem; list-style: none; counter-reset: step; }
.next__list li {
  display: grid;
  grid-template-columns: 1.375rem minmax(0, 1fr);
  column-gap: 0.5rem;
  padding: 0.4375rem 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--teal-tint);
  overflow-wrap: anywhere;
  counter-increment: step;
}
.next__list li::before { content: counter(step); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--teal); }
.next__list strong { font-weight: 600; color: var(--white); }
/* The request was saved but the copy could not be emailed: the same line, and a button that copies the answers. */
.next__copy { display: flex; width: max-content; min-height: 44px; margin-top: 0.75rem; padding: 0 18px; }
.next .copybox { border-color: var(--teal); }

.talk { display: flex; align-items: center; flex-wrap: wrap; gap: 0.875rem 1.25rem; margin-top: var(--gap-l); }
.talk__text { font-size: 1rem; font-weight: 600; line-height: 1.5; color: var(--white); }
@media (max-width: 560px) { .talk .btn { width: 100%; } }
/* Under it, for a client with a second role to fill: one quiet line, in the small print of the start screen. */
.another { margin-top: 1.5rem; font-size: 0.875rem; line-height: 1.6; color: var(--teal-tint); }
.another a { color: var(--white); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.another a:hover { color: var(--teal); }
.another a:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 2px; }
@media (hover: none) { .another a { display: inline-block; padding: 0.75rem 0; margin: -0.75rem 0; } }   /* room to tap */

/* ---------- The job description button ---------- */

/* Not a question on the page. A small labelled button that is there from the start screen to the last
   page of questions. With a mouse it is fixed in the bottom right corner. */
.jd { position: fixed; z-index: 7; right: 32px; bottom: 28px; }
html[data-screen="thanks"] .jd { display: none; }

.jd__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin: 0;
  padding: 0 16px 0 12px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: var(--forest);
  color: var(--teal-tint);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.jd__chip:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
.jd__short { display: none; }
.jd__icon { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s ease; }
.jd__icon--done { display: none; stroke-width: 2.25; }
@media (hover: hover) {
  .jd__chip:hover { border-color: var(--white); color: var(--white); }
  .jd__chip:hover .jd__icon { stroke: var(--white); }
}

/* Once a job description is in, the button is filled in, the way a picked choice is. */
.jd[data-state="done"] .jd__chip { background: var(--teal); border-color: var(--teal); color: var(--forest); }
.jd[data-state="done"] .jd__icon { stroke: var(--forest); }
.jd[data-state="done"] .jd__icon--add { display: none; }
.jd[data-state="done"] .jd__icon--done { display: block; }
@media (hover: hover) {
  .jd[data-state="done"] .jd__chip:hover { background: var(--teal-tint); border-color: var(--teal-tint); color: var(--forest); }
  .jd[data-state="done"] .jd__chip:hover .jd__icon { stroke: var(--forest); }
}

/* The small box that opens from it */
.jd__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(440px, calc(100vw - 2 * var(--pad)));
  padding: 20px 22px 18px;
  border: 1px solid var(--teal);
  border-radius: 12px;
  background: var(--forest);
}
.jd__panel.is-opening { animation: jd-up 0.16s ease-out both; }
@keyframes jd-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes jd-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.jd__title { font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--white); }
.jd__help { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.55; color: var(--teal-tint); }
.jd__input {
  display: block;
  width: 100%;
  max-height: 9.6em;
  margin: 0.875rem 0 0;
  padding: 0.3em 0 0.42em;
  border: 0;
  border-bottom: 1px solid var(--teal);
  border-radius: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--white);
  caret-color: var(--teal);
  outline: none;
  resize: none;
  overflow-y: auto;
  -webkit-appearance: none;
  appearance: none;
}
.jd__input:focus { border-bottom-color: var(--white); box-shadow: 0 1px 0 0 var(--white); }
.jd__actions { display: flex; align-items: center; gap: 0.25rem; margin-top: 1rem; }
.jd__actions .btn { min-height: 44px; }
.jd__actions .btn--primary { min-width: 88px; }
.jd__remove { margin-left: auto; }

/* With a mouse it is the same height as the up and down arrows. Where it sits on a question page
   depends on how much room there is beside the answers, so that it never covers the end of one:
   wide windows, just left of the arrows; smaller laptop windows, above the arrows; and on the
   smallest of those it uses the shorter label as well. */
@media (hover: hover) and (pointer: fine) and (min-width: 1152px) {
  .jd__chip { min-height: 36px; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 1470px) {
  html[data-kind="form"] .jd { right: calc(32px + 81px + 12px); }
}
@media (hover: hover) and (pointer: fine) and (min-width: 1152px) and (max-width: 1469px) {
  html[data-kind="form"] .jd { bottom: calc(28px + 36px + 12px); }
}
@media (hover: hover) and (pointer: fine) and (min-width: 1152px) and (max-width: 1279px) {
  .jd__long { display: none; }
  .jd__short { display: inline; }
}

/* Narrower windows, and touch: it sits in the top bar beside the logo and scrolls away with it. A button
   floating over the page there would cover the answers, and on a phone the keyboard and the Start and
   Continue buttons too. The label is shorter here so it fits beside the logo. */
@media (max-width: 1151px), (hover: none) {
  .jd, html[data-kind="form"] .jd { position: absolute; top: calc(23px + env(safe-area-inset-top)); right: 32px; bottom: auto; }
  .jd__chip { min-height: 44px; }
  .jd__long { display: none; }
  .jd__short { display: inline; }
  .jd__panel { top: calc(100% + 10px); bottom: auto; }
  .jd__panel.is-opening { animation-name: jd-down; }
}
@media (max-width: 640px) {
  .jd, html[data-kind="form"] .jd { top: calc(18px + env(safe-area-inset-top)); right: var(--pad); }
  .jd__panel { width: calc(100vw - 2 * var(--pad)); }
}

/* ---------- Part 2: the kinds of answer pages 3 and 4 need ---------- */

/* A choice that carries a few words about it: the name, then what it means, lined up in two columns. */
.choices--detail .choice__text { display: grid; grid-template-columns: 5.75em minmax(0, 1fr); column-gap: 0.5rem; align-items: baseline; }
.choice__name { font-weight: 600; color: var(--white); transition: color 0.2s ease; }
.choice__more { font-size: 1rem; line-height: 1.4; font-weight: 400; }
.choice input:checked + .choice__pill .choice__name { color: var(--forest); }
.choice input:checked + .choice__pill .choice__more { font-weight: 400; }
@media (max-width: 560px) {
  .choices--detail .choice__text { grid-template-columns: 1fr; }
  .choices--detail .choice__pill { padding-top: 0.625rem; padding-bottom: 0.625rem; }
}

/* Up to four one-line answers, numbered */
.rows { display: grid; gap: 0.75rem; margin: 0.875rem 0 0; padding: 0.25rem 0 0; list-style: none; }
.row { display: grid; grid-template-columns: 1.375rem minmax(0, 1fr); align-items: baseline; }
.row__n { font-size: 0.875rem; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--teal); transition: color 0.35s ease; }
.q.is-current .row__n { color: var(--teal-tint); }
.row .q__error { grid-column: 2; justify-self: start; margin-top: 0.5rem; }

/* A list you add to: the tool on a line, and beside it which of two it is */
.tools { display: grid; gap: 0.875rem; padding-top: 0.25rem; }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.25rem; align-items: end; }
.tool__name { grid-column: 1; grid-row: 1; }
.tool__mark { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: 10.375rem 11rem; gap: 8px; }   /* set widths, so a picked one (bolder) does not nudge the line */
.tool .q__error { grid-column: 1 / -1; grid-row: 2; justify-self: start; margin-top: 0.5rem; }   /* the note sits under the line it is about */
.mark { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mark input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mark__pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 0.875rem;
  border: 1px solid var(--teal);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--teal-tint);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
@media (hover: hover) { .mark:hover .mark__pill { border-color: var(--white); color: var(--white); } }
.mark input:checked + .mark__pill { background: var(--teal); border-color: var(--teal); color: var(--forest); font-weight: 600; }
.mark input:focus-visible + .mark__pill { outline: 2px solid var(--white); outline-offset: 4px; }
/* A mark belongs to a tool. Until the line has a name its two marks sit back, and pressing one asks for
   the name (form.js: setUpTools). */
.tool.is-empty .mark, .tool.is-empty .mark input { cursor: default; }
.tool.is-empty .mark input:not(:checked) + .mark__pill { border-color: var(--rule); color: var(--teal); }
@media (max-width: 640px), (hover: none) {
  .tool { grid-template-columns: 1fr; row-gap: 0.625rem; }
  .tool__name, .tool__mark, .tool .q__error { grid-column: 1; grid-row: auto; }
  .tool .q__error { margin-top: 0; }
  .tools { gap: 1.375rem; }
  .tool__mark { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mark__pill { min-height: 44px; padding: 0 0.5rem; }
}

/* One box to tick, under an answer */
.tick { position: relative; display: flex; align-items: flex-start; gap: 0.75rem; width: -webkit-fit-content; width: fit-content; max-width: 100%; margin-top: 1.25rem; padding: 0.25rem 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tick input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tick__box { display: grid; place-items: center; flex: none; width: 24px; height: 24px; margin-top: 0.0625rem; border: 1px solid var(--teal); border-radius: 5px; transition: background-color 0.2s ease, border-color 0.2s ease; }
.tick__box svg { width: 16px; height: 16px; fill: none; stroke: var(--forest); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 0.15s ease; }
.tick__text { font-size: 1.0625rem; line-height: 1.5; color: var(--teal-tint); transition: color 0.2s ease; }
@media (hover: hover) { .tick:hover .tick__box { border-color: var(--white); } .tick:hover .tick__text { color: var(--white); } }
.tick input:checked ~ .tick__box { background: var(--teal); border-color: var(--teal); }
.tick input:checked ~ .tick__box svg { opacity: 1; }
.tick input:checked ~ .tick__text { color: var(--white); }
.tick input:focus-visible ~ .tick__box { outline: 2px solid var(--white); outline-offset: 4px; }

/* A list to pick from, on a line like every other answer */
.pick { position: relative; display: block; }
.pick select.line { padding-right: 1.75rem; cursor: pointer; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.pick::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 4px;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--teal);
  border-bottom: 1.5px solid var(--teal);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}
.pick:focus-within::after { border-color: var(--white); }
select.line option { font-size: 1rem; color: var(--white); background: var(--forest); }

/* A date, on a line, with a small calendar at the end of it. Browsers draw an empty date box in their
   own ways (Safari fills it with today's date in grey, which reads as an answer), so an empty one shows
   nothing until the cursor is in it. */
.date { position: relative; display: block; width: 13rem; max-width: 100%; }
.date::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 2px;
  width: 20px;
  height: 20px;
  margin-top: -11px;
  background: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='14' height='12.5' rx='2'/%3E%3Cpath d='M3 8.5h14M7 2.75v3M13 2.75v3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='14' height='12.5' rx='2'/%3E%3Cpath d='M3 8.5h14M7 2.75v3M13 2.75v3'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
.date:focus-within::after { background: var(--white); }
input[type="date"].line { min-height: calc(2.12em + 1px); padding-right: 2rem; font-variant-numeric: tabular-nums; cursor: text; }
.line::-webkit-datetime-edit, .line::-webkit-datetime-edit-fields-wrapper { padding: 0; }
.line::-webkit-date-and-time-value { text-align: left; }
/* The browser's own calendar button is kept, unseen, over ours, so pressing ours opens the calendar. */
.line::-webkit-calendar-picker-indicator { position: absolute; top: 0; right: 0; width: 2rem; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
input[type="date"].line.is-empty:not(:focus)::-webkit-datetime-edit { opacity: 0; }
/* The part of the date you are typing. Safari lets the page colour it, so it is teal. Chrome paints its
   own blue there and offers no way to change the colour, only to switch it off, so in Chrome it is off. */
.line::-webkit-datetime-edit-day-field:focus, .line::-webkit-datetime-edit-month-field:focus, .line::-webkit-datetime-edit-year-field:focus { background-color: var(--teal); color: var(--forest); outline: none; }
@supports not (font: -apple-system-body) {
  .line::-webkit-datetime-edit-day-field, .line::-webkit-datetime-edit-month-field, .line::-webkit-datetime-edit-year-field { background-color: transparent; color: inherit; }
}

/* Start time, end time, time zone */
.group--hours { grid-template-columns: minmax(0, 9.5rem) minmax(0, 9.5rem) minmax(0, 1fr); }
/* The boxes here are narrow, so a note under one stays on one line and runs on past it. */
.group--hours .q__error, .group--pay .q__error { white-space: nowrap; }
/* Currency, from, to */
.group--pay { grid-template-columns: minmax(0, 6.25rem) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 560px) {
  .group--hours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group--hours .sub--zone { grid-column: 1 / -1; }
  .group--pay { grid-template-columns: minmax(0, 5.25rem) minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.25rem; }
}

/* A date, or a tick */
.when { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding-top: 0.25rem; }
.when__or { font-size: 1.0625rem; line-height: 1.5; color: var(--teal); }
.when .tick { margin-top: 0; }
/* On a touch screen a box to tick is at least 44px tall to tap. The room comes off the gap above it,
   so the words sit exactly where they did. */
@media (hover: none) { .tick { margin-top: 0.875rem; padding: 0.625rem 0; } }
.when + .q__error { margin-top: 0.625rem; }

/* One more box that opens under an answer */
.more { margin-top: 1.375rem; }
.more.is-opening { animation: more-in 0.22s ease-out both; }
@keyframes more-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.more .q__error { margin-top: 0.5rem; }
.line--short { width: 5.5rem; }

/* ---------- Less movement for people who ask for it ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
