/* Gallery spacing and a high-contrast light palette; dark presentation is unchanged. */
html[data-page="gallery"] main.container{padding-top:68px;padding-bottom:76px}
@media(max-width:950px){html[data-page="gallery"] main.container{padding-top:48px}}
@media(max-width:740px){html[data-page="gallery"] main.container{padding-top:37px;padding-bottom:54px}}
html[data-page="gallery"] #detail{scroll-margin-top:135px}
html[data-theme="light"]{
  color-scheme:light;
  --bg:#f3f7fa;--surface:#ffffff;--surface-2:#eef4f7;
  --panel:#f1f6f8;--panel2:#e6f0f2;--border:#bdced7;
  --fg:#183448;--text:#173248;--muted:#365567;
  --accent:#086556;--mint:#086556;--attention:#954315;
  --warm:#925213;--orange:#925213;--blue:#205f8c;
  --line:rgba(24,66,89,.24);
}
html[data-theme="light"] body{background:#f3f7fa;color:#183448}
html[data-theme="light"] .nav-links,html[data-theme="light"] .footer-links{color:#34576c}
html[data-theme="light"] header.site-header .brand-highlight{color:#086655}
html[data-theme="light"] header.site-header .brand-mark{border-color:#2f8474}
html[data-theme="light"] header.site-header .brand-mark span{background:#167866;box-shadow:none}
html[data-theme="light"] header.site-header .brand small{color:#385c70}
html[data-theme="light"] header.site-header .nav-links{color:#2d5267}
html[data-theme="light"] header.site-header .language-toggle,
html[data-theme="light"] header.site-header .theme-select,
html[data-theme="light"] header.site-header .header-github{color:#174555;border-color:#8eabb9;background:#fff}
html[data-theme="light"] header.site-header .theme-icon{color:#086655}
html[data-theme="light"] .hero-lede,
html[data-theme="light"] .section-heading>p,
html[data-theme="light"] .provenance p{color:#38596d}
html[data-theme="light"] .hero-footnote{color:#3c6171}
html[data-theme="light"] .eyebrow,html[data-theme="light"] .overline{color:#075e54}
html[data-theme="light"] .number>span{color:#38596a}
html[data-theme="light"] .section-heading h2 span{color:#4b687a}
html[data-theme="light"] .pipe-index,html[data-theme="light"] .cat-number{color:#39596a}
html[data-theme="light"] .pipe-step p{color:#37576a}
html[data-theme="light"] .category-card p{color:#37596c}
html[data-theme="light"] .gallery-cta{color:#38596a}
html[data-theme="light"] .gallery-cta a{color:#075f51}
html[data-theme="light"] .finding-row p{color:#36586a}
html[data-theme="light"] .resource-card p{color:#39596b}
html[data-theme="light"] .resource-kind{color:#385c6e}
html[data-theme="light"] .release-left p{color:#345d5b}
html[data-theme="light"] .sha-cards span{color:#3d6072}
html[data-theme="light"] .sha-cards code{color:#114e42}
html[data-theme="light"] .footer-brand span{color:#3c6173}
html[data-theme="light"] .footer-links{color:#36586b}
html[data-theme="light"] .footer-credit,html[data-theme="light"] .research-credit{color:#305365}
html[data-theme="light"] .finding-feature{background:radial-gradient(circle at 95% 5%,#387a7759,transparent 63%),#153639;border-color:#3f7a71}
html[data-theme="light"] .finding-feature h3,html[data-theme="light"] .finding-feature p,
html[data-theme="light"] .finding-feature-top,html[data-theme="light"] .finding-feature a{color:#eef9f5}
html[data-theme="light"] .finding-feature h3 span{color:#a3f3d9}
html[data-theme="light"] .finding-feature .finding-marker{color:#d5fff0;border-color:#76b7a3}
/* Gallery: fix inherited mint links and near-white text over light response cards. */
html[data-theme="light"] .header{background:linear-gradient(140deg,#e2f1ed,#f4f8fb);border-color:#b7cfd3}
html[data-theme="light"] .header h1,html[data-theme="light"] .detail-heading h2,
html[data-theme="light"] .section-intro h2{color:#15354a}
html[data-theme="light"] .subtitle{color:#355667}
html[data-theme="light"] .notice{color:#195247;background:#d9f0e7;border-left-color:#16846c}
html[data-theme="light"] .counter{background:#fff;border-color:#b6cdd2}
html[data-theme="light"] .counter strong{color:#17374a}
html[data-theme="light"] .counter span{color:#3e5e6f}
html[data-theme="light"] .controls .search,html[data-theme="light"] .controls select{
  background:#fff;color:#1a3e53;border-color:#94b1bc
}
html[data-theme="light"] .controls .search::placeholder{color:#536d7d;opacity:1}
html[data-theme="light"] .control-note,html[data-theme="light"] .section-count,
html[data-theme="light"] .section-intro p{color:#385a6d}
html[data-theme="light"] .group-tab{color:#1c4759;background:#fff;border-color:#b1cbd3}
html[data-theme="light"] .group-tab .count{color:#31596d;background:#e9f1f4}
html[data-theme="light"] .group-tab[aria-selected=true]{background:#d5efe6;color:#085846;border-color:#2b8b73}
html[data-theme="light"] .group-tab[aria-selected=true] .count{color:#125846;background:#b9dfd1}
html[data-theme="light"] .group-tab:disabled{opacity:.6}
html[data-theme="light"] .case-list,html[data-theme="light"] .case-detail{background:#fff;border-color:#b9ced6}
html[data-theme="light"] .case-list-title{color:#39596c}
html[data-theme="light"] .case-tile{color:#193c51}
html[data-theme="light"] .case-tile:hover{background:#e9f3f5}
html[data-theme="light"] .case-tile[aria-current=true]{background:#dcedeb;border-color:#3c957f}
html[data-theme="light"] .tile-id,html[data-theme="light"] .tiny-status:not(.verified_issue){color:#466578}
html[data-theme="light"] .tile-name{color:#15374c}
html[data-theme="light"] .tiny-status.material_divergence{color:#923b19}
html[data-theme="light"] .tiny-status.partial_equivalent{color:#86501b}
html[data-theme="light"] .tiny-status.core_equivalent{color:#08604b}
html[data-theme="light"] .detail-heading{background:#eef5f7;border-color:#bbd1d7}
html[data-theme="light"] .detail-sub,html[data-theme="light"] .small-note{color:#3b5b70}
html[data-theme="light"] .badge{color:#1c4455;background:#e7f1f4;border-color:#aac7ce}
html[data-theme="light"] .badge.material_divergence{color:#86351b;background:#fff0e8;border-color:#cc9278}
html[data-theme="light"] .badge.partial_equivalent{color:#794b13;background:#fff3da;border-color:#c4a169}
html[data-theme="light"] .badge.core_equivalent{color:#075d4b;background:#e0f4ed;border-color:#65b49f}
html[data-theme="light"] .detail-media{background:#e6eff3}
html[data-theme="light"] .detail-media figcaption{color:#3c5d6b}
html[data-theme="light"] .detail-text-only{color:#3b5d6a}
html[data-theme="light"] .outputs-head h3{color:#173b51}
html[data-theme="light"] .outputs-head span,html[data-theme="light"] .response-title small{color:#3c5d6d}
html[data-theme="light"] .response{color:#1b3d50;background:#f7fafb;border-color:#b7cdd7}
html[data-theme="light"] .response-title{border-color:#bfced8}
html[data-theme="light"] .response-title strong{color:#173d4c}
html[data-theme="light"] .response-body,html[data-theme="light"] .response-body p,
html[data-theme="light"] .response-body li{color:#1e3e50}
html[data-theme="light"] .response-body b,html[data-theme="light"] .response-body strong{color:#0c4f53}
html[data-theme="light"] .prompt-disclosure summary{color:#075f51}
html[data-theme="light"] .prompt-disclosure pre{color:#26485d;background:#eaf1f5}
html[data-theme="light"] .meta-footer{color:#39596c;border-color:#c3d5da}
html[data-theme="light"] .review-panel{background:#dcf1ea;border-color:#96c7b7}
html[data-theme="light"] .review-panel p,html[data-theme="light"] .review-panel strong{color:#1a544b}
html[data-theme="light"] .review-reference summary{color:#075948}
html[data-theme="light"] .footer{color:#35596b;background:#eaf2f5;border-color:#bacfd6}
html[data-theme="light"] .download-links a{color:#075f51}
html[data-theme="light"] .verified-issue.case-tile{color:#66321b;background:#fff0e6;border-color:#bd7e54}
html[data-theme="light"] .tiny-status.verified_issue{color:#893d18}
html[data-theme="light"] .badge.verified_issue{color:#893d18;background:#fff0e4;border-color:#bd7a4d}
html[data-theme="light"] .verified-issue-banner{background:#fff2e8;color:#66371d;border-color:#d09a71}
html[data-theme="light"] .verified-issue-banner h3{color:#843911}
html[data-theme="light"] .verified-issue-banner p,
html[data-theme="light"] .verified-issue-banner .issue-reference{color:#654022}
html[data-theme="light"] .finding-quick-filter{color:#823919;background:#fff1e7;border-color:#bf875f}
html[data-theme="light"] .finding-quick-filter:hover{background:#ffe3cb}
html[data-theme="light"] .empty{color:#3f5f72;border-color:#a9c3cd}
