/*
 * The public site's page layout (Package 7): /, /venues, /campus, /safety,
 * /consoles, /start, the venue terms. The brand itself -- fonts, colours,
 * the logo tile and wordmark, buttons, card, chip, field, focus -- is
 * brand.css (Package 13, review D11), which every page links first; this file
 * is only the frame and the parts the site alone uses.
 */

/* ---- the frame ---- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
/* The way home is a whole target (44), like the links beside it. */
.site-header .brand { min-height: 44px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover { background: var(--raised); }
/* Where you are: the page itself ("page"), or the part of the site it belongs
   to ("true": /start under For places). Its edge is the strong line, because
   the shape is what says so (3 : 1 on the canvas; the fill alone is 1.2 : 1). */
.site-nav a[aria-current] { background: var(--raised); border: 1px solid var(--strong-line); }
main { padding: 12px 0 56px; }
/* The legal pages' main is the frame itself (.wrap), which has no room below;
   they have a footer now, and the card must not sit on its line. */
main.legal { padding-bottom: 56px; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink2); font-size: 14px; }
/* Each footer link is a whole target (44 high; they were 32). */
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 18px; margin-bottom: 12px; }
.site-footer a { color: var(--ink2); min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }

/* ---- parts ---- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.hero { display: grid; gap: 28px; align-items: center; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding: 24px 0 8px; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } }
.hero-art { width: 100%; height: auto; border-radius: 26px; display: block; }
/* A phrase of the headline that stays on one line: the line under the name
   breaks between its phrases, never inside one, whatever the width. */
.keep { white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#getApp { display: grid; gap: 10px; max-width: 320px; }
#getApp .small { color: var(--ink2); }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.pill-free { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.plan h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan .price { font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 4px; }
.plan ul { margin: 12px 0 0; padding-inline-start: 1.2em; }
.plan li + li { margin-top: 4px; }
.coming { color: var(--ink2); font-size: 14px; }
.note { border-inline-start: 3px solid var(--accent); padding: 4px 0; padding-inline-start: 14px; }
.warning-banner { background: var(--accent-soft); color: var(--ink); border-radius: 16px; padding: 14px 16px; font-weight: 600; }
.doc h2 { margin-top: 30px; font-size: 22px; }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: 12px; }
.doc li + li { margin-top: 6px; }
/* A long address or a long word wraps instead of pushing the page sideways
   (at 320 wide with WCAG's text spacing, the privacy policy scrolled). */
.doc, .legal { overflow-wrap: break-word; }
.doc th, .doc td { overflow-wrap: anywhere; }
/* A link that stands alone on its line, outside a sentence, is a whole target
   (44): "Leer en español", the language link, the venue terms' own links, a
   plan's "Ask us for a price". A link inside a sentence stays as it is. The
   venue terms' row of links wraps as whole links, and the one you are reading
   is bold and not underlined, as well as said to a screen reader. */
.doc nav { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; }
.doc nav a[aria-current] { font-weight: 700; text-decoration: none; color: var(--ink); }
.alone a, [data-language-link] a, .doc nav a, .price a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }

/* ---- forms (/start); the field itself is brand.css ---- */
input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; }
.choice { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; }
.choice input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row > .grow { flex: 1 1 220px; }
.status { min-height: 1.5em; font-size: 14px; }
.status[data-tone="bad"] { color: var(--danger); font-weight: 600; }
.status[data-tone="ok"] { color: var(--success); font-weight: 600; }
/* What is wrong with an answer, in words, under the answer itself; the
   field's edge thickens as well as reddens, so colour is not the only sign. */
.field-error { font-size: 13px; font-weight: 600; color: var(--danger); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border: 2px solid var(--danger); }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.results li { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--raised); }
.results .grow { flex: 1 1 200px; min-width: 0; }
.request-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.request-list li { padding: 14px 16px; border-radius: 16px; background: var(--raised); border: 1px solid var(--line); }
.case { background: var(--accent-soft); border-radius: 18px; padding: 16px 18px; font-weight: 600; }

/* The radius map (radius_map.js), in the site's colours. */
.radius-map { position: relative; height: 340px; overflow: hidden; border: 1px solid var(--line2); border-radius: 18px; background: var(--sunken); touch-action: manipulation; cursor: crosshair; }
.radius-map-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; }
.radius-map-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.radius-map-radius { fill: rgba(255, 106, 69, 0.18); stroke: #D03915; stroke-width: 2.5; }
.radius-map-allowance { fill: none; stroke: #D03915; stroke-width: 1.5; stroke-dasharray: 6 5; opacity: 0.8; }
.radius-map-pin { fill: #D03915; stroke: #FFFFFF; stroke-width: 2.5; }
.radius-map-zoom { position: absolute; top: 10px; inset-inline-end: 10px; display: grid; gap: 6px; }
.radius-map-zoom button { width: 44px; height: 44px; padding: 0; font-size: 20px; line-height: 1; border-radius: 12px; background: var(--raised); color: var(--ink); border: 1px solid var(--line2); cursor: pointer; }
.radius-map-credit { position: absolute; right: 0; bottom: 0; padding: 2px 6px; font-size: 11px; background: rgba(255, 255, 255, 0.85); color: #15201D; }
.radius-map-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; color: var(--ink2); }
.radius-map-caption { margin-top: 8px; font-size: 13px; color: var(--ink2); }
