@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=JetBrains+Mono:wght@300;400;500&display=swap");

/* Gladwight components: plain CSS classes over tokens.css. Prefix: gw- */

/* ── Theme map ───────────────────────────────────────────────
   tokens.json holds the named palette only (--parchment, --gilt…).
   This block decides which palette color does each job, per theme.
   Components use the job names (--bg, --ink…), never palette names.
   To restyle a theme, change a line here; nothing else moves. */
:root, [data-theme="light"] {
  --bg: var(--parchment);
  --card: var(--veil);
  --ink: var(--inkwell);
  --mut: var(--pewter);
  --hair: var(--linen);
  --field-border: var(--flint);
  --accent: var(--gilt);
  --accent-ink: var(--brass);
  --info: var(--harbor);
  --success: var(--spruce);
  --caution: var(--ochre);
  --danger: var(--rust);
  --selection: var(--straw);
  --selection-ink: var(--inkwell);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: var(--hearth);
  --card: var(--smoke);
  --ink: var(--vellum);
  --mut: var(--driftwood);
  --hair: var(--cinder);
  --field-border: var(--ash);
  --accent: var(--lamplight);
  --accent-ink: var(--honey);
  --info: var(--cornflower);
  --success: var(--seaglass);
  --caution: var(--marigold);
  --danger: var(--ember);
  --selection: var(--straw);
  --selection-ink: var(--inkwell);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--hearth);
    --card: var(--smoke);
    --ink: var(--vellum);
    --mut: var(--driftwood);
    --hair: var(--cinder);
    --field-border: var(--ash);
    --accent: var(--lamplight);
    --accent-ink: var(--honey);
    --info: var(--cornflower);
    --success: var(--seaglass);
    --caution: var(--marigold);
    --danger: var(--ember);
    --selection: var(--straw);
    --selection-ink: var(--inkwell);
    color-scheme: dark;
  }
}

/* ── Motion ──────────────────────────────────────────────────
   Three durations, two curves, one distance. Components pick from these.
   Under "reduce motion" every duration collapses to 1ms and nothing travels. */
:root {
  --dur-quick: 150ms;     /* hovers, presses, color changes */
  --dur-standard: 250ms;  /* opening, closing, leaving */
  --dur-gentle: 400ms;    /* things arriving on the page */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);   /* arriving: fast start, soft landing */
  --ease-in: cubic-bezier(0.5, 0, 0.9, 0.4);    /* leaving: slow start, quick exit */
  --rise: 6px;            /* the farthest anything travels */
  --dur-wait: 1600ms;     /* one pass of the loading sheen; the only motion that repeats */
}
@media (prefers-reduced-motion: reduce) {
  :root { --dur-quick: 1ms; --dur-standard: 1ms; --dur-gentle: 1ms; --rise: 0px; }
}
@keyframes gw-rise-in { from { opacity: 0; transform: translateY(var(--rise)); } }
@keyframes gw-fade-in { from { opacity: 0; } }
@keyframes gw-fade-out { to { opacity: 0; transform: translateY(calc(var(--rise) / 2)); } }
@keyframes gw-rule-in { from { clip-path: inset(0 100% 0 0 round var(--radius-card)); } to { clip-path: inset(0 0 0 0 round var(--radius-card)); } }
@keyframes gw-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes gw-sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes gw-drain { to { transform: scaleX(0); } }
.gw-enter { animation: gw-rise-in var(--dur-gentle) var(--ease-out) both; }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--selection); color: var(--selection-ink); }

:where(a, button, input, textarea, select):focus-visible {
  outline: var(--rule-weight) solid var(--accent-ink);
  outline-offset: 2px;
}

/* Icons: Lucide at 1.5, from the sprite at components/icons.svg.
   <svg class="gw-icon" aria-hidden="true"><use href="/path/to/icons.svg#phone"/></svg> */
.gw-icon {
  --gw-icon-size: 20px;
  width: var(--gw-icon-size); height: var(--gw-icon-size); flex: none; display: inline-block; vertical-align: middle;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.gw-icon--sm { --gw-icon-size: 16px; }
.gw-icon--lg { --gw-icon-size: 24px; }
/* Draws itself once, stroke by stroke (every sprite shape carries pathLength="1") */
.gw-icon--draw { stroke-dasharray: 1; animation: gw-draw var(--dur-gentle) var(--ease-out) var(--dur-quick) both; }

/* Page shell */
.gw-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; background: var(--bg); color: var(--ink); }
.gw-main { width: 100%; max-width: var(--content-max); padding: var(--section) var(--gutter) 80px; display: flex; flex-direction: column; }
.gw-section { margin-top: var(--section); }

/* Wordmark: the logo as a mask, so it takes --ink in both themes */
.gw-wordmark {
  width: min(440px, 100%);
  aspect-ratio: 480 / 106;
  background: var(--ink);
  -webkit-mask: url("/gw/gladwight-logo.svg") center / contain no-repeat;
  mask: url("/gw/gladwight-logo.svg") center / contain no-repeat;
}
.gw-wordmark--sm { width: 132px; }

/* Rule */
.gw-rule { width: var(--rule-width); height: var(--rule-weight); background: var(--accent); border: 0; margin: 0; }

/* Hero */
.gw-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-5); }
.gw-hero__tagline { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 31px; line-height: 1.3; text-wrap: pretty; }
.gw-hero__lede { margin: 0; max-width: 46ch; font-size: 15px; line-height: 1.7; letter-spacing: 0.01em; color: var(--mut); text-wrap: pretty; }

/* Eyebrow */
.gw-eyebrow { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mut); }

/* Links */
.gw-link { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.gw-link:hover { color: var(--accent-ink); }
.gw-link--feature {
  font-family: var(--font-serif); font-size: 23px; text-decoration: none;
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}

/* Figures: numbers in JetBrains Mono, tabular so columns line up */
.gw-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.gw-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-4) var(--space-3); }
.gw-figure { display: flex; flex-direction: column; gap: var(--space-1); }
.gw-figure__value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 44px; font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
.gw-figure__value--md { font-size: 23px; font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; }
.gw-figure__unit { font-size: .5em; color: var(--mut); margin-left: .15em; }
.gw-figure__label { font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mut); }

/* Status badge */
.gw-status { display: inline-flex; align-items: center; gap: var(--space-1); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--mut); }
.gw-status--live { color: var(--accent-ink); }
.gw-status--live::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-round); background: var(--accent); }

/* Brand card */
.gw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-3); }
.gw-card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-4) 20px 20px; border-radius: var(--radius-card);
  color: inherit; text-decoration: none;
}
.gw-card--live { border: 1px solid var(--hair); background: var(--card); transition: border-color var(--dur-standard) var(--ease-out), transform var(--dur-standard) var(--ease-out); }
.gw-card--live:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.gw-card--soon { border: 1px dashed var(--hair); }
.gw-card__name { font-family: var(--font-serif); font-size: 21px; line-height: 1.1; }
.gw-card__desc { font-size: 13px; line-height: 1.5; color: var(--mut); text-wrap: pretty; }
.gw-card .gw-status { margin-top: var(--space-1); }
/* Optional artwork band across the top, with the project's logo tinted one color.
   Set --gw-card-logo (a url()) and --gw-card-logo-color on .gw-card__logo. */
.gw-card--art { overflow: hidden; }
.gw-card__art {
  position: relative; display: grid; place-items: center;
  margin: calc(var(--space-4) * -1) -20px var(--space-1); aspect-ratio: 5 / 2;
  background: var(--hair) center / cover no-repeat;
}
.gw-card--soon .gw-card__art { margin: calc(var(--space-4) * -1 - 1px) -21px var(--space-1); }
.gw-card__art:has(.gw-card__logo)::before { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side, rgb(10 20 30 / .42), transparent); }
.gw-card__logo { position: relative; width: 62%; max-width: 300px; height: 52%; display: grid; filter: drop-shadow(0 1px 4px rgb(0 0 0 / .45)); }
.gw-card__logo::before {
  content: ""; background: var(--gw-card-logo-color, #fff);
  -webkit-mask: var(--gw-card-logo) center / contain no-repeat; mask: var(--gw-card-logo) center / contain no-repeat;
}

/* Button (intentional addition) */
.gw-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius-card);
  font-family: var(--font-sans); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background-color var(--dur-quick) var(--ease-out), border-color var(--dur-quick) var(--ease-out), color var(--dur-quick) var(--ease-out);
}
.gw-button--primary { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.gw-button--primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--bg); }
.gw-button--secondary { background: transparent; color: var(--ink); border: 1px solid var(--field-border); }
.gw-button--secondary:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.gw-button--quiet { background: transparent; color: var(--ink); border: 1px solid transparent; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.gw-button--quiet:hover { color: var(--accent-ink); }
.gw-button:disabled, .gw-button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* Text field (intentional addition) */
.gw-field { display: flex; flex-direction: column; gap: var(--space-1); max-width: 360px; }
.gw-field__label { font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mut); }
.gw-field__input {
  min-height: 44px; padding: 10px 12px; border-radius: var(--radius-card);
  border: 1px solid var(--field-border); background: var(--card); color: var(--ink);
  font-family: var(--font-sans); font-size: 15px;
}
.gw-field__input::placeholder { color: var(--mut); }
.gw-field__help { font-size: 13px; line-height: 1.5; color: var(--mut); }
.gw-field--invalid .gw-field__input { border-color: var(--danger); }
.gw-field--invalid .gw-field__help { color: var(--danger); }

/* Select: the browser's own list, in the field's clothes. The arrow is the
   chevron-down icon; the open list takes the theme's card and ink.
   <span class="gw-select">
     <select class="gw-field__input" id="…">…</select>
     <svg class="gw-icon gw-icon--sm gw-select__chevron" aria-hidden="true"><use href="…/icons.svg#chevron-down"/></svg>
   </span> */
.gw-select { position: relative; display: flex; min-width: 0; }
.gw-select .gw-field__input {
  flex: 1; min-width: 0; padding-right: 40px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  transition: border-color var(--dur-quick) var(--ease-out);
}
.gw-select .gw-field__input:hover { border-color: var(--accent-ink); }
.gw-select .gw-field__input option { background: var(--bg); color: var(--ink); }  /* opaque: native lists ignore see-through colors */
.gw-select__chevron {
  position: absolute; top: 50%; right: 12px; margin-top: -8px; pointer-events: none; color: var(--mut);
  transition: color var(--dur-quick) var(--ease-out);
}
.gw-select:hover .gw-select__chevron, .gw-select:focus-within .gw-select__chevron { color: var(--accent-ink); }

/* Date picker: a themed calendar (and optional time slots) instead of the browser's own */
.gw-datepicker { position: relative; }
.gw-datepicker__control { position: relative; display: flex; }
.gw-datepicker__input { flex: 1; min-width: 0; padding-right: 48px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 14px; }
.gw-datepicker__toggle {
  position: absolute; top: 0; right: 0; bottom: 0; width: 44px; display: grid; place-items: center;
  border: 0; border-radius: var(--radius-card); background: transparent; color: var(--mut); cursor: pointer;
  transition: color var(--dur-quick) var(--ease-out);
}
.gw-datepicker__toggle:hover, .gw-datepicker__toggle[aria-expanded="true"] { color: var(--accent-ink); }
.gw-datepicker__pop {
  position: absolute; z-index: 40; top: 100%; left: 0; margin-top: 6px;
  width: min(340px, calc(100vw - 32px)); padding: 14px 14px 16px;
  display: flex; flex-direction: column; gap: var(--space-2);
  border: 1px solid var(--field-border); border-radius: var(--radius-card); background: var(--bg); color: var(--ink);
  animation: gw-rise-in var(--dur-standard) var(--ease-out);
}
.gw-datepicker__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.gw-datepicker__month { font-family: var(--font-serif); font-size: 19px; line-height: 1.2; }
.gw-datepicker__nav {
  width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: var(--radius-card);
  background: transparent; color: var(--ink); cursor: pointer;
}
.gw-datepicker__nav:hover { color: var(--accent-ink); }
.gw-datepicker__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.gw-datepicker__grid th { padding: 0 0 6px; text-align: center; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mut); }
.gw-datepicker__grid td { padding: 1px; text-align: center; }
.gw-datepicker__day {
  position: relative; width: 100%; height: 42px; border: 1px solid transparent; border-radius: var(--radius-card);
  background: transparent; color: var(--ink); cursor: pointer;
  font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-quick) var(--ease-out), border-color var(--dur-quick) var(--ease-out), color var(--dur-quick) var(--ease-out);
}
.gw-datepicker__day:hover:not([aria-disabled="true"]) { border-color: var(--field-border); }
.gw-datepicker__day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: var(--radius-round); background: var(--accent); }
.gw-datepicker__day.is-selected { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.gw-datepicker__day[aria-disabled="true"] { color: var(--mut); opacity: 0.45; cursor: not-allowed; }
.gw-datepicker__time { display: flex; flex-direction: column; gap: var(--space-2); padding-top: 12px; border-top: 1px solid var(--hair); }
.gw-datepicker__label { font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mut); }
.gw-datepicker__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; max-height: 172px; overflow-y: auto; }
.gw-datepicker__slot {
  min-height: 40px; border: 1px solid var(--field-border); border-radius: var(--radius-card); background: transparent; color: var(--ink);
  font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color var(--dur-quick) var(--ease-out), border-color var(--dur-quick) var(--ease-out), color var(--dur-quick) var(--ease-out);
}
.gw-datepicker__slot:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.gw-datepicker__slot[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.gw-datepicker__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }

/* Site header (intentional addition) */
.gw-header {
  width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5);
  padding: 20px var(--gutter); border-bottom: 1px solid var(--hair); background: var(--bg);
}
.gw-header__nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.gw-header__nav a { font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mut); text-decoration: none; padding: 12px 0; }
.gw-header__nav a:hover, .gw-header__nav a[aria-current="page"] { color: var(--ink); }
.gw-header__nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

/* Aside / etymology */
.gw-aside { margin: 0 auto; max-width: 44ch; text-align: center; font-family: var(--font-serif); font-style: italic; font-size: 17px; line-height: 1.6; color: var(--mut); text-wrap: pretty; }
.gw-aside__pos { font-style: normal; font-size: 13px; }

/* Footer */
.gw-footer { margin-top: auto; padding: 36px 24px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mut); text-align: center; }

/* Loading: placeholders shaped like what's coming, with a soft gold sheen passing
   over them until it arrives. The one motion that repeats, and only while waiting.
   <div class="gw-loading" role="status" aria-live="polite">
     <span class="gw-visually-hidden">Loading open times</span>
     <span class="gw-skeleton gw-skeleton--text"></span>
     <span class="gw-skeleton" style="height: 40px"></span>
   </div>
   Or put .gw-loading on any container that's waiting: the sheen passes over it
   and it ignores clicks until the class comes off. */
.gw-skeleton { display: block; min-height: 40px; border-radius: var(--radius-card); background: var(--hair); }
.gw-skeleton--text { min-height: 0; height: 0.9em; width: 12em; max-width: 100%; }
.gw-skeleton, .gw-loading { position: relative; overflow: hidden; isolation: isolate; }
.gw-skeleton::after, .gw-loading::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--accent) 22%, transparent) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: gw-sheen var(--dur-wait) var(--ease-out) infinite;
}
.gw-skeleton::after { animation-delay: var(--gw-skeleton-delay, 0ms); }
.gw-loading { pointer-events: none; }
.gw-loading .gw-skeleton::after { display: none; }
.gw-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  .gw-skeleton::after, .gw-loading::after { display: none; }
  .gw-loading { opacity: .6; }
}

/* Alert: an in-page message, never a browser pop-up */
.gw-alert {
  --tone: var(--info);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: var(--space-2) 12px;
  padding: 14px 16px; border: 1px solid var(--tone); border-radius: var(--radius-card);
  background: var(--card); color: var(--ink); font-size: 13px; line-height: 1.5;
}
.gw-alert--success { --tone: var(--success); }
.gw-alert--caution { --tone: var(--caution); }
.gw-alert--danger { --tone: var(--danger); }
/* Arrives: the box is ruled in left to right, the icon draws itself, then the words appear */
.gw-alert { animation: gw-rule-in var(--dur-gentle) var(--ease-out) both; }
.gw-alert__body, .gw-alert__close { animation: gw-fade-in var(--dur-standard) var(--ease-out) var(--dur-quick) both; }
.gw-alert__icon { stroke-dasharray: 1; animation: gw-draw var(--dur-gentle) var(--ease-out) var(--dur-quick) both; }
.gw-alert__icon { --gw-icon-size: 18px; margin-top: 1px; color: var(--tone); }
.gw-alert__body { min-width: 0; }
.gw-alert__title { font-weight: 500; color: var(--tone); }
.gw-alert__close {
  width: 44px; height: 44px; margin: -12px -14px -12px 0; display: grid; place-items: center;
  border: 0; border-radius: var(--radius-card); background: transparent; color: var(--mut); cursor: pointer;
}
.gw-alert__close:hover { color: var(--ink); }
.gw-alert__close .gw-icon { --gw-icon-size: 16px; }

/* Accordion / FAQ: native details/summary, no script */
.gw-accordion { border-top: 1px solid var(--hair); }
.gw-accordion details { border-bottom: 1px solid var(--hair); }
.gw-accordion summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  min-height: 44px; padding: 14px 0; cursor: pointer;
  font-family: var(--font-serif); font-size: 19px; line-height: 1.3; color: var(--ink);
}
.gw-accordion summary::-webkit-details-marker { display: none; }
.gw-accordion summary::after { content: "+"; font-family: var(--font-mono); font-size: 17px; color: var(--accent-ink); flex: none; }
.gw-accordion details[open] > summary::after { content: "−"; }
.gw-accordion summary:hover { color: var(--accent-ink); }
.gw-accordion__body { padding: 0 0 18px; max-width: 60ch; font-size: 15px; line-height: 1.7; color: var(--mut); }
.gw-accordion details[open] > .gw-accordion__body { animation: gw-rise-in var(--dur-standard) var(--ease-out); }
.gw-accordion__body > :first-child { margin-top: 0; }
.gw-accordion__body > :last-child { margin-bottom: 0; }

/* Checklist */
.gw-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); font-size: 15px; line-height: 1.6; }
.gw-checklist li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--space-2); }
.gw-checklist li::before {
  content: ""; width: 10px; height: 5px; margin: .5em 0 0 2px;
  border-left: 1.5px solid var(--accent-ink); border-bottom: 1.5px solid var(--accent-ink); transform: rotate(-45deg);
}
.gw-checklist--sm { font-size: 13px; gap: var(--space-1); }

/* Content boxes */
.gw-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-5) var(--space-4); }
.gw-box { display: flex; flex-direction: column; gap: var(--space-2); }
.gw-box__title { margin: 0; font-family: var(--font-serif); font-size: 21px; font-weight: 400; line-height: 1.15; }
.gw-box__text { margin: 0; font-size: 15px; line-height: 1.7; color: var(--mut); text-wrap: pretty; }
.gw-box .gw-link { font-size: 13px; }

/* Pricing table */
.gw-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-3); align-items: stretch; }
.gw-plan {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4) 20px 20px; border: 1px solid var(--hair); border-radius: var(--radius-card); background: var(--card);
}
.gw-plan--featured { border-color: var(--accent); }
.gw-plan__flag { font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-ink); }
.gw-plan__name { margin: 0; font-family: var(--font-serif); font-size: 21px; font-weight: 400; line-height: 1.1; }
.gw-plan__price { display: flex; flex-direction: column; gap: 2px; }
.gw-plan__amount { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 23px; line-height: 1.2; letter-spacing: -0.01em; }
.gw-plan__per { font-size: 13px; line-height: 1.5; color: var(--mut); }
.gw-plan .gw-button { margin-top: auto; }

/* Testimonial */
.gw-quote { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); max-width: 46ch; }
.gw-quote blockquote { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 21px; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.gw-quote blockquote::before { content: "\201C"; color: var(--accent); margin-right: .05em; }
.gw-quote blockquote::after { content: "\201D"; color: var(--accent); margin-left: .02em; }
.gw-quote figcaption { font-size: 13px; line-height: 1.5; color: var(--mut); }
.gw-quote__name { color: var(--ink); font-weight: 500; }
.gw-quote--center { margin-inline: auto; text-align: center; align-items: center; }

/* Separator */
.gw-sep { border: 0; margin: 0; height: 1px; background: var(--hair); }
.gw-sep--ornament {
  height: auto; background: none; display: flex; align-items: center; gap: var(--space-3);
}
.gw-sep--ornament::before, .gw-sep--ornament::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.gw-sep--ornament > span { width: var(--rule-width); height: var(--rule-weight); background: var(--accent); flex: none; }

/* Table */
.gw-table-wrap { overflow-x: auto; }
.gw-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.gw-table caption { caption-side: top; text-align: left; padding-bottom: 12px; font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mut); }
.gw-table th { text-align: left; padding: 0 16px 10px 0; border-bottom: 1px solid var(--field-border); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mut); white-space: nowrap; }
.gw-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.gw-table th:last-child, .gw-table td:last-child { padding-right: 0; }
.gw-table .gw-table__num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; }
.gw-table th.gw-table__num { font-family: var(--font-sans); font-size: 12px; }
.gw-table tfoot td { border-bottom: 0; border-top: 1px solid var(--field-border); font-weight: 500; }
.gw-table tbody tr:hover td { background: var(--card); }

/* Modal: native <dialog>, opened with showModal() or data-gw-open */
.gw-modal {
  width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px);
  padding: 26px 24px 20px; border: 1px solid var(--hair); border-radius: var(--radius-card);
  background: var(--bg); color: var(--ink);
}
.gw-modal[open] { animation: gw-rise-in var(--dur-standard) var(--ease-out); }
.gw-modal::backdrop { background: rgba(20, 18, 15, 0.5); animation: gw-fade-in var(--dur-standard) var(--ease-out); }
.gw-modal__title { margin: 0 0 10px; font-family: var(--font-serif); font-size: 23px; font-weight: 400; line-height: 1.25; }
.gw-modal__body { margin: 0; font-size: 15px; line-height: 1.7; color: var(--mut); }
.gw-modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-4); }

/* Toast: a brief note in the corner, made by Gladwight.toast() */
.gw-toasts {
  position: fixed; z-index: 50; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: flex-end; pointer-events: none;
}
.gw-toast {
  --tone: var(--info);
  position: relative; isolation: isolate; overflow: hidden; margin-top: var(--space-2);
  pointer-events: auto; max-width: 360px; padding: 12px 16px; cursor: pointer;
  border: 1px solid var(--tone); border-radius: var(--radius-card); background: var(--bg); color: var(--ink);
  font-size: 13px; line-height: 1.5;
  animation: gw-rise-in var(--dur-gentle) var(--ease-out);
}
.gw-toast--success { --tone: var(--success); }
.gw-toast--caution { --tone: var(--caution); }
.gw-toast--danger { --tone: var(--danger); }
.gw-toast__title { font-weight: 500; color: var(--tone); }
/* Arrives: a soft sheen of the status color sweeps across once, behind the words */
.gw-toast::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 25%, color-mix(in srgb, var(--tone) 22%, transparent) 50%, transparent 75%);
  transform: translateX(-100%);
  animation: gw-sheen calc(var(--dur-gentle) * 2) var(--ease-out) var(--dur-quick) both;
}
/* Stays: a hairline drains to show the time left; hovering pauses it */
.gw-toast__timer {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--tone); opacity: 0.55;
  transform-origin: left; animation: gw-drain 5000ms linear forwards;
}
.gw-toast:hover .gw-toast__timer, .gw-toast:focus-within .gw-toast__timer { animation-play-state: paused; }

@media (max-width: 520px) {
  .gw-main { padding: var(--section-sm) var(--gutter-sm) 64px; }
  .gw-hero__tagline { font-size: 26px; }
  .gw-section { margin-top: var(--section-sm); }
  .gw-header { padding: 16px var(--gutter-sm); }
}

@media (prefers-reduced-motion: reduce) {
  .gw-card--live, .gw-button { transition: none; }
}

/* Avatar: a picture in a circle, with optional corner marks.
   Kinds: Glim (two-shade colourway), environment artwork, plain initials, or a photo.
   <span class="gw-avatar gw-avatar--40 gw-avatar--slate">
     <svg class="gw-avatar__art" viewBox="0 0 100 100" role="img" aria-label="Slate"><use href="/path/to/avatars.svg#glim"/></svg>
   </span> */
.gw-avatar {
  --av-size: 40px;
  --av-bg: #ebe8e2; --av-ground: #dedad2; --av-ghost: #a7a29a; --av-eyes: #5f5b53;
  --av-init-bg: #ebe8e2; --av-init-ink: #5f5b53;
  position: relative; display: inline-block; flex: none; vertical-align: middle;
  width: var(--av-size); height: var(--av-size); border-radius: var(--radius-round);
}
/* A hairline ring so dark artwork keeps its edge on dark pages */
.gw-avatar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent); pointer-events: none; }
.gw-avatar__art { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.gw-avatar--24 { --av-size: 24px; }
.gw-avatar--32 { --av-size: 32px; }
.gw-avatar--56 { --av-size: 56px; }
.gw-avatar--96 { --av-size: 96px; }

/* Plain initials, in the sans, on the colourway's deeper shade */
.gw-avatar__initials {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: inherit;
  background: var(--av-init-bg); color: var(--av-init-ink);
  font-family: var(--font-sans); font-weight: 500; font-size: calc(var(--av-size) * 0.38); letter-spacing: 0.02em; line-height: 1;
}

/* Corner marks: initials badge bottom-left, role mark bottom-right. Hidden at 24px. */
.gw-avatar__badge, .gw-avatar__mark {
  position: absolute; bottom: -2px; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: max(14px, calc(var(--av-size) * 0.4)); height: max(14px, calc(var(--av-size) * 0.4));
  border-radius: var(--radius-round); box-shadow: 0 0 0 2px var(--bg);
}
.gw-avatar__badge {
  left: -2px; background: var(--ink); color: var(--bg);
  font-family: var(--font-sans); font-weight: 500; font-size: max(6px, calc(var(--av-size) * 0.15)); letter-spacing: 0.02em; line-height: 1;
}
.gw-avatar__mark { right: -2px; color: var(--bg); }
.gw-avatar__mark .gw-icon { --gw-icon-size: 70%; stroke-width: 2; }
.gw-avatar__mark--admin { background: var(--accent); color: #262420; }
.gw-avatar__mark--staff { background: var(--success); }
.gw-avatar__mark--verified { background: var(--info); }
.gw-avatar--24 .gw-avatar__badge, .gw-avatar--24 .gw-avatar__mark { display: none; }

/* Colourways: background, ground, and the shade behind plain initials */
.gw-avatar--slate    { --av-bg: #4a6788; --av-ground: #3a5373; --av-init-bg: #3a5373; }
.gw-avatar--navy     { --av-bg: #283c5a; --av-ground: #1f3049; --av-init-bg: #1f3049; }
.gw-avatar--teal     { --av-bg: #2f6b6b; --av-ground: #255757; --av-init-bg: #255757; }
.gw-avatar--sage     { --av-bg: #6f8a62; --av-ground: #5b7451; --av-init-bg: #5b7451; }
.gw-avatar--olive    { --av-bg: #76763d; --av-ground: #616132; --av-init-bg: #616132; }
.gw-avatar--sand     { --av-bg: #b39a6a; --av-ground: #9d8457; --av-init-bg: #b39a6a; --av-init-ink: #262420; }
.gw-avatar--ochre    { --av-bg: #c08a36; --av-ground: #a8752b; --av-init-bg: #c08a36; --av-init-ink: #262420; }
.gw-avatar--rust     { --av-bg: #b5603a; --av-ground: #9a4f2f; --av-init-bg: #9a4f2f; }
.gw-avatar--brick    { --av-bg: #a3443a; --av-ground: #883830; --av-init-bg: #883830; }
.gw-avatar--heather  { --av-bg: #8a6a8f; --av-ground: #745878; --av-init-bg: #745878; }
.gw-avatar--plum     { --av-bg: #6e4a6e; --av-ground: #5a3c5a; --av-init-bg: #5a3c5a; }
.gw-avatar--charcoal { --av-bg: #3b3f45; --av-ground: #2f3237; --av-init-bg: #2f3237; }
.gw-avatar:is(.gw-avatar--slate, .gw-avatar--navy, .gw-avatar--teal, .gw-avatar--sage, .gw-avatar--olive, .gw-avatar--sand, .gw-avatar--ochre, .gw-avatar--rust, .gw-avatar--brick, .gw-avatar--heather, .gw-avatar--plum, .gw-avatar--charcoal) {
  --av-ghost: #f3efe4; --av-eyes: #262420;
}
.gw-avatar:is(.gw-avatar--slate, .gw-avatar--navy, .gw-avatar--teal, .gw-avatar--sage, .gw-avatar--olive, .gw-avatar--rust, .gw-avatar--brick, .gw-avatar--heather, .gw-avatar--plum, .gw-avatar--charcoal) {
  --av-init-ink: #f3efe4;
}

/* Avatar chooser: kind buttons, a grid of presets as radios, and a live preview.
   <fieldset class="gw-avatar-chooser"> > legend · __preview · __kinds (buttons, aria-pressed)
   · __grid > label.__option > input.__radio + .gw-avatar + .__name · input[type=hidden][name=avatar] */
.gw-avatar-chooser { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.gw-avatar-chooser > legend { padding: 0; margin-bottom: var(--space-3); }
.gw-avatar-chooser__preview { display: flex; align-items: center; gap: var(--space-4); }
.gw-avatar-chooser__who { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.gw-avatar-chooser__kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.gw-avatar-chooser__kind {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--field-border); border-radius: var(--radius-card);
  background: transparent; color: var(--ink); cursor: pointer;
  font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background-color var(--dur-quick) var(--ease-out), border-color var(--dur-quick) var(--ease-out), color var(--dur-quick) var(--ease-out);
}
.gw-avatar-chooser__kind:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.gw-avatar-chooser__kind[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.gw-avatar-chooser__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: var(--space-3) var(--space-2); }
.gw-avatar-chooser__option { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-1); padding: 6px 0; cursor: pointer; }
.gw-avatar-chooser__radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.gw-avatar-chooser__option .gw-avatar { transition: box-shadow var(--dur-quick) var(--ease-out), transform var(--dur-quick) var(--ease-out); }
.gw-avatar-chooser__option:hover .gw-avatar { transform: translateY(-2px); }
.gw-avatar-chooser__option:has(:checked) .gw-avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.gw-avatar-chooser__option:has(:focus-visible) .gw-avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-ink); }
.gw-avatar-chooser__name { font-size: 11px; letter-spacing: 0.04em; color: var(--mut); text-align: center; }
.gw-avatar-chooser__option:has(:checked) .gw-avatar-chooser__name { color: var(--ink); }
.gw-avatar-chooser__photo { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.gw-avatar-chooser__file { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gw-avatar-chooser__photo:has(.gw-avatar-chooser__file:focus-visible) .gw-button { outline: var(--rule-weight) solid var(--accent-ink); outline-offset: 2px; }
.gw-avatar-chooser--invalid .gw-avatar-chooser__error { color: var(--danger); }
@media (prefers-reduced-motion: reduce) {
  .gw-avatar-chooser__option .gw-avatar, .gw-avatar-chooser__kind { transition: none; }
}

/* Theme toggle: one icon button that flips between light and dark.
   <button class="gw-theme-toggle" type="button" data-gw-theme-toggle aria-label="Switch between light and dark">
     <svg class="gw-icon gw-theme-toggle__moon" aria-hidden="true"><use href="…/icons.svg#moon"/></svg>
     <svg class="gw-icon gw-theme-toggle__sun" aria-hidden="true"><use href="…/icons.svg#sun"/></svg>
   </button>
   The icon shows where a click goes (moon in light, sun in dark). It follows the nearest
   theme by inheritance, so it's right before any script runs. */
:root, [data-theme="light"] { --gw-toggle-moon: inline-block; --gw-toggle-sun: none; }
[data-theme="dark"] { --gw-toggle-moon: none; --gw-toggle-sun: inline-block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --gw-toggle-moon: none; --gw-toggle-sun: inline-block; }
}
.gw-theme-toggle {
  width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center;
  border: 0; border-radius: var(--radius-card); background: transparent; color: var(--mut); cursor: pointer;
  transition: color var(--dur-quick) var(--ease-out);
}
.gw-theme-toggle:hover { color: var(--accent-ink); }
.gw-theme-toggle__moon { display: var(--gw-toggle-moon); }
.gw-theme-toggle__sun { display: var(--gw-toggle-sun); }
/* Switching: the new theme spreads out from the button in a widening circle, and the
   new icon draws itself as it rises into place. bundle.js sets the circle's centre and
   size (--gw-reveal-x, -y, -r) and the classes; browsers without view transitions, and
   anyone who asks for reduced motion, just get the new theme. */
.gw-theme-toggle.is-turning .gw-icon {
  stroke-dasharray: 1;
  animation: gw-draw var(--dur-gentle) var(--ease-out) both, gw-rise-in var(--dur-gentle) var(--ease-out) both;
}
html.gw-theme-reveal::view-transition-old(root),
html.gw-theme-reveal::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.gw-theme-reveal::view-transition-new(root) { animation: gw-theme-reveal calc(var(--dur-gentle) * 2) var(--ease-out); }
@keyframes gw-theme-reveal {
  from { clip-path: circle(0 at var(--gw-reveal-x) var(--gw-reveal-y)); }
  to { clip-path: circle(var(--gw-reveal-r) at var(--gw-reveal-x) var(--gw-reveal-y)); }
}
@media (prefers-reduced-motion: reduce) {
  .gw-theme-toggle { transition: none; }
  .gw-theme-toggle.is-turning .gw-icon { animation: none; stroke-dasharray: none; }
}

/* ── Added for NotaryWNY, usable anywhere ─────────────────────
   Segmented, Switch, Choice, Steps, Upload, Counter, status tones,
   SideNav and Shell, Co-brand, Brandmark and Empty. Each has a card. */

/* Status tones: the badge with a state word and a mark shape per tone, for
   records that move through states (an order, an invite). Text and mark only. */
.gw-status--info, .gw-status--success, .gw-status--caution, .gw-status--danger, .gw-status--accent { --tone: var(--mut); color: var(--tone); }
.gw-status--info { --tone: var(--info); }
.gw-status--success { --tone: var(--success); }
.gw-status--caution { --tone: var(--caution); }
.gw-status--danger { --tone: var(--danger); }
.gw-status--accent { --tone: var(--accent-ink); }
.gw-status--info::before, .gw-status--success::before, .gw-status--caution::before, .gw-status--danger::before, .gw-status--accent::before {
  content: ""; width: 7px; height: 7px; flex: none; background: var(--tone);
}
.gw-status--info::before { border-radius: var(--radius-round); }                              /* dot */
.gw-status--success::before { width: 8px; height: 4px; background: none; border-left: 1.5px solid var(--tone); border-bottom: 1.5px solid var(--tone); transform: translateY(-1px) rotate(-45deg); }  /* tick */
.gw-status--caution::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); }                 /* triangle */
.gw-status--danger::before { clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }  /* octagon */
.gw-status--accent::before { transform: rotate(45deg) scale(.85); }                           /* diamond */

/* Segmented: two to four choices side by side, one picked. Switches a view or a mode.
   <div class="gw-segmented" role="group" aria-label="I am a…" data-gw-segmented>
     <button class="gw-segmented__option" type="button" aria-pressed="true" value="business">Business</button>
     <button class="gw-segmented__option" type="button" aria-pressed="false" value="signer">Signer</button>
   </div>
   bundle.js keeps one pressed and fires gw-segment-change { value } on the group. */
.gw-segmented { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid var(--field-border); border-radius: var(--radius-card); background: var(--card); max-width: 100%; }
.gw-segmented__option {
  flex: 1 1 0; min-height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius-card);
  background: transparent; color: var(--mut); cursor: pointer; white-space: nowrap;
  font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background-color var(--dur-quick) var(--ease-out), color var(--dur-quick) var(--ease-out);
}
.gw-segmented__option:hover { color: var(--accent-ink); }
.gw-segmented__option[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.gw-segmented--block { display: flex; }

/* Switch: an on/off setting that takes effect at once, with its state in words.
   <label class="gw-switch">
     <input class="gw-switch__input" type="checkbox" role="switch">
     <span class="gw-switch__track" aria-hidden="true"></span>
     <span class="gw-switch__label">Maintenance mode</span>
     <span class="gw-switch__state" data-on="On" data-off="Off" aria-hidden="true"></span>
   </label> */
.gw-switch { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 15px; line-height: 1.4; }
.gw-switch__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.gw-switch__track {
  position: relative; flex: none; width: 40px; height: 22px; border: 1px solid var(--field-border); border-radius: 11px; background: var(--card);
  transition: background-color var(--dur-quick) var(--ease-out), border-color var(--dur-quick) var(--ease-out);
}
.gw-switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: var(--radius-round); background: var(--mut);
  transition: transform var(--dur-quick) var(--ease-out), background-color var(--dur-quick) var(--ease-out);
}
.gw-switch__input:checked + .gw-switch__track { background: var(--ink); border-color: var(--ink); }
.gw-switch__input:checked + .gw-switch__track::after { transform: translateX(18px); background: var(--bg); }
.gw-switch__input:focus-visible + .gw-switch__track { outline: var(--rule-weight) solid var(--accent-ink); outline-offset: 2px; }
.gw-switch__input:disabled ~ * { opacity: .45; cursor: not-allowed; }
.gw-switch__state { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--mut); }
.gw-switch__state::after { content: attr(data-off); }
.gw-switch__input:checked ~ .gw-switch__state::after { content: attr(data-on); color: var(--ink); }

/* Choice: a checkbox or radio with a visible label and optional help line.
   <label class="gw-choice">
     <input class="gw-choice__input" type="checkbox" name="…">        (or type="radio")
     <span class="gw-choice__text"><span class="gw-choice__label">Paper out</span>
       <span class="gw-choice__help">We print and ship the signed copy.</span></span>
   </label>
   gw-choice--card puts each option in a bordered box, for a few weighty options. */
.gw-choices { display: flex; flex-direction: column; gap: var(--space-2); border: 0; margin: 0; padding: 0; min-width: 0; }
.gw-choices > legend { padding: 0; margin-bottom: var(--space-2); }
.gw-choice { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; min-height: 44px; padding: 11px 0; cursor: pointer; }
.gw-choice__input {
  appearance: none; -webkit-appearance: none; position: relative; width: 20px; height: 20px; margin: 1px 0 0; flex: none;
  border: 1px solid var(--field-border); border-radius: var(--radius-card); background: var(--card); cursor: pointer;
  transition: background-color var(--dur-quick) var(--ease-out), border-color var(--dur-quick) var(--ease-out);
}
.gw-choice__input[type="radio"] { border-radius: var(--radius-round); }
.gw-choice__input:hover { border-color: var(--accent-ink); }
.gw-choice__input:checked { background: var(--ink); border-color: var(--ink); }
.gw-choice__input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border-right: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: rotate(45deg);
}
.gw-choice__input[type="radio"]:checked::after { content: ""; position: absolute; inset: 5px; border-radius: var(--radius-round); background: var(--bg); }
.gw-choice__input:disabled, .gw-choice__input:disabled ~ * { opacity: .45; cursor: not-allowed; }
.gw-choice__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gw-choice__label { font-size: 15px; line-height: 1.4; color: var(--ink); }
.gw-choice__help { font-size: 13px; line-height: 1.5; color: var(--mut); }
.gw-choice--card { padding: 14px 16px; border: 1px solid var(--field-border); border-radius: var(--radius-card); background: var(--card); transition: border-color var(--dur-quick) var(--ease-out); }
.gw-choice--card:hover { border-color: var(--accent-ink); }
.gw-choice--card:has(:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.gw-choice--card .gw-choice__label { font-family: var(--font-serif); font-size: 19px; line-height: 1.25; }

/* Steps: where a person is in a short sequence (a form in parts, a booking).
   <ol class="gw-steps" aria-label="Order progress">
     <li class="gw-steps__step is-done"><span class="gw-steps__num">1</span><span class="gw-steps__name">Contact</span></li>
     <li class="gw-steps__step" aria-current="step"><span class="gw-steps__num">2</span><span class="gw-steps__name">People</span></li>
     <li class="gw-steps__step"><span class="gw-steps__num">3</span><span class="gw-steps__name">Documents</span></li>
   </ol>
   Done steps read "done" to screen readers through a hidden word you add: <span class="gw-visually-hidden">(done)</span>. */
.gw-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-2); counter-reset: none; }
.gw-steps__step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); padding-top: 10px; border-top: var(--rule-weight) solid var(--hair); color: var(--mut); }
.gw-steps__step.is-done { border-top-color: var(--ink); color: var(--ink); }
.gw-steps__step[aria-current="step"] { border-top-color: var(--accent); color: var(--ink); }
.gw-steps__num { font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.gw-steps__name { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) {
  .gw-steps__step:not([aria-current="step"]) .gw-steps__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Upload: drop files or pick them, then see each one with its size and progress.
   <div class="gw-upload" data-gw-upload>
     <input class="gw-upload__input" type="file" id="docs" multiple accept=".pdf,.png">
     <label class="gw-upload__zone" for="docs">
       <svg class="gw-icon gw-icon--lg" aria-hidden="true"><use href="…/icons.svg#upload"/></svg>
       <span class="gw-upload__title">Drop files here or <u>choose files</u></span>
       <span class="gw-upload__hint">PDF or PNG, up to 10 MB each</span>
     </label>
     <ul class="gw-upload__list">
       <li class="gw-upload__file">
         <svg class="gw-icon gw-icon--sm" aria-hidden="true"><use href="…/icons.svg#file-text"/></svg>
         <span class="gw-upload__name">lease.pdf</span><span class="gw-upload__meta">2.1 MB · uploading</span>
         <button class="gw-upload__remove" type="button" aria-label="Remove lease.pdf"><svg class="gw-icon gw-icon--sm" aria-hidden="true"><use href="…/icons.svg#x"/></svg></button>
         <span class="gw-upload__bar" style="--progress: 40%"></span>
       </li>
     </ul>
   </div>
   bundle.js hands dropped files to the input and fires its change event; your code lists them. */
.gw-upload { display: flex; flex-direction: column; gap: var(--space-2); }
.gw-upload__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gw-upload__zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1); text-align: center;
  min-height: 132px; padding: var(--space-4); border: 1px dashed var(--field-border); border-radius: var(--radius-card);
  background: var(--card); color: var(--mut); cursor: pointer;
  transition: border-color var(--dur-quick) var(--ease-out), color var(--dur-quick) var(--ease-out);
}
.gw-upload__zone:hover, .gw-upload.is-dragging .gw-upload__zone { border-color: var(--accent-ink); color: var(--accent-ink); }
.gw-upload.is-dragging .gw-upload__zone { border-style: solid; }
.gw-upload__input:focus-visible + .gw-upload__zone { outline: var(--rule-weight) solid var(--accent-ink); outline-offset: 2px; }
.gw-upload__title { font-size: 15px; color: var(--ink); }
.gw-upload__title u { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.gw-upload__hint { font-size: 13px; }
.gw-upload__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.gw-upload__file {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  min-height: 48px; padding: 4px 0; border-bottom: 1px solid var(--hair); font-size: 13px;
}
.gw-upload__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.gw-upload__meta { font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; color: var(--mut); white-space: nowrap; }
.gw-upload__file.is-error .gw-upload__meta { color: var(--danger); }
.gw-upload__remove { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: var(--radius-card); background: transparent; color: var(--mut); cursor: pointer; }
.gw-upload__remove:hover { color: var(--danger); }
.gw-upload__bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--progress, 0%); background: var(--accent); transition: width var(--dur-standard) var(--ease-out); }

/* Counter: a small whole number with fewer/more buttons (seals, copies, guests).
   <div class="gw-counter" data-gw-counter data-min="0" data-max="20">
     <button class="gw-counter__step" type="button" data-step="-1" aria-label="Fewer seals"><svg class="gw-icon gw-icon--sm" aria-hidden="true"><use href="…/icons.svg#minus"/></svg></button>
     <input class="gw-counter__value" type="text" inputmode="numeric" value="1" aria-label="Seals">
     <button class="gw-counter__step" type="button" data-step="1" aria-label="More seals"><svg class="gw-icon gw-icon--sm" aria-hidden="true"><use href="…/icons.svg#plus"/></svg></button>
   </div>
   bundle.js clamps the value and fires the input's input and change events. */
.gw-counter { display: inline-flex; align-items: stretch; border: 1px solid var(--field-border); border-radius: var(--radius-card); background: var(--card); }
.gw-counter__step { width: 44px; min-height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; transition: color var(--dur-quick) var(--ease-out); }
.gw-counter__step:hover:not(:disabled) { color: var(--accent-ink); }
.gw-counter__step:disabled { color: var(--mut); opacity: .45; cursor: not-allowed; }
.gw-counter__value {
  width: 3.5em; min-width: 0; border: 0; border-inline: 1px solid var(--hair); background: transparent; color: var(--ink); text-align: center;
  font-family: var(--font-mono); font-size: 15px; font-variant-numeric: tabular-nums;
}

/* Shell and SideNav: a working area with a side list of sections, for back offices.
   <div class="gw-shell">
     <nav class="gw-sidenav" aria-label="Admin">
       <a class="gw-sidenav__link" href="…" aria-current="page"><svg class="gw-icon gw-icon--sm" aria-hidden="true">…</svg>Invites<span class="gw-sidenav__count">3</span></a>
     </nav>
     <main class="gw-shell__main">…</main>
   </div>
   On phones the list becomes a scrolling row above the work. */
.gw-shell { width: 100%; display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: var(--gutter); padding: var(--space-5) var(--gutter) 80px; }
.gw-shell__main { min-width: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.gw-sidenav { position: sticky; top: var(--space-4); display: flex; flex-direction: column; gap: 2px; }
.gw-sidenav__group { margin: var(--space-4) 0 var(--space-1); font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mut); }
.gw-sidenav__link {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-card);
  color: var(--mut); text-decoration: none; font-size: 15px; white-space: nowrap;
  transition: color var(--dur-quick) var(--ease-out), background-color var(--dur-quick) var(--ease-out);
}
.gw-sidenav__link:hover { color: var(--ink); }
.gw-sidenav__link[aria-current="page"] { color: var(--ink); background: var(--card); box-shadow: inset var(--rule-weight) 0 0 var(--accent); }
.gw-sidenav__count { margin-left: auto; min-width: 22px; padding: 1px 6px; border: 1px solid var(--accent); border-radius: var(--radius-card); text-align: center; font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
@media (max-width: 760px) {
  .gw-shell { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding: var(--space-3) var(--gutter-sm) 64px; }
  .gw-sidenav { position: static; flex-direction: row; overflow-x: auto; gap: var(--space-1); border-bottom: 1px solid var(--hair); }
  .gw-sidenav__group { display: none; }
  .gw-sidenav__link[aria-current="page"] { background: none; box-shadow: inset 0 calc(-1 * var(--rule-weight)) 0 var(--accent); }
}

/* Co-brand: our mark beside a partner's, for pages made with or for them.
   <div class="gw-cobrand">
     <span class="gw-cobrand__mark">…our brandmark…</span>
     <span class="gw-cobrand__sep" aria-hidden="true"></span>
     <img class="gw-cobrand__partner" src="…" alt="Smith &amp; Lane LLP">     (add gw-cobrand__partner--invert-dark for dark-on-clear logos)
   </div> */
.gw-cobrand { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-3) var(--space-4); }
.gw-cobrand__mark, .gw-cobrand__partner { height: 56px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.gw-cobrand__mark > * { height: 100%; width: auto; }
.gw-cobrand__sep { width: 1px; height: 40px; background: var(--hair); }
:root[data-theme="dark"] .gw-cobrand__partner--invert-dark { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gw-cobrand__partner--invert-dark { filter: brightness(0) invert(1); } }

/* Brandmark: a project's own multi-color logo, inlined as SVG so its colors
   follow the theme. Paths take a class for their part:
   <svg class="gw-brandmark" viewBox="…" role="img" aria-label="NotaryWNY">
     <path class="gw-brandmark__primary" d="…"/> <path class="gw-brandmark__accent" d="…"/> <path class="gw-brandmark__text" d="…"/>
   </svg>
   A sub-brand sets --brandmark-primary, -accent and -text per theme (see Sub-brands);
   without one they fall back to ink and accent. */
.gw-brandmark { display: block; height: 40px; width: auto; }
.gw-brandmark--sm { height: 32px; }
.gw-brandmark--lg { height: 72px; }
.gw-brandmark__primary { fill: var(--brandmark-primary, var(--ink)); }
.gw-brandmark__accent { fill: var(--brandmark-accent, var(--accent)); }
.gw-brandmark__text { fill: var(--brandmark-text, var(--ink)); }

/* Empty: what a list says when there's nothing in it yet, and the next step.
   <div class="gw-empty"><svg class="gw-icon gw-icon--lg" aria-hidden="true">…</svg>
     <p class="gw-empty__title">No invites yet</p><p class="gw-empty__text">Send one and it shows up here.</p></div> */
.gw-empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-5) var(--space-4); border: 1px dashed var(--hair); border-radius: var(--radius-card); text-align: center; color: var(--mut); }
.gw-empty__title { margin: 0; font-family: var(--font-serif); font-size: 21px; line-height: 1.2; color: var(--ink); }
.gw-empty__text { margin: 0; max-width: 40ch; font-size: 13px; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .gw-segmented__option, .gw-switch__track, .gw-switch__track::after, .gw-choice__input, .gw-choice--card, .gw-upload__zone, .gw-upload__bar, .gw-counter__step, .gw-sidenav__link { transition: none; }
}
