:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #dce3ed;
  --soft: #eef5ff;
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --accent: #f59e0b;
  --danger: #b42318;
  --shadow: 0 18px 44px rgba(31, 41, 55, 0.08);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 92px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 14px;
  font-weight: 800;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #2563eb, #3b82f6);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-name {
  font-size: 28px;
  letter-spacing: 0;
}

.brand-divider {
  width: 1px;
  height: 44px;
  background: var(--line);
}

.academy-label {
  font-size: 22px;
  font-weight: 760;
}

.academy-search {
  position: relative;
  display: flex;
  flex: 1 1 520px;
  max-width: 760px;
}

.academy-search input {
  width: 100%;
  height: 54px;
  padding: 0 18px 0 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: 0;
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.04);
}

.academy-search input:focus {
  border-color: rgba(37, 99, 235, 0.48);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid #7a8494;
  border-radius: 999px;
  transform: translateY(-50%);
}

.search-icon::after {
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #7a8494;
  content: "";
  transform: rotate(45deg);
}

.topbar nav,
.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
}

.top-actions a {
  white-space: nowrap;
}

.all-sections-link {
  color: var(--brand-strong);
  font-weight: 760;
}

.language-tabs {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 41, 55, 0.06);
}

.language-tabs a {
  display: grid;
  min-width: 42px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.language-tabs a:hover {
  color: var(--brand-strong);
  text-decoration: none;
}

.language-tabs a.active {
  background: var(--brand);
  color: #ffffff;
}

.docs-shell {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  gap: 0;
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.sidebar,
.toc {
  display: none;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: calc(100vh - 92px);
  padding: 24px 16px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: none;
}

.sidebar h2,
.toc h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-section {
  display: grid;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 560;
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(90deg, #eaf2ff, #f5f9ff);
  color: var(--brand-strong);
  text-decoration: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.partial {
  background: #fff5df;
  color: #9a5b00;
}

.status-pill.neutral {
  background: #eef2f7;
  color: #475569;
}

.doc-content {
  min-width: 0;
  padding: 30px 40px 48px;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs span {
  color: #98a2a7;
}

.guide-hero {
  padding: 0 0 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.guide-hero h1 {
  max-width: 900px;
  margin: 12px 0 10px;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-hero {
  padding: 0 0 22px;
}

.section-hero h1 {
  font-size: clamp(34px, 4vw, 56px);
}

.eyebrow {
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.section-cover {
  max-width: 960px;
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.meta-item {
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfc;
}

.meta-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.meta-value {
  display: block;
  margin-top: 6px;
  font-weight: 700;
}

article {
  margin-top: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 36px rgba(31, 41, 55, 0.05);
}

article > h2,
article > h3,
article > p,
article > ul,
article > ol,
article > details,
article > .fill-guide,
article > .field-reference,
article > .note,
article > .voice-explainer,
article > .walkthrough-fallback,
article > .steps {
  margin-left: 26px;
  margin-right: 26px;
}

article h2 {
  margin-top: 38px;
  margin-bottom: 12px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

article h2:first-child {
  margin-top: 32px;
}

article > .walkthrough + h2,
article > .payment-method-examples + h2 {
  margin-top: 44px;
}

article h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 20px;
  letter-spacing: 0;
}

article p,
article li {
  color: #344044;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 14px 16px 14px 54px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfc;
  counter-increment: step;
}

.steps li::before {
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  content: counter(step);
  font-size: 13px;
  font-weight: 800;
}

.note {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: #fff8ea;
  color: #5c4308;
  overflow-wrap: anywhere;
}

.voice-explainer {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
}

.doc-content > .voice-explainer {
  margin-top: 10px;
  margin-bottom: 20px;
}

.voice-explainer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.voice-explainer h2,
.voice-explainer h3,
.voice-explainer p {
  margin: 0;
}

.voice-explainer h2,
.voice-explainer h3 {
  font-size: 18px;
  line-height: 1.25;
}

.voice-explainer p {
  color: #334155;
  font-size: 14px;
}

.voice-explainer audio {
  width: 100%;
}

.voice-explainer[data-audio-state="missing"] audio {
  opacity: 0.52;
}

.voice-explainer-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.source-list {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.source-list li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafa;
  color: #253033;
  overflow-wrap: anywhere;
}

.field-reference {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
}

.field-reference table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: #fbfcfc;
}

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

.field-reference th {
  background: #eef5ff;
  color: #263236;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.field-reference tr:last-child td {
  border-bottom: 0;
}

.field-reference code {
  white-space: nowrap;
}

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

.fill-card {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  box-shadow: none;
}

.fill-card h3 {
  margin-top: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.payment-method-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 26px 8px;
}

.payment-method-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.payment-method-image {
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 132px;
}

.payment-method-image img {
  display: block;
  width: min(128px, 100%);
  height: auto;
}

.payment-method-body h3 {
  margin: 10px 0 8px;
  font-size: 24px;
  line-height: 1.15;
}

.payment-method-body ul {
  margin: 10px 0 12px;
  padding-left: 18px;
}

.payment-method-body li,
.payment-method-body p {
  font-size: 14px;
  line-height: 1.5;
}

.payment-method-visual {
  position: relative;
  display: grid;
  width: 128px;
  height: 128px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  overflow: hidden;
}

.payment-method-qr {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 18px;
  background: linear-gradient(145deg, #111827, #2563eb);
}

.payment-method-qr span {
  display: block;
  width: 24px;
  height: 24px;
  border: 5px solid #fff;
  border-radius: 4px;
}

.payment-method-qr strong {
  grid-column: 1 / -1;
  color: #ffffff;
  font-size: 30px;
  letter-spacing: 0;
}

.payment-method-integration {
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.34), transparent 24%),
    linear-gradient(145deg, #0f766e, #2563eb);
}

.payment-method-integration span {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.payment-method-integration strong {
  font-size: 30px;
  letter-spacing: 0;
}

.technical-reference {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.technical-reference summary {
  cursor: pointer;
  font-weight: 800;
}

.walkthrough {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(31, 41, 55, 0.08);
  scroll-margin-top: 84px;
}

.walkthrough-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas:
    "stage panel"
    "progress progress";
  align-items: stretch;
}

.walkthrough-stage {
  position: relative;
  grid-area: stage;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.2)),
    #edf5ff;
}

.walkthrough-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 1024;
  border: 1px solid #cbd8ea;
  border-radius: 7px;
  background: #edf5ff;
  box-shadow: 0 16px 36px rgba(31, 41, 55, 0.14);
  transition: transform 180ms ease;
  overflow: hidden;
}

.walkthrough-media img,
.walkthrough-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #edf5ff;
}

.walkthrough-media video {
  outline: 0;
}

.walkthrough-fallback {
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

.hotspot {
  position: absolute;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transform: scale(var(--hotspot-scale, 1));
  transform-origin: center;
  z-index: 4;
}

.hotspot::after {
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(37, 99, 235, 0.48);
  border-radius: 999px;
  content: "";
  animation: hotspot-ring 1.45s ease-out infinite;
}

.hotspot-pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.32);
  animation: hotspot-pulse 1.35s ease-in-out infinite;
}

.hotspot-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--brand);
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.18),
    0 3px 10px rgba(37, 99, 235, 0.38);
  transform: translate(-50%, -50%);
}

.hotspot.is-active .hotspot-dot,
.hotspot:focus-visible .hotspot-dot {
  background: #f59e0b;
}

.walkthrough-callout {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 6px;
  width: min(286px, 28vw);
  padding: 14px 16px;
  border: 1px solid rgba(166, 189, 235, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.16);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translate(18px, 10px) scale(var(--callout-scale, 1));
  transform-origin: left top;
  animation: callout-in 240ms ease forwards;
  animation-delay: var(--callout-delay, 0ms);
}

.walkthrough-callout strong {
  color: var(--brand-strong);
  font-size: 15px;
}

.walkthrough-callout span {
  color: #374151;
  font-size: 14px;
  line-height: 1.4;
}

@keyframes hotspot-pulse {
  0% {
    transform: scale(0.72);
    opacity: 0.88;
  }
  70% {
    transform: scale(1.24);
    opacity: 0;
  }
  100% {
    transform: scale(1.24);
    opacity: 0;
  }
}

@keyframes hotspot-ring {
  0% {
    transform: scale(0.76);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.32);
    opacity: 0;
  }
}

@keyframes callout-in {
  to {
    opacity: 1;
    transform: translate(18px, 10px) scale(var(--callout-scale, 1));
  }
}

.walkthrough-panel {
  grid-area: panel;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 32px;
  border-left: 1px solid var(--line);
  background: #ffffff;
}

.walkthrough-kicker {
  display: block;
  margin-bottom: 18px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 800;
}

.walkthrough-dots {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.walkthrough-dot {
  position: relative;
  width: 13px;
  height: 13px;
  padding: 0;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.walkthrough-dot::after {
  display: none;
}

.walkthrough-dot.is-active {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.walkthrough-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.walkthrough-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.18;
}

.walkthrough-copy {
  min-width: 0;
}

.walkthrough-panel p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.6;
}

.walkthrough-info {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(37, 99, 235, 0.32);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  color: #1f3f85;
}

.walkthrough-info strong {
  color: var(--brand-strong);
  font-size: 16px;
}

.walkthrough-info span {
  font-size: 15px;
  line-height: 1.5;
}

.walkthrough-example {
  margin-top: 18px !important;
  font-size: 15px !important;
}

.walkthrough-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.step-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.step-button:hover {
  border-color: var(--brand);
}

.step-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.step-button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.step-button.secondary {
  background: #fff;
}

.walkthrough-progress-footer {
  grid-area: progress;
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(160px, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.walkthrough-progress-footer strong,
.walkthrough-progress-footer span {
  display: block;
}

.walkthrough-progress-footer > div:first-child span {
  color: var(--muted);
  font-size: 14px;
}

.walkthrough-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e5eaf2;
  overflow: hidden;
}

.walkthrough-progress-track span {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #60a5fa);
  transition: width 180ms ease;
}

.step-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfc;
}

.faq summary {
  cursor: pointer;
  font-weight: 750;
}

.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.prev-next a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.prev-next a:hover {
  border-color: var(--brand);
  text-decoration: none;
}

.toc {
  padding: 18px;
  border-left: 1px solid var(--line);
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
}

.planned-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.planned-list li {
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  background: #fbfcfc;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.guide-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: -6px 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 7px;
  object-fit: cover;
}

.guide-card h2 {
  margin: 10px 0;
  font-size: 24px;
}

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

@media (max-width: 1500px) {
  .docs-shell {
    grid-template-columns: 256px minmax(0, 1fr);
  }

  .top-actions a:not(.all-sections-link) {
    display: none;
  }
}

@media (max-width: 1160px) {
  .docs-shell {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .toc {
    display: none;
  }

  .meta-grid,
  .home-grid,
  .fill-guide,
  .payment-method-examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .walkthrough-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "stage"
      "panel"
      "progress";
  }

  .walkthrough-panel {
    min-height: auto;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

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

  .brand {
    flex-wrap: wrap;
  }

  .academy-search {
    flex-basis: auto;
    max-width: none;
    width: 100%;
  }

  .topbar nav {
    flex-wrap: wrap;
  }

  .docs-shell {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .sidebar {
    position: static;
    order: 2;
    min-height: auto;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .doc-content {
    padding: 22px 16px 34px;
  }

  article > h2,
  article > h3,
  article > p,
  article > ul,
  article > ol,
  article > details,
  article > .fill-guide,
  article > .field-reference,
  article > .note,
  article > .voice-explainer,
  article > .walkthrough-fallback,
  article > .steps {
    margin-left: 16px;
    margin-right: 16px;
  }

  .meta-grid,
  .home-grid,
  .planned-list,
  .fill-guide,
  .payment-method-examples,
  .prev-next {
    grid-template-columns: 1fr;
  }

  .payment-method-examples {
    margin-left: 16px;
    margin-right: 16px;
  }

  .payment-method-card {
    grid-template-columns: 1fr;
  }

  .walkthrough-stage {
    min-height: 320px;
    padding: 12px;
  }

  .walkthrough-panel {
    padding: 22px 18px;
  }

  .walkthrough-actions {
    justify-content: space-between;
    min-width: 0;
  }

  .step-button {
    min-width: 0;
    flex: 1;
  }

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

  .walkthrough-callout {
    display: none;
  }
}
