/* Fonts are loaded non-render-blocking via <link media="print" onload> in each
   template <head> — not via @import here, which would serialize the font fetch
   after style.css and block first paint. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #faf8f4;
  --surface:  #fffefb;
  --text:     #1c1917;
  --muted:    #79716b;
  --border:   #e8e5e1;
  --accent:   #c45c28;
  --accent-h: #a84820;
  --going:    #16a34a;
  --maybe:    #ca8a04;
  --cant:     #dc2626;
  --radius:   16px;
  --shadow:   0 1px 3px rgba(28,25,23,.07), 0 6px 28px rgba(28,25,23,.09);
  accent-color: var(--accent);
}

/* ─── Accessibility utilities ──────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.skip-nav {
  position: absolute;
  top: -56px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
  transition: top .15s;
}
.skip-nav:focus { top: 0; }

/* ─── Animations ───────────────────────────────────────────── */
@keyframes fade-up {
  /* transform only — no opacity gate, so content is painted (FCP-eligible)
     on the first frame even if the tab is backgrounded and animations pause. */
  from { transform: translateY(14px); }
  to   { transform: translateY(0); }
}
@keyframes success-pop {
  0%   { transform: scale(0.3) rotate(-12deg); opacity: 0; }
  65%  { transform: scale(1.22) rotate(6deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ─── Body + Background ────────────────────────────────────── */
body {
  font-family: 'Outfit', -apple-system, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 12% 65%, rgba(196,92,40,.07) 0%, transparent 55%),
    radial-gradient(ellipse at 88% 18%, rgba(22,163,74,.05) 0%, transparent 50%),
    radial-gradient(ellipse at 62% 88%, rgba(202,138,4,.04) 0%, transparent 45%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 15px;
}

/* ─── Layout ────────────────────────────────────────────────── */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 16px 80px;
}
.container {
  width: 100%;
  max-width: 560px;
}

/* ─── Logo ──────────────────────────────────────────────────── */
.logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.3px;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 40px;
  animation: fade-up .5s cubic-bezier(.22,1,.36,1) both;
}
.logo span { color: var(--accent); font-style: normal; }

/* ─── Card ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  animation: fade-up .5s cubic-bezier(.22,1,.36,1) .10s both;
}
.card + .card {
  margin-top: 16px;
  animation-delay: .16s;
}
.invite {
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ─── Typography ────────────────────────────────────────────── */
h1, h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
}
h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.22; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.3px; }
h3 { font-size: 16px; font-weight: 600; }

.headline { margin-bottom: 6px; }
.subhead { color: var(--muted); font-size: 15px; margin-bottom: 28px; }

/* ─── Form ──────────────────────────────────────────────────── */
fieldset { border: none; padding: 0; margin: 0; }

.form-group { margin-bottom: 18px; }

label, legend {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

input[type=text],
input[type=email],
input[type=password],
input[type=datetime-local],
input[type=number],
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,92,40,.22);
}
textarea { resize: vertical; min-height: 90px; }

/* ─── Links ─────────────────────────────────────────────────── */
/* Theme color for content links. Components that set their own color
   (.logo, .skip-nav) override this via higher specificity. */
a {
  color: var(--accent);
  text-decoration-color: rgba(196,92,40,.4);
  text-underline-offset: 2px;
}
a:hover { color: var(--accent-h); }


/* ─── Radio status buttons ──────────────────────────────────── */
.status-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.status-option { flex: 1; min-width: 100px; position: relative; }

/* Visually hidden but keyboard/AT accessible — replaces display:none */
.status-option input[type=radio] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.status-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  transition: all .2s cubic-bezier(.34,1.56,.64,1);
}
.status-option label:hover {
  border-color: currentColor;
  background: color-mix(in srgb, currentColor 6%, transparent);
}
.status-option input[type=radio]:checked + label {
  border-color: currentColor;
  background: color-mix(in srgb, currentColor 12%, transparent);
  transform: scale(1.03);
}
.status-option input[type=radio]:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 10px;
}
.status-going label  { color: var(--going); }
.status-maybe label  { color: var(--maybe); }
.status-cant label   { color: var(--cant); }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, transform .12s, box-shadow .15s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 35%;
  height: 200%;
  background: rgba(255,255,255,.18);
  transform: skewX(-20deg);
  transition: left .45s ease;
  pointer-events: none;
}
.btn-primary:hover {
  background: var(--accent-h);
  color: #fff; /* keep text white on hover; out-specifies the global a:hover color */
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(196,92,40,.32);
}
.btn-primary:hover::after { left: 125%; }
.btn-primary:active { transform: scale(.97) translateY(0); box-shadow: none; }
.btn-block { width: 100%; }

/* ─── Site header ───────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.site-header .logo { margin-bottom: 0; }
.header-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.header-link:hover { color: var(--text); }

/* Page heading row: title left, primary action right. */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.page-head h1 { font-size: 26px; }

/* ─── Dropdown menu ─────────────────────────────────────────── */
.menu { position: relative; }
.menu-label {
  padding: 6px 12px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--muted); }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 168px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 30;
}
.menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.menu-item:hover { background: var(--bg); color: var(--text); }

/* ─── Dashboard ─────────────────────────────────────────────── */
.dash-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.dash-item:first-child { padding-top: 0; }
.dash-item:last-child { padding-bottom: 0; border-bottom: none; }
.dash-item h3 { font-size: 16px; font-weight: 600; }

/* Status pill: at-a-glance past vs upcoming. */
.tag {
  display: inline-block;
  margin-left: 8px;
  /* Pin the sans font so the pill looks identical regardless of its parent
     (e.g. the Fraunces-serif .headline on the manage page vs. the Outfit h3
     on the dashboard). */
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
}
.tag-upcoming { color: var(--going); background: rgba(22, 163, 74, .12); }
.tag-past { color: var(--muted); background: rgba(121, 113, 107, .12); }
.tag-cancelled { color: var(--cant); background: rgba(220, 38, 38, .12); }

/* Low-emphasis text button (e.g. cancel/reopen on the manage page). */
.btn-text {
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}
.btn-text:hover { color: var(--text); background: var(--bg); }
.btn-text-danger { color: var(--cant); }
.btn-text-danger:hover { color: #fff; background: var(--cant); }
.dash-item h3 a { color: var(--text); text-decoration: none; }
.dash-item h3 a:hover { color: var(--accent); }
.dash-meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.dash-counts {
  display: flex;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

/* ─── Error pages ───────────────────────────────────────────── */
.error-code {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 900;
  font-size: 76px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ─── Error banner ──────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 18px;
}
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: var(--cant); }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--going); }

/* ─── Event page ─────────────────────────────────────────────── */
.event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 14px;
}
.event-meta-row { display: flex; align-items: flex-start; gap: 10px; }
.event-meta-icon { flex-shrink: 0; margin-top: 2px; }

.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* Pinned "note from the host" on the invite page. */
.host-note {
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 24px;
}
.host-note-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.host-note-body {
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap; /* preserve the host's line breaks */
}
.host-note-time {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* "Report this event" — deliberately low-emphasis, below the card. */
.report-area { text-align: center; margin-top: 18px; }
.report-link {
  background: none;
  border: none;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 6px 10px;
}
.report-link:hover { color: var(--cant); }
.report-done { font-size: 13px; color: var(--muted); }

/* Free-tier guest-cap upsell on the manage page. */
.limit-notice {
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}

/* ─── Settings rows ──────────────────────────────────────────── */
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.setting-row:last-of-type { border-bottom: none; }
.setting-label { color: var(--muted); font-size: 14px; }
.setting-value { font-size: 14px; font-weight: 500; }

/* ─── Toast (transient confirmation) ─────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--surface);
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 500;
  z-index: 200;
  max-width: calc(100vw - 32px);
  animation: toast-in .25s cubic-bezier(.22,1,.36,1) both;
}
.toast-out { animation: toast-out .4s ease forwards; }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translate(-50%, 12px); }
}

/* ─── RSVP success ──────────────────────────────────────────── */
.success-box {
  text-align: center;
  padding: 32px 0 16px;
}
.success-icon {
  font-size: 48px;
  margin-bottom: 14px;
  display: block;
  animation: success-pop .6s cubic-bezier(.34,1.56,.64,1) both;
}
.success-box h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  margin-bottom: 8px;
}
.success-box p { color: var(--muted); font-size: 15px; }

/* ─── Manage page ────────────────────────────────────────────── */
.link-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 10px;
}
.link-box-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.link-row { display: flex; align-items: center; gap: 8px; }
.link-row input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 14px;
  color: var(--text);
  padding: 10px;
  min-width: 0;
  outline: none;
  cursor: text;
  font-family: inherit;
}
.copy-btn {
  flex-shrink: 0;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  color: var(--accent);
  transition: background .12s, border-color .12s;
}
.copy-btn:hover { background: color-mix(in srgb, var(--accent) 8%, white); border-color: var(--accent); }
.copy-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.share-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  font-family: inherit;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.share-icon-btn:hover {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: var(--accent);
}
.share-icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.bookmark-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 0;
}
.stat {
  flex: 1;
  min-width: 80px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 10px;
}
.stat-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}
.stat-going  .stat-num { color: var(--going); }
.stat-maybe  .stat-num { color: var(--maybe); }
.stat-cant   .stat-num { color: var(--cant); }
.stat-total  .stat-num { color: var(--accent); }

/* ─── RSVP list ──────────────────────────────────────────────── */
.rsvp-list { list-style: none; margin-top: 16px; }
.rsvp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.rsvp-item:last-child { border-bottom: none; }
.rsvp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  font-family: 'Fraunces', Georgia, serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rsvp-info { flex: 1; min-width: 0; }
.rsvp-name { font-weight: 600; font-size: 15px; }
.rsvp-note { font-size: 13px; color: var(--muted); margin-top: 2px; }
.rsvp-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.rsvp-time { font-size: 12px; color: var(--muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
}
.badge-going { background: #dcfce7; color: var(--going); }
.badge-maybe { background: #fef9c3; color: var(--maybe); }
.badge-cant  { background: #fee2e2; color: var(--cant); }

.headcount-pill {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 2px 8px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 14px;
}
.empty-icon { font-size: 36px; margin-bottom: 10px; display: block; }

/* ─── Home hero ──────────────────────────────────────────────── */
.hero {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
  animation: fade-up .5s cubic-bezier(.22,1,.36,1) .05s both;
}
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 260%;
  background: radial-gradient(ellipse, rgba(196,92,40,.08) 0%, transparent 68%);
  pointer-events: none;
  z-index: -1;
}
.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 44px;
  letter-spacing: -1.2px;
  margin-bottom: 12px;
  line-height: 1.08;
}
.hero p { color: var(--muted); font-size: 17px; line-height: 1.55; }

/* ─── Flatpickr overrides ────────────────────────────────────── */
.flatpickr-calendar {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.flatpickr-months {
  background: var(--surface);
  border-radius: 14px 14px 0 0;
  padding-top: 4px;
}
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  color: var(--text);
  fill: var(--text);
  font-family: inherit;
  font-weight: 600;
}
.flatpickr-weekdays { background: var(--surface); }
span.flatpickr-weekday {
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}
.flatpickr-day {
  color: var(--text);
  border-radius: 8px;
}
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: transparent;
}
.flatpickr-day.today {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.flatpickr-day.today:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.flatpickr-day.selected,
.flatpickr-day.selected:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.selected.nextMonthDay {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay { color: var(--border); }

/* time picker */
.flatpickr-time { border-top: 1px solid var(--border); }
.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm {
  font-family: inherit;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  border: 0;
}
.flatpickr-time .flatpickr-am-pm:focus,
.flatpickr-time .flatpickr-am-pm:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 0px solid transparent;
  border-radius: 0 0 14px 0;
}
.flatpickr-time .flatpickr-hour:hover,
.flatpickr-time .flatpickr-hour:focus {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 0px solid transparent;
  border-radius: 0 0 0 14px;
}

.flatpickr-time .flatpickr-minute:hover,
.flatpickr-time .flatpickr-minute:focus {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 0px solid transparent;
  border-radius: 0;
}

.flatpickr-time .numInputWrapper span.arrowUp:after { border-bottom-color: var(--accent); }
.flatpickr-time .numInputWrapper span.arrowDown:after { border-top-color: var(--accent); }

/* nav arrows */
.flatpickr-prev-month svg,
.flatpickr-next-month svg { fill: var(--muted); }
.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg { fill: var(--accent); }

/* alt input — make it look like our normal inputs */
.flatpickr-input[readonly] { cursor: pointer; }

.flatpickr-calendar.hasTime .flatpickr-time {
  border-radius: 0 0 14px 14px;
}

/* ─── Dashboard tabs ─────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.tab {
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.tab-count {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg);
  color: var(--muted);
  border-radius: 999px;
  padding: 1px 8px;
}
.tab[aria-selected="true"] .tab-count { background: rgba(196, 92, 40, .12); color: var(--accent); }

/* Per-status pills reused on the "Your RSVPs" tab. */
.tag-going { color: var(--going); background: rgba(22, 163, 74, .12); }
.tag-maybe { color: var(--maybe); background: rgba(202, 138, 4, .12); }
.tag-cant  { color: var(--cant);  background: rgba(220, 38, 38, .12); }

/* ─── RSVP edit (returning guest) ────────────────────────────── */
.rsvp-edit { margin-top: 20px; text-align: left; }
.rsvp-edit > summary {
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  padding: 8px;
  border-radius: 8px;
  list-style: none;
}
.rsvp-edit > summary::-webkit-details-marker { display: none; }
.rsvp-edit > summary:hover { color: var(--accent-h); }
.rsvp-edit[open] > summary { color: var(--muted); margin-bottom: 4px; }
.rsvp-edit-body { padding-top: 8px; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .card { padding: 24px 20px; }
  h1 { font-size: 22px; }
  .hero h1 { font-size: 32px; }
  .stats { gap: 8px; }
}
