/* ==========================================================================
   BEL-AIR public site (Mockup 02) — help pages: contact, emergency, accessibility, privacy,
   site map, 404 and search. Only what inner.css does not already have.
   Every text colour comes from the light-body tokens (7:1 on paper).
   ========================================================================== */

/* ---------------------------------------------------------------- phone list (contact, emergency) */
.call-list { display: grid; gap: .6rem; }
.call-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .9rem 1.1rem; background: var(--paper-2); border: 1px solid var(--line-d); border-radius: var(--r-photo); }
.call-list b { display: block; font-weight: 700; }
.call-list small { display: block; color: var(--ink-d2); font-size: var(--t-sm); }
.call-list a.btn { min-height: 2.75rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .02em; white-space: nowrap; }

/* ---------------------------------------------------------------- 911 */
.em-911 { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem; margin-top: .9rem; padding: .8rem 1.4rem; min-height: 4.5rem; background: var(--paper-2); color: var(--ink-d) !important; border-radius: var(--r-photo); text-decoration: none; }
.em-911 b { font-family: var(--font-mono); font-weight: 500; font-size: clamp(2.2rem, 1.8rem + 2vw, 3.2rem); line-height: 1; letter-spacing: .04em; }
.em-911 span { font-weight: 700; }
.em-911:hover { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------------------------------------------------------------- what-to-do guides */
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.guide h3 { display: flex; align-items: center; gap: .6rem; }
.guide ol { list-style: decimal; padding-left: 1.4rem; margin-top: .75rem; }
.guide li + li { margin-top: .45rem; }
.guide li::marker { font-weight: 700; color: var(--ink-d2); }
.guide .note { margin-top: .9rem; }

/* ---------------------------------------------------------------- schematic map (contact) */
.map-card { padding: 0; overflow: hidden; }
.map-card .osm { border: 0; border-radius: 0; }
.map-card .card__body { display: grid; gap: .6rem; }

/* ---------------------------------------------------------------- site map */
/* columns that balance their height (a grid made each row as tall as its longest group) */
.sitemap { columns: 19rem 3; column-gap: 2.5rem; }
.sitemap > section { break-inside: avoid; margin-bottom: 2rem; }
.sitemap h2 { font-size: clamp(1.6 * var(--u), 1.3 * var(--u) + 1vw, 2.1 * var(--u)); padding-bottom: .5rem; border-bottom: 1px solid var(--line-d-strong); }
.sitemap ul { margin-top: .5rem; display: grid; }
.sitemap ul ul { margin: 0 0 .3rem 1rem; padding-left: .75rem; border-left: 2px solid var(--line-d); }
.sitemap a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.sitemap small { display: block; margin-top: -.4rem; margin-bottom: .3rem; color: var(--ink-d2); font-size: var(--t-sm); }

/* ---------------------------------------------------------------- search */
.search-results { display: grid; gap: .75rem; }
.result { padding: 1rem 1.25rem; background: var(--paper-2); border: 1px solid var(--line-d); border-radius: var(--r-photo); }
.result__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; font-size: var(--t-sm); color: var(--ink-d2); }
.result__type { background: var(--paper-3); color: var(--ink-d); border-color: var(--line-d-strong); }
.result h3 { margin-top: .4rem; font-size: var(--t-lg); }
.result h3 a { color: var(--link-d); }
.result p { margin-top: .3rem; color: var(--ink-d2); }
.result__where { font-family: var(--font-mono); font-size: var(--t-sm); color: var(--ink-d3); margin-top: .4rem; overflow-wrap: anywhere; }
.result mark { background: var(--wait-bg); color: inherit; padding: 0 .1em; border-radius: 2px; }
.link-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.link-chips a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--line-d-strong); border-radius: var(--r-ui); background: var(--paper-2); color: var(--ink-d); font-weight: 700; text-decoration: none; }
.link-chips a:hover { border-color: var(--ink-d); background: var(--ink-d); color: var(--paper); }
.filters .chips button .n { font-family: var(--font-mono); font-weight: 500; margin-left: .35rem; }

/* ---------------------------------------------------------------- 404 */
.lost { font-family: var(--font-mono); font-size: var(--t-sm); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ink-2); }
.sitemap .legend { display: block; margin-top: .75rem; }
.help-card a[href^="tel:"] { white-space: nowrap; }
@media (min-width: 761px) { .table a[href^="tel:"] { white-space: nowrap; } }
/* stacked contacts table: label above the value, so long words and A++ still fit a 320 px phone */
@media (max-width: 760px) { .table--contacts td { grid-template-columns: minmax(0, 1fr); gap: .1rem; } .table--contacts td + td { margin-top: .4rem; } }

/* ---------------------------------------------------------------- help articles and content pages (V-172, V-173, V-175) */
.help-topic + .help-topic { margin-top: 2.5rem; }
.help-topic > h2 { margin-bottom: 1rem; }
.help-links { display: grid; gap: .4rem; margin-top: .5rem; }
.help-links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }
.help-links small { display: block; margin-top: -.3rem; color: var(--ink-d2); font-size: var(--t-sm); }
