/* WhichDayWins: the front page and setup. Colors, sizes and spacing come from the approved design references. */
body.nw { margin: 0; background: #F6F8F4; color: #14213D; font-family: 'Atkinson Hyperlegible', Verdana, sans-serif; font-size: 19px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
.nw a { color: #14213D; }
.nw a:hover { color: #0B1326; }
.nw [hidden] { display: none !important; }
.nw input::placeholder, .nw textarea::placeholder { color: #5F6875; }

.nw-head { max-width: 1120px; width: 100%; margin: 0 auto; padding: 28px 24px; box-sizing: border-box; }
.nw-brand { font-family: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -0.01em; text-decoration: none; color: #14213D; }
.nw-brand span { color: #1B7F4B; }
.nw-name-day { color: #1B7F4B; }
.nw-foot { max-width: 1120px; width: 100%; margin: auto auto 0; padding: 28px 24px 36px; box-sizing: border-box; font-size: 16px; color: #3A4658; }
.nw main { flex: 1 0 auto; }

.nw-h1 { margin: 0; font-family: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif; font-weight: 800; font-size: clamp(38px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.02em; }
.nw-q { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; }
.nw-q:focus { outline: none; }
.nw-sub { margin: 0; font-size: clamp(21px, 2.2vw, 25px); font-weight: 700; line-height: 1.3; }
.nw-soft { margin: 0; color: #3A4658; }
.nw-small { margin: 0; font-size: 17px; color: #3A4658; }
.nw-big { margin: 0; font-size: 22px; }
.nw-bold { font-weight: 700; }
.nw-wrap { overflow-wrap: anywhere; }

.nw-btn { min-height: 60px; padding: 12px 40px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: #1B7F4B; color: #FFFFFF !important; font-family: inherit; font-size: 21px; font-weight: 700; text-decoration: none; cursor: pointer; }
.nw-btn:hover { background: #166B3F; }
.nw-btn:disabled { opacity: 0.6; cursor: default; }
.nw-btn-line { min-height: 44px; padding: 8px 16px; box-sizing: border-box; border: 2px solid #14213D; border-radius: 10px; background: #FFFFFF; color: #14213D; font-family: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.nw-link { min-height: 44px; padding: 10px 0; border: 0; background: transparent; color: #14213D; font-family: inherit; font-size: 19px; font-weight: 700; text-decoration: underline; cursor: pointer; display: inline-flex; align-items: center; }
.nw-link.nw-sm { font-size: 17px; padding: 8px 0; }
:focus-visible { outline: 3px solid #1B7F4B; outline-offset: 2px; }

/* Front page */
.nw-hero { max-width: 1120px; margin: 0 auto; padding: 32px 24px 72px; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.nw-hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.nw-hero-text .nw-soft { max-width: 520px; }
.nw-hero-text .nw-btn { margin-top: 8px; padding: 12px 32px; }
.nw-cal { flex: 1 1 400px; min-width: 0; max-width: 540px; margin: 0; background: #FFFFFF; border: 1px solid #D5DBD0; border-radius: 20px; padding: 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; }
.nw-cal-top { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: baseline; }
.nw-cal-title { font-weight: 700; font-size: 20px; }
.nw-cal-who { font-size: 14px; color: #3A4658; }
.nw-cal-group { font-size: 16px; color: #3A4658; }
.nw-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.nw-cal-dow { font-size: 14px; color: #3A4658; text-align: center; }
.nw-cal-days { font-size: 15px; font-weight: 700; }
.nw-day { aspect-ratio: 1 / 1; border-radius: 10px; padding: 6px; box-sizing: border-box; border: 1px solid #D5DBD0; display: flex; flex-direction: column; justify-content: space-between; }
.nw-day.off { background: #EEF1EB; border-color: #EEF1EB; color: #5F6875; font-weight: 400; }
.nw-day.win { background: #1B7F4B; border-color: #1B7F4B; color: #FFFFFF; }
.nw-day { position: relative; }
.nw-day.bday { border: 2px solid #14213D; }
.nw-star { position: absolute; top: 3px; right: 5px; font-size: 16px; line-height: 1; color: #E0A100; }
.nw-dots { display: flex; flex-wrap: wrap; gap: 3px; }
.nw-dots i { width: 8px; height: 8px; border-radius: 50%; background: #14213D; }
.nw-day.win .nw-dots i { background: #FFFFFF; }
.nw-cal figcaption { display: flex; flex-direction: column; gap: 4px; }
.nw-cal-lead { font-weight: 700; }
.nw-cal-note { font-size: 16px; color: #3A4658; }
.nw-steps { background: #FFFFFF; border-top: 1px solid #D5DBD0; }
.nw-steps-in { max-width: 1120px; margin: 0 auto; padding: 16px 24px 18px; box-sizing: border-box; display: flex; flex-wrap: nowrap; gap: 24px; }
.nw-stepcard { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: row; align-items: center; gap: 12px; font-size: 17px; }
.nw-stepcard h2 { margin: 0; font-family: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif; font-weight: 600; font-size: 19px; line-height: 1.2; white-space: nowrap; }
.nw-stepcard p { margin: 0; color: #3A4658; }
.nw-num { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: #1B7F4B; color: #FFFFFF; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; }

/* Setup */
.nw-main { box-sizing: border-box; width: 100%; margin: 0 auto; }
.nw-narrow { max-width: 640px; padding: 32px 24px 80px; }
#stage { transition: opacity 260ms ease; opacity: 1; }
#stage.fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) { #stage { transition: none; } }
.nw-step { display: flex; flex-direction: column; gap: 22px; }
.nw-main > .nw-h1, .nw-narrow > .nw-big, .nw-narrow > .nw-soft { margin-bottom: 22px; }
.nw-step[data-step="2"] { gap: 14px; }
.nw-step[data-step="2"] > .nw-soft { margin-bottom: 8px; }
.nw-step[data-step="2"] > .nw-field { margin-bottom: 8px; }
.nw-soft + .nw-bold { margin-top: -12px; }
.nw-progress { display: flex; flex-direction: column; gap: 10px; }
.nw-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.nw-bars div { height: 6px; border-radius: 3px; background: #D5DBD0; }
.nw-bars div.on { background: #1B7F4B; }
.nw-step > .nw-q { margin-top: 12px; }
.nw-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 240px; min-width: 0; }
.nw-step > .nw-field { flex: 0 0 auto; }   /* stacked in a column: only as tall as its contents */
.nw-label { font-weight: 700; }
.nw-sublabel { font-size: 16px; }
.nw-input { width: 100%; box-sizing: border-box; min-height: 64px; padding: 12px 18px; border: 2px solid #14213D; border-radius: 12px; background: #FFFFFF; color: #14213D; font-family: inherit; font-size: 22px; }
.nw-input.nw-date, .nw-select { font-size: 20px; }
.nw-input-sm { min-height: 44px; padding: 6px 12px; border-radius: 10px; font-size: 18px; }
.nw-area { font-size: 20px; line-height: 1.5; padding: 14px 18px; }
.nw-area.nw-input-sm { padding: 12px 14px; }
.nw-input[aria-invalid="true"] { border-color: #B3261E; }
.nw-err { margin: 0; color: #B3261E; font-weight: 700; font-size: 18px; }
.nw-two { display: flex; flex-wrap: wrap; gap: 16px; }
.nw-two-sm { gap: 12px; }
.nw-quick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nw-quick .nw-btn-line { min-height: 38px; padding: 4px 12px; font-size: 15px; border-radius: 8px; }
.nw-nav { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.nw-more { border-top: 1px solid #D5DBD0; border-bottom: 1px solid #D5DBD0; }
.nw-more summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
.nw-more-in { padding: 4px 0 20px; display: flex; flex-direction: column; gap: 22px; }
.nw-fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nw-fieldset legend { padding: 0; font-weight: 700; }
.nw-checks { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.nw-check { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.nw-check input { width: 22px; height: 22px; flex: none; accent-color: #1B7F4B; }
.nw-checks-big { flex-direction: column; gap: 4px; }
.nw-check-big { gap: 12px; min-height: 48px; }
.nw-check-big input { width: 24px; height: 24px; }
.nw-honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.nw-review { background: #FFFFFF; border: 1px solid #D5DBD0; border-radius: 16px; padding: 4px 22px; display: flex; flex-direction: column; }
.nw-row { padding: 16px 0; display: flex; gap: 8px 16px; align-items: center; justify-content: space-between; }
.nw-row + .nw-row { border-top: 1px solid #D5DBD0; }
.nw-row > div { flex: 1 1 auto; min-width: 0; }
.nw-row [data-fill="extra"] { font-size: 17px; color: #3A4658; }

/* Check your email */
.nw-again { padding-top: 18px; margin-top: 22px; border-top: 1px solid #D5DBD0; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.nw-narrow > form + form { margin-top: 4px; }
.nw-narrow > .nw-big, .nw-narrow > .nw-soft, .nw-narrow > .nw-note { margin-top: 22px; }
.nw-note { padding: 14px 18px; border: 1px solid #D5DBD0; border-radius: 12px; background: #FFFFFF; }
.nw-note p { margin: 0 0 8px; }
.nw-note p:last-child { margin: 0; }

/* Event webpage (the planner's own page) */
.nw-page { max-width: 820px; width: 100%; margin: 0 auto; padding: 16px 24px 72px; box-sizing: border-box; display: flex; flex-direction: column; gap: 32px; }
.nw-page-narrow { max-width: 640px; padding-top: 32px; padding-bottom: 80px; gap: 24px; }
.nw-top { display: flex; flex-direction: column; gap: 6px; }
.nw-top .nw-h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; }
.nw-tag { font-size: 16px; font-weight: 700; color: #3A4658; }
.nw-top p { margin: 0; color: #3A4658; }
.nw-h2 { margin: 0; font-family: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif; font-weight: 800; font-size: 30px; line-height: 1.15; }
.nw-h3 { margin: 0; font-family: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif; font-weight: 600; font-size: 24px; line-height: 1.2; }
.nw-card { background: #FFFFFF; border: 1px solid #D5DBD0; border-radius: 20px; padding: 28px; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.nw-card p { margin: 0; }
.nw-card-wide { align-items: stretch; gap: 22px; }
.nw-card-small { border-radius: 16px; padding: 24px; gap: 12px; align-items: stretch; }
.nw-cols { display: flex; flex-wrap: wrap; gap: 28px; }
.nw-col { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.nw-col p { margin: 0; }
.nw-rule { padding-top: 20px; border-top: 1px solid #D5DBD0; margin: 0; }
.nw-rank { margin: 0; padding-left: 26px; display: flex; flex-direction: column; gap: 4px; }
.nw-section { display: flex; flex-direction: column; gap: 10px; }
.nw-section > p { margin: 0; color: #3A4658; }
.nw-split { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.nw-split > div { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nw-split p { margin: 0; color: #3A4658; }
.nw-btn.nw-b64 { min-height: 64px; padding: 14px 32px; }
.nw-btn.nw-b56 { min-height: 56px; padding: 12px 28px; font-size: 19px; }
.nw-btn.nw-b52 { min-height: 52px; padding: 10px 24px; font-size: 19px; }
.nw-btn-line.nw-danger { border-color: #A3271B; color: #A3271B; }
.nw-list { display: flex; flex-direction: column; }
.nw-li { padding: 12px 0; border-top: 1px solid #D5DBD0; }
.nw-li:last-child { border-bottom: 1px solid #D5DBD0; }
.nw-email { color: #3A4658; margin-left: 10px; overflow-wrap: anywhere; }
.nw-fold { border-top: 1px solid #D5DBD0; }
.nw-folds > .nw-fold:last-child, .nw-list > .nw-fold:last-child { border-bottom: 1px solid #D5DBD0; }
.nw-fold > summary { cursor: pointer; padding: 14px 0; }
.nw-fold > summary.nw-bold { font-weight: 700; }
.nw-fold-in { padding: 0 0 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.nw-fold-in p { margin: 0; }
.nw-fold-row { padding: 0 0 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.nw-fold-row form { margin: 0; }
.nw-form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; width: 100%; }
.nw-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.nw-ok { color: #1B7F4B; font-weight: 700; margin-left: 10px; }
.nw-muted { color: #3A4658; margin-left: 10px; }
.nw-flash { padding: 14px 18px; border: 2px solid #1B7F4B; border-radius: 12px; background: #FFFFFF; font-weight: 700; }
.nw-flash.nw-bad { border-color: #B3261E; color: #B3261E; }
.nw-prev { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; padding: 10px 0; border-top: 1px solid #D5DBD0; width: 100%; box-sizing: border-box; }
.nw-prev .nw-field { flex: 1 1 200px; }
.nw-steps-list { margin: 0; padding-left: 28px; display: flex; flex-direction: column; gap: 10px; }
.nw-linkrow { display: flex; flex-direction: column; gap: 4px; }
.nw-linkrow a { font-weight: 700; padding: 10px 0; }
.nw-copybox { padding: 9px 14px; border: 1px solid #D5DBD0; border-radius: 10px; background: #FFFFFF; font-size: 17px; overflow-wrap: anywhere; }
.nw-choices { display: flex; flex-direction: column; gap: 4px; }
.nw-p { margin: 0; }
.nw-center { align-items: center; }
.nw-hv { font-weight: 700; margin-left: 10px; }
.nw-li-row { padding: 14px 0; }
.nw-rowline { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.nw-rowline form { margin: 0; }
.nw-list > .nw-fold:last-child { border-bottom: 1px solid #D5DBD0; }

/* Questions link and popup */
.nw-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.nw .qlink { min-height: 44px; padding: 10px 0; border: 0; background: transparent; color: #14213D; font-family: inherit; font-size: 18px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.nw-have-q { flex: 1 1 100%; margin: 0; font-size: 17px; }
.nw .qdialog { border: 0; border-radius: 20px; padding: 24px; box-sizing: border-box; width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; background: #FFFFFF; color: #14213D; font-family: inherit; font-size: 19px; line-height: 1.5; box-shadow: 0 12px 40px rgba(20, 33, 61, 0.35); }
.nw .qdialog::backdrop { background: rgba(20, 33, 61, 0.55); }
.nw .qd-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.nw .qd-head h2 { margin: 0; font-family: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif; font-weight: 800; font-size: 30px; line-height: 1.15; }
.nw .qd-close { min-height: 44px; padding: 8px 16px; box-sizing: border-box; border: 2px solid #14213D; border-radius: 10px; background: #FFFFFF; color: #14213D; font-family: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.nw .qd-item { border-top: 1px solid #D5DBD0; }
.nw .qd-item:last-child { border-bottom: 1px solid #D5DBD0; }
.nw .qd-item summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
.nw .qd-item p { margin: 0 0 16px; }
.nw .qd-empty { margin: 0; color: #3A4658; }

/* Feedback link and popup */
.nw .qpair { white-space: nowrap; font-size: 18px; font-weight: 700; line-height: 1.5; }
.nw .fb-form { display: flex; flex-direction: column; gap: 10px; }
.nw .fb-intro { margin: 0 0 6px; }
.nw .fb-label { font-weight: 700; margin-top: 6px; }
.nw .fb-input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 2px solid #14213D; border-radius: 10px; background: #FFFFFF; color: #14213D; font-family: inherit; font-size: 18px; }
.nw textarea.fb-input { line-height: 1.5; resize: vertical; }
.nw .fb-hint { margin: -4px 0 0; font-size: 17px; color: #3A4658; }
.nw .fb-err { margin: 0; color: #B3261E; font-weight: 700; font-size: 18px; }
.nw .fb-send { min-height: 52px; padding: 10px 24px; border: 0; border-radius: 12px; background: #1B7F4B; color: #FFFFFF; font-family: inherit; font-size: 19px; font-weight: 700; cursor: pointer; }
.nw .fb-send:hover { background: #166B3F; }
.nw .fb-send:disabled { opacity: 0.6; cursor: default; }
.nw .fb-thanks { margin: 0; font-weight: 700; font-size: 22px; }
.nw .fb-thanks:focus { outline: none; }
.fb-honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Single dates left out (setup step 3) */
.nw-leave-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
.nw-leave-list li { display: flex; align-items: center; gap: 14px; min-height: 44px; font-weight: 700; }

/* ======================================================================
   The personal voting page (brief 17). Same fonts, colors and background as the front page and setup.
   Every rule is scoped to .ev (the page) or dialog.comments, so nothing else is touched. The days use green (can come), gold (Most) and amber (Least).
   ====================================================================== */
.ev, dialog.comments {
  --ink: #14213D; --muted: #3A4658; --line: #D5DBD0; --control-line: #5F6875; --ground: #EEF1EB; --card: #FFFFFF;
  --green: #0F6B35; --green-text: #0B5A2B; --blue: #2462E0; --amber: #B45309; --amber-text: #8A3F00;
  --heat-0: #EEF1EB; --heat-1: #DDEFE3; --heat-2: #C3E5CF; --heat-3: #A5D8B6; --heat-4: #82C99B;
  --gold: #E8AE0C; --gold-ink: #4A3500; --can: #1B7F4B; --purple: #7C3AED;
  --warn-bg: #FFF4D6; --warn-line: #B8922B; --error-bg: #FDECEC; --error-line: #B3261E;
}
.ev { max-width: 1240px; width: 100%; margin: 0 auto; padding: 8px 24px 56px; box-sizing: border-box; display: flex; flex-direction: column; gap: 22px; }
.ev * { box-sizing: border-box; }
.ev h1 { margin: 0; font-family: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif; font-weight: 800; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.02em; }
.ev h2, dialog.comments h2 { margin: 0; font-family: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif; font-weight: 600; font-size: 24px; line-height: 1.2; }
.ev p, .ev ul { margin: 0; }
.ev .muted { color: var(--muted); }
.ev .lede { font-size: 19px; color: var(--muted); max-width: 760px; margin-top: 10px; }
.ev .lede p + p { margin-top: 10px; }
.ev .facts { list-style: none; padding: 0; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.ev .card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.ev .eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ev .eyebrow small { font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; }

.ev .btn, dialog.comments .btn { min-height: 52px; padding: 0 22px; border-radius: 12px; border: 2px solid var(--ink); background: #FFFFFF; color: var(--ink); font-family: inherit; font-size: 18px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
.ev .btn.solid, .ev .btn[aria-pressed="true"], dialog.comments .btn.solid, dialog.comments .btn[aria-pressed="true"] { background: #1B7F4B; border-color: #1B7F4B; color: #FFFFFF; }
.ev .btn.solid:hover { background: #166B3F; }
dialog.comments .btn.small { min-height: 44px; padding: 0 14px; font-size: 16px; }
dialog.comments .btn.small.close { border-color: var(--ink); background: #FFFFFF; color: var(--ink); }

.ev .ask { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.ev .ask-btns { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 8px; }
.ev .ask-label { font-size: 21px; font-weight: 700; }
.ev .status { display: flex; flex-wrap: wrap; gap: 18px 40px; }
.ev .status > div { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ev .status > div.wide { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; font-size: 17px; }
.ev .status .big { font-size: 24px; font-weight: 700; line-height: 1.25; }
.ev .status .big.lead { color: var(--green-text); }
.ev .status .big small, .ev .muted small { font-size: 15px; font-weight: 400; color: var(--muted); }
.ev .pick { display: flex; align-items: center; gap: 8px; }
.ev .swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.ev .swatch.r1 { background: var(--can); }
.ev .swatch.r2 { background: var(--gold); }
.ev .swatch.r3 { background: var(--amber); }
.ev .status-note { margin-left: auto; font-size: 15px; }   /* right end of the Your days / Most / Least row; wraps under it on phones */
@media (max-width: 600px) { .ev .status-note { margin-left: 0; } }
.ev .notice { background: var(--warn-bg); border-radius: 12px; box-shadow: 0 0 0 1px var(--warn-line); padding: 14px 18px; overflow-wrap: anywhere; }
.ev .errors { background: var(--error-bg); border-radius: 12px; box-shadow: 0 0 0 1px var(--error-line); padding: 14px 18px; font-weight: 700; color: var(--error-line); }
.ev .result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; border: 3px solid #1B7F4B; }
.ev .result .eyebrow { color: #1B7F4B; }
.ev .result-date { font-family: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif; font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }

.ev .cal { display: flex; flex-direction: column; gap: 12px; }
.ev .cal-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.ev .help { font-size: 17px; color: var(--muted); }
.ev .nudge { font-size: 19px; color: var(--green-text); margin: 2px 0 6px; }
.ev .weekdays { display: none; }
.ev .days { display: flex; flex-direction: column; gap: 8px; }
.ev .week-label { font-size: 17px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.ev .week-label:first-child { margin-top: 0; }
.ev .day { background: var(--card); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-wrap: wrap; align-items: stretch; overflow: hidden; min-width: 0; }
.ev .day.mine { border: 2px solid var(--can); }
.ev .day.mine.mine-most { border-color: var(--gold); }
.ev .day.mine.mine-least { border-color: var(--amber); }
.ev .day.final { box-shadow: 0 0 0 4px #1B7F4B; }
.ev .day.blank { display: none; }
.ev .day-head { width: 72px; flex: none; background: var(--heat-0); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 4px; }
.ev .day.heat-1 .day-head { background: var(--heat-1); }
.ev .day.heat-2 .day-head { background: var(--heat-2); }
.ev .day.heat-3 .day-head { background: var(--heat-3); }
.ev .day.heat-4 .day-head { background: var(--heat-4); }
.ev .dow { font-size: 15px; font-weight: 700; }
.ev .num { font-family: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif; font-size: 24px; font-weight: 600; line-height: 1; }
.ev .tag { background: var(--can); color: #FFFFFF; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.ev .day-votes { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.ev .total { min-height: 22px; font-size: 15px; color: var(--muted); }
.ev .total .points { font-family: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif; font-size: 22px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.ev .total .split { font-size: 13px; }
.ev .can-btn { min-height: 44px; border-radius: 10px; border: 2px solid var(--can); background: #FFFFFF; color: var(--green); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.ev .can-btn.on { background: var(--can); color: #FFFFFF; }
.ev .can-btn:disabled { border-color: var(--line); color: #8A929C; background: var(--ground); cursor: not-allowed; }
.ev .prefs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ev .pref { min-height: 36px; border-radius: 8px; border: 2px solid var(--blue); background: #FFFFFF; color: var(--blue); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 0 4px; }
.ev .pref.most.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.ev .pref.least.on { background: var(--amber); border-color: var(--amber); color: #FFFFFF; }
.ev .can-btn:focus-visible, .ev .pref:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.ev .pop { animation: pop 0.35s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ev .pop { animation: none; } }
.ev .day.off { background: var(--ground); }
.ev .day.off .day-head { background: transparent; color: var(--muted); }
.ev .off-text { flex: 1; display: flex; align-items: center; padding: 6px 12px; color: var(--muted); font-size: 17px; }
.ev .day-note { flex: 1 0 100%; padding: 6px 12px 8px; font-size: 15px; font-weight: 700; border-top: 1px solid var(--line); }

.ev .lower { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.ev .lower > .card { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ev .people { list-style: none; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.ev .people li { display: flex; justify-content: space-between; gap: 12px; }

dialog.comments { border: 0; border-radius: 16px; padding: 22px; width: min(680px, calc(100vw - 32px)); max-height: min(660px, calc(100vh - 32px)); overflow-y: auto; background: #FFFFFF; color: var(--ink); font-family: 'Atkinson Hyperlegible', Verdana, sans-serif; font-size: 18px; box-shadow: 0 12px 40px rgba(20, 33, 61, 0.35); }
dialog.comments * { box-sizing: border-box; }
dialog.comments[open] { display: flex; flex-direction: column; gap: 14px; }
dialog.comments::backdrop { background: rgba(20, 33, 61, 0.55); }
dialog.comments .comments-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
dialog.comments .comments-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
dialog.comments .comment-list { display: flex; flex-direction: column; gap: 14px; }
dialog.comments .comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
dialog.comments .comment-name { font-size: 17px; font-weight: 700; }
dialog.comments .comment-when { font-size: 15px; color: var(--muted); }
dialog.comments .comment-actions { display: inline-flex; align-items: baseline; gap: 4px 10px; font-size: 15px; }
dialog.comments .comment-confirm { font-weight: 700; }
dialog.comments .link-btn { background: none; border: 0; padding: 8px 2px; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
dialog.comments .link-btn.danger { color: var(--error-line); font-weight: 700; }
dialog.comments .comment-body { white-space: pre-wrap; overflow-wrap: anywhere; }
dialog.comments .comment-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
dialog.comments .comment-form label { font-size: 17px; font-weight: 700; }
dialog.comments .field-error { margin: 0; color: var(--error-line); font-weight: 700; }
dialog.comments .comment-form textarea { width: 100%; border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px; font-family: inherit; font-size: 18px; color: var(--ink); background: #FFFFFF; resize: vertical; }
dialog.comments .muted { color: var(--muted); margin: 0; }

.nw-who { flex: 1 1 auto; text-align: center; margin-top: 6px; font-size: 17px; color: #3A4658; }   /* voting page: centered between the logo and the links */
.nw-head ~ main.ev { margin-top: -20px; }   /* voting page: less space between the header and the event name */
.nw-head:has(~ main.ev) { row-gap: 2px; padding-bottom: 22px; }   /* voting page: less space above and below Questions / Feedback */
.ev .ev-titlerow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }   /* voting page: "Planned with NAME" beside the event name */
.ev .ev-who { margin: 12px 0 6px; font-size: 19px; color: #3A4658; }   /* "Mary – Your Personal Voting Page" right under the event name */
.ev .ev-planner { font-size: 19px; color: var(--muted); white-space: pre-wrap; }

/* Small line icons (brief 18): the size of a capital letter, in the text color */
.ic { width: 0.95em; height: 0.95em; vertical-align: -0.1em; margin-right: 0.35em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

@media (min-width: 761px) {
  .ev .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
  .ev .weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  .ev .weekdays div { padding: 0 10px; }
  .ev .week-label { display: none; }
  .ev .day { flex-direction: column; flex-wrap: nowrap; }
  .ev .day.blank { display: block; visibility: hidden; border: 0; }
  .ev .day-head { width: auto; flex-direction: row; justify-content: space-between; padding: 8px 10px; }
  .ev .dow { display: none; }
  .ev .off-text { justify-content: center; padding: 16px 8px; }
  .ev .day-note { flex: none; margin-top: auto; }
}
@media (max-width: 600px) { .ev { padding-inline: 16px; } }
@media (prefers-reduced-motion: no-preference) {
  .ev .total .points.changed { display: inline-block; animation: tick 0.5s ease-out; }
  @keyframes tick { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }
}

.nw-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

/* Voting page "Let's get voting!" bullet list (Chebba, Oct 13) */
.ev .ev-howto-head { color: var(--ink, #1A2433); font-weight: 700; margin-top: 22px; }
.ev .ev-howto { list-style: disc; margin: 8px 0 0; padding-left: 1.4em; }
.ev .ev-howto li { padding-left: 4px; }
.ev .ev-howto li + li { margin-top: 4px; }
.ev .chip { display: inline-block; padding: 0 8px; border-radius: 6px; font-size: 15px; font-weight: 700; line-height: 1.6; }
.ev .chip.most { background: var(--gold); color: var(--gold-ink); }
.ev .chip.least { background: var(--amber); color: #FFFFFF; }

/* Small overview calendar in the "Are you coming?" box (Chebba, Oct 13) */
.ev .mini-cal { margin-left: auto; display: flex; gap: 16px; }
.ev .mc-title { font-size: 13px; font-weight: 700; text-align: center; color: var(--ink); margin-bottom: 2px; }
.ev .mc-grid { display: grid; grid-template-columns: repeat(7, 22px); grid-auto-rows: 20px; }
.ev .mc-dow, .ev .mc-day { display: flex; align-items: center; justify-content: center; box-sizing: border-box; font-size: 11px; color: var(--muted); }
.ev .mc-dow { font-weight: 700; font-size: 10px; }
.ev .mc-day.in { background: #F1EAFB; color: var(--ink); font-weight: 700; }
.ev .mc-day.off { background: #E3E6EA; color: #8A929C; font-weight: 400; text-decoration: line-through; }
.ev .mc-day.bt { border-top: 2px solid #7C3AED; }
.ev .mc-day.bb { border-bottom: 2px solid #7C3AED; }
.ev .mc-day.bl { border-left: 2px solid #7C3AED; }
.ev .mc-day.br { border-right: 2px solid #7C3AED; }
.ev .mc-day.sp { position: relative; color: var(--ink); font-weight: 700; }
.ev .mc-day.sp::after { content: "\2605"; position: absolute; top: -2px; right: -2px; font-size: 9px; line-height: 1; color: #D97706; }
/* When the small calendar drops below the buttons (phones, sideways phones, small tablets) it sits on the left. */
@media (max-width: 984px) { .ev .mini-cal { margin-left: 0; } }
/* Phones: "Are you coming?" on its own line, the two buttons side by side under it (Chebba, Oct 13) */
@media (max-width: 600px) {
  .ev .ask { gap: 12px 8px; }
  .ev .ask-label { flex-basis: 100%; }
  .ev .ask-btns { flex-wrap: nowrap; gap: 8px; }
  .ev .ask .btn { flex: 1 1 auto; padding: 0 8px; font-size: 15px; }
  .ev .ask .mini-cal { flex-basis: 100%; gap: 10px; }
  .ev .mc-month { flex: 1 1 0; min-width: 0; }
  .ev .mc-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

/* Answer box now comes before the bullets; hint under "Are you coming?" (Chebba, Oct 13) */
.ev .ask-q { display: flex; flex-direction: column; gap: 4px; }
.ev .ask-hint { font-size: 15px; color: var(--muted); }
.ev .ask-label + .ask-hint { margin-top: 2px; }
.ev .ask-hint + .ask-hint { margin-top: -4px; }
.ev > .lede { margin-top: 0; }
.ev > .lede .ev-howto-head { margin-top: 0; }
@media (max-width: 600px) { .ev .ask-q { flex-basis: 100%; } }

/* Front page only (Chebba, Oct 14): tighter header and hero, slim steps strip, question link inside the small line. */
.nw-head:has(+ main > .nw-hero) { padding: 24px 24px 12px; }
.nw-hero { padding-top: 4px; padding-bottom: 28px; }
.nw-small .nw-link { display: inline; min-height: 0; padding: 0; font-size: inherit; line-height: inherit; }
@media (max-width: 900px) { .nw-steps-in { flex-direction: column; flex-wrap: wrap; gap: 12px; } }
@media (max-width: 480px) { .nw-stepcard h2 { font-size: 17px; } }

/* Birthday group member list */
.gm-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr) 80px; gap: 8px; align-items: center; margin-bottom: 8px; }
.gm-remove { grid-column: 1 / -1; font-size: 14px; }
@media (max-width: 640px) { .gm-row { grid-template-columns: 1fr 1fr; } .gm-row input[type="email"] { grid-column: 1 / -1; } }

/* Group setup page: spacing, "I'm in the group too", centered button */
.nw-setup { padding-top: 4px; }
.nw-setup .nw-q { margin-bottom: 28px; }
.nw-setup #list-form > .nw-soft { margin-bottom: 14px; }
.gm-self { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.gm-self-bday { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gm-self-bday .nw-select { width: 140px; }
.nw-setup .nw-nav { display: grid; grid-template-columns: 1fr auto 1fr; }
.nw-setup .nw-nav .nw-link { justify-self: start; }
@media (max-width: 520px) { .nw-setup .nw-nav { grid-template-columns: 1fr; justify-items: center; } .nw-setup .nw-nav .nw-link { order: 2; justify-self: start; } }

/* Small layout touches (Oct 17). Kept here because the site's security rules block style="" on the pages. */
.bd-days { margin-top: 21px; }                    /* Pat's page: space above "Days you can't come" */
.bd-info { margin-top: 20px; }                  /* "Changes will show up on the Voting page."*/
.bd-nav { justify-content: center; }              /* Pat's page: centered Save button */
.gd-note { margin-top: -8px; }                    /* group dashboard: "New members join..." closer to the line above */
.rs-form { display: flex; flex-direction: column; gap: 22px; width: 100%; }   /* lunch dashboard: the reservation form */
.rs-form .nw-field { flex: 0 0 auto; }
.rs-form .nw-btn { align-self: center; margin-top: 4px; }
.rs-top { margin-top: 18px; }                     /* lunch dashboard: "Top days" under the button */

/* Birthday page: tappable calendar (Oct 19). */
.bd-info { text-align: left; }                    /* "Changes will show up on the Voting page." */
.bd-nav { margin-bottom: 20px; }                  /* space under the Save button */
.bd-back { font-size: 19px; }                     /* "You can come back to this page..." */
.bd-cb { display: none; }                         /* the real checkboxes: hidden, the calendar toggles them */
.bd-cal { background: #FFFFFF; border: 1px solid #DDE4DA; border-radius: 12px; padding: 12px 10px; }
.bd-cal-head, .bd-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 44px)); gap: 4px; justify-content: center; }
.bd-cal-head span { text-align: center; font-size: 15px; font-weight: 700; color: #3A4658; padding-bottom: 4px; }
.bd-day { position: relative; box-sizing: border-box; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: inherit; font-size: 17px; line-height: 1; color: #6B7686; background: transparent; }
.bd-mon { font-size: 11px; font-weight: 700; line-height: 1; margin-bottom: 1px; }
.bd-num { font-size: 17px; line-height: 1; }
button.bd-day { background: #DCCBF7; color: #14213D; font-weight: 700; cursor: pointer; }
button.bd-day:focus-visible { outline: 3px solid #14213D; outline-offset: 1px; }
button.bd-day.bd-bday { background: #1B7F4B; color: #FFFFFF; }
button.bd-day[aria-pressed="true"] { background: #E3E6EA; color: #6B7686; font-weight: 400; }
button.bd-day[aria-pressed="true"] .bd-num { text-decoration: line-through; }
.bd-sun { background: #E3E6EA; color: #6B7686; }
.bd-sun .bd-num { text-decoration: line-through; }
.bd-sun.bd-bday { background: #E3E6EA; }
.bd-star { position: absolute; top: 2px; right: 4px; font-size: 11px; line-height: 1; color: #F2B705; }
.bd-cal-key { margin: 10px 0 0; text-align: center; font-size: 15px; color: #3A4658; }
.bd-star-key { color: #D9A400; }

/* Birthday page: Close button, "All set" screen, "Leave without saving?" box. */
.bd-close-wrap { display: flex; justify-content: center; margin-top: 18px; }
.bd-close { width: 260px; max-width: 100%; min-height: 48px; font-size: 19px; }
.bd-done { text-align: center; padding: 32px 8px; font-size: 19px; }
.bd-done[hidden], .bd-modal[hidden] { display: none; }
.bd-done-title { margin: 0 0 8px; font-size: 26px; font-weight: 700; color: #1B7F4B; }
.bd-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 33, 61, 0.55); }
.bd-modal-box { width: 100%; max-width: 340px; box-sizing: border-box; padding: 24px 20px; border-radius: 14px; background: #FFFFFF; text-align: center; }
.bd-modal-q { margin: 0 0 18px; font-size: 21px; font-weight: 700; color: #14213D; }
.bd-modal-btns { display: flex; gap: 12px; justify-content: center; }
.bd-modal-btns .nw-btn, .bd-modal-btns .nw-btn-line { flex: 1; min-height: 52px; padding: 8px 12px; font-size: 19px; }
.bd-closed > h1, .bd-closed > .nw-soft { display: none; }

/* Front page, one centred column (Oct 21): steps under the button, the members' promise, then Questions. */
.nw-hero-one { max-width: 760px; }
.nw-hero-one .nw-hero-text .nw-soft { max-width: none; }
.nw-hero-text .nw-steps-in { margin: 0; padding: 4px 0 0; flex-direction: column; gap: 10px; }
.nw-promise { margin: -8px 0 0; font-size: 15px; font-weight: 700; line-height: 1.5; color: #14213D; }
body:has(.nw-hero-one) .nw-head, body:has(.nw-hero-one) .nw-foot { max-width: 760px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
