/* WILD&COCO hiring — design tokens (brand guide 2026-04-28) and components.
   Palette rule 70/20/10: cream + paper ground, gold + sage identity, mustard as the single CTA accent.
   Contrast (WCAG AA, computed): ink/cream 12.7, muted/cream 4.9, gold-deep/cream 5.4,
   ink/mustard 6.5, gold/cream 3.3 (large text only), error/cream 6.0. */

:root {
  --cream: #F7F4EC;
  --paper: #FFFDF9;
  --ink: #2C2C2C;
  --muted: #6B6B6B;
  --gold: #A38334;
  --gold-deep: #7A6126;
  --sage: #9CA679;
  --sage-deep: #6F7A52;
  --mint: #E1ECDF;
  --mustard: #E6A43B;
  --mustard-deep: #D6942B;
  --cacao: #8C6239;
  --cacao-deep: #6E4A28;
  --line: #E8E0CC;
  --error: #A3392A;

  --font-display: "Poppins", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Mulish", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --radius: 12px;
  --radius-lg: 20px;
  --pill: 999px;
  --wrap: 1120px;
  --anchor-offset: 88px;
  --measure: 66ch;
  --shadow-card: 0 28px 56px -28px rgba(44, 44, 44, 0.28);
  --focus: 0 0 0 4px rgba(156, 166, 121, 0.38);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: var(--anchor-offset); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
.main { flex: 1 0 auto; }
a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0 0 var(--s4); text-wrap: pretty; }
code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.prewrap { white-space: pre-wrap; }
.wrap { width: min(100% - 2 * var(--s5), var(--wrap)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: var(--s2); background: var(--paper); padding: var(--s2) var(--s4); border-radius: var(--pill); z-index: 100; }
.skip-link:focus { left: var(--s2); }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 12px 24px; border-radius: var(--pill); border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
  white-space: nowrap;
}
.btn--primary { background: var(--mustard); color: var(--ink); }
.btn--primary:hover { background: var(--mustard-deep); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--gold-deep); border-color: var(--gold); }
.btn--ghost:hover { background: var(--paper); color: var(--gold-deep); }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--danger { border-color: var(--error); color: var(--error); }
.btn--danger:hover { background: #F9EDEA; color: var(--error); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--gold); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(247, 244, 236, 0.92); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s4); min-height: 72px; }
.topbar__brand img { height: 44px; width: auto; }
.topbar__toggle { display: inline-flex; align-items: center; gap: var(--s2); background: var(--paper); border: 1px solid var(--line); border-radius: var(--pill); padding: 9px 14px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; max-width: 100%; min-width: 0; justify-self: start; }
.topbar__toggle-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__chevron { flex: none; transition: transform 160ms ease; }
.topbar__toggle[aria-expanded="true"] .topbar__chevron { transform: rotate(180deg); }
.topbar__cta { justify-self: end; }
.rolenav { display: none; }
.rolenav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s2); }
.rolenav__link { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: var(--radius); color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.rolenav__link:hover { background: var(--paper); color: var(--ink); }
.rolenav__link[aria-current="page"] { background: var(--paper); border-color: var(--line); }
.rolenav__link[aria-current="page"] .rolenav__title { color: var(--gold-deep); }
.rolenav__title { font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1.2; }
.rolenav__meta { font-size: 12.5px; color: var(--muted); }
/* mobile: dropdown */
@media (max-width: 899px) {
  .topbar__inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s3); }
  .topbar__brand img { height: 38px; }
  .rolenav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(44, 44, 44, 0.3); }
  .rolenav.is-open { display: block; }
  .rolenav__list { flex-direction: column; gap: 0; padding: var(--s2) var(--s5) var(--s4); }
  .rolenav__link { padding: 12px 14px; }
  .topbar__cta { display: none; }
  .page-role .topbar__cta { display: inline-flex; padding: 10px 16px; font-size: 14px; }
}
@media (min-width: 900px) {
  .topbar__toggle { display: none; }
  .rolenav { display: block; justify-self: center; }
}

/* ---------- section scaffolding ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.section-title { font-size: clamp(26px, 3vw, 32px); color: var(--gold); }
.section-note { margin: 0; color: var(--muted); font-size: 15px; }
.empty { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s6); max-width: 640px; }
.empty__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: var(--s2); }

/* ---------- hero (index) ---------- */
.hero { padding: var(--s7) 0 var(--s8); }
.hero__inner { display: grid; gap: var(--s7); align-items: center; }
.hero__title { font-size: clamp(32px, 5vw, 52px); margin-bottom: var(--s5); color: var(--gold); }
.hero__lead { font-size: clamp(18px, 2vw, 20px); color: var(--cacao-deep); max-width: 34em; }
.hero__sub { max-width: 34em; margin-bottom: var(--s6); }
.hero__figure { margin: 0; justify-self: center; width: min(100%, 380px); }
.hero__caption { margin-top: var(--s3); font-size: 14px; color: var(--muted); text-align: center; }
@media (min-width: 900px) {
  .hero { padding: var(--s8) 0 var(--s9); }
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; gap: var(--s8); }
  .hero__figure { width: min(100%, 420px); justify-self: end; }
}

/* leaf crop with the double-layer blob behind (brand signature) */
.leaf { position: relative; aspect-ratio: 4 / 5; }
.leaf__img { position: relative; width: 100%; height: 100%; object-fit: cover; clip-path: url(#leaf-clip); }
.leaf__blob { position: absolute; inset: -6% -8% -4% -10%; width: auto; height: auto; z-index: 0; }
.leaf__blob-fill { fill: var(--sage); opacity: 0.55; }
.leaf__blob-line { fill: none; stroke: var(--mustard); stroke-width: 2.5; transform: translate(14px, 12px); }
.leaf--small { width: min(100%, 300px); }
@media (prefers-reduced-motion: no-preference) {
  .page-index .leaf { animation: leaf-in 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes leaf-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
}

/* ---------- positions list ---------- */
.positions { padding: var(--s7) 0; border-top: 1px solid var(--line); }
.poslist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.poslist__item { border-bottom: 1px solid var(--line); }
.poslist__link { display: grid; gap: var(--s4); padding: var(--s5) var(--s4); margin-inline: calc(-1 * var(--s4)); border-radius: var(--radius); color: inherit; text-decoration: none; transition: background-color 120ms ease; }
.poslist__link:hover, .poslist__link:focus-visible { background: var(--paper); color: inherit; }
.poslist__title { font-size: clamp(20px, 2.2vw, 24px); color: var(--gold-deep); margin-bottom: var(--s1); }
.poslist__link:hover .poslist__title { color: var(--gold); }
.poslist__summary { margin: 0; max-width: 40em; }
.poslist__meta { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s5); margin: 0; }
.poslist__meta div { display: flex; flex-direction: column; }
.poslist__meta dt { font-size: 12.5px; color: var(--muted); }
.poslist__meta dd { margin: 0; font-size: 15px; font-weight: 600; }
.poslist__more { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--gold-deep); white-space: nowrap; }
.poslist__link:hover .poslist__more, .poslist__link:focus-visible .poslist__more { color: var(--gold); }
@media (min-width: 900px) {
  .poslist__link { grid-template-columns: minmax(0, 1fr) 300px auto; align-items: center; padding: var(--s6) var(--s4); }
  .poslist__meta { flex-direction: column; gap: var(--s2); }
}

/* ---------- how to apply ---------- */
.howto { background: var(--mint); padding: var(--s8) 0; }
.howto__head { margin-bottom: var(--s6); }
.howto .section-note { color: var(--ink); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); counter-reset: step; }
.steps__item { background: rgba(255, 253, 249, 0.75); border-radius: var(--radius-lg); padding: var(--s5) var(--s5) var(--s4); }
.steps__item p { margin: 0; font-size: 16px; }
.steps__num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sage); color: var(--ink); font-family: var(--font-display); font-weight: 600; box-shadow: 0 0 0 4px var(--mint), 0 0 0 6px var(--mustard); margin-bottom: var(--s4); }
.steps__title { font-size: 19px; margin-bottom: var(--s2); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }

.closing { padding: var(--s8) 0; text-align: center; }
.closing__text { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--gold); margin-bottom: var(--s2); }
.closing__sign { color: var(--cacao-deep); font-weight: 600; margin: 0; }

/* ---------- role page ---------- */
.role__cover { padding: var(--s7) 0 var(--s5); }
.role__kicker { font-size: 14px; font-weight: 600; color: var(--gold-deep); letter-spacing: 0.02em; margin-bottom: var(--s3); }
.role__kicker a { text-decoration: none; }
.role__title { font-size: clamp(30px, 4.5vw, 46px); color: var(--gold); margin-bottom: var(--s3); }
.role__subtitle { font-size: clamp(18px, 2vw, 22px); color: var(--cacao-deep); margin-bottom: var(--s5); max-width: 30em; }
.meta { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); margin: 0; }
.meta__item { display: flex; flex-direction: column; gap: 4px; }
.meta__item dt { font-size: 13px; color: var(--muted); }
.meta__item dd { margin: 0; font-weight: 600; font-size: 16px; }
.meta--stack { flex-direction: column; gap: var(--s3); margin-bottom: var(--s6); }

.role__grid { display: grid; gap: var(--s6); padding-bottom: var(--s8); }
.role__aside { order: -1; width: min(100%, 360px); margin-inline: auto; }
.role__apply { margin-top: var(--s4); }
.role__share { text-align: center; margin: var(--s3) 0 0; }
@media (min-width: 900px) {
  .role__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s8); align-items: start; }
  .role__aside { order: 2; position: sticky; top: 96px; width: auto; margin: 0; }
}

/* prose (job ad body) */
.prose { max-width: var(--measure); }
.prose p { margin-bottom: var(--s4); }
.prose--lead p { font-size: 18px; }
.prose--lead p:first-child { font-size: clamp(18px, 2vw, 20px); color: var(--cacao-deep); }
.prose h2 { font-size: 24px; color: var(--gold); margin: var(--s7) 0 var(--s4); padding-bottom: var(--s2); border-bottom: 1px solid var(--line); }
.prose h1 { font-size: clamp(28px, 4vw, 36px); color: var(--gold); margin-bottom: var(--s5); }
.prose h2:first-child, .prose h1:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25em; margin: 0 0 var(--s5); }
.prose li { margin: 0 0 8px; padding-left: 4px; }
.prose li::marker { color: var(--sage-deep); }
.prose strong { color: var(--cacao-deep); font-weight: 700; }
.prose--doc h2 { font-size: 22px; }

/* video card */
.video-card { margin: 0; }
.video-card__frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 64px; overflow: hidden; box-shadow: var(--shadow-card); background: var(--paper); }
.video-card__poster { width: 100%; height: 100%; object-fit: cover; }
.video-card__video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 64px; box-shadow: var(--shadow-card); background: #000; }
.video-card__frame::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(44, 44, 44, 0.55), rgba(44, 44, 44, 0)); pointer-events: none; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--mustard); color: var(--ink); cursor: pointer; display: grid; place-items: center; z-index: 2; box-shadow: 0 0 0 6px rgba(247, 244, 236, 0.9), 0 0 0 8px var(--sage); transition: transform 160ms ease, background-color 120ms ease; }
.play:hover { transform: translate(-50%, -50%) scale(1.06); background: var(--mustard-deep); }
.play__icon { margin-left: 3px; }
.video-card__badge { position: absolute; left: var(--s4); bottom: var(--s4); z-index: 2; background: rgba(255, 253, 249, 0.92); color: var(--ink); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: var(--pill); }
.video-card__caption { display: flex; flex-direction: column; gap: 4px; margin-top: var(--s3); padding-left: var(--s1); }
.video-card__names { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.video-card__role { font-size: 14px; color: var(--muted); }

/* ---------- application form ---------- */
.apply { background: var(--paper); border-top: 1px solid var(--line); padding: var(--s8) 0 var(--s9); }
.apply__inner { max-width: 760px; }
.apply__head { margin-bottom: var(--s6); }
.apply__intro { font-size: 18px; max-width: 38em; }
.apply__sign { color: var(--cacao-deep); font-weight: 600; margin: 0; }

.form { display: grid; gap: var(--s7); counter-reset: formstep; }
.form__section { border: 0; margin: 0; padding: 0; min-width: 0; counter-increment: formstep; }
.form__section--error > .field__error { margin-bottom: var(--s4); }
.form__legend { display: flex; align-items: center; gap: var(--s3); font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--gold); padding: 0; margin-bottom: var(--s4); }
.form__legend::before { content: counter(formstep); flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); color: var(--ink); font-size: 15px; }
.form__help { color: var(--muted); font-size: 15px; margin-bottom: var(--s4); }
.grid { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: 1fr 1fr; } .grid--2 .field:nth-child(3) { grid-column: 1 / -1; max-width: calc(50% - var(--s2)); } }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--s4); min-width: 0; }
.field__label { font-weight: 600; font-size: 15px; }
.field__optional { font-weight: 400; color: var(--muted); }
.field__input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color 120ms ease, box-shadow 120ms ease; }
.field__input:focus { outline: none; border-color: var(--gold); box-shadow: var(--focus); background: var(--paper); }
.field__input--area { resize: vertical; min-height: 120px; line-height: 1.55; }
.field__hint { font-size: 14px; color: var(--muted); margin: 0; }
.field__hint--above { margin-top: 0; }
.field__error { font-size: 14px; color: var(--error); font-weight: 600; margin: 0; }
.field--error .field__input { border-color: var(--error); }
.alert { border-radius: var(--radius); padding: var(--s4) var(--s5); border: 1px solid; }
.alert p { margin: 0; }
.alert__list { margin: var(--s2) 0 0; padding-left: 1.1em; display: grid; gap: var(--s1); }
.alert__list a { color: var(--error); }
.alert--error { background: #FBF0EE; border-color: #E9C7C1; color: var(--error); font-weight: 600; }

.segmented { display: inline-flex; gap: 4px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--pill); padding: 4px; margin-bottom: var(--s4); max-width: 100%; }
.segmented__btn { border: 0; background: transparent; color: var(--ink); font: inherit; font-family: var(--font-display); font-weight: 600; font-size: 15px; padding: 9px 20px; border-radius: var(--pill); cursor: pointer; transition: background-color 120ms ease; }
.segmented__btn:hover { background: var(--paper); }
.segmented__btn[aria-selected="true"] { background: var(--mustard); color: var(--ink); }
.panel { padding-top: var(--s2); }
.panel__lead { max-width: 38em; }
.panel__alt { font-size: 15px; color: var(--muted); margin: var(--s5) 0 0; padding-top: var(--s4); border-top: 1px solid var(--line); max-width: 38em; }

.uploader { display: flex; flex-direction: column; gap: var(--s3); }
.uploader__btn { position: relative; overflow: hidden; align-self: flex-start; }
.uploader__input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; font-size: 0; }
.uploader__btn:focus-within { box-shadow: var(--focus); }
.uploader__status { font-size: 14px; color: var(--muted); margin: 0; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease; }
.uploader__status.is-set { color: var(--ink); font-weight: 600; background: var(--mint); border-color: var(--sage); }
.uploader__status.is-warn { color: var(--error); font-weight: 600; background: #FBF0EE; border-color: #E9C7C1; }
@media (max-width: 639px) { .uploader__btn { align-self: stretch; } }
@media (min-width: 640px) { .uploader { flex-direction: row; flex-wrap: wrap; align-items: center; } .uploader__status { flex-basis: 100%; } }
.aihelp { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); align-items: center; justify-content: space-between; background: var(--mint); border-radius: var(--radius); padding: var(--s4) var(--s5); margin: 0 0 var(--s5); }
.aihelp__text { margin: 0; flex: 1 1 260px; max-width: 38em; font-size: 15px; }

.form__footer { display: grid; gap: var(--s5); border-top: 1px solid var(--line); padding-top: var(--s6); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: var(--s3); align-items: start; cursor: pointer; font-size: 15px; }
.check__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 7px; background: var(--cream); transition: background-color 120ms ease, border-color 120ms ease; }
.check__input:checked + .check__box { background: var(--mustard) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12.5l4 4 8-9' fill='none' stroke='%232C2C2C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 18px no-repeat; border-color: var(--mustard-deep); }
.check__input:focus-visible + .check__box { box-shadow: var(--focus); }
.field--check.field--error .check__box { border-color: var(--error); }
.progress { display: grid; gap: var(--s2); }
.progress__bar { height: 8px; border-radius: var(--pill); background: var(--cream); border: 1px solid var(--line); overflow: hidden; }
.progress__fill { display: block; height: 100%; width: 0; background: var(--mustard); transition: width 200ms linear; }
.progress__text { margin: 0; font-size: 14px; color: var(--muted); }
.form__submit { justify-self: start; }
.form__note { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- thanks, docs, 404 ---------- */
.thanks { padding: var(--s8) 0 var(--s9); }
.thanks__inner { display: grid; gap: var(--s7); align-items: center; }
.thanks__title { font-size: clamp(32px, 5vw, 48px); color: var(--gold); margin-bottom: var(--s4); }
.thanks__lead { font-size: 19px; max-width: 32em; }
.thanks__ref { display: grid; gap: var(--s2); justify-items: start; color: var(--muted); font-size: 15px; max-width: 34em; }
.thanks__code { color: var(--ink); font-weight: 600; }
.thanks__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s5) 0 var(--s6); }
.thanks__figure { margin: 0; justify-self: center; }
@media (min-width: 900px) { .thanks__inner { grid-template-columns: 1.2fr 0.8fr; } .thanks__figure { justify-self: end; } }
.doc { padding: var(--s7) 0 var(--s9); }
.doc__inner { max-width: 760px; }

/* ---------- modal ---------- */
.modal { border: 0; border-radius: var(--radius-lg); background: var(--paper); color: var(--ink); padding: 0; width: min(100% - 2 * var(--s5), 520px); box-shadow: 0 40px 80px -32px rgba(44, 44, 44, 0.45); }
.modal--wide { width: min(100% - 2 * var(--s5), 720px); }
.modal::backdrop { background: rgba(44, 44, 44, 0.45); }
.modal__inner { padding: var(--s6); margin: 0; }
.modal__title { font-size: 24px; color: var(--gold); margin-bottom: var(--s3); }
.modal__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.modal__actions form { display: contents; }
.modal__prompt { font: inherit; font-size: 15px; white-space: pre-wrap; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4) var(--s5); max-height: 40vh; overflow: auto; margin: 0;
  background-color: var(--cream);
  background-image: linear-gradient(var(--cream), rgba(247, 244, 236, 0)), linear-gradient(rgba(247, 244, 236, 0), var(--cream)), linear-gradient(rgba(44, 44, 44, 0.16), rgba(44, 44, 44, 0)), linear-gradient(rgba(44, 44, 44, 0), rgba(44, 44, 44, 0.16));
  background-position: 0 0, 0 100%, 0 0, 0 100%;
  background-size: 100% 24px, 100% 24px, 100% 12px, 100% 12px;
  background-repeat: no-repeat;
  background-attachment: local, local, scroll, scroll; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: var(--s6) 0 var(--s7); font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3) var(--s5); }
.footer p { margin: 0; }
.footer strong { color: var(--ink); }

/* ---------- admin ---------- */
.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 13px; color: var(--muted); font-weight: 600; }
.admin-video { width: min(100%, 360px); aspect-ratio: 9 / 16; background: #000; border-radius: var(--radius); }
.admin-delete { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: var(--s5); transform: translateX(-50%); background: var(--ink); color: var(--cream); padding: 10px 18px; border-radius: var(--pill); font-size: 14px; z-index: 60; }
