/* WorldHourly — styles
   Palette: slate ink + indigo, with a dawn/dusk "sky" band as the signature element. */
/* Self-hosted fonts (OFL-1.1, see assets/fonts/LICENSE.txt). No requests to Google Fonts. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/bricolage-grotesque-latin-wght.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700; src: url(/assets/fonts/instrument-sans-latin-wght.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --ink: #0e1424;
  --ink-2: #121a2e;
  --surface: rgba(28, 38, 64, 0.58);
  --surface-solid: #182139;
  --surface-2: rgba(40, 52, 84, 0.55);
  --line: rgba(165, 175, 210, 0.14);
  --line-strong: rgba(165, 175, 210, 0.28);
  --text: #e6e9f4;
  --text-2: #a9b1c9;
  --text-3: #949db8;
  --indigo: #6e73f0;
  --indigo-2: #a5abff;
  --indigo-ink: #ffffff;
  --dawn: #f2b66b;
  --dusk: #e0708f;
  --night: #27306a;
  --best: #34c38f;
  --good: #e8c14f;
  --off: #e0606e;
  --gold: #f5c35b;
  --gold-2: #c98f22;
  --shadow: 0 18px 50px -24px rgba(3, 6, 20, 0.85);
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 9px;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 64px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --ink: #eef0f8;
  --ink-2: #e4e8f4;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --surface-2: rgba(235, 238, 250, 0.9);
  --line: rgba(40, 50, 90, 0.12);
  --line-strong: rgba(40, 50, 90, 0.24);
  --text: #141a2e;
  --text-2: #4a5373;
  --text-3: #5f6785;
  --indigo: #5257e0;
  --indigo-2: #4146c9;
  --night: #3a4390;
  --best: #1f9e6f;
  --good: #c79a12;
  --off: #cf4a59;
  --gold-2: #a8740f;
  --shadow: 0 18px 44px -26px rgba(40, 50, 100, 0.45);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(110, 115, 240, 0.22), transparent 60%),
    radial-gradient(700px 480px at 100% 10%, rgba(224, 112, 143, 0.10), transparent 60%),
    radial-gradient(800px 600px at 60% 110%, rgba(242, 182, 107, 0.07), transparent 60%);
}
:root[data-theme="light"] body::before {
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(110, 115, 240, 0.16), transparent 60%),
    radial-gradient(700px 480px at 100% 10%, rgba(224, 112, 143, 0.08), transparent 60%);
}

a { color: var(--indigo-2); }
:root[data-theme="light"] a { color: var(--indigo); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--indigo-2); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.ico { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }
.ico.sm { width: 15px; height: 15px; }
.ico.lg { width: 22px; height: 22px; }
[hidden] { display: none !important; }

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: 11px; border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--text);
  font-weight: 600; font-size: 14.5px; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--indigo-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: #5a5fe0; border-color: transparent; color: var(--indigo-ink); }
.btn.primary:hover { background: #4f54d4; }
.btn.ghost { background: transparent; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13.5px; border-radius: 9px; }
.btn.gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2b1d02; border-color: transparent; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid transparent; background: transparent; color: var(--text-2);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.danger:hover { color: var(--off); }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--text-2); font-weight: 500; }
.input, .select {
  height: 42px; width: 100%; padding: 0 12px;
  border-radius: 11px; border: 1px solid var(--line-strong);
  background: rgba(10, 15, 30, 0.35); color: var(--text);
}
:root[data-theme="light"] .input, :root[data-theme="light"] .select { background: #fff; }
.input:focus, .select:focus { outline: none; border-color: var(--indigo-2); box-shadow: 0 0 0 3px rgba(110, 115, 240, .25); }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a9b1c9' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.select option, .select optgroup { background: var(--surface-solid); color: var(--text); }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(.7); cursor: pointer; }
:root[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator, :root[data-theme="light"] input[type="time"]::-webkit-calendar-picker-indicator { filter: none; }

.seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 12px; background: rgba(10, 15, 30, .35); border: 1px solid var(--line); }
:root[data-theme="light"] .seg { background: var(--ink-2); }
.seg button { border: 0; background: transparent; color: var(--text-2); padding: 6px 13px; border-radius: 9px; font-weight: 600; font-size: 14px; }
.seg button[aria-selected="true"], .seg button.on { background: var(--surface-solid); color: var(--text); box-shadow: 0 1px 0 var(--line-strong); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: var(--shadow);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(14, 20, 36, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
:root[data-theme="light"] .site-header { background: rgba(238, 240, 248, 0.93); }
.header-inner { max-width: 1400px; margin: 0 auto; height: 100%; padding: 0 20px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: conic-gradient(from 200deg, var(--night), var(--indigo), var(--dawn), var(--dusk), var(--night)); }
.brand-mark span { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 3px var(--text); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand-name small { font-weight: 600; color: var(--indigo-2); margin-left: 0; }
.header-clocks { display: flex; gap: 14px; font-size: 13px; color: var(--text-2); flex: none; }
.header-clocks div { display: grid; line-height: 1.2; }
.header-clocks b { color: var(--text); font-size: 15px; font-weight: 600; }
.header-search { position: relative; flex: 1; max-width: 440px; margin-left: auto; }
.header-search .input { padding-left: 38px; height: 40px; }
.header-search > .ico { position: absolute; left: 12px; top: 11px; color: var(--text-3); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.pro-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2b1d02; font-weight: 800; font-size: 13px; letter-spacing: .04em; border: 0;
  box-shadow: 0 0 0 1px rgba(245, 195, 91, .4), 0 6px 18px -6px rgba(245, 195, 91, .55);
}
.menu-btn { display: none; }
.mobile-nav { display: none; }
.section-nav { max-width: 1400px; margin: 0 auto; padding: 10px 20px 0; display: flex; gap: 4px; flex-wrap: wrap; }
.section-nav a { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 11px; border-radius: 9px; }
.section-nav a:hover { color: var(--text); background: var(--surface-2); }

.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: var(--shadow); padding: 6px; max-height: 380px; overflow: auto;
}
.sr-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.sr-item[aria-selected="true"], .sr-item:hover { background: var(--surface-2); }
.sr-item .sr-main { flex: 1; min-width: 0; }
.sr-item .sr-main b { display: block; font-weight: 600; font-size: 14.5px; }
.sr-item .sr-main small { color: var(--text-3); font-size: 12.5px; }
.sr-item .sr-time { font-weight: 600; font-size: 14px; color: var(--text-2); }
.sr-empty { padding: 14px; color: var(--text-3); font-size: 14px; }

/* ---------- Layout ---------- */
.layout { max-width: 1400px; margin: 0 auto; padding: 18px 20px 60px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.content { min-width: 0; display: grid; gap: 28px; }
.content > * { min-width: 0; }
.sidebar { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 16px; }

.intro { padding: 18px 2px 0; }
.intro h1 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 10px; max-width: 20ch; }
.intro p { margin: 0; color: var(--text-2); max-width: 62ch; font-size: 17px; }

.tool { padding: 22px; }
.tool-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.tool-head h2 { font-family: var(--display); font-size: 25px; font-weight: 700; letter-spacing: -0.02em; margin: 0; display: flex; align-items: center; gap: 10px; }
.tool-head h2 .ico { color: var(--indigo-2); }
.tool-head p { margin: 4px 0 0; color: var(--text-2); font-size: 15px; max-width: 60ch; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Section A: zone cards with sky band ---------- */
.ref-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; font-size: 14px; color: var(--text-2); }
.live-pill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 999px; font-weight: 600; font-size: 13px; background: rgba(52, 195, 143, .14); color: var(--best); }
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.8s infinite; }
.live-pill.paused { background: rgba(242, 182, 107, .14); color: var(--dawn); }
.live-pill.paused::before { animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.ref-bar .input { width: auto; height: 34px; font-size: 14px; }

.zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.zcard {
  position: relative; padding: 14px 14px 12px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; gap: 8px; touch-action: pan-y;
  transition: box-shadow .15s, opacity .15s;
}
.zcard.dragging { opacity: .55; box-shadow: 0 0 0 2px var(--indigo-2); }
.zcard.is-home { border-color: rgba(110, 115, 240, .45); }
.zc-top { display: flex; align-items: flex-start; gap: 4px; }
.zc-title { flex: 1; min-width: 0; }
.zc-title h3 { margin: 0; font-size: 16.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zc-title small { display: block; color: var(--text-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drag-handle { cursor: grab; touch-action: none; margin-left: -6px; color: var(--text-3); }
.drag-handle:active { cursor: grabbing; }
.zc-actions { display: flex; gap: 0; margin-right: -6px; }
.zc-actions .icon-btn { width: 30px; height: 30px; }
.fmt-btn { font-size: 11.5px; font-weight: 700; color: var(--text-2); width: auto !important; padding: 0 7px; }
.zc-time { display: flex; align-items: baseline; gap: 4px; font-family: var(--display); }
.zc-time .t { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.zc-time .s { font-size: 17px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.zc-time .ap { font-size: 16px; font-weight: 600; color: var(--text-2); margin-left: 2px; }
.zc-meta { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.zc-meta .day-flag { color: var(--dawn); font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(165, 171, 255, .14); color: var(--indigo-2); }
.chip.dst { background: rgba(242, 182, 107, .16); color: var(--dawn); cursor: help; }
:root[data-theme="light"] .chip.dst { color: #9a5f12; }

/* The sky band: a 24h day/night gradient that doubles as the time slider. */
.sky { position: relative; margin-top: 4px; }
.sky input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 0; border-radius: 8px; cursor: pointer;
  background: linear-gradient(90deg,
    var(--night) 0%, var(--night) 20%, #6d5aa8 24%, var(--dusk) 27%, var(--dawn) 31%,
    #9fc6ee 38%, #b8d9f5 50%, #9fc6ee 64%, var(--dawn) 72%, var(--dusk) 77%, #6d5aa8 81%, var(--night) 86%, var(--night) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.sky input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 6px; height: 34px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 2px 8px rgba(0, 0, 0, .5); }
.sky input[type="range"]::-moz-range-thumb { width: 6px; height: 34px; border-radius: 4px; background: #fff; border: 0; box-shadow: 0 0 0 2px var(--ink), 0 2px 8px rgba(0, 0, 0, .5); }
.sky input[type="range"]:focus-visible { outline: 2px solid var(--indigo-2); outline-offset: 3px; }
.sky-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-top: 3px; padding: 0 1px; }
.zc-pick { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.zc-pick input { height: 30px; font-size: 13.5px; width: 118px; padding: 0 8px; }

.add-tile {
  min-height: 210px; border-radius: 16px; border: 1.5px dashed var(--line-strong); background: transparent;
  color: var(--text-2); display: grid; place-content: center; justify-items: center; gap: 8px; font-weight: 600;
}
.add-tile:hover { border-color: var(--indigo-2); color: var(--text); }
.add-tile .ico { width: 26px; height: 26px; }

.skeleton { border-radius: 16px; min-height: 210px; background: linear-gradient(90deg, var(--surface-2) 0%, rgba(120, 130, 170, .18) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
.skeleton.line { min-height: 16px; border-radius: 8px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Section B: calculators ---------- */
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.calc-grid .span-2 { grid-column: span 2; }
.calc-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.result {
  margin-top: 18px; padding: 18px; border-radius: 16px; background: rgba(110, 115, 240, .08); border: 1px solid rgba(110, 115, 240, .3);
}
.result-big { font-family: var(--display); font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.result-sub { color: var(--text-2); margin-top: 4px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 14px; }
.kv div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.kv dt { font-size: 12.5px; color: var(--text-3); }
.kv dd { margin: 2px 0 0; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; background: rgba(242, 182, 107, .1); border: 1px solid rgba(242, 182, 107, .3); color: var(--text); }
.notice .ico { color: var(--dawn); margin-top: 2px; }
.notice.info { background: rgba(165, 171, 255, .08); border-color: rgba(165, 171, 255, .25); }
.notice.info .ico { color: var(--indigo-2); }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--indigo), var(--indigo-2)); }

/* ---------- Section C: meeting planner ---------- */
.participants { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.pchip small { color: var(--text-3); font-weight: 500; }
.pchip button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: transparent; color: var(--text-3); display: grid; place-items: center; }
.pchip button:hover { color: var(--off); background: rgba(224, 96, 110, .12); }
.pchip.base { border-color: rgba(110, 115, 240, .5); }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.c-work-bg { background: var(--best); } .c-good-bg { background: var(--good); } .c-off-bg { background: var(--off); }

.tl-scroll { overflow-x: auto; margin: 14px -4px 0; padding: 0 4px 6px; }
.tl { --name-w: 168px; min-width: calc(var(--name-w) + 24 * 36px); display: grid; gap: 4px; }
.tl-row { display: grid; grid-template-columns: var(--name-w) repeat(24, minmax(32px, 1fr)); gap: 3px; align-items: stretch; }
.tl-name { position: sticky; left: 0; z-index: 2; background: var(--surface-solid); border-radius: 10px; padding: 6px 10px; display: grid; align-content: center; line-height: 1.25; border: 1px solid var(--line); }
.tl-name b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-name small { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.tl-head .tl-cell { background: transparent; color: var(--text-3); font-size: 11px; height: 26px; cursor: pointer; }
.tl-cell {
  position: relative; border: 0; border-radius: 7px; height: 42px; padding: 0; font-size: 12px; font-weight: 600; line-height: 1;
  display: grid; place-items: center; font-variant-numeric: tabular-nums; color: #0d1322;
  transition: transform .08s, box-shadow .12s, opacity .12s;
}
.tl-cell sup { position: absolute; top: 3px; right: 3px; font-size: 9px; font-weight: 700; color: inherit; }
.tl-cell.c-work { background: var(--best); }
.tl-cell.c-good { background: var(--good); }
.tl-cell.c-off { background: color-mix(in srgb, var(--off) 70%, var(--ink)); color: #fff2f3; }
.tl-cell.c-off.night { background: color-mix(in srgb, var(--off) 42%, var(--ink)); color: rgba(255, 240, 242, .75); }
.tl-cell.hover { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.tl-cell.sel { box-shadow: 0 0 0 2.5px var(--indigo-2), 0 0 0 5px rgba(110, 115, 240, .3); z-index: 1; }
.tl-cell.now::after { content: ""; position: absolute; left: -2px; top: -4px; bottom: -4px; width: 2px; background: var(--text); border-radius: 2px; }
.tl-sum .tl-cell { height: 18px; }
.tl-sum .tl-name { padding: 2px 10px; }
.tl-head .tl-name { background: transparent; border-color: transparent; color: var(--text-3); font-size: 12px; }

.slot-detail { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.slot-card { padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.slot-card h3 { margin: 0 0 4px; font-size: 17px; }
.slot-card .muted { color: var(--text-2); font-size: 14px; }
.slot-rows { display: grid; gap: 6px; margin-top: 12px; }
.slot-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14.5px; padding: 7px 10px; border-radius: 10px; background: rgba(10, 15, 30, .22); }
:root[data-theme="light"] .slot-row { background: var(--ink-2); }
.slot-row .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.slot-row .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.slot-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.slot-summary { font-size: 14px; color: var(--text-2); margin-top: 10px; }

.locked { position: relative; overflow: hidden; }
.locked .lock-body { filter: blur(5px); opacity: .55; pointer-events: none; user-select: none; }
.lock-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 16px; background: linear-gradient(180deg, rgba(14, 20, 36, .15), rgba(14, 20, 36, .55)); }
:root[data-theme="light"] .lock-overlay { background: linear-gradient(180deg, rgba(238, 240, 248, .2), rgba(238, 240, 248, .7)); }
.lock-overlay .ico { color: var(--gold); width: 26px; height: 26px; }
.lock-overlay p { margin: 0; font-weight: 600; max-width: 28ch; }

.directory { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.directory h3 { margin: 0 0 4px; font-size: 18px; }
.dir-controls { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 12px; }
.dir-controls .input { flex: 1; min-width: 200px; }
.dir-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; max-height: 420px; overflow: auto; padding-right: 4px; }
.dir-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); }
.dir-item .m { flex: 1; min-width: 0; }
.dir-item b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-item small { color: var(--text-3); font-size: 12px; }
.dir-item .t { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.dir-foot { font-size: 13px; color: var(--text-3); margin-top: 8px; }

/* ---------- Section D: AI assistant ---------- */
.ai-box { display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: rgba(10, 15, 30, .35); border: 1px solid var(--line-strong); }
:root[data-theme="light"] .ai-box { background: #fff; }
.ai-box:focus-within { border-color: var(--indigo-2); box-shadow: 0 0 0 3px rgba(110, 115, 240, .22); }
.ai-box textarea { flex: 1; resize: none; border: 0; background: transparent; padding: 10px 10px; min-height: 48px; max-height: 160px; outline: none; font-size: 16px; line-height: 1.45; }
.ai-box .btn { align-self: flex-end; height: 44px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ai-chip { border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; text-align: left; }
.ai-chip:hover { color: var(--text); border-color: var(--indigo-2); }
.ai-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--text-3); }
.ai-meta b { color: var(--text-2); }
.ai-out { margin-top: 16px; display: grid; gap: 12px; }
.ai-card { padding: 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ai-card .q { font-size: 13.5px; color: var(--text-3); margin-bottom: 6px; }
.ai-card h3 { margin: 0; font-size: 19px; line-height: 1.3; font-family: var(--display); letter-spacing: -0.01em; }
.ai-card .interp { font-size: 13.5px; color: var(--text-2); margin-top: 4px; }
.ai-rows { display: grid; gap: 6px; margin-top: 14px; }
.ai-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rank { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 800; background: var(--indigo); color: #fff; flex: none; }

/* ---------- Ads ---------- */
.ad-slot { display: none; place-items: center; }
.ad-slot.is-filled { display: grid; }
.ad-slot.leaderboard { min-height: 90px; }
.ad-slot.sidebar-ad { min-height: 250px; }
.ad-ph {
  width: 100%; height: 100%; min-height: inherit; border-radius: 14px; border: 1px dashed var(--line-strong);
  display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; color: var(--text-3); font-size: 12.5px; padding: 12px;
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(165, 175, 210, .035) 12px 24px);
}
.ad-ph .ad-label { font-weight: 600; color: var(--text-2); }
.ad-ph button { border: 0; background: none; color: var(--gold); font-weight: 600; font-size: 12.5px; padding: 2px; }
.ad-slot.leaderboard .ad-ph { max-width: 728px; min-height: 90px; }
.ad-slot.sidebar-ad .ad-ph { width: 300px; min-height: 600px; }
.ad-slot ins.adsbygoogle { width: 100%; }
body.is-pro .ad-slot { display: none; }

.pro-card { padding: 18px; }
.pro-card h3 { margin: 0 0 6px; font-family: var(--display); font-size: 19px; }
.pro-card ul { margin: 10px 0 14px; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14px; color: var(--text-2); }
.pro-card li { display: flex; gap: 8px; }
.pro-card li .ico { color: var(--best); width: 16px; height: 16px; margin-top: 3px; }

/* ---------- Modals ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(5, 8, 18, .62); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); padding: 24px; animation: rise .2s ease-out; }
.modal.wide { width: min(720px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.modal-head h2 { margin: 0; font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }
.modal p.lead { color: var(--text-2); margin: 0 0 16px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan { position: relative; text-align: left; border: 1.5px solid var(--line-strong); background: var(--surface-2); border-radius: 16px; padding: 16px; display: grid; gap: 2px; }
.plan[aria-checked="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 195, 91, .18); }
.plan .pname { font-weight: 600; color: var(--text-2); font-size: 14px; }
.plan .price { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.plan .price small { font-size: 15px; color: var(--text-3); font-weight: 600; }
.plan .save { position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 700; color: #2b1d02; background: var(--gold); padding: 2px 8px; border-radius: 999px; }
.plan .per { font-size: 13px; color: var(--text-3); }
.feature-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 9px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; }
.feature-list li .ico { color: var(--best); margin-top: 2px; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--text-3); margin-top: 12px; }
.picker-list { display: grid; gap: 4px; max-height: 50vh; overflow: auto; margin-top: 10px; }
.picker-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; border-radius: 11px; padding: 9px 10px; }
.picker-item:hover, .picker-item:focus-visible { background: var(--surface-2); }
.picker-item .m { flex: 1; min-width: 0; }
.picker-item b { display: block; font-size: 15px; }
.picker-item small { color: var(--text-3); font-size: 12.5px; }
.picker-item .t { font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.region-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.region-chips button { border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; }
.region-chips button.on { background: var(--indigo); color: #fff; border-color: transparent; }
.legal h3 { margin: 18px 0 6px; font-size: 16px; }
.legal p { margin: 0 0 10px; color: var(--text-2); font-size: 14.5px; }

/* ---------- Toasts & tooltip ---------- */
.toasts { position: fixed; z-index: 200; right: 16px; bottom: 16px; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: 14.5px; animation: rise .2s ease-out; }
.toast .ico { margin-top: 1px; }
.toast.success .ico { color: var(--best); }
.toast.error .ico { color: var(--off); }
.toast.info .ico { color: var(--indigo-2); }
.toast.out { opacity: 0; transform: translateY(6px); transition: .2s; }
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; z-index: 30; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 260px; white-space: normal; text-align: left;
  background: #070b17; color: #e6e9f4; font-size: 12.5px; font-weight: 500; line-height: 1.4; padding: 8px 10px; border-radius: 9px; box-shadow: var(--shadow);
  pointer-events: none;
}

footer.site-footer { border-top: 1px solid var(--line); padding: 24px 20px 40px; text-align: center; color: var(--text-3); font-size: 14px; }
footer.site-footer nav { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
footer.site-footer button { background: none; border: 0; color: var(--text-2); padding: 0; }
footer.site-footer button:hover { color: var(--text); text-decoration: underline; }
footer.site-footer a { color: var(--text-2); text-decoration: none; }
footer.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Info pages (about, privacy, terms, refunds, contact) ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 40px 20px 56px; }
.page h1 { font-family: var(--display); font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.02em; margin: 0 0 6px; }
.page .updated { color: var(--text-3); font-size: 14px; margin: 0 0 28px; }
.page h2 { font-family: var(--display); font-size: 21px; margin: 32px 0 8px; }
.page p, .page li { color: var(--text-2); font-size: 16px; line-height: 1.65; }
.page ul { padding-left: 22px; }
.page a { color: var(--indigo-2); }
.page .back { display: inline-flex; gap: 6px; margin-bottom: 18px; font-size: 14.5px; text-decoration: none; }
.page .contact-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 18px 0; background: var(--surface); }
.page .contact-card b { color: var(--text); font-size: 19px; }

.fatal { max-width: 640px; margin: 80px auto; padding: 24px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: 1fr; }
  .sidebar .ad-slot { display: none; }
  .header-clocks .utc-clock { display: none; }
}
@media (max-width: 900px) {
  .header-search, .header-clocks, .header-actions .desk { display: none; }
  .menu-btn { display: inline-grid; margin-left: auto; }
  .mobile-nav { display: block; position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49; background: var(--surface-solid); border-bottom: 1px solid var(--line-strong); box-shadow: var(--shadow); padding: 14px 16px 18px; }
  .mobile-nav[hidden] { display: none !important; }
  .mobile-nav .m-clocks { display: flex; gap: 18px; font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
  .mobile-nav .m-clocks b { display: block; color: var(--text); font-size: 15px; }
  .mobile-nav .header-search { display: block; max-width: none; margin: 0 0 12px; }
  .mobile-nav nav { display: grid; gap: 2px; margin-bottom: 12px; }
  .mobile-nav nav a { padding: 10px 8px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
  .mobile-nav nav a:hover { background: var(--surface-2); }
  .mobile-nav .m-actions { display: flex; gap: 8px; }
  .section-nav { display: none; }
  .slot-detail { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .layout { padding: 12px 12px 40px; gap: 20px; }
  .content { gap: 20px; }
  .tool { padding: 16px; }
  .tool-head h2 { font-size: 21px; }
  .zone-grid { grid-template-columns: 1fr; }
  .calc-grid .span-2 { grid-column: auto; }
  .plans { grid-template-columns: 1fr; }
  .tl { --name-w: 112px; }
  .modal { padding: 18px; }
  .ad-slot.leaderboard .ad-ph { min-height: 100px; }
}

.fine-print { margin: 10px 0 0; font-size: 12.5px; color: var(--text-3); text-align: center; }
.fine-print a { color: var(--text-2); }
.linkish { background: none; border: 0; padding: 0; color: var(--indigo-2); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- City, pair, zone and clock-change pages ---------- */
.page.wide { max-width: 980px; }
.page-nav { display: flex; gap: 18px; margin-left: auto; font-size: 14.5px; }
.page-nav a { color: var(--text-2); text-decoration: none; white-space: nowrap; }
.page-nav a:hover { color: var(--text); }
.crumbs { font-size: 13.5px; color: var(--text-3); margin-bottom: 14px; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.hero-clock { padding: 22px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); margin: 18px 0; }
.hero-clock .big { font-family: var(--display); font-size: clamp(44px, 10vw, 76px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; color: var(--text); }
.hero-clock .sub { color: var(--text-2); font-size: 17px; margin-top: 6px; }
.hero-clock .who { font-size: 15px; margin-bottom: 4px; }
.hero-clock .who a { color: var(--text); font-weight: 600; text-decoration: none; }
.hero-clock .you { margin: 10px 0 0; color: var(--dawn); font-size: 15px; min-height: 1.4em; }
.pair-clocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.pair-clocks .hero-clock { margin: 0; }
.pair-clocks .big { font-size: clamp(36px, 8vw, 54px); }
.page .lede { font-size: 18px; color: var(--text-2); margin: 18px 0; }
.facts { margin: 0 0 10px; }
.facts dd { margin: 4px 0 0; font-size: 16px; color: var(--text); }
.facts .wide { grid-column: 1 / -1; }
.page section { margin-top: 30px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.conv { width: 100%; border-collapse: collapse; font-size: 15px; }
table.conv th, table.conv td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.conv th { color: var(--text-3); font-weight: 600; font-size: 13px; background: var(--surface-2); }
table.conv tr:last-child td { border-bottom: 0; }
table.conv tr.both td { background: color-mix(in srgb, var(--best) 12%, transparent); }
table.conv small { color: var(--dawn); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.pill.work { background: color-mix(in srgb, var(--best) 20%, transparent); color: var(--text); }
.pill.good { background: color-mix(in srgb, var(--good) 20%, transparent); color: var(--text); }
.pill.off { background: color-mix(in srgb, var(--off) 18%, transparent); color: var(--text); }
.changes { padding-left: 20px; }
.changes li { margin: 6px 0; }
ol.best { list-style: none; padding: 0; }
ol.best li { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; margin: 8px 0; background: var(--surface-2); color: var(--text); }
ol.best .rank { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--best); color: #08130e; font-size: 12px; font-weight: 700; margin-right: 6px; }
.links { line-height: 2; }
.links-row { display: flex; flex-wrap: wrap; gap: 10px; }
.links-row .btn { text-decoration: none; }
.cta-card { padding: 20px 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.cta-card h2 { margin-top: 0; }
.cta-card .btn { text-decoration: none; display: inline-flex; }
.source-note { font-size: 13.5px !important; color: var(--text-3) !important; margin-top: 22px; }
.city-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.city-grid li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.city-grid a { text-decoration: none; display: grid; color: var(--text); }
.city-grid a small { color: var(--text-3); font-size: 12.5px; }
.city-grid .tnum { color: var(--text-2); font-size: 14.5px; }
.pair-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pair-links a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.dst-list { list-style: none; padding: 0; }
.dst-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.dst-list h2 { margin: 0 0 4px; font-size: 17px; }
.dst-list .links { margin: 0; }
@media (max-width: 640px) { .page-nav { gap: 12px; font-size: 13.5px; } .page-nav a:first-child, .page-nav a[href="/dst"] { display: none; } }
.explore p { margin: 8px 0; color: var(--text-2); line-height: 1.9; }
.explore a { color: var(--indigo-2); }
.explore h2 { margin: 0 0 6px; font-size: 18px; }
.page p a, .page li a, .page td a, .page dd a { text-decoration: underline; text-underline-offset: 2px; }
.city-grid a, .pair-links a { text-decoration: none !important; }
.crumbs a, footer.site-footer div a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Widget builder + guide ---------- */
.wb { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 22px; margin-top: 18px; }
.wb-form { display: grid; gap: 14px; align-content: start; }
.wb-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0; display: grid; gap: 6px; }
.wb-form legend { color: var(--text-3); font-size: 13px; padding: 0 4px; }
.wb-form .field { display: grid; gap: 6px; color: var(--text-2); font-size: 14px; }
.wb-out { display: grid; gap: 10px; align-content: start; min-width: 0; }
.wb-preview { padding: 18px; border-radius: var(--radius-lg); border: 1px dashed var(--line); background: var(--surface-2); overflow-x: auto; }
.wb-code { width: 100%; font: 12.5px/1.5 ui-monospace, Menlo, Consolas, monospace; resize: vertical; height: auto; padding: 10px; }
.wb-out .btn { justify-self: start; }
.disclosure { font-size: 14px !important; color: var(--text-3) !important; border-left: 3px solid var(--line); padding-left: 10px; }
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pick { padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
.pick .role { margin: 0; font-size: 12.5px !important; color: var(--dawn) !important; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.pick h3 { margin: 4px 0 8px; font-size: 17px; }
.pick ul { padding-left: 18px; margin: 0 0 10px; }
.pick li { font-size: 14.5px !important; }
.pick-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; font-size: 14px !important; }
@media (max-width: 720px) { .wb { grid-template-columns: 1fr; } }
.page .kicker { margin: 0 0 4px; color: var(--dawn); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }

/* ===== WH-06: server-rendered ad slots =====
   Fixed-size units reserve their space before the ad loads (no layout shift).
   Unfilled units collapse via AdSense's data-ad-status attribute. Pro hides every slot before first paint. */
.ad-slot.is-ssr { display: grid; place-items: center; margin: 20px 0; min-height: 0; }
.wh-ad-lb { display: inline-block; width: 320px; height: 100px; }
.wh-ad-mr { display: inline-block; width: 300px; height: 250px; }
@media (min-width: 800px) { .wh-ad-lb { width: 728px; height: 90px; } }
.ad-slot.is-ssr:has(ins[data-ad-status="unfilled"]) { display: none; }
.is-pro .ad-slot { display: none !important; }

/* ===== WH-06 homepage: fixed-size units; space reserved before paint on repeat visits (html.ads-on) ===== */
.ad-slot.is-live { display: grid; place-items: center; }
.wh-ad-sky { display: inline-block; width: 300px; height: 600px; }
.ads-on .ad-slot[data-ad="leaderboard"] { display: grid; place-items: center; min-height: 100px; }
@media (min-width: 800px) { .ads-on .ad-slot[data-ad="leaderboard"] { min-height: 90px; } }
@media (min-width: 1181px) { .ads-on .ad-slot[data-ad="sidebar"] { display: grid; place-items: center; min-height: 600px; } }
.ad-slot.ad-off { display: none !important; }

/* ===== WH-10: city story, locator map, nearby cities ===== */
.story { font-size: 16.5px; line-height: 1.6; color: var(--text-2); margin: 10px 0 0; max-width: 70ch; }
.locator { margin: 18px 0 6px; }
.locator svg { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.lm-band { fill: rgba(165, 171, 255, .14); }
.lm-night { fill: rgba(5, 8, 20, .42); }
.lm-halo { fill: rgba(255, 196, 92, .28); }
.lm-dot { fill: #ffc45c; stroke: #0e1424; stroke-width: 2; }
.locator figcaption { font-size: 13px; color: var(--text-3); margin-top: 8px; line-height: 1.5; }
.nearby { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.nearby li { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.nearby li span { font-variant-numeric: tabular-nums; }
.nearby small { color: var(--text-3); }

/* WH-10 polish: story matches the lede width; map capped on wide screens */
.story { max-width: none; }
.locator { max-width: 760px; }

/* WH-10 grid: space between the story and the facts grid */
.story + .facts { margin-top: 18px; }

/* WH-10 nearby: align the card grid with its heading */
.page .nearby { padding: 0; margin: 12px 0 0; }

/* WH-10 table: on phones all four columns fit; the Convert link shows as a compact icon (full label kept for screen readers) */
@media (max-width: 520px) {
  table.conv { font-size: 13.5px; }
  table.conv th, table.conv td { padding: 8px 6px; }
  table.conv td:last-child a { font-size: 0; text-decoration: none; }
  table.conv td:last-child a::after { content: "\21C4"; font-size: 17px; }
}

/* WH-11: jet-lag tips list */
.tips { margin: 10px 0 0; padding-left: 20px; }
.tips li { margin: 4px 0; }

/* WH-11 phone table: each hour becomes two lines (times, then each city's status under its time) */
@media (max-width: 520px) {
  table.conv.hours thead tr, table.conv.hours tbody tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; }
  table.conv.hours thead th:nth-child(n+3) { display: none; }
  table.conv.hours th, table.conv.hours td { border: 0; padding: 6px; }
  table.conv.hours tbody tr { border-bottom: 1px solid var(--line); }
}

/* WH-14: every table fits phones (tighter cells, wrapping headers) */
@media (max-width: 520px) {
  .table-wrap table th, .table-wrap table td { padding: 8px 6px; }
  .table-wrap table th { white-space: normal; }
}
