/* =============================================
   1. VARIABLES & RESET
   ============================================= */
:root {
    /* --primary-color: #1A6B5A; */
    --primary-color: #377be4;
    --secondary-color: #059669;
    --accent-color: #d97706;
    --light-color: #FFFFFF;
    --dark-color: #1a1a1a;
    --text-color: #2D2D2D;
    --background-color: #FAFAF8;
    --header-gradient: linear-gradient(180deg, #F7F8F6 0%, #FAFAF8 100%);
    --font-family: 'Inter', 'Segoe UI', -apple-system, sans-serif;
    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --link-color: var(--primary-color);
}

[data-theme="dark"] {
    --primary-color: #0972d8;
    --secondary-color: #E0A854;
    --accent-color: #7B93F7;
    --light-color: #1A1A1A;
    --dark-color: #E8E8E8;
    --text-color: #D0D0D0;
    --background-color: #121212;
    --header-gradient: linear-gradient(180deg, #121212 0%, #121212 100%);
    --link-color: var(--primary-color);
}

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

/* =============================================
   2. BASE TYPOGRAPHY
   ============================================= */
body {
    font-family: var(--font-family);
    line-height: 1.8;
    font-size: 1.1rem;
    font-weight: 400;
    background-color: var(--background-color);
    color: var(--text-color);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--link-color); }

/* Theme toggle button */
.theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 200;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.2);
}

.theme-toggle__icon {
    width: 18px;
    height: 18px;
}

.theme-toggle__icon--sun {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: none;
}

.theme-toggle__icon--moon {
    fill: currentColor;
    display: block;
}

[data-theme="dark"] .theme-toggle {
    border-color: rgba(255, 255, 255, 0.18);
    background-color: rgba(18, 18, 18, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .theme-toggle:hover {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] .theme-toggle__icon--sun { display: block; }
[data-theme="dark"] .theme-toggle__icon--moon { display: none; }

/* =============================================
   3. LAYOUT
   ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   4. HEADER
   ============================================= */
.header-section {
    background: var(--background-color);
    padding: 100px 0 48px 0;
    margin-bottom: 16px;
    color: var(--dark-color);
    position: relative;
    overflow: hidden;
}

.paper-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 3.4rem;
    line-height: 1.15;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    display: block;
    text-align: center;
    letter-spacing: -0.5px;
}

.paper-subtitle {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 3.8rem;
    line-height: 1.15;
    margin-top: 0px;
    margin-bottom: 28px;
    color: var(--dark-color);
    text-align: center;
    letter-spacing: -0.5px;
}

.author-line {
    font-size: 1.05rem;
    font-weight: 400;
    margin: 0.5rem 0;
    line-height: 1.6;
    letter-spacing: 0.01em;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 1;
}

.author-line--middle {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.author-link {
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 3px 6px;
    border-radius: 4px;
    color: var(--text-color);
}

.author-link:hover {
    color: var(--link-color);
    text-decoration: none;
    background-color: rgba(26, 107, 90, 0.05);
}

.author-link sup {
    font-weight: 400;
    color: #656565;
}

.paper-links {
    margin-top: 2rem;
    margin-bottom: 0;
}

.resource-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    transition: all 0.2s ease;
}

.resource-btn:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.resource-btn--disabled {
    background: transparent;
    color: #9a9a9a;
    border-color: #d0d0d0;
    cursor: not-allowed;
}

.resource-btn--disabled:hover {
    color: #9a9a9a;
    transform: none;
    box-shadow: none;
}

.author-mark {
    font-weight: 700;
    font-size: 1.15em;
    color: #656565;
}

.equal-contribution {
    font-size: 0.85rem;
    color: #656565;
    margin-top: 14px;
    margin-bottom: 0;
    text-align: center;
    position: relative;
    z-index: 1;
    letter-spacing: 0.01em;
}

.eq-separator {
    opacity: 0.3;
}

.institution-logos {
    margin-top: 28px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.institution-logo-wrapper {
    display: inline-flex;
    align-items: center;
    margin: 0 10px;
    position: relative;
}

.institution-logo-wrapper sup {
    position: absolute;
    top: -5px;
    left: -12px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.institution-logo {
    height: auto;
    width: auto;
    vertical-align: middle;
    transition: opacity 0.2s ease;
    margin: 0 8px;
    opacity: 0.85;
}

.institution-logo img {
    width: auto;
    max-width: none;
}

.institution-logo img.logo-oxford {
    height: 3.25rem;
}

.institution-logo:hover { opacity: 1; }

/* Paper button */
.paper-btn-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 36px;
}

.paper-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: #FFFFFF !important;
    border: none;
    padding: 10px 26px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(26, 107, 90, 0.2);
    transition: all 0.25s ease;
    text-decoration: none;
}

.paper-btn:hover {
    background-color: #155C4C;
    color: #FFFFFF !important;
    box-shadow: 0 4px 16px rgba(26, 107, 90, 0.3);
    transform: translateY(-1px);
}

.paper-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(26, 107, 90, 0.2);
}

.paper-btn .fa-arrow-right {
    transition: transform 0.25s ease;
    font-size: 0.8em;
    opacity: 0.7;
}

.paper-btn:hover .fa-arrow-right {
    transform: translateX(3px);
}

/* =============================================
   5. TL;DR SECTION
   ============================================= */
.tldr-box {
    background-color: rgba(26, 107, 90, 0.03);
    border: 1px solid rgba(26, 107, 90, 0.08);
    border-radius: 8px;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #586069;
}

.tldr-headline {
    font-size: 1.5rem;
    text-align: center;
    color: var(--dark-color);
    line-height: 1.7;
    font-weight: 700;
}

.tldr-abstract {
    font-size: 1.15rem;
    font-weight: 400;
    text-align: left;
    line-height: 1.7;
}

/* TL;DR keyword tooltips */
.tldr-keyword {
    font-weight: 700;
    cursor: help;
    position: relative;
    transition: all 0.25s ease;
    padding: 0 2px;
    border-radius: 3px;
}

.tldr-keyword:hover {
    background-color: rgba(26, 107, 90, 0.08);
}

.tldr-keyword[data-color="primary"] {
    color: var(--primary-color);
    border-bottom: 2px dashed var(--primary-color);
}

.tldr-keyword[data-color="secondary"] {
    color: var(--secondary-color);
    border-bottom: 2px dashed var(--secondary-color);
}

.tldr-keyword[data-color="accent"] {
    color: var(--accent-color);
    border-bottom: 2px dashed var(--accent-color);
}

.tldr-keyword .keyword-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    width: 360px;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.7;
    color: #2D2D2D;
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.tldr-keyword .keyword-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #FFFFFF;
}

.tldr-keyword:hover .keyword-tooltip,
.tldr-keyword.tooltip-active .keyword-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tldr-keyword[data-color="primary"] .keyword-tooltip {
    border-top: 2px solid var(--primary-color);
}

.tldr-keyword[data-color="secondary"] .keyword-tooltip {
    border-top: 2px solid var(--secondary-color);
}

.tldr-keyword[data-color="accent"] .keyword-tooltip {
    border-top: 2px solid var(--accent-color);
}

/* TL;DR section navigation links */
.tldr-nav {
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.tldr-nav a {
    color: var(--link-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.tldr-nav a:hover { opacity: 0.7; }

.tldr-nav-sep { opacity: 0.2; }

/* =============================================
   6. CONTENT SECTIONS
   ============================================= */
.section-title {
    font-family: var(--font-display);
    margin: 36px 0 28px 0;
    font-weight: 500;
    font-size: 2rem;
    color: var(--dark-color);
    padding-bottom: 10px;
    text-align: center;
    position: relative;
    letter-spacing: -0.2px;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 18px auto 0 auto;
    opacity: 0.7;
}

.subsection-title {
    font-family: var(--font-display);
    margin: 36px 0 24px 0;
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--dark-color);
    text-align: center;
    letter-spacing: -0.1px;
}

/* Section color variants */
.sec-gold .section-title::after { background-color: var(--secondary-color); }
.sec-teal .section-title::after { background-color: var(--primary-color); }
.sec-blue .section-title::after { background-color: var(--accent-color); }
.sec-violet .section-title::after { background-color: #7c3aed; }

/* Section divider — centered ornamental line */
.section-divider {
    border: none;
    height: 0;
    max-width: 280px;
    margin: 32px auto;
    position: relative;
}

.section-divider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1.5px;
    background-color: rgba(0, 0, 0, 0.12);
}

.section-divider::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    background-color: var(--background-color);
}

/* Body text (used in all section paragraphs) */
.body-text {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 860px;
    margin: 0 auto 28px auto;
}

/* Section figures */
.section-figure {
    max-width: 780px;
    margin: 0 auto 16px auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.section-figure img {
    max-width: 100%;
    max-height: 360px;
    width: auto;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
}

.section-figure--tall img {
    max-height: 560px;
}

.section-figure--wide {
    max-width: 1000px;
}

.section-figure--framed img {
    background: #fff;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.section-figure--wide img {
    /* max-height: 480px; */
    /* max-height: 520px; */
    max-height: 50%;
}

/* Side-by-side figures */
.section-figure-row {
    display: flex;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto 16px auto;
    align-items: center;
    justify-content: center;
}

.section-figure-col {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.section-figure-col img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
}

@media (max-width: 576px) {
    .section-figure-row {
        flex-direction: column;
        gap: 12px;
    }
}

.section-caption {
    font-size: 0.88rem;
    color: #586069;
    text-align: center;
    max-width: 780px;
    margin: 0 auto 32px auto;
    line-height: 1.6;
}

.section-caption strong {
    color: #4B5563;
}

/* Callout boxes */
.callout {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 28px;
    border-left: 4px solid;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
}

.callout p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.75;
}

.callout--takeaway + .body-text {
    margin-top: 1.5rem;
}

.callout strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.callout--blue {
    border-left-color: #377be4;
    background: rgba(55, 123, 228, 0.07);
}

.callout--blue strong { color: #377be4; }

.callout--green {
    border-left-color: #059669;
    background: rgba(5, 150, 105, 0.07);
}

.callout--green strong { color: #059669; }

.callout--orange {
    border-left-color: #d97706;
    background: rgba(217, 119, 6, 0.07);
}

.callout--orange strong { color: #d97706; }

.callout--violet {
    border-left-color: #7c3aed;
    background: rgba(124, 58, 237, 0.07);
}

.callout--violet strong { color: #7c3aed; }

/* Architecture toggle cards */
.arch-card {
    max-width: 860px;
    margin: 0 auto 16px auto;
    border: 1px solid rgba(76, 110, 245, 0.15);
    border-radius: 10px;
    background: rgba(76, 110, 245, 0.02);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.arch-card:hover {
    border-color: rgba(76, 110, 245, 0.3);
}

.arch-card[open] {
    box-shadow: 0 2px 12px rgba(76, 110, 245, 0.08);
    border-color: rgba(76, 110, 245, 0.25);
}

.arch-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color 0.2s ease;
}

.arch-card__header::-webkit-details-marker {
    display: none;
}

.arch-card__header::marker {
    display: none;
    content: "";
}

.arch-card__header:hover {
    background-color: rgba(76, 110, 245, 0.04);
}

.arch-card__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-color);
    background: rgba(76, 110, 245, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.arch-card__title {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--dark-color);
    flex: 1;
}

.arch-card__toggle {
    color: #586069;
    font-size: 0.8rem;
    transition: transform 0.3s ease, color 0.2s ease;
    flex-shrink: 0;
}

.arch-card[open] .arch-card__toggle {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.arch-card__body {
    padding: 4px 24px 28px 24px;
    animation: archCardFadeIn 0.3s ease;
}

@keyframes archCardFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.arch-card__body .body-text {
    max-width: 100%;
}

.arch-card__body .section-figure {
    max-width: 100%;
}

.arch-card__body .section-figure-row {
    max-width: 100%;
}

.arch-card__body .section-caption {
    max-width: 100%;
}

/* Paper invite (before citation) */
.paper-invite {
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 620px;
    margin: 60px auto 40px auto;
    text-align: center;
    color: #586069;
}

.paper-invite a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(26, 107, 90, 0.3);
}

.paper-invite a:hover {
    border-bottom-color: var(--primary-color);
}

/* =============================================
   7. STICKY SECTION NAVIGATION
   ============================================= */
.section-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--background-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.section-nav.visible {
    opacity: 1;
    pointer-events: auto;
}

.section-nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    max-width: 780px;
    margin: 0 auto;
    padding: 20px 0 18px 0;
}

.section-nav-link {
    position: relative;
    cursor: pointer;
    font-size: 1.06rem;
    font-weight: 400;
    color: #586069;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.03em;
    padding-bottom: 14px;
    margin-bottom: -14px;
}

.section-nav-link::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 2.5px;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.section-nav-link:hover {
    color: var(--dark-color);
}

.section-nav-link.active {
    font-weight: 600;
}

/* Section-colored active states */
.section-nav-link.active { color: var(--dark-color); }
.section-nav-link.active::after { background-color: var(--dark-color); }

.nav-color-gold.active { color: var(--secondary-color); }
.nav-color-gold.active::after { background-color: var(--secondary-color); }

.nav-color-teal.active { color: var(--primary-color); }
.nav-color-teal.active::after { background-color: var(--primary-color); }

.nav-color-blue.active { color: #d97706; }
.nav-color-blue.active::after { background-color: #d97706; }

.nav-color-violet.active { color: #7c3aed; }
.nav-color-violet.active::after { background-color: #7c3aed; }

/* Top link — subtle, no underline */
.nav-top-link::after { display: none; }
.nav-top-link.active { font-weight: 400; }

.section-nav-sep {
    color: rgba(0, 0, 0, 0.15);
    font-size: 0.7rem;
    user-select: none;
    padding-bottom: 11px;
    margin-bottom: -12px;
}

/* Mobile nav header — hidden on desktop */
.nav-mobile-header {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.nav-mobile-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    letter-spacing: -0.2px;
}

.nav-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 10;
}

.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--dark-color);
    margin: 4px 0;
    border-radius: 1px;
    transition: all 0.25s ease;
}

.nav-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* =============================================
   9. CITATION
   ============================================= */
.citation-block {
    position: relative;
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 8px;
    padding: 24px 28px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.citation-block pre {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.copy-citation-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #586069;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.copy-citation-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(26, 107, 90, 0.04);
}

.copy-citation-btn.copied {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(26, 107, 90, 0.06);
}

.copy-citation-btn i { font-size: 0.82rem; }

/* =============================================
   10. IMAGE LIGHTBOX
   ============================================= */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.section-figure img,
.section-figure-col img,
.section-figure--tall img {
    cursor: zoom-in;
}

/* =============================================
   11. FOOTER
   ============================================= */
.site-footer {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    color: #586069;
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.back-to-top {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.82rem;
    color: #586069;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-to-top:hover {
    color: var(--primary-color);
    text-decoration: none;
}

[data-theme="dark"] .author-link sup,
[data-theme="dark"] .author-mark,
[data-theme="dark"] .equal-contribution {
    color: #9CA3AF;
}

[data-theme="dark"] .paper-btn {
    color: #FFFFFF !important;
}

[data-theme="dark"] .paper-btn:hover {
    background-color: #2A8A74;
}

[data-theme="dark"] .section-label,
[data-theme="dark"] .section-caption,
[data-theme="dark"] .paper-invite,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .back-to-top,
[data-theme="dark"] .section-nav-link,
[data-theme="dark"] .copy-citation-btn,
[data-theme="dark"] .arch-card__toggle {
    color: #9CA3AF;
}

[data-theme="dark"] .section-caption strong {
    color: #CBD5E1;
}

[data-theme="dark"] .tldr-keyword .keyword-tooltip {
    color: #D0D0D0;
    background: #1F1F1F;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .tldr-keyword .keyword-tooltip::after {
    border-top-color: #1F1F1F;
}

[data-theme="dark"] .section-divider::before {
    background-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .section-divider::after {
    border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .section-nav {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .section-nav-sep {
    color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .citation-block {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .copy-citation-btn {
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .copy-citation-btn:hover {
    background-color: rgba(61, 191, 160, 0.08);
}

[data-theme="dark"] .copy-citation-btn.copied {
    background-color: rgba(61, 191, 160, 0.12);
}

[data-theme="dark"] .callout--blue { background: rgba(96, 165, 250, 0.10); border-left-color: #60a5fa; }
[data-theme="dark"] .callout--blue strong { color: #60a5fa; }
[data-theme="dark"] .callout--green { background: rgba(52, 211, 153, 0.10); border-left-color: #34d399; }
[data-theme="dark"] .callout--green strong { color: #34d399; }
[data-theme="dark"] .callout--orange { background: rgba(251, 191, 36, 0.10); border-left-color: #fbbf24; }
[data-theme="dark"] .callout--orange strong { color: #fbbf24; }
[data-theme="dark"] .callout--violet { background: rgba(167, 139, 250, 0.10); border-left-color: #a78bfa; }
[data-theme="dark"] .callout--violet strong { color: #a78bfa; }

[data-theme="dark"] .arch-card {
    border-color: rgba(123, 147, 247, 0.22);
    background: rgba(123, 147, 247, 0.05);
}

[data-theme="dark"] .arch-card:hover {
    border-color: rgba(123, 147, 247, 0.35);
}

[data-theme="dark"] .arch-card[open] {
    border-color: rgba(123, 147, 247, 0.35);
    box-shadow: 0 2px 12px rgba(123, 147, 247, 0.16);
}

[data-theme="dark"] .arch-card__header:hover {
    background-color: rgba(123, 147, 247, 0.1);
}

[data-theme="dark"] .arch-card__step {
    background: rgba(123, 147, 247, 0.2);
}

[data-theme="dark"] .tldr-box {
    background-color: rgba(61, 191, 160, 0.08);
    border-color: rgba(61, 191, 160, 0.18);
}

[data-theme="dark"] .institution-logo {
    filter: brightness(1.8) saturate(0.9);
    opacity: 0.9;
}

[data-theme="dark"] .section-figure--framed img {
    border-color: rgba(255, 255, 255, 0.2);
}

/* =============================================
   11. RESPONSIVE — TABLET (≤ 1200px)
   ============================================= */
@media (max-width: 1200px) {
    .section-nav-link {
        font-size: 0.8rem;
    }

    .section-nav-inner {
        gap: 5px;
    }
}

/* =============================================
   12. RESPONSIVE — MOBILE (≤ 768px)
   ============================================= */
@media (max-width: 768px) {
    body { font-size: 1rem; }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-section {
        padding: 60px 0 40px 0;
    }


    .paper-title {
        font-size: 2.4rem;
    }

    .paper-subtitle {
        font-size: 2.4rem;
        margin-bottom: 20px;
    }

    .author-line {
        font-size: 0.92rem;
        gap: 4px 8px;
    }

    .institution-logo {
        width: auto;
    }

    .institution-logo img {
        height: 1.75rem;
    }

    .institution-logo img.logo-oxford {
        height: 2.85rem;
    }

    .paper-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin: 36px 0 24px 0;
    }

    .subsection-title {
        font-size: 2rem;
        margin: 28px 0 20px 0;
    }

    .body-text {
        font-size: 1rem;
    }

    .section-figure {
        min-height: 120px;
    }

    .section-figure img {
        max-height: 280px;
    }

    .section-figure--tall img {
        max-height: 440px;
    }

    .callout {
        padding: 14px 18px;
    }

    .arch-card__header {
        padding: 14px 18px;
        gap: 10px;
    }

    .arch-card__title {
        font-size: 1.02rem;
    }

    .arch-card__body {
        padding: 4px 18px 22px 18px;
    }

    .tldr-headline {
        font-size: 1.25rem;
    }

    .tldr-abstract {
        font-size: 1.05rem;
    }

    .tldr-nav {
        font-size: 1rem;
    }

    .tldr-keyword .keyword-tooltip {
        width: 260px;
        font-size: 0.85rem;
        padding: 12px 14px;
    }

    .nav-mobile-header {
        display: flex;
    }

    .section-nav-inner {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 0 8px 0;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .section-nav.menu-open .section-nav-inner {
        display: flex;
    }

    .section-nav-link {
        font-size: 0.92rem;
        padding: 10px 16px 10px 20px;
        margin-bottom: 0;
        text-align: left;
    }

    .section-nav-link::after {
        display: none;
    }

    .section-nav-link.active {
        background-color: rgba(0, 0, 0, 0.03);
        border-left: 2.5px solid;
    }

    .nav-color-gold.active { border-left-color: #377be4; }
    .nav-color-teal.active { border-left-color: #059669; }
    .nav-color-blue.active { border-left-color: #d97706; }
    .nav-color-violet.active { border-left-color: #7c3aed; }

    .section-nav-sep {
        display: none;
    }

    .citation-block {
        padding: 18px 16px;
    }

    .citation-block pre {
        font-size: 0.78rem;
    }

    .copy-citation-btn {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 12px;
    }

    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
    }

    .theme-toggle__icon {
        width: 16px;
        height: 16px;
    }

    [data-theme="dark"] .section-nav-link.active {
        background-color: rgba(255, 255, 255, 0.05);
    }

}

/* =============================================
   13. RESPONSIVE — SMALL MOBILE (≤ 576px)
   ============================================= */
@media (max-width: 576px) {
    body { font-size: 0.9rem; }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-section {
        padding: 40px 0 30px 0;
    }

    .paper-title {
        font-size: 2.1rem;
    }

    .paper-subtitle {
        font-size: 2.1rem;
        margin-bottom: 30px;
    }

    .author-line {
        font-size: 0.85rem;
    }

    .institution-logo {
        width: auto;
    }

    .institution-logo img {
        height: 1.5rem;
    }

    .institution-logo img.logo-oxford {
        height: 2.45rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin: 32px 0 20px 0;
    }

    .subsection-title {
        font-size: 1.6rem;
        margin: 24px 0 16px 0;
    }

    .section-figure img {
        max-height: 220px;
    }

    .section-figure--tall img {
        max-height: 360px;
    }

    .arch-card__header {
        padding: 12px 14px;
        gap: 8px;
    }

    .arch-card__step {
        font-size: 0.65rem;
        padding: 3px 9px;
    }

    .arch-card__title {
        font-size: 0.95rem;
    }

    .arch-card__body {
        padding: 4px 14px 20px 14px;
    }

    .tldr-headline {
        font-size: 1.15rem;
    }

    .tldr-keyword .keyword-tooltip {
        width: 220px;
        font-size: 0.82rem;
        padding: 10px 12px;
    }

    .section-nav-link {
        font-size: 0.88rem;
        padding: 9px 14px;
    }

    .paper-invite {
        font-size: 0.88rem;
        margin: 40px auto 30px auto;
    }
}

/* =============================================
   14. TOUCH DEVICE OPTIMIZATIONS
   ============================================= */
@media (hover: none) {
    .author-link:hover,
    .paper-btn:hover,
    .section-figure img:hover {
        transform: none;
    }

    a, button, .btn {
        min-height: 44px;
    }
}

/* =============================================
   15. LAUNCH FIGURE AND PLACEHOLDER POLISH
   ============================================= */
#citation .section-title::after,
#faq .section-title::after {
    background-color: var(--dark-color);
}

.copy-citation-btn:hover,
.copy-citation-btn.copied {
    color: var(--dark-color);
    border-color: var(--dark-color);
}

#tldr {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.paper-subtitle--compact {
    font-size: 2.7rem;
}

.contents-overview {
    max-width: 920px;
    margin: 56px auto 64px auto;
    padding: 0 20px;
}

.standalone-section-label,
.contents-overview__label {
    margin-bottom: 22px;
    color: var(--dark-color);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-align: center;
}

.standalone-section-label::after,
.contents-overview__label::after {
    content: "";
    display: block;
    width: 42px;
    height: 2px;
    margin: 12px auto 0 auto;
    background: var(--dark-color);
    opacity: 0.65;
}

.standalone-section-label {
    margin-top: 0;
}

.contents-overview__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.contents-card {
    display: flex;
    min-height: 160px;
    flex-direction: column;
    padding: 18px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.38);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.contents-card:hover {
    color: var(--text-color);
    border-color: rgba(0, 0, 0, 0.14);
    background: rgba(255, 255, 255, 0.62);
    transform: translateY(-2px);
}

.contents-card span {
    margin-bottom: 12px;
    color: var(--dark-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.contents-card strong {
    margin-bottom: 8px;
    color: var(--dark-color);
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.15;
}

.contents-card em {
    margin-bottom: 14px;
    color: var(--text-color);
    font-size: 0.86rem;
    font-style: normal;
    line-height: 1.45;
}

.contents-card small {
    display: block;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-color);
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.55;
}

[data-theme="dark"] .contents-card small {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.contents-card--gold { border-top: 3px solid #377be4; }
.contents-card--teal { border-top: 3px solid #059669; }
.contents-card--blue { border-top: 3px solid #d97706; }
.contents-card--violet { border-top: 3px solid #7c3aed; }
.contents-card--neutral { border-top: 3px solid var(--dark-color); }

[data-theme="dark"] .contents-card--gold { border-top-color: #60a5fa; }
[data-theme="dark"] .contents-card--teal { border-top-color: #34d399; }
[data-theme="dark"] .contents-card--blue { border-top-color: #fbbf24; }
[data-theme="dark"] .contents-card--violet { border-top-color: #a78bfa; }
[data-theme="dark"] .contents-card--neutral { border-top-color: var(--dark-color); }

[data-theme="dark"] .contents-card {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .contents-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .contents-card strong,
[data-theme="dark"] .contents-card:hover,
[data-theme="dark"] .contents-card {
    color: var(--text-color);
}

.section-figure--compact {
    max-width: 680px;
}

.section-figure--medium {
    max-width: 820px;
}

.section-figure--framed {
    max-width: 900px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.04);
}

.section-figure--framed img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .section-figure--framed {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.08);
}

.study-card {
    max-width: 980px;
    margin: 22px auto;
    border: 1px solid rgba(0, 0, 0, 0.075);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.34);
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.035);
}

.study-card[open] {
    background: rgba(255, 255, 255, 0.5);
}

.study-card__header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
}

.study-card__header::-webkit-details-marker {
    display: none;
}

.study-card__header::marker {
    display: none;
    content: "";
}

.study-card__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(55, 123, 228, 0.1);
    color: #377be4;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.study-card__title {
    color: var(--dark-color);
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.15;
}

.study-card__hint {
    color: #586069;
    font-size: 0.82rem;
    white-space: nowrap;
}

.study-card[open] .study-card__hint {
    color: #377be4;
}

.study-card--blue {
    border-top: 3px solid #377be4;
}

.study-card--blue .study-card__step {
    background: rgba(55, 123, 228, 0.1);
    color: #377be4;
}

.study-card--blue[open] .study-card__hint {
    color: #377be4;
}

.study-card--green {
    border-top: 3px solid #059669;
}

.study-card--green .study-card__step {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.study-card--green[open] .study-card__hint {
    color: #059669;
}

.study-card--orange {
    border-top: 3px solid #d97706;
}

.study-card--orange .study-card__step {
    background: rgba(217, 119, 6, 0.11);
    color: #d97706;
}

.study-card--orange[open] .study-card__hint {
    color: #d97706;
}

.study-card--violet {
    border-top: 3px solid #7c3aed;
}

.study-card--violet .study-card__step {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.study-card--violet[open] .study-card__hint {
    color: #7c3aed;
}

[data-theme="dark"] .study-card--blue .study-card__step { color: #60a5fa; background: rgba(96, 165, 250, 0.12); }
[data-theme="dark"] .study-card--green .study-card__step { color: #34d399; background: rgba(52, 211, 153, 0.12); }
[data-theme="dark"] .study-card--orange .study-card__step { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }
[data-theme="dark"] .study-card--violet .study-card__step { color: #a78bfa; background: rgba(167, 139, 250, 0.12); }
[data-theme="dark"] .study-card--blue { border-top-color: #60a5fa; }
[data-theme="dark"] .study-card--green { border-top-color: #34d399; }
[data-theme="dark"] .study-card--orange { border-top-color: #fbbf24; }
[data-theme="dark"] .study-card--violet { border-top-color: #a78bfa; }

.study-card__body {
    padding: 2px 24px 28px 24px;
}

.study-card__body .section-figure {
    margin-top: 24px;
}

.figure-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.figure-toggle__btn {
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(55, 123, 228, 0.35);
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.figure-toggle__btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.figure-toggle__btn.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.study-card__body .arch-card {
    max-width: 880px;
    margin: 10px auto;
    border-radius: 8px;
}

.study-card__body .arch-card__header {
    padding: 12px 16px;
    gap: 10px;
}

.study-card__body .arch-card__step {
    font-size: 0.65rem;
    padding: 3px 9px;
}

.study-card__body .arch-card__title {
    font-size: 0.98rem;
}

.study-card__body .arch-card__body {
    padding: 0 16px 14px 16px;
}

.study-card__body .arch-card__body .body-text {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

[data-theme="dark"] .study-card {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .study-card[open] {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .study-card__title {
    color: var(--text-color);
}

.faq-list {
    max-width: 960px;
    margin: 24px auto 56px auto;
}

.faq-item {
    margin: 14px auto;
    border: 1px solid rgba(0, 0, 0, 0.075);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.38);
    overflow: hidden;
}

.faq-item summary {
    padding: 18px 22px;
    color: var(--dark-color);
    cursor: pointer;
    font-size: 1.08rem;
    font-weight: 650;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    display: none;
    content: "";
}

.faq-item summary::after {
    content: "+";
    float: right;
    color: #586069;
    font-weight: 500;
}

.faq-item[open] summary::after {
    content: "-";
}

.faq-item p {
    max-width: none;
    margin: 0;
    padding: 0 22px 20px 22px;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.7;
}

[data-theme="dark"] .faq-item {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.08);
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 960px;
    margin: 42px auto 18px auto;
}

.recipe-card {
    min-height: 100%;
    padding: 24px;
    border: 1px solid rgba(124, 58, 237, 0.16);
    border-top: 3px solid #7c3aed;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

.recipe-card__label {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.08);
    color: var(--dark-color);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.recipe-card h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
}

.recipe-card p {
    max-width: none;
    margin-bottom: 0;
    color: var(--text-color);
    font-size: 0.98rem;
    line-height: 1.7;
}

[data-theme="dark"] .recipe-card {
    border-color: rgba(167, 139, 250, 0.22);
    border-top-color: #a78bfa;
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .recipe-card h3,
[data-theme="dark"] .recipe-card p {
    color: var(--text-color);
}

@media (max-width: 992px) {
    .contents-overview__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recipe-grid {
        grid-template-columns: 1fr;
        max-width: 760px;
    }
}

@media (max-width: 768px) {
    .contents-overview__grid {
        grid-template-columns: 1fr;
    }

    .study-card__header {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 18px;
    }

    .study-card__body {
        padding: 0 14px 20px 14px;
    }

    .contents-overview {
        margin-top: 42px;
        margin-bottom: 48px;
    }

    .contents-overview__label {
        font-size: 1.65rem;
    }

    .contents-card {
        min-height: auto;
    }

    .section-figure--framed {
        padding: 10px;
        border-radius: 14px;
    }

    .recipe-card {
        padding: 22px;
    }
}

/* Results tables */
.results-table-wrap {
    --cover: #FAFAF8;
    max-width: 900px;
    margin: 0 auto 10px auto;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(to right, var(--cover), rgba(250, 250, 248, 0)) 0 0 / 28px 100% no-repeat local,
        linear-gradient(to left, var(--cover), rgba(250, 250, 248, 0)) 100% 0 / 28px 100% no-repeat local,
        radial-gradient(farthest-side at 0 50%, rgba(15, 23, 42, 0.16), transparent) 0 0 / 14px 100% no-repeat scroll,
        radial-gradient(farthest-side at 100% 50%, rgba(15, 23, 42, 0.16), transparent) 100% 0 / 14px 100% no-repeat scroll;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.results-table th,
.results-table td {
    padding: 7px 10px;
    text-align: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.results-table thead th {
    font-weight: 600;
    color: #4b3a73;
    background: #f2eef7;
    position: sticky;
    z-index: 2;
}

.results-table thead tr.results-table__group th {
    border-bottom: 1px solid rgba(124, 58, 237, 0.18);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    top: 0;
    z-index: 3;
}

.results-table thead tr.results-table__group + tr th {
    top: 30px;
}

.results-table tbody td:first-child,
.results-table tbody th:first-child {
    text-align: left;
    font-weight: 500;
}

.results-table tbody tr:hover {
    background: rgba(124, 58, 237, 0.04);
}

.results-table tr.results-table__section td {
    background: rgba(124, 58, 237, 0.05);
    font-weight: 600;
    color: #7c3aed;
    text-align: left;
    letter-spacing: 0.03em;
}

.results-table tr.is-optimal {
    background: rgba(124, 58, 237, 0.10);
}

.results-table tr.is-optimal td {
    font-weight: 600;
}

.results-table tr.is-tinted {
    background: rgba(124, 58, 237, 0.10);
}

[data-theme="dark"] .results-table tr.is-tinted {
    background: rgba(167, 139, 250, 0.16);
}

[data-theme="dark"] .results-table-wrap {
    --cover: #121212;
    border-color: rgba(148, 163, 184, 0.15);
    background:
        linear-gradient(to right, var(--cover), rgba(18, 18, 18, 0)) 0 0 / 28px 100% no-repeat local,
        linear-gradient(to left, var(--cover), rgba(18, 18, 18, 0)) 100% 0 / 28px 100% no-repeat local,
        radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.4), transparent) 0 0 / 14px 100% no-repeat scroll,
        radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.4), transparent) 100% 0 / 14px 100% no-repeat scroll;
}

[data-theme="dark"] .results-table th,
[data-theme="dark"] .results-table td {
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

[data-theme="dark"] .results-table thead th {
    color: #c4b5fd;
    background: #211e29;
}

[data-theme="dark"] .results-table tbody tr:hover {
    background: rgba(167, 139, 250, 0.06);
}

[data-theme="dark"] .results-table tr.results-table__section td {
    background: rgba(167, 139, 250, 0.08);
    color: #a78bfa;
}

[data-theme="dark"] .results-table tr.is-optimal {
    background: rgba(167, 139, 250, 0.16);
}
