/* Three small things for a new couple, all on the Overview (and one on the Table plan):
 *   . the "Getting started" card (js/ui/first-run.js)
 *   . the starter plan: its prompt in an empty to-do list and its preview sheet (js/ui/starter-plan.js)
 *   . the venue capacity note (js/ui/capacity-note.js)
 * Tokens only, so light, dark and all six accents come for free. Nothing under 12px. Everything you press is
 * 44px by 44px on a phone. Meaning is in words and shapes, never in colour alone. */

/* ---- "Getting started" ---- */

.first-run { padding: 0; overflow: hidden; }
.fr-h { margin: 0; font: inherit; }
.fr-toggle {
  display: flex; align-items: center; gap: var(--space-16); width: 100%; min-height: 56px; padding: var(--space-8) var(--space-24);
  border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.fr-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: var(--radius-card); }
.fr-icon { flex: none; font-size: 22px; color: var(--accent-dark); }
.fr-head-text { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-16); }
.fr-title-big { font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.fr-progress { display: inline-flex; align-items: center; gap: var(--space-8); font-size: 14px; font-weight: 700; color: var(--muted); }
.fr-count { white-space: nowrap; }
.fr-pips { display: inline-flex; gap: var(--space-4); }
/* A row of four small bars: outlined when to do, filled when done. A shape as well as a number. */
.fr-pip { box-sizing: border-box; width: 16px; height: 8px; border-radius: 4px; border: 2px solid var(--control); }
.fr-pip.done { background: var(--accent); border-color: var(--accent); }
.fr-chevron { flex: none; color: var(--muted); transition: transform .15s; }
.fr-toggle[aria-expanded="true"] .fr-chevron { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .fr-chevron { transition: none; } }

.fr-body { padding: 0 var(--space-24) var(--space-16); }
.fr-body[hidden] { display: none; }
.fr-steps { list-style: none; margin: 0; padding: 0; }
.fr-step {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: var(--space-4) var(--space-16);
  padding: var(--space-16) 0; border-top: 1px solid var(--border);
}
.fr-mark {
  box-sizing: border-box; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--control);
  display: grid; place-items: center;
}
.fr-mark .material-symbols-rounded { font-size: 18px; }
.fr-step.done .fr-mark { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fr-text { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.fr-title { font-size: 15px; font-weight: 700; line-height: 1.35; }
.fr-hint { font-size: 14px; color: var(--muted); line-height: 1.45; }
.fr-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: var(--space-4) var(--space-8); }
.fr-done-word { font-size: 14px; font-weight: 700; color: var(--muted); padding-right: var(--space-8); }
.fr-foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-8) var(--space-16);
  padding-top: var(--space-16); border-top: 1px solid var(--border);
}
.fr-plan { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-8) var(--space-16); }
.fr-plan-note { font-size: 13px; color: var(--muted); }
.fr-dismiss { margin-left: auto; }

/* On a phone the open card is a list: mark, words, then the button on its own line under the words. */
@media (max-width: 640px) {
  .first-run.card.soft { padding: 0; }
  .fr-toggle { padding: var(--space-8) var(--space-16) var(--space-8) var(--space-16); min-height: 52px; gap: var(--space-8); }
  .fr-title-big { font-size: 17px; }
  .fr-body { padding: 0 var(--space-16) var(--space-8); }
  .fr-step { grid-template-columns: 26px minmax(0, 1fr); padding: var(--space-8) 0; }
  .fr-actions { grid-column: 2; justify-content: flex-start; }
  .fr-foot { flex-direction: column; align-items: flex-start; }
  .fr-dismiss { margin-left: 0; padding-left: 0; }
  .fr-plan-note { flex-basis: 100%; }
}

/* The card, the capacity note and the reminder sit right under the countdown; the Overview's own gap (56px,
   28px on a phone) would hold them apart as if each were a section. */
/* The notices under the countdown (the trial, after the wedding, the heads-up, getting started, the reminder banner,
   the room note) sit close to it and to each other: about 20px, not the 56px between sections (owner's feedback,
   20 Nov). */
.ov > :is(.card.hero, .ov-hero, .aw, .first-run, .remind-banner, .cap-note) + :is(.aw, .first-run, .remind-banner, .cap-note) { margin-top: calc(var(--space-32) * -1); }
@media (max-width: 640px) { .ov > :is(.card.hero, .ov-hero, .aw, .first-run, .remind-banner, .cap-note) + :is(.aw, .first-run, .remind-banner, .cap-note) { margin-top: calc(var(--space-16) * -1); } }

/* ---- the starter plan ---- */

.plan-prompt { margin: var(--space-8) 0 0; }
.plan-prompt-text { margin: 0 0 var(--space-8); font-size: 14px; line-height: 1.5; color: var(--muted); }

.plan-sheet .dialog-lead { margin: calc(var(--space-4) * -1) 0 var(--space-16); }
.plan-setdate, .plan-already, .plan-tick-note { margin: 0 0 var(--space-16); font-size: 14px; line-height: 1.5; color: var(--muted); }
.plan-group { margin: 0 0 var(--space-16); }
.plan-group-head { display: flex; align-items: center; gap: var(--space-16); min-height: 44px; cursor: pointer; }
.plan-group-head input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.plan-group-text { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--space-8); }
.plan-group-name { font-size: 16px; font-weight: 700; }
.plan-group-count { font-size: 13px; color: var(--muted); }
.plan-group-blurb { margin: 0 0 var(--space-8) var(--space-32); font-size: 14px; line-height: 1.45; color: var(--muted); }
.plan-items { list-style: none; margin: 0 0 0 var(--space-32); padding: 0; }
.plan-item { padding: var(--space-4) 0 var(--space-8); border-top: 1px solid var(--border); }
.plan-item-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 var(--space-16);
  min-height: 44px; cursor: pointer;
}
.plan-item-head input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.plan-item-head:has(input:not(:checked)) .plan-item-title { color: var(--muted); text-decoration: line-through; }
.plan-item-title { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.plan-item-date { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.plan-item-note { display: block; margin-left: var(--space-32); font-size: 13px; line-height: 1.45; color: var(--muted); }
@media (max-width: 640px) {
  .plan-group-blurb, .plan-items { margin-left: 0; }
  .plan-setdate .link-btn { padding-left: 0; }
}

/* ---- the venue capacity note ---- */

.cap-note {
  display: flex; align-items: flex-start; flex-wrap: wrap; gap: var(--space-4) var(--space-16);
  background: var(--surface); border-radius: var(--radius-card); padding: var(--space-16) var(--space-16);
}
.cap-note-icon { flex: none; margin-top: var(--space-4); font-size: 22px; color: var(--accent-dark); }
.cap-note-body { flex: 1 1 260px; min-width: 0; }
.cap-note-text, .cap-note-more { margin: 0; font-size: 14.5px; line-height: 1.55; }
.cap-note-more { color: var(--muted); }
.cap-note-link { flex: none; align-self: center; margin-left: auto; }
@media (max-width: 640px) {
  .cap-note { padding: var(--space-8) var(--space-16); }
  .cap-note-link { margin-left: var(--space-32); padding-left: 0; }
}
/* On the Table plan it sits above the warnings. */
#panel-tables .cap-note { margin-bottom: var(--space-16); }
