/* Neur-X Insights: lightweight, code-native editorial system. */
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    padding: 10px 16px;
    border-radius: 8px;
    background: #fff;
    color: #202235;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.insights-main {
    min-height: 70vh;
}

.insights-hero {
    position: relative;
    overflow: hidden;
    padding: 154px 0 76px;
}

.insights-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 76% 28%, rgba(158, 221, 198, 0.13), transparent 34%),
        radial-gradient(circle at 20% 38%, rgba(246, 131, 109, 0.16), transparent 36%);
    pointer-events: none;
}

.insights-hero .container {
    position: relative;
}

.insights-eyebrow,
.article-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #b7efdc;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.insights-eyebrow::before,
.article-kicker::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.insights-hero h1,
.article-hero h1 {
    max-width: 960px;
    margin: 0;
    font-size: clamp(2.55rem, 6vw, 5.4rem);
    line-height: 0.99;
    letter-spacing: -0.055em;
}

.insights-hero h1 span,
.article-hero h1 span {
    background: linear-gradient(110deg, #f89b89, #c4f3e2 78%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.insights-lede {
    max-width: 730px;
    margin-top: 28px;
    color: #cbd5e1;
    font-size: clamp(1.08rem, 2vw, 1.3rem);
    line-height: 1.7;
}

.insights-index {
    padding: 42px 0 112px;
}

.insights-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.insights-section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: -0.035em;
}

.insights-section-heading p {
    color: #aebbd0;
}

.post-card {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(60, 63, 86, 0.96), rgba(41, 43, 63, 0.98));
    box-shadow: 0 28px 80px rgba(10, 12, 24, 0.24);
}

.post-card-content {
    padding: clamp(30px, 5vw, 58px);
}

.post-meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 20px;
    color: #b9c5d8;
    font-size: 0.86rem;
}

.post-category {
    color: #baf0dc;
    font-weight: 700;
}

.post-card h2 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.post-card p {
    max-width: 720px;
    color: #c4cedd;
    font-size: 1.04rem;
}

.post-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.post-link::after {
    content: "\2192";
    color: #f89b89;
    font-size: 1.3em;
    transition: transform 0.2s ease;
}

.post-link:hover::after,
.post-link:focus-visible::after {
    transform: translateX(5px);
}

.post-card-visual {
    display: grid;
    align-content: center;
    gap: 20px;
    min-height: 390px;
    padding: 42px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(160deg, rgba(158, 221, 198, 0.11), transparent 52%),
        rgba(30, 32, 50, 0.62);
}

.signal-row {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    gap: 13px;
    color: #cbd5e1;
    font-size: 0.82rem;
}

.signal-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.signal-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f6836d, #9eddc6);
}

.signal-fill-999 { width: 99.9%; }
.signal-fill-100 { width: 100%; }
.signal-fill-88 { width: 88%; }
.signal-fill-86 { width: 86%; }

.signal-note {
    margin-top: 10px;
    color: #94a3b8;
    font-size: 0.78rem;
}

.coming-note {
    margin-top: 28px;
    padding: 22px 24px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    color: #aebbd0;
}

.article-hero {
    padding: 148px 0 58px;
}

.article-hero h1 {
    max-width: 1080px;
    font-size: clamp(2.4rem, 5.4vw, 4.9rem);
}

.article-deck {
    max-width: 840px;
    margin: 28px 0 24px;
    color: #cbd5e1;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.65;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(220px, 300px);
    justify-content: space-between;
    gap: 72px;
    padding-bottom: 110px;
}

.article-body {
    min-width: 0;
}

.article-body h2 {
    margin: 64px 0 20px;
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    line-height: 1.16;
    letter-spacing: -0.035em;
}

.article-body h3 {
    margin: 38px 0 12px;
    font-size: 1.3rem;
}

.article-body p,
.article-body li {
    color: #ced7e5;
    font-size: 1.03rem;
    line-height: 1.82;
}

.article-body p + p {
    margin-top: 20px;
}

.article-body ul,
.article-body ol {
    display: grid;
    gap: 12px;
    margin: 18px 0 0 22px;
}

.article-body strong {
    color: #fff;
}

.article-body a {
    color: #baf0dc;
    text-underline-offset: 3px;
}

.article-aside {
    position: sticky;
    top: 104px;
    align-self: start;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(48, 50, 72, 0.82);
}

.article-aside strong {
    display: block;
    margin-bottom: 12px;
}

.article-aside a {
    display: block;
    padding: 7px 0;
    color: #bfcada;
    font-size: 0.88rem;
    text-decoration: none;
}

.article-aside a:hover,
.article-aside a:focus-visible {
    color: #fff;
}

.benchmark-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 34px 0;
}

.benchmark-stat {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.benchmark-stat strong {
    display: block;
    color: #baf0dc;
    font-size: 1.75rem;
    line-height: 1;
}

.benchmark-stat span {
    display: block;
    margin-top: 8px;
    color: #aebbd0;
    font-size: 0.78rem;
    line-height: 1.35;
}

.finding-card,
.method-card,
.choice-card,
.article-cta {
    margin: 28px 0;
    padding: clamp(24px, 4vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(63, 66, 89, 0.86), rgba(43, 45, 65, 0.92));
}

.finding-card {
    border-left: 3px solid #9eddc6;
}

.finding-card > h2:first-child {
    margin-top: 0;
}

.choice-card {
    border-color: rgba(246, 184, 109, 0.48);
    background:
        radial-gradient(circle at 92% 12%, rgba(246, 184, 109, 0.13), transparent 32%),
        linear-gradient(145deg, rgba(63, 66, 89, 0.9), rgba(43, 45, 65, 0.94));
}

.choice-card-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #ffd7a8;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.choice-card h2 {
    font-size: clamp(1.65rem, 2.35vw, 2.08rem);
    letter-spacing: -0.035em;
}

.finding-card h3,
.method-card h3,
.choice-card h2,
.article-cta h2 {
    margin-top: 0;
}

.leaderboard-wrap {
    margin: 26px 0 42px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(32, 34, 52, 0.6);
}

.benchmark-controls {
    position: relative;
    z-index: 4;
    margin: 28px 0 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    background: rgba(48, 50, 72, 0.88);
}

.benchmark-controls-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.benchmark-controls-header strong,
.benchmark-controls-header span {
    display: block;
}

.benchmark-controls-header span {
    margin-top: 2px;
    color: #aebbd0;
    font-size: 0.78rem;
}

.benchmark-reset,
.benchmark-filter-action {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #eef3f9;
    font: inherit;
    cursor: pointer;
}

.benchmark-reset {
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: 0.76rem;
    font-weight: 700;
}

.benchmark-reset:disabled {
    cursor: default;
    opacity: 0.42;
}

.benchmark-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.benchmark-filter {
    position: relative;
    min-width: 0;
}

.benchmark-filter[open] {
    grid-column: 1 / -1;
}

.benchmark-filter summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    background: rgba(29, 31, 48, 0.66);
    color: #dce4ef;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.benchmark-filter summary::-webkit-details-marker {
    display: none;
}

.benchmark-filter summary::after {
    content: "⌄";
    color: #9eddc6;
    font-size: 1rem;
}

.benchmark-filter[open] summary::after {
    content: "⌃";
}

.benchmark-filter.has-filter summary {
    border-color: rgba(158, 221, 198, 0.55);
    background: rgba(158, 221, 198, 0.1);
}

.benchmark-filter-count {
    margin-left: auto;
    color: #9eddc6;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.benchmark-filter-panel {
    width: 100%;
    margin-top: 7px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: #303248;
    box-shadow: 0 14px 32px rgba(8, 10, 22, 0.3);
}

.benchmark-filter-panel > strong {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-size: 0.78rem;
}

.benchmark-filter-search {
    width: 100%;
    margin-bottom: 9px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    outline: none;
    background: #25273b;
    color: #fff;
    font: inherit;
    font-size: 0.78rem;
}

.benchmark-filter-search:focus {
    border-color: #9eddc6;
    box-shadow: 0 0 0 3px rgba(158, 221, 198, 0.12);
}

.benchmark-filter-options {
    display: grid;
    gap: 5px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 3px;
}

.benchmark-filter-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 7px;
    color: #d5deeb;
    font-size: 0.74rem;
    line-height: 1.35;
    cursor: pointer;
}

.benchmark-filter-option:hover {
    background: rgba(255, 255, 255, 0.07);
}

.benchmark-filter-option input {
    width: 15px;
    height: 15px;
    margin-top: 1px;
    accent-color: #9eddc6;
}

.benchmark-filter-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.benchmark-filter-action {
    padding: 7px 9px;
    font-size: 0.7rem;
}

.benchmark-filter-action:hover,
.benchmark-reset:not(:disabled):hover {
    border-color: rgba(158, 221, 198, 0.55);
    background: rgba(158, 221, 198, 0.1);
}

.benchmark-status {
    margin: 12px 0 0 !important;
    color: #aebbd0 !important;
    font-size: 0.76rem !important;
}

.leaderboard {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.leaderboard caption {
    padding: 18px 20px;
    color: #fff;
    font-weight: 700;
    text-align: left;
}

.leaderboard th,
.leaderboard td {
    padding: 13px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    color: #cbd5e1;
    text-align: right;
    white-space: nowrap;
}

.leaderboard th {
    color: #9face0;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.benchmark-sort {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    width: 100%;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-align: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.leaderboard th:first-child .benchmark-sort {
    justify-content: flex-start;
}

.benchmark-sort:hover,
.benchmark-sort:focus-visible {
    color: #fff;
}

.benchmark-sort:focus-visible,
.benchmark-reset:focus-visible,
.benchmark-filter-action:focus-visible,
.benchmark-filter summary:focus-visible,
.benchmark-filter-option input:focus-visible {
    outline: 2px solid #9eddc6;
    outline-offset: 3px;
}

.benchmark-sort-indicator {
    color: #9eddc6;
    font-size: 0.85rem;
}

.leaderboard th:first-child,
.leaderboard td:first-child {
    text-align: left;
    white-space: normal;
}

.leaderboard tbody tr:first-child {
    background: rgba(158, 221, 198, 0.08);
}

.leaderboard tr.neurx-choice-row {
    box-shadow: inset 3px 0 #f6b86d;
    background: rgba(246, 184, 109, 0.1);
}

.benchmark-empty-row td {
    padding: 28px 18px;
    color: #aebbd0;
    text-align: center !important;
}

.neurx-choice-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    padding: 3px 8px;
    border: 1px solid rgba(246, 184, 109, 0.38);
    border-radius: 999px;
    background: rgba(246, 184, 109, 0.12);
    color: #ffdbac;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.table-note {
    margin-top: -28px;
    color: #94a3b8 !important;
    font-size: 0.82rem !important;
}

.article-cta {
    margin-top: 64px;
    background:
        radial-gradient(circle at 90% 0, rgba(158, 221, 198, 0.14), transparent 34%),
        rgba(54, 57, 80, 0.9);
}

.article-cta .btn {
    margin-top: 22px;
}

.insights-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 18px;
}

.insights-footer-links a {
    color: #bcc8d8;
    text-decoration: none;
}

.insights-footer-links a:hover,
.insights-footer-links a:focus-visible {
    color: #fff;
}

@media (max-width: 960px) {
    .post-card,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .post-card-visual {
        min-height: 300px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-left: 0;
    }

    .article-aside {
        display: none;
    }
}

@media (max-width: 700px) {
    .insights-hero,
    .article-hero {
        padding-top: 120px;
    }

    .insights-section-heading {
        display: block;
    }

    .insights-section-heading p {
        margin-top: 8px;
    }

    .benchmark-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-card-visual {
        padding: 30px 24px;
    }

    .benchmark-controls-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .benchmark-reset,
    .benchmark-filter summary {
        min-height: 44px;
    }

    .benchmark-filter-action {
        min-height: 40px;
    }

    .leaderboard {
        min-width: 640px;
    }

    .leaderboard th,
    .leaderboard td {
        padding-right: 10px;
        padding-left: 10px;
    }

}

@media (max-width: 430px) {
    .benchmark-filter-grid {
        grid-template-columns: 1fr;
    }

}

@media (prefers-reduced-motion: reduce) {
    .post-link::after,
    .skip-link {
        transition: none;
    }
}
