
  :root {
    --sun: #F4A100;
    --ocean: #006994;
    --deep: #004466;
    --sand: #FDF6E3;
    --text: #1a1a2e;
    --muted: #667;
    --green: #2ecc71;
    --red: #e74c3c;
    --card: #fff;
    --border: #e8e8e8;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f5f7fa; color: var(--text); line-height: 1.65; font-size: 16px; -webkit-text-size-adjust: 100%; }
  /* Tables scroll horizontally inside their wrapper on small screens */
  .compare { display: table; width: 100%; }
  table.compare { min-width: 520px; }

  /* HERO */
  .hero { background: linear-gradient(135deg, var(--deep) 0%, var(--ocean) 60%, #0099cc 100%); color: white; padding: 60px 24px 80px; text-align: center; position: relative; overflow: hidden; }
  .hero::after { content: var(--hero-emoji, "🌴"); font-size: 180px; position: absolute; right: -20px; bottom: -30px; opacity: 0.12; }
  .hero h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
  .hero p { font-size: 18px; opacity: 0.85; max-width: 600px; margin: 0 auto 24px; }
  .hero .badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
  .badge { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3); border-radius: 20px; padding: 6px 16px; font-size: 14px; }

  /* NAV */
  nav { background: var(--deep); position: sticky; top: 0; z-index: 100; }
  nav ul { display: flex; list-style: none; max-width: 1100px; margin: 0 auto; padding: 0 24px; overflow-x: auto; gap: 0; }
  nav ul li a { display: block; padding: 14px 18px; color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .2s; }
  nav ul li a:hover { color: white; }

  /* MAIN LAYOUT */
  .container { max-width: 1100px; margin: 0 auto; padding: 0 24px 80px; }

  /* SECTIONS */
  section { margin-top: 60px; scroll-margin-top: 56px; }
  .section-title { font-size: 26px; font-weight: 800; color: var(--deep); border-left: 4px solid var(--sun); padding-left: 14px; margin-bottom: 24px; }

  /* CARDS */
  .card { background: var(--card); border-radius: 12px; border: 1px solid var(--border); padding: 24px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
  .card h3 { font-size: 17px; color: var(--deep); margin-bottom: 10px; }
  .card p, .card li { font-size: 15px; color: #444; }
  .card ul { padding-left: 18px; }
  .card ul li { margin-bottom: 5px; }

  /* GRID */
  .grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
  .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

  /* STAT CARDS */
  .stat { background: var(--card); border-radius: 12px; border: 1px solid var(--border); padding: 20px 24px; text-align: center; }
  .stat .num { font-size: 36px; font-weight: 800; color: var(--ocean); }
  .stat .label { font-size: 14px; color: var(--muted); margin-top: 4px; }
  .stat.green .num { color: var(--green); }
  .stat.sun .num { color: var(--sun); }

  /* TIMELINE */
  .timeline { position: relative; padding-left: 32px; }
  .timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--border); }
  .tl-item { position: relative; margin-bottom: 36px; }
  .tl-item::before { content: ''; position: absolute; left: -26px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); border: 2px solid white; box-shadow: 0 0 0 2px var(--sun); }
  .tl-month { font-weight: 700; font-size: 13px; color: var(--ocean); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
  .tl-card { background: var(--card); border-radius: 10px; border: 1px solid var(--border); padding: 18px 20px; }
  .tl-card h3 { font-size: 16px; font-weight: 700; color: var(--deep); margin-bottom: 12px; }
  .checklist { list-style: none; padding: 0; }
  .checklist li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; border-bottom: 1px solid #f5f5f5; font-size: 14px; color: #444; }
  .checklist li:last-child { border-bottom: none; }
  .checklist li::before { content: '☐'; font-size: 16px; color: var(--ocean); flex-shrink: 0; margin-top: 1px; }
  .checklist li a { color: var(--ocean); text-decoration: none; font-size: 12px; display: block; opacity: 0.8; margin-top: 2px; }
  .checklist li a:hover { opacity: 1; text-decoration: underline; }
  .tl-item.highlight .tl-item::before { background: var(--green); }
  .tl-note { background: #fff8e7; border: 1px solid #ffe08a; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #7a5c00; margin-top: 10px; }
  .tl-warning { background: #fff0f0; border: 1px solid #ffb3b3; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #900; margin-top: 10px; }
  .tl-success { background: #f0fff4; border: 1px solid #a3e6b3; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #1a6b36; margin-top: 10px; }

  /* COMPARISON TABLE */
  .compare { width: 100%; border-collapse: collapse; font-size: 15px; }
  .compare th { background: var(--deep); color: white; padding: 12px 16px; text-align: left; }
  .compare td { padding: 10px 16px; border-bottom: 1px solid var(--border); }
  .compare tr:nth-child(even) td { background: #f8faff; }
  .compare .better { color: var(--green); font-weight: 600; }
  .compare .worse { color: var(--red); }

  /* DAY COUNTER */
  .day-counter { background: linear-gradient(135deg, var(--deep), var(--ocean)); color: white; border-radius: 12px; padding: 28px; margin-bottom: 16px; }
  .day-counter h3 { opacity: 0.85; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
  .day-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .day-bar-item { }
  .day-bar-label { font-size: 13px; opacity: 0.8; margin-bottom: 6px; }
  .day-bar-track { background: rgba(255,255,255,0.15); border-radius: 6px; height: 12px; overflow: hidden; }
  .day-bar-fill { height: 100%; border-radius: 6px; transition: width 1s ease; }
  .day-bar-fill.safe { background: var(--green); }
  .day-bar-fill.warning { background: var(--sun); }
  .day-bar-fill.danger { background: var(--red); }
  .day-bar-num { font-size: 20px; font-weight: 700; margin-top: 6px; }
  .day-bar-sub { font-size: 12px; opacity: 0.7; }

  /* LINKS */
  .link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
  .link-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); transition: box-shadow .2s, transform .2s; }
  .link-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
  .link-icon { font-size: 28px; flex-shrink: 0; }
  .link-title { font-weight: 600; font-size: 14px; color: var(--deep); }
  .link-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

  /* WEATHER */
  .weather-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
  .weather-card { background: linear-gradient(135deg, #0099cc, #006994); color: white; border-radius: 10px; padding: 16px; text-align: center; }
  .weather-card .temp { font-size: 32px; font-weight: 800; }
  .weather-card .month { font-size: 12px; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
  .weather-card .desc { font-size: 12px; opacity: 0.85; margin-top: 4px; }

  /* BUDGET */
  .budget-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
  .budget-item:last-child { border-bottom: none; font-weight: 700; font-size: 16px; padding-top: 14px; }
  .budget-amount { color: var(--ocean); font-weight: 600; }

  /* FOOTER */
  footer { background: var(--deep); color: rgba(255,255,255,0.6); text-align: center; padding: 32px 24px; font-size: 14px; margin-top: 80px; }
  footer strong { color: white; }

  @media (max-width: 600px) {
    body { font-size: 15px; line-height: 1.55; }
    .hero { padding: 32px 16px 44px; }
    .hero::after { font-size: 120px; bottom: -10px; }
    .hero h1 { font-size: 24px; }
    .hero p { font-size: 15px; margin-bottom: 16px; }
    .badge { font-size: 12px; padding: 5px 11px; }
    nav ul { padding: 0 12px; }
    nav ul::-webkit-scrollbar { display: none; }
    nav ul { scrollbar-width: none; }
    nav ul li a { padding: 11px 13px; font-size: 13px; }
    .container { padding: 0 14px 56px; }
    section { margin-top: 38px; }
    .section-title { font-size: 21px; margin-bottom: 16px; }
    .card { padding: 16px; border-radius: 10px; }
    .card h3 { font-size: 16px; }
    .grid-2, .grid-3 { gap: 12px; }
    .day-bars { grid-template-columns: 1fr; }
    .stat { padding: 14px 16px; }
    .stat .num { font-size: 28px; }
    /* Tables: scroll inside wrapper, tighter cells, scroll hint */
    .compare { font-size: 12.5px; }
    .compare th, .compare td { padding: 8px 9px; }
    div[style*="overflow-x"] { -webkit-overflow-scrolling: touch; position: relative; }
    .budget-item { font-size: 14px; }
    .timeline { padding-left: 24px; }
    .weather-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .weather-card { padding: 10px; }
    .weather-card .temp { font-size: 24px; }
    footer { padding: 24px 16px; }
  }

  /* research facts */
  .fact { padding:12px 0; border-bottom:1px solid #f1f1f1; }
  .fact:last-child { border-bottom:none; }
  .fact p { font-size:15px; color:#333; margin:0 0 4px; }
  .fact .src { font-size:13px; }
  .fact .src a { color:var(--ocean); text-decoration:none; }
  .fact .src a:hover { text-decoration:underline; }
  .tag { display:inline-block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; padding:2px 8px; border-radius:10px; margin-right:8px; vertical-align:middle; }
  .tag.ok { background:#f0fff4; color:#1a6b36; border:1px solid #a3e6b3; }
  .tag.warn { background:#fff8e7; color:#7a5c00; border:1px solid #ffe08a; }
  .tag.check { background:#fff0f0; color:#900; border:1px solid #ffb3b3; }
  .intro { background:#fff8e7; border:1px solid #ffe08a; border-radius:10px; padding:14px 18px; font-size:14px; color:#7a5c00; margin-top:24px; }
  /* current-page / back nav highlight */
  nav ul li a.active, nav ul li a.home { color: var(--sun); font-weight:700; }
