/* =========================================================
   DENMARK MEETS CALIFORNIA · SUMMER 2026
   Retro California design system — Stream B
   ---------------------------------------------------------
   Hand-rolled CSS. No frameworks. .dv-* component classes.
   Wave 2 Stream J extends this with @media (mobile + print).
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Paper + ink */
  --dv-paper: #fdf4e3;
  --dv-paper-tint: #fbecd0;
  --dv-paper-edge: #e9d9b5;
  --dv-ink: #1f1a14;
  --dv-ink-soft: #5b4f3f;
  --dv-ink-faint: rgba(31, 26, 20, 0.18);

  /* Sunset palette */
  --dv-coral: #ff7e5f;
  --dv-peach: #feb47b;
  --dv-warm-yellow: #ffc857;
  --dv-warm-yellow-soft: #ffe7a3;
  --dv-pink: #ff6b9d;
  --dv-hot-pink: #ff3e7f;
  --dv-coral-bright: #ff6b6b;

  /* Sea + sky */
  --dv-turquoise: #00c2c7;
  --dv-turquoise-soft: #aef3f4;
  --dv-ocean: #1e5f8e;
  --dv-ocean-deep: #103a5a;

  /* Foliage */
  --dv-palm: #2d6a4f;
  --dv-palm-dark: #0d1f17;

  /* Gradients */
  --dv-sunset: linear-gradient(180deg, #ff7e5f 0%, #feb47b 35%, #ffc857 60%, #ff6b9d 90%);
  --dv-sunset-soft: linear-gradient(180deg, #ffd5b8 0%, #ffe7a3 50%, #ffc8d8 100%);
  --dv-sunset-flat: linear-gradient(90deg, #ff7e5f, #ffc857);

  --dv-ticker-far: linear-gradient(90deg, #ffc857 0%, #ffe7a3 100%);
  --dv-ticker-mid: linear-gradient(90deg, #ffc857 0%, #ff7e5f 100%);
  --dv-ticker-near: linear-gradient(90deg, #ff7e5f 0%, #ff3e7f 100%);
  --dv-ticker-now: linear-gradient(90deg, #ff3e7f 0%, #ff6b9d 100%);

  /* Tones for audience pills */
  --dv-tone-host: #ff7e5f;
  --dv-tone-visitor: #00c2c7;
  --dv-tone-visitor-kid: #ff3e7f;
  --dv-tone-joining: #ffc857;

  /* Typography */
  --dv-font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --dv-font-display: 'Monoton', 'Bungee', sans-serif;
  --dv-font-display-alt: 'Bungee', 'DM Sans', sans-serif;
  --dv-font-display-shaded: 'Bungee Shade', 'Bungee', sans-serif;
  --dv-font-script: 'Caveat Brush', 'Brush Script MT', cursive;

  /* Radii */
  --dv-radius-pill: 999px;
  --dv-radius-card: 4px;
  --dv-radius-frame: 12px;
  --dv-radius-tile: 10px;

  /* Shadows */
  --dv-shadow-card: 0 4px 12px rgba(31, 26, 20, 0.15), 0 2px 4px rgba(31, 26, 20, 0.08);
  --dv-shadow-polaroid: 0 6px 18px rgba(31, 26, 20, 0.18), 0 2px 4px rgba(31, 26, 20, 0.10);
  --dv-shadow-polaroid-hover: 0 14px 30px rgba(31, 26, 20, 0.22), 0 4px 8px rgba(31, 26, 20, 0.12);
  --dv-shadow-hero: 0 12px 40px rgba(255, 62, 127, 0.20);
  --dv-shadow-fab: 0 8px 24px rgba(255, 62, 127, 0.45);
  --dv-shadow-text-3d: 0 2px 0 #ff3e7f, 0 4px 0 #1e5f8e, 0 6px 18px rgba(31, 26, 20, 0.35);

  /* Motion */
  --dv-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dv-dur: 180ms;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--dv-paper);
  background-image:
    radial-gradient(circle at 0% 0%, rgba(255, 200, 87, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(0, 194, 199, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(255, 62, 127, 0.10) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--dv-ink);
  font-family: var(--dv-font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.1; font-weight: 700; }
p { margin: 0; }
a {
  color: var(--dv-hot-pink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}
a:hover { color: var(--dv-coral-bright); }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* Focus visible — keep accessible despite the chunky styling */
:focus-visible {
  outline: 3px solid var(--dv-hot-pink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.dv-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 120px;
}

.dv-stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.dv-row { display: flex; flex-wrap: wrap; gap: var(--gap, 12px); align-items: center; }
.dv-row--center { justify-content: center; }


/* ====================================================
   HERO BAND
   Sunset gradient · palms · Monoton title · pills
   ==================================================== */
.dv-hero {
  position: relative;
  background: var(--dv-sunset);
  padding: 88px 24px 96px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--dv-shadow-hero);
  border-bottom: 4px solid rgba(31, 26, 20, 0.12);
}

/* Sun disc behind the title */
.dv-hero::before {
  content: "";
  position: absolute;
  top: 28%;
  left: 50%;
  width: min(560px, 60vw);
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle, rgba(255, 233, 173, 0.95) 0%, rgba(255, 200, 87, 0.55) 38%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  filter: blur(2px);
}

/* Subtle horizontal scanline lift over the gradient for that screen-printed poster feel */
.dv-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

.dv-hero__palms {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.dv-hero__palm {
  position: absolute;
  bottom: -8px;
  width: clamp(180px, 22vw, 320px);
  height: auto;
  filter: drop-shadow(0 8px 12px rgba(31, 26, 20, 0.35));
}

.dv-hero__palm--left  { left: -16px; }
.dv-hero__palm--right { right: -16px; }

.dv-hero__inner {
  position: relative;
  z-index: 3;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.dv-hero__eyebrow {
  font-family: var(--dv-font-script);
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(31, 26, 20, 0.3);
  transform: rotate(-2deg);
}

.dv-hero__title {
  font-family: var(--dv-font-display);
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: var(--dv-shadow-text-3d);
  margin: 0;
}

.dv-hero__subtitle {
  font-family: var(--dv-font-script);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(31, 26, 20, 0.28);
  max-width: 640px;
}

.dv-hero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

/* Ticker docks in the top-right corner of the hero */
.dv-hero__ticker-slot {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 4;
}

.dv-hero__ticker-slot--left {
  right: auto;
  left: 24px;
}


/* ====================================================
   POSTCARD FRAME
   White card · dashed inner frame · corner stamp
   ==================================================== */
.dv-postcard {
  position: relative;
  background: #fff;
  border-radius: var(--dv-radius-frame);
  padding: 28px;
  box-shadow: var(--dv-shadow-card);
  border: 1px solid rgba(31, 26, 20, 0.06);
}

/* Inner dashed frame — the printed "postcard" line */
.dv-postcard::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px dashed rgba(31, 26, 20, 0.22);
  border-radius: 8px;
  pointer-events: none;
}

/* Outer perforation hint — subtle scallop ring near edges */
.dv-postcard::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px dashed rgba(255, 126, 95, 0.30);
  border-radius: var(--dv-radius-frame);
  pointer-events: none;
}

.dv-postcard--tight { padding: 20px; }
.dv-postcard--airy  { padding: 40px; }

.dv-postcard__stamp {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 84px;
  height: 96px;
  background: var(--dv-sunset);
  border: 3px solid #fff;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-family: var(--dv-font-display-alt);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1.15;
  rotate: 4deg;
  box-shadow:
    0 3px 8px rgba(31, 26, 20, 0.22),
    inset 0 0 0 1.5px rgba(31, 26, 20, 0.15);
  z-index: 2;
}
.dv-postcard__stamp small {
  display: block;
  font-family: var(--dv-font-script);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-top: 4px;
}


/* ====================================================
   TRULY PIZZA TICKER  (proximity pill)
   gold → coral → hot-pink as the date approaches
   ==================================================== */
.dv-ticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  border-radius: var(--dv-radius-pill);
  font-family: var(--dv-font-display-alt);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--dv-ticker-mid);
  box-shadow:
    0 4px 12px rgba(255, 62, 127, 0.25),
    inset 0 0 0 2px rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  border: none;
  text-decoration: none;
}

.dv-ticker__emoji {
  font-size: 1.05rem;
  filter: drop-shadow(0 1px 1px rgba(31, 26, 20, 0.25));
}

.dv-ticker__count {
  font-family: var(--dv-font-display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0 4px;
}

/* Proximity variants */
.dv-ticker--far {
  background: var(--dv-ticker-far);
  color: var(--dv-ink);
  box-shadow: 0 4px 12px rgba(255, 200, 87, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}
.dv-ticker--mid  { background: var(--dv-ticker-mid);  color: #fff; }
.dv-ticker--near {
  background: var(--dv-ticker-near);
  color: #fff;
  animation: dv-ticker-pulse 2s ease-in-out infinite;
}
.dv-ticker--now {
  background: var(--dv-ticker-now);
  color: #fff;
  animation: dv-ticker-pulse 1s ease-in-out infinite;
}

@keyframes dv-ticker-pulse {
  0%, 100% { transform: scale(1);   box-shadow: 0 4px 12px rgba(255, 62, 127, 0.30), inset 0 0 0 2px rgba(255, 255, 255, 0.55); }
  50%      { transform: scale(1.04); box-shadow: 0 6px 18px rgba(255, 62, 127, 0.50), inset 0 0 0 2px rgba(255, 255, 255, 0.7); }
}


/* ====================================================
   AUDIENCE PILLS
   Circular initial avatars · tone-based colors
   ==================================================== */
.dv-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid rgba(31, 26, 20, 0.10);
  border-radius: var(--dv-radius-pill);
  color: var(--dv-ink);
  font-weight: 500;
  font-size: 0.92rem;
  box-shadow: 0 2px 6px rgba(31, 26, 20, 0.10);
  text-decoration: none;
}

.dv-pill__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--dv-tone-host);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--dv-font-display-alt);
  font-size: 0.78rem;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.dv-pill__label { line-height: 1; }

/* Tone variants (support both data-tone and modifier classes) */
.dv-pill[data-tone="host"]         .dv-pill__avatar,
.dv-pill--host                     .dv-pill__avatar { background: var(--dv-tone-host); }
.dv-pill[data-tone="visitor"]      .dv-pill__avatar,
.dv-pill--visitor                  .dv-pill__avatar { background: var(--dv-tone-visitor); }
.dv-pill[data-tone="visitor-kid"]  .dv-pill__avatar,
.dv-pill--visitor-kid              .dv-pill__avatar { background: var(--dv-tone-visitor-kid); }
.dv-pill[data-tone="joining"]      .dv-pill__avatar,
.dv-pill--joining                  .dv-pill__avatar { background: var(--dv-tone-joining); color: var(--dv-ink); }

/* Compact pill variant for tight spaces (calendar cells) */
.dv-pill--sm {
  padding: 2px 8px 2px 2px;
  font-size: 0.75rem;
  gap: 6px;
}
.dv-pill--sm .dv-pill__avatar {
  width: 20px;
  height: 20px;
  font-size: 0.6rem;
}


/* ====================================================
   POLAROID ACTIVITY CARD
   White border, Bungee title, tilt on hover
   ==================================================== */
.dv-polaroid {
  position: relative;
  background: #fff;
  padding: 10px 10px 24px;
  border-radius: 2px;
  box-shadow: var(--dv-shadow-polaroid);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 280px;
  transition: transform var(--dv-dur) var(--dv-ease), box-shadow var(--dv-dur) var(--dv-ease);
  cursor: grab;
}

.dv-polaroid:hover {
  transform: rotate(-1deg) translateY(-3px);
  box-shadow: var(--dv-shadow-polaroid-hover);
}

.dv-polaroid:active { cursor: grabbing; }

.dv-polaroid__media {
  background: var(--dv-sunset);
  aspect-ratio: 4 / 3;
  border-radius: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 3px 8px rgba(31, 26, 20, 0.3);
  position: relative;
  overflow: hidden;
}

/* Media tonal variants */
.dv-polaroid__media--ocean   { background: linear-gradient(180deg, #aef3f4 0%, #00c2c7 60%, #1e5f8e 100%); }
.dv-polaroid__media--beach   { background: linear-gradient(180deg, #ffd5b8 0%, #ffc857 60%, #ff7e5f 100%); }
.dv-polaroid__media--night   { background: linear-gradient(180deg, #1e5f8e 0%, #103a5a 60%, #2d1a3a 100%); color: #ffe7a3; }
.dv-polaroid__media--forest  { background: linear-gradient(180deg, #aef3a8 0%, #2d6a4f 70%, #0d1f17 100%); }
.dv-polaroid__media--diamond { background: linear-gradient(180deg, #00c2c7 0%, #1e5f8e 100%); }

.dv-polaroid__title {
  font-family: var(--dv-font-display-alt);
  font-size: 0.98rem;
  color: var(--dv-ink);
  margin: 4px 6px 0;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.dv-polaroid__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 6px;
  font-size: 0.82rem;
  color: var(--dv-ink-soft);
}

.dv-polaroid__time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--dv-paper);
  color: var(--dv-ink);
  padding: 2px 8px;
  border-radius: var(--dv-radius-pill);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.dv-polaroid__location {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.dv-polaroid__badges {
  display: flex;
  gap: 4px;
  margin: 0 6px;
  align-items: center;
}

.dv-polaroid__note {
  font-family: var(--dv-font-script);
  color: var(--dv-hot-pink);
  font-size: 1.05rem;
  margin: 2px 6px 0;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

/* Caveat-brush "ADDED BY" tag */
.dv-polaroid__byline {
  font-family: var(--dv-font-script);
  font-size: 0.95rem;
  color: var(--dv-ocean);
  margin: 0 6px;
  letter-spacing: 0.02em;
}

/* Badge bubble used inside polaroid + standalone */
.dv-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--dv-paper);
  border: 1px solid rgba(31, 26, 20, 0.12);
  font-size: 0.95rem;
  line-height: 1;
}

.dv-badge--kid     { background: rgba(174, 243, 168, 0.55); border-color: rgba(45, 106, 79, 0.4); }
.dv-badge--booking { background: rgba(255, 200, 87, 0.55); border-color: rgba(255, 126, 95, 0.5); }
.dv-badge--outdoor { background: rgba(255, 213, 184, 0.55); border-color: rgba(255, 126, 95, 0.45); }
.dv-badge--indoor  { background: rgba(174, 243, 244, 0.55); border-color: rgba(0, 194, 199, 0.45); }
.dv-badge--food    { background: rgba(255, 107, 157, 0.30); border-color: rgba(255, 62, 127, 0.45); }
.dv-badge--tide    { background: rgba(0, 194, 199, 0.30); border-color: rgba(30, 95, 142, 0.4); }


/* ====================================================
   CATEGORY SECTION HEADER
   Bungee Shade · wavy SVG underline
   ==================================================== */
.dv-section-header {
  text-align: center;
  margin: 56px 0 28px;
  padding: 0 16px;
}

.dv-section-header__title {
  font-family: var(--dv-font-display-shaded);
  color: var(--dv-ocean);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0;
  display: inline-block;
}

.dv-section-header__title--coral   { color: var(--dv-coral); }
.dv-section-header__title--pink    { color: var(--dv-hot-pink); }
.dv-section-header__title--palm    { color: var(--dv-palm); }
.dv-section-header__title--yellow  { color: var(--dv-warm-yellow); }

.dv-section-header__kicker {
  display: block;
  font-family: var(--dv-font-script);
  font-size: 1.05rem;
  color: var(--dv-hot-pink);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.dv-section-header__underline {
  display: block;
  margin: 10px auto 0;
  width: clamp(140px, 30vw, 240px);
  height: 16px;
  background: url("./assets/wave-underline.svg") center/contain no-repeat;
}


/* ====================================================
   14-DAY CALENDAR GRID
   Cream paper · Caveat Brush date · sun/moon footer
   ==================================================== */
.dv-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.dv-grid--rows-2 { grid-template-rows: repeat(2, auto); }

.dv-cell {
  position: relative;
  background: var(--dv-paper);
  border: 1.5px dashed rgba(31, 26, 20, 0.18);
  border-radius: var(--dv-radius-tile);
  padding: 10px 10px 8px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color var(--dv-dur) var(--dv-ease), background var(--dv-dur) var(--dv-ease);
}

.dv-cell:hover {
  border-color: rgba(255, 62, 127, 0.45);
}

/* Drop-zone affordance — active while dragging */
.dv-cell--dropzone-active {
  border-style: solid;
  border-color: var(--dv-hot-pink);
  background:
    repeating-linear-gradient(45deg, rgba(255, 62, 127, 0.06) 0 8px, transparent 8px 16px),
    var(--dv-paper);
}

.dv-cell--today {
  background:
    linear-gradient(180deg, rgba(255, 200, 87, 0.30), var(--dv-paper));
  border-color: var(--dv-warm-yellow);
  border-style: solid;
  box-shadow: 0 0 0 2px rgba(255, 200, 87, 0.4) inset;
}

.dv-cell__header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--dv-ocean);
  font-family: var(--dv-font-script);
  line-height: 1;
}

.dv-cell__day-name {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dv-ink-soft);
  font-family: var(--dv-font-display-alt);
}

.dv-cell__date-num {
  font-family: var(--dv-font-script);
  font-size: 1.7rem;
  color: var(--dv-ocean);
}

.dv-cell__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 60px;
}

.dv-cell__body--empty::before {
  content: "drag an idea here";
  color: rgba(31, 26, 20, 0.28);
  font-family: var(--dv-font-script);
  font-size: 0.95rem;
  text-align: center;
  padding-top: 18px;
}

.dv-cell__footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--dv-ink-soft);
  border-top: 1px dashed rgba(31, 26, 20, 0.12);
  padding-top: 5px;
  letter-spacing: 0.02em;
}

.dv-cell__footer span { display: inline-flex; align-items: center; gap: 3px; }

/* Sheet item — calendar-cell scoped card; small + drag-friendly */
.dv-sheet {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--dv-radius-tile);
  padding: 12px;
  border: 1.5px dashed rgba(31, 26, 20, 0.16);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dv-sheet-item {
  background: #fff;
  border-radius: 6px;
  padding: 7px 10px;
  box-shadow: 0 2px 6px rgba(31, 26, 20, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: grab;
  font-size: 0.82rem;
  border-left: 3px solid var(--dv-hot-pink);
}
.dv-sheet-item:hover { box-shadow: 0 4px 10px rgba(31, 26, 20, 0.14); }
.dv-sheet-item:active { cursor: grabbing; }
.dv-sheet-item__time {
  font-family: var(--dv-font-display-alt);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--dv-ocean);
  white-space: nowrap;
}
.dv-sheet-item__title { line-height: 1.2; font-weight: 600; }


/* ====================================================
   AURORA-WINDOW HIGHLIGHT (Jul 5–7)
   Translucent gold band + "AURORA HERE" banner
   ==================================================== */
.dv-aurora-window {
  position: relative;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 200, 87, 0.28), rgba(255, 200, 87, 0.10));
  border: 2px dashed var(--dv-warm-yellow);
  border-radius: var(--dv-radius-tile);
  box-shadow:
    0 0 0 4px rgba(255, 200, 87, 0.15) inset,
    0 10px 30px rgba(255, 200, 87, 0.25);
}

.dv-aurora-window__banner {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--dv-hot-pink);
  color: #fff;
  font-family: var(--dv-font-display-alt);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  padding: 7px 16px;
  border-radius: var(--dv-radius-pill);
  box-shadow:
    0 4px 12px rgba(255, 62, 127, 0.40),
    inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Inline grid wrapper for aurora window spanning 3 columns */
.dv-aurora-window__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}


/* ====================================================
   FILTER CHIPS
   Active = hot-pink fill · inactive = pink outline
   ==================================================== */
.dv-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid var(--dv-hot-pink);
  color: var(--dv-hot-pink);
  border-radius: var(--dv-radius-pill);
  font-family: var(--dv-font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background var(--dv-dur) var(--dv-ease),
              color var(--dv-dur) var(--dv-ease),
              transform var(--dv-dur) var(--dv-ease),
              box-shadow var(--dv-dur) var(--dv-ease);
}

.dv-chip:hover {
  background: rgba(255, 62, 127, 0.10);
  transform: translateY(-1px);
}

.dv-chip[aria-pressed="true"],
.dv-chip.is-active,
.dv-chip--active {
  background: var(--dv-hot-pink);
  color: #fff;
  box-shadow: 0 4px 10px rgba(255, 62, 127, 0.35);
}

.dv-chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--dv-radius-pill);
  background: rgba(31, 26, 20, 0.12);
  font-size: 0.65rem;
  font-weight: 700;
}
.dv-chip[aria-pressed="true"] .dv-chip__count,
.dv-chip.is-active .dv-chip__count { background: rgba(255, 255, 255, 0.28); }

/* Tonal chip variants for category filters */
.dv-chip--ocean    { border-color: var(--dv-ocean);     color: var(--dv-ocean); }
.dv-chip--ocean[aria-pressed="true"],
.dv-chip--ocean.is-active { background: var(--dv-ocean); color: #fff; box-shadow: 0 4px 10px rgba(30, 95, 142, 0.35); }

.dv-chip--palm     { border-color: var(--dv-palm);      color: var(--dv-palm); }
.dv-chip--palm[aria-pressed="true"],
.dv-chip--palm.is-active { background: var(--dv-palm); color: #fff; box-shadow: 0 4px 10px rgba(45, 106, 79, 0.35); }

.dv-chip--yellow   { border-color: var(--dv-coral);     color: var(--dv-coral); }
.dv-chip--yellow[aria-pressed="true"],
.dv-chip--yellow.is-active { background: var(--dv-coral); color: #fff; box-shadow: 0 4px 10px rgba(255, 126, 95, 0.4); }


/* ====================================================
   "ADD IDEA" FAB
   Circular hot-pink · "+" icon · gentle float
   ==================================================== */
.dv-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--dv-hot-pink);
  color: #fff;
  font-family: var(--dv-font-display-alt);
  font-size: 2.2rem;
  line-height: 1;
  border: 3px solid #fff;
  box-shadow: var(--dv-shadow-fab);
  animation: dv-fab-float 4s ease-in-out infinite;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dv-dur) var(--dv-ease), box-shadow var(--dv-dur) var(--dv-ease);
}

.dv-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(255, 62, 127, 0.55);
  animation-play-state: paused;
}

.dv-fab:active { transform: scale(0.97); }

.dv-fab__icon {
  display: inline-block;
  transform: translateY(-2px);
}

@keyframes dv-fab-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Floating "ADD AN IDEA" caption that appears on hover */
.dv-fab__tooltip {
  position: absolute;
  right: 76px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--dv-ink);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--dv-radius-pill);
  font-family: var(--dv-font-script);
  font-size: 0.95rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dv-dur) var(--dv-ease);
}
.dv-fab:hover .dv-fab__tooltip,
.dv-fab:focus-visible .dv-fab__tooltip { opacity: 1; }


/* ====================================================
   WAVY SVG SECTION DIVIDERS
   ==================================================== */
.dv-wave {
  display: block;
  width: 100%;
  height: clamp(60px, 8vw, 110px);
  background: url("./assets/wave-divider.svg") center/100% 100% no-repeat;
  pointer-events: none;
}

.dv-wave--flip { transform: scaleY(-1); }

/* Compact spacer wave for between sections */
.dv-wave--inline {
  height: 36px;
  margin: 32px 0;
  background-size: 100% 100%;
  opacity: 0.85;
}


/* ====================================================
   MODAL  (used by Stream I "Add idea" postcard)
   ==================================================== */
.dv-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 26, 20, 0.55);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.dv-modal {
  width: min(560px, 100%);
  max-height: 85vh;
  overflow-y: auto;
}

.dv-modal__title {
  font-family: var(--dv-font-display);
  color: var(--dv-ocean);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 4px;
}

.dv-modal__subtitle {
  font-family: var(--dv-font-script);
  color: var(--dv-hot-pink);
  font-size: 1.15rem;
  text-align: center;
  margin-bottom: 18px;
}

.dv-modal__close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dv-paper);
  border: 1.5px solid rgba(31, 26, 20, 0.15);
  color: var(--dv-ink);
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.dv-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.dv-field__label {
  font-family: var(--dv-font-display-alt);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dv-ocean);
}
.dv-field__input,
.dv-field__select,
.dv-field__textarea {
  font: inherit;
  background: var(--dv-paper);
  border: 1.5px dashed rgba(31, 26, 20, 0.25);
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--dv-ink);
}
.dv-field__textarea { resize: vertical; min-height: 80px; }
.dv-field__input:focus,
.dv-field__select:focus,
.dv-field__textarea:focus {
  outline: 2px solid var(--dv-hot-pink);
  outline-offset: 0;
  border-color: var(--dv-hot-pink);
}

.dv-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--dv-hot-pink);
  color: #fff;
  border: none;
  border-radius: var(--dv-radius-pill);
  font-family: var(--dv-font-display-alt);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(255, 62, 127, 0.3);
  transition: transform var(--dv-dur) var(--dv-ease), box-shadow var(--dv-dur) var(--dv-ease);
}
.dv-button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255, 62, 127, 0.4); }
.dv-button--ghost {
  background: transparent;
  color: var(--dv-ink-soft);
  border: 2px solid rgba(31, 26, 20, 0.15);
  box-shadow: none;
}
.dv-button--ghost:hover { background: rgba(31, 26, 20, 0.04); }


/* ====================================================
   CRT SCANLINES OVERLAY  (toggleable)
   ==================================================== */
.dv-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transition: opacity 200ms var(--dv-ease);
  background-image:
    repeating-linear-gradient(
      180deg,
      rgba(31, 26, 20, 0.08) 0,
      rgba(31, 26, 20, 0.08) 1px,
      transparent 1px,
      transparent 3px
    );
}

body.dv-scanlines-on .dv-scanlines { opacity: 1; }

/* Subtle CRT vignette is paired with scanlines */
body.dv-scanlines-on::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(31, 26, 20, 0.25) 100%);
}


/* ====================================================
   UTILITIES (light — most things use components)
   ==================================================== */
.dv-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.dv-tape {
  position: absolute;
  width: 70px;
  height: 22px;
  background: rgba(255, 200, 87, 0.7);
  border: 1px dashed rgba(31, 26, 20, 0.12);
  box-shadow: 0 1px 3px rgba(31, 26, 20, 0.18);
}
.dv-tape--tl { top: -10px; left: 10px;  rotate: -8deg; }
.dv-tape--tr { top: -10px; right: 10px; rotate: 6deg;  }

/* Reduced motion: kill the loops, keep the look */
@media (prefers-reduced-motion: reduce) {
  .dv-fab,
  .dv-ticker--near,
  .dv-ticker--now { animation: none; }
  .dv-polaroid:hover { transform: none; }
}


/* ====================================================
   MOBILE  (max-width: 768px)
   Stream J - responsive layout for iPads + phones
   Stacked planner, drawer card-pool, scrollable strips
   ==================================================== */
@media (max-width: 768px) {
  body { font-size: 15px; }

  .dv-page {
    padding: 0 12px 140px;
  }

  /* Planner: side-by-side aside + section -> vertical stack */
  #planner {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* Hero: tighter chrome, ticker slot drops under the title */
  .dv-hero {
    padding: 56px 16px 64px;
  }
  .dv-hero__title    { font-size: clamp(2.1rem, 9vw, 3.4rem); }
  .dv-hero__subtitle { font-size: 1rem; }
  .dv-hero__ticker-slot,
  .dv-hero__ticker-slot--left {
    position: static;
    margin: 12px auto 0;
    left: auto;
    right: auto;
    display: flex;
    justify-content: center;
  }
  .dv-hero__palm { width: clamp(120px, 26vw, 200px); }

  /* Postcard frame: less inner padding, smaller stamp */
  .dv-postcard           { padding: 18px; }
  .dv-postcard--tight    { padding: 14px; }
  .dv-postcard--airy     { padding: 22px; }
  .dv-postcard__stamp {
    width: 60px;
    height: 70px;
    top: 12px;
    right: 12px;
    font-size: 0.62rem;
  }
  .dv-postcard__stamp small { font-size: 0.95rem; }

  /* Section header tightens */
  .dv-section-header { margin: 32px 0 18px; }

  /* Calendar: 7-col grid -> 1-col vertical day stack */
  .dv-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .dv-aurora-window__grid {
    grid-template-columns: 1fr;
  }
  .dv-cell { min-height: 0; }

  /* Card pool: aside -> bottom drawer with pull-handle */
  #card-pool {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 75vh;
    background: var(--dv-paper);
    border-top: 2px solid var(--dv-paper-edge);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    box-shadow: 0 -12px 32px rgba(31, 26, 20, 0.25);
    padding: 18px 14px 24px;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform var(--dv-dur) var(--dv-ease);
    z-index: 90;
    -webkit-overflow-scrolling: touch;
  }
  #card-pool::before {
    content: "";
    display: block;
    width: 42px;
    height: 4px;
    margin: 0 auto 12px;
    background: var(--dv-paper-edge);
    border-radius: 2px;
  }

  /* Drawer-open state (Stream G can pick any of these hooks) */
  body.dv-drawer-open #card-pool,
  #card-pool.is-open,
  #card-pool[aria-expanded="true"] {
    transform: translateY(0);
  }

  /* Polaroids inside the drawer shrink slightly */
  #card-pool .dv-polaroid { max-width: 220px; }

  /* Master tide chart: horizontal scroll so the strip stays readable */
  .dv-tide-chart,
  #tide-chart-master,
  [data-tide-chart="master"] {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .dv-tide-chart > canvas,
  #tide-chart-master > canvas,
  [data-tide-chart="master"] > canvas {
    min-width: 720px;
  }

  /* Filter chips: wrap -> horizontal scroll strip, edge-bleed */
  .dv-chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 12px 8px;
    margin: 0 -12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .dv-chip-row::-webkit-scrollbar { display: none; }
  .dv-chip { flex: 0 0 auto; }

  /* FAB: tighter offsets, lifts above drawer when it's open */
  .dv-fab,
  #add-idea-fab {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    font-size: 1.9rem;
  }
  .dv-fab__tooltip { display: none; }

  body.dv-drawer-open .dv-fab,
  body.dv-drawer-open #add-idea-fab,
  #card-pool.is-open ~ .dv-fab,
  #card-pool.is-open ~ #add-idea-fab,
  #card-pool[aria-expanded="true"] ~ .dv-fab,
  #card-pool[aria-expanded="true"] ~ #add-idea-fab {
    bottom: calc(75vh + 12px);
    box-shadow: 0 -6px 20px rgba(255, 62, 127, 0.4);
  }
}


/* ====================================================
   PRINT
   Stream J - clean itinerary, no app chrome
   Stream G populates [data-printed-on] on .dv-print-header
   ==================================================== */
@media print {
  /* Reset paper + ink for ink savings */
  body {
    background: #fff !important;
    background-image: none !important;
    background-attachment: initial !important;
    color: #000;
    font-size: 11pt;
    line-height: 1.35;
    padding: 0;
    margin: 0;
  }
  .dv-page {
    padding: 0;
    margin: 0;
    max-width: none;
  }

  /* Drop app chrome: drawer, FAB, tickers, filter strip, scanlines, waves */
  #card-pool,
  #add-idea-fab,
  .dv-fab,
  .dv-chip-row,
  .dv-hero__ticker-slot,
  .dv-hero__ticker-slot--left,
  .dv-ticker,
  #presence-badge,
  .dv-presence-badge,
  .dv-scanlines,
  .dv-wave {
    display: none !important;
  }

  /* Hero: flatten sunset gradient to a single warm accent line */
  .dv-hero {
    background: #fff !important;
    box-shadow: none !important;
    border-bottom: 3px solid var(--dv-coral) !important;
    padding: 12pt 0 14pt;
    text-align: left;
  }
  .dv-hero::before,
  .dv-hero::after,
  .dv-hero__palms { display: none !important; }
  .dv-hero__title {
    color: var(--dv-ink);
    text-shadow: none;
    font-size: 24pt;
    letter-spacing: 0.02em;
  }
  .dv-hero__eyebrow,
  .dv-hero__subtitle {
    color: var(--dv-ink-soft);
    text-shadow: none;
    transform: none;
  }
  .dv-hero__pills {
    justify-content: flex-start;
    margin-top: 6pt;
  }

  /* Print-only header band (Stream G populates data-printed-on) */
  .dv-print-only { display: block !important; }
  .dv-print-header {
    display: block !important;
    margin: 0 0 12pt;
    padding-bottom: 6pt;
    border-bottom: 1px solid #999;
    font-family: var(--dv-font-body);
    font-size: 10pt;
    color: #555;
  }
  .dv-print-header::before {
    content: attr(data-printed-on);
    font-weight: 700;
    color: #000;
    display: block;
    font-size: 12pt;
    margin-bottom: 2pt;
  }

  /* Planner + calendar: stacked vertical flow, one day per row */
  #planner,
  #calendar,
  .dv-grid,
  .dv-aurora-window__grid {
    display: block;
  }

  .dv-cell {
    page-break-inside: avoid;
    break-inside: avoid;
    min-height: 0;
    margin: 0 0 10pt;
    padding: 8pt 10pt;
    background: #fff;
    border: 1px solid #999;
    border-radius: 4px;
    box-shadow: none;
  }
  .dv-cell--today {
    background: #fff;
    box-shadow: none;
    border-width: 2px;
  }
  .dv-cell__body { min-height: 0; }
  .dv-cell__body--empty::before { content: none; }
  .dv-cell__footer { border-top-color: #ccc; }

  /* Polaroids inside cells: print-friendly minimal cards */
  .dv-polaroid {
    max-width: none;
    width: 100%;
    box-shadow: none;
    border: 1px solid #ccc;
    padding: 6pt 8pt 8pt;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .dv-polaroid:hover { transform: none; }
  .dv-polaroid__media {
    background: #f5f5f5 !important;
    color: #555;
    aspect-ratio: auto;
    height: 40pt;
    font-size: 1.4rem;
    text-shadow: none;
  }

  /* Sheet items inside cells stay compact, no ornament */
  .dv-sheet,
  .dv-sheet-item {
    background: #fff;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  /* Postcard frames: drop ornamental dashed rings + stamp */
  .dv-postcard,
  .dv-postcard--airy,
  .dv-postcard--tight {
    padding: 0;
    box-shadow: none;
    border: none;
    background: #fff;
  }
  .dv-postcard::before,
  .dv-postcard::after,
  .dv-postcard__stamp { display: none !important; }

  /* Section headers keep their text, lose the wavy underline */
  .dv-section-header {
    margin: 14pt 0 8pt;
    text-align: left;
    page-break-after: avoid;
    break-after: avoid;
  }
  .dv-section-header__title {
    color: var(--dv-ink);
    font-size: 14pt;
  }
  .dv-section-header__underline { display: none; }

  /* Aurora window: keep highlight, drop heavy gold fill */
  .dv-aurora-window {
    background: #fff;
    border: 1.5px solid #999;
    box-shadow: none;
    padding: 6pt;
  }
  .dv-aurora-window__banner {
    position: static;
    transform: none;
    background: #fff;
    color: var(--dv-ink);
    border: 1px solid #999;
    box-shadow: none;
    margin-bottom: 6pt;
  }

  /* Force inky links, kill animations + transitions everywhere */
  a { color: #000; text-decoration: underline; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  /* Page setup */
  @page {
    margin: 0.5in;
  }
}

/* Print-only elements stay hidden on screen */
.dv-print-only { display: none; }
