/* embed-setup.css — self-serve setup page for the district school finder (embed-setup.html).
 * Builds on pages.css (.builder, .fd-builder, .preview, .code-box). Prefix: es-. */
.es-hero { padding: 34px 0 6px; }
.es-hero h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 4.5vw, 2.2rem); line-height: 1.15; color: var(--ink); }
.es-build { padding-top: 12px; }
.es-builder { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
.es-builder .field > label { display: block; }
#es-search { margin-top: 6px; }
#es-district { margin-top: 6px; width: 100%; padding: 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: .88rem; }
#es-district option { padding: 6px 8px; border-radius: 6px; }
#es-district option:checked { background: var(--accent); color: #fff; }
.es-picked { margin: 6px 0 0; font-size: .84rem; font-weight: 700; color: var(--ink); min-height: 1.2em; }
.es-license { font-size: .84rem; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.es-license ul { margin: 4px 0 6px; padding-left: 18px; }
.es-license p { margin: 0; color: var(--muted); }
.es-keystate { margin: 0; font-size: .8rem; color: var(--muted); }
.es-keystate.is-on { color: var(--good, #17784A); font-weight: 700; }
.es-out-h { font-size: 1.02rem; margin: 14px 0 0; color: var(--ink); }
.es-link-box pre.code { padding-bottom: 56px; }
.es-btn-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.es-findbtn { display: inline-block; padding: 12px 22px; border-radius: 10px; background: #14324F; color: #fff; font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; }
.es-builder .preview iframe { height: 300px; }

/* Step 4: the "Is today a school day?" card (js/today-setup.js). */
.es-today h2 { margin: 0 0 6px; }
.es-today-grid { display: grid; gap: 16px; margin-top: 12px; }
.es-today-grid > * { min-width: 0; }
@media (min-width: 860px) { .es-today-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.es-today-preview iframe { width: 100%; height: 340px; border: 0; display: block; }

/* Flyer: a letter page; on screen a scaled preview card (always paper white). */
.es-flyer-sec { padding-top: 10px; }
.es-flyer-tools { max-width: 760px; }
.es-flyer-tools h2 { margin: 0 0 6px; }
.es-flyer-url { margin: 12px 0; display: block; }
.es-sheet-wrap { margin-top: 16px; padding: 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.es-sheet { --es-f-accent: #14324F; box-sizing: border-box; width: 100%; max-width: 8.5in; aspect-ratio: 8.5 / 11; margin: 0 auto; background: #fff; color: #111; padding: 6% 7%;
  border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.18); display: flex; flex-direction: column; align-items: center; text-align: center; color-scheme: light;
  container-type: inline-size; overflow: hidden; }
.es-sheet-head { display: flex; flex-direction: column; align-items: center; gap: 1.5cqw; width: 100%; border-bottom: .6cqw solid var(--es-f-accent); padding-bottom: 2.5cqw; }
.es-f-logo { max-height: 10cqw; max-width: 40cqw; object-fit: contain; }
.es-f-logo[hidden], .es-f-help[hidden], .es-f-credit[hidden] { display: none; }
.es-f-district { font-size: 4.4cqw; font-weight: 800; color: var(--es-f-accent); overflow-wrap: anywhere; }
.es-f-title { font-size: 8.4cqw; font-weight: 800; line-height: 1.05; margin-top: 4cqw; color: #0B1220; }
.es-f-title.es-f-es { margin-top: .6cqw; font-size: 5.6cqw; color: var(--es-f-accent); }
.es-f-lead { margin: 2.6cqw 0 0; font-size: 2.6cqw; line-height: 1.35; max-width: 85%; }
.es-f-lead.es-f-es { margin-top: .8cqw; color: #333; }
.es-f-qr { width: 42cqw; margin-top: 3.5cqw; }
.es-f-qr svg { display: block; width: 100%; height: auto; }
.es-f-scan { margin: 2.4cqw 0 0; font-size: 2.5cqw; font-weight: 700; line-height: 1.35; }
.es-f-scan .es-f-es { font-weight: 600; color: #333; }
.es-f-url { margin: 1.2cqw 0 0; font-size: 2.3cqw; font-weight: 700; color: var(--es-f-accent); overflow-wrap: anywhere; word-break: break-all; max-width: 92%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.es-f-help { margin: 2cqw 0 0; font-size: 2.4cqw; overflow-wrap: anywhere; }
.es-f-foot { margin: auto 0 0; padding-top: 2cqw; font-size: 1.7cqw; color: #444; }
.es-f-credit { margin: .8cqw 0 0; font-size: 1.5cqw; color: #666; }

@media (max-width: 900px) {
  .es-builder { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .es-sheet-wrap { padding: 8px; }
}

/* Print: only the flyer, one letter page. */
@media print {
  @page { size: letter portrait; margin: 0.5in; }
  html, body { background: #fff !important; }
  .topbar, .skip-link, .es-hero, .es-build, .es-flyer-tools, .es-today, .site-foot { display: none !important; }
  main, .es-flyer-sec, .es-flyer-sec .wrap, .es-sheet-wrap { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; max-width: none !important; width: auto !important; box-shadow: none !important; }
  .es-sheet { width: 7.5in; max-width: none; height: 9.95in; aspect-ratio: auto; box-shadow: none; border-radius: 0; padding: 0.3in 0.4in; break-inside: avoid; page-break-inside: avoid;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
