/* Brisbon Family Reunion — mobile-first stylesheet.
   Light is the base; dark overrides only the tokens. */

:root {
  color-scheme: light;

  --ink:            #1b1a17;
  --ink-soft:       #4d4a44;
  --ink-faint:      #6f6b63;
  --paper:          #fbf8f3;
  --card:           #ffffff;
  --line:           #e3ddd2;
  --line-strong:    #cfc7b8;

  --brand:          #0f5c63;
  --brand-deep:     #0a4046;
  --brand-tint:     #e3f0f0;
  --accent:         #b4632a;
  --accent-tint:    #fbeade;
  --gold:           #c8971f;

  --good:           #16694a;
  --good-tint:      #e2f3ea;
  --bad:            #9c2c1c;
  --bad-tint:       #fbe6e2;

  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 1px 2px rgba(27, 26, 23, .05), 0 6px 20px rgba(27, 26, 23, .07);
  --shadow-lift: 0 2px 4px rgba(27, 26, 23, .07), 0 14px 36px rgba(27, 26, 23, .12);
  --tap:         44px;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
}

[data-theme='dark'] {
  color-scheme: dark;

  --ink:         #f2efe8;
  --ink-soft:    #c3bdb2;
  --ink-faint:   #948d81;
  --paper:       #14171a;
  --card:        #1c2126;
  --line:        #2c3339;
  --line-strong: #3d464e;

  --brand:       #5fc4c9;
  --brand-deep:  #8ad9dd;
  --brand-tint:  #10312f;
  --accent:      #e59a63;
  --accent-tint: #37241a;
  --gold:        #e0b445;

  --good:        #6fd3a5;
  --good-tint:   #122c23;
  --bad:         #f09a8b;
  --bad-tint:    #331914;

  --shadow:      0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .45), 0 14px 36px rgba(0, 0, 0, .5);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5rem; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 4.2vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.35rem); }
p  { margin: 0 0 1rem; }
a  { color: var(--brand); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.wrap { width: min(1080px, 100% - 2rem); margin-inline: auto; }
.hidden { display: none !important; }
/* The UA rule for [hidden] is display:none, but any author rule that sets
   display (.field{display:grid}, .countdown{display:flex}) outranks it and the
   element stays on screen. This puts the attribute back in charge. */
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------------ nav -- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex; align-items: center; gap: .75rem;
  min-height: 60px; padding-block: .5rem;
}
.brand {
  font-family: var(--serif); font-weight: 600; font-size: 1.02rem;
  line-height: 1.15; color: var(--ink); text-decoration: none; margin-right: auto;
  max-width: 15ch;
}
.brand span { display: block; font-family: var(--sans); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }

.nav-toggle, .icon-btn {
  min-width: var(--tap); min-height: var(--tap);
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; padding: 0 .7rem;
}
.icon-btn:hover, .nav-toggle:hover { background: var(--brand-tint); border-color: var(--brand); }

.nav {
  display: none; flex-direction: column; gap: .15rem;
  padding: .5rem 0 1rem; border-top: 1px solid var(--line);
}
.nav.open { display: flex; }
.nav a, .nav button {
  display: flex; align-items: center; min-height: var(--tap);
  padding: 0 .75rem; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-size: 1rem;
  background: transparent; border: 0; font-family: inherit; cursor: pointer; text-align: left; width: 100%;
}
.nav a:hover, .nav button:hover { background: var(--brand-tint); color: var(--brand-deep); }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .nav {
    display: flex !important; flex-direction: row; align-items: center; gap: .1rem;
    padding: 0; border-top: 0; margin-left: auto;
  }
  .nav a, .nav button { width: auto; padding: 0 .7rem; font-size: .94rem; }
  .brand { max-width: none; margin-right: 1rem; }
}

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 15% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
    radial-gradient(110% 80% at 90% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%),
    var(--paper);
  padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--line);
}
.hero__tag {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--brand-deep); background: var(--brand-tint);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.hero__sub { font-size: clamp(1.02rem, 2.6vw, 1.22rem); color: var(--ink-soft); max-width: 46ch; }
.hero__theme { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.1rem; }
.hero__theme b { font-style: normal; font-family: var(--sans); font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }

.countdown {
  display: flex; gap: .5rem; margin-top: 1.75rem; flex-wrap: wrap;
}
.countdown div {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .5rem .8rem; min-width: 74px; text-align: center; box-shadow: var(--shadow);
}
.countdown b { display: block; font-size: 1.4rem; font-family: var(--serif); line-height: 1.1; }
.countdown small { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: var(--tap); padding: .65rem 1.25rem;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .97rem; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--brand-deep); box-shadow: var(--shadow-lift); }
[data-theme='dark'] .btn--primary { color: #06282b; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-deep); }
.btn--danger { background: var(--bad-tint); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.btn--sm { min-height: 38px; padding: .35rem .85rem; font-size: .87rem; }
/* The compact size is for the dense admin console on a desktop. On a phone —
   or any touch screen — "Call 1-877-684-2127" is a primary action and has to
   clear the 44px target, so the compact height only applies where a mouse is. */
@media (max-width: 760px), (pointer: coarse) {
  .btn--sm { min-height: var(--tap); padding-inline: 1rem; }
}
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* -------------------------------------------------------------- section -- */

section[id] { scroll-margin-top: 74px; padding: 3rem 0; border-bottom: 1px solid var(--line); }
.section__eyebrow {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); font-weight: 700; margin-bottom: .4rem;
}
.lede { font-size: 1.06rem; color: var(--ink-soft); max-width: 60ch; }

.grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.pill-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.pill {
  font-size: .85rem; padding: .3rem .8rem; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent); font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

.kv { list-style: none; padding: 0; margin: 0; }
.kv li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem 0; border-bottom: 1px dashed var(--line);
}
.kv li:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--ink-soft); }
.kv span:last-child { font-weight: 600; text-align: right; }

.notice {
  border-left: 3px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  padding: .85rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .94rem; color: var(--ink-soft);
}

/* ----------------------------------------------------------------- tabs -- */

.tabs { display: flex; gap: .3rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: 1.25rem;
  scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 0 0 auto; min-height: var(--tap); padding: 0 1.05rem;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--ink-soft); font: inherit; font-weight: 600; font-size: .93rem; cursor: pointer;
}
.tabs button[aria-selected='true'] {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
[data-theme='dark'] .tabs button[aria-selected='true'] { color: #06282b; }

/* ---------------------------------------------------------------- forms -- */

.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field > label { font-weight: 600; font-size: .92rem; }
.field .help { font-size: .84rem; color: var(--ink-faint); }

input, select, textarea {
  width: 100%; min-height: var(--tap); padding: .6rem .8rem;
  font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  color: var(--ink); background: var(--card);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
input[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--bad); }

.row { display: grid; gap: 1rem; }
@media (min-width: 620px) { .row--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 620px) { .row--3 { grid-template-columns: repeat(3, 1fr); } }

.counts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 620px) { .counts { grid-template-columns: repeat(4, 1fr); } }

.sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: .6rem; }
.sizes label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }

/* The honeypot: off-screen, not display:none, so a naive bot still fills it. */
.hp {
  position: absolute !important; left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.form__status { border-radius: var(--radius-sm); padding: .85rem 1rem; font-size: .94rem; }
.form__status--ok  { background: var(--good-tint); color: var(--good);
  border: 1px solid color-mix(in srgb, var(--good) 30%, transparent); }
.form__status--bad { background: var(--bad-tint); color: var(--bad);
  border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); }

/* ------------------------------------------------------------- carousel -- */

.carousel { position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.carousel__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide {
  flex: 0 0 100%; scroll-snap-align: center; position: relative;
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-tint), var(--accent-tint));
}
@media (min-width: 700px) { .carousel__slide { aspect-ratio: 16 / 9; } }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel__placeholder { text-align: center; padding: 2rem; color: var(--brand-deep); }
.carousel__placeholder b { display: block; font-family: var(--serif); font-size: 1.3rem; }
.carousel__caption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1rem .9rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
  color: #fff; font-size: .93rem;
}
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: var(--tap); height: var(--tap); border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .9); color: #14171a;
  font-size: 1.3rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}
.carousel__btn--prev { left: .5rem; }
.carousel__btn--next { right: .5rem; }
.carousel__dots { display: flex; justify-content: center; gap: .45rem; padding: .8rem; }
.carousel__dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
}
.carousel__dots button[aria-current='true'] { background: var(--brand); border-color: var(--brand); }
/* The dot itself is tiny; the tap target around it is not. */
.carousel__dots button::before {
  content: ''; position: absolute; width: var(--tap); height: var(--tap);
  transform: translate(-50%, -50%); margin-left: 5px; margin-top: 5px;
}
.carousel__dots { position: relative; }

/* ------------------------------------------------------------- updates -- */

.update { border-left: 3px solid var(--brand); padding-left: 1rem; margin-bottom: 1.5rem; }
.update__meta { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.update__tag { background: var(--accent-tint); color: var(--accent);
  padding: .12rem .55rem; border-radius: 999px; font-weight: 700; letter-spacing: .04em; }
.update h3 { margin: .25rem 0 .35rem; }
.update p { color: var(--ink-soft); margin: 0; }

/* --------------------------------------------------------------- modal -- */

.modal[open] {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; width: min(460px, calc(100vw - 2rem)); background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-lift);
}
.modal::backdrop { background: rgba(10, 12, 14, .6); backdrop-filter: blur(2px); }
.modal__body { padding: 1.5rem; }
.modal__head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }

/* --------------------------------------------------------------- admin -- */

.admin-panel { display: grid; gap: 1.25rem; }
.admin-row {
  display: grid; gap: .75rem; padding: 1rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--card);
}
.admin-row__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th, .admin-table td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--ink-faint); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* -------------------------------------------------------------- footer -- */

.footer { padding: 2.5rem 0 3rem; color: var(--ink-faint); font-size: .9rem; text-align: center; }
.footer a { color: var(--ink-soft); }

/* ------------------------------------------------------------ room tiers -- */

.rooms { display: grid; gap: .75rem; }
@media (min-width: 760px) { .rooms { grid-template-columns: repeat(2, 1fr); } }

.room {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .9rem 1rem; background: color-mix(in srgb, var(--brand-tint) 45%, transparent);
}
.room__head { display: flex; gap: .75rem; align-items: flex-start; }
.room__num {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: .82rem; font-weight: 700;
  display: grid; place-items: center; margin-top: .15rem;
}
[data-theme='dark'] .room__num { color: #06282b; }
.room__head b { font-size: 1rem; display: block; }
.room__rate { font-family: var(--serif); font-size: 1.12rem; color: var(--brand-deep); }
.room__rate--tax { font-family: var(--sans); font-size: .86rem; color: var(--accent); }
.room__features {
  margin: .6rem 0 0; padding-left: 1.1rem; font-size: .88rem;
  color: var(--ink-soft); line-height: 1.5;
}
.room__features li { margin-bottom: .15rem; }

/* ---------------------------------------------------------------- flyer -- */

.flyer { margin: 0; }
.flyer img {
  display: block; width: 100%; height: auto; margin-top: 1rem;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
}
.flyer a { display: block; }

/* --------------------------------------------------------- google login -- */

.or-divider {
  display: flex; align-items: center; gap: .75rem;
  margin: 1.1rem 0 .9rem; color: var(--ink-faint);
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
}
.or-divider::before, .or-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

/* Google's brand guidelines want their button light-on-white with the official
   mark. Keeping it visually distinct from our own buttons is deliberate: it
   signals "you are about to leave for Google". */
.btn--google {
  width: 100%; background: #fff; color: #1f1f1f;
  border: 1px solid #dadce0; font-weight: 500;
}
.btn--google:hover { background: #f7f8f8; border-color: #c9ced3; }
[data-theme='dark'] .btn--google { background: #131314; color: #e3e3e3; border-color: #8e918f; }
[data-theme='dark'] .btn--google:hover { background: #1d1e20; }

/* ============================================================ calendar === */

.cal__bar {
  display: flex; flex-wrap: wrap; gap: .75rem;
  align-items: center; justify-content: space-between; margin-bottom: 1rem;
}
.cal__nav { display: flex; align-items: center; gap: .6rem; }
.cal__title { margin: 0; font-size: 1.15rem; min-width: 10ch; text-align: center; }
.cal__actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.cal {
  width: 100%; border-collapse: collapse; table-layout: fixed;
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
.cal th {
  background: var(--bg-soft, var(--card)); color: var(--ink-soft);
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .5rem .25rem; border-bottom: 1px solid var(--line); font-weight: 600;
}
.cal th abbr { text-decoration: none; border: 0; }
.cal__cell {
  vertical-align: top; height: 6.5rem; padding: .3rem;
  border: 1px solid var(--line); background: var(--card);
}
.cal__cell--empty { background: transparent; }
.cal__cell.is-today { background: var(--accent-tint); }
.cal__daynum { display: block; font-size: .8rem; color: var(--ink-faint); margin-bottom: .2rem; }
.cal__cell.is-today .cal__daynum { color: var(--accent); font-weight: 700; }

.cal__chip {
  display: block; font-size: .78rem; line-height: 1.25;
  padding: .2rem .35rem; margin-bottom: .2rem; border-radius: 4px;
  background: var(--brand-tint, var(--accent-tint)); color: var(--ink);
  text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal__chip:hover, .cal__chip:focus-visible { background: var(--accent); color: #fff; }

.cal__next-head { margin: 2rem 0 .75rem; }
.cal__list { display: grid; gap: .75rem; }
.cal__item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem; background: var(--card);
}
.cal__item h4 { margin: .15rem 0 .35rem; font-size: 1.05rem; }
.cal__item p { margin: 0 0 .4rem; }
.cal__when { font-size: .85rem; color: var(--accent); font-weight: 600; }
.cal__where { color: var(--ink-soft); font-size: .92rem; }
.cal__add { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .6rem; }
.cal__add-label { font-size: .8rem; color: var(--ink-faint); }

/*
  Below 640px a seven-column grid gives each day about 40px, which is too
  narrow to read an event title and below the 44px touch target. The grid
  becomes a list of days that actually have something on them; the month
  header row goes with it, since a list has no columns to label.
*/
@media (max-width: 640px) {
  .cal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cal, .cal tbody, .cal tr, .cal__cell { display: block; width: 100%; }
  .cal tr { border: 0; }
  /* A day becomes a row: the number in a fixed gutter, its events beside it,
     top-aligned so a day with two events still lines up with its number. */
  .cal__cell {
    height: auto; min-height: 0; border: 0; border-bottom: 1px solid var(--line);
    padding: .5rem .25rem;
    display: flex; align-items: flex-start; gap: .5rem;
  }
  .cal__cell--empty { display: none; }
  .cal__cell:not(:has(.cal__chip)) { display: none; }
  .cal__daynum {
    flex: 0 0 2.2rem; margin: 0; padding-top: .55rem;
    font-weight: 700; color: var(--ink); text-align: right; font-size: .95rem;
  }
  .cal__cell > .cal__chip { flex: 1 1 auto; }
  .cal__chip {
    white-space: normal; min-height: var(--tap); padding: .5rem .6rem;
    display: flex; align-items: center;
  }
}

@media (pointer: coarse) {
  .cal__chip { min-height: var(--tap); line-height: 1.3; display: flex; align-items: center; }
}

/* ---------------------------------------------------------------- rsvp -- */

.rsvp { margin: .75rem 0 0; border-top: 1px dashed var(--line); padding-top: .6rem; }
.rsvp__summary {
  cursor: pointer; font-weight: 600; color: var(--brand, var(--accent));
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  min-height: var(--tap); padding: .3rem 0;
}
.rsvp__left {
  font-weight: 500; font-size: .82rem; color: var(--ink-soft);
  background: var(--accent-tint); border-radius: 99px; padding: .1rem .55rem;
}
.rsvp__form { margin-top: .75rem; display: grid; gap: .6rem; }
.rsvp__status:empty { display: none; }
.rsvp__shut {
  margin: .75rem 0 0; padding-top: .6rem; border-top: 1px dashed var(--line);
  color: var(--ink-faint); font-size: .9rem;
}
.rsvp__done {
  margin: .75rem 0 0; padding: .6rem .8rem; border-radius: var(--radius-sm);
  background: var(--good-tint, var(--accent-tint)); color: var(--ink);
  font-size: .93rem; font-weight: 600;
}
.rsvp__done-sub { font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
