:root {
  --bg: #f8f3ed;
  --paper: #fcf8f4;
  --sidebar: #f3ebe3;
  --card: #f0e7de;
  --ink: #2b2421;
  --muted: #6e635d;
  --line: #e5dbd1;
  --accent: #6b2d30;
  --accent-soft: #f3e2e3;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --docs-gutter: 1.5rem;
}

* { box-sizing: border-box; }

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

body.docs {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Top bar */
.topbar {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.55rem 1rem;
}
.topbar a { color: inherit; }

/* Header */
.topnav {
  background: var(--bg);
  border-bottom: 1px solid transparent;
}
.topnav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
}
.logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.32em;
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 1.7rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a {
  padding-bottom: 0.2rem;
  border-bottom: 1.5px solid transparent;
}
.nav-links a.is-active,
.nav-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-search {
  position: relative;
  min-width: 230px;
}
.search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.35rem 0.2rem 0.9rem;
  min-width: 230px;
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  width: 100%;
  color: var(--ink);
}
.search button {
  border: 0;
  background: transparent;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.search-suggest {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: min(60vh, 360px);
  overflow: auto;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(60, 40, 30, 0.12);
}
.search-suggest__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
}
.search-suggest__item:hover,
.search-suggest__item.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}
.search-suggest__group {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-suggest__empty {
  margin: 0;
  padding: 0.75rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.search-page__hits {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.85rem 0 1.25rem;
  max-width: 44rem;
}
.search-page__hit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}
.search-page__hit:hover {
  border-color: rgba(107, 45, 48, 0.35);
  background: var(--accent-soft);
  color: var(--accent);
}
.search-page__hit-group {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-page__empty {
  color: var(--muted);
}

.menu-btn {
  display: none;
  width: calc(100% - 2.5rem);
  margin: 0.75rem 1.25rem 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  text-align: left;
}

/* Shell: left + center in one container */
.shell {
  max-width: 1440px;
  margin: 1.75rem auto 3rem;
  padding: 1.25rem 1.4rem 2.25rem;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  /* overflow must stay visible so sidebar position:sticky works */
  overflow: visible;
  box-shadow: 0 16px 48px rgba(60, 40, 30, 0.06);
  position: relative;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  border-radius: 18px 0 0 18px;
  padding: 1.15rem 0.95rem 1.2rem;
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
  position: sticky;
  top: 1.75rem;
  align-self: start;
  z-index: 2;
}
.side-cta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 0.85rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}
.side-cta:hover { background: #5a262a; }
.nav-label {
  margin: 1.35rem 0 0.45rem;
  padding: 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-label:first-of-type {
  margin-top: 0.35rem;
}
.nav-group {
  margin: 0.15rem 0;
}
.nav-label--toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.85rem 0 0.15rem;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.nav-group:first-of-type .nav-label--toggle {
  margin-top: 0.25rem;
}
.nav-label--toggle:hover {
  background: rgba(255, 255, 255, 0.45);
}
.nav-caret {
  flex: 0 0 14px;
  color: #8a7f78;
  transition: transform 0.25s ease;
}
.nav-group.is-open > .nav-label--toggle > .nav-caret {
  transform: rotate(180deg);
}
.nav-group__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.nav-group.is-open .nav-group__panel {
  grid-template-rows: 1fr;
}
.nav-group__inner {
  overflow: hidden;
  min-height: 0;
}
.nav-group__inner .nav-item {
  padding-left: 0.85rem;
}
.nav-subfold {
  margin: 0.15rem 0.15rem 0.35rem 0.55rem;
  border: 1px solid rgba(108, 74, 62, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
  overflow: hidden;
}
.nav-subfold__head {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
}
.nav-subfold__link {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  border-radius: 0;
  padding-left: 0.7rem;
  padding-right: 0.35rem;
}
.nav-subfold__link.is-active {
  background: transparent;
  box-shadow: none;
}
.nav-subfold__link.is-active::before {
  display: none;
}
.nav-subfold.is-open > .nav-subfold__head,
.nav-subfold:has(.nav-item.is-active) > .nav-subfold__head {
  background: rgba(107, 45, 48, 0.06);
}
.nav-subfold__toggle {
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(108, 74, 62, 0.1);
  background: transparent;
  color: #8a7f78;
  cursor: pointer;
}
.nav-subfold__toggle:hover {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}
.nav-subfold__toggle .nav-caret {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}
.nav-subfold.is-open > .nav-subfold__head .nav-subfold__toggle .nav-caret {
  transform: rotate(180deg);
}
.nav-subfold__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
  border-top: 0 solid transparent;
}
.nav-subfold.is-open > .nav-subfold__panel {
  grid-template-rows: 1fr;
  border-top-color: rgba(108, 74, 62, 0.1);
  border-top-width: 1px;
}
.nav-subfold__inner {
  overflow: hidden;
  min-height: 0;
}
.nav-sub {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0;
  padding: 0.35rem 0.35rem 0.45rem 0.45rem;
}
.nav-item--nested {
  padding-left: 0.7rem;
  font-size: 0.84rem;
  color: #6a615c;
  border-radius: 7px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.6rem;
  border-radius: 8px;
  color: #5c534e;
  font-size: 0.88rem;
  font-weight: 450;
  position: relative;
}
.nav-item svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item span {
  margin-left: auto;
  color: #b6aaa3;
}
.nav-item:hover { background: rgba(255,255,255,0.55); }
.nav-item.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.help-card {
  margin-top: auto;
  padding: 1rem;
  border-radius: 12px;
  background: #ebe1d6;
}
.help-ico {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
}
.help-card p {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}
.help-card strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.1rem;
}
.help-card > a {
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Main content */
.content {
  min-width: 0;
  padding: 1.25rem 1.4rem 2.25rem;
  background: var(--paper);
  border-radius: 0 18px 18px 0;
}

/* Hero: tan copy left + fashion photo right */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 300px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: #e8d7c6;
}
.hero-copy {
  padding: 2.1rem 1.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-media {
  min-height: 280px;
  background: #d9c4b2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}
.hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
}
.lede {
  margin: 0 0 1.2rem;
  color: #5d534e;
  font-size: 0.95rem;
  line-height: 1.55;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1.15rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}
.btn:hover { background: #5a262a; color: #fff; }

/* Intro + feature card */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2.4rem;
}
.intro-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.8vw, 2.15rem);
  font-weight: 600;
  line-height: 1.15;
}
.intro-copy p {
  margin: 0 0 0.95rem;
  color: #4d453f;
  font-size: 0.96rem;
  line-height: 1.7;
}
.feature-card {
  background: var(--card);
  border-radius: 14px;
  padding: 1.1rem 1rem;
  display: grid;
  gap: 1rem;
}
.feature-card--checks {
  gap: 0.9rem;
  align-content: start;
}
.feature-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.7rem;
  align-items: center;
}
.feature-ico {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  line-height: 1;
}
.feature-row strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
}

/* Quick start */
.quick h2,
.with-rule {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.with-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section-lede {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.step {
  background: var(--card);
  border-radius: 14px;
  padding: 0.95rem;
}
.step-num {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 0.7rem;
  position: relative;
}
.step-num::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.35;
}
.step-body {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.55rem;
  align-items: start;
}
.step-ico {
  color: #8a6d5d;
  width: 40px;
  height: 40px;
}
.step-ico svg { width: 40px; height: 40px; }
.step h3 {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 700;
}
.step p {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}
.step a {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}
.step a:hover { text-decoration: underline; }

/* Article / index pages */
.doc-article h1 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
}
.doc-article .lede {
  margin: 0 0 1.5rem;
  max-width: 40rem;
}
/* One setting group = one wrapped block */
.doc-block {
  margin: 0 0 1.75rem;
  padding: 0;
  scroll-margin-top: 5.5rem;
}
.doc-block__inner {
  padding: 1.35rem 1.25rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffcf8;
  box-shadow: 0 8px 22px rgba(60, 40, 30, 0.04);
}
.doc-block--intro .doc-block__inner {
  background: var(--paper);
  border-color: rgba(107, 45, 60, 0.18);
}
.doc-block + .doc-block {
  margin-top: 2rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(107, 45, 60, 0.28);
}
.doc-block__inner > h2:first-child,
.doc-block__inner > h1:first-child {
  margin-top: 0;
}
.doc-article h2 {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  scroll-margin-top: 5.5rem;
}
.doc-article h3 {
  margin: 1.35rem 0 0.4rem;
  max-width: 42rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #2c2622;
  scroll-margin-top: 1.1rem;
}
.doc-article p {
  margin: 0 0 0.9rem;
  color: #4d453f;
  font-size: 0.96rem;
  line-height: 1.7;
  max-width: 42rem;
}
.doc-article a,
.intro-copy a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 2px;
}
.doc-article a:hover,
.intro-copy a:hover {
  text-decoration: underline;
}
/* Buttons inside articles keep solid CTA styling */
.doc-article a.btn,
.doc-article a.btn:hover {
  color: #fff;
  text-decoration: none;
  background: var(--accent);
}
.doc-article a.btn:hover {
  background: #5a262a;
}
/* Whole-card links must never inherit article underline styles */
.doc-article a.support-card,
.doc-article a.support-card:hover,
.doc-article a.support-card *,
.doc-article a.support-card:hover * {
  color: inherit;
  text-decoration: none;
}
.doc-path {
  margin: 0 0 0.85rem;
  max-width: 42rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5c534c;
}
.doc-path strong {
  color: #2c2622;
  font-weight: 600;
}
.doc-list {
  margin: 0 0 1.35rem;
  padding-left: 1.2rem;
  max-width: 42rem;
  color: #4d453f;
  font-size: 0.94rem;
  line-height: 1.65;
}
.doc-list li {
  margin: 0 0 0.45rem;
}
.doc-list li::marker {
  color: var(--accent);
}
.doc-list--nested {
  margin: 0.45rem 0 0.65rem;
  padding-left: 1.1rem;
}
.doc-list--nested li {
  margin-bottom: 0.35rem;
}
.doc-article kbd {
  display: inline-block;
  padding: 0.05em 0.4em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  font-size: 0.85em;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.doc-article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84em;
  padding: 0.08em 0.35em;
  border-radius: 4px;
  background: rgba(107, 45, 60, 0.08);
  color: #5a262a;
}
.doc-pre {
  margin: 0.85rem 0 1.15rem;
  max-width: 44rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.doc-pre code {
  display: block;
  padding: 0;
  background: transparent;
  color: #4d453f;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.doc-table-wrap {
  margin: 0.85rem 0 1.15rem;
  max-width: 44rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.45;
}
.doc-table th,
.doc-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: #4d453f;
}
.doc-table th {
  background: #f7f1ea;
  color: #2c2622;
  font-weight: 700;
  font-size: 0.82rem;
}
.doc-table tr:last-child td {
  border-bottom: 0;
}
.doc-figure {
  margin: 1.1rem 0 1.15rem;
  max-width: none;
  width: 100%;
}
/* Screenshots: avoid forced stretch blur; keep pixels as sharp as the column allows */
.doc-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(60, 40, 30, 0.08);
  image-rendering: auto;
}
.doc-figure__zoom {
  cursor: zoom-in;
}
.doc-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}
.doc-figure--placeholder {
  margin: 1.1rem 0 1.15rem;
}
.doc-figure img.doc-figure__placeholder,
.doc-figure--placeholder img {
  width: 100%;
  max-width: 100%;
  height: auto;
  cursor: default;
  box-shadow: none;
  background: #e8e8e8;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* Same-tab image viewer — fit screen, no scroll, no crop */
html.doc-lightbox-open,
body.doc-lightbox-open {
  overflow: hidden !important;
  height: 100% !important;
  overscroll-behavior: none;
}
.doc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: rgba(18, 14, 12, 0.94);
  cursor: zoom-out;
}
.doc-lightbox[hidden] {
  display: none !important;
}
.doc-lightbox__img {
  display: block;
  margin: 0;
  padding: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  cursor: default;
}
.doc-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.doc-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}
.doc-lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  max-width: 100%;
  max-height: 100%;
  pointer-events: none;
}
.doc-lightbox__stage .doc-lightbox__img {
  pointer-events: auto;
}
.doc-lightbox__caption,
.doc-lightbox__status {
  margin: 0;
  max-width: min(920px, 92vw);
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.4;
}
.doc-lightbox__status {
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}
.doc-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.doc-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.28);
}
.doc-lightbox__prev {
  left: 0.85rem;
}
.doc-lightbox__next {
  right: 0.85rem;
}
.doc-lightbox__nav[hidden] {
  display: none !important;
}

/* Multi-image docs slider (use whenever a topic has 2+ related screenshots) */
.doc-slider {
  position: relative;
}
.doc-slider__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.doc-slider__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}
.doc-slider__slide.is-active {
  position: relative;
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.doc-slider__slide.is-leaving {
  z-index: 2;
  opacity: 0;
  visibility: hidden;
}
.doc-slider__slide img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(60, 40, 30, 0.08);
}
/* Arrows over the image */
.doc-slider__btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 14, 12, 0.48);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}
.doc-slider__btn:hover {
  background: rgba(18, 14, 12, 0.68);
}
.doc-slider__btn:active {
  transform: translateY(-50%) scale(0.96);
}
.doc-slider__prev {
  left: 0.75rem;
}
.doc-slider__next {
  right: 0.75rem;
}
.doc-slider__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.7rem;
}
.doc-slider__dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.doc-slider__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(92, 29, 38, 0.22);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.doc-slider__dot.is-active {
  background: #5c1d26;
  transform: scale(1.15);
}
.doc-slider__status {
  min-width: 3.2rem;
  text-align: center;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.doc-slider__caption {
  margin-top: 0.55rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
  transition: opacity 0.35s ease;
}
.doc-slider__panels {
  margin-top: 1.1rem;
  text-align: left;
}
.doc-slider__panel {
  display: none;
  margin: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.doc-slider__panel.is-active {
  display: block;
  opacity: 1;
}
.doc-slider__panel > :first-child {
  margin-top: 0;
}
.doc-slider__panel h3,
.doc-slider__panel h4 {
  margin-top: 0;
}
@media (prefers-reduced-motion: reduce) {
  .doc-slider__slide,
  .doc-slider__btn,
  .doc-slider__dot,
  .doc-slider__caption,
  .doc-slider__panel {
    transition: none;
  }
}
/* Support pages */
.support-hero {
  margin: 0 0 1.25rem;
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #ebe3da 0%, #f7f1ea 55%, #f3e2e3 100%);
  border: 1px solid var(--line);
}
.support-hero h1 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.support-hero .lede {
  margin: 0;
  max-width: 38rem;
  color: #5a514b;
  font-size: 1.02rem;
}
.support-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0 0 1.5rem;
}
@media (min-width: 1100px) {
  .support-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.support-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.1rem 1.2rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(60, 40, 30, 0.05);
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.support-card:hover {
  border-color: rgba(107, 45, 48, 0.35);
  transform: translateY(-2px);
  text-decoration: none !important;
}
.support-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.support-card__icon svg {
  width: 18px;
  height: 18px;
}
.support-card h2,
.support-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}
.support-card p {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}
.support-card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent) !important;
  text-decoration: none !important;
}
.support-card:hover .support-card__link {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.support-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  margin: 0 0 1.35rem;
}
.support-split--form {
  grid-template-columns: minmax(0, 1.85fr) minmax(11.5rem, 0.55fr);
  gap: 1.15rem;
  align-items: start;
}
.support-split--form .support-split__main {
  min-width: 0;
}
.support-split--form .support-form {
  max-width: none;
  width: 100%;
}
.support-split--form .support-panel--muted {
  padding: 0.9rem 0.95rem 1rem;
  position: sticky;
  top: 5.5rem;
}
.support-split--form .support-panel--muted h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.support-split--form .support-panel--muted ul {
  font-size: 0.82rem;
  line-height: 1.45;
  padding-left: 0.95rem;
}
.support-split--form .support-panel--muted li + li {
  margin-top: 0.4rem;
}
.support-split--form .support-panel__note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.45;
}
.support-panel {
  padding: 1.15rem 1.2rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.support-panel h2,
.support-panel h3 {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-size: 1.35rem;
}
.support-panel p {
  margin: 0 0 0.75rem;
  color: #4d453f;
  font-size: 0.95rem;
  line-height: 1.55;
}
.support-panel p:last-child {
  margin-bottom: 0;
}
.support-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #4d453f;
  line-height: 1.5;
}
.support-panel li + li {
  margin-top: 0.55rem;
}
.support-panel--muted {
  background: #f3ebe3;
  border-color: transparent;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.85rem 0 1.25rem;
  max-width: 44rem;
}
.faq-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item[open] {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  box-shadow: 0 8px 22px rgba(60, 40, 30, 0.05);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.95rem 1.05rem;
  font-weight: 600;
  color: var(--ink);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a7f78' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  transition: transform 0.32s ease;
}
.faq-item[open] summary::after {
  transform: rotate(180deg);
}
.faq-item[open] summary {
  background: rgba(107, 45, 48, 0.05);
  color: var(--accent);
}
.faq-item__body {
  padding: 0 1.05rem 1.05rem;
  color: #4d453f;
  font-size: 0.95rem;
  line-height: 1.55;
}
.faq-item__body p {
  margin: 0 0 0.65rem;
}
.faq-item__body p:last-child {
  margin-bottom: 0;
}
.faq-item__body a {
  color: var(--accent);
  font-weight: 600;
}
.support-sent,
.support-error {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}
.support-sent {
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  color: var(--accent);
}
.support-error {
  background: color-mix(in srgb, #b42318 8%, #fff);
  border: 1px solid color-mix(in srgb, #b42318 22%, var(--line));
  color: #8a1c14;
}
.support-sent[hidden],
.support-error[hidden] {
  display: none !important;
}
.support-form {
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
  margin: 0.85rem 0 1.25rem;
  padding: 1.2rem 1.25rem 1.35rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(60, 40, 30, 0.05);
}
.support-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #3d3631;
}
.support-form .field-hint {
  font-weight: 450;
  font-size: 0.8rem;
  color: var(--muted);
}
.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcf8f4;
  color: var(--ink);
  font: inherit;
  font-weight: 450;
}
.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  outline: 2px solid rgba(107, 45, 48, 0.25);
  border-color: rgba(107, 45, 48, 0.45);
}
.support-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.support-form button[type="submit"] {
  justify-self: start;
  margin-top: 0.25rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.support-form button[type="submit"]:hover {
  background: #5a262a;
}
.support-form__file input[type="file"] {
  padding: 0.55rem 0.65rem;
  background: #fcf8f4;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 450;
  color: var(--ink);
  cursor: pointer;
}
.support-form__file input[type="file"]::file-selector-button {
  margin-inline-end: 0.75rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.support-panel__note {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: #5a514b;
}

/* Release notes */
.release-current {
  display: grid;
  grid-template-columns: minmax(10rem, auto) 1fr;
  gap: 1rem 1.5rem;
  align-items: start;
  margin: 0.85rem 0 1.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  border: 1px solid #d7e4d3;
  background: #f7faf6;
}
.release-current__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a6b55;
}
.release-current__version {
  margin: 0.2rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.release-current__note {
  margin: 0;
  font-size: 0.92rem;
  color: #5a514b;
  line-height: 1.55;
}
.release-current__note code {
  font-size: 0.85em;
}
.release-steps {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
  color: var(--ink);
  line-height: 1.65;
}
.release-steps li + li {
  margin-top: 0.35rem;
}
.release-list {
  display: grid;
  gap: 1rem;
  margin: 0.85rem 0 1.25rem;
}
.release-entry {
  padding: 1.15rem 1.25rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 22px rgba(60, 40, 30, 0.04);
}
.release-entry__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.45rem;
}
.release-entry__version {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.release-entry__date {
  font-size: 0.88rem;
  color: var(--muted);
}
.release-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(107, 45, 48, 0.1);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.release-entry__summary {
  margin: 0 0 0.65rem;
  color: #5a514b;
  line-height: 1.55;
}
.release-entry ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink);
  line-height: 1.55;
}
.release-entry li + li {
  margin-top: 0.35rem;
}
@media (max-width: 700px) {
  .release-current {
    grid-template-columns: 1fr;
  }
}
.policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin: 0.85rem 0 1.25rem;
}
.policy-card {
  padding: 1.15rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.policy-card--yes {
  background: #f7faf6;
  border-color: #d7e4d3;
}
.policy-card--no {
  background: #faf6f4;
  border-color: #eadfd8;
}
.policy-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-size: 1.2rem;
}
.policy-card ul {
  margin: 0;
  padding-left: 1.05rem;
  color: #4d453f;
  font-size: 0.92rem;
}
.policy-card li + li {
  margin-top: 0.4rem;
}
.policy-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.policy-meta__item {
  padding: 0.95rem 1rem;
  border-radius: 12px;
  background: #f3ebe3;
}
.policy-meta__item strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.policy-meta__item span {
  font-size: 0.95rem;
  color: #3d3631;
}

/* Studio */
.studio-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.studio-hero .lede {
  max-width: 40rem;
}
.studio-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}
.studio-stat {
  padding: 1rem 1.05rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.studio-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.studio-stat span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}
.studio-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0.85rem 0 1.35rem;
}
.studio-service {
  padding: 1.05rem 1.05rem 1.15rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.studio-service h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}
.studio-service p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}
.studio-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 0.5rem 0 1.25rem;
  padding: 1.25rem 1.3rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(107, 45, 48, 0.08), rgba(107, 45, 48, 0.02));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
}
.studio-cta h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}
.studio-cta p {
  margin: 0;
  max-width: 34rem;
  color: #4d453f;
  font-size: 0.95rem;
}
.studio-cta .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  color: #fff !important;
  text-decoration: none !important;
}
.studio-cta .btn:hover {
  color: #fff !important;
  text-decoration: none !important;
}
@media (max-width: 900px) {
  .support-cards,
  .support-split,
  .support-split--form,
  .policy-grid,
  .policy-meta,
  .studio-stats,
  .studio-services,
  .support-form .form-row {
    grid-template-columns: 1fr;
  }
  .support-split--form .support-panel--muted {
    position: static;
  }
  .studio-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Back to top — River soft circle */
.docs-back-to-top {
  box-sizing: border-box;
  position: fixed;
  inset-block-end: 1.25rem;
  inset-inline-end: 1.25rem;
  z-index: 80;
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  color: var(--ink);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--ink) 10%, transparent);
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(0.5rem);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.docs-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.docs-back-to-top:hover {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.docs-back-to-top__icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}
.docs-back-to-top[hidden] {
  display: none !important;
}

/* Mobile drawer chrome */
.docs-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(43, 36, 33, 0.42);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}
.docs-drawer-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.docs-drawer-backdrop[hidden] {
  display: block !important;
  visibility: hidden;
}
.docs-drawer-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  padding: 0 0.15rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
.docs-drawer-head__label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.docs-drawer-close {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.docs-drawer-close:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}
body.docs-drawer-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro { grid-template-columns: 1fr; }
  .feature-card { max-width: 340px; }
}

@media (max-width: 900px) {
  :root {
    --docs-gutter: 1.25rem;
  }
  .topnav-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.7rem;
    padding: 0.85rem var(--docs-gutter);
    justify-items: center;
    text-align: center;
  }
  .logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }
  .nav-links {
    grid-column: 1;
    grid-row: 2;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 1.1rem;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-tools {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
  }
  .nav-search {
    min-width: 0;
    width: 100%;
    max-width: none;
  }
  .search {
    min-width: 0;
    width: 100%;
  }
  .shell {
    margin-inline: var(--docs-gutter);
    padding-inline: 1rem;
  }
  .content {
    padding-inline: 0.85rem;
  }
  .doc-block__inner {
    padding: 1.15rem 1rem 1.25rem;
  }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { max-width: 100%; padding: 1.5rem 1.15rem; }
  .hero-media { min-height: 220px; order: -1; }
  .doc-shot,
  .doc-slider,
  .support-form,
  .faq-list,
  .support-cards,
  .policy-grid {
    max-width: 100%;
  }
}

@media (max-width: 800px) {
  :root {
    --docs-gutter: 1.15rem;
  }
  .menu-btn {
    display: block;
    position: sticky;
    top: 0.5rem;
    z-index: 30;
    width: calc(100% - (var(--docs-gutter) * 2));
    margin: 0.65rem var(--docs-gutter) 0;
    box-shadow: 0 8px 20px rgba(60, 40, 30, 0.06);
  }
  body.docs-drawer-open .menu-btn {
    visibility: hidden;
    pointer-events: none;
  }
  .shell {
    grid-template-columns: 1fr;
    margin: 0.65rem var(--docs-gutter) 2rem;
    padding: 0.95rem 0.85rem 1.5rem;
    border-radius: 14px;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(86vw, 300px);
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border-right: 1px solid var(--line);
    z-index: 70;
    overflow: auto;
    overscroll-behavior: contain;
    transform: translate3d(-105%, 0, 0);
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    padding: 1rem 0.95rem 1.5rem;
    pointer-events: none;
    background: var(--sidebar);
  }
  .sidebar.open {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
  }
  .docs-drawer-backdrop {
    z-index: 65;
  }
  body.docs-drawer-open .sidebar {
    pointer-events: auto;
  }
  .docs-drawer-head { display: flex; }
  .nav-label--toggle {
    margin: 0.35rem 0 0.1rem;
  }
  .nav-group {
    margin: 0;
  }
  .nav-group__panel {
    transition: grid-template-rows 0.22s ease;
  }
  .nav-group:not(.is-open) .nav-group__inner {
    visibility: hidden;
  }
  .steps { grid-template-columns: 1fr; }
  .content {
    padding: 0.5rem 0.35rem 1rem;
    border-radius: 0 0 14px 14px;
  }
  .doc-block__inner {
    padding: 1.1rem 0.95rem 1.2rem;
  }
  .faq-list { max-width: none; }
  .docs-back-to-top {
    inset-block-end: 1rem;
    inset-inline-end: var(--docs-gutter);
  }
}

@media (max-width: 560px) {
  :root {
    --docs-gutter: 1.1rem;
  }
  .logo {
    font-size: 1.1rem;
    letter-spacing: 0.22em;
  }
  .nav-links {
    gap: 0.75rem;
    font-size: 0.86rem;
  }
  .topbar {
    font-size: 0.72rem;
    padding: 0.45rem var(--docs-gutter);
  }
  .shell {
    margin: 0.55rem var(--docs-gutter) 1.75rem;
    padding: 0.85rem 0.75rem 1.35rem;
  }
  .content {
    padding: 0.35rem 0.2rem 0.85rem;
  }
  .doc-block__inner {
    padding: 1rem 0.9rem 1.1rem;
  }
  .hero-copy {
    padding: 1.35rem 1rem;
  }
  .hero-copy h1 { font-size: clamp(1.85rem, 9vw, 2.4rem); }
  .support-hero h1 { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .doc-block h2 { font-size: 1.35rem; }
  .search-suggest {
    left: 0;
    right: 0;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-item summary,
  .faq-item summary::after,
  .docs-back-to-top,
  .docs-drawer-backdrop,
  .sidebar {
    transition: none;
  }
}
