:root {
  --green: #2f6b4f;
  --green-dark: #22503b;
  --cream: #fbf8f2;
  --ink: #23302a;
  --muted: #5d6b64;
  --line: #e3ddd0;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(35, 48, 42, 0.16);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; overflow-x: hidden; }
main { max-width: 1040px; margin: 0 auto; padding: 0 20px 96px; }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
/* Whatever the page scrolls to stops below the sticky header, not under it: menu links (/#how, /#pricing),
   linked sections (/family#share-news, /organizer#org-ledger), and links or buttons reached with Shift+Tab.
   Set on everything in main, not per target, so nothing scrolled to is left out. Not as scroll-padding on the
   page: that would scroll the page back to the top whenever focus returns to the header's own ☰ button. */
main * { scroll-margin-top: 88px; }
/* A box the cursor is sent back to (a refused form) keeps its label in view above it, below the header. */
main .field :is(input, textarea, select) { scroll-margin-top: 128px; }
/* A message scrolled up into view stops clear of the screen's bottom edge, not a fraction of a pixel past it. */
main :is(.form-error, [role="status"]) { scroll-margin-bottom: 8px; }
.brand {
  font-weight: 700; color: var(--green-dark); text-decoration: none; font-size: 1.1rem;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
}
.brand-logo { width: 36px; height: 36px; flex: none; }
.site-nav { display: flex; gap: 8px; }
.site-nav a {
  color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 8px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav a:hover { background: var(--cream); }
/* Marked without bolding: a bolder link is wider and would nudge the rest of the row on every page. */
.site-nav a[aria-current="page"], .site-nav a[aria-current="location"] { color: var(--green-dark); background: var(--cream); box-shadow: inset 0 -3px 0 var(--green-dark); }
.menu-toggle, .menu-close { display: none; }
/* The ten links fit one row from 1024px; below 1280px they sit a little closer together to do so. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-header { padding: 12px 16px; }
  .site-nav { gap: 2px; }
  .site-nav a { padding: 10px 6px; font-size: 0.95rem; }
}

.hero { text-align: center; padding: 56px 0 32px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.2; margin: 0 0 16px; overflow-wrap: anywhere; }
.hero p { color: var(--muted); max-width: 640px; margin: 0 auto 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { background: #a9bdb2; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h2 { font-size: 1.1rem; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }
/* `.card p` outranks a lone class, so a paragraph in a card that needs room says `.card` too: an intro or a
   running total stands apart from the form under it (as the paper request's intro does), and a hint sits clear of its box. */
.card .news-intro, .card .fee-total { margin: 0 0 16px; }
.card .signup-summary, .dir-join > .hint { margin: 0 0 12px; }
.card .field > :is(input, textarea, select) + .hint { margin-top: 4px; }
.card-lead { grid-column: 1 / -1; border: 2px solid var(--green); padding: 24px; }
.card-lead h2 { font-size: clamp(1.3rem, 3.5vw, 1.6rem); }
.card-lead .lead-tag, .fee-match .lead-tag, .signups .lead-tag, .org-signups .lead-tag, .org-lodging .lead-tag, .org-handoff .lead-tag,
.org-directory .lead-tag, .dir-mine .lead-tag, .org-family .lead-tag, .org-news .lead-tag, .org-newsletter .lead-tag, .try-badge, .home-try .lead-tag, .home-beta .lead-tag, .beta-badge {
  display: inline-block; margin: 0 0 8px; padding: 2px 10px; border-radius: 999px;
  background: #e3f1e9; color: #1e4d36; font-size: 0.85rem; font-weight: 700;
}
.card-lead .lead-points { margin: 12px 0 16px; padding-left: 1.2em; color: var(--ink); }
.lead-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-actions .btn:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
@media (max-width: 720px) { .lead-actions .btn { flex: 1 1 100%; } }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.timeline-step ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.timeline-step li + li { margin-top: 6px; }
/* Each job is a tick box with a thumb-sized row; the list loses its bullets once the boxes are there. */
.timeline-step li.check-item { list-style: none; margin-left: -1.2em; }
.timeline-step li + li.check-item { margin-top: 0; }
.check-item label { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; cursor: pointer; }
.check-item input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.check-item label:has(input:checked) { text-decoration: line-through; }
.checklist-progress { text-align: center; color: var(--green-dark); font-weight: 600; margin: 0 0 16px; }
.checklist-reset { text-align: center; margin: 16px 0 0; }
.checklist-reset .btn[hidden] { display: none; }
.when {
  display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--green); margin-bottom: 4px;
}
.band { margin-top: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.band h2 { margin-top: 0; }

/* Main family page */
.reunion-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin: 0 0 12px; }
.reunion-facts dt { color: var(--muted); font-size: 0.9rem; }
.reunion-facts dd { margin: 0; font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; }
#family-welcome, #reunion-details { white-space: pre-line; overflow-wrap: anywhere; }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.news-list h3 { margin: 0 0 6px; font-size: 1.05rem; overflow-wrap: anywhere; }
.news-list p { margin: 0; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.news-list .news-from { margin-top: 8px; font-style: italic; }
.news-list .news-date { margin-top: 2px; font-size: 0.9rem; }
/* A post's photos, however many: a grid of squares that wraps to fit a phone. */
.news-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-top: 10px; }
.news-photos a { display: block; min-height: 44px; }
.news-photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #eef2ef; }
.news-photo-picks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.news-photo-picks li { display: grid; gap: 4px; }
.news-photo-picks img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.news-photo-remove { min-height: 44px; padding: 4px 6px; font-size: 0.9rem; }
.news-photo-field input[type="file"] { max-width: 100%; min-height: 44px; }
.news-list + .empty:not([hidden]) { padding: 8px 0 0; text-align: left; }
.news-older { margin: 8px 0 0; }
/* Reactions and comments under each family news post. Every button is a 44px tap target, and the row wraps on a phone. */
.news-reactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.reaction {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 44px;
  padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  font: inherit; font-size: 1.1rem; cursor: pointer;
}
.reaction:hover { border-color: var(--green); }
.reaction[aria-pressed="true"] { background: #e6f0ea; border-color: var(--green); }
/* Saving: the tap is in and waiting for the server (after any taps before it). */
.reaction[aria-busy="true"] { border-style: dashed; border-color: var(--green); cursor: progress; animation: reaction-saving 1s ease-in-out infinite alternate; }
@keyframes reaction-saving { to { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .reaction[aria-busy="true"] { animation: none; opacity: 0.7; } }
.reaction-count { font-size: 0.9rem; font-weight: 600; color: var(--green-dark); }
.reaction-count:empty { display: none; }
.news-comments-wrap { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.news-list .news-comments-heading { margin: 0 0 6px; font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.news-comments { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.news-comments li { background: var(--cream); border-radius: 8px; padding: 8px 12px; }
.news-list .comment-body { color: var(--ink); }
.news-list .comment-from { margin-top: 2px; font-size: 0.9rem; font-style: italic; }
.comment-box summary {
  display: flex; align-items: center; min-height: 44px; width: fit-content; cursor: pointer;
  color: var(--green-dark); font-weight: 600;
}
.comment-form { margin-top: 8px; }
.comment-form .field { margin-bottom: 12px; }
.comment-form .field textarea { min-height: 64px; }
.news-list .comment-status { margin-top: 8px; color: var(--green-dark); font-weight: 600; }
.news-list .comment-status:empty { display: none; }
.news-older a { display: flex; align-items: center; min-height: 44px; width: fit-content; color: var(--green-dark); font-weight: 600; }
.family-links { margin-top: 40px; }
.family-links a.card { color: var(--ink); text-decoration: none; min-height: 44px; }
.family-links a.card:hover { border-color: var(--green); }
.family-links a.card:focus-visible, .hero .btn:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }

.site-footer { text-align: center; color: var(--muted); padding: 24px; font-size: 0.9rem; }

/* Forms (RSVP, organizer key, record payment) */
.form-card { max-width: 560px; margin: 0 auto; }
/* A form inside a titled band (Share your news) starts under its heading, not floating off in the middle. */
.band > .form-card { margin-left: 0; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="tel"],
.field input[type="url"], .field input[type="search"], .field textarea, .field select,
.pay-form input, .pay-form select, .refund-form input, .refund-form select, .waiver-form input[type="text"] {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink);
  border: 1px solid #8a968f; border-radius: 8px; background: #fff;
}
.field textarea { display: block; min-height: 88px; resize: vertical; }
.hint, .optional, .count-fee { color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.hint { margin: 6px 0 0; }
/* Links inside a line of text look like every other link in the app — the green, not the browser's default blue. */
.hint a, .try-beta a { color: var(--green-dark); font-weight: 600; }
/* "Not Aunt Rosa?" under the family page's name box: a quiet link-style button, still a 44px tap target. */
.not-you {
  display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; margin: 2px 0 0; padding: 0;
  border: 0; background: none; font: inherit; font-size: 0.9rem; color: var(--green-dark);
  text-decoration: underline; text-align: left; overflow-wrap: anywhere; cursor: pointer;
}
.not-you[hidden] { display: none; }
.news-trust[hidden] { display: none; }
.field .check-line { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; font-weight: 400; cursor: pointer; }
.check-line input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--green); }
.choice label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; }
.choice input { width: 22px; height: 22px; margin: 0; accent-color: var(--green); }
.counts:disabled { opacity: 0.5; }
.count-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.count-row + .count-row { border-top: 1px solid var(--line); }
.count-row label { font-weight: 400; }
.count-label { display: block; font-weight: 600; }
.stepper { display: flex; align-items: center; flex: none; }
.stepper input {
  width: 56px; min-height: 44px; text-align: center; font: inherit; border: 1px solid #8a968f; border-radius: 0;
  border-left: 0; border-right: 0; -moz-appearance: textfield;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.step {
  width: 44px; height: 44px; font-size: 1.3rem; background: var(--cream); color: var(--ink);
  border: 1px solid #8a968f; cursor: pointer;
}
.step:first-child { border-radius: 8px 0 0 8px; }
.step:last-child { border-radius: 0 8px 8px 0; }
.fee-total { font-size: 1.1rem; margin: 0 0 16px; }
.fee-total .head-line { display: block; margin-bottom: 4px; }
/* Fee payment plans */
.plan-choice .hint { margin: 0 0 4px; }
.plan-choice .plan-preview { margin-top: 6px; }
.plan-list { margin: 8px 0 0; padding-left: 1.4em; }
.plan-list li { margin: 4px 0; overflow-wrap: anywhere; }
.plan-list .plan-paid { color: var(--green); }
.plan-list .plan-late { color: #8a1c14; font-weight: 600; }
.plan-sub { display: block; font-size: 0.85rem; margin-top: 4px; }
.plan-sub.plan-late { color: #8a1c14; font-weight: 600; }
.form-error { background: #fdecea; color: #8a1c14; border-radius: 8px; padding: 10px 12px; margin: 0 0 16px; }
.form-error .rsvp-signin-link { display: inline-flex; align-items: center; min-height: 44px; color: #8a1c14; font-weight: 600; }
.form-success { color: var(--green); font-weight: 600; margin: 0 0 16px; }
.form-success:empty { display: none; }
.news-intro { margin: 0 0 16px; }
.done h2 { margin-top: 0; }
.done .pay-note { background: var(--cream); color: var(--ink); border-radius: 8px; padding: 10px 12px; overflow-wrap: anywhere; }
.done:focus { outline: none; }
.pay-box { background: var(--cream); border-radius: 8px; padding: 12px; margin: 0 0 12px; }
.pay-box .pay-code-line { margin: 0; color: var(--ink); font-weight: 600; }
.pay-box .pay-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.15rem; letter-spacing: 0.04em; }
.pay-box .hint { margin: 4px 0 10px; }
.pay-box .btn[hidden] { display: none; }
.key-box .key-link { display: block; width: 100%; box-sizing: border-box; min-height: 44px; margin: 0 0 10px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; }
.pay-box .btn:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
/* Pay right on the RSVP page */
.balance-card { margin-bottom: 16px; }
.balance-card h2 { margin-top: 0; }
.balance-card .pay-box { margin: 0; }
.balance-card .form-success { color: var(--green-dark); margin: 0 0 12px; }
.pay-box .pay-due { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-box .pay-zelle { margin: 10px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.pay-box .form-error { margin: 10px 0 0; }
@media (max-width: 480px) { .pay-methods .btn { flex: 1 1 100%; } }
.change-box input { width: 100%; min-height: 44px; margin: 0 0 8px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; }
.form-card :focus-visible, .ledger :focus-visible, .ledger-tools :focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }

/* Organizer fee ledger */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat-label { color: var(--muted); font-size: 0.9rem; }
.stat-value { display: block; font-size: 1.5rem; font-weight: 700; }
.stat-sub { display: block; color: var(--muted); font-size: 0.85rem; }
.ledger-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ledger-tools h2 { margin: 0; }
.ledger-tools select { min-height: 44px; padding: 8px 10px; font: inherit; border: 1px solid #8a968f; border-radius: 8px; background: #fff; }
.ledger { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ledger th, .ledger td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger th { background: var(--cream); font-size: 0.9rem; }
.ledger .num { text-align: right; white-space: nowrap; }
.ledger .who { font-weight: 600; }
.ledger .btn-link-new { display: block; min-height: 44px; margin-top: 6px; font-size: 0.85rem; font-weight: 400; }
.ledger .key-link { display: block; width: 100%; box-sizing: border-box; min-height: 44px; margin-top: 6px; font: 400 0.8rem ui-monospace, Menlo, Consolas, monospace; }
.ledger .sub { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 400; white-space: pre-line; overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.badge-unpaid { background: #fdecea; color: #8a1c14; }
.badge-partial { background: #fff4d6; color: #6b4a00; }
.badge-paid, .badge-overpaid { background: #e3f1e9; color: #1e4d36; }
.badge-refund-owed { background: #fff4d6; color: #6b4a00; }
.badge-nothing-due { background: #eceae4; color: #3f4a44; }
.ledger .who .flag { display: block; margin-top: 2px; }
/* Smaller than the row's paid/unpaid badge, and not a .badge, so it never reads as the household's status. */
.email-unconfirmed { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #fff4d6; color: #6b4a00; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.pay-form { display: flex; gap: 6px; align-items: center; }
/* A household's own problem shows in its row, under the form or button that hit it. */
.ledger td > .form-error, .ledger .waiver > .form-error, .ledger .fee-plan > .form-error { margin: 8px 0 0; }
.pay-form input { width: 96px; }
.pay-form select { width: auto; }
.pay-form .btn { padding: 8px 14px; white-space: nowrap; }
/* Payment history: every payment recorded for a household, each removable */
.payment-history { margin-top: 6px; }
.payment-history summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--green-dark); font-size: 0.9rem; }
.payment-list { list-style: none; margin: 0; padding: 0; }
.payment-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px solid var(--line); }
.payment-list .payment-what { font-weight: 600; overflow-wrap: anywhere; }
.payment-list .btn { min-height: 44px; padding: 8px 14px; white-space: nowrap; }
/* Record a refund: money given back, under the household's payment history */
.refund-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); }
.refund-form .refund-label { flex: 1 1 100%; font-size: 0.9rem; font-weight: 600; }
.refund-form input { width: 96px; }
.refund-form select { width: auto; }
.refund-form .btn { min-height: 44px; padding: 8px 14px; white-space: nowrap; }
/* Private hardship reductions (organizer only) */
.ledger .fee-amount { display: block; }
.waiver { margin-top: 6px; }
.waiver summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--green-dark); font-size: 0.9rem; }
.waiver-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.waiver-form label { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 0.9rem; }
.waiver-form .waiver-amount input { width: 96px; }
.waiver-form .waiver-full input { width: 22px; height: 22px; }
.waiver-form input[name="note"] { flex: 1 1 100%; box-sizing: border-box; }
.waiver-form .btn { padding: 8px 14px; white-space: nowrap; }
/* Installment payments per household (organizer) */
.ledger .fee-plan { margin-top: 6px; }
.ledger .fee-plan summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--green-dark); font-size: 0.9rem; }
.plan-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.plan-form select { min-height: 44px; max-width: 100%; padding: 8px 10px; font: inherit; font-size: 0.95rem; border: 1px solid #8a968f; border-radius: 8px; background: #fff; }
.plan-form .btn { padding: 8px 14px; white-space: nowrap; }
/* Head count by age (organizer) */
.head-count { margin-bottom: 20px; border-top: 4px solid var(--green); }
.head-count-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.head-count-top h2 { margin: 0; font-size: 1.3rem; }
.head-count .hint { margin: 8px 0 12px; }
.head-count-table { width: 100%; border-collapse: collapse; }
.head-count-table th, .head-count-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.head-count-table thead th { background: var(--cream); font-size: 0.9rem; }
.head-count-table .num { text-align: right; white-space: nowrap; }
.head-count-table tbody th .sub, .head-count-table tfoot th .sub { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 400; }
.head-count-table tfoot th, .head-count-table tfoot td { font-weight: 700; border-bottom: 0; }
.head-count-table tfoot .head-count-reduced th, .head-count-table tfoot .head-count-reduced td { font-weight: 400; }
.head-count .head-count-food { margin: 12px 0 0; color: var(--ink); font-weight: 600; }
.head-count .share-status { margin: 6px 0 0; min-height: 1.55em; color: var(--green-dark); font-weight: 600; }
.head-count :focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
/* Dietary and special needs, under the head count */
.diet-needs-summary { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.diet-needs-summary h3 { margin: 0 0 8px; font-size: 1.1rem; }
.diet-totals { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.diet-totals li { padding: 6px 10px; border-radius: 999px; background: var(--cream); font-size: 0.95rem; }
.diet-households { margin: 0; padding: 0; list-style: none; }
.diet-households li { padding: 8px 0; overflow-wrap: anywhere; }
.diet-households li + li { border-top: 1px solid var(--line); }
.diet-households .sub { display: block; color: var(--muted); font-size: 0.9rem; white-space: pre-line; }
.diet-needs-summary .diet-none { margin: 0; color: var(--muted); font-size: 0.9rem; }
.diet-totals:empty, .diet-households:empty { display: none; }
@media (max-width: 720px) {
  .head-count { padding: 16px 12px; }
  .head-count-top .btn { flex: 1 1 100%; }
  .head-count-table th, .head-count-table td { padding: 8px 4px; font-size: 0.95rem; }
  .head-count-table thead th { font-size: 0.8rem; white-space: normal; }
}
/* Web app: organizer's RSVP link to send relatives */
.share-card { margin-bottom: 20px; }
.share-card p { margin: 0 0 12px; }
.share-card .field input { width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink); border: 1px solid #8a968f; border-radius: 8px; background: #fff; }
.share-card #share-link { background: var(--cream); overflow: hidden; text-overflow: ellipsis; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nl-quiet .share-actions[hidden] { display: none; }
.share-card .share-status { margin: 10px 0 0; min-height: 1.55em; color: var(--green-dark); font-weight: 600; }
.share-card .share-pay-warning { background: #fff4d6; color: #5c3d00; border: 1px solid #e0b44c; border-radius: 8px; padding: 10px 12px; font-weight: 600; overflow-wrap: anywhere; }
.invite-delivery { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 4px; }
.invite-delivery h3 { font-size: 1.1rem; margin: 14px 0 6px; }
.card .invite-delivery .hint { margin: 0 0 8px; }
.invite-badge { font-weight: 600; white-space: nowrap; }
.invite-stale .invite-badge, .invite-stale .slot-detail { color: #7a4a00; }
.card .invite-stale .slot-detail { color: #7a4a00; }
.invite-rsvped .invite-badge { color: var(--green-dark); }
.share-card :focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
/* Side by side on wider screens, so the link to send is on a laptop's first screen after signing in. */
@media (min-width: 721px) { .share-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-items: start; } }
@media (max-width: 720px) { .share-actions .btn { flex: 1 1 100%; } }
.empty { color: var(--muted); text-align: center; padding: 24px; }
.locked-out { text-align: right; margin: 0 0 12px; }
/* The organizer's jump bar: one link per section, in page order, so nothing is only reachable by scrolling. */
.org-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.org-jump .btn { padding: 8px 14px; font-size: 0.95rem; }
.org-jump #org-signout { margin-left: auto; }
/* With a mouse there is room for smaller chips, which keeps the RSVP link on a laptop's first screen. */
@media (min-width: 721px) and (pointer: fine) {
  .org-jump { gap: 6px; margin-bottom: 12px; }
  .org-jump .btn { min-height: 32px; padding: 3px 12px; font-size: 0.9rem; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }

@media (max-width: 720px) {
  /* The ledger becomes one card per household so nothing scrolls sideways. */
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100%; }
  .ledger { border: 0; background: none; }
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger tr { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 6px 0; }
  .ledger td { border: 0; padding: 6px 14px; display: flex; justify-content: space-between; gap: 12px; }
  .ledger td[data-label]::before { content: attr(data-label); color: var(--muted); font-weight: 400; }
  .ledger td.who { display: block; }
  .ledger .num { text-align: right; }
  .pay-form { flex-wrap: wrap; width: 100%; }
  .pay-form input, .pay-form select { flex: 1 1 100px; }
  .pay-form .btn { flex: 1 1 100%; }
  .refund-form input, .refund-form select { flex: 1 1 100px; }
  .refund-form .btn { flex: 1 1 100%; }
  .ledger td.pay-cell { flex-wrap: wrap; }
  .waiver, .payment-history, .ledger .fee-plan { flex: 1 1 100%; }
  .waiver-form .btn, .plan-form select, .plan-form .btn { flex: 1 1 100%; }
}

/* Phones and tablets: the ten links do not fit one row below 1024px, so they live in a ☰ drawer. */
@media (max-width: 1023px) {
  .menu-toggle, .menu-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; font-size: 1.4rem; background: none; border: 0; cursor: pointer; color: var(--ink);
  }
  .menu-close { align-self: flex-end; }
  .site-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(280px, 80vw);
    flex-direction: column; padding: 12px; background: #fff; box-shadow: var(--shadow);
    transform: translateX(100%); transition: transform 0.2s ease; z-index: 70; visibility: hidden;
    /* On short screens (a phone turned sideways) the links scroll inside the drawer instead of falling off the bottom. */
    overflow-y: auto; overscroll-behavior: contain;
  }
  .site-nav > * { flex-shrink: 0; }
  /* The page behind the open drawer stays put, so swipes scroll the menu. */
  body.menu-open { overflow: hidden; }
  .site-nav.open { transform: none; visibility: visible; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 60; }
  /* Lift the open drawer above the floating Send Feedback button (80), still under the feedback dialog (90+). */
  .menu-open .site-header { z-index: 85; }
}

/* Fee collection tied to RSVPs: match a Venmo / PayPal / bank statement to households */
.fee-match { margin-bottom: 20px; border: 2px solid var(--green); }
.fee-match h2 { margin: 0; font-size: 1.3rem; }
.fee-match > .hint { margin: 6px 0 12px; }
.match-form { display: grid; grid-template-columns: 1fr 180px; gap: 0 12px; align-items: end; }
.match-form .match-paste { grid-column: 1 / -1; }
.match-form .field { margin-bottom: 12px; }
.match-form textarea { min-height: 56px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; }
.match-form input[type="file"] { width: 100%; min-height: 44px; padding: 8px 0; font: inherit; }
.match-form .btn { justify-self: start; }
.match-summary { margin: 12px 0 10px; color: var(--ink); font-weight: 600; }
.match-summary:empty { display: none; }
.match-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.match-table th, .match-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.match-table thead th { background: var(--cream); font-size: 0.9rem; }
.match-table .num { text-align: right; white-space: nowrap; }
.match-table .who { font-weight: 600; overflow-wrap: anywhere; }
.match-table .sub { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 400; overflow-wrap: anywhere; margin-top: 2px; }
.match-table select { min-height: 44px; width: 100%; max-width: 280px; padding: 8px 10px; font: inherit; border: 1px solid #8a968f; border-radius: 8px; background: #fff; }
.fee-match :focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
@media (max-width: 720px) {
  .fee-match { padding: 16px 12px; }
  .match-form { grid-template-columns: 1fr; }
  .match-form .btn, #match-record { width: 100%; }
  /* One card per payment so nothing scrolls sideways. */
  .match-table, .match-table tbody, .match-table tr, .match-table td { display: block; width: 100%; }
  .match-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .match-table tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 6px 0; }
  .match-table td { border: 0; padding: 6px 12px; }
  .match-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 0.85rem; }
  .match-table .num { text-align: left; }
  .match-table select { max-width: none; }
}

/* Potluck and task sign-ups: the board on the RSVP page and the organizer page */
.signups { max-width: 760px; margin: 20px auto 0; }
.org-signups { margin-bottom: 20px; }
.signups h2, .org-signups h2, .org-lodging h2 { margin: 0; font-size: 1.3rem; }
.signups > .hint, .org-signups > .hint, .org-lodging > .hint { margin: 6px 0 12px; }
.signups .field input { width: 100%; max-width: 360px; }
.signup-summary { margin: 0 0 12px; color: var(--ink); font-weight: 600; }
.signup-summary:empty, .signup-missing:empty, .signup-status:empty { display: none; }
.signup-missing { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: #fff4d6; color: #4d3500; overflow-wrap: anywhere; }
.signup-status { margin: 0 0 12px; color: var(--green-dark); font-weight: 600; }
.signup-board h3 { font-size: 1.05rem; margin: 16px 0 8px; }
/* See who's coming: the guest-facing list of households that said yes, and the line up top that links to it */
.coming h2 { margin-bottom: 10px; }
.coming-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 8px; }
.coming-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.coming-name { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.coming-people { color: var(--muted); font-size: 0.95rem; white-space: nowrap; }
.hero .coming-teaser { margin: -8px auto 16px; }
.coming-teaser a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 600; color: var(--green-dark); overflow-wrap: anywhere; }
.slot-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; }
.slot { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.slot-mine { border: 2px solid var(--green); background: #f3f9f5; }
.slot-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.slot-title { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.card .slot-detail { margin: 0; font-size: 0.9rem; color: var(--muted); overflow-wrap: anywhere; }
.slot-people { margin: 0; padding-left: 1.1em; font-size: 0.95rem; color: var(--ink); overflow-wrap: anywhere; }
.slot-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.slot-form input { flex: 1 1 140px; min-width: 0; min-height: 44px; padding: 8px 10px; font: inherit; color: var(--ink); border: 1px solid #8a968f; border-radius: 8px; background: #fff; }
.slot-form .btn { padding: 8px 16px; }
.slot-add { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr 1fr 140px; gap: 0 12px; align-items: end; }
.slot-add h3 { grid-column: 1 / -1; margin: 0 0 10px; font-size: 1.05rem; }
.slot-add .field { margin-bottom: 12px; }
.slot-add .field input { width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink); border: 1px solid #8a968f; border-radius: 8px; background: #fff; }
.slot-add .btn { justify-self: start; }
.slot-add > .form-error, .slot-add > .signup-status { grid-column: 1 / -1; margin: 12px 0 0; }
.signup-next { margin: 0 0 12px; }
.signup-next .btn[hidden], .signup-next[hidden] { display: none; }
.signups :focus-visible, .org-signups :focus-visible, .org-lodging :focus-visible, .signup-next :focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
.org-signups h2:focus, .org-lodging h2:focus { outline: none; }
@media (max-width: 720px) {
  .signups, .org-signups { padding: 16px 12px; }
  .slot-form .btn, .slot-add .btn, .signup-next .btn { flex: 1 1 100%; width: 100%; }
  /* 'Change this RSVP' matches the full-width buttons above it, and the card ends clear of the floating
     feedback button (56px, 16px off the bottom), so that button never sits over the card's last button. */
  #rsvp-again { width: 100%; }
  .done { padding-bottom: 76px; }
  .slot-add { grid-template-columns: 1fr; }
}

/* Lodging block sign-ups: the RSVP page's places to stay and the organizer's rooming list */
.signup-next { display: flex; flex-wrap: wrap; gap: 8px; }
.lodging-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.lodging .field input { max-width: none; }
.slot-form .count-input { flex: 0 0 88px; }
.count-unit { align-self: center; color: var(--muted); font-size: 0.95rem; }
.lodging-elsewhere { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.card .lodging-elsewhere .hint { flex: 1 1 280px; margin: 0; }
.org-lodging { margin-bottom: 20px; }
.card .stay-note { margin: 2px 0 0; font-size: 0.9rem; color: var(--muted); font-style: italic; overflow-wrap: anywhere; }
.org-lodging .slot-add { grid-template-columns: 180px 1fr 1fr 160px; }
@media (max-width: 720px) {
  .org-lodging { padding: 16px 12px; }
  .lodging-fields, .org-lodging .slot-add { grid-template-columns: 1fr; }
  .lodging-elsewhere .btn { flex: 1 1 100%; width: 100%; }
  .slot-form .count-input { flex: 0 0 80px; }
}
.card .lodging-away { margin: 0 0 12px; color: var(--muted); overflow-wrap: anywhere; }
.lodging-away:empty { display: none; }
.card .lodging-download { margin: 16px 0 0; }

/* Organizer hand-off to next year: the organizer's carry-over packet and the successor's take-over page */
.org-handoff { margin-bottom: 20px; border: 2px solid var(--green); }
.org-handoff h2 { margin: 0; font-size: 1.3rem; }
.org-handoff h2:focus { outline: none; }
.org-handoff > .hint { margin: 6px 0 16px; }
.org-handoff h3 { font-size: 1.1rem; margin: 20px 0 10px; }
.org-handoff h4 { font-size: 1rem; margin: 0 0 8px; }
.handoff-stats { margin-bottom: 12px; }
.handoff-pass { background: var(--cream); border-radius: 10px; padding: 4px 16px 16px; }
.card .handoff-current { margin: 0 0 12px; color: var(--ink); }
.card .handoff-current:empty { display: none; }
.handoff-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0 12px; align-items: end; }
.handoff-form .field { margin-bottom: 12px; }
.handoff-form .btn { margin-bottom: 12px; }
.handoff-form .btn[hidden] { display: none; }
#handoff-new-year-form, #handoff-this-year-form { grid-template-columns: minmax(0, 220px) auto; justify-content: start; }
.org-handoff .field input, .handoff-accept .field input {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink); border: 1px solid #8a968f; border-radius: 8px; background: #fff;
}
.handoff-link-box { margin-top: 4px; }
.handoff-link-box[hidden] { display: none; }
#handoff-link, #handoff-key { background: #fff; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9rem; }
.handoff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
/* Past attendance gets a whole row: Contacts and Budget side by side above it on wider screens, so the
   four-column table has room and '2027 (this year)' stays on one line. */
@media (min-width: 721px) { .handoff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.handoff-attendance-part { grid-column: 1 / -1; }
.handoff-part { border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; }
/* Starting the next reunion wipes the one being planned: said in the error colours, not as a quiet hint. */
.card .handoff-part > .handoff-danger { background: #fdecea; color: #8a1c14; border-radius: 8px; padding: 10px 12px; }
.handoff-grid + .handoff-part, :not(.handoff-grid) > .handoff-part + .handoff-part { margin-top: 12px; }
.card .handoff-part > p { margin: 0 0 10px; }
.handoff-budget { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; margin: 0; }
.handoff-budget dt { color: var(--muted); overflow-wrap: anywhere; }
.handoff-budget dd { margin: 0; text-align: right; font-weight: 600; }
.card .handoff-part > .handoff-budget-past { margin: 10px 0 0; }
.handoff-budget-past[hidden] { display: none; }
.handoff-table { width: 100%; border-collapse: collapse; }
.handoff-table th, .handoff-table td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.handoff-table thead th { background: var(--cream); font-size: 0.9rem; }
.handoff-table .num { text-align: right; }
.handoff-table .nowrap { white-space: nowrap; }
.handoff-vendors { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.handoff-vendor { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.handoff-vendor .sub { display: block; color: var(--muted); font-size: 0.9rem; }
.handoff-vendor-actions { display: flex; gap: 8px; flex: none; }
.slot-add .btn[hidden] { display: none; }
.slot-add .btn + .btn { margin-top: 8px; }
.org-handoff .vendor-add { grid-template-columns: 1fr 1fr 1fr 110px auto; margin-top: 8px; }
.handoff-checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 8px 16px; }
.handoff-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.handoff-step legend { font-weight: 600; padding: 0; margin-bottom: 2px; }
.handoff-step .choice label { align-items: flex-start; padding: 10px 0; min-height: 44px; font-size: 0.95rem; }
.handoff-step .choice input { flex: none; margin-top: 1px; }
.handoff-accept { margin-top: 0; }
.handoff-accept h2:focus { outline: none; }
.card .handoff-accept p, .handoff-accept > p { margin: 0 0 12px; color: var(--ink); }
.handoff-inherit { margin: 0 0 16px; padding-left: 1.2em; }
.handoff-inherit[hidden], .handoff-accept .btn[hidden], #handoff-done[hidden] { display: none; }
.handoff-accept .share-status { margin: 10px 0 0; min-height: 1.55em; color: var(--green-dark); font-weight: 600; }
.step-link { margin: 12px 0 0; }
.step-link a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green-dark); font-weight: 600; }
.org-handoff :focus-visible, .handoff-accept :focus-visible, .step-link a:focus-visible, .locked-out a:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
@media (max-width: 720px) {
  .org-handoff { padding: 16px 12px; }
  .handoff-pass { padding: 4px 12px 12px; }
  .handoff-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .handoff-form, #handoff-new-year-form, #handoff-this-year-form, .org-handoff .vendor-add { grid-template-columns: 1fr; }
  .handoff-form .btn, .org-handoff .vendor-add .btn, .handoff-accept .btn, .org-handoff .share-actions .btn { width: 100%; }
  /* Four columns and '2027 (this year)' kept whole fit a 375px-wide phone without spilling out of the card. */
  .handoff-table { font-size: 0.9rem; }
  .handoff-table thead th { font-size: 0.85rem; }
  .handoff-table th, .handoff-table td { padding: 6px 2px; }
  .handoff-vendor { flex-wrap: wrap; }
  .handoff-vendor-actions { flex: 1 1 100%; }
  .handoff-vendor .btn { flex: 1 1 0; }
}
/* Short pages keep their main button clear of the floating Send Feedback button on a phone. */
@media (max-width: 720px) { .hero-compact { padding: 24px 0 16px; } .hero-compact p { margin-bottom: 8px; } }

/* Self-updating family directory: the directory page and the organizer's directory card. */
.dir-progress-line { margin: 0 0 10px; font-weight: 600; }
.dir-meter { height: 12px; border-radius: 999px; background: #eceae4; overflow: hidden; }
.dir-meter span { display: block; height: 100%; width: 0; background: var(--green); }
.dir-mine, .dir-family, .dir-join { margin-top: 24px; }
.dir-mine { max-width: 720px; border: 2px solid var(--green); }
.dir-join { max-width: 720px; }
.dir-mine h2:focus, .dir-join h2:focus, .org-directory h2:focus, .dir-links h3:focus { outline: none; }
.card .dir-mine .hint, .dir-mine > .hint { margin: 0 0 12px; color: var(--ink); }
.dir-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.dir-form .dir-wide { grid-column: 1 / -1; }
.dir-form .share-actions { margin-top: 4px; }
.dir-person-form { margin: 12px 0 20px; }
.dir-person-form h3 { margin: 0 0 8px; }
.dir-keep { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.dir-forget { margin: 12px 0 0; text-align: right; }
.dir-search { max-width: 360px; }
.card .dir-family > .hint, .dir-family > .hint { margin: 0 0 12px; }
.dir-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.dir-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; overflow-wrap: anywhere; }
.dir-card[hidden] { display: none; }
.dir-card address { font-style: normal; margin: 6px 0; }
.card .dir-card p { margin: 4px 0; }
.dir-card a { color: var(--green-dark); display: inline-flex; align-items: center; min-height: 44px; }
.card .dir-members { color: var(--muted); font-size: 0.95rem; }
.dir-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 0 20px; }
.dir-row { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.dir-row .dir-who { flex: 1 1 8em; }
.dir-me { min-height: 44px; padding: 8px 14px; }
.dir-me-form { flex: 1 1 100%; display: grid; gap: 8px; padding: 4px 0 6px; }
.dir-me-form[hidden] { display: none; }
.dir-me-form .field, .dir-me-form .hint, .dir-me-form .signup-status, .dir-me-form .form-error { margin: 0; }
.dir-name { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.dir-who { display: flex; flex-direction: column; min-width: 0; }
.dir-household { color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }
.org-directory { margin-bottom: 20px; border: 2px solid var(--green); }
.org-directory h2 { margin: 0; font-size: 1.3rem; }
.org-directory > .hint { margin: 6px 0 16px; }
.org-directory h3 { font-size: 1.1rem; margin: 20px 0 10px; }
.org-directory .field input { width: 100%; }
.dir-round-form .hint { margin: 0 0 12px; align-self: center; }
.dir-links { background: var(--cream); border-radius: 10px; padding: 4px 16px 12px; }
.dir-link-list, .dir-entries { list-style: none; margin: 0; padding: 0; }
.dir-link, .dir-entry { padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.dir-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card .dir-entry .slot-detail { margin: 4px 0 8px; overflow-wrap: anywhere; }
.dir-mine :focus-visible, .dir-family :focus-visible, .dir-join :focus-visible, .org-directory :focus-visible, .dir-forget :focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
@media (max-width: 720px) {
  .dir-form { grid-template-columns: 1fr; }
  .dir-mine, .dir-join, .org-directory { padding: 16px 12px; }
  .dir-form .share-actions .btn, .dir-join .btn, .dir-keep .btn, .org-directory .share-actions .btn, .dir-round-form .btn, .dir-person-form .btn { width: 100%; }
  .dir-round-form { grid-template-columns: 1fr; }
  .dir-forget { text-align: left; }
}

/* Monthly email newsletter: the newsletter page (and its print edition) and the organizer's card. */
.nl-upcoming-line { margin: 0 0 12px; font-weight: 600; }
.nl-issue { margin-top: 24px; max-width: 760px; margin-left: auto; margin-right: auto; border-top: 4px solid var(--green); }
.nl-issue h2 { margin: 0 0 12px; font-size: 1.6rem; }
.nl-issue h2:focus, .org-newsletter h2:focus, .org-news h2:focus, .nl-send h3:focus { outline: none; }
.card .nl-intro { color: var(--ink); font-size: 1.05rem; margin: 0 0 12px; white-space: pre-line; overflow-wrap: anywhere; }
.card .nl-reunion { background: var(--cream); color: var(--ink); border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; font-weight: 600; }
.nl-items { list-style: none; margin: 0; padding: 0; }
.nl-item { padding: 14px 0; border-top: 1px solid var(--line); }
.card .nl-item .news-from { margin: 0; font-style: italic; }
.nl-item h3 { margin: 0 0 6px; font-size: 1.15rem; overflow-wrap: anywhere; }
.card .nl-body { color: var(--ink); margin: 0 0 6px; white-space: pre-line; overflow-wrap: anywhere; }
.card .nl-foot { margin: 12px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.nl-actions { margin: 0; }
.nl-none { max-width: 760px; margin: 24px auto 0; }
.nl-archive-list { margin: 0; padding-left: 1.2em; }
.nl-archive-list li { padding: 2px 0; }
.nl-archive-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green-dark); }
.nl-archive-list a[aria-current] { font-weight: 700; }
.nl-archive .nl-issue-error { margin: 12px 0 0; }
.nl-subscribe { margin-top: 24px; }
.nl-stop { margin-top: 24px; scroll-margin-top: 96px; }
.nl-stop .hint { margin: 0 0 12px; }
.nl-stop-confirm { margin: 0 0 16px; padding: 12px; border: 2px solid #1d5fbf; border-radius: 8px; }
.nl-stop-confirm p { margin: 0 0 10px; font-weight: 600; overflow-wrap: anywhere; }
.card .nl-stop-line { margin: 0 0 12px; font-size: 0.95em; }
.nl-subscribe .hint { margin: 0 0 12px; }
.org-newsletter { margin-bottom: 20px; border: 2px solid var(--green); }
.org-newsletter h2 { margin: 0; font-size: 1.3rem; }
.org-newsletter > .hint { margin: 6px 0 16px; }
.org-newsletter h3 { font-size: 1.1rem; margin: 20px 0 10px; }
.nl-issue-form { max-width: 640px; }
.nl-pick-list, .nl-people { list-style: none; margin: 0; padding: 0; }
.nl-pick-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; min-height: 44px; }
.nl-pick-item label { display: block; min-height: 0; overflow-wrap: anywhere; min-width: 0; font-weight: 400; }
.card .nl-pick-item .slot-detail, .card .nl-person .slot-detail { color: var(--muted); }
.nl-send { background: var(--cream); border-radius: 10px; padding: 4px 16px 16px; }
.card .nl-send .hint { margin: 0 0 12px; }
.nl-person { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.nl-person .slot-detail { flex: 1 1 200px; min-width: 0; }
.nl-person a { color: var(--green-dark); display: inline-flex; align-items: center; min-height: 44px; }
.news-post .share-actions { margin-left: auto; }
.nl-person > .org-post-photos { flex: 1 1 100%; margin: 4px 0; }
.nl-person .org-post-photos a { display: block; }
/* A comment, or a post with no headline, shown in full on the organizer page, on a line of its own, with its line breaks. */
.comment-said, .post-said { flex: 1 1 100%; white-space: pre-line; overflow-wrap: anywhere; }
.org-news { margin-bottom: 20px; border: 2px solid var(--green); }
.org-family { margin-bottom: 20px; border: 2px solid var(--green); }
.org-family-form { max-width: 640px; }
.org-family-form .btn { margin: 0 8px 8px 0; }
.org-family h2:focus { outline: none; }
.fee-fields { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 16px; }
.fee-input { display: flex; align-items: center; gap: 6px; }
.fee-input input { min-width: 0; }
@media (max-width: 720px) { .org-news .share-actions { width: 100%; } }
.nl-recipients summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.nl-past-find { margin: 12px 0 4px; }
#nl-past-season h4 { margin: 12px 0 4px; }
#nl-past-season-all .btn { margin: 4px 0; }
.nl-issue :focus-visible, .nl-archive :focus-visible, .nl-subscribe :focus-visible, .nl-stop :focus-visible, .org-newsletter :focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
@media (max-width: 720px) {
  .nl-issue, .org-family, .org-news, .org-newsletter { padding: 16px 12px; }
  .org-family-form .btn { width: 100%; margin-right: 0; }
  .nl-issue h2 { font-size: 1.35rem; }
  .nl-upcoming .btn, .nl-actions .btn, .nl-subscribe .btn, .nl-stop .btn, .nl-issue-form .btn, .nl-send .share-actions .btn, .nl-pending .share-actions .btn { width: 100%; }
  .nl-pending .share-actions { flex: 1 1 100%; }
}
/* Print edition: just the issue, in black on white, for relatives who read it on paper. */
@media print {
  .site-header, .site-footer, .nl-hero, .nl-upcoming, .nl-archive, .nl-subscribe, .nl-stop, .nl-stop-line, .np-request, .np-kitty, .nl-actions, .nl-none, .fb-launcher, .fb-panel, .fb-backdrop { display: none !important; }
  :root, body { background: #fff; color: #000; }
  .nl-issue { border: 0; box-shadow: none; max-width: none; padding: 0; margin: 0; }
  .card .nl-intro, .card .nl-body, .card .nl-reunion, .nl-issue .news-from, .nl-issue .lead-tag { color: #000; }
  .nl-item { break-inside: avoid; }
}

/* Printed newsletter: the large-type paper edition, its address labels, and the organizer's print desk. */
.np-tools { margin-top: 0; max-width: 760px; margin-left: auto; margin-right: auto; }
.np-tools h2 { margin: 0 0 12px; font-size: 1.2rem; }
.np-tools .field { max-width: 420px; }
.np-choice { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 0 8px; }
.np-choice label { font-weight: 600; }
.np-tools .hint { margin: 0 0 8px; }
.np-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.np-status { margin: 12px 0 0; color: var(--green-dark); font-weight: 600; min-height: 1.55em; }
.np-paper { max-width: 760px; margin: 24px auto 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; color: #111; font-family: Georgia, "Times New Roman", serif; line-height: 1.5; }
.np-masthead { text-align: center; border-bottom: 3px double #111; padding-bottom: 12px; margin-bottom: 16px; }
.np-kicker { margin: 0; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85em; font-weight: 700; color: #111; }
.np-masthead h2 { margin: 4px 0; font-size: 2em; line-height: 1.2; overflow-wrap: anywhere; }
.np-masthead h2:focus { outline: none; }
.np-date { margin: 0; font-style: italic; }
.np-intro { font-size: 1.1em; white-space: pre-line; overflow-wrap: anywhere; margin: 0 0 16px; }
.np-reunion { border: 2px solid #111; border-radius: 8px; padding: 10px 14px; font-weight: 700; margin: 0 0 16px; overflow-wrap: anywhere; }
.np-items { list-style: none; margin: 0; padding: 0; }
.np-item { padding: 14px 0; border-top: 1px solid #999; break-inside: avoid; }
/* A story with many photos may run onto the next page rather than being cut short; each photo stays whole. */
.np-item.has-photos, .nl-item.has-photos { break-inside: auto; }
.np-item .news-photos { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin: 8px 0; }
.news-photos a, .news-photos img { break-inside: avoid; }
.nl-item .news-photos { margin: 0 0 8px; }
.np-item h3 { margin: 0 0 6px; font-size: 1.3em; overflow-wrap: anywhere; }
.np-body { margin: 0 0 6px; white-space: pre-line; overflow-wrap: anywhere; }
.np-from { margin: 0; font-style: italic; }
.nl-again { margin: 4px 0 0; font-weight: 600; color: var(--green-dark); }
.np-empty { font-style: italic; }
.np-back { margin-top: 20px; padding-top: 14px; border-top: 3px double #111; break-inside: avoid; }
.np-back h3 { margin: 0 0 6px; font-size: 1.2em; }
.np-back p { margin: 0 0 6px; overflow-wrap: anywhere; }
.np-url { font-weight: 700; overflow-wrap: anywhere; }
body.np-large .np-paper { font-size: 1.3rem; }
.np-labels { max-width: 760px; margin: 24px auto 0; }
.np-labels h2 { font-size: 1.2rem; margin: 0 0 4px; }
.np-labels-note { margin: 0 0 12px; }
.np-label-sheet { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.np-label { display: flex; flex-direction: column; justify-content: safe center; background: #fff; border: 1px dashed #8a968f; border-radius: 6px; padding: 8px 12px; font-size: 0.95rem; line-height: 1.3; overflow-wrap: anywhere; min-width: 0; }
/* A label that won't fit a sticker even in the smallest type: flagged on screen, named in the warning. */
.np-label.np-label-too-long { border: 2px solid #b3261e; }
.np-tools .np-labels-warning { color: #b3261e; font-weight: 600; }
/* The printed sticker, off screen, for measuring each label before it prints: keep in step with the
   print rules for .np-label-sheet and .np-label below. */
.np-label-probe { position: absolute; left: -10000px; top: 0; visibility: hidden; width: 2.625in; height: 1in; border: 0; padding: 0.08in 0.15in; overflow: hidden; }
.np-tools :focus-visible, .np-desk :focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
.np-desk { margin-top: 20px; background: var(--cream); border-radius: 10px; padding: 4px 16px 16px; }
.card .np-desk .hint { margin: 0 0 12px; }
.np-desk details { margin: 8px 0; }
.np-desk .signup-status .btn { margin-left: 4px; vertical-align: middle; }
.np-desk summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.np-add-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 12px; }
.np-add-form .field { margin-bottom: 12px; }
.np-add-form .np-wide, .np-add-form .btn { grid-column: 1 / -1; }
.np-add-form .btn { justify-self: start; }
.np-edit-form { flex: 1 1 100%; margin-top: 4px; }
/* The desk's answer shows beside what was just used: inside the add or edit form, or on the entry focus moved to. */
.np-add-form > .form-error, .np-add-form > .signup-status { grid-column: 1 / -1; margin: 0 0 12px; }
.nl-person > .form-error, .nl-person > .signup-status { flex: 1 1 100%; margin: 4px 0 0; }
.np-request { margin-top: 24px; }
.np-request .hint { margin: 0 0 12px; }
.np-request-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.np-request-form .np-wide, .np-request-form .form-error, .np-request-form .form-success, .np-request-form .btn { grid-column: 1 / -1; }
.np-request-form .btn { justify-self: start; }
.np-request :focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
/* The print kitty: what the paper copies cost and who shares it, on the newsletter page and the organizer's desk. */
.np-kitty { margin-top: 24px; }
.np-kitty .hint { margin: 0 0 12px; }
.np-kitty :focus-visible, .np-kitty-desk :focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
.np-kitty-facts { margin: 0 0 16px; padding-left: 1.2em; color: var(--ink); overflow-wrap: anywhere; }
.np-kitty-facts li { margin: 4px 0; }
.np-kitty-pay { margin: 12px 0 0; }
.np-kitty-pay .pay-due:focus { outline: none; }
.np-kitty-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 12px; }
.np-kitty-form .field { margin-bottom: 12px; }
.np-kitty-form .np-wide, .np-kitty-form > .btn, .np-kitty-form > .form-error, .np-kitty-form > .signup-status { grid-column: 1 / -1; }
.np-kitty-form > .btn { justify-self: start; }
@media (max-width: 720px) {
  .np-paper { padding: 20px 14px; }
  body.np-large .np-paper { font-size: 1.15rem; }
  .np-masthead h2 { font-size: 1.6em; }
  .np-buttons .btn, .np-desk .share-actions .btn, .np-add-form .btn, .np-request-form .btn, .np-kitty-form > .btn { width: 100%; }
  .np-add-form, .np-request-form, .np-kitty-form { grid-template-columns: 1fr; }
}
/* On paper: only the issue (and the label sheet when asked for), letter size, black on white. */
@page { margin: 0.6in; }
@page labels { size: letter; margin: 0.5in 0.19in; }
@media print {
  .np-hero, .np-tools { display: none !important; }
  .np-paper { border: 0; border-radius: 0; max-width: none; margin: 0; padding: 0; font-size: 12pt; }
  body.np-large .np-paper { font-size: 18pt; }
  .np-labels { page: labels; break-before: page; max-width: none; margin: 0; }
  .np-labels h2, .np-labels-note { display: none; }
  .np-label-sheet { grid-template-columns: repeat(3, 2.625in); grid-auto-rows: 1in; gap: 0 0.125in; }
  .np-label { border: 0; border-radius: 0; padding: 0.08in 0.15in; font-size: var(--np-label-size, 10pt); overflow: hidden; break-inside: avoid; }
  .np-label.np-label-too-long { border: 0; }
}
.card .np-home-link { margin: 10px 0 0; }
.np-home-link a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green-dark); font-weight: 600; }
.np-home-link a:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
.np-choice[hidden], .np-desk [hidden] { display: none; }

/* Try the prototype: the early testers' guided tour */
.try-note { margin-top: 0; }
.try-note ul { margin: 0; padding-left: 1.2em; }
.try-note li + li { margin-top: 6px; }
/* inline-block: the key moves to the next line whole rather than breaking at its hyphen; only a key wider than the card wraps. */
.try-key { font-family: ui-monospace, Menlo, Consolas, monospace; display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.try-heading { margin: 40px 0 16px; }
.try-steps { list-style: none; margin: 0; padding: 0; }
.try-steps h3 { font-size: 1.1rem; margin: 0 0 8px; }
.try-steps p { margin: 0 0 16px; color: var(--muted); }
.try-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.try-steps .btn:focus-visible, .home-try .btn:focus-visible, .home-beta .btn:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
.home-try, .home-beta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; border-color: var(--green); }
.home-try p, .home-beta p { margin: 0; }
.home-try .lead-tag, .home-beta .lead-tag { margin-right: 8px; }
@media (max-width: 720px) { .try-steps .btn, .home-try .btn, .home-beta .btn { width: 100%; } }

/* Beta program: the beta sign-up and the owner's list of beta families and feedback */
.pricing-actions { margin: 16px 0 0; }
.pricing-actions .btn:focus-visible, .beta-join :focus-visible, .ba-list :focus-visible, .try-beta a:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
.try-beta { margin: 12px 0 0; }
.beta-seats { margin-top: 0; margin-bottom: 24px; }
.beta-seats p { margin: 0 0 12px; font-weight: 600; }
.beta-points { margin: 0; padding-left: 1.2em; color: var(--muted); }
.beta-points li + li { margin-top: 6px; }
.beta-join .field input[type="number"], .beta-join .field input[type="month"] {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink);
  border: 1px solid #8a968f; border-radius: 8px; background: #fff;
}
/* A head count of households is a number of up to three digits: a count box like lodging's, not a line as wide as an email. */
.beta-join .field input[type="number"] { width: 88px; }
.beta-join > .hint { margin: 0 0 16px; }
.beta-join .btn { width: 100%; }
.beta-try { margin: 16px 0 0; }
.beta-try a { display: inline-block; padding: 12px 0; }
.ba-list { list-style: none; margin: 0; padding: 0; }
.ba-item { border-top: 1px solid var(--line); padding: 14px 0; }
.ba-item:first-child { border-top: 0; }
.ba-item p { margin: 0 0 6px; overflow-wrap: anywhere; }
.ba-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ba-tag { font-size: 0.85rem; font-weight: 600; background: var(--cream); color: var(--green-dark); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.ba-approved .ba-tag { background: var(--green); color: #fff; border-color: var(--green); }
.ba-who { color: var(--muted); font-size: 0.9rem; }
.ba-note { white-space: pre-line; }
.ba-why { color: var(--muted); font-size: 0.9rem; font-style: italic; }
.ba-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ba-requests, .ba-feedback { margin-top: 24px; }
@media (max-width: 720px) { .ba-actions .btn, .pricing-actions .btn { flex: 1 1 100%; width: 100%; } }

/* Ready to market: the home page's product screenshots and differentiators, the sample-reunion tour,
   the owner's "how families heard about us" list and the "Made with" line */
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.home-hero { padding: 40px 0 32px; }
.home-hero .hero-text p { margin-bottom: 16px; }
.hero-shots { position: relative; max-width: 560px; margin: 24px auto 0; padding-right: 72px; }
.hero-shots img { display: block; height: auto; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.shot-desktop { width: 100%; border-radius: var(--radius); }
.shot-phone { position: absolute; right: 0; bottom: -16px; width: 32%; border-radius: 18px; }
.why-list { list-style: none; margin: 0 auto 20px; padding: 0; max-width: 640px; display: grid; gap: 6px; }
.why-list strong { color: var(--green-dark); }
.why-list span { color: var(--muted); }
.tour-actions .btn:focus-visible, .tour-next a:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
@media (min-width: 900px) {
  .home-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; text-align: left; padding: 40px 0 40px; }
  .home-hero .hero-text p, .why-list { margin-left: 0; }
  .home-hero .hero-actions { justify-content: flex-start; }
  .hero-shots { margin: 0; max-width: none; }
}
.tour-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.tour-step { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: center; }
.tour-step.tour-wide { grid-template-columns: 1fr; }
.tour-step h2 { font-size: clamp(1.2rem, 3.5vw, 1.5rem); }
.tour-step img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
.tour-phone { max-width: 260px; margin: 0 auto; border-radius: 24px; }
.tour-desktop { border-radius: var(--radius); }
.tour-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.tour-next .hint a { display: inline-block; padding: 12px 0; }
.ba-sources { margin-top: 24px; }
.ba-source-list { list-style: none; margin: 0; padding: 0; max-width: 520px; }
.ba-source { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ba-source:first-child { border-top: 0; }
.made-with { margin: 0 0 6px; }
.made-with a { color: var(--green-dark); font-weight: 600; display: inline-block; padding: 12px 4px; }
.made-with a:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
.np-made-with { margin-top: 16px; font-size: 0.95em; }
@media (max-width: 720px) {
  .hero-shots { padding-right: 0; }
  .shot-phone { position: static; width: 45%; max-width: 200px; margin: -40px 8px 0 auto; }
  .hero-actions .btn, .tour-actions .btn { flex: 1 1 100%; }
  .tour-step { grid-template-columns: 1fr; }
}

/* Sign in with Google (My family's own styles are in my-family.css) */
.signin-card { margin-top: 8px; }
.signin-card .google-button { min-height: 44px; margin: 8px 0 16px; }
.dev-signin { margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }
.dev-signin .btn, .beta-google .dev-signin .btn { width: 100%; }
.signin-note { margin-top: 16px; }

/* Pricing: free during the beta, then pay for more storage */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; margin: 16px 0; }
.plans .plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--cream); }
.plans .plan-free { border: 2px solid var(--green); background: #fff; }
.plans .plan h3 { margin: 0 0 4px; }
.plan-price { font-size: 1.4rem; font-weight: 700; margin: 0 0 8px; }
.plans .plan ul { margin: 0; padding-left: 1.2em; }
.plans .plan li + li { margin-top: 4px; }
.storage-rule { border-left: 4px solid var(--green); padding: 8px 12px; background: #f3f8f5; border-radius: 4px; }

/* Beta: log right in with Google */
.beta-google { margin-top: 24px; }
.beta-google .google-button { min-height: 44px; margin: 8px 0 12px; }
/* Family page: "couldn't load" message with its Try again button. */
.load-error { max-width: 640px; margin: 0 auto 24px; text-align: center; }
.load-error p { color: inherit; margin: 0 0 12px; }
#family-name:focus { outline: none; }
#family-name:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
/* A sign-up's answer shows inside the spot or place that was tapped (potluck-signups.js, lodging-signups.js). */
.slot > .form-error, .slot > .signup-status, .lodging-elsewhere > .form-error, .lodging-elsewhere > .signup-status { margin: 8px 0 0; }
/* A refusal about one box shows under that box and outlines it (beta.js, rsvp-household.js, newsletter.js, family-directory.js). */
.field > .form-error { margin: 8px 0 0; }
.field :is(input, textarea, select)[aria-invalid="true"] { border-color: #8a1c14; box-shadow: 0 0 0 1px #8a1c14; }

/* "Removed … Undo" after taking something off: the words wrap, the button stays a full tap target. */
.undo-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fffbea; }
.undo-note[hidden] { display: none; }
/* One "Removed … Undo" line per removal still on offer, newest first (track-fees.js). The bar comes
   after the household list and sticks to the bottom of the screen while the list is in view, so it
   shows beside whichever row was worked on; several lines scroll inside it rather than cover the list. */
.undo-list { position: sticky; bottom: 0; z-index: 5; margin: 8px 0 0; padding: 8px 0; background: var(--cream); max-height: 40vh; overflow-y: auto; }
.undo-list[hidden] { display: none; }
.undo-list > .undo-note { margin: 0 0 8px; }
.undo-list > .undo-note:last-child { margin-bottom: 0; }
