/* ===== NW FAMILY ROAD TRIP — Design System =====
   Palette: deep forest night, golden hour, trail dust, sky blue
   Fonts: Playfair Display (headlines) + Inter (body) + DM Mono (data/times)
   Signature: topographic contour lines as decorative texture
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@400;500;600&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* --- raw palette (named after the place, referenced everywhere) --- */
  --forest:    #1a2b1f;
  --pine:      #2d4a35;
  --meadow:    #4a7c5f;
  --gold:      #d4883a;
  --amber:     #f0a94c;
  --sky:       #6b9ebb;
  --dust:      #c4a882;
  --cream:     #f5f0e8;
  --parchment: #ede6d6;
  --ink:       #1a1a1a;
  --muted:     #6b6b6b;
  --white:     #ffffff;
  --danger:    #9a3a2f;          /* delete/destructive text */

  /* --- semantic roles (use these in new rules) --- */
  --bg:         var(--cream);
  --surface:    var(--white);
  --surface-2:  var(--parchment);   /* insets, chips, secondary buttons */
  --text:       var(--ink);
  --text-muted: var(--muted);
  --line:       rgba(45,74,53,0.14); /* the one hairline border value */
  --line-soft:  var(--parchment);    /* row/list dividers */
  --accent:     var(--gold);
  --accent-2:   var(--amber);
  --brand:      var(--forest);

  /* --- fonts --- */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* --- spacing scale (4px base) --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;

  /* --- type scale --- */
  --fs-eyebrow: 0.72rem;
  --fs-xs:  0.78rem;
  --fs-sm:  0.85rem;
  --fs-base:0.95rem;
  --fs-md:  1rem;
  --fs-lg:  1.15rem;
  --fs-h3:  clamp(1.1rem, 1.6vw, 1.3rem);
  --fs-h2:  clamp(1.5rem, 2.6vw, 2.2rem);
  --fs-h1:  clamp(2.1rem, 4.6vw, 3.6rem);
  --tracking-label: 0.14em;

  /* --- elevation + radius --- */
  --radius:    8px;
  --radius-sm: 5px;
  --radius-pill: 99px;
  --shadow-xs: 0 1px 2px rgba(26,43,31,0.06);
  --shadow:    0 2px 10px rgba(26,43,31,0.08);
  --shadow-lg: 0 10px 34px rgba(26,43,31,0.16);
  --ring:      0 0 0 3px rgba(74,124,95,0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

/* ===== TOPOGRAPHIC BACKGROUND TEXTURE ===== */
.topo-bg {
  background-color: var(--forest);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(74,124,95,0.18) 28px,
      rgba(74,124,95,0.18) 29px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 28px,
      rgba(74,124,95,0.10) 28px,
      rgba(74,124,95,0.10) 29px
    );
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.18; }
h1 { font-size: var(--fs-h1); font-weight: 900; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: var(--fs-h2); font-weight: 700; text-wrap: balance; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }

.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }

/* Shared focus treatment — a soft ring that follows each element's own radius. */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, [tabindex]:focus-visible { outline: none; box-shadow: var(--ring); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm); line-height: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn:disabled, .btn[disabled] { opacity: .4; cursor: default; pointer-events: none; }
.btn--primary   { background: var(--forest); color: var(--white); }
.btn--primary:hover { background: var(--pine); }
.btn--accent    { background: var(--accent); color: var(--white); }
.btn--accent:hover  { background: var(--accent-2); color: var(--forest); }
.btn--secondary { background: var(--surface-2); color: var(--pine); border-color: var(--line); }
.btn--secondary:hover { background: var(--dust); }
.btn--outline   { background: var(--surface); color: var(--pine); border-color: var(--line); box-shadow: var(--shadow); }
.btn--outline:hover { background: var(--brand); color: var(--amber); }
.btn--danger    { color: var(--danger); }
.btn--danger:hover  { background: #e8c4bd; }
.btn--dashed    { background: transparent; border: 1px dashed rgba(212,136,58,0.5); color: var(--accent); font-family: var(--font-mono); font-size: var(--fs-xs); }
.btn--dashed:hover  { background: rgba(212,136,58,0.1); color: var(--forest); }
.btn--sm    { font-size: var(--fs-xs); padding: var(--space-2) var(--space-3); }
.btn--block { width: 100%; }
.btn--mono  { font-family: var(--font-mono); }

/* ===== NAV ===== */
.nav {
  background: var(--forest);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--pine);
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.nav-links a {
  color: var(--dust);
  text-decoration: none;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--pine); color: var(--amber); }
.nav-links a.active { background: var(--gold); color: var(--white); }
/* Compact mobile nav: a CSS-only checkbox hamburger (no JS). The checkbox is
   focusable but visually hidden; the label is the visible control. */
.nav-burger {
  display: none;
  background: none; border: none; color: var(--dust);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm);
}
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; }
.nav-toggle:focus-visible ~ .nav-burger { box-shadow: var(--ring); }

/* ===== HERO (INDEX) ===== */
.hero {
  min-height: clamp(380px, 56vh, 520px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-7) var(--space-5);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(26,43,31,0) 35%, rgba(26,43,31,0.5) 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero-sub {
  font-size: 1.1rem;
  color: var(--dust);
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero-stats {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(196,168,130,0.25);
}
.hero-stat-val {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--amber);
  line-height: 1;
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dust);
  margin-top: 0.2rem;
}

/* ===== SUMMARY TABLE ===== */
.section { padding: var(--space-7) var(--space-5); max-width: 1100px; margin: 0 auto; }
.section--tight { padding-top: 0; }
.section h2 { margin-bottom: var(--space-3); }
.section .lead { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--space-4); }
.section-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.link-accent { color: var(--accent); }

/* Plan-ahead board (homepage "Know Before You Go") */
.kbyg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-4); }
.tz-alert h4 a { color: var(--forest); text-decoration: none; }
.tz-alert p + p { margin-top: var(--space-2); }

/* Quick-reference data table (homepage Jr. Ranger stops) */
.ref-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.ref-table thead tr { background: var(--forest); color: var(--white); }
.ref-table th {
  text-align: left; padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em;
}
.ref-table td { padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--line-soft); }
.ref-table tbody tr:nth-child(even) { background: rgba(74,124,95,0.04); }
.ref-table td:first-child { font-family: var(--font-mono); color: var(--text-muted); }
.ref-table .ref-day { color: var(--accent); text-decoration: none; }
.ref-table .ref-muted { color: var(--text-muted); }

/* ===== DAY CARDS (INDEX GRID) ===== */
.days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.day-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid rgba(74,124,95,0.15);
  display: block;
}
.day-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.day-card-header {
  background: var(--forest);
  border-top: 2px solid var(--accent);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.day-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.day-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.day-card-body { padding: 1rem 1.25rem; }
.day-card-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.day-card-stops { font-size: 0.88rem; color: var(--muted); }
.day-card-stops span { display: block; padding: 0.1rem 0; }
.day-card-stops span::before { content: '→ '; color: var(--meadow); }
.day-card-badge {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  background: var(--meadow);
  color: var(--white);
  padding: 0.2rem 0.5rem;
  border-radius: 99px;
  text-transform: uppercase;
}
.badge-warning { background: var(--gold); }
.badge-info { background: var(--sky); }
.badge-tz { background: var(--amber); color: var(--forest); }

/* ===== DAY PAGE LAYOUT ===== */
.day-hero {
  padding: var(--space-6) var(--space-6) var(--space-5);
  position: relative;
  overflow: hidden;
}
.day-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(26,43,31,0) 40%, rgba(26,43,31,0.45) 100%);
}
.day-hero > * { position: relative; z-index: 1; }
.day-hero-top {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.day-date-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--amber);
  color: var(--forest);
  padding: 0.2rem 0.7rem;
  border-radius: 99px;
  letter-spacing: 0.08em;
}
.day-hero h1 { color: var(--white); margin-bottom: 0.25rem; }
.day-hero-sub { color: var(--dust); font-size: 0.95rem; }

.day-content {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--line);
}
.card-header {
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border-bottom: 1px solid var(--line-soft);
}
.card-icon { font-size: 1.1rem; }
.card-header h3 { font-size: 1rem; font-weight: 600; font-family: var(--font-body); }
.card-body { padding: 1.25rem; }

/* ===== TIMELINE CARD ===== */
.card-header.timeline-head { background: var(--forest); }
.card-header.timeline-head h3 { color: var(--white); }
.card-header.timeline-head .card-icon { color: var(--amber); }

.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--parchment);
  align-items: start;
}
.timeline-row:last-child { border-bottom: none; }
.timeline-time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 500;
  padding-top: 0.1rem;
}
.timeline-label { font-size: 0.92rem; line-height: 1.4; }
.timeline-label .event-person { margin-right: 0.1rem; }
.timeline-sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
.timeline-row.highlight { background: rgba(212,136,58,0.06); }
.timeline-row.warn { background: rgba(240,169,76,0.1); }

/* ===== DRIVE INFO ===== */
.drive-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--parchment);
}
.drive-row:last-child { border-bottom: none; }
.drive-from-to { flex: 1; }
.drive-time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--parchment);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}
.drive-arrow { color: var(--meadow); font-weight: 600; }

/* ===== PARK INFO ===== */
.card-header.park-head { background: var(--pine); }
.card-header.park-head h3 { color: var(--white); }
.card-header.park-head .card-icon { color: var(--amber); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--parchment);
}
.info-item-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.info-item-val { font-size: 0.92rem; font-weight: 500; }

.rec-list { padding: 1.25rem; list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.rec-list li {
  font-size: 0.9rem;
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}
.rec-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  font-size: 0.45rem;
  top: 0.45rem;
  color: var(--gold);
}
.rec-list li strong { color: var(--pine); }

/* ===== HOTEL CARD ===== */
.card-header.hotel-head { background: var(--sky); }
.card-header.hotel-head h3 { color: var(--white); }
.card-header.hotel-head .card-icon { color: var(--white); }

.amenity-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 1rem 1.25rem; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  background: var(--parchment);
  color: var(--pine);
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  border: 1px solid rgba(45,74,53,0.2);
}

/* ===== WEATHER — shared stop-cell vocabulary (.wx-*) =====
   One forecast "cell" language used by both the day strip (.wx--strip) and the
   homepage glance (.wx--glance); the two differ only in scale. */
.wx-stop { display: flex; flex-direction: column; gap: var(--space-1); text-align: center; }
.wx-role {
  font-family: var(--font-mono); letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--meadow);
}
.wx-place {
  font-weight: 600; color: var(--forest); line-height: 1.25;
  display: flex; align-items: center; justify-content: center;
}
.wx-temp { font-family: var(--font-display); }
.wx-hi { font-weight: 700; color: var(--ink); }
.wx-lo { color: var(--text-muted); margin-left: var(--space-1); }
.wx-precip { font-family: var(--font-mono); color: var(--sky); }
.wx-pending { color: var(--text-muted); font-style: italic; line-height: 1.4; }
/* day-strip scale */
.wx--strip { padding: var(--space-3) var(--space-4) var(--space-4); gap: var(--space-1); }
.wx--strip .wx-role { font-size: 0.62rem; }
.wx--strip .wx-place { font-size: var(--fs-sm); min-height: 2.2em; }
.wx--strip .wx-temp { margin-top: 0.15rem; }
.wx--strip .wx-hi { font-size: 1.5rem; }
.wx--strip .wx-lo { font-size: 1.05rem; margin-left: 0.35rem; }
.wx--strip .wx-precip { font-size: 0.74rem; }
.wx--strip .wx-pending { font-size: 0.74rem; margin-top: var(--space-2); }
/* homepage-glance scale */
.wx--glance .wx-role { font-size: 0.56rem; }
.wx--glance .wx-place { font-size: 0.74rem; margin: 0.1rem 0 0.25rem; min-height: 2.3em; }
.wx--glance .wx-hi { font-size: 1.15rem; }
.wx--glance .wx-lo { font-size: var(--fs-sm); }
.wx--glance .wx-precip { font-size: 0.66rem; margin-top: 0.1rem; }
.wx--glance .wx-pending { font-size: 0.66rem; margin-top: 0.3rem; line-height: 1.3; }

/* ===== WEATHER FORECAST (day page, public) ===== */
.card-header.weather-head { background: var(--sky); }
.card-header.weather-head h3 { color: var(--white); }
.card-header.weather-head .card-icon { color: var(--white); }
.weather-date {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.92);
}
.weather-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line-soft);
}
.weather-strip .wx-stop { background: var(--surface); }
.weather-foot {
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-top: 1px solid var(--line-soft);
  text-align: right;
}

/* ===== HOMEPAGE WEATHER GLANCE ===== */
.home-weather {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: stretch;
}
@media (max-width: 720px) { .home-weather { grid-template-columns: 1fr; } }

.hw-lead {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(160deg, var(--sky), var(--meadow));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-4) var(--space-4) var(--space-5);
}
.hw-lead-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-1); }
.hw-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.9);
  color: var(--forest);
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-pill);
}
.hw-lead-date {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.92);
}
.hw-lead-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}
.hw-lead-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: var(--space-2);
}
.hw-lead-strip .wx-stop {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-2);
}
.hw-next { display: grid; grid-template-rows: repeat(3, 1fr); gap: var(--space-4); }
.hw-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sky);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: var(--space-3) var(--space-4);
}
.hw-tile-day {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.hw-tile-place { font-size: 0.92rem; font-weight: 600; color: var(--forest); line-height: 1.2; }
.hw-tile .wx-temp { margin-top: 0.1rem; }
.hw-tile .wx-hi { font-size: var(--fs-lg); }
.hw-tile .wx-lo { font-size: var(--fs-sm); }
.hw-tile .wx-precip { font-size: 0.66rem; margin-top: 0.1rem; }
.hw-tile .wx-pending { font-size: 0.66rem; font-style: italic; color: var(--text-muted); }

/* ===== DAY PAGE COMPONENTS (componentized from inline styles) ===== */
.day-hero-inner { max-width: 900px; margin: 0 auto; padding: 0 var(--space-6); }
.day-date-badge--tz { background: var(--sky); }

/* error pages (404 / 429 / 500) — shared hero sizing + back-link */
.error-hero { min-height: clamp(300px, 40vh, 360px); }
.error-cta { text-decoration: none; padding: var(--space-2) var(--space-4); margin-top: var(--space-5); }

/* card-header color variants (replacing per-card inline backgrounds) */
.card-header--sun     { background: var(--gold); }
.card-header--sun h3  { color: var(--white); }
.card-header--feature { background: var(--pine); }
.card-header--feature h3 { color: var(--white); }
.card-header--alert   { background: var(--amber); }
.card-header--alert h3 { color: var(--forest); }
.card-header .add-link { margin-left: auto; }

/* login gate placeholder */
.login-gate { display: block; text-decoration: none; border: 1px dashed rgba(45,74,53,0.3); }
.login-gate-inner { padding: var(--space-4); display: flex; align-items: center; gap: var(--space-3); }
.login-gate-icon  { font-size: 1.6rem; }
.login-gate-title { font-family: var(--font-display); color: var(--forest); font-size: 1.05rem; }
.login-gate-sub   { font-size: var(--fs-sm); color: var(--text-muted); }

/* drive details modifiers + notes */
.drive-note { padding: 0 var(--space-4) var(--space-2); font-size: var(--fs-xs); color: var(--text-muted); }
.drive-row--total  { background: var(--surface-2); }
.drive-sub         { font-size: 0.78rem; color: var(--text-muted); }
.drive-time--dark   { background: var(--forest); color: var(--amber); }
.drive-time--accent { background: var(--gold); color: var(--white); }

/* small content utilities */
.note-pad   { padding: var(--space-3) var(--space-4); }
.note-stack { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.muted-sm   { font-size: var(--fs-sm); color: var(--text-muted); }
.info-item-val--soft   { font-weight: 400; }
.info-item-val--accent { color: var(--gold); }
.hotel-addr { padding: var(--space-3) var(--space-4); font-size: var(--fs-sm); color: var(--text-muted); }

/* special-feature options (e.g. July 4th fireworks) */
.feature-intro   { padding: var(--space-4) var(--space-4) 0; font-size: var(--fs-base); color: var(--text-muted); }
.feature-options { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.feature-option  { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3) var(--space-4); }
.feature-option-head { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-2); }
.feature-option-name { font-family: var(--font-display); font-size: 1.05rem; color: var(--pine); }
.feature-option-line { font-size: var(--fs-base); line-height: 1.5; }
.feature-option-line + .feature-option-line { margin-top: var(--space-1); }
.feature-option-line strong { color: var(--pine); }
.feature-option-line.is-muted { color: var(--text-muted); }

/* ===== TZ ALERT ===== */
.tz-alert {
  background: linear-gradient(135deg, var(--amber), var(--gold));
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--forest);
}
.tz-alert-icon { font-size: 1.3rem; flex-shrink: 0; }
.tz-alert h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.25rem; }
.tz-alert p { font-size: 0.87rem; line-height: 1.5; }

/* ===== NOTE BOX ===== */
.note-box {
  background: rgba(107,158,187,0.1);
  border-left: 3px solid var(--sky);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ===== DAY NAV ===== */
.day-nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.day-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--pine);
  background: var(--white);
  border: 1px solid rgba(45,74,53,0.2);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background 0.15s, color 0.15s;
}
.day-nav a:hover { background: var(--forest); color: var(--amber); }

/* ===== FOOTER ===== */
footer {
  background: var(--forest);
  color: var(--dust);
  text-align: center;
  padding: 2rem;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  margin-top: 3rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .nav { padding: 0.75rem 1rem; flex-wrap: wrap; justify-content: flex-start; }
  .nav-burger { display: inline-flex; order: 3; }
  .nav-auth { order: 2; margin-left: auto; }
  .nav-links {
    display: none; order: 4; flex-basis: 100%; flex-direction: column;
    gap: var(--space-1); max-height: 60vh; overflow: auto; padding-top: var(--space-2);
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .days-grid { grid-template-columns: 1fr; }
  .day-content { padding: var(--space-4); }
  .timeline-row { grid-template-columns: 90px 1fr; }
  .hero-stats { gap: var(--space-5); }
}

@media (prefers-reduced-motion: reduce) {
  .day-card { transition: none; }
}

/* ===== STATS GRID (Day 18 Trip Summary) ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.stat-card {
  background: var(--forest);
  border: 1px solid rgba(212,136,58,0.3);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--dust);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== BADGE LIST (Day 18) ===== */
.badge-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--forest);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.65rem 1rem;
}
.badge-day {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
  min-width: 50px;
  white-space: nowrap;
}
.badge-name {
  font-size: 0.9rem;
  color: var(--cream);
}

/* ===== TZ BADGE ===== */
.tz-badge {
  display: inline-block;
  background: rgba(107,158,187,0.2);
  border: 1px solid var(--sky);
  color: var(--sky);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-right: 0.5rem;
}

/* ===== EXTRA CHIPS ===== */
.chip-distance { background: rgba(74,124,95,0.25); color: #7ec49a; border-color: rgba(74,124,95,0.4); }
.chip-warning  { background: rgba(240,169,76,0.2);  color: var(--amber); border-color: rgba(240,169,76,0.4); }

/* ===== DISABLED NAV BTN ===== */
.nav-btn-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== NAV AUTH AREA ===== */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-user {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--amber);
}
.nav-auth-link {
  color: var(--dust);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(196,168,130,0.35);
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.nav-auth-link:hover { background: var(--pine); color: var(--amber); }

/* "Writing as" dropdown (CSS-only via <details>) */
.wa-dropdown { position: relative; }
.wa-dropdown summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--forest);
  background: var(--amber);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
  white-space: nowrap;
  user-select: none;
}
.wa-dropdown summary::-webkit-details-marker { display: none; }
.wa-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  background: var(--white);
  border: 1px solid rgba(45,74,53,0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  min-width: 200px;
  z-index: 200;
}
.wa-menu-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.25rem 0.5rem 0.4rem;
}
.wa-menu form { margin: 0; }
.wa-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  text-align: left;
  padding: 0.45rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}
.wa-option:hover { background: var(--parchment); }
.wa-option.active { background: rgba(74,124,95,0.12); font-weight: 600; }
.wa-check { color: var(--meadow); }

/* ===== LOGIN PAGE ===== */
.login-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(74,124,95,0.15);
  padding: 2.25rem;
  width: 100%;
  max-width: 380px;
}
.login-error {
  background: rgba(240,169,76,0.18);
  border-left: 3px solid var(--gold);
  color: var(--forest);
  font-size: 0.85rem;
  padding: 0.6rem 0.85rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1rem;
}
.login-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.85rem 0 0.3rem;
}
.login-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(45,74,53,0.25);
  border-radius: var(--radius);
  background: var(--cream);
}
.login-input:focus { outline: none; box-shadow: var(--ring); border-color: var(--meadow); }
.login-btn { margin-top: var(--space-5); }  /* layout only; appearance from .btn */
.login-card .hero-eyebrow { color: var(--accent); margin-bottom: var(--space-2); }
.login-card h2 { margin-bottom: var(--space-1); }
.login-sub { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--space-5); }

/* ===== TRIP TALLY TRACKERS ===== */
.tracker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}
.tracker-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(74,124,95,0.15);
  padding: 1.1rem 1rem 1rem;
  text-align: center;
}
.tracker-emoji { font-size: 1.8rem; line-height: 1; }
.tracker-count {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.1;
  margin-top: 0.25rem;
}
.tracker-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pine);
  margin-top: 0.1rem;
}
.tracker-last {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.3rem;
}
.tracker-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.75rem;
}
.tracker-admin {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-2);
}
.tracker-admin .btn { font-size: 0.68rem; padding: 0.2rem var(--space-2); }

/* emoji quick-picker (tracker add + edit forms) */
.emoji-picks { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.tracker-add .emoji-picks { flex-basis: 100%; margin-bottom: var(--space-1); }
.emoji-pick {
  font-size: 1.1rem; line-height: 1; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0.15rem 0.4rem;
}
.emoji-pick:hover { background: var(--dust); }
.tracker-add-hint { margin-top: var(--space-2); font-size: var(--fs-xs); }
.tracker-btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px solid rgba(45,74,53,0.25);
  border-radius: var(--radius);
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tracker-plus { background: var(--meadow); color: var(--white); border-color: var(--meadow); }
.tracker-plus:hover { background: var(--pine); }
.tracker-undo { background: var(--parchment); color: var(--pine); }
.tracker-undo:hover { background: var(--dust); }
.tracker-btn:disabled { opacity: 0.4; cursor: default; }

.tracker-add {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.tracker-add-emoji {
  width: 3.5rem;
  text-align: center;
  font-size: 1rem;
  padding: 0.5rem;
  border: 1px solid rgba(45,74,53,0.25);
  border-radius: var(--radius);
  background: var(--white);
}
.tracker-add-label {
  flex: 1;
  min-width: 180px;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(45,74,53,0.25);
  border-radius: var(--radius);
  background: var(--white);
}

/* writing-as dropdown: switch button + view-journal link side by side */
.wa-row { display: flex; align-items: stretch; gap: 0.25rem; }
.wa-row form { flex: 1; }
.wa-view {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
}
.wa-view:hover { background: var(--parchment); }

/* ===== TRIP JOURNAL ===== */
.journal-section { margin-top: 1.5rem; }
.journal-head { background: var(--pine); border-radius: var(--radius) var(--radius) 0 0; }
.journal-head h3 { color: var(--white); }
.journal-head .card-icon { color: var(--amber); }

.journal-mine {
  background: rgba(74,124,95,0.08);
  border: 1px solid rgba(74,124,95,0.2);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.journal-add-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.journal-add-head { font-size: 0.92rem; color: var(--pine); }
.journal-add-actions { display: flex; gap: 0.5rem; }

/* add-entry modal */
.entry-dialog {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0;
  max-width: 560px;
  width: calc(100% - 2rem);
  background: transparent;
  position: relative;
}
.entry-dialog::backdrop { background: rgba(26,43,31,0.5); }
.entry-dialog .journal-form { border: none; padding: 1.5rem 1.5rem 1.25rem; }
.dialog-close {
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  z-index: 2;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.dialog-close:hover { color: var(--forest); }

.journal-person-group {
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.25rem 1.25rem;
  background: rgba(74,124,95,0.06);
  border: 1px solid rgba(74,124,95,0.18);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.journal-person-name { margin: 0; letter-spacing: 0; text-transform: none; }
.journal-person-name a { color: var(--pine); text-decoration: none; }
.journal-person-name a:hover { color: var(--gold); }
.journal-empty { color: var(--muted); font-size: 0.9rem; padding: 1rem 0; }

.summary-title { font-weight: 600; color: var(--pine); font-size: 0.95rem; }

/* + Add … text button */
.add-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  background: transparent;
  border: 1px dashed rgba(212,136,58,0.5);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  text-align: left;
}
.add-link:hover { background: rgba(212,136,58,0.1); color: var(--forest); }

/* notes block */
.notes-block { display: flex; flex-direction: column; gap: 0.6rem; }
.notes-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.notes-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.note-card { padding: 0.85rem 1rem; }

/* badge toggle / chip */
.badge-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--pine);
  background: var(--white);
  border: 1px solid rgba(212,136,58,0.5);
  border-radius: var(--radius);
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s, color 0.15s;
}
.badge-btn:hover { background: rgba(212,136,58,0.12); }
.badge-btn.earned { background: var(--gold); color: var(--white); border-color: var(--gold); }
.badge-chip {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--parchment);
  border-radius: 99px;
  padding: 0.25rem 0.7rem;
}
.badge-chip.earned { background: var(--gold); color: var(--white); }

/* badge checklist on the profile */
.badge-checklist { padding: 0.5rem 1.25rem 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(45,74,53,0.1);
  flex-wrap: wrap;
}
.badge-row:last-child { border-bottom: none; }
.badge-row-day { font-weight: 600; color: var(--pine); text-decoration: none; font-size: 0.92rem; }
.badge-row-day:hover { color: var(--gold); }

.entry-list { display: flex; flex-direction: column; gap: 1rem; }

/* ----- entry card ----- */
.entry-card {
  background: var(--white);
  border: 1px solid rgba(45,74,53,0.15);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.25rem;
}
.entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.entry-author { display: flex; align-items: center; gap: 0.45rem; text-decoration: none; }
.entry-avatar { font-size: 1.4rem; line-height: 1; }
.entry-name { font-weight: 600; color: var(--pine); font-size: 0.95rem; }
.entry-meta { display: flex; align-items: center; gap: 0.6rem; }
.entry-time { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); }
.entry-status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 99px;
}
.entry-status.is-published { background: rgba(74,124,95,0.18); color: var(--meadow); }
.entry-status.is-draft { background: var(--parchment); color: var(--muted); }

.entry-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.entry-field { margin-bottom: 0.75rem; }
.entry-field-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.entry-prose { font-size: 0.9rem; line-height: 1.6; }
.entry-prose p { margin: 0 0 0.5rem; }
.entry-prose p:last-child { margin-bottom: 0; }
.entry-prose ul, .entry-prose ol { margin: 0 0 0.5rem 1.2rem; }
.entry-prose a { color: var(--sky); }
.entry-prose code { font-family: var(--font-mono); font-size: 0.85em; background: var(--parchment); padding: 0.1rem 0.3rem; border-radius: 3px; }
.entry-plain { font-size: 0.9rem; line-height: 1.55; }

.entry-actions { display: flex; gap: 0.4rem; margin-top: 0.85rem; flex-wrap: wrap; }
.entry-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border: 1px solid rgba(45,74,53,0.25);
  background: var(--parchment);
  color: var(--pine);
  border-radius: var(--radius);
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.entry-btn:hover { background: var(--dust); }
.entry-btn-danger { color: #9a3a2f; }
.entry-btn-danger:hover { background: #e8c4bd; }

/* ----- kid card ----- */
.kid-card {
  background: var(--cream);
  border: 1px solid rgba(212,136,58,0.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.9rem 1.1rem;
}
.kid-card-top { display: flex; gap: 0.75rem; align-items: flex-start; }
.kid-mood { font-size: 2rem; line-height: 1; }
.kid-card-body { flex: 1; }
.kid-name { font-weight: 600; color: var(--pine); font-size: 0.9rem; text-decoration: none; }
.kid-sentence { font-family: var(--font-display); font-size: 1.05rem; color: var(--forest); margin: 0.3rem 0; line-height: 1.4; }
.kid-stars { color: var(--gold); font-size: 1rem; letter-spacing: 0.1em; }
.kid-card-foot { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; }

/* ----- forms ----- */
.journal-form {
  background: var(--white);
  border: 1px solid rgba(45,74,53,0.18);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.journal-form-head { display: flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--pine); font-size: 0.9rem; margin-bottom: 0.15rem; }
.form-label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; font-weight: 600; color: var(--pine); }
.form-label-sm { flex: 1; }
.form-hint { font-weight: 400; font-size: 0.7rem; color: var(--muted); font-family: var(--font-mono); }
.form-input {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink);
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(45,74,53,0.25);
  border-radius: var(--radius);
  background: var(--white);
  width: 100%;
}
.form-input:focus { outline: none; box-shadow: var(--ring); border-color: var(--meadow); }
textarea.form-input { resize: vertical; line-height: 1.5; }
.mood-input { font-size: 1.1rem; }
.form-row { display: flex; gap: 0.75rem; }
.form-check { display: flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; color: var(--pine); }
.form-actions { display: flex; gap: 0.5rem; margin-top: 0.25rem; }

/* ----- person page ----- */
.person-hero { display: flex; align-items: center; gap: 1rem; }
.person-hero-avatar { font-size: 3rem; line-height: 1; }
.person-day {
  background: var(--white);
  border: 1px solid rgba(45,74,53,0.12);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.person-day.is-empty { background: transparent; border-style: dashed; box-shadow: none; }
.person-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.person-day-head a { font-family: var(--font-display); font-size: 1.1rem; color: var(--pine); text-decoration: none; }
.person-day-head a:hover { color: var(--gold); }
.person-day-date { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }
.person-day-empty { color: var(--muted); font-size: 0.85rem; }

/* ----- photos (Phase 4) ----- */
.photos-block { margin-top: 0.85rem; }
.photos-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.5rem; }
.photos-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.photo-upload { margin: 0; }
.photo-upload-label { cursor: pointer; }

.photo-status { min-height: 0; }
.photo-status:empty { display: none; }
.photo-status-msg {
  display: inline-block;
  font-size: 0.78rem;
  color: #9a3a2f;
  background: #f3dcd6;
  border: 1px solid #e0b3a8;
  border-radius: var(--radius);
  padding: 0.3rem 0.6rem;
  margin-bottom: 0.5rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.7rem;
}
.photo-grid:empty { display: none; }

.photo-tile {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--parchment);
  border: 1px solid rgba(45,74,53,0.12);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.photo-tile.is-draft { border-style: dashed; border-color: rgba(212,136,58,0.5); }
.photo-tile-link { display: block; line-height: 0; }
.photo-tile-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--dust);
  transition: opacity 0.15s;
}
.photo-tile-link:hover .photo-tile-img { opacity: 0.9; }
.photo-tile-caption { font-size: 0.78rem; color: var(--muted); padding: 0.4rem 0.55rem; line-height: 1.35; }
.photo-tile-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.5rem 0.55rem;
}
.photo-tile-actions { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.photo-tile-meta .entry-btn { font-size: 0.68rem; padding: 0.25rem 0.5rem; }

@media (max-width: 600px) {
  .nav-auth { width: 100%; justify-content: space-between; }
  .tracker-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
