:root {
  --ink: #0B1220;
  --panel: #141E33;
  --panel-hi: #1A2540;
  --text: #E9EDF5;
  --gold: #D4A017;
  --mute: #828CA3;
  --line: rgba(130, 140, 163, .24);
  --font-head: "Chivo", sans-serif;
  --font-body: "Cardo", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html.js .lift-in {
  opacity: 0;
  transform: translateY(10px);
}

html.js .lift-in.is-up {
  opacity: 1;
  transform: none;
}

.no-js .lift-in {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lift-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
}

@media (min-width: 1100px) {
  body { font-size: 18px; }
}

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

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: #E4B53A; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--text);
}

h1 {
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 54px);
  letter-spacing: -0.015em;
  margin-bottom: 0.45em;
}

h2 { font-size: clamp(24px, 2.4vw, 32px); }
h3 { font-size: 1.15rem; font-weight: 700; }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li + li { margin-top: 0.35em; }

.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 18, 32, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin-right: auto;
  flex-shrink: 0;
}

.brandmark:hover { color: var(--text); }

.brandmark svg {
  width: 24px;
  height: 24px;
  display: block;
}

.navline {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navline a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.navline a:hover,
.navline a.is-on { color: var(--gold); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px 11px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

.cta-solid,
.cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.cta-solid {
  background: #D4A017;
  color: #141E33;
  border-color: #D4A017;
}

.cta-solid:hover {
  background: #E4B53A;
  color: #141E33;
  border-color: #E4B53A;
}

.cta-ghost {
  background: transparent;
  color: #E9EDF5;
  border-color: var(--gold);
}

.cta-ghost:hover {
  background: rgba(212, 160, 23, .14);
  color: #E9EDF5;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.split-90-110 {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
}

@media (max-width: 900px) {
  .split-90-110 { grid-template-columns: 1fr; }
}

.panel,
.tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: background .2s ease;
}

.panel:hover,
.tile:hover { background: var(--panel-hi); }

.panel__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 18, 32, .35);
  border-radius: 10px 10px 0 0;
}

.panel__label,
.tile__code,
.kicker {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
}

.tile__code {
  color: var(--gold);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: .08em;
}

.panel__meta,
.tile__meta {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}

.panel__body { padding: 18px 18px 20px; }

.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(262px, 1fr));
  gap: 18px;
}

.tile { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.tile h3 { font-size: 1.02rem; margin: 0; }
.tile p { color: var(--mute); margin: 0; }

.readout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}

.readout__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.readout__cap {
  display: block;
  color: var(--mute);
  font-size: 0.92em;
  margin-top: 4px;
}

.readouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 4px;
}

.chip {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  background: var(--panel);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 28px; }

.rail {
  position: sticky;
  top: 92px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rail__link {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.rail__link:hover { color: var(--gold); }

.datatable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.datatable th,
.datatable td {
  border-bottom: 1px solid var(--line);
  padding: 12px 12px 12px 0;
  text-align: left;
  vertical-align: top;
}

.datatable th {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
}

.datatable .mono {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--gold);
  font-size: 13px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 8px;
  vertical-align: middle;
}

.status-dot.is-open { background: #6fbf93; }
.status-dot.is-fill { background: var(--gold); }
.status-dot.is-wait { background: var(--mute); }

.qa { display: flex; flex-direction: column; gap: 12px; }

.qa__q {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.qa__a { color: var(--text); }

.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 16px 18px;
}

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

.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 16px;
  border-radius: 7px;
}

.field textarea { min-height: 120px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}

.field-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95em;
  color: var(--mute);
}

.field-check input { margin-top: 5px; }

.hint {
  color: var(--mute);
  font-size: 0.92em;
  margin: 0;
}

.honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mapframe {
  width: 100%;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.cookiebar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.cookiebar[hidden] {
  display: none;
}

.cookiebar p { margin: 0; max-width: 70ch; }

.cookiebar__btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.footmega {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  padding: 48px 0 28px;
}

.footmega__col h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 14px;
}

.footmega__col p,
.footmega__col li,
.footmega__col a { color: var(--text); font-size: 0.95em; }

.footmega__col ul { list-style: none; margin: 0; padding: 0; }
.footmega__col li + li { margin-top: 8px; }
.footmega__col a { text-decoration: none; }
.footmega__col a:hover { color: var(--gold); }

.footmega .brandmark { margin: 0 0 12px; font-size: 16px; }
.footmega .brandmark svg { width: 20px; height: 20px; }

.footbase {
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
  color: var(--mute);
  font-size: 0.9em;
  display: grid;
  gap: 8px;
}

.lift-in {
  opacity: 1;
  transform: none;
  transition: opacity 420ms ease, transform 420ms ease;
}

.page {
  padding: 42px 0 64px;
}

.pagehead { margin-bottom: 28px; }

.lead { font-size: 1.05em; }

.media {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

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

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 14px 0 14px 52px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-block { margin-bottom: 22px; scroll-margin-top: 96px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-lg { display: flex; flex-direction: column; gap: 34px; }
.band { margin: 42px 0; }
.mini p { font-size: 0.95em; color: var(--mute); }

.cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--gold);
}

.err {
  color: #f0b4b4;
  font-size: 0.95em;
}

.ok-banner {
  border-left: 3px solid var(--gold);
}

@media (max-width: 980px) {
  .footmega { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .topbar__inner { flex-wrap: wrap; }
  .topbar .cta-solid { order: 2; }
  .nav-toggle { order: 3; }
  .navline {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    order: 4;
    padding: 8px 0 16px;
    gap: 12px;
  }
  .navline.is-open { display: flex; }
  .readouts { grid-template-columns: 1fr; }
  .rail { position: static; }
  .datatable { display: block; overflow-x: auto; }
  .cookiebar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .footmega { grid-template-columns: 1fr; }
  .topbar .cta-solid { padding: 10px 12px; }
}
