/* ═══════════════════════════════════════════════════════════════════════════
   Forge 2026 — Public Web App
   Design bar: a premium, invitation-only MSP working room (cap doc §1) — NOT a
   generic SaaS conference app. Editorial serif display over a deep-ink field
   with warm gold accents (confined — seam, rails, labels) held against a cool
   near-white ground and calm neutral chrome. Mobile-first; ~108 phones.
   Revised 2026-07-20 (nx-9acff21930f9): the original cream ground + gold-wash
   chrome read as a yellow-dominant field at mobile scale; gold now stays a
   deliberate accent rather than reinforcing a warm background wash.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --ink: #0f1a2b;          /* deep navy — primary field / header */
    --ink-soft: #1c2a3e;     /* raised ink surfaces */
    --paper: #f5f6f7;        /* cool near-white ground (revised 2026-07-20 — was warm cream #f7f5f0; the aggregate cream+gold read as yellow-washed on mobile, cap doc §change-log) */
    --card: #ffffff;
    --accent: #b8894a;       /* warm gold — the invitation accent (unchanged — stays a confined accent, not a wash) */
    --accent-soft: #f0e6d6;  /* gold wash — reserved for small confined accent chips (monograms, badges); NOT for body/chrome bands as of 2026-07-20 */
    --chrome: #eef0f1;       /* calm neutral chrome — day-tabs, draft ribbon, muted/inactive bands (new 2026-07-20 — replaces gold-wash/hardcoded sand fills that drove the yellow read) */
    --muted: #5b6472;
    --muted-2: #8a919d;
    --line: #dde1e4;         /* cool neutral hairline (revised 2026-07-20 — was warm greige #e2ddd2) */

    --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --tabbar-h: 4.25rem;
    --maxw: 640px;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(15, 26, 43, 0.04), 0 6px 20px rgba(15, 26, 43, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.5;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    /* Leave room for the fixed tab bar + the phone home indicator. */
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}

/* ─── Header ──────────────────────────────────────────────────────────────── */
.app-header {
    background: var(--ink);
    color: var(--paper);
    padding:
        calc(1.6rem + env(safe-area-inset-top)) 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}
/* A quiet gold hairline seam under the header — an editorial rule, not a shadow. */
.app-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
    opacity: 0.85;
}
.app-header__brand { min-width: 0; }
.kicker {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.45rem;
}
.wordmark {
    font-family: var(--font-display);
    font-size: 2.05rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    line-height: 1.05;
}
.dates {
    display: block;
    font-size: 0.85rem;
    color: #c2c9d3;
    margin-top: 0.5rem;
}
.safety-pill {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.3rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(184, 137, 74, 0.55);
    border-radius: 999px;
    color: var(--accent);
    background: rgba(184, 137, 74, 0.1);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}
.safety-pill:active { background: rgba(184, 137, 74, 0.22); }

/* ─── View container ─────────────────────────────────────────────────────── */
.app-view {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2rem;
}

/* ─── Section header (per-view) ──────────────────────────────────────────── */
.section-head { margin-bottom: 1.25rem; }
.section-head__eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}
.section-head__title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    margin-top: 0.25rem;
    letter-spacing: 0.005em;
}
.section-head__sub {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 0.4rem;
}
.draft-ribbon {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.3rem 0.6rem;
    background: var(--chrome);
    color: var(--muted);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* ─── Day switcher (segmented control) ───────────────────────────────────── */
.day-switch {
    display: flex;
    gap: 0.35rem;
    background: var(--chrome);
    border-radius: 12px;
    padding: 0.3rem;
    margin-bottom: 1.5rem;
}
.day-switch__btn {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.55rem 0.4rem;
    border-radius: 9px;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.15s ease, color 0.15s ease;
}
.day-switch__btn[aria-selected="true"] {
    background: var(--ink);
    color: var(--paper);
    box-shadow: var(--shadow);
}

/* ─── Schedule timeline ──────────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0.85rem; }

.block {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow);
    position: relative;
}
/* Left accent rail encodes block type at a glance. */
.block::before {
    content: "";
    position: absolute;
    left: 0; top: 0.9rem; bottom: 0.9rem;
    width: 3px;
    border-radius: 3px;
    background: var(--accent);
}
.block--meal::before      { background: #cbb78d; }
.block--peer-group::before{ background: #6b8f9c; }
.block--dinner-pod::before{ background: #a4739a; }
.block--bus-tour::before  { background: #7f9a6b; }
.block--breakout::before  { background: linear-gradient(180deg, var(--accent), #6b8f9c); }

.block__time {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-transform: uppercase;
}
.block__type {
    display: inline-block;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-left: 0.5rem;
}
.block__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 0.3rem;
    line-height: 1.25;
}
.block__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}
.block__meta .with-icon { display: inline-flex; align-items: center; gap: 0.3rem; }
.block__note {
    margin-top: 0.55rem;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.45;
}

/* Breakout: parallel rooms (the only parallelism, cap doc §3.2). */
.rooms {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-top: 0.7rem;
}
@media (min-width: 480px) {
    .rooms { grid-template-columns: 1fr 1fr; }
}
.room {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
}
.room__label {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}
.room__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.2rem;
    color: var(--ink);
}
.room__speaker { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }

/* ─── Placeholder / empty states ─────────────────────────────────────────── */
.placeholder, .empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--muted);
}
.placeholder__mark, .empty-state__mark {
    width: 44px; height: 44px;
    margin: 0 auto 1rem;
    color: var(--accent);
    opacity: 0.9;
}
.placeholder__title, .empty-state__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.placeholder p, .empty-state p {
    font-size: 0.92rem;
    max-width: 30ch;
    margin: 0 auto;
    line-height: 1.5;
}

/* ─── Directory: speakers + sponsors (§3.5) ──────────────────────────────── */
.dir-section { margin-bottom: 1.75rem; }
.dir-section:last-child { margin-bottom: 0; }
.dir-section__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.85rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--line);
}
.dir-section__empty { color: var(--muted); font-size: 0.9rem; }

/* Speaker cards */
.speaker-list { display: flex; flex-direction: column; gap: 0.85rem; }
.speaker {
    display: flex;
    gap: 0.9rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow);
}
.speaker__avatar { flex: none; }
.speaker__monogram,
.speaker__photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.speaker__monogram {
    background: var(--accent-soft);
    color: #8a6321;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.speaker__body { min-width: 0; }
.speaker__name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}
.speaker__role {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 0.15rem;
}
.speaker__bio {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 0.5rem;
}
.speaker__sessions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }
.chip {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--muted);
}

/* Host/MC cards — mirrors .speaker (same card treatment, cap doc §3.5
   MC/host slot). Separate class family so the two can diverge later,
   same convention as .sponsor__mark mirroring .speaker__monogram. */
.host-list { display: flex; flex-direction: column; gap: 0.85rem; }
.host {
    display: flex;
    gap: 0.9rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow);
}
.host__avatar { flex: none; }
.host__monogram,
.host__photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.host__monogram {
    background: var(--accent-soft);
    color: #8a6321;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.host__body { min-width: 0; }
.host__name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}
.host__role {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 0.15rem;
}
.host__blurb {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 0.5rem;
}

/* Tier group label (shared by sponsors + resource groups) */
.dir-group { margin-bottom: 1.1rem; }
.dir-group:last-child { margin-bottom: 0; }
.dir-group__label {
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.55rem;
}

/* Sponsor LISTING — rows, not booths (§3.5). */
.sponsor-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.sponsor__link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.8rem 0.95rem;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--ink);
}
a.sponsor__link:active { background: var(--paper); }
.sponsor__avatar { flex: none; }
/* Placeholder mark mirrors .speaker__monogram (§3.5 visual consistency) until a
   real `logo` asset is wired — swap-in is a pure content edit, no CSS change. */
.sponsor__mark,
.sponsor__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
}
.sponsor__mark {
    background: var(--accent-soft);
    color: #8a6321;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.sponsor__logo { object-fit: contain; padding: 3px; border: 1px solid var(--line); }
.sponsor__text { min-width: 0; display: flex; flex-direction: column; }
.sponsor__name { font-weight: 600; font-size: 0.98rem; flex: none; }
.sponsor__blurb { color: var(--muted); font-size: 0.85rem; line-height: 1.4; }
.sponsor__ext { margin-left: auto; color: var(--accent); font-weight: 700; flex: none; align-self: flex-start; }

/* Premier sponsor CARDS — large + prominent (≥ the speaker-card treatment),
   room for a tagline + an optional description. Standard stays the compact
   `.sponsor-list` row above; the render itself signals the tier (§3.5). */
.sponsor-card-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.sponsor-card__link {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--ink);
    position: relative;
}
a.sponsor-card__link:active { background: var(--paper); }
.sponsor-card__avatar { flex: none; }
.sponsor-card__mark,
.sponsor-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px; height: 72px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
}
.sponsor-card__mark {
    background: var(--accent-soft);
    color: #8a6321;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.sponsor-card__logo { padding: 6px; border: 1px solid var(--line); }
.sponsor-card__body { min-width: 0; display: flex; flex-direction: column; padding-top: 0.1rem; }
.sponsor-card__name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
}
.sponsor-card__tagline {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}
.sponsor-card__desc {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-top: 0.5rem;
}
.sponsor-card__ext { position: absolute; top: 1rem; right: 1.1rem; color: var(--accent); font-weight: 700; }

/* ─── Resources: downloadable materials (§3.5) ───────────────────────────── */
.res-group { margin-bottom: 1.4rem; }
.res-group:last-child { margin-bottom: 0; }
.resource-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.resource__link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--ink);
}
a.resource__link:active { background: var(--paper); }
.resource__body { min-width: 0; flex: 1; }
.resource__head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.resource__title { font-weight: 600; font-size: 0.98rem; }
.resource__kind {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    border: 1px solid var(--accent-soft);
    background: var(--accent-soft);
    border-radius: 6px;
    padding: 0.12rem 0.4rem;
}
.resource__desc { font-size: 0.85rem; color: var(--muted); line-height: 1.45; margin-top: 0.3rem; }
.resource__action {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
}
.resource__size { color: var(--muted-2); font-weight: 600; }
.resource--pending .resource__link { opacity: 0.72; }
.resource__pending {
    flex: none;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 700;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.2rem 0.45rem;
}
/* ─── Happening now (announcements, cap doc §3.4) ────────────────────────── */
/* ─── Opt-in push: consent affordance (cap doc §3.9) ───────────────────────────
   A quiet, register-appropriate card at the top of the Now surface. Friendly and
   non-nagging — it lives on a surface the attendee chose to open, never a
   load-time interruption. Renders nothing where push isn't supported. */
.alerts-card-mount:empty { display: none; }
.alerts-card {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.05rem 1.1rem;
    margin-bottom: 1.15rem;
    box-shadow: var(--shadow);
}
.alerts-card__icon {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(184, 137, 74, 0.12);
    color: var(--accent);
}
.alerts-card__main { flex: 1 1 auto; min-width: 0; }
.alerts-card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 0.3rem;
}
.alerts-card__text {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.85rem;
}
.alerts-card__text strong { color: var(--ink); font-weight: 600; }
.alerts-card:last-child .alerts-card__text,
.alerts-card--muted .alerts-card__text,
.alerts-card--nudge .alerts-card__text { margin-bottom: 0; }

.alerts-btn {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--paper);
    background: var(--ink);
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    transition: background 0.15s ease, opacity 0.15s ease;
}
.alerts-btn:active { background: var(--ink-soft); }
.alerts-btn[disabled] { opacity: 0.55; cursor: default; }
.alerts-btn--ghost {
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--line);
    padding: 0.55rem 1rem;
}
.alerts-btn--ghost:active { background: var(--paper); }

/* State variants */
.alerts-card--on .alerts-card__icon { background: rgba(184, 137, 74, 0.18); }
.alerts-card--muted { background: var(--chrome); box-shadow: none; }
.alerts-card--muted .alerts-card__icon { background: rgba(91, 100, 114, 0.12); color: var(--muted); }
.alerts-card--nudge { border-color: var(--accent-soft); background: linear-gradient(180deg, #fbfdfe, var(--card)); }

/* The one dynamic surface. A curated PULL feed — read-only, refresh re-reads. */
.now-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}
.now-bar__live {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}
.now-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(184, 137, 74, 0.5);
    animation: nowPulse 2.2s ease-out infinite;
}
@keyframes nowPulse {
    0%   { box-shadow: 0 0 0 0 rgba(184, 137, 74, 0.45); }
    70%  { box-shadow: 0 0 0 7px rgba(184, 137, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(184, 137, 74, 0); }
}
.now-refresh {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background 0.15s ease;
}
.now-refresh:active { background: var(--paper); }
.now-refresh svg { width: 15px; height: 15px; color: var(--accent); display: block; }
.now-refresh.is-loading svg { animation: nowSpin 0.7s linear infinite; }
@keyframes nowSpin { to { transform: rotate(360deg); } }

.now-feed { display: flex; flex-direction: column; gap: 0.85rem; }
.now-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.1rem 1rem 1.25rem;
    box-shadow: var(--shadow);
    position: relative;
}
/* Warm gold left rail — the invitation accent, echoing the schedule blocks. */
.now-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0.9rem; bottom: 0.9rem;
    width: 3px;
    border-radius: 3px;
    background: var(--accent);
}
.now-card__body {
    font-family: var(--font-display);
    font-size: 1.12rem;
    line-height: 1.35;
    color: var(--ink);
}
.now-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem 0.8rem;
    margin-top: 0.55rem;
    font-size: 0.8rem;
    color: var(--muted);
}
.now-card__by { font-weight: 600; color: var(--muted); }
.now-card__time { color: var(--muted-2); letter-spacing: 0.02em; }

/* ─── Property map / wayfinding (§3.3) ───────────────────────────────────── */
.map-figure {
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow);
}
.map-figure__img {
    display: block;
    width: 100%;
    height: auto;
    background: var(--paper);
}
.map-figure__cap {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.45;
    border-top: 1px solid var(--line);
}
/* Honest §3.7 posture — the map image isn't shipped yet. */
.map-pending {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 1.1rem 1.2rem;
    background: var(--card);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
}
.map-pending__mark { flex: none; width: 44px; height: 44px; color: var(--accent); opacity: 0.85; }
.map-pending p { font-size: 0.88rem; line-height: 1.5; }

.fullmap-list { margin-bottom: 1.5rem; }

.wayfind__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.85rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--line);
}
.wayfind-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.wayfind__pt {
    display: flex;
    gap: 0.75rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    box-shadow: var(--shadow);
}
.wayfind__pin {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: #8a6321;
}
.wayfind__body { min-width: 0; }
.wayfind__label {
    display: block;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--ink);
}
.wayfind__level {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    border: 1px solid var(--accent-soft);
    background: var(--accent-soft);
    border-radius: 6px;
    padding: 0.1rem 0.4rem;
    vertical-align: 0.08em;
}
.wayfind__detail {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.45;
}

/* ─── Emergency / safety (§3.6) ───────────────────────────────────────────── */
/* Life-safety floor — always present, high-contrast, unmissable. */
.sos {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
    text-decoration: none;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.sos::after {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--accent);
}
.sos:active { background: var(--ink-soft); }
.sos__mark { flex: none; color: var(--accent); display: inline-flex; }
.sos__label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c2c9d3;
    font-weight: 600;
}
.sos__action {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 0.1rem;
}

/* Text-HELP pointer into the SMS layer (§3.6). */
.help-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--chrome);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
}
.help-card__body { min-width: 0; flex: 1; }
.help-card__eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8a6321;
    font-weight: 700;
}
.help-card__line { font-size: 0.95rem; color: var(--ink); margin-top: 0.25rem; line-height: 1.4; }
.help-card__line strong { font-weight: 700; }
.help-card__note { font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; line-height: 1.45; }
.help-card__cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.95rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: var(--shadow);
}
.help-card__cta:active { background: var(--ink-soft); }

/* Shared safety sub-blocks (contacts + medical). */
.safety-block { margin-bottom: 1.6rem; }
.safety-block:last-child { margin-bottom: 0; }
.safety-block__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.85rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--line);
}
.safety-block__body { font-size: 0.9rem; color: var(--muted); line-height: 1.5; margin-bottom: 0.7rem; }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    box-shadow: var(--shadow);
}
.contact__body { min-width: 0; flex: 1; }
.contact__label { display: block; font-weight: 600; font-size: 0.96rem; color: var(--ink); }
.contact__detail { display: block; font-size: 0.83rem; color: var(--muted); margin-top: 0.15rem; line-height: 1.4; }
.contact__phone {
    flex: none;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
}
.contact__phone:active { text-decoration: underline; }

.med-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.med {
    padding: 0.6rem 0.85rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.med__label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.med__detail { display: block; font-size: 0.83rem; color: var(--muted); margin-top: 0.15rem; line-height: 1.4; }

.safety-note { color: var(--muted); font-size: 0.9rem; line-height: 1.5; margin-top: 0.5rem; }

/* ─── Bottom tab bar ─────────────────────────────────────────────────────── */
.tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    display: flex;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--line);
    z-index: 50;
}
.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    text-decoration: none;
    color: var(--muted-2);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding-top: 0.35rem;
    transition: color 0.15s ease;
}
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"] svg { color: var(--accent); }

/* ─── Motion / accessibility ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
    *, *::before, *::after { animation: none !important; }
}
.app-view { animation: viewIn 0.22s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
