/* The AI agent landscape. The page around the map follows the site's own
   styles; the map itself is a dark stage so the logos and links stand out. */

.content.ls-page {
    max-width: none;
    padding: 0 0 4rem;
}

.ls-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.ls-wrap-narrow {
    max-width: 860px;
}

.ls-head {
    padding-top: 2.25rem;
    padding-bottom: 1.5rem;
}

.ls-head h1 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
    font-weight: 800;
    margin: 0 0 0.8rem;
    max-width: 30ch;
}

.ls-lede {
    font-size: 1.1rem;
    line-height: 1.55;
    max-width: 78ch;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.ls-head-hub {
    max-width: none;
    padding-top: 1.6rem;
    padding-bottom: 1.2rem;
}

.ls-head-hub h1 {
    max-width: none;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    margin-bottom: 0.5rem;
}

.ls-head-hub .ls-lede {
    font-size: 1.02rem;
    max-width: 105ch;
    margin-bottom: 0.3rem;
}

.ls-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.ls-crumbs {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 1.1rem;
}

.ls-crumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}

.ls-crumbs a:hover {
    color: var(--accent-pink);
}

.ls-crumbs span {
    margin: 0 0.4rem;
}

/* ---------- the stage ---------- */

.ls-stage {
    position: relative;
    background: #0a0e17;
    color: #e8edf4;
    height: clamp(520px, calc(100vh - 12.6rem), 960px);
    overflow: hidden;
    font-family: "Inter", system-ui, sans-serif;
}

.ls-stage-ego {
    height: 480px;
    min-height: 0;
    border-radius: 14px;
}

.ls-stage:fullscreen {
    height: 100vh;
    border-radius: 0;
}

.ls-canvas {
    position: absolute;
    inset: 0;
    display: block;
    cursor: grab;
    touch-action: pan-y;
}

.ls-stage:fullscreen .ls-canvas {
    touch-action: none;
}

.ls-stage-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 2rem;
    text-align: center;
    color: #9fb0c4;
}

.ls-stage-live .ls-stage-fallback {
    display: none;
}

.ls-hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.ls-hud > * {
    pointer-events: auto;
}

.ls-touring .ls-left,
.ls-touring .ls-legend,
.ls-touring .ls-hint {
    opacity: 0;
    pointer-events: none;
}

.ls-left {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: min(26rem, 60%);
    transition: opacity 0.4s ease;
}

.ls-search {
    position: relative;
    width: min(20rem, 100%);
}

.ls-search input {
    width: 100%;
    font: inherit;
    font-size: 0.92rem;
    color: #e8edf4;
    background: rgba(20, 27, 41, 0.92);
    border: 1px solid rgba(159, 176, 196, 0.28);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    outline: none;
}

.ls-search input::placeholder {
    color: #8696aa;
}

.ls-search input:focus-visible {
    border-color: #e8edf4;
}

.ls-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #141b29;
    border: 1px solid rgba(159, 176, 196, 0.22);
    border-radius: 12px;
    padding: 0.3rem;
    z-index: 5;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.ls-none {
    margin: 0;
    padding: 0.6rem 0.7rem;
    font-size: 0.88rem;
    color: #9fb0c4;
}

.ls-legend {
    position: absolute;
    left: 1rem;
    bottom: 0.9rem;
    right: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.ls-legend > * {
    pointer-events: auto;
}

.ls-has-panel .ls-legend {
    right: 350px;
}

.ls-chipbtn,
.ls-btn {
    font: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    color: #d5dde8;
    background: rgba(20, 27, 41, 0.92);
    border: 1px solid rgba(159, 176, 196, 0.22);
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.3;
}

.ls-chipbtn:hover,
.ls-btn:hover {
    border-color: rgba(232, 237, 244, 0.6);
    color: #ffffff;
}

.ls-chipbtn[aria-pressed="true"] {
    background: #e8edf4;
    border-color: #e8edf4;
    color: #0a0e17;
}

.ls-chipbtn:focus-visible,
.ls-btn:focus-visible,
.ls-row:focus-visible,
.ls-close:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.ls-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-left: auto;
}

.ls-btn-main {
    background: #e8edf4;
    border-color: #e8edf4;
    color: #0a0e17;
    font-weight: 600;
}

.ls-btn-main:hover {
    background: #ffffff;
    color: #0a0e17;
}

.ls-dot {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    flex: none;
    display: inline-block;
}

.ls-dot-big {
    width: 2.75rem;
    height: 2.75rem;
}

.ls-shape {
    width: 0.62rem;
    height: 0.62rem;
    flex: none;
    border: 1.5px solid currentColor;
}

.ls-shape-round {
    border-radius: 50%;
}

.ls-shape-square {
    border-radius: 2px;
}

.ls-row-n {
    color: #8696aa;
    font-variant-numeric: tabular-nums;
    font-size: 0.78rem;
}

.ls-chipbtn[aria-pressed="true"] .ls-row-n {
    color: #4a5669;
}

.ls-hint {
    position: absolute;
    right: 1rem;
    bottom: 0.9rem;
    margin: 0;
    font-size: 0.78rem;
    color: #8696aa;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.ls-tip {
    position: absolute;
    z-index: 4;
    max-width: 220px;
    background: #141b29;
    border: 1px solid rgba(159, 176, 196, 0.25);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    line-height: 1.35;
    pointer-events: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.ls-tip strong,
.ls-tip span {
    display: block;
}

.ls-tip span {
    color: #9fb0c4;
}

.ls-caption {
    position: absolute;
    left: 50%;
    bottom: 2.2rem;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    width: max-content;
    max-width: 90%;
}

.ls-caption-on {
    opacity: 1;
}

.ls-caption strong {
    display: block;
    font-size: clamp(1.4rem, 3.2vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.ls-caption span {
    display: block;
    margin-top: 0.25rem;
    font-size: 1rem;
    color: #b6c3d3;
}

.ls-panel {
    position: absolute;
    top: 4.1rem;
    right: 1rem;
    bottom: 1rem;
    width: 320px;
    background: rgba(20, 27, 41, 0.96);
    border: 1px solid rgba(159, 176, 196, 0.22);
    border-radius: 14px;
    padding: 1rem 1rem 0.6rem;
    overflow-y: auto;
    z-index: 3;
}

.ls-panel-head {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-right: 3.2rem;
}

.ls-panel-title {
    font-size: 1.1rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
    color: #ffffff;
}

.ls-panel-sub {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    color: #9fb0c4;
}

.ls-panel-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.9rem 0 0;
    color: #d5dde8;
}

.ls-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin: 0.9rem 0 0;
    font-size: 0.88rem;
}

.ls-panel-actions a {
    color: #ffffff;
    font-weight: 600;
    text-underline-offset: 3px;
}

.ls-panel-actions a.ls-site {
    font-weight: 400;
    color: #b6c3d3;
}

.ls-panel-h {
    font-size: 0.8rem;
    font-weight: 600;
    color: #9fb0c4;
    margin: 1.1rem 0 0.3rem;
}

.ls-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    font: inherit;
    font-size: 0.78rem;
    color: #b6c3d3;
    background: none;
    border: 1px solid rgba(159, 176, 196, 0.28);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    cursor: pointer;
}

.ls-close:hover {
    color: #ffffff;
    border-color: #ffffff;
}

.ls-rows {
    display: flex;
    flex-direction: column;
}

.ls-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    font: inherit;
    font-size: 0.88rem;
    text-align: left;
    color: #e8edf4;
    background: none;
    border: 0;
    border-radius: 8px;
    padding: 0.36rem 0.45rem;
    cursor: pointer;
}

.ls-row:hover {
    background: rgba(159, 176, 196, 0.13);
}

.ls-row-name {
    flex: 1;
    min-width: 0;
}

.ls-chip {
    flex: none;
    display: block;
}

.ls-has-panel .ls-hint {
    display: none;
}

@media (max-width: 760px) {
    .ls-stage {
        height: 82vh;
        min-height: 520px;
    }

    .ls-stage-ego {
        height: 380px;
        border-radius: 0;
    }

    .ls-left {
        max-width: 100%;
    }

    .ls-hud {
        flex-direction: column;
    }

    .ls-tools {
        margin-left: 0;
        justify-content: flex-start;
    }

    .ls-panel {
        top: auto;
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
        width: auto;
        max-height: 48%;
    }

    .ls-hint {
        display: none;
    }
}

/* ---------- the page under the map ---------- */

.ls-section {
    padding-top: 3.25rem;
}

.ls-section h2 {
    font-size: 1.6rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 0.9rem;
}

.ls-section h3 {
    font-size: 1.12rem;
    letter-spacing: -0.01em;
    margin: 0 0 0.3rem;
}

.ls-section p,
.ls-section li {
    line-height: 1.62;
    color: var(--text-secondary);
}

.ls-prose {
    max-width: 68ch;
}

.ls-prose p {
    margin: 0 0 1rem;
}

.ls-prose ul {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

.ls-prose li {
    margin-bottom: 0.4rem;
}

.ls-section a {
    color: var(--text-primary);
    text-decoration-color: var(--accent-pink);
    text-underline-offset: 3px;
}

.ls-section a:hover {
    color: var(--accent-pink);
}

.ls-swatch {
    display: inline-block;
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 50%;
    margin-right: 0.5rem;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
    vertical-align: 0;
}

.ls-functions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.25rem 3rem;
    margin-top: 1.5rem;
}

.ls-function h3 {
    font-size: 1.2rem;
}

.ls-function > p {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
}

.ls-plist {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border-color);
}

.ls-plist li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.ls-plist a {
    text-decoration: none;
}

.ls-plist a:hover {
    text-decoration: underline;
}

.ls-count {
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ls-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem 3rem;
}

.ls-ranked {
    margin: 0;
    padding-left: 1.4rem;
}

.ls-ranked li {
    padding: 0.2rem 0;
}

.ls-logo {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #d9dde3;
    overflow: hidden;
    font-size: 0.72rem;
    font-weight: 700;
    color: #17202e;
}

.ls-logo-square {
    border-radius: 7px;
}

.ls-logo::before {
    content: attr(data-ini);
}

.ls-logo img {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64%;
    height: 64%;
    object-fit: contain;
    background: #ffffff;
    box-shadow: 0 0 0 0.5rem #ffffff;
}

.ls-logo-big {
    width: 4rem;
    height: 4rem;
    font-size: 1.3rem;
}

.ls-companies {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.15rem 1rem;
}

.ls-companies a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.3rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.ls-companies a:hover {
    background: var(--bg-secondary);
}

.ls-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.ls-table th {
    text-align: left;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem 0.5rem 0;
    border-bottom: 1px solid var(--text-primary);
}

.ls-table td {
    padding: 0.7rem 0.75rem 0.7rem 0;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    line-height: 1.5;
    color: var(--text-secondary);
}

.ls-table td:last-child,
.ls-table th:last-child {
    padding-right: 0;
}

.ls-company {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    white-space: nowrap;
}

.ls-company a {
    text-decoration: none;
}

.ls-company a:hover {
    text-decoration: underline;
}

.ls-kind {
    white-space: nowrap;
    color: var(--text-muted);
}

.ls-site-link {
    white-space: nowrap;
    font-size: 0.9rem;
}

@media (max-width: 720px) {
    .ls-wrap {
        padding: 0 1.1rem;
    }

    .ls-table thead {
        display: none;
    }

    .ls-table,
    .ls-table tbody,
    .ls-table tr,
    .ls-table td {
        display: block;
    }

    .ls-table tr {
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .ls-table td {
        border: 0;
        padding: 0.12rem 0;
    }
}

.ls-answer {
    font-size: 1.2rem;
    line-height: 1.55;
    max-width: 64ch;
    margin: 0 0 0.8rem;
    color: var(--text-primary);
}

.ls-provider-head {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 1rem;
}

.ls-provider-head h1 {
    margin: 0;
}

.ls-cta {
    margin-top: 3.5rem;
    padding: 1.6rem 0 0;
    border-top: 1px solid var(--text-primary);
}

.ls-cta p {
    max-width: 60ch;
    margin: 0 0 1rem;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.ls-cta .ls-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.ls-stage-wrap {
    padding-top: 0.5rem;
}

.ls-logo::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px #d9dde3;
    pointer-events: none;
}
