/* RotorAtlas — mobile-first, dark/light, zero dependencies */
:root {
  --bg: #f4f6f8; --surface: #ffffff; --surface-2: #eef1f4; --ink: #121a22; --ink-2: #4d5b69;
  --line: #dde3e9; --brand: #0f2a3d; --accent: #12a5a0; --accent-ink: #0a6f6b;
  --go: #1f8a4c; --go-bg: #dcf3e5; --caution: #a86400; --caution-bg: #fdf0d8; --nogo: #b42323; --nogo-bg: #fbe1e1;
  --radius: 14px; --shadow: 0 1px 2px rgba(10,20,30,.06), 0 6px 20px rgba(10,20,30,.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --footer-ad: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1218; --surface: #121c25; --surface-2: #19252f; --ink: #e6edf3; --ink-2: #9fb0bf;
    --line: #243341; --brand: #e6edf3; --accent: #2cc7c0; --accent-ink: #5fe0da;
    --go: #4fd18a; --go-bg: #12301f; --caution: #f0b44c; --caution-bg: #33270f; --nogo: #ff7b7b; --nogo-bg: #3a1616;
    --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1218; --surface: #121c25; --surface-2: #19252f; --ink: #e6edf3; --ink-2: #9fb0bf;
  --line: #243341; --brand: #e6edf3; --accent: #2cc7c0; --accent-ink: #5fe0da;
  --go: #4fd18a; --go-bg: #12301f; --caution: #f0b44c; --caution-bg: #33270f; --nogo: #ff7b7b; --nogo-bg: #3a1616;
  --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
}
@media (min-width: 768px) { :root { --footer-ad: 90px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg);
  padding-bottom: calc(var(--footer-ad) + env(safe-area-inset-bottom, 0px)); }
a { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.22; color: var(--brand); }
h1 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); margin: .2em 0 .35em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 1.5em 0 .5em; }
h3 { font-size: 1.08rem; margin: 1.2em 0 .4em; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 16px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; z-index: 99; background: var(--surface); padding: 8px; }

/* header */
.site-header { background: #0f2a3d; color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; min-height: 60px; }
.logo { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.22rem; display: flex; gap: 8px; align-items: center; }
.logo span { color: #2cc7c0; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: .95rem; }
.nav a { color: #d7e3ec; text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: #2cc7c0; }
.theme-btn { background: transparent; border: 1px solid #3c5568; color: #d7e3ec; border-radius: 8px; padding: 4px 10px; font: inherit; font-size: .85rem; cursor: pointer; }

/* ad slots: fixed reserved boxes => CLS 0 when ad code is pasted */
.ad { position: relative; display: flex; align-items: center; justify-content: center; margin-inline: auto; overflow: hidden; contain: layout; }
.ad::before { content: "Advertisement"; position: absolute; top: 3px; inset-inline: 0; text-align: center; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); opacity: .7; }
.ad-top { width: 100%; max-width: 728px; height: 100px; margin-block: 14px; }
@media (min-width: 768px) { .ad-top { height: 90px; } }
.ad-native { width: 100%; height: 280px; margin-block: 24px; background: var(--surface-2); border-radius: var(--radius); }
.ad-mid { width: 100%; height: 280px; margin-block: 28px; background: var(--surface-2); border-radius: var(--radius); }
.ad-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(var(--footer-ad) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--surface); border-top: 1px solid var(--line); }

/* layout */
main { padding-block: 4px 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 64ch; margin-top: 0; }
.tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 960px) { .tools { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.tools .card { margin-bottom: 0; }
.tools h2 { margin-top: 0; }

label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.hint { color: var(--ink-2); font-size: .84rem; font-weight: 400; }
input, select { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 9px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; background: var(--accent); color: #04211f; text-decoration: none; white-space: nowrap; }
.btn.ghost { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > .grow { flex: 1 1 200px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } }

/* weather result */
.wx { min-height: 330px; margin-top: 16px; }
.verdict { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; font-weight: 800; font-size: 1.25rem; }
.verdict small { display: block; font-weight: 500; font-size: .88rem; }
.v-go { background: var(--go-bg); color: var(--go); }
.v-caution { background: var(--caution-bg); color: var(--caution); }
.v-nogo { background: var(--nogo-bg); color: var(--nogo); }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
@media (min-width: 560px) { .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.metric { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; border-left: 4px solid var(--line); }
.metric b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.metric span { font-size: .78rem; color: var(--ink-2); }
.metric.go { border-left-color: var(--go); } .metric.caution { border-left-color: var(--caution); } .metric.nogo { border-left-color: var(--nogo); }
.hours { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr); gap: 6px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; }
.hour { text-align: center; font-size: .78rem; padding: 6px 4px; border-radius: 8px; background: var(--surface-2); }
.hour i { display: block; width: 10px; height: 10px; border-radius: 50%; margin: 4px auto; }
.hour .go { background: var(--go); } .hour .caution { background: var(--caution); } .hour .nogo { background: var(--nogo); }

/* rules checker */
.checks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; min-height: 260px; }
.checks li { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border-left: 4px solid var(--accent); font-size: .94rem; }
.checks li.req { border-left-color: var(--caution); }
.checks li.no { border-left-color: var(--nogo); }
.checks li b { display: block; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; background: var(--surface-2); font-size: .9rem; }
.seg input { width: auto; margin: 0; }
.seg label:has(input:checked) { border-color: var(--accent); color: var(--accent-ink); }

/* directory */
.dir-controls { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 600px) { .dir-controls { grid-template-columns: 2fr 1fr; } }
.spot-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.spot-list a { display: block; height: 100%; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.spot-list a:hover { border-color: var(--accent); }
.spot-list b { display: block; color: var(--brand); }
.spot-list span { font-size: .82rem; color: var(--ink-2); }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 1px 7px; border-radius: 99px; background: var(--accent); color: #04211f; margin-left: 6px; vertical-align: 2px; }

/* content pages */
.prose { max-width: 76ch; }
.prose li { margin-bottom: .3em; }
.crumbs { font-size: .85rem; color: var(--ink-2); padding-top: 6px; }
.crumbs a { color: var(--ink-2); }
.callout { background: var(--caution-bg); border-left: 4px solid var(--caution); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 16px 0; }
.callout.info { background: var(--surface-2); border-left-color: var(--accent); }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.checklist li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent-ink); font-weight: 800; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.links-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.links-grid a { display: inline-block; padding: 6px 12px; border-radius: 99px; background: var(--surface-2); text-decoration: none; font-size: .9rem; color: var(--ink); border: 1px solid var(--line); }
.links-grid a:hover { border-color: var(--accent); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }

/* footer */
.site-footer { background: #0a1c29; color: #b7c6d2; font-size: .9rem; padding-block: 26px; }
.site-footer a { color: #e6edf3; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.fine { font-size: .8rem; color: #8ea1b1; max-width: 90ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
