/* /public/css/family-calendars.css (v2.22) 🎉 Family gatherings on the Calendar page (js/family-calendars.js).
   Full look: a strip of bunting over the card, little tear-off calendar pages for the dates, the calendars as chips.
   Classic look (html.oh-classic): no bunting, plain date boxes, and a plain list by month instead of the month grid.
   Light and dark (html.theme-dark). Phones first: the list comes before the month, dots instead of names in the month.
   The pop-up windows are native <dialog>s (Esc closes them). Nothing moves for ♿ Calm screen (html.fp-calm). */

.fc{scroll-margin-top:80px}
.fc-card{position:relative;background:var(--ct-card);border:1px solid var(--ct-line);border-radius:22px;padding:14px 18px 18px;box-shadow:var(--ct-shadow);overflow:hidden}
.fc-bunting{display:block;width:calc(100% + 36px);height:46px;margin:-14px -18px 2px}
.fc-flags path{transform-origin:top center;animation:fcSway 5s ease-in-out infinite}
.fc-flags path:nth-child(2n){animation-delay:-1.4s}.fc-flags path:nth-child(3n){animation-delay:-2.6s}
@keyframes fcSway{0%,100%{transform:rotate(0)}50%{transform:rotate(2.5deg)}}
html.fp-calm .fc-flags path{animation:none}
@media (prefers-reduced-motion: reduce){.fc-flags path{animation:none}}
.fc-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.fc-head-t{min-width:0;flex:1 1 320px}
.fc-head-t p{line-height:1.45;margin-top:4px}
.fc-actions{display:flex;gap:8px;flex-wrap:wrap}
.fc-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 16px;border-radius:999px;border:2px solid var(--ct-line);background:var(--ct-card);color:var(--ct-ink);font-weight:800;font-size:.98rem;text-decoration:none;cursor:pointer;line-height:1.2;white-space:nowrap}
.fc-btn:hover{border-color:var(--ct-accent);color:var(--ct-ink)}
.fc-btn.is-main{background:var(--ct-solid,#5b35c4);border-color:var(--ct-solid,#5b35c4);color:#fff}
.fc-btn.is-main:hover{filter:brightness(1.08);color:#fff}
.fc-btn.is-danger{color:#a3242f;border-color:#f0c4c8}
.fc-btn:disabled{opacity:.6;cursor:wait}
.fc-iconbtn{border:0;background:transparent;border-radius:50%;width:40px;height:40px;display:inline-grid;place-items:center;cursor:pointer;font-size:1rem;color:var(--ct-ink)}
.fc-iconbtn:hover{background:var(--ct-soft)}
.fc-quiet{color:var(--ct-ink2);margin:6px 2px}
.fc-dot{display:inline-block;width:12px;height:12px;border-radius:50%;background:var(--cal,#5b35c4);flex:none;box-shadow:0 0 0 2px var(--ct-card)}

/* ---------- the calendars: chips with a Follow switch */
.fc-cals{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.fc-cal{display:flex;align-items:center;gap:10px;padding:6px 6px 6px 14px;border-radius:18px;border:2px solid var(--ct-line);background:var(--ct-soft);min-width:0;flex:0 1 auto}
.fc-cal.is-on{border-color:color-mix(in srgb,var(--cal) 55%,var(--ct-line));background:color-mix(in srgb,var(--cal) 9%,var(--ct-card))}
.fc-cal:not(.is-on) .fc-dot{opacity:.45}
.fc-cal-t{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.fc-cal-t b{color:var(--ct-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fc-cal-t small{color:var(--ct-ink2);font-size:.8rem;font-weight:600}
.fc-follow{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:var(--ct-ink);font-weight:800;font-size:.88rem;min-height:40px;padding:4px 8px;border-radius:999px;cursor:pointer}
.fc-follow:hover{background:var(--ct-card)}
.fc-sw{position:relative;width:38px;height:22px;border-radius:999px;background:#bdb6c8;transition:background .2s;flex:none}
.fc-sw::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .2s}
.fc-follow[aria-checked="true"] .fc-sw{background:#1b7a4e}
.fc-follow[aria-checked="true"] .fc-sw::after{transform:translateX(16px)}

/* ---------- next up + the month, side by side on computers */
.fc-body{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
@media (min-width:992px){.fc-body{grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr)}.fc-upwrap{order:2}.fc-monthwrap,.fc-listwrap{order:1}}
.fc-rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.fc-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid var(--ct-line);background:var(--ct-card);border-radius:16px;padding:10px 12px;cursor:pointer;color:var(--ct-ink);transition:border-color .15s,transform .15s,box-shadow .15s}
.fc-row:hover{border-color:var(--ct-accent);transform:translateY(-1px);box-shadow:0 6px 16px rgba(16,24,40,.08)}
.fc-row.is-past{opacity:.7}
html.fp-calm .fc-row:hover{transform:none}
.fc-row-t{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.fc-row-t>b{font-size:1.05rem;line-height:1.3}
.fc-row-t>small{color:var(--ct-ink2);font-weight:600;font-size:.88rem}
.fc-row-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:3px}
.fc-rel{color:var(--ct-accent);font-weight:800}
.fc-go{font-size:1.5rem;color:var(--ct-ink2);flex:none}
.fc-going{font-size:.82rem;font-weight:700;color:var(--ct-ink2)}
.fcx-state.fcx-s-ask{background:var(--ct-soft);color:var(--ct-ink)}
html.theme-dark .fcx-state.fcx-s-ask{background:rgba(255,255,255,.08);color:var(--ct-ink)!important}
.fc-chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:2px 10px 2px 6px;font-size:.8rem;font-weight:800;background:color-mix(in srgb,var(--cal) 12%,var(--ct-card));color:var(--ct-ink);border:1px solid color-mix(in srgb,var(--cal) 35%,var(--ct-line))}
.fc-chip .fc-dot{width:10px;height:10px;box-shadow:none}

/* the little tear-off calendar page (Full look) */
.fc-tile{position:relative;flex:none;width:58px;border-radius:10px;background:#fffdf8;border:1px solid #e6dccb;box-shadow:0 2px 0 #e6dccb,0 3px 8px rgba(80,50,20,.12);text-align:center;overflow:hidden;line-height:1;padding-bottom:5px}
.fc-tile-m{display:block;background:var(--cal);color:#fff;font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;padding:9px 0 3px}
.fc-tile-m::before,.fc-tile-m::after{content:"";position:absolute;top:3px;width:5px;height:5px;border-radius:50%;background:rgba(255,255,255,.8)}
.fc-tile-m::before{left:9px}.fc-tile-m::after{right:9px}
.fc-tile-d{display:block;font-family:Lora,Georgia,serif;font-weight:700;font-size:1.55rem;color:#2b2233;margin-top:4px}
.fc-tile-w{display:block;font-size:.68rem;font-weight:800;color:#6b6475;text-transform:uppercase;letter-spacing:.05em;margin-top:2px}
html.theme-dark .fc-tile{background:#fffdf8;border-color:#5a5060}
html.theme-dark .fc-tile-d{color:#2b2233!important}html.theme-dark .fc-tile-w{color:#5b5562!important}

/* ---------- the month */
.fc-mnav{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.fc-mt{font-size:1.25rem;font-weight:800;margin:0;color:var(--ct-ink);min-width:9.5em;text-align:center}
.fc-grid{border:1px solid var(--ct-line);border-radius:16px;overflow:hidden;background:var(--ct-card)}
.fc-dows,.fc-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.fc-dows span{padding:8px 4px;text-align:center;font-size:.75rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--ct-ink2);background:var(--ct-soft)}
.fc-day{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:3px;min-height:92px;padding:6px;border:0;border-top:1px solid var(--ct-grid);border-right:1px solid var(--ct-grid);background:transparent;text-align:left;cursor:pointer;color:var(--ct-ink);min-width:0}
.fc-week .fc-day:last-child{border-right:0}
.fc-day:hover{background:var(--ct-band)}
.fc-day.is-out{background:var(--fp-sunken,#f6f5f2);color:var(--ct-ink2)}
html.theme-dark .fc-day.is-out{background:rgba(0,0,0,.18)}
.fc-day.is-sel{box-shadow:inset 0 0 0 3px var(--ct-accent)}
.fc-dn{font-weight:800;font-size:.92rem;width:28px;height:28px;display:inline-grid;place-items:center;border-radius:50%}
.fc-day.is-today .fc-dn{background:var(--ct-solid,#5b35c4);color:#fff}
.fc-dev{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.76rem;font-weight:700;line-height:1.22;padding:2px 5px;border-radius:6px;background:color-mix(in srgb,var(--cal) 14%,var(--ct-card));border-left:3px solid var(--cal);color:var(--ct-ink);overflow:hidden;overflow-wrap:break-word;hyphens:auto}
.fc-dmore{font-size:.74rem;font-weight:700;color:var(--ct-ink2);padding-left:4px}
.fc-dots{display:flex;gap:3px;justify-content:center;flex-wrap:wrap}
.fc-dots .fc-dot{width:8px;height:8px;box-shadow:none}
.fc-dayp{margin-top:12px;border:1px solid var(--ct-line);border-radius:16px;padding:10px 12px;background:var(--ct-soft)}
.fc-day-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.fc-day-h h4{margin:0;font-size:1.05rem;font-weight:800;color:var(--ct-ink)}
.fc-lm{font-size:.82rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ct-ink2);margin:14px 2px 8px}
.fc-lm:first-child{margin-top:0}

/* ---------- phones */
@media (max-width:767.98px){
  .fc-card{padding:12px 12px 14px;border-radius:18px}
  .fc-bunting{width:calc(100% + 24px);margin:-12px -12px 0;height:36px}
  .fc-actions{width:100%}
  .fc-actions .fc-btn{flex:1 1 auto}
  .fc-cal{flex:1 1 100%}
  .fc-cal-t{flex:1}
  .fc-cal-t b{white-space:normal}
  .fc-day{min-height:52px;align-items:center;padding:4px 2px}
  .fc-dn{width:26px;height:26px;font-size:.88rem}
  .fc-mt{font-size:1.1rem;min-width:0;flex:1}
  .fc-tile{width:52px}
  .fc-row{padding:9px 10px;gap:10px}
}

/* ---------- pop-up windows */
.fc-dlg{--ct-line:var(--fp-line,#e4e0d8);--ct-card:var(--fp-card,#fff);--ct-ink:var(--fp-ink,#1d1a22);--ct-ink2:var(--fp-muted,#5b5562);--ct-soft:var(--fp-violet-soft,#ece6fb);--ct-accent:var(--fp-violet,#5b35c4);--ct-solid:var(--oh-violet,#5b35c4);border:0;padding:0;border-radius:22px;width:min(640px,94vw);max-height:92vh;background:var(--fp-card,#fff);color:var(--fp-ink,#1d1a22);box-shadow:0 24px 64px rgba(16,24,40,.35)}
.fc-dlg::backdrop{background:rgba(20,16,30,.55)}
.fc-dlg[open]{animation:fcRise .22s ease-out}
@keyframes fcRise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
html.fp-calm .fc-dlg[open]{animation:none}
@media (max-width:520px){.fcx-ans-big .fcx-a{flex-direction:column;gap:4px;min-height:64px;padding:8px 4px;font-size:.95rem;white-space:normal;text-align:center;line-height:1.15}}
@media (max-width:767.98px){.fc-dlg{width:100vw;max-width:100vw;max-height:94vh;margin:auto 0 0;border-radius:22px 22px 0 0}}
.fc-x{position:absolute;top:10px;right:10px;z-index:2;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.92);color:#1d1a22;font-size:1.1rem;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.fc-ev{position:relative}
.fc-ev-photo{display:block;width:100%;max-height:260px;object-fit:cover}
.fc-ev-in{padding:18px 22px 20px}
.fc-ev-t{font-size:1.6rem;font-weight:800;margin:10px 0 8px;line-height:1.2;padding-right:40px}
.fc-ev-photo+.fc-ev-in .fc-ev-t{padding-right:0}
.fc-ev-l{display:flex;gap:10px;margin:0 0 6px;font-size:1.05rem;font-weight:600}
.fc-ev-l a{color:var(--oh-violet,#5b35c4)}
.fc-ev-d{white-space:pre-wrap;margin:12px 0 6px;font-size:1.02rem;line-height:1.55}
.fc-ev-by{color:var(--fp-muted,#5b5562);font-size:.88rem;margin:8px 0 0}
.fc-rsvp{margin:16px 0 4px;padding:14px;border-radius:18px;background:var(--fp-violet-soft,#f3effc);border:1px solid var(--fp-line,#e4e0d8)}
.fc-rsvp h3{font-size:1.1rem;font-weight:800;margin:0 0 10px}
.fc-extra{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.fc-guests{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-weight:700}
.fc-step{display:inline-flex;align-items:center;border:2px solid var(--fp-line,#e4e0d8);border-radius:999px;background:var(--fp-card,#fff);overflow:hidden}
.fc-step button{width:48px;height:44px;border:0;background:transparent;font-size:1.3rem;font-weight:800;color:var(--fp-ink,#1d1a22);cursor:pointer}
.fc-step button:hover{background:var(--fp-violet-soft,#ece6fb)}
.fc-step output{min-width:34px;text-align:center;font-weight:800;font-size:1.1rem}
.fc-note{display:flex;flex-direction:column;gap:4px;margin:0;font-weight:700}
.fc-note-r{display:flex;gap:8px}
.fc-note-r input{flex:1;min-width:0;border-radius:12px;border:2px solid var(--fp-line,#e4e0d8);padding:8px 12px;background:var(--fp-card,#fff);color:var(--fp-ink,#1d1a22)}
.fc-counts{margin:12px 0 4px;font-size:1.02rem}
.fc-counts span{color:var(--fp-muted,#5b5562)}
.fc-names{margin:2px 0;color:var(--fp-ink,#1d1a22)}
.fc-names small{color:var(--fp-muted,#5b5562);font-weight:700}
.fc-list{margin-top:10px}
.fc-list summary{cursor:pointer;font-weight:800;min-height:40px;display:flex;align-items:center}
.fc-table{width:100%;border-collapse:collapse;margin:6px 0 10px;font-size:.95rem}
.fc-table th,.fc-table td{padding:7px 8px;border-bottom:1px solid var(--fp-line,#e4e0d8);text-align:left;vertical-align:top}
.fc-table th{font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;color:var(--fp-muted,#5b5562)}
.fc-ev-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.fc-err{color:#a3242f;font-weight:700;margin:8px 0 0;min-height:0}
.fc-err:empty{display:none}
.fc-form{position:relative;display:flex;flex-direction:column;gap:12px;padding:20px 22px 20px}
.fc-form-h{font-size:1.4rem;font-weight:800;margin:0 44px 2px 0}
.fc-f{display:flex;flex-direction:column;gap:5px;margin:0;border:0;padding:0;min-width:0}
.fc-f>span,.fc-f-l{font-weight:800;font-size:.95rem;color:var(--fp-ink,#1d1a22);padding:0}
.fc-f small,.fc-hint{color:var(--fp-muted,#5b5562);font-weight:600}
.fc-f .form-control,.fc-f .form-select{border-radius:12px;min-height:46px;font-size:1rem}
.fc-f2{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.fc-check{display:flex;align-items:center;gap:10px;font-weight:700;margin:0;min-height:40px;cursor:pointer}
.fc-check input{width:22px;height:22px;accent-color:var(--oh-violet,#5b35c4)}
.fc-rem,.fc-helpers{display:flex;flex-wrap:wrap;gap:8px}
.fc-photo{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.fc-photo img{width:120px;height:80px;object-fit:cover;border-radius:12px}
.fc-colors{display:flex;gap:10px;flex-wrap:wrap}
.fc-color{position:relative;width:40px;height:40px;border-radius:50%;background:var(--cal);cursor:pointer;margin:0;box-shadow:0 0 0 2px var(--fp-card,#fff),0 0 0 4px transparent}
.fc-color input{position:absolute;opacity:0;inset:0;cursor:pointer}
.fc-color:has(input:checked){box-shadow:0 0 0 3px var(--fp-card,#fff),0 0 0 6px var(--fp-ink,#1d1a22)}
.fc-color:focus-within{outline:3px solid var(--oh-t-b9a3ee,#b9a3ee);outline-offset:4px}
.fc-form-b{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:4px}
.fc-sync-btns{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 14px}
.fc-warn{background:#fff6e0;border:1px solid #f1d79c;color:#5a3a00;border-radius:12px;padding:10px 12px;margin:12px 0 4px}
html.theme-dark .fc-warn{color:#5a3a00!important}
.fc-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:3000;background:#1d1a22;color:#fff;padding:12px 18px;border-radius:14px;font-weight:700;box-shadow:0 10px 30px rgba(0,0,0,.3);max-width:min(560px,92vw);text-align:center}
.fc-toast.is-bad{background:#8a1f2b}
html.theme-dark .fc-dlg{background:#24212a;color:#f1eef5;--ct-line:rgba(255,255,255,.16);--ct-card:#24212a}
html.theme-dark .fc-x{background:#3a3542;color:#fff!important}
html.theme-dark .fc-rsvp{background:rgba(157,127,232,.12);border-color:rgba(255,255,255,.12)}
html.theme-dark .fc-btn.is-danger{color:#ffb3ba;border-color:#6b3238}
html.theme-dark .fc-err{color:#ffb3ba}

/* ---------- Classic look: no bunting, plain date boxes */
html.oh-classic .fc-bunting{display:none}
html.oh-classic .fc-card{padding-top:16px;box-shadow:none}
html.oh-classic .fc-tile{background:var(--ct-card);border:1px solid var(--ct-line);box-shadow:none;border-left:5px solid var(--cal)}
html.oh-classic .fc-tile-m{background:transparent;color:var(--ct-ink2);padding-top:6px}
html.oh-classic .fc-tile-m::before,html.oh-classic .fc-tile-m::after{display:none}
html.oh-classic .fc-tile-d{font-family:inherit;color:var(--ct-ink)}
html.oh-classic .fc-tile-w{color:var(--ct-ink2)}
html.oh-classic.theme-dark .fc-tile{background:transparent;border-color:rgba(255,255,255,.18)}
html.oh-classic.theme-dark .fc-tile-d{color:var(--ct-ink)!important}html.oh-classic.theme-dark .fc-tile-w{color:var(--ct-ink2)!important}
html.oh-classic .fc-row:hover{transform:none;box-shadow:none}
/* one plain list (it already starts with what's next) */
html.oh-classic .fc-upwrap{display:none}
html.oh-classic .fc-body{grid-template-columns:minmax(0,1fr)}
html.oh-classic .fc-cal,html.oh-classic .fc-cal.is-on{background:var(--ct-card)}
/* v2.27 "I'll bring this": a family recipe on your RSVP */
.fc-dish{display:flex;flex-direction:column;gap:6px;font-weight:700}
.fc-dish-on{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:var(--fp-card,#fff);border:2px solid var(--fp-line,#e4e0d8);border-radius:14px;padding:8px 12px}
.fc-dish-on a{font-weight:800;color:var(--oh-violet,#5b35c4)}
.fc-dish-pick{display:flex;flex-direction:column;gap:6px;background:var(--fp-card,#fff);border:2px solid var(--oh-violet,#5b35c4);border-radius:16px;padding:10px}
.fc-dish-pick input{border-radius:12px;border:2px solid var(--fp-line,#e4e0d8);padding:10px 12px;font-size:1.05rem;background:var(--fp-card,#fff);color:var(--fp-ink,#1d1a22)}
.fc-dish-list{display:flex;flex-direction:column;gap:4px;max-height:240px;overflow:auto}
.fc-dish-list button{min-height:48px;text-align:left;border:1px solid var(--fp-line,#e4e0d8);background:transparent;border-radius:12px;padding:8px 12px;font-weight:700;font-size:1.02rem;color:var(--fp-ink,#1d1a22);cursor:pointer}
.fc-dish-list button:hover{background:var(--fp-violet-soft,#ece6fb);border-color:var(--oh-violet,#5b35c4)}
.fc-bring{margin:8px 0 2px;padding-left:0;list-style:none}
.fc-bring li{margin:2px 0}
.fc-bring a{font-weight:700;color:var(--oh-violet,#5b35c4)}
html.theme-dark .fc-dish-on,html.theme-dark .fc-dish-pick{background:#2b2832}
html.theme-dark .fc-dish-on a,html.theme-dark .fc-bring a{color:#c9b8ff}
