/* ============================================================
   Sweden 2026 — USA Bandy / Minneapolis Hockey trip site
   Design tokens
   ============================================================ */
:root {
  /* Brand colors (fixed by client) */
  --blue: #002868;      /* Old Glory Blue — primary */
  --red: #BF0A30;       /* Old Glory Red — accent */
  --white: #FFFFFF;     /* Pure White */

  /* Supporting palette, built around the brand colors */
  --blue-dark: #001640;
  --blue-mid: #123B82;
  --ink: #0A1830;        /* body text — near-navy, softer than pure blue */
  --gray: #55617A;       /* secondary text */
  --gray-light: #8A93A8;
  --ice: #EFF3F8;        /* section background — "rink ice" */
  --ice-deep: #E3E9F2;
  --line: #D7DEEA;       /* hairline borders */
  --gold: #FFCD00;       /* Swedish flag yellow — sparing accent only */
  --gold-dark: #B38F00;
  --success: #146C43;

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1120px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--blue);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.05rem; text-transform: none; }

p { margin: 0 0 1em; max-width: 68ch; }
p.lede { font-size: 1.15rem; color: var(--gray); max-width: 56ch; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

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

/* ============================================================
   Jersey-stripe divider — the one recurring structural motif,
   modeled on a bandy/hockey sock cuff (red / white / red on navy)
   ============================================================ */
.jersey-divider {
  height: 14px;
  background:
    repeating-linear-gradient(
      to bottom,
      var(--red) 0 4px,
      var(--white) 4px 6px,
      var(--red) 6px 10px,
      var(--white) 10px 12px,
      var(--blue) 12px 14px
    );
}
.jersey-divider--thin { height: 8px; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue);
  border-bottom: 3px solid var(--red);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  min-width: 0;
}
.nav-brand img {
  height: 44px;
  width: 44px;
  flex: none;
}
.nav-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-brand .brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
}
.nav-brand .brand-sub {
  font-size: 0.72rem;
  color: #B9C6E4;
  letter-spacing: 0.03em;
}
.nav-brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover { text-decoration: none; border-bottom-color: #6C82AE; }
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--red);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-links { 
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--blue-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 18px;
    gap: 4px;
    border-bottom: 3px solid var(--red);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 10px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    border-left: 3px solid transparent;
  }
  .nav-links a[aria-current="page"] { border-left-color: var(--red); border-bottom-color: rgba(255,255,255,0.12); }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
  .nav { position: relative; }
}

/* Status strip under header on home page */
.status-strip {
  background: var(--blue-dark);
  color: #CBD8F1;
  font-size: 0.88rem;
}
.status-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding: 8px 24px;
  align-items: center;
}
.status-strip strong { color: var(--white); }
.status-strip .dot { color: var(--gold); }

/* ============================================================
   Hero — with a slow 3-photo crossfade background from the trip
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--blue-dark); /* fallback while images load */
  color: var(--white);
  padding: 48px 0 56px;
}
.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 0;
  animation: heroBgFade 24s infinite;
}
.hero-bg-layer:nth-child(1) { animation-delay: 0s; }
.hero-bg-layer:nth-child(2) { animation-delay: 8s; }
.hero-bg-layer:nth-child(3) { animation-delay: 16s; }
@keyframes heroBgFade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  29%  { opacity: 1; }
  33%  { opacity: 0; }
  100% { opacity: 0; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(0,40,104,0.84) 0%, rgba(0,22,64,0.92) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-layer { animation: none; opacity: 0; }
  .hero-bg-layer:nth-child(1) { opacity: 1; }
}
.hero .container {
  position: relative;
  z-index: 2;
  display: block;
  text-align: left;
}
.hero-eyebrow {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.hero h1 { color: var(--white); margin-bottom: 8px; }
.hero .hero-dates {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #EAF0FB;
  margin-bottom: 16px;
}
.hero .hero-sub { color: #B9C6E4; max-width: 68ch; margin-bottom: 0; }

.countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-bottom: 24px;
}
.countdown .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--white);
}
.countdown .label {
  color: #C9D5EF;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .hero .container { text-align: center; }
  .countdown { margin-left: auto; margin-right: auto; }
}

/* Simple sub-page header (non-home pages) — same 3-photo
   crossfade treatment as the hero, reusing .hero-bg-layer /
   .hero-overlay since both are already position:absolute;inset:0
   and don't depend on being inside .hero specifically. */
.page-header {
  position: relative;
  overflow: hidden;
  background: var(--blue); /* fallback while images load */
  color: var(--white);
  padding: 46px 0 34px;
}
.page-header .container {
  position: relative;
  z-index: 2;
}
.page-header .eyebrow { color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.page-header h1 { color: var(--white); margin-bottom: 6px; }
.page-header p { color: #C4D1EC; margin: 0; max-width: 62ch; }

/* ============================================================
   Sections & general layout
   ============================================================ */
.section { padding: 56px 0; }
.section--ice { background: var(--ice); }
.section-head { margin-bottom: 28px; max-width: 72ch; }
.section-head .kicker {
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.grid {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 780px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Quick-link tiles on home */
.tile {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  padding: 22px 20px;
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tile:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,40,104,0.12);
}
.tile h3 { margin-bottom: 6px; }
.tile p { margin: 0; color: var(--gray); font-size: 0.95rem; }
.tile .tile-arrow { color: var(--red); font-weight: 700; }

/* Snapshot strip */
.snapshot {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  text-align: center;
}
.snapshot .item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 10px;
}
.snapshot .item .big {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--blue);
  font-weight: 700;
}
.snapshot .item .small {
  color: var(--gray);
  font-size: 0.82rem;
}
@media (max-width: 900px) {
  .snapshot { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .snapshot { grid-template-columns: repeat(2, 1fr); }
}

/* Update card */
.update-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.update-card .update-date {
  font-size: 0.82rem;
  color: var(--gray);
  text-transform: none;
  margin-bottom: 6px;
}
.update-card blockquote {
  margin: 12px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  color: var(--gray);
  font-style: italic;
}

/* Cards (roster, gear, extras) */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.card--red { border-left-color: var(--red); }
.card--open { border-left-style: dashed; border-left-color: var(--gray-light); }
.card--warn { border-left-color: var(--red); background: #FBEFEF; }
.card h3 { margin-bottom: 4px; }
.card .role-owner {
  font-weight: 600;
  color: var(--blue);
  font-size: 0.92rem;
}
.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Icon badge used on roster cards */
.role-icon {
  display: inline-flex;
  gap: 4px;
  color: var(--blue);
  margin-bottom: 8px;
}
.role-icon .icon { width: 1.7em; height: 1.7em; vertical-align: -0.3em; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--ice-deep); color: var(--blue); font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; }
tbody tr:last-child td { border-bottom: none; }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: none; }
.checklist input[type="checkbox"] {
  width: 19px; height: 19px;
  margin-top: 2px;
  accent-color: var(--red);
  flex: none;
}
.checklist label { cursor: pointer; }
.checklist .note { color: var(--gray); font-size: 0.88rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #a30828; }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-small { padding: 7px 12px; font-size: 0.85rem; }

/* Callouts */
.callout {
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--ice);
}
.callout--warn {
  background: #FBEFEF;
  border-color: #E9C4CB;
}
.callout--warn strong { color: var(--red); }
.callout--gold {
  background: #FFF8DF;
  border-color: #F0DE9C;
}

/* ---------- Itinerary event rows ---------- */
.event-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.event-row:last-child { border-bottom: none; }
.event-info h4 { margin: 0 0 2px; color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: 1rem; }
.event-info .event-when { color: var(--gray); font-size: 0.9rem; }
.event-info .event-when .tz { color: var(--gray-light); }
.event-info .event-tbd { color: var(--red); font-weight: 600; font-size: 0.85rem; }

/* Trip-essentials strip — thin, sits right under the page header */
.trip-essentials {
  background: var(--blue-dark);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.trip-essentials .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding: 10px 24px;
  font-size: 0.85rem;
  color: #C9D5EF;
}

/* Compact calendar-sync bar (Direction C) — a utility strip, not a hero */
.sync-bar {
  background: var(--blue);
}
.sync-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 24px 6px;
}
.sync-bar-text {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.98rem;
}
.sync-bar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.sync-bar-note {
  color: #A9B9DE;
  font-size: 0.78rem;
  margin: 0;
  padding: 0 24px 12px;
  max-width: 74ch;
}

/* ---------- Day rail (Direction B) ---------- */
.day-rail-wrap {
  margin-bottom: 8px;
  position: relative;
}
.day-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.day-chip {
  flex: none;
  min-width: 76px;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 3px solid transparent;
  border-radius: var(--radius);
  padding: 10px 10px 7px;
  text-align: center;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.day-chip:hover { box-shadow: 0 4px 12px rgba(0,40,104,0.1); }
.day-chip .chip-dow {
  font-size: 0.7rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.day-chip .chip-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--blue);
  line-height: 1.1;
}
.day-chip .chip-icons {
  margin-top: 4px;
  color: var(--blue);
  display: flex;
  justify-content: center;
  gap: 3px;
}
.day-chip .chip-icons .icon { width: 15px; height: 15px; }
.day-chip.active .chip-icons { color: var(--white); }
.day-chip--tbd .chip-icons { color: var(--gray-light); }
.day-chip.active {
  background: var(--blue);
  border-color: var(--blue);
}
.day-chip.active .chip-dow { color: #B9C6E4; }
.day-chip.active .chip-date { color: var(--white); }
.day-chip.is-today { position: relative; }
.day-chip.is-today::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin: 0 auto 4px;
}
.day-chip--tbd {
  border-style: dashed;
  border-color: var(--gray-light);
}
.day-chip--tbd .chip-date { color: var(--gray-light); font-size: 1.1rem; }
.day-chip--tbd.active { background: var(--gray-light); border-color: var(--gray-light); }

/* Location-by-day: each chip carries a colored underline matching
   where that day happens, keyed to the legend above the rail. */
.day-chip--transit { border-bottom-color: var(--gold); }
.day-chip--vasteras { border-bottom-color: var(--blue-mid); }
.day-chip--stockholm { border-bottom-color: var(--red); }
.day-chip.active.day-chip--transit,
.day-chip.active.day-chip--vasteras,
.day-chip.active.day-chip--stockholm {
  border-bottom-color: var(--gold);
}

.rail-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--gray);
}
.rail-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.rail-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex: none;
}
.rail-legend-dot--transit { background: var(--gold); }
.rail-legend-dot--vasteras { background: var(--blue-mid); }
.rail-legend-dot--stockholm { background: var(--red); }

/* Location badge inside each open day panel — reinforces the same
   color coding at the point where it matters most. */
.panel-location {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: auto;
}
.panel-location--transit { background: #FFF8DF; color: var(--gold-dark); }
.panel-location--vasteras { background: #E9EEF8; color: var(--blue-mid); }
.panel-location--stockholm { background: #FBEFEF; color: var(--red); }

.day-panels { margin-top: 10px; }
.day-panel { display: none; }
.day-panel.active { display: block; animation: fadeIn 0.15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.day-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.day-panel-head h3 { margin: 0; }
.panel-daynum {
  flex: none;
  background: var(--blue);
  color: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .trip-essentials .container, .sync-bar-inner { justify-content: center; text-align: center; }
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Day-by-day itinerary */
.day-block { margin-bottom: 30px; }
.day-block .day-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.day-block .day-num {
  background: var(--blue);
  color: var(--white);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.day-block .day-date { color: var(--gray); font-weight: 500; font-size: 0.95rem; }

/* Contact / crew grid */
.crew-open-banner {
  background: #FFF8DF;
  border: 1px solid #F0DE9C;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 26px;
}

/* Place / venue metadata footer — address + official site link, attached to a card */
.place-meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 0.82rem;
  color: var(--gray);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
}
.place-meta .place-addr {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
}
.place-meta .place-addr::before {
  content: "📍";
  font-size: 0.85em;
}
.place-meta a.place-link {
  color: var(--blue-mid);
  font-weight: 600;
  white-space: nowrap;
}
.place-meta a.place-link::after {
  content: " ↗";
}
.place-meta .place-unconfirmed {
  color: var(--gray-light);
  font-style: italic;
}

/* FAQ accordion (native details/summary) */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 4px;
  font-weight: 700;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--red);
  flex: none;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer { padding: 0 4px 18px; color: var(--gray); max-width: 66ch; }

/* Footer */
.site-footer {
  background: var(--blue-dark);
  color: #B9C6E4;
  padding: 40px 0 28px;
  margin-top: 40px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 10px; }
.site-footer a { color: #B9C6E4; }
.site-footer a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 12px; max-width: 320px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-legal { font-size: 0.8rem; color: #7C8CB3; margin-top: 26px; }
.footer-cols { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.9rem; }

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.gap-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   Printable letter — school absence letter, styled to echo
   Steve's original letterhead, with a working print stylesheet
   ============================================================ */
.letter-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.letter-paper {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 56px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 12px 30px rgba(0,40,104,0.08);
}
.letter-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 6px;
}
.letter-head img { width: 64px; height: 64px; flex: none; }
.letter-head h2 {
  margin: 0;
  color: var(--blue);
  font-size: 1.5rem;
  text-align: center;
}
.letter-paper .letter-body p {
  max-width: none;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.7;
}
.letter-sig { margin-top: 6px; }
.letter-sig p { margin: 0; line-height: 1.5; }

@media print {
  .site-header, .status-strip, .page-header, .site-footer,
  .letter-actions, .no-print, .jersey-divider { display: none !important; }
  body { background: var(--white); }
  main { padding: 0; }
  .section { padding: 0; }
  .letter-paper {
    box-shadow: none;
    border: none;
    padding: 0;
    max-width: 100%;
  }
}

/* ============================================================
   Icon system — a small geometric, single-weight line-icon set
   standing in for emoji. Every icon shares the same stroke
   weight, cap/join style, and 24x24 canvas so the set reads as
   one designed family. Color always comes from context via
   currentColor — never hardcode a fill/stroke color on .icon
   itself. A few icons (pin, calendar, ghost, print) carry one
   small solid dot as a deliberate, sparingly-used accent for
   "marker" points — not decoration, a consistent signal.
   ============================================================ */
.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
  flex: none;
  display: inline-block;
}
.icon-sm { width: 0.85em; height: 0.85em; }
.icon-lg { width: 1.7em; height: 1.7em; vertical-align: -0.3em; }
.icon-xl { width: 2.2em; height: 2.2em; vertical-align: -0.4em; }

/* Icon + label pairing, used in place of "emoji + text" headings */
.icon-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Two small icons side by side, e.g. day-rail chips */
.icon-pair {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Location-pin marker for place-meta — CSS-driven so every
   instance updates from one place instead of touching each
   page's markup. */
.place-meta .place-addr::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 1px;
  vertical-align: -2px;
  background-color: var(--gray);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21C12 21 5 13.5 5 9A7 7 0 1119 9C19 13.5 12 21 12 21Z'/><circle cx='12' cy='9' r='2.3' fill='black' stroke='none'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21C12 21 5 13.5 5 9A7 7 0 1119 9C19 13.5 12 21 12 21Z'/><circle cx='12' cy='9' r='2.3' fill='black' stroke='none'/></svg>");
}

/* ============================================================
   Universal update banner — sits directly under the header on
   every page, points at /updates.html. Not part of the main
   nav on purpose: it's a notification, not a section.
   ============================================================ */
.update-banner-bar {
  background: var(--blue-dark);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.update-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 9px;
  padding-bottom: 9px;
  text-decoration: none;
  font-size: 0.85rem;
  color: #D7E0F3;
}
.update-banner:hover {
  text-decoration: none;
  background: rgba(255,255,255,0.05);
}
.update-banner-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}
.update-banner-label {
  font-weight: 700;
  color: var(--gold);
  flex: none;
  white-space: nowrap;
}
.update-banner-arrow {
  flex: none;
  color: var(--gold);
  transition: transform 0.15s ease;
}
.update-banner:hover .update-banner-arrow {
  transform: translateX(3px);
}
@media (max-width: 640px) {
  .update-banner-label { white-space: normal; }
}

/* Updates log page */
.updates-list { display: flex; flex-direction: column; gap: 22px; }
