/* vellora.themivo.com: shared tokens, header, footer, buttons, forms and docs.
   Storyline "Casa Lume" identity: bone, deep moss ink, oak. Light theme only. */

:root {
  color-scheme: light;
  --bg: #F3F1EC;
  --surface: #FBFAF7;
  --stage: #E8E2D6;
  --soft: #E3ECE8;
  --ink: #10302E;
  --ink-2: #1F4B47;
  --on-ink: #F3F1EC;
  --muted: #4C625F;          /* 5.4:1 on --bg */
  --line: rgba(16, 48, 46, .14);
  --line-strong: rgba(16, 48, 46, .3);
  --line-input: rgba(16, 48, 46, .58); /* 3.6:1 on --surface: the boundary of form controls */
  --placeholder: #5E6F6C;    /* 5:1 on --surface */
  --oak: #C9A57A;            /* decoration only, not for text */
  --oak-ink: #7F5C33;        /* oak for text, 4.9:1 on --bg */
  --error: #A3341F;          /* 6:1 on --bg */
  --success: #1F5B3A;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r: 20px;
  --r-sm: 12px;
  --r-pill: 999px;
  --gut: clamp(16px, 3vw, 40px);
  --max: 1360px;
  --header-h: 64px;
  --header-top: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 24px 60px -32px rgba(16, 48, 46, .45);
  --shadow-sm: 0 8px 24px -16px rgba(16, 48, 46, .35);
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--header-top) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main, body > .docs-shell { flex: 1 0 auto; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
code, kbd, pre { font-family: var(--mono); font-size: .88em; }
::selection { background: rgba(201, 165, 122, .45); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-ink :focus-visible, .site-footer :focus-visible { outline-color: var(--on-ink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--on-ink); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.display { font-family: var(--display); font-weight: 300; letter-spacing: -.03em; line-height: 1.04; font-optical-sizing: auto; }
.display em, .eyebrow em { font-style: italic; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--oak-ink); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* --------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--ink); --btn-fg: var(--on-ink); --btn-border: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border: 1px solid var(--btn-border); border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { --btn-bg: var(--ink-2); --btn-border: var(--ink-2); }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--on-ink); --btn-border: var(--ink); }
.btn--light { --btn-bg: var(--on-ink); --btn-fg: var(--ink); --btn-border: var(--on-ink); }
.btn--light:hover { --btn-bg: #fff; --btn-border: #fff; }
.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: var(--header-top); z-index: 50;
  width: min(100% - 2 * var(--gut), 1180px);
  margin: var(--header-top) auto 0;
}
.site-header__pill {
  display: flex; align-items: center; gap: 12px;
  height: var(--header-h); padding: 0 10px 0 22px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: rgba(251, 250, 247, .88);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; margin-right: auto; border-radius: var(--r-pill); }
.brand__name { font-family: var(--display); font-weight: 300; font-size: 26px; letter-spacing: -.03em; line-height: 1; }
.brand__by { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.site-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: var(--r-pill); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background-color .2s var(--ease);
}
.site-nav a:hover { background: var(--stage); }
.site-nav a[aria-current] { background: var(--soft); }

@media (max-width: 760px) {
  :root { --header-h: 56px; --header-top: 8px; }
  .site-header__pill { padding: 0 6px 0 16px; gap: 4px; }
  .brand__name { font-size: 23px; }
  .brand__by, .site-nav__wide { display: none; }
  .site-nav a { padding: 0 10px; font-size: 14px; }
  .site-header__cta { padding: 0 14px; min-height: 40px; font-size: 13px; }
}
@media (max-width: 359px) {
  .site-header__cta { display: none; }
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  margin-top: clamp(64px, 9vw, 120px);
  background: var(--ink); color: var(--on-ink);
  border-radius: 32px 32px 0 0;
  padding: clamp(40px, 6vw, 72px) 0 28px;
}
.site-footer__inner {
  width: min(100% - 2 * var(--gut), 1180px); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: start;
}
.site-footer__name { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 6vw, 64px); letter-spacing: -.03em; line-height: 1; margin-bottom: 12px; }
.site-footer__brand p:not(.site-footer__name) { color: rgba(243, 241, 236, .82); }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.site-footer__nav a { display: inline-block; padding: 8px 0; text-decoration: none; color: rgba(243, 241, 236, .9); }
.site-footer__nav a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(243, 241, 236, .16); font-size: 13px; color: rgba(243, 241, 236, .72); }
@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------- forms */

.field { display: grid; gap: 6px; }
.field + .field, .field + .field-row, .field-row + .field { margin-top: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field__label { font-weight: 600; font-size: 15px; }
.field__optional { font-weight: 400; color: var(--muted); }
.field__hint { font-size: 14px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1px solid var(--line-input); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
  font-size: 16px; line-height: 1.4;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.textarea { min-height: 180px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%2310302E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16, 48, 46, .18); }
[aria-invalid="true"].input, [aria-invalid="true"].select, [aria-invalid="true"].textarea { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field__error { display: flex; gap: 6px; align-items: flex-start; color: var(--error); font-size: 14px; font-weight: 500; }
.field__error:empty { display: none; }
.field__error::before { content: '!'; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--error); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ docs shell */

.page-docs { --sidebar-w: 268px; --toc-w: 220px; }
.docs-shell {
  width: min(100% - 2 * var(--gut), var(--max)); margin: 0 auto;
  display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w);
  gap: 0 clamp(28px, 4vw, 64px); align-items: start;
  padding-top: 32px;
}
.docs-shell.no-toc { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
.docs-shell.no-toc .docs-toc { display: none; }
.docs-bar { display: none; }

.sidebar {
  position: sticky; top: calc(var(--header-h) + var(--header-top) + 20px);
  max-height: calc(100vh - var(--header-h) - var(--header-top) - 40px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 0 6px 24px 0; scrollbar-width: thin;
}
.sidebar__head { display: none; }
.sidebar__group + .sidebar__group { margin-top: 22px; }
.sidebar__title { margin: 0 0 6px 12px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar__nav a {
  display: block; padding: 6px 12px; border-radius: 10px;
  font-size: 15px; line-height: 1.4; text-decoration: none; color: var(--ink);
  transition: background-color .2s var(--ease);
}
.sidebar__nav a:hover { background: var(--stage); }
.sidebar__nav a[aria-current="page"] { background: var(--ink); color: var(--on-ink); font-weight: 500; }
.sidebar__nav a[aria-current="true"] { background: var(--soft); font-weight: 500; }

/* search */
.search { margin-bottom: 24px; }
.search__field { position: relative; }
.search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search__input {
  width: 100%; height: 44px; padding: 0 40px 0 38px;
  border: 1px solid var(--line-input); border-radius: var(--r-pill);
  background: var(--surface); font-size: 15px;
}
.search__input::-webkit-search-cancel-button { display: none; }
.search__input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16, 48, 46, .18); }
.search__kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); min-width: 22px; padding: 1px 6px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 12px; color: var(--muted); text-align: center; pointer-events: none; }
.search__input:focus ~ .search__kbd { opacity: 0; }
.search__results {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 20;
  width: min(440px, calc(100vw - 2 * var(--gut)));
  max-height: min(70vh, 520px); overflow-y: auto;
  padding: 6px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); box-shadow: var(--shadow);
}
.search__results ul { margin: 0; padding: 0; list-style: none; }
.search__results a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.search__results a:hover, .search__results a:focus-visible { background: var(--stage); outline: none; }
.search__results a:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.search__hit-section { display: block; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.search__hit-title { display: block; font-weight: 600; }
.search__hit-text { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.search__results mark { background: rgba(201, 165, 122, .4); color: inherit; border-radius: 3px; padding: 0 1px; }
.search__empty { padding: 12px; font-size: 14px; color: var(--muted); }

/* toc */
.docs-toc { position: sticky; top: calc(var(--header-h) + var(--header-top) + 20px); max-height: calc(100vh - var(--header-h) - 60px); overflow-y: auto; padding-bottom: 24px; scrollbar-width: thin; }
.toc__title { margin: 4px 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc ul { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; margin-left: -1px; padding: 5px 0 5px 14px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none; transition: color .2s var(--ease), border-color .2s var(--ease); }
.toc__item--h3 a { padding-left: 26px; font-size: 13px; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--ink); font-weight: 500; }

/* main column */
.docs-main { min-width: 0; padding-bottom: 24px; }
.docs-main:focus { outline: none; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 4px; opacity: .6; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.doc-head { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.doc-head .eyebrow { margin-bottom: 14px; }
.doc-head h1 { font-family: var(--display); font-weight: 300; font-size: clamp(38px, 5vw, 56px); line-height: 1.05; letter-spacing: -.03em; }
.doc-desc { margin-top: 14px; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 60ch; }
.doc-foot { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--muted); }
.doc-foot p { font-size: 14px; }
.doc-foot a { color: var(--ink); }

/* prose */
.prose { max-width: 900px; }
.prose > :where(p, ul, ol, dl, blockquote, pre, h2, h3, h4, .callout, .doc-desc, figure) { max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; }
.prose > .doc-head + * { margin-top: 0; }
.prose h2 { margin-top: 2.2em; font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3.2vw, 34px); letter-spacing: -.02em; line-height: 1.15; }
.prose h3 { margin-top: 1.8em; font-size: 20px; letter-spacing: -.005em; }
.prose h4 { margin-top: 1.6em; font-size: 17px; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose .anchor { margin-left: .35em; padding: 0 .2em; color: var(--oak-ink); text-decoration: none; opacity: 0; transition: opacity .2s var(--ease); font-family: var(--body); font-weight: 400; font-size: .8em; }
.prose :is(h2, h3, h4):hover .anchor, .prose .anchor:focus-visible { opacity: 1; }
.prose a:not(.anchor, .ref-card, .pager__link, .btn) { color: var(--ink); text-decoration-color: var(--oak); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.prose a:not(.anchor, .ref-card, .pager__link, .btn):hover { text-decoration-color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--oak-ink); }
.prose strong { font-weight: 600; }
.prose .lead { font-size: 19px; line-height: 1.6; }
.prose code { padding: .12em .38em; border-radius: 6px; background: var(--stage); font-size: .86em; }
.prose pre { overflow-x: auto; padding: 18px 20px; border-radius: var(--r-sm); background: var(--ink); color: var(--on-ink); line-height: 1.55; }
.prose pre code { padding: 0; background: none; color: inherit; font-size: 14px; }
.prose kbd { padding: .1em .45em; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); font-size: .82em; }
.prose blockquote { margin-left: 0; padding-left: 18px; border-left: 3px solid var(--oak); color: var(--muted); }
.prose img { border-radius: var(--r-sm); border: 1px solid var(--line); }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.callout { padding: 16px 20px; border-radius: var(--r-sm); background: var(--soft); border: 1px solid rgba(16, 48, 46, .08); }
.callout > * + * { margin-top: .6em; }
.callout__title { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.callout--tip { background: #EEF2E6; }
.callout--warning, .callout--caution { background: #F6E9DC; border-color: rgba(127, 92, 51, .25); }
.callout--important { background: #EFE7DA; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.table-wrap:focus-visible { outline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(232, 226, 214, .45); }
.prose tbody tr:last-child > * { border-bottom: 0; }

/* generated reference */
.facts { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 18px; }
.facts > div + div { border-top: 1px solid var(--line); }
.facts dt { font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; }
.settings { table-layout: fixed; }
.settings col, .settings thead th:nth-child(1) { width: 38%; }
.settings thead th:nth-child(2) { width: 16%; }
.settings thead th:nth-child(3) { width: 20%; }
.settings tbody th { font-weight: 400; }
.setting-label { display: block; font-weight: 600; }
.setting-info { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.setting-note { font-size: 15px; color: var(--muted); }
.swatch { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; border-radius: 4px; background: var(--swatch); border: 1px solid var(--line-strong); }
@media (max-width: 720px) {
  .settings, .settings tbody, .settings tr, .settings th, .settings td { display: block; width: auto; }
  .settings thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .settings tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .settings tbody tr:last-child { border-bottom: 0; }
  .prose .settings th, .prose .settings td { padding: 0; border: 0; }
  .settings td { display: grid; grid-template-columns: 76px 1fr; gap: 10px; margin-top: 6px; font-size: 14px; }
  .settings td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: 13px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
}

.card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 0 !important; list-style: none; max-width: none !important; }
.card-list li + li { margin-top: 0; }
.ref-card {
  display: grid; gap: 6px; height: 100%; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  text-decoration: none; transition: border-color .2s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.ref-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ref-card__title { font-weight: 600; }
.ref-card__meta { font-size: 13px; color: var(--muted); }
.ref-card__meta code { font-size: 12px; }

.docs-home { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; max-width: none !important; }
.docs-home__group { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.prose .docs-home__title { margin: 0 0 10px; font-family: var(--display); font-weight: 300; font-size: 26px; }
.docs-home ul { margin: 0; padding: 0; list-style: none; }
.docs-home li + li { margin-top: 4px; }
.docs-home__help { margin-top: 32px !important; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; max-width: 72ch; }
.pager__link { display: grid; gap: 2px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); text-decoration: none; transition: border-color .2s var(--ease), box-shadow .3s var(--ease); }
.pager__link:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.pager__link--next { text-align: right; grid-column: 2; }
.pager__dir { font-size: 13px; color: var(--muted); }
.pager__title { font-weight: 600; }

/* copy-link toast */
.copy-toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; padding: 10px 18px; border-radius: var(--r-pill); background: var(--ink); color: var(--on-ink); font-size: 14px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .35s var(--ease); }
.copy-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1199px) {
  .docs-shell, .docs-shell.no-toc { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .docs-toc { display: none; }
}

/* mobile drawer */
@media (max-width: 959px) {
  .docs-shell, .docs-shell.no-toc { display: block; padding-top: 12px; }
  .docs-bar {
    position: sticky; top: calc(var(--header-h) + var(--header-top) + 8px); z-index: 30;
    display: flex; gap: 8px; margin-bottom: 20px;
  }
  .docs-bar__btn {
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
    border: 1px solid var(--line); border-radius: var(--r-pill); background: rgba(251, 250, 247, .94);
    box-shadow: var(--shadow-sm); font-weight: 500; font-size: 15px; cursor: pointer;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .docs-bar__btn--icon { width: 44px; padding: 0; justify-content: center; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 70; top: 0;
    width: min(340px, 88vw); max-height: none; height: 100%;
    padding: 18px 18px 32px; background: var(--bg);
    border-radius: 0 var(--r) var(--r) 0; box-shadow: var(--shadow);
    transform: translateX(-104%); visibility: hidden;
    transition: transform .45s var(--ease), visibility 0s linear .45s;
  }
  .sidebar.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
  .sidebar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .sidebar__heading { font-family: var(--display); font-weight: 300; font-size: 24px; letter-spacing: -.02em; }
  .sidebar__close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; }
  .search__kbd { display: none; }
  .search__results { width: 100%; }
  .docs-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(16, 48, 46, .36); opacity: 0; transition: opacity .3s var(--ease); }
  .docs-backdrop.is-visible { opacity: 1; }
  html.nav-locked { overflow: hidden; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .doc-desc, .prose .lead { font-size: 17px; }
  .pager { grid-template-columns: 1fr; }
  .pager__link--next { grid-column: 1; }
  .doc-foot { flex-direction: column; }
}

/* ------------------------------------------------------- simple pages */

.page-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(28px, 4vw, 48px); }
.page-hero h1 { font-family: var(--display); font-weight: 300; font-size: clamp(44px, 7vw, 84px); line-height: 1.02; letter-spacing: -.035em; }
.page-hero h1 em { font-style: italic; }
.page-hero .lead { margin-top: 18px; max-width: 56ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.card { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }

/* ------------------------------------------------------------- motion */

.reveal { animation: reveal .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  .site-header, .site-footer, .sidebar, .docs-toc, .docs-bar, .pager, .skip-link { display: none !important; }
  .docs-shell { display: block; }
  body { background: #fff; }
}

/* ----------------------------------------------------------- support */

.support__hero { padding-bottom: clamp(24px, 4vw, 44px); }
.support__sla { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 18px; border-radius: var(--r-pill); background: var(--soft); font-weight: 500; font-size: 15px; }
.support__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.support__aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + var(--header-top) + 24px); }
.support__card { padding: 24px 26px; }
.support__h2 { font-family: var(--display); font-weight: 300; font-size: 26px; letter-spacing: -.02em; margin-bottom: 8px; }
.support__links { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.support__links a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.support__links li:last-child a { border-bottom: 0; }
.support__links a::after { content: '→'; color: var(--oak-ink); transition: transform .25s var(--ease); }
.support__links a:hover::after { transform: translateX(3px); }
.support__checklist { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; }
.support__checklist li { position: relative; padding-left: 26px; }
.support__checklist li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--oak-ink); border-bottom: 2px solid var(--oak-ink); transform: rotate(-45deg); }
.support__note { padding: 0 6px; }
.support__form-card { padding: clamp(22px, 3.4vw, 44px); }
.support__form-title { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3vw, 36px); letter-spacing: -.02em; }
.support__required { margin: 6px 0 26px; }
.support__consent { margin-top: 26px !important; }
.support__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; }
.nowrap { white-space: nowrap; }

.form-summary { margin-bottom: 24px; padding: 16px 18px; border: 1px solid rgba(163, 52, 31, .35); border-radius: var(--r-sm); background: #F8E9E3; color: var(--ink); }
.form-summary:focus { outline: 2px solid var(--error); outline-offset: 2px; }
.form-summary p + ul { margin-top: 6px; }
.form-summary ul { margin: 0; padding-left: 20px; }
.form-summary a { color: var(--error); font-weight: 500; }

.status-panel { display: none; margin-bottom: 24px; padding: 18px 20px; border-radius: var(--r-sm); }
.status-panel:target, .status-panel.is-visible { display: block; }
.status-panel:focus { outline: none; }
.status-panel > * + * { margin-top: 10px; }
.status-panel--success { padding: clamp(20px, 3vw, 32px); background: var(--soft); }
.status-panel--success:target ~ .support-form, .status-panel--success.is-visible ~ .support-form { display: none; }
.status-panel__title { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3vw, 36px); letter-spacing: -.02em; }
.status-panel--error { background: #F8E9E3; border: 1px solid rgba(163, 52, 31, .35); }
.status-panel a:not(.btn) { color: inherit; }

.dropzone {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center;
  padding: 18px 20px; border: 1.5px dashed var(--line-input); border-radius: var(--r-sm);
  background: var(--surface); cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.dropzone svg { grid-row: span 2; color: var(--oak-ink); }
.dropzone__strong { font-weight: 600; text-decoration: underline; text-decoration-color: var(--oak); text-underline-offset: .2em; }
.dropzone__meta { grid-column: 2; font-size: 14px; color: var(--muted); }
.dropzone:hover, .dropzone.is-dragover { border-color: var(--ink); background: var(--soft); }
.dropzone__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone__input:focus-visible + .file-list, .dropzone__input:focus-visible ~ .file-list { outline: none; }
.field:focus-within .dropzone:has(+ .dropzone__input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.dropzone.is-invalid { border-color: var(--error); }
.file-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.file-list li { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; }
.file-list li.is-invalid { border-color: var(--error); }
.file-list__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.file-list__size { color: var(--muted); white-space: nowrap; }
.file-list__remove { flex: none; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: transparent; font-size: 13px; cursor: pointer; }
.file-list__remove:hover { background: var(--stage); }
.char-count--over { color: var(--error); font-weight: 600; }

@media (hover: none) { .dropzone__drag { display: none; } }
@media (max-width: 900px) {
  .support__grid { grid-template-columns: minmax(0, 1fr); }
  .support__aside { position: static; order: 2; }
}

/* --------------------------------------------------------------- 404 */

.notfound-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.notfound-links a { display: grid; gap: 6px; height: 100%; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.notfound-links a:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.notfound-links__title { font-family: var(--display); font-weight: 300; font-size: 26px; letter-spacing: -.02em; }

/* fixes after visual review */
.field-row { align-items: start; }
.field-row > .field + .field { margin-top: 0; }
.prose .breadcrumb ol { padding-left: 0; }
.prose .breadcrumb li + li { margin-top: 0; }
.prose > .doc-head, .prose > .doc-foot { max-width: 72ch; }
.search__results { position: static; width: auto; max-height: none; margin-top: 8px; box-shadow: var(--shadow-sm); }
@media (max-width: 959px) {
  /* The bar stays under the header while reading, so the docs menu and search are always one tap away.
     Only the two buttons take clicks; the space between them does not cover the page. */
  .docs-bar { pointer-events: none; }
  .docs-bar__btn { pointer-events: auto; }
  .sidebar__head { position: sticky; top: 0; z-index: 1; margin: -18px -18px 14px; padding: 18px 18px 10px; background: var(--bg); }
  .settings td.is-empty { display: none; }
  /* Without JavaScript there is no drawer: show the docs nav inline above the content. */
  html:not(.js) .sidebar { position: static; transform: none; visibility: visible; width: auto; height: auto; box-shadow: none; padding: 0 0 24px; border-radius: 0; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
  html:not(.js) .docs-bar, html:not(.js) .sidebar__head, html:not(.js) .search { display: none; }
}

[data-ref] { white-space: nowrap; }

/* form controls: placeholders at AA contrast, and long content never widens the form */
.input::placeholder, .textarea::placeholder, .search__input::placeholder { color: var(--placeholder); opacity: 1; }
.field, .support__main { min-width: 0; }
.file-list li { flex-wrap: wrap; }
.file-list__problem { flex: 1 0 100%; order: 9; margin-top: -2px; font-size: 13px; font-weight: 600; color: var(--error); }
