/* ============================================================
   Smart QuoteFlow — site styles
   Concept: a real estimate pad. Paper stock, carbon-copy tint,
   perforated tear-offs, and a calculator's tabular-mono numbers.
   ============================================================ */

   :root {
	 /* Brand — matches plugin assets/css/frontend.css (--sqflow-*) */
	 --brand-ink: #0f172a;
	 --brand-muted: #64748b;
	 --brand-line: #e2e8f0;
	 --brand-soft: #f8fafc;
	 --brand-surface: #ffffff;
	 --brand-accent: #2563eb;
	 --brand-accent-ink: #1e3a8a;
	 --brand-accent-soft: #eff6ff;
	 --brand-success: #059669;

	 /* Site tokens */
	 --paper: var(--brand-soft);
	 --paper-dim: #f1f5f9;
	 --ink: var(--brand-ink);
	 --ink-soft: var(--brand-muted);
	 --rule: var(--brand-line);
	 --white: var(--brand-surface);
	 --canary: var(--brand-accent);
	 --canary-deep: var(--brand-accent-ink);
	 --canary-tint: var(--brand-accent-soft);
	 --accepted: var(--brand-success);

	 /* Type */
	 --font-display: "Fraunces", "Iowan Old Style", serif;
	 --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
	 --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

	 /* Aliases used by docs / support blocks */
	 --muted: var(--brand-muted);
	 --line: var(--brand-line);
	 --surface: var(--brand-surface);
	 --accent: var(--brand-accent);
	 --accent-soft: var(--brand-accent-soft);
	 --serif: var(--font-display);
	 --sans: var(--font-body);
   
	 /* Scale */
	 --space-1: 0.5rem;
	 --space-2: 1rem;
	 --space-3: 1.75rem;
	 --space-4: 2.75rem;
	 --space-5: 4.5rem;
	 --space-6: 7rem;
   
	 --radius: 3px;
	 --max: 1120px;
   }
   
   *, *::before, *::after { box-sizing: border-box; }
   
   html {
	 scroll-behavior: smooth;
	 scrollbar-gutter: stable;
   }
   
   body {
	 margin: 0;
	 background: var(--paper);
	 color: var(--ink);
	 font-family: var(--font-body);
	 font-size: 17px;
	 line-height: 1.55;
	 -webkit-font-smoothing: antialiased;
   }
   
   @media (prefers-reduced-motion: reduce) {
	 html { scroll-behavior: auto; }
	 * { animation: none !important; transition: none !important; }
   }
   
   img { max-width: 100%; display: block; }
   
   a { color: inherit; }

   .docs-content a,
   .support-card a,
   .section a:not(.btn):not(.brand) {
	 color: var(--brand-accent);
	 text-decoration-thickness: 1px;
	 text-underline-offset: 0.15em;
   }

   .docs-content a:hover,
   .support-card a:hover,
   .section a:not(.btn):not(.brand):hover {
	 color: var(--brand-accent-ink);
   }
   
   .wrap {
	 width: 100%;
	 max-width: var(--max);
	 margin-inline: auto;
	 padding-inline: var(--space-3);
	 box-sizing: border-box;
   }

   .site-header .wrap,
   .site-footer .wrap,
   main.wrap {
	 /* Same horizontal track for header, docs shell, and footer */
	 width: min(100%, var(--max));
   }
   
   h1, h2, h3 {
	 font-family: var(--font-display);
	 font-weight: 600;
	 line-height: 1.12;
	 margin: 0;
	 color: var(--ink);
   }
   
   h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); font-variation-settings: "opsz" 40; letter-spacing: -0.01em; }
   h2 { font-size: clamp(1.6rem, 2.8vw, 2.05rem); font-variation-settings: "opsz" 24; }
   h3 { font-size: 1.15rem; font-weight: 600; }
   
   p { margin: 0 0 var(--space-2); max-width: 62ch; }
   
   .lead {
	 font-size: 1.15rem;
	 color: var(--ink-soft);
	 max-width: 46ch;
   }
   
   :focus-visible {
	 outline: 2px solid var(--brand-accent);
	 outline-offset: 3px;
   }
   
   /* ---------- Buttons ---------- */
   
   .actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }
   
   .btn {
	 display: inline-flex;
	 align-items: center;
	 gap: 0.5em;
	 padding: 0.8em 1.4em;
	 border-radius: var(--radius);
	 font-family: var(--font-body);
	 font-weight: 600;
	 font-size: 0.95rem;
	 text-decoration: none;
	 border: 1.5px solid var(--ink);
	 background: var(--ink);
	 color: var(--paper);
	 transition: transform 0.15s ease, box-shadow 0.15s ease;
   }
   
   .btn:hover {
	 transform: translateY(-2px);
	 box-shadow: 0 4px 0 var(--brand-accent-ink);
	 background: var(--brand-accent);
	 border-color: var(--brand-accent);
   }

   .btn--ghost {
	 background: transparent;
	 color: var(--ink);
	 border-color: var(--brand-line);
   }

   .btn--ghost:hover {
	 box-shadow: 0 4px 0 var(--brand-line);
	 background: var(--brand-accent-soft);
	 border-color: var(--brand-accent);
	 color: var(--brand-accent-ink);
   }
   
   /* ---------- Header ---------- */
   
   .site-header {
	 border-bottom: 1px solid var(--rule);
	 background: var(--white);
	 position: sticky;
	 top: 0;
	 z-index: 10;
   }
   
   .site-header__inner {
	 display: flex;
	 align-items: center;
	 justify-content: space-between;
	 padding-top: var(--space-2);
	 padding-bottom: var(--space-2);
   }
   
   .brand {
	 display: inline-flex;
	 align-items: center;
	 text-decoration: none;
	 color: var(--ink);
   }

   .brand__logo {
	 display: block;
	 width: auto;
	 height: 40px;
	 max-width: min(100%, 200px);
	 object-fit: contain;
   }
   
   .nav { display: flex; gap: var(--space-3); }
   
   .nav a {
	 text-decoration: none;
	 font-size: 0.95rem;
	 font-weight: 500;
	 color: var(--ink-soft);
	 padding-bottom: 2px;
	 border-bottom: 2px solid transparent;
   }
   
   .nav a:hover, .nav a[aria-current="page"] {
	 color: var(--ink);
	 border-bottom-color: var(--brand-accent);
   }

   /* ---------- Inner pages (support, etc.) ---------- */

   .hero {
	 padding: var(--space-5) 0 var(--space-3);
	 border-bottom: 1px solid var(--rule);
   }

   .hero__eyebrow {
	 font-family: var(--font-mono);
	 font-size: 0.75rem;
	 font-weight: 500;
	 letter-spacing: 0.06em;
	 text-transform: uppercase;
	 color: var(--brand-accent);
	 margin: 0 0 var(--space-2);
   }

   /* ---------- Hero ---------- */

   .home-hero {
	 padding: var(--space-6) 0 var(--space-5);
	 background:
		 radial-gradient(ellipse 70% 55% at 90% 10%, color-mix(in srgb, var(--brand-accent) 14%, transparent), transparent 55%),
		 linear-gradient(180deg, var(--brand-accent-soft) 0%, #f8fbff 55%, var(--white) 100%);
	 border-bottom: 1px solid var(--rule);
   }
   
   .home-hero__grid {
	 display: grid;
	 grid-template-columns: 1.05fr 0.95fr;
	 gap: var(--space-5);
	 align-items: center;
   }
   
   .home-hero__brand {
	 display: block;
	 width: auto;
	 height: clamp(48px, 7vw, 64px);
	 max-width: min(100%, 260px);
	 object-fit: contain;
	 margin-bottom: var(--space-3);
   }

   .home-hero h1 { margin-bottom: var(--space-2); }

   /* the torn estimate slip */

   .hero-visual { position: relative; }

   .hero-visual__rule {
	 position: absolute;
	 inset: auto -6% -10% auto;
	 width: 38%;
	 height: 38%;
	 border: 1px solid color-mix(in srgb, var(--brand-accent) 35%, transparent);
	 pointer-events: none;
   }
   
   .hero-visual__panel {
	 position: relative;
	 background: var(--white);
	 padding: var(--space-3) var(--space-3) var(--space-4);
	 transform: rotate(-1.6deg);
	 box-shadow: 0 18px 34px -18px rgba(29, 42, 53, 0.35);
	 clip-path: polygon(
	   0% 0%, 100% 0%, 100% 91%,
	   96% 96%, 92% 91%, 88% 96%, 84% 91%, 80% 96%, 76% 91%,
	   72% 96%, 68% 91%, 64% 96%, 60% 91%, 56% 96%, 52% 91%,
	   48% 96%, 44% 91%, 40% 96%, 36% 91%, 32% 96%, 28% 91%,
	   24% 96%, 20% 91%, 16% 96%, 12% 91%, 8% 96%, 4% 91%, 0% 96%
	 );
   }
   
   .hero-visual__panel::before {
	 content: "";
	 position: absolute;
	 inset: 0 0 auto 0;
	 height: 6px;
	 background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent-ink));
   }
   
   .hero-visual__label {
	 font-family: var(--font-mono);
	 font-size: 0.75rem;
	 color: var(--ink-soft);
	 margin: var(--space-1) 0 var(--space-2);
   }
   
   .hero-visual__row {
	 display: flex;
	 justify-content: space-between;
	 font-family: var(--font-mono);
	 font-size: 0.9rem;
	 padding: 0.5em 0;
	 border-bottom: 1px dashed var(--rule);
   }
   
   .hero-visual__row span:last-child { color: var(--ink-soft); }
   
   .hero-visual__total {
	 display: flex;
	 justify-content: space-between;
	 align-items: baseline;
	 margin-top: var(--space-2);
	 padding-top: var(--space-2);
	 font-family: var(--font-mono);
   }
   
   .hero-visual__total span:first-child { font-size: 0.85rem; color: var(--ink-soft); }
   .hero-visual__total span:last-child { font-size: 2rem; font-weight: 500; color: var(--brand-accent); }
   
   /* ---------- Section rhythm ---------- */
   
   .section {
	 padding: var(--space-5) 0;
	 border-top: 1px solid var(--rule);
	 background: var(--white);
   }

   .section--band {
	 background: var(--paper-dim);
   }
   
   .section__head { max-width: 56ch; margin-bottom: var(--space-4); }
   
   .section__intro { color: var(--ink-soft); margin-top: var(--space-1); }
   
   .grid-2 {
	 display: grid;
	 grid-template-columns: 1fr 1fr;
	 gap: var(--space-5);
   }

   .grid-2 > div > h2 {
	 margin-bottom: var(--space-2);
   }
   
   /* ---------- Workflow (What it does) — a real sequence, numbered like line items ---------- */
   
   .ledger { list-style: none; margin: 0; padding: 0; }
   
   .ledger li {
	 display: grid;
	 grid-template-columns: 3.2rem 1fr;
	 gap: var(--space-3);
	 padding: var(--space-3) 0;
	 border-top: 1px dashed var(--rule);
   }
   
   .ledger li:first-child { border-top: none; }
   
   .ledger__index {
	 font-family: var(--font-mono);
	 font-size: 0.95rem;
	 color: var(--brand-accent);
	 padding-top: 0.15em;
   }

   .ledger h3 { margin-bottom: 0.35em; }

   .ledger span { color: var(--ink-soft); }

   .feature-list {
	 list-style: none;
	 margin: 0;
	 padding: 0;
	 max-width: 52rem;
   }

   .feature-list li {
	 padding: var(--space-3) 0;
	 border-top: 1px dashed var(--rule);
   }

   .feature-list li:first-child { border-top: none; }

   .feature-list strong {
	 display: block;
	 font-family: var(--font-display);
	 font-size: 1.05rem;
	 margin-bottom: 0.25em;
   }

   .feature-list span {
	 color: var(--ink-soft);
	 font-size: 0.98rem;
   }
   
   /* ---------- Split note (who it's for / what you control) ---------- */
   
   .split-note { position: relative; }
   
   .grid-2 .split-note:first-child {
	 padding-right: var(--space-4);
	 border-right: 1px dashed var(--rule);
   }
   
   .split-note h2 { margin-bottom: var(--space-2); }
   
   .checklist { list-style: none; margin: 0; padding: 0; }
   
   .checklist li {
	 padding: 0.55em 0 0.55em 1.6em;
	 position: relative;
	 border-bottom: 1px solid var(--rule);
	 font-size: 0.98rem;
   }
   
   .checklist li:last-child { border-bottom: none; }
   
   .checklist li::before {
	 content: "✓";
	 position: absolute;
	 left: 0;
	 color: var(--accepted);
	 font-weight: 600;
   }
   
   /* ---------- Features — duplicate-copy card ---------- */
   
   .feature-cols-wrap { position: relative; }
   
   .feature-cols {
	 position: relative;
	 background: var(--white);
	 border: 1px solid var(--rule);
	 border-radius: var(--radius);
	 padding: var(--space-4);
	 display: grid;
	 grid-template-columns: 1fr 1fr;
	 gap: var(--space-2) var(--space-4);
	 z-index: 1;
   }
   
   .feature-cols::after {
	 content: "";
	 position: absolute;
	 inset: 0;
	 background: var(--brand-accent-soft);
	 border: 1px solid color-mix(in srgb, var(--brand-accent) 28%, var(--brand-line));
	 border-radius: var(--radius);
	 transform: translate(10px, 10px) rotate(0.6deg);
	 z-index: -1;
   }
   
   .feature-cols ul { list-style: none; margin: 0; padding: 0; }
   
   .feature-cols li {
	 padding: 0.6em 0;
	 border-bottom: 1px dashed var(--rule);
	 font-size: 0.98rem;
   }
   
   .feature-cols li:last-child { border-bottom: none; }
   
   /* ---------- Screenshots ---------- */

   .media-grid {
	 display: grid;
	 grid-template-columns: repeat(3, 1fr);
	 gap: var(--space-3);
   }

   .media-frame { margin: 0; }

   .media-frame__trigger {
	 display: block;
	 width: 100%;
	 margin: 0;
	 padding: 0;
	 border: 0;
	 background: none;
	 cursor: zoom-in;
	 text-align: inherit;
	 font: inherit;
	 color: inherit;
   }

   .media-frame__trigger:focus-visible .media-frame__stage {
	 outline: 2px solid var(--brand-accent);
	 outline-offset: 3px;
   }

   .media-frame__stage {
	 aspect-ratio: 16 / 10;
	 background: var(--white);
	 border: 1px solid var(--rule);
	 border-radius: var(--radius);
	 overflow: hidden;
	 display: block;
	 position: relative;
	 transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
   }

   .media-frame__stage img {
	 width: 100%;
	 height: 100%;
	 object-fit: cover;
	 object-position: top left;
	 display: block;
   }

   .media-frame__trigger:hover .media-frame__stage {
	 border-color: var(--brand-accent);
	 box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
	 transform: translateY(-2px);
   }

   .media-frame figcaption {
	 margin-top: 0.55rem;
	 font-size: 0.92rem;
	 font-weight: 500;
	 color: var(--ink);
	 letter-spacing: 0.01em;
   }

   @media (max-width: 900px) {
	 .media-grid { grid-template-columns: repeat(2, 1fr); }
   }

   @media (max-width: 560px) {
	 .media-grid { grid-template-columns: 1fr; }
   }

   /* Lightbox — fullscreen gallery */

   body.has-lightbox { overflow: hidden; }

   .lightbox[hidden] { display: none !important; }

   .lightbox {
	 position: fixed;
	 inset: 0;
	 z-index: 100;
	 display: grid;
	 place-items: stretch;
	 padding: 0;
   }

   .lightbox__backdrop {
	 position: absolute;
	 inset: 0;
	 background: rgba(8, 12, 22, 0.92);
	 backdrop-filter: blur(8px);
   }

   .lightbox__dialog {
	 position: relative;
	 z-index: 1;
	 width: 100%;
	 height: 100%;
	 max-height: none;
	 overflow: hidden;
	 display: grid;
	 grid-template-rows: 1fr auto;
	 background: transparent;
	 border: 0;
	 border-radius: 0;
	 padding: 0;
	 box-shadow: none;
   }

   .lightbox__close {
	 position: absolute;
	 top: 1rem;
	 right: 1rem;
	 z-index: 3;
	 width: 2.75rem;
	 height: 2.75rem;
	 border: 1px solid rgba(255, 255, 255, 0.18);
	 border-radius: 999px;
	 background: rgba(15, 23, 42, 0.65);
	 color: #f8fafc;
	 font-size: 1.6rem;
	 line-height: 1;
	 cursor: pointer;
   }

   .lightbox__close:hover {
	 background: rgba(37, 99, 235, 0.9);
	 border-color: transparent;
	 color: #fff;
   }

   .lightbox__nav {
	 position: absolute;
	 top: 50%;
	 z-index: 3;
	 transform: translateY(-50%);
	 width: 3rem;
	 height: 3rem;
	 border: 1px solid rgba(255, 255, 255, 0.18);
	 border-radius: 999px;
	 background: rgba(15, 23, 42, 0.65);
	 color: #f8fafc;
	 font-size: 2rem;
	 line-height: 1;
	 cursor: pointer;
	 display: grid;
	 place-items: center;
	 padding: 0 0 0.15rem;
   }

   .lightbox__nav:hover {
	 background: rgba(37, 99, 235, 0.9);
	 border-color: transparent;
   }

   .lightbox__nav:disabled { opacity: 0.35; cursor: default; }

   .lightbox__nav--prev { left: 1rem; }
   .lightbox__nav--next { right: 1rem; }

   .lightbox__stage {
	 margin: 0;
	 background: transparent;
	 border: 0;
	 border-radius: 0;
	 min-height: 0;
	 display: grid;
	 place-items: center;
	 overflow: hidden;
	 max-height: none;
	 padding: 4.5rem 4.5rem 1rem;
   }

   .lightbox__stage img {
	 width: auto;
	 height: auto;
	 max-width: min(96vw, 1400px);
	 max-height: calc(100vh - 9.5rem);
	 object-fit: contain;
	 display: block;
	 border-radius: 8px;
	 box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
   }

   .lightbox__placeholder {
	 aspect-ratio: auto;
	 min-height: 14rem;
	 width: 100%;
	 border: 0;
	 background: transparent;
	 font-size: 1.05rem;
   }

   .lightbox__placeholder::before,
   .lightbox__placeholder::after { display: none; }

   .lightbox__meta {
	 padding: 0.85rem 1.25rem 1.35rem;
	 text-align: center;
	 color: #e2e8f0;
	 background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
   }

   .lightbox__counter {
	 margin: 0 0 0.25rem;
	 font-family: var(--font-mono);
	 font-size: 0.8rem;
	 letter-spacing: 0.04em;
	 color: #94a3b8;
   }

   .lightbox__title {
	 font-family: var(--font-display);
	 font-size: 1.2rem;
	 margin: 0;
	 color: #f8fafc;
   }

   .lightbox__caption {
	 margin: 0.35rem 0 0;
	 color: #94a3b8;
	 font-size: 0.95rem;
	 max-width: 40rem;
	 margin-inline: auto;
   }

   @media (max-width: 700px) {
	 .lightbox__stage { padding: 4rem 0.75rem 0.75rem; }
	 .lightbox__nav { width: 2.5rem; height: 2.5rem; font-size: 1.6rem; }
	 .lightbox__nav--prev { left: 0.5rem; }
	 .lightbox__nav--next { right: 0.5rem; }
	 .lightbox__stage img { max-height: calc(100vh - 10rem); }
   }
   
   /* ---------- Compare table ---------- */
   
   .compare {
	 width: 100%;
	 border-collapse: collapse;
	 font-size: 0.98rem;
	 background: var(--white);
	 border: 1px solid var(--rule);
   }
   
   .compare th, .compare td {
	 padding: 0.85em 1.1em;
	 text-align: left;
	 border-bottom: 1px dashed var(--rule);
   }
   
   .compare thead th {
	 font-family: var(--font-mono);
	 font-weight: 500;
	 font-size: 0.82rem;
	 color: var(--ink-soft);
	 border-bottom: 1px solid var(--ink);
   }
   
   .compare tbody tr:last-child td { border-bottom: none; }
   
   .compare td:nth-child(2),
   .compare th:nth-child(2),
   .compare td:nth-child(3),
   .compare th:nth-child(3) {
	 text-align: center;
	 width: 18%;
   }

   .compare td:nth-child(2), .compare th:nth-child(2) { background: var(--paper); }
   .compare td:nth-child(3), .compare th:nth-child(3) { background: var(--brand-accent-soft); }
   
   .compare td:first-child { color: var(--ink-soft); }

   .mark {
	 display: inline-flex;
	 align-items: center;
	 justify-content: center;
	 width: 1.35rem;
	 height: 1.35rem;
	 border-radius: 50%;
	 vertical-align: middle;
   }

   .mark--yes {
	 background: color-mix(in srgb, var(--brand-success) 16%, transparent);
	 color: var(--brand-success);
   }

   .mark--yes::before {
	 content: "";
	 width: 0.42rem;
	 height: 0.72rem;
	 border-right: 2px solid currentColor;
	 border-bottom: 2px solid currentColor;
	 transform: rotate(40deg) translate(-1px, -1px);
   }

   .mark--no {
	 color: #94a3b8;
   }

   .mark--no::before {
	 content: "";
	 width: 0.7rem;
	 height: 2px;
	 background: currentColor;
	 border-radius: 1px;
   }

   .mark--soon {
	 background: color-mix(in srgb, var(--brand-accent) 16%, transparent);
	 color: var(--brand-accent);
   }

   .mark--soon::before {
	 content: "";
	 width: 0.55rem;
	 height: 0.55rem;
	 border: 2px solid currentColor;
	 border-radius: 50%;
	 border-top-color: transparent;
	 transform: rotate(-45deg);
   }
   
   /* ---------- Installation ---------- */
   
   .steps {
	 list-style: none;
	 counter-reset: step;
	 margin: var(--space-2) 0;
	 padding: 0;
   }
   
   .steps li {
	 counter-increment: step;
	 position: relative;
	 padding: 0.7em 0 0.7em 2.6em;
	 border-bottom: 1px dashed var(--rule);
   }
   
   .steps li:last-child { border-bottom: none; }
   
   .steps li::before {
	 content: counter(step);
	 position: absolute;
	 left: 0;
	 top: 0.65em;
	 font-family: var(--font-mono);
	 font-size: 0.85rem;
	 color: var(--paper);
	 background: var(--ink);
	 width: 1.6em;
	 height: 1.6em;
	 border-radius: 50%;
	 display: flex;
	 align-items: center;
	 justify-content: center;
   }
   
   /* ---------- Footer ---------- */
   
   .site-footer {
	 border-top: 1px solid var(--rule);
	 padding: var(--space-4) 0;
	 background: var(--paper-dim);
   }
   
   .site-footer__inner {
	 display: flex;
	 justify-content: space-between;
	 flex-wrap: wrap;
	 gap: var(--space-2);
	 font-size: 0.9rem;
	 color: var(--ink-soft);
   }
   
   .site-footer a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
   .site-footer a:hover { text-decoration-color: var(--ink); }
   
   /* ---------- Responsive ---------- */
   
   @media (max-width: 900px) {
	 .home-hero__grid, .grid-2, .feature-cols { grid-template-columns: 1fr; }
	 .grid-2 .split-note:first-child { padding-right: 0; border-right: none; padding-bottom: var(--space-3); border-bottom: 1px dashed var(--rule); }
	 .media-grid { grid-template-columns: 1fr 1fr; }
	 .hero-visual__panel { transform: rotate(0); }
   }
   
   @media (max-width: 620px) {
	 .site-header__inner { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
	 .nav { gap: var(--space-2); flex-wrap: wrap; }
	 .media-grid { grid-template-columns: 1fr; }
	 .compare { font-size: 0.88rem; }
   }

/* Docs layout */

.docs-shell {
	display: grid;
	gap: 1.75rem;
	padding-block: 2rem 3rem;
	align-items: start;
	font-family: var(--font-body);
}

.docs-shell h1,
.docs-shell h2,
.docs-shell h3 {
	font-family: var(--font-display);
}

@media (min-width: 900px) {
	.docs-shell {
		grid-template-columns: 14rem minmax(0, 1fr);
		gap: 2.5rem;
	}

	.docs-nav {
		position: sticky;
		top: 4.75rem;
		max-height: calc(100vh - 5.5rem);
		overflow-y: auto;
	}
}

.docs-nav {
	font-size: 0.95rem;
}

.docs-nav h2 {
	font-size: 0.8rem;
	font-family: var(--font-body);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--muted);
	margin: 0 0 0.75rem;
}

.docs-nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.docs-nav a {
	display: block;
	padding: 0.35rem 0;
	color: var(--muted);
	text-decoration: none;
	border-left: 2px solid transparent;
	padding-left: 0.65rem;
}

.docs-nav a:hover,
.docs-nav a[aria-current="page"] {
	color: var(--ink);
	border-left-color: var(--brand-accent);
}

.docs-content {
	background: var(--surface);
	border: 1px solid var(--rule);
	padding: 1.35rem 1.25rem 1.5rem;
	height: fit-content;
	align-self: start;
}

@media (min-width: 720px) {
	.docs-content {
		padding: 1.75rem 2rem 2rem;
	}
}

.docs-content > h1 {
	margin: 0 0 1.5rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--rule);
	font-size: clamp(1.65rem, 2.5vw, 1.95rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.docs-content > h1 + .docs-meta {
	margin-top: -0.85rem;
}

.docs-content h2 {
	margin: 2rem 0 0.65rem;
	padding-top: 0.35rem;
	font-family: var(--font-body);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0;
	color: var(--ink);
}

.docs-content h1 + h2 {
	margin-top: 0.35rem;
}

.docs-content h3 {
	margin: 1.5rem 0 0.5rem;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
}

.docs-content p,
.docs-content ul,
.docs-content ol {
	margin: 0 0 1rem;
	max-width: none;
}

.docs-content ul,
.docs-content ol {
	padding-left: 1.2rem;
}

.docs-content li + li {
	margin-top: 0.4rem;
}

.docs-content h2 + p,
.docs-content h2 + ul,
.docs-content h2 + ol,
.docs-content h3 + p,
.docs-content h3 + ul,
.docs-content h3 + ol {
	margin-top: 0.15rem;
}

.docs-meta {
	margin: 0 0 1.5rem;
	color: var(--muted);
	font-size: 0.92rem;
}

.docs-index {
	list-style: none;
	padding: 0;
	margin: 0;
}

.docs-index li {
	border-top: 1px solid var(--rule);
	padding: 0.9rem 0;
}

.docs-index li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.docs-index a {
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--ink);
}

.docs-index a:hover {
	color: var(--brand-accent);
}

.docs-index p {
	margin: 0.25rem 0 0;
	color: var(--muted);
	font-size: 0.95rem;
}

.pager {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.75rem;
	padding-top: 1rem;
	border-top: 1px solid var(--rule);
	font-size: 0.95rem;
}

.docs-content code {
	font-family: var(--font-mono);
	font-size: 0.88em;
	background: var(--brand-accent-soft);
	padding: 0.12em 0.35em;
	border-radius: var(--radius);
}

.callout {
	margin: 1.25rem 0;
	padding: 0.9rem 1rem;
	border-left: 3px solid var(--brand-accent);
	background: var(--brand-accent-soft);
}

.callout p:last-child {
	margin-bottom: 0;
}

/* Support */

.support-card {
	max-width: 36rem;
	background: var(--surface);
	border: 1px solid var(--rule);
	padding: 1.75rem 1.5rem;
	height: fit-content;
}

.support-card h2 {
	margin-top: 0;
}

.support-card ol {
	margin-bottom: 1.5rem;
}

.email-link {
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--brand-accent);
}
