:root {
  color-scheme: dark;
  --bg: #101312;
  --panel: #171d1b;
  --panel-strong: #1f2925;
  --text: #f4f0e8;
  --muted: #b8c2b7;
  --soft: #889589;
  --line: #33413b;
  --accent: #f2b84b;
  --accent-strong: #ffce6a;
  --green: #6ed39c;
  --red: #ef6f65;
  --blue: #78b7d8;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(110, 211, 156, 0.08), transparent 320px),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  background: var(--accent);
  color: #16100a;
  font-weight: 800;
  left: 16px;
  min-height: 44px;
  padding: 10px 14px;
  position: fixed;
  top: 12px;
  transform: translateY(-140%);
  z-index: 20;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  backdrop-filter: blur(16px);
  background: rgba(16, 19, 18, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-shell {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 68px;
  padding: 0 24px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 850;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: #21352c;
  border: 1px solid rgba(110, 211, 156, 0.5);
  border-radius: 8px;
  color: var(--green);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 8px;
}

.nav-links a,
.page-tabs a {
  border-radius: 8px;
  color: var(--muted);
  min-height: 44px;
  padding: 10px 12px;
  text-decoration: none;
}

.nav-links a:hover,
.page-tabs a:hover,
.page-tabs a.is-active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.hero,
.article-hero,
.section-band,
.content-layout,
.guide-section,
.site-footer {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: 24px;
  padding-right: 24px;
}

.guide-hero,
.article-hero {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
  min-height: min(820px, calc(100dvh - 68px));
  padding-bottom: clamp(40px, 7vh, 72px);
  padding-top: clamp(32px, 6vh, 64px);
}

.article-hero {
  min-height: auto;
  padding-bottom: 30px;
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(40px, 7vw, 78px);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 22px;
  max-width: 840px;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 16px;
}

h3 {
  font-size: 21px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-lede {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.button,
.filter-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.filter-button:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--accent);
  color: #1d1305;
}

.secondary {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.signal-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0 0;
}

.signal-list div,
.spot-card,
.article-panel,
.status-panel,
.note-box,
.score-table,
.faq-list details {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
}

.signal-list div {
  padding: 16px;
}

.signal-list dt {
  color: var(--soft);
  font-size: 13px;
  font-weight: 750;
}

.signal-list dd {
  margin: 4px 0 0;
}

.hero-map {
  background: #161d1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
}

.hero-map img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.hero-map figcaption {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--soft);
  font-size: 13px;
  padding: 12px 14px;
}

.section-band,
.guide-section {
  padding-bottom: 76px;
  padding-top: 76px;
}

.section-band.compact {
  padding-top: 40px;
}

.section-heading {
  margin: 0 auto 30px;
  max-width: 760px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading p {
  color: var(--muted);
}

.spot-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spot-grid.detailed {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.spot-card {
  padding: 22px;
}

.spot-card p,
.spot-card li {
  color: var(--muted);
}

.card-kicker {
  color: var(--accent-strong);
  display: block;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 12px;
}

.content-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  padding-bottom: 48px;
  padding-top: 20px;
}

.article-panel,
.status-panel,
.note-box {
  padding: 26px;
}

.check-list,
.number-list {
  margin-bottom: 0;
  padding-left: 22px;
}

.check-list li,
.number-list li {
  margin: 10px 0;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline div {
  align-items: center;
  background: var(--panel);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: 100px 1fr;
  padding: 16px 18px;
}

.timeline strong {
  color: var(--green);
}

.timeline span {
  color: var(--muted);
}

.page-tabs {
  background: rgba(23, 29, 27, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 auto;
  max-width: 1132px;
  padding: 8px;
  position: sticky;
  top: 78px;
  z-index: 8;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-button {
  background: var(--panel);
  color: var(--muted);
}

.filter-button.is-active {
  background: var(--accent);
  color: #1d1305;
}

.spot-card.is-hidden {
  display: none;
}

.guide-section.split {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
}

.score-table {
  display: grid;
  overflow: hidden;
}

.score-table div {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1.4fr;
}

.score-table div:first-child {
  background: rgba(110, 211, 156, 0.1);
  color: var(--green);
  font-weight: 850;
}

.score-table span {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
  min-height: 44px;
}

.faq-list p {
  color: var(--muted);
  margin-bottom: 0;
}

.site-footer {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-bottom: 36px;
  padding-top: 36px;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--text);
  min-height: 44px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
  max-width: 720px;
}

.text-link {
  color: var(--accent-strong);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.single-column-hero {
  display: block;
  max-width: 980px;
  min-height: auto;
  padding-bottom: 42px;
}

@media (max-width: 980px) {
  .guide-hero,
  .article-hero,
  .content-layout,
  .guide-section.split {
    grid-template-columns: 1fr;
  }

  .spot-grid,
  .spot-grid.detailed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 12px;
    padding-top: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    width: 100%;
  }

  .nav-links a {
    flex: 1 1 auto;
  }

  .guide-hero,
  .article-hero {
    min-height: auto;
    padding-bottom: 36px;
    padding-top: 36px;
  }

  .signal-list,
  .spot-grid,
  .spot-grid.detailed {
    grid-template-columns: 1fr;
  }

  .section-band,
  .guide-section {
    padding-bottom: 48px;
    padding-top: 48px;
  }

  .page-tabs {
    position: static;
  }

  .timeline div,
  .score-table div {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
