/*
 * The Billboard Network: shared site styles (every page).
 *
 * Built from the brand's design file and brand board. Its rules are kept as
 * written; what is added is the responsive layer (phones, tablets, laptops),
 * real links and forms, the board cards, the sales sheet and print styles.
 *
 * Brand rules that apply everywhere (see README.md, "Brand"):
 *   - Colours: Night Navy, Signal Cyan, Daylight, White. No red, anywhere,
 *     including error states and browser defaults.
 *   - Cyan is an accent (buttons, small labels, highlights). Never body text on white.
 *   - Square corners throughout.
 *
 * Fonts: Oswald and Nunito Sans (Google Fonts, loaded in each page's <head>) stand
 * in for the licensed brand fonts Bee Four and Avenir Next World. To switch, load
 * the licensed files (an @font-face block at the top of this file) and put the
 * family name first in --display or --sans below. Nothing else needs to change.
 *
 * Layout breakpoints (max-width): 1100px (4-up grids go 2-up), 959px (header
 * menu button), 900px (two-column layouts stack), 640px (tables stack, phone
 * spacing), 380px (smallest phones).
 */

/* ---------- tokens ---------- */
:root {
  --navy: #131F49;
  --cyan: #16B4D1;
  --daylight: #E6F5FA;
  --white: #FFFFFF;
  --hair: rgba(19, 31, 73, .14);
  --muted: rgba(19, 31, 73, .72); /* secondary text on white or daylight (AA contrast) */

  /* Font stacks: the licensed font goes first when it is added. */
  --display: "Oswald", "Haettenschweiler", "Impact", sans-serif;          /* Bee Four */
  --sans: "Nunito Sans", "Avenir Next World", Inter, system-ui, sans-serif; /* Avenir Next World */

  --gutter: clamp(16px, 5vw, 28px);
  --header-h: 82px; /* sticky header height: anchor jumps stop below it */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; border-radius: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--navy); background: var(--white); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
/* Anchor targets (#contact, #join, #verified ...) land below the sticky header. */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

/* No browser-default "invalid" colouring (Firefox paints it red). Our own error style is below.
   Separate rules: one unknown pseudo-class would void a combined selector list. */
:invalid { box-shadow: none; }
:user-invalid { box-shadow: none; }
:-moz-ui-invalid { box-shadow: none; }

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

.skip-link {
  position: absolute; z-index: 100; top: 8px; left: 8px; padding: 12px 18px;
  background: var(--navy); color: #fff; font-weight: 700; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Focus: a cyan ring on white, daylight and navy; navy on the cyan bands. */
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.cta :focus-visible { outline-color: var(--navy); }
.cta .offsetBox .card :focus-visible { outline-color: var(--cyan); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; font-weight: 500; letter-spacing: -.01em; line-height: .95; }
h1 { font-size: clamp(34px, 5.2vw + 16px, 88px); overflow-wrap: break-word; hyphens: manual; }
h2 { font-size: clamp(28px, 4.6vw, 50px); overflow-wrap: break-word; }
/* Even line lengths when a headline wraps on a narrow screen (no lone word on the last line).
   Lines that fit, including the design's <br> breaks on wide screens, are not changed. */
h1, h2 { text-wrap: balance; }
h3 { font-size: 22px; letter-spacing: 0; }
.eyebrow { font-family: var(--sans); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; color: var(--cyan); margin-bottom: 18px; }
.lede { font-size: 20px; max-width: 56ch; }
.cap { font-weight: 600; text-transform: uppercase; letter-spacing: .2em; font-size: 12px; }
p { max-width: 64ch; }
.fineprint { font-size: 12.5px; margin-top: 14px; color: var(--muted); }
section.navy .fineprint { color: rgba(255, 255, 255, .7); }

/* Spacing helpers (replace the style="" attributes of the design file; the CSP forbids inline styles). */
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mt-22 { margin-top: 22px; }
.mt-44 { margin-top: 44px; }
.mt-0 { margin-top: 0; }
.mb-6 { margin-bottom: 6px; }
.mb-16 { margin-bottom: 16px; }
.mb-18 { margin-bottom: 18px; }
.measure-14 { max-width: 14ch; }
.measure-16 { max-width: 16ch; }

/* ---------- header ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 2px solid var(--navy); }
/* padding-block only: the bar keeps the .wrap gutters, so the logo lines up with the page content. */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.brand { display: block; flex: none; }
.brand img { height: 52px; width: auto; }
nav.main { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
nav.main a:not(.btn) {
  font-family: var(--sans); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  font-size: 12.5px; line-height: 1.2; padding: 10px 12px; color: var(--navy); text-decoration: none;
}
nav.main a:not(.btn):hover { background: var(--daylight); }
nav.main a[aria-current="page"], nav.main a[aria-current="page"]:hover { background: var(--navy); color: #fff; }
.nav-cta { margin-left: 10px; }
.menu-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; max-width: 100%; font-family: var(--sans); font-style: italic; font-weight: 900; text-transform: uppercase;
  letter-spacing: .05em; font-size: 13.5px; line-height: 1.6; padding: 15px 26px; border: 2px solid var(--navy);
  background: var(--navy); color: #fff; cursor: pointer; text-decoration: none; text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: #0B1433; border-color: #0B1433; }
.btn.cyan { background: var(--cyan); border-color: var(--cyan); color: #fff; }
.btn.cyan:hover { background: #1199B2; border-color: #1199B2; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.btn.ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn.ghost-light:hover { background: #fff; color: var(--navy); }
.btn.block { display: block; width: 100%; margin-top: 8px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .65; cursor: progress; }
.btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- sign panel device ---------- */
.sign { display: inline-block; max-width: 100%; position: relative; margin-bottom: 34px; }
.sign .panel { transform: skewY(-1.6deg); background: var(--navy); padding: 11px 26px; }
.sign.cyan .panel { background: var(--cyan); }
.sign .panel span { display: block; transform: skewY(1.6deg); font-family: var(--sans); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; color: #fff; }
.sign .legs { position: relative; height: 13px; }
.sign .legs i { position: absolute; top: 0; width: 7px; height: 13px; background: var(--navy); }
.sign.cyan .legs i { background: var(--cyan); }
.sign .legs i:first-child { left: 22%; }
.sign .legs i:last-child { left: 58%; }

/* ---------- sections ---------- */
section { padding: 96px 0; border-bottom: 2px solid var(--navy); }
section.navy { background: var(--navy); color: #fff; border-bottom-color: var(--navy); }
section.navy .eyebrow { color: var(--cyan); }
section.navy .sign .panel { background: var(--cyan); }
section.navy .sign .legs i { background: var(--cyan); }
section.navy .lede { color: rgba(255, 255, 255, .9); }
section.day { background: var(--daylight); }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; }
.split.align-end { align-items: end; }
.justify-end { justify-self: end; }

/* ---------- hero ---------- */
.hero { padding: 110px 0 96px; }
.hero h1 { margin-bottom: 26px; transform: rotate(-1deg); transform-origin: left center; }
.hero .lede { font-size: 21px; }
.heroGrid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.offsetBox { position: relative; }
.offsetBox::before { content: ""; position: absolute; inset: 12px -12px -12px 12px; background: var(--navy); }
.offsetBox .card { position: relative; background: #fff; color: var(--navy); border: 2px solid var(--navy); padding: 30px; }
.card-cap { margin-bottom: 18px; }

/* ---------- lists ---------- */
ul.dot { list-style: none; margin-top: 20px; }
ul.dot li { position: relative; padding-left: 24px; margin-bottom: 13px; max-width: 60ch; }
ul.dot li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; background: var(--cyan); }
ul.no { list-style: none; margin-top: 20px; }
ul.no li { position: relative; padding-left: 24px; margin-bottom: 13px; color: inherit; opacity: .85; }
ul.no li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 11px; height: 2px; background: #C2CAD8; }

/* ---------- steps / grid cards ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--navy); border: 2px solid var(--navy); margin-top: 44px; }
.grid3.four { grid-template-columns: repeat(4, 1fr); }
.grid3 > div { background: #fff; padding: 30px; }
section.navy .grid3 { background: rgba(255, 255, 255, .25); border-color: rgba(255, 255, 255, .25); }
section.navy .grid3 > div { background: var(--navy); }
.num { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--cyan); margin-bottom: 12px; }
.grid3 h3 { margin-bottom: 10px; }
.grid3 p { font-size: 16px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: rgba(255, 255, 255, .25); border: 2px solid rgba(255, 255, 255, .25); margin-top: 44px; }
.stats.flush { margin-top: 0; }
/* In a half-width column the four stats sit 2 x 2, so labels like "Provinces live" never spill out of their cells. */
.split .stats, .heroGrid .stats { grid-template-columns: 1fr 1fr; }
.stats > div { background: var(--navy); padding: 26px; min-width: 0; }
.stats .n { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--cyan); overflow-wrap: anywhere; }
.stats .l { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; margin-top: 8px; color: rgba(255, 255, 255, .8); }

/* ---------- board cards (filled from /api/boards by assets/js/board-cards.js) ---------- */
.boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.board { position: relative; display: flex; flex-direction: column; border: 2px solid var(--navy); background: #fff; transition: box-shadow .15s ease, transform .15s ease; }
.board:hover { box-shadow: 8px 8px 0 var(--navy); transform: translate(-2px, -2px); }
.boardimg { aspect-ratio: 2 / 1; background: var(--navy); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.boardimg .photo { width: 100%; height: 100%; object-fit: cover; }
/* A photo that failed is hidden while it is retried (no broken-image icon); see watchPhoto in boards-data.js. */
img.is-retrying { visibility: hidden; }
.boardimg .tag { position: absolute; top: 12px; left: 12px; background: var(--cyan); color: #fff; font-style: italic; font-weight: 900; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; padding: 5px 9px; line-height: 1.3; }
.boardimg .no-photo { color: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.board .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.board h3 { font-size: 19px; line-height: 1.05; margin-bottom: 6px; }
.board h3 a { text-decoration: none; }
/* The whole card is the link to the sales sheet (the link's box stretches over the card). */
.board h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.board h3 a:focus-visible { outline: none; }
.board h3 a:focus-visible::after { outline: 3px solid var(--cyan); outline-offset: 3px; }
.board .meta { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: rgba(19, 31, 73, .68); margin-bottom: 16px; }
.specs { border-top: 1px solid var(--hair); padding-top: 14px; font-size: 15px; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.specs span { flex: none; }
.specs b { font-weight: 700; text-align: right; min-width: 0; }

/* Loading skeleton (same frame as a card, so nothing jumps when the boards arrive). */
.board.is-skeleton { pointer-events: none; }
.board.is-skeleton:hover { box-shadow: none; transform: none; }
.board.is-skeleton .boardimg,
.board.is-skeleton .line { background: linear-gradient(90deg, var(--daylight) 0%, #F4FAFC 50%, var(--daylight) 100%); background-size: 200% 100%; animation: tbn-shimmer 1.3s linear infinite; }
.board.is-skeleton .line { height: 14px; margin: 8px 0; }
.board.is-skeleton .line.w60 { width: 60%; height: 20px; }
.board.is-skeleton .line.w40 { width: 40%; }
@keyframes tbn-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Featured boards (home): the heading row with the Pause / Play button, and the rotating cards (assets/js/home.js). */
.featured-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.featured-head h2 { min-width: 0; }
.featured-controls { flex: none; }
.rotor-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding: 6px 13px;
  border: 1.5px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer;
  font-style: italic; font-weight: 900; font-size: 12px; line-height: 1.4; letter-spacing: .09em; text-transform: uppercase;
}
.rotor-toggle:hover { background: var(--daylight); }
.rotor-icon { position: relative; flex: none; width: 10px; height: 12px; }
.rotor-icon::before, .rotor-icon::after { content: ""; position: absolute; top: 0; bottom: 0; width: 3.5px; background: currentColor; }
.rotor-icon::before { left: 0; }
.rotor-icon::after { right: 0; }
.rotor-toggle.is-paused .rotor-icon::after { display: none; }
.rotor-toggle.is-paused .rotor-icon::before { top: 0; bottom: auto; width: 0; height: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.boards.is-rotating { align-content: start; } /* the reserved height stays empty space, the cards keep their size */
.rotor-slot { display: grid; min-width: 0; }
.rotor-slot > .board { grid-area: 1 / 1; min-width: 0; } /* old and new card share the cell while they crossfade */
.rotor-slot > .board.is-leaving { pointer-events: none; }
.rotor-probe { position: absolute; top: 0; left: -10000px; visibility: hidden; align-items: start; margin: 0; }

.boards-message { margin-top: 44px; padding: 22px 24px; border: 2px solid var(--navy); background: #fff; max-width: 70ch; }
.boards-message p + p { margin-top: 6px; }
.boards-message a { font-weight: 700; }

/* Filter chips: real buttons (aria-pressed), generated from the board data. */
/* ---------- board search (Our boards, assets/js/boards-page.js) ---------- */
.board-search { max-width: 560px; margin: 28px 0 0; }
.search-box { position: relative; }
.board-search .search-box input { padding-left: 46px; } /* beats .field input */
/* A magnifier drawn in CSS (no image request). */
.search-box::before { content: ""; position: absolute; z-index: 1; left: 17px; top: 50%; width: 14px; height: 14px; margin-top: -10px; border: 2px solid var(--navy); border-radius: 50%; pointer-events: none; }
.search-box::after { content: ""; position: absolute; z-index: 1; left: 30px; top: 50%; width: 2px; height: 8px; margin-top: 0; background: var(--navy); transform: rotate(-45deg); transform-origin: top left; pointer-events: none; }
.search-pop {
  position: absolute; z-index: 30; top: calc(100% - 2px); left: 0; right: 0;
  background: #fff; border: 2px solid var(--navy); box-shadow: 0 14px 24px rgba(19, 31, 73, .16);
}
.search-list { list-style: none; max-height: min(60vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
.search-option { padding: 10px 16px; border-bottom: 1px solid var(--hair); cursor: pointer; }
.search-option:last-child { border-bottom: 0; }
.search-option:hover, .search-option.is-active { background: var(--daylight); }
.search-option.is-active { box-shadow: inset 6px 0 0 var(--cyan); }
.search-option__title { display: block; font-weight: 700; line-height: 1.3; }
.search-option__meta { display: block; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.search-note { padding: 12px 16px; font-size: 15px; color: var(--muted); }
.search-list:not([hidden]) ~ .search-note { border-top: 1px solid var(--hair); }

.chips { display: flex; gap: 7px; flex-wrap: wrap; margin: 16px 0 0; }
.chips + .chips { margin-top: 10px; }
.chip { border: 1.5px solid var(--navy); padding: 7px 13px; font-style: italic; font-weight: 900; font-size: 12px; line-height: 1.4; letter-spacing: .09em; text-transform: uppercase; background: #fff; color: var(--navy); cursor: pointer; }
.chip:hover { background: var(--daylight); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* ---------- map section (Our boards) ---------- */
.map-frame { margin-top: 32px; border: 2px solid var(--navy); background: var(--daylight); scroll-margin-top: calc(var(--header-h) + 16px); }
#board-map { --bm-height: 560px; }
/* Without JavaScript the map box holds one line saying how to see the boards. */
.note.map-noscript { position: absolute; top: 16px; left: 16px; right: 16px; margin: 0; }

/* ---------- table ---------- */
table { width: 100%; border-collapse: collapse; margin-top: 34px; border: 2px solid var(--navy); background: #fff; }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--hair); font-size: 16px; vertical-align: top; }
th { background: var(--navy); color: #fff; font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; font-size: 12.5px; }
tbody tr:last-child td { border-bottom: 0; }
td b { font-weight: 700; }

/* ---------- quote ---------- */
.quote { border-left: 6px solid var(--cyan); padding: 8px 0 8px 26px; max-width: 62ch; }
.quote p { font-size: 22px; font-family: var(--display); text-transform: uppercase; line-height: 1.15; letter-spacing: -.01em; }
.quote .who { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; margin-top: 14px; opacity: .75; }

/* ---------- cta band ---------- */
.cta { background: var(--cyan); color: #fff; padding: 80px 0; border-bottom: 2px solid var(--navy); }
.cta h2 { margin-bottom: 16px; }
.cta p { font-size: 19px; max-width: 52ch; }
.cta-form { align-items: start; }
/* Wide screens: the heading stays beside the form while the form scrolls past. */
@media (min-width: 901px) {
  .cta-form > :first-child { position: sticky; top: calc(var(--header-h) + 32px); }
}
.cta-form .offsetBox { margin-right: 12px; }

/* ---------- forms (Contact us + join) ---------- */
.field { margin-bottom: 16px; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; font-size: 12px; line-height: 1.4; margin-bottom: 7px; }
.field .req { font-weight: 700; letter-spacing: 0; }
.field input, .field select, .field textarea {
  display: block; width: 100%; font-family: var(--sans); font-size: 16px; line-height: 1.4; padding: 12px 13px;
  min-height: 48px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy);
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23131F49' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(19, 31, 73, .55); opacity: 1; }
.field input[type="date"] { text-align: left; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--cyan); outline-offset: 0; border-color: var(--navy); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
/* The contact form's welcome note, above the fields. */
.form-welcome { font-size: 18px; font-weight: 600; line-height: 1.5; margin-bottom: 14px; }
.form-note { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

/* Radio choices (join form): round marks (a navy ring, a cyan dot), so they read as radio buttons, not checkboxes. */
.field fieldset { border: 0; min-width: 0; }
.choices { display: grid; gap: 8px; }
/* label.choice beats the generic .field label rule (uppercase, spaced, block). */
.field label.choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 0; padding: 10px 13px; border: 1.5px solid var(--navy); background: #fff; cursor: pointer; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice .mark { flex: none; width: 22px; height: 22px; border: 2px solid var(--navy); border-radius: 50%; background: #fff; display: grid; place-items: center; }
.choice .mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); transform: scale(0); transition: transform .12s ease; }
.choice input:checked + .mark::after { transform: scale(1); }
.choice:has(input:checked) { background: var(--daylight); }
.choice input:focus-visible + .mark { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 50%; }

/* Inline errors: navy text, an icon, a thick navy border with a cyan bar. Never red. */
.field.has-error input, .field.has-error select, .field.has-error textarea { border: 2.5px solid var(--navy); box-shadow: inset 6px 0 0 var(--cyan); padding-left: 18px; }
.field.has-error .choice { border-width: 2.5px; }
.field-error { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; font-size: 14.5px; font-weight: 700; line-height: 1.35; color: var(--navy); }
.field-error::before { content: "!"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 900; line-height: 1; }

.form-status { margin-top: 14px; padding: 12px 14px; border: 2px solid var(--navy); border-left-width: 8px; border-left-color: var(--cyan); font-size: 15px; font-weight: 600; }
.form-status a { font-weight: 700; }
.form-thanks h3 { font-size: 30px; margin-bottom: 12px; }
.form-thanks p { font-size: 17px; }
.form-thanks .btns { margin-top: 22px; }

/* ---------- footer ---------- */
footer.site { background: var(--navy); color: #fff; padding: 64px 0 34px; }
/* The design shows the footer logo at 64px tall, from a file with a margin around the mark (the mark itself
   is about 47px tall, 10px down). This file is trimmed, so it is 48px tall with that margin added back:
   the same visible size and the same space before the blurb. */
footer.site .flogo { height: 48px; width: auto; margin: 10px 0 28px; }
.footer-blurb { font-size: 15px; opacity: .85; max-width: 34ch; }
.fgrid { display: grid; grid-template-columns: 1.4fr .6fr .6fr .8fr; gap: 40px; }
footer.site h2 { font-family: var(--sans); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; font-size: 12.5px; line-height: 1.4; color: var(--cyan); margin-bottom: 14px; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 9px; font-size: 15px; }
footer.site li a { text-decoration: none; opacity: .85; }
footer.site li a:hover { opacity: 1; text-decoration: underline; }
.legal { border-top: 1px solid rgba(255, 255, 255, .2); margin-top: 48px; padding-top: 22px; font-size: 12.5px; opacity: .7; display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; }

.note { background: #fff; border: 2px solid var(--cyan); padding: 14px 18px; font-size: 14px; margin-top: 26px; max-width: 70ch; }

/* ---------- 404 ---------- */
.notfound, .form-sent { padding: 110px 0 120px; }
.notfound h1, .form-sent h1 { margin-bottom: 22px; }

/* =====================================================================
   Sales sheet: /board/<Board ID> (screen)
   ===================================================================== */
.sheet-hero { padding: 48px 0 40px; border-bottom: 2px solid var(--navy); }
.sheet-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 18px; font-style: italic; font-weight: 900; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.sheet-back:hover { text-decoration: underline; }
.sheet-id { font-size: clamp(44px, 6vw + 16px, 96px); transform: rotate(-1deg); transform-origin: left center; }
.sheet-location { font-size: clamp(20px, 1.2vw + 14px, 26px); font-weight: 700; margin-top: 18px; line-height: 1.3; }
.sheet-meta { margin-top: 10px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.sheet-body { padding: 56px 0 96px; }
/* Wide screens: the photo with the description right under it on the left; details and buttons on the right. */
.sheet-grid {
  display: grid; grid-template-columns: 1.35fr .65fr; grid-template-rows: auto 1fr; column-gap: 48px; align-items: start;
  grid-template-areas: "photo side" "about side";
}
.sheet-photo { grid-area: photo; }
.sheet-side { grid-area: side; }
.sheet-about { grid-area: about; min-width: 0; }
.sheet-photo { border: 2px solid var(--navy); background: var(--navy); aspect-ratio: 2 / 1; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet-photo .no-photo { color: rgba(255, 255, 255, .8); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; }
.sheet-specs { border: 2px solid var(--navy); }
.sheet-specs h2, .sheet-section h2 { font-family: var(--sans); font-style: italic; font-weight: 900; font-size: 14px; letter-spacing: .05em; line-height: 1.3; }
.sheet-specs h2 { background: var(--navy); color: #fff; padding: 12px 18px; }
.sheet-specs dl { padding: 6px 18px 10px; }
.sheet-specs dl div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.sheet-specs dl div:last-child { border-bottom: 0; }
.sheet-specs dt { font-size: 15px; flex: 1 1 auto; }
/* A value that does not fit beside its label moves to its own line instead of breaking mid-number. */
.sheet-specs dd { flex: 0 1 auto; margin-left: auto; font-weight: 700; text-align: right; min-width: 0; overflow-wrap: break-word; }
.sheet-section { margin-top: 40px; }
.sheet-section h2 { margin-bottom: 12px; }
.sheet-section p { font-size: 17px; }
.sheet-coords { font-variant-numeric: tabular-nums; }
.sheet-section .text-link { font-weight: 700; }
.also-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.also-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--navy); text-decoration: none; font-weight: 700; }
.also-list a:hover { background: var(--daylight); }
.sheet-actions { margin-top: 28px; flex-direction: column; align-items: stretch; }
.sheet-print { display: none; }
.sheet-state { padding: 96px 0 120px; }
.sheet-state h1 { margin-bottom: 20px; }
.note.sheet-noscript { margin: 0 0 18px; }

/* While the board loads, the sheet is a skeleton at its final size (sheet.js removes "is-loading"). */
.sheet.is-loading .sheet-id,
.sheet.is-loading .sheet-location,
.sheet.is-loading .sheet-meta,
.sheet.is-loading .sheet-photo,
.sheet.is-loading .sheet-specs dd,
.sheet.is-loading [data-field="description"],
.sheet.is-loading .sheet-coords {
  background: linear-gradient(90deg, var(--daylight) 0%, #F4FAFC 50%, var(--daylight) 100%); background-size: 200% 100%;
  animation: tbn-shimmer 1.3s linear infinite; color: transparent;
}
.sheet.is-loading .sheet-id { width: 5.6em; height: .95em; }
.sheet.is-loading .sheet-location { width: min(16em, 100%); height: 1.3em; }
.sheet.is-loading .sheet-meta { width: min(18em, 100%); height: 1.6em; }
.sheet.is-loading .sheet-photo { border-color: var(--daylight); }
.sheet.is-loading .sheet-specs dd { width: 4em; height: 1.6em; align-self: center; }
.sheet.is-loading [data-field="description"] { height: 4.8em; }
.sheet.is-loading .sheet-coords { display: inline-block; width: 11em; height: 1.4em; vertical-align: bottom; }
.sheet.is-loading .sheet-actions { visibility: hidden; }

/* =====================================================================
   Responsive layer (the design file is desktop-only)
   ===================================================================== */
@media (max-width: 1100px) {
  .grid3.four { grid-template-columns: repeat(2, 1fr); }
  .fgrid { grid-template-columns: 1.2fr .8fr .8fr .8fr; gap: 28px; }
}

/* Header: logo + Menu button; the nav opens as a panel under the header. */
@media (max-width: 959px) {
  :root { --header-h: 62px; }
  .bar { padding-block: 9px; gap: 16px; }
  .brand { padding: 2px 0; } /* a 44px tap target around the 40px logo */
  .brand img { height: 40px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 14px;
    border: 2px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer;
    font-style: italic; font-weight: 900; font-size: 13px; letter-spacing: .05em; text-transform: uppercase;
  }
  .menu-toggle[aria-expanded="true"] { background: var(--navy); color: #fff; }
  .menu-toggle .bars { position: relative; width: 18px; height: 12px; flex: none; }
  .menu-toggle .bars i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .15s ease, opacity .15s ease; }
  .menu-toggle .bars i:nth-child(1) { top: 0; }
  .menu-toggle .bars i:nth-child(2) { top: 5px; }
  .menu-toggle .bars i:nth-child(3) { top: 10px; }
  .menu-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  nav.main {
    display: none; position: absolute; top: calc(100% + 2px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0;
    padding: 6px var(--gutter) 22px; background: #fff; border-bottom: 2px solid var(--navy);
    box-shadow: 0 14px 24px rgba(19, 31, 73, .16);
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
  }
  nav.main.is-open { display: flex; }
  nav.main a:not(.btn) { display: flex; align-items: center; min-height: 52px; padding: 10px 12px; font-size: 15px; border-bottom: 1px solid var(--hair); }
  .nav-cta { margin: 18px 0 0; }
}

@media (max-width: 900px) {
  .heroGrid, .split, .split.even { grid-template-columns: 1fr; gap: 40px; }
  .justify-end { justify-self: start; }
  .grid3 { grid-template-columns: 1fr; }
  .boards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .fgrid { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
  .fgrid > :first-child { grid-column: 1 / -1; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0; }
  .offsetBox::before { inset: 7px -7px -7px 7px; }
  .cta-form .offsetBox { margin-right: 7px; }
  .sheet-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "photo" "side" "about"; row-gap: 28px; }
  .sheet-about > .sheet-section:first-child { margin-top: 12px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .hero { padding: 48px 0 56px; }
  .hero .lede, .lede { font-size: 18px; }
  .cta { padding: 56px 0; }
  .cta p { font-size: 18px; }
  .sign { margin-bottom: 26px; }
  .grid3.four { grid-template-columns: 1fr; }
  .grid3 > div { padding: 24px 22px; }
  .boards { grid-template-columns: 1fr; margin-top: 32px; }
  .stats > div { padding: 18px 16px; }
  .stats .n { font-size: clamp(30px, 9vw, 40px); }
  .stats .l { letter-spacing: .1em; }
  .offsetBox .card { padding: 22px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .form-welcome { font-size: 17px; }
  .quote p { font-size: 20px; }
  .quote { padding-left: 20px; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  footer.site { padding-top: 48px; }
  .legal { margin-top: 36px; }
  .map-frame { margin-top: 24px; }
  /* On phones the map takes most of the screen, so an open board's sheet has room for its photo,
     details and buttons. When a pin is tapped the page scrolls the map's top to just under the
     header (boards-page.js), so the whole map is in view. Landscape phones are handled below. */
  #board-map { --bm-height: clamp(480px, 78svh, 720px); }
  .sheet-body { padding: 36px 0 64px; }
  .sheet-hero { padding: 28px 0 32px; }

  /* Tables stack: each row becomes a block, with the column name before each value. */
  table, thead, tbody, tr, th, td { display: block; }
  table { margin-top: 26px; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  tr { padding: 14px 16px; border-bottom: 1px solid var(--hair); }
  tbody tr:last-child { border-bottom: 0; }
  td { padding: 2px 0; border: 0; font-size: 16px; }
  td:first-child { font-size: 17px; margin-bottom: 2px; }
  td[data-label]::before { content: attr(data-label) ": "; display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-top: 6px; }
}

@media (max-width: 359px) {
  .rotor-toggle .rotor-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* icon only */
}

@media (max-width: 380px) {
  .btns { gap: 10px; }
  .btns .btn { padding: 14px 18px; }
  .stats .l { letter-spacing: .06em; }
  .specs { font-size: 14.5px; }
}

/* Touch screens: every chip and small control is at least 44px tall. */
@media (pointer: coarse) and (min-width: 960px) {
  nav.main a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; } /* tablets in landscape */
}
@media (pointer: coarse) {
  .chip, .rotor-toggle { min-height: 44px; }
  .rotor-toggle { min-width: 44px; justify-content: center; } /* icon only below 360px wide */
  footer.site li { margin-bottom: 0; }
  footer.site li a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Phones on their side: the header scrolls away instead of sticking, so it never covers the map or a form. */
@media (max-height: 500px) and (orientation: landscape) {
  header.site { position: relative; }
  :root { --header-h: 0px; }
  #board-map { --bm-height: calc(100svh - 24px); min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =====================================================================
   Print: the sales sheet fits one US Letter page (portrait). Every other
   page prints as plain content without the header, menu or footer.
   ===================================================================== */
@page { size: letter portrait; margin: 0.5in; }

@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html { scroll-behavior: auto; }
  body { font-size: 10.5pt; line-height: 1.45; }
  header.site, footer.site, .skip-link, .menu-toggle, .btns, .sheet-back, .sheet-actions, .board-search, .cta form { display: none !important; }
  section, .cta { padding: 18pt 0; break-inside: auto; }
  .wrap { max-width: none; padding: 0; }

  /* Sales sheet */
  .sheet { color: var(--navy); }
  .sheet-print { display: block; }
  .sheet-print--head { display: flex; align-items: center; justify-content: space-between; gap: 18pt; padding-bottom: 10pt; margin-bottom: 12pt; border-bottom: 2pt solid var(--navy); }
  .sheet-print--head img { height: 0.62in; width: auto; }
  .sheet-print--head .label { font-style: italic; font-weight: 900; font-size: 9pt; letter-spacing: .06em; text-transform: uppercase; text-align: right; }
  .sheet-print--head .label b { display: block; font-family: var(--display); font-style: normal; font-weight: 500; font-size: 20pt; line-height: 1; letter-spacing: 0; margin-top: 2pt; }
  .sheet-hero { padding: 0 0 8pt; border: 0; }
  .sheet-id { display: none; }
  .sheet-location { margin-top: 0; font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: 20pt; line-height: 1.05; }
  .sheet-meta { margin-top: 4pt; font-size: 8.5pt; color: var(--navy); }
  .sheet-body { padding: 0; }
  .sheet-grid { display: block; }
  /* The sheet is one page tall and the photo takes the height left over: a long description
     makes the photo shorter instead of pushing the contact box onto a second page. */
  .sheet-view { display: flex; flex-direction: column; height: 9.9in; overflow: hidden; }
  .sheet-view > *, .sheet-body > .wrap > * { flex: none; }
  .sheet-view .wrap { margin: 0; width: 100%; }
  .sheet-body, .sheet-body > .wrap, .sheet-body > .wrap > .sheet-grid { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  .sheet-body > .wrap > .sheet-grid { align-items: stretch; gap: 0; }
  .sheet-side, .sheet-about { flex: none; }
  .sheet-about > .sheet-section:first-child { margin-top: 10pt; }
  .sheet-photo { flex: 1 1 3.4in; min-height: 1.5in; max-height: 3.6in; aspect-ratio: auto; height: auto; border-width: 1.5pt; }
  .sheet-specs { margin-top: 10pt; border-width: 1.5pt; break-inside: avoid; }
  .sheet-specs h2 { padding: 5pt 10pt; font-size: 9pt; }
  .sheet-specs dl { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; }
  .sheet-specs dl div { display: block; padding: 6pt 10pt; border-bottom: 0; border-right: 1pt solid var(--hair); border-top: 1pt solid var(--hair); }
  .sheet-specs dl div:nth-child(3n) { border-right: 0; }
  .sheet-specs dt { font-size: 7.5pt; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }
  .sheet-specs dd { text-align: left; font-size: 10.5pt; }
  .sheet-section { margin-top: 10pt; break-inside: avoid; }
  .sheet-section h2 { font-size: 9pt; margin-bottom: 3pt; }
  .sheet-section p { font-size: 10pt; max-width: none; }
  .sheet-section .text-link-wrap { display: none; }
  [data-field="description"] { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 14; line-clamp: 14; overflow: hidden; }
  .sheet-section--also { display: none; }
  .sheet-print--foot { display: grid; grid-template-columns: 1fr auto; gap: 18pt; align-items: center; margin-top: 12pt; padding: 10pt 12pt; border: 1.5pt solid var(--navy); background: var(--daylight); break-inside: avoid; }
  .sheet-print--foot .contact-head { font-family: var(--display); text-transform: uppercase; font-size: 15pt; line-height: 1.1; }
  .sheet-print--foot .contact-head .contact { font-family: var(--sans); text-transform: none; font-weight: 700; font-size: 13pt; overflow-wrap: anywhere; }
  .sheet-print--foot p { font-size: 10pt; max-width: none; margin-top: 3pt; }
  .sheet-print--foot .url { font-weight: 700; overflow-wrap: anywhere; }
  .sheet-print--foot .qr { width: 1.05in; height: 1.05in; background: #fff; padding: 4pt; }
  .sheet-print--foot .qr svg { display: block; width: 100%; height: 100%; }
  .sheet-printed { display: block; margin-top: 6pt; font-size: 7.5pt; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
}
