:root {
  --bg: #0b1220;
  --panel: #111a2b;
  --panel-2: #16233a;
  --text: #e5ecf6;
  --muted: #98a7c0;
  --line: #253654;
  --primary: #2f80ff;
  --primary-2: #1f65d1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: linear-gradient(160deg, #090f1a 0%, #101d33 100%);
  color: var(--text);
}

a {
  color: #8eb6ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  width: min(1100px, 94vw);
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero {
  background: radial-gradient(circle at right top, #1e3358 0%, #101a2d 52%, #0d1526 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 18px;
}

.kicker {
  margin: 0 0 8px;
  color: #9bc2ff;
  font-size: 13px;
  letter-spacing: 0.4px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.2;
}

.lead {
  margin: 0 0 14px;
  color: #c7d5ea;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-block;
  background: #1b2b47;
  border: 1px solid #2c446d;
  color: #eaf2ff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.07);
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-2) 100%);
  border-color: #1a57b8;
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 21px;
}

.card h3 {
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 17px;
}

.card p {
  margin-top: 6px;
  margin-bottom: 8px;
  color: #cbd7ea;
  line-height: 1.6;
}

.card ul {
  margin: 8px 0;
  padding-left: 20px;
  color: #cbd7ea;
}

.card li {
  margin: 4px 0;
  line-height: 1.55;
}

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

.tab-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.tab-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.tab-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.back-row {
  margin-bottom: 12px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid #335082;
  background: #183057;
  color: #d5e7ff;
}

.footer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .tabs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .grid-2,
  .tabs-grid {
    grid-template-columns: 1fr;
  }
}

code {
  background: #0d1729;
  border: 1px solid #223555;
  border-radius: 6px;
  padding: 2px 6px;
  color: #dce9ff;
}

ol {
  margin: 8px 0;
  padding-left: 20px;
  color: #cbd7ea;
}

ol li {
  margin: 6px 0;
  line-height: 1.6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: center;
}

.shot,
.shot-compact {
  margin: 0;
  background: #09111f;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.shot img,
.shot-compact img,
.tab-card img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption,
.shot-compact figcaption {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.tab-card img {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #09111f;
  margin-bottom: 10px;
}

.tab-card a {
  font-weight: 600;
}

.callout {
  margin: 0 0 18px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #11203a 0%, #0f1930 100%);
  border: 1px solid #28446f;
  border-left: 4px solid #4d9aff;
  border-radius: 12px;
  color: #dbe8ff;
  line-height: 1.6;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.stat-pill {
  background: #13233b;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.stat-pill strong,
.subcard strong {
  display: block;
  margin-bottom: 6px;
  color: #eaf2ff;
}

.stat-pill span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

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

.toc {
  position: sticky;
  top: 18px;
}

.anchor-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.anchor-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: #16233a;
  border: 1px solid var(--line);
  color: #dce8ff;
}

.anchor-list a:hover {
  text-decoration: none;
  background: #1d3050;
}

.section-block {
  margin-bottom: 18px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #9bc2ff;
  font-size: 13px;
  letter-spacing: 0.4px;
}

.section-head h2 {
  margin: 0;
}

.subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.subcard {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.subcard h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 17px;
}

.subcard p,
.subcard ul,
.subcard ol {
  color: #d0dced;
}

.subcard ul,
.subcard ol {
  margin-bottom: 0;
}

.note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

  .toc {
    position: static;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .subgrid {
    grid-template-columns: 1fr;
  }
}
