/* ==========================================================================
   Vendor alerts: the sign-up on /for-vendors/ and the alert pages
   (templates/alerts/*.html), loaded through {% block extra_css %} next to
   text.css or forms.css. Fields, buttons, notices, cards and facts are
   site.css components as they are (DESIGN.md, "Forms"); only how they sit
   together here.
   ========================================================================== */

/* 1. The sign-up section on /for-vendors/ ----------------------------------------
   A section of the text page: its heading under the hairline (text.css), a
   short paragraph, then the form in the reading column. */
.alert-signup .form { margin-top: var(--space-5); }

/* 2. "Only some cities?" ---------------------------------------------------------
   A native <details> (no JavaScript): the summary is a 44px row in the
   action colour with a chevron drawn by CSS (down when closed, up when
   open); the cities inside run down columns, two on a phone and three in
   the form column, every row keeping its 44px label from .field--choices. */
.alert-cities { min-width: 0; }
.alert-cities > summary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
  color: var(--color-action);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease;
}
.alert-cities > summary::-webkit-details-marker { display: none; }
.alert-cities > summary::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.25rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.alert-cities[open] > summary::before { margin-top: 0.25rem; transform: rotate(-135deg); }
.alert-cities > summary:hover { color: var(--color-action-hover); }
.alert-cities > summary:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius); }
.alert-cities > .field { margin-top: var(--space-3); }
.alert-cities .field--choices > div { display: block; columns: 9.5rem 3; column-gap: var(--space-4); }
.alert-cities .field--choices > div > div { break-inside: avoid; }

/* 3. The side card beside the forms ---------------------------------------------- */
.alert-facts { margin: 0; padding-left: 1.25rem; }
.alert-facts li + li { margin-top: var(--space-2); }

/* 4. Confirm, subscribed, unsubscribe -------------------------------------------
   What the subscription asks for as facts, then the one button. */
.status-page .alert-choices { margin-block: var(--space-5); }
.alert-choices dd { min-width: 0; overflow-wrap: break-word; }
.alert-button { margin-block: var(--space-5) var(--space-3); }

/* 5. "Stop all alerts" under the preferences form -------------------------------- */
.alert-leave { padding-top: var(--space-6); border-top: 1px solid var(--color-line); }
.alert-leave h2 { margin-bottom: var(--space-2); font-size: var(--text-lg); }
.alert-leave p { margin: 0; }
.alert-leave .actions { margin: var(--space-4) 0 0; }
