:root {
  color-scheme: light;
  --ink: #17191a;
  --muted: #5d6466;
  --paper: #f5f6f3;
  --white: #ffffff;
  --line: #d8ddda;
  --rust: #b44932;
  --rust-dark: #84311f;
  --green: #246b52;
  --sky: #19739a;
  --night: #172632;
  --warning: #fff0d8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: inherit; }
button, input, select { font: inherit; letter-spacing: 0; }
button, select { cursor: pointer; }
img { max-width: 100%; display: block; }
.skip-link { position: fixed; z-index: 50; left: 12px; top: -50px; background: var(--white); padding: 10px 14px; }
.skip-link:focus { top: 12px; }
.shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.site-header { height: 64px; background: rgba(245,246,243,.96); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.nav { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand img { width: 24px; height: 24px; filter: invert(27%) sepia(63%) saturate(1374%) hue-rotate(333deg) brightness(92%); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.language-wrap { position: relative; }
.language-wrap img { position: absolute; left: 10px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); pointer-events: none; }
.language-select { min-height: 38px; max-width: 150px; padding: 0 28px 0 34px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); }
.hero { min-height: 390px; color: var(--white); background: linear-gradient(90deg, rgba(10,18,23,.89) 0%, rgba(10,18,23,.60) 49%, rgba(10,18,23,.14) 100%), url('/assets/lunar-eclipse.jpg') center 48% / cover no-repeat; display: flex; align-items: center; }
.hero-inner { padding-block: 52px; }
.hero-copy { max-width: 690px; }
.eyebrow { margin: 0 0 8px; color: #ffd0bd; font-size: .84rem; font-weight: 800; text-transform: uppercase; }
h1 { margin: 0; max-width: 760px; font-size: clamp(2rem, 5vw, 3.55rem); line-height: 1.07; letter-spacing: 0; }
.lead { max-width: 650px; margin: 18px 0 0; font-size: clamp(1rem, 2vw, 1.18rem); color: #eef3f4; }
.correction { margin: 18px 0 0; max-width: 680px; padding-left: 14px; border-left: 3px solid #e07453; color: #f6dfd5; font-size: .94rem; }
.tool-band { background: var(--white); border-bottom: 1px solid var(--line); }
.search-panel { padding-block: 28px 30px; }
.search-label { display: block; margin-bottom: 8px; font-weight: 750; }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; position: relative; }
.search-input { min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid #aeb7b3; border-radius: 6px; background: var(--white); }
.search-input:focus, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(25,115,154,.28); outline-offset: 2px; }
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid transparent; border-radius: 6px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.btn img { width: 18px; height: 18px; }
.btn-primary { background: var(--rust); color: var(--white); }
.btn-primary:hover { background: var(--rust-dark); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: #aeb7b3; }
.btn-secondary:hover { background: #edf0ee; }
.search-results { position: absolute; z-index: 30; top: 55px; left: 0; width: min(680px, 100%); margin: 0; padding: 6px; list-style: none; background: var(--white); border: 1px solid var(--line); box-shadow: 0 14px 35px rgba(20,28,30,.16); border-radius: 6px; }
.search-results:empty, .search-results[hidden] { display: none; }
.result-option { width: 100%; padding: 11px 12px; display: flex; justify-content: space-between; gap: 12px; border: 0; border-radius: 4px; background: transparent; text-align: left; }
.result-option:hover, .result-option:focus { background: #eef3f2; }
.result-option small { color: var(--muted); }
.status-note { min-height: 24px; margin: 9px 0 0; color: var(--muted); font-size: .88rem; }
main { overflow: hidden; }
.result-section { padding-block: 44px 54px; }
.result-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 22px; }
.result-heading h2, .section-heading { margin: 0; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.2; letter-spacing: 0; }
.result-heading p { margin: 7px 0 0; color: var(--muted); }
.status-pill { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 5px 11px; border-radius: 999px; color: var(--green); background: #e3f2eb; border: 1px solid #abd1c1; font-weight: 800; font-size: .86rem; }
.status-pill.partial { color: #805718; background: #fff0d8; border-color: #edc987; }
.status-pill.hidden { color: #7c2f26; background: #f8e5e2; border-color: #e5b4ad; }
.status-pill img { width: 16px; height: 16px; }
.city-intro { max-width: 820px; margin: 0 0 24px; color: var(--muted); }
.dashboard { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 20px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.panel-heading { margin: 0; padding: 18px 20px 14px; font-size: 1.03rem; border-bottom: 1px solid var(--line); }
.phase-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.phase-table th, .phase-table td { padding: 13px 14px; border-bottom: 1px solid #e6e9e7; vertical-align: middle; text-align: left; }
.phase-table th { color: var(--muted); font-size: .75rem; text-transform: uppercase; }
.phase-table tr:last-child td { border-bottom: 0; }
.phase-name { font-weight: 700; }
.phase-time { white-space: nowrap; }
.below { color: #9a3d31; }
.above { color: var(--green); }
.side-stack { display: grid; gap: 14px; }
.countdown { padding: 20px; color: var(--white); background: var(--night); border-radius: 8px; }
.countdown h3 { margin: 0 0 14px; font-size: .92rem; color: #d3e4ea; }
.timer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.timer-unit { min-width: 0; text-align: center; }
.timer-number { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.timer-label { font-size: .72rem; color: #aac1ca; }
.weather { padding: 20px; }
.weather h3 { margin: 0 0 13px; font-size: 1rem; }
.weather-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.weather-item { min-width: 0; padding: 10px 5px; text-align: center; background: #edf3f1; border-radius: 6px; }
.weather-value { display: block; font-weight: 800; font-size: 1.03rem; }
.weather-label { display: block; margin-top: 2px; color: var(--muted); font-size: .69rem; overflow-wrap: anywhere; }
.weather-note { margin: 12px 0 0; color: var(--muted); font-size: .8rem; }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.action-row .btn { padding-inline: 10px; font-size: .86rem; }
.info-band { padding-block: 56px; background: #edf0ed; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.map-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: 34px; align-items: center; }
.map-figure { margin: 0; }
.map-figure img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border: 1px solid #cbd0ce; border-radius: 8px; }
.map-figure figcaption { margin-top: 8px; color: var(--muted); font-size: .78rem; }
.map-copy p { color: var(--muted); }
.facts { margin: 22px 0 0; padding: 0; }
.fact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; padding: 10px 0; border-top: 1px solid #cfd5d1; }
.fact dt { color: var(--muted); }
.fact dd { margin: 0; font-weight: 750; }
.guide-band { padding-block: 58px; background: var(--white); }
.guide-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.guide-list { margin: 0; padding: 0; list-style: none; counter-reset: guide; }
.guide-list li { counter-increment: guide; position: relative; min-height: 50px; padding: 0 0 18px 54px; color: var(--muted); }
.guide-list li::before { content: counter(guide); position: absolute; top: 0; left: 0; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #bdc5c1; border-radius: 50%; color: var(--rust); font-weight: 800; }
.city-links { padding-block: 52px; }
.city-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 20px; }
.city-link { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-weight: 700; }
.city-link:hover { border-color: var(--rust); }
.city-link img { width: 16px; height: 16px; }
.faq-band { padding-block: 56px; background: var(--white); border-top: 1px solid var(--line); }
.faq-list { max-width: 820px; margin-top: 22px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 16px 4px; font-weight: 750; cursor: pointer; }
.faq-item p { margin: -4px 4px 18px; color: var(--muted); }
.site-footer { padding-block: 32px; color: #d8e0e3; background: #20292d; }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; }
.footer-copy { max-width: 760px; }
.footer-copy strong { color: var(--white); }
.footer-copy p { margin: 5px 0 0; font-size: .82rem; }
.footer-links { display: flex; gap: 14px; align-items: start; white-space: nowrap; font-size: .84rem; }
.source-link { text-decoration: underline; text-underline-offset: 3px; }
.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; }
[hidden] { display: none !important; }

@media (max-width: 850px) {
  .dashboard, .map-layout, .guide-grid { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .map-copy { order: -1; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 22px, 1120px); }
  .site-header, .nav { height: 58px; }
  .brand span { display: none; }
  .language-select { max-width: 126px; }
  .hero { min-height: 430px; background-position: 58% center; }
  .hero-inner { padding-block: 44px; }
  h1 { font-size: 2.2rem; }
  .search-row { grid-template-columns: 1fr auto; }
  .search-row .btn-secondary { grid-column: 1 / -1; }
  .search-row .btn-primary { padding-inline: 13px; }
  .result-heading { display: block; }
  .status-pill { margin-top: 13px; }
  .phase-table th:nth-child(4), .phase-table td:nth-child(4) { display: none; }
  .phase-table th, .phase-table td { padding: 11px 8px; font-size: .8rem; }
  .phase-name { max-width: 100px; }
  .action-row { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { display: block; }
  .footer-links { margin-top: 18px; flex-wrap: wrap; }
}
