:root {
  --ink-900: #102638;
  --ink-800: #17374f;
  --ink-700: #1f4f6d;
  --ink-500: #4f758d;
  --ink-400: #6f8ca2;
  --line-200: #c7d8e6;
  --line-100: #dbe7f1;
  --surface-strong: #ffffff;
  --surface-soft: #f4f9fd;
  --brand-700: #0d6ea6;
  --brand-600: #1a86bc;
  --brand-500: #28a1c9;
  --accent: var(--brand-700);
  --accent-dark: #0a5575;
  --text: var(--ink-900);
  --muted: var(--ink-500);
  --line: var(--line-200);
  --danger: #b84658;
  --ok: #1f6d4c;
  --error: #8d2a2a;
  --shadow-lg: 0 30px 52px -40px rgba(14, 47, 68, 0.55);
  --shadow-md: 0 20px 36px -32px rgba(16, 52, 76, 0.5);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --preview-pulse-duration: 1.2s;
}

* {
  box-sizing: border-box;
}

.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #36566b !important;
  border-radius: 9px 0 0 0;
  padding: 2px 7px !important;
  font-size: 10px !important;
  line-height: 1.35;
}

.leaflet-control-attribution a {
  color: #0d5f8d !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink-900);
  background:
    radial-gradient(920px 420px at -8% -12%, rgba(126, 198, 229, 0.22) 0%, rgba(126, 198, 229, 0) 66%),
    radial-gradient(760px 360px at 108% 12%, rgba(61, 161, 208, 0.14) 0%, rgba(61, 161, 208, 0) 74%),
    linear-gradient(180deg, #f9fcff 0%, #eef5fb 54%, #ebf3f9 100%);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink-900);
  font-family: "Sora", "Manrope", sans-serif;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.topbar {
  position: sticky;
  top: 0.62rem;
  z-index: 30;
  width: min(1180px, calc(100% - 1.35rem));
  margin: 0.78rem auto 0;
  padding: 0.74rem 0.86rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(177, 201, 218, 0.72);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 46px -40px rgba(16, 50, 72, 0.72);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.72rem;
}

.brand {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.66rem;
  font-size: 0.98rem;
  font-weight: 800;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
  box-shadow: 0 0 0 6px rgba(37, 149, 193, 0.16);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.46rem;
  flex-wrap: wrap;
}

.top-actions .btn {
  padding: 0.42rem 0.66rem;
  font-size: 0.76rem;
}

.shell {
  width: min(1180px, calc(100% - 1.35rem));
  margin: 1.04rem auto 1.2rem;
  display: grid;
  gap: 0.94rem;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  align-items: center;
  position: sticky;
  top: 4.45rem;
  z-index: 20;
  padding: 0.28rem 0.34rem;
  border: 1px solid #d6e5f1;
  border-radius: 999px;
  background: rgba(250, 253, 255, 0.92);
  backdrop-filter: blur(8px);
  width: fit-content;
  max-width: 100%;
}

.page-nav a {
  text-decoration: none;
  border: 1px solid #c7d9e8;
  border-radius: 999px;
  background: #edf4fb;
  color: #1f4f6d;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.28rem 0.56rem;
}

.page-nav a:hover {
  background: #e1edf8;
}

.page-nav a:focus-visible,
.btn:focus-visible,
.help-trigger:focus-visible,
.docs-footer-links a:focus-visible {
  outline: 2px solid rgba(25, 133, 182, 0.26);
  outline-offset: 1px;
}

.docs-footer {
  width: min(1180px, calc(100% - 1.35rem));
  margin: 0 auto 1.2rem;
  padding: 0.92rem 1rem;
  display: grid;
  gap: 0.72rem;
}

.docs-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr));
  gap: 0.74rem;
}

.docs-footer-block h2,
.docs-footer-block h3 {
  font-size: 0.92rem;
}

.docs-footer-block p {
  margin-top: 0.3rem;
  color: var(--ink-500);
  font-size: 0.8rem;
  line-height: 1.5;
}

.docs-footer-links {
  margin-top: 0.34rem;
  display: grid;
  gap: 0.24rem;
}

.docs-footer-links a {
  width: max-content;
  font-size: 0.8rem;
  color: #235e83;
  text-decoration: none;
}

.docs-footer-links a:hover {
  text-decoration: underline;
}

.docs-footer-note {
  margin-top: 0.44rem;
  border-radius: var(--radius-sm);
  border: 1px solid #d3e3ef;
  background: #f6fbff;
  padding: 0.44rem 0.5rem;
}

.docs-footer-note a {
  color: #245c83;
  text-decoration: none;
  font-weight: 700;
}

.docs-footer-note a:hover {
  text-decoration: underline;
}

.docs-footer-meta {
  margin: 0.74rem 0 0;
  padding-top: 0.62rem;
  border-top: 1px solid #d3e2ee;
  color: var(--ink-400);
  font-size: 0.77rem;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(244, 249, 254, 0.94) 100%);
  border: 1px solid var(--line-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 1.1rem;
  align-items: flex-end;
  padding: 1.08rem 1.2rem;
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--brand-700);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
}

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

h1 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.06;
}

h2 {
  font-size: 1.08rem;
}

h3 {
  font-size: 0.95rem;
}

.subtitle {
  margin-top: 0.33rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.56;
}

.hero-actions {
  display: flex;
  gap: 0.52rem;
  flex-wrap: wrap;
}

.section {
  padding: 1.04rem 1.12rem;
  display: grid;
  gap: 0.76rem;
}

.collapsible-section {
  overflow: hidden;
}

.collapsible-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  padding: 0.9rem 1.1rem;
}

.collapsible-summary:focus-visible {
  outline: 2px solid #9ec7de;
  outline-offset: -2px;
}

.collapsible-summary::-webkit-details-marker {
  display: none;
}

.collapsible-summary::after {
  content: "▸";
  margin-left: auto;
  color: var(--accent);
  font-size: 0.92rem;
  transition: transform 0.15s ease;
}

.collapsible-section[open] .collapsible-summary::after {
  transform: rotate(90deg);
}

.collapsible-meta {
  font-size: 0.78rem;
  line-height: 1.35;
}

.collapsible-body {
  display: grid;
  gap: 0.76rem;
  padding: 0 1.1rem 1.04rem;
  border-top: 1px solid #d4e5f2;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.46rem;
}

.protocol-grid {
  display: grid;
  gap: 0.62rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.protocol-grid article {
  border: 1px solid #d4e5f1;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9fd 100%);
  padding: 0.72rem 0.74rem;
  display: grid;
  gap: 0.52rem;
}

ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  display: grid;
  gap: 0.28rem;
  line-height: 1.48;
}

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

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

.mode-card {
  border: 1px solid #d4e5f1;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9fd 100%);
  padding: 0.74rem;
  display: grid;
  gap: 0.62rem;
}

.embed-card {
  border: 1px solid #d4e5f1;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9fd 100%);
  padding: 0.74rem;
  display: grid;
  gap: 0.62rem;
}

.mode-card p {
  color: var(--muted);
}

.embed-card p {
  color: var(--muted);
}

.embed-card .row-actions {
  justify-content: space-between;
  align-items: center;
}

.playground-grid {
  display: grid;
  gap: 0.74rem;
  grid-template-columns: minmax(340px, 470px) minmax(0, 1fr);
  align-items: start;
}

.play-panel,
.map-panel {
  border: 1px solid #d4e5f1;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fcfeff 0%, #f2f8fd 100%);
  padding: 0.76rem;
  display: grid;
  gap: 0.66rem;
  align-content: start;
}

.nested-section {
  border: 1px solid #d2e4f1;
  border-radius: var(--radius-sm);
  background: #f8fcff;
  overflow: hidden;
}

.nested-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.44rem;
  padding: 0.52rem 0.58rem;
  color: #214d69;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nested-summary::-webkit-details-marker {
  display: none;
}

.nested-summary::after {
  content: "+";
  color: #2a6483;
  font-size: 0.9rem;
}

.nested-section[open] .nested-summary::after {
  content: "-";
}

.nested-body {
  border-top: 1px solid #d8e8f3;
  padding: 0.6rem 0.62rem;
  display: grid;
  gap: 0.62rem;
}

.map-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.field {
  display: grid;
  gap: 0.32rem;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.42rem;
}

label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.56rem 0.64rem;
  font: inherit;
  font-size: 0.89rem;
  background: #fff;
  color: var(--text);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(25, 133, 182, 0.26);
  outline-offset: 1px;
  border-color: #88bad8;
}

textarea {
  resize: vertical;
}

.btn {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.54rem 0.84rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-600) 58%, var(--brand-500) 100%);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn-secondary {
  color: #1f506e;
  border-color: #c4d8e8;
  background: #edf4fb;
}

.btn-secondary:hover {
  background: #e1edf8;
  filter: none;
}

.btn-small {
  padding: 0.42rem 0.64rem;
  font-size: 0.76rem;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.help-trigger {
  border: 1px solid #9dc3d9;
  border-radius: 999px;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef7fd;
  color: #1f5b7a;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}

.help-trigger:hover {
  background: #e3f1fb;
  border-color: #7fabca;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.map-launch-links {
  margin-bottom: 0.16rem;
  align-items: center;
  border: 1px solid #d2e4f1;
  border-radius: 10px;
  background: #f4f9fe;
  padding: 0.46rem 0.52rem;
}

.launch-title-row {
  flex: 1 0 100%;
}

.launch-title {
  margin: 0;
  font-size: 0.78rem;
  color: #1c455e;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn.is-disabled {
  pointer-events: none;
  opacity: 0.54;
}

.sim-card {
  display: grid;
  gap: 0.55rem;
}

.sim-grid {
  display: grid;
  gap: 0.5rem;
}

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

.sim-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.slider-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

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

.mono {
  font-family: "ui-monospace", "SFMono-Regular", "Consolas", monospace;
}

.status {
  margin: 0;
  padding: 0.58rem 0.64rem;
  border-radius: 10px;
  border: 1px dashed var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.46;
  min-height: 2.2rem;
}

.status.ok {
  border-style: solid;
  border-color: #a4d8bb;
  background: #f0fbf5;
  color: var(--ok);
}

.status.error {
  border-style: solid;
  border-color: #ebb6b6;
  background: #fff3f3;
  color: var(--error);
}

.code {
  margin: 0;
  border: 1px solid #d3e5f2;
  border-radius: 10px;
  background: #fff;
  padding: 0.58rem 0.62rem;
  font-size: 0.74rem;
  line-height: 1.5;
  overflow: auto;
}

#summary-example {
  white-space: pre-wrap;
}

.summary-preview {
  border: 1px solid #d3e5f2;
  border-radius: 10px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 0.58rem 0.62rem;
  min-height: 2.8rem;
  display: grid;
  gap: 0.48rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: stretch;
}

.summary-metric {
  border: 1px solid #cfe1ee;
  border-radius: 9px;
  background: #ffffff;
  padding: 0.48rem 0.54rem;
  display: grid;
  gap: 0.2rem;
}

.summary-metric-label {
  display: block;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #527187;
  font-weight: 700;
}

.summary-metric-value {
  display: block;
  font-size: 1.04rem;
  color: #11344a;
  line-height: 1.1;
  font-weight: 700;
}

.summary-empty {
  grid-column: 1 / -1;
  border: 1px dashed #c9dceb;
  border-radius: 9px;
  background: #f8fcff;
  color: #547287;
  padding: 0.56rem 0.62rem;
  font-size: 0.78rem;
  line-height: 1.4;
}

#playground-map {
  width: 100%;
  height: 430px;
  border: 1px solid #cfe3f0;
  border-radius: 10px;
}

.map-visual-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.preview-div-icon {
  background: transparent;
  border: 0;
}

.preview-pin {
  position: relative;
  display: block;
}

.preview-pin--ring {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  border: 3px solid var(--preview-color, #1f77b4);
  box-shadow: 0 0 0 1px rgba(5, 18, 27, 0.24), 0 2px 6px rgba(5, 18, 27, 0.2);
}

.preview-pin--dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--preview-color, #1f77b4);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(5, 18, 27, 0.24), 0 2px 6px rgba(5, 18, 27, 0.2);
}

.preview-pin--pin {
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--preview-color, #1f77b4);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(5, 18, 27, 0.24), 0 3px 7px rgba(5, 18, 27, 0.2);
}

.preview-pin--pin::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  background: rgba(255, 255, 255, 0.9);
}

.preview-pin.is-pulse {
  animation: preview-pin-pulse var(--preview-pulse-duration, 1.2s) cubic-bezier(0.2, 0.78, 0.25, 1);
}

@keyframes preview-pin-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 0 0 0 rgba(255, 255, 255, 0);
  }
  45% {
    transform: scale(1.42);
    box-shadow:
      0 0 0 8px rgba(255, 255, 255, 0.28),
      0 0 0 17px rgba(255, 255, 255, 0.12);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.preview-cluster {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.93);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.46), var(--cluster-color, #1f77b4));
  color: #f7fcff;
  font-size: 0.76rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(5, 18, 27, 0.28), 0 4px 10px rgba(5, 18, 27, 0.22);
}

.preview-cluster.is-pulse {
  animation: preview-cluster-pulse var(--preview-pulse-duration, 1.2s) cubic-bezier(0.2, 0.78, 0.25, 1);
}

@keyframes preview-cluster-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 4px 10px rgba(5, 18, 27, 0.22);
  }
  45% {
    transform: scale(1.28);
    box-shadow:
      0 0 0 12px rgba(255, 255, 255, 0.24),
      0 0 0 21px rgba(255, 255, 255, 0.1),
      0 5px 12px rgba(5, 18, 27, 0.22);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 4px 10px rgba(5, 18, 27, 0.22);
  }
}

.stats-row {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-row > div {
  border: 1px solid #d2e4f1;
  border-radius: 10px;
  background: #fff;
  padding: 0.46rem 0.52rem;
  display: grid;
  gap: 0.14rem;
}

.stats-row span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.stats-row strong {
  font-size: 0.88rem;
}

.legend {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.32rem;
}

.legend li {
  border: 1px solid #d2e5f2;
  border-radius: 9px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.5rem;
}

.legend-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.16);
}

.tile-style-grid {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
}

.tile-style-card {
  border: 1px solid #c7ddeb;
  background: #fff;
  border-radius: 10px;
  padding: 0.34rem;
  display: grid;
  gap: 0.27rem;
  cursor: pointer;
}

.tile-style-card:hover {
  border-color: #8db5cc;
}

.tile-style-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(13, 113, 158, 0.22);
}

.tile-preview {
  width: 100%;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #d7e8f3;
  background: #eef6fb;
}

.tile-name {
  font-size: 0.71rem;
  font-weight: 700;
  color: #1c455e;
}

.swagger-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.swagger-ui .topbar {
  display: none;
}

.hidden {
  display: none !important;
}

.help-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(10, 31, 47, 0.45);
  display: grid;
  place-items: center;
  padding: 0.8rem;
}

.help-dialog {
  width: min(740px, 100%);
  max-height: min(84vh, 760px);
  overflow: hidden;
  display: grid;
  gap: 0.5rem;
  padding: 0.85rem;
}

.help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.help-body {
  overflow: auto;
  padding-right: 0.2rem;
  display: grid;
  gap: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.help-body ul {
  margin: 0;
  padding-left: 1rem;
}

.help-body code {
  background: #f0f6fb;
  border: 1px solid #d7e6f1;
  padding: 0.05rem 0.24rem;
  border-radius: 5px;
}

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

  #playground-map {
    height: 400px;
  }
}

@media (max-width: 980px) {
  .protocol-grid,
  .mode-grid,
  .embed-grid {
    grid-template-columns: 1fr;
  }

  .docs-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sim-grid-3 {
    grid-template-columns: 1fr;
  }

  .map-visual-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.42rem;
  }

  .top-actions .btn {
    width: 100%;
    text-align: center;
  }

  .shell {
    width: calc(100% - 0.9rem);
    margin: 0.5rem auto 1rem;
  }

  .docs-footer {
    width: calc(100% - 0.9rem);
    margin: 0 auto 0.95rem;
  }

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

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
    text-align: center;
  }

  .page-nav {
    gap: 0.3rem;
    position: static;
    width: 100%;
    border-radius: var(--radius-md);
  }

  .page-nav a {
    flex: 1 1 calc(50% - 0.3rem);
    text-align: center;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .sim-grid-2 {
    grid-template-columns: 1fr;
  }

  .docs-footer-grid {
    grid-template-columns: 1fr;
  }
}
