/* =========================================================
   EVENT PLANNING — the planner (/events-admin, /roster, /rooms, /schedule,
   /budget, /notify) and the public /signup and /itinerary.
   Same language as the site: parchment, burgundy, gold hairlines, serif
   headings, italic captions, cards that lift. Nothing a person reads is
   under 17px; the audience skews older and mobile.
   ========================================================= */

:root {
  --shadow-soft: 0 1px 0 rgba(74, 24, 32, 0.05), 0 10px 30px rgba(74, 24, 32, 0.07);
  --shadow-lift: 0 16px 40px rgba(74, 24, 32, 0.15);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ev-wrap { max-width: 1080px; margin: 0 auto; }
.ev-wrap-narrow { max-width: 680px; margin: 0 auto; }

.planner-page main, .event-public main { overflow-wrap: anywhere; }
.planner-page .section { max-width: 1280px; padding-top: 24px; }
.planner-page .page-header { max-width: 1280px; padding: 44px 40px 20px; text-align: left; }
.planner-page .page-title { font-size: 42px; margin-bottom: 12px; }
.planner-page .page-subtitle { margin: 0; max-width: 70ch; font-size: 21px; }
.planner-page .page-eyebrow { margin-bottom: 12px; }
.planner-page .ev-wrap { max-width: none; }
.event-public .section { padding-top: 16px; }
.ev-wrap, .ev-wrap-narrow, .panel, .house, .person, .event-card { min-width: 0; }
.planner-page input:not([type="checkbox"]):not([type="radio"]),
.planner-page select, .planner-page textarea,
.event-public input:not([type="checkbox"]):not([type="radio"]),
.event-public select, .event-public textarea {
  min-height: 48px; border: 2px solid var(--hair-deep); font-size: 18px;
  max-width: 100%; min-width: 0;
}
.planner-page .switcher select { border-color: var(--gold-bright); }
.planner-page .field input:focus, .planner-page .field select:focus,
.event-public .field input:focus, .event-public .field select:focus { border-color: var(--gold); }
.planner-page .nav:not(:has(.nav-hamburger)) { gap: 20px; }
.planner-page .nav:not(:has(.nav-hamburger)) .nav-links { display: flex; flex-direction: row; flex-wrap: wrap; width: auto; border: none; padding: 0; margin: 0; gap: 12px 20px; }
.planner-page .nav:not(:has(.nav-hamburger)) .nav-links a { border: none; padding: 8px 0; }
.person .grid-2, .person .grid-3 { column-gap: 24px; }
.person .field label { letter-spacing: 0; }
.choice:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.session > *, .room-person > *, .house-head > *, .cat-head > * { min-width: 0; }
.room-add select { border: 2px solid var(--hair-deep); }

@media (max-width: 720px) {
  .planner-page .page-header { padding: 36px 24px 20px; }
  .planner-page .section { padding: 20px 20px 48px; }
  .planner-page .panel { padding: 24px 16px; }
  .event-public .section { padding: 16px 20px 48px; }
  .event-public .form-card { padding: 28px 0; }
  .event-public .person { padding: 20px 16px; }
  .event-public .choice { flex-wrap: wrap; padding: 16px; gap: 10px; }
  .event-public .choice-price { flex-basis: 100%; max-width: none; text-align: left; padding-left: 32px; }
  .planner-page .stat-grid { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)) !important; }
  .planner-page .planner-tabs { padding: 12px; }
  .planner-page .map-room { flex-basis: 100%; }
  .planner-page .planner-hero-side, .planner-page .switcher { min-width: 0; max-width: 100%; }
  .planner-page .bubble { max-width: 100%; padding: 18px; }
  .page-rooming .rl-room { grid-template-columns: 1fr; }
}

@media print {
  .planner-page .page-header, .planner-page .nav-wrap, .planner-page .footer { display: none !important; }
  .planner-page .section, .event-public .section { max-width: none; padding: 0; }
  .planner-page .panel, .event-public .panel { border: none; box-shadow: none; padding: 0; }
  .page-rooming .rl-index { columns: 2; }
  .page-rooming .rl-room { grid-template-columns: 180px minmax(0, 1fr); }
  .page-rooming .rl-bed, .page-rooming .rl-index div, .event-public .session { break-inside: avoid; }
  .event-public .event-card-cover { display: none; }
  .event-public .event-card { border: none; box-shadow: none; }
}

*:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- ornaments ---- */
.rule-gold { width: 64px; height: 1px; background: var(--gold); margin: 14px 0 0; }
.eyebrow {
  font-size: 17px; text-transform: uppercase;
  color: var(--gold); font-weight: 600; letter-spacing: 0.1em;
}
.empty {
  font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-faint); line-height: 1.6; text-align: center; padding: 40px 24px; background: var(--parchment); border: 1px dashed var(--hair-deep);
}
.empty::before { content: "✦"; display: block; color: var(--gold); font-style: normal; font-size: 18px; margin-bottom: 10px; }
.empty a { color: var(--burgundy); text-decoration: underline; }

/* ---- sign in / denied ---- */
.auth-card {
  max-width: 480px; margin: 0 auto; background: var(--parchment-deep);
  border: 1px solid var(--hair);
  padding: 44px 42px;
  box-shadow: none;
  border-top: 1px solid var(--gold);
}
.auth-card h2 {
  font-family: var(--serif); font-size: 32px; color: var(--burgundy);
  font-weight: 500; margin: 0 0 6px;
}
.auth-card p { font-size: 18px; line-height: 1.6; color: var(--ink-soft); }

/* ---- forms ---- */
.field { margin-top: 20px; }
fieldset.field { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
fieldset.field > legend { padding: 0; float: left; width: 100%; }
fieldset.field > legend + * { clear: both; }
.field label, fieldset.field > legend {
  display: block; font-size: 17px; letter-spacing: 0.06em;
  color: var(--ink-soft); margin-bottom: 8px; font-weight: 600;
}
.field input, .field select, .field textarea {
  width: 100%; box-sizing: border-box; padding: 15px 16px;
  border: 2px solid var(--hair-deep); background: var(--parchment);
  color: var(--ink); font-size: 18px; font-family: var(--sans); border-radius: 2px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(128, 80, 12, 0.4);
}
.field-hint { font-size: 17px; color: var(--ink-faint); margin-top: 8px; line-height: 1.5; }
.field-optional { font-weight: 400; color: var(--ink-faint); letter-spacing: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 20px; }
.grid-2 > *, .grid-3 > *, .opt-row > *, .map-beds > *, .choice-body { min-width: 0; }
.field select, .field input, .field textarea { max-width: 100%; }
.field select { min-height: 54px; }

.full-btn { width: 100%; margin-top: 28px; cursor: pointer; border: none; font-size: 19px; }
.full-btn[disabled] { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.btn-small {
  font-size: 18px; padding: 13px 22px; min-height: 48px; cursor: pointer; line-height: 1.2; font-weight: 500;
  border: 1px solid var(--burgundy); background: none; color: var(--burgundy);
  font-family: var(--sans); border-radius: 2px; text-decoration: none; display: inline-block;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-small:hover { background: var(--burgundy); color: var(--parchment); transform: translateY(-1px); box-shadow: none; }
.btn-small[disabled] { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: var(--parchment); box-shadow: 0 6px 18px rgba(155, 34, 38, 0.22); }
.btn-row-tight { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.link-btn {
  background: none; border: none; color: var(--burgundy); font-size: 18px;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; font-family: var(--sans);
}
.link-btn:hover { color: var(--gold); }

.msg { margin-top: 16px; font-size: 18px; line-height: 1.6; }
.msg-err { color: var(--danger); }
.msg-ok { color: var(--burgundy); }

/* ---- panels ---- */
.panel {
  background: var(--parchment-deep); border: 1px solid var(--hair); margin-top: 24px; position: relative; box-shadow: none; padding: 28px 30px;
}
.panel::before {
  content: ""; position: absolute; left: 34px; right: 34px; top: 0;
  background: linear-gradient(90deg, var(--gold) 0, var(--gold) 64px, transparent 64px);
  height: 1px;
}
/* The gold stub on the top edge is a planner motif. On a public page it reads as
   a smudge on the card rather than an accent, so the card's own border is the
   edge there. */
.event-public .panel::before { display: none; }
.event-public .panel { padding-top: 24px; }
.panel h2 {
  font-family: var(--serif); font-size: 28px; color: var(--burgundy);
  font-weight: 500; margin: 6px 0 4px;
}
.panel-sub { font-size: 18px; color: var(--ink-faint); line-height: 1.6; }
.panel-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--hair); }
.panel-section h3 {
  font-family: var(--serif); font-size: 23px; color: var(--burgundy);
  font-weight: 500; margin: 0 0 4px;
}

/* ---- topbar ---- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px; font-size: 18px;
}
.topbar-who { color: var(--ink-faint); font-family: var(--serif); font-style: italic; font-size: 19px; }
.topbar-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

/* ---- the planner hero: cover, name, dates, countdown, switcher, tabs ---- */
.planner-hero {
  position: relative; overflow: hidden; color: var(--parchment);
  background: var(--burgundy-deep); border: 1px solid var(--hair); box-shadow: var(--shadow-soft);
  margin-bottom: 26px;
}
.planner-hero-cover {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0.55; filter: saturate(0.9);
}
.planner-hero-cover::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--burgundy-deep), transparent);
}
.planner-hero-body {
  position: relative; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 34px 38px 26px;
}
.planner-hero-main { flex: 1 1 380px; min-width: 0; }
.planner-hero .eyebrow { color: var(--gold-bright); }
.planner-hero-name {
  font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); font-weight: 500; line-height: 1.1;
  margin-top: 8px; color: var(--parchment);
}
.planner-hero-meta { font-size: 18px; color: rgba(244, 236, 220, 0.82); margin-top: 10px; line-height: 1.6; }
.planner-hero-meta .pill { vertical-align: middle; margin-left: 6px; }
.planner-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; flex: 0 1 auto; }
.countdown { text-align: right; }
.countdown-n { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--gold-bright); font-weight: 600; }
.countdown-l { font-size: 17px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244, 236, 220, 0.75); margin-top: 4px; font-weight: 600; }
.switcher { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.switcher label {
  font-size: 17px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(244, 236, 220, 0.75); font-weight: 600;
}
.switcher select {
  padding: 12px 40px 12px 14px; font-size: 19px; font-family: var(--serif); font-weight: 600;
  color: var(--parchment); background: rgba(244, 236, 220, 0.08);
  border-radius: 2px; max-width: 100%; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23C9A05A' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; border: 2px solid var(--gold-bright); min-height: 52px;
}
.switcher select:hover { border-color: var(--gold-bright); }
.switcher select option { color: var(--ink); background: var(--parchment); font-family: var(--sans); font-weight: 500; }
.planner-tabs {
  position: relative; display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; background: rgba(244, 236, 220, 0.96); border-top: 1px solid var(--hair); flex-wrap: wrap; gap: 4px; padding: 12px 22px;
}
.planner-tabs a {
  font-size: 17px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; text-decoration: none; transition: background 0.2s var(--ease), color 0.2s var(--ease); border-radius: 2px; padding: 10px 14px; letter-spacing: 0;
}
.planner-tabs a:hover { background: var(--parchment-edge); color: var(--burgundy); }
.planner-tabs a.current { background: var(--burgundy); color: var(--parchment); }

/* ---- pills ---- */
.pill {
  display: inline-block; font-size: 17px; letter-spacing: 0.04em;
  padding: 3px 12px; border-radius: 999px; white-space: nowrap; line-height: 1.5;
}
.pill-open, .pill-confirmed, .pill-member { background: var(--burgundy); color: var(--parchment); font-weight: 600; }
.pill-draft, .pill-visitor { background: var(--parchment-edge); color: var(--ink-soft); }
.pill-pending { background: var(--gold); color: var(--ink); font-weight: 600; }
.pill-waitlisted { background: var(--navy); color: var(--parchment); font-weight: 600; }
.pill-closed, .pill-past, .pill-cancelled {
  background: transparent; color: var(--ink-faint); border: 1px solid var(--hair-deep);
}
.planner-hero .pill-closed, .planner-hero .pill-past, .planner-hero .pill-draft { color: rgba(244, 236, 220, 0.85); border: 1px solid rgba(244, 236, 220, 0.4); background: transparent; }

/* ---- count hero (the page's one big number) ---- */
.count-hero {
  background: var(--parchment-deep); border: 1px solid var(--hair); text-align: left; box-shadow: none; padding: 28px 30px; border-top: 1px solid var(--gold);
}
.count-hero-label {
  font-size: 17px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.count-hero-title {
  font-family: var(--serif); font-size: 30px; color: var(--burgundy);
  margin-top: 8px; font-weight: 500; line-height: 1.2;
}
.count-hero-date { color: var(--ink-soft); margin-top: 6px; font-family: var(--serif); font-style: italic; font-size: 20px; }
.count-hero-number {
  font-family: var(--serif); line-height: 1;
  color: var(--burgundy); font-weight: 600; margin: 16px 0 6px; font-size: 64px;
}
.count-hero-unit { font-size: 19px; color: var(--ink-soft); }
.count-hero-math {
  font-size: 19px; color: var(--ink-soft); margin-top: 18px;
  padding-top: 18px; border-top: 1px solid var(--hair); line-height: 1.6;
}
.count-hero-math b { color: var(--burgundy); font-weight: 600; }
.count-hero-split { font-size: 18px; color: var(--ink-faint); margin-top: 12px; line-height: 1.6; }
.capacity-warn {
  margin-top: 16px; padding: 14px 16px; border: 1px solid var(--danger);
  color: var(--danger); font-size: 18px; line-height: 1.5; background: rgba(155, 34, 38, 0.05);
}
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 14px; margin-top: 26px;
}
.stat {
  background: var(--parchment); border: 1px solid var(--hair); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); box-shadow: none; border-top: 1px solid var(--gold); padding: 20px;
}
.stat:hover { transform: none; box-shadow: none; }
.stat-n { font-family: var(--serif); color: var(--burgundy); font-weight: 600; line-height: 1; overflow-wrap: anywhere; font-size: 38px; font-variant-numeric: lining-nums tabular-nums; }
.stat-l { font-size: 17px; color: var(--ink-faint); margin-top: 8px; letter-spacing: 0.04em; line-height: 1.4; }

/* ---- gathering cards (Overview) ---- */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 22px; margin-top: 8px; }
.ev-card {
  background: var(--parchment); border: 1px solid var(--hair); display: flex; flex-direction: column; position: relative; transition: transform 0.2s ease;
}
.ev-card:hover { transform: translateY(-2px); box-shadow: none; }
.ev-card-cover {
  height: 170px;
  background-size: cover; background-position: center; position: relative; background-color: var(--parchment-edge);
}
.ev-card-cover::before {
  content: ""; position: absolute; inset: 0; background: none;
}
.ev-card-cover .pill { position: absolute; top: 12px; left: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.ev-card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ev-card-dates { font-size: 17px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.ev-card-name { font-family: var(--serif); font-size: 26px; color: var(--burgundy); font-weight: 500; line-height: 1.2; }
.ev-card-loc { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-faint); }
.ev-card-counts { font-size: 18px; color: var(--ink-soft); line-height: 1.6; margin-top: 6px; }
.ev-card-counts b { color: var(--burgundy); font-weight: 600; }
.ev-card .bar-track { margin-top: 10px; }
.ev-card-link { font-size: 17px; color: var(--ink-faint); margin-top: 6px; word-break: break-all; line-height: 1.7; }
.ev-card-link code { font-family: var(--sans); font-size: 17px; color: var(--ink); background: var(--parchment-deep); padding: 2px 6px; border: 1px solid var(--hair); }
.ev-card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; }

/* ---- ways to attend (option editor) ---- */
.opt-row {
  display: grid; grid-template-columns: 2fr 2fr 1fr 1.2fr 1fr 1.3fr; gap: 10px;
  align-items: end; padding: 16px 0; border-bottom: 1px solid var(--hair);
}
.opt-row:last-of-type { border-bottom: none; }
.opt-row .field { margin-top: 0; }
.opt-row .field label { font-size: 17px; letter-spacing: 0.02em; margin-bottom: 4px; }
.opt-row .field input, .opt-row .field select { padding: 12px 12px; font-size: 18px; min-height: 50px; }
.opt-foot {
  grid-column: 1 / -1; display: flex; gap: 18px; align-items: center;
  flex-wrap: wrap; font-size: 17px; color: var(--ink-soft); padding-top: 6px;
}
.opt-foot label { display: flex; gap: 8px; align-items: center; font-weight: 500; cursor: pointer; line-height: 1.4; }
.opt-foot input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--burgundy); flex: 0 0 auto; }
.opt-foot .spacer { flex: 1; }
/* a labelled group of tick boxes, two across, one per line on a phone */
.check-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 6px 24px; margin-top: 4px; }
.check-grid label {
  display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 18px; font-weight: 500;
  color: var(--ink); line-height: 1.4; cursor: pointer; letter-spacing: 0; margin-bottom: 0;
}
.check-grid input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--burgundy); flex: 0 0 auto; }
.check-grid + .field-hint { margin-top: 6px; }

/* ---- roster ---- */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.filters input, .filters select {
  padding: 13px 14px; font-size: 18px; min-height: 50px; font-family: var(--sans);
  border: 2px solid var(--hair-deep); background: var(--parchment);
  color: var(--ink); border-radius: 2px;
}
.filters input { flex: 1 1 220px; }
.table-scroll { overflow-x: auto; margin-top: 18px; border: 1px solid var(--hair); background: var(--parchment); max-width: 100%; overscroll-behavior-x: contain; scrollbar-color: var(--gold) var(--parchment-deep); }
table.reg { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 18px; }
table.reg th, table.reg td { min-width: 140px; }
table.reg th:first-child, table.reg td:first-child { min-width: 200px; }
table.reg th {
  position: sticky; top: 0; z-index: 1; background: var(--parchment-deep);
  text-align: left; font-size: 17px; font-weight: 600; border-bottom: 2px solid var(--hair-deep); white-space: nowrap; letter-spacing: 0.02em; text-transform: none; color: var(--ink-soft); padding: 16px;
}
table.reg td { border-bottom: 1px solid var(--hair);
  color: var(--ink); vertical-align: top; line-height: 1.5; padding: 16px;
}
table.reg tbody tr:nth-child(even) td { background: rgba(236, 226, 204, 0.45); }
table.reg tbody tr:hover td { background: rgba(176, 136, 64, 0.10); }
table.reg td.num { font-weight: 600; color: var(--burgundy); white-space: nowrap; }
table.reg td.nowrap { white-space: nowrap; }
.note-cell { color: var(--ink-soft); font-size: 17px; max-width: 280px; display: block; white-space: pre-line; line-height: 1.5; }
.sub-line { font-size: 17px; color: var(--ink-faint); display: block; line-height: 1.5; }
.inline-select, .inline-input {
  padding: 11px 12px; font-size: 18px; min-height: 48px; font-family: var(--sans);
  border: 2px solid var(--hair-deep); background: var(--parchment);
  color: var(--ink); border-radius: 2px; max-width: 100%;
}
.inline-input { min-width: 220px; }
.inline-select { min-width: 150px; }
table.reg td.warn, .warn-text { color: var(--danger); }

/* ---- budget ---- */
.money { font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.cat-head h3 { font-family: var(--serif); font-size: 26px; color: var(--burgundy); font-weight: 500; margin: 0; }
.cat-total { font-size: 18px; color: var(--ink-soft); }
.cat-total b { color: var(--burgundy); font-weight: 600; }
.line-status { font-size: 17px; }
.bar-track { height: 10px; background: var(--parchment-edge); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--burgundy), var(--burgundy-bright)); transition: none; }
.bar-fill.over { background: var(--danger); }
.bar-fill.gold { background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }

/* ---- rooms ---- */
.house { margin-top: 24px; }
.house-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.house-head h3 { font-family: var(--serif); font-size: 28px; color: var(--burgundy); font-weight: 500; margin: 6px 0 0; }
.house-meta { font-size: 17px; color: var(--ink-faint); }
.house-photos { display: flex; gap: 8px; overflow-x: auto; margin-top: 16px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.house-photos a { flex: 0 0 auto; display: block; width: 180px; height: 120px; border: 1px solid var(--hair); overflow: hidden; background: var(--parchment); }
.house-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: none; }
.house-photos a:hover img {
  transform: none; }
.house-amenities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.house-amenities span { font-size: 17px; color: var(--ink-soft); background: var(--parchment); border: 1px solid var(--hair); padding: 4px 12px; border-radius: 999px; }
.floor-plan { margin-top: 14px; }
.floor-plan img { max-width: 100%; border: 1px solid var(--hair); background: var(--parchment); }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 16px; margin-top: 18px; }
.room {
  background: var(--parchment); border: 1px solid var(--hair); border-top: 3px solid var(--burgundy);
  padding: 18px 18px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.room:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.room.full { border-top-color: var(--gold); }
.room.over, .room.conflict { border-top-color: var(--danger); }
.room-name { font-family: var(--serif); font-size: 23px; color: var(--burgundy); font-weight: 600; line-height: 1.2; }
.room-meta { font-size: 17px; color: var(--ink-faint); line-height: 1.5; }
.room-fill { display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--ink-faint); }
.room-fill .bar-track { flex: 1; margin: 0; height: 8px; }
.room-people { display: flex; flex-direction: column; gap: 6px; }
.room-person {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: 18px; padding: 9px 10px; background: var(--parchment-deep); border: 1px solid var(--hair); flex-wrap: wrap;
}
.room-person .sub-line { font-size: 17px; }
.room-warn { font-size: 17px; color: var(--danger); line-height: 1.5; padding: 8px 10px; background: rgba(155, 34, 38, 0.06); border-left: none; border: 1px solid var(--hair-deep); }
.room-add { display: flex; gap: 8px; align-items: center; }
.room-add select { flex: 1 1 auto; min-width: 0; min-height: 48px; font-size: 18px; }
.unplaced { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 10px; margin-top: 16px; }
.unplaced-person {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 18px;
  padding: 12px 14px; background: var(--parchment); border: 1px solid var(--hair); border-left: 1px solid var(--hair); flex-wrap: wrap;
}
.tag { display: inline-block; font-size: 17px; padding: 2px 9px; border-radius: 999px; background: var(--parchment-edge); color: var(--ink-soft); margin-left: 6px; line-height: 1.4; }
.tag-warn { background: var(--danger); color: var(--parchment); }
.tag-women { background: var(--gold); color: var(--ink); }
.tag-men { background: var(--navy); color: var(--parchment); }

/* ---- house map ---- */
.map-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.map-floor { margin-top: 22px; }
.map-floor-label { font-size: 17px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.map-rooms { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.map-room {
  background: var(--parchment); border: 2px solid var(--burgundy); position: relative; min-width: 0; flex: 1 1 240px; max-width: 100%; box-shadow: none; padding: 16px;
}
.map-room.conflict { border-color: var(--danger); }
.map-room.full { border-color: var(--gold); }
.map-room-name { font-family: var(--serif); font-size: 21px; color: var(--burgundy); font-weight: 600; line-height: 1.2; }
.map-room-meta { font-size: 17px; color: var(--ink-faint); margin-bottom: 8px; }
.map-beds { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.map-bed {
  border: 1px solid var(--hair-deep); background: var(--parchment-deep);
  font-size: 17px; line-height: 1.3; display: flex; flex-direction: column; justify-content: center; position: relative; padding: 12px; min-height: 72px;
}
.map-bed.bunk-top { border-top: 3px solid var(--hair-deep); margin-bottom: -6px; border-bottom: none; }
.map-bed.bunk-bottom { border-top: 1px dashed var(--hair-deep); }
.map-bed.filled { background: var(--parchment); border-color: var(--burgundy); }
.map-bed.warn { border-color: var(--danger); background: rgba(155, 34, 38, 0.06); }
.map-bed-kind { font-size: 17px; color: var(--ink-faint); }
.map-bed-name { font-weight: 600; color: var(--ink); overflow: hidden; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
.map-bed select { width: 100%; padding: 8px 8px; background: var(--parchment); color: var(--ink-soft); border-radius: 2px; font-size: 18px; min-height: 48px; border: 2px solid var(--hair-deep); }
.map-bed .link-btn { font-size: 17px; align-self: flex-start; }
.map-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 17px; color: var(--ink-faint); margin-top: 12px; }
.map-legend span::before { content: ""; display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; border: 2px solid var(--burgundy); }
.map-legend .l-full::before { border-color: var(--gold); }
.map-legend .l-conflict::before { border-color: var(--danger); }

/* ---- schedule / itinerary ---- */
.day { margin-top: 28px; }
.day h2, .day h3 {
  font-family: var(--serif); font-size: 27px; color: var(--burgundy); font-weight: 500; margin: 0 0 8px;
  padding-bottom: 8px; border-bottom: 1px solid var(--hair);
}
.session { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.session:last-child { border-bottom: none; }
.session-time { font-family: var(--serif); font-size: 20px; color: var(--burgundy); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; font-weight: 500; }
.session-title { font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.session-meta { color: var(--ink-faint); margin-top: 3px; line-height: 1.5; font-style: italic; font-family: var(--serif); font-size: 18px; }
.session-desc { font-size: 18px; color: var(--ink-soft); margin-top: 6px; line-height: 1.6; }
.session-private .session-title::after { content: " · internal"; font-size: 17px; color: var(--ink-faint); font-weight: 400; }
.session-actions { margin-top: 8px; display: flex; gap: 12px; }
.speaker-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 14px; margin-top: 16px; }
.speaker { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--parchment); border: 1px solid var(--hair); }
.speaker img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: var(--parchment-edge); border: 2px solid var(--gold); }
.speaker-name { font-size: 18px; font-weight: 600; color: var(--ink); }
.speaker-title { color: var(--ink-faint); font-family: var(--serif); font-style: italic; font-size: 18px; }

/* ---- notify ---- */
.compose textarea { min-height: 140px; }
.compose-count { font-size: 17px; color: var(--ink-faint); margin-top: 8px; }
.sent-row { padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: 18px; line-height: 1.6; }
.sent-row:last-child { border-bottom: none; }
.sent-meta { font-size: 17px; color: var(--ink-faint); }
.sent-body { white-space: pre-line; color: var(--ink); margin-top: 4px; border-left: none; padding-left: 0; padding-top: 12px; }

/* ---- public: registration + itinerary ---- */
.event-card {
  background: var(--parchment-deep); border: 1px solid var(--hair); overflow: hidden; text-align: left; border-top: 1px solid var(--gold); box-shadow: none;
}
.event-card-cover {
  /* the card art is drawn at 1200x750; the box keeps that shape so nothing is cropped */
  background-size: cover; background-position: center; position: relative; aspect-ratio: 1200 / 750; background-color: var(--parchment-edge);
}
.event-card-cover::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--burgundy-deep) 25%, transparent));
}
.event-card-inner { padding: 30px 34px 32px; }
.event-card-label { font-size: 17px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.event-card-name { font-family: var(--serif); font-size: 36px; line-height: 1.15; color: var(--burgundy); font-weight: 500; margin-top: 10px; }
.event-card-tag { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-soft); margin-top: 10px; line-height: 1.5; }
.event-card-meta { font-size: 18px; color: var(--ink-soft); margin-top: 14px; line-height: 1.7; }
.event-card-desc { font-size: 18px; line-height: 1.7; color: var(--ink-soft); margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hair); text-align: left; }
.event-card-desc p { margin: 0 0 14px; }
.event-card-desc p:last-child { margin-bottom: 0; }
.event-card-desc strong { color: var(--ink); font-weight: 600; }
.event-card-spots { font-size: 18px; color: var(--ink-faint); margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair); }
.event-card-spots strong { color: var(--burgundy); font-weight: 600; }
/* The long description folds away: the card keeps name, dates, place and headcount. */
.event-card-about { margin-top: 18px; border-top: 1px solid var(--hair); }
.event-card-about > summary {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 600; color: var(--burgundy);
}
.event-card-about > summary::-webkit-details-marker { display: none; }
.event-card-about > summary::before {
  content: ""; flex: none; box-sizing: border-box; width: 10px; height: 10px; margin: 0 4px 0 2px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
  transition: transform 200ms var(--ease);
}
.event-card-about[open] > summary::before { transform: rotate(45deg); }
.event-card-about .event-card-desc { margin-top: 0; padding-top: 4px; border-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .event-card-about > summary::before { transition: none; }
}

.form-card { margin-top: 24px; counter-reset: step; background: transparent; border: none; padding: 32px 0; box-shadow: none; }
.form-card h2 { font-family: var(--serif); font-size: 30px; color: var(--burgundy); font-weight: 500; margin: 0 0 8px; }
.form-card-sub { font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.step-label {
  font-family: var(--serif); color: var(--burgundy); font-weight: 500; padding-top: 28px; border-top: 1px solid var(--hair); display: flex; align-items: baseline; gap: 12px; font-size: 28px; margin: 40px 0 12px;
}
.step-label::before {
  counter-increment: step; content: counter(step, upper-roman);
  font-size: 17px; letter-spacing: 0.12em; color: var(--gold); font-family: var(--sans); font-weight: 600;
  min-width: 28px;
}
.step-sub { font-size: 18px; color: var(--ink-faint); line-height: 1.6; }
/* In the registration steps the stepper numbers the sections, so the Roman numerals step aside
   and the first heading in a step sits at its top without a rule above it. */
.zg-stepped .step-label::before { content: none; }
.zg-stepped .zg-step-heading + .step-label { margin-top: 0; padding-top: 0; border-top: 0; }
.person { background: var(--parchment); border: 1px solid var(--hair); border-left: 1px solid var(--hair); padding: 24px; margin-top: 24px; }
.person-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--hair); }
.person-title { font-family: var(--serif); font-weight: 600; color: var(--burgundy); font-size: 26px; }
.person .field { margin-top: 14px; }
.person .p-contact[hidden] { display: none; }
.person.is-unoccupied .field, .person.is-unoccupied fieldset { opacity: .5; }

.choice-list { display: grid; gap: 12px; margin-top: 10px; }
.choice {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px;
  border: 2px solid var(--hair-deep); background: var(--parchment); border-radius: 2px; cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.choice:hover { border-color: var(--burgundy); transform: none; box-shadow: none; }
.choice:has(input:checked) { border-color: var(--burgundy); box-shadow: none; background: var(--parchment-deep); }
.choice input { width: 22px; height: 22px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--burgundy); }
.choice-body { flex: 1 1 auto; min-width: 0; }
.choice-name { display: block; font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.choice-desc { display: block; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; font-family: var(--serif); font-style: italic; font-size: 18px; }
.choice-price { font-family: var(--serif); font-size: 24px; color: var(--burgundy); font-weight: 600; padding-left: 10px; white-space: normal; overflow-wrap: anywhere; }
.choice-inline { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.choice-inline .choice { flex: 1 1 140px; padding: 14px 16px; align-items: center; }
.choice-inline .choice-name { font-weight: 500; display: inline; }
.choice-price { flex: 0 0 auto; max-width: 40%; text-align: right; }

/* ---- guest forms: one control height, and controls stay level across a row
   even when one label wraps to two lines ---- */
.event-public { --control-h: 56px; }
.event-public .field input:not([type="checkbox"]):not([type="radio"]),
.event-public .field select { height: var(--control-h); min-height: var(--control-h); padding-top: 0; padding-bottom: 0; line-height: normal; }
.event-public .field textarea { min-height: 112px; }
.event-public .choice-inline { margin-top: 0; }
.event-public .choice-inline .choice { min-height: var(--control-h); padding-top: 0; padding-bottom: 0; }
.event-public .choice-inline .choice input { margin-top: 0; }
.event-public .grid-2 > .field, .event-public .grid-3 > .field { display: flex; flex-direction: column; }
.event-public .grid-2 > .field > label, .event-public .grid-3 > .field > label { margin-top: auto; }
.event-public .btn-small { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding-top: 0; padding-bottom: 0; }
.event-public .full-btn { min-height: 60px; }
.waiver-box {
  background: var(--parchment); border: 2px solid var(--hair-deep); padding: 16px 18px;
  max-height: 260px; overflow-y: auto; font-size: 17px; line-height: 1.7; color: var(--ink-soft); white-space: pre-line; margin-top: 10px;
}
.agree { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-size: 18px; line-height: 1.5; cursor: pointer; }
.agree input { width: 22px; height: 22px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--burgundy); }

.done-card { background: var(--parchment-deep); border: 1px solid var(--hair); border-top: 3px solid var(--gold); padding: 36px; margin-top: 24px; text-align: center; box-shadow: var(--shadow-soft); }
.done-card h2 { font-family: var(--serif); font-size: 32px; color: var(--burgundy); font-weight: 500; margin: 0 0 12px; }
.done-card h2::before { content: "✦"; display: block; color: var(--gold); font-size: 20px; margin-bottom: 12px; }
.done-card p { font-size: 18px; line-height: 1.7; color: var(--ink-soft); }
.done-card p + p { margin-top: 14px; }
/* "Pay to confirm your place": the shared next-step card (zg-ui.css), left-aligned inside the centred done card. */
.done-card .zg-nudge { margin-top: 24px; text-align: left; }
.done-card .zg-nudge .zg-nudge-eyebrow { font-size: 17px; line-height: 1.4; color: var(--zg-accent-ink); }
.done-card .zg-nudge .zg-nudge-text { line-height: 1.6; color: var(--zg-muted); }
.done-card .zg-nudge .zg-nudge-action { padding: 16px 32px; }
.closed-card { background: var(--parchment-deep); border: 1px solid var(--hair); border-top: 3px solid var(--ink-faint); padding: 36px; text-align: center; box-shadow: var(--shadow-soft); }
.closed-card h2 { font-family: var(--serif); font-size: 30px; color: var(--ink-soft); font-weight: 500; margin: 0 0 10px; }
.closed-card p { font-size: 18px; line-height: 1.7; color: var(--ink-soft); }
.link-plain { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-plain:hover { color: var(--gold); }

.open-list { display: grid; gap: 16px; margin-top: 24px; }
.open-item {
  background: var(--parchment-deep); border: 1px solid var(--hair);
  padding: 22px 26px; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  border-left: 1px solid var(--hair);
}
.open-item:hover { transform: translateY(-2px); box-shadow: none; }
.open-item-name { font-family: var(--serif); font-size: 25px; color: var(--burgundy); font-weight: 500; line-height: 1.25; }
.open-item-meta { font-size: 18px; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; font-family: var(--serif); font-style: italic; }

[hidden] { display: none !important; }

@media (max-width: 1040px) {
  .opt-row { grid-template-columns: 1fr 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .panel, .count-hero, .auth-card, .form-card, .event-card-inner, .done-card, .closed-card { padding: 24px 18px; }
  .btn-row-tight .btn-small, .map-toolbar .btn-small { flex: 1 1 auto; text-align: center; }
  .room-add { flex-wrap: wrap; }
  .filters input, .filters select { flex: 1 1 100%; }
  .inline-input { min-width: 160px; }
  .panel::before { left: 20px; right: 20px; height: 1px; }
  .planner-hero-body { padding: 26px 22px 20px; }
  .planner-hero-side { align-items: flex-start; width: 100%; }
  .countdown { text-align: left; }
  .planner-tabs { flex-wrap: wrap; gap: 4px; padding: 12px 22px; }
  .count-hero-number {
    font-size: 64px; }
  .grid-2, .grid-3, .check-grid { grid-template-columns: 1fr; }
  .opt-row { grid-template-columns: 1fr; }
  .event-card-name { font-size: 30px; }
  .event-card-cover { background-color: var(--parchment-edge); }
  .switcher select { width: 100%; border: 2px solid var(--gold-bright); min-height: 52px; }
  .session { grid-template-columns: 1fr; gap: 4px; }
}

/* assistant: page-specific presentation, consolidated from its head. */

  .page-assistant .chat { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
  .page-assistant .bubble { font-size: 18px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; max-width: min(90%, 70ch); padding: 20px 24px; }
  .page-assistant .bubble-user { align-self: flex-end; background: var(--burgundy); color: var(--parchment); border-radius: 2px; }
  .page-assistant .bubble-ai { align-self: flex-start; background: var(--parchment); border: 1px solid var(--hair); color: var(--ink); border-left: 1px solid var(--hair); border-radius: 2px; }
  .page-assistant .bubble-ai .meta { font-size: 17px; color: var(--ink-faint); margin-top: 8px; font-family: var(--serif); font-style: italic; }
  .page-assistant .bubble-wait { align-self: flex-start; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-faint); }
  .page-assistant .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
  .page-assistant .chip { font-size: 17px; padding: 11px 16px; border: 1px solid var(--hair-deep); background: var(--parchment); color: var(--ink-soft); cursor: pointer; border-radius: 2px; min-height: 48px; text-align: left; }
  .page-assistant .chip:hover { border-color: var(--burgundy); color: var(--burgundy); }
  .page-assistant .ask { display: flex; gap: 10px; align-items: flex-end; margin-top: 18px; flex-wrap: wrap; }
  .page-assistant .ask textarea { min-height: 64px; min-width: 0; flex: 1 1 280px; }
  .page-assistant .copy-ai { font-size: 17px; }


/* rooming: page-specific presentation, consolidated from its head. */

  .page-rooming .rl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
  .page-rooming .rl-title { font-family: var(--serif); font-size: 34px; color: var(--burgundy); font-weight: 500; line-height: 1.15; }
  .page-rooming .rl-sub { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-soft); margin-top: 4px; }
  .page-rooming .rl-floor { font-size: 17px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 28px 0 8px; }
  .page-rooming .rl-room { break-inside: avoid; padding: 14px 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: 220px 1fr; gap: 12px 20px; }
  .page-rooming .rl-room-name { font-family: var(--serif); font-size: 23px; color: var(--burgundy); font-weight: 600; line-height: 1.2; }
  .page-rooming .rl-room-meta { font-size: 17px; color: var(--ink-faint); margin-top: 2px; line-height: 1.5; }
  .page-rooming .rl-beds { display: grid; gap: 6px 18px; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
  .page-rooming .rl-bed { font-size: 18px; line-height: 1.5; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
  .page-rooming .rl-bed-kind { font-size: 17px; color: var(--ink-faint); min-width: 100px; }
  .page-rooming .rl-bed-empty { color: var(--ink-faint); font-style: italic; font-family: var(--serif); }
  .page-rooming .rl-index { columns: 2; column-gap: 40px; font-size: 18px; line-height: 1.7; margin-top: 10px; }
  .page-rooming .rl-index div { break-inside: avoid; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted var(--hair-deep); flex-wrap: wrap; }
  .page-rooming .rl-index b { font-weight: 500; }
  @media (max-width: 720px) { .page-rooming .rl-room { grid-template-columns: 1fr; } .page-rooming .rl-index { columns: 1; } }
  @media print {
    .page-rooming .nav-wrap, .page-rooming .footer, .page-rooming .no-print, .page-rooming .planner-hero { display: none !important; }
    body.page-rooming::before { display: none; }
    .page-rooming .section { padding: 0; }
    .page-rooming .panel { box-shadow: none; border: none; padding: 0; margin: 0 0 18px; }
    .page-rooming .panel::before { display: none; }
    .page-rooming .rl-index { columns: 2; }
  }


/* itinerary: page-specific presentation, consolidated from its head. */

  @media print {
    .page-itinerary .nav-wrap, .page-itinerary .footer, .page-itinerary .no-print { display: none !important; }
    body.page-itinerary::before { display: none; }
    .page-itinerary .section { padding: 0; }
    .page-itinerary .day { break-inside: avoid; }
  }

.field label.choice { display: flex; letter-spacing: 0; margin-bottom: 0; }
.planner-page table.reg .inline-input { min-width: 180px; }
.planner-page table.reg .inline-select { min-width: 150px; }
@media (max-width: 720px) {
  .page-assistant .bubble { max-width: 100%; padding: 18px; }
}


/* ---- plan board ---- */
.plan-hero .count-hero-number { font-size: 72px; }
.next-up { margin-top: 22px; display: grid; gap: 8px; text-align: left; max-width: 640px; margin-left: auto; margin-right: auto; }
.next-up-label { font-size: 17px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; text-align: center; margin-bottom: 4px; }
.next-up-item { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 16px; background: var(--parchment); border: 1px solid var(--hair); border-left: 3px solid var(--gold); font-size: 18px; color: var(--ink); text-decoration: none; }
.next-up-item:hover { border-left-color: var(--burgundy); color: var(--ink); }
.next-up-item span { color: var(--ink-faint); font-size: 17px; }
.step-panel { padding-bottom: 22px; }
.step-panel.step-complete { opacity: 0.85; }
.step-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.step-head h2 { display: flex; align-items: baseline; gap: 12px; }
.step-num { font-family: var(--sans); font-size: 17px; letter-spacing: 0.14em; color: var(--gold); font-weight: 600; min-width: 34px; }
.step-count { font-family: var(--serif); font-size: 22px; color: var(--ink-soft); }
.step-panel .bar-track { margin: 12px 0 6px; }
.task-list { display: flex; flex-direction: column; }
.task { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--hair); align-items: start; }
.task:last-child { border-bottom: none; }
.task-check { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--burgundy); background: var(--parchment); color: var(--parchment); font-size: 22px; line-height: 1; cursor: pointer; margin-top: 2px; transition: background 0.2s var(--ease); }
.task-check:hover { background: var(--parchment-edge); }
.task-check[disabled] { cursor: default; opacity: 0.5; }
.task-done .task-check { background: var(--burgundy); }
.task-done .task-title { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--hair-deep); }
.task-blocked .task-check { border-color: var(--hair-deep); }
.task-overdue .task-title { color: #9B2226; }
.task-doing .task-check { border-color: var(--gold); box-shadow: inset 0 0 0 4px var(--parchment), inset 0 0 0 20px var(--gold); }
.task-body { min-width: 0; }
.task-title { font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.task-go { font-size: 17px; font-weight: 500; margin-left: 8px; white-space: nowrap; }
.task-detail { font-size: 18px; color: var(--ink-soft); margin-top: 3px; line-height: 1.5; }
.task-meta { font-size: 17px; color: var(--ink-faint); margin-top: 6px; line-height: 1.6; }
.task-captain { color: var(--burgundy); font-weight: 600; }
.task-captain-none { color: #9B2226; font-weight: 600; }
.task-auto { color: var(--gold); font-weight: 600; }
.task-lock { color: var(--ink-faint); font-style: italic; font-family: var(--serif); font-size: 18px; }
.task-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.task-controls .inline-input { min-width: 160px; flex: 1 1 200px; }
.task .js-abel { font-size: 17px; margin-top: 8px; }
.act-row { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 18px; line-height: 1.5; }
.act-row:last-child { border-bottom: none; }
.act-when { color: var(--ink-faint); white-space: nowrap; font-size: 17px; min-width: 120px; }

/* ---- Ask ABEL ---- */
#abel-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 300; display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border: none; border-radius: 999px; background: var(--burgundy); color: var(--parchment);
  font-family: var(--sans); font-size: 18px; font-weight: 600; cursor: pointer; box-shadow: 0 10px 30px rgba(92, 31, 46, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
#abel-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(92, 31, 46, 0.4); }
.abel-fab-mark { color: var(--gold-bright); font-size: 20px; }
#abel-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); z-index: 310; display: flex; flex-direction: column;
  background: var(--parchment-deep); border-left: 1px solid var(--hair); box-shadow: -16px 0 40px rgba(74, 24, 32, 0.15);
}
.abel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--hair); background: var(--burgundy-deep); color: var(--parchment); }
.abel-title { font-family: var(--serif); font-size: 26px; color: var(--gold-bright); }
.abel-sub { font-size: 17px; color: rgba(244, 236, 220, 0.8); margin-top: 2px; }
.abel-head .link-btn { color: rgba(244, 236, 220, 0.85); font-size: 17px; }
.abel-close { background: none; border: none; color: var(--parchment); font-size: 30px; line-height: 1; cursor: pointer; padding: 0 6px; }
.abel-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px 0; }
.abel-chips .chip { font-size: 17px; padding: 10px 14px; min-height: 44px; border: 1px solid var(--hair-deep); background: var(--parchment); color: var(--ink-soft); border-radius: 999px; cursor: pointer; text-align: left; }
.abel-chips .chip:hover { border-color: var(--burgundy); color: var(--burgundy); }
.abel-chat { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 12px; }
.abel-chat .bubble { max-width: 92%; padding: 14px 16px; font-size: 18px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.abel-chat .bubble-user { align-self: flex-end; background: var(--burgundy); color: var(--parchment); border-radius: 14px 14px 2px 14px; }
.abel-chat .bubble-ai { align-self: flex-start; background: var(--parchment); border: 1px solid var(--hair); border-left: 3px solid var(--gold); border-radius: 2px 14px 14px 14px; color: var(--ink); }
.abel-chat .meta { font-size: 17px; color: var(--ink-faint); margin-top: 8px; font-family: var(--serif); font-style: italic; }
.abel-chat .bubble-wait { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-faint); }
.abel-ask { display: flex; gap: 10px; align-items: flex-end; padding: 12px 22px 18px; border-top: 1px solid var(--hair); background: var(--parchment-deep); }
.abel-ask textarea { flex: 1; min-height: 56px; padding: 12px 14px; font-size: 18px; font-family: var(--sans); border: 2px solid var(--hair-deep); background: var(--parchment); color: var(--ink); border-radius: 2px; resize: vertical; }
.abel-ask .btn-primary { font-size: 18px; padding: 14px 20px; border: none; cursor: pointer; }
#abel-drawer .msg { padding: 0 22px 14px; margin: 0; }
body.abel-open #abel-fab { display: none; }
@media (max-width: 720px) { #abel-fab { right: 14px; bottom: 14px; padding: 12px 16px; } .abel-fab-text { display: none; } #abel-fab .abel-fab-mark { font-size: 24px; } .task { grid-template-columns: 40px 1fr; gap: 10px; } }
@media print { #abel-fab, #abel-drawer { display: none !important; } }

/* The gathering's theme above the itinerary (166). */
.it-theme { margin: 0 0 24px; padding: 26px 24px; text-align: center; border: 1px solid var(--gold); background: var(--parchment-deep); }
.it-theme-eyebrow { font-size: 17px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.it-theme h2 { margin: 8px 0 4px; font-family: var(--serif); font-size: 34px; font-weight: 500; color: var(--burgundy); }
.it-theme-sub { margin: 0 0 14px; font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--ink-soft); }
.it-theme-verse { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--ink); }
.it-theme-verse cite { display: block; margin-top: 4px; font-style: normal; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.it-theme-body { max-width: 640px; margin: 20px auto 0; text-align: left; }
.it-theme-body p { margin: 0 0 14px; font-size: 18px; line-height: 1.7; color: var(--ink); }
.it-theme-body strong { color: var(--burgundy); }
.it-theme-verses { list-style: none; max-width: 640px; margin: 18px auto 0; padding: 16px 0 0; border-top: 1px solid var(--gold); text-align: left; display: grid; gap: 10px; }
.it-theme-verses li { display: grid; grid-template-columns: 170px 1fr; gap: 12px; font-size: 18px; line-height: 1.5; color: var(--ink); }
.it-theme-verses b { color: var(--burgundy); font-weight: 600; }
@media (max-width: 560px) { .it-theme-verses li { grid-template-columns: 1fr; gap: 2px; } }
.it-day-theme { margin: -4px 0 16px; padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--parchment-deep); }
.it-day-theme-title { font-family: var(--serif); font-size: 24px; color: var(--burgundy); line-height: 1.25; }
.it-day-theme-verse { margin-top: 4px; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.5; color: var(--ink-soft); }
.it-day-theme-verse cite { font-style: normal; font-family: inherit; font-size: 17px; letter-spacing: 0.06em; color: var(--gold); white-space: nowrap; }
.it-theme-closing { margin: 28px 0 4px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.5; color: var(--burgundy); }
.it-theme-closing cite { display: block; margin-top: 4px; font-style: normal; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.it-guide h2 { margin-top: 0; }
.it-guide h3 { margin: 22px 0 8px; font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--burgundy); }
.it-guide-facts { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; margin: 0; }
.it-guide-facts dt { font-size: 17px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); font-weight: 600; padding-top: 2px; }
.it-guide-facts dd { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink); }
.it-guide-bring, .it-guide-notes { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 18px; line-height: 1.55; color: var(--ink); }
.it-guide-notes { margin-top: 16px; }
.it-guide-contact { margin: 20px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
@media (max-width: 560px) { .it-guide-facts { grid-template-columns: 1fr; gap: 2px; } .it-guide-facts dd { margin-bottom: 10px; } }
.it-now { position: sticky; top: 8px; z-index: 5; margin: 0 0 20px; padding: 14px 18px; display: grid; gap: 6px; border: 1px solid var(--gold); border-left: 4px solid var(--burgundy); background: var(--parchment); box-shadow: 0 6px 20px rgba(42, 24, 16, 0.12); font-size: 18px; line-height: 1.45; color: var(--ink); }
.it-now b { display: inline-block; min-width: 64px; font-size: 17px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--burgundy); }
.it-now span { color: var(--ink-soft); white-space: nowrap; }
.session.is-past { opacity: 0.55; }
.session.is-now { margin: 0 -12px; padding-left: 12px; padding-right: 12px; background: var(--parchment-deep); border-left: 4px solid var(--burgundy); }
.session.is-now .session-time::after { content: 'Now'; display: block; margin-top: 4px; font-size: 17px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--burgundy); font-weight: 700; }
.session.is-next .session-time::after { content: 'Next'; display: block; margin-top: 4px; font-size: 17px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
@media print { .it-theme { border-color: #b08840; background: none; } .it-day-theme { background: none; } .session.is-past { opacity: 1; } .session.is-now { background: none; border: 0; margin: 0; } .session-time::after { content: none !important; } }

/* Collapsible days on the itinerary */
.it-day { margin-top: 18px; border: 1px solid var(--hair-deep); border-radius: 18px; background: var(--parchment); box-shadow: 0 10px 26px rgba(32, 31, 27, 0.06); overflow: hidden; }
.it-day > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; align-items: center; gap: 12px; padding: 18px 20px; cursor: pointer; list-style: none; background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-deep) 100%); }
.it-day > summary::-webkit-details-marker { display: none; }
.it-day > summary:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.it-day-head { display: grid; gap: 2px; }
.it-day-label { font-family: var(--serif); font-size: 27px; font-weight: 500; color: var(--burgundy); line-height: 1.2; }
.it-day-sumtheme { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold); }
.it-day-count { font-size: 17px; color: var(--ink-soft); white-space: nowrap; }
.it-day-chev { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--hair-deep); position: relative; transition: transform 200ms ease; }
.it-day-chev::before { content: ''; position: absolute; left: 9px; top: 7px; width: 8px; height: 8px; border-right: 2px solid var(--burgundy); border-bottom: 2px solid var(--burgundy); transform: rotate(45deg); }
.it-day[open] .it-day-chev { transform: rotate(180deg); }
.it-day > .it-day-theme { margin: 0 20px 4px; }
.it-day > .session { margin: 0 20px; grid-template-columns: 178px 1fr; }
.it-day > .session.is-now { margin: 0 8px; }
@media (max-width: 560px) {
  .it-day > summary { grid-template-columns: minmax(0, 1fr) 28px; padding: 16px; }
  .it-day-count { grid-column: 1; grid-row: 2; }
  .it-day-chev { grid-column: 2; grid-row: 1 / span 2; }
  .it-day > .session, .it-day > .it-day-theme { margin-left: 16px; margin-right: 16px; }
  .it-day > .session { grid-template-columns: 1fr; }
}
@media print { .it-day { border: 0; box-shadow: none; border-radius: 0; } .it-day-chev, .it-day-count { display: none; } .it-day > summary { padding: 0; background: none; } }

/* Itinerary toolbar: one row, the PDF as the main action */
.it-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin: 0 0 22px; padding: 0 0 18px; border-bottom: 1px solid var(--hair); }
.it-tools-main { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.it-tools-side { display: flex; align-items: center; gap: 18px; }
.it-tool { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--hair-deep); border-radius: 999px; background: var(--parchment); color: var(--burgundy); font: 600 18px/1 var(--sans); text-decoration: none; cursor: pointer; list-style: none; transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.it-tool:hover { box-shadow: 0 4px 14px rgba(32, 31, 27, 0.1); color: var(--burgundy); }
.it-tool-primary { background: var(--burgundy); border-color: var(--burgundy); color: var(--parchment); }
.it-tool-primary:hover { color: var(--parchment); box-shadow: 0 6px 18px rgba(32, 31, 27, 0.2), 0 0 16px rgba(213, 163, 72, 0.35); }
.it-cal { position: relative; }
.it-cal > summary::-webkit-details-marker { display: none; }
.it-cal > summary::after { content: ''; width: 7px; height: 7px; margin-left: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.it-cal[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.it-cal-menu { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; min-width: 300px; padding: 8px; border: 1px solid var(--hair-deep); border-radius: 16px; background: var(--parchment); box-shadow: 0 16px 36px rgba(32, 31, 27, 0.16); display: grid; gap: 2px; }
.it-cal-menu button, .it-cal-menu a { display: block; width: 100%; padding: 12px 14px; border: 0; border-radius: 10px; background: none; text-align: left; font: 500 18px/1.3 var(--sans); color: var(--ink); text-decoration: none; cursor: pointer; }
.it-cal-menu button:hover, .it-cal-menu a:hover { background: var(--parchment-deep); color: var(--burgundy); }
.it-link { border: 0; background: none; padding: 6px 0; font: 600 17px/1 var(--sans); color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--hair-deep); text-underline-offset: 4px; cursor: pointer; }
.it-link:hover { color: var(--burgundy); text-decoration-color: var(--gold); }
@media (max-width: 560px) {
  .it-tools-main { width: 100%; }
  .it-tool { flex: 1 1 auto; justify-content: center; }
  .it-cal { flex: 1 1 auto; } .it-cal > summary { width: 100%; justify-content: center; }
  .it-tools-side { width: 100%; justify-content: space-between; }
}
