/* ==========================================================================
   Gatherway — Modern Consumer Design System
   Inspired by Wanderlog, Airbnb, and Apple Maps.
   Pure white canvas, crisp black CTAs, Cobalt Map Blue accents, Inter sans.
   ========================================================================== */

:root {
  /* Canonical Shared Design Tokens */
  --bg: #FFFFFF;
  --bg-subtle: #F7F7F9;
  --bg-muted: #F0F2F5;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;

  --ink: #111318;
  --ink-secondary: #525B6A;
  --ink-muted: #848E9F;

  --primary: #111318;
  --primary-hover: #272B36;

  --accent: #0066FF;
  --accent-soft: #EFF6FF;

  --good: #059669;
  --good-soft: #ECFDF5;
  --warn: #D97706;
  --warn-soft: #FFFBEB;
  --bad: #E11D48;
  --bad-soft: #FFF1F2;

  /* Typography (100% pure clean sans-serif + JetBrains Mono for codes only) */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Consumer Geometry & Subtle Airbnb-grade Elevation */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  --shadow-xs: 0 1px 2px rgba(17, 19, 24, 0.04);
  --shadow-sm: 0 2px 8px rgba(17, 19, 24, 0.06), 0 1px 2px rgba(17, 19, 24, 0.03);
  --shadow-md: 0 8px 24px rgba(17, 19, 24, 0.08), 0 2px 6px rgba(17, 19, 24, 0.04);
  --shadow-lg: 0 20px 48px rgba(17, 19, 24, 0.14), 0 4px 12px rgba(17, 19, 24, 0.06);

  /* Compatibility Aliases for Existing .ws-* Rules */
  --ws-chalk: var(--bg-subtle);
  --ws-chalk-deep: var(--bg-muted);
  --ws-ivory: var(--bg);
  --ws-stone: var(--border);
  --ws-stone-strong: var(--border-strong);
  --ws-peat: var(--ink);
  --ws-moss: var(--ink-secondary);
  --ws-slate: var(--ink-muted);

  --ws-forest: var(--primary);
  --ws-forest-dark: var(--primary-hover);
  --ws-forest-soft: var(--accent-soft);
  --ws-ochre: var(--warn);
  --ws-ochre-dark: #B45309;
  --ws-ochre-soft: var(--warn-soft);

  --ws-atlantic: var(--accent);
  --ws-atlantic-soft: var(--accent-soft);
  --ws-teal: var(--accent);
  --ws-teal-soft: var(--accent-soft);
  --ws-meadow: var(--good);
  --ws-meadow-soft: var(--good-soft);
  --ws-amber: var(--warn);
  --ws-amber-soft: var(--warn-soft);
  --ws-rust: var(--bad);
  --ws-rust-soft: var(--bad-soft);

  --ws-font-sans: var(--font-sans);
  --ws-font-serif: var(--font-sans);
  --ws-font-mono: var(--font-mono);

  --ws-radius-sm: var(--radius-sm);
  --ws-radius-md: var(--radius-md);
  --ws-radius-lg: var(--radius-lg);
  --ws-radius-pill: var(--radius-pill);
  --ws-shadow-sm: var(--shadow-xs);
  --ws-shadow-md: var(--shadow-md);
  --ws-shadow-lg: var(--shadow-lg);
}

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

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: clip;
}

/* Crisp Modern Sans-Serif Typography */
h1, h2, h3, h4, .ws-serif {
  font-family: var(--font-sans);
  color: var(--ink);
  margin-top: 0;
}

h1 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h2 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h3, h4 {
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

/* Tabular figures in crisp Inter */
.tabular-nums, .ws-num, .ws-mono {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}

/* Monospace strictly for UK postcodes, What3Words, coordinates & keybox codes */
.ws-code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.ws-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  line-height: 1.25;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Monochrome Inline SVG Icon Sizing */
.ws-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: -2px;
  display: inline-block;
}

.ws-icon-sm {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  vertical-align: -2px;
  display: inline-block;
}

.ws-icon-lg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: -3px;
  display: inline-block;
}

/* ==========================================================================
   Standalone Page Containers & Clean 60px Consumer Topbar
   ========================================================================== */
.ws-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.ws-container-narrow {
  width: 100%;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Minimalistic Bird's-Eye Mountain Topographic Contour Canvas (Non-Map Pages) */
.ws-topo-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: block;
}

.ws-main {
  position: relative;
  z-index: 1;
  padding-top: 1.75rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .ws-main {
    padding-top: 2rem;
    padding-bottom: 4rem;
  }
}

.ws-topbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.ws-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 60px;
  min-width: 0;
}

.ws-topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-shrink: 0;
}

.ws-topbar-links {
  display: none;
  align-items: center;
  gap: 0.4rem;
}

.ws-topbar-logout-form {
  margin: 0;
  display: inline-flex;
}

.ws-topbar-cta {
  flex-shrink: 0;
}

.ws-topbar-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.ws-topbar-menu-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

.ws-topbar-mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 41;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.ws-topbar-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.5rem;
  padding-bottom: 0.65rem;
}

.ws-topbar-mobile-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: none;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.ws-topbar-mobile-link:hover {
  background: var(--bg-subtle);
  text-decoration: none;
  color: var(--ink);
}

.ws-topbar-mobile-logout {
  margin: 0.25rem 0 0;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.ws-topbar-mobile-link-muted {
  color: var(--ink-secondary);
}

@media (max-width: 479px) {
  .ws-topbar-inner {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    gap: 0.5rem;
  }
  .ws-topbar-cta {
    padding: 0.36rem 0.65rem;
    font-size: 0.77rem;
  }
  .ws-workspace-bar {
    padding: 0 0.75rem;
    gap: 0.5rem;
  }
  .ws-header-actions {
    gap: 0.35rem;
  }
  .ws-header-actions .ws-avatar:nth-child(n+3) {
    display: none;
  }
  .ws-header-actions .ws-btn-sm {
    padding: 0.35rem 0.55rem;
    font-size: 0.76rem;
  }
}

@media (min-width: 768px) {
  .ws-topbar-links {
    display: flex;
  }
  .ws-topbar-menu-btn,
  .ws-topbar-mobile-menu {
    display: none !important;
  }
}

.ws-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.ws-brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.ws-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--primary);
  color: #FFFFFF;
  flex-shrink: 0;
}

/* ==========================================================================
   Wanderlog x Airbnb Split-Screen Trip Workspace Shell
   ========================================================================== */
.ws-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: var(--bg);
}

/* Slim Left Sidebar (216px, sticky 100vh, desktop >= 1120px) */
.ws-sidebar {
  display: none;
}

@media (min-width: 1120px) {
  .ws-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 216px;
    flex: 0 0 216px;
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--bg-subtle);
    border-right: 1px solid var(--border);
    padding: 0.9rem 0.75rem 0.9rem;
    overflow-y: auto;
    z-index: 30;
  }
}

.ws-sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ws-sidebar-brand {
  padding: 0.25rem 0.5rem 0.35rem;
}

.ws-side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ws-side-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.52rem 0.65rem;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.ws-side-link:hover {
  background: rgba(17, 19, 24, 0.045);
  color: var(--ink);
  text-decoration: none;
}

.ws-side-link.is-active {
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(17, 19, 24, 0.07), 0 0 0 1px var(--border);
}

.ws-side-link.is-active .ws-icon {
  color: var(--accent);
}

.ws-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.ws-member-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.14s ease;
}

.ws-member-pill:hover {
  border-color: var(--border-strong);
  text-decoration: none;
}

.ws-member-pill-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ws-member-pill-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-member-pill-area {
  font-size: 0.72rem;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Center Scrollable Workspace */
.ws-workspace {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* Single-Row Top Bar with Interactive Date & Destination Pills */
.ws-workspace-bar {
  position: sticky;
  top: 0;
  z-index: 35;
  min-height: 60px;
  padding: 0.42rem 1rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (min-width: 1120px) {
  .ws-workspace-bar {
    padding: 0.42rem 1.4rem;
  }
}

.ws-bar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
}

.ws-bar-mobile-brand {
  display: inline-flex;
  flex-shrink: 0;
}

@media (min-width: 1120px) {
  .ws-bar-mobile-brand {
    display: none;
  }
}

.ws-bar-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  min-width: 0;
}

.ws-trip-title {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-bar-subtitle {
  font-size: 0.75rem;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.ws-bar-meta-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow: hidden;
  min-width: 0;
}

.ws-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

@media (max-width: 519px) {
  .ws-header-actions .ws-avatar-stack {
    display: none;
  }
}

@media (max-width: 399px) {
  .ws-bar-invite-label {
    display: none;
  }
  .ws-bar-invite-btn {
    padding: 0.35rem 0.5rem;
  }
}

/* Tablet-only horizontal nav strip (between 768px and 1119px) */
.ws-tablet-tabs {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding: 0 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0.2rem;
}

.ws-tablet-tabs::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) and (max-width: 1119px) {
  .ws-tablet-tabs {
    display: flex;
  }
}

.ws-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.62rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-secondary);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.ws-tab:hover {
  color: var(--ink);
  text-decoration: none;
}

.ws-tab.is-active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}

.ws-workspace-content {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1rem 5.75rem;
}

@media (min-width: 768px) {
  .ws-workspace-content {
    padding: 1.4rem 1.4rem 3.5rem;
  }
}

.ws-shell.is-live-mode .ws-workspace-content {
  max-width: 820px;
}

.ws-shell.is-map-collapsed .ws-workspace-content {
  max-width: 1060px;
}

/* Persistent Live UK Map Pane (40% desktop >= 1200px, sticky 100vh) */
.ws-map-pane {
  display: none;
  position: relative;
  background: var(--bg-muted);
  border-left: 1px solid var(--border);
  overflow: hidden;
}

@media (min-width: 1200px) {
  .ws-map-pane {
    display: block;
    width: 40%;
    min-width: 420px;
    max-width: 640px;
    flex: 0 0 40%;
    position: sticky;
    top: 0;
    height: 100vh;
  }

  .ws-shell.is-map-collapsed .ws-map-pane {
    display: none;
  }
}

/* Mobile / Tablet Map Drawer Overlay (< 1200px) */
@media (max-width: 1199px) {
  .ws-map-pane.is-mobile-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    width: 100%;
    height: 100vh;
    border-left: none;
  }
}

.ws-persistent-map-canvas {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.ws-map-floating-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 54px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  pointer-events: none;
}

.ws-map-floating-top::-webkit-scrollbar {
  display: none;
}

.ws-map-dest-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(17, 19, 24, 0.1);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(17, 19, 24, 0.1);
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}

.ws-map-dest-pill:hover {
  background: #FFFFFF;
  border-color: rgba(17, 19, 24, 0.24);
  transform: translateY(-1px);
}

.ws-map-dest-pill.is-focused {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(17, 19, 24, 0.22);
}

.ws-map-dest-score {
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  color: var(--ink-secondary);
}

.ws-map-dest-pill.is-focused .ws-map-dest-score {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.ws-map-mobile-close {
  display: none;
}

@media (max-width: 1199px) {
  .ws-map-pane.is-mobile-open .ws-map-mobile-close {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    bottom: 20px;
    right: 16px;
    z-index: 15;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
  }
}

.ws-map-floating-bottom {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 54px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.ws-map-legend-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(17, 19, 24, 0.08);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-secondary);
  box-shadow: 0 2px 10px rgba(17, 19, 24, 0.08);
}

.ws-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ws-map-swatch-route {
  width: 14px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--accent);
  display: inline-block;
}

.ws-map-swatch-est {
  width: 14px;
  border-top: 2px dashed var(--ink-muted);
  display: inline-block;
}

.ws-map-swatch-rail {
  width: 14px;
  border-top: 2.5px dashed var(--accent);
  display: inline-block;
}

.ws-map-swatch-mid {
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--ink);
  background: #FFFFFF;
  transform: rotate(45deg);
  display: inline-block;
}

/* Desktop vs Mobile Map Toggle Buttons in Topbar */
.ws-btn.ws-map-toggle-desktop,
.ws-map-toggle-desktop {
  display: none;
}

.ws-btn.ws-map-toggle-mobile,
.ws-map-toggle-mobile {
  display: inline-flex;
}

@media (min-width: 1200px) {
  .ws-btn.ws-map-toggle-desktop,
  .ws-map-toggle-desktop {
    display: inline-flex;
  }
  .ws-btn.ws-map-toggle-mobile,
  .ws-map-toggle-mobile {
    display: none;
  }
}

/* ==========================================================================
   MapLibre Custom Markers (NEVER set position: relative — MapLibre uses absolute)
   ========================================================================== */
.ws-map-pin-member {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid #FFFFFF;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(17, 19, 24, 0.28);
  cursor: pointer;
  letter-spacing: 0.01em;
}

.ws-map-pin-dest {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid rgba(17, 19, 24, 0.14);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 3px 12px rgba(17, 19, 24, 0.16);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.ws-map-pin-dest:hover {
  border-color: var(--ink);
}

.ws-map-pin-dest.is-focused {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(17, 19, 24, 0.28);
}

.ws-map-pin-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
}

.ws-map-pin-dest.is-focused .ws-map-pin-check {
  background: #FFFFFF;
  color: var(--primary);
}

.ws-map-pin-cottage {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  border: 2.5px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0, 102, 255, 0.36);
  cursor: pointer;
}

.ws-map-pin-stop {
  min-width: 26px;
  height: 26px;
  padding: 0 5px;
  border-radius: 9999px;
  color: #FFFFFF;
  border: 2.5px solid #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 3px 10px rgba(17, 19, 24, 0.24);
  cursor: pointer;
  transition: transform 0.14s ease, opacity 0.14s ease, box-shadow 0.14s ease;
}

.ws-map-pin-stop:hover {
  transform: scale(1.12);
  box-shadow: 0 5px 14px rgba(17, 19, 24, 0.3);
}

.ws-map-pin-stop.is-overnight {
  border-radius: 8px;
  padding: 0 6px;
}

.ws-map-pin-stop.is-dimmed {
  opacity: 0.28;
  transform: scale(0.88);
}

.ws-map-day-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.ws-map-pin-midpoint {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(17, 19, 24, 0.2));
}

.maplibregl-popup-content {
  border-radius: 12px !important;
  padding: 10px 12px !important;
  box-shadow: 0 10px 28px rgba(17, 19, 24, 0.16) !important;
  border: 1px solid var(--border) !important;
  font-family: var(--font-sans) !important;
}

.maplibregl-ctrl-group {
  border-radius: 10px !important;
  border: 1px solid rgba(17, 19, 24, 0.1) !important;
  box-shadow: 0 2px 10px rgba(17, 19, 24, 0.08) !important;
  overflow: hidden;
}

/* ==========================================================================
   Avatars, Bell & Header Controls
   ========================================================================== */
.ws-avatar-stack {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 0.6rem 0 0.28rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  gap: 0.45rem;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.ws-avatar-stack:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
  text-decoration: none;
}

.ws-avatars {
  display: inline-flex;
}

.ws-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  border: 2px solid var(--bg);
  margin-left: -6px;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.ws-avatar:first-child {
  margin-left: 0;
}

.ws-avatar-lg {
  width: 36px;
  height: 36px;
  font-size: 0.8rem;
  margin-left: 0;
  border: none;
}

.ws-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.ws-bell-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

.ws-bell-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #FFFFFF;
  font-size: 0.64rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  border: 2px solid var(--bg);
}

.ws-live-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 36px;
  padding: 0 0.85rem;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #FFFFFF;
  border: 1px solid var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.ws-live-pill:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #FFFFFF;
  text-decoration: none;
}

.ws-live-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.ws-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34D399;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.25);
}

/* ==========================================================================
   Sticky 5-Item Mobile Bottom Navigation (< 768px)
   ========================================================================== */
.ws-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0.35rem 0.25rem calc(0.4rem + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  .ws-mobile-nav {
    display: none;
  }
}

.ws-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 0.35rem 0.2rem;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.ws-mobile-nav-item.is-active {
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================================================
   Clean Consumer Cards, Surfaces & Metric Rows
   ========================================================================== */
.ws-card, .ws-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.ws-card-interactive {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.ws-card-interactive:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.ws-card-soft {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}

/* Metric Row / Ledger */
.ws-ledger {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.ws-ledger-cell {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
  min-width: 0;
}

.ws-ledger-4 .ws-eyebrow {
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-metric-val-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ws-ledger-cell:last-child {
  border-bottom: none;
}

@media (min-width: 640px) {
  .ws-ledger-2 { grid-template-columns: repeat(2, 1fr); }
  .ws-ledger-4 { grid-template-columns: repeat(2, 1fr); }
  .ws-ledger-2 .ws-ledger-cell,
  .ws-ledger-4 .ws-ledger-cell {
    border-right: 1px solid var(--border);
  }
  .ws-ledger-2 .ws-ledger-cell:nth-child(2n),
  .ws-ledger-4 .ws-ledger-cell:nth-child(2n) {
    border-right: none;
  }
  .ws-ledger-2 .ws-ledger-cell { border-bottom: none; }
  .ws-ledger-4 .ws-ledger-cell:nth-last-child(-n+2) { border-bottom: none; }
}

@media (min-width: 960px) {
  .ws-ledger-3 { grid-template-columns: repeat(3, 1fr); }
  .ws-ledger-4 { grid-template-columns: repeat(4, 1fr); }
  .ws-ledger-3 .ws-ledger-cell,
  .ws-ledger-4 .ws-ledger-cell {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  .ws-ledger-3 .ws-ledger-cell:last-child,
  .ws-ledger-4 .ws-ledger-cell:last-child {
    border-right: none;
  }
}

.ws-metric-val {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.2;
}

.ws-metric-sub {
  font-size: 0.78rem;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

.ws-metric-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.2rem;
}

/* Slim Readiness Progress Strip */
.ws-progress-strip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ws-progress-track {
  height: 3px;
  background: var(--bg-muted);
  width: 100%;
}

.ws-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.25s ease;
}

.ws-stepper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 720px) {
  .ws-stepper {
    grid-template-columns: repeat(5, 1fr);
  }
}

.ws-step {
  padding: 0.7rem 0.9rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.14s ease, box-shadow 0.14s ease;
}

a.ws-step:hover,
button.ws-step:hover {
  background: var(--bg-subtle);
  text-decoration: none;
  color: inherit;
}

button.ws-step {
  border-top: none;
  border-left: none;
  text-align: left;
  font-family: var(--font-sans);
  cursor: pointer;
}

.ws-step:last-child {
  border-right: none;
}

@media (min-width: 720px) {
  .ws-step {
    border-bottom: none;
  }
}

.ws-step.is-done {
  background: var(--bg-subtle);
}

.ws-step.is-next {
  background: var(--accent-soft);
  box-shadow: inset 0 2px 0 var(--accent);
}

.ws-step.is-next .ws-step-head {
  color: var(--accent);
}

.ws-step.is-next .ws-step-dot {
  border-color: var(--accent);
  background: rgba(0, 102, 255, 0.12);
}

.ws-step-action {
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.18rem;
}

.ws-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.ws-step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.ws-step.is-done .ws-step-dot {
  background: var(--good);
  border-color: var(--good);
}

/* Quiet Notification / Utility Strip */
.ws-quiet-strip {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.1rem;
}

/* Clean Hairline Lists */
.ws-hairline-list {
  display: flex;
  flex-direction: column;
}

.ws-hairline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.ws-hairline-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ws-hairline-row:first-child {
  padding-top: 0;
}

/* ==========================================================================
   Buttons (Crisp Black Airbnb/Apple/Uber Primary CTAs)
   ========================================================================== */
.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.ws-btn:hover {
  text-decoration: none;
}

.ws-btn-primary {
  background: var(--primary);
  color: #FFFFFF;
}

.ws-btn-primary:hover {
  background: var(--primary-hover);
  color: #FFFFFF;
}

.ws-btn-accent {
  background: var(--accent);
  color: #FFFFFF;
}

.ws-btn-accent:hover {
  background: #0052CC;
  color: #FFFFFF;
}

.ws-btn-secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--border-strong);
}

.ws-btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--ink);
}

.ws-btn-ghost {
  background: transparent;
  color: var(--ink-secondary);
}

.ws-btn-ghost:hover {
  background: var(--bg-muted);
  color: var(--ink);
}

.ws-btn-danger {
  background: var(--bad);
  color: #FFFFFF;
}

.ws-btn-danger:hover {
  background: #BE123C;
  color: #FFFFFF;
}

.ws-btn-sm {
  padding: 0.38rem 0.75rem;
  font-size: 0.79rem;
  border-radius: var(--radius-sm);
}

.ws-btn-lg {
  padding: 0.7rem 1.35rem;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Clean Consumer Badges & Pills
   ========================================================================== */
.ws-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--bg-muted);
  color: var(--ink-secondary);
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
}

.ws-badge-forest,
.ws-badge-accent,
.ws-badge-atlantic,
.ws-badge-teal {
  background: var(--accent-soft);
  color: var(--accent);
}

.ws-badge-meadow,
.ws-badge-good {
  background: var(--good-soft);
  color: var(--good);
}

.ws-badge-ochre,
.ws-badge-amber,
.ws-badge-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.ws-badge-rust,
.ws-badge-bad {
  background: var(--bad-soft);
  color: var(--bad);
}

.ws-badge-stone {
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  border-color: var(--border);
}

/* ==========================================================================
   Forms (Crisp White Consumer Inputs)
   ========================================================================== */
.ws-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.ws-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.ws-help {
  font-size: 0.76rem;
  color: var(--ink-muted);
  margin: 0;
}

.ws-input, select.ws-input, textarea.ws-input {
  width: 100%;
  padding: 0.58rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.ws-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.14);
}

.ws-error {
  font-size: 0.78rem;
  color: var(--bad);
  font-weight: 500;
}

/* ==========================================================================
   Grids & Utility Classes
   ========================================================================== */
.ws-grid { display: grid; gap: 0.9rem; }
.ws-grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.ws-grid-3 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.ws-grid-4 { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }

@media (min-width: 640px) {
  .ws-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .ws-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .ws-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .ws-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.ws-flex { display: flex; }
.ws-flex-wrap { flex-wrap: wrap; }
.ws-items-start { align-items: flex-start; }
.ws-items-center { align-items: center; }
.ws-justify-between { justify-content: space-between; }
.ws-justify-center { justify-content: center; }
.ws-justify-end { justify-content: flex-end; }
.ws-gap-1 { gap: 0.25rem; }
.ws-gap-2 { gap: 0.5rem; }
.ws-gap-3 { gap: 0.75rem; }
.ws-gap-4 { gap: 1rem; }
.ws-mt-1 { margin-top: 0.25rem; }
.ws-mt-2 { margin-top: 0.5rem; }
.ws-mt-3 { margin-top: 0.75rem; }
.ws-mt-4 { margin-top: 1rem; }
.ws-mt-5 { margin-top: 1.25rem; }
.ws-mt-6 { margin-top: 1.5rem; }
.ws-mb-1 { margin-bottom: 0.25rem; }
.ws-mb-2 { margin-bottom: 0.5rem; }
.ws-mb-3 { margin-bottom: 0.75rem; }
.ws-mb-4 { margin-bottom: 1rem; }
.ws-mb-5 { margin-bottom: 1.25rem; }
.ws-mb-6 { margin-bottom: 1.5rem; }
.ws-text-muted { color: var(--ink-secondary); }
.ws-text-sm { font-size: 0.85rem; }
.ws-text-xs { font-size: 0.76rem; }

/* Flash Notices */
.ws-alerts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ws-alert {
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ws-alert-success {
  background: var(--good-soft);
  border-color: rgba(5, 150, 105, 0.22);
  color: #065F46;
}

.ws-alert-warning {
  background: var(--warn-soft);
  border-color: rgba(217, 119, 6, 0.25);
  color: #92400E;
}

.ws-alert-error {
  background: var(--bad-soft);
  border-color: rgba(225, 29, 72, 0.22);
  color: #9F1239;
}

/* ==========================================================================
   Modals, Slide-over Drawers & Mobile Sheets
   ========================================================================== */
.ws-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(17, 19, 24, 0.44);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ws-modal {
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 1.4rem;
  box-shadow: var(--shadow-lg);
}

.ws-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(17, 19, 24, 0.36);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: flex-end;
}

.ws-drawer {
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--bg);
  border-left: 1px solid var(--border);
  padding: 1.25rem;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.ws-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(17, 19, 24, 0.42);
  display: flex;
  align-items: flex-end;
}

.ws-sheet {
  width: 100%;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg);
}

[x-cloak] {
  display: none !important;
}

/* ==========================================================================
   Tables & Cross-App Shared Components
   ========================================================================== */
.ws-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.ws-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.ws-table th, .ws-table td {
  padding: 0.68rem 0.85rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.ws-table th {
  background: var(--bg-subtle);
  font-weight: 600;
  color: var(--ink-secondary);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ws-table tr:last-child td {
  border-bottom: none;
}

.ws-map-shell {
  width: 100%;
  min-height: 320px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-muted);
}

.ws-subtabs, .ws-segmented {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.22rem;
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  border: 1px solid transparent;
}

.ws-subtab {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--ink-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.ws-subtab.is-active {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(17, 19, 24, 0.1);
}

.ws-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--border);
}

.ws-check-row:last-child {
  border-bottom: none;
}

.ws-kpi-val {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.ws-settlement-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
}

.ws-weather-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 0.81rem;
  font-variant-numeric: tabular-nums;
}

.ws-weather-strip.has-rain-warn {
  background: var(--warn-soft);
  border-color: rgba(217, 119, 6, 0.25);
}

.ws-plan-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
}

.ws-plan-card.is-plan-b {
  background: var(--accent-soft);
  border-color: rgba(0, 102, 255, 0.25);
}

/* ==========================================================================
   Photographic Consumer Landing Page
   ========================================================================== */
.ws-hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
  padding: 1.25rem 0 2.75rem;
}

@media (min-width: 960px) {
  .ws-hero-split {
    grid-template-columns: 1fr 1.06fr;
    gap: 3rem;
    padding: 2.25rem 0 3.5rem;
  }
}

.ws-hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 4.3vw, 3.45rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 1.05rem;
}

.ws-hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-secondary);
  max-width: 46ch;
  margin: 0 0 1.75rem;
}

.ws-hero-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-muted);
  box-shadow: var(--shadow-lg);
}

.ws-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ws-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17, 19, 24, 0.45) 0%,
    rgba(17, 19, 24, 0.08) 45%,
    rgba(17, 19, 24, 0.14) 100%
  );
  pointer-events: none;
}

.ws-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(17, 19, 24, 0.18);
  color: var(--ink);
}

.ws-float-routes {
  top: 16px;
  left: 16px;
  padding: 0.72rem 0.9rem;
  min-width: 230px;
}

.ws-float-weather {
  bottom: 16px;
  left: 16px;
  padding: 0.62rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ws-float-planb {
  bottom: 16px;
  right: 16px;
  padding: 0.55rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.77rem;
  font-weight: 600;
}

@media (max-width: 540px) {
  .ws-float-planb {
    display: none;
  }
}

.ws-spot-section {
  padding: 2.25rem 0 1rem;
  border-top: 1px solid var(--border);
}

.ws-spot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .ws-spot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ws-spot-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.ws-spot-card:hover {
  text-decoration: none;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ws-spot-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-muted);
}

.ws-spot-img-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.ws-spot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.ws-spot-card:hover .ws-spot-img {
  transform: scale(1.03);
}

.ws-spot-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.ws-spot-body:hover {
  text-decoration: none;
}

/* ==========================================================================
   Photographic Overview Trip Cover Banner (16:5)
   ========================================================================== */
.ws-cover-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 5;
  min-height: 170px;
  max-height: 235px;
  width: 100%;
  margin-bottom: 1.2rem;
  background: var(--primary);
}

.ws-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ws-cover-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17, 19, 24, 0.8) 0%,
    rgba(17, 19, 24, 0.28) 55%,
    rgba(17, 19, 24, 0.06) 100%
  );
}

.ws-cover-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  color: #FFFFFF;
}

.ws-cover-title {
  margin: 0 0 0.25rem;
  color: #FFFFFF;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.ws-cover-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
}

.ws-cover-share {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: none;
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(17, 19, 24, 0.2);
  transition: background-color 0.14s ease;
}

.ws-cover-share:hover {
  background: #FFFFFF;
}

@media (max-width: 640px) {
  .ws-grid-4 {
    grid-template-columns: 1fr;
  }
  .ws-cover-banner {
    aspect-ratio: auto;
    min-height: 205px;
    max-height: none;
  }
  .ws-cover-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
  }
  .ws-cover-share {
    padding: 0.36rem 0.72rem;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   Friend Groups Hub, 1-Tap RSVP Cards & Group Push Alerts Bar
   ========================================================================== */
.ws-group-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .ws-group-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  }
}

.ws-group-push-bar {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.ws-switch {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.16s ease;
  border: none;
}

.ws-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: transform 0.16s ease;
  box-shadow: 0 1px 3px rgba(17, 19, 24, 0.22);
}

.ws-switch:checked {
  background: var(--accent);
}

.ws-switch:checked::after {
  transform: translateX(16px);
}

.ws-group-trip-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.ws-group-trip-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.ws-group-trip-media {
  position: relative;
  width: 100%;
  height: 204px;
  overflow: hidden;
  background: var(--bg-muted);
}

@media (max-width: 640px) {
  .ws-group-trip-media {
    height: 176px;
  }
}

.ws-group-trip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ws-group-trip-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17, 19, 24, 0.72) 0%,
    rgba(17, 19, 24, 0.15) 55%,
    rgba(17, 19, 24, 0.04) 100%
  );
}

.ws-group-trip-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  color: #FFFFFF;
}

.ws-group-trip-body {
  padding: 1.1rem 1.15rem 1.2rem;
}

.ws-rsvp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.ws-rsvp-row > form {
  display: contents;
}

.ws-rsvp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.81rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

@media (max-width: 639px) {
  .ws-rsvp-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .ws-rsvp-btn {
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.65rem;
  }
}

.ws-rsvp-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--ink);
}

.ws-rsvp-btn.is-going {
  background: var(--good);
  border-color: var(--good);
  color: #FFFFFF;
}

.ws-rsvp-btn.is-partial {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.ws-rsvp-btn.is-maybe {
  background: var(--warn-soft);
  border-color: var(--warn);
  color: #92400E;
}

.ws-rsvp-btn.is-declined {
  background: var(--bg-muted);
  border-color: var(--ink-secondary);
  color: var(--ink);
}

.ws-sidebar-group-back {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.65rem;
  margin-bottom: 0.35rem;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: border-color 0.14s ease, color 0.14s ease;
}

.ws-sidebar-group-back:hover {
  border-color: var(--border-strong);
  color: var(--ink);
  text-decoration: none;
}

/* ==========================================================================
   Wikimedia Commons Photographic Attribution Link (10px Subtle Corner Pill)
   ========================================================================== */
.ws-photo-credit {
  position: absolute;
  right: 0.65rem;
  bottom: 0.3rem;
  z-index: 3;
  max-width: 65%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(17, 19, 24, 0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1px 6px;
  border-radius: 4px;
  text-decoration: none;
  pointer-events: auto;
  transition: color 0.14s ease, background-color 0.14s ease;
}

.ws-photo-credit:hover {
  color: #FFFFFF;
  background: rgba(17, 19, 24, 0.65);
  text-decoration: underline;
}

.ws-cover-banner.has-photo-credit .ws-cover-content {
  padding-bottom: 1.55rem;
}

.ws-group-trip-media.has-photo-credit .ws-group-trip-overlay {
  padding-bottom: 1.45rem;
}

.ws-dest-photo-wrap.has-photo-credit .ws-dest-photo-caption {
  bottom: 1.4rem;
}

.ws-hero-media .ws-photo-credit {
  top: 0.65rem;
  right: 0.65rem;
  bottom: auto;
  max-width: 55%;
}

.ws-spot-img-wrap .ws-photo-credit {
  right: 0.5rem;
  bottom: 0.4rem;
  max-width: calc(100% - 1rem);
}

/* ==========================================================================
   Landing FAQ Accordion (Zero-JS Native <details>) & Semantic Footer
   ========================================================================== */
.ws-faq-section {
  padding: 2.25rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.ws-faq-header {
  margin-bottom: 1.25rem;
}

.ws-faq-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.3rem;
}

.ws-faq-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.ws-faq-list {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ws-faq-item {
  border-bottom: 1px solid var(--border);
}

.ws-faq-item:last-child {
  border-bottom: none;
}

.ws-faq-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.ws-faq-summary::-webkit-details-marker {
  display: none;
}

.ws-faq-summary:hover {
  background: var(--bg-subtle);
}

.ws-faq-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.ws-faq-icon {
  flex-shrink: 0;
  color: var(--ink-secondary);
  transition: transform 0.18s ease, color 0.14s ease;
}

.ws-faq-item[open] .ws-faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.ws-faq-answer {
  padding: 0 1.2rem 1.15rem;
}

.ws-faq-answer p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 68ch;
}

.ws-landing-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.4rem 0 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

.ws-landing-footer-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.ws-landing-footer-brand {
  color: var(--ink);
  font-weight: 600;
}

.ws-landing-footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.ws-landing-footer-link {
  color: var(--ink-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.14s ease;
}

.ws-landing-footer-link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ==========================================================================
   Site-Wide Breadcrumbs & Public UK Group Weekend Guides
   ========================================================================== */
.ws-breadcrumb-bar {
  position: relative;
  z-index: 2;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.ws-breadcrumb-bar-workspace {
  position: relative;
  top: auto;
  z-index: 34;
  padding: 0 1rem;
  background: rgba(247, 247, 249, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  .ws-breadcrumb-bar-workspace {
    position: sticky;
    top: 60px;
  }
}

@media (min-width: 1120px) {
  .ws-breadcrumb-bar-workspace {
    padding: 0 1.4rem;
  }
}

@media (max-width: 479px) {
  .ws-breadcrumb-bar > .ws-container {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
  .ws-breadcrumb-bar-workspace {
    padding: 0 0.75rem;
  }
}

.ws-breadcrumb {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.ws-breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem;
  min-height: 36px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.ws-breadcrumb-list::-webkit-scrollbar {
  display: none;
}

.ws-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
  min-width: 0;
}

.ws-breadcrumb-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.14s ease;
}

.ws-breadcrumb-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.ws-breadcrumb-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 4px;
}

.ws-breadcrumb-current {
  display: inline-block;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 768px) {
  .ws-breadcrumb-link {
    max-width: 240px;
  }
  .ws-breadcrumb-current {
    max-width: 300px;
  }
}

.ws-breadcrumb-sep {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--ink-muted);
  opacity: 0.7;
}

.ws-guide-index-header {
  max-width: 740px;
  padding-bottom: 2rem;
}

.ws-guide-h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 0.85rem;
}

.ws-guide-h2 {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.45rem;
}

.ws-guide-h3 {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

.ws-guide-lead {
  font-size: 1.02rem;
  line-height: 1.58;
  color: var(--ink-secondary);
  margin: 0;
  max-width: 60ch;
}

.ws-guide-grid-section {
  padding-bottom: 2.5rem;
}

.ws-guide-card {
  height: 100%;
}

.ws-guide-card-body {
  padding: 1.05rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.ws-guide-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.15rem;
}

.ws-guide-card-title a {
  color: var(--ink);
  text-decoration: none;
}

.ws-guide-card-title a:hover {
  color: var(--accent);
}

.ws-guide-card-hub {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  margin: 0 0 0.55rem;
}

.ws-guide-card-summary {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-secondary);
  margin: 0 0 0.9rem;
  flex: 1 1 auto;
}

.ws-guide-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
}

.ws-guide-card-footer {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.ws-guide-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.ws-guide-card-link:hover {
  text-decoration: underline;
}

.ws-guide-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
  padding-bottom: 2rem;
}

@media (min-width: 960px) {
  .ws-guide-hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

.ws-guide-hero-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--bg-muted);
  box-shadow: var(--shadow-md);
}

.ws-guide-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ws-guide-stat-val {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.ws-guide-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.ws-guide-section-head {
  margin-bottom: 1.1rem;
}

.ws-guide-section-sub {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0 0 1.15rem;
  max-width: 68ch;
}

.ws-guide-prose {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 72ch;
}

.ws-guide-prose p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.ws-guide-table-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.ws-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
  min-width: 620px;
}

.ws-guide-table thead th {
  padding: 0.78rem 1rem;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.ws-guide-table tbody td {
  padding: 0.82rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  vertical-align: middle;
}

.ws-guide-table tbody tr:last-child td {
  border-bottom: none;
}

.ws-guide-hub-cell {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.ws-guide-time-cell {
  font-weight: 600;
  white-space: nowrap;
}

.ws-guide-weather-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.ws-guide-note-card {
  display: flex;
  flex-direction: column;
}

.ws-guide-body-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.58;
  color: var(--ink-secondary);
}

.ws-guide-swaps {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.ws-guide-swap-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 760px) {
  .ws-guide-swap-card {
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
  }
}

.ws-guide-swap-col {
  padding: 1.1rem 1.2rem;
}

.ws-guide-swap-indoor {
  background: var(--accent-soft);
}

.ws-guide-swap-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 760px) {
  .ws-guide-swap-divider {
    padding: 0 0.65rem;
    border-top: none;
    border-bottom: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}

.ws-guide-swap-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ws-guide-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.ws-guide-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.78rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink);
}

.ws-guide-checklist-item:first-child {
  padding-top: 0;
}

.ws-guide-checklist-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ws-guide-check-mark {
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--good-soft);
  color: var(--good);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ws-guide-cta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.6rem;
  margin: 0.5rem 0 2rem;
}

@media (min-width: 820px) {
  .ws-guide-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.ws-guide-cta-copy {
  max-width: 58ch;
}

.ws-guide-cta-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

.ws-guide-cta-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Shared Consumer Interactive Utilities (Meta Pills, Segmented Pills,
   Clickable Hairline Rows, Overflow Popover Menu, Mobile Sheet Sections)
   ========================================================================== */
.ws-side-pill {
  margin-left: auto;
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

.ws-side-pill.is-good {
  background: var(--good-soft);
  color: var(--good);
}

.ws-side-pill.is-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.ws-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: 100%;
  min-width: 0;
  padding: 0.16rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}

.ws-meta-pill:hover {
  border-color: var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
}

.ws-meta-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.ws-meta-pill.is-action {
  background: var(--accent-soft);
  border-color: rgba(0, 102, 255, 0.24);
  color: var(--accent);
}

.ws-meta-pill.is-action:hover {
  border-color: var(--accent);
  background: #E2EEFF;
  color: var(--accent);
}

.ws-meta-pill-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ws-meta-pill-edit {
  width: 11px;
  height: 11px;
  opacity: 0.65;
}

.ws-meta-pill:hover .ws-meta-pill-edit {
  opacity: 1;
}

.ws-meta-pill-cover {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.26rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(17, 19, 24, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.ws-meta-pill-cover:hover {
  background: rgba(17, 19, 24, 0.78);
  border-color: rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
  text-decoration: none;
}

.ws-meta-pill-cover.is-action {
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.35);
}

.ws-meta-pill-cover.is-action:hover {
  background: #0052CC;
}

.ws-seg-pill {
  display: inline-flex;
  align-items: stretch;
  gap: 3px;
  padding: 3px;
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  border: 1px solid var(--border);
}

.ws-seg-pill-full {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.ws-seg-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 38px;
  padding: 0.38rem 0.75rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 0.81rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.ws-seg-pill-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.ws-seg-pill-btn.is-active {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(17, 19, 24, 0.1);
}

.ws-hairline-row-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 50px;
  padding: 0.68rem 0.55rem;
  margin: 0 -0.55rem;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.14s ease;
}

.ws-hairline-row-link:hover {
  background: var(--bg-subtle);
  text-decoration: none;
  color: inherit;
}

.ws-hairline-row-link:last-child {
  border-bottom: none;
}

.ws-menu-popover-wrap {
  position: relative;
  display: inline-flex;
}

.ws-menu-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 45;
  min-width: 196px;
  padding: 0.35rem;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ws-menu-popover-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 38px;
  padding: 0.45rem 0.65rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.ws-menu-popover-item:hover {
  background: var(--bg-subtle);
  color: var(--ink);
  text-decoration: none;
}

.ws-menu-popover-item.is-danger {
  color: var(--bad);
}

.ws-menu-popover-item.is-danger:hover {
  background: var(--bad-soft);
  color: var(--bad);
}

.ws-menu-popover-sep {
  height: 1px;
  background: var(--border);
  margin: 0.25rem 0.35rem;
}

.ws-sheet-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin: 0 0 0.45rem;
}

.ws-sheet-link {
  min-height: 44px;
  justify-content: flex-start;
  padding: 0.5rem 0.75rem;
}

.ws-sheet-link.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.ws-btn-primary.ws-sheet-link.is-active {
  background: var(--accent);
  color: #FFFFFF;
}

.ws-saved-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}
