:root {
  --bg: #060b1a;
  --bg-2: #0b1430;
  --panel: #0f1b3d;
  --panel-2: #142350;
  --line: rgba(160, 190, 255, .14);
  --text: #e6ecff;
  --muted: #9aa8cc;
  --green: #4dffb0;
  --teal: #29d3c4;
  --violet: #9b7bff;
  --pink: #ff6fae;
  --amber: #ffc857;
  --red: #ff5d5d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.65 var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(77, 255, 176, .16), transparent 60%),
    radial-gradient(900px 500px at 85% -5%, rgba(155, 123, 255, .18), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  min-height: 100vh;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #9dffd2; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--panel); padding: 8px 12px; z-index: 10; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(6, 11, 26, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .2px; white-space: nowrap; }
.logo b { font-weight: 400; color: var(--muted); margin-left: 6px; }
.logo-mark { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(from 200deg, var(--green), var(--teal), var(--violet), var(--pink), var(--green)); box-shadow: 0 0 18px rgba(77, 255, 176, .55); }
.site-header ul { list-style: none; margin: 0; padding: 0; }
.site-header a, .site-header summary { color: var(--text); text-decoration: none; cursor: pointer; }
.desk > ul { display: flex; gap: 4px; align-items: center; }
.desk > ul > li > a, .desk summary { display: block; padding: 8px 12px; border-radius: 10px; font-size: .95rem; }
.desk > ul > li > a:hover, .desk summary:hover, .desk [aria-current="page"], .desk .active summary { background: var(--panel); color: var(--green); }
.desk details { position: relative; }
.desk summary { list-style: none; }
.desk summary::-webkit-details-marker { display: none; }
.desk summary::after { content: " ▾"; font-size: .75em; color: var(--muted); }
.desk details ul { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); }
.desk details ul a { display: block; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.desk details ul a:hover { background: var(--panel-2); color: var(--green); }
.menu { display: none; }
@media (max-width: 860px) {
  .desk { display: none; }
  .menu { display: block; }
  .menu > summary { list-style: none; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 10px; }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu > summary span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
  .menu nav { position: absolute; left: 0; right: 0; top: 60px; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; max-height: calc(100vh - 60px); overflow: auto; }
  .menu nav a, .menu nav summary { display: block; padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .menu nav details ul { padding-left: 14px; }
  .menu [aria-current="page"] { color: var(--green); }
}

/* content */
main { padding-top: 8px; padding-bottom: 48px; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 18px 0 0; }
.crumbs a { color: var(--muted); }
.page-head { margin: 22px 0 12px; }
h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); line-height: 1.12; margin: 0 0 12px; letter-spacing: -.5px;
  background: linear-gradient(90deg, #f4f7ff 0%, #b8ffe0 45%, #c9b8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.2; margin: 2.2em 0 .6em; letter-spacing: -.2px; }
h3 { font-size: 1.2rem; margin: 1.6em 0 .4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .35em; }
.lead { font-size: 1.15rem; color: #c8d3f5; max-width: 760px; }
.meta { font-size: .85rem; color: var(--muted); margin: 0; }
article > p, article > ul, article > ol, article > h2, article > h3, .prose { max-width: 760px; }
strong { color: #fff; }
blockquote, .note { border-left: 3px solid var(--teal); background: rgba(41, 211, 196, .08); margin: 1.2em 0; padding: 12px 16px; border-radius: 0 10px 10px 0; max-width: 760px; }
.note.warn { border-color: var(--amber); background: rgba(255, 200, 87, .08); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* live widgets */
.live { margin: 18px 0; }
.summary { background: linear-gradient(135deg, rgba(77, 255, 176, .10), rgba(155, 123, 255, .10)); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; max-width: 760px; }
.summary .upd { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c, var(--teal)); }
.stat-t { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.stat-v { font-size: 1.7rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-s { font-size: .8rem; color: var(--muted); }
.k0 { --c: var(--teal); } .k1 { --c: var(--green); } .k2 { --c: var(--amber); } .k3 { --c: #ff9f43; } .k4 { --c: var(--red); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 600; background: var(--bg-2); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; }
.locs tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.locs td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.locs td:last-child { min-width: 170px; }
.bar { display: inline-block; vertical-align: middle; height: 8px; width: 80px; border-radius: 6px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; margin-right: 8px; }
.bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 6px; background: var(--teal); }
.bar.s1::after { background: var(--green); } .bar.s2::after { background: #b6ff5d; } .bar.s3::after { background: var(--amber); } .bar.s4::after { background: var(--pink); }
.lbl { font-size: .85rem; }
@media (max-width: 600px) {
  .locs th, .locs td { padding: 8px 6px; font-size: .85rem; }
  .locs thead th { white-space: normal; font-size: .68rem; letter-spacing: .3px; }
  .locs tbody th { min-width: 108px; }
  .locs td:last-child { min-width: 0; }
  .locs .bar { display: block; width: 100%; max-width: 70px; margin: 0 0 4px; }
  .locs .lbl { font-size: .78rem; }
}

.kpchart { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.kpchart svg { display: block; width: 100%; height: auto; }
.kpchart rect { fill: var(--c); }
.kpchart rect.pred { opacity: .45; }
.kpchart line.g { stroke: var(--line); }
.kpchart line.now { stroke: #fff; stroke-dasharray: 3 3; opacity: .6; }
.kpchart text { fill: var(--muted); font-size: 11px; }
figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.ovation { margin: 0; max-width: 520px; }
.ovation img { border-radius: var(--radius); border: 1px solid var(--line); background: #000; aspect-ratio: 1; }

.outlook { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.outlook li { margin: 0; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); }
.outlook strong { font-size: 1rem; }

/* blocks */
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--green); color: #04131a; font-weight: 700; text-decoration: none; }
.btn:hover { background: #8dffcc; color: #04131a; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--green); color: var(--green); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 14px 0; }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--text); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); border-color: rgba(77, 255, 176, .45); color: var(--text); }
.card strong { display: block; margin-bottom: 4px; color: var(--green); }
.card span { font-size: .9rem; color: var(--muted); }
.spot { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px 8px; margin: 14px 0; max-width: 760px; }
.spot h3 { margin-top: .8em; }
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; list-style: none; padding: 0; }
.months li { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: .9rem; }
.months li b { display: block; }
.months .top { border-color: rgba(77, 255, 176, .55); }
.months .no { opacity: .55; }
.related { margin-top: 48px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin: 8px 0; max-width: 760px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.faq details p { margin-top: 0; color: #cfd8f6; }
.sources { margin-top: 32px; font-size: .9rem; color: var(--muted); }
.sources h2 { font-size: 1.15rem; }
.sources ul { padding-left: 18px; }
.sources li { margin: 4px 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 32px 0 24px; font-size: .9rem; color: var(--muted); }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols > :first-child { grid-column: 1 / -1; } }
.site-footer strong { color: var(--text); }
.site-footer ul { list-style: none; padding: 0; margin: 8px 0 0; }
.site-footer a { color: var(--muted); }
.site-footer li a { display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: var(--green); }
.credits { font-size: .8rem; margin: 16px 0 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
