:root {
  --blue: #2146a8;
  --blue-dark: #173477;
  --blue-soft: #f1f5ff;
  --emerald: #08745b;
  --emerald-dark: #075744;
  --emerald-soft: #eff9f5;
  --silver: #c9ced8;
  --silver-soft: #f1f3f6;
  --ink: #18202c;
  --muted: #5d6674;
  --line: #cfd5df;
  --surface: #ffffff;
  --surface-soft: #f4f6f9;
  --shadow: 0 10px 28px rgba(23, 52, 119, 0.10);
  --radius: 18px;
  --max: 820px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Intrinsic content must fit its column, including long names, URLs and forms. */
main, section, article, nav, aside, footer, form, fieldset, label, details,
.card, .button-row > *, .admin-actions > * { min-width: 0; }
body { overflow-wrap: anywhere; }
img, video, canvas, iframe { max-width: 100%; }
img, video { height: auto; }
button, .button, input, select, textarea { max-width: 100%; }
button, .button { white-space: normal; }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 24px; }
fieldset { min-inline-size: 0; }
summary { cursor: pointer; min-height: 44px; padding-block: 8px; }
details[open] > summary { margin-bottom: 12px; }
dialog { max-width: calc(100% - 24px); max-height: 90dvh; overflow: auto; }
pre { max-width: 100%; overflow: auto; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface-soft);
  line-height: 1.55;
  font-size: 17px;
}
a { color: var(--blue-dark); }
button, input, select, textarea { font: inherit; }
button, select, input, textarea { min-height: 48px; }
input, select, textarea {
  width: 100%;
  border: 1px solid #bfc9d6;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus, a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(33, 70, 168, 0.28);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  background: #fff;
  border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.sticky-nav {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.sticky-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 4px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--ink);
}
.sticky-nav a:focus-visible, .sticky-nav a:hover { background: var(--blue-soft); }

.section-shell {
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
  padding: 30px 0;
  scroll-margin-top: 58px;
}
.day-of-update {
  margin-top: 16px;
  margin-bottom: 0;
  padding: 18px 20px;
  color: var(--ink);
  background: var(--blue-soft);
  border: 2px solid #9fbee8;
  border-left: 7px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.day-of-update h2 { font-size: 1.45rem; margin-bottom: 8px; }
.day-of-update p:last-child { margin-bottom: 0; white-space: pre-line; }
.offline-notice {
  position: sticky;
  top: 52px;
  z-index: 45;
  width: 100%;
  padding: 11px 18px;
  text-align: center;
  color: #442d00;
  background: #fff2c7;
  border-bottom: 1px solid #e3c76a;
}
.site-error-notice {
  width: 100%;
  padding: 11px 18px;
  text-align: center;
  color: #6d1825;
  background: #fde9ec;
  border-bottom: 1px solid #e2aeb7;
}
.last-updated {
  padding-top: 12px;
  padding-bottom: 0;
  margin-bottom: -12px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}
.hero { padding-top: 46px; padding-bottom: 36px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
h1, h2, h3, h4 { line-height: 1.15; margin-top: 0; color: #121925; }
h1 { font-size: clamp(2.1rem, 9vw, 3.8rem); letter-spacing: -0.035em; margin-bottom: 16px; }
h2 { font-size: clamp(1.8rem, 7vw, 2.7rem); letter-spacing: -0.025em; margin-bottom: 10px; }
h3 { font-size: 1.28rem; margin-bottom: 10px; }
h4 { font-size: 1rem; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.hero-copy { font-size: 1.08rem; max-width: 66ch; }
.mission-line { font-size: 1.2rem; font-weight: 750; margin-bottom: 4px; }
.or-dont { font-size: 1.25rem; font-weight: 900; color: var(--blue-dark); }
.fine-print-not-tiny { color: var(--muted); max-width: 62ch; }
.tagline { font-weight: 850; color: var(--blue-dark); }
.section-heading { margin-bottom: 18px; }
.section-heading > p:last-child { max-width: 68ch; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.status-card { border-left: 6px solid var(--blue); background: linear-gradient(180deg, #fff, #fbfdff); }
.cleanup-card { background: #fbfcfe; border-style: dashed; }
.missed-shuttle-card { border-left: 6px solid var(--blue); }
.notice {
  border-radius: 12px;
  background: #f4f6f8;
  padding: 12px 14px;
  margin-top: 16px;
}
.card-kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  font-weight: 850;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  padding: 11px 16px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.button.primary { background: var(--blue); color: #fff; }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { background: #fff; color: var(--blue-dark); border-color: #9cb3d3; }
.small-link { font-size: 0.9rem; font-weight: 750; }

.times-list { margin: 0; }
.times-list > div {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 8px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.times-list > div:first-child { border-top: 0; padding-top: 0; }
.times-list dt { font-weight: 900; color: var(--blue-dark); }
.times-list dd { margin: 0; }

.shuttle-grid { display: grid; gap: 14px; }
.shuttle-grid > div { background: var(--surface-soft); border-radius: 14px; padding: 14px; }
.departure-list { margin: 0 0 12px; padding-left: 28px; }
.departure-list li { margin: 4px 0; }
.pickup { margin-bottom: 0; }
.menu-list { columns: 2; padding-left: 22px; }
.split-card { display: grid; gap: 18px; }
.split-card > div + div { border-top: 1px solid var(--line); padding-top: 18px; }

.stack-form { display: grid; gap: 10px; }
.stack-form label, .admin-page label { font-weight: 760; }
.form-message { min-height: 24px; margin: 2px 0 0; font-weight: 700; color: var(--blue-dark); }
.form-message.error, .error { color: #8a2330; }
.form-message.success { color: #1f6c43; }
.form-message.warning { color: #775500; }
.offline-action-note {
  margin: 2px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: #442d00;
  background: #fff2c7;
  font-weight: 700;
}

.table-list { display: grid; gap: 8px; }
.table-row {
  display: grid;
  grid-template-columns: minmax(58px, auto) 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.table-row:first-child { border-top: 0; }
.table-number { font-weight: 900; color: var(--blue-dark); }
.awaiting { color: var(--muted); font-style: italic; }
.card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.card-title-row h2, .card-title-row h3 { margin-bottom: 4px; }

.phase-message { background: var(--blue-soft); border-color: #b9d0ef; }
body[data-phase="dinner"] .pre-dinner-feature,
body[data-phase="dinner"] .after-dinner-feature { display: none; }
body:not([data-phase="after_dinner"]) .after-dinner-feature { opacity: 0.68; }
body[data-phase="after_dinner"] .pre-dinner-feature { opacity: 0.68; }
body[data-phase="dinner"] #dinner-phase-message { display: block; }

.prompt-list { padding-left: 22px; }
.prompt-list li { margin: 10px 0; }
.classified-section .card { border-style: dashed; }
.classified-result {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.classified-result h3 { color: var(--blue-dark); }
.prose-lines p { margin-bottom: 8px; }
.program-group { margin-top: 18px; }
.program-group + .program-group { border-top: 1px solid var(--line); padding-top: 18px; }
.program-group h4 { color: var(--blue-dark); }
address { font-style: normal; margin-bottom: 16px; }
.compact-card { box-shadow: none; }
.footer { color: var(--muted); text-align: center; padding-top: 10px; padding-bottom: 44px; }
.hidden { display: none !important; }


/* Guest wedding palette: royal blue + emerald + silver */
body:not(.admin-page):not(.dj-page) {
  background:
    radial-gradient(circle at top left, rgba(33, 70, 168, 0.08), transparent 28rem),
    radial-gradient(circle at 95% 34rem, rgba(8, 116, 91, 0.07), transparent 24rem),
    var(--silver-soft);
}

body:not(.admin-page):not(.dj-page) .site-header {
  background: rgba(23, 52, 119, 0.97);
  border-bottom-color: rgba(201, 206, 216, 0.55);
  box-shadow: 0 5px 18px rgba(18, 32, 60, 0.18);
}
body:not(.admin-page):not(.dj-page) .sticky-nav a { color: #fff; }
body:not(.admin-page):not(.dj-page) .sticky-nav a:focus-visible,
body:not(.admin-page):not(.dj-page) .sticky-nav a:hover { background: rgba(255,255,255,0.12); }

body:not(.admin-page):not(.dj-page) .hero {
  margin-top: 18px;
  padding: 44px 24px 40px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 58%, var(--emerald) 100%);
  box-shadow: 0 18px 42px rgba(23, 52, 119, 0.22);
  overflow: hidden;
  position: relative;
}
body:not(.admin-page):not(.dj-page) .hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -72px;
  bottom: -92px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255,255,255,0.05), 0 0 0 44px rgba(255,255,255,0.035);
  pointer-events: none;
}
body:not(.admin-page):not(.dj-page) .hero h1,
body:not(.admin-page):not(.dj-page) .hero .eyebrow,
body:not(.admin-page):not(.dj-page) .hero .or-dont,
body:not(.admin-page):not(.dj-page) .hero .fine-print-not-tiny { color: #fff; }
body:not(.admin-page):not(.dj-page) .hero .eyebrow { opacity: 0.88; }
body:not(.admin-page):not(.dj-page) .hero .fine-print-not-tiny { opacity: 0.86; }
body:not(.admin-page):not(.dj-page) .hero .button.primary {
  background: #fff;
  color: var(--blue-dark);
  box-shadow: 0 6px 18px rgba(10, 23, 53, 0.20);
}
body:not(.admin-page):not(.dj-page) .hero .button.primary:hover { background: var(--silver-soft); }

body:not(.admin-page):not(.dj-page) .section-heading .eyebrow { color: var(--blue); }
body:not(.admin-page):not(.dj-page) #shenanigans .section-heading .eyebrow,
body:not(.admin-page):not(.dj-page) #classified .section-heading .eyebrow { color: var(--emerald); }

body:not(.admin-page):not(.dj-page) .card {
  border-color: var(--silver);
  box-shadow: var(--shadow);
}
body:not(.admin-page):not(.dj-page) #tonight .card:nth-of-type(even) { border-top: 4px solid var(--blue); }
body:not(.admin-page):not(.dj-page) #tonight .card:nth-of-type(odd) { border-top: 4px solid var(--emerald); }
body:not(.admin-page):not(.dj-page) .status-card {
  border-left: 7px solid var(--emerald);
  border-top: 1px solid var(--silver) !important;
  background: linear-gradient(135deg, #fff 0%, var(--emerald-soft) 100%);
}
body:not(.admin-page):not(.dj-page) .missed-shuttle-card { border-left-color: var(--emerald); }
body:not(.admin-page):not(.dj-page) .day-of-update {
  background: linear-gradient(135deg, var(--blue-soft), var(--emerald-soft));
  border-color: #9fb1df;
  border-left-color: var(--blue);
}

body:not(.admin-page):not(.dj-page) .ceremony-program-card {
  position: relative;
  border: 1px solid var(--silver);
  border-top: 7px solid var(--blue) !important;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 66%, var(--silver-soft) 100%);
  box-shadow: 0 14px 34px rgba(23, 52, 119, 0.14);
}
body:not(.admin-page):not(.dj-page) .ceremony-program-card::before {
  content: "";
  display: block;
  width: 68px;
  height: 4px;
  margin: 0 0 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--silver), var(--emerald));
}
body:not(.admin-page):not(.dj-page) .ceremony-program-card h3 { color: var(--blue-dark); }
body:not(.admin-page):not(.dj-page) .ceremony-program-card .program-group:nth-of-type(2) h4 { color: var(--emerald-dark); }
body:not(.admin-page):not(.dj-page) .ceremony-program-card .program-group + .program-group { border-top-color: var(--silver); }

body:not(.admin-page):not(.dj-page) .button.primary { background: var(--blue); color: #fff; }
body:not(.admin-page):not(.dj-page) .button.primary:hover { background: var(--blue-dark); }
body:not(.admin-page):not(.dj-page) .button.secondary {
  border-color: #9aa9c4;
  color: var(--blue-dark);
  background: #fff;
}
body:not(.admin-page):not(.dj-page) .button.secondary:hover { background: var(--blue-soft); }

body:not(.admin-page):not(.dj-page) #shenanigans {
  margin-top: 16px;
  margin-bottom: 16px;
  padding-left: 20px;
  padding-right: 20px;
  border: 1px solid #b9d9cf;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--emerald-soft), rgba(255,255,255,0.72));
}
body:not(.admin-page):not(.dj-page) #shenanigans .card { border-color: #bdd8d0; }
body:not(.admin-page):not(.dj-page) #shenanigans .card:nth-child(odd) { border-left: 5px solid var(--emerald); }
body:not(.admin-page):not(.dj-page) #shenanigans .tagline,
body:not(.admin-page):not(.dj-page) #shenanigans .table-number { color: var(--emerald-dark); }
body:not(.admin-page):not(.dj-page) #shenanigans .phase-message {
  background: #e5f5ef;
  border-color: #a7d4c5;
}

body:not(.admin-page):not(.dj-page) #classified {
  margin-top: 16px;
  margin-bottom: 16px;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(145deg, var(--emerald-dark), #064839);
  box-shadow: 0 16px 38px rgba(7, 87, 68, 0.18);
}
body:not(.admin-page):not(.dj-page) #classified h2,
body:not(.admin-page):not(.dj-page) #classified .section-heading .eyebrow { color: #fff; }
body:not(.admin-page):not(.dj-page) #classified .section-heading p { color: rgba(255,255,255,0.88); }
body:not(.admin-page):not(.dj-page) #classified .card {
  color: var(--ink);
  border-color: rgba(201,206,216,0.9);
  background: #fff;
}
body:not(.admin-page):not(.dj-page) #classified .button.primary { background: var(--emerald); }
body:not(.admin-page):not(.dj-page) #classified .button.primary:hover { background: var(--emerald-dark); }

body:not(.admin-page):not(.dj-page) #helpful .compact-card:nth-of-type(odd) { border-left: 5px solid var(--blue); }
body:not(.admin-page):not(.dj-page) #helpful .compact-card:nth-of-type(even) { border-left: 5px solid var(--emerald); }
body:not(.admin-page):not(.dj-page) .footer::before {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--silver), var(--emerald));
}

body:not(.admin-page):not(.dj-page) select:focus,
body:not(.admin-page):not(.dj-page) input:focus,
body:not(.admin-page):not(.dj-page) textarea:focus { border-color: var(--blue); }

/* DJ */
.dj-page { background: #fff; }
.dj-shell { width: min(100% - 28px, 1100px); margin: 0 auto; padding: 28px 0 56px; }
.dj-shell h1 { font-size: clamp(2.4rem, 8vw, 5rem); margin-bottom: 4px; }
.dj-note { color: var(--muted); }
.dj-table-list { border-top: 4px solid var(--ink); margin-top: 22px; }
.dj-table-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.6fr) 1.4fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 2px solid var(--line);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.2;
}
.dj-table-row strong { color: var(--blue-dark); }

/* Admin */
.admin-page { background: #f3f6fa; }
.admin-topbar {
  position: relative;
  top: 0;
  z-index: 20;
  min-height: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.97);
}
.admin-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.admin-actions form { margin: 0; }
.button-link { background: none; border: 0; min-height: 44px; padding: 4px; cursor: pointer; color: var(--blue-dark); }
.admin-shell { width: min(100% - 28px, 1050px); margin: 0 auto; padding: 24px 0 60px; }
.admin-shell.narrow { max-width: 520px; padding-top: 9vh; }
.admin-shell .card { box-shadow: none; }
.admin-grid { display: grid; gap: 16px; }
.admin-grid label, .admin-page .card > label { display: grid; gap: 6px; margin-bottom: 14px; }
.admin-page fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 0; }
.admin-page legend { font-weight: 850; padding: 0 6px; }
.admin-page fieldset label { display: grid; gap: 6px; margin-bottom: 10px; }
.label-help { display: block; color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.anchor-section { scroll-margin-top: 76px; }
.admin-section-heading { padding: 28px 4px 10px; }
.admin-section-heading h2 { margin-bottom: 6px; }
.admin-save-status { margin-top: 12px; }
.button-row, .table-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-add-form {
  display: grid;
  grid-template-columns: minmax(110px, 180px) minmax(100px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 18px 0 22px;
}
.inline-add-form.wide { grid-template-columns: minmax(130px, 180px) minmax(220px, 1fr) auto; }
.inline-add-form label { margin: 0 !important; }
.admin-table-list { display: grid; gap: 10px; }
.admin-table-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.admin-table-row .table-label { font-weight: 850; }
.danger-button { background: #fff; color: #8a2330; border: 1px solid #d6aeb4; border-radius: 10px; padding: 8px 10px; min-height: 44px; cursor: pointer; }
.code-editors { display: grid; gap: 16px; }
.code-editor { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fbfcfe; }
.code-editor h3 { margin-bottom: 12px; }
.code-title-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.code-title-row h3 { margin-bottom: 0; }
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}
.status-badge.enabled { color: #15553a; background: #e5f5ec; }
.status-badge.disabled { color: #5d6674; background: #e9edf2; }
.code-editor label { display: grid; gap: 6px; margin-bottom: 12px; }
.inline-check { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 10px !important; }
.inline-check input { width: 22px; min-height: 22px; height: 22px; }
.contact-preview {
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-soft);
}
.contact-preview p { margin-bottom: 8px; }
.contact-preview p:last-child { margin-bottom: 0; }
.readiness-list { display: grid; gap: 8px; padding: 0; margin: 14px 0 0; list-style: none; }
.readiness-list li { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; }
.readiness-list li.ready { color: #15553a; background: #edf8f2; }
.readiness-list li.needed { color: #6d1825; background: #fdeff1; }
.readiness-mark { min-width: 72px; font-size: 0.78rem; font-weight: 850; text-transform: uppercase; }

@media (min-width: 700px) {
  body { font-size: 18px; }
  .section-shell { padding-top: 42px; padding-bottom: 42px; }
  .card { padding: 24px; }
  .shuttle-grid, .split-card, .admin-grid.two { grid-template-columns: 1fr 1fr; }
  .split-card > div + div { border-top: 0; border-left: 1px solid var(--line); padding-top: 0; padding-left: 18px; }
  .sticky-nav a { font-size: 0.84rem; }
}

@media (max-width: 700px) {
  .menu-list { columns: 1; }
  .card-title-row { align-items: stretch; flex-direction: column; }
  .admin-table-row { grid-template-columns: 1fr; }
  .inline-add-form, .inline-add-form.wide { grid-template-columns: 1fr; }
  .admin-topbar { align-items: flex-start; flex-direction: column; }
  .admin-actions { justify-content: flex-start; }
  .dj-table-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Structured ceremony program */
.program-header { text-align: center; padding: 4px 0 8px; }
.program-header .card-kicker { color: var(--emerald-dark); }
.program-header h3 { margin-bottom: 6px; }
.program-subtitle { margin: 0; color: var(--muted); font-size: 0.95rem; }
.program-group > h4 {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.055em;
  font-size: 0.83rem;
}
.program-order-list {
  list-style: none;
  counter-reset: ceremony-step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.program-order-list li {
  counter-increment: ceremony-step;
  position: relative;
  margin: 0;
  padding: 10px 8px 10px 44px;
  border-bottom: 1px solid #e5e8ee;
}
.program-order-list li:last-child { border-bottom: 0; }
.program-order-list li::before {
  content: counter(ceremony-step);
  position: absolute;
  left: 4px;
  top: 9px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
}
.program-people { margin: 0; display: grid; gap: 0; }
.program-people > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e8ee;
}
.program-people > div:last-child { border-bottom: 0; }
.program-people dt { color: var(--muted); font-size: 0.86rem; font-weight: 700; }
.program-people dd { margin: 0; font-weight: 750; }
.program-music-list { display: grid; gap: 10px; }
.program-music-item {
  padding: 13px 14px;
  border: 1px solid #dbe0e8;
  border-left: 4px solid var(--emerald);
  border-radius: 12px;
  background: #fff;
}
.program-music-item p { margin: 0 0 4px; }
.program-music-item p:last-child { margin-bottom: 0; }
.program-moment { color: var(--emerald-dark); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
.performance-credit { color: var(--muted); font-size: 0.88rem; }
cite { font-style: italic; }
@media (min-width: 680px) {
  .program-music-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .program-people > div { grid-template-columns: 1fr; gap: 2px; }
}

.warm-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--emerald-soft, #eef8f5);
  border: 1px solid #bdd8d0;
  line-height: 1.5;
}


/* v12: icon system + scan-friendly guest layout */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.site-icon {
  width: 1.3em;
  height: 1.3em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.icon-badge {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border: 1px solid #c9d5ed;
}
.icon-badge .site-icon { width: 15px; height: 15px; }
#shenanigans .icon-badge,
#classified .icon-badge,
#helpful .compact-card:nth-of-type(even) .icon-badge {
  color: var(--emerald-dark);
  background: var(--emerald-soft);
  border-color: #b8dbcf;
}
.icon-heading,
.title-with-icon,
.section-icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-heading { margin-bottom: 8px; }
.icon-heading h3,
.title-with-icon h3,
.section-icon-row h2 { margin: 0; }
.section-icon-row { margin-bottom: 10px; }
.section-icon-row .icon-badge {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}
.title-with-icon { min-width: 0; }

/* The restroom pictogram intentionally uses two crossed-leg figures. */
#restroom-card .icon-badge {
  width: 32px;
  height: 32px;
  color: var(--emerald-dark);
  background: #e9f7f2;
  border-color: #9fcfbe;
  transform: rotate(-1deg);
}
#restroom-card .icon-badge .site-icon { width: 22px; height: 22px; stroke-width: 2.05; }

/* Sticky nav: icons make the five destinations recognizable at a glance. */
.sticky-nav a {
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
}
.nav-icon {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: currentColor;
}
.nav-icon .site-icon { width: 13px; height: 13px; stroke-width: 2; }

/* At-a-glance strip */
.quick-glance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 22px 0 18px;
}
.quick-glance-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,0.11);
  text-decoration: none;
  backdrop-filter: blur(2px);
}
.quick-glance-item:hover,
.quick-glance-item:focus-visible { background: rgba(255,255,255,0.18); }
.quick-glance-item .icon-badge {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255,255,255,0.24);
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.quick-glance-item .icon-badge .site-icon { width: 14px; height: 14px; }
.quick-glance-item strong,
.quick-glance-item small { display: block; color: #fff; }
.quick-glance-item strong { font-size: 0.9rem; line-height: 1.2; }
.quick-glance-item small { margin-top: 2px; font-size: 0.7rem; opacity: 0.78; line-height: 1.15; }

/* Scan aids: short labels/chips before longer copy. */
.scan-label {
  margin: 12px 0 6px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.055em;
  font-size: 0.73rem;
  font-weight: 850;
}
.scan-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 2px 0 14px;
}
.scan-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--silver-soft);
  color: var(--ink);
  border: 1px solid var(--silver);
  font-size: 0.78rem;
  font-weight: 800;
}

/* Make long cards easier to skim without changing their words. */
body:not(.admin-page):not(.dj-page) .card > p,
body:not(.admin-page):not(.dj-page) .card > ul,
body:not(.admin-page):not(.dj-page) .card > dl,
body:not(.admin-page):not(.dj-page) .card > address,
body:not(.admin-page):not(.dj-page) .card > .prose-lines,
body:not(.admin-page):not(.dj-page) .card > .shuttle-grid,
body:not(.admin-page):not(.dj-page) .card > form {
  max-width: 68ch;
}
body:not(.admin-page):not(.dj-page) .compact-card { padding-top: 17px; padding-bottom: 17px; }
body:not(.admin-page):not(.dj-page) .card li { margin-bottom: 5px; }
body:not(.admin-page):not(.dj-page) .card strong { text-wrap: pretty; }

/* Keep the ceremony program formal, but give its subheads their own visual anchors. */
.ceremony-program-card .program-group > h4 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ceremony-program-card .program-group > h4::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px var(--emerald-soft);
}

@media (min-width: 700px) {
  .quick-glance { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sticky-nav a { flex-direction: row; gap: 6px; }
  .nav-icon { width: 16px; height: 16px; }
}

@media (max-width: 420px) {
  .sticky-nav a { font-size: 0.62rem; min-height: 58px; padding-left: 2px; padding-right: 2px; }
  .nav-icon .site-icon { width: 13px; height: 13px; }
  .icon-heading { align-items: flex-start; }
  .icon-badge { width: 26px; height: 26px; border-radius: 8px; }
  .icon-badge .site-icon { width: 14px; height: 14px; }
  .section-icon-row .icon-badge { width: 28px; height: 28px; }
  #restroom-card .icon-badge { width: 30px; height: 30px; }
  #restroom-card .icon-badge .site-icon { width: 20px; height: 20px; }
}

/* Guest and private guide controls use the existing card system. */
.page-guide, #guest-faq { scroll-margin-top: 6rem; }
#weather-hours { padding-left: 1.3rem; }
#weather-hours li { padding-block: .5rem; border-bottom: 1px solid #ddd; }
@media print { .page-guide, #weather-refresh { display: none; } }

.hotel-signup{border:2px solid var(--accent,#425f4a)}.hotel-signup .primary{min-height:48px}.section-shell>summary{font-size:1.3rem;font-weight:700;cursor:pointer}.status-card{max-width:1120px;margin:1rem auto}.hero address{font-style:normal;margin:1rem 0}#wedding-weather h2{font-size:1.15rem}#wedding-weather{padding:1rem}#dinner-phase-message[hidden]{display:none!important}#classified-entry{margin-top:1rem}body:not(.admin-page):not(.dj-page) .hero{padding:20px;margin-top:16px}body:not(.admin-page):not(.dj-page) .hero h1{font-size:1.75rem;margin:8px 0}.hero-copy{display:none}.hero address{margin-bottom:0}.hotel-signup{padding:18px}.hotel-signup h2{font-size:1.3rem}.hotel-signup p{margin:8px 0}@media(max-width:600px){.hotel-signup .primary{display:block;text-align:center}.sticky-nav{display:flex;flex-wrap:wrap;overflow:visible;justify-content:center;gap:0}.sticky-nav a{white-space:nowrap;flex:0 0 auto;font-size:.74rem;min-height:40px;padding:8px}}

/* One shared column for the guest page at every viewport width. */
.guest-page #main { width: min(100% - 28px, var(--max)); margin-inline: auto; }
.guest-page #main > * { width: 100%; max-width: none; margin-inline: 0; }
.guest-page #main > .section-shell { padding-block: 22px; }
.guest-page #main > .card { padding: clamp(16px, 3vw, 24px); margin-block: 16px; }
.guest-page #main > .hero { margin-bottom: 16px; }
.guest-page #main .section-shell .section-shell,
.guest-page #main .card .section-shell { width: 100%; }
.guest-page #approved-guest-updates { padding: 16px 0 0; }
.guest-page #approved-guest-updates > .card { box-shadow: none; margin-bottom: 0; }
.guest-page #last-updated { margin-bottom: 0; }
.guest-page #guest-footer { text-align: left; }
.guest-page #guest-footer > p { text-align: center; }
.guest-page #guest-footer h2 { font-size: 1.3rem; }
.guest-content-group:empty { display: none; }
.guest-content-group > .card:last-child { margin-bottom: 0; }
.guest-page #shenanigans .pre-dinner-feature,
.guest-page #shenanigans .after-dinner-feature { display: block; opacity: 1; }
.guest-page .card > summary { font-weight: 750; line-height: 1.35; }
.guest-page .card > summary:focus-visible { outline: 3px solid #9fbee8; outline-offset: 4px; }
.admin-page > nav.card { width: min(100% - 28px, 1050px); margin: 16px auto 0; }
.admin-page > .small-guide-link { width: min(100% - 28px, 1050px); padding: 0; }
@media (max-width: 600px) {
  .admin-topbar { position: static; }
  .admin-actions { justify-content: flex-start; }
  .admin-shell { padding-top: 16px; }
  .admin-page .card { padding: 16px; }
  .admin-page input, .admin-page select, .admin-page textarea { font-size: 16px; }
  .times-list > div { grid-template-columns: minmax(72px, .3fr) minmax(0, 1fr); }
  .inline-add-form, .inline-add-form.wide { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .guest-page #main { width: 100%; }
  .guest-page .site-header { position: static; }
}
/* Author hidden controls must remain hidden despite component display rules. */
[hidden] { display: none !important; }
button:disabled { opacity: .55; cursor: not-allowed; }

.declassified-files { display: grid; gap: 24px; margin-top: 20px; }
.declassified-files figure { margin: 0; }
.declassified-files img { display: block; width: 100%; height: auto; border-radius: 12px; }
.declassified-files figcaption { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }
