/* Offlid, the timetable firm. Tokens from brand2026/round2/build-timetable (REPORT.md, board.html). */

@font-face {
  font-family: "NHG Display";
  src: url("/assets/fonts/nhg-display-55.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NHG Text";
  src: url("/assets/fonts/nhg-text-55.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NHG Display Fallback";
  src: local("Helvetica Neue"), local("Helvetica"), local("Arial"), local("Liberation Sans");
  size-adjust: 80.38%;
  ascent-override: 101.77%;
  descent-override: 22.64%;
  line-gap-override: 24.88%;
}

@font-face {
  font-family: "NHG Text Fallback";
  src: local("Helvetica Neue"), local("Helvetica"), local("Arial"), local("Liberation Sans");
  size-adjust: 101.26%;
  ascent-override: 96.58%;
  descent-override: 24.19%;
  line-gap-override: 0%;
}

:root {
  --paper: #FFFFFF;
  --ink: #000000;
  --cobalt: #2443D6;
  --cobalt-hover: #1C36B8;
  --footnote: #555555;
  --screen: #EEEEEE;

  --display: "NHG Display", "NHG Display Fallback", sans-serif;
  --text: "NHG Text", "NHG Text Fallback", sans-serif;

  --pad: clamp(1.25rem, 4.444vw, 4rem);
  --col-day: clamp(12rem, 22.222vw, 20rem);
  --col-svc: clamp(11rem, 20.833vw, 18.75rem);
  --col-who: 5rem;
  --rule-head: 4px;
  --section-gap: clamp(4rem, 8.333vw, 7.5rem);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-board: cubic-bezier(0.2, 0.8, 0.2, 1);

  color-scheme: light;
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  background: var(--paper);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.4118;
  font-kerning: normal;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ol,
ul {
  list-style: none;
}

p,
h1,
h2,
h3,
li {
  text-wrap: pretty;
}

.nowrap {
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right));
}

.rule-head {
  height: var(--rule-head);
  border: 0;
  background: var(--ink);
}

.skip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  line-height: 1.3333;
  transform: translateY(-200%);
}

.skip:focus-visible {
  transform: none;
}

/* Type steps */

.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.278vw, 4.75rem);
  line-height: 1.0263;
  letter-spacing: -0.012em;
}

.title,
.foot-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.lead {
  font-size: 1.375rem;
  line-height: 1.4091;
  letter-spacing: -0.005em;
}

.eyebrow,
.dep-day,
.who,
.nav-link {
  font-size: 0.9375rem;
  line-height: 1.3333;
  letter-spacing: 0.01em;
}

.board-meta,
.cols,
.hint,
.msg,
.foot-bottom {
  font-size: 0.8125rem;
  line-height: 1.3846;
  letter-spacing: 0.01em;
}

/* Nav */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 5.5rem;
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
}

.brand img {
  width: auto;
  height: 1.875rem;
}

.nav ul {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding-block: 0.75rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.625rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms var(--ease-out);
}

.nav-link:focus-visible::after,
.nav-link[aria-current]::after,
.nav-cta::after {
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover::after {
    transform: scaleX(1);
  }
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: var(--col-day) minmax(0, 1fr);
  padding-top: 3.5rem;
  padding-bottom: var(--section-gap);
}

.hero .eyebrow {
  padding-top: 0.875rem;
  padding-right: 1.5rem;
}

.lead {
  max-width: 43.75rem;
  margin-top: 2.25rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.5rem;
}

.hero-sent {
  padding-bottom: var(--section-gap);
}

@media (min-width: 80rem) {
  .hero .display {
    white-space: nowrap;
  }
}

/* Buttons: the label stays put, the cobalt plate under it presses */

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 1rem 1.625rem;
  border: 0;
  background: none;
  color: var(--paper);
  font-size: 1.0625rem;
  line-height: 1.4118;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--cobalt);
  transition:
    background-color 150ms var(--ease-out),
    transform 120ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover::before {
    background-color: var(--cobalt-hover);
  }
}

.button:active::before {
  transform: scale(0.98);
}

.button[aria-disabled="true"] {
  cursor: progress;
}

.button[aria-disabled="true"]::before {
  transform: none;
}

.button-quiet {
  color: var(--ink);
}

.button-quiet::before {
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .button-quiet:hover::before {
    background-color: var(--screen);
  }
}

.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* The board */

.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
}

.board > .rule-head,
.board > .incident,
.board > .cols,
.board > .rows {
  grid-column: 1 / -1;
}

.board-meta {
  padding-bottom: 0.75rem;
  color: var(--footnote);
}

.board-note {
  text-align: right;
}

.incident {
  display: flex;
  align-items: flex-end;
  padding: 1.25rem 0 1.625rem;
}

.incident .when {
  width: var(--col-day);
  flex-shrink: 0;
}

.dep-day {
  margin-bottom: 0.25rem;
}

.time {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  font-family: var(--display);
}

.dep {
  display: inline-flex;
  font-weight: 400;
  font-size: clamp(5rem, 9.167vw, 8.25rem);
  line-height: 0.8182;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.ampm {
  font-size: 1.75rem;
  line-height: 1;
}

.what {
  padding-bottom: 0.125rem;
  font-family: var(--display);
  font-size: clamp(2rem, 2.778vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.cols {
  display: flex;
  padding: 0.4375rem 0;
  background: var(--screen);
  letter-spacing: 0.02em;
}

.c-day {
  width: var(--col-day);
  flex-shrink: 0;
}

.c-svc {
  flex: 1;
}

.c-both {
  display: none;
}

.c-who {
  width: var(--col-who);
  text-align: right;
}

.row {
  display: flex;
  align-items: baseline;
  padding: 1.375rem 0 1.5rem;
  border-bottom: 1px solid var(--ink);
}

.row .day {
  width: var(--col-day);
  flex-shrink: 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 2.778vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.row .svc {
  width: var(--col-svc);
  flex-shrink: 0;
  padding-right: 1rem;
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1.1429;
  letter-spacing: -0.01em;
}

.row .txt {
  flex: 1;
  padding-right: 2.5rem;
  font-size: 1.1875rem;
  line-height: 1.4211;
}

.row .who {
  width: var(--col-who);
  flex-shrink: 0;
  text-align: right;
}

.row.buyer {
  position: relative;
  margin: 0 -1.5rem;
  padding: 1.875rem 1.5rem 2.125rem;
  border-bottom: 0;
  background: var(--cobalt);
  color: var(--paper);
}

.row.buyer .day {
  font-size: clamp(2.25rem, 3.889vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

/* The board arrives once: rows rise and fade, 9:12 flips, a.m. follows, Wednesday prints */

.js .enter {
  transition:
    opacity 360ms var(--ease-board),
    transform 360ms var(--ease-board);
  transition-delay: calc(var(--i) * 60ms);
}

.js .buyer {
  transition: clip-path 480ms var(--ease-board);
}

.js .board:not(.in) .enter {
  opacity: 0;
  transform: translateY(8px);
}

.js .buyer-slot:not(.printed) .buyer {
  clip-path: inset(0 100% 0 0);
}

.buyer {
  clip-path: inset(0 0 0 0);
}

.js .ampm {
  transition: opacity 200ms var(--ease-out) 570ms;
}

.js .board:not(.in) .ampm {
  opacity: 0;
}

.ch {
  position: relative;
  display: inline-block;
  perspective: 600px;
}

.ch-s {
  visibility: hidden;
}

.ch-t,
.ch-f,
.ch-b {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  overflow: hidden;
  backface-visibility: hidden;
}

.ch-t,
.ch-f {
  top: 0;
  transform-origin: 50% 100%;
}

.ch-b {
  top: 50%;
  transform-origin: 50% 0;
}

.ch-t > span,
.ch-b > span {
  position: absolute;
  left: 0;
  top: 0;
}

.ch-b > span {
  top: -100%;
}

.ch-f {
  top: -2px;
  left: -2px;
  right: -2px;
  height: calc(50% + 3px);
  background: var(--paper);
}

.in .ch-f {
  will-change: transform;
  animation: flap-front 420ms both;
  animation-delay: calc(var(--i) * 50ms);
}

.in .ch-b {
  will-change: transform;
  animation: flap-back 420ms both;
  animation-delay: calc(var(--i) * 50ms);
}

@keyframes flap-front {
  0% {
    transform: rotateX(0deg);
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }
  50%,
  100% {
    transform: rotateX(-90deg);
  }
}

@keyframes flap-back {
  0%,
  49.9% {
    opacity: 0;
    transform: rotateX(90deg);
  }
  50% {
    opacity: 1;
    transform: rotateX(90deg);
    animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg);
  }
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Sections: rule, label column, title, print table */

.section {
  padding-top: var(--section-gap);
  scroll-margin-top: 1.5rem;
}

.section-head {
  display: grid;
  grid-template-columns: var(--col-day) minmax(0, 1fr);
  padding-top: 1.25rem;
}

.section-head .eyebrow {
  padding-top: 0.75rem;
  padding-right: 1.5rem;
}

.section-text {
  max-width: 43.75rem;
  margin-top: 1.25rem;
  font-size: 1.1875rem;
  line-height: 1.4211;
}

.table {
  margin-top: 3.5rem;
  border-top: 1px solid var(--ink);
}

.line {
  display: grid;
  align-items: baseline;
  padding: 1.375rem 0 1.5rem;
  border-bottom: 1px solid var(--ink);
}

.line h3 {
  padding-right: 1.5rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.1429;
  letter-spacing: -0.01em;
}

.line p {
  max-width: 43.75rem;
  font-size: 1.1875rem;
  line-height: 1.4211;
}

.line-what {
  grid-template-columns: var(--col-day) var(--col-svc) minmax(0, 1fr);
}

.line .num,
.line .value {
  font-family: var(--display);
  font-size: clamp(1.75rem, 2.778vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}

.line-price {
  grid-template-columns: calc(var(--col-day) + var(--col-svc)) minmax(0, 1fr) auto;
}

.line .value {
  max-width: none;
  padding-left: 2.5rem;
  text-align: right;
  white-space: nowrap;
}

.line .value.quiet {
  color: var(--footnote);
}

.line-limit {
  grid-template-columns: calc(var(--col-day) + var(--col-svc)) minmax(0, 1fr);
}

.line-person {
  grid-template-columns: var(--col-day) var(--col-svc) minmax(0, 1fr);
}

.portrait {
  display: block;
  align-self: start;
  padding-right: 1.5rem;
}

.portrait img {
  width: 100%;
  max-width: 15rem;
  height: auto;
  background: var(--screen);
}

/* The form */

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2.5rem;
  margin-top: 3.5rem;
  margin-left: var(--col-day);
  max-width: 50rem;
}

.field.full,
.form .actions {
  grid-column: 1 / -1;
}

.form label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.3333;
  letter-spacing: 0.01em;
}

.control {
  position: relative;
}

.control::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--cobalt);
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
  pointer-events: none;
}

.control:focus-within::after {
  opacity: 1;
}

.form input,
.form select,
.form textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: 1.0625rem;
  line-height: 1.4118;
  appearance: none;
  -webkit-appearance: none;
}

.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  outline: none;
}

.form textarea {
  min-height: 8.5rem;
  resize: vertical;
  overscroll-behavior: contain;
}

.form select {
  padding-right: 1.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  cursor: pointer;
}

.form ::placeholder {
  color: var(--footnote);
  opacity: 1;
}

.form [aria-invalid="true"] {
  border-bottom-color: var(--ink);
}

.msg {
  min-height: 1.125rem;
  margin-top: 0.375rem;
  opacity: 0;
  transition: opacity 160ms var(--ease-out);
}

.msg.on {
  opacity: 1;
}

.hint {
  color: var(--footnote);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form .actions {
  margin-top: 1rem;
}

.trust {
  font-size: 1.0625rem;
  line-height: 1.4118;
}

/* Footer */

.foot {
  margin-top: var(--section-gap);
  padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
}

.foot-lead {
  display: grid;
  grid-template-columns: var(--col-day) minmax(0, 1fr);
  padding-top: 1.25rem;
}

.foot-title {
  grid-column: 2;
}

.foot-copy {
  grid-column: 2;
  margin-top: 1.5rem;
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
  color: var(--footnote);
}

.foot-bottom img {
  width: auto;
  height: 1.25rem;
}

/* Search pages: the departure slot, Apple's wording, the reply on screen grey (P: Guideline page) */

.hero-page {
  padding-top: 3rem;
}

.slot {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  padding-bottom: 1.625rem;
  border-bottom: 1px solid var(--ink);
}

.slot .when {
  width: var(--col-day);
  flex-shrink: 0;
}

.slot .dep-day {
  margin-bottom: 1.125rem;
}

.slot-word .when {
  width: auto;
  flex: 0 1 auto;
}

.dep.dep-word {
  display: block;
  font-size: clamp(3rem, 6.667vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.slot-word .what {
  padding-left: 2.5rem;
}

.hero-page + .section {
  padding-top: 0;
}

.board-page {
  padding-top: var(--section-gap);
}

.line-quote {
  grid-template-columns: var(--col-day) minmax(0, 1fr);
}

.line-quote .quote {
  max-width: 49.5rem;
  font-size: 1.375rem;
  line-height: 1.4091;
  letter-spacing: -0.005em;
}

.line-quote .cite,
.note,
.reply-meta {
  font-size: 0.8125rem;
  line-height: 1.3846;
  letter-spacing: 0.01em;
  color: var(--footnote);
}

.line-quote .cite {
  margin-top: 0.75rem;
}

.note {
  max-width: 43.75rem;
  margin-top: 0.75rem;
  margin-left: var(--col-day);
}

.reply {
  max-width: 47.5rem;
  margin-top: 3.5rem;
  margin-left: var(--col-day);
}

.reply-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.reply-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 2.5rem 2.25rem;
  background: var(--screen);
}

.reply-body p {
  font-size: 1.0625rem;
  line-height: 1.5294;
}

.reply .note {
  margin-left: 0;
}

/* Medium: hero and sections stack their label column */

@media (max-width: 64rem) {
  .hero,
  .section-head,
  .foot-lead {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero .eyebrow,
  .section-head .eyebrow {
    padding-top: 0;
    margin-bottom: 1.125rem;
  }

  .foot-title,
  .foot-copy {
    grid-column: 1;
  }

  .eyebrow .wide {
    display: none;
  }

  .form {
    margin-left: 0;
  }

  .line-price {
    grid-template-columns: var(--col-day) minmax(0, 1fr) auto;
  }

  .line-limit {
    grid-template-columns: var(--col-day) minmax(0, 1fr);
  }
}

/* Narrow: the board and the tables stack, per hero-390 and board.html */

@media (max-width: 53.75rem) {
  :root {
    --rule-head: 3px;
  }

  .nav {
    height: 4rem;
  }

  .brand img {
    height: 1.1875rem;
  }

  .nav ul {
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 0.8125rem;
    line-height: 1.5385;
  }

  .hero {
    padding-top: 1.75rem;
  }

  .eyebrow,
  .dep-day,
  .who {
    font-size: 0.875rem;
    line-height: 1.4286;
  }

  .display {
    line-height: 1.05;
  }

  .lead {
    margin-top: 1.375rem;
    font-size: 1.125rem;
    line-height: 1.5;
    letter-spacing: 0;
  }

  .actions {
    margin-top: 1.75rem;
    gap: 0.875rem;
  }

  .hero .actions .button {
    width: 100%;
  }

  .title,
  .foot-title {
    font-size: 2rem;
    line-height: 1.125;
  }

  .board {
    grid-template-columns: minmax(0, 1fr);
  }

  .board > * {
    grid-column: 1;
  }

  .board-meta {
    padding-bottom: 0.625rem;
  }

  .board-note {
    order: 3;
    padding: 0;
    margin-top: -0.625rem;
    padding-bottom: 1.25rem;
    text-align: left;
  }

  .js .board-note {
    transition: opacity 360ms var(--ease-board) 60ms;
  }

  .js .board:not(.in) .board-note {
    opacity: 0;
  }

  .board > .rule-head {
    order: 1;
  }

  .board > .incident {
    order: 2;
  }

  .board > .cols {
    order: 4;
  }

  .board > .rows {
    order: 5;
  }

  .incident {
    display: block;
    padding: 1rem 0 1.25rem;
  }

  .time {
    gap: 0.5rem;
  }

  .dep {
    font-size: 6rem;
    line-height: 0.875;
  }

  .ampm {
    font-size: 1.375rem;
  }

  .dep-day {
    margin-bottom: 0;
  }

  .what {
    margin-top: 0.5rem;
    padding-bottom: 0;
    font-size: 1.875rem;
    line-height: 1.1333;
    letter-spacing: -0.01em;
  }

  .cols {
    justify-content: space-between;
    padding: 0.375rem 0;
  }

  .c-day,
  .c-svc {
    display: none;
  }

  .c-both {
    display: inline;
  }

  .c-who {
    width: auto;
  }

  .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1.125rem 0 1.25rem;
  }

  .row .day {
    width: auto;
    font-size: 2rem;
    line-height: 1.125;
  }

  .row .who {
    grid-column: 2;
    grid-row: 1;
    width: auto;
  }

  .row .svc {
    grid-column: 1 / -1;
    width: auto;
    margin-top: 0.625rem;
    padding-right: 0;
    font-size: 1.375rem;
    line-height: 1.2727;
    letter-spacing: -0.005em;
  }

  .row .txt {
    grid-column: 1 / -1;
    padding: 0.25rem 0 0;
    font-size: 1.0625rem;
    line-height: 1.4706;
  }

  .row.buyer {
    margin: 0 calc(-1 * max(var(--pad), env(safe-area-inset-left)));
    padding: 1.375rem max(var(--pad), env(safe-area-inset-left)) 1.625rem;
  }

  .row.buyer .day {
    font-size: 2.5rem;
    line-height: 1.05;
  }

  .table {
    margin-top: 2rem;
  }

  .line,
  .line-what,
  .line-price,
  .line-limit {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1.125rem 0 1.25rem;
  }

  .line h3 {
    grid-column: 1;
    padding-right: 1rem;
    font-size: 1.375rem;
    line-height: 1.2727;
  }

  .line p {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    font-size: 1.0625rem;
    line-height: 1.4706;
  }

  .line-what .num {
    grid-column: 1;
    margin: 0 0 0.25rem;
    font-size: 1.375rem;
    line-height: 1.2727;
  }

  .line-what h3 {
    grid-column: 1 / -1;
  }

  .line .value {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    padding-left: 1rem;
    font-size: 1.375rem;
    line-height: 1.2727;
  }

  .line-person {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 1rem;
  }

  .line-person .portrait {
    grid-row: 1 / span 2;
    padding-right: 0;
  }

  .line-person h3,
  .line-person p {
    grid-column: 2;
  }

  .section-text {
    font-size: 1.0625rem;
    line-height: 1.4706;
  }

  .form {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 2rem;
  }

  .form label {
    font-size: 0.9375rem;
  }

  .form .actions .button {
    width: 100%;
  }

  .foot-bottom {
    margin-top: 2.5rem;
  }
}

/* Search pages, medium and narrow, per P: Guideline page 390 */

@media (min-width: 80rem) {
  .hero-page .display {
    white-space: normal;
  }
}

@media (max-width: 64rem) {
  .slot {
    margin-bottom: 1.75rem;
  }

  .note,
  .reply {
    margin-left: 0;
  }
}

@media (max-width: 53.75rem) {
  .slot {
    display: block;
    padding-bottom: 1.25rem;
  }

  .slot .dep-day {
    margin-bottom: 0.375rem;
  }

  .slot-word .what {
    padding-left: 0;
  }

  .dep.dep-word {
    font-size: 3rem;
    line-height: 1.0417;
  }

  .line-quote {
    grid-template-columns: minmax(0, 1fr);
  }

  .line-quote .num {
    margin: 0;
    font-size: 1.375rem;
    line-height: 1.2727;
  }

  .line-quote .said {
    margin-top: 0.5rem;
  }

  .line-quote .quote {
    margin-top: 0;
    font-size: 1.125rem;
    line-height: 1.5;
  }

  .line-quote .cite {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
  }

  .reply {
    margin-top: 2rem;
  }

  .reply-meta {
    display: block;
  }

  .reply-meta span + span::before {
    content: ", ";
  }

  .reply-body {
    margin-right: calc(-1 * max(var(--pad), env(safe-area-inset-right)));
    margin-left: calc(-1 * max(var(--pad), env(safe-area-inset-left)));
    padding: 1.75rem max(var(--pad), env(safe-area-inset-right)) 2rem max(var(--pad), env(safe-area-inset-left));
  }
}

/* Reduced motion: opacity only, 200 ms, no flap, no wipe */

@media (prefers-reduced-motion: reduce) {
  .js .enter {
    transition: opacity 200ms var(--ease-out);
    transition-delay: 0ms;
  }

  .js .board:not(.in) .enter {
    transform: none;
  }

  .js .buyer-slot:not(.printed) .buyer {
    clip-path: none;
  }

  .js .ampm {
    transition-delay: 0ms;
  }

  .nav-link::after {
    transition-duration: 0ms;
  }

  .button::before {
    transition: background-color 150ms var(--ease-out);
  }

  .button:active::before {
    transform: none;
  }
}

@media (forced-colors: active) {
  .button {
    outline: 1px solid ButtonText;
  }

  .row.buyer {
    border: 1px solid CanvasText;
  }
}
