/* =================================================================
   مستندات یهو — Documentation page
   Layered on top of styles.css (tokens, header, buttons, footer are
   reused as-is). Only docs-specific layout lives here.
   Three-column shell in RTL: sidebar (start/right) · prose · on-this-page.
   ================================================================= */

/* ---------- Reading-progress bar (under the sticky header) ---------- */
.doc-progress {
  position: fixed;
  inset-block-start: var(--header-h);
  inset-inline: 0;
  height: 2px;
  z-index: 55;
  background: transparent;
  pointer-events: none;
}
.doc-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(
    90deg,
    rgba(var(--logo-blue), 1),
    var(--brand-500),
    rgba(var(--logo-magenta), 1)
  );
  transform-origin: right center;
  transition: width 0.1s linear;
}

/* =================================================================
   Docs hero
   ================================================================= */
.doc-hero {
  position: relative;
  padding-block: clamp(44px, 6vw, 76px) clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--brand-50), var(--surface) 78%);
  overflow: hidden;
}
.doc-hero::before {
  content: "";
  position: absolute;
  inset-block-start: -180px;
  inset-inline-start: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 91, 242, 0.16), transparent 68%);
  pointer-events: none;
}
.doc-hero__inner {
  position: relative;
  max-width: 760px;
}
.doc-hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  letter-spacing: -0.03em;
}
.doc-hero__lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 640px;
}
.doc-hero__meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.88rem;
}
.doc-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.doc-hero__meta svg {
  width: 15px;
  height: 15px;
  color: var(--brand-500);
  flex: none;
}

/* quick jump cards */
.doc-jump {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.doc-jump a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.2s ease;
}
.doc-jump a:hover {
  transform: translateY(-2px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-sm);
}
.doc-jump svg {
  width: 18px;
  height: 18px;
  color: var(--brand-600);
  flex: none;
}

/* =================================================================
   Shell
   ================================================================= */
/* Full-bleed: the sidebar sits flush against the viewport's start edge
   (right in RTL) instead of floating inside the centred container. */
.doc-shell {
  display: grid;
  grid-template-columns: 274px minmax(0, 1fr) 272px;
  align-items: start;
  gap: 0;
}

/* ---------- Sidebar ---------- */
/* `direction: ltr` puts the scrollbar on the physical right — the outer,
   viewport-hugging edge — instead of the inner one. Every direct child
   restores RTL so the content itself lays out normally. */
.doc-side {
  direction: ltr;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface-base);
  border-left: 1px solid var(--line);
  padding: 26px 18px 36px 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.doc-side > * {
  direction: rtl;
}
.doc-side::-webkit-scrollbar {
  width: 9px;
}
.doc-side::-webkit-scrollbar-track {
  background: transparent;
}
.doc-side::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
  border: 2px solid var(--surface-base);
}
.doc-side::-webkit-scrollbar-thumb:hover {
  background: var(--brand-300);
}

.doc-search {
  position: relative;
  margin-bottom: 20px;
}
.doc-search input {
  width: 100%;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 10px 38px 10px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.doc-search input::placeholder {
  color: var(--muted);
}
.doc-search input:focus {
  outline: none;
  border-color: var(--brand-400);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(83, 91, 242, 0.12);
}
.doc-search svg {
  position: absolute;
  inset-inline-start: 12px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.doc-nav__group + .doc-nav__group {
  margin-top: 22px;
}
.doc-nav__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  padding-inline-start: 12px;
}
.doc-nav__label i {
  font-style: normal;
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-600);
  font-size: 0.68rem;
  letter-spacing: 0;
}
.doc-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.doc-nav a {
  position: relative;
  display: block;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
  transition: color 0.16s ease, background 0.16s ease;
}
.doc-nav a::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 6px;
  width: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.16s ease;
}
.doc-nav a:hover {
  color: var(--brand-700);
  background: var(--brand-50);
}
.doc-nav a.is-active {
  color: var(--brand-700);
  background: var(--brand-50);
  font-weight: 600;
}
.doc-nav a.is-active::before {
  background: var(--brand-500);
}
.doc-nav__group.is-hidden,
.doc-nav li.is-hidden {
  display: none;
}
.doc-nav__empty {
  display: none;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.88rem;
}
.doc-nav__empty.is-on {
  display: block;
}

/* ---------- On this page ---------- */
.doc-toc {
  position: sticky;
  top: calc(var(--header-h) + 30px);
  max-height: calc(100vh - var(--header-h) - 60px);
  overflow-y: auto;
  scrollbar-width: none;
  margin-block-start: clamp(30px, 3.6vw, 52px);
  padding-inline-start: 22px;
  padding-inline-end: 52px;
  border-inline-start: 1px solid var(--line);
}
.doc-toc::-webkit-scrollbar {
  display: none;
}
.doc-toc__title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.doc-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.doc-toc a {
  display: block;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
  padding: 5px 0;
  transition: color 0.16s ease;
}
.doc-toc a:hover {
  color: var(--brand-700);
}
.doc-toc a.is-active {
  color: var(--brand-700);
  font-weight: 600;
}

/* =================================================================
   Prose
   ================================================================= */
.doc-main {
  min-width: 0;
  max-width: 980px;
  margin-inline: auto;
  padding-inline: clamp(22px, 3.2vw, 56px);
  padding-block: clamp(30px, 3.6vw, 52px) clamp(60px, 8vw, 96px);
}
.doc-sec + .doc-sec {
  margin-top: clamp(48px, 6vw, 76px);
}
.doc-sec__head {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  margin-bottom: 26px;
}
.doc-sec:first-child .doc-sec__head {
  padding-top: 0;
  border-top: 0;
}
.doc-sec h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.025em;
}
.doc-sec__lead {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 620px;
}

.doc-block {
  scroll-margin-top: calc(var(--header-h) + 22px);
}
.doc-block + .doc-block {
  margin-top: 38px;
}
.doc-block h3 {
  font-size: 1.18rem;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

/* hover anchor */
.h-anchor {
  display: inline-block;
  margin-inline-start: 8px;
  color: var(--brand-300);
  font-weight: 400;
  opacity: 0;
  transform: translateY(-1px);
  transition: opacity 0.15s ease, color 0.15s ease;
}
h2:hover .h-anchor,
h3:hover .h-anchor,
.h-anchor:focus-visible {
  opacity: 1;
}
.h-anchor:hover {
  color: var(--brand-600);
}

.doc-main p {
  color: var(--ink-soft);
  line-height: 1.95;
}
.doc-main p + p {
  margin-top: 14px;
}
.doc-main strong {
  color: var(--ink);
  font-weight: 700;
}

/* bullet list */
.doc-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.doc-list li {
  position: relative;
  padding-inline-start: 26px;
  color: var(--ink-soft);
  line-height: 1.85;
}
.doc-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 6px;
  inset-block-start: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-200);
  border: 1.5px solid var(--brand-400);
}
.doc-list--check li::before {
  content: "";
  inset-inline-start: 2px;
  inset-block-start: 0.5em;
  width: 15px;
  height: 15px;
  border: 0;
  border-radius: 0;
  background: var(--go-600);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.doc-list--x li::before {
  content: "";
  inset-inline-start: 2px;
  inset-block-start: 0.52em;
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 0;
  background: #dc2626;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* inline technical token — always LTR so RTL prose never flips it */
.tok {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  color: var(--brand-700);
  vertical-align: 0.05em;
}

/* =================================================================
   Callouts
   ================================================================= */
.doc-note {
  position: relative;
  margin-top: 18px;
  display: flex;
  gap: 13px;
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-inline-start: 3px solid var(--brand-400);
}
.doc-note__icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--brand-600);
}
.doc-note__icon svg {
  width: 100%;
  height: 100%;
}
.doc-note b {
  display: block;
  color: var(--ink);
  margin-bottom: 3px;
}
.doc-note p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.8;
}
.doc-note--go {
  background: var(--go-50);
  border-color: #a7f3d0;
  border-inline-start-color: var(--go-600);
}
.doc-note--go .doc-note__icon {
  color: var(--go-700);
}
.doc-note--warn {
  background: var(--warn-50);
  border-color: #fde68a;
  border-inline-start-color: var(--warn-600);
}
.doc-note--warn .doc-note__icon {
  color: var(--warn-700);
}

/* =================================================================
   Cards / grids
   ================================================================= */
.doc-cards {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 14px;
}
.doc-card {
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.2s ease;
}
.doc-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-sm);
}
.doc-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-600);
  margin-bottom: 13px;
}
.doc-card__icon svg {
  width: 19px;
  height: 19px;
}
.doc-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.doc-card p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.78;
}

/* =================================================================
   Steps
   ================================================================= */
.doc-steps {
  margin-top: 20px;
  list-style: none;
  padding: 0;
  counter-reset: dstep;
}
.doc-steps > li {
  position: relative;
  counter-increment: dstep;
  padding-inline-start: 52px;
  padding-bottom: 26px;
}
.doc-steps > li:last-child {
  padding-bottom: 0;
}
.doc-steps > li::before {
  content: counter(dstep, persian);
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: -2px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 18px -10px rgba(67, 73, 214, 0.9);
}
.doc-steps > li::after {
  content: "";
  position: absolute;
  inset-inline-start: 15.5px;
  inset-block-start: 36px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--brand-200), transparent);
}
.doc-steps > li:last-child::after {
  display: none;
}
.doc-steps h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}
.doc-steps p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* =================================================================
   Table
   ================================================================= */
.doc-table {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.doc-table__scroll {
  overflow-x: auto;
}
.doc-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 460px;
}
.doc-table th {
  text-align: start;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface-base);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.doc-table td {
  padding: 13px 16px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  line-height: 1.75;
  vertical-align: top;
}
.doc-table tr:last-child td {
  border-bottom: 0;
}
.doc-table tbody tr:hover td {
  background: var(--brand-50);
}
.doc-table td b {
  color: var(--ink);
}

/* status chips inside tables */
.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip--go {
  background: var(--go-50);
  color: var(--go-700);
}
.chip--brand {
  background: var(--brand-50);
  color: var(--brand-700);
}
.chip--warn {
  background: var(--warn-50);
  color: var(--warn-700);
}

/* =================================================================
   Dark showcase panel (architecture)
   ================================================================= */
.doc-dark {
  position: relative;
  margin-top: 20px;
  padding: clamp(24px, 3.4vw, 38px);
  border-radius: var(--r-xl);
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.doc-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.doc-dark::after {
  content: "";
  position: absolute;
  inset-block-start: -120px;
  inset-inline-end: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--logo-violet), 0.32), transparent 66%);
  pointer-events: none;
}
.doc-dark > * {
  position: relative;
}
.doc-dark h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.doc-dark .doc-dark__lead {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.flow {
  display: grid;
  gap: 12px;
}
.flow__row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}
.flow__node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.89rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
}
.flow__node svg {
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.55);
  flex: none;
}
.flow__node--core {
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 14px 30px -14px rgba(83, 91, 242, 0.9);
}
.flow__node--core svg {
  color: rgba(255, 255, 255, 0.8);
}
.flow__arrow {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.28);
  padding-inline: 2px;
}
.flow__arrow svg {
  width: 18px;
  height: 18px;
}
.flow__label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
  margin-bottom: -4px;
}

/* =================================================================
   FAQ (docs variant of the landing accordion)
   ================================================================= */
.doc-faq {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doc-faq details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.doc-faq details[open] {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-xs);
}
.doc-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  font-size: 0.99rem;
}
.doc-faq summary::-webkit-details-marker {
  display: none;
}
.doc-faq summary .chev {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--muted);
  transition: transform 0.25s ease, color 0.2s ease;
}
.doc-faq details[open] summary .chev {
  transform: rotate(180deg);
  color: var(--brand-600);
}
.doc-faq summary + div {
  padding: 0 18px 17px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.9;
}

/* =================================================================
   Footer CTA inside docs
   ================================================================= */
.doc-end {
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(26px, 3.6vw, 40px);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500) 55%, #6d5cf5);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-brand);
}
.doc-end h3 {
  color: #fff;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  margin-bottom: 10px;
}
.doc-end p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 22px;
  font-size: 1rem;
}

/* =================================================================
   Mobile sidebar trigger + drawer
   ================================================================= */
.doc-sidebar-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 11px 16px;
  margin-bottom: 22px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}
.doc-sidebar-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--brand-600);
  flex: none;
}
.doc-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.doc-backdrop.is-open {
  display: block;
  opacity: 1;
}

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 1180px) {
  .doc-shell {
    grid-template-columns: 262px minmax(0, 1fr);
  }
  .doc-toc {
    display: none;
  }
}

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

@media (max-width: 860px) {
  .doc-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .doc-sidebar-toggle {
    display: flex;
  }
  /* drawer — physical props, since .doc-side is direction:ltr */
  .doc-side {
    position: fixed;
    z-index: 75;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    height: auto;
    width: min(320px, 86vw);
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: 0 0 60px rgba(15, 23, 42, 0.2);
    padding: 22px 14px 34px 18px;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .doc-side.is-open {
    transform: none;
  }
  .doc-side__close {
    display: flex !important;
  }
}

@media (max-width: 620px) {
  .doc-main {
    padding-inline: 18px;
  }
  .doc-jump {
    grid-template-columns: minmax(0, 1fr);
  }
  .doc-hero__meta {
    font-size: 0.84rem;
  }
  .doc-steps > li {
    padding-inline-start: 44px;
  }
  .doc-note {
    padding: 14px 15px;
  }
}

/* close button lives in the drawer only */
.doc-side__close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-inline-start: auto;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface-base);
  color: var(--ink-soft);
  cursor: pointer;
}
.doc-side__close svg {
  width: 17px;
  height: 17px;
}

@media (prefers-reduced-motion: reduce) {
  .doc-card,
  .doc-jump a,
  .doc-side,
  .doc-progress__bar {
    transition: none !important;
  }
}
