/* T-5059, T-5082: the explorer page around the Portal's data view (explorer/explorer.css). These
   rules name this page's own elements only, so they never restyle the view's table or controls.
   Light by default, dark by the reader's system or `&theme=dark`. */
:root { color-scheme: light; --bg: #fff; --fg: #0f172a; --muted: #475569; --line: #cbd5e1; --soft: #f1f5f9; --accent: #1d4ed8; --err-bg: #fef2f2; --err: #991b1b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --bg: #0b1220; --fg: #e2e8f0; --muted: #a3b1c6; --line: #334155; --soft: #142033; --accent: #93c5fd; --err-bg: #3b1219; --err: #fecaca; }
}
:root[data-theme="dark"] { color-scheme: dark; --bg: #0b1220; --fg: #e2e8f0; --muted: #a3b1c6; --line: #334155; --soft: #142033; --accent: #93c5fd; --err-bg: #3b1219; --err: #fecaca; }
[hidden] { display: none !important; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fg); background: var(--bg); }
main { padding: 12px 16px 16px; }
.inline main { padding: 0 2px 8px; }
.page-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.inline .page-head { justify-content: flex-end; }
.inline #title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#title { font-size: 1.15rem; margin: 0; }
#map-title { font-size: 1rem; margin: 16px 0 6px; }
.hint { color: var(--muted); font-size: 0.85rem; margin: 2px 0 0; }
.page-button { font: inherit; min-height: 44px; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--soft); color: var(--fg); cursor: pointer; }
.page-button:focus-visible, #detail a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.status { margin: 10px 0 4px; color: var(--muted); }
.status:empty { display: none; }
.status.error { padding: 10px 12px; border-radius: 8px; background: var(--err-bg); color: var(--err); }
#map { height: 420px; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 600px) { #map { height: 300px; } }
#detail { max-width: min(40rem, calc(100vw - 32px)); width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); padding: 16px; box-sizing: border-box; }
#detail::backdrop { background: rgba(15, 23, 42, 0.5); }
#detail a { color: var(--accent); overflow-wrap: break-word; }
.detail-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.detail-head h2 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
#detail-list { display: grid; grid-template-columns: minmax(6rem, auto) 1fr; gap: 4px 12px; }
#detail-list dt { color: var(--muted); }
#detail-list dd { margin: 0; overflow-wrap: anywhere; }
#detail h3 { font-size: 0.95rem; margin: 12px 0 4px; }
#detail ul { margin: 0; padding-left: 1.2rem; }
#detail li { min-height: 32px; }
