:root {
  --bg: #04131c;
  --bg-soft: #0a202d;
  --panel: #102938;
  --panel-soft: #14384b;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #ebf6fb;
  --muted: #acc5d1;
  --accent: #23d4c5;
  --accent-soft: rgba(35, 212, 197, 0.18);
  --ticket: #5ec8ff;
  --warning-bg: rgba(255, 180, 70, 0.16);
  --warning-border: rgba(255, 180, 70, 0.4);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 560px at 8% -8%, #124560 0%, transparent 62%),
    radial-gradient(920px 520px at 98% 12%, #0d3950 0%, transparent 60%),
    linear-gradient(180deg, #031018 0%, var(--bg) 100%);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(14px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 19, 28, 0.9);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand img {
  width: 68px;
  height: 26px;
  object-fit: contain;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.back-home {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
}

.back-home:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-switch a {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.78rem;
}

.lang-switch a.active {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.docs-shell {
  width: min(1340px, calc(100% - 30px));
  margin: 18px auto 56px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
}

.sidebar {
  position: sticky;
  top: 78px;
  align-self: start;
  min-width: 0;
  max-height: calc(100vh - 95px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  padding: 16px;
  box-shadow: var(--shadow);
}

.sidebar-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #9ecfe3;
}

.sidebar-title {
  margin: 8px 0 10px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.sidebar-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.sidebar-nav {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-group-title {
  margin: 0;
  color: #9ad5ef;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-group a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  border-left: 2px solid transparent;
  padding: 4px 0 4px 8px;
  font-size: 0.86rem;
}

.nav-group a:hover {
  color: var(--text);
  border-left-color: var(--accent);
}

.sidebar-note {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.sidebar-note strong {
  color: var(--text);
}

.sidebar-note-accent {
  border-color: rgba(35, 212, 197, 0.34);
  background: rgba(35, 212, 197, 0.1);
}

.content {
  position: relative;
  min-width: 0;
}

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

.doc-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  padding: 18px;
  box-shadow: var(--shadow);
  scroll-margin-top: 86px;
}

.ticket-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(94, 200, 255, 0.5);
  background: rgba(94, 200, 255, 0.14);
  color: #d8f2ff;
  font-size: 0.73rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 10px;
  margin-bottom: 10px;
}

.doc-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.28rem, 2.1vw, 1.65rem);
  line-height: 1.25;
}

.doc-card h3 {
  margin: 14px 0 8px;
  font-size: 1.03rem;
  line-height: 1.3;
}

.doc-card p,
.doc-card li {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.doc-card p + p,
.doc-card ul + p,
.doc-card ol + p,
.doc-card p + ul,
.doc-card p + ol,
.doc-card ul + ul,
.doc-card ol + ol {
  margin-top: 10px;
}

.doc-card ul,
.doc-card ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.doc-card li strong,
.doc-card p strong,
.doc-card td strong {
  color: var(--text);
}

.hero-intro {
  border-color: rgba(35, 212, 197, 0.42);
  background: linear-gradient(135deg, rgba(35, 212, 197, 0.14), rgba(94, 200, 255, 0.07));
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  font-weight: 600;
}

.cta-link:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.cta-link-strong {
  border-color: rgba(35, 212, 197, 0.42);
  background: rgba(35, 212, 197, 0.18);
  color: #eafffd;
}

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

.impact-card,
.example-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
}

.impact-card h3,
.example-card h3 {
  margin-top: 0;
}

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

.depth-list li {
  border-left: 3px solid rgba(35, 212, 197, 0.45);
  padding-left: 10px;
}

.depth-label {
  display: block;
  color: #b6ebff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.callout {
  border-radius: 12px;
  border: 1px solid;
  padding: 10px;
  margin-top: 12px;
}

.callout.warning {
  border-color: var(--warning-border);
  background: var(--warning-bg);
}

.callout.info {
  border-color: rgba(94, 200, 255, 0.45);
  background: rgba(94, 200, 255, 0.12);
}

.pills {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  color: #d7eef9;
  background: rgba(255, 255, 255, 0.04);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  min-width: 620px;
}

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

th {
  color: var(--text);
}

td {
  color: var(--muted);
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

code {
  font-family: "Fira Code", "Consolas", monospace;
  font-size: 0.87rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px 6px;
  color: #cbecff;
}

pre {
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #081b28;
  padding: 12px;
  overflow-x: auto;
}

pre code {
  padding: 0;
  background: transparent;
}

details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
}

details + details {
  margin-top: 10px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

details[open] summary {
  margin-bottom: 8px;
}

@media (min-width: 1040px) {
  .content {
    padding-left: 28px;
  }

  .content::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, rgba(94, 200, 255, 0.34), rgba(35, 212, 197, 0.08));
  }

  .doc-card::before {
    content: "";
    position: absolute;
    left: -25px;
    top: 26px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--ticket);
    box-shadow: 0 0 0 5px rgba(94, 200, 255, 0.18);
  }
}

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

@media (max-width: 980px) {
  .docs-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-height: none;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 720px) {
  .impact-grid,
  .example-grid {
    grid-template-columns: 1fr;
  }

  .back-home {
    display: none;
  }

  .doc-card {
    padding: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-link {
    width: 100%;
  }
}
