.papers-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(380px, 1fr));

    gap: 24px;

    margin-top: 32px;
}

.paper-card {

    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: 24px;

    padding: 24px;

    box-shadow: var(--shadow);
}

.paper-card-header {

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.grade {

    width: 48px;
    height: 48px;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 800;
}

.grade-a {
    background: rgba(0, 255, 170, .18);
    color: var(--green);
}

.grade-b {
    background: rgba(0, 200, 255, .15);
    color: var(--cyan);
}

.grade-c {
    background: rgba(255, 214, 107, .15);
    color: var(--yellow);
}

.grade-d,
.grade-e {
    background: rgba(255, 120, 120, .15);
    color: var(--red);
}

.paper-meta {

    color: var(--muted);

    font-size: .85rem;
}

.paper-title {

    margin-top: 22px;

    font-size: 1.35rem;

    line-height: 1.25;
}

.paper-journal {

    margin-top: 12px;

    color: var(--cyan);

    font-size: .95rem;
}

.paper-date {

    margin-top: 6px;

    color: var(--muted);

    font-size: .9rem;
}

.score-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;

    margin-top: 22px;
}

.score-box {

    background: var(--panel-2);

    border-radius: 16px;

    padding: 16px;

    border: 1px solid var(--border);
}

.score-label {

    color: var(--muted);

    font-size: .8rem;

    text-transform: uppercase;

    letter-spacing: .08em;
}

.score-value {

    margin-top: 8px;

    font-size: 1.4rem;

    font-weight: 800;
}

.paper-summary {

    margin-top: 24px;

    color: #d9e1eb;

    line-height: 1.7;
}

.why-it-matters {

    margin-top: 24px;

    padding-top: 20px;

    border-top: 1px solid var(--border);
}

.section-mini-title {

    color: var(--cyan);

    text-transform: uppercase;

    letter-spacing: .08em;

    font-size: .78rem;

    margin-bottom: 10px;
}

.ai-summary-box,
.why-box {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 18px;
    line-height: 1.65;
}

.ai-summary-box {
    background: rgba(0, 212, 255, .08);
    border: 1px solid rgba(0, 212, 255, .18);
}

.why-box {
    background: rgba(0, 255, 170, .07);
    border: 1px solid rgba(0, 255, 170, .18);
}

.summary-label {
    margin-bottom: 8px;
    color: var(--cyan);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.ai-summary-box p,
.why-box p {
    margin: 0;
    color: #dce8f5;
    font-size: .96rem;
}

.research-board {
    margin-top: 32px;
}

.board-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.board-header h2 {
    margin: 8px 0 0;
    font-size: 1.8rem;
}

.section-kicker {
    color: var(--cyan);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.table-count {
    color: var(--muted);
    font-size: .95rem;
    white-space: nowrap;
}

.research-record-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.research-record {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border-radius: 26px;
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, .035),
            rgba(255, 255, 255, .015)),
        var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.research-record::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background:
        linear-gradient(180deg,
            rgba(102, 224, 255, .85),
            rgba(125, 255, 179, .85));
    opacity: .75;
}

.research-record::after {
    content: "";
    position: absolute;
    top: 0;
    left: 4px;
    right: 0;
    height: 1px;
    background:
        linear-gradient(90deg,
            rgba(102, 224, 255, .55),
            transparent);
}

.record-topline {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: start;
}

.record-main {
    min-width: 0;
}

.record-title {
    display: block;
    color: #f7fbff;
    font-size: clamp(1.3rem, 2vw, 2.1rem);
    font-weight: 850;
    line-height: 1.18;
    letter-spacing: -.02em;
}

.record-title:hover {
    color: var(--cyan);
}

.record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    color: var(--muted);
    font-size: .95rem;
}

.record-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .07);
}

.record-scores {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.score-chip {
    min-width: 92px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .09);
}

.score-chip span {
    display: block;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .13em;
}

.score-chip strong {
    display: block;
    margin-top: 8px;
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
}

.score-ai {
    background: rgba(102, 224, 255, .075);
    border-color: rgba(102, 224, 255, .18);
}

.score-base {
    background: rgba(255, 214, 107, .07);
    border-color: rgba(255, 214, 107, .16);
}

.score-rank {
    background: rgba(125, 255, 179, .07);
    border-color: rgba(125, 255, 179, .16);
}

.record-insight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 24px;
    padding-left: 96px;
}

.insight-box {
    border-radius: 20px;
    padding: 20px 22px;
    min-height: 130px;
}

.insight-ai {
    background:
        radial-gradient(circle at top left,
            rgba(102, 224, 255, .18),
            transparent 35%),
        rgba(102, 224, 255, .065);
    border: 1px solid rgba(102, 224, 255, .18);
}

.insight-why {
    background:
        radial-gradient(circle at top left,
            rgba(125, 255, 179, .16),
            transparent 35%),
        rgba(125, 255, 179, .06);
    border: 1px solid rgba(125, 255, 179, .18);
}

.insight-label {
    margin-bottom: 10px;
    color: var(--cyan);
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .13em;
}

.insight-why .insight-label {
    color: var(--green);
}

.insight-box p {
    margin: 0;
    color: #e9f1fb;
    font-size: 1rem;
    line-height: 1.65;
}

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

@media (max-width: 1100px) {
    .record-topline {
        grid-template-columns: 64px 1fr;
    }

    .record-scores {
        grid-column: 1 / -1;
        padding-left: 86px;
        flex-wrap: wrap;
    }

    .record-insight-grid {
        padding-left: 86px;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .research-record {
        padding: 22px;
    }

    .record-topline {
        grid-template-columns: 1fr;
    }

    .record-scores,
    .record-insight-grid {
        padding-left: 0;
    }

    .record-scores {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .score-chip {
        min-width: 0;
    }

    .score-chip strong {
        font-size: 1.2rem;
    }

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

/* =========================================
   RESEARCH BOARD — LIGHTER / TIGHTER PASS
   Reduce visual weight ~50%
========================================= */

.research-record {
    padding: 28px 30px;
    border-radius: 28px;
}

/* -----------------------------------------
   Title + Typography
----------------------------------------- */

.record-title {
    font-size: 2.1rem;
    line-height: 1.08;
    font-weight: 700;
    /* was visually too heavy */
    letter-spacing: -0.03em;
    max-width: 1200px;
}

.record-meta {
    margin-top: 16px;
    gap: 10px;
}

.record-meta span {
    font-size: 0.90rem;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 500;
}

/* -----------------------------------------
   Grade Box
----------------------------------------- */

.grade {
    width: 48px;
    height: 48px;
    min-width: 48px;

    font-size: 1.15rem;
    font-weight: 700;

    border-radius: 14px;
    margin-right: 18px;
}

/* -----------------------------------------
   Score Chips
----------------------------------------- */

.record-scores {
    gap: 12px;
}

.score-chip {
    min-width: 108px;

    padding: 16px 18px;
    border-radius: 20px;
}

.score-chip span {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.score-chip strong {
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
    margin-top: 8px;
}

/* -----------------------------------------
   Insight Boxes
----------------------------------------- */

.record-insight-grid {
    margin-top: 24px;
    gap: 20px;
}

.insight-box {
    padding: 24px 26px;
    border-radius: 24px;
    min-height: 150px;
}

.insight-label {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
    font-weight: 700;
}

.insight-box p {
    font-size: 1.05rem;
    line-height: 1.55;
    font-weight: 400;
    opacity: 0.92;
}

/* -----------------------------------------
   Section Header
----------------------------------------- */

.board-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.table-count {
    font-size: 1.05rem;
    opacity: 0.75;
}

/* -----------------------------------------
   Overall spacing tightening
----------------------------------------- */

.research-record-list {
    gap: 26px;
}

.record-topline {
    gap: 18px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 980px) {

    .research-record {
        padding: 22px;
    }

    .record-title {
        font-size: 1.55rem;
        line-height: 1.12;
    }

    .record-scores {
        margin-top: 18px;
        width: 100%;
    }

    .score-chip {
        min-width: 88px;
        padding: 14px 14px;
    }

    .score-chip strong {
        font-size: 1.45rem;
    }

    .insight-box {
        min-height: auto;
        padding: 20px;
    }
}

/* =========================================
   NEUROCOMPUTE — COMPACT MODE
   Reduce overall card visual size ~50%
========================================= */

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

/* -----------------------------------------
   Top Row
----------------------------------------- */

.record-topline {
    gap: 12px;
    align-items: flex-start;
}

/* -----------------------------------------
   Grade Badge
----------------------------------------- */

.grade {
    width: 34px;
    height: 34px;
    min-width: 34px;

    border-radius: 10px;

    font-size: 0.88rem;
    font-weight: 700;

    margin-right: 10px;
}

/* -----------------------------------------
   Title
----------------------------------------- */

.record-title {
    font-size: 1.25rem;
    line-height: 1.12;
    font-weight: 650;
    letter-spacing: -0.02em;

    display: block;
    max-width: 980px;
}

/* -----------------------------------------
   Metadata Pills
----------------------------------------- */

.record-meta {
    margin-top: 10px;
    gap: 8px;
    flex-wrap: wrap;
}

.record-meta span {
    font-size: 0.72rem;
    padding: 7px 11px;
    border-radius: 999px;
    font-weight: 500;
}

/* -----------------------------------------
   Score Chips
----------------------------------------- */

.record-scores {
    gap: 8px;
}

.score-chip {
    min-width: 74px;

    padding: 10px 12px;
    border-radius: 14px;
}

.score-chip span {
    font-size: 0.58rem;
    letter-spacing: 0.10em;
    font-weight: 700;
}

.score-chip strong {
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 4px;
    font-weight: 700;
}

/* -----------------------------------------
   Insight Area
----------------------------------------- */

.record-insight-grid {
    margin-top: 16px;
    gap: 12px;
}

.insight-box {
    padding: 16px 18px;
    border-radius: 16px;
    min-height: 92px;
}

.insight-label {
    font-size: 0.65rem;
    letter-spacing: 0.11em;
    margin-bottom: 8px;
    font-weight: 700;
}

.insight-box p {
    font-size: 0.88rem;
    line-height: 1.45;
    font-weight: 400;
    opacity: 0.88;
}

/* -----------------------------------------
   Section Header
----------------------------------------- */

.board-header h2 {
    font-size: 1.8rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.table-count {
    font-size: 0.82rem;
    opacity: 0.72;
}

/* -----------------------------------------
   Overall Vertical Rhythm
----------------------------------------- */

.research-record-list {
    gap: 16px;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 980px) {

    .research-record {
        padding: 14px;
    }

    .record-title {
        font-size: 1.02rem;
        line-height: 1.16;
    }

    .record-scores {
        width: 100%;
        margin-top: 12px;
    }

    .score-chip {
        min-width: 64px;
        padding: 9px 10px;
    }

    .score-chip strong {
        font-size: 1rem;
    }

    .insight-box {
        padding: 14px;
        min-height: auto;
    }

    .insight-box p {
        font-size: 0.82rem;
    }
}

/* remove glow / heavy shadow around article card */
.research-record {
    box-shadow: none !important;
}

/* optional: soften the border too */
.research-record {
    border-color: rgba(255, 255, 255, 0.08);
}

/* share button */
.share-button {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 74px;
    padding: 10px 12px;
    border-radius: 14px;

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: #67e8f9;
    text-decoration: none;

    border: 1px solid rgba(103, 232, 249, 0.28);
    background: rgba(8, 20, 30, 0.72);
}

.share-button:hover {
    color: #ffffff;
    border-color: rgba(103, 232, 249, 0.55);
    background: rgba(103, 232, 249, 0.12);
}

/* =========================================
   REMOVE GLOWING BORDER EFFECTS
========================================= */

.research-record {
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-image: none;
}

/* remove any pseudo glow overlays */
.research-record::before,
.research-record::after {
    display: none !important;
    content: none !important;
}

/* remove inset glow from insight boxes */
.insight-box {
    box-shadow: none !important;
}

/* soften score chips */
.score-chip {
    box-shadow: none !important;
}

/* =========================================
   INCREASE FONT SIZES ~20%
========================================= */

.record-title {
    font-size: 1.5rem;
    line-height: 1.14;
    font-weight: 650;
}

.record-meta span {
    font-size: 0.86rem;
}

.score-chip strong {
    font-size: 1.45rem;
}

.insight-label {
    font-size: 0.78rem;
}

.insight-box p {
    font-size: 1.02rem;
    line-height: 1.55;
}

.board-header h2 {
    font-size: 2.15rem;
}

.table-count {
    font-size: 0.96rem;
}

.share-button {
    font-size: 0.78rem;
}