:root {
    --bg: #080e1a;
    --bg-elevated: #0f172a;
    --bg-card: #111c33;
    --bg-card-hover: #162442;
    --bg-alt: #0b1324;
    --border: rgba(148, 163, 184, 0.16);
    --border-strong: rgba(56, 189, 248, 0.38);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-soft: #cbd5e1;
    --accent: #10b981;
    --accent-cyan: #38bdf8;
    --accent-glow: rgba(16, 185, 129, 0.18);
    --header-h: 64px;
    --radius: 14px;
    --radius-sm: 9px;
    --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

code {
    font-family: var(--font-mono);
    font-size: 0.86em;
}

.hidden {
    display: none !important;
}

/* Optional analytics: equal choice buttons, available on the full-screen map too. */
.analytics-settings {
    border: 0;
    padding: 0.35rem 0.45rem;
    background: transparent;
    color: var(--text-soft);
    font: inherit;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.analytics-settings:hover { color: var(--accent-cyan); }
.analytics-settings:focus-visible, .analytics-consent button:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

.analytics-consent {
    position: fixed;
    z-index: 2000;
    inset: auto 1rem 1rem;
    width: min(960px, calc(100% - 2rem));
    max-height: calc(100dvh - var(--header-h) - 2rem);
    margin-inline: auto;
    overflow: auto;
    padding: 1.1rem 1.3rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.analytics-consent[hidden], .analytics-consent [hidden], .analytics-settings[hidden] { display: none; }
.analytics-consent h2 { margin: 0 0 0.45rem; font-size: 1rem; }
.analytics-consent p { margin: 0 0 0.5rem; color: var(--text-soft); font-size: 0.85rem; }
.analytics-consent-copy > a { color: var(--accent-cyan); font-size: 0.8rem; text-decoration: underline; }
.analytics-consent-status:empty { display: none; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.85rem; }
.analytics-consent-actions .btn { font-size: 0.82rem; }

@media (max-width: 600px) {
    .header-actions > .analytics-settings { max-width: 86px; line-height: 1.2; }
    .analytics-consent { padding: 1rem; }
    .analytics-consent-actions .btn { flex: 1 1 10rem; }
}

.container {
    width: min(1200px, calc(100% - 2.5rem));
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    height: var(--header-h);
    background: rgba(8, 14, 26, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    width: min(1360px, calc(100% - 2rem));
    height: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: #fff;
}

.brand-mark {
    display: inline-flex;
    color: var(--accent-cyan);
}

.brand-dot {
    color: var(--accent);
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-link {
    padding: 0.44rem 0.82rem;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-soft);
    transition: background 0.16s ease, color 0.16s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: #fff;
    background: rgba(56, 189, 248, 0.14);
}

/* Header Products Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    border-radius: 9px;
    transition: background 0.16s ease;
}

.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
    background: rgba(255, 255, 255, 0.06);
}

.nav-dropdown-trigger.active {
    background: rgba(56, 189, 248, 0.14);
}

.nav-dropdown-link {
    padding: 0.44rem 0.35rem 0.44rem 0.82rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-soft);
    white-space: nowrap;
}

.nav-dropdown-trigger:hover .nav-dropdown-link,
.nav-dropdown-trigger.active .nav-dropdown-link,
.nav-dropdown.open .nav-dropdown-link {
    color: #fff;
}

.nav-dropdown-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.44rem 0.62rem 0.44rem 0.25rem;
    cursor: pointer;
    border-radius: 0 9px 9px 0;
    transition: transform 0.16s ease, color 0.16s ease;
}

.nav-dropdown-caret:hover,
.nav-dropdown.open .nav-dropdown-caret {
    color: #fff;
}

.nav-dropdown.open .nav-dropdown-caret svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: min(580px, 92vw);
    background: rgba(13, 22, 41, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: 0.9rem;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65);
    z-index: 1250;
}

.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

@media (min-width: 861px) {
    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu,
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }
}

.nav-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.15rem 0.45rem 0.65rem;
    margin-bottom: 0.55rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.nav-dropdown-header a {
    color: var(--accent-cyan);
    font-weight: 600;
}

.nav-dropdown-header a:hover {
    text-decoration: underline;
}

.nav-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
}

.nav-dropdown-item {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    padding: 0.55rem 0.7rem;
    border-radius: 9px;
    border: 1px solid transparent;
    transition: background 0.14s ease, border-color 0.14s ease;
}

.nav-dropdown-item strong {
    font-size: 0.88rem;
    color: #fff;
}

.nav-dropdown-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav-dropdown-item:hover,
.nav-dropdown-item.current {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.28);
}

.nav-link-map {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(16, 185, 129, 0.32);
    background: rgba(16, 185, 129, 0.08);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.lang-switch {
    display: inline-flex;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2px;
}

.lang-pill {
    padding: 0.22rem 0.58rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.lang-pill.active {
    background: var(--accent-cyan);
    color: #06101f;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.45rem;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
}

/* Buttons & Tags */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.72rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.94rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #0ea5e9);
    color: #04111d;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.24);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--border-strong);
    background: rgba(56, 189, 248, 0.1);
}

.eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: var(--accent-cyan);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-cyan);
}

.mono-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.22);
}

.tech-pill {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.24rem 0.6rem;
    border-radius: 6px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-soft);
}

.accent-pill {
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag-chip {
    font-size: 0.78rem;
    padding: 0.22rem 0.58rem;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* Hero Section */
.hero-section {
    padding: 3rem 0 2.8rem;
    background:
        radial-gradient(circle at 14% 18%, rgba(16, 185, 129, 0.13), transparent 42%),
        radial-gradient(circle at 86% 22%, rgba(56, 189, 248, 0.14), transparent 45%),
        var(--bg);
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    gap: 2.2rem;
    align-items: center;
}

.hero-title {
    margin: 0.85rem 0 0.8rem;
    font-size: clamp(1.85rem, 3.2vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-lead {
    color: var(--text-soft);
    font-size: 1.03rem;
    margin: 0 0 1.35rem;
    max-width: 56ch;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.hero-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-cyan);
    padding: 0.28rem 0.2rem;
    transition: color 0.15s ease;
}

.hero-text-link:hover {
    color: #fff;
    text-decoration: underline;
}

.hero-inline-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.95rem;
}

.hero-map-card {
    background: linear-gradient(180deg, rgba(17, 28, 51, 0.95), rgba(11, 19, 36, 0.96));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.status-chip {
    font-size: 0.76rem;
    color: #34d399;
    font-weight: 600;
}

.hero-map-card h2 {
    margin: 0 0 0.4rem;
    font-size: 1.22rem;
}

.card-subtext {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.quick-map-form {
    display: flex;
    gap: 0.55rem;
    align-items: stretch;
}

.combobox-host {
    position: relative;
    flex: 1;
    min-width: 0;
}

.quick-map-input {
    width: 100%;
    min-width: 0;
    background: #070d19;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    color: #fff;
    font-size: 0.92rem;
}

.quick-map-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* Real-Time SignalR TstIndexer ComboBox Dropdown */
.combobox-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 980;
    background: #0c1527;
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.68);
    overflow: hidden;
}

.combobox-dropdown-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0.75rem;
    background: rgba(56, 189, 248, 0.08);
    border-bottom: 1px solid var(--border);
    font-size: 0.72rem;
}

.combobox-head-title {
    font-weight: 700;
    color: var(--accent-cyan);
}

.combobox-head-meta {
    font-family: var(--font-mono);
    color: #34d399;
}

.combobox-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    max-height: 295px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.combobox-option {
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.combobox-option:hover,
.combobox-option.active {
    background: rgba(56, 189, 248, 0.13);
    border-color: rgba(56, 189, 248, 0.34);
}

.combobox-opt-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.45rem;
}

.combobox-opt-label {
    font-size: 0.87rem;
    font-weight: 600;
    color: #fff;
}

.combobox-opt-sub {
    margin-top: 0.15rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.combobox-opt-src {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--accent-cyan);
    white-space: nowrap;
}

.combobox-empty {
    padding: 0.7rem 0.75rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.quick-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
}

.chip-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.query-chip {
    font-size: 0.77rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.09);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: var(--text-soft);
}

.query-chip:hover {
    border-color: var(--accent-cyan);
    color: #fff;
}

.metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
}

.metric-box strong {
    display: block;
    font-size: 1.08rem;
    font-family: var(--font-mono);
    color: #fff;
}

.metric-box span {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* Live Web Demos Quick Strip */
.live-demos-bar {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.08), rgba(56, 189, 248, 0.08));
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0;
}

.live-demos-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.live-demos-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--accent);
    white-space: nowrap;
}

.live-demos-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    flex: 1;
    justify-content: flex-end;
}

.live-demo-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.36rem 0.78rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.28);
    font-size: 0.82rem;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.14s ease;
}

.live-demo-pill strong {
    color: #fff;
    font-weight: 600;
}

.live-demo-pill span {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--accent-cyan);
}

.live-demo-pill:hover {
    border-color: var(--accent);
    background: rgba(16, 185, 129, 0.12);
    transform: translateY(-1px);
}

/* Sections */
.section-block {
    padding: 4.2rem 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-heading {
    margin-bottom: 2.2rem;
    max-width: 72ch;
}

.section-heading-split {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.section-kicker {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.section-heading h2 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
}

.section-heading p {
    margin: 0;
    color: var(--text-muted);
}

/* Featured Map Banner & Product Cards */
.catalog-first-section {
    padding-top: 1.85rem;
}

.section-heading-compact {
    margin-bottom: 1.25rem;
}

.featured-map-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.75rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(14, 165, 233, 0.1));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.25rem;
}

.featured-map-content h3 {
    margin: 0.5rem 0 0.4rem;
    font-size: 1.32rem;
}

.featured-map-content p {
    margin: 0 0 0.75rem;
    color: var(--text-soft);
    max-width: 78ch;
}

.product-card-example {
    margin: 0 0 0.95rem;
    padding: 0.52rem 0.72rem;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.08);
    border-left: 3px solid var(--accent);
    font-size: 0.83rem;
    line-height: 1.45;
    color: var(--text-soft);
}

.product-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.55rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.product-card:hover {
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.product-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.slug-code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.product-card h3 {
    margin: 0.85rem 0 0.35rem;
    font-size: 1.35rem;
}

.product-subtitle {
    margin: 0 0 0.65rem;
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.94rem;
}

.product-summary {
    margin: 0 0 1.2rem;
    color: var(--text-muted);
    font-size: 0.94rem;
    flex: 1;
}

.product-card-footer {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.card-cta-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

.card-cta-link:hover, .external-mini-link:hover {
    color: var(--accent-cyan);
}

.external-mini-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
}

/* Labs & Heritage */
.labs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.lab-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
}

.lab-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.lab-card-header h3, .lab-card-header h2 {
    margin: 0;
}

.lab-tagline {
    margin: 0.5rem 0 0.6rem;
    font-weight: 600;
    color: var(--accent-cyan);
    font-size: 0.9rem;
}

.lab-desc {
    margin: 0 0 1.1rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    flex: 1;
}

.lab-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.inline-ext-btn {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.24);
    color: var(--text-soft);
}

.inline-ext-btn:hover {
    border-color: var(--accent-cyan);
    color: #fff;
}

.heritage-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.heritage-item {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.1rem;
}

.heritage-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.heritage-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.heritage-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.heritage-ext-link {
    display: inline-block;
    margin-top: 0.55rem;
    font-size: 0.8rem;
    color: var(--accent-cyan);
}

.contact-banner {
    margin-top: 2rem;
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.09), rgba(56, 189, 248, 0.09));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-banner h3 {
    margin: 0.25rem 0 0.35rem;
    font-size: 1.25rem;
}

.contact-banner p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.footer-email-pill {
    display: inline-flex;
    align-items: center;
    margin-top: 0.45rem;
    padding: 0.34rem 0.78rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.28);
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.footer-email-pill:hover {
    border-color: var(--accent);
    background: rgba(16, 185, 129, 0.14);
    color: #fff;
}

.footer-bottom-mail {
    color: var(--text-soft);
}

.footer-bottom-mail:hover {
    color: var(--accent-cyan);
}

.side-contact-box {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

/* Dedicated Product & Labs Pages */
.product-hero {
    padding: 1.75rem 0 1.45rem;
    background:
        radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.12), transparent 48%),
        var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.breadcrumb-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

.breadcrumb-row a:hover {
    color: #fff;
}

.product-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.35rem;
    flex-wrap: wrap;
}

.product-hero-heading-col {
    flex: 1 1 460px;
    min-width: 0;
}

.product-hero h1 {
    margin: 0.45rem 0 0.3rem;
    font-size: clamp(1.65rem, 2.7vw, 2.3rem);
    line-height: 1.18;
}

.product-hero-subtitle {
    margin: 0;
    font-size: 1rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.product-hero-actions-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
}

.product-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.product-hero-lead {
    margin: 0.6rem 0 0;
    max-width: 74ch;
    color: var(--text-soft);
    font-size: 0.96rem;
}

.tag-list-large {
    margin-top: 0.9rem;
}

/* Concrete Product Example Window */
.example-window {
    margin-bottom: 2.1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, rgba(13, 23, 43, 0.98), rgba(7, 13, 25, 0.98));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
    overflow: hidden;
}

.example-window-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.68rem 1rem;
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.example-window-dots {
    display: inline-flex;
    gap: 6px;
}

.example-window-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.35);
}

.example-window-dots span:first-child { background: rgba(16, 185, 129, 0.75); }
.example-window-dots span:nth-child(2) { background: rgba(56, 189, 248, 0.75); }

.example-window-title {
    flex: 1;
    min-width: 180px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
}

.example-window-body {
    padding: 1rem 1.15rem 1.15rem;
}

.example-scenario-summary {
    margin: 0 0 0.8rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.example-rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.example-row {
    display: grid;
    grid-template-columns: minmax(170px, 0.32fr) 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.62rem 0.85rem;
    border-radius: 9px;
    background: rgba(17, 28, 51, 0.72);
    border: 1px solid var(--border);
}

.example-row-label {
    font-weight: 700;
    font-size: 0.86rem;
    color: #fff;
}

.example-row-value {
    font-size: 0.86rem;
    color: var(--text-soft);
}

.example-row-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    white-space: nowrap;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.45rem;
}

.feature-card h3 {
    margin: 0.7rem 0 0.45rem;
    font-size: 1.15rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.pillar-card {
    display: flex;
    flex-direction: column;
}

.pillar-card .mono-tag {
    align-self: flex-start;
}

.pillar-links {
    margin-top: auto;
    padding-top: 1.15rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.arch-notes-box {
    display: grid;
    grid-template-columns: 1.45fr 0.85fr;
    gap: 2.2rem;
    align-items: start;
}

.arch-list {
    margin: 0.8rem 0 0;
    padding-left: 1.2rem;
    color: var(--text-soft);
}

.arch-list li {
    margin-bottom: 0.65rem;
}

.arch-side-nav {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
}

.arch-side-nav h4 {
    margin: 0 0 0.8rem;
}

.arch-side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.arch-side-nav li {
    padding: 0.48rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.arch-side-nav li:last-child {
    border-bottom: none;
}

.arch-side-nav a:hover {
    color: var(--accent-cyan);
}

.muted-inline {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.labs-detail-stack {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.lab-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.lab-detail-main {
    flex: 1 1 540px;
    min-width: 0;
    max-width: min(76ch, 100%);
}

.lab-code-panel {
    margin-top: 1.05rem;
    max-width: 100%;
}

.lab-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: #060a14;
    padding: 3rem 0 1.8rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2rem;
}

.footer-note, .footer-legal {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0.6rem 0;
}

.footer-col h4 {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-col a:hover, .footer-inline-link:hover {
    color: var(--accent-cyan);
}

.footer-inline-link {
    font-size: 0.84rem;
    color: var(--accent);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 0.6rem;
}

.footer-tech-tag {
    font-family: var(--font-mono);
}

/* Full-screen Interactive Map (/map) */
body.layout-map {
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.layout-map .site-main {
    flex: 1;
    min-height: 0;
}

.map-workspace {
    display: grid;
    grid-template-columns: 410px 1fr;
    height: calc(100dvh - var(--header-h));
}

.map-sidebar {
    background: var(--bg-elevated);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-height: 0;
    z-index: 600;
}

.sidebar-search-header {
    padding: 1rem 1.1rem 0.85rem;
    border-bottom: 1px solid var(--border);
    background: rgba(8, 14, 26, 0.72);
}

.sidebar-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
}

.sidebar-title-row h1 {
    margin: 0;
    font-size: 1.05rem;
}

.sidebar-mode-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    background: #070d19;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 0.7rem;
}

.sidebar-tab {
    background: transparent;
    border: none;
    border-radius: 7px;
    padding: 0.44rem 0.6rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease;
}

.sidebar-tab:hover {
    color: #fff;
}

.sidebar-tab.active {
    background: rgba(56, 189, 248, 0.18);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.text-action-btn, .link-reset-btn {
    background: none;
    border: none;
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.text-action-btn:hover, .link-reset-btn:hover {
    text-decoration: underline;
}

.search-row-mobile-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.search-box-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.mobile-reopen-results-btn,
.mobile-collapse-list-btn,
.sheet-drag-handle,
.inspector-collapse-btn {
    display: none;
}

.mobile-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    color: var(--text-muted);
    pointer-events: none;
}

.map-search-input {
    width: 100%;
    padding: 0.68rem 2.2rem 0.68rem 2.35rem;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: #070d19;
    color: #fff;
    font-size: 0.93rem;
}

.map-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.clear-search-btn {
    position: absolute;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem 0.4rem;
}

.search-hint-bar {
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-scroll-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.95rem 1.05rem;
}

.starter-caption {
    margin: 0 0 0.7rem;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.starter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
}

.sample-query-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-soft);
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.sample-query-btn:hover {
    border-color: var(--accent-cyan);
    color: #fff;
}

.dataset-mini-box {
    background: rgba(8, 14, 26, 0.65);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    font-size: 0.8rem;
}

.dataset-mini-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    color: var(--text-muted);
}

.inspector-card {
    background: linear-gradient(180deg, rgba(19, 32, 59, 0.97), rgba(11, 20, 38, 0.98));
    border: 1px solid var(--border-strong);
    border-radius: 13px;
    padding: 1rem 1.05rem;
}

.inspector-floating {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: min(390px, calc(100% - 1.8rem));
    max-height: calc(100% - 4.3rem);
    overflow-y: auto;
    z-index: 660;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
}

.inspector-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.inspector-top-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.inspector-close-btn {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 0.86rem;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.inspector-close-btn:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(248, 113, 113, 0.5);
    color: #fff;
}

.inspector-route-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.btn-chip.inspector-crossword-link {
    flex-basis: 100%;
    text-align: center;
    text-decoration: none;
}

.btn-chip.btn-chip-primary-route {
    flex: 1.45;
    background: linear-gradient(135deg, #10b981, #0ea5e9);
    border-color: transparent;
    color: #04111d;
    font-weight: 700;
    white-space: nowrap;
}

.btn-chip.btn-chip-primary-route:hover {
    filter: brightness(1.06);
    border-color: transparent;
}

.btn-chip.btn-chip-route-a {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.38);
    color: #6ee7b7;
}

.btn-chip.btn-chip-route-b {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.38);
    color: #7dd3fc;
}

.inspector-tech-details {
    border-top: 1px solid var(--border);
    padding-top: 0.55rem;
}

.inspector-tech-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    user-select: none;
    list-style: none;
}

.inspector-tech-summary::-webkit-details-marker {
    display: none;
}

.inspector-tech-summary span::before {
    content: "▸ ";
    color: var(--accent-cyan);
}

.inspector-tech-details[open] .inspector-tech-summary span::before {
    content: "▾ ";
}

.inspector-tech-summary code {
    font-size: 0.74rem;
    color: var(--text-soft);
}

.inspector-tech-body {
    margin-top: 0.45rem;
}

.inspector-badges-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    flex-wrap: wrap;
}

.provider-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.14rem 0.48rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(148, 163, 184, 0.14);
    color: var(--text-soft);
    white-space: nowrap;
}

.provider-agkk {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.42);
    color: #6ee7b7;
}

.provider-sofiaplan {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.42);
    color: #7dd3fc;
}

.provider-osm {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fde68a;
}

.provider-geonames {
    background: rgba(168, 85, 247, 0.16);
    border-color: rgba(168, 85, 247, 0.4);
    color: #e9d5ff;
}

.confirming-text {
    color: #6ee7b7;
    font-weight: 600;
    text-align: right;
}

.source-key-pill {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.inspector-title {
    margin: 0 0 0.25rem;
    font-size: 1.12rem;
    line-height: 1.3;
}

.inspector-bg-original {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    margin-bottom: 0.25rem;
}

.inspector-secondary {
    margin: 0 0 0.75rem;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.inspector-meta-grid {
    border-bottom: 1px solid var(--border);
    padding: 0.25rem 0 0.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
}

.inspector-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.2rem 0;
    color: var(--text-soft);
}

.inspector-meta-row span:first-child {
    color: var(--text-muted);
}

.inspector-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-chip {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-chip:hover {
    border-color: var(--accent-cyan);
}

.btn-chip-accent {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.inspector-osm-footer {
    margin-top: 0.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
}

.inspector-osm-footer a {
    color: var(--accent-cyan);
}

.extract-stamp {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.results-header {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0.35rem 0 0.55rem;
}

.results-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.result-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 0.65rem 0.8rem;
    cursor: pointer;
    transition: border-color 0.14s ease, background 0.14s ease;
}

.result-item:hover, .result-item.selected {
    border-color: var(--accent-cyan);
    background: var(--bg-card-hover);
}

#resultsList .result-item {
    width: 100%;
    color: inherit;
    font: inherit;
    text-align: start;
}

#resultsList .result-item:focus-visible {
    outline: 3px solid var(--accent-cyan);
    outline-offset: 2px;
}

.result-item-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.result-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

.result-sub-row {
    margin-top: 0.22rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.result-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.result-source-tag {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--accent-cyan);
    opacity: 0.88;
    white-space: nowrap;
}

.kind-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.14rem 0.45rem;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-settlement { background: rgba(56, 189, 248, 0.18); color: #7dd3fc; }
.badge-locality   { background: rgba(168, 85, 247, 0.18); color: #d8b4fe; }
.badge-street     { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.badge-addr-node  { background: rgba(16, 185, 129, 0.2);  color: #6ee7b7; }
.badge-addr-bldg  { background: rgba(20, 184, 166, 0.2);  color: #5eead4; }
.badge-poi        { background: rgba(244, 114, 182, 0.2); color: #f9a8d4; }

.empty-state-box {
    background: rgba(15, 23, 42, 0.75);
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.empty-state-box strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.empty-state-box p {
    margin: 0;
}

.map-stage {
    position: relative;
    height: 100%;
    width: 100%;
}

.leaflet-container-host {
    width: 100%;
    height: 100%;
    background: #0d1726;
}

.mapbg-pin {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.28);
    border: 2px solid #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.mapbg-pin-core {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #fff;
}

.mapbg-click-pin {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0ea5e9;
    border: 2.5px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Fast Point-to-Point Routing Controls & Map Pins */
.leaflet-container-host.map-picking-cursor {
    cursor: crosshair !important;
}

.route-map-pin {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.84rem;
    color: #04111d;
    border: 2.5px solid #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
}

.route-map-pin-a {
    background: #10b981;
}

.route-map-pin-b {
    background: #38bdf8;
}

.route-map-pin-via {
    background: #f59e0b;
}

.route-controls-card {
    background: rgba(8, 14, 26, 0.65);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem;
    margin-bottom: 0.85rem;
}

.route-modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    background: #070d19;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 3px;
    margin-bottom: 0.8rem;
}

.route-mode-btn {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 0.38rem 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
}

.route-mode-btn:hover:not(:disabled) {
    color: #fff;
}

.route-mode-btn:disabled {
    opacity: 0.65;
    cursor: default;
}

.route-mode-btn.active {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.38);
}

.route-waypoints {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.route-field-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.route-badge {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #04111d;
}

.route-badge-a {
    background: #10b981;
}

.route-badge-b {
    background: #38bdf8;
}

.route-input {
    width: 100%;
    padding: 0.56rem 0.72rem;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: #070d19;
    color: #fff;
    font-size: 0.85rem;
}

.route-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.route-input-host:not(:focus-within) .combobox-dropdown {
    display: none;
}

.route-pick-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-soft);
    font-size: 1rem;
    cursor: pointer;
}

.route-pick-btn:hover,
.route-pick-btn.active {
    border-color: var(--accent);
    background: rgba(16, 185, 129, 0.18);
    color: #fff;
}

.route-swap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.08rem 0 0.08rem 1.9rem;
}

.route-pick-hint {
    font-size: 0.73rem;
    color: var(--text-muted);
}

.route-pick-hint.picking {
    color: #34d399;
    font-weight: 600;
}

.route-swap-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--accent-cyan);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.18rem 0.5rem;
    cursor: pointer;
    white-space: nowrap;
}

.route-swap-btn:hover {
    border-color: var(--accent-cyan);
    color: #fff;
}

.route-action-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.btn-sm-full {
    flex: 1;
    padding: 0.56rem 0.9rem;
    font-size: 0.86rem;
}

.btn-sm-clear {
    padding: 0.56rem 0.8rem;
    font-size: 0.84rem;
}

.route-summary-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(56, 189, 248, 0.14));
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    padding: 0.8rem 0.95rem;
    margin-bottom: 0.8rem;
}

.route-summary-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.route-metric-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.route-summary-metrics strong {
    font-size: 1.15rem;
    font-family: var(--font-mono);
    color: #fff;
}

.route-summary-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.route-summary-metrics:not(.hidden) + .route-summary-footer {
    margin-top: 0.55rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.route-attr {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.route-capabilities-note {
    margin: 0 0 0.7rem;
    color: var(--text-muted);
    font-size: 0.77rem;
}

.route-capabilities-note:empty,
.route-status:empty {
    margin: 0;
    border: 0;
    padding: 0;
}

.ask-form label {
    display: block;
}

.ask-input-row,
.ask-question-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.ask-input-row input {
    min-width: 0;
}

.ask-examples {
    margin-block: 0.65rem 0.75rem;
}

.ask-question {
    flex: 1;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.ask-question-actions {
    display: flex;
    gap: 0.55rem;
}

.ask-question-actions .text-action-btn {
    min-height: 44px;
}

.ask-answer:not(:empty) {
    margin-block: 0.6rem;
    padding: 0.7rem 0.8rem;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-soft);
    font-size: 0.88rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ask-place-btn {
    width: 100%;
    text-align: start;
    background: var(--bg-card);
    color: var(--text-soft);
}

.ask-route-metrics {
    margin: 0.5rem 0 0;
    color: var(--accent-cyan);
    font-size: 0.8rem;
}

.mobile-sheet-toggle {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 1.1rem;
    transform: translateX(-50%);
    z-index: 650;
    background: var(--bg-elevated);
    color: #fff;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 0.58rem 1.15rem;
    font-weight: 700;
    font-size: 0.86rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.copy-toast {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 800;
    background: #064e3b;
    border: 1px solid #10b981;
    color: #ecfdf5;
    padding: 0.55rem 0.95rem;
    border-radius: 9px;
    font-size: 0.84rem;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

/* Map data notes: native dialog keeps the rest of the page inert. */
#dataNotesModal {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    width: min(680px, calc(100% - 2.4rem));
    max-height: 86dvh;
    overflow-y: auto;
    padding: 0;
}

#dataNotesModal::backdrop {
    background: rgba(4, 8, 16, 0.78);
    backdrop-filter: blur(5px);
}

#dataNotesModal .modal-panel {
    padding: 1.5rem;
}

#dataNotesModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

#dataNotesModal .modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

#dataNotesModal .modal-close-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 0.25rem 0.55rem;
    cursor: pointer;
}

#dataNotesModal :is(button, a):focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

#dataNotesModal .modal-body p, #dataNotesModal .modal-body li {
    color: var(--text-soft);
    font-size: 0.92rem;
}

#dataNotesModal .modal-body a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1060px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .labs-grid {
        grid-template-columns: 1fr;
    }
    .heritage-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .arch-notes-box {
        grid-template-columns: 1fr;
    }
    .live-demos-links {
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {
    :root {
        --header-h: 56px;
    }
    .container {
        width: calc(100% - 1.5rem);
    }
    .mobile-menu-btn {
        display: flex;
    }
    .primary-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1rem;
        gap: 0.35rem;
    }
    .primary-nav.open {
        display: flex;
    }
    .nav-dropdown-trigger {
        justify-content: space-between;
        width: 100%;
    }
    .nav-dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 0.35rem;
        box-shadow: none;
    }
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }
    .nav-dropdown-grid {
        grid-template-columns: 1fr;
    }

    /* Compact Mobile Home Hero so Live Address Search stays above the fold at 390x844 */
    .hero-section {
        padding: 1.15rem 0 1.4rem;
    }
    .hero-grid {
        gap: 1rem;
    }
    .eyebrow-badge {
        font-size: 0.67rem;
        padding: 0.22rem 0.56rem;
    }
    .hero-title {
        margin: 0.5rem 0 0.45rem;
        font-size: 1.52rem;
        line-height: 1.18;
    }
    .hero-lead {
        font-size: 0.92rem;
        line-height: 1.45;
        margin-bottom: 0.85rem;
    }
    .hero-cta-row {
        gap: 0.5rem;
    }
    .hero-cta-row .btn {
        padding: 0.56rem 0.9rem;
        font-size: 0.86rem;
    }
    .hero-map-card {
        padding: 0.95rem 1rem;
    }
    .hero-card-header {
        margin-bottom: 0.4rem;
        flex-wrap: wrap;
    }
    .hero-map-card h2 {
        font-size: 1.02rem;
        margin-bottom: 0.45rem;
    }
    .hero-map-card .card-subtext {
        display: none;
    }
    .quick-map-form {
        flex-direction: row;
        gap: 0.45rem;
    }
    .quick-map-input {
        padding: 0.58rem 0.72rem;
        font-size: 0.88rem;
    }
    .quick-map-form .btn {
        padding: 0.58rem 0.82rem;
        font-size: 0.84rem;
        white-space: nowrap;
    }
    .quick-chips {
        margin-top: 0.65rem;
        gap: 0.35rem;
    }
    .metrics-strip {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 0.85rem;
        padding-top: 0.75rem;
    }

    /* Compact Mobile Product & Catalog Heroes */
    .product-hero {
        padding: 1.05rem 0 0.95rem;
    }
    .breadcrumb-row {
        margin-bottom: 0.45rem;
        font-size: 0.78rem;
    }
    .product-hero-header {
        gap: 0.85rem;
    }
    .product-hero h1 {
        font-size: 1.48rem;
        margin: 0.35rem 0 0.25rem;
    }
    .product-hero-subtitle {
        font-size: 0.92rem;
    }
    .product-hero-lead {
        font-size: 0.9rem;
        margin-top: 0.45rem;
    }
    .product-hero-actions-stack {
        align-items: flex-start;
        width: 100%;
    }
    .product-hero-actions .btn {
        padding: 0.58rem 0.95rem;
        font-size: 0.88rem;
    }
    .tag-list-large {
        margin-top: 0.7rem;
    }
    .section-block {
        padding: 2.3rem 0;
    }
    .catalog-first-section {
        padding-top: 1.15rem;
    }
    .example-row {
        grid-template-columns: 1fr;
        gap: 0.3rem;
        align-items: flex-start;
    }
    .example-row-badge {
        justify-self: start;
    }

    .product-cards-grid, .features-grid, .heritage-strip, .footer-grid {
        grid-template-columns: 1fr;
    }
    .featured-map-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.1rem 1.15rem;
        gap: 1rem;
    }

    /* Mobile Map: Slim Floating Top Search + Collapsible Bottom Sheet */
    .map-workspace {
        grid-template-columns: 1fr;
        position: relative;
    }
    .map-sidebar {
        position: absolute;
        left: 0.55rem;
        right: 0.55rem;
        top: 0.5rem;
        max-height: 58dvh;
        border-radius: 13px;
        border: 1px solid var(--border-strong);
        background: rgba(11, 19, 36, 0.95);
        backdrop-filter: blur(12px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.52);
        z-index: 1030;
    }
    .sidebar-title-row,
    .search-hint-bar {
        display: none;
    }
    .sidebar-search-header {
        padding: 0.52rem 0.6rem;
        border-bottom: none;
        background: transparent;
    }
    .sidebar-mode-tabs {
        margin-bottom: 0.45rem;
    }
    .sidebar-tab {
        padding: 0.34rem 0.5rem;
        font-size: 0.8rem;
    }
    .map-search-input {
        padding: 0.54rem 2rem 0.54rem 2.15rem;
        font-size: 0.88rem;
    }
    .map-sidebar.mobile-compact .sidebar-scroll-body {
        display: none !important;
    }
    .map-sidebar.mobile-slim .sidebar-scroll-body {
        display: none !important;
    }
    .map-sidebar.mobile-slim .sidebar-search-header {
        padding: 0.4rem 0.48rem;
    }
    .map-sidebar.mobile-results-open .sidebar-search-header {
        border-bottom: 1px solid var(--border);
    }
    .map-sidebar.mode-route {
        max-height: 48dvh;
    }
    .map-sidebar.mode-route .sidebar-search-header {
        border-bottom: 1px solid var(--border);
        padding-bottom: 0.38rem;
    }
    .map-sidebar.mode-route .sidebar-mode-tabs {
        margin-bottom: 0;
    }
    .map-sidebar.mode-ask .sidebar-search-header {
        padding-bottom: 0.25rem;
    }
    .map-sidebar.mode-ask .ask-sheet-toggle {
        display: flex;
        min-height: 28px;
    }
    .map-sidebar.mode-ask #askInput {
        font-size: 1rem;
    }
    .sidebar-scroll-body {
        padding: 0.65rem 0.75rem;
    }
    .dataset-mini-box {
        display: none;
    }
    .mobile-reopen-results-btn {
        display: inline-flex;
        align-items: center;
        padding: 0.48rem 0.68rem;
        border-radius: 9px;
        border: 1px solid var(--border-strong);
        background: rgba(56, 189, 248, 0.14);
        color: #fff;
        font-size: 0.78rem;
        font-weight: 700;
        white-space: nowrap;
        cursor: pointer;
    }
    .mobile-collapse-list-btn {
        display: inline-flex;
        align-items: center;
        margin-left: auto;
        margin-bottom: 0.45rem;
        background: rgba(56, 189, 248, 0.12);
        border: 1px solid rgba(56, 189, 248, 0.28);
        color: var(--accent-cyan);
        border-radius: 7px;
        padding: 0.2rem 0.55rem;
        font-size: 0.74rem;
        font-weight: 700;
        cursor: pointer;
    }
    .inspector-floating {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 56dvh;
        border-radius: 18px 18px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 0.28rem 0.95rem 0.85rem;
        z-index: 1020;
        box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.62);
    }
    .sheet-drag-handle {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0.2rem 0 0.4rem;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    .sheet-drag-handle span {
        width: 38px;
        height: 4px;
        border-radius: 999px;
        background: rgba(148, 163, 184, 0.45);
    }
    .inspector-collapse-btn {
        display: inline-flex;
        align-items: center;
        height: 28px;
        padding: 0 0.58rem;
        border-radius: 7px;
        background: rgba(56, 189, 248, 0.12);
        border: 1px solid rgba(56, 189, 248, 0.3);
        color: var(--accent-cyan);
        font-size: 0.76rem;
        font-weight: 700;
        cursor: pointer;
    }
    .inspector-title {
        font-size: 1.02rem;
        margin-bottom: 0.15rem;
    }
    .inspector-secondary {
        font-size: 0.8rem;
        margin-bottom: 0.55rem;
    }
    .inspector-route-actions {
        margin-bottom: 0.45rem;
    }
    .inspector-floating.sheet-minimized {
        padding-bottom: 0.65rem;
    }
    .inspector-floating.sheet-minimized .inspector-secondary,
    .inspector-floating.sheet-minimized .inspector-bg-original,
    .inspector-floating.sheet-minimized .inspector-hide-when-min,
    .inspector-floating.sheet-minimized .inspector-collapsible-body {
        display: none !important;
    }
    .inspector-floating.sheet-minimized .inspector-route-actions {
        margin-bottom: 0;
    }

    .mobile-sheet-toggle {
        display: none !important;
    }
    .map-workspace.has-inspector-sheet .leaflet-bottom {
        bottom: 196px !important;
        transition: bottom 0.18s ease;
    }
    .map-workspace.has-inspector-minimized .leaflet-bottom {
        bottom: 126px !important;
    }
}

/* API Showcase & Public Demos (/demos, /bglang) */
.api-showcase-section {
    border-top: 1px solid var(--border);
    background: radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.08), transparent 52%);
}

.status-chip-live {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.14);
    color: #6ee7b7;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    white-space: nowrap;
}

.api-code-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 1.25rem;
    margin-bottom: 1.35rem;
}

.code-panel {
    background: #050913;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.code-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 1rem;
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.code-lang-label {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-muted);
}

.code-pre {
    margin: 0;
    padding: 1rem 1.1rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.55;
    color: #e2e8f0;
}

.api-specs-grid {
    margin-top: 0.2rem;
}

.demos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
}

.demos-grid-three {
    grid-template-columns: repeat(3, 1fr);
}

.demo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.demo-card-live {
    border-color: var(--border-strong);
}

.demo-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.demo-card-top .status-chip {
    white-space: normal;
    overflow-wrap: anywhere;
}

.demo-host-badge {
    overflow-wrap: anywhere;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.28);
    padding: 0.24rem 0.62rem;
    border-radius: 8px;
}

.demo-host-staged {
    color: var(--text-soft);
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.25);
}

.demo-card h3 {
    margin: 0.15rem 0 0;
    font-size: 1.24rem;
}

.demo-version {
    margin: 0;
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.demo-summary {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.demo-cap-list {
    margin: 0.1rem 0 0.35rem;
    font-size: 0.88rem;
    flex: 1;
}

.demo-actions-footer {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
}

.demo-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

@media (max-width: 980px) {
    .api-code-grid,
    .demos-grid,
    .demos-grid-three {
        grid-template-columns: 1fr;
    }
}

/* Related Scenario & Archival Figure (/taxi) */
.scenario-archive-section {
    border-top: 1px solid var(--border);
    background: radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.06), transparent 52%);
}

.scenario-archive-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: start;
}

.scenario-card {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 1.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scenario-card h2 {
    margin: 0;
    font-size: 1.38rem;
    line-height: 1.25;
}

.scenario-summary {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

.scenario-rows .example-row {
    grid-template-columns: 165px 1fr auto;
}

.scenario-single-wrap .scenario-rows .example-row {
    grid-template-columns: 210px 1fr auto;
}

.scenario-actions {
    padding-top: 0.35rem;
}

.archival-figure-card {
    margin: 0;
    background: #070d1a;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.52);
}

.archival-image-wrap {
    padding: 0.75rem;
    background: #040811;
    border-bottom: 1px solid var(--border);
}

.archival-image-wrap img {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.archival-figcaption {
    padding: 0.9rem 1.1rem 1.05rem;
}

.archival-figcaption strong {
    display: block;
    color: var(--text);
    font-size: 0.94rem;
    margin-bottom: 0.28rem;
}

.archival-figcaption p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.85rem;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .scenario-archive-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .scenario-card {
        padding: 1.1rem;
    }

    .scenario-card h2 {
        font-size: 1.18rem;
    }

    .scenario-rows .example-row,
    .scenario-single-wrap .scenario-rows .example-row {
        grid-template-columns: 1fr;
    }

    .archival-image-wrap {
        padding: 0.55rem;
    }

    .archival-figcaption {
        padding: 0.8rem 0.95rem 0.95rem;
    }
}
