/* Stage 1 layout with the brand from design.md. Every change must keep the contact-rules
   viewport test green (every landing item on screen, not covered by a bar, at every spec
   viewport).

   Colour rule: navy is the text colour (white on navy). Orange-red fails AA for normal
   text on white (3.69:1) and on navy (4.48:1), so it is used only for text axe treats as
   large (at least 24 px, or 18.66 px bold) and for non-text accents: rules, focus rings,
   the motif. Never for the bars, the license line, the audience line or small labels. */

:root {
  --navy: #001858;
  --orange: #ff310c;
  --white: #fff;
  --gray: #eef1f6; /* navy on it: 14.6:1 */

  /* Phones: the fixed bottom bar, 56px with its 4px orange top border (DESIGN.md
     bottom-bar; border-box, as every box here). */
  --bar-height: 3.5rem;

  /* Wide screens: the sticky top bar (52px with its 6px orange border, DESIGN.md top-bar)
     and the sticky tab row under it (a 3rem tab plus the row's 3px border). Both stay on
     screen, so scrolling to a link target clears both. The tab-row value is the
     one-line fallback; script.js replaces it on the root with the row's measured
     height, so a wrapped row is cleared too. */
  --top-bar-height: 3.25rem;
  --tab-row-height: calc(3rem + 3px);
  --heading-font: "Saira Condensed", system-ui, sans-serif;
}

/* Self-hosted heading font (OFL; assets/fonts/OFL.txt), preloaded in index.html.
   Regenerate with: uv run tools/make_webfont.py */
@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/saira-condensed-bold.woff2") format("woff2");
}

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

body {
  margin: 0;

  /* Room for the fixed bottom bar, so it never covers page content. */
  padding-bottom: var(--bar-height);
  font-family: system-ui, sans-serif;
  line-height: 1.4;
  color: var(--navy);
  background: var(--white);
}

a {
  color: var(--navy);
}

/* Orange focus ring: 3.69:1 on white, 4.48:1 on navy (non-text needs 3:1). */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

h1,
h2 {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--navy);
}

.phone {
  white-space: nowrap;
}

/* Contact bars */

.top-bar {
  display: none;
}

.bottom-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: var(--bar-height);
  padding: 0 0.5rem;
  border-top: 4px solid var(--orange);
  background: var(--navy);
}

.bar-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

/* Request a Bid in both bars: the white outline button on navy (DESIGN.md top-bar-bid),
   a 36px box drawn inside the link, so the link itself stays a 2.75rem tap target. */
.bar-bid {
  position: relative;
  padding: 0 0.875rem;
  text-decoration: none;
}

.bar-bid::before {
  content: "";
  position: absolute;
  inset: 0.25rem 0;
  border: 2px solid var(--white);
  border-radius: 4px;
  pointer-events: none;
}

.bar-bid:hover::before {
  border-color: var(--orange);
}

/* Under 23em the bar links drop to 16px: at 320px the phone number and Request a Bid
   then end 5px inside the bottom bar's padding, at 17px only 1px (measured 2026-10-17). */
@media (width < 23em) {
  .bar-link {
    font-size: 1rem;
  }
}

/* Landing screen (DESIGN.md "Landing screen"): logo, intro (H1, orange rule, audience,
   licence) and the contact block (phone, hours, promise, buttons). Phones put
   the H1 beside the logo and stack the rest full width below (owner, 2026-10-14); wide
   screens use the grid in the 48em and 80em blocks below. */

.landing {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 0.75rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

/* Phones: the intro's children join the landing grid, so the H1 takes the cell beside
   the logo and the rule, audience and licence lines span the full width. */
.intro {
  display: contents;
}

.h1-rule,
.audience,
.license,
.contact {
  grid-column: 1 / -1;
}

/* The logo shrinks first on short screens (DESIGN.md): its width follows the viewport
   height, so no contact item has to move. 7rem on a tall phone. */
.logo {
  width: clamp(3.5rem, 50svh - 13rem, 7rem);
  height: auto;
}

h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.12;
}

/* The orange rule under the H1: decorative, full content width on phones. A fixed height,
   so it never shifts the layout. */
.h1-rule {
  display: block;
  height: 8px;
  margin: 0.25rem 0 0.125rem;
  background: var(--orange);
}

.audience,
.license,
.hours,
.promise {
  margin: 0;
}

.license {
  font-weight: 700;
}

/* The quiet hours and promise lines. */
.hours,
.promise {
  font-size: 0.875rem;
}

.contact {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
}

.contact-details {
  display: grid;
  flex: 1;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  place-items: center start;
}

.contact-details > * {
  grid-column: 1 / -1;
}

/* Phones from 23em: the hours sit beside the phone number (owner, 2026-10-14); narrower
   phones keep them on their own line under it, where they fit on one line. */
@media (23em <= width < 48em) {
  .contact-details > .phone {
    grid-column: 1;
  }

  .contact-details > .hours {
    grid-column: 2;
  }
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.25rem;
}

.button {
  display: inline-flex;
  flex: 1 1 8rem;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1rem;
  border: 2px solid var(--navy);
  border-radius: 4px;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  text-decoration: none;
  background: var(--navy);
  cursor: pointer;
}

.button:hover {
  border-color: var(--orange);
}

.button-secondary {
  color: var(--navy);
  background: var(--white);
}

/* Save Contact on phones, tablets and touch screens; the QR code only from 64em with a
   fine pointer (a mouse or trackpad; EXPERIENCE.md). Save Contact needs script.js (it
   downloads the vCard), so it shows only under .js. */
.save-contact {
  display: none;
}

.js .save-contact {
  display: inline-flex;
}

.qr {
  display: none;
  margin: 0;
  text-align: center;
}

/* The vCard QR code, an inline SVG drawn in currentColor (index.html, make qr-build):
   navy on white. 190px: the smallest size from 180px that make qr decodes off a 1x
   screen (180px does not). */
.qr-box {
  display: block;
  width: 11.875rem;
  height: 11.875rem;
  margin: 0 auto 0.25rem;
  color: var(--navy);
  background: var(--white);
}

.qr figcaption {
  max-width: 7.5rem;
  font-size: 0.875rem;
}

@media (pointer: fine) and (width >= 64em) {
  /* .js as well, so this beats the .js rule above (same specificity, later). */
  .js .save-contact {
    display: none;
  }

  .qr {
    display: block;
  }
}

/* Content panels (CAP-3). Without JavaScript every panel is stacked and shown; script.js
   turns them into tabs or expandable sections and every hiding rule is under .js.
   --panel-mode tells script.js which: "disclosure" here, "tabs" in the wide-screen block
   below (one breakpoint, read by the script rather than copied into it). */
.panels {
  --panel-mode: disclosure;

  display: grid;
  gap: 0.375rem; /* DESIGN.md disclosure-gap, 6px */
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem 1rem;
}

.panel {
  /* Phones: a small gap above a panel a link scrolls to (no top bar here); wide screens
     override it in the 48em block. */
  scroll-margin-top: 3.5rem;
  padding: 1.5rem;
  border-top: 3px solid var(--orange);
  background: var(--gray);
}

/* DESIGN.md panel: 30px headings and 17px body text on gray. A block, not a flex box,
   so the heading's text and any marked span in it (the About heading's year) stay one
   run of text; the motif sits in the left padding (1.1em plus its 0.4em gap). */
.panel h2 {
  position: relative;
  margin: 0 0 0.5rem;
  padding-left: 1.5em;
  font-size: 1.875rem;
  line-height: 1.15;
}

.panel-body {
  font-size: 1.0625rem;
}

.panel-body > :first-child {
  margin-top: 0;
}

.panel-body > :last-child {
  margin-bottom: 0;
}

/* Bid request form (bid-form.md): labels above full-width fields, one column at every
   width (320px up), except that a .field-pair (first and last name, phone and extension,
   due date and time) sits side by side when both fit; the focus ring from
   :focus-visible above; the submit button is a .button. */
.bid-form {
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
}

.bid-form .field {
  display: grid;
  gap: 0.25rem;
  align-content: start;
}

.field-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.75rem 1rem;
}

.bid-form label {
  font-weight: 700;
}

.bid-form input,
.bid-form select,
.bid-form textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem;
  border: 2px solid var(--navy);
  border-radius: 4px;
  font: inherit;
  color: var(--navy);
  background: var(--white);
}

.bid-form textarea {
  resize: vertical;
}

.bid-form .button {
  flex: none;
  justify-self: start;
  margin-top: 0.5rem;
}

/* The bid form's honeypot field (bid.php, owner decision 1 of Stage 4b entry 5): never
   shown, so a person leaves it empty and a bot that fills every field gives itself away. */
.bid-form .bid-trap {
  display: none;
}

/* A field's hint under its label. */
.field-hint {
  margin: 0;
  font-size: 0.875rem;
}

/* The handler's re-rendered form (bid.php): each error beside its field, in navy text
   with a bold "Error:" and an orange bar (never colour alone), and the field itself
   marked by a thick navy left border, so the orange focus ring still stands out on it. */
.field-error {
  margin: 0;
  padding-left: 0.5rem;
  border-left: 4px solid var(--orange);
  font-weight: 700;
}

.bid-form [aria-invalid="true"] {
  border-left-width: 0.5rem;
}

/* The error summary or send failure at the top of the re-rendered form. */
.form-alert {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border: 2px solid var(--navy);
  border-left-width: 6px;
  border-left-color: var(--orange);
  background: var(--gray);
}

/* The inline "Bid request sent" status (script.js; plan decision 6): the same box with a
   navy left edge, so it never reads as an error, and a check mark before its heading
   (hidden from screen readers by the empty alt text after the slash). */
.form-sent {
  margin: 1rem 0;
  padding: 0.75rem;
  border: 2px solid var(--navy);
  border-left-width: 6px;
  background: var(--gray);
}

/* Tight inside (and 0.75rem at the sides, so the link stays on one line), so the box and
   the Contact heading fit on screen together at 320x568 (bid-form.mjs "inline box"). */
.form-sent h3 {
  margin: 0;
}

.form-sent h3::before {
  content: "\2713  " / "";
  color: var(--navy);
}

.form-sent p {
  margin: 0.25rem 0 0;
}

.form-alert p,
.form-alert ul {
  margin: 0;
}

.form-alert ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
}

/* Text for screen readers only: the Message counter's polite announcement (script.js). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The privacy line under the submit button (bid-form.md). */
.form-note {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
}

/* The handler's result pages (bid.php): plain text and a link back to the form. The
   legal pages (privacy.html, terms.html) use the same readable measure; long words wrap
   at 320px. */
.result,
.legal,
.legal-header {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem;
  overflow-wrap: break-word;
}

.legal-header {
  padding-bottom: 0;
}

.legal-logo {
  display: block;
  width: 5rem;
  height: auto;
}

.legal h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.375rem;
}

.legal ul {
  padding-left: 1.25rem;
}

/* DESIGN.md service-icon: the Services list without bullets, each service a small navy
   line icon (decorative, aria-hidden in the markup) beside "<name>: <short line>". One
   column here; three from 64em (below). */
.services {
  display: grid;
  gap: 0.75rem 1.5rem;
  padding: 0;
  list-style: none;
}

.services li {
  display: grid;
  grid-template-columns: 1.25em 1fr;
  gap: 0.5em;
  align-items: start;
}

/* Centred on the first text line: (line height - icon height) / 2 down from the top. */
.service-icon {
  width: 1.25em;
  height: 1.25em;
  margin-top: calc((1lh - 1.25em) / 2);
  color: var(--navy);
}

@media (width >= 64em) {
  .services {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* The motif: the M-and-ears mark beside each panel heading (on phones with JavaScript,
   beside each disclosure toggle). Decoration only: a CSS background on a pseudo-element,
   so it is not in the accessibility tree and takes no clicks. */
.panel h2::before,
.panel-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1.1em;
  height: 1em;
  background: url("assets/brand/mule-mark.svg") center / contain no-repeat;
  pointer-events: none;
  transform: translateY(-50%);
}

/* Phones with JavaScript: each panel opens from a disclosure heading (DESIGN.md
   disclosure-heading), the toggle script.js puts before the H2: 22px, at least 2.75rem
   tall, 16px side padding and the 3px orange top border above; an open body keeps that
   side padding. The 48em block restores the panel padding for tabs (no toggle there). */
.js .panel {
  padding: 0 1rem;
}

.js .panel h2 {
  margin-bottom: 0;
}

.js .panel-body {
  margin-top: 0.5rem;
  padding-bottom: 1.5rem;
}

/* The toggle reads the short tab label, with the motif at its left (the same 1.5em text
   indent as a heading) and the chevron at its right; the right padding keeps the text
   clear of the chevron. */
.panel-toggle {
  position: relative;
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 2rem 0.5rem 1.5em;
  border: 0;
  font-family: var(--heading-font);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  text-align: left;
  background: none;
  cursor: pointer;
}

/* The full H2 under an open panel's toggle: the panel's heading, without the motif (the
   toggle above has it). */
.js .panel-toggle + h2 {
  padding-left: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.js .panel-toggle + h2::before {
  content: none;
}

/* A closed panel's H2 is visually hidden, not removed: heading navigation still finds
   every panel. */
.js .panel-toggle[aria-expanded="false"] + h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Chevron: a 12px navy corner with 3px strokes at the right, drawn with borders, so it
   adds nothing to the button's name. The shifts keep the rotated corner visually
   centred on the heading. */
.panel-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.25rem;
  width: 0.75rem;
  height: 0.75rem;
  border-right: 3px solid var(--navy);
  border-bottom: 3px solid var(--navy);
  transform: translateY(-75%) rotate(45deg);
}

.panel-toggle[aria-expanded="true"]::after {
  transform: translateY(-25%) rotate(-135deg);
}

/* Stretch-to-fill (EXPERIENCE.md): on phones, while every disclosure is closed, the page
   above the bottom bar is at least one screen tall (svh: the screen with the browser's
   bars shown, as at load) and the headings share what the landing screen leaves, at
   equal heights, so the last one ends on the bar's orange border. Each keeps its own
   2.75rem minimum: where they do not fit (short phones, large text) the page scrolls as
   usual. Opening a panel ends the match, so the headings return to their natural height.
   Pure CSS from the toggles' state: nothing is measured, so nothing moves after the first
   paint. Tabs mode removes the toggles, so it never matches. */
.js main:has(.panel-toggle):not(:has(.panel-toggle[aria-expanded="true"])) {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: calc(100svh - var(--bar-height));
}

/* Auto margins would shrink-wrap the grid items, so they take the full width. */
.js
  main:has(.panel-toggle):not(:has(.panel-toggle[aria-expanded="true"]))
  > .landing,
.js
  main:has(.panel-toggle):not(:has(.panel-toggle[aria-expanded="true"]))
  > .panels {
  width: 100%;
}

/* Equal rows (1fr each, none below its content) down to the bar, with no bottom gap. */
.js
  main:has(.panel-toggle):not(:has(.panel-toggle[aria-expanded="true"]))
  > .panels {
  grid-auto-rows: 1fr;
  padding-bottom: 0;
}

/* The toggle fills its heading's row (a closed panel's H2 is out of the flow and its
   body hidden); a button centres its text and the motif and chevron sit at 50%. */
.js
  main:has(.panel-toggle):not(:has(.panel-toggle[aria-expanded="true"]))
  .panel {
  display: grid;
}

.js .panel-tabs {
  display: none;
}

/* Direction B tabs (DESIGN.md tab, tab-selected): 20px labels, 48px tall, a 2px navy
   border open at the bottom; the selected tab is navy with a 5px orange cap. */
.panel-tab {
  min-height: 3rem;
  padding: 0 1.25rem;
  border: 2px solid var(--navy);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
}

.panel-tab:hover {
  border-color: var(--orange);
}

.panel-tab[aria-selected="true"] {
  border-top: 5px solid var(--orange);
  color: var(--white);
  background: var(--navy);
}

/* Footer (DESIGN.md footer): slim, quiet type, navy on white (from body) with no band.
   Same width and side padding as .panels, so its left edge lines up with the panels; the
   body's bottom padding keeps it clear of the fixed bottom bar. */
.site-footer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem 1rem 1rem;
  font-size: 0.875rem;
}

.site-footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  margin: 0;
}

/* The separators are decoration, not text (the legal name stays alone in its span);
   the empty alternative text keeps screen readers from announcing them. */
.site-footer span + span::before {
  margin-right: 0.5rem;
  content: "·" / "";
}

/* Smooth panel opening (design.md "Motion"), only for visitors who have not asked for
   reduced motion. script.js adds .panel-opening when a visitor opens a panel; nothing
   animates at load. */
@media (prefers-reduced-motion: no-preference) {
  .panel-opening {
    animation: panel-open 180ms ease-out;
  }

  @keyframes panel-open {
    from {
      opacity: 0;
      transform: translateY(-0.25rem);
    }
  }
}

/* Wide screens: the slim sticky top bar replaces the bottom bar. */
@media (width >= 48em) {
  /* Link targets and keyboard focus land below the sticky top bar ... */
  html {
    scroll-padding-top: var(--top-bar-height);
  }

  /* ... and, with JavaScript (the root carries .js), below the sticky tab row as well:
     script.js sets --tab-row-height to the row's measured height (wrapped or not). */
  .js {
    scroll-padding-top: calc(var(--top-bar-height) + var(--tab-row-height));
  }

  body {
    padding-bottom: 0;
  }

  .bottom-bar {
    display: none;
  }

  .top-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-end;

    /* At least --top-bar-height, which the tab row's sticky top uses; a taller bar would
       slide over the row, which the viewport check's hit test would catch. */
    min-height: var(--top-bar-height);
    padding: 0 2.5rem;
    border-bottom: 6px solid var(--orange);
    background: var(--navy);
  }

  /* Tablet and laptop: logo and intro side by side, the contact block full width below
     them; three columns only from 80em (the block after this one), so the H1 never
     squeezes on 1024-1280px laptops. */
  .landing {
    gap: 1.5rem 2.5rem;

    /* The accepted mockup's width (1366px); .panels below shares it and the side padding,
       so the logo and the tab row and panel line up on the left. */
    max-width: 85.375rem;
    padding: 2.25rem 2.5rem;
  }

  .logo {
    width: clamp(5rem, 40svh - 5rem, 13.5rem);
  }

  .intro {
    display: grid;
    gap: 0.625rem;
  }

  .intro > * {
    grid-column: auto;
  }

  h1 {
    max-width: 15em;
    font-size: 2.875rem;
  }

  /* As wide as the H1's widest line: script.js sets --h1-line-width; the fallback (about
     the current H1's widest line) stays for no-JS. A max-width, not a width, so the rule
     never holds the intro column open when the window narrows. */
  .h1-rule {
    width: 100%;
    max-width: var(--h1-line-width, min(92%, 34rem));
    height: 10px;
  }

  .audience {
    font-size: 1.1875rem;
  }

  .license {
    font-size: 1.125rem;
  }

  .contact-link {
    font-size: 1.5rem;
    line-height: 2.25rem;
  }

  .promise {
    margin: 0.25rem 0 0.5rem;
  }

  .actions {
    width: auto;
  }

  .button {
    min-width: 13.75rem;
    font-size: 1.25rem;
  }

  /* Tabs: script.js reads this and builds the tab strip. Same width and side padding as
     the landing screen above, so their left edges line up. */
  .panels {
    --panel-mode: tabs;

    max-width: 85.375rem;
    padding: 0 2.5rem 1rem;
  }

  /* The footer keeps the panels' width and side padding here too. */
  .site-footer {
    max-width: 85.375rem;
    padding: 0.5rem 2.5rem 1rem;
  }

  .js .panels {
    gap: 0;
  }

  /* The root's scroll padding already clears both sticky bars; keep only a small gap
     instead of adding the base 3.5rem margin on top. */
  .panel {
    scroll-margin-top: 0.5rem;
  }

  /* The tab row stays on screen while the page scrolls, directly under the top bar and
     below it in stacking order (10); the white background hides content passing
     under it. Sticky takes no layout space, so the landing screen does not move.
     DESIGN.md tab-row: 40px side padding and a 3px navy bottom border; the row reaches
     out over the container's 2.5rem padding, so the border runs the container's full
     width while the first tab still lines up with the panel and the logo. */
  .js .panel-tabs {
    position: sticky;
    top: var(--top-bar-height);
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0 -2.5rem;
    padding: 0 2.5rem;
    border-bottom: 3px solid var(--navy);
    background: var(--white);
  }

  .js .panel {
    padding: 1.5rem;
    border-top: 0;
  }

  .js .panel-body {
    padding-bottom: 0;
  }
}

/* Tablet and laptop below 80em: the contact block is one band under logo and intro, the
   phone number beside the hours and promise lines, so the tab row sits higher (owner,
   2026-10-23, after the 1024x768 touch check). From 64em the buttons join that row at
   the right; below it they keep their own line, where the row has no room for them. */
@media (48em <= width < 80em) {
  .contact-details {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "phone hours"
      "phone promise"
      "actions actions";
    gap: 0 1.5rem;
  }

  .contact-details > .phone {
    grid-area: phone;
  }

  .contact-details > .hours {
    grid-area: hours;
    align-self: end;
  }

  .contact-details > .promise {
    grid-area: promise;
    align-self: start;
    margin: 0;
  }

  .contact-details > .actions {
    grid-area: actions;
    margin-top: 0.75rem;
  }
}

@media (64em <= width < 80em) {
  .contact-details {
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
      "phone hours actions"
      "phone promise actions";
  }

  .contact-details > .actions {
    justify-self: end;
    margin-top: 0;
  }
}

/* Desktop: three columns, logo | intro | contact block (DESIGN.md Layout), from 80em
   (1280px) so the intro column stays wide enough for a two-line H1. */
@media (width >= 80em) {
  .landing {
    grid-template-columns: auto 1fr auto;
  }

  .contact {
    grid-column: auto;
  }
}
