/* Will I See: night-sky palette, one aurora-green accent, editorial serif + data mono. */

:root {
  --bg: #060a12;
  --bg-2: #0a101d;
  --panel: #0e1626;
  --panel-2: #121c30;
  --line: #1b2740;
  --line-2: #2a3a5a;
  --text: #e9eef7;
  --muted: #a3b0c8;
  --dim: #6c7a95;
  --green: #5ef2a8;
  --green-2: #2fd88a;
  --amber: #ffc65c;
  --orange: #ff9b6a;
  --slate: #8494b3;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.62 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #9cf8cb; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.55rem; line-height: 1.15; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #04110a; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ── Header + mobile menu (fade overlay, burger → X, staggered links) ───────── */
.site-head { position: sticky; top: 0; z-index: 50; }
.site-head::before { content: ""; position: absolute; inset: 0; background: rgba(6, 10, 18, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); z-index: -1; }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 400 1.6rem/1 var(--serif); }
.brand:hover { color: var(--text); }
.logo-mark { width: 30px; height: 30px; color: var(--green); }
.links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.links > a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.links > a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.links > a[aria-current="page"] { color: var(--text); background: rgba(94, 242, 168, .1); }
.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); cursor: pointer; align-items: center; justify-content: center; margin-left: auto; }
.burger span { position: absolute; width: 18px; height: 1.8px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] { border-color: rgba(94, 242, 168, .55); background: rgba(94, 242, 168, .1); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.menu-extra { display: none; }
@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .links { position: fixed; inset: 0; z-index: -1; height: 100vh; height: 100dvh; margin: 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 96px 24px 32px; overflow-y: auto; background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .links.open { opacity: 1; visibility: visible; }
  .links > a { padding: 18px 0; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--text); font: 400 clamp(1.9rem, 8vw, 2.4rem)/1.1 var(--serif); background: none !important; opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .5s var(--ease); }
  .links.open > a { opacity: 1; transform: none; }
  .links.open > a:nth-child(1) { transition-delay: .06s; } .links.open > a:nth-child(2) { transition-delay: .11s; }
  .links.open > a:nth-child(3) { transition-delay: .16s; } .links.open > a:nth-child(4) { transition-delay: .21s; }
  .links.open > a:nth-child(5) { transition-delay: .26s; }
  .links > a[aria-current="page"] { color: var(--green); }
  .menu-extra { display: block; margin-top: auto; padding-top: 36px; color: var(--muted); opacity: 0; transform: translateY(18px); transition: opacity .5s .3s, transform .5s .3s; }
  .links.open .menu-extra { opacity: 1; transform: none; }
  body.menu-open { overflow: hidden; }
}

/* ── Sections ───────────────────────────────────────────────────────────────── */
.sec { padding: 104px 0; }
.sec.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head p { color: var(--muted); font-size: 1.08rem; }
.sub-h { margin: 56px 0 18px; }
.sec-head + .sub-h, .sub-h:first-child { margin-top: 0; }
@media (max-width: 700px) { .sec { padding: 72px 0; } .sec-head { margin-bottom: 30px; } .sub-h { margin-top: 44px; } }

/* "see more" link under a block */
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 500; font-size: .98rem; color: var(--green); text-decoration: none; }
.more::after { content: "→"; transition: transform .25s var(--ease); }
.more:hover { color: #9cf8cb; }
.more:hover::after { transform: translateX(4px); }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.btn-primary { background: var(--green); color: #03110a; }
.btn-primary:hover { background: #8ff7c4; color: #03110a; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--green); color: var(--text); }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
/* no overflow: hidden here, or the search suggestions get cut off at the hero's bottom edge;
   z-index keeps the open list above the next section */
.hero { position: relative; z-index: 2; min-height: min(92vh, 860px); display: flex; align-items: flex-end; isolation: isolate; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero picture img { object-position: 72% 62%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 10, 18, .55) 0%, rgba(6, 10, 18, 0) 30%, rgba(6, 10, 18, .2) 55%, var(--bg) 100%), linear-gradient(90deg, rgba(6, 10, 18, .75) 0%, rgba(6, 10, 18, .1) 60%); }
.hero-in { padding: 140px 0 84px; }
.hero h1 { max-width: 13ch; margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero .lede { max-width: 560px; font-size: 1.15rem; color: #d3dbea; }
.hero-credit { position: absolute; right: 16px; bottom: 12px; font: 400 .72rem var(--mono); color: rgba(233, 238, 247, .45); }

/* place finder */
.finder { position: relative; display: flex; gap: 10px; flex-wrap: wrap; max-width: 620px; margin-top: 28px; }
.finder-box { position: relative; flex: 1 1 300px; }
.finder input { width: 100%; height: 56px; padding: 0 20px 0 48px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 16, 29, .88); color: var(--text); font: 500 1.02rem var(--sans); }
.finder input::placeholder { color: var(--dim); }
.finder input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(94, 242, 168, .15); }
.finder-box svg { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--dim); pointer-events: none; }
.finder .btn { height: 56px; }
.finder-list { position: absolute; left: 0; right: 0; top: 62px; z-index: 20; margin: 0; padding: 6px; list-style: none; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); max-height: 340px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.finder-list::-webkit-scrollbar { width: 8px; }
.finder-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; border: 2px solid var(--panel); }
.finder-list::-webkit-scrollbar-track { background: transparent; }
.finder-list[hidden] { display: none; }
.finder-list a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--text); text-decoration: none; }
.finder-list a span { color: var(--dim); font-size: .9rem; }
.finder-list a:hover, .finder-list a.on { background: rgba(94, 242, 168, .1); }
/* tonight's chance in six popular places: one row on desktop, a 2-column grid on phones (nothing scrolls off) */
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.quick a { display: inline-flex; gap: 9px; align-items: center; padding: 8px 14px 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 16, 29, .72); color: var(--text); text-decoration: none; font-size: .92rem; transition: border-color .2s, transform .2s; }
.quick a:hover { border-color: var(--v, var(--green)); transform: translateY(-2px); color: var(--text); }
.quick b { font: 500 .82rem var(--mono); color: var(--v, var(--muted)); }
@media (max-width: 700px) {
  .hero { min-height: 0; }
  .hero-in { padding: 112px 0 52px; }
  .hero picture img { object-position: 88% 70%; }
  .quick { display: grid; grid-template-columns: 1fr 1fr; }
  .quick a { justify-content: flex-start; min-width: 0; padding: 9px 12px; border-radius: 12px; }
  .quick .q-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .finder .btn { flex: 1 1 100%; justify-content: center; }
}

/* ── Verdict colours ────────────────────────────────────────────────────────── */
[data-verdict="yes"] { --v: var(--green); }
[data-verdict="maybe"] { --v: var(--amber); }
[data-verdict="unlikely"] { --v: var(--orange); }
[data-verdict="no"] { --v: var(--slate); }
[data-verdict="bright"] { --v: #c7b98d; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--v, var(--dim)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--v, var(--dim)) 22%, transparent); }

/* ── Answer card (place page) ───────────────────────────────────────────────── */
.place-hero { padding: 64px 0 40px; background: radial-gradient(900px 420px at 80% -10%, rgba(94, 242, 168, .09), transparent 70%), var(--bg); }
.crumbs { font: 400 .8rem var(--mono); color: var(--dim); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.place-hero h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); max-width: 20ch; }
.answer { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; margin-top: 30px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--panel); overflow: hidden; }
.answer-main { padding: 34px 36px; border-right: 1px solid var(--line); }
.answer-label { font: 500 .78rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.answer-verdict { font: 400 clamp(3rem, 7vw, 5.4rem)/.95 var(--serif); color: var(--v, var(--text)); margin: 0 0 16px; }
.answer-reason { color: #d3dbea; font-size: 1.08rem; max-width: 52ch; }
.answer-meta { display: flex; gap: 18px; flex-wrap: wrap; font: 400 .8rem var(--mono); color: var(--dim); }
.answer-side { display: grid; grid-template-rows: auto 1fr; }
.answer-chance { padding: 30px 32px; border-bottom: 1px solid var(--line); }
.answer-chance b { display: block; font: 500 clamp(2.6rem, 5vw, 3.6rem)/1 var(--mono); color: var(--v, var(--text)); letter-spacing: -.03em; }
.answer-chance span { color: var(--muted); font-size: .92rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; }
.fact { padding: 20px 32px; border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact b { display: block; font: 500 1.35rem/1.2 var(--mono); }
.fact span { font-size: .84rem; color: var(--muted); }
@media (max-width: 860px) {
  .answer { grid-template-columns: 1fr; }
  .answer-main { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 22px; }
  .answer-chance { padding: 22px; }
  .fact { padding: 16px 22px; }
}

/* ── Night chart: one column per dark hour ──────────────────────────────────── */
.night { margin-top: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); padding: 22px 22px 16px; }
.night-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.night-head h2 { font-size: 1.6rem; margin: 0; }
.night-legend { display: flex; gap: 16px; flex-wrap: wrap; font: 400 .76rem var(--mono); color: var(--dim); }
.night-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.night-scroll { overflow-x: auto; padding-bottom: 6px; }
.night-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(46px, 1fr); gap: 4px; min-width: max-content; }
.hr { display: grid; grid-template-rows: 20px 120px 22px 22px 22px; gap: 6px; text-align: center; font: 400 .74rem var(--mono); color: var(--muted); border-radius: 10px; padding: 6px 2px; }
.hr-head { display: none; }
.hr.past { opacity: .38; }
.hr.best { background: rgba(94, 242, 168, .08); outline: 1px solid rgba(94, 242, 168, .35); }
.hr-bar { position: relative; border-radius: 6px; background: rgba(255, 255, 255, .03); overflow: hidden; }
.hr-bar i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--s); border-radius: 6px; background: linear-gradient(180deg, var(--green), rgba(47, 216, 138, .35)); }
.hr-bar em { position: absolute; left: 0; right: 0; top: 4px; font-style: normal; color: var(--text); }
.hr-bar .pc { display: none; }
.hr-cloud { border-radius: 5px; background: rgba(169, 186, 214, var(--c, 0)); color: var(--text); line-height: 22px; }
.hr-kp, .hr-moon { line-height: 22px; }
.night-rows { display: grid; grid-template-rows: 20px 120px 22px 22px 22px; gap: 6px; padding: 6px 8px 6px 0; font: 400 .72rem var(--mono); color: var(--dim); text-align: right; }
.night-wrap { display: grid; grid-template-columns: auto 1fr; }
.night-note { font-size: .86rem; color: var(--dim); margin: 12px 0 0; }
.loading { color: var(--dim); font: 400 .9rem var(--mono); padding: 30px 0; }
/* phones: the hours run down the page as rows, so nothing is cut off at the right edge */
@media (max-width: 700px) {
  .night { padding: 18px 14px 14px; }
  .night-head { margin-bottom: 10px; }
  .night-legend { display: none; }
  .night-wrap { display: block; }
  .night-rows { display: none; }
  .night-scroll { overflow: visible; padding: 0; }
  .night-grid { display: grid; grid-auto-flow: row; grid-auto-columns: auto; min-width: 0; gap: 3px; }
  .hr, .hr-head { grid-template-rows: none; grid-template-columns: 38px minmax(0, 1fr) 44px 34px 22px; gap: 8px; align-items: center; padding: 5px 6px; text-align: right; }
  .hr-head { display: grid; font: 500 .66rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .hr-head > :nth-child(2) { text-align: left; }
  .hr-t { text-align: left; color: var(--text); }
  .hr-bar { height: 24px; }
  .hr-bar i { top: 0; right: auto; height: auto; width: var(--s); border-radius: 6px; background: linear-gradient(90deg, rgba(47, 216, 138, .45), var(--green)); }
  .hr-bar em { top: 0; left: 8px; right: auto; line-height: 24px; text-align: left; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
  .hr-bar .pc { display: inline; }
  .hr-cloud { line-height: 24px; text-align: center; }
  .hr-moon { text-align: center; }
}

/* ── Boarding pass (trip odds) ──────────────────────────────────────────────── */
.pass { --notch: 14px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 260px; border-radius: 20px; background: #f3efe6; color: #141a26; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.pass-main { padding: 28px 32px 26px; }
.pass-top { display: flex; justify-content: space-between; align-items: center; font: 500 .74rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #59606e; padding-bottom: 16px; border-bottom: 1px dashed #c9c2b3; margin-bottom: 20px; }
.pass-top b { color: #141a26; }
.pass-fields { display: grid; grid-template-columns: 1.3fr 1fr .7fr; gap: 18px; }
.pass label, .pass .lbl { display: block; font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #6b7280; margin-bottom: 6px; }
.pass select, .pass input { width: 100%; height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid #d6cfbf; background: #fbf8f2; color: #141a26; font: 500 1rem var(--sans); }
.pass select:focus, .pass input:focus { outline: 2px solid #1f8f5f; outline-offset: 1px; }
.pass-note { margin: 16px 0 0; font-size: .86rem; color: #5b6270; }
/* odds for 1–7 nights in the chosen week: fills the pass and doubles as the nights picker */
.pass-nights { margin-top: 22px; padding-top: 18px; border-top: 1px dashed #c9c2b3; }
.pn-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) auto; gap: 8px; align-items: end; }
.pn { display: grid; grid-template-rows: 18px 64px 20px; gap: 4px; padding: 6px 2px 4px; border: 1px solid transparent; border-radius: 10px; background: none; cursor: pointer; text-align: center; font: inherit; color: #141a26; transition: background .2s, border-color .2s; }
.pn:hover { background: rgba(20, 26, 38, .05); }
.pn.on { background: #fbf8f2; border-color: #d6cfbf; }
.pn b { font: 500 .74rem var(--mono); color: #3b4252; }
.pn-bar { position: relative; display: block; border-radius: 5px; background: rgba(20, 26, 38, .06); overflow: hidden; }
.pn-bar i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 5px; background: #8fc9aa; transition: height .4s var(--ease); }
.pn.on .pn-bar i { background: #0f6b45; }
.pn.on b { color: #0f6b45; font-weight: 600; }
.pn-n { font: 500 .78rem var(--mono); color: #6b7280; }
.pn-cap { align-self: end; padding-bottom: 6px; font: 500 .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #6b7280; }
.hide-s { white-space: nowrap; }
.pass-top b { white-space: nowrap; }
.pass-wrap { margin-top: 48px; }
.pass-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 44px; }
.pass-extra h3 { margin-bottom: 12px; }
@media (max-width: 860px) { .pass-extra { grid-template-columns: 1fr; gap: 36px; } }
.pass-stub { position: relative; padding: 26px 28px; border-left: 2px dashed #c9c2b3; display: flex; flex-direction: column; justify-content: space-between; background: #ebe5d8; }
.pass-stub::before, .pass-stub::after { content: ""; position: absolute; left: calc(var(--notch) * -1 - 1px); width: calc(var(--notch) * 2); height: calc(var(--notch) * 2); border-radius: 50%; background: var(--pass-bg, var(--bg)); }
.pass-stub::before { top: calc(var(--notch) * -1); }
.pass-stub::after { bottom: calc(var(--notch) * -1); }
.sec.alt .pass-stub::before, .sec.alt .pass-stub::after { background: var(--bg-2); }
.pass-odds { font: 500 clamp(3.4rem, 6vw, 4.6rem)/1 var(--mono); letter-spacing: -.04em; color: #0f6b45; }
.pass-odds small { font-size: .45em; letter-spacing: 0; }
.pass-what { font-size: .88rem; color: #4b5260; margin: 8px 0 18px; }
.barcode { height: 38px; background: repeating-linear-gradient(90deg, #141a26 0 2px, transparent 2px 4px, #141a26 4px 5px, transparent 5px 8px, #141a26 8px 11px, transparent 11px 12px); opacity: .85; border-radius: 2px; }
@media (max-width: 760px) {
  .pass { grid-template-columns: 1fr; }
  .pass-main { padding: 22px 18px; }
  .pass-top .hide-s { display: none; }
  .pass-fields { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pass-fields > :first-child { grid-column: 1 / -1; }
  .pn-row { gap: 4px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .pn { grid-template-rows: 16px 54px 18px; padding: 4px 0; }
  .pn b { font-size: .64rem; }
  .pn-cap { grid-column: 1 / -1; justify-self: center; padding: 0; }
  .pass-stub { border-left: 0; border-top: 2px dashed #c9c2b3; }
  .pass-stub::before, .pass-stub::after { top: calc(var(--notch) * -1 - 1px); left: auto; bottom: auto; }
  .pass-stub::before { left: calc(var(--notch) * -1); }
  .pass-stub::after { right: calc(var(--notch) * -1); }
}

/* ── Polar map ──────────────────────────────────────────────────────────────── */
.map-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.map { position: relative; aspect-ratio: 1; max-width: 640px; width: 100%; margin-inline: auto; }
.map svg { width: 100%; height: 100%; overflow: visible; }
.map .sea { fill: #070e1c; stroke: var(--line-2); stroke-width: 2; }
.map .land { fill: #1c2b49; stroke: #34486f; stroke-width: 1.2; stroke-linejoin: round; }
.map .grat { fill: none; stroke: rgba(163, 176, 200, .14); stroke-width: 1.2; stroke-dasharray: 3 7; }
.map .grat-label { fill: var(--dim); font: 400 15px var(--mono); }
.map .oval { fill: none; stroke: var(--green); stroke-width: 5; stroke-linejoin: round; filter: url(#glow); opacity: .95; }
.map .oval-band { fill: rgba(94, 242, 168, .07); fill-rule: evenodd; }
.map .pin circle { fill: var(--v, var(--dim)); stroke: #070e1c; stroke-width: 3; transition: r .2s; }
.map .pin:hover circle, .map .pin:focus circle { r: 12; }
.map .pin:focus { outline: none; }
.map .labels text { fill: var(--text); font: 500 21px var(--sans); paint-order: stroke; stroke: #070e1c; stroke-width: 6px; stroke-linejoin: round; pointer-events: none; transition: opacity .2s; }
.map .labels text.hover { opacity: 0; }
.map .labels text.on { opacity: 1; fill: var(--green); }
@media (max-width: 700px) {
  .map .labels text { font-size: 30px; stroke-width: 8px; }
  .map .labels text.wide { opacity: 0; }
  .map .labels text.wide.on { opacity: 1; }
  .map .grat-label { display: none; }
}
/* 3D globe (WebGL) over the flat map; the SVG stays as the no-WebGL fallback */
.map.has-globe > svg { display: none; }
.globe { position: absolute; inset: 0; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.globe[hidden] { display: none; }
.globe.dragging { cursor: grabbing; }
.globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.globe-pins { position: absolute; inset: 0; pointer-events: none; }
.gpin { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: auto; color: var(--text); text-decoration: none; will-change: transform; }
.gpin i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--v, var(--dim)); box-shadow: 0 0 0 2px #070e1c, 0 0 12px color-mix(in srgb, var(--v, transparent) 70%, transparent); transform: scale(var(--s, 1)); transition: transform .2s var(--ease); }
.gpin i::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.gpin span { position: absolute; left: 10px; top: -10px; font: 500 .82rem/20px var(--sans); white-space: nowrap; color: var(--text); text-shadow: 0 0 4px #050a14, 0 0 4px #050a14, 0 1px 2px #000; opacity: 0; transition: opacity .2s; pointer-events: none; }
.gpin.left span { left: auto; right: 10px; }
.gpin.lbl { z-index: 2; }
.gpin.lbl span, .gpin:hover span, .gpin:focus-visible span { opacity: 1; }
.gpin.lbl.nolbl:not(:hover) span { opacity: 0; }
.gpin:hover, .gpin:focus-visible { z-index: 3; color: var(--text); }
.gpin:hover i, .gpin:focus-visible i { transform: scale(calc(var(--s, 1) * 1.5)); }
.gpin:hover span { color: var(--v, var(--green)); }
.gpin:focus-visible { outline: none; }
/* place highlighted from the "Best bets tonight" list: bigger dot, pulsing ring, name always on */
.gpin.hl { z-index: 4; }
.gpin.hl i { transform: scale(calc(var(--s, 1) * 1.6)); }
.gpin.hl i::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--v, var(--green)); animation: gpulse 1.4s var(--ease) infinite; }
.gpin.hl span, .gpin.lbl.nolbl.hl span { opacity: 1; color: var(--v, var(--green)); font-weight: 600; }
@keyframes gpulse { from { transform: scale(.7); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.best-list li a.hl { background: rgba(255, 255, 255, .04); padding-left: 10px; }
@media (prefers-reduced-motion: reduce) { .gpin.hl i::before { animation: none; transform: scale(1.6); } }
.globe-hint { position: absolute; left: 50%; bottom: 0; translate: -50% 0; margin: 0; padding: 5px 12px; border-radius: 999px; background: rgba(10, 16, 29, .7); border: 1px solid var(--line); font: 400 .72rem var(--mono); color: var(--muted); white-space: nowrap; pointer-events: none; transition: opacity .4s; }
.globe.used .globe-hint { opacity: 0; }
@media (max-width: 700px) {
  .gpin i { left: -4px; top: -4px; width: 8px; height: 8px; box-shadow: 0 0 0 1.5px #070e1c, 0 0 8px color-mix(in srgb, var(--v, transparent) 70%, transparent); }
  .gpin span { font-size: .74rem; left: 8px; }
  .gpin.left span { right: 8px; }
  .gpin.wide span { opacity: 0; }
  .gpin.wide:hover span { opacity: 1; }
}

.kp-now { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.kp-now b { font: 500 3.2rem/1 var(--mono); color: var(--green); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .9rem; color: var(--muted); margin: 18px 0 26px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.best-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.best-list li a { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; transition: background .2s, padding .2s; }
.best-list li a:hover { background: rgba(255, 255, 255, .03); padding-left: 10px; }
.best-list small { color: var(--dim); }
.best-list b { font: 500 .95rem var(--mono); color: var(--v, var(--muted)); }
.best-list.plain li a { grid-template-columns: 1fr auto; }
.best-list.plain b { color: var(--green); }
.best-list .empty { padding: 14px 4px; color: var(--muted); border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .map-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ── Cards, tables, charts ──────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); transition: transform .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .big { font: 500 2.4rem/1 var(--mono); color: var(--green); margin-bottom: 10px; }
a.card { color: var(--text); text-decoration: none; display: block; }
a.card:hover { color: var(--text); border-color: rgba(94, 242, 168, .45); }
a.card.place-card { display: flex; flex-direction: column; gap: 4px; }
.place-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.place-card h3 { margin: 0; }
.place-card .row h3 { margin: 0; }
.place-card small { display: block; color: var(--dim); font-size: .84rem; line-height: 1.45; }
.place-card .rank { font: 500 .78rem var(--mono); color: var(--dim); }
.place-card .odds { font: 500 1.5rem var(--mono); color: var(--green); }
.place-card .odds small { display: inline; font-size: .8rem; color: var(--dim); margin-left: 2px; }
.meter { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; margin: 10px 0 10px; }
.meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, rgba(47, 216, 138, .5), var(--green)); transform-origin: left; transition: transform 1s var(--ease); }
.js .rv:not(.in) .meter i { transform: scaleX(0); }

/* tables: on phones the first column sticks and a fade shows there is more to the right */
.tbl { position: relative; }
.tbl::before, .tbl::after { content: ""; position: absolute; top: 1px; bottom: 1px; width: 34px; pointer-events: none; opacity: 0; transition: opacity .25s; z-index: 3; }
.tbl::after { right: 1px; border-radius: 0 var(--r) var(--r) 0; background: linear-gradient(270deg, rgba(6, 10, 18, .9), transparent); }
.tbl::before { left: 1px; border-radius: var(--r) 0 0 var(--r); background: linear-gradient(90deg, rgba(6, 10, 18, .6), transparent); }
.tbl.more-r::after { opacity: 1; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th, table.data td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th { font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); background: var(--panel-2); }
table.data td { font-family: var(--mono); }
table.data td:first-child { font-family: var(--sans); }
table.data td a { color: var(--text); text-decoration: none; }
table.data td a:hover { color: var(--green); }
table.data tbody tr:hover { background: rgba(255, 255, 255, .025); }
table.data .sub { color: var(--dim); font-size: .88em; margin-left: 4px; }
table.data .n { display: inline-block; min-width: 1.9em; font: 500 .8rem var(--mono); color: var(--dim); }
td.heat { background: rgba(94, 242, 168, calc(.05 + var(--h) * .42)); color: var(--text); }
td.na { color: var(--dim); }
td .pc { opacity: .7; }
@media (max-width: 700px) {
  table.data { font-size: .86rem; }
  table.data th, table.data td { padding: 11px 8px; }
  table.data thead th { white-space: normal; font-size: .62rem; letter-spacing: .05em; vertical-align: bottom; line-height: 1.3; }
  table.data th:first-child, table.data td:first-child { position: sticky; left: 0; z-index: 2; background: var(--panel); padding-left: 12px; box-shadow: 1px 0 0 var(--line); }
  table.data thead th:first-child { background: var(--panel-2); }
  table.data .sub { display: block; margin: 1px 0 0; font-size: .76rem; }
  table.data .n { min-width: 1.6em; }
  table.data.rank .n { display: none; }
  table.data .opt, table.data .edge { display: none; }
  table.data.hm td, table.data.hm th { padding-inline: 5px; text-align: center; }
  table.data.hm td:first-child, table.data.hm th:first-child { text-align: left; padding-left: 12px; white-space: normal; min-width: 92px; }
  table.data.hm .pc { display: none; }
}

/* week-by-week chart (HTML so the text stays readable at any width) */
.wk { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
.wk-y { display: flex; flex-direction: column; justify-content: space-between; height: 220px; font: 400 .7rem var(--mono); color: var(--dim); text-align: right; }
.wk-y span { line-height: 0; }
.wk-bars { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 220px; border-bottom: 1px solid var(--line-2); background: repeating-linear-gradient(180deg, rgba(163, 176, 200, .1) 0 1px, transparent 1px 25%); }
.wk-bars i { position: relative; flex: 1 1 0; min-width: 0; height: var(--v); min-height: 2px; border-radius: 3px 3px 1px 1px; background: rgba(94, 242, 168, .42); transition: background .2s; }
.wk-bars i.top { background: var(--green); }
.wk-bars i.na { height: 0; min-height: 0; background: none; }
.wk-bars i:hover { background: #9cf8cb; }
.wk-bars i b { position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 0; padding: 3px 8px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line-2); font: 500 .72rem var(--mono); color: var(--text); white-space: nowrap; display: none; pointer-events: none; z-index: 2; }
.wk-bars i:hover b { display: block; }
.wk-bars i:first-child b { left: 0; translate: 0 0; }
.wk-bars i:last-child b { left: auto; right: 0; translate: 0 0; }
.wk-x { position: relative; height: 26px; }
.wk-x span { position: absolute; top: 8px; font: 400 .72rem var(--mono); color: var(--dim); }
@media (max-width: 700px) {
  .wk { grid-template-columns: 30px minmax(0, 1fr); gap: 6px; }
  .wk-y, .wk-bars { height: 170px; }
  .wk-y { font-size: .62rem; }
  .wk-bars { gap: 1.5px; }
  .wk-x span { font-size: .62rem; }
}

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.split.stretch { align-items: stretch; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.photo-panel { position: relative; margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.photo-panel img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split.stretch .photo-panel img { aspect-ratio: auto; min-height: 360px; }
.photo-panel figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 16px 18px; border-radius: 14px; background: rgba(6, 10, 18, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .08); color: var(--muted); font-size: .92rem; }
.photo-panel figcaption b { display: block; font: 500 1.9rem/1.1 var(--mono); color: var(--green); margin-bottom: 4px; }
@media (max-width: 900px) { .split.stretch .photo-panel img { aspect-ratio: 4 / 3; min-height: 0; } }

/* rare places: every good night by year */
.seen { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 22px; align-items: start; }
.seen-y { padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); transition: border-color .3s, transform .3s var(--ease); }
.seen-y:hover { border-color: var(--line-2); transform: translateY(-3px); }
.seen-y.none { opacity: .55; }
.seen-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.seen-top b { font: 500 1.05rem var(--mono); }
.seen-top span { font-size: .82rem; color: var(--muted); }
.seen-y .meter { margin: 10px 0 8px; }
.seen-y ul { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.seen-y li { display: flex; justify-content: space-between; gap: 6px; padding: 3px 0; }
.seen-y li small, .seen-list small { font: 400 .74rem var(--mono); color: var(--dim); }
.seen-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 24px; }
.seen-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* aurora tours */
.tour-panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 44px 48px; border: 1px solid var(--line-2); border-radius: 22px; background: radial-gradient(600px 260px at 0% 0%, rgba(94, 242, 168, .1), transparent 70%), var(--panel); }
.tour-panel h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.tour-panel p { color: var(--muted); margin: 0; max-width: 52ch; }
.tour-panel .tours { margin: 0; justify-content: flex-end; }
@media (max-width: 860px) {
  .tour-panel { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
  .tour-panel .tours { justify-content: flex-start; }
  .tour-panel .btn { flex: 1 1 auto; justify-content: center; }
}

.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.split .steps { grid-template-columns: 1fr; }
.steps .card::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; font: 500 .8rem var(--mono); color: var(--green); margin-bottom: 14px; }

.prose { font-size: 1.04rem; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .table-scroll { margin: 1.4em 0; }
.callout { border-left: 3px solid var(--green); background: var(--panel); padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 1.4em 0; }

.tours { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.aff-note { font: 400 .74rem var(--mono); color: var(--dim); margin-left: 6px; }

/* ── Month switch, Kp bars, alternatives ────────────────────────────────────── */
.month-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 22px; }
.month-switch button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 500 .92rem var(--sans); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.month-switch button:hover { border-color: var(--green); color: var(--text); }
.month-switch button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #03110a; }
/* Kp page: three headline numbers + one card per day */
.kp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); overflow: hidden; }
.kp-stats > div { padding: 22px 26px; border-right: 1px solid var(--line); }
.kp-stats > div:last-child { border-right: 0; }
.kp-stats b { display: block; font: 500 2.6rem/1 var(--mono); color: var(--green); margin-bottom: 10px; }
.kp-stats span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.45; }
.kp-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 26px; }
.kd { padding: 16px 14px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.kd.is-today { border-color: rgba(94, 242, 168, .4); }
.kd-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.kd-head b { font-weight: 600; }
.kd-head span { font-size: .84rem; color: var(--dim); }
.kd-head em { margin-left: auto; font: 500 .78rem var(--mono); font-style: normal; color: var(--green); }
.kd-head em.storm { color: var(--amber); }
.kd-bars { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; height: 150px; }
.kd-bars::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(32px + (100% - 32px) * 5 / 9); border-top: 1px dashed rgba(255, 198, 92, .55); pointer-events: none; }
.kd-b { grid-row: 1; display: grid; grid-template-rows: minmax(0, 1fr) 16px 16px; text-align: center; font: 400 .64rem var(--mono); color: var(--dim); }
.kd-b > i { align-self: end; display: block; border-radius: 4px 4px 1px 1px; background: var(--green); }
.kd-b.pred > i { background: repeating-linear-gradient(135deg, rgba(94, 242, 168, .75) 0 3px, rgba(94, 242, 168, .3) 3px 6px); }
.kd-b.storm > i { background: var(--amber); }
.kd-b.now > i { box-shadow: 0 0 0 2px var(--text); }
.kd-b span { color: var(--text); line-height: 16px; }
.kd-b small { line-height: 16px; }
@media (max-width: 700px) {
  .kp-stats { grid-template-columns: 1fr 1fr; }
  .kp-stats > div { padding: 18px; }
  .kp-stats > div:nth-child(2) { border-right: 0; }
  .kp-stats > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .kp-stats b { font-size: 2.1rem; }
  .kd-bars { height: 124px; }
}

/* ── FAQ: one open at a time, smooth height ─────────────────────────────────── */
.faq { max-width: 820px; margin-inline: auto; }
.faq .sec-head { text-align: center; margin-inline: auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa .q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; background: none; border: 0; color: var(--text); font: 400 1.4rem/1.25 var(--serif); text-align: left; cursor: pointer; }
.qa .q::after { content: "+"; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font: 400 1.2rem/1 var(--sans); color: var(--green); transition: transform .35s var(--ease), background .3s; }
.qa.open .q::after { transform: rotate(45deg); background: rgba(94, 242, 168, .1); }
.qa .a { overflow: hidden; color: var(--muted); }
.faqjs .qa .a { max-height: 0; transition: max-height .45s var(--ease); }
.qa .a > div { padding: 0 4px 24px; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); background: #04070d; padding: 72px 0 28px; color: var(--muted); font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; }
.foot-grid h2 { font: 500 .74rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.foot-grid a:not(.brand) { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.foot-grid a:not(.brand):hover { color: var(--text); }
.foot-note { margin-top: 16px; max-width: 34ch; }
.credits { font-size: .86rem; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font: 400 .78rem var(--mono); color: var(--dim); }
.foot-base a { color: var(--muted); text-decoration: none; }
.foot-base a:hover { color: var(--text); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ── Reveal on scroll (class sits on wrappers so card hovers still work) ───── */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
