/* PPDP Sustainability Forum 2026
   Modern editorial: paper ground, ink type, oxblood as a sharp accent,
   generous space, quiet surfaces, one strong photograph. */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
}

:root {
  --paper: #f7f5f1;
  --paper-deep: #efebe4;
  --surface: #ffffff;
  --surface-2: #faf8f5;

  --ink: #17141a;
  --ink-2: #3d3844;
  --ink-soft: #55505a;
  --ink-muted: #6f6875;

  --oxblood: #7a1220;
  --oxblood-deep: #5c0c17;
  --oxblood-bright: #9b1c2d;
  --oxblood-tint: #f6e9ea;
  --oxblood-wash: #fbf4f4;

  --line: #e3ded6;
  --line-strong: #cec7bc;
  --focus: #9b1c2d;

  --ok: #1f6b46;
  --ok-bg: #eaf4ee;
  --warn: #7a5a06;
  --warn-bg: #fbf3dc;
  --off: #8a1c26;
  --off-bg: #f9e8ea;

  --t-display: clamp(2.4rem, 4vw, 4rem);
  --t-h1: clamp(1.9rem, 3.2vw, 2.75rem);
  --t-h2: clamp(1.5rem, 2.2vw, 2rem);
  --t-h3: 1.0625rem;
  --t-lead: clamp(1.0625rem, 1.2vw, 1.1875rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-tiny: 0.8125rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 112px;

  --gap-section: clamp(72px, 8vw, 128px);
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
  --axis: 38%;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --tap: 44px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: 0 24px 64px rgba(23, 20, 26, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: var(--t-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--oxblood);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 140ms var(--ease);
}

a:hover { color: var(--oxblood-bright); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.16;
  text-wrap: balance;
}

ul, ol, dl, dd, figure { margin: 0; padding: 0; }
li { list-style: none; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

::selection { background: var(--oxblood); color: #fff; }

.wrap {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.u-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 100;
  background: var(--oxblood);
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: top 160ms var(--ease);
}

.skip-link:focus { top: 12px; color: #fff; }

.h1 { font-size: var(--t-h1); line-height: 1.1; letter-spacing: -0.028em; }
.h2 { font-size: var(--t-h2); line-height: 1.14; letter-spacing: -0.024em; }
.h2--paper { color: #fff; }
.h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.35; }

.lead { font-size: var(--t-lead); line-height: 1.65; color: var(--ink-2); }

.side-label {
  font-size: var(--t-tiny);
  font-weight: 600;
  letter-spacing: 0;
  font-size: var(--t-small);
  color: var(--oxblood);
  margin: 0 0 var(--space-4);
}

.side-note { font-size: var(--t-small); color: var(--ink-soft); line-height: 1.7; }

.source-note { margin-top: var(--space-5); font-size: var(--t-tiny); color: var(--ink-muted); line-height: 1.6; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  font-size: var(--t-small);
  min-height: var(--tap);
  color: var(--oxblood);
  text-decoration: none;
  transition: gap 160ms var(--ease), color 160ms var(--ease);
}

.text-link::after {
  content: '';
  width: 6px; height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms var(--ease);
}

.text-link:hover { gap: 10px; }
.text-link:hover::after { transform: translateX(2px) rotate(45deg); }

.text-link--paper, .text-link--paper:hover { color: #fff; }

.plain { display: grid; gap: 2px; font-size: var(--t-small); }

.plain-list { display: grid; gap: var(--space-3); font-size: var(--t-small); color: var(--ink-2); }

.plain-list li { position: relative; padding-left: 22px; line-height: 1.6; }

.plain-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--oxblood);
}

.btn {
  --btn-bg: var(--oxblood);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 500;
  font-size: 0.9688rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 170ms var(--ease), color 170ms var(--ease),
    border-color 170ms var(--ease), transform 120ms var(--ease), box-shadow 170ms var(--ease);
}

.btn:hover { background: var(--oxblood-deep); color: #fff; box-shadow: 0 6px 18px rgba(122, 18, 32, 0.2); }
.btn:active { transform: translateY(1px); box-shadow: none; }

.btn--sm { min-height: var(--tap); padding: 0 18px; font-size: var(--t-small); }
.btn--block { width: 100%; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-soft); box-shadow: var(--shadow-sm); }

.btn--paper { --btn-bg: #fff; --btn-fg: var(--oxblood); }
.btn--paper:hover { background: #fff; color: var(--oxblood-deep); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18); }

.btn--danger { --btn-bg: transparent; --btn-fg: var(--oxblood); border-color: var(--oxblood); }
.btn--danger:hover { background: var(--oxblood); color: #fff; }

.btn__spinner {
  display: none;
  width: 15px; height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.is-busy { pointer-events: none; opacity: 0.85; }
.btn.is-busy .btn__spinner { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 241, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}

.site-head.is-scrolled { border-bottom-color: var(--line); }

.site-head__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  min-height: var(--tap);
}

.brand__mark { width: auto; height: 34px; object-fit: contain; }

.brand__text { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }

.brand__name { font-size: 0.875rem; font-weight: 600; letter-spacing: -0.012em; }

.brand__year { font-size: 0.75rem; color: var(--oxblood); font-weight: 500; letter-spacing: 0.04em; }

.site-nav { display: flex; align-items: center; gap: var(--space-6); }

.site-nav__link {
  position: relative;
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--t-small);
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  height: 1.5px;
  background: var(--oxblood);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}

.site-nav__link:hover { color: var(--ink); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current='page'] { color: var(--oxblood); }
.site-nav__link[aria-current='page']::after { transform: scaleX(1); }

.site-nav__cta { color: #fff; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
  font: inherit;
  font-size: var(--t-small);
  font-weight: 500;
  cursor: pointer;
}

.nav-toggle__bars { display: grid; gap: 4px; width: 16px; }

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.masthead {
  position: relative;
  padding-block: clamp(44px, 5.5vw, 84px) clamp(40px, 5vw, 72px);
  overflow: hidden;
}

.masthead__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 3vw, 48px);
  align-items: center;
}

.masthead__type { max-width: 34rem; }

.masthead__org {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-tiny);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: var(--space-5);
}

.masthead__org::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--oxblood); }

.masthead__title {
  font-size: clamp(2.3rem, 3.6vw, 3.6rem);
  line-height: 1.03;
  letter-spacing: -0.042em;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-5);
}

.masthead__year { color: var(--oxblood); font-weight: 500; }

.masthead__sub {
  font-size: var(--t-lead);
  line-height: 1.55;
  max-width: 32ch;
  color: var(--ink-2);
  margin-bottom: var(--space-6);
}

.masthead__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }

.masthead__actions .btn { min-height: 54px; padding-inline: 30px; }

.masthead__secondary { color: var(--ink-2); }
.masthead__secondary:hover { color: var(--oxblood); }

.masthead__closed {
  display: inline-block;
  padding: 14px 20px;
  background: var(--oxblood-tint);
  border-radius: var(--r-sm);
  color: var(--oxblood-deep);
  font-size: var(--t-small);
  font-weight: 500;
}

.masthead__media { position: relative; }

.masthead__figure {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--paper-deep);
}

.masthead__figure img {
  width: 100%;
  height: 100%;
  min-height: clamp(440px, 50vw, 660px);
  aspect-ratio: 4 / 5.2;
  object-fit: cover;
  object-position: center 55%;
  filter: saturate(0.74) contrast(1.04);
}

[data-shutter] img {
  clip-path: inset(0 100% 0 0);
  transform: scale(1.05);
  transition: clip-path 1000ms var(--ease-out), transform 1300ms var(--ease-out);
}

[data-shutter].is-open img { clip-path: inset(0 0 0 0); transform: scale(1); }

.masthead__caption {
  position: absolute;
  left: 14px; bottom: 14px; right: 14px;
  margin: 0;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: rgba(23, 20, 26, 0.6);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.75rem;
  line-height: 1.45;
}

.masthead__rail {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

.seat-meter__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: 10px;
}

.seat-meter__label { font-size: var(--t-tiny); font-weight: 500; color: var(--ink-soft); }

.seat-meter__count { font-size: var(--t-tiny); color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.seat-meter__count strong {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.seat-meter__track {
  position: relative;
  height: 6px;
  border-radius: 100px;
  background: var(--line);
  overflow: hidden;
}

.seat-meter__fill {
  position: absolute;
  inset: 0 auto 0 0;
  /* The width comes from a data attribute set by the server, so the CSP never
     has to allow inline styles. */
  width: attr(data-fill type(<number>), 0%);
  width: calc(attr(data-fill type(<number>), 0) * 1%);
  border-radius: 100px;
  background: linear-gradient(90deg, var(--oxblood), var(--oxblood-bright));
  transform-origin: left center;
  animation: fill-grow 1400ms var(--ease-out) both;
}

@keyframes fill-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.seat-meter__note { margin-top: 10px; font-size: var(--t-tiny); color: var(--ink-soft); line-height: 1.55; }

.masthead__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }

.masthead__fact { display: grid; gap: 3px; align-content: start; }

.masthead__fact dt { font-size: var(--t-tiny); font-weight: 500; color: var(--ink-muted); }

.masthead__fact dd { font-size: var(--t-small); color: var(--ink); line-height: 1.5; font-weight: 500; }

.masthead__map { margin: 0; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }

.masthead__map img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(0.28) contrast(0.95); }

.axis { display: grid; grid-template-columns: var(--axis) minmax(0, 1fr); gap: 0; }

.axis__side { padding-right: var(--space-7); }

.axis__main { max-width: 60ch; }

.axis__main > .h2 { margin-bottom: var(--space-5); }
.axis__main > p { margin-bottom: 1em; }

.axis__mainss { max-width: 100%; }

.axis__mainss > .h2 { margin-bottom: var(--space-5); }
.axis__mainss > p { margin-bottom: 1em; }

.argument, .program, .venue { padding-block: var(--gap-section); }

.argument { background: var(--surface); }
.program { background: var(--paper-deep); }
.venue { background: var(--surface); }

.side-facts { display: grid; gap: var(--space-5); }

.side-facts dt { font-size: var(--t-tiny); font-weight: 500; color: var(--ink-muted); margin-bottom: 3px; }

.side-facts dd { font-size: var(--t-small); color: var(--ink); font-weight: 500; }

.line-list { display: grid; gap: var(--space-4); margin-top: var(--space-7); }

.line-list li {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: var(--space-5);
  font-size: var(--t-small);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.line-list li:first-child { border-top: 1px solid var(--line); }

.line-list__term { font-weight: 600; color: var(--oxblood); }

.line-list__text { color: var(--ink-2); line-height: 1.6; }

.section-band, .venue__archive {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  margin-top: var(--space-9);
}

.venue__archive { align-items: start; }

.band-figure, .archive-figure {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.band-figure img, .archive-figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.02);
  transition: transform 700ms var(--ease-out);
}

.band-figure:hover img, .archive-figure:hover img { transform: scale(1.025); }

.band-figure figcaption, .archive-figure figcaption {
  margin-top: 0;
  padding: 10px 2px 0;
  font-size: var(--t-tiny);
  color: var(--ink-muted);
  line-height: 1.55;
}

.band-copy .h2, .archive-copy .h2 { margin-bottom: var(--space-4); }

.band-copy p, .archive-copy p { max-width: 46ch; color: var(--ink-2); }

.archive-copy .text-link { margin-top: var(--space-3); }

.agenda-table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }

.agenda-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: var(--t-tiny);
  color: var(--ink-muted);
  padding: 0 0 var(--space-3);
  border-bottom: 1px solid var(--line-strong);
}

.agenda-table tbody th, .agenda-table tbody td {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-2);
}

.agenda-table tbody th {
  width: 132px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.agenda-table--wide tbody th { width: 138px; }

.agenda-table--wide tbody td:nth-child(2) { width: 100px; color: var(--ink-muted); }

.agenda-table tbody tr:last-child th, .agenda-table tbody tr:last-child td { border-bottom: 0; }

.agenda-table tbody tr { transition: background-color 160ms var(--ease); }
.agenda-table tbody tr:hover { background: rgba(122, 18, 32, 0.028); }

.venue__address { font-style: normal; font-size: var(--t-small); line-height: 1.75; margin-bottom: var(--space-3); color: var(--ink-2); }

.venue__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7); margin-top: var(--space-7); }

.venue__block .h3 { margin-bottom: var(--space-4); }

.invitation { padding-block: var(--gap-section); }

.invitation__panel {
  position: relative;
  overflow: hidden;
  background: var(--oxblood);
  background-image: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.12), transparent 55%);
  border-radius: var(--r-lg);
  color: #fff;
  padding: clamp(32px, 4.5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

.invitation__copy .h2 { margin-bottom: var(--space-5); }

.invitation__lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--t-lead);
  max-width: 44ch;
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.invitation__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  margin-bottom: var(--space-7);
}

.invitation__facts dt { font-size: var(--t-tiny); color: rgba(255, 255, 255, 0.75); margin-bottom: 3px; }

.invitation__facts dd { font-size: var(--t-small); color: #fff; font-weight: 500; }

.invitation__aside { padding-left: var(--space-6); border-left: 1px solid rgba(255, 255, 255, 0.24); }

.invitation__figure { margin: 0 0 var(--space-5); border-radius: var(--r-md); overflow: hidden; }

.invitation__figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; }

.invitation__aside-note { font-size: var(--t-small); color: rgba(255, 255, 255, 0.86); margin-bottom: var(--space-2); line-height: 1.6; }

.site-foot {
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.66);
  padding-block: clamp(56px, 7vw, 96px) var(--space-6);
  overflow: hidden;
}

.site-foot::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.site-foot__lead {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-foot__mark {
  height: 44px;
  width: auto;
  margin-bottom: var(--space-4);
  opacity: 0.94;
}

.site-foot__event {
  margin: 0 0 6px;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.3;
  color: #fff;
  max-width: 22ch;
}

.site-foot__org {
  margin: 0;
  font-size: var(--t-small);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 46ch;
}

.site-foot__when {
  padding-left: clamp(0px, 2vw, 32px);
}

.site-foot__kicker {
  margin: 0 0 var(--space-3);
  font-size: var(--t-tiny);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.6);
}

.site-foot__date {
  margin: 0 0 6px;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

.site-foot__meta {
  margin: 0 0 4px;
  font-size: var(--t-small);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.site-foot__meta--soft {
  margin-top: var(--space-3);
  color: rgba(255, 255, 255, 0.6);
}

.site-foot__details {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(28px, 3.5vw, 48px);
}

.site-foot__col { min-width: 0; }

.contact-list {
  display: grid;
  gap: 2px;
}

.contact-list__item {
  display: grid;
  gap: 2px;
  padding-block: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.contact-list__item:first-child { border-top: 1px solid rgba(255, 255, 255, 0.07); }

.contact-list__name {
  font-size: var(--t-small);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.45;
}

.contact-list__mail {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 32px;
  font-size: var(--t-small);
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 150ms var(--ease), border-color 150ms var(--ease);
  word-break: break-all;
}

.contact-list__mail:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.site-foot__links {
  display: grid;
  gap: 0;
}

.site-foot__links li { display: block; }

.site-foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: var(--t-small);
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 150ms var(--ease), transform 150ms var(--ease);
}

.site-foot__links a:hover {
  color: #fff;
  transform: translateX(2px);
}

.site-foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--t-tiny);
  color: rgba(255, 255, 255, 0.56);
}

.site-foot__base p { margin: 0; }

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4vw, 64px);
  padding-block: clamp(40px, 5vw, 80px);
  align-items: start;
}

.form-shell__intro { position: sticky; top: 96px; }

.form-shell__intro .h1 {
  margin-bottom: var(--space-4);
  font-size: clamp(2.1rem, 3.2vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.032em;
}

.form-shell__intro .lead { color: var(--ink-2); max-width: 42ch; }

.form-shell__lead {
  margin: 0 0 var(--space-5);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.form-shell__lead img {
  width: 100%;
  height: auto;
  min-height: clamp(200px, 20vw, 280px);
  aspect-ratio: 16 / 8;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.72) contrast(1.03);
}

.form-shell__lead figcaption, .form-shell__figure figcaption,
.form-shell__figure2 figcaption, .form-shell__figure3 figcaption {
  padding: 9px 12px;
  font-size: var(--t-tiny);
  color: var(--ink-muted);
}

.form-shell__figure, .form-shell__figure2, .form-shell__figure3 {
  margin: var(--space-5) 0 0;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.form-shell__figure img, .form-shell__figure2 img, .form-shell__figure3 img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.03);
}

.form-shell__figure img { aspect-ratio: 4 / 3; }
.form-shell__figure2 img { aspect-ratio: 16 / 10; }
.form-shell__figure3 img { aspect-ratio: 16 / 9; }

.form-progress {
  display: grid;
  gap: 2px;
  margin-block: var(--space-6);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

.form-progress li {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 13px 16px;
  background: var(--surface-2);
  font-size: var(--t-small);
  color: var(--ink-muted);
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}

.form-progress li::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: none;
  transition: background-color 200ms var(--ease), transform 240ms var(--ease);
}

.form-progress li.is-active { color: var(--ink); font-weight: 500; background: var(--oxblood-wash); }

.form-progress li.is-active::before { transform: scale(1.45); background: var(--oxblood); }

.form-progress li.is-done { color: var(--ink-2); }
.form-progress li.is-done::before { background: var(--oxblood); }

.form-shell__aside { padding-top: var(--space-3); }

.seat-meter--compact .seat-meter__label, .seat-meter--compact .seat-meter__count { color: var(--ink-muted); }

.seat-meter--compact .seat-meter__count strong { color: var(--ink); }

.seat-meter--compact .seat-meter__track { background: var(--line); }

.form-shell__contact { margin-top: var(--space-4); font-size: var(--t-tiny); color: var(--ink-muted); }

.form-shell__contact a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 500; }

.form-shell__panel {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
  min-width: 0;
  box-shadow: var(--shadow-md);
}

.fieldset { border: 0; margin: 0 0 var(--space-6); padding: 0; min-width: 0; }

.fieldset[hidden] { display: none; }

.fieldset.is-entering > .field,
.fieldset.is-entering > .radio-set,
.fieldset.is-entering > .review {
  animation: step-in 380ms var(--ease-out) both;
}

.fieldset.is-entering > .field:nth-child(3) { animation-delay: 40ms; }
.fieldset.is-entering > .field:nth-child(4) { animation-delay: 80ms; }
.fieldset.is-entering > .field:nth-child(5) { animation-delay: 120ms; }
.fieldset.is-entering > .field:nth-child(6) { animation-delay: 160ms; }
.fieldset.is-entering > .field:nth-child(7) { animation-delay: 200ms; }

@keyframes step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.fieldset__legend {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  padding: 0 0 var(--space-2);
  margin-bottom: var(--space-5);
  width: 100%;
}

.field { margin-bottom: var(--space-5); }

.field__label { display: block; font-size: var(--t-small); font-weight: 500; color: var(--ink); margin-bottom: 7px; }

.field__optional { font-weight: 400; color: var(--ink-muted); }

.field__hint { font-size: var(--t-tiny); color: var(--ink-soft); margin: 0 0 9px; line-height: 1.55; }

.field__input {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  font: inherit;
  font-size: var(--t-body);
  line-height: 1.45;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.field__input:hover { border-color: var(--line-strong); }

.field__input:focus {
  outline: none;
  border-color: var(--oxblood);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(122, 18, 32, 0.12);
}

.field__input::placeholder { color: #a49da5; }

.field__textarea { min-height: 120px; resize: vertical; }

.field__select { appearance: none; padding-right: 44px; cursor: pointer; }

.select-wrap { position: relative; }

.select-wrap::after {
  content: '';
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field__error { margin: 6px 0 0; min-height: 0; font-size: var(--t-tiny); color: var(--oxblood); font-weight: 500; }

.field__error:empty { display: none; }

.field.has-error .field__input {
  border-color: var(--oxblood);
  background: var(--oxblood-wash);
  animation: shake 260ms var(--ease);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

.field--check { margin-top: var(--space-5); }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--t-small);
  line-height: 1.6;
  color: var(--ink-2);
  cursor: pointer;
  min-height: var(--tap);
  padding: 6px 0;
}

.check input {
  flex: none;
  width: 44px; height: 44px;
  margin: -10px 0 0 -10px;
  padding: 12px;
  box-sizing: border-box;
  accent-color: var(--oxblood);
  cursor: pointer;
}

.check a { display: inline-block; min-height: 24px; }

.radio-set { border: 0; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-3); }

.radio-set__legend { font-size: var(--t-small); font-weight: 500; margin-bottom: var(--space-2); padding: 0; }

.radio-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), box-shadow 160ms var(--ease);
  min-height: var(--tap);
}

.radio-card:hover { border-color: var(--line-strong); }

.radio-card input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--oxblood); }

.radio-card:has(input:checked) {
  border-color: var(--oxblood);
  background: var(--oxblood-wash);
  box-shadow: 0 0 0 3px rgba(122, 18, 32, 0.08);
}

.radio-card__body { display: grid; gap: 2px; }

.radio-card__title { font-size: var(--t-small); font-weight: 600; color: var(--ink); }

.radio-card__note { font-size: var(--t-tiny); color: var(--ink-soft); line-height: 1.55; }

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  padding: 14px 18px;
  margin-bottom: var(--space-5);
  font-size: var(--t-small);
  border-radius: var(--r-sm);
  background: var(--paper-deep);
  color: var(--ink);
  line-height: 1.55;
}

.form-status[hidden] { display: none; }

.form-status--error { background: var(--off-bg); color: var(--oxblood-deep); box-shadow: inset 3px 0 0 var(--oxblood); }

.form-status--ok { background: var(--ok-bg); color: var(--ok); box-shadow: inset 3px 0 0 var(--ok); }

.form-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: flex-end; padding-top: var(--space-5); }

.form-actions .btn { min-width: 148px; }
.form-actions .btn[hidden] { display: none; }

.review { display: grid; gap: 0; margin-bottom: var(--space-5); }

.review > div, .review dt, .review dd { margin: 0; }

.review > div {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: var(--space-4);
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-small);
  align-items: baseline;
}

.review > div:first-child { border-top: 1px solid var(--line); }

.review dt { color: var(--ink-muted); }
.review dd { color: var(--ink); font-weight: 500; word-break: break-word; }

.review--static { margin-bottom: var(--space-6); }

.notice {
  padding: var(--space-6);
  border-radius: var(--r-md);
  background: var(--oxblood-wash);
  box-shadow: inset 3px 0 0 var(--oxblood);
}

.notice__title { font-size: 1.125rem; margin-bottom: var(--space-3); color: var(--oxblood-deep); }

.notice p { font-size: var(--t-small); margin-bottom: var(--space-5); color: var(--ink-2); }

.success, .status-page {
  padding-block: clamp(48px, 6vw, 96px);
  display: grid;
  gap: var(--space-7);
  max-width: var(--maxw);
}

.success { max-width: 920px; }

.success__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 56px);
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}

.success__panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--oxblood), var(--oxblood-bright));
}

.success__title {
  margin-bottom: var(--space-4);
  max-width: 24ch;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.success__code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--paper);
  border-radius: var(--r-md);
  margin-block: var(--space-6);
  box-shadow: inset 3px 0 0 var(--oxblood);
}

.success__code-label { width: 100%; font-size: var(--t-tiny); font-weight: 500; color: var(--ink-muted); }

.success__code-value {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--oxblood);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.success__facts { font-size: var(--t-small); color: var(--ink-2); margin-bottom: var(--space-6); line-height: 1.7; }

.success__actions, .doc-page__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.status-page { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }

.status-page__intro .h1 { margin-bottom: var(--space-4); font-size: clamp(2rem, 3.2vw, 2.9rem); }

.status-form {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 38px);
  box-shadow: var(--shadow-md);
}

.status-form__or { font-size: var(--t-tiny); color: var(--ink-muted); margin: var(--space-1) 0 var(--space-4); }

.status-form .btn { width: 100%; margin-top: var(--space-3); }

.status-result, .status-empty { grid-column: 1 / -1; }

.status-result {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 36px);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.status-result::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--oxblood);
}

.status-result[hidden], .status-empty[hidden] { display: none; }

.status-result__title { font-size: 1.125rem; margin-bottom: var(--space-4); }

.status-empty {
  padding: var(--space-6);
  border-radius: var(--r-md);
  background: var(--paper-deep);
  font-size: var(--t-small);
  color: var(--ink-soft);
}

.doc-page { padding-block: clamp(40px, 5vw, 80px); }

.doc-page__body { max-width: 68ch; }

.doc-page__body .h1 { margin-bottom: var(--space-4); font-size: var(--t-display); line-height: 1.05; }

.doc-page__body.prose .h1 { font-size: clamp(2.1rem, 3.4vw, 3.1rem); }

.doc-page__meta { font-size: var(--t-small); color: var(--ink-soft); margin-bottom: var(--space-7); line-height: 1.7; }

.doc-page__actions { margin-top: var(--space-8); }

.prose { color: var(--ink-2); }

.prose h2 { font-size: 1.1875rem; margin: var(--space-7) 0 var(--space-3); color: var(--ink); }

.prose p, .prose .plain-list { font-size: var(--t-body); }

.page-admin { background: var(--paper); }

.admin-head { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30; }

.admin-head__inner {
  max-width: 1480px;
  margin-inline: auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 66px;
}

.admin-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }

.admin-brand__mark { height: 26px; width: auto; }

.admin-brand__label { font-size: var(--t-small); font-weight: 500; }

.admin-nav { display: flex; gap: var(--space-5); margin-left: auto; }

.admin-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: var(--t-small);
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  transition: color 150ms var(--ease);
}

.admin-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease);
}

.admin-nav a:hover, .admin-nav a[aria-current='page'] { color: #fff; }

.admin-nav a:hover::after, .admin-nav a[aria-current='page']::after { transform: scaleX(1); }

.admin-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-left: var(--space-5);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.admin-user__name { font-size: var(--t-tiny); color: rgba(255, 255, 255, 0.72); }
.admin-user__form { margin: 0; }

.admin-user .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); background: transparent; }

.admin-user .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.42); }

.admin-main {
  max-width: 1480px;
  margin-inline: auto;
  padding: var(--space-7) var(--gutter) var(--space-8);
}

.dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }

.dash > section { min-width: 0; }

.dash__title { font-size: var(--t-h2); margin-bottom: var(--space-5); }

.metric-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-3); }

.metric {
  padding: var(--space-5);
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  transition: box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.metric:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.metric dt { font-size: var(--t-tiny); color: var(--ink-muted); margin-bottom: 8px; font-weight: 500; }

.metric__value {
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.022em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
}

.metric__note { font-size: var(--t-tiny); font-weight: 400; color: var(--ink-muted); letter-spacing: 0; }

.metric--alert { border-color: rgba(122, 18, 32, 0.35); background: var(--oxblood-wash); }

.metric--alert .metric__value { color: var(--oxblood); }

.dash__quota-line { margin-top: var(--space-4); font-size: var(--t-small); color: var(--ink-soft); }

.dash__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.dash__quota, .dash__filters, .dash__settings {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.dash__settings { max-width: 680px; }

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.data-table { width: 100%; border-collapse: collapse; font-size: var(--t-small); min-width: 940px; }

.data-table--compact { min-width: 640px; }

.data-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: var(--t-tiny);
  color: var(--ink-muted);
  padding: 13px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table tbody th, .data-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
  color: var(--ink-2);
}

.data-table tbody tr { transition: background-color 140ms var(--ease); }
.data-table tbody tr:hover { background: var(--surface-2); }

.data-table tbody tr:last-child td, .data-table tbody tr:last-child th { border-bottom: 0; }

.data-table a { text-decoration: none; color: var(--oxblood); }
.data-table a:hover { text-decoration: underline; }

.cell-sub { display: block; font-size: var(--t-tiny); color: var(--ink-muted); margin-top: 3px; }

.cell-flag { display: inline-block; margin-top: 5px; font-size: var(--t-tiny); color: var(--oxblood); font-weight: 500; }

.cell-flag--block { display: block; }

.row-link { font-weight: 600; color: var(--ink); }
.row-link:hover { color: var(--oxblood); }

.row-action { font-size: var(--t-small); font-weight: 500; min-height: var(--tap); display: inline-flex; align-items: center; }

.nowrap { white-space: nowrap; }

.status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.status.is-ok { color: var(--ok); background: var(--ok-bg); }
.status.is-off { color: var(--off); background: var(--off-bg); }
.status.is-wait { color: var(--warn); background: var(--warn-bg); }

.count-chip {
  display: inline-block;
  font-size: var(--t-tiny);
  font-weight: 600;
  color: var(--oxblood);
  background: var(--oxblood-tint);
  border-radius: 100px;
  padding: 2px 10px;
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

.bar {
  display: inline-block;
  width: 54px; height: 4px;
  border-radius: 100px;
  background: var(--line);
  margin-right: 9px;
  vertical-align: middle;
  position: relative;
  overflow: hidden;
}

.bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: attr(data-fill type(<number>), 0%);
  width: calc(attr(data-fill type(<number>), 0) * 1%);
  border-radius: 100px;
  background: var(--oxblood);
}

.is-full { color: var(--oxblood); font-weight: 600; }

.filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr)) auto;
  gap: var(--space-3);
  align-items: end;
}

.filter-form__field .field__label { font-size: var(--t-tiny); color: var(--ink-muted); font-weight: 500; }

.filter-form__field .field__input { min-height: var(--tap); padding: 8px 12px; font-size: var(--t-small); background: var(--surface); }

.filter-form__field--grow { min-width: 0; }

.filter-form__actions { display: flex; gap: var(--space-2); }

.dash__export { display: flex; align-items: center; gap: var(--space-4); }

.dash__export-note { font-size: var(--t-tiny); color: var(--ink-muted); }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-4); }

.pagination__link {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: var(--t-small);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}

.pagination__link:hover { border-color: var(--ink-soft); background: var(--surface-2); }

.pagination__link.is-disabled { color: var(--ink-muted); opacity: 0.5; pointer-events: none; }

.pagination__status { font-size: var(--t-tiny); color: var(--ink-muted); }

.settings-form { display: grid; gap: var(--space-4); margin-top: var(--space-4); }

.settings-form .check { min-height: auto; }

.admin-empty { padding: var(--space-8) var(--space-6); text-align: left; max-width: 620px; }

.admin-empty--inline {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: var(--space-6);
}

.admin-empty > * + * { margin-top: var(--space-3); }
.admin-empty .btn { margin-top: var(--space-4); }

.detail__crumbs { font-size: var(--t-tiny); color: var(--ink-muted); margin-bottom: var(--space-3); }

.detail__crumbs a { text-decoration: none; font-weight: 500; }

.detail__head { margin-bottom: var(--space-5); }
.detail__title { margin-bottom: 5px; }

.detail__sub { font-size: var(--t-small); color: var(--ink-soft); margin-bottom: var(--space-3); }

.detail__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); font-size: var(--t-tiny); color: var(--ink-muted); }

.detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: var(--space-5);
  align-items: start;
}

.detail__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-6);
}

.detail__panel .h3 { margin-bottom: var(--space-5); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }

.detail__panel--tight { padding: var(--space-5); }

.detail-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4); }

.detail__side { display: grid; gap: var(--space-4); }

.detail__side .btn--block + .btn--block { margin-top: var(--space-3); }

.record-facts { display: grid; gap: var(--space-4); font-size: var(--t-small); }

.record-facts dt { font-size: var(--t-tiny); color: var(--ink-muted); margin-bottom: 2px; }

.record-facts dd { color: var(--ink); word-break: break-word; }

.detail__hint { margin-top: var(--space-3); font-size: var(--t-tiny); color: var(--ink-muted); }

.page-login {
  background: var(--ink);
  background-image:
    radial-gradient(80% 60% at 15% 0%, rgba(122, 18, 32, 0.5), transparent 60%),
    radial-gradient(60% 50% at 100% 100%, rgba(122, 18, 32, 0.28), transparent 60%);
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--space-5);
}

.login { width: 100%; max-width: 430px; }

.login__panel {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
}

.login__logo { height: 44px; width: auto; margin-bottom: var(--space-6); }

.login__title { font-size: 1.4rem; margin-bottom: var(--space-2); letter-spacing: -0.02em; }

.login__note { font-size: var(--t-small); color: var(--ink-soft); margin-bottom: var(--space-5); }

.login__form { display: grid; gap: var(--space-2); }

.login__form .btn { margin-top: var(--space-3); min-height: 52px; }

.login__back { margin-top: var(--space-5); font-size: var(--t-small); }

.toast-region {
  position: fixed;
  right: var(--gutter);
  bottom: 24px;
  z-index: 90;
  display: grid;
  gap: 8px;
  max-width: min(420px, calc(100vw - 2 * var(--gutter)));
}

.toast {
  padding: 14px 18px;
  background: var(--ink);
  color: #fff;
  font-size: var(--t-small);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  animation: toast-in 260ms var(--ease-out) both;
}

.toast--error { background: var(--oxblood-deep); }

.toast.is-leaving {
  opacity: 0;
  transition: opacity 300ms var(--ease);
}

@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.dialog {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(23, 20, 26, 0.55);
  padding: var(--space-5);
}

.dialog[hidden] { display: none; }

.dialog__panel {
  background: var(--surface);
  max-width: 440px;
  width: 100%;
  border-radius: var(--r-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  animation: dialog-in 220ms var(--ease-out) both;
}

@keyframes dialog-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

.dialog__title { font-size: 1.2rem; margin-bottom: var(--space-3); }

.dialog__body { font-size: var(--t-small); color: var(--ink-soft); margin-bottom: var(--space-5); line-height: 1.6; }

.dialog__actions { display: flex; justify-content: flex-end; gap: var(--space-3); }

.reveal { opacity: 0; transform: translateY(16px); }

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out);
}

/* Stagger in CSS, so no inline style is needed to sequence an entrance. */
.reveal.is-visible { transition-delay: 0ms; }
.reveal.is-visible:nth-child(2) { transition-delay: 70ms; }
.reveal.is-visible:nth-child(3) { transition-delay: 140ms; }
.reveal.is-visible:nth-child(4) { transition-delay: 210ms; }
.reveal.is-visible:nth-child(n + 5) { transition-delay: 280ms; }

@media (max-width: 1180px) {
  .metric-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-form__field--grow { grid-column: 1 / -1; }
  .filter-form__actions { grid-column: 1 / -1; }
  .detail__grid { grid-template-columns: minmax(0, 1fr); }
  .detail__side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .masthead__rail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .masthead__map { display: none; }
  .masthead__grid { align-items: start; }
  .masthead__figure img { min-height: 320px; }
}

@media (max-width: 900px) {
  :root { --axis: 0px; --gap-section: 76px; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: var(--space-3) var(--gutter) var(--space-5);
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open { display: flex; }

  .site-nav__link { border-bottom: 1px solid var(--line); min-height: 54px; }
  .site-nav__link::after { display: none; }

  .site-nav__cta { margin-top: var(--space-4); justify-content: center; min-height: 52px; }

  .site-head__inner { position: relative; }

  .masthead__grid { grid-template-columns: minmax(0, 1fr); }

  .masthead__rail { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }

  .masthead__facts { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }

  .axis { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }

  .axis__side { padding-right: 0; display: grid; gap: var(--space-4); }

  .side-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }

  .line-list li { grid-template-columns: minmax(0, 1fr); gap: 3px; }

  .section-band, .venue__archive { grid-template-columns: minmax(0, 1fr); }

  .form-shell { grid-template-columns: minmax(0, 1fr); }

  .form-shell__intro { position: static; }

  .form-shell__aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-4);
    align-items: center;
  }

  .form-shell__contact { margin-top: 0; }

  .invitation__panel, .status-page { grid-template-columns: minmax(0, 1fr); }

  .invitation__aside {
    padding-left: 0;
    padding-top: var(--space-5);
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
  }

  .venue__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }

  .masthead__actions .btn { width: 100%; }

  .site-foot__lead,
  .site-foot__details { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }

  .site-foot__when { padding-left: 0; }

  .admin-head__inner { flex-wrap: wrap; gap: var(--space-3); padding-block: 8px; }
  .admin-nav { margin-left: 0; }
  .admin-user { margin-left: auto; }
}

@media (max-width: 640px) {
  :root { --t-body: 1rem; --gap-section: 60px; --space-9: 64px; }

  /* The logo already names the event on a phone; the wordmark steps back. */
  .brand__name { font-size: 0.65rem; }
  .brand__text { gap: 0; }
  .brand__mark { height: 30px; }

  .masthead { padding-block: 32px 28px; }

  .masthead__sub { font-size: 1rem; }

  .masthead__figure img { min-height: 250px; aspect-ratio: 4 / 3; }

  .masthead__caption {
    position: static;
    background: none;
    color: var(--ink-muted);
    padding: 8px 2px 0;
  }

  .masthead__facts { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }

  .side-facts { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }

  .agenda-table thead { position: absolute; clip-path: inset(50%); }

  .agenda-table tbody th { width: auto; display: block; padding-bottom: 2px; border-bottom: 0; }

  .agenda-table tbody td { display: block; padding-top: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

  .agenda-table--wide tbody td:nth-child(2) { width: auto; }

  .invitation__facts { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }

  .form-shell__aside { grid-template-columns: minmax(0, 1fr); }

  .form-shell__figure, .form-shell__figure2, .form-shell__figure3 { display: none; }

  .form-shell__panel {
    padding: 20px 16px;
    margin-inline: calc(var(--gutter) * -1);
    border-radius: 0;
    box-shadow: none;
  }

  .form-actions { justify-content: stretch; }
  .form-actions .btn { flex: 1 1 100%; }

  .review > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }

  .success__code { gap: var(--space-3); }
  .success__code .btn { width: 100%; }

  .site-foot__lead,
  .site-foot__details { grid-template-columns: minmax(0, 1fr); }

  .site-foot__event { max-width: none; }

  .site-foot__base { flex-direction: column; align-items: flex-start; }

  .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .dash__export { width: 100%; justify-content: space-between; }
  .dash__export-note { max-width: 20ch; }

  .filter-form { grid-template-columns: minmax(0, 1fr); }
  .filter-form__field--grow, .filter-form__actions { grid-column: auto; }

  .detail__side { grid-template-columns: minmax(0, 1fr); }

  .admin-user__name { display: none; }

  .toast-region { left: var(--gutter); right: var(--gutter); max-width: none; }

  .pagination { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-shutter] img { clip-path: none !important; transform: none !important; }
  .reveal { opacity: 1; transform: none; }
  .seat-meter__fill { animation: none; }
  .fieldset.is-entering > * { animation: none; }
}

@media print {
  .site-head, .site-foot, .skip-link, .form-actions, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .masthead { padding: 0 0 24px; }
  .masthead__title, .masthead__sub, .masthead__fact dd { color: #000; }
  .success__panel { box-shadow: none; border: 1px solid #000; }
}

/* mail status */

.mail-status { display: grid; gap: var(--space-5); max-width: 900px; }

.mail-status__head .lead { max-width: 60ch; margin-bottom: var(--space-3); }

.mail-status__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.mail-status__panel .h3 { margin-bottom: var(--space-4); }

.check-list { display: grid; gap: 0; }

.check-list__item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.check-list__item:last-child { border-bottom: 0; }

.check-list__mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-top: 2px;
  position: relative;
}

.check-list__item.is-ok .check-list__mark { background: var(--ok-bg); }
.check-list__item.is-ok .check-list__mark::after {
  content: '';
  position: absolute;
  left: 5px; top: 4px;
  width: 5px; height: 9px;
  border-right: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(40deg);
}

.check-list__item.is-bad .check-list__mark { background: var(--off-bg); }
.check-list__item.is-bad .check-list__mark::after {
  content: '';
  position: absolute;
  left: 8px; top: 4px;
  width: 2px; height: 10px;
  background: var(--off);
}

.check-list__body { display: grid; gap: 2px; }

.check-list__label { font-size: var(--t-small); font-weight: 600; color: var(--ink); }

.check-list__detail { font-size: var(--t-tiny); color: var(--ink-soft); line-height: 1.55; word-break: break-word; }

.record-facts--grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  display: grid;
  gap: var(--space-4);
}

.mail-test-form { display: grid; gap: var(--space-4); max-width: 420px; }

.log-block {
  margin: 0;
  padding: var(--space-4);
  background: var(--paper-deep);
  border-radius: var(--r-sm);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-2);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow-y: auto;
}

/* content editor */

.content-index,
.content-editor { display: grid; gap: var(--space-5); }

.content-index__head .lead,
.content-editor__head .lead { max-width: 64ch; margin-bottom: var(--space-3); }

.content-editor__links { display: flex; flex-wrap: wrap; gap: var(--space-4); }

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.content-card {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.content-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }

.content-card--wide { grid-column: 1 / -1; }

.content-card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); }

.content-card__title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }

.content-card__count {
  font-size: var(--t-tiny);
  color: var(--oxblood);
  background: var(--oxblood-tint);
  border-radius: 100px;
  padding: 2px 10px;
  font-weight: 500;
}

.content-card__sections { font-size: var(--t-small); color: var(--ink-soft); line-height: 1.6; margin: 0; }

.content-card .btn { justify-self: start; }

.content-form { display: grid; gap: var(--space-5); }

.editor-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.editor-panel > .h3 {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.form-actions--start { justify-content: flex-start; }

.field__textarea--code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.editor-image__row { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: flex-start; }

.editor-image__preview {
  flex: 0 0 auto;
  width: 220px;
  min-height: 120px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--paper-deep);
  display: grid;
  place-items: center;
}

.editor-image__preview img { width: 100%; height: auto; display: block; }

.editor-image__empty { font-size: var(--t-tiny); color: var(--ink-muted); padding: var(--space-4); text-align: center; }

.editor-image__controls { display: grid; gap: var(--space-2); min-width: 0; }

.editor-image__controls input[type="file"] { font-size: var(--t-small); color: var(--ink-2); }

.agenda-editor { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }

.agenda-editor__row {
  display: grid;
  grid-template-columns: 86px auto 86px minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: center;
}

.agenda-editor__dash { font-size: var(--t-tiny); color: var(--ink-muted); }

.agenda-editor__row .field__input { min-height: 44px; padding: 8px 10px; font-size: var(--t-small); }

.agenda-editor__remove { color: var(--oxblood); border-color: var(--line); }

.history-list { display: grid; gap: var(--space-3); }

.history-list__item {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}

.history-list__item:last-child { border-bottom: 0; }

.history-list__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); }

.history-list__field { font-size: var(--t-tiny); font-weight: 600; color: var(--ink); }

.history-list__time { font-size: var(--t-tiny); color: var(--ink-muted); }

.history-list__diff { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: var(--t-tiny); margin: 0; }

.history-list__old { color: var(--ink-muted); text-decoration: line-through; }

.history-list__new { color: var(--ink); }

.history-list__item .btn { justify-self: start; }

@media (max-width: 760px) {
  .agenda-editor__row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }

  .agenda-editor__dash { display: none; }

  .agenda-editor__title { grid-column: 1 / -1; }

  .agenda-editor__remove { grid-column: 1 / -1; justify-self: start; }

  .editor-image__preview { width: 100%; }
}

.field__badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 100px;
  background: var(--oxblood-tint);
  color: var(--oxblood);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  vertical-align: middle;
}

.source-note--top { margin-top: 0; margin-bottom: var(--space-4); }

/* agenda page: full-width table */

.doc-page--wide { max-width: var(--maxw); }

.agenda-head { max-width: 62ch; margin-bottom: var(--space-7); }

.agenda-table--full {
  width: 100%;
  table-layout: fixed;
}

.agenda-table--full thead th:first-child,
.agenda-table--full tbody th {
  width: 190px;
}

.agenda-table--full thead th,
.agenda-table--full tbody th,
.agenda-table--full tbody td {
  padding-inline: 20px;
}

.agenda-table--full thead th:first-child,
.agenda-table--full tbody th { padding-left: 0; }

.agenda-table--full thead th:last-child,
.agenda-table--full tbody td:last-child { padding-right: 0; }

.agenda-table--full tbody td { font-size: var(--t-body); }

.agenda-table--full tbody th { font-size: var(--t-small); }

/* duration column on the home agenda */

.agenda-table td.agenda-table__duration {
  width: 92px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

input#consent {
    width: 18px !important;
    margin-left: 0px !important;
}

@media (max-width: 640px) {
  .agenda-table--full thead { position: absolute; clip-path: inset(50%); }

  .agenda-table--full tbody th {
    display: block;
    width: auto;
    padding: 0 0 2px;
    border-bottom: 0;
  }

  .agenda-table--full tbody td {
    display: block;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--line);
  }

  .agenda-table--full tbody td.agenda-table__duration { width: auto; }
}
