/* Scam Check for a visitor without an account (spec 036 open-access.md §E.6):
   the start notice, the tick box of the form, the "busy" panel and the
   invitation pop-ups (spec 043). Colours come only from the theme variables;
   the tick box keeps a 44 px touch target. */
.sc-guest-note {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 .4em;
  min-height: 44px; margin: 0; color: var(--text-primary); font-size: 1.125rem; line-height: 1.5; text-align: center;
}
.sc-guest-note > span { display: inline-block; }
.sc-guest-note-lead { font-weight: 700; }
.sc-page .sc-guest-note a {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--sc-accent); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}
.sc-page .sc-guest-note a:hover { color: var(--sc-accent-strong); }
.sc-guest-note a:focus-visible { outline: 3px solid var(--sc-focus); outline-offset: 3px; border-radius: 4px; }

.sc-guest-consent {
  display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; align-items: start;
  margin: .75rem 0 0; padding: .5rem .75rem;
  background: var(--sc-accent-tint); border-radius: 16px;
}
.sc-guest-consent input[type="checkbox"] {
  width: 24px; height: 24px; margin: 10px 0 0; flex: none; accent-color: var(--sc-focus); cursor: pointer;
}
.sc-guest-consent label {
  min-height: 44px; display: flex; align-items: center; cursor: pointer;
  font-size: 1.125rem; line-height: 1.5; color: var(--text-primary);
}
.sc-guest-consent input[type="checkbox"]:focus-visible { outline: 3px solid var(--sc-focus); outline-offset: 3px; }
.sc-guest-consent .sc-field-error, .sc-guest-consent .sc-guest-more { grid-column: 2; }
.sc-guest-consent .sc-field-error { margin: 0; }
.sc-guest-more {
  display: inline-flex; align-items: center; min-height: 44px; width: fit-content;
  font-size: 1.125rem; color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px;
}
.sc-guest-more:focus-visible { outline: 3px solid var(--sc-focus); outline-offset: 3px; }

.sc-guest-busy { margin: .75rem 0 0; }
.sc-guest-busy p { margin: 0 0 .75rem; }

.toast.sc-guest-pop {
  padding: 1.125rem 1.25rem;
  max-height: calc(100vh - 3rem); max-height: calc(100dvh - 3rem); overflow-y: auto;
}
.toast.sc-guest-pop .toast-actions { gap: .5rem 1.25rem; margin-top: .75rem; }
.toast.sc-guest-pop .toast-action {
  justify-content: center; min-height: 48px; padding: .5rem 1.25rem; border-radius: 999px;
  font-size: 1.125rem; font-weight: 700; line-height: 1.3;
}
.toast.sc-guest-pop .toast-action-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  font-size: 1.125rem; font-weight: 700;
}
.toast.sc-guest-pop .toast-action:focus-visible,
.toast.sc-guest-pop .toast-action-link:focus-visible { outline: 3px solid var(--sc-focus); outline-offset: 3px; }
.toast.sc-guest-pop .toast-close:focus-visible { outline: 3px solid var(--sc-focus); outline-offset: -3px; }
@media (max-width: 500px) {
  .toast.sc-guest-pop .toast-actions { align-items: stretch; }
  .toast.sc-guest-pop .toast-action { width: 100%; }
  .toast.sc-guest-pop .toast-action-link { align-self: flex-start; }
}
@media (max-height: 480px) { .toast.sc-guest-pop { padding: .75rem 1rem; } .toast.sc-guest-pop .toast-message { display: none; } }
html.sc-guest-pop-open { scroll-padding-bottom: var(--sc-pop-h, 0px); }
html.sc-guest-pop-open body.sc-body { padding-bottom: var(--sc-pop-h, 0px); }
@media (prefers-reduced-motion: reduce) {
  .toast.sc-guest-pop { animation: none; transition: none; }
}
