/* v36: the sign-in component (sign-in page and setup wizard). Built for a first-time, older reader on a phone:
   body text 18px, buttons 56px tall, one action per screen, strong contrast, no horizontal overflow at 320px,
   logical properties so right-to-left languages mirror correctly. */
.si-card { padding: 20px 16px; }
.si-sub { font-size: 1.0625rem; line-height: 1.5; }
.si-box { display: flex; flex-direction: column; gap: 14px; font-size: 1.125rem; line-height: 1.5; color: var(--text); min-width: 0; }
.si-box * { min-width: 0; }
.si-lead { font-size: 1.1875rem; font-weight: 600; color: var(--text); margin: 0; }
.si-hint { font-size: 1.0625rem; color: var(--text-dim); margin: 0; line-height: 1.55; }
.si-or { text-align: center; color: var(--text-dim); font-size: 1.0625rem; margin: 2px 0; }

.si-country { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.si-country-label { color: var(--text-dim); }
.si-country-name { font-size: 1.1875rem; flex: 1 1 auto; overflow-wrap: anywhere; }
.si-change { min-height: 48px; min-width: 48px; padding: 0 18px; border: 2px solid var(--gold-dim); border-radius: 999px; color: var(--gold-bright); font-size: 1.0625rem; font-weight: 600; }
.si-change:focus-visible, .si-btn:focus-visible, .si-link:focus-visible, .si-row:focus-visible, .si-input:focus-visible, .si-search:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }

.si-btn { display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; min-height: 56px; padding: 12px 18px; border-radius: 16px; font-size: 1.1875rem; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.25; }
.si-btn[disabled], .si-btn[aria-disabled="true"] { opacity: .65; }
.si-primary { background: var(--gold); color: #21190a; box-shadow: 0 4px 18px rgba(214, 178, 94, .25); }
.si-wa { background: #1a7f46; color: #fff; border: 2px solid #4fd186; }
.si-wa:hover { background: #17703e; }
.si-link { display: flex; align-items: center; justify-content: center; min-height: 48px; width: 100%; color: var(--text); font-size: 1.0625rem; text-decoration: underline; text-underline-offset: 3px; }

.si-steps { list-style: none; counter-reset: si; display: flex; flex-direction: column; gap: 12px; margin: 4px 0 0; padding: 0; }
.si-steps li { counter-increment: si; display: flex; align-items: flex-start; gap: 14px; font-size: 1.125rem; line-height: 1.5; }
.si-steps li::before { content: counter(si); flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: #1a7f46; color: #fff; font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; }

.si-phone { display: flex; align-items: stretch; gap: 8px; direction: ltr; }
.si-prefix { display: flex; align-items: center; justify-content: center; min-width: 64px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: 1.25rem; font-weight: 700; color: var(--gold-bright); }
.si-input { flex: 1 1 auto; width: 100%; min-height: 56px; padding: 10px 14px; font-size: 1.25rem; letter-spacing: .02em; background: var(--surface-2); color: var(--text); border: 2px solid var(--line); border-radius: 12px; }
.si-otp { text-align: center; letter-spacing: .3em; font-size: 1.6rem; direction: ltr; }
.si-search { width: 100%; min-height: 56px; padding: 10px 14px; font-size: 1.1875rem; background: var(--surface-2); color: var(--text); border: 2px solid var(--line); border-radius: 12px; }

.si-list { display: flex; flex-direction: column; gap: 6px; max-height: min(52vh, 420px); overflow-y: auto; overscroll-behavior: contain; padding-inline-end: 2px; }
.si-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: 1.1875rem; text-align: start; width: 100%; }
.si-row.sel { border-color: var(--gold); background: var(--surface); }
.si-row-name { flex: 1 1 auto; overflow-wrap: anywhere; }
.si-row-dial { flex: 0 0 auto; color: var(--gold-bright); font-weight: 700; }

.si-code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 2.6rem; font-weight: 700; letter-spacing: .22em; text-align: center; color: var(--gold-bright); border: 2px dashed var(--gold-dim); border-radius: 16px; padding: 12px 4px; margin: 0; direction: ltr; overflow-wrap: anywhere; }
.si-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: 1.1875rem; font-weight: 600; text-align: center; }
.si-spin { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; border: 4px solid var(--gold-dim); border-top-color: var(--gold-bright); animation: si-spin 1s linear infinite; }
@keyframes si-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .si-spin { animation: none; border-top-color: var(--gold-dim); } }

.si-msg { font-size: 1.0625rem; min-height: 0; margin: 0; }
.si-msg:empty { display: none; }
.si-msg.err { color: #ffb4a3; font-weight: 600; }
.si-msg.ok { color: var(--good); }

@media (max-width: 360px) {
  .si-code { font-size: 2.1rem; letter-spacing: .14em; }
  .si-prefix { min-width: 54px; padding: 0 8px; }
}
/* inside the setup wizard */
.ob-signin .si-box { font-size: 1.125rem; }

/* the Times page card shown until a usable place exists */
.place-card { margin: 14px 0; padding: 18px 16px; border: 2px solid var(--gold-dim); border-radius: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.pc-title { font-size: 1.3125rem; line-height: 1.3; color: var(--gold-bright); margin: 0; }
.pc-text { font-size: 1.0625rem; color: var(--text-dim); margin: 0; line-height: 1.5; }
.pc-btn { margin-top: 4px; }
.hero-loc.is-example .loc-btn { border-color: var(--gold-dim); color: var(--gold-bright); }

/* setup wizard: the sign-in and place steps, sized for an older reader */
.ob-overlay[data-step-name="location"] .ob-title,
.ob-overlay[data-step-name="signin"] .ob-title,
.ob-overlay[data-step-name="method"] .ob-title { font-size: 1.6rem; line-height: 1.25; }
.ob-overlay[data-step-name="location"] .ob-note, .ob-overlay[data-step-name="signin"] .ob-note, .ob-overlay[data-step-name="method"] .ob-note,
.ob-overlay[data-step-name="location"] .ob-fine, .ob-overlay[data-step-name="signin"] .ob-fine, .ob-overlay[data-step-name="method"] .ob-fine,
.ob-overlay[data-step-name="signin"] .ob-facts li, .ob-overlay[data-step-name="location"] .ob-or { font-size: 1.0625rem; line-height: 1.5; }
.ob-overlay[data-step-name="location"] .ob-btn { min-height: 56px; font-size: 1.1875rem; }
.ob-overlay[data-step-name="location"] .ob-place-input { min-height: 56px; font-size: 1.1875rem; flex: 1 1 auto; min-width: 0; }
.ob-overlay[data-step-name="location"] .ob-place-go { min-height: 56px; min-width: 64px; font-size: 1.125rem; }
.ob-overlay[data-step-name="method"] .ob-select-input { min-height: 56px; font-size: 1.1875rem; }
.ob-overlay[data-step-name="method"] .ob-chip { min-height: 56px; font-size: 1.0625rem; }
.ob-overlay[data-step-name="method"] .ob-reason { color: var(--good); font-weight: 600; }
.ob-or { text-align: center; color: var(--text-dim); margin: 10px 0 6px; }
.ob-ask { margin: 14px 0 4px; padding: 14px; border: 2px solid var(--gold-dim); border-radius: 16px; background: var(--surface-2); }
.ob-ask-text { font-size: 1.25rem; font-weight: 600; margin: 0 0 10px; }
.ob-ask-btns { display: flex; flex-direction: column; gap: 10px; }
.ob-ask-btns .ob-btn { width: 100%; margin: 0; }
.ob-place-form { display: flex; gap: 8px; align-items: stretch; }

/* the wizard's own buttons on the steps built for an older reader */
.ob-overlay[data-step-name="location"] .ob-next, .ob-overlay[data-step-name="signin"] .ob-next, .ob-overlay[data-step-name="method"] .ob-next { min-height: 56px; font-size: 1.1875rem; }
.ob-overlay[data-step-name="location"] .ob-skip, .ob-overlay[data-step-name="signin"] .ob-skip, .ob-overlay[data-step-name="method"] .ob-skip { min-height: 48px; font-size: 1.0625rem; }

/* v36 polish: elder readability on the three wizard steps (place, method, sign-in): every explanatory line is at
   least 17px and every button at least 48px tall; the setup never sits under the Times page card */
.ob-overlay[data-step-name="location"] .ob-kicker, .ob-overlay[data-step-name="signin"] .ob-kicker, .ob-overlay[data-step-name="method"] .ob-kicker,
.ob-overlay[data-step-name="location"] .ob-geo-status, .ob-overlay[data-step-name="signin"] .ob-signed,
.ob-overlay[data-step-name="method"] .ob-field-label, .ob-overlay[data-step-name="method"] .ob-chip-sub,
.ob-overlay[data-step-name="method"] .ob-reason, .ob-overlay[data-step-name="method"] .ob-tag,
.ob-overlay[data-step-name="location"] .ob-ask-text { font-size: 1.0625rem; line-height: 1.45; }
.ob-overlay[data-step-name="method"] .ob-chip-sub { opacity: .9; }
.ob-overlay[data-step-name="location"] .ob-x, .ob-overlay[data-step-name="signin"] .ob-x, .ob-overlay[data-step-name="method"] .ob-x { width: 48px; height: 48px; top: 4px; right: 4px; }
.ob-overlay[data-step-name="location"] .ob-sheet, .ob-overlay[data-step-name="signin"] .ob-sheet, .ob-overlay[data-step-name="method"] .ob-sheet { padding-top: 54px; }
.ob-overlay[data-step-name="signin"] .ob-signin { margin-top: 12px; }
.ob-overlay[data-step-name="signin"] .ob-signin-why { margin-top: 18px; }
.ob-overlay[data-step-name="signin"] .ob-facts { margin-top: 10px; }
body.ob-locked .place-card { display: none; }

/* v37: the area code question on the home card (always a question, never applied silently) */
.pc-ask { display: flex; flex-direction: column; gap: 10px; }
.pc-ask[hidden] { display: none; }
.pc-asktext { margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.pc-askbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.pc-askbtns .si-btn { min-height: 48px; font-size: 1.0625rem; }
