/* ============================================================
   Lex & Lin's Eastern Sierra Trip
   Aesthetic: warm alpine editorial — cream paper, pine & granite,
   sunset clay, aspen gold. Topographic textures, ridgeline hero.
   ============================================================ */

@import url('../fonts/fonts.css');

:root {
  /* --- palette --- */
  --paper:      #f4ecdb;   /* warm cream ground */
  --paper-2:    #efe4cd;   /* slightly deeper panel */
  --card:       #fbf6ea;   /* card surface */
  --ink:        #2c271e;   /* near-black warm */
  --ink-soft:   #5c5346;   /* secondary text */
  --ink-faint:  #8a7f6d;   /* muted labels */

  --pine:       #234032;   /* deep forest */
  --pine-2:     #2f5541;
  --moss:       #5b7a52;
  --granite:    #565b62;   /* rock gray */
  --granite-2:  #7d838b;
  --clay:       #c56a3c;   /* sunset clay */
  --ember:      #d98a4e;
  --aspen:      #d9a534;   /* aspen gold */
  --aspen-lite: #e8c25a;
  --sky:        #6f97ad;   /* alpine water */

  --line:       #ddd0b6;   /* hairlines on paper */
  --line-strong:#cdbf9f;

  --shadow-sm:  0 1px 2px rgba(44,39,30,.06), 0 2px 6px rgba(44,39,30,.05);
  --shadow-md:  0 4px 12px rgba(44,39,30,.10), 0 12px 30px rgba(44,39,30,.08);
  --shadow-lg:  0 10px 24px rgba(44,39,30,.14), 0 24px 60px rgba(44,39,30,.12);

  --radius:     14px;
  --radius-sm:  9px;
  --maxw:       1140px;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(217,165,52,.14), transparent 60%),
    radial-gradient(900px 500px at 0% 8%, rgba(111,151,173,.10), transparent 55%);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint contour lines across the whole page for texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cg fill='none' stroke='%23c9b98f' stroke-width='1' opacity='0.35'%3E%3Cpath d='M-50 120 C 120 60 240 180 400 120 S 680 60 850 130'/%3E%3Cpath d='M-50 200 C 120 140 240 260 400 200 S 680 140 850 210'/%3E%3Cpath d='M-50 280 C 120 220 240 340 400 280 S 680 220 850 290'/%3E%3Cpath d='M-50 360 C 120 300 240 420 400 360 S 680 300 850 370'/%3E%3Cpath d='M-50 440 C 120 380 240 500 400 440 S 680 380 850 450'/%3E%3Cpath d='M-50 520 C 120 460 240 580 400 520 S 680 460 850 530'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 600px 600px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 5vw, 40px); position: relative; z-index: 1; }

a { color: var(--pine-2); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { color: var(--clay); }

/* ============================================================
   HERO with layered ridgelines
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  /* bottom padding is kept LARGER than the ridgeline height (below) so the
     intro text always clears the mountains and stays on the cream ground. */
  padding: clamp(46px, 9vw, 100px) 0 clamp(164px, 29vw, 330px);
  isolation: isolate;
}
.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 12.5px;
  color: var(--clay);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.hero__eyebrow::before {
  content: ""; width: 34px; height: 2px; background: var(--clay); display: inline-block; border-radius: 2px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 340;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 1;
  font-size: clamp(2.7rem, 8vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.015em;
  margin: 0 0 8px;
  color: var(--pine);
  max-width: 14ch;
}
.hero h1 em { font-style: italic; color: var(--clay); font-weight: 380; }
.hero__dates {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 3vw, 1.5rem);
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.hero__intro {
  max-width: 54ch;
  font-size: 1.06rem;
  color: var(--ink-soft);
  margin: 0 0 40px;
}
.hero__ridges {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: clamp(140px, 26vw, 300px);
  z-index: 1;
  display: block;
}
.hero__sun {
  position: absolute;
  top: clamp(30px, 8vw, 90px); right: clamp(30px, 10vw, 160px);
  width: clamp(80px, 16vw, 160px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--aspen-lite), var(--ember) 55%, rgba(217,138,78,0) 72%);
  filter: blur(2px);
  opacity: .9;
  z-index: 0;
}

/* ============================================================
   STICKY CONTROL BAR
   ============================================================ */
.controls {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,236,219,.86);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px -12px rgba(44,39,30,.4);
}
.controls__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.control-group { display: flex; flex-direction: column; gap: 6px; }
.control-label {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600; padding-left: 2px;
}

/* Day tabs */
.daytabs { display: flex; gap: 4px; background: var(--paper-2); padding: 5px; border-radius: 12px; border: 1px solid var(--line); }
.daytab {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--sans); font-weight: 600; color: var(--ink-soft);
  padding: 7px 13px; border-radius: 8px; line-height: 1.1;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
  min-width: 62px;
}
.daytab small { font-size: 10px; font-weight: 600; letter-spacing: .04em; color: var(--ink-faint); }
.daytab:hover { color: var(--pine); background: rgba(255,255,255,.5); }
.daytab[aria-selected="true"] {
  background: var(--pine); color: #fdf7e9; box-shadow: var(--shadow-sm);
}
.daytab[aria-selected="true"] small { color: var(--aspen-lite); }

/* Energy segmented control */
.energy { display: flex; gap: 4px; background: var(--paper-2); padding: 5px; border-radius: 12px; border: 1px solid var(--line); }
.energy button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 13.5px; color: var(--ink-soft);
  padding: 8px 12px; border-radius: 8px; display: flex; align-items: center; gap: 7px;
  transition: background .18s ease, color .18s ease;
}
.energy button:hover { color: var(--pine); background: rgba(255,255,255,.5); }
.energy button[aria-pressed="true"] { background: var(--clay); color: #fff5ec; box-shadow: var(--shadow-sm); }
.energy button[aria-pressed="true"] .dots i { background: rgba(255,255,255,.55); }
.energy button[aria-pressed="true"] .dots i.on { background: #fff5ec; }

/* energy dots indicator */
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); display: inline-block; transition: background .18s; }
.dots i.on { background: var(--clay); }

.surprise {
  appearance: none; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 13.5px;
  color: var(--pine); background: transparent;
  border: 1.5px dashed var(--line-strong); border-radius: 10px;
  padding: 9px 14px; display: inline-flex; align-items: center; gap: 8px;
  transition: all .18s ease;
  align-self: flex-end;
}
.surprise:hover { border-color: var(--aspen); color: var(--clay); background: rgba(217,165,52,.08); transform: translateY(-1px); }
.surprise svg { width: 16px; height: 16px; }

/* ============================================================
   DAY PANEL
   ============================================================ */
.day-section { padding: clamp(30px, 6vw, 56px) 0 20px; }
.day-head { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 26px; }
.day-kicker {
  font-family: var(--sans); font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  font-size: 12px; color: var(--clay);
}
.day-head h2 {
  font-family: var(--serif); font-weight: 380; font-optical-sizing: auto;
  font-size: clamp(2rem, 5.5vw, 3.2rem); line-height: 1.02; letter-spacing: -.01em;
  margin: 2px 0 4px; color: var(--pine);
}
.day-head h2 em { font-style: italic; color: var(--clay); }
.day-sub { max-width: 60ch; color: var(--ink-soft); font-size: 1.03rem; margin: 0; }
.day-basecamp {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 15px 6px 6px; font-size: 13.5px; font-weight: 600; color: var(--pine); width: fit-content;
}
.day-basecamp .pin {
  width: 24px; height: 24px; border-radius: 50%; background: var(--pine); color: var(--aspen-lite);
  display: grid; place-items: center;
}
.day-basecamp .pin svg { width: 13px; height: 13px; }
.day-basecamp span.el { color: var(--ink-faint); font-weight: 500; }

/* map */
.day-map-shell {
  margin: 4px 0 34px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  position: relative;
}
.day-map { height: clamp(260px, 42vw, 420px); width: 100%; background: #dfe6df; }
.map-hint {
  position: absolute; z-index: 500; bottom: 10px; left: 10px;
  background: rgba(251,246,234,.92); border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 10px; font-size: 11.5px; color: var(--ink-soft); font-weight: 500;
  pointer-events: none; box-shadow: var(--shadow-sm);
}
.leaflet-container { font-family: var(--sans); }
.leaflet-popup-content-wrapper { border-radius: 10px; }
.leaflet-popup-content { font-family: var(--sans); font-size: 13px; margin: 10px 12px; }
.leaflet-popup-content b { font-family: var(--serif); font-weight: 600; color: var(--pine); }

.day-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(180deg, rgba(217,165,52,.10), rgba(217,165,52,.04));
  border: 1px solid rgba(217,165,52,.35); border-left: 3px solid var(--aspen);
  border-radius: var(--radius-sm); padding: 13px 16px; margin: 0 0 30px;
  font-size: .95rem; color: var(--ink-soft);
}
.day-note svg { flex: none; width: 18px; height: 18px; color: var(--aspen); margin-top: 2px; }

/* section subtitle above cards */
.options-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin: 0 0 18px; flex-wrap: wrap;
}
.options-label h3 {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: 1.4rem; color: var(--pine); margin: 0;
}
.options-count { font-size: 13px; color: var(--ink-faint); font-weight: 500; }

/* ============================================================
   OPTION CARDS
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, opacity .3s ease, filter .3s ease;
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* de-emphasized (mismatched energy, shown anyway) */
.card.is-muted { opacity: .52; filter: grayscale(.5) saturate(.7); }
.card.is-muted:hover { opacity: 1; filter: none; }

/* photo / placeholder */
.card__photo {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden;
  background: var(--paper-2);
}
.card__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  display: block; z-index: 2;
}
.card__ph {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  overflow: hidden;
}
.card__ph::after { /* topographic overlay on placeholders */
  content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='200'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.2' opacity='0.6'%3E%3Cpath d='M-20 40 C 60 10 120 70 200 40 S 340 10 420 46'/%3E%3Cpath d='M-20 80 C 60 50 120 110 200 80 S 340 50 420 86'/%3E%3Cpath d='M-20 120 C 60 90 120 150 200 120 S 340 90 420 126'/%3E%3Cpath d='M-20 160 C 60 130 120 190 200 160 S 340 130 420 166'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 300px 200px;
}
.card__ph-icon { position: relative; z-index: 1; width: 40px; height: 40px; color: rgba(255,255,255,.9); filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.card__ph-name {
  position: absolute; z-index: 1; bottom: 10px; left: 12px;
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: rgba(255,255,255,.92); text-shadow: 0 1px 4px rgba(0,0,0,.35); font-weight: 500;
}
/* placeholder themes */
.th-forest   { background: linear-gradient(150deg, #2f5541, #1c3527 70%); }
.th-lake     { background: linear-gradient(150deg, #5f93a8, #2b5566 75%); }
.th-granite  { background: linear-gradient(150deg, #7c828a, #454a52 72%); }
.th-alpine   { background: linear-gradient(150deg, #6f97ad, #3a5a5f 55%, #2b4536); }
.th-meadow   { background: linear-gradient(150deg, #8ba55a, #4f6d3e 72%); }
.th-hotspring{ background: linear-gradient(150deg, #d98a4e, #b2542f 72%); }
.th-town     { background: linear-gradient(150deg, #e0b154, #bd7a34 72%); }

/* energy pill on the photo */
.card__energy {
  position: absolute; z-index: 3; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(251,246,234,.92); backdrop-filter: blur(4px);
  border-radius: 999px; padding: 5px 10px; box-shadow: var(--shadow-sm);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft);
}
.card__energy .dots i { width: 5.5px; height: 5.5px; }

.card__meta-badge {
  position: absolute; z-index: 3; top: 10px; right: 10px;
  background: rgba(44,39,30,.72); color: #f4ecdb; backdrop-filter: blur(4px);
  border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
}
.card__meta-badge svg { width: 11px; height: 11px; }

/* body */
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card__kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--clay); }
.card__title { font-family: var(--serif); font-weight: 500; font-size: 1.28rem; line-height: 1.12; color: var(--pine); margin: 0; }
.card__facts { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--ink-faint); font-weight: 500; }
.card__facts span { display: inline-flex; align-items: center; gap: 5px; }
.card__facts svg { width: 12px; height: 12px; opacity: .8; }
.card__desc { font-size: .94rem; color: var(--ink-soft); margin: 0; }
.card__note {
  font-size: .84rem; color: var(--clay); font-weight: 600; margin: 0;
  display: flex; gap: 7px; align-items: flex-start;
}
.card__note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }

/* love / skip reveal */
.card__ls { margin-top: auto; border-top: 1px dashed var(--line-strong); padding-top: 12px; display: grid; gap: 8px; }
.ls-row { display: grid; grid-template-columns: 20px 1fr; gap: 9px; font-size: .86rem; line-height: 1.45; }
.ls-row .ic { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.ls-row.love .ic { background: rgba(91,122,82,.18); color: var(--moss); }
.ls-row.skip .ic { background: rgba(197,106,60,.16); color: var(--clay); }
.ls-row .ic svg { width: 11px; height: 11px; }
.ls-row b { color: var(--ink); font-weight: 600; }
.ls-label { font-weight: 600; color: var(--ink); }

/* the "show anyway" toggle for mismatched options */
.show-anyway {
  margin: 24px auto 0; display: flex; justify-content: center;
}
.show-anyway button {
  appearance: none; cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 14px;
  color: var(--ink-soft); background: var(--card); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 10px 20px; display: inline-flex; align-items: center; gap: 9px;
  transition: all .18s ease; box-shadow: var(--shadow-sm);
}
.show-anyway button:hover { color: var(--pine); border-color: var(--moss); transform: translateY(-1px); }
.show-anyway button svg { width: 15px; height: 15px; transition: transform .2s ease; }
.show-anyway.open button svg { transform: rotate(180deg); }

.muted-wrap { display: contents; }
.muted-wrap.hidden { display: none; }

.empty-state {
  text-align: center; padding: 40px 20px; color: var(--ink-faint);
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
}

/* ============================================================
   FUNDAMENTALS
   ============================================================ */
.fundamentals {
  margin-top: 40px;
  background:
    linear-gradient(180deg, rgba(35,64,50,.04), rgba(35,64,50,.09)),
    var(--paper-2);
  border-top: 1px solid var(--line-strong);
  padding: clamp(44px, 8vw, 76px) 0;
  position: relative;
}
.fund-head { max-width: 60ch; margin-bottom: 34px; }
.fund-head .day-kicker { color: var(--moss); }
.fund-head h2 { font-family: var(--serif); font-weight: 380; font-size: clamp(1.9rem, 5vw, 2.8rem); color: var(--pine); margin: 4px 0 8px; }
.fund-head h2 em { font-style: italic; color: var(--clay); }
.fund-head p { color: var(--ink-soft); margin: 0; }

.fund-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.fund-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 12px;
}
.fund-card.is-key { border-color: var(--aspen); box-shadow: 0 0 0 1px var(--aspen), var(--shadow-md); background: linear-gradient(180deg, rgba(217,165,52,.07), var(--card) 40%); }
.fund-card__top { display: flex; align-items: center; gap: 13px; }
.fund-ic {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--pine); color: var(--aspen-lite);
}
.fund-card.is-key .fund-ic { background: var(--clay); color: #fff3e6; }
.fund-ic svg { width: 21px; height: 21px; }
.fund-card__titles h4 { font-family: var(--serif); font-weight: 500; font-size: 1.24rem; margin: 0; color: var(--pine); line-height: 1.1; }
.fund-tag { font-size: 12px; font-weight: 600; color: var(--clay); letter-spacing: .02em; }
.fund-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.fund-card li { position: relative; padding-left: 20px; font-size: .93rem; color: var(--ink-soft); line-height: 1.5; }
.fund-card li::before {
  content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--moss);
}
.fund-card.is-key li::before { background: var(--aspen); }
.fund-link {
  margin-top: 4px; display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-weight: 600; font-size: .9rem; color: #fff; background: var(--clay);
  padding: 9px 15px; border-radius: 10px; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, background .16s ease;
}
.fund-link:hover { background: var(--pine); color: #fff; transform: translateY(-1px); }
.fund-link svg { width: 14px; height: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 40px 0 60px; text-align: center; position: relative; }
.footer__mark { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--pine); margin: 0 0 6px; }
.footer p { color: var(--ink-faint); font-size: .9rem; margin: 4px 0; }
.footer .heart { color: var(--clay); font-style: normal; }
.credits { max-width: 640px; margin: 22px auto 0; text-align: left; }
.credits summary {
  cursor: pointer; text-align: center; font-size: .8rem; font-weight: 600;
  color: var(--ink-faint); letter-spacing: .04em; list-style-position: inside;
}
.credits summary:hover { color: var(--clay); }
.credits ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.credits li { font-size: .78rem; color: var(--ink-faint); line-height: 1.5; }
.credits li span { color: var(--ink-soft); font-weight: 600; }
.credits a { color: var(--ink-faint); text-decoration: underline; text-decoration-color: var(--line-strong); }
.credits a:hover { color: var(--clay); }

/* ============================================================
   MOTION — staggered reveal on day change
   ============================================================ */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .controls__inner { gap: 12px 16px; }
  .control-group.energy-group { order: 3; width: 100%; }
  .energy { width: 100%; justify-content: space-between; }
  /* on mobile, labels are clearer than dots (All vs Ambitious both read as 3 dots) */
  .energy button { flex: 1; justify-content: center; padding: 9px 3px; font-size: 12.5px; gap: 0; }
  .energy button .dots { display: none; }
  .surprise { align-self: stretch; justify-content: center; order: 4; width: 100%; }
  .daytabs { width: 100%; }
  .daytab { flex: 1; min-width: 0; padding: 8px 4px; }
  .cards { grid-template-columns: 1fr; }
  .hero__sun { opacity: .7; }
}
@media (max-width: 380px) {
  .daytab { font-size: 14px; }
}

/* ============================================================
   PRINT — "save this day as PDF" produces a clean one-pager
   ============================================================ */
@media print {
  body { background: #fff !important; font-size: 12px; }
  body::before, .hero__ridges, .hero__sun, .controls, .day-map-shell,
  .show-anyway, .footer button, #surprise, .map-hint, .credits { display: none !important; }
  .hero { padding: 0 0 8px; }
  .hero h1 { font-size: 2rem; color: #234032; }
  .card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
  .card.is-muted { display: none !important; }
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card__photo { display: none; }
  .fundamentals { background: #fff; border-top: 1px solid #ccc; }
  .fund-card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  a { color: #234032; }
}
