/* ==========================================================================
   WOU Gym — core: fonts, tokens, reset, type, buttons, ring, forms.
   Shared by the public site (site.css) and the panel (admin.css).
   Every value is a token on :root; components use tokens only.
   ========================================================================== */

/* ---------- Fonts ---------- (user decision 10.11.2026: Montserrat + Satoshi read as a template) */
/* Archivo (Omnibus-Type, SIL OFL 1.1, fonts/OFL-Archivo.txt), variable in weight and width. Text uses it at normal width; headlines use the
   "Archivo Display" faces, the same files pinned to a wide cut that echoes the wide letters of the mark. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext-standard-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-standard-italic.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext-standard-italic.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo Display";
  src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 116%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo Display";
  src: url("../fonts/archivo-latin-ext-standard-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 116%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo Display";
  src: url("../fonts/archivo-latin-standard-italic.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 116%; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo Display";
  src: url("../fonts/archivo-latin-ext-standard-italic.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 116%; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  /* ground: warm black layers */
  --bg: #0b0a08;
  --bg-veil: rgb(11 10 8 / .94);
  --bg-shade: rgb(11 10 8 / .5);
  --bg-raised: #15120e;
  --surface: #1b1813;
  --surface-2: #231f19;
  --surface-3: #2e2820;

  /* ink: ivory */
  --ink: #f7f2e8;
  --ink-bright: #fffcf5;
  --ink-2: #d6cdbf;
  --ink-3: #a69d8f;

  /* hairlines */
  --line: rgb(247 242 232 / .12);
  --line-2: rgb(247 242 232 / .24);
  --line-gold: rgb(214 163 43 / .55);
  /* the O of the official mark as an image, for faint background use */
  --mark-o: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='328.4 0 247.3 234.982'%3E%3Cpath fill='%23f7f2e8' transform='matrix(1 0 0 -1 378.99 211.4706)' d='M0 0C8.119 8.827 19.061 22.969 24.337 25.06 29.038 26.924 34.117 23.119 38.223 21.588 64.564 11.766 91.543 12.854 115.908 29.108 135.414 42.121 150.905 65.158 151.915 91.696 153.345 129.267 129.638 150.082 129.918 153.886 130.021 155.289 130.954 156.599 132.136 157.782L154.874 180.551C182.453 154.578 196.732 117.066 191.852 79.948 185.694 33.113 154.211-5.018 108.948-18.304 75.336-28.171 39.896-23.696 9.306-7.587 5.454-5.559 2.435-3.049 0 0'/%3E%3Cpath fill='%23f7f2e8' transform='matrix(1 0 0 -1 383.7664 76.043598)' d='M0 0C-19.01-32.182-14.905-69.088 9.053-97.532 11.675-100.645 11.239-103.185 8.452-106.027L-13.778-128.691C-36.875-110.764-49.872-79.698-52.799-51.428-55.319-27.093-47.681-2.187-34.73 19.076-25.835 33.678-12.722 45.91 1.218 55.32 41.909 82.788 100.809 84.031 140.763 52.537L121.182 31.297C118.585 28.48 115.868 24.605 111.115 27.139 87.09 39.948 58.122 41.773 33.417 29.133 24.806 24.728 16.454 18.957 10.141 11.761 6.808 7.961 2.314 3.918 0 0'/%3E%3C/svg%3E");

  /* one gold: the brand's yellow gold, lit (#D6A32B) for mark, motifs, actions, icons and gold text;
     a brighter step for hover, the original deep #A87C1C for quiet details */
  --gold: #d6a32b;
  --gold-hi: #e4b23c;
  --gold-lo: #a87c1c;
  --gold-ink: #d6a32b;
  --gold-sheen: rgb(255 244 214 / .38);
  --on-gold: #0b0a08;
  /* the mark's own colours, exactly as in the official logo files */
  --logo-ink: #e7e5e6;
  --logo-gold: #a0741d;

  /* status */
  --ok: #9dbb86;
  --ok-line: rgb(157 187 134 / .5);
  --err: #e58a72;
  --err-line: rgb(229 138 114 / .5);

  /* type: Montserrat for headlines and prices, Satoshi for everything else */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo Display", "Archivo", ui-sans-serif, system-ui, sans-serif;
  /* code in the developer docs (/api/docs) */
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  --weight-display: 800;
  --fs-display: clamp(2.75rem, min(.5rem + 11.5vw, 19svh), 13rem);
  /* height of the wordmark letters in the home hero (one letter to a frame) */
  --mark-h: min(14vw, 28svh);
  --fs-1: clamp(2.2rem, 1rem + 5.6vw, 8rem);
  --fs-2: clamp(1.9rem, .9rem + 5.6vw, 7rem);
  --fs-headline: clamp(2rem, 1.2rem + 2.6vw, 4rem);
  --fs-3: clamp(1.55rem, 1.15rem + 1.4vw, 2.4rem);
  --fs-price: clamp(2.6rem, 1.6rem + 2.6vw, 4.4rem);
  --fs-card: clamp(1.3rem, 1.2rem + .4vw, 1.55rem);
  --fs-4: clamp(1.15rem, 1.08rem + .3vw, 1.35rem);
  --fs-lead: clamp(1.15rem, 1.05rem + .45vw, 1.375rem);
  --fs-prose: 1.125rem;
  --fs-body: 1.0625rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;
  --fs-micro: .6875rem;
  --lh-tight: .84;
  --lh-head: 1;
  --lh-body: 1.65;
  --track-display: -.015em;
  --track-head: -.01em;
  /* the first letter of each display word leans like the blade of the W (slant(), .sl) */
  --lean: italic;
  --case-display: uppercase;
  --track-label: .14em;

  /* space */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --section: clamp(5rem, 2.4rem + 8vw, 10rem);
  --gutter: clamp(1.25rem, .55rem + 2.8vw, 3rem);
  --wrap: 84rem;
  --wrap-wide: 110rem;
  --measure: 68ch;

  /* shape */
  /* soft cards, pill controls; the round badge on a button is the ring of the mark */
  --r: 10px;
  --r-lg: 18px;
  --r-round: 999px;

  /* depth */
  --shadow: 0 32px 64px -32px rgb(0 0 0 / .75), 0 2px 10px rgb(0 0 0 / .35);

  /* photography grade: one treatment for every image */
  /* photos are graded on upload where needed (App\\Services\\Images::grade); the gym's own photographs
     keep their warm gold light, which is the brand's colour, and brighten a touch under the pointer */
  --grade: none;
  --grade-hover: saturate(1.06) brightness(1.04);

  /* motion: one curve, four durations, fixed distances; short and decisive */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-1: .16s;
  --t-2: .32s;
  --t-3: .6s;
  --t-4: 1s;
  --shift: 2rem;
  --zoom: 1.1;
  --stagger: .055s;
  /* one slow turn of the O in the home hero (user request, 10.11.2026) */
  --t-orbit: 48s;
  /* the gold band runs one loop in this time (user request, 10.11.2026: the site felt still) */
  --t-ticker: 40s;
  /* scroll-linked travel: photos drift inside their frames */
  --drift: 4rem;

  /* controls */
  --control-h: 3.5rem;
  --control-h-sm: 2.5rem;
  --control-h-xs: 2.125rem;
  --header-h: 5.25rem;
  /* the header's height once the page has moved */
  --bar-h: 4.25rem;

  /* the blade: slant of the gold stroke in the W */
  --blade: -27deg;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-5));
  scrollbar-color: var(--surface-3) var(--bg);
  scrollbar-width: thin;
  background: var(--bg);
}
body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--gold-ink);
  accent-color: var(--gold);
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul[class], ol[class] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: var(--lh-head); }
/* Line breaks (copy standard, 04.11.2026): every short text is balanced, so a two-line text
   breaks where it reads best, not wherever the last word overflowed; running text in .prose
   only avoids a lone last word. Words that lean on each other are tied on the server
   (App\\Services\\Typography): no line ends on "ve", "bir" or "the". */
h1, h2, h3, h4, h5, h6, p, li, dt, dd, figcaption, blockquote, legend, label, summary, caption { text-wrap: balance; }
.prose :is(p, li, dd, blockquote) { text-wrap: pretty; }
strong { font-weight: 600; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: var(--r); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border: 2px solid var(--bg); border-radius: var(--r-round); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-lo); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: var(--s-3); left: var(--s-3); z-index: 200;
  padding: var(--s-3) var(--s-4); background: var(--gold); color: var(--on-gold);
  font-weight: 600; border-radius: var(--r);
  transform: translateY(-200%); transition: transform var(--t-2) var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Icons ---------- */
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Layout primitives ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; container-type: inline-size; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 52rem); margin-inline: auto; }
.wrap--wide { width: min(100% - 2 * var(--gutter), var(--wrap-wide)); }
.stack > * + * { margin-top: var(--s-5); }

/* ---------- Type ----------
   Display roles (display, h1–h3) share one weight and tight tracking; text is the same family. */
.display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  text-transform: var(--case-display);
}
.display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--track-display); }
.h1 { font-size: min(var(--fs-1), var(--fit, 100vw)); line-height: .95; letter-spacing: var(--track-display); }
.h2 { font-size: min(var(--fs-2), var(--fit, 100vw)); line-height: var(--lh-head); letter-spacing: var(--track-head); }
.h3 { font-size: var(--fs-3); line-height: 1.05; letter-spacing: var(--track-head); }
.h4 { font-size: var(--fs-4); font-weight: 600; line-height: 1.3; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); }
.small { font-size: var(--fs-sm); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.gold { color: var(--gold-ink); }
.label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}
.num { font-variant-numeric: tabular-nums lining-nums; }
.sl { font-style: var(--lean); }

/* ---------- Links ---------- */
.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 600; font-size: var(--fs-xs); letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: .2rem;
  transition: background-size var(--t-2) var(--ease), color var(--t-2) var(--ease);
}
.link-arrow .icon { width: 1.1em; height: 1.1em; color: var(--gold); transition: transform var(--t-2) var(--ease); }
.link-arrow:hover { background-size: 100% 1px; color: var(--gold-ink); }
.link-arrow:hover .icon { transform: translateX(.25rem); }

.text-link {
  color: var(--gold-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: color var(--t-1) var(--ease);
}
.text-link:hover { color: var(--ink); }

/* ---------- Buttons ----------
   Pills. A button that leads somewhere carries its arrow in a round badge at its end (the ring of
   the mark); the arrow points up and to the right and straightens on hover. */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .9rem;
  min-height: var(--control-h);
  padding: 0 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--r-round);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
  transition: background-color var(--t-2) var(--ease), border-color var(--t-2) var(--ease), color var(--t-2) var(--ease), transform var(--t-1) var(--ease);
}
.btn:has(> .icon--arrow) { padding-right: .3rem; }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform var(--t-2) var(--ease); }
.btn > .icon--arrow {
  box-sizing: content-box;
  width: 1rem; height: 1rem;
  padding: calc((var(--control-h) - 1.6rem - 2px) / 2);
  border-radius: 50%;
  background: var(--badge, var(--on-gold));
  color: var(--badge-ink, var(--gold));
  transform: rotate(-45deg);
  transition: transform var(--t-2) var(--ease), background-color var(--t-2) var(--ease), color var(--t-2) var(--ease);
}
.btn:hover > .icon--arrow { transform: rotate(0deg); }
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--on-gold); }
.btn--gold:hover { background: var(--gold-hi); }
.btn--line { --badge: var(--ink); --badge-ink: var(--bg); border-color: var(--line-2); color: var(--ink); background: var(--surface); }
.btn--line:hover { border-color: var(--gold); color: var(--gold-ink); --badge: var(--gold); --badge-ink: var(--on-gold); }
.btn--ink { --badge: var(--bg); --badge-ink: var(--ink); background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: var(--ink-bright); --badge: var(--gold); --badge-ink: var(--on-gold); }
.btn--sm { min-height: var(--control-h-sm); padding: 0 1.15rem; letter-spacing: .07em; }
.btn--sm:has(> .icon--arrow) { padding-right: .25rem; }
.btn--sm > .icon--arrow { width: .85rem; height: .85rem; padding: calc((var(--control-h-sm) - .85rem - .5rem - 2px) / 2); }
.btn--xs { min-height: var(--control-h-xs); padding: 0 1rem; font-size: var(--fs-micro); letter-spacing: .1em; gap: .6rem; }
.btn--xs:has(> .icon--arrow) { padding-right: .2rem; }
.btn--xs > .icon--arrow { width: .7rem; height: .7rem; padding: calc((var(--control-h-xs) - .7rem - .4rem - 2px) / 2); }
.btn--block { width: 100%; }
.btn--block:has(> .icon--arrow) { justify-content: space-between; padding-left: 1.75rem; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.btn.is-busy .icon--arrow { animation: nudge var(--t-3) var(--ease-io) infinite alternate; }
@keyframes nudge { from { transform: rotate(-45deg); } to { transform: rotate(0deg); } }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* ---------- Logo (inline wordmark: ivory letters, gold blade and ring) ---------- */
.logo__ink { fill: var(--logo-ink); }
.logo__gold { fill: var(--logo-gold); }

/* ---------- Ring: the O of the WOU mark (partials/ring.php, from the official artwork) ----------
   Two filled arcs, cut at 45°. --spin turns them about the centre in opposite directions (a number,
   so it can be animated and tied to the scroll). A closed ring (.ring--closed / .is-closed) fills
   its cuts; that happens only on a commitment: a plan chosen, a payment done. */
@property --spin { syntax: "<number>"; inherits: true; initial-value: 0; }
@keyframes ring-draw { from { --spin: -90; opacity: 0; } }
.ring { display: block; width: 100%; height: auto; overflow: visible; }
.ring__arc {
  fill: var(--logo-gold);
  transform-box: view-box;
  transform-origin: 0 0;
  transition: fill var(--t-2) var(--ease);
}
.ring__arc--a { transform: rotate(calc(var(--spin, 0) * 1deg)); }
.ring__arc--b { transform: rotate(calc(var(--spin, 0) * -1deg)); }
.ring__full { fill: none; stroke: var(--logo-gold); stroke-width: 38.8; opacity: 0; transition: opacity var(--t-3) var(--ease), stroke var(--t-2) var(--ease); }
.ring--closed .ring__full, .ring.is-closed .ring__full { opacity: 1; }
.ring--mini { width: 1.6rem; height: 1.6rem; flex: none; }
/* turns with the scroll: site.js writes the element's progress through the viewport to --p */
.ring--scroll { --spin: calc(var(--p, 0) * 140 - 40); }

/* blade: the slanted gold stroke of the W, used as bullet and marker */
.blade {
  display: inline-block;
  width: .8rem; height: .22rem;
  background: var(--gold);
  transform: skewX(var(--blade));
}

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-6); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
.form-grid .span-2 { grid-column: 1 / -1; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: var(--s-5); }
.fieldset__legend { display: flex; align-items: baseline; gap: var(--s-3); width: 100%; padding: 0; font-family: var(--font-display); text-transform: var(--case-display); font-size: var(--fs-card); font-weight: var(--weight-display); margin-bottom: var(--s-1); }
/* The rule between groups sits above the legend, never through it */
.fieldset + .fieldset > .fieldset__legend { padding-top: var(--s-6); border-top: 1px solid var(--line); }
.field { display: grid; gap: .5rem; align-content: start; }
.field__label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.field__label .opt { font-weight: 400; color: var(--ink-3); }
.field__hint { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.5; }
.field__error { font-size: var(--fs-xs); color: var(--err); line-height: 1.5; }
.input, .select, .textarea {
  width: 100%;
  min-height: var(--control-h);
  padding: 0 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  font-size: var(--fs-body);
  transition: border-color var(--t-1) var(--ease), background-color var(--t-1) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-2); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: none; border-color: var(--gold); background: var(--surface-2);
}
.textarea { padding: .85rem 1rem; min-height: 9rem; resize: vertical; line-height: 1.55; }
.select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8bb4e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1rem;
}
.select option { background: var(--surface); color: var(--ink); }
input[type="date"].input { color-scheme: dark; }
.is-invalid .input, .is-invalid .select, .is-invalid .textarea { border-color: var(--err); }
.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.55; cursor: pointer; }
.check input {
  appearance: none;
  flex: none;
  width: 1.25rem; height: 1.25rem;
  margin-top: .1rem;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: calc(var(--r) / 2.5);
  cursor: pointer;
  transition: background-color var(--t-1) var(--ease), border-color var(--t-1) var(--ease);
}
.check input::after {
  content: ""; width: .62rem; height: .34rem;
  border-left: 2px solid var(--on-gold); border-bottom: 2px solid var(--on-gold);
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform var(--t-1) var(--ease);
}
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:hover { border-color: var(--gold); }
.check a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.is-invalid.check input { border-color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-4) var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--r);
  background: var(--surface);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.notice .icon { flex: none; margin-top: .1rem; color: var(--gold); }
.notice--error { border-color: var(--err-line); }
.notice--error .icon { color: var(--err); }
.notice--error .icon { color: var(--err); }
.notice--ok { border-color: var(--ok-line); }
.notice--ok .icon { color: var(--ok); }


/* ---------- Core responsive ---------- */
@media (max-width: 640px) {
  :root { --control-h: 3.1rem; }
  .form-grid { grid-template-columns: 1fr; }
}
