/* ============================================================
   russwhite.net — "Neon Midnight"
   Apple restraint · Las Vegas glow · pride spectrum.
   A dark, luxe canvas lit by neon. Spectrum used with discipline.
   ============================================================ */

:root {
  /* Signature spectrum — pride, reimagined as neon (Vegas at night). */
  --rw-spectrum: linear-gradient(
    100deg,
    #ff2e63 0%, #ff6a3d 20%, #ffd23f 40%,
    #2ee6a6 58%, #21c8ff 76%, #b06cff 100%
  );
  --rw-spectrum-soft: linear-gradient(100deg, #ff2e63, #21c8ff, #b06cff);
  /* Seamless loop: ends on the same color it starts, so a scrolling repeat
     shows no hard seam where the tile wraps. */
  --rw-spectrum-loop: linear-gradient(90deg,
    #ff2e63, #ff6a3d, #ffd23f, #2ee6a6, #21c8ff, #b06cff, #ff2e63);

  --rw-accent: #ffd23f;        /* Vegas gold */
  --rw-accent-hot: #ff2e63;    /* neon magenta */
  --rw-cyan: #21c8ff;

  /* Night canvas */
  --rw-bg: #07070c;
  --rw-bg-2: #0d0d15;
  --rw-surface: rgba(255, 255, 255, 0.035);
  --rw-surface-2: rgba(255, 255, 255, 0.06);
  --rw-border: rgba(255, 255, 255, 0.09);
  --rw-border-lit: rgba(255, 210, 63, 0.55);

  /* Ink — Apple grays */
  --rw-ink: #f5f5f7;
  --rw-ink-dim: #a9adbb;
  --rw-ink-faint: #6b7080;

  --rw-font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --rw-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* legacy vars kept for any inline refs */
  --rw-primary: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--rw-font);
  color: var(--rw-ink);
  background: var(--rw-bg);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient Vegas glow — two colored light sources bleeding up from the dark. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 12% -8%, rgba(255, 46, 99, 0.18), transparent 60%),
    radial-gradient(55vw 55vw at 92% 4%, rgba(33, 200, 255, 0.16), transparent 60%),
    radial-gradient(70vw 50vw at 50% 108%, rgba(176, 108, 255, 0.14), transparent 62%),
    linear-gradient(180deg, var(--rw-bg), var(--rw-bg-2));
}

a { color: var(--rw-ink); text-decoration: none; transition: color 0.2s var(--rw-ease); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }

::selection { background: rgba(255, 46, 99, 0.35); color: #fff; }

/* ---------------------------------------------------------- Nav */
.rw-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 12, 0.6);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--rw-border);
}
.rw-brand {
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em;
  background: var(--rw-spectrum);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.rw-nav nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.6rem); flex-wrap: wrap; }
.rw-nav nav a, .rw-navlabel {
  font-weight: 500; font-size: 0.95rem; color: var(--rw-ink-dim);
  position: relative; padding: 0.15rem 0;
}
.rw-nav nav a:hover { color: #fff; }
/* spectrum underline on hover / active */
.rw-nav nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--rw-spectrum); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.28s var(--rw-ease);
}
.rw-nav nav a:hover::after, .rw-nav nav a.rw-active::after { transform: scaleX(1); }
.rw-nav nav a.rw-active { color: #fff; }

/* Two-level submenu */
.rw-has-sub { position: relative; display: inline-flex; align-items: center; }
.rw-has-sub > .rw-sub {
  position: absolute; left: 0; top: 100%; display: none; min-width: 184px;
  background: rgba(13, 13, 21, 0.92); backdrop-filter: blur(18px);
  border: 1px solid var(--rw-border); border-radius: 14px;
  padding: 0.4rem; margin-top: 0.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.02);
}
/* Invisible bridge across the 0.5rem gap so hover survives the trip
   from the parent link down into the dropdown. */
.rw-has-sub > .rw-sub::before {
  content: ""; position: absolute; left: 0; right: 0; top: -0.6rem; height: 0.6rem;
}
.rw-has-sub:hover > .rw-sub, .rw-has-sub:focus-within > .rw-sub { display: block; }
.rw-sub a { display: block; padding: 0.55rem 0.85rem; border-radius: 9px; white-space: nowrap; color: var(--rw-ink-dim); }
.rw-sub a:hover { background: var(--rw-surface-2); color: #fff; }

/* ---------------------------------------------------------- Layout */
main { max-width: 1120px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem); }

/* ---------------------------------------------------------- Hero */
.rw-hero { padding: clamp(3.5rem, 12vw, 9rem) 0 clamp(2.5rem, 7vw, 5rem); }
.rw-hero.rw-center { text-align: center; }
.rw-hero.rw-center .rw-sub { margin-left: auto; margin-right: auto; }
/* Hero with an uploaded background image/video — a contained rounded banner
   (main is already a 1120px centered column). Text-only heroes are untouched. */
.rw-hero-bg {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 20px;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  background-repeat: no-repeat;
  background-color: var(--rw-surface-2, #16161f);
}
.rw-hero-bg.rw-hero-large  { min-height: 62vh; }
.rw-hero-bg.rw-hero-medium { min-height: 46vh; }
.rw-hero-bg.rw-hero-small  { min-height: 32vh; }
.rw-hero-bg.rw-hero-full   { min-height: 88vh; }
.rw-hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.rw-hero-overlay { position: absolute; inset: 0; background: #05050b; z-index: 1; }
.rw-hero-bg .rw-hero-inner { position: relative; z-index: 2; width: 100%; }
.rw-hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
  margin: 0 0 1.25rem; max-width: 15ch;
  background: linear-gradient(180deg, #ffffff 30%, #c9ccd6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rw-hero.rw-center h1 { max-width: none; }
/* the marquee line gets the full spectrum + a slow Vegas shimmer */
.rw-hero h1 .rw-glow,
.rw-hero h1 em {
  font-style: normal;
  background: var(--rw-spectrum-loop); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rw-shimmer 9s linear infinite;
}
/* Scroll exactly one full tile (200% bg over a 100% box travels one period),
   so the loop restart is invisible — no hard line. */
@keyframes rw-shimmer {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

.rw-hero .rw-sub {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 400;
  color: var(--rw-ink-dim); margin: 0 0 2rem; max-width: 44ch; line-height: 1.5;
}

/* ---------------------------------------------------------- CTA */
.rw-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  /* full spectrum spans the whole pill — no 180% window that clips to red→green */
  background: var(--rw-spectrum);
  color: #0a0a12; font-weight: 700; letter-spacing: -0.01em;
  padding: 0.85rem 1.9rem; border-radius: 999px;
  box-shadow: 0 8px 30px rgba(255, 46, 99, 0.28), 0 2px 10px rgba(33, 200, 255, 0.2);
  transition: transform 0.25s var(--rw-ease), box-shadow 0.25s var(--rw-ease), filter 0.25s var(--rw-ease);
}
.rw-cta:hover {
  color: #0a0a12; transform: translateY(-2px); filter: brightness(1.08) saturate(1.05);
  box-shadow: 0 14px 44px rgba(255, 46, 99, 0.42), 0 4px 18px rgba(33, 200, 255, 0.3);
}
.rw-cta:active { transform: translateY(0); }

/* ---------------------------------------------------------- Text / prose */
.rw-text { margin: 1.75rem 0; color: var(--rw-ink-dim); }
.rw-image { margin: 2rem 0; }
.rw-image img { border-radius: 16px; }
.rw-image figcaption { color: var(--rw-ink-faint); font-size: 0.9rem; margin-top: 0.6rem; }

.rw-prose { max-width: 700px; margin: 0 auto; }
.rw-prose p { margin: 0 0 1.15rem; font-size: 1.12rem; color: var(--rw-ink-dim); }
.rw-prose h2, .rw-prose h3 { color: #fff; letter-spacing: -0.02em; }
.rw-prose ul { padding-left: 0; list-style: none; }
.rw-prose li {
  margin: 0 0 0.9rem; padding-left: 1.6rem; position: relative; color: var(--rw-ink-dim);
}
.rw-prose li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 0.6rem; height: 0.6rem;
  border-radius: 50%; background: var(--rw-spectrum-soft);
  box-shadow: 0 0 10px rgba(255, 46, 99, 0.6);
}
.rw-prose li strong { color: #fff; font-weight: 600; }
.rw-prose a { color: var(--rw-cyan); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(33,200,255,0.4); }
.rw-prose a:hover { color: #7fdcff; }
.rw-prose a.rw-cta { color: #0a0a12; text-decoration: none; }
/* Authored HTML never sets its own colours: anything carried in from a paste
   (or stored before paste-scrubbing existed) inherits the site palette instead
   of rendering, say, black on this dark background. */
.rw-prose [style*="color"], .rw-prose font,
.rw-blog-body [style*="color"], .rw-blog-body font {
  color: inherit !important; background-color: transparent !important;
}
/* Rich Text width option (narrow/normal/wide) — overrides .rw-prose max-width. */
.rw-prose-narrow { max-width: 620px; }
.rw-prose-normal { max-width: 760px; }
.rw-prose-wide   { max-width: 1000px; }
/* Text Block heading */
.rw-text > h2 { color: #fff; letter-spacing: -0.02em; margin: 0 0 0.75rem; }

/* ------------------------------------------- Admin inline text editing */
.rw-editable {
  border-radius: 8px; outline: none;
  transition: box-shadow 0.15s var(--rw-ease), background 0.15s var(--rw-ease);
}
.rw-editable:hover { box-shadow: 0 0 0 1px var(--rw-border-lit); background: rgba(255, 255, 255, 0.02); }
.rw-editable.rw-editing { box-shadow: 0 0 0 2px var(--rw-cyan); background: rgba(33, 200, 255, 0.06); }
.rw-editable:empty::before {
  content: attr(data-rw-ph); color: var(--rw-ink-faint); font-style: italic; opacity: 0.7;
}
/* Template-wide fields (edits apply to every itinerary day) — amber accent. */
.rw-editable-tpl:hover { box-shadow: 0 0 0 1px rgba(255, 210, 63, 0.7); }
.rw-editable-tpl.rw-editing { box-shadow: 0 0 0 2px #ffd23f; background: rgba(255, 210, 63, 0.08); }
.rw-rt-toolbar {
  position: absolute; z-index: 60; display: flex; gap: 2px; padding: 4px;
  background: rgba(13, 13, 21, 0.95); border: 1px solid var(--rw-border-lit); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.rw-rt-toolbar button {
  font: inherit; font-size: 0.82rem; line-height: 1; cursor: pointer; color: var(--rw-ink);
  background: transparent; border: 0; border-radius: 6px; padding: 0.4rem 0.55rem;
}
.rw-rt-toolbar button:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.rw-edit-banner {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 55;
  font-size: 0.82rem; font-weight: 600; color: var(--rw-ink); pointer-events: none;
  background: rgba(13, 13, 21, 0.9); border: 1px solid var(--rw-border-lit); border-radius: 999px;
  padding: 0.5rem 1rem; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.rw-edit-status { margin-left: 0.35rem; font-weight: 700; }
.rw-edit-status[data-state="saved"]  { color: #3ddc84; }
.rw-edit-status[data-state="dirty"]  { color: var(--rw-ink-faint); }
.rw-edit-status[data-state="saving"] { color: var(--rw-cyan); }
.rw-edit-status[data-state="error"]  { color: #ff2e63; }

/* ---------------------------------------------------------- Cards */
.rw-cards {
  display: grid; gap: 1.25rem; margin: 2.5rem auto; max-width: 980px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.rw-card {
  position: relative; display: block; padding: 1.75rem;
  border: 1px solid var(--rw-border); border-radius: 18px;
  background: var(--rw-surface); color: inherit; overflow: hidden;
  transition: transform 0.3s var(--rw-ease), border-color 0.3s var(--rw-ease), box-shadow 0.3s var(--rw-ease), background 0.3s var(--rw-ease);
}
/* spectrum edge that lights up on hover */
.rw-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--rw-spectrum);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.3s var(--rw-ease);
}
.rw-card:hover {
  text-decoration: none; transform: translateY(-4px); background: var(--rw-surface-2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.rw-card:hover::before { opacity: 1; }
.rw-card h3 { margin: 0 0 0.5rem; color: #fff; font-size: 1.25rem; letter-spacing: -0.02em; }
.rw-card p { margin: 0; color: var(--rw-ink-dim); }

/* ---------------------------------------------------------- Gallery */
.rw-gallery {
  display: grid; grid-template-columns: repeat(var(--gal-cols, 3), 1fr);
  gap: 0.85rem; margin: 2rem 0;
}
@media (max-width: 600px) { .rw-gallery { grid-template-columns: repeat(2, 1fr); } }
.rw-gal-item {
  margin: 0; border-radius: 14px; overflow: hidden;
  background: var(--rw-surface); border: 1px solid var(--rw-border);
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--rw-ease), box-shadow 0.3s var(--rw-ease);
}
.rw-gal-item:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.rw-gal-item img {
  width: 100%; aspect-ratio: 1; object-fit: contain;
  background: #0b0b12; display: block;
}
.rw-gal-item figcaption {
  font-size: 0.82rem; color: var(--rw-ink-faint);
  padding: 0.45rem 0.6rem; line-height: 1.4;
}

/* ---------------------------------------------------------- Trip / itinerary (/europe2026) */
.rw-trip { max-width: 860px; margin: 0 auto; }

.rw-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem; margin: 0.5rem 0 2.5rem;
}
.rw-stat {
  border: 1px solid var(--rw-border); border-radius: 16px;
  background: var(--rw-surface); padding: 1.1rem 0.75rem; text-align: center;
}
.rw-stat b {
  /* fit-content so the gradient box hugs the digits — otherwise the full-width
     block spreads the spectrum past the number and only red→green lands on it */
  display: block; width: fit-content; margin: 0 auto;
  font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  background: var(--rw-spectrum);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rw-stat span { display: block; margin-top: 0.35rem; color: var(--rw-ink-dim); font-size: 0.8rem; }

.rw-trip-tag {
  text-align: center; color: var(--rw-accent); font-weight: 600;
  font-size: 0.95rem; margin: 0 0 1rem; letter-spacing: -0.01em;
}

.rw-phase { margin: 3.5rem 0 0; padding-top: 2rem; border-top: 1px solid var(--rw-border); }
.rw-phase h2 {
  font-size: clamp(1.4rem, 3.5vw, 2.1rem); letter-spacing: -0.025em; font-weight: 800;
  margin: 0 0 0.4rem;
  background: linear-gradient(180deg, #fff, #c9ccd6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rw-phase-meta { color: var(--rw-accent); font-weight: 600; font-size: 0.9rem; margin: 0; }
.rw-ship { color: var(--rw-ink-dim); font-size: 0.9rem; margin: 0.5rem 0 0; line-height: 1.5; }

.rw-days { margin-top: 1.25rem; }
.rw-day {
  display: grid; grid-template-columns: 68px 1fr; gap: 1.1rem;
  padding: 1.15rem 0; border-top: 1px solid var(--rw-border);
}
.rw-day:first-child { border-top: none; }
.rw-day-rail { text-align: center; }
.rw-day-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 13px; font-weight: 800; font-size: 1.05rem;
  color: #0a0a12; background: var(--rw-spectrum);
  box-shadow: 0 6px 18px rgba(255, 46, 99, 0.22);
}
.rw-day-date {
  display: block; margin-top: 0.4rem; font-size: 0.72rem;
  color: var(--rw-ink-faint); line-height: 1.35; text-transform: uppercase; letter-spacing: 0.02em;
}
.rw-day-img {
  width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--rw-border);
  margin: 0.15rem 0 0.7rem; background: var(--rw-surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.rw-day-body h3 {
  margin: 0.25rem 0 0.15rem; color: #fff; font-size: 1.12rem; letter-spacing: -0.01em;
}
.rw-flag { font-size: 0.8rem; font-weight: 500; color: var(--rw-ink-faint); letter-spacing: 0; }
.rw-day-when { color: var(--rw-cyan); font-size: 0.84rem; font-weight: 500; margin: 0 0 0.45rem; }
.rw-day-body p { margin: 0.3rem 0 0; color: var(--rw-ink-dim); font-size: 0.98rem; line-height: 1.55; }
.rw-day-note {
  font-size: 0.86rem; color: var(--rw-ink-faint) !important;
  border-left: 2px solid var(--rw-border-lit); padding-left: 0.7rem; margin-top: 0.5rem !important;
}
.rw-day-theme {
  display: inline-block; margin-top: 0.55rem !important; font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.02em; color: #ffe08a !important;
  background: rgba(255, 210, 63, 0.1); border: 1px solid rgba(255, 210, 63, 0.28);
  padding: 0.2rem 0.6rem; border-radius: 999px;
}

.rw-notes h3 { color: #fff; font-size: 1.1rem; letter-spacing: -0.01em; margin: 1.5rem 0 0.5rem; }
.rw-notes ul { padding-left: 0; list-style: none; margin: 0 0 0.5rem; }
.rw-notes li {
  margin: 0 0 0.7rem; padding-left: 1.4rem; position: relative;
  color: var(--rw-ink-dim); font-size: 0.96rem; line-height: 1.55;
}
.rw-notes li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 0.55rem; height: 0.55rem;
  border-radius: 50%; background: var(--rw-spectrum-soft);
}
.rw-notes li strong { color: #fff; }
.rw-trip-foot {
  text-align: center; margin: 3rem 0 0; color: var(--rw-ink-faint);
  font-size: 0.9rem; letter-spacing: 0.01em;
}
@media (max-width: 520px) {
  .rw-day { grid-template-columns: 52px 1fr; gap: 0.85rem; }
  .rw-day-n { width: 36px; height: 36px; border-radius: 11px; font-size: 0.92rem; }
}

/* ---------------------------------------------------------- Trip widget views */
/* Segmented control (connected pills) with icon-only buttons. */
.rw-view-toggle {
  display: inline-flex; gap: 2px; margin: 1.75rem 0 0.25rem;
  background: var(--rw-surface); border: 1px solid var(--rw-border);
  border-radius: 11px; padding: 3px;
}
.rw-vt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; cursor: pointer; color: var(--rw-ink-dim);
  background: transparent; border: 0; padding: 0.4rem 0.7rem; border-radius: 8px;
  transition: color 0.2s var(--rw-ease), background 0.2s var(--rw-ease);
}
.rw-vt-btn svg { display: block; }
.rw-vt-btn:hover { color: #fff; }
.rw-vt-active, .rw-vt-active:hover { color: #0a0a12; background: var(--rw-accent); }

/* Only the active view is shown (flipped by [data-active-view] on .rw-trip). */
.rw-trip-view { display: none; }
.rw-trip[data-active-view="card"]     .rw-trip-view[data-view="card"],
.rw-trip[data-active-view="list"]     .rw-trip-view[data-view="list"],
.rw-trip[data-active-view="carousel"] .rw-trip-view[data-view="carousel"],
.rw-trip[data-active-view="calendar"] .rw-trip-view[data-view="calendar"] { display: block; }
.rw-trip-empty { color: var(--rw-ink-faint); text-align: center; padding: 2.5rem 0; }

/* Card + carousel share .rw-trip-card */
.rw-trip-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 1.1rem; margin-top: 1.25rem; }
.rw-trip-rail {
  display: flex; gap: 1.1rem; margin-top: 1.25rem; overflow-x: auto; padding-bottom: 0.8rem;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--rw-border-lit) transparent;
}
.rw-trip-rail .rw-trip-card { flex: 0 0 258px; scroll-snap-align: start; }
.rw-trip-card {
  background: var(--rw-surface); border: 1px solid var(--rw-border); border-top: 3px solid var(--rw-accent);
  border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
}
.rw-trip-card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: var(--rw-surface-2); }
.rw-trip-card-body { padding: 0.85rem 1rem 1.15rem; }
.rw-trip-card-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; }
.rw-trip-card-n {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 0.4rem;
  border-radius: 7px; font-size: 0.76rem; font-weight: 800; color: #0a0a12; background: var(--rw-accent);
}
.rw-trip-card-date { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.02em; color: var(--rw-ink-faint); }
.rw-trip-card-body h3 { margin: 0.1rem 0 0.2rem; color: #fff; font-size: 1.04rem; letter-spacing: -0.01em; }

/* Calendar — one month grid per month the trip spans */
.rw-cal-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; margin-top: 1.25rem; }
.rw-cal-title { font-weight: 800; color: #fff; margin-bottom: 0.55rem; font-size: 1.05rem; }
.rw-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.rw-cal-dow { text-align: center; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--rw-ink-faint); padding-bottom: 0.25rem; }
.rw-cal-cell { min-height: 66px; border: 1px solid var(--rw-border); border-radius: 8px; padding: 0.3rem; background: var(--rw-surface); overflow: hidden; }
.rw-cal-empty { border: none; background: transparent; }
.rw-cal-num { font-size: 0.7rem; color: var(--rw-ink-faint); }
.rw-cal-has { background: var(--rw-surface-2); }
.rw-cal-today { border-color: var(--rw-border-lit); box-shadow: inset 0 0 0 1px var(--rw-border-lit); }
.rw-cal-ev { display: flex; align-items: center; gap: 0.3rem; margin-top: 0.2rem; font-size: 0.7rem; color: var(--rw-ink-dim); line-height: 1.2; }
.rw-cal-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--rw-accent); flex: 0 0 auto; }

/* Clickable days → itinerary detail. No display here — each type's base class
   (.rw-day grid / .rw-trip-card flex / .rw-cal-ev flex) sets its own. */
a.rw-day-link { text-decoration: none; color: inherit; }
a.rw-day.rw-day-link { border-radius: 12px; transition: background 0.18s var(--rw-ease); }
a.rw-day.rw-day-link:hover { background: var(--rw-surface); }
a.rw-trip-card.rw-day-link { transition: transform 0.18s var(--rw-ease), border-color 0.18s var(--rw-ease), box-shadow 0.18s var(--rw-ease); }
a.rw-trip-card.rw-day-link:hover { transform: translateY(-3px); border-color: var(--rw-border-lit); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4); }
a.rw-cal-ev.rw-day-link { text-decoration: none; }
a.rw-cal-ev.rw-day-link:hover { color: #fff; }
a.rw-cal-ev.rw-day-link:hover .rw-cal-dot { box-shadow: 0 0 0 3px var(--rw-accent); }

/* Itinerary detail page (/itinerary/{journeyId}/{itemId}) */
.rw-itin-detail { max-width: 760px; margin: 0 auto; }
.rw-itin-back { display: inline-block; margin: 0 0 1.25rem; color: var(--rw-ink-dim); font-size: 0.92rem; }
.rw-itin-back:hover { color: #fff; }
.rw-itin-hero {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px;
  border: 1px solid var(--rw-border); margin-bottom: 1.4rem; background: var(--rw-surface);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.rw-itin-meta { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.rw-itin-n {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 0.5rem;
  border-radius: 9px; font-weight: 800; color: #0a0a12; background: var(--rw-spectrum);
}
.rw-itin-date { color: var(--rw-ink-faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.rw-itin-phase { color: var(--rw-accent); font-weight: 600; font-size: 0.85rem; margin-left: auto; }
.rw-itin-detail h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -0.02em; margin: 0.2rem 0 0.8rem; }
.rw-itin-detail > p:not([class]) { color: var(--rw-ink-dim); font-size: 1.08rem; line-height: 1.6; margin: 0 0 1rem; }
/* Journal / blog entries on a day's detail page */
.rw-blog { max-width: 760px; margin: 2.5rem auto 0; padding-top: 1.6rem; border-top: 1px solid var(--rw-border); }
.rw-blog[hidden] { display: none; }
.rw-blog-h { font-size: 1.3rem; letter-spacing: -0.02em; color: #fff; margin: 0 0 1.2rem; }
.rw-blog-list { display: flex; flex-direction: column; gap: 1.8rem; }
.rw-blog-entry { position: relative; }
.rw-blog-entry + .rw-blog-entry { padding-top: 1.8rem; border-top: 1px solid var(--rw-border); }
.rw-blog-hero {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px;
  border: 1px solid var(--rw-border); margin-bottom: 0.9rem; background: var(--rw-surface);
}
.rw-blog-entry-head { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.rw-blog-title { font-size: 1.35rem; letter-spacing: -0.01em; color: #fff; margin: 0; }
.rw-blog-date { color: var(--rw-ink-faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.rw-blog-badge {
  display: inline-flex; align-items: center; padding: 0.1rem 0.5rem; border-radius: 999px;
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: #0a0a12; background: var(--rw-accent, #ffcf3f);
}
.rw-blog-body { max-width: none; }
.rw-blog-body p { margin: 0 0 1rem; font-size: 1.08rem; line-height: 1.65; color: var(--rw-ink-dim); }
.rw-blog-draft { opacity: 0.72; }
/* Admin authoring affordances (front-of-site) */
.rw-blog-empty { color: var(--rw-ink-faint); font-size: 0.95rem; }
.rw-blog-add { margin-top: 1.4rem; }
.rw-blog-add-btn {
  font: inherit; cursor: pointer; padding: 0.55rem 1rem; border-radius: 10px;
  border: 1px dashed var(--rw-border-lit, var(--rw-border)); background: var(--rw-surface); color: var(--rw-ink-dim);
}
.rw-blog-add-btn:hover { color: #fff; border-color: var(--rw-accent, #ffcf3f); }
.rw-blog-ctrls { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.7rem; padding-top: 0.6rem; }
.rw-blog-date-edit { font-size: 0.76rem; color: var(--rw-ink-faint); display: inline-flex; align-items: center; gap: 0.35rem; }
.rw-blog-date-edit input {
  font: inherit; color: #fff; background: var(--rw-surface); border: 1px solid var(--rw-border);
  border-radius: 8px; padding: 0.25rem 0.4rem;
}
.rw-blog-pub, .rw-blog-del {
  font: inherit; font-size: 0.8rem; cursor: pointer; padding: 0.35rem 0.7rem; border-radius: 8px;
  border: 1px solid var(--rw-border); background: var(--rw-surface); color: var(--rw-ink-dim);
}
.rw-blog-pub:hover { color: #fff; }
.rw-blog-pub-on { color: #0a0a12; background: var(--rw-accent, #ffcf3f); border-color: transparent; font-weight: 700; }
.rw-blog-del:hover { color: #ff6b6b; border-color: rgba(255, 107, 107, 0.5); }

/* Journey-wide journal feed (homepage "latest entries") */
.rw-feed { max-width: 900px; margin: 0 auto; }
.rw-feed-h { font-size: clamp(1.4rem, 4vw, 1.9rem); letter-spacing: -0.02em; color: #fff; margin: 0 0 1.3rem; }
.rw-feed-list { display: grid; gap: 1.1rem; }
.rw-feed-item {
  display: grid; grid-template-columns: 220px 1fr; gap: 1.2rem; align-items: stretch;
  padding: 0.9rem; border-radius: 16px; border: 1px solid var(--rw-border); background: var(--rw-surface);
  transition: border-color 0.18s var(--rw-ease), background 0.18s var(--rw-ease), transform 0.18s var(--rw-ease);
}
.rw-feed-item:hover { border-color: var(--rw-border-lit); background: var(--rw-surface-2); transform: translateY(-2px); }
.rw-feed-noimg { grid-template-columns: 1fr; }
.rw-feed-img {
  width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--rw-border); background: var(--rw-surface-2);
}
.rw-feed-body { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.rw-feed-meta { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.rw-feed-place { color: var(--rw-accent); font-weight: 600; font-size: 0.85rem; }
.rw-feed-date { color: var(--rw-ink-faint); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.03em; }
.rw-feed-title { color: #fff; font-size: 1.22rem; letter-spacing: -0.01em; margin: 0 0 0.4rem; }
.rw-feed-excerpt { color: var(--rw-ink-dim); font-size: 1rem; line-height: 1.55; margin: 0; }
@media (max-width: 640px) {
  .rw-feed-item { grid-template-columns: 1fr; }
  .rw-feed-img { aspect-ratio: 16 / 9; }
}

.rw-itin-nav {
  max-width: 760px; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--rw-border);
  display: flex; gap: 0.9rem;
}
.rw-itin-nav-cell {
  flex: 1 1 0; display: flex; flex-direction: column; gap: 0.28rem; min-width: 0;
  padding: 0.85rem 1rem; border-radius: 14px; border: 1px solid var(--rw-border); background: var(--rw-surface);
  transition: color 0.18s var(--rw-ease), border-color 0.18s var(--rw-ease), background 0.18s var(--rw-ease);
}
.rw-itin-nav-cell:hover { border-color: var(--rw-border-lit); background: var(--rw-surface-2); }
.rw-itin-nav-next { text-align: right; }
.rw-itin-nav-empty { visibility: hidden; pointer-events: none; }
.rw-itin-nav-dir { color: var(--rw-ink-faint); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.rw-itin-nav-name {
  color: var(--rw-ink); font-weight: 600; font-size: 0.95rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rw-itin-nav-cell:hover .rw-itin-nav-name { color: #fff; }

/* ---------------------------------------------------------- Map widget */
.rw-map { margin: 2rem 0; }
.rw-map > h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); letter-spacing: -0.02em; margin: 0 0 1rem; }
.rw-map-wrap {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--rw-border); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}
.rw-map-canvas { width: 100%; height: 440px; background: var(--rw-surface-2); }
.rw-map-overlay { position: absolute; top: 12px; right: 12px; z-index: 5; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.rw-map-btn {
  font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; color: var(--rw-ink);
  background: rgba(13, 13, 21, 0.82); border: 1px solid var(--rw-border); border-radius: 10px;
  padding: 0.5rem 0.85rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: color 0.18s var(--rw-ease), background 0.18s var(--rw-ease), border-color 0.18s var(--rw-ease);
}
.rw-map-btn:hover { color: #fff; border-color: var(--rw-border-lit); }
.rw-map-btn-on, .rw-map-btn-on:hover { color: #0a0a12; background: var(--rw-accent); border-color: var(--rw-accent); }
.rw-map-badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 5; font-size: 0.78rem; font-weight: 600; color: #fff;
  background: rgba(13, 13, 21, 0.82); border: 1px solid var(--rw-border); border-radius: 999px;
  padding: 0.35rem 0.75rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.rw-map-badge { color: #ff6b8a; }
.rw-map-badge-stale { color: var(--rw-ink-faint, #9a9aa8); }
.rw-map-fallback { padding: 3rem 1.5rem; text-align: center; color: var(--rw-ink-dim); }

/* Custom map annotation — large dot + name label (or "?" + "Location is Unknown").
   .rw-map-pin-anchor is 0×0 (its child is absolute), so it sits exactly on the
   coordinate; the pin is centered horizontally and lifted so the dot is on point. */
.rw-map-pin-anchor { position: relative; }
.rw-map-pin {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -18px);
  display: flex; flex-direction: column; align-items: center; gap: 5px; pointer-events: none;
}
.rw-map-pin-dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--rw-accent); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem; color: #0a0a12; line-height: 1;
}
.rw-map-pin-live .rw-map-pin-dot { background: #ff2e63; color: #fff; animation: rw-map-pulse 2s infinite; }
.rw-map-pin-unknown .rw-map-pin-dot { background: var(--rw-ink-faint); color: #fff; }
.rw-map-pin-dest .rw-map-pin-dot { background: var(--rw-cyan); color: #05131a; }
.rw-map-pin-label {
  font-size: 0.82rem; font-weight: 700; color: #fff; white-space: nowrap; letter-spacing: -0.01em;
  background: rgba(13, 13, 21, 0.88); border: 1px solid var(--rw-border); border-radius: 999px;
  padding: 0.28rem 0.65rem; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}
.rw-map-pin-time {
  font-size: 0.72rem; font-weight: 600; color: var(--rw-ink-dim, #b6b6c4); white-space: nowrap;
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
}
@keyframes rw-map-pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(255, 46, 99, 0.5); }
  50%      { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55), 0 0 0 12px rgba(255, 46, 99, 0); }
}

/* ============================================================ Weather widget
   Open-Meteo forecast block (current / hourly / 10-day / trip / details).
   Styled for Neon Midnight — translucent surfaces, neon accents on dark. */
.rw-wx { margin: 2.5rem 0; }
.rw-wx-heading { font-size: clamp(1.4rem, 3.5vw, 2rem); letter-spacing: -0.02em; margin: 0 0 1.25rem; }
.rw-wx-state {
  text-align: center; padding: 3rem 1rem; color: var(--rw-ink-dim);
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.rw-wx-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--rw-border); border-top-color: var(--rw-accent);
  animation: rw-wx-spin 0.9s linear infinite;
}
@keyframes rw-wx-spin { to { transform: rotate(360deg); } }
.rw-wx-err-ic { font-size: 2.2rem; }
.rw-wx-retry {
  margin-top: 0.5rem; background: var(--rw-accent); color: #0a0a12; border: 0;
  border-radius: 999px; padding: 0.5rem 1.1rem; font: inherit; font-weight: 700; cursor: pointer;
}

/* --- Hero / current conditions --- */
.rw-wx-hero {
  position: relative; overflow: hidden; border-radius: 20px; isolation: isolate;
  border: 1px solid var(--rw-border); color: #fff; background: #0b0b12;
}
/* legibility scrim + top highlight, above the sky but below the text (z:0) */
.rw-wx-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(720px 320px at 82% -14%, rgba(255,255,255,0.12), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.30), transparent 30%, transparent 58%, rgba(0,0,0,0.30));
}
.rw-wx-eyebrow, .rw-wx-now-temp, .rw-wx-now-cond, .rw-wx-now-feels, .rw-wx-now-hilo, .rw-wx-updated {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

/* --- Procedural sky: time-of-day gradient + condition effect layers (no images) --- */
.rw-wx-sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.rw-wx-sky > * { position: absolute; }
.rw-wx-stars, .rw-wx-clouds, .rw-wx-fog, .rw-wx-rain, .rw-wx-snow, .rw-wx-lightning, .rw-wx-veil { inset: 0; }
/* phase gradients — dawn peach, midday azure, dusk magenta, deep night */
.rw-wx-sky.sky-night { background: linear-gradient(180deg, #060617 0%, #10102e 55%, #191340 100%); }
.rw-wx-sky.sky-dawn  { background: linear-gradient(180deg, #241d4d 0%, #6a4668 52%, #e59a68 100%); }
.rw-wx-sky.sky-day   { background: linear-gradient(180deg, #17548a 0%, #2f7fb8 52%, #7db6dd 100%); }
.rw-wx-sky.sky-dusk  { background: linear-gradient(180deg, #141436 0%, #45285c 46%, #c8492c 100%); }

.rw-wx-stars {
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 27% 12%, rgba(255,255,255,.85), transparent),
    radial-gradient(1.6px 1.6px at 43% 28%, #fff, transparent),
    radial-gradient(1px 1px at 58% 15%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 68% 33%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 78% 10%, rgba(255,255,255,.85), transparent),
    radial-gradient(1.3px 1.3px at 88% 26%, #fff, transparent),
    radial-gradient(1px 1px at 34% 40%, rgba(255,255,255,.75), transparent),
    radial-gradient(1.2px 1.2px at 6% 44%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 50% 6%, #fff, transparent),
    radial-gradient(1px 1px at 92% 40%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.2px 1.2px at 20% 34%, #fff, transparent);
  animation: rw-wx-twinkle 5s ease-in-out infinite alternate;
}
@keyframes rw-wx-twinkle { from { opacity: .55; } to { opacity: 1; } }

.rw-wx-orb { width: 92px; height: 92px; border-radius: 50%; top: 15%; right: 14%; }
.rw-wx-orb.sun { background: radial-gradient(circle, #fff7db 0%, #ffe08a 36%, rgba(255,210,63,.5) 55%, transparent 72%); filter: blur(1px); animation: rw-wx-glow 6s ease-in-out infinite; }
.rw-wx-orb.moon { width: 66px; height: 66px; background: radial-gradient(circle at 38% 38%, #fdfbf0 0%, #d5dae6 54%, rgba(200,210,235,.25) 66%, transparent 74%); filter: blur(.4px); }
@keyframes rw-wx-glow { 0%, 100% { filter: blur(1px) brightness(1); } 50% { filter: blur(2px) brightness(1.12); } }

.rw-wx-clouds {
  background-repeat: no-repeat;
  background-image:
    radial-gradient(130px 46px at 22% 30%, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(170px 56px at 58% 22%, rgba(255,255,255,.45), transparent 72%),
    radial-gradient(150px 50px at 84% 38%, rgba(255,255,255,.5), transparent 70%);
  animation: rw-wx-drift 42s ease-in-out infinite alternate;
}
.rw-wx-clouds.c1 { opacity: .32; }
.rw-wx-clouds.c2 { opacity: .55; }
.rw-wx-clouds.c3 { opacity: .82; }
@keyframes rw-wx-drift { from { transform: translate3d(-3%, 0, 0); } to { transform: translate3d(4%, 0, 0); } }

.rw-wx-fog {
  background: linear-gradient(180deg, rgba(190,192,200,.10), rgba(190,192,200,.34) 60%, rgba(190,192,200,.20));
  animation: rw-wx-drift 30s ease-in-out infinite alternate;
}
.rw-wx-rain {
  background-image: repeating-linear-gradient(102deg, transparent 0 7px, rgba(190,214,255,.30) 7px 8px);
  opacity: .55; animation: rw-wx-rainfall 0.5s linear infinite;
}
@keyframes rw-wx-rainfall { from { background-position: 0 0; } to { background-position: -14px 34px; } }
.rw-wx-snow {
  background-image:
    radial-gradient(2px 2px at 10% 10%, #fff, transparent),
    radial-gradient(2px 2px at 30% 40%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 50% 20%, #fff, transparent),
    radial-gradient(2px 2px at 70% 50%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 85% 25%, #fff, transparent),
    radial-gradient(2px 2px at 18% 70%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 62% 80%, #fff, transparent);
  background-size: 220px 220px; opacity: .85; animation: rw-wx-snowfall 7s linear infinite;
}
@keyframes rw-wx-snowfall { from { background-position: 0 -220px; } to { background-position: 0 220px; } }
.rw-wx-lightning { background: #eaf2ff; opacity: 0; animation: rw-wx-flash 8s linear infinite; }
@keyframes rw-wx-flash { 0%, 3%, 6%, 100% { opacity: 0; } 1.5% { opacity: .5; } 4.5% { opacity: .28; } }

.rw-wx-veil.v-overcast { background: linear-gradient(180deg, rgba(58,62,72,.5), rgba(38,42,52,.66)); }
.rw-wx-veil.v-rain { background: rgba(26,32,50,.5); }
.rw-wx-veil.v-storm { background: rgba(10,9,24,.62); }
.rw-wx-veil.v-snow { background: rgba(150,164,186,.28); }
.rw-wx-veil.v-fog { background: rgba(150,150,162,.36); }
.rw-wx-veil.v-hot { background: linear-gradient(180deg, rgba(255,92,43,.20), transparent 58%); }

@media (prefers-reduced-motion: reduce) {
  .rw-wx-stars, .rw-wx-clouds, .rw-wx-fog, .rw-wx-rain, .rw-wx-snow, .rw-wx-lightning, .rw-wx-orb { animation: none !important; }
}

.rw-wx-eyebrow {
  position: relative; z-index: 1; padding: 1.5rem 1.5rem 0;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.9); display: inline-flex; align-items: center; gap: 8px;
}
.rw-wx-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.9); }
.rw-wx-now {
  position: relative; z-index: 1; padding: 1rem 1.5rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 2.5rem;
}
.rw-wx-now-main { display: flex; align-items: center; gap: 0.9rem; }
.rw-wx-now-icon { font-size: 4.2rem; line-height: 1; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.35)); }
.rw-wx-now-temp { font-weight: 300; font-size: clamp(3.4rem, 10vw, 6rem); line-height: 0.9; letter-spacing: -0.03em; }
.rw-wx-now-temp sup { font-size: 0.3em; font-weight: 600; vertical-align: super; opacity: 0.85; }
.rw-wx-now-meta { display: flex; flex-direction: column; gap: 3px; padding-bottom: 6px; }
.rw-wx-now-cond { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 500; }
.rw-wx-now-feels { color: rgba(255,255,255,0.88); font-size: 0.95rem; }
.rw-wx-now-hilo { font-weight: 700; }
.rw-wx-now-hilo .lo { color: rgba(255,255,255,0.72); font-weight: 600; }
.rw-wx-updated { color: rgba(255,255,255,0.6); font-size: 0.76rem; }

.rw-wx-quickstats {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: rgba(255,255,255,0.12); border-top: 1px solid rgba(255,255,255,0.16);
}
.rw-wx-qs { background: rgba(0,0,0,0.28); padding: 0.75rem 0.9rem; text-align: center; }
.rw-wx-qs .l { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.09em; color: rgba(255,255,255,0.72); }
.rw-wx-qs .v { font-size: 1.05rem; font-weight: 700; margin-top: 3px; }
.rw-wx-qs .s { font-size: 0.7rem; color: rgba(255,255,255,0.72); }

/* --- Sections --- */
.rw-wx-section { margin-top: 2.25rem; }
.rw-wx-shead { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.rw-wx-shead .rw-wx-rule { height: 2px; flex: 0 0 44px; border-radius: 2px; background: var(--rw-accent); }
.rw-wx-shead h3 { margin: 0; font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; }
.rw-wx-lead { color: var(--rw-ink-dim); margin: 0 0 1.1rem; font-size: 0.95rem; max-width: 60ch; }

/* hourly scroller */
.rw-wx-hourly { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x proximity; }
.rw-wx-hourly::-webkit-scrollbar { height: 8px; }
.rw-wx-hourly::-webkit-scrollbar-thumb { background: var(--rw-surface-2); border-radius: 8px; }
.rw-wx-hour {
  flex: 0 0 auto; width: 76px; text-align: center; scroll-snap-align: start;
  background: var(--rw-surface); border: 1px solid var(--rw-border); border-radius: 14px;
  padding: 0.75rem 0.4rem; transition: border-color 0.2s, transform 0.2s;
}
.rw-wx-hour:hover { border-color: var(--rw-border-lit); transform: translateY(-2px); }
.rw-wx-hour.now { border-color: var(--rw-accent); box-shadow: inset 0 0 0 1px var(--rw-accent); }
.rw-wx-hour .t { font-size: 0.64rem; color: var(--rw-ink-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.rw-wx-hour .i { font-size: 1.4rem; margin: 0.35rem 0; }
.rw-wx-hour .deg { font-weight: 700; font-size: 1.05rem; }
.rw-wx-hour .p { font-size: 0.66rem; color: var(--rw-cyan); font-weight: 600; margin-top: 2px; min-height: 0.9em; }

/* 10-day */
.rw-wx-days { display: flex; flex-direction: column; gap: 0.45rem; }
.rw-wx-day {
  display: grid; grid-template-columns: 96px 40px 1fr 150px 56px; align-items: center; gap: 1rem;
  background: var(--rw-surface); border: 1px solid var(--rw-border); border-radius: 14px;
  padding: 0.65rem 1rem; transition: border-color 0.2s;
}
.rw-wx-day:hover { border-color: var(--rw-border-lit); }
.rw-wx-day .d { font-weight: 700; }
.rw-wx-day .d small { display: block; font-weight: 500; color: var(--rw-ink-faint); font-size: 0.68rem; letter-spacing: 0.03em; }
.rw-wx-day .i { font-size: 1.5rem; text-align: center; }
.rw-wx-day .cond { color: var(--rw-ink-dim); font-size: 0.9rem; }
.rw-wx-day .cond .pp { color: var(--rw-cyan); font-size: 0.8rem; font-weight: 600; }
.rw-wx-day .range { display: flex; align-items: center; gap: 0.6rem; }
.rw-wx-day .range .lo { color: var(--rw-ink-faint); font-weight: 700; width: 30px; text-align: right; }
.rw-wx-day .range .hi { font-weight: 800; width: 30px; }
.rw-wx-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--rw-surface-2); position: relative; overflow: hidden; }
.rw-wx-bar .fill { position: absolute; top: 0; bottom: 0; border-radius: 6px;
  background: linear-gradient(90deg, #21c8ff, #2ee6a6, #ffd23f, #ff6a3d, #ff2e63); }
.rw-wx-day .uvtag { font-size: 0.72rem; font-weight: 700; text-align: center; padding: 2px 6px; border-radius: 999px; }

/* trip planner */
.rw-wx-plan { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.rw-wx-plan-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--rw-ink-dim); font-weight: 700; }
.rw-wx-plan-date {
  background: var(--rw-surface); border: 1px solid var(--rw-border); color: var(--rw-ink);
  border-radius: 12px; padding: 0.5rem 0.8rem; font: inherit; color-scheme: dark;
}
.rw-wx-plan-date:focus { outline: none; border-color: var(--rw-accent); }
.rw-wx-trip-msg { color: var(--rw-ink-dim); padding: 0.5rem 0; }
.rw-wx-trip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; margin-bottom: 1rem; }
.rw-wx-trip-stat { background: var(--rw-surface); border: 1px solid var(--rw-border); border-radius: 14px; padding: 0.85rem 1rem; }
.rw-wx-trip-stat .l { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rw-ink-dim); }
.rw-wx-trip-stat .v { font-size: 1.55rem; font-weight: 300; margin-top: 2px; }
.rw-wx-trip-note { color: var(--rw-ink-dim); font-size: 0.92rem; margin: 0 0 1rem; line-height: 1.6; }
.rw-wx-trip-note strong { color: var(--rw-ink); }
.rw-wx-pack { background: var(--rw-surface); border: 1px solid var(--rw-border); border-radius: 16px; padding: 1.05rem; }
.rw-wx-pack-h { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--rw-cyan); font-weight: 700; margin-bottom: 0.65rem; }
.rw-wx-pack-items { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rw-wx-pack-item { background: var(--rw-surface-2); border: 1px solid var(--rw-border); border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.85rem; color: var(--rw-ink-dim); }

/* detail grid */
.rw-wx-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.9rem; }
.rw-wx-card { background: var(--rw-surface); border: 1px solid var(--rw-border); border-radius: 16px; padding: 1.05rem; position: relative; overflow: hidden; }
.rw-wx-card .ttl { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--rw-ink-dim); display: flex; align-items: center; gap: 6px; }
.rw-wx-card .big { font-size: 1.9rem; font-weight: 300; margin-top: 0.35rem; line-height: 1; }
.rw-wx-card .big small { font-size: 0.85rem; font-weight: 600; color: var(--rw-ink-dim); }
.rw-wx-card .note { color: var(--rw-ink-dim); font-size: 0.84rem; margin-top: 0.5rem; line-height: 1.5; }
.rw-wx-pill { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-top: 0.55rem; }
.rw-wx-scale { height: 7px; border-radius: 7px; margin-top: 0.7rem; position: relative;
  background: linear-gradient(90deg, #2ee6a6, #ffd23f, #ff6a3d, #ff2e63, #b06cff); }
.rw-wx-scale .pin { position: absolute; top: -4px; width: 3px; height: 15px; background: #fff; border-radius: 3px; box-shadow: 0 0 0 2px rgba(0,0,0,0.4); transform: translateX(-50%); }
.rw-wx-compass { width: 82px; height: 82px; border-radius: 50%; border: 2px solid var(--rw-border); position: relative; margin: 0.45rem auto 0; }
.rw-wx-compass .n { position: absolute; top: 3px; left: 50%; transform: translateX(-50%); font-size: 0.58rem; color: var(--rw-ink-faint); }
.rw-wx-compass .arrow { position: absolute; top: 50%; left: 50%; width: 2px; height: 32px; background: linear-gradient(var(--rw-accent-hot), transparent); transform-origin: bottom center; }
.rw-wx-compass .dirlabel { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-weight: 800; font-size: 0.85rem; }
.rw-wx-sun { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; }
.rw-wx-sun .end { text-align: center; }
.rw-wx-sun .end .ic { font-size: 1.3rem; }
.rw-wx-sun .end .tm { font-weight: 700; font-size: 0.95rem; }
.rw-wx-sun .end .lb { font-size: 0.62rem; color: var(--rw-ink-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.rw-wx-foot { color: var(--rw-ink-faint); font-size: 0.78rem; margin-top: 1.5rem; }
.rw-wx-foot a { color: var(--rw-ink-dim); }

@media (max-width: 860px) {
  .rw-wx-quickstats { grid-template-columns: repeat(3, 1fr); }
  .rw-wx-day { grid-template-columns: 84px 34px 1fr 100px; }
  .rw-wx-day .cond, .rw-wx-day .uvtag { display: none; }
}
@media (max-width: 520px) {
  .rw-wx-now-icon { font-size: 3.4rem; }
  .rw-wx-quickstats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------- Object gallery */
.rw-obj[hidden] { display: none; }
.rw-obj-h { font-size: clamp(1.3rem, 3vw, 1.8rem); letter-spacing: -0.02em; margin: 1.5rem 0 0.8rem; }
.rw-obj-gallery {
  display: grid; grid-template-columns: repeat(var(--gal-cols, 3), 1fr); gap: 0.6rem; margin: 0.5rem 0 1.5rem;
}
.rw-obj-item { position: relative; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--rw-border); background: var(--rw-surface-2); }
.rw-obj-item img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.rw-obj-cap { margin: 0; padding: 7px 10px 8px; font-size: 0.82rem; line-height: 1.35; color: var(--rw-ink-dim, #5b5b6b); }
.rw-obj-gallery:not(.rw-obj-edit) .rw-obj-item { cursor: zoom-in; }
/* edit mode */
.rw-obj-edit .rw-obj-item { cursor: grab; }
.rw-obj-edit .rw-obj-item.rw-obj-dragging { opacity: 0.4; }
.rw-obj-edit .rw-obj-item.rw-obj-over { outline: 2px solid var(--rw-accent); outline-offset: -2px; }
.rw-obj-remove {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
  border: none; background: rgba(13, 13, 21, 0.82); color: #fff; font-size: 1rem; line-height: 1; font-weight: 700;
}
.rw-obj-remove:hover { background: var(--rw-accent-hot); }
.rw-obj-add {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: 12px; cursor: pointer;
  border: 2px dashed var(--rw-border-lit); color: var(--rw-ink-dim); font-size: 2rem; background: var(--rw-surface);
  transition: border-color 0.18s var(--rw-ease), color 0.18s var(--rw-ease), background 0.18s var(--rw-ease);
}
.rw-obj-add:hover, .rw-obj-add.dragover { border-color: var(--rw-accent); color: var(--rw-accent); background: var(--rw-surface-2); }
.rw-obj-uploading { opacity: 0.6; pointer-events: none; }

/* Lightbox */
.rw-lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.9); cursor: zoom-out; padding: 2rem;
}
.rw-lightbox img { max-width: 96vw; max-height: 92vh; object-fit: contain; border-radius: 8px; }
.rw-lightbox-x { position: fixed; top: 1rem; right: 1.2rem; background: none; border: none; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; }

/* ---------------------------------------------------------- States / footer */
.rw-empty { text-align: center; padding: 7rem 1rem; color: var(--rw-ink-dim); }
.rw-footer {
  text-align: center; padding: 3rem 1rem; margin-top: 4rem;
  color: var(--rw-ink-faint); font-size: 0.9rem;
  border-top: 1px solid var(--rw-border);
}

[aria-busy="true"] { min-height: 70vh; }

/* ---------------------------------------------------------- Motion pref */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
