/* Table — warm, colorful and easy to read.
   Event pages override the --t-* colors and title font with the host's chosen theme. */
:root {
  color-scheme: light;
  --cream: #fff8f0;
  --ink: #2b2228;
  --ink-2: #4a3f46;
  --muted: #675c63;
  --line: #eadfd3;
  --white: #ffffff;

  --brand: #023652;        /* Table navy (logo) */
  --brand-green: #80ae48;  /* Table green (logo), decorative only */
  --green-ink: #4c7425;    /* readable green for text */
  --peach: #ffe3d1;
  --butter: #fff0bf;
  --mint: #d3f0e1;
  --sky: #dbe4ff;
  --lilac: #ebe2fb;
  --pink: #fde0e6;
  --leaf: #2f6b47;
  --danger: #a3301f;
  --danger-tint: #fde6e1;

  /* theme slots (site defaults) */
  --t-bg: var(--cream);
  --t-card: #ffffff;
  --t-accent: var(--brand);
  --t-soft: #e6f0db;
  --t-deco: var(--brand-green);
  --t-ink: var(--ink);
  --t-font: 'Young Serif', Georgia, serif;

  --body: 'Nunito', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif: 'Young Serif', Georgia, serif;
  --r-lg: 24px;
  --r: 16px;
  --r-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--t-bg); color: var(--ink); font: 400 1rem/1.6 var(--body); }
[hidden] { display: none !important; }
img, svg { max-width: 100%; vertical-align: middle; }
a { color: var(--t-accent); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; color: var(--t-ink); }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.45rem, 3.4vw, 1.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 800; }
code { background: rgba(0,0,0,.06); padding: .1em .35em; border-radius: 6px; font-size: .9em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.2rem; color: var(--ink-2); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 800; color: var(--t-accent); margin: 0 0 .6rem; }
.mt { margin-top: 1.25rem; } .mt-lg { margin-top: 2.5rem; }
.stack > * + * { margin-top: 1.1rem; }
.stack-lg > * + * { margin-top: 1.75rem; }
.inline { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: 0; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid var(--t-accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- header / footer ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; min-height: 76px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img { height: 40px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: .4rem 1.3rem; flex-wrap: wrap; }
.nav > a:not(.btn) { text-decoration: none; color: var(--ink); font-weight: 700; padding: .35rem 0; }
.nav > a[aria-current]:not(.btn) { box-shadow: inset 0 -3px 0 var(--brand); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .4rem; font-weight: 700; }
.menu summary::-webkit-details-marker { display: none; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--butter); color: var(--ink); display: inline-grid; place-items: center; font-weight: 800; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 30px rgba(43,34,40,.12); min-width: 240px; padding: .5rem; z-index: 10; }
.menu-pop a, .menu-pop .linklike { display: block; width: 100%; text-align: left; padding: .7rem .8rem; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.menu-pop a:hover, .menu-pop .linklike:hover { background: var(--cream); }
.menu-name { padding: .5rem .8rem .7rem; border-bottom: 1px solid var(--line); margin-bottom: .4rem; font-weight: 800; }
.menu-name small { display: block; font-weight: 400; color: var(--muted); }

main { padding-bottom: 4rem; min-height: 60vh; }
main:has(> .auth) { padding-bottom: 0; } /* login / sign-up panels run straight into the footer */
.page { padding-top: 2.25rem; }
.site-footer { background: var(--brand); color: #e7eef3; padding: 3rem 0 1.5rem; }
.site-footer a { color: #fff; }
.footer-main { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; justify-content: space-between; }
.footer-brand img { height: 46px; width: auto; display: block; }
.footer-brand p { margin: .8rem 0 0; max-width: 30rem; font-size: 1.05rem; }
.site-footer .btn { background: var(--brand-green); border-color: var(--brand-green); color: var(--brand); }
.site-footer .btn:hover { color: var(--brand); filter: brightness(1.08); }
.footer-legal { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .95rem; color: #c9d6df; }
.footer-legal a { color: #fff; font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--t-accent); color: #fff; border: 2px solid var(--t-accent);
  font: 800 1.05rem/1.1 var(--body); padding: .85rem 1.6rem; border-radius: 999px;
  text-decoration: none; cursor: pointer; min-height: 56px; text-align: center;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}
.btn:hover { color: #fff; filter: brightness(.9); }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 64px; font-size: 1.2rem; padding: 1rem 2.1rem; }
.btn-sm { min-height: 46px; font-size: .95rem; padding: .55rem 1.1rem; }
.btn-block { width: 100%; }
.btn-ghost { background: #fff; color: var(--t-accent); border-color: currentColor; }
.btn-ghost:hover { background: var(--t-soft); color: var(--t-ink); filter: none; }
.btn-plain { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-plain:hover { background: #fff; color: var(--ink); filter: none; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn .icon { flex: none; }
.linklike { background: none; border: 0; padding: 0; color: var(--t-accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; font: inherit; font-weight: 700; }
.danger-text { color: var(--danger); }

/* ---------- cards / messages ---------- */
.card { background: var(--t-card); border-radius: var(--r-lg); padding: 1.5rem; border: 1px solid rgba(43,34,40,.07); box-shadow: 0 2px 0 rgba(43,34,40,.04); }
@media (min-width: 700px) { .card { padding: 2.25rem; } }
.flash { border-radius: var(--r); padding: 1rem 1.25rem; margin: 1.25rem 0; font-weight: 700; border: 2px solid transparent; font-size: 1.05rem; }
.flash-success { background: var(--mint); border-color: #a9dcc2; }
.flash-error { background: var(--danger-tint); border-color: #f1b5aa; color: #6d1d10; }
.flash-info { background: var(--sky); border-color: #b8c8f5; }
.flash-warning { background: var(--butter); border-color: #efd27a; }
.empty { border: 2px dashed var(--line); border-radius: var(--r); padding: 1.75rem; text-align: center; color: var(--muted); background: rgba(255,255,255,.6); font-size: 1.05rem; }
.note-box { background: var(--t-soft); border-radius: var(--r); padding: 1.1rem 1.25rem; }

/* ---------- badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: inherit; }
.badge { display: inline-block; font-size: .8rem; font-weight: 800; padding: .25rem .7rem; border-radius: 999px; background: #fff; color: var(--ink); border: 1px solid var(--line); white-space: nowrap; }
.badge-meal_train { background: var(--peach); border-color: transparent; }
.badge-potluck { background: var(--mint); border-color: transparent; }
.badge-rsvp { background: var(--lilac); border-color: transparent; }
.badge-church { background: var(--butter); border-color: transparent; }
.badge-muted { background: #eee8e3; color: var(--muted); border-color: transparent; }

/* ---------- blobs (decorative) ---------- */
.blob { position: absolute; pointer-events: none; }
.blob path { fill: currentColor; }

/* ---------- home ---------- */
.hero { position: relative; overflow: hidden; background: #e6f0db; padding: 4.5rem 0 5rem; text-align: center; }
.hero .blob { color: #c9e0ae; opacity: .9; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.3rem); line-height: 1.05; margin-bottom: .4em; }
.hero .lead { font-size: clamp(1.15rem, 2.4vw, 1.35rem); color: var(--ink); max-width: 36rem; margin: 0 auto; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.hero-actions .btn-ghost { background: rgba(255,255,255,.75); }

.section { padding: 3.5rem 0 0; }
.section-title { text-align: center; margin-bottom: 1.75rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section-head h1, .section-head h2 { margin: 0; }

.choose { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .choose { grid-template-columns: repeat(3, 1fr); } }
.choose-card { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 2rem 1.75rem 1.75rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .6rem; min-height: 280px; transition: transform .15s ease; }
.choose-card:hover { transform: translateY(-3px); color: var(--ink); }
.choose-card.type-meal_train { background: var(--peach); }
.choose-card.type-potluck { background: var(--mint); }
.choose-card.type-rsvp { background: var(--lilac); }
.choose-card strong { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.15; }
.choose-card p { font-size: 1.05rem; }
.choose-icon { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink); }
.choose-cta { margin-top: auto; font-weight: 800; font-size: 1.1rem; display: inline-flex; align-items: center; gap: .4rem; }
.choose-cta::after { content: "→"; transition: transform .15s; }
.choose-card:hover .choose-cta::after { transform: translateX(4px); }

.how { display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: how; }
@media (min-width: 820px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how li { list-style: none; background: #fff; border-radius: var(--r-lg); padding: 1.5rem; border: 1px solid var(--line); }
.how li::before { counter-increment: how; content: counter(how); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--butter); font-weight: 800; font-size: 1.2rem; margin-bottom: .75rem; }
.how strong { display: block; font-size: 1.15rem; margin-bottom: .25rem; }
.how { padding: 0; margin: 0; }

.event-cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .event-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .event-cards { grid-template-columns: repeat(3, 1fr); } }
.event-card { display: flex; flex-direction: column; background: var(--t-card, #fff); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid rgba(43,34,40,.08); transition: transform .15s ease; }
.event-card:hover { transform: translateY(-3px); color: var(--ink); }
.event-card .thumb { aspect-ratio: 16 / 9; background: var(--t-soft); position: relative; overflow: hidden; }
.event-card .thumb img, .event-card .thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-card-body { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .35rem; }
.event-card-title { font-family: var(--t-font); font-size: 1.45rem; line-height: 1.2; color: var(--t-ink); }
.event-card .when { font-weight: 700; color: var(--ink-2); }

/* ---------- forms ---------- */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field > label, .label { font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.req { color: var(--danger); }
.hint { color: var(--muted); font-size: .95rem; }
.error { color: var(--danger); font-size: 1rem; font-weight: 800; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--danger); background: #fffafa; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; font: 400 1.05rem/1.4 var(--body); color: var(--ink); background: #fff;
  border: 2px solid #d9cdc1; border-radius: var(--r-sm); padding: .8rem 1rem; min-height: 56px;
}
input:focus, select:focus, textarea:focus { border-color: var(--t-accent); outline: 3px solid color-mix(in srgb, var(--t-accent) 25%, transparent); outline-offset: 0; }
textarea { resize: vertical; min-height: 0; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232b2228' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 3rem; }
input[readonly] { background: #faf6f1; }
.check { display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; font-size: 1.05rem; padding: .35rem 0; }
.check input { width: 26px; height: 26px; margin: .05rem 0 0; accent-color: var(--t-accent); flex: none; }
.check .hint { display: block; }
.grid-2, .grid-3 { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Numbered steps */
.step { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.75rem; margin-top: 1.75rem; border-top: 2px dashed var(--line); }
.step:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.step-title { display: flex; align-items: center; gap: .75rem; font-family: var(--body); font-weight: 800; font-size: 1.3rem; color: var(--ink); margin: 0; }
.step-num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--t-accent); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }

/* Big choice cards (radio buttons) */
.choices { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .choices.cols-3 { grid-template-columns: repeat(3, 1fr); } .choices.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.choice { position: relative; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-box { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border: 2px solid #d9cdc1; border-radius: var(--r); background: #fff; min-height: 68px; transition: border-color .1s, background .1s; }
.choice-box::before { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #bfb1a5; background: #fff; }
.choice input:checked + .choice-box { border-color: var(--t-accent); background: var(--t-soft); }
.choice input:checked + .choice-box::before { border-color: var(--t-accent); background: var(--t-accent); box-shadow: inset 0 0 0 5px #fff; }
.choice input:focus-visible + .choice-box { outline: 3px solid var(--t-accent); outline-offset: 2px; }
.choice input:disabled + .choice-box { opacity: .55; cursor: not-allowed; background: #f6f1ec; }
.choice-text { display: flex; flex-direction: column; line-height: 1.3; }
.choice-text strong { font-size: 1.1rem; }
.choice-text small { color: var(--muted); font-size: .95rem; margin-top: .15rem; }

/* Number stepper */
.stepper { display: inline-flex; align-items: center; border: 2px solid #d9cdc1; border-radius: 999px; background: #fff; overflow: hidden; }
.stepper button { width: 56px; height: 56px; border: 0; background: #fff; font: 800 1.6rem/1 var(--body); color: var(--t-accent); cursor: pointer; }
.stepper button:hover { background: var(--t-soft); }
.stepper input { width: 64px !important; min-height: 56px; border: 0 !important; text-align: center; font-weight: 800; font-size: 1.3rem; padding: 0 !important; -moz-appearance: textfield; outline: none !important; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.counts { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; }
.count-field { display: flex; flex-direction: column; gap: .4rem; }

.form-page { max-width: 820px; margin: 0 auto; }
.form-section { margin-top: 1.5rem; }
.form-section > h2 { display: flex; align-items: center; gap: .75rem; }
.form-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.admin-box { background: var(--butter); border-radius: var(--r); padding: 1.1rem 1.25rem; }

.weekdays { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-check { cursor: pointer; }
.pill-check input { position: absolute; opacity: 0; pointer-events: none; }
.pill-check span { display: inline-block; padding: .7rem 1rem; border: 2px solid #d9cdc1; border-radius: 999px; font-weight: 800; background: #fff; min-width: 70px; text-align: center; }
.pill-check input:checked + span { background: var(--t-accent); border-color: var(--t-accent); color: #fff; }
.pill-check input:focus-visible + span { outline: 3px solid var(--t-accent); outline-offset: 2px; }

.cat-rows { display: flex; flex-direction: column; gap: .75rem; }
.cat-row { display: grid; grid-template-columns: 1fr 110px; gap: .6rem; background: #faf6f1; padding: .75rem; border-radius: var(--r-sm); }
.cat-row label { font-size: .9rem; font-weight: 800; display: block; margin-bottom: .2rem; }
.cat-row .cat-note { grid-column: 1 / -1; }

/* Theme + font pickers */
.theme-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.swatch { cursor: pointer; display: block; position: relative; }
.swatch input { position: absolute; opacity: 0; }
.swatch-box { display: block; border: 3px solid transparent; border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.swatch-colors { display: flex; height: 64px; }
.swatch-colors span { flex: 1; }
.swatch-name { display: block; padding: .5rem .7rem; font-weight: 800; font-size: .95rem; }
.swatch input:checked + .swatch-box { border-color: var(--ink); box-shadow: none; }
.swatch input:checked + .swatch-box .swatch-name::after { content: " ✓"; }
.swatch input:focus-visible + .swatch-box { outline: 3px solid var(--brand); outline-offset: 2px; }
.font-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.font-sample { font-size: 1.6rem; line-height: 1.2; display: block; }

.upload { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 700px) { .upload { grid-template-columns: 300px 1fr; } }
.upload-preview { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--t-soft); border: 2px dashed #d9cdc1; display: grid; place-items: center; color: var(--muted); font-weight: 700; text-align: center; padding: 0; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload input[type=file] { font: inherit; font-size: 1rem; }
.size-tip { background: var(--butter); border-radius: var(--r-sm); padding: .8rem 1rem; font-size: .98rem; }

/* Address suggestions */
.address-wrap { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 15; background: #fff; border: 2px solid var(--t-accent); border-top: 0; border-radius: 0 0 var(--r-sm) var(--r-sm); list-style: none; margin: -4px 0 0; padding: .3rem 0; box-shadow: 0 14px 28px rgba(43,34,40,.15); }
.suggest li { padding: .75rem 1rem; cursor: pointer; line-height: 1.35; }
.suggest li small { display: block; color: var(--muted); }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--t-soft); }

/* ---------- event page (the invitation) ---------- */
.themed-page { background: var(--t-bg); padding: 2rem 0 0; }
.host-bar { background: #fff; border: 2px solid var(--leaf); border-radius: var(--r-lg); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.host-bar h2 { font-family: var(--body); font-weight: 800; font-size: 1.15rem; margin: 0 0 .8rem; color: var(--leaf); display: flex; gap: .5rem; align-items: center; }
.host-bar .inline { gap: .6rem; }
.host-bar .share-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .9rem; }
.host-bar .share-row input { flex: 1 1 260px; min-height: 46px; font-size: .95rem; }

.invite { background: var(--t-card); border-radius: 28px; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(43,34,40,.25); text-align: center; position: relative; }
.invite-hero { aspect-ratio: 16 / 9; background: var(--t-soft); position: relative; overflow: hidden; }
.invite-hero img, .invite-hero .hero-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.invite-body { padding: 2.25rem 1.5rem 2.5rem; }
@media (min-width: 700px) { .invite-body { padding: 3rem 3.5rem 3.25rem; } }
.invite .eyebrow { color: var(--t-accent); }
.invite-title { font-family: var(--t-font); font-size: clamp(2.3rem, 7vw, 3.6rem); line-height: 1.08; color: var(--t-ink); margin: .2rem 0 1.1rem; overflow-wrap: anywhere; }
.flourish { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 0 auto 1.5rem; color: var(--t-deco); }
.flourish::before, .flourish::after { content: ""; height: 2px; width: 60px; background: currentColor; border-radius: 2px; }
.invite-when { font-size: 1.35rem; font-weight: 800; color: var(--t-ink); line-height: 1.4; }
.invite-when small { display: block; font-size: 1.15rem; font-weight: 700; color: var(--ink-2); }
.invite-where { margin-top: 1rem; font-size: 1.15rem; color: var(--ink-2); }
.invite-where strong { color: var(--t-ink); display: block; }
.invite-host { margin-top: 1.1rem; color: var(--muted); }
.invite-desc { margin: 1.75rem auto 0; max-width: 34rem; font-size: 1.1rem; color: var(--ink-2); white-space: pre-line; text-align: center; }
.invite-cta { margin-top: 2rem; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.invite-cta .small { color: var(--muted); }
.invite-badges { justify-content: center; margin-bottom: .9rem; }

.event-stack { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
.event-stack > .card { box-shadow: 0 10px 30px -20px rgba(43,34,40,.3); }
.card-title { display: flex; align-items: center; gap: .6rem; }
.card-title .icon { color: var(--t-accent); flex: none; }

.map-frame { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--r); display: block; background: var(--t-soft); }
.map-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; align-items: center; }

.you-box { background: var(--mint); border-radius: var(--r-lg); padding: 1.25rem 1.5rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; font-size: 1.1rem; }
.closed-box { background: #fff; border: 2px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem 1.5rem; text-align: center; font-weight: 700; }

/* Dish list */
.dish-groups { display: flex; flex-direction: column; gap: 1.5rem; }
.dish-group h3 { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; flex-wrap: wrap; font-family: var(--body); font-weight: 800; font-size: 1.2rem; margin: 0 0 .6rem; padding-bottom: .5rem; border-bottom: 2px solid var(--t-soft); }
.need { font-family: var(--body); font-size: .95rem; font-weight: 800; padding: .2rem .75rem; border-radius: 999px; background: var(--butter); color: var(--ink); white-space: nowrap; }
.need.done { background: var(--mint); }
.dish-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.dish-list li { display: flex; gap: .8rem; align-items: flex-start; justify-content: space-between; padding: .7rem .9rem; background: #faf6f1; border-radius: var(--r-sm); font-size: 1.05rem; }
.dish-list li.open { background: transparent; border: 2px dashed var(--line); color: var(--muted); }
.dish-list .who { color: var(--muted); }
.dish-list .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--t-accent); margin-top: .5rem; }
.dish-main { flex: 1; min-width: 0; display: flex; gap: .7rem; overflow-wrap: anywhere; }
.cat-note { color: var(--muted); font-size: .95rem; margin: -.2rem 0 .6rem; }

/* Meal calendar */
.days { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.day { display: flex; gap: 1rem; align-items: center; padding: 1rem; border-radius: var(--r); background: #faf6f1; flex-wrap: wrap; }
.day.is-open { background: #fff; border: 2px solid var(--t-soft); }
.day.is-past { opacity: .5; }
.day-date { flex: none; width: 74px; text-align: center; line-height: 1.05; border-radius: var(--r-sm); background: var(--t-soft); color: var(--t-ink); padding: .55rem 0; }
.is-today .day-date { background: var(--t-accent); color: #fff; }
.day-date .dow, .day-date .mon { display: block; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.day-date .dom { display: block; font-family: var(--serif); font-size: 1.9rem; }
.day-body { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.slot-row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.slot-label { font-weight: 800; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.taken { display: flex; gap: .6rem; align-items: flex-start; font-size: 1.05rem; overflow-wrap: anywhere; }
.check-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: var(--leaf); font-weight: 800; display: grid; place-items: center; }
.org-tools { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .95rem; }

/* Family details */
.details { display: grid; gap: 1rem; margin: 0; }
.details > div { display: grid; gap: .15rem; }
@media (min-width: 640px) { .details > div { grid-template-columns: 220px 1fr; gap: 1rem; } }
.details dt { font-weight: 800; color: var(--muted); }
.details dd { margin: 0; font-size: 1.05rem; }
.allergy { background: var(--danger-tint); border: 2px solid #f1b5aa; border-radius: var(--r); padding: 1rem 1.2rem; }
.allergy strong { color: var(--danger); display: flex; gap: .4rem; align-items: center; font-size: 1.1rem; }

/* Guest list */
.going-line { font-size: 1.25rem; font-weight: 800; color: var(--t-ink); }
.guest-chips { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.guest-chips li { background: var(--t-soft); border-radius: 999px; padding: .4rem .9rem; font-weight: 700; }

/* Updates */
.update { border-top: 2px dashed var(--line); padding-top: 1.1rem; margin-top: 1.1rem; }
.update-meta { margin-bottom: .3rem; }
.update .prose { white-space: pre-line; }

/* ---------- tables / lists ---------- */
.list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.list li:first-child { border-top: 0; }
.list.compact { border: 0; background: none; }
.list.compact li { padding: .55rem 0; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table th, .table td { padding: .8rem 1rem; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.table thead th { border-top: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #faf6f1; white-space: nowrap; }
.table tfoot th { background: #faf6f1; }
.table .num { text-align: right; }
.is-muted { opacity: .6; }
.resp { font-weight: 800; }
.resp-yes { color: var(--leaf); } .resp-maybe { color: #8a6a00; } .resp-no { color: var(--muted); }
.tabs { display: flex; gap: 1.5rem; border-bottom: 2px solid var(--line); margin-bottom: 1.25rem; }
.tabs a { text-decoration: none; color: var(--muted); font-weight: 800; padding: .6rem 0; }
.tabs a[aria-current] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--brand); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; text-align: center; }
.stat-num { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1.1; }
.stat-label { color: var(--muted); font-weight: 700; }
details > summary { cursor: pointer; font-weight: 800; }
.danger { border: 2px solid #f1b5aa; }

/* ---------- auth pages ---------- */
.auth { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 77px); }
@media (min-width: 900px) { .auth { grid-template-columns: 1fr 1fr; } }
.auth-art { position: relative; overflow: hidden; background: #e6f0db; padding: 3rem 2rem; display: flex; flex-direction: column; justify-content: center; }
.auth-art .blob { color: #c9e0ae; }
.auth-art-inner { position: relative; z-index: 1; max-width: 460px; margin: 0 auto; }
.auth-art h1 { font-size: clamp(2.3rem, 5vw, 3.3rem); line-height: 1.08; }
.auth-art ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: .8rem; font-size: 1.1rem; }
.auth-art li { display: flex; gap: .7rem; align-items: flex-start; }
.auth-art li::before { content: "✓"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; color: var(--brand); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2.5rem 16px; }
.auth-form .card { width: 100%; max-width: 480px; }
@media (max-width: 899px) { .auth-art { padding: 2.25rem 16px; } .auth-art ul { display: none; } }

/* ---------- manage page ---------- */
.thanks { background: var(--t-accent); color: #fff; border-radius: var(--r-lg); padding: 2rem 1.5rem; text-align: center; position: relative; overflow: hidden; }
.thanks h1 { color: #fff; font-family: var(--t-font); }
.thanks p { font-size: 1.15rem; }
.summary { background: #faf6f1; border-radius: var(--r); padding: 1.1rem 1.25rem; font-size: 1.05rem; white-space: pre-line; }
.prompt { border: 3px solid var(--t-accent); }

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .host-bar, #respond, form, .btn, .map-card, .invite-cta { display: none !important; }
  body, .themed-page { background: #fff; }
  .card, .invite { box-shadow: none; border: 0; }
  .day, .dish-group { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Step numbers count only the steps currently shown */
.steps, .form-steps { counter-reset: step; }
.steps .step-num::before, .form-steps .form-section .step-num::before { counter-increment: step; content: counter(step); }
.form-section h2 .step-num { width: 44px; height: 44px; font-family: var(--body); font-weight: 800; font-size: 1.15rem; }
.field { position: relative; }

/* Dashboard */
.dash-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .dash-grid { grid-template-columns: repeat(3, 1fr); } }
.event-card .count-line { font-weight: 800; color: var(--t-accent); }
.new-card { border: 3px dashed var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 2rem; text-decoration: none; color: var(--ink); min-height: 260px; font-weight: 800; font-size: 1.15rem; background: rgba(255,255,255,.5); }
.new-card:hover { border-color: var(--brand); color: var(--brand); }
.new-card .plus { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 2.2rem; line-height: 1; }

/* Privacy policy and other long text */
.prose-page { max-width: 820px; }
.prose-page h2 { margin-top: 2rem; }
.prose-page h3 { margin-top: 1.25rem; font-family: var(--body); font-weight: 800; }
.prose-page ul { padding-left: 1.3rem; }
.prose-page li { margin-bottom: .5rem; }
