@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;700&family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  --bg-navy: #071421;
  --bg-blue: #11253a;
  --surface: rgba(7, 20, 33, 0.78);
  --surface-strong: rgba(10, 29, 48, 0.92);
  --text-main: #eff8ff;
  --text-muted: #b9d5e8;
  --accent-gold: #ffb347;
  --accent-teal: #57d3c5;
  --line: rgba(255, 255, 255, 0.14);
  --max-width: 1000px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 179, 71, 0.16), transparent 38%),
    radial-gradient(circle at 80% 15%, rgba(87, 211, 197, 0.14), transparent 44%),
    linear-gradient(145deg, var(--bg-navy) 0%, #0b1e30 42%, var(--bg-blue) 100%);
  min-height: 100vh;
  line-height: 1.6;
}

.page-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}

.wrapper {
  width: min(var(--max-width), 100% - 2rem);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(4, 13, 22, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-transform: uppercase;
}

.brand a {
  text-decoration: none;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.96rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: rgba(255, 179, 71, 0.45);
  background: rgba(255, 179, 71, 0.15);
}

main {
  padding: 2.2rem 0 2.8rem;
}

.hero {
  background: linear-gradient(120deg, rgba(255, 179, 71, 0.14), rgba(87, 211, 197, 0.09));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.25rem;
}

.hero h1,
h2,
h3 {
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  line-height: 1.2;
  margin-top: 0;
}

.hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.8rem;
}

.hero p {
  margin-bottom: 0;
  color: var(--text-main);
  max-width: 70ch;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  margin-top: 1rem;
}

.panel h2 {
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
}

.panel p,
.panel li,
.panel td,
.panel th {
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(13, 36, 56, 0.74);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  transition: transform 160ms ease, border-color 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(87, 211, 197, 0.5);
}

.card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  background: rgba(255, 179, 71, 0.19);
  color: #ffd699;
  padding: 0.15rem 0.55rem;
  font-size: 0.82rem;
  margin-bottom: 0.55rem;
  border: 1px solid rgba(255, 179, 71, 0.35);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--text-main);
  font-weight: 700;
}

code.inline {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.12rem 0.35rem;
  color: #fff8ea;
}

.small {
  font-size: 0.92rem;
}

.footer {
  margin-top: 1.4rem;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.notice {
  border-left: 3px solid var(--accent-gold);
  padding-left: 0.8rem;
}

.highlight {
  color: #ffd699;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.guide-nav {
  position: sticky;
  top: 5.25rem;
}

.guide-nav-title {
  margin-top: 0;
  margin-bottom: 0.9rem;
  color: var(--text-main);
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guide-nav nav {
  display: grid;
  gap: 0.45rem;
}

.guide-nav a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.guide-nav a:hover,
.guide-nav a[aria-current="location"] {
  border-color: rgba(87, 211, 197, 0.42);
  background: rgba(87, 211, 197, 0.12);
  color: var(--text-main);
}

.guide-content {
  min-width: 0;
}

.guide-section {
  scroll-margin-top: 5.75rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.hero-facts {
  margin-top: 1.2rem;
}

.info-card,
.item-card {
  background: rgba(13, 36, 56, 0.74);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.info-card h2,
.info-card h3,
.item-card h3 {
  margin-bottom: 0.45rem;
}

.info-card p,
.item-card p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.compact-list {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
}

.compact-list li + li {
  margin-top: 0.35rem;
}

.step-list {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}

.step-list li + li {
  margin-top: 0.45rem;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

@media (max-width: 700px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding: 1.25rem;
  }

  .panel {
    padding: 1rem;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-nav {
    position: static;
  }

  th,
  td {
    font-size: 0.93rem;
  }
}
