/* ==========================================================================
   jobs.everstonebenefits.com: the hiring page. One page, one stylesheet.
   Colours are the public site's (assets/everstone.css) and the logo's own navy.
   ========================================================================== */

:root {
  --navy:      #042749;   /* the logo's */
  --navy-deep: #031A33;
  --ink:       #14243A;
  --body:      #4A5566;
  --muted:     #66728A;
  --line:      #D8DEE7;
  --line-h:    #B4BFCE;
  --gold:      #C09037;
  --gold-btn:  #8A6420;   /* white on it is 5.35:1 */
  --gold-btn-h:#74531A;
  --gold-wash: #FBF6EA;
  --gold-ink:  #7A5618;
  --red:       #B3261E;
  --red-wash:  #FDF3F2;
  --ring:      0 0 0 3px rgba(192, 144, 55, .28);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.55 Mulish, "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1, h2, p, dl, dd { margin: 0; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 8px;
  background: #fff; color: var(--navy); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---- the two halves ------------------------------------------------------ */

.page {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: 100vh; min-height: 100dvh;
  background: linear-gradient(90deg, var(--navy-deep) 48%, #fff 48%);   /* under the hero, where the form is taller than the screen */
}

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

.hero {
  --pad: clamp(28px, 3.4vw, 52px);
  position: sticky; top: 0;
  height: 100vh; height: 100dvh; min-height: 600px;
  display: flex; flex-direction: column;
  padding: var(--pad) var(--pad) 0;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(180deg, #031A33 0%, #052544 38%, #0D3A66 72%, #1F4F78 100%);
}
.hero__logo { align-self: flex-start; border-radius: 6px; }
.hero__logo img { display: block; width: clamp(160px, 14.5vw, 210px); height: auto; }

.hero__text { margin-top: clamp(28px, 8vh, 96px); }
.hero h1 {
  max-width: 8.4em;
  font-size: clamp(38px, 4.5vw, 68px);
  line-height: 1.06; font-weight: 800; letter-spacing: -.028em;
  text-wrap: balance;
}
.hero__text p {
  margin-top: 16px; max-width: 24em;
  font-size: clamp(16.5px, 1.25vw, 19px); line-height: 1.55;
  color: #D3DEEB;
  text-wrap: balance;
}

.hero__ground { position: relative; z-index: -1; margin: auto calc(var(--pad) * -1) 0; background: #031A33; }
/* Fits its height and runs past its own sides: the ranges are drawn wider than any panel. */
.hero__scene { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: min(31vh, 400px); overflow: visible; }
.hero__dawn { transform-origin: 610px 330px; animation: dawn 2.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes dawn { from { opacity: 0; transform: translateY(70px) scale(.86); } }

.hero__office { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 var(--pad) clamp(18px, 3vh, 34px); }
.hero__pin {
  flex: 0 0 auto; width: 26px; height: 26px;
  fill: none; stroke: #E5B961; stroke-width: 1.6; stroke-linejoin: round;
}
.hero__office p { font-size: 16.5px; font-weight: 700; }

/* Health, PTO, licensing: in the hero on a computer, in the band after the form on a phone. */
.perks { margin: 0; padding: 0; list-style: none; }
.perks svg { flex: 0 0 auto; width: 28px; height: 28px; fill: none; stroke: #E5B961; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.perks strong { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.perks span { display: block; font-size: 13px; line-height: 1.4; }
.perks--hero { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 calc(var(--pad) - 16px) 20px; padding-bottom: 20px; }
.perks--hero li { padding: 0 16px; text-align: center; }
.perks--hero li + li { border-left: 1px solid rgba(229, 185, 97, .4); }
.perks--hero svg { display: block; width: 34px; height: 34px; margin: 0 auto; }
.perks--hero strong { margin-top: 7px; }
.perks--hero span { margin-top: 2px; color: #B9C7D8; text-wrap: balance; }
.perks--hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(229, 185, 97, 0), rgba(229, 185, 97, .7), rgba(229, 185, 97, 0)); }
.base { display: none; }

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

.apply { display: flex; flex-direction: column; min-width: 0; padding: clamp(28px, 3.4vw, 52px) clamp(20px, 4.4vw, 72px) 22px; }
.apply__inner { width: 100%; max-width: 600px; margin: auto; }
.apply__head { margin-bottom: 26px; }
.apply h2 { font-size: clamp(26px, 2.2vw, 32px); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.apply__head p { margin-top: 4px; color: var(--muted); font-size: 15px; }

.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.row--tight { gap: 12px; }

.field { margin-bottom: 18px; }
.field > label, .field__top { display: block; margin-bottom: 7px; }
.field > label, .field__name { font-size: 14.5px; font-weight: 700; color: var(--navy); }
.field input:where(:not([type=radio], [type=file])), .field textarea, .field select {
  display: block; width: 100%;
  font: inherit; font-size: 16px;   /* 16px keeps iOS from zooming on focus */
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0 14px; height: 50px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { height: auto; min-height: 98px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field ::placeholder { color: #95A0B1; opacity: 1; }
.field :is(input, textarea, select):hover:not(:focus) { border-color: var(--line-h); }
.field :is(input, textarea, select):focus { outline: 0; border-color: var(--gold); box-shadow: var(--ring); }
.field :is(input, textarea, select)[aria-invalid=true]:not(:focus) { border-color: var(--red); }
.field .sel.is-open select:not(:focus) { border-color: var(--gold); }

/* State: the select, and the list a mouse opens */
.sel { position: relative; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px; text-overflow: ellipsis; cursor: pointer; }
.field select:invalid { color: #95A0B1; }   /* nothing chosen yet, as a placeholder */
.field select option { color: var(--ink); }
.sel::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border: solid var(--muted); border-width: 0 1.8px 1.8px 0; border-radius: 1px; transform: rotate(45deg); pointer-events: none;
}
.states {
  position: absolute; z-index: 6; top: calc(100% + 6px); right: 0; width: max(100%, 232px); padding: 8px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  box-shadow: 0 14px 40px rgba(3, 26, 51, .18);
  animation: tip .14s ease-out both;
}
.states.is-above { top: auto; bottom: calc(100% + 6px); }
.field .states__q { height: 42px; font-size: 15.5px; border-radius: 8px; }
.states__l { position: relative; max-height: 240px; margin: 8px 0 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; scrollbar-width: thin; scrollbar-color: var(--line-h) transparent; }
.states__l li { padding: 8px 12px; border-radius: 8px; font-size: 15.5px; line-height: 1.35; color: var(--ink); cursor: pointer; }
.states__l li.is-at { background: #F1F4F8; }
.states__l li[aria-selected=true] { background: var(--gold-wash); color: var(--gold-ink); font-weight: 700; }
.states__l li[aria-selected=true].is-at { background: #F6ECD3; }
.states__l li.states__none { color: var(--muted); cursor: default; }

.err { margin-top: 6px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--red); }

/* Resume */
.drop {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 70px; padding: 12px 16px;
  border: 1.5px dashed var(--line-h); border-radius: 10px;
  background: #fff;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
/* The real control covers the box: the whole of it opens the picker and takes a drop. */
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.drop:hover, .drop.is-over { border-color: var(--gold); background: var(--gold-wash); }
.drop:focus-within { border-color: var(--gold); box-shadow: var(--ring); }
.drop.is-bad { border-color: var(--red); }
.drop.has-file { border-style: solid; border-color: var(--gold); background: var(--gold-wash); }
.drop__icon { flex: 0 0 auto; width: 34px; height: 34px; fill: none; stroke: var(--gold-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.drop__ok { display: none; }
.drop.has-file .drop__ok { display: inline; }
.drop.has-file .drop__up { display: none; }
.drop__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.drop__text strong { font-size: 15.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop__text strong + span { font-size: 14px; color: var(--muted); }
.drop__or { font-weight: 500; }
.drop__x {
  position: relative; flex: 0 0 auto;
  min-height: 44px; margin: -6px -8px -6px 0; padding: 0 10px;
  border: 0; border-radius: 8px; background: none;
  font: inherit; font-size: 14.5px; font-weight: 700; color: var(--gold-ink); cursor: pointer;
}
.drop__x:hover { background: rgba(192, 144, 55, .16); }
.drop__x:focus-visible { outline: 0; box-shadow: var(--ring); }

/* Position */
.pick {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 10px;
  line-height: 1.25; color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.pick__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pick__text strong { font-size: 15.5px; font-weight: 700; }
.pick__text span { font-size: 13.5px; line-height: 1.35; color: var(--body); }
.pick__text b { font-size: 16px; font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; }
.pick:has(input:checked) .pick__text span { color: inherit; }
.fine { margin-top: 9px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick svg { flex: 0 0 auto; width: 26px; height: 26px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .15s ease; }
.pick:hover { border-color: var(--line-h); }
.pick:has(input:focus-visible) { border-color: var(--gold); box-shadow: var(--ring); }
.pick:has(input:checked) { border-color: var(--gold); background: var(--gold-wash); color: var(--gold-ink); box-shadow: inset 0 0 0 1px var(--gold); }
.pick:has(input:checked) svg { stroke: var(--gold-ink); }
#position[aria-invalid=true] .pick { border-color: var(--red); }

/* Learn more, and what it opens */
.field__top { position: relative; }
.more {
  position: relative;
  margin-left: 8px; padding: 0;
  border: 0; border-radius: 4px; background: none;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--gold-ink);
  text-decoration: underline; text-decoration-color: rgba(122, 86, 24, .45); text-underline-offset: 3px;
  cursor: pointer;
}
.more::after { content: ""; position: absolute; inset: -11px -10px; }   /* room for a finger */
.more:hover { text-decoration-color: currentColor; }
.more:focus-visible { outline: 0; box-shadow: var(--ring); }
.tip {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: calc(100% + 11px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px;
  padding: 16px 18px 18px;
  border-radius: 12px;
  background: var(--navy); color: #E6EDF5;
  font-size: 14.5px; line-height: 1.5;
  box-shadow: 0 16px 44px rgba(3, 26, 51, .3);
  animation: tip .16s ease-out both;
}
.tip::after {
  content: ""; position: absolute; left: calc(var(--x, 160px) - 7px); bottom: -6px;
  width: 14px; height: 14px; border-radius: 2px;
  background: inherit; transform: rotate(45deg);
}
.tip.is-below { bottom: auto; top: calc(100% + 11px); }
.tip.is-below::after { bottom: auto; top: -6px; }
.tip h3 { margin: 0 0 3px; font-size: 15px; font-weight: 800; line-height: 1.35; color: #EBC67C; }
.pay { display: grid; gap: 7px; margin-top: 10px; }
.pay dt { font-size: 12.5px; font-weight: 700; line-height: 1.3; color: #EBC67C; }
.pay dd { font-size: 16px; font-weight: 800; line-height: 1.3; color: #fff; font-variant-numeric: tabular-nums; }
.pay__total { margin-top: 1px; padding: 7px 11px 8px; border-radius: 9px; background: linear-gradient(180deg, #F3D08A, #DFAE54); }
.pay__total dt, .pay__total dd { color: #1A1304; }
.tip__need { margin-top: 10px; }
.tip { scroll-margin: 12px; }
.tip__x { display: none; }
@keyframes tip { from { opacity: 0; transform: translateY(4px); } }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Send */
.send {
  width: 100%; min-height: 54px; margin-top: 6px; padding: 12px 24px;
  border: 0; border-radius: 10px;
  background: var(--gold-btn); color: #fff;
  font: inherit; font-size: 16.5px; font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.send:hover { background: var(--gold-btn-h); }
.send:active { transform: translateY(1px); }
.send:focus-visible { outline: 0; box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(192, 144, 55, .6); }
.send[aria-disabled=true] { cursor: progress; background: var(--gold-btn); }
.send[aria-disabled=true] span::before {
  content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }

.fail {
  margin-bottom: 14px; padding: 12px 14px;
  border: 1px solid #EBC3BF; border-radius: 10px;
  background: var(--red-wash); color: #8C1D18;
  font-size: 15px; font-weight: 600;
}
.fail a { color: inherit; }

.note { margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.note a { color: var(--navy); text-underline-offset: 2px; white-space: nowrap; }
.note a:hover { color: var(--gold-ink); }

/* Sent */
.done { padding: clamp(24px, 8vh, 80px) 0; text-align: center; animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.done__mark { width: 72px; height: 72px; margin-bottom: 20px; fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.done__mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .25s ease-out forwards; }
.done h2:focus { outline: 0; }
.done p { margin: 10px auto 0; max-width: 30em; font-size: 17px; color: var(--body); text-wrap: balance; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.foot { padding-top: 26px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* ---- smaller screens ----------------------------------------------------- */

@media (max-width: 960px) {
  .page { display: block; background: none; }
  .hero {
    --pad: clamp(20px, 4.4vw, 40px);
    position: relative; height: auto; min-height: 0;
    align-items: center; text-align: center;
    padding-top: 26px; padding-bottom: 92px;
    background: linear-gradient(180deg, #031A33 0%, #052544 55%, #0B3560 100%);
  }
  .hero__logo { align-self: center; }
  .hero__logo img { width: 160px; }
  .hero__text { margin-top: 22px; }
  .hero h1 { max-width: none; font-size: clamp(33px, 8.8vw, 52px); }
  .hero__text p { margin: 8px auto 0; font-size: 16.5px; line-height: 1.5; text-wrap: balance; }
  .hero__office { justify-content: center; gap: 8px; padding: 14px 0 0; }
  .hero__office p { font-size: 15.5px; }
  .hero__pin { width: 22px; height: 22px; }

  /* The mountains sit behind the words and take no room of their own; a mist
     at their foot turns into the white of the form. */
  .hero__ground { position: static; margin: 0; background: none; }
  .hero__scene { z-index: -1; left: 0; right: 0; bottom: 10px; height: 206px; opacity: .6; }
  .hero__scene [fill="url(#lit)"] { opacity: .34; }
  .hero__arc { display: none; }
  .perks--hero { display: none; }

  .hero::after {
    content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: -1px; height: 150px;
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .025) 22%, rgba(255, 255, 255, .09) 38%, rgba(255, 255, 255, .22) 53%,
      rgba(255, 255, 255, .45) 68%, rgba(255, 255, 255, .72) 81%, rgba(255, 255, 255, .92) 92%, #fff 100%);
  }

  .apply { padding: 6px 20px 0; }
  .apply__head { text-align: center; }
  .fine { display: none; }   /* said in the band below */

  /* The band that closes the page: out of the white the way the hero goes into it. */
  .base {
    display: block; position: relative; margin: 4px -20px 0; padding: 94px 20px 0;
    background: linear-gradient(180deg, #0B3560 0%, #052544 46%, #031A33 100%); color: #fff; text-align: center;
  }
  .base::before {
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 120px;
    background: linear-gradient(0deg,
      rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .025) 22%, rgba(255, 255, 255, .09) 38%, rgba(255, 255, 255, .22) 53%,
      rgba(255, 255, 255, .45) 68%, rgba(255, 255, 255, .72) 81%, rgba(255, 255, 255, .92) 92%, #fff 100%);
  }
  .perks--base { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 680px; margin: 0 auto; }
  .perks--base li { padding: 0 16px; }
  .perks--base li + li { border-left: 1px solid rgba(229, 185, 97, .4); }
  .perks--base svg { display: block; width: 34px; height: 34px; margin: 0 auto; }
  .perks--base strong { margin-top: 8px; font-size: 15px; }
  .perks--base span { margin-top: 2px; font-size: 13.5px; color: #B9C7D8; text-wrap: balance; }
  .base__fine {
    position: relative; max-width: 46em; margin: 24px auto 0; padding-top: 20px;
    font-size: 13px; font-style: italic; line-height: 1.5; color: #A9BACD; text-wrap: balance;
  }
  .base__fine::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, rgba(229, 185, 97, 0), rgba(229, 185, 97, .75), rgba(229, 185, 97, 0)); }
  .foot { margin: 0 -20px; padding: 18px 20px max(24px, env(safe-area-inset-bottom)); background: #031A33; color: #8FA3BA; font-size: 13px; }
}
@media (max-width: 520px) {
  .hero h1 { max-width: 8.4em; margin: 0 auto; }
  /* One field a line; the city and the state, both short, share one. */
  .row--who { gap: 0 12px; }
  .row--who .field:not(.field--half) { grid-column: 1 / -1; }
  .field select { padding-left: 12px; padding-right: 28px; }
  .sel::after { right: 13px; }
  .drop__or { display: none; }
  .tip { grid-template-columns: minmax(0, 1fr); }
}
/* Long for a phone, either way up, so pinned to the bottom of the screen and scrolled inside if it must. */
@media (max-width: 520px), (max-height: 480px) {
  .tip, .tip.is-below {
    position: fixed; top: auto; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    gap: 16px 28px;
    max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 0 0 0 100vmax rgba(3, 26, 51, .38), 0 16px 44px rgba(3, 26, 51, .4);
  }
  .tip::after { display: none; }
  .tip__x {
    display: grid; place-items: center; position: absolute; top: 6px; right: 6px; width: 44px; height: 44px;
    padding: 0; border: 0; border-radius: 10px; background: none; color: #fff; cursor: pointer;
  }
  .tip__x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .tip__x:focus-visible { outline: 0; box-shadow: var(--ring); }
}
@media (max-width: 639px) {
  /* Two positions, read at a glance: a badge, the name, the pay, and a mark that shows which one is picked. */
  .pick { gap: 14px; min-height: 0; padding: 15px 16px; border-radius: 12px; }
  .pick svg { box-sizing: content-box; width: 25px; height: 25px; padding: 11px; border-radius: 50%; background: var(--gold-wash); stroke: var(--gold-ink); }
  .pick__text { flex: 1; gap: 0; }
  .pick__text strong { font-size: 16px; line-height: 1.3; }
  .pick__text b { order: 1; margin-top: 1px; font-size: 17px; }
  .pick__text span { order: 2; font-size: 13px; color: var(--muted); }
  .pick::after { content: ""; flex: 0 0 auto; width: 22px; height: 22px; border: 1.5px solid var(--line-h); border-radius: 50%; background: #fff; }
  .pick:has(input:checked) { color: var(--ink); }
  .pick:has(input:checked) svg { background: #fff; }
  .pick:has(input:checked) .pick__text span { color: var(--body); }
  .pick:has(input:checked)::after { border-color: var(--gold-btn); background: radial-gradient(circle, var(--gold-btn) 0 5.4px, #fff 6px); }
  .perks--base { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .perks--base li { padding: 0 10px; }
  .perks--base li:nth-child(3) { grid-column: 1 / -1; border-left: 0; }
}
@media (max-width: 380px) {
  .pick { gap: 10px; padding: 14px 13px; }
  .pick svg { width: 22px; height: 22px; padding: 8px; }
  .pick__text strong { font-size: 15px; }
  .pick__text b { font-size: 16px; }
  .pick__text span { font-size: 12.5px; }
}
@media (max-width: 345px) {
  .pick svg { display: none; }
}
/* The pay stays on one line: the two positions go one under the other where they are too narrow for it. */
@media (max-width: 639px), (min-width: 961px) and (max-width: 1270px) {
  .row--tight { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (min-width: 1271px) and (max-width: 1400px) {
  .pick { padding: 10px 12px; gap: 9px; }
  .pick svg { width: 24px; height: 24px; }
  .pick__text span { font-size: 13px; }
}
/* A laptop screen, or a monitor's window: the whole form still fits. */
@media (min-width: 961px) and (max-height: 1045px) {
  .apply { padding-top: 20px; padding-bottom: 12px; }
  .apply__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
  .field { margin-bottom: 13px; }
  .field > label, .field__top { margin-bottom: 5px; }
  .field input:where(:not([type=radio], [type=file])), .field select { height: 46px; }
  .field textarea { height: 72px; min-height: 72px; }
  .tip { padding: 13px 16px 14px; font-size: 13.5px; line-height: 1.42; }
  .pay { gap: 5px; margin-top: 8px; }
  .pay dt { font-size: 12px; }
  .pay dd { font-size: 14.5px; }
  .pay__total { padding: 5px 10px 6px; }
  .tip__need { margin-top: 8px; }
  .fine { margin-top: 7px; font-size: 12.5px; line-height: 1.4; }
  .drop { min-height: 60px; padding: 8px 14px; }
  .pick { min-height: 52px; }
  .send { min-height: 50px; margin-top: 2px; }
  .note { margin-top: 10px; }
  .foot { padding-top: 10px; }
}
@media (min-width: 961px) and (max-height: 940px) {
  .hero__text { margin-top: clamp(18px, 5vh, 44px); }
  .hero__scene { height: 24vh; }
  .perks--hero { margin-bottom: 14px; padding-bottom: 14px; }
  .perks--hero svg { width: 28px; height: 28px; }
  .perks--hero strong { margin-top: 5px; }
}
/* Too short for three rows of two: two rows of three. */
@media (min-width: 1200px) and (max-height: 850px) {
  .row--who { grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 0 12px; }
}

@media (min-width: 961px) and (max-height: 760px) {
  .apply { padding-top: 14px; padding-bottom: 8px; }
  .apply__head { margin-bottom: 8px; }
  .field { margin-bottom: 10px; }
  .note { margin-top: 8px; }
  .foot { padding-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
