/* The guest page's settings on The day → Guest page (js/settings/guest-page.js, guest-faq.js). Three cards with a heading
   each: Share it with your guests, Top of the page, Sections. Parts sit side by side where there is room. */

/* Off: one card, centred, with one button. */
.gp-off { display: grid; justify-items: center; gap: var(--space-8); text-align: center; padding: var(--space-48) var(--space-card); }
.gp-off h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; margin: var(--space-8) 0 0; }
.gp-off p { max-width: 52ch; margin: 0 0 var(--space-16); color: var(--muted); }
.gp-off-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface); color: var(--muted); }
.gp-off-icon .material-symbols-rounded { font-size: 28px; }

/* Each card: white with an outline (a thing you work with), its number, a heading larger than anything in it, one line on
   what it is for, then groups, each under a small heading and a rule. */
.gp-card { display: grid; gap: var(--space-24); align-content: start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--space-24); min-width: 0; }
.gp-head { display: flex; align-items: flex-start; gap: var(--space-16); }
.gp-num { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; font-size: 15px; }
.gp-head-text { display: grid; gap: var(--space-4); min-width: 0; }
.gp-h { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.25; margin: 0; }
.gp-head-sub { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.gp-group { display: grid; gap: var(--space-16); padding-top: var(--space-24); border-top: 1px solid var(--border); }
.gp-sub { font-size: 15px; font-weight: 700; color: var(--text); margin: 0; }

.gp-field { margin: 0; }
.gp-field textarea, .gp-field input[type="text"], .gp-field input[type="tel"] { width: 100%; font: inherit; font-size: 16px; }
.gp-field textarea { resize: vertical; }
.gp-field-label { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-8); }
.gp-field-label .field-label { margin-bottom: var(--space-8); }

/* Two parts side by side on a wide screen, one above the other on a phone. */
.gp-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-16); align-items: start; }

/* The link. */
.gp-link input { font-size: 16px; }
.gp-link-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-8) var(--space-16); }
.gp-newlink { font-weight: 700; }

/* Switches with their words, two to a row where they fit. */
.gp-switches { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-8); }
.gp-switch { border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--space-16); background: var(--card); }
.gp-switch.on { border-color: var(--border-strong); }
.gp-switch.wide { grid-column: 1 / -1; }
/* A part that is on shows what guests will read, with a small Edit beside it. */
.gp-shows { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; }
.gp-shows-text { color: var(--muted); font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.gp-tile-edit { display: grid; gap: var(--space-16); }
.gp-tile-edit .field-hint { margin: 0; }
.gp-switch-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); }
.gp-switch-text { min-width: 0; }
.gp-switch-title { font-weight: 700; }
.gp-switch-hint { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-top: var(--space-4); }
.gp-switch-extra { margin-top: var(--space-16); padding-top: var(--space-16); border-top: 1px solid var(--border); display: grid; gap: var(--space-16); }
.gp-switch-extra .gp-switch { padding: 0; border: 0; }

/* The sections, each a block with its own heading row; its words open under it while it is on. */
.gp-secs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); }
.gp-sec { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--card); }
.gp-sec.on { border-color: var(--border-strong); }
.gp-sec-head { display: flex; align-items: center; gap: var(--space-8); padding: var(--space-8) var(--space-16); min-height: 60px; }
.gp-sec-icon { color: var(--muted); display: inline-grid; }
.gp-sec-title { flex: 1; min-width: 0; margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.gp-sec:not(.on) .gp-sec-title { color: var(--muted); }
.gp-sec-moves { display: flex; gap: var(--space-4); }
.gp-move[aria-disabled="true"] { opacity: .35; cursor: default; }
.gp-sec-body { display: grid; gap: var(--space-16); padding: var(--space-16); border-top: 1px solid var(--border); }
.gp-sec-body > .field-hint { margin: 0; }
.gp-travel { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-16); }
.gp-remove { font-size: 13.5px; }

/* "Add:" suggestions, one press each. */
.gp-ideas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); }
.gp-ideas-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.gp-idea { display: inline-flex; align-items: center; gap: var(--space-4); }
.gp-idea .material-symbols-rounded { font-size: 18px; }

/* Questions: question and answer side by side where they fit, with Delete under them. */
.gp-faq { display: grid; gap: var(--space-16); justify-items: start; }
.gp-faq > * { justify-self: stretch; }
.gp-faq > .btn { justify-self: start; }
.gp-q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); }
.gp-q { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-8) var(--space-16); padding: var(--space-16); border-radius: var(--radius-card); background: var(--surface); }
.gp-q .field { margin: 0; }
.gp-q input[type="text"], .gp-q textarea { width: 100%; font: inherit; font-size: 16px; }
.gp-q textarea { resize: vertical; }
.gp-q-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; }
.gp-q-foot .field-hint { flex: 1; margin: 0; }

@media (max-width: 640px) {
  .gp-card { padding: var(--space-16); gap: var(--space-16); }
  .gp-group { padding-top: var(--space-16); }
  .gp-q { grid-template-columns: minmax(0, 1fr); }
  .gp-sec-head { padding: var(--space-8); flex-wrap: wrap; }
  .gp-sec-body { padding: var(--space-16) var(--space-8); }
  .gp-q { padding: var(--space-16) var(--space-8); }
}
.gp-card a:not(.btn) { color: var(--accent-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
