/* THY-REALITY theme layer v0.14.1
   The UI exposes only Dark and Light. With no stored manual choice, the
   matching button reflects the OS preference; Dark remains the safe fallback.
   Light is an intentionally designed warm-paper variant. */

.header-controls {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex: 0 0 auto;
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 9px;
    background: rgba(255,255,255,.025);
}

.theme-choice {
    width: 38px;
    height: 35px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #aeb7bd;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.theme-choice:hover { color: #fff; }
.theme-choice:active { transform: translateY(1px); }
.theme-choice.active {
    background: rgba(216,173,88,.12);
    color: var(--tr-gold-light);
    box-shadow: inset 0 0 0 1px rgba(216,173,88,.42);
}
.theme-choice:focus-visible { outline: 2px solid var(--tr-gold-light); outline-offset: 2px; }

/* Smooth enough to feel intentional, short enough not to animate the whole page. */
body,
.site-header,
.site-footer,
.section-block,
.about-section,
.principles-section,
.author-section,
.inner-hero,
.article-library,
.video-library-section,
.video-bridge-section,
.project-scope,
.author-focus-section,
.author-bridge,
.legal-page {
    transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}

/* LIGHT THEME ------------------------------------------------------------- */
html[data-bs-theme="light"] {
    --tr-bg: #f4efe6;
    --tr-bg-deep: #e8e0d3;
    --tr-bg-soft: #fbf8f2;
    --tr-panel: rgba(255, 252, 246, .88);
    --tr-panel-solid: #fffaf1;
    --tr-border: rgba(128, 93, 31, .22);
    --tr-border-strong: rgba(156, 111, 30, .42);
    --tr-gold: #a97822;
    --tr-gold-light: #84580e;
    --tr-text: #172630;
    --tr-muted: #596870;
    --tr-muted-2: #78848a;
    --tr-shadow: 0 24px 65px rgba(62, 46, 22, .13);
}

html[data-bs-theme="light"] body {
    background: var(--tr-bg);
    color: var(--tr-text);
}

html[data-bs-theme="light"] ::selection {
    background: rgba(169,120,34,.22);
    color: #172630;
}

/* Header and controls */
html[data-bs-theme="light"] .site-header {
    background: rgba(250,247,240,.88);
    border-bottom-color: rgba(128,93,31,.18);
    box-shadow: 0 1px 0 rgba(255,255,255,.55);
}
html[data-bs-theme="light"] .site-header.is-scrolled {
    background: rgba(250,247,240,.97);
    box-shadow: 0 14px 38px rgba(62,46,22,.10);
}
html[data-bs-theme="light"] .brand { color: #8b6117 !important; }
html[data-bs-theme="light"] .brand-copy small { color: #886f43; }
html[data-bs-theme="light"] .navbar .nav-link { color: #34434b; }
html[data-bs-theme="light"] .navbar .nav-link:hover,
html[data-bs-theme="light"] .navbar .nav-link:focus,
html[data-bs-theme="light"] .navbar .nav-link.active { color: #8a5c0c; }
html[data-bs-theme="light"] .navbar-toggler { border-color: rgba(77,64,42,.22); }
html[data-bs-theme="light"] .language-switch,
html[data-bs-theme="light"] .theme-switch {
    border-color: rgba(77,64,42,.20);
    background: rgba(255,255,255,.48);
}
html[data-bs-theme="light"] .language-switch a { color: #5d686e; }
html[data-bs-theme="light"] .language-switch a:hover { color: #26343c; }
html[data-bs-theme="light"] .language-switch a.active,
html[data-bs-theme="light"] .theme-choice.active {
    background: rgba(169,120,34,.11);
    color: #79500b;
    box-shadow: inset 0 0 0 1px rgba(169,120,34,.32);
}
html[data-bs-theme="light"] .theme-choice { color: #67747a; }
html[data-bs-theme="light"] .theme-choice:hover { color: #26343c; }

/* Keep the photographic Home hero deliberately cinematic in both themes. */
html[data-bs-theme="light"] .hero-section { background: #0a1720; color: #f7f3e9; }
html[data-bs-theme="light"] .hero-vignette {
    background:
        linear-gradient(90deg, rgba(3,10,17,.34) 0%, rgba(3,10,17,.05) 47%, rgba(3,10,17,.08) 100%),
        linear-gradient(180deg, rgba(3,10,17,.20) 0%, rgba(3,10,17,.01) 47%, rgba(3,10,17,.76) 100%);
}
html[data-bs-theme="light"] .hero-section h1,
html[data-bs-theme="light"] .hero-lead { color: #f7f3e9; }
html[data-bs-theme="light"] .hero-section h1 em,
html[data-bs-theme="light"] .hero-section .eyebrow { color: #f0cd7e; }
html[data-bs-theme="light"] .hero-concept strong { color: #f1d79f; }
html[data-bs-theme="light"] .hero-concept small { color: #d5dde0; }
html[data-bs-theme="light"] .hero-concept-perception strong { color: #d9e8ef; }
html[data-bs-theme="light"] .truth-path {
    background: rgba(6,17,26,.78);
    border-color: rgba(231,193,111,.34);
    color: #f5efe3;
}
html[data-bs-theme="light"] .truth-path .path-step span { color: #bbc5ca; }
html[data-bs-theme="light"] .truth-path .path-step strong { color: #f0d298; }

/* Buttons */
html[data-bs-theme="light"] .btn-gold {
    border-color: #a97822;
    background: linear-gradient(180deg,#d9b565,#bd8a32);
    color: #17232a;
}
html[data-bs-theme="light"] .btn-gold:hover,
html[data-bs-theme="light"] .btn-gold:focus { color: #0e1b22; }
html[data-bs-theme="light"] .btn-outline-gold {
    border-color: rgba(135,91,14,.58);
    background: rgba(255,252,246,.62);
    color: #79500b;
}
html[data-bs-theme="light"] .btn-outline-gold:hover,
html[data-bs-theme="light"] .btn-outline-gold:focus {
    background: rgba(169,120,34,.11);
    color: #5f3d05;
}

/* General editorial surfaces */
html[data-bs-theme="light"] .section-block { border-bottom-color: rgba(128,93,31,.14); }
html[data-bs-theme="light"] .section-intro,
html[data-bs-theme="light"] .section-heading-copy { color: #5d6a71; }
html[data-bs-theme="light"] .section-link { color: #84580e; }
html[data-bs-theme="light"] .section-link:hover { color: #5f3d05; }
html[data-bs-theme="light"] .section-link.muted { color: #6f7b80; }
html[data-bs-theme="light"] .topics-section {
    background: linear-gradient(180deg,#f8f4ec,#eee7dc);
}
/* Topic cards stay image-led and dark for predictable readability. */
html[data-bs-theme="light"] .topic-card { color: #fff; border-color: rgba(128,93,31,.22); box-shadow: 0 12px 30px rgba(58,43,21,.10); }
html[data-bs-theme="light"] .topic-card h3 { color: #fff9ee; }
html[data-bs-theme="light"] .topic-card p { color: #d8dfe1; }
html[data-bs-theme="light"] .topic-card::after {
    background: linear-gradient(180deg,rgba(4,13,21,.18) 0%,rgba(4,13,21,.58) 50%,rgba(4,13,21,.91) 100%);
}

html[data-bs-theme="light"] .video-section {
    background: linear-gradient(180deg,#eee7dc,#f7f2e9);
}
html[data-bs-theme="light"] .language-meta { color: #5f6b71; }
html[data-bs-theme="light"] .articles-section {
    background: linear-gradient(180deg,#f7f2e9,#efe8dd);
}
html[data-bs-theme="light"] .article-card {
    background: rgba(255,252,246,.78);
    border-color: rgba(128,93,31,.18);
    box-shadow: 0 12px 32px rgba(62,46,22,.07);
}
html[data-bs-theme="light"] .article-card:hover { box-shadow: 0 18px 42px rgba(62,46,22,.12); }
html[data-bs-theme="light"] .article-card h3,
html[data-bs-theme="light"] .article-card h3 a { color: #1c2b34; }
html[data-bs-theme="light"] .article-card p { color: #5f6b71; }
html[data-bs-theme="light"] .article-meta { color: #778287; }

html[data-bs-theme="light"] .about-section {
    background:
        radial-gradient(circle at 18% 35%,rgba(78,118,141,.10),transparent 29%),
        radial-gradient(circle at 88% 50%,rgba(169,120,34,.08),transparent 24%),
        #f4efe6;
}
html[data-bs-theme="light"] .about-copy p,
html[data-bs-theme="light"] .method p,
html[data-bs-theme="light"] .author-card p { color: #5d6970; }
html[data-bs-theme="light"] .method { border-bottom-color: rgba(128,93,31,.16); }
html[data-bs-theme="light"] .method strong { color: #24333b; }
html[data-bs-theme="light"] .principles-section {
    background: linear-gradient(180deg,#eee7dc,#f5f0e7);
    border-bottom-color: rgba(128,93,31,.18);
}
html[data-bs-theme="light"] .principle { border-right-color: rgba(128,93,31,.16); }
html[data-bs-theme="light"] .principle strong { color: #24333b; }
html[data-bs-theme="light"] .principle span { color: #637078; }
html[data-bs-theme="light"] .author-section {
    background: radial-gradient(circle at 18% 50%,rgba(71,109,132,.09),transparent 30%),#f4efe6;
}
html[data-bs-theme="light"] .author-card {
    background: rgba(255,252,246,.72);
    border-color: rgba(128,93,31,.18);
}

/* Inner-page heroes */
html[data-bs-theme="light"] .inner-hero,
html[data-bs-theme="light"] .about-project-hero,
html[data-bs-theme="light"] .author-page-hero,
html[data-bs-theme="light"] .contact-hero {
    background:
        radial-gradient(circle at 78% 34%,rgba(169,120,34,.10),transparent 25%),
        radial-gradient(circle at 18% 32%,rgba(71,111,135,.10),transparent 31%),
        linear-gradient(145deg,#f7f3eb,#eae2d6 55%,#f5f0e7);
}
html[data-bs-theme="light"] .inner-hero::before {
    opacity: .45;
    background-image:
        linear-gradient(rgba(128,93,31,.055) 1px,transparent 1px),
        linear-gradient(90deg,rgba(128,93,31,.055) 1px,transparent 1px);
}
html[data-bs-theme="light"] .inner-hero p,
html[data-bs-theme="light"] .author-hero-grid p { color: #596870; }
html[data-bs-theme="light"] .explore-graphic,
html[data-bs-theme="light"] .project-graphic,
html[data-bs-theme="light"] .author-graphic,
html[data-bs-theme="light"] .contact-graphic,
html[data-bs-theme="light"] .articles-hero-art {
    border-color: rgba(128,93,31,.24);
    box-shadow: 0 26px 58px rgba(62,46,22,.14);
}
html[data-bs-theme="light"] .visual-corner-label,
html[data-bs-theme="light"] .articles-hero-seal {
    background: rgba(20,29,34,.72);
    color: #f3d691;
}

/* Explore */
html[data-bs-theme="light"] .explore-map-section {
    background: linear-gradient(180deg,#eee7dc,#f7f2ea);
}
html[data-bs-theme="light"] .explore-topic-card {
    border-color: rgba(128,93,31,.18);
    background: linear-gradient(150deg,rgba(255,253,248,.95),rgba(240,234,224,.96));
    box-shadow: 0 15px 34px rgba(62,46,22,.06);
}
html[data-bs-theme="light"] .explore-topic-card:hover { box-shadow: 0 20px 46px rgba(62,46,22,.12); }
html[data-bs-theme="light"] .explore-topic-card > p,
html[data-bs-theme="light"] .explore-topic-card ul { color: #5d6970; }
html[data-bs-theme="light"] .explore-topic-card ul {
    border-color: rgba(128,93,31,.12);
    background: rgba(255,255,255,.30);
}
html[data-bs-theme="light"] .explore-topic-card > a span {
    border-color: rgba(128,93,31,.34);
    background: rgba(255,252,246,.64);
    color: #79500b;
}
html[data-bs-theme="light"] .topic-number {
    border-color: rgba(128,93,31,.34);
    background: rgba(255,252,246,.80);
    color: #8b5e12;
    box-shadow: 0 6px 16px rgba(62,46,22,.08);
}
html[data-bs-theme="light"] .explore-cta {
    background: radial-gradient(circle at 80% 50%,rgba(169,120,34,.08),transparent 25%),#f4efe6;
    border-bottom-color: rgba(128,93,31,.14);
}

/* Article library */
html[data-bs-theme="light"] .article-library {
    background: linear-gradient(180deg,#f7f2ea,#eee7dc);
}
html[data-bs-theme="light"] .article-toolbar {
    background: rgba(247,242,234,.92);
    border-color: rgba(128,93,31,.14);
    box-shadow: 0 12px 26px rgba(62,46,22,.07);
}
html[data-bs-theme="light"] .article-search input {
    background: rgba(255,253,248,.95);
    border-color: rgba(128,93,31,.24);
    color: #1c2b34;
}
html[data-bs-theme="light"] .article-search input::placeholder { color: #899397; }
html[data-bs-theme="light"] .topic-filter {
    background: rgba(255,253,248,.52);
    border-color: rgba(128,93,31,.18);
    color: #5f6b71;
}
html[data-bs-theme="light"] .topic-filter:hover,
html[data-bs-theme="light"] .topic-filter.active {
    border-color: rgba(128,93,31,.40);
    background: rgba(169,120,34,.10);
    color: #79500b;
}
html[data-bs-theme="light"] .library-card {
    background: linear-gradient(180deg,rgba(255,253,248,.95),rgba(240,234,224,.94));
    border-color: rgba(128,93,31,.18);
    box-shadow: 0 14px 34px rgba(62,46,22,.07);
}
html[data-bs-theme="light"] .library-card:hover { box-shadow: 0 20px 46px rgba(62,46,22,.12); }
html[data-bs-theme="light"] .library-card h2 a { color: #1b2a33; }
html[data-bs-theme="light"] .library-card p { color: #5f6b71; }
html[data-bs-theme="light"] .legacy-note {
    background: rgba(225,235,240,.52);
    border-color: rgba(80,119,141,.24);
}
html[data-bs-theme="light"] .legacy-note strong { color: #28404d; }
html[data-bs-theme="light"] .legacy-note p { color: #617078; }

/* Article detail */
html[data-bs-theme="light"] .article-detail-header {
    background:
        radial-gradient(circle at 74% 36%,rgba(169,120,34,.08),transparent 28%),
        linear-gradient(180deg,#f7f2ea,#eee7dc);
    border-bottom-color: rgba(128,93,31,.14);
}
html[data-bs-theme="light"] .article-detail-header p,
html[data-bs-theme="light"] .article-detail-deck { color: #5c6970; }
html[data-bs-theme="light"] .article-detail-body { background: #f4efe6; }
html[data-bs-theme="light"] .article-detail-body p { color: #34434b; }
html[data-bs-theme="light"] .article-lead-mark { background: rgba(169,120,34,.05); }
html[data-bs-theme="light"] .article-next-links > a {
    background: rgba(255,253,248,.72);
    border-color: rgba(128,93,31,.17);
}
html[data-bs-theme="light"] .article-next-links > a:hover { background: #fffaf1; }

/* Video hub and video detail */
html[data-bs-theme="light"] .video-hub-hero {
    background:
        radial-gradient(circle at 76% 36%,rgba(169,120,34,.09),transparent 28%),
        radial-gradient(circle at 18% 44%,rgba(71,111,135,.10),transparent 32%),
        linear-gradient(180deg,#f3ede4,#e9e1d5);
    border-bottom-color: rgba(128,93,31,.18);
}
html[data-bs-theme="light"] .video-hub-copy > p { color: #5d6970; }
html[data-bs-theme="light"] .video-language-row > span,
html[data-bs-theme="light"] .video-detail-meta > * {
    background: rgba(255,253,248,.70);
    border-color: rgba(128,93,31,.19);
    color: #665a43;
}
html[data-bs-theme="light"] .video-language-row strong { color: #27353d; }
html[data-bs-theme="light"] .video-principles-strip {
    background: #ece4d8;
    border-bottom-color: rgba(128,93,31,.15);
}
html[data-bs-theme="light"] .video-principles-grid article { border-right-color: rgba(128,93,31,.12); }
html[data-bs-theme="light"] .video-principles-grid strong { color: #26353d; }
html[data-bs-theme="light"] .video-principles-grid span { color: #627078; }
html[data-bs-theme="light"] .video-library-section {
    background: linear-gradient(180deg,#f7f2ea,#eee7dc);
}
html[data-bs-theme="light"] .video-library-card {
    background: rgba(255,253,248,.82);
    border-color: rgba(128,93,31,.18);
}
html[data-bs-theme="light"] .video-library-body h3 a { color: #1b2a33; }
html[data-bs-theme="light"] .video-library-body p { color: #5f6b71; }
html[data-bs-theme="light"] .video-caption-meta { color: #778388; }
html[data-bs-theme="light"] .video-import-note {
    background: radial-gradient(circle at 8% 50%,rgba(169,120,34,.07),transparent 22%),linear-gradient(145deg,#fffaf2,#ece4d8);
    border-color: rgba(128,93,31,.22);
}
html[data-bs-theme="light"] .video-import-note p { color: #5d6970; }
html[data-bs-theme="light"] .video-bridge-section {
    background: linear-gradient(180deg,#ece4d8,#f4efe6);
    border-color: rgba(128,93,31,.14);
}
html[data-bs-theme="light"] .video-bridge-grid p { color: #5d6970; }
html[data-bs-theme="light"] .video-bridge-path > span {
    background: rgba(255,253,248,.72);
    border-color: rgba(128,93,31,.20);
    color: #34434b;
}
html[data-bs-theme="light"] .video-detail-page { background: #f4efe6; }
html[data-bs-theme="light"] .video-detail-header {
    background: radial-gradient(circle at 82% 12%,rgba(169,120,34,.10),transparent 32%),linear-gradient(180deg,#f7f2ea,#e9e1d5);
    border-bottom-color: rgba(128,93,31,.14);
}
html[data-bs-theme="light"] .video-detail-header::after { opacity: .12; }
html[data-bs-theme="light"] .video-detail-deck { color: #5c6970; }
/* The player itself remains dark by design. */
html[data-bs-theme="light"] .video-player-section { background: #eee7dc; }
html[data-bs-theme="light"] .related-content-section {
    background: linear-gradient(180deg,#f7f2ea,#eee7dc);
    border-top-color: rgba(128,93,31,.12);
}

/* About / author / contact */
html[data-bs-theme="light"] .project-manifesto,
html[data-bs-theme="light"] .project-pillars,
html[data-bs-theme="light"] .author-story,
html[data-bs-theme="light"] .contact-section { background: #f4efe6; }
html[data-bs-theme="light"] .manifesto-copy .lead { color: #34434b; }
html[data-bs-theme="light"] .manifesto-copy p,
html[data-bs-theme="light"] .project-scope p,
html[data-bs-theme="light"] .author-story-copy p,
html[data-bs-theme="light"] .author-bridge p,
html[data-bs-theme="light"] .contact-copy > p { color: #5d6970; }
html[data-bs-theme="light"] .project-pillar-grid article,
html[data-bs-theme="light"] .author-focus-grid article {
    background: linear-gradient(145deg,rgba(255,253,248,.96),rgba(238,231,220,.92));
    border-color: rgba(128,93,31,.18);
}
html[data-bs-theme="light"] .project-pillar-grid h3,
html[data-bs-theme="light"] .author-focus-grid h3 { color: #24333b; }
html[data-bs-theme="light"] .project-pillar-grid p,
html[data-bs-theme="light"] .author-focus-grid p { color: #5d6970; }
html[data-bs-theme="light"] .project-scope,
html[data-bs-theme="light"] .author-focus-section,
html[data-bs-theme="light"] .author-bridge {
    background: linear-gradient(180deg,#ece4d8,#f5f0e7);
    border-color: rgba(128,93,31,.13);
}
html[data-bs-theme="light"] .scope-paths a,
html[data-bs-theme="light"] .contact-channels a {
    background: linear-gradient(145deg,rgba(255,253,248,.94),rgba(238,231,220,.90));
    border-color: rgba(128,93,31,.17);
}
html[data-bs-theme="light"] .scope-paths strong,
html[data-bs-theme="light"] .contact-channels strong { color: #24333b; }
html[data-bs-theme="light"] .scope-paths small,
html[data-bs-theme="light"] .contact-channels small { color: #69767c; }
html[data-bs-theme="light"] .author-quote {
    background: linear-gradient(145deg,rgba(169,120,34,.06),rgba(255,253,248,.68));
    border-color: rgba(128,93,31,.18);
}
html[data-bs-theme="light"] .author-quote blockquote { color: #34434b; }

/* Legal/error */
html[data-bs-theme="light"] .legal-page {
    background: radial-gradient(circle at 80% 15%,rgba(169,120,34,.10),transparent 25%),var(--tr-bg);
}
html[data-bs-theme="light"] .legal-lead { color: #5d6970; }
html[data-bs-theme="light"] .legal-card {
    background: rgba(255,253,248,.82);
    border-color: rgba(128,93,31,.19);
}

/* Footer */
html[data-bs-theme="light"] .site-footer {
    background: #e9e1d5;
    border-top-color: rgba(128,93,31,.17);
}
html[data-bs-theme="light"] .footer-brand { color: #79500b; }
html[data-bs-theme="light"] .footer-brand span,
html[data-bs-theme="light"] .footer-links a { color: #647178; }
html[data-bs-theme="light"] .footer-links a:hover { color: #79500b; }
html[data-bs-theme="light"] .social-links a { color: #435159; }
html[data-bs-theme="light"] .footer-copy {
    border-top-color: rgba(77,64,42,.10);
    color: #7a858a;
}

@media (max-width: 991.98px) {
    .header-controls { align-items: flex-start; flex-wrap: wrap; margin-top: .65rem; }
    .language-switch { margin-top: 0; }
}

@media (max-width: 767.98px) {
    html[data-bs-theme="light"] .hero-vignette {
        background: linear-gradient(180deg,rgba(3,10,17,.22),rgba(3,10,17,.25) 48%,rgba(3,10,17,.84));
    }
}

/* Detail-page text that intentionally uses explicit dark-theme colors in site.css. */
html[data-bs-theme="light"] .back-link { color: #65737a; }
html[data-bs-theme="light"] .back-link:hover { color: #79500b; }
html[data-bs-theme="light"] .article-deck { color: #596870; }
html[data-bs-theme="light"] .article-next-links strong { color: #24333b; }
html[data-bs-theme="light"] .article-next-links span { color: #69767c; }

/* Dark media overlays remain dark in light mode so image captions stay readable. */
html[data-bs-theme="light"] .video-home-caption,
html[data-bs-theme="light"] .video-home-caption strong { color: #fff; }
html[data-bs-theme="light"] .video-home-caption small { color: #d4dade; }
html[data-bs-theme="light"] .video-home-play,
html[data-bs-theme="light"] .video-hub-play { background: rgba(5,16,25,.72); color: #f1ce81; }
html[data-bs-theme="light"] .video-home-visual:hover .video-home-play { color: #07131f; }
html[data-bs-theme="light"] .article-detail-visual-overlay span { background: rgba(3,10,17,.72); color: #f0d28f; }
html[data-bs-theme="light"] .article-detail-visual-overlay i { color: #f1d99f; }

/* Structured long-form article content (v0.16) */
html[data-bs-theme="light"] .article-section h2,
html[data-bs-theme="light"] .article-sources h2,
html[data-bs-theme="light"] .article-related h2 { color: #182a34; }
html[data-bs-theme="light"] .article-author-link { color: #52646e; }
html[data-bs-theme="light"] .article-author-link:hover { color: #80621f; }
html[data-bs-theme="light"] .article-callout {
    background: rgba(154, 117, 43, .07);
    border-left-color: rgba(154, 117, 43, .72);
    color: #4b3d20 !important;
}
html[data-bs-theme="light"] .article-list { color: #34434b; }
html[data-bs-theme="light"] .article-sources { border-top-color: rgba(154, 117, 43, .22); }
html[data-bs-theme="light"] .article-sources li { color: #52646e; }
html[data-bs-theme="light"] .article-sources a { color: #745718; }
html[data-bs-theme="light"] .article-related { border-top-color: rgba(154, 117, 43, .22); }
html[data-bs-theme="light"] .article-related li { color: #52646e; }
html[data-bs-theme="light"] .article-related a { color: #745718; }
html[data-bs-theme="light"] .article-related a:hover { color: #80621f; }

/* In-article explanatory visuals */
html[data-bs-theme="light"] .article-visual img {
    border-color: rgba(128,93,31,.24);
    box-shadow: 0 14px 34px rgba(62,46,22,.12);
}
html[data-bs-theme="light"] .article-visual figcaption { color: #637078; }
html[data-bs-theme="light"] .article-visual-credit { color: #7a8285; }
html[data-bs-theme="light"] .article-visual-credit a { color: #755719; }
html[data-bs-theme="light"] .article-visual-credit a:hover { color: #8b671c; }

/* v0.16.53 — light theme for curated video toolbar */
html[data-bs-theme="light"] .video-toolbar {
    background: rgba(255,253,248,.68);
    border-color: rgba(128,93,31,.16);
}
html[data-bs-theme="light"] .video-search input {
    background: #fffdf8;
    border-color: rgba(128,93,31,.20);
    color: #24343c;
}
html[data-bs-theme="light"] .video-search input::placeholder { color: #8a9599; }
html[data-bs-theme="light"] .video-filter-pill {
    background: rgba(255,253,248,.58);
    border-color: rgba(128,93,31,.18);
    color: #68757b;
}
html[data-bs-theme="light"] .video-filter-pill > span { background: rgba(169,120,34,.08); color: #87611e; }
html[data-bs-theme="light"] .video-filter-pill:hover,
html[data-bs-theme="light"] .video-filter-pill.active {
    background: rgba(169,120,34,.08);
    border-color: rgba(128,93,31,.38);
    color: #805b17;
}
html[data-bs-theme="light"] .video-results-summary { color: #748087; }
html[data-bs-theme="light"] .video-results-summary strong { color: #8b6219; }
html[data-bs-theme="light"] .video-meta { color: #78858b; }
html[data-bs-theme="light"] .video-meta span:first-child { color: #9a6b18; }
html[data-bs-theme="light"] .video-empty-state {
    background: radial-gradient(circle at 8% 50%,rgba(169,120,34,.07),transparent 22%),linear-gradient(145deg,#fffaf2,#ece4d8);
    border-color: rgba(128,93,31,.22);
}
html[data-bs-theme="light"] .video-empty-state p { color: #5d6970; }

/* v0.16.53 — expanded author/project narrative, light */
html[data-bs-theme="light"] .author-origin-section,
html[data-bs-theme="light"] .project-vision { background: #f4efe6; }
html[data-bs-theme="light"] .author-origin-copy { border-left-color: rgba(128,93,31,.22); background: linear-gradient(90deg,rgba(169,120,34,.04),transparent 72%); }
html[data-bs-theme="light"] .author-origin-copy p,
html[data-bs-theme="light"] .project-vision-grid > div:first-child > p { color: #56666e; }
html[data-bs-theme="light"] .project-vision-notes article { background: rgba(255,253,248,.72); border-color: rgba(128,93,31,.18); }
html[data-bs-theme="light"] .project-vision-notes strong { color: #24343c; }
html[data-bs-theme="light"] .project-vision-notes span { color: #647279; }

/* v0.16.69 — Explore topic cards: improved Light theme contrast */
html[data-bs-theme="light"] .explore-topic-card {
    border-color: rgba(112, 78, 22, .24);
    background: #f4eee4;
}

html[data-bs-theme="light"] .explore-topic-card::before {
    opacity: .28;
    filter: saturate(.88) contrast(.96);
}

html[data-bs-theme="light"] .explore-topic-card::after {
    background: linear-gradient(
        180deg,
        rgba(249, 246, 239, .34) 0%,
        rgba(247, 242, 233, .62) 38%,
        rgba(244, 238, 228, .90) 100%
    );
}

html[data-bs-theme="light"] .explore-topic-card h2 {
    color: #182a34;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
}

html[data-bs-theme="light"] .explore-topic-card > p {
    color: #3f4d55;
    font-weight: 500;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .62);
}

html[data-bs-theme="light"] .explore-topic-card ul {
    color: #34444c;
    background: rgba(255, 253, 248, .72);
    border-color: rgba(112, 78, 22, .18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24);
}

html[data-bs-theme="light"] .explore-topic-card > a {
    color: #704800;
}

html[data-bs-theme="light"] .explore-topic-card > a span {
    background: rgba(255, 252, 246, .84);
    border-color: rgba(112, 78, 22, .38);
    color: #684300;
}

/* Article inline citations / limited editorial markup (v0.16.100) */
html[data-bs-theme="light"] .article-detail-body strong { color: #25343c; }
html[data-bs-theme="light"] .article-inline-source { color: #745718; }
html[data-bs-theme="light"] .article-inline-source:hover,
html[data-bs-theme="light"] .article-inline-source:focus-visible { color: #5f4510; }

/* Knowledge paths -------------------------------------------------------- */
html[data-bs-theme="light"] .path-hero {
    background:
        radial-gradient(circle at 76% 35%,rgba(169,120,34,.12),transparent 24%),
        radial-gradient(circle at 22% 20%,rgba(75,118,145,.10),transparent 30%),
        linear-gradient(145deg,#f7f3eb,#e9e1d5 62%,#f4efe6);
}
html[data-bs-theme="light"] .path-hero-lead,
html[data-bs-theme="light"] .orientation-heading p,
html[data-bs-theme="light"] .orientation-card p,
html[data-bs-theme="light"] .route-content p,
html[data-bs-theme="light"] .core-stage-copy em,
html[data-bs-theme="light"] .action-path-panel p { color: #5c6a71; }
html[data-bs-theme="light"] .path-hero-map,
html[data-bs-theme="light"] .path-overview-panel,
html[data-bs-theme="light"] .orientation-card,
html[data-bs-theme="light"] .path-layer-card,
html[data-bs-theme="light"] .core-stage,
html[data-bs-theme="light"] .topic-path-card,
html[data-bs-theme="light"] .article-path-context,
html[data-bs-theme="light"] .article-core-nav-link,
html[data-bs-theme="light"] .resume-card {
    background: rgba(255,252,246,.74);
    border-color: rgba(128,93,31,.20);
    box-shadow: 0 15px 38px rgba(62,46,22,.08);
}
html[data-bs-theme="light"] .path-map-node,
html[data-bs-theme="light"] .route-index { background: #fbf7ef; }
html[data-bs-theme="light"] .start-resume-section,
html[data-bs-theme="light"] .path-layers-section,
html[data-bs-theme="light"] .core-path-section,
html[data-bs-theme="light"] .topic-path-section,
html[data-bs-theme="light"] .action-path-section,
html[data-bs-theme="light"] .essential-path-section { background: linear-gradient(180deg,#f4efe6,#eee7dc); }
html[data-bs-theme="light"] .route-content h3 a,
html[data-bs-theme="light"] .core-node-title,
html[data-bs-theme="light"] .article-core-nav-link strong { color: #26343c; }
html[data-bs-theme="light"] .overview-meter-bar,
html[data-bs-theme="light"] .article-path-meter { background: rgba(70,58,38,.10); }
html[data-bs-theme="light"] .library-orientation { background:rgba(255,252,246,.74); border-color:rgba(128,93,31,.20); }
html[data-bs-theme="light"] .library-orientation strong { color:#26343c; }
html[data-bs-theme="light"] .library-orientation p { color:#5e6a71; }
html[data-bs-theme="light"] .action-path-card { background:rgba(255,252,246,.62); border-color:rgba(128,93,31,.18); }
html[data-bs-theme="light"] .action-path-card strong { color:#26343c; }
html[data-bs-theme="light"] .selected-topic-path { background:rgba(169,120,34,.055); border-color:rgba(128,93,31,.22); }
