:root {
  color-scheme: light dark;
  --ink: #1f2d2b;
  --muted: #5d6966;
  --accent: #1f7a6d;
  --accent-text: #1a6b5f;
  --on-accent: #fff;
  --focus: #1f7a6d;
  --soft: #e1f1ec;
  --paper: #fbf8f1;
  --surface: #fff;
  --surface-2: #f4f0e8;
  --surface-3: #fff;
  --line: #e7e1d6;
  --line-strong: #d6cfc2;
  --field-border: #d6d0c4;
  --field-bg: #fff;
  --yes-bg: #d8f0e8;
  --yes-ink: #13604f;
  --maybe-bg: #fdefc7;
  --maybe-ink: #7a5200;
  --no-bg: #f8e3de;
  --no-ink: #9a3d2a;
  --none-bg: #efebe4;
  --none-ink: #6f7673;
  --notice-bg: #e6f3ef;
  --notice-border: #c9e4dc;
  --notice-ink: #1d5a4f;
  --warm-bg: #fff4e2;
  --warm-border: #f1dcb5;
  --warm-ink: #7a4f12;
  --danger-bg: #fbe6e1;
  --danger-ink: #a23a26;
  --header-bg: #e4f2ec;
  --header-ink: #35514b;
  --header-ring: #ffffff8c;
  --banner-from: #17665b;
  --banner-to: #23806f;
  --best-bg: #fff7de;
  --best-ring: #f0bf45;
  --best-glow: #f0bf4559;
  --bubble-bg: #fff;
  --bubble-shadow: #0f3d3629;
  --cta-bg: #e9e6f7;
  --chip-bg: #efe9df;
  --day-hover: #e1f1ec;
  --page-glow: #d3ece3;
  --toast-bg: #1f2d2b;
  --toast-ink: #fff;
  --skeleton: #eee8de;
  --skeleton-shine: #f9f6f0;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%235d6966' stroke-width='2'/%3E%3C/svg%3E");
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --radius: 24px;
}
/* Dark theme: applies when chosen with the switch, or follows the system otherwise. */
:root[data-theme='dark'] {
  color-scheme: dark;
  --ink: #ecf3f1;
  --muted: #a3b3af;
  --accent-text: #6fd6c3;
  --focus: #6fd6c3;
  --soft: #1d3532;
  --paper: #121a19;
  --surface: #1a2422;
  --surface-2: #212d2b;
  --surface-3: #2b3936;
  --line: #2b3936;
  --line-strong: #3b4b48;
  --field-border: #3b4b48;
  --field-bg: #0e1514;
  --yes-bg: #173f37;
  --yes-ink: #86e0cc;
  --maybe-bg: #3d3218;
  --maybe-ink: #f4cf75;
  --no-bg: #3d2522;
  --no-ink: #f2a492;
  --none-bg: #26302e;
  --none-ink: #8c9a97;
  --notice-bg: #173430;
  --notice-border: #24504a;
  --notice-ink: #8fdcca;
  --warm-bg: #33291a;
  --warm-border: #4d3d22;
  --warm-ink: #f1cf8f;
  --danger-bg: #3a2320;
  --danger-ink: #ff9c88;
  --header-bg: #172d2a;
  --header-ink: #b9d3cd;
  --header-ring: #ffffff12;
  --banner-from: #135047;
  --banner-to: #1f7a6d;
  --best-bg: #2c2817;
  --best-ring: #d9a93f;
  --best-glow: #d9a93f40;
  --bubble-bg: #23312f;
  --bubble-shadow: #00000066;
  --cta-bg: #182a33;
  --chip-bg: #212d2b;
  --day-hover: #1d3532;
  --page-glow: #163a34;
  --toast-bg: #ecf3f1;
  --toast-ink: #121a19;
  --skeleton: #1f2a28;
  --skeleton-shine: #2a3735;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23a3b3af' stroke-width='2'/%3E%3C/svg%3E");
}
:root[data-theme='dark'] .art-light {
  display: none;
}
:root[data-theme='dark'] .art-dark {
  display: block;
}
:root[data-theme='light'] {
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #ecf3f1;
    --muted: #a3b3af;
    --accent-text: #6fd6c3;
    --focus: #6fd6c3;
    --soft: #1d3532;
    --paper: #121a19;
    --surface: #1a2422;
    --surface-2: #212d2b;
    --surface-3: #2b3936;
    --line: #2b3936;
    --line-strong: #3b4b48;
    --field-border: #3b4b48;
    --field-bg: #0e1514;
    --yes-bg: #173f37;
    --yes-ink: #86e0cc;
    --maybe-bg: #3d3218;
    --maybe-ink: #f4cf75;
    --no-bg: #3d2522;
    --no-ink: #f2a492;
    --none-bg: #26302e;
    --none-ink: #8c9a97;
    --notice-bg: #173430;
    --notice-border: #24504a;
    --notice-ink: #8fdcca;
    --warm-bg: #33291a;
    --warm-border: #4d3d22;
    --warm-ink: #f1cf8f;
    --danger-bg: #3a2320;
    --danger-ink: #ff9c88;
    --header-bg: #172d2a;
    --header-ink: #b9d3cd;
    --header-ring: #ffffff12;
    --banner-from: #135047;
    --banner-to: #1f7a6d;
    --best-bg: #2c2817;
    --best-ring: #d9a93f;
    --best-glow: #d9a93f40;
    --bubble-bg: #23312f;
    --bubble-shadow: #00000066;
    --cta-bg: #182a33;
    --chip-bg: #212d2b;
    --day-hover: #1d3532;
    --page-glow: #163a34;
    --toast-bg: #ecf3f1;
    --toast-ink: #121a19;
    --skeleton: #1f2a28;
    --skeleton-shine: #2a3735;
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23a3b3af' stroke-width='2'/%3E%3C/svg%3E");
  }
  :root:not([data-theme='light']) .art-light {
    display: none;
  }
  :root:not([data-theme='light']) .art-dark {
    display: block;
  }
}
* {
  box-sizing: border-box;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea,
label {
  -webkit-tap-highlight-color: transparent;
}
button,
.button {
  cursor: pointer;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}
button:hover,
.button:hover {
  filter: brightness(0.94);
}
button:active,
.button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.text-button {
  background: transparent;
  color: var(--muted);
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.danger-text {
  color: var(--danger-ink);
}
.small {
  font-size: 0.875rem;
  padding: 10px 16px;
}
.text-button.small {
  padding: 8px 0;
}
.full {
  width: 100%;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.icon {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

/* Header and brand. */
.nav {
  max-width: 1240px;
  margin: auto;
  padding: 26px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1.5px;
}
.brand-q {
  display: inline-block;
  margin-left: -5px;
  color: var(--accent-text);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  transform: rotate(8deg);
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.nav nav > a.active {
  color: var(--accent-text);
}
main {
  min-height: 68vh;
  max-width: 1240px;
  margin: auto;
}

/* Typography: one accent word in italic serif, with a hand-drawn underline. */
.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 750;
  color: var(--accent-text);
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.accent-title em {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent-text);
}
.accent-title em::after {
  content: '';
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -0.08em;
  height: 0.22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c18-6 34-6 52-2s36 4 64-4' fill='none' stroke='%23f0bf45' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat center / 100% 100%;
  pointer-events: none;
}

/* Home. */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  padding: 55px 36px 35px;
  gap: 24px;
}
.hero h1 {
  font-size: clamp(3rem, 5.4vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin: 0 0 25px;
  font-weight: 800;
}
.hero h1 em {
  font-size: 1.06em;
  white-space: nowrap;
}
.lead {
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: 480px;
  color: var(--muted);
  margin: 0 0 27px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.fine {
  font-size: 0.8125rem;
  color: var(--muted);
}
.hero .fine {
  margin-top: 19px;
}
.hero-art {
  position: relative;
  max-width: 560px;
  width: 100%;
  margin: auto;
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-art .art-dark {
  display: none;
}
.bubble {
  position: absolute;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--bubble-bg);
  box-shadow: 0 12px 28px var(--bubble-shadow);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}
.bubble-yes {
  top: 6%;
  left: 2%;
  color: var(--yes-ink);
}
.bubble-maybe {
  top: 36%;
  right: 0;
  color: var(--maybe-ink);
}
.bubble-car {
  bottom: 4%;
  left: 8%;
  color: var(--accent-text);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art img {
    animation: float 7s ease-in-out infinite;
  }
  .bubble {
    animation: float 5s ease-in-out infinite;
  }
  .bubble-maybe {
    animation-delay: -1.7s;
  }
  .bubble-car {
    animation-delay: -3.2s;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-10px) rotate(-0.6deg);
  }
}
.steps {
  padding: 40px 36px 50px;
}
.steps > h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 30px;
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.step:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 18px 40px var(--bubble-shadow);
}
.step::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--soft);
}
.step > * {
  position: relative;
  z-index: 1;
}
.step .icon {
  width: 36px;
  height: 36px;
  color: var(--accent-text);
  margin: 22px 0 14px;
}
.step h3 {
  font-size: 1.25rem;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}
.step p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}
.step-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 700;
}
.cta-banner {
  margin: 0 36px 50px;
  padding: 38px 42px;
  background: var(--cta-bg);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.cta-banner h2 {
  font-size: 1.9rem;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0 0 6px;
}
.cta-banner p {
  color: var(--muted);
  margin: 0;
}

/* Pages and forms. */
.section {
  padding: 48px 36px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}
.page-head h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  letter-spacing: -1.8px;
  line-height: 1.15;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
.page-head p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.form-page {
  max-width: 720px;
  padding: 50px 24px;
  margin: auto;
}
.form-page h1 {
  font-size: clamp(2.3rem, 5vw, 3rem);
  letter-spacing: -1.8px;
  line-height: 1.1;
  margin: 0 0 18px;
}
.subtle {
  color: var(--muted);
}
.panel {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.field {
  margin-bottom: 20px;
}
label,
legend {
  display: block;
  font-size: 0.875rem;
  font-weight: 650;
  margin-bottom: 7px;
}
fieldset {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
  min-width: 0;
}
legend {
  padding: 0;
  font-size: 1.05rem;
  font-weight: 750;
  margin-bottom: 12px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--field-border);
  border-radius: 11px;
  background: var(--field-bg);
  color: var(--ink);
  padding: 12px 13px;
  line-height: 1.4;
  font-size: 1rem;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--focus);
}
textarea {
  resize: vertical;
  min-height: 95px;
}
select {
  appearance: none;
  background-image: var(--chevron);
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin: 4px 0 2px;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}
.check-help {
  margin: 0 0 24px 30px;
}
.error {
  color: var(--danger-ink);
  font-size: 0.875rem;
  white-space: pre-wrap;
}
.notice {
  border: 1px solid var(--notice-border);
  background: var(--notice-bg);
  color: var(--notice-ink);
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 0.9375rem;
  margin: 0 0 24px;
}
.notice.warm {
  border-color: var(--warm-border);
  background: var(--warm-bg);
  color: var(--warm-ink);
}
.auth-switch {
  text-align: center;
}
.auth-switch a {
  text-decoration: underline;
}

/* Date picker. */
.dates-field {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.picker {
  display: grid;
  gap: 16px;
}
.calendar {
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-2);
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.cal-title {
  margin: 0;
  font-weight: 750;
  font-size: 1.05rem;
}
.cal-nav {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-size: 1.4rem;
  line-height: 1;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.cal-dow {
  margin-bottom: 4px;
}
.cal-dow span {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}
.cal-day {
  aspect-ratio: 1;
  width: 100%;
  min-width: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
  font-size: 0.9375rem;
  border: 1px solid transparent;
}
.cal-day:hover:not(:disabled) {
  background: var(--day-hover);
  filter: none;
}
.cal-day.is-today {
  border-color: var(--accent-text);
}
.cal-day[aria-pressed='true'] {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 12px var(--bubble-shadow);
}
.cal-day[aria-pressed='true']:hover:not(:disabled) {
  background: var(--accent);
  filter: brightness(0.92);
}
.cal-day:disabled {
  background: transparent;
  color: var(--muted);
  opacity: 0.45;
}
.cal-day.is-taken:disabled {
  opacity: 1;
  background: var(--soft);
  color: var(--accent-text);
  box-shadow: none;
  text-decoration: line-through;
}
@media (prefers-reduced-motion: no-preference) {
  .cal-day[aria-pressed='true']:not(:disabled) {
    animation: pop 0.25s ease;
  }
}
@keyframes pop {
  50% {
    transform: scale(1.12);
  }
}
.weekly {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  font-size: 0.9375rem;
}
.weekly select {
  width: auto;
  padding-top: 9px;
  padding-bottom: 9px;
}
.weekly input[type='number'] {
  width: 74px;
  padding: 9px 10px;
}
.weekly input[type='date'] {
  width: auto;
  max-width: 100%;
  padding: 9px 10px;
}
.weekly-icon {
  font-size: 1.2rem;
  color: var(--accent-text);
  font-weight: 700;
}
.picker-status {
  margin: 0;
  font-weight: 650;
  font-size: 0.9375rem;
}
.picked {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.picked-chip,
.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 4px 4px 13px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-text);
  font-size: 0.875rem;
  font-weight: 650;
}
.picked-remove,
.date-chip-remove {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
}
.picked-remove:hover,
.date-chip-remove:hover {
  background: var(--surface);
  filter: none;
}

/* Dashboard. */
.event-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.event-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.event-card.is-decided {
  border-color: var(--accent-text);
}
.event-card .eyebrow {
  margin-bottom: 8px;
}
.event-card h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.event-card-when {
  margin: 0;
  font-weight: 600;
}
.event-card .fine {
  margin: 4px 0 18px;
}
.empty {
  padding: 45px 25px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 22px;
  background: var(--surface-2);
}
.empty h2 {
  font-size: 1.4rem;
  margin: 10px 0;
}
.empty p {
  color: var(--muted);
  max-width: 470px;
  margin: 10px auto 22px;
}
.empty .icon {
  margin: auto;
  color: var(--accent-text);
  width: 42px;
  height: 42px;
}

/* Event page header and final-date banner. */
.event-hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--header-bg);
  margin-bottom: 24px;
}
.event-hero::before,
.event-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--header-ring);
  pointer-events: none;
}
.event-hero::before {
  width: 260px;
  height: 260px;
  right: -70px;
  top: -110px;
}
.event-hero::after {
  width: 150px;
  height: 150px;
  right: 40px;
  top: -40px;
}
.event-hero > * {
  position: relative;
}
.event-hero .eyebrow {
  margin-bottom: 10px;
}
.event-hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
.meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 6px 13px 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--header-ink);
  font-size: 0.875rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.meta .icon {
  width: 17px;
  height: 17px;
  color: var(--accent-text);
}
.event-hero .description {
  color: var(--header-ink);
  max-width: 760px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 18px 0 0;
}
.event-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 22px;
}
.final-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 24px 28px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  color: #fff;
  background: radial-gradient(circle at 92% 20%, #ffffff26 0 34px, transparent 35px),
    radial-gradient(circle at 80% 90%, #ffffff1a 0 20px, transparent 21px),
    linear-gradient(120deg, var(--banner-from), var(--banner-to));
  box-shadow: 0 16px 40px var(--bubble-shadow);
}
.final-banner > div {
  flex: 1 1 220px;
  min-width: 0;
}
.final-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff2e;
  color: #ffd36e;
  font-size: 1.6rem;
}
.final-title {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.final-kicker {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
}
.final-meta {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.final-undo {
  background: #ffffff26;
  color: #fff;
  border: 1px solid #ffffff59;
}
@media (prefers-reduced-motion: no-preference) {
  .final-icon {
    animation: twinkle 3.5s ease-in-out infinite;
  }
}
@keyframes twinkle {
  0%,
  100% {
    transform: rotate(0) scale(1);
  }
  50% {
    transform: rotate(18deg) scale(1.08);
  }
}

/* Share box. */
.share-panel {
  padding: 24px 28px;
  background: var(--surface-2);
  border-radius: 20px;
  margin-bottom: 28px;
}
.share-panel h2 {
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.share-panel p {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: var(--muted);
}
.copy-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.copy-row input {
  min-width: 0;
  font-size: 0.875rem;
}
.copy-row button {
  flex-shrink: 0;
}
.share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-top: 8px;
  font-size: 0.875rem;
}

/* Content blocks. */
.block {
  margin: 0 0 34px;
}
.block > h2,
.block-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 14px;
}
.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.block-head h2 {
  margin: 0;
}
.date-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.date-chip.is-past {
  background: var(--none-bg);
  color: var(--none-ink);
}
.empty-line {
  padding: 22px;
  border-radius: 18px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  margin: 0;
}

/* Answer chips (✓ / ? / ✗) and the results table. */
.chip {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
}
.chip-yes {
  background: var(--yes-bg);
  color: var(--yes-ink);
}
.chip-maybe {
  background: var(--maybe-bg);
  color: var(--maybe-ink);
}
.chip-no {
  background: var(--no-bg);
  color: var(--no-ink);
}
.chip-none {
  background: var(--none-bg);
  color: var(--none-ink);
}
.legend {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.875rem;
  color: var(--muted);
}
.legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.legend .chip {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 0.875rem;
}
.results-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  overscroll-behavior-x: contain;
}
.results {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
}
.results th,
.results td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.results tbody tr:last-child > * {
  border-bottom: 0;
}
.results thead th {
  font-size: 0.8125rem;
  font-weight: 700;
  vertical-align: bottom;
}
.results .date-col {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 150px;
  padding-left: 16px;
  text-align: left;
  border-right: 1px solid var(--line);
}
.results thead .date-col {
  color: var(--muted);
}
.date-label {
  display: block;
  font-weight: 750;
  white-space: nowrap;
}
.counts {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.count {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 750;
}
.count-yes {
  background: var(--yes-bg);
  color: var(--yes-ink);
}
.count-maybe {
  background: var(--maybe-bg);
  color: var(--maybe-ink);
}
.badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--none-bg);
  color: var(--none-ink);
}
.badge-best {
  background: var(--best-ring);
  color: #3d2c00;
}
.badge-final {
  background: var(--accent);
  color: var(--on-accent);
}
.keep-date {
  display: block;
  margin-top: 4px;
  padding: 4px 0;
  background: transparent;
  color: var(--accent-text);
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.person {
  min-width: 64px;
  max-width: 110px;
}
.person-name {
  display: block;
  max-width: 100px;
  margin: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.person.is-me .person-name {
  color: var(--accent-text);
}
.person-me,
.person-car {
  display: inline-block;
  margin: 3px 2px 0;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--muted);
}
.person-me {
  padding: 0 7px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-text);
}
.person-remove {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 4px auto 0;
  padding: 0;
  border-radius: 50%;
  background: var(--none-bg);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}
.person-remove:hover {
  background: var(--danger-bg);
  color: var(--danger-ink);
  filter: none;
}
.results tr.is-best > * {
  background: var(--best-bg);
}
.results tr.is-best > .date-col {
  box-shadow:
    inset 4px 0 0 var(--best-ring),
    6px 0 18px -6px var(--best-glow);
}
.results tr.is-final > * {
  background: var(--soft);
}
.results tr.is-final > .date-col {
  box-shadow: inset 4px 0 0 var(--accent);
}
.results tr.is-past .date-label {
  color: var(--muted);
}
@media (prefers-reduced-motion: no-preference) {
  .results tr.is-best .badge-best {
    animation: glow 2.8s ease-in-out infinite;
  }
}
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--best-glow);
  }
  50% {
    box-shadow: 0 0 0 6px var(--best-glow);
  }
}
.scroll-hint {
  margin: 8px 0 0;
}

/* Carpool summary and comments. */
.carpool .subtle {
  margin: -6px 0 16px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.stat {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface-2);
}
.stat strong {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--accent-text);
}
.stat span {
  font-size: 0.875rem;
  color: var(--muted);
}
.stat-seeking strong {
  color: var(--maybe-ink);
}
.carpool-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.carpool-col {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.carpool-col h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}
.carpool-col ul,
.comments {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.carpool-col li {
  display: grid;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
.carpool-col li span {
  color: var(--muted);
  font-size: 0.875rem;
}
.carpool-col .subtle {
  margin: 0;
  font-size: 0.9375rem;
}
.comments li {
  padding: 14px 18px;
  border-radius: 18px 18px 18px 6px;
  background: var(--surface-2);
  overflow-wrap: anywhere;
}
.comments p {
  margin: 2px 0 0;
  white-space: pre-wrap;
  color: var(--muted);
}

/* Guest page: answer form with big tappable pills. */
.guest-layout {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.answer-form > h2,
.thanks h2 {
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.quick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.quick .fine {
  margin: 0;
}
.answer-row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.answer-row.is-best .answer-date::after {
  content: ' ★';
  color: var(--best-ring);
}
.answer-date {
  margin: 0 0 8px;
  font-weight: 750;
}
.pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.pill,
.car-option {
  position: relative;
  margin: 0;
  cursor: pointer;
}
.pill input,
.car-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  padding: 8px 6px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}
.pill:hover span {
  border-color: var(--muted);
}
.pill b {
  font-size: 1.05rem;
}
.pill-yes input:checked + span {
  background: var(--yes-bg);
  border-color: var(--yes-ink);
  color: var(--yes-ink);
}
.pill-maybe input:checked + span {
  background: var(--maybe-bg);
  border-color: var(--maybe-ink);
  color: var(--maybe-ink);
}
.pill-no input:checked + span {
  background: var(--no-bg);
  border-color: var(--no-ink);
  color: var(--no-ink);
}
.pill input:checked + span {
  transform: scale(1.03);
}
.pill input:focus-visible + span,
.car-option input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.carpool-field {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.car-options {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.car-option {
  font-size: 0.9375rem;
}
.car-option > span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-weight: 650;
}
.car-option .icon {
  color: var(--muted);
}
.car-option input:checked + span {
  border-color: var(--accent-text);
  background: var(--soft);
  color: var(--accent-text);
}
.car-option input:checked + span .icon {
  color: var(--accent-text);
}
.thanks {
  text-align: center;
}
.thanks .actions {
  justify-content: center;
}
.thanks-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--yes-bg);
  color: var(--yes-ink);
  font-size: 1.7rem;
  font-weight: 800;
}
@media (prefers-reduced-motion: no-preference) {
  .thanks-icon {
    animation: pop 0.5s ease;
  }
}

/* Footer, dialog, toast, misc. */
footer {
  max-width: 1168px;
  margin: 25px auto 0;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  color: var(--muted);
  font-size: 0.875rem;
}
footer .brand {
  font-size: 1.5rem;
  color: var(--ink);
}
footer p {
  margin: 0;
}
footer > a:last-child {
  text-decoration: underline;
  text-underline-offset: 3px;
}
dialog {
  max-width: calc(100vw - 24px);
  width: 560px;
  border: none;
  border-radius: 24px;
  padding: 30px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 100px #0f3d3640;
  max-height: 92vh;
  overflow: auto;
}
dialog::backdrop {
  background: #10201da0;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 1.6rem;
  letter-spacing: -0.7px;
  line-height: 1.25;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--toast-bg);
  color: var(--toast-ink);
  border-radius: 13px;
  padding: 13px 22px;
  max-width: calc(100vw - 32px);
  z-index: 200;
  box-shadow: 0 5px 20px #0003;
  font-size: 0.9375rem;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.privacy {
  max-width: 800px;
}
.privacy h2 {
  margin-top: 30px;
}
.privacy p {
  color: var(--muted);
}
.skeleton {
  display: block;
  background-color: var(--skeleton);
  background-image: linear-gradient(90deg, transparent, var(--skeleton-shine), transparent);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer {
  from {
    background-position: 150% 0;
  }
  to {
    background-position: -50% 0;
  }
}
.skeleton-head {
  height: 200px;
  border-radius: 24px;
  margin-bottom: 24px;
}
.skeleton-block {
  height: 120px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.skeleton-block.short {
  width: 60%;
}

@media (max-width: 950px) {
  .nav {
    flex-wrap: wrap;
    padding: 22px 28px;
  }
  .nav nav {
    flex-wrap: wrap;
    gap: 16px;
  }
  .hero {
    padding-top: 45px;
  }
  .step-grid,
  .guest-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  footer {
    margin: 25px 36px 0;
  }
}
@media (max-width: 650px) {
  .nav {
    padding: 20px;
    gap: 15px;
  }
  .brand {
    font-size: 1.55rem;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .nav nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 17px;
    font-size: 0.875rem;
  }
  .nav nav a,
  .nav nav .text-button {
    font-size: 0.8125rem;
  }
  .nav .button {
    display: inline-flex;
    padding: 8px 12px;
    font-size: 0.8125rem;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 36px 16px 10px;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.4rem);
  }
  .hero .lead {
    font-size: 1.0625rem;
  }
  .hero-art {
    max-width: 420px;
  }
  .bubble {
    font-size: 0.75rem;
    padding: 7px 12px;
  }
  .steps {
    padding: 30px 16px 36px;
  }
  .cta-banner {
    display: block;
    margin: 0 16px 30px;
    padding: 26px 20px;
  }
  .cta-banner h2 {
    font-size: 1.6rem;
  }
  .cta-banner .button {
    margin-top: 20px;
  }
  .section {
    padding: 28px 16px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .form-page {
    padding: 32px 16px;
  }
  .panel {
    padding: 20px 16px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .calendar {
    padding: 12px 8px;
  }
  .cal-grid {
    gap: 4px;
  }
  .cal-day {
    font-size: 0.875rem;
  }
  .weekly {
    padding: 12px;
  }
  .event-cards {
    grid-template-columns: 1fr;
  }
  .event-hero {
    padding: 26px 20px;
  }
  .final-banner {
    padding: 20px;
  }
  .share-panel {
    padding: 20px 16px;
  }
  .copy-row {
    flex-wrap: wrap;
  }
  .copy-row input {
    flex-basis: 100%;
  }
  .results .date-col {
    min-width: 128px;
    padding-left: 12px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 12px 16px;
  }
  .carpool-cols {
    grid-template-columns: 1fr;
  }
  .pill span {
    padding: 8px 4px;
    font-size: 0.875rem;
  }
  footer {
    margin: 20px 16px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 30px;
  }
  dialog {
    padding: 22px 16px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .dialog-actions button {
    flex: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .skeleton {
    animation: none;
    background-image: none;
  }
  .step:hover {
    transform: none;
  }
}

/* Light/dark switch (sun / moon) in the header. */
.theme-toggle {
  flex: none;
  border: 0;
  background: transparent;
  padding: 4px;
  margin: -4px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 0;
}
.theme-toggle-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 56px;
  height: 30px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--muted);
}
.theme-icon {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  transition: color 0.25s ease;
}
.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow:
    0 1px 4px #0003,
    inset 0 0 0 1px var(--line);
  transition: transform 0.25s ease;
}
.theme-toggle[aria-checked='false'] .theme-icon-sun {
  color: #d08a00;
}
.theme-toggle[aria-checked='true'] .theme-toggle-thumb {
  transform: translateX(26px);
}
.theme-toggle[aria-checked='true'] .theme-icon-moon {
  color: #f3d27a;
}
.theme-toggle:hover .theme-toggle-track {
  box-shadow: inset 0 0 0 1px var(--muted);
}
.theme-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
@media (max-width: 650px) {
  /* Brand and switch share the first row; the navigation wraps below. */
  .nav .theme-toggle {
    order: 1;
    margin-left: auto;
  }
  .nav nav {
    order: 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .theme-toggle-thumb,
  .theme-icon {
    transition: none;
  }
}

/* Soft glow at the top of every page (the effect of the Nos Instants album header). */
body {
  background-image: radial-gradient(ellipse 60% 440px at 50% 0, var(--page-glow), transparent);
  background-repeat: no-repeat;
}
@media (max-width: 650px) {
  body {
    background-image: radial-gradient(ellipse 120% 360px at 50% 0, var(--page-glow), transparent);
  }
}

/* Site colours used by the shared "Nos sites" menu. */
:root {
  --sm-bg: var(--surface);
  --sm-text: var(--ink);
  --sm-muted: var(--muted);
  --sm-line: var(--line-strong);
  --sm-accent: var(--accent-text);
  --sm-card: var(--surface-2);
  --sm-tint: var(--soft);
}

/* "Nos sites" slide-out menu (shared component; colours come from the --sm-* mapping above). */
.sites-menu-button {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--sm-muted);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.sites-menu-button:hover,
.sites-menu-button[aria-expanded='true'] {
  background: var(--sm-card);
  color: var(--sm-text);
}
.sites-menu-button:focus-visible,
.sites-menu-close:focus-visible,
.sites-menu-link:focus-visible {
  outline: 2px solid var(--sm-accent);
  outline-offset: 2px;
}
.sites-menu-glyph {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}
.sites-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #0006;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s;
}
.sites-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(380px, 88vw);
  padding: 22px 22px 28px;
  overflow-y: auto;
  background: var(--sm-bg);
  color: var(--sm-text);
  box-shadow: -18px 0 50px #0000002e;
  transform: translateX(105%);
  visibility: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.35s;
  outline: none;
}
.sites-menu-open .sites-menu {
  transform: none;
  visibility: visible;
}
.sites-menu-open .sites-menu-backdrop {
  opacity: 1;
  visibility: visible;
}
.sites-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sites-menu-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.sites-menu-close {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--sm-card);
  color: var(--sm-text);
  cursor: pointer;
}
.sites-menu-close-icon {
  width: 16px;
  height: 16px;
}
.sites-menu-intro {
  margin: 6px 0 20px;
  font-size: 13px;
  color: var(--sm-muted);
}
.sites-menu-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sites-menu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: var(--sm-card);
  color: var(--sm-text);
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.sites-menu-link:hover {
  transform: translateX(-3px);
  border-color: var(--sm-line);
}
.sites-menu-link.is-current {
  background: var(--sm-tint);
  border-color: var(--sm-line);
}
.sites-menu-icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: #fff;
}
.sites-menu-icon-svg {
  width: 22px;
  height: 22px;
}
.sites-menu-icon-kadopik {
  background: #d9432b;
}
.sites-menu-icon-nos-instants {
  background: #a64e38;
}
.sites-menu-icon-secret-santa {
  background: #c62828;
}
.sites-menu-icon-kivient {
  background: #1f7a6d;
}
.sites-menu-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.sites-menu-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}
.sites-menu-here {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sm-bg);
  color: var(--sm-accent);
  font-size: 11px;
  font-weight: 600;
}
.sites-menu-tagline {
  font-size: 13px;
  line-height: 1.4;
  color: var(--sm-muted);
}
.sites-menu-arrow {
  margin-left: auto;
  font-size: 22px;
  color: var(--sm-muted);
}
@media (prefers-reduced-motion: reduce) {
  .sites-menu,
  .sites-menu-backdrop,
  .sites-menu-link,
  .sites-menu-button {
    transition: none;
  }
}

/* Same header geometry on the three sites, so the day/night switch and the "Nos sites" button
   are always at the same spot of the screen (shared rules, identical on every site). */
header.nav {
  box-sizing: border-box;
  width: 100%;
  max-width: 1240px;
  min-height: 76px;
  margin-left: auto;
  margin-right: auto;
  padding: 12px 40px;
  gap: 20px;
}
/* Navigation group right-aligned, next to the controls. */
header.nav > .brand + * {
  margin-left: auto;
}
.site-controls {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* A true circle with a centered icon, whatever the site's generic button styles. */
.site-controls .sites-menu-button {
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  line-height: 0;
  font-size: 0;
  box-shadow: none;
}
.site-controls .sites-menu-glyph {
  display: block;
  margin: 0;
}
@media (max-width: 650px) {
  header.nav {
    padding: 12px 20px;
  }
  header.nav .site-controls {
    order: 1;
    margin-left: auto;
  }
  header.nav > nav {
    order: 2;
    margin-left: 0;
  }
}

/* Fixed order (switch, then ⠿) and fixed row height, also on mobile. */
header.nav .site-controls {
  min-height: 52px;
}
header.nav .site-controls .theme-toggle {
  order: 0;
  margin: -4px;
}
header.nav .site-controls .sites-menu-button {
  order: 1;
}

/* Always reserve the scrollbar space, so short and long pages share the same width. */
html {
  scrollbar-gutter: stable;
}

/* "Nos sites" as a pop-up anchored under the ⠿ button (overrides the side-panel layout). */
.site-controls {
  position: relative;
}
.sites-menu-backdrop {
  background: transparent;
}
.sites-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  bottom: auto;
  left: auto;
  width: min(360px, calc(100vw - 24px));
  max-height: min(560px, calc(100vh - 110px));
  padding: 18px;
  border: 1px solid var(--sm-line);
  border-radius: 22px;
  box-shadow:
    0 24px 60px #00000033,
    0 4px 14px #0000001f;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  opacity: 0;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.18s ease,
    visibility 0.22s;
}
.sites-menu-open .sites-menu {
  transform: none;
  opacity: 1;
}
.sites-menu-intro {
  margin: 4px 0 14px;
}
.sites-menu-link {
  padding: 12px;
  border-radius: 16px;
}
.sites-menu-link:hover {
  transform: translateY(-1px);
}
/* The close button: a true circle with a centered cross, whatever the site's button styles. */
.sites-menu .sites-menu-close {
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  line-height: 0;
  font-size: 0;
  box-shadow: none;
}
.sites-menu .sites-menu-close-icon {
  display: block;
  width: 14px;
  height: 14px;
}
@media (max-width: 650px) {
  .sites-menu {
    right: -8px;
  }
}

/* Very narrow phones (360px): keep the three answer pills on one row. */
@media (max-width: 400px) {
  .pill span {
    gap: 3px;
    padding: 8px 2px;
    font-size: 0.8125rem;
  }
  .weekly input[type='date'] {
    width: 100%;
  }
}

/* Navigation links never break over two lines; tighter spacing on medium screens. */
.nav nav a,
.nav nav button {
  white-space: nowrap;
}
@media (max-width: 1000px) {
  .nav nav {
    gap: 14px;
    font-size: 0.875rem;
  }
}

/* Kivient has more navigation links than its siblings: below 1000px the links go to a second row,
   so the day/night switch and the ⠿ button stay top-right, at the same spot as on the other sites. */
@media (max-width: 1000px) {
  header.nav {
    flex-wrap: wrap;
  }
  header.nav .site-controls {
    order: 1;
    margin-left: auto;
  }
  header.nav > nav {
    order: 2;
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }
}
