/* guests-web: layout only. Every colour, font, size, radius and space comes from
   hero.css tokens (Hero design system rule: a program adds layout, never look).
   Two exceptions, both noted in decisions.md: form fields are 17 px on this page
   (iOS zooms into any field under 16 px), and the dialog backdrop. */

.gw-top { display: flex; align-items: center; justify-content: space-between;
          gap: var(--hero-space-3); margin-bottom: var(--hero-space-5); }
.gw-brand { font-weight: 600; }
.gw-langs { display: flex; gap: var(--hero-space-1); margin-right: calc(var(--hero-space-4) * -1); }
.gw-langs [aria-current="true"] { font-weight: 600; color: var(--hero-text); }

/* ".hero" in front: hero.css sets ".hero p { margin: 0 }", which would win otherwise. */
.hero .gw-gap { margin-bottom: var(--hero-gap-group); }
.hero .gw-gap-top { margin-top: var(--hero-gap-group); }

.gw-form { max-width: none; }
.gw-form .hero-input { font-size: var(--hero-size-m); min-height: 44px; }
.gw-phone { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); gap: var(--hero-space-2); }
.gw-phone .hero-input { width: 100%; }
.gw-error { color: var(--hero-bad); }

/* The duration choice: full width, labels may wrap on a narrow phone. */
.gw-seg { display: grid; width: 100%; }
.gw-seg--2 { --n: 2; } .gw-seg--3 { --n: 3; } .gw-seg--4 { --n: 4; } .gw-seg--5 { --n: 5; }
.gw-seg label { padding-left: var(--hero-space-2); padding-right: var(--hero-space-2);
                padding-top: var(--hero-space-2); padding-bottom: var(--hero-space-2); white-space: normal; }
/* Nothing chosen yet: hide the white thumb, so no choice looks chosen. */
.gw-seg:not(:has(input:checked))::before { display: none; }

@media (max-width: 600px) {
  .gw-wide { width: 100%; }
}

.gw-nowrap { white-space: nowrap; }

/* Roll call: a big checkbox first in each row; the name is its label, so tapping
   the name ticks it too. */
.hero-table th.gw-tick-col, .hero-table td.gw-tick-col { width: 1%; padding-right: 0; }
.gw-tick { width: 24px; height: 24px; margin: 0; accent-color: var(--hero-ok-dot); cursor: pointer; }
.hero-table label.hero-cell-main { cursor: pointer; }
.gw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.gw-reminder { display: flex; gap: var(--hero-space-3); align-items: flex-start; }
.gw-reminder .hero-icon { flex: none; margin-top: 2px; }

.gw-dialog { border: 0; padding: 0; background: transparent; max-width: min(28rem, calc(100vw - var(--hero-space-6)));
             width: 100%; }
.gw-dialog::backdrop { background: rgba(0, 0, 0, .35); }
.gw-dialog .hero-card { box-shadow: var(--hero-lift-shadow); }
