/* ============================================================================
   Indiana Dunes Club design system
   Palette: deep slate blue #365467 · cream #F5F0E8 · gold #B8935A · charcoal #1F2937
   Type: Playfair Display (wordmark) · Cormorant Garamond (editorial display) · Inter (UI/body)
============================================================================ */

:root {
  --navy: #365467;
  --navy-dark: #243a4a;
  --navy-darker: #1a2b38;
  --cream: #f5f0e8;
  --cream-light: #faf7f2;
  --cream-warm: #ede5d5;
  --gold: #b8935a;
  --gold-dark: #967745;
  --gold-light: #d4b788;
  --charcoal: #1f2937;
  --slate: #4b5563;
  --slate-light: #6b7280;
  --line: #e5dccc;
  --line-navy: #4a6478;

  --panel-navy: #2f4a5b;
  --panel-navy-2: #3b5b70;

  --good: #6b8e5f;
  --warn: #c48d3a;
  --bad: #b3524b;

  --shadow-sm: 0 1px 3px rgba(31, 41, 55, 0.08);
  --shadow-md: 0 4px 12px rgba(31, 41, 55, 0.10);
  --shadow-lg: 0 20px 50px rgba(31, 41, 55, 0.18);

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-wordmark: "Playfair Display", "Bodoni Moda", "Didot", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream-light);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--navy); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy-darker);
  letter-spacing: 0.01em;
  margin: 0 0 .3em;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); line-height: 1.05; letter-spacing: .03em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); line-height: 1.15; }
h3 { font-size: 1.4rem; line-height: 1.3; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); }

p { margin: 0 0 1em; color: var(--slate); }

.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-feature-settings: "lnum" 1;
}

.overline {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================================
   NAV
============================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-darker);
}
.nav-brand img { width: 38px; height: 38px; }
.nav-brand .name {
  font-family: var(--font-wordmark);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
}
.nav-links a.cta {
  color: var(--cream);
  background: var(--navy);
  padding: 10px 20px;
  border-radius: 2px;
  transition: background .2s;
}
.nav-links a.cta:hover { background: var(--navy-darker); color: var(--cream); }

/* Dropdown */
.nav-dd {
  position: relative;
  display: inline-block;
}
.nav-dd-toggle {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: inherit;
  white-space: nowrap;
}
.nav-dd-toggle::after {
  content: "▾";
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.2s;
}
.nav-dd.open .nav-dd-toggle::after,
.nav-dd:hover .nav-dd-toggle::after { transform: rotate(180deg); }
.nav-dd-toggle:hover { color: var(--navy-darker); }
.nav-dd-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 240px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 18px 44px rgba(36, 58, 74, 0.14);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  z-index: 60;
}
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu,
.nav-dd.open .nav-dd-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}
.nav-dd-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-dd-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  border-left: 2px solid transparent;
}
.nav-dd-menu a:hover {
  background: var(--cream-alt);
  color: var(--navy-darker);
  border-left-color: var(--gold);
}
.nav-dd-menu .nav-dd-sep {
  height: 1px;
  background: var(--line);
  margin: 6px 16px;
}

/* Hamburger toggle — hidden by default, shown on mobile */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--navy-darker);
  font-family: inherit;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.nav-toggle:hover { background: var(--cream-alt); }
.nav-toggle-icon {
  display: block;
  width: 22px;
  height: 16px;
  position: relative;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after,
.nav-toggle-icon span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--navy-darker);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}
.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon span { top: 7px; }
.nav-toggle-icon::after { top: 14px; }
.nav.nav-open .nav-toggle-icon::before { top: 7px; transform: rotate(45deg); }
.nav.nav-open .nav-toggle-icon::after  { top: 7px; transform: rotate(-45deg); }
.nav.nav-open .nav-toggle-icon span     { opacity: 0; }

/* ============================================================================
   War-room print styles — Print / Save PDF on every tool page.
   Hides navigation, sidebars, and controls; forces a print-friendly layout.
============================================================================ */
@media print {
  .nav, .app-model .sidebar { display: none !important; }
  .app-model { grid-template-columns: 1fr !important; }
  .app-model .main { padding: 0 !important; max-width: none !important; }
  .btn-print, .btn-mtg, .btn-meeting, #btn-export { display: none !important; }
  body { background: #fff !important; }
  .chart canvas, .chart { max-width: 100% !important; }
  h1, h2, h3 { break-after: avoid; }
  table, .kpi-row { break-inside: avoid; }
}

/* Print button style — sits inline next to export buttons */
.btn-print, .btn-meeting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--navy-darker);
  border: 1px solid var(--navy);
  padding: 10px 18px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s ease;
}
.btn-print:hover, .btn-meeting:hover {
  background: var(--navy-darker);
  color: var(--cream);
  border-color: var(--navy-darker);
}

/* ============================================================================
   Universal mobile safety net — collapse inline multi-column grids to a
   single column on narrow screens. Guards against inline-style card grids
   that don't have their own media query. Applied only to top-level content
   sections; deliberately narrow selectors so it doesn't over-reach.
============================================================================ */
@media (max-width: 780px) {
  section [style*="grid-template-columns"],
  main [style*="grid-template-columns"],
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* keep 2-col compact photo strips as-is if they set data-keep-cols */
  [data-keep-cols][style*="grid-template-columns"] {
    grid-template-columns: revert !important;
  }
  /* Prevent horizontal overflow of card content on tiny viewports */
  section, main, body { overflow-x: hidden; }

  /* ==========================================================================
     Calculator + Pro Forma input panels: fix CSS Grid min-content overflow.
     The panels' `1fr` track was resolving to ~558px because nested pill-group
     grids default to `min-width: auto`, which propagates a bottom-up floor.
     The correct fix is `minmax(0, 1fr)` on every fr-based track in the chain
     PLUS `min-width: 0` on the grid item so it can actually shrink.
  ========================================================================== */
  .inputs-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    padding: 22px 16px !important;
  }
  .inputs-panel input, .inputs-panel select, .inputs-panel button {
    box-sizing: border-box;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .calc-grid, .calc-wrap { min-width: 0; }
  .calc-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .pill-group,
  .pill-group.pill-group-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .pill-group:not(.pill-group-3) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .pill { padding: 10px 2px !important; font-size: 12px !important; min-width: 0 !important; }
  .field, .inputs-panel .field { min-width: 0 !important; }

  /* Pro Forma slider grids and results table containers */
  .pf-grid, .pf-2col, .pf-3col {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* Data tables on the home page: scroll horizontally instead of clipping.
     `!important` overrides the base `.scenario-table { overflow: hidden }`
     which was previously clipping the right side of the table on mobile. */
  .scenario-table, .brk-table, table.data-table, table.deal-table,
  section table {
    display: block !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    max-width: 100% !important;
  }
  /* Wrap wide inline-styled tables inside a horizontally scrollable div. */
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 1100px) {
  .nav-inner { padding: 14px 20px; flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }

  /* Mobile: hide the horizontal nav-links; show as slide-down panel when open */
  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0 8px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
  }
  .nav.nav-open .nav-links { display: flex; }
  .nav-links a,
  .nav-links a.cta,
  .nav-links .nav-dd-toggle {
    width: 100%;
    padding: 14px 4px;
    font-size: 13px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    border-radius: 0;
    background: transparent;
    color: var(--slate);
  }
  .nav-links a.cta {
    background: var(--navy);
    color: var(--cream);
    padding: 14px 18px;
    margin-top: 10px;
    text-align: center;
    border-bottom: none;
    border-radius: 3px;
  }
  .nav-links a.cta:hover { background: var(--navy-darker); color: var(--cream); }
  .nav-links .nav-dd { display: block; width: 100%; }
  .nav-links .nav-dd-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  /* Mobile dropdown: inline (not floating) */
  .nav-dd-menu {
    position: static;
    right: auto;
    top: auto;
    min-width: 0;
    width: 100%;
    background: rgba(0,0,0,0.02);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 4px 0 8px 16px;
    transform: none;
  }
  .nav-dd-menu::before { display: none; }
  .nav-dd-menu a { padding: 12px 8px; border-left: 2px solid transparent; }
}

/* Touch devices — disable :hover-triggered dropdown open (it sticks on iPad).
   The click/tap handler on .nav-dd-toggle handles open/close via .nav-dd.open.
   Also prevent the menu from being wider than the viewport minus a safe margin. */
@media (hover: none) {
  .nav-dd:hover .nav-dd-menu,
  .nav-dd:focus-within .nav-dd-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
  }
  .nav-dd.open .nav-dd-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* Tablet-range viewports (iPad, small laptops): make sure the dropdown menu
   never overflows the viewport and never overlaps the CTA. */
@media (min-width: 781px) and (max-width: 1180px) {
  .nav-dd-menu {
    right: 0;
    max-width: calc(100vw - 32px);
  }
}

/* ============================================================================
   HERO
============================================================================ */
.hero {
  position: relative;
  height: min(92vh, 820px);
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-dark);
}

/* ---- Split hero: aerial (top 60%) + dusk (bottom 40%) ---- */
.hero.hero-split {
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  justify-content: flex-start !important;
  height: min(100vh, 900px);
  min-height: 640px;
}
.hero-split .hero-top,
.hero-split .hero-bottom {
  position: relative;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}
.hero-split .hero-top {
  flex: 0 0 60%;
  border-bottom: 1px solid rgba(184,147,90,0.65); /* gold hairline */
}
.hero-split .hero-bottom {
  flex: 0 0 40%;
}
.hero-split .hero-bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover !important;
  filter: brightness(0.68) saturate(1.05);
  /* neutralize the legacy background-image inherited from the non-split .hero-bg */
}
.hero-split .hero-top .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26,43,56,0.35) 0%, rgba(26,43,56,0.05) 35%, rgba(26,43,56,0.65) 100%);
}
.hero-split .hero-bottom .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26,43,56,0.75) 0%, rgba(26,43,56,0.55) 50%, rgba(26,43,56,0.85) 100%);
}
.hero-split .hero-top-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 48px;
  color: var(--cream);
  max-width: 900px;
  margin: 0 auto;
}
.hero-split .hero-bottom-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  color: var(--cream);
}
.hero-split .hero-top .badge { width: 88px; margin: 0 auto 16px; opacity: 0.95; display: block; }
.hero-split .hero-top .wordmark { font-size: clamp(3.5rem, 7vw, 5.5rem); margin: 0; }
.hero-split .hero-top .subtitle { margin: 4px 0 18px; }
.hero-split .hero-top .divider { margin: 14px auto; }
.hero-split .hero-top .lede { margin: 0 auto; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.hero-caption {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.85;
  z-index: 2;
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-split .hero-bottom .hero-caption {
  position: static;
  transform: none;
  margin: 0;
}
@media (max-width: 720px) {
  .hero.hero-split { height: auto; min-height: 0; }
  .hero-split .hero-top { height: 62vh; min-height: 420px; }
  .hero-split .hero-bottom { height: auto; min-height: 260px; padding: 32px 0; }
  .hero-split .hero-top .badge { width: 72px; margin-bottom: 12px; }
}
/* Legacy single-panel hero styles — apply only when .hero is NOT .hero-split */
.hero:not(.hero-split) .hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("photos/dunes_02_dunes_sunset.jpg");
  background-size: cover;
  background-position: center 55%;
  filter: brightness(0.7) saturate(1.05);
}
.hero:not(.hero-split) .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26,43,56,0.55) 0%, rgba(26,43,56,0.15) 40%, rgba(26,43,56,0.85) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
  color: var(--cream);
  max-width: 900px;
}
.hero .badge { width: 120px; margin: 0 auto 28px; opacity: 0.95; display: block; }
.hero h1 { color: var(--cream); font-weight: 400; }
.hero .subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 8px 0 32px;
  font-weight: 400;
}
.hero .divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 24px auto;
}
.hero .lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  color: rgba(245,240,232,0.9);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.5;
}
.hero-cta {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary {
  background: var(--gold);
  color: var(--cream-light);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--cream-light); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245,240,232,0.6);
}
.btn-ghost:hover { border-color: var(--cream); background: rgba(245,240,232,0.08); color: var(--cream); }
.btn-navy {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-darker); color: var(--cream); border-color: var(--navy-darker); }

/* Investor deck button — dual-line, cream fill with navy text, gold accent */
.btn-deck {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 30px;
  background: var(--cream-light);
  color: var(--navy-darker);
  border-color: var(--cream-light);
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(24,38,50,0.28);
  position: relative;
}
.btn-deck::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
}
.btn-deck:hover {
  background: #fff;
  border-color: #fff;
  color: var(--navy-darker);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(24,38,50,0.36);
}
.btn-deck-eyebrow {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
  font-weight: 600;
  text-transform: uppercase;
}
.btn-deck-label {
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.6;
  z-index: 3;
}

/* ============================================================================
   SECTION SCAFFOLD
============================================================================ */
section { padding: clamp(64px, 9vw, 120px) 32px; }
.container { max-width: 1200px; margin: 0 auto; }
.container-narrow { max-width: 820px; margin: 0 auto; }

.section-navy { background: var(--navy-dark); color: var(--cream); }
.section-navy h2, .section-navy h3, .section-navy h4 { color: var(--cream); }
.section-navy p { color: rgba(245,240,232,0.82); }
.section-cream { background: var(--cream); }
.section-cream-light { background: var(--cream-light); }

.section-head {
  text-align: center;
  margin-bottom: 60px;
}
.section-head .overline { display: block; margin-bottom: 12px; }
.section-head h2 { margin-bottom: 16px; }
.section-head .rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 20px auto 0;
}
.section-head p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--slate);
}
.section-navy .section-head p { color: rgba(245,240,232,0.75); }

/* ============================================================================
   STATS STRIP
============================================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-navy);
  border-bottom: 1px solid var(--line-navy);
}
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { border-right: 1px solid var(--line-navy); }
  .stat:nth-child(3n) { border-right: none; }
  .stat:nth-child(-n+3) { border-bottom: 1px solid var(--line-navy); }
}
.stat {
  padding: 32px 20px;
  text-align: center;
  border-right: 1px solid var(--line-navy);
}
.stat:last-child { border-right: none; }
.stat .n {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
  font-weight: 400;
}
.stat .l {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.65);
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-navy); }
}

/* ============================================================================
   STORY / TWO-COL
============================================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse { direction: ltr; }
}
.two-col img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.two-col .copy .overline { margin-bottom: 12px; display: block; }
.two-col .copy h2 { margin-bottom: 20px; }
.two-col .copy p { font-size: 17px; }

/* ============================================================================
   PILLARS
============================================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  padding: 40px 32px;
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section-navy .pillar {
  background: var(--panel-navy);
  border-color: var(--line-navy);
}
.pillar .num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  font-weight: 400;
}
.pillar h3 { margin-bottom: 12px; }
.pillar p { margin: 0; font-size: 15px; }

/* ============================================================================
   DEAL TABLE
============================================================================ */
.deal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 800px) { .deal-grid { grid-template-columns: 1fr; } }
.deal-card {
  background: var(--cream-light);
  padding: 36px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}
.deal-card h3 { margin-bottom: 12px; }
.deal-card .kv {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.deal-card .kv:last-child { border-bottom: none; }
.deal-card .kv .k { color: var(--slate); }
.deal-card .kv .v { font-weight: 600; color: var(--navy-darker); font-variant-numeric: tabular-nums; }
.deal-card .kv .v.gold { color: var(--gold-dark); }

/* ============================================================================
   SCENARIO TABLE
============================================================================ */
.scenario-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cream-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}
.scenario-table th {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
}
.scenario-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--charcoal);
}
.scenario-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.scenario-table td strong { color: var(--navy-darker); font-family: var(--font-display); font-weight: 500; font-size: 15px; }
.scenario-table tr:last-child td { border-bottom: none; }
.scenario-table tr:hover td { background: var(--cream-warm); }

/* ============================================================================
   GALLERY
============================================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery .g-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.gallery .g-item.wide { grid-column: span 2; aspect-ratio: 3/2; }
.gallery .g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.gallery .g-item:hover img { transform: scale(1.05); }
.gallery .g-item.idc-architecture { background: #F5F0E8; }
.gallery .g-item.idc-architecture img { object-fit: contain; }
.gallery .g-item.idc-architecture .cap { color: #365467; text-shadow: none; line-height: 1.6; right: 12px; }
.gallery .g-item .cap {
  position: absolute;
  bottom: 12px;
  left: 12px;
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* ============================================================================
   CTA / FOOTER
============================================================================ */
.cta-section {
  background:
    linear-gradient(rgba(26,43,56,0.75), rgba(26,43,56,0.85)),
    url("photos/lighthouse_01_lighthouse_aerial.jpg");
  background-size: cover;
  background-position: center;
  color: var(--cream);
  text-align: center;
}
.cta-section h2 { color: var(--cream); }
.cta-section p { color: rgba(245,240,232,0.85); font-size: 18px; max-width: 620px; margin: 0 auto 32px; }

.footer {
  background: var(--navy-darker);
  color: rgba(245,240,232,0.7);
  padding: 60px 32px 30px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.footer-brand img { width: 56px; height: 56px; }
.footer-brand .name {
  font-family: var(--font-wordmark);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
}
.footer p { color: rgba(245,240,232,0.6); font-size: 13px; margin: 8px 0; }
.footer h4 { color: var(--gold-light); margin-bottom: 16px; }
.footer a { color: rgba(245,240,232,0.75); font-size: 13px; }
.footer a:hover { color: var(--cream); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 8px 0; }
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(245,240,232,0.15);
  font-size: 11px;
  color: rgba(245,240,232,0.5);
  letter-spacing: 0.1em;
  text-align: center;
}

/* ============================================================================
   MODEL PAGE — reskinned
============================================================================ */
.app-model {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: calc(100vh - 76px);
  background: var(--cream-light);
}
.app-model .sidebar {
  background: var(--navy-dark);
  color: var(--cream);
  padding: 32px 26px;
  overflow-y: auto;
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  border-right: 1px solid var(--line-navy);
}
/* Mobile: stack the sidebar above the main tab area — no sticky overlap. */
@media (max-width: 960px) {
  .app-model { grid-template-columns: 1fr; }
  .app-model .sidebar {
    position: static;
    height: auto;
    max-height: none;
    overflow-y: visible;
    border-right: none;
    border-bottom: 1px solid var(--line-navy);
    padding: 24px 20px;
  }
}
.app-model .sidebar h2 {
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-weight: 600;
  border-bottom: 1px solid var(--line-navy);
  padding-bottom: 14px;
}
.app-model .sidebar h3 {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin: 24px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-navy);
  font-weight: 600;
}
.app-model .field { margin-bottom: 14px; }
.app-model .field label {
  display: block;
  font-size: 12px;
  color: rgba(245,240,232,0.7);
  margin-bottom: 5px;
}
.app-model .field input[type=number],
.app-model .field input[type=text] {
  width: 100%;
  padding: 8px 10px;
  background: var(--panel-navy);
  color: var(--cream);
  border: 1px solid var(--line-navy);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
}
.app-model .field input[type=number]:focus,
.app-model .field input[type=text]:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--panel-navy-2);
}
.app-model .field input[type=range] { width: 100%; accent-color: var(--gold); }
.app-model .field .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.app-model .field .value {
  font-size: 13px;
  color: var(--gold-light);
  font-weight: 600;
  min-width: 72px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.app-model .caption {
  font-size: 11px;
  color: rgba(245,240,232,0.55);
  margin-top: 4px;
  font-style: italic;
}

.app-model .main {
  padding: 36px 44px;
  max-width: 1400px;
  min-width: 0;         /* allow flex/grid children to shrink instead of overflowing */
  overflow-x: hidden;   /* clip any oversized Plotly charts on tight desktops */
}
.app-model .chart { max-width: 100%; overflow-x: auto; }
@media (max-width: 720px) { .app-model .main { padding: 24px 20px; } }
.app-model .header h1 {
  color: var(--navy-darker);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin: 0;
}
.app-model .header .subtitle {
  color: var(--slate);
  margin: 6px 0 28px;
  font-size: 15px;
  font-family: var(--font-display);
  font-style: italic;
}

.app-model .tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.app-model .tab {
  padding: 12px 18px;
  cursor: pointer;
  color: var(--slate);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  user-select: none;
  transition: color .15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(184,147,90,0.2);
}
.app-model .tab:hover { color: var(--navy-darker); }
.app-model .tab.active {
  color: var(--navy-darker);
  border-bottom-color: var(--gold);
  font-weight: 600;
}
.app-model .tab.tab-featured {
  background: var(--gold);
  color: #fff;
  border-radius: 8px 8px 0 0;
  border-bottom-color: var(--gold);
  padding: 12px 20px;
  font-weight: 600;
  box-shadow: 0 -2px 0 var(--gold-dark, #a07c47) inset;
}
.app-model .tab.tab-featured:hover {
  background: var(--gold-dark, #a07c47);
  color: #fff;
}
.app-model .tab.tab-featured.active {
  color: #fff;
  border-bottom-color: var(--gold);
}
.app-model .panel { display: none; }
.app-model .panel.active { display: block; }
.app-model .panel h2 {
  color: var(--navy-darker);
  font-size: 26px;
  margin: 0 0 6px;
  font-weight: 400;
}
/* PDF card links inside model panels — click-safe hover lift (works on iPad without eating the tap) */
.app-model a.pdf-card { -webkit-tap-highlight-color: rgba(184,147,90,0.25); }
@media (hover: hover) {
  .app-model a.pdf-card:hover { transform: translateY(-2px); }
}
.app-model .panel .lead {
  color: var(--slate);
  font-size: 15px;
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-style: italic;
}
.app-model .panel h3 {
  color: var(--navy-darker);
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.app-model .metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.app-model .metric {
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  border-left: 3px solid var(--gold);
}
.app-model .metric .label {
  font-size: 10px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
}
.app-model .metric .value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--navy-darker);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.app-model .metric .delta {
  font-size: 12px;
  color: var(--good);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.app-model .metric.warn { border-left-color: var(--warn); }
.app-model .metric.warn .value { color: var(--warn); }
.app-model .metric.good { border-left-color: var(--good); }
.app-model .metric.good .value { color: var(--good); }

/* Profit bridge — reconciles Gross → Net so investors and Excel builders see where the $ go */
.app-model .profit-bridge {
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 8px 0 20px;
}
.app-model .profit-bridge .pb-title {
  font-size: 11px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: 14px;
}
.app-model .profit-bridge .pb-grid {
  display: grid;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.app-model .profit-bridge .pb-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 8px 0;
  align-items: baseline;
  font-size: 14px;
  color: var(--navy-darker);
  border-bottom: 1px dashed rgba(54, 84, 103, 0.15);
}
.app-model .profit-bridge .pb-row:last-child { border-bottom: none; }
.app-model .profit-bridge .pb-row .pb-lbl { color: var(--slate); }
.app-model .profit-bridge .pb-row .pb-val { font-weight: 600; }
.app-model .profit-bridge .pb-row.pos .pb-val { color: var(--navy-darker); }
.app-model .profit-bridge .pb-row.neg .pb-val { color: var(--warn); }
.app-model .profit-bridge .pb-row.subtotal {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-weight: 600;
}
.app-model .profit-bridge .pb-row.subtotal .pb-lbl,
.app-model .profit-bridge .pb-row.subtotal .pb-val { color: var(--navy-darker); font-weight: 600; }
.app-model .profit-bridge .pb-row.total {
  border-top: 2px solid var(--navy);
  padding-top: 12px;
  margin-top: 4px;
  font-size: 16px;
}
.app-model .profit-bridge .pb-row.total .pb-lbl,
.app-model .profit-bridge .pb-row.total .pb-val {
  color: var(--good);
  font-weight: 700;
  font-family: var(--font-display);
}
.app-model .profit-bridge .pb-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--slate);
  font-style: italic;
  line-height: 1.55;
}

.app-model table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cream-light);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 14px 0;
  font-size: 13px;
  border: 1px solid var(--line);
}
.app-model th, .app-model td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.app-model th {
  background: var(--navy);
  color: var(--cream);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}
.app-model tr:last-child td { border-bottom: none; }
.app-model tr.total td {
  background: var(--cream-warm);
  font-weight: 700;
  color: var(--navy-darker);
}
.app-model td.num { text-align: right; font-variant-numeric: tabular-nums; }

.app-model .callout {
  background: var(--cream-warm);
  border-left: 3px solid var(--navy);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--charcoal);
}
.app-model .callout.warn { border-left-color: var(--warn); background: #f7ead2; }
.app-model .callout.good { border-left-color: var(--good); background: #e8efe0; }
.app-model .callout strong { color: var(--navy-darker); }

.app-model .chart {
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin: 14px 0;
}
.app-model .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 1000px) { .app-model .grid-2 { grid-template-columns: 1fr; } }
.app-model .grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}
@media (max-width: 800px) { .app-model .grid-3 { grid-template-columns: 1fr; } }

.app-model details {
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 14px 0;
}
.app-model details summary {
  cursor: pointer;
  color: var(--navy-darker);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
}
.app-model details p, .app-model details ul { color: var(--slate); font-size: 14px; line-height: 1.7; }
.app-model details ul { padding-left: 20px; }
.app-model details strong { color: var(--navy-darker); }

.app-model .footer {
  color: var(--slate-light);
  font-size: 11px;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
.app-model .footer a { color: var(--gold-dark); }

.app-model select {
  width: 100%;
  padding: 8px 10px;
  background: var(--cream-light);
  color: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
}

/* ============================================================================
   AERIAL BAND — full-width establishing shot (used to lead into Zoning)
============================================================================ */
.aerial-band {
  position: relative;
  padding: 0 !important;
  width: 100%;
  background: var(--navy-dark);
  overflow: hidden;
  display: block;
  line-height: 0;
}
.aerial-band img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1508 / 1043;
  max-height: 82vh;
  object-fit: cover;
  object-position: center center;
}
.aerial-band-caption {
  position: absolute;
  left: 32px;
  bottom: 32px;
  max-width: 540px;
  padding: 18px 22px;
  background: rgba(26, 43, 56, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-left: 2px solid var(--gold);
  color: var(--cream);
  line-height: 1.45;
  z-index: 2;
}
.aerial-band-caption .overline {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.aerial-band-caption p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.45;
  color: rgba(245, 240, 232, 0.95);
}
@media (max-width: 720px) {
  .aerial-band img { aspect-ratio: 1508 / 1043; height: auto; max-height: none; min-height: 0; }
  .aerial-band-caption {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
    padding: 14px 16px;
  }
}

/* ============================================================================
   SUNSET BAND — lake sunset with Chicago skyline (mirrors .aerial-band)
============================================================================ */
.sunset-band {
  position: relative;
  padding: 0 !important;
  width: 100%;
  background: #1a1614;
  overflow: hidden;
  display: block;
  line-height: 0;
}
.sunset-band img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.sunset-band-caption {
  position: absolute;
  right: 32px;
  bottom: 32px;
  max-width: 480px;
  padding: 18px 22px;
  background: rgba(20, 12, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-left: 2px solid var(--gold);
  color: var(--cream);
  line-height: 1.45;
  z-index: 2;
}
.sunset-band-caption .overline {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.sunset-band-caption p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.45;
  color: rgba(245, 240, 232, 0.95);
}
@media (max-width: 720px) {
  .sunset-band-caption {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
    padding: 14px 16px;
  }
}

/* ============================================================================
   COMP CARDS — deal cards with listing photos on top
============================================================================ */
.comp-card {
  padding: 0 !important;
  overflow: hidden;
}
.comp-card .comp-photo {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-light);
  border-bottom: 1px solid rgba(184,147,90,0.35);
}
.comp-card .comp-body {
  padding: 22px 24px 24px;
}
.comp-card h3 { margin-top: 0 !important; }

/* ============================================================================
   COMP STRIP — horizontal photo band across the price band
============================================================================ */
.comp-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.comp-strip-item {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--cream);
  border: 1px solid rgba(184,147,90,0.35);
  border-radius: var(--radius, 4px);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.comp-strip-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,43,56,0.15);
}
.comp-strip-photo {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-light);
}
.comp-strip-cap {
  padding: 16px 20px 20px;
}
.comp-strip-price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--navy-darker);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.comp-strip-addr {
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 4px;
  font-weight: 500;
}
.comp-strip-meta {
  font-size: 12px;
  color: var(--slate);
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .comp-strip { grid-template-columns: 1fr; }
  .comp-strip-photo { height: 260px; }
  .comp-card .comp-photo { height: 200px; }
}

/* ============================================================================
   BWW PARTNERS LLC PORTFOLIO MAP
============================================================================ */
.bww-map-block {
  background: var(--cream);
  border: 1px solid rgba(184,147,90,0.35);
  border-radius: var(--radius, 4px);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(36,58,74,0.08);
}
.bww-map-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 28px 20px;
  background: var(--cream-light);
  border-bottom: 1px solid rgba(184,147,90,0.35);
}
.bww-map-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--navy-darker);
  min-width: 210px;
  flex-shrink: 0;
}
.bww-map-legend span { display: flex; align-items: center; gap: 8px; }
.bww-map-legend .dot {
  width: 12px; height: 12px; border-radius: 50%;
  display: inline-block; border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.dot-primary   { background: var(--gold); }
.dot-secondary { background: var(--navy); }
.dot-satellite { background: var(--slate); }

#bww-map {
  height: 480px;
  width: 100%;
  background: #1a2b38;
  z-index: 1;
}
#bww-map:focus { outline: 2px solid var(--gold); outline-offset: -2px; }

.bww-map-footer {
  padding: 12px 28px;
  font-size: 11.5px;
  color: var(--slate);
  background: var(--cream-light);
  border-top: 1px solid rgba(184,147,90,0.2);
  letter-spacing: 0.02em;
}

.bww-map-hint {
  background: rgba(36,58,74,0.92);
  color: #f5f0e8;
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 11px;
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.leaflet-popup-content-wrapper {
  border-radius: 4px !important;
  box-shadow: 0 8px 28px rgba(36,58,74,0.28) !important;
}
.leaflet-popup-content {
  margin: 14px 18px !important;
  line-height: 1.5;
}
.leaflet-tooltip {
  background: rgba(36,58,74,0.95) !important;
  color: #f5f0e8 !important;
  border: none !important;
  padding: 5px 10px !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 11.5px !important;
  letter-spacing: 0.03em !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
}
.leaflet-tooltip-top:before { border-top-color: rgba(36,58,74,0.95) !important; }

@media (max-width: 900px) {
  .bww-map-header {
    flex-direction: column;
    gap: 16px;
    padding: 20px 20px 16px;
  }
  .bww-map-legend { min-width: 0; }
  #bww-map { height: 400px; }
  .bww-map-footer { padding: 10px 20px; font-size: 10.5px; }
}

/* ============================================================================
   ACRONYM TOOLTIPS — hover on desktop, tap on mobile
============================================================================ */
.acr {
  cursor: help;
  border-bottom: 1px dotted var(--gold);
  position: relative;
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
  transition: background 0.15s;
}
.acr:hover,
.acr[aria-expanded="true"] {
  background: rgba(184, 147, 90, 0.12);
  border-radius: 2px;
}
.acr::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 220px;
  max-width: 320px;
  background: var(--navy-dark);
  color: var(--cream);
  padding: 10px 14px;
  border-radius: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 1000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.acr::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--navy-dark);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, visibility 0.18s;
  z-index: 1000;
}
.acr:hover::after,
.acr:hover::before,
.acr:focus::after,
.acr:focus::before,
.acr[aria-expanded="true"]::after,
.acr[aria-expanded="true"]::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.acr[aria-expanded="true"]::before {
  transform: translateX(-50%);
}

/* Tooltip on white/light card backgrounds — keep tooltip dark for legibility */
/* On dark navy backgrounds, invert the tooltip so it stands off the surface */
.section-cream .acr::after,
.section-cream-light .acr::after,
.section-cream .acr::before,
.section-cream-light .acr::before {
  background: var(--navy-dark);
  border-top-color: var(--navy-dark);
}
[style*="background: var(--navy)"] .acr,
[style*="background:var(--navy)"] .acr {
  border-bottom-color: var(--gold);
}
[style*="background: var(--navy)"] .acr::after,
[style*="background:var(--navy)"] .acr::after {
  background: var(--cream);
  color: var(--navy-dark);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
[style*="background: var(--navy)"] .acr::before,
[style*="background:var(--navy)"] .acr::before {
  border-top-color: var(--cream);
}

/* Mobile: tooltip becomes wider and centered under the term so it doesn't clip */
@media (max-width: 720px) {
  .acr::after {
    min-width: 240px;
    max-width: min(88vw, 320px);
    font-size: 12px;
    padding: 10px 12px;
  }
}

/* ============================================================================
   NEWS FEED — "OZ + Northwest Indiana"
   Public news stream, refreshed on a 3-hour cron.
============================================================================ */

.section-news {
  background: var(--cream);
  padding: 90px 0 110px;
  border-top: 1px solid var(--line);
}

#duneswalk-news {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.news-grid {
  display: grid;
  grid-template-columns: minmax(340px, 460px) 1fr;
  gap: 72px;
  align-items: start;
}

/* ---- Left column ---- */

.news-side { position: sticky; top: 84px; }

.news-badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}

.news-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 18px;
}

.news-heading {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--navy);
  font-size: clamp(48px, 5.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
}
.news-heading .news-plus {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--gold-dark);
  font-size: 0.7em;
  line-height: 1;
  margin: 4px 0 6px 4px;
}
.news-heading-em {
  font-style: italic;
  color: var(--navy);
}

.news-tag {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--slate);
  max-width: 44ch;
  margin: 22px 0 18px;
}

.news-meta {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 22px 0 18px;
  line-height: 1.9;
}
.news-meta-num {
  color: var(--navy);
  font-weight: 600;
}
.news-meta-updated {
  color: var(--slate-light);
  font-size: 11px;
}

/* ---- Chips ---- */

.news-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 6px 0 22px;
}
.news-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.news-chip:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.news-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}
.news-chip-count {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--cream-warm);
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
}
.news-chip.is-active .news-chip-count {
  background: rgba(245,240,232,0.16);
  color: var(--cream);
}

/* ---- Controls ---- */

.news-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  margin-bottom: 12px;
}
.news-ctrl {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.news-ctrl:hover {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.news-scroll-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-left: 6px;
}
.news-fine {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--slate-light);
  line-height: 1.55;
  max-width: 44ch;
  margin: 4px 0 0;
}

/* ---- Right column · story list (continuous marquee) ---- */

.news-list-wrap {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  /* soft fade at top and bottom so items enter/exit gracefully */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}

.news-track {
  will-change: transform;
  transform: translateY(0);
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.news-list-clone { margin-top: 0; }

.news-item {
  display: grid;
  grid-template-columns: 46px 168px 1fr 28px;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 4px 22px 0;
  border-top: 1px solid var(--line);
}
.news-list:last-of-type .news-item:last-child { border-bottom: 1px solid var(--line); }

.news-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  color: var(--navy);
  line-height: 1;
  padding-top: 2px;
  font-feature-settings: "lnum";
}

.news-src {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  line-height: 1.5;
  padding-top: 4px;
}
.news-src-line { color: var(--navy); font-weight: 500; }
.news-src-date { color: var(--slate-light); margin-top: 4px; font-size: 10px; }

.news-body { min-width: 0; }
.news-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  color: var(--navy);
  text-decoration: none;
  transition: color .15s ease;
}
.news-title:hover {
  color: var(--gold-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.news-snippet {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--slate);
}

.news-arrow {
  color: var(--slate-light);
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  margin-top: 2px;
}
.news-arrow:hover {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.news-empty {
  padding: 30px 0;
  font-family: var(--font-body);
  color: var(--slate);
  font-size: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.news-error {
  padding: 60px 0;
}
.news-error-inner { max-width: 520px; }

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .news-grid { grid-template-columns: 1fr; gap: 40px; }
  .news-side { position: static; }
  .news-heading { font-size: clamp(40px, 8vw, 60px); }
  .news-item { grid-template-columns: 40px 1fr 28px; }
  .news-src { grid-column: 2 / -1; padding-top: 0; margin-bottom: 6px; }
  .news-body { grid-column: 2 / -2; }
  .news-arrow { grid-column: 3; grid-row: 1; }
}

@media (max-width: 640px) {
  .section-news { padding: 60px 0 80px; }
  #duneswalk-news { padding: 0 20px; }
  .news-title { font-size: 18px; }
  .news-snippet { font-size: 12.5px; }
  .news-num { font-size: 22px; }
}

/* ============================================================================
   TWO-WORD WORDMARK — "Indiana Dunes Club" one-line lockup
   Keeps the wordmark on a single line at all breakpoints; tightens tracking
   slightly at the hero so the added character count doesn't force a wrap.
   ============================================================================ */

/* Hero: keep on one line; tighten tracking so 13 chars fit; slight downscale on narrow */
.hero .wordmark,
.hero h1.wordmark {
  white-space: nowrap;
  letter-spacing: 0.18em;
  font-size: clamp(2.1rem, 5.2vw, 4.2rem);
}
@media (max-width: 480px) {
  .hero .wordmark,
  .hero h1.wordmark {
    letter-spacing: 0.14em;
    font-size: clamp(1.7rem, 8.5vw, 2.4rem);
  }
}

/* Nav: single-line brand */
.nav-brand .name {
  white-space: nowrap;
  letter-spacing: 0.22em;
}

/* OZ 2.0 Tract 430 card — stack on narrow screens */
@media (max-width: 900px) { #oz-tract-430 { grid-template-columns: 1fr !important; padding: 28px 22px !important; gap: 24px !important; } }

/* ===== Indiana Dunes Club reskin (2026-09-29) ===== */
:root { --font-wordmark: "Bree Serif", "Playfair Display", Georgia, serif; }
.nav-brand img.idc-lockup { width: auto; height: 54px; display: block; }
.wordmark.idc-wordmark { font-family: "Bree Serif", Georgia, serif; font-weight: 400; letter-spacing: 0.14em; }
.hero .badge.idc-badge { width: 150px; margin-bottom: 22px; }
.idc-tagline { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: #E2C68F; margin-top: 12px; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.footer-brand img.idc-footer-lockup { width: 210px; height: auto; }
.footer-brand img.idc-footer-lockup { background: #F5F0E8; padding: 12px; box-sizing: content-box; }
@media (max-width: 720px) {
  .nav-brand img.idc-lockup { height: 38px; }
  .hero .badge.idc-badge { width: 112px; }
}
@media (max-width: 720px) {
  .hero .wordmark.idc-wordmark { font-size: clamp(1.7rem, 8.4vw, 2.6rem); letter-spacing: 0.08em; }
}
.hero .subtitle { color: #EBD6AC; text-shadow: 0 1px 10px rgba(0,0,0,.7), 0 0 2px rgba(0,0,0,.5); }
.hero .lede { text-shadow: 0 1px 10px rgba(0,0,0,.65); }
.hero:not(.hero-split) .hero-bg::after { background: linear-gradient(rgba(26,43,56,.55) 0%, rgba(26,43,56,.42) 45%, rgba(26,43,56,.88) 100%); }
.hero .subtitle { font-weight: 500; }
.hero .idc-tagline { font-size: 17px; letter-spacing: 0.28em; margin-top: 6px; }
@media (max-width: 720px) { .hero .idc-tagline { font-size: 13px; letter-spacing: 0.2em; } }
.nowrap { white-space: nowrap; }
/* Daylight hero: retain natural colors and allow the full mobile header to fit. */
.hero:not(.hero-split) .hero-bg { filter: brightness(.9) saturate(1); }
/* Let the full content stack fit on tablets and short landscape screens.
   A fixed-height, vertically centered hero can clip the seal at its top edge. */
@media (min-width: 721px) {
  .hero:not(.hero-split) {
    height: auto;
    min-height: max(560px, min(92vh, 820px));
    align-items: flex-start;
  }
  .hero:not(.hero-split) .hero-inner {
    width: 100%;
    flex-shrink: 0;
    padding-top: 64px;
    padding-bottom: 48px;
  }
}
@media (max-width: 720px) {
  .hero:not(.hero-split) { height: auto; min-height: 0; }
  .hero-inner { width: 100%; padding: 32px 18px 40px; }
  .hero .wordmark.idc-wordmark { font-size: clamp(1.45rem, 7.3vw, 2.6rem); }
}
