/* Explorer (#1291): /planner/explorer. A map filling the page, the ask box and chips floating over
   it, the answer in a drawer on the right, the document panel sliding over that.

   A global stylesheet linked from App.razor, not scoped .razor.css: the answer is HTML built on the
   server and rendered as markup, and the pins are built by explorer-map.js, so neither carries a
   scope attribute for a scoped rule to match. Everything is prefixed ex- and lives under .ex-page.

   Colours come from app.css (--navy, --red, --green, --amber, --gray-*). */

.ex-page {
    --ex-line: #e3e6eb;
    --ex-line-2: #eef0f3;
    --ex-mute: #5b6472;
    --ex-faint: #8a93a1;
    --ex-ink: #1c2330;
    --ex-quote: #fff8e1;
    --ex-quote-line: #e0b84a;
    --ex-shadow: 0 1px 2px rgba(20,30,50,.06), 0 8px 24px rgba(20,30,50,.08);
    --ex-drawer: 444px;
    position: relative;
    flex: 1;
    min-height: 540px;
    overflow: hidden;
    color: var(--ex-ink);
    background: #eef0f2;
}

/* The page fills what the planner shell leaves between its top bar and its support bar. */
.planner-main:has(.ex-page) {
    max-width: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.ex-page button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }

/* Outcome colours: --c is the solid, --cb the tint. */
.ex-page .o-approved { --c: var(--green); --cb: #ecf6f0; }
.ex-page .o-refused { --c: var(--red); --cb: #fdf0f0; }
.ex-page .o-pending { --c: var(--amber); --cb: #fdf5e4; }
.ex-page .o-withdrawn { --c: #8a8f98; --cb: #f0f1f3; }
.ex-page .o-other { --c: #5b6472; --cb: #eceef2; }

/* ── map ── */
/* z-index 0 makes the map its own stacking context, so Leaflet's panes and controls (up to 1000)
   stay beneath everything that floats over the map. */
.ex-map { position: absolute; inset: 0; z-index: 0; transition: filter .4s; }
.ex-map.leaflet-container { font: 12px/1.4 Inter, sans-serif; background: #eef0f2; }
.ex-page .leaflet-tooltip i { color: var(--ex-mute); }
.ex-veil {
    position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(ellipse 60% 55% at 50% 38%, rgba(246,247,249,.94) 0%, rgba(246,247,249,.72) 55%, rgba(246,247,249,.2) 100%);
}
.ex-page.is-hero .ex-map { filter: saturate(.6); }
.ex-page.is-hero .ex-veil { opacity: 1; }
.ex-page.is-hero .leaflet-control-zoom { display: none; }
/* The drawer covers the right edge: move Leaflet's own corners clear of it. */
.ex-page.has-drawer .leaflet-right { right: calc(var(--ex-drawer) + 32px); }

/* pins (built by explorer-map.js) */
.ex-pin {
    display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 2.5px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 2px 5px rgba(0,0,0,.3); transition: transform .12s;
}
/* Pending is hollow and withdrawn is faded: neither is a decision, and neither should read as one. */
.ex-pin.o-pending { background: #fff; border-color: var(--amber); box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 2px 5px rgba(0,0,0,.25); }
.ex-pin.o-withdrawn { opacity: .7; }
.ex-pin.is-appealed { border-radius: 3px; }
.ex-pin.is-hov { transform: scale(1.45); }
.ex-pin.is-sel { transform: scale(1.6); box-shadow: 0 0 0 3px var(--navy), 0 2px 8px rgba(0,0,0,.4); }
.ex-ring-handle { display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); box-shadow: 0 2px 6px rgba(0,0,0,.3); cursor: ew-resize; }
.ex-ring-label { font: 700 12px Inter, sans-serif; color: var(--navy); background: rgba(255,255,255,.92); border-radius: 9px; text-align: center; line-height: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.15); white-space: nowrap; }

/* ── the ask box and what floats with it ── */
.ex-top {
    position: absolute; z-index: 20; top: 16px; left: 16px; width: min(760px, calc(100% - 32px));
    display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.ex-top > * { pointer-events: auto; }
.ex-page.has-drawer .ex-top { width: auto; right: calc(var(--ex-drawer) + 32px); }
.ex-page.has-drawer .ex-ask { max-width: 860px; }

.ex-hero { display: none; text-align: center; }
.ex-hero h1 { font-size: 30px; letter-spacing: -.02em; margin: 0 0 6px; color: var(--navy); font-weight: 700; }
.ex-hero p { margin: 0; color: var(--ex-mute); font-size: 15px; }

.ex-ask {
    position: relative; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--ex-line);
    border-radius: 12px; padding: 10px 10px 10px 12px; box-shadow: var(--ex-shadow);
}
/* app.css gives every text input a border, padding and a focus ring; the ask box's own frame is the field here. */
.ex-page .ex-ask input.ex-q, .ex-page .ex-ask input.ex-q:focus {
    flex: 1; min-width: 0; font: 500 15px Inter, sans-serif; border: 0; outline: 0; box-shadow: none; background: none;
    color: var(--ex-ink); padding: 0; border-radius: 0;
}
.ex-ask .ex-q::placeholder { color: #9aa3b0; opacity: 1; }
.ex-ask:focus-within { border-color: #a9b8d0; }
.ex-page .ex-go { background: var(--navy); color: #fff; border-radius: 8px; padding: 7px 14px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.ex-page .ex-go:hover { background: var(--navy-light); }

/* The opening state: the box in the middle of a faded map, until the map is touched or a question asked. */
.ex-page.is-hero .ex-top { left: 50%; top: 15%; transform: translateX(-50%); width: min(820px, 92%); gap: 14px; }
.ex-page.is-hero .ex-hero { display: block; }
.ex-page.is-hero .ex-ask { padding: 14px 14px 14px 16px; border-radius: 16px; border-color: #c5cfdf; box-shadow: 0 2px 4px rgba(20,30,50,.06), 0 18px 50px rgba(20,30,50,.16); }
.ex-page.is-hero .ex-ask input.ex-q { font-size: 18px; }
.ex-page.is-hero .ex-go { padding: 10px 20px; font-size: 14px; }

/* Where chip */
.ex-where { display: inline-flex; align-items: center; flex: none; max-width: 46%; border-radius: 10px; background: #f0f3f8; box-shadow: inset 0 0 0 1px #d5dce8; font-size: 13.5px; }
.ex-where:hover { background: #e6ebf3; }
.ex-where.is-set { background: #e9eef6; box-shadow: inset 0 0 0 1.5px var(--navy); }
.ex-page .ex-where-main { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 7px 10px 7px 12px; white-space: nowrap; }
.ex-where-main i { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ex-faint); }
.ex-where-main b { font-weight: 600; color: var(--ex-mute); overflow: hidden; text-overflow: ellipsis; }
.ex-where.is-set .ex-where-main b { color: var(--navy); }
.ex-where-caret { color: var(--ex-faint); font-size: 11px; }
.ex-page .ex-where-clear { flex: none; width: 20px; height: 20px; margin-right: 6px; line-height: 18px; text-align: center; border-radius: 50%; color: var(--ex-mute); font-size: 15px; }
.ex-page .ex-where-clear:hover { background: #cfd8e6; color: var(--ex-ink); }

.ex-where-menu, .ex-sugg {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; background: #fff; border: 1px solid var(--ex-line);
    border-radius: 12px; box-shadow: 0 12px 40px rgba(20,30,50,.18); padding: 6px;
}
.ex-where-menu { width: 340px; max-width: 100%; }
.ex-menu-head { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ex-faint); padding: 8px 10px 6px; }
.ex-page .ex-where-menu button { display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; }
.ex-page .ex-where-menu button:hover { background: #f0f3f8; }
.ex-where-menu b { font-weight: 600; }
.ex-where-menu small, .ex-sugg small { grid-column: 2; display: block; color: var(--ex-faint); font-size: 12px; }
.ex-ic { grid-row: span 2; display: inline-block; width: 20px; height: 20px; align-self: center; justify-self: center; }
.ex-ic.is-ring { border-radius: 50%; border: 2px solid var(--navy); background: radial-gradient(circle, var(--navy) 0 2.5px, rgba(26,54,93,.1) 3px); }
.ex-sugg { right: 0; }
.ex-page .ex-sugg button { display: grid; grid-template-columns: 56px 1fr; column-gap: 10px; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; background: #f0f3f8; }
.ex-sugg i { font-style: normal; grid-row: span 2; align-self: center; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.ex-sugg b { font-size: 15px; }

/* chips and the count */
.ex-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ex-page .ex-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; background: #fff; border: 1px solid var(--ex-line);
    border-radius: 99px; font-size: 12.5px; white-space: nowrap; box-shadow: 0 1px 3px rgba(20,30,50,.12); max-width: 100%;
}
.ex-chip.is-label > span { overflow: hidden; text-overflow: ellipsis; }
.ex-chip i { font-style: normal; color: var(--ex-faint); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.ex-page .ex-chip.is-toggle { color: var(--ex-faint); background: rgba(255,255,255,.8); border-style: dashed; }
.ex-page .ex-chip.is-toggle.is-on { color: var(--ex-ink); background: #fff; border-style: solid; }
.ex-chip.is-toggle b { font-weight: 600; }
.ex-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); opacity: .35; }
.ex-chip.is-on .ex-dot { opacity: 1; }
.ex-chip.o-pending .ex-dot { background: #fff; box-shadow: inset 0 0 0 2px var(--amber); }
.ex-count { align-self: flex-start; background: var(--navy); color: #fff; font-weight: 600; font-size: 12.5px; padding: 4px 10px; border-radius: 99px; box-shadow: var(--ex-shadow); }

/* bottom-left: legend, tip, coverage */
.ex-bottom { position: absolute; z-index: 20; left: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; pointer-events: none; max-width: calc(100% - 32px); }
.ex-page.has-drawer .ex-bottom { max-width: calc(100% - var(--ex-drawer) - 48px); }
.ex-page.is-hero .ex-bottom { left: 50%; transform: translateX(-50%); align-items: center; text-align: center; }
.ex-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 12px; color: var(--ex-mute); background: rgba(255,255,255,.94); padding: 6px 10px; border-radius: 6px; box-shadow: var(--ex-shadow); }
.ex-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.ex-legend .ex-pin { width: 11px; height: 11px; border-width: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.ex-legend-ring { width: 13px; height: 13px; border-radius: 50%; border: 1px dashed var(--navy); }
.ex-tip { background: #10203a; color: #fff; font-size: 13px; padding: 7px 14px; border-radius: 99px; box-shadow: var(--ex-shadow); }
.ex-cov { font-size: 12px; color: var(--ex-faint); background: rgba(255,255,255,.94); padding: 4px 10px; border-radius: 6px; }
.ex-cov b { color: var(--ex-mute); font-weight: 600; }

/* ── drawer ── */
.ex-drawer {
    position: absolute; z-index: 25; top: 16px; right: 16px; bottom: 16px; width: var(--ex-drawer); background: #fff;
    border-radius: 12px; box-shadow: var(--ex-shadow); display: flex; flex-direction: column; overflow: hidden;
}
.ex-tabs { display: flex; border-bottom: 1px solid var(--ex-line); padding: 0 8px; flex: none; }
.ex-page .ex-tabs button { padding: 11px 12px; font-weight: 600; color: var(--ex-mute); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ex-page .ex-tabs button.is-on { color: var(--navy); border-bottom-color: var(--navy); }
.ex-tabs button span { font-weight: 500; color: var(--ex-faint); margin-left: 2px; }
/* Both panes stay in the DOM (the answer's buttons are found by a delegated listener); a class
   picks the one on show. Never the [hidden] attribute, which loses to any display rule. */
.ex-pane { flex: 1; overflow: auto; display: none; min-height: 0; }
.ex-pane.is-on { display: block; }
.ex-pane.is-answer { padding: 14px 18px 18px; }

.ex-asked { margin: 0 0 12px; font-size: 13px; color: var(--ex-mute); font-style: italic; }
.ex-pending { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 7px 10px; border-radius: 6px; background: #e9eef6; color: var(--navy); font-size: 12.5px; font-weight: 600; }

.ex-spin { flex: none; display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #c5cfdf; border-top-color: var(--navy); animation: ex-spin .7s linear infinite; }
@keyframes ex-spin { to { transform: rotate(360deg); } }

/* steps */
.ex-steps { font-size: 12.5px; color: var(--ex-mute); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--ex-line-2); }
.ex-page .ex-steps-head { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ex-mute); }
.ex-page .ex-steps:not(.is-done) .ex-steps-head { cursor: default; }
.ex-steps-toggle { font-weight: 400; color: var(--ex-faint); font-size: 11.5px; }
.ex-steps.is-done .ex-spin { animation: none; border-color: var(--green); background: var(--green); }
.ex-steps.is-stopped .ex-spin { border-color: var(--red); background: var(--red); }
.ex-steps ol { list-style: none; margin: 8px 0 0; padding: 0 0 0 5px; border-left: 2px solid var(--ex-line); display: none; }
.ex-steps.is-open ol { display: block; }
.ex-steps li { padding: 3px 0 3px 12px; animation: ex-in .3s both; }
.ex-step-what { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.ex-step-tool { color: var(--navy); background: #e9eef6; padding: 0 6px; border-radius: 4px; font-weight: 600; font-size: 11.5px; }
.ex-step-res { display: block; color: var(--ex-ink); font-weight: 500; }
.ex-step-res::before { content: '\2192\00a0'; color: var(--ex-faint); }
.ex-step-res.is-error { color: #9b2c2c; }
.ex-steps li[data-state="running"] .ex-step-what::after { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #c5cfdf; border-top-color: var(--navy); animation: ex-spin .7s linear infinite; align-self: center; }
@keyframes ex-in { from { opacity: 0; transform: translateY(4px); } }

/* failure */
.ex-failed { padding: 12px 14px; border-radius: 8px; background: #fdf0f0; border-left: 3px solid var(--red); color: #63171b; font-size: 13.5px; }
.ex-failed h3 { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; }
.ex-failed p { margin: 0 0 4px; }
.ex-failed-advice { color: #7b3b3b; font-size: 12.5px; }
.ex-failed[data-kind="daily_cap"], .ex-failed[data-kind="round_limit"] { background: #fdf5e4; border-left-color: var(--amber); color: #6b4a05; }
.ex-failed[data-kind="daily_cap"] .ex-failed-advice, .ex-failed[data-kind="round_limit"] .ex-failed-advice { color: #7a5a14; }

/* the draft: unchecked text, and it must look it */
.ex-draft { border: 1px dashed #c5cfdf; border-radius: 8px; padding: 10px 12px; background: #fafbfc; }
.ex-draft-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ex-mute); margin-bottom: 6px; }
.ex-draft-text { white-space: pre-wrap; font-size: 14px; line-height: 1.55; color: var(--ex-mute); }

/* the answer (HTML from ExplorerAnswerRenderer) */
.ex-answer { font-size: 14.5px; line-height: 1.6; }
.ex-answer h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin: 18px 0 4px; color: var(--ex-ink); }
.ex-answer h3:first-child { margin-top: 0; }
.ex-answer h4 { font-size: 14px; font-weight: 700; margin: 16px 0 4px; color: var(--ex-ink); }
.ex-answer p { margin: 0 0 8px; }
.ex-answer ul, .ex-answer ol { margin: 0 0 8px; padding-left: 20px; }
.ex-answer li { margin-bottom: 6px; }
.ex-answer q.ex-quote { background: var(--ex-quote); box-shadow: 0 0 0 2px var(--ex-quote); border-bottom: 1px solid var(--ex-quote-line); color: #1c2330; }
.ex-page .ex-answer .ex-cite {
    display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin: 0 1px 0 4px;
    border-radius: 5px; background: var(--ex-quote); box-shadow: inset 0 0 0 1px var(--ex-quote-line); color: #7a5a00; font-size: 11px; font-weight: 700; vertical-align: 2px;
}
.ex-page .ex-answer .ex-cite:hover { background: var(--ex-quote-line); color: #fff; }
.ex-page .ex-answer .ex-ref { font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--navy); background: #e9eef6; padding: 1px 6px; border-radius: 4px; }
.ex-page .ex-answer .ex-ref:hover { box-shadow: inset 0 0 0 1px var(--navy); }
.ex-answer .ex-unverified { font-size: 11px; font-weight: 600; color: #7a5a14; background: #fdf5e4; border-radius: 4px; padding: 0 5px; white-space: nowrap; }

.ex-note { font-size: 12.5px; padding: 8px 12px; border-radius: 6px; margin: 12px 0 0; }
.ex-note.is-ok { background: #ecf6f0; color: #1f5138; }
.ex-note.is-warn { background: #fdf5e4; color: #6b4a05; border-left: 3px solid var(--amber); }
.ex-about { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ex-line-2); font-size: 12.5px; color: var(--ex-mute); }
.ex-about p { margin: 0 0 4px; }
.ex-about .is-warn { color: #6b4a05; font-weight: 500; }

/* results */
.ex-coverage { margin: 0; padding: 8px 14px; font-size: 12.5px; color: var(--ex-mute); background: #f6f7f9; border-bottom: 1px solid var(--ex-line-2); }
.ex-none { padding: 24px; color: var(--ex-mute); text-align: center; margin: 0; }
.ex-card { padding: 10px 14px; border-bottom: 1px solid var(--ex-line-2); cursor: pointer; border-left: 3px solid transparent; }
.ex-card:hover, .ex-card.is-hov { background: #f3f6fb; }
.ex-card.is-sel { background: #e9eef6; border-left-color: var(--navy); }
/* Not decisions: pending is marked with a dashed amber edge, withdrawn is greyed. */
.ex-card.o-pending:not(.is-sel) { border-left: 3px dashed var(--amber); }
.ex-card.o-withdrawn .ex-card-addr, .ex-card.o-withdrawn .ex-card-prop { color: var(--ex-faint); }
.ex-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; }
.ex-card-ref { font-weight: 600; }
.ex-card-when { margin-left: auto; color: var(--ex-faint); font-size: 12px; white-space: nowrap; }
.ex-pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; color: var(--c); background: var(--cb); white-space: nowrap; }
.ex-pill.o-pending { background: none; box-shadow: inset 0 0 0 1px var(--c); }
.ex-appeal { color: var(--red); font-weight: 600; font-size: 12px; white-space: nowrap; }
.ex-card-addr { font-weight: 600; margin-top: 3px; }
.ex-card-prop { color: var(--ex-mute); font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ex-card-docs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.ex-card-docs span { font-size: 11px; color: var(--ex-mute); background: var(--ex-line-2); padding: 0 6px; border-radius: 4px; }
.ex-card-docs .is-none { background: none; color: var(--ex-faint); padding: 0; }

/* ── document panel ── */
/* Fixed, over the planner top bar (z-index 50). Closed is off-screen AND visibility: hidden, so it
   is out of the tab order and reads as hidden to anything asking. */
.ex-doc {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 92vw); z-index: 2000; background: #fff;
    box-shadow: -12px 0 40px rgba(20,30,50,.18); display: flex; flex-direction: column;
    transform: translateX(105%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s;
}
.ex-doc.is-open { transform: none; visibility: visible; transition: transform .22s ease, visibility 0s; }
.ex-doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 20px 10px; }
.ex-doc-kind { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ex-faint); font-weight: 600; }
.ex-doc-num { margin-left: 8px; padding: 0 6px; border-radius: 5px; background: var(--ex-quote); box-shadow: inset 0 0 0 1px var(--ex-quote-line); color: #7a5a00; letter-spacing: 0; text-transform: none; }
.ex-doc-ref { font-size: 15px; margin-top: 2px; }
.ex-doc-ref b { margin-right: 6px; }
.ex-page .ex-doc-x { font-size: 24px; color: var(--ex-faint); line-height: 1; padding: 0 4px; }
.ex-page .ex-doc-x:hover { color: var(--ex-ink); }
.ex-doc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 0 20px 12px; border-bottom: 1px solid var(--ex-line); font-size: 12px; color: var(--ex-mute); }
.ex-doc-verbatim { color: var(--green); font-weight: 600; }
.ex-doc-verbatim::before { content: '\2713\00a0'; }
.ex-doc-file { flex-basis: 100%; color: var(--ex-faint); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; overflow-wrap: anywhere; }
.ex-doc-body { flex: 1; overflow: auto; padding: 18px 26px; font: 15px/1.65 Georgia, 'Times New Roman', serif; color: #2a2f38; background: #fbfaf7; border-top: 1px solid var(--ex-line); }
.ex-doc-meta + .ex-doc-body { border-top: 0; }
.ex-doc-ctx { color: #8b8f97; margin: 0 0 12px; }
.ex-doc-body blockquote { margin: 0 0 12px; padding: 10px 14px; background: var(--ex-quote); border-left: 3px solid var(--ex-quote-line); color: #1c2330; border-radius: 0 6px 6px 0; }
.ex-doc-problem { font: 500 14px/1.5 Inter, sans-serif; color: #6b4a05; background: #fdf5e4; border-left: 3px solid var(--amber); padding: 10px 14px; border-radius: 0 6px 6px 0; margin: 0 0 12px; }
.ex-doc-note, .ex-doc-loading { font: 13px/1.5 Inter, sans-serif; color: var(--ex-mute); margin: 0 0 12px; }

/* ── narrow screens: the drawer becomes a sheet along the bottom ── */
@media (max-width: 900px) {
    .ex-page { min-height: 640px; }
    .ex-page.has-drawer .ex-top { right: 16px; }
    .ex-drawer { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 52%; }
    .ex-page.has-drawer .leaflet-right { right: 0; }
    .ex-page.has-drawer .ex-bottom { display: none; }
    .ex-where { max-width: 38%; }
    .ex-hero h1 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .ex-map, .ex-veil, .ex-doc, .ex-pin { transition: none; }
    .ex-steps li { animation: none; }
}
