:root {
    --bg: #f3f4f6;
    --card: #ffffff;
    --card-soft: #f8fbff;
    --text: #0f172a;
    --text-strong: #020617;
    --muted: #64748b;
    --muted-2: #94a3b8;

    --line: #e2e8f0;
    --line-strong: #cbd5e1;
    --line-soft: #eef2f7;

    --good: #166534;
    --good-bg: #dcfce7;

    --ok: #1d4ed8;
    --ok-bg: #dbeafe;

    --warn: #92400e;
    --warn-bg: #fef3c7;

    --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.06);

    --radius: 16px;
    --radius-lg: 20px;

    --page-max: 1880px;
    --gap: 18px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    padding: 16px;
    overflow-x: hidden;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

.wrap {
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.topbar a {
    text-decoration: none;
    color: var(--text-strong);
    font-weight: 700;
    font-size: 13px;
}

.hero {
    background: var(--card);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 22px 24px 20px;
    margin-bottom: 14px;
    border: 1px solid rgba(203, 213, 225, 0.9);
}

.hero h1 {
    margin: 0 0 4px;
    font-size: clamp(30px, 2.2vw, 42px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-strong);
}

.subline {
    color: var(--muted);
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.45;
}

.badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.badge.good { background: var(--good-bg); color: var(--good); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.muted { background: #eef2f7; color: #475569; }

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap);
    align-items: start;
}

.left,
.middle,
.right {
    min-width: 0;
}

.left,
.middle {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: start;
    position: static;
}

.card {
    background: var(--card);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 16px 18px;
    border: 1px solid rgba(203, 213, 225, 0.84);
    min-width: 0;
}

.card h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 2vw, 36px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-strong);
}

.card h2 {
    margin: 0 0 10px;
    font-size: clamp(13px, 0.8vw, 15px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: var(--muted);
}

.card h3 {
    margin: 0 0 8px;
    font-size: clamp(12px, 0.72vw, 13px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.lead {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.sublead {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.summary-box {
    border: 1px solid #dbe7ff;
    border-radius: 16px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #fbfdff 0%, #f8fbff 100%);
}

.summary-box-soft {
    background: linear-gradient(180deg, #fbfdff 0%, #f8fbff 100%);
}

.summary-score {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.summary-score strong {
    font-size: clamp(34px, 2.2vw, 44px);
    line-height: 0.94;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-strong);
}

.summary-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.52;
    font-size: 13px;
    color: var(--text);
}

.metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.metric {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 13px 14px;
    background: #fff;
    min-height: 82px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.metric-label {
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 7px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-value {
    font-size: clamp(26px, 1.75vw, 34px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.035em;
    word-break: break-word;
    color: var(--text-strong);
}

.metric-link {
    font-size: 16px;
}

.metric-small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.signal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.signal {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    background: #fff;
}

.signal-label {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-strong);
}

.signal-value {
    font-size: 13px;
    font-weight: 800;
    text-align: right;
    letter-spacing: -0.02em;
}

.signal-note {
    margin-top: -2px;
    margin-bottom: 8px;
}

.tone-positive { color: var(--good); }
.tone-neutral { color: var(--ok); }
.tone-caution { color: var(--warn); }

.fact-table,
.obs-table {
    width: 100%;
    border-collapse: collapse;
}

.fact-table th,
.fact-table td,
.obs-table th,
.obs-table td {
    padding: 9px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: 12px;
    line-height: 1.38;
}

.fact-table th,
.obs-table th {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.mini-note {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.source-link {
    word-break: break-all;
    font-size: 12px;
}

.empty {
    color: var(--muted);
    font-style: italic;
}

.compact-signals .signal-list {
    gap: 6px;
}

.compact-signals .signal {
    padding: 8px 10px;
}

.compact-facts .fact-table th,
.compact-facts .fact-table td {
    padding: 7px 6px;
    font-size: 12px;
}

.compact-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.compact-metric {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 10px 12px;
}

.compact-metric-label {
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.compact-metric-value {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    word-break: break-word;
    color: var(--text-strong);
}

.section-tight h2,
.section-tight h3 {
    margin-bottom: 10px;
}

.section-tight .summary-box {
    padding: 12px 14px;
}

.section-tight .summary-list {
    font-size: 13px;
    line-height: 1.45;
}

.section-tight .metrics {
    gap: 8px;
}

.section-tight .metric {
    min-height: 70px;
    padding: 11px 12px;
}

.section-tight .metric-value {
    font-size: 22px;
}

.section-tight .metric-small {
    font-size: 11px;
}

.right .card {
    padding: 14px 16px;
}

.right .card h2,
.right .card h3 {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.progress {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: #e8eef7;
    overflow: hidden;
    margin: 12px 0 14px;
}

.progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
}

.kpi-positive {
    border-color: rgba(22, 101, 52, 0.2);
}

.kpi-neutral {
    border-color: rgba(29, 78, 216, 0.2);
}

.kpi-caution {
    border-color: rgba(146, 64, 14, 0.22);
}

.flash-card {
    margin-bottom: 14px;
    border-left-width: 4px;
    border-left-style: solid;
}

.flash-ok {
    border-left-color: #16a34a;
}

.flash-warn {
    border-left-color: #d97706;
}

.flash-text {
    font-size: 14px;
    color: var(--text-strong);
}

.card-badges {
    margin-bottom: 12px;
}

.section-gap {
    margin-bottom: 14px;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.listing-form {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.listing-input {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    outline: none;
    font-size: 14px;
}

.listing-input:focus {
    border-color: #9bb7ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.listing-button {
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.form-note {
    margin-top: 10px;
}

.sidebar-subtitle {
    margin-top: 10px;
}

.ingestion-row {
    padding: 8px 0;
    border-top: 1px solid var(--line-soft);
}

.ingestion-head {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.ingestion-error {
    margin-top: 5px;
    color: #991b1b;
}

/* Search page */
.search-shell {
    max-width: 1100px;
    margin: 0 auto;
}

.search-card {
    padding: 24px;
}

.search-form {
    display: grid;
    grid-template-columns: 1.35fr 1fr auto;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.search-input,
.search-url {
    width: 100%;
    min-width: 0;
    padding: 15px 16px;
    border: 1px solid #d4d9e2;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.2;
    background: #fff;
    color: var(--text);
    outline: none;
}

.search-input:focus,
.search-url:focus {
    border-color: #9bb7ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.search-button {
    padding: 15px 22px;
    border: 0;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
}

.search-button:hover {
    opacity: 0.96;
}

.hint {
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.info {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f3f7ff;
    color: #1f3d77;
    border: 1px solid #cfdcff;
    font-size: 15px;
    line-height: 1.5;
}

.results h2 {
    margin-top: 0;
}

.result-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.result-item:last-child {
    border-bottom: 0;
}

.result-item a {
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.meta {
    color: var(--muted);
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.45;
}

/* 3 columns from 1200px */
@media (min-width: 1200px) {
    .wrap {
        width: min(97.5vw, var(--page-max));
    }

    .grid-company {
        grid-template-columns:
            minmax(0, 1.48fr)
            minmax(0, 1.04fr)
            minmax(300px, 340px);
        gap: 18px;
    }

    .left { grid-column: 1; }
    .middle { grid-column: 2; }
    .right {
        grid-column: 3;
        position: sticky;
        top: 16px;
    }
}

/* Bigger desktop */
@media (min-width: 1600px) {
    .grid-company {
        grid-template-columns:
            minmax(0, 1.56fr)
            minmax(0, 1.08fr)
            minmax(320px, 360px);
        gap: 20px;
    }

    .hero {
        padding: 24px 28px 22px;
    }

    .card {
        padding: 18px 20px;
    }

    .metric-value {
        font-size: clamp(28px, 1.7vw, 36px);
    }
}

/* Medium screens: 2 columns + right column below */
@media (min-width: 900px) and (max-width: 1199px) {
    .grid-company {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 16px;
    }

    .left { grid-column: 1; }
    .middle { grid-column: 2; }
    .right {
        grid-column: 1 / -1;
        position: static;
    }
}

@media (max-width: 900px) {
    .search-form {
        grid-template-columns: 1fr;
    }

    .search-button {
        width: 100%;
    }
}

@media (max-width: 760px) {
    body {
        padding: 14px;
    }

    .wrap {
        width: 100%;
    }

    .hero {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .card {
        padding: 15px 14px;
        border-radius: 16px;
    }

    .hero h1,
    .card h1 {
        font-size: 28px;
    }

    .metrics,
    .compact-metrics {
        grid-template-columns: 1fr;
    }

    .metric-value {
        font-size: 24px;
    }

    .search-card {
        padding: 22px 18px;
    }

    .summary-score {
        flex-direction: column;
        align-items: flex-start;
    }

    .signal {
        flex-direction: column;
        align-items: flex-start;
    }

    .signal-value {
        text-align: left;
    }

    .hero,
    .card,
    .summary-box,
    .metric,
    .signal,
    .compact-metric,
    .listing-input {
        min-width: 0;
    }

    .badges {
        gap: 6px;
    }

    .badge {
        max-width: 100%;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .hero h1,
    .card h1 {
        font-size: 25px;
    }

    .hero {
        padding: 16px 14px;
    }

    .card {
        padding: 14px 12px;
    }

    .badge {
        font-size: 11px;
        padding: 6px 9px;
    }

    .metric {
        padding: 12px;
        min-height: 72px;
    }

    .metric-value {
        font-size: 22px;
    }
}

/* --- Embedded map support --- */
.tk-map-canvas {
    width: 100%;
    height: 360px;
    min-height: 360px;
    border-radius: 18px;
    background: #e5e7eb;
    overflow: hidden;
}

.tk-map-canvas--search {
    height: 420px;
    min-height: 420px;
}

.leaflet-container {
    width: 100%;
    height: 100%;
}

.talokone-map-marker-wrap {
    background: transparent;
    border: 0;
}

.talokone-map-marker-hitbox {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
}

.talokone-map-marker {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.25);
}

.talokone-map-popup {
    min-width: 220px;
}

.talokone-map-popup__title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 6px;
    color: #020617;
}

.talokone-map-popup__row {
    font-size: 13px;
    line-height: 1.4;
    color: #334155;
    margin-bottom: 4px;
}

.map-empty-note {
    color: var(--muted);
    font-size: 14px;
}
/* --- Talokone landing / search v2 --- */

.search-shell--landing {
    max-width: 1440px;
}

.topbar--landing {
    margin-bottom: 14px;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}

.landing-copy {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.landing-eyebrow {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.landing-copy h1 {
    margin: 0 0 10px;
    font-size: clamp(38px, 4vw, 60px);
    line-height: 0.96;
    letter-spacing: -0.045em;
    color: var(--text-strong);
}

.landing-lead {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
    max-width: 38ch;
}

.landing-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.landing-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
}

.landing-chip--blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.landing-chip--amber {
    background: #fef3c7;
    color: #92400e;
}

.landing-chip--red {
    background: #fee2e2;
    color: #b91c1c;
}

.landing-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.landing-mini-stat {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    padding: 12px 12px 11px;
    min-width: 0;
}

.landing-mini-stat__label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin-bottom: 6px;
}

.landing-mini-stat__value {
    font-size: 22px;
    line-height: 1.02;
    font-weight: 800;
    color: var(--text-strong);
    letter-spacing: -0.03em;
    word-break: break-word;
}

.map-hero-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 14px;
    overflow: hidden;
    min-width: 0;
}

.map-hero-toolbar {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.map-hero-toolbar h2 {
    margin: 0 0 5px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.map-hero-toolbar p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.map-hero-search {
    display: grid;
    gap: 10px;
}

.map-hero-search__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.map-hero-search__input {
    width: 100%;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid #d4d9e2;
    border-radius: 14px;
    font-size: 16px;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    outline: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.map-hero-search__input:focus {
    border-color: #9bb7ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.map-hero-search__button {
    padding: 16px 20px;
    border: 0;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.map-hero-search__button:hover {
    opacity: 0.97;
}

.map-hero-search__hint {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin-top: -2px;
}

.search-advanced {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px 12px;
}

.search-advanced summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text-strong);
    font-size: 14px;
    list-style: none;
}

.search-advanced summary::-webkit-details-marker {
    display: none;
}

.search-advanced__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.8fr 1.35fr;
    gap: 10px;
    margin-top: 12px;
}

.tk-map-canvas--hero {
    height: 680px;
    min-height: 680px;
    border-radius: 20px;
    border: 1px solid #dbe2ea;
}

.landing-insights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.insight-card {
    min-width: 0;
    padding: 18px 18px 16px;
}

.insight-card--strong {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.insight-card h3 {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.insight-card__title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.18;
    font-weight: 800;
    color: var(--text-strong);
    letter-spacing: -0.03em;
}

.insight-card__value {
    margin: 0 0 8px;
    font-size: clamp(24px, 2vw, 34px);
    line-height: 1.02;
    font-weight: 800;
    color: var(--text-strong);
    letter-spacing: -0.04em;
    word-break: break-word;
}

.insight-card__text {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.landing-how__line {
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

.results {
    margin-bottom: 18px;
}

.result-item .meta {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.talokone-map-popup__row {
    font-size: 13px;
    line-height: 1.45;
    color: #334155;
    margin-top: 4px;
}

@media (max-width: 1180px) {
    .landing-hero {
        grid-template-columns: 1fr;
    }

    .landing-copy {
        padding: 24px 22px;
    }

    .tk-map-canvas--hero {
        height: 620px;
        min-height: 620px;
    }

    .landing-insights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .search-shell--landing {
        max-width: 100%;
    }

    .landing-copy h1 {
        font-size: 34px;
    }

    .landing-lead {
        font-size: 15px;
    }

    .landing-mini-stats {
        grid-template-columns: 1fr;
    }

    .map-hero-search__row {
        grid-template-columns: 1fr;
    }

    .map-hero-search__button {
        width: 100%;
    }

    .search-advanced__grid {
        grid-template-columns: 1fr;
    }

    .landing-insights {
        grid-template-columns: 1fr;
    }

    .tk-map-canvas--hero {
        height: 520px;
        min-height: 520px;
    }
}

@media (max-width: 480px) {
    .landing-copy {
        padding: 20px 16px;
    }

    .landing-copy h1 {
        font-size: 30px;
    }

    .map-hero-card {
        padding: 10px;
        border-radius: 18px;
    }

    .tk-map-canvas--hero {
        height: 460px;
        min-height: 460px;
        border-radius: 16px;
    }

    .map-hero-search__input,
    .map-hero-search__button {
        padding-top: 14px;
        padding-bottom: 14px;
    }
}


/* --- Search suggestion dropdown v8 --- */
.map-hero-search__row {
    position: relative;
}

.search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 86px;
    z-index: 25;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.search-suggest__item {
    width: 100%;
    text-align: left;
    border: 0;
    background: #fff;
    padding: 12px 14px;
    display: grid;
    gap: 3px;
    cursor: pointer;
    border-bottom: 1px solid var(--line-soft);
}

.search-suggest__item:last-child {
    border-bottom: 0;
}

.search-suggest__item:hover,
.search-suggest__item.is-active {
    background: #f8fbff;
}

.search-suggest__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-strong);
}

.search-suggest__sub {
    font-size: 14px;
    color: var(--muted);
}

.search-suggest__meta {
    font-size: 12px;
    font-weight: 700;
    color: var(--ok);
}

.talokone-map-popup__cta {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 800;
    color: var(--ok);
}

@media (max-width: 760px) {
    .search-suggest {
        right: 0;
        top: calc(100% + 6px);
    }
}
.company-page--vnext {
    padding-top: 20px;
}

.topbar--inside {
    margin-bottom: 18px;
    padding-top: 0;
}

.company-top-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 760px);
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

.company-top-left,
.company-top-right {
    min-width: 0;
}

.company-summary-card,
.company-top-actions,
.company-map-card {
    height: 100%;
}

.company-summary-head h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 3vw, 2.9rem);
    line-height: 1.05;
}

.company-summary-badges {
    margin-top: 16px;
    margin-bottom: 18px;
}

.company-primary-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.company-primary-metric {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 16px 16px 14px;
    background: rgba(255, 255, 255, 0.72);
}

.company-primary-metric-value {
    font-size: clamp(1.6rem, 2.3vw, 2.3rem);
    line-height: 1.05;
}

.company-summary-box {
    margin-top: 4px;
}

.company-top-actions-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 16px;
    align-items: start;
}

.company-top-action-block h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.stack--compact {
    gap: 10px;
}

.company-content-grid {
    align-items: start;
}

.company-facts-full {
    margin-top: 24px;
}

@media (max-width: 1320px) {
    .company-top-layout {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 680px);
        gap: 20px;
    }
}

@media (max-width: 1100px) {
    .company-top-layout {
        grid-template-columns: 1fr;
    }

    .company-top-actions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .company-primary-metrics {
        grid-template-columns: 1fr;
    }

    .company-summary-head h1 {
        font-size: 2rem;
    }
}


/* Talokone 346A — always-visible legal guardrail + premium teaser */
.tk-legal-notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #7c2d12;
    border-radius: 16px;
    padding: 12px 14px;
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.45;
    box-shadow: var(--shadow);
}

.tk-legal-notice strong {
    color: #431407;
}

.tk-legal-mini {
    margin-top: 12px;
    color: #7c2d12;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.4;
}

.tk-premium-teaser {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.tk-premium-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.tk-premium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tk-premium-lock {
    border: 1px dashed #cbd5e1;
    background: rgba(248, 250, 252, 0.92);
    border-radius: 16px;
    padding: 14px;
}

.tk-premium-lock .metric-value {
    color: #475569;
}

@media (max-width: 900px) {
    .tk-premium-head {
        flex-direction: column;
    }

    .tk-premium-grid {
        grid-template-columns: 1fr;
    }
}

/* Talokone 478D — Desktop optimized company cockpit (30 / 30 / 40)
   Scope: company.php visual layout only. No engine, cron, parser or DB behavior. */
@media (min-width: 1180px) {
    body {
        padding: 10px 12px;
        line-height: 1.32;
    }

    .company-page--vnext {
        padding-top: 0;
    }

    .tk-legal-notice {
        padding: 7px 10px;
        margin-bottom: 8px;
        border-radius: 12px;
        font-size: 11px;
        line-height: 1.25;
    }

    .flash-card {
        padding: 7px 12px;
        margin-bottom: 10px;
        border-radius: 12px;
    }

    .flash-text {
        font-size: 12px;
    }

    .company-top-layout.company-cockpit-478 {
        display: grid;
        grid-template-columns: minmax(260px, 0.78fr) minmax(330px, 0.82fr) minmax(500px, 1.08fr);
        gap: 12px;
        align-items: stretch;
        margin-bottom: 12px;
    }

    .company-cockpit-col,
    .company-top-right {
        min-width: 0;
    }

    .company-cockpit-478 .card {
        border-radius: 14px;
        padding: 12px 14px;
    }

    .company-cockpit-478 .company-summary-card,
    .company-cockpit-478 .company-metrics-card,
    .company-cockpit-478 .company-map-card {
        height: 100%;
    }

    .company-cockpit-478 .topbar--inside {
        margin-bottom: 8px;
    }

    .company-cockpit-topbar a,
    .company-cockpit-topbar .mini-note {
        font-size: 11px;
        line-height: 1.2;
    }

    .company-cockpit-titleblock h1,
    .company-summary-head h1 {
        margin: 0 0 4px;
        font-size: clamp(1.55rem, 1.65vw, 2.05rem);
        line-height: 0.98;
        letter-spacing: -0.045em;
    }

    .company-cockpit-titleblock .subline {
        margin-bottom: 7px;
        font-size: 12px;
        line-height: 1.25;
    }

    .company-cockpit-badges,
    .company-summary-badges {
        gap: 5px;
        margin-top: 8px;
        margin-bottom: 10px;
    }

    .company-cockpit-badges .badge,
    .company-cockpit-478 .badge {
        padding: 4px 8px;
        font-size: 10px;
        line-height: 1.1;
    }

    .company-cockpit-summary {
        padding: 9px 11px;
        border-radius: 12px;
        margin-top: 0;
        margin-bottom: 10px;
    }

    .company-cockpit-summary-head {
        margin-bottom: 5px;
        gap: 8px;
    }

    .company-cockpit-summary-head strong {
        font-size: 17px;
        line-height: 1;
    }

    .company-cockpit-summary .summary-list {
        font-size: 11.5px;
        line-height: 1.32;
        padding-left: 15px;
    }

    .company-cockpit-add {
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 9px 10px;
        background: #fff;
    }

    .company-cockpit-block-head {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 10px;
        margin-bottom: 7px;
    }

    .company-cockpit-block-head h3 {
        margin: 0;
        font-size: 11px;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        color: var(--muted);
    }

    .listing-form--cockpit,
    .listing-form {
        margin-top: 0;
    }

    .listing-form--cockpit {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 78px;
        gap: 7px;
        align-items: center;
    }

    .listing-form--cockpit .listing-input,
    .listing-form--cockpit .listing-button {
        height: 36px;
        min-height: 36px;
        border-radius: 10px;
        font-size: 12px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .listing-form--cockpit .listing-input {
        padding-left: 10px;
        padding-right: 10px;
    }

    .listing-form--cockpit .listing-button {
        padding-left: 10px;
        padding-right: 10px;
    }

    .company-cockpit-478 .mini-note,
    .company-cockpit-478 .metric-small {
        font-size: 10.5px;
        line-height: 1.25;
    }

    .company-cockpit-kpi-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .company-cockpit-kpi-grid .company-primary-metric {
        border-radius: 12px;
        padding: 10px 10px 8px;
        min-height: 84px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .company-cockpit-kpi-grid .metric-label {
        font-size: 9px;
        line-height: 1.1;
        margin-bottom: 5px;
        letter-spacing: 0.075em;
    }

    .company-cockpit-kpi-grid .metric-value,
    .company-cockpit-kpi-grid .company-primary-metric-value {
        font-size: clamp(1.28rem, 1.28vw, 1.72rem);
        line-height: 0.98;
        letter-spacing: -0.045em;
    }

    .company-cockpit-kpi-grid .metric-small {
        margin-top: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .company-cockpit-quickfacts {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
        margin-top: 9px;
        padding-top: 9px;
        border-top: 1px solid var(--line-soft);
    }

    .company-cockpit-quickfacts > div {
        min-width: 0;
        border: 1px solid var(--line-soft);
        border-radius: 10px;
        padding: 7px 8px;
        background: #f8fafc;
    }

    .company-cockpit-quickfacts span {
        display: block;
        color: var(--muted);
        font-size: 8.5px;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 4px;
    }

    .company-cockpit-quickfacts strong {
        display: block;
        font-size: 11px;
        line-height: 1.15;
        color: var(--text-strong);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .company-cockpit-478 .company-map-card {
        padding: 12px;
    }

    .company-cockpit-478 .company-map-head {
        margin-bottom: 8px;
        gap: 10px;
    }

    .company-cockpit-478 .company-map-head h2 {
        margin-bottom: 3px;
        font-size: 13px;
    }

    .company-cockpit-478 .tk-map-expand-btn {
        padding: 7px 11px;
        border-radius: 10px;
        font-size: 12px;
        box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
    }

    .company-content-grid {
        margin-top: 0;
    }
}

@media (min-width: 1180px) and (max-width: 1450px) {
    .company-top-layout.company-cockpit-478 {
        grid-template-columns: minmax(250px, 0.9fr) minmax(310px, 0.92fr) minmax(430px, 1.05fr);
    }

    .company-cockpit-kpi-grid .company-primary-metric {
        min-height: 80px;
    }

    .company-cockpit-quickfacts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1179px) {
    .company-top-layout.company-cockpit-478 {
        grid-template-columns: 1fr;
    }

    .company-cockpit-kpi-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .company-cockpit-quickfacts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 12px;
    }
}

@media (max-width: 720px) {
    .company-cockpit-kpi-grid,
    .company-cockpit-quickfacts {
        grid-template-columns: 1fr;
    }

    .listing-form--cockpit {
        grid-template-columns: 1fr;
    }
}

