/* Shared reading styles. Method diagrams and question images retain their own styling. */
:root{--reading-ink:#263442;--reading-muted:#4c5967;--reading-line:#cbd3dc;--reading-link:#305c86;--reading-paper:#f5f6f7}
body{color:var(--reading-ink)}
body .site-nav{background:#f4f5f6;border-color:var(--reading-line)}
body .site-nav .wordmark,body .site-nav .nav-links a[aria-current=page]{color:#263c51}
body .site-nav .nav-links a{color:#4b5d6e}
body .site-nav .nav-links a[aria-current=page]{border-color:#385e82}
:where(.reading-page,.steering-page,.support-gallery-page,.inverse-page){background:var(--reading-paper);font-family:Inter,Arial,sans-serif;color:var(--reading-ink)}
:where(.reading-page,.steering-page,.support-gallery-page,.inverse-page) h1{font-family:Georgia,'Times New Roman',serif!important;font-size:clamp(32px,4vw,46px)!important;font-weight:400!important;line-height:1.18!important;letter-spacing:-.025em!important;color:var(--reading-ink)!important}
:where(.reading-page,.steering-page,.support-gallery-page,.inverse-page) h2{font-family:Georgia,'Times New Roman',serif;font-size:32px;font-weight:400;line-height:1.25;letter-spacing:-.02em;color:var(--reading-ink)}
:where(.reading-page,.steering-page,.support-gallery-page,.inverse-page) p{line-height:1.75}
:where(.reading-page,.steering-page,.support-gallery-page,.inverse-page) a{color:var(--reading-link)}
:where(.reading-page,.steering-page,.support-gallery-page,.inverse-page) .eyebrow{color:#5c6b7c;font-size:12px;letter-spacing:.06em}
.reading-page .reading-page-intro,.steering-page .steering-hero{background:#e8edf2;border-bottom:1px solid var(--reading-line);padding:36px 24px}
.reading-page-intro p,.steering-page .hero-deck,.support-gallery>header>p,.inverse-hero p{font-size:17px;line-height:1.75;color:var(--reading-muted);max-width:80ch}
.reading-page .paper-section,.steering-page .paper-section{background:#fafbfc;border-color:var(--reading-line);padding:44px 24px}
.reading-page .section-intro>p{font-size:17px;line-height:1.75;color:var(--reading-muted)}
.reading-page .section-intro .eyebrow{display:none}
.reading-page .section-intro h2{font-family:Georgia,serif;font-weight:400;font-size:32px;color:var(--reading-ink)}
.reading-page .result-study>h3{font-size:27px;line-height:1.3;color:var(--reading-ink)}
.reading-page .result-study>p{font-size:17px;color:var(--reading-muted);max-width:85ch}
.reading-page .paper-table caption{background:#e8edf2;color:#30445b}
.reading-page .paper-table thead th{background:#33465c;border-color:#596b7e;color:#fff}
.reading-page .paper-table tbody th{background:#e9edf2;color:#30445b}
.reading-page .paper-table tbody td{background:#fff;color:#344556}
.reading-page .paper-table tbody tr:nth-child(even) td{background:#f2f4f7}
.reading-page .paper-table td.delta-positive{background:#e5f0e9;color:#17613f}
.reading-page .paper-table td.delta-negative{background:#f5e6e2;color:#983c2d}
.reading-page .paper-table tr>:first-child{box-shadow:2px 0 0 #bbc6d3}
.steering-page .steering-hero-note{color:var(--reading-muted);border-color:#8498ae}
.steering-page .section-intro h2,.steering-page .section-intro>p{color:var(--reading-ink)}
.steering-page #masking{background:#e8edf2}
.steering-page .text-link,.steering-page .back-link{color:var(--reading-link)}
.support-gallery{padding-top:36px}
.support-gallery>header{max-width:900px}
.support-gallery .support-caveat{font-size:14px!important;line-height:1.75!important;color:#586675!important}
.inverse-page .inverse-wrap{padding-top:36px}
.inverse-hero{max-width:900px}
.inverse-context{border:0;padding:0;margin:26px 0;color:var(--reading-muted)}
.inverse-pipeline{gap:0;border-top:1px solid var(--reading-line);border-bottom:1px solid var(--reading-line)}
.inverse-pipeline span{background:transparent;border:0;color:#385b7b;font-size:14px;padding:14px 18px 14px 0}
.inverse-number,.inverse-flow{color:#385b7b}
.inverse-columns pre{border-radius:3px;background:#243547}
.inverse-taxonomy th{background:#e8edf2;color:#30445b}
.inverse-taxonomy td{font-size:14px;color:#405263}
.homepage #abstract{background:#e8edf2}
.homepage #abstract .paper-abstract,.homepage #abstract .title{color:#344556}
.homepage #motivation{background:#253b4d}
.homepage #motivation .section-intro h2{color:#f8f7f2}
.homepage #motivation .section-intro>p:not(.eyebrow),.homepage #motivation .motivation-body{color:#e0e6eb}
.homepage #motivation .section-intro .eyebrow::before{color:#a5b5c3}
.homepage .method-components{background:#e8edf2}
.homepage .method-components .components-intro h3,.homepage .note-description p,.homepage .components-intro>p:last-child{color:#344556}
.homepage .component-note{border-color:#c2cdd8}
.homepage .note-example{background:#f8f9fb;border-color:#9aabba}
.homepage .note-example p{color:#405263}
.homepage .results-nav a{background:#e4e9ef;border-color:#c5cfdb;color:#344f6a}
.homepage .external-summary{background:#edf1f5;border-color:#7f98b1}
.homepage .external-summary h4{color:#30445b}
.homepage #limitations{background:#e4e9ee}
.homepage #limitations :is(p,li){color:#405263}
.homepage .resources-section{background:#253b4d}
:where(a,button,summary):focus-visible{outline:3px solid #bc742e;outline-offset:3px}
@media(max-width:760px){
 :where(.reading-page,.steering-page,.support-gallery-page,.inverse-page) h2,.reading-page .section-intro h2{font-size:27px}
 .reading-page .paper-section,.steering-page .paper-section{padding:32px 20px}
 .reading-page .reading-page-intro,.steering-page .steering-hero{padding:28px 20px}
 .reading-page .result-study>p{font-size:16px}
 .inverse-taxonomy{display:block;overflow-x:auto;max-width:100%}
 .inverse-taxonomy :is(td,th){min-width:100px}
}

/* Consistent section hierarchy across the overview and reading pages. */
.homepage #abstract .title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(36px, 4.2vw, 54px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-transform: none;
  margin-bottom: 26px;
}
.gallery-page #questions-heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.025em;
}
.reading-page .result-study > h2 {
  font-size: 32px;
  line-height: 1.3;
  margin: 10px 0 22px;
}
.page-contents { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; }
.page-contents a { font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.inverse-example > header h3 { font: 400 28px/1.25 Georgia, serif; letter-spacing: -.02em; }
.steering-page .category-panel h3 { font: 400 28px/1.25 Georgia, serif; margin-bottom: 18px; }
@media (max-width: 760px) {
  .reading-page .result-study > h2 { font-size: 27px; }
  .inverse-example > header h3 { font-size: 25px; }
}

/* Shared accessibility and reading-page treatment. */
.skip-link{position:absolute;left:16px;top:-100px;z-index:1000;padding:10px 16px;background:white;color:var(--reading-ink)}
.skip-link:focus{top:12px}
body.inverse-page{background:var(--reading-paper)}
.inverse-page .inverse-wrap h2{font-weight:400;margin-top:36px;margin-bottom:18px}

/* Compact, consistently sized actions beneath the paper title. */
.question-first-hero .publication-links{display:flex;flex-wrap:nowrap;gap:8px;margin-top:22px}
.question-first-hero .publication-links .button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;height:44px;padding:0 11px;border:1px solid #cbd2dc;border-radius:9px;background:#fff;color:#344354;font-size:13px;font-weight:600;white-space:nowrap;box-shadow:0 1px 2px #263c5108;transition:background .15s,border-color .15s}
.question-first-hero .publication-links .button:hover{background:#edf1f7;border-color:#8999b0}
.question-first-hero .publication-links .hero-primary{background:#3d51b8;border-color:#3d51b8;color:white}
.question-first-hero .publication-links .hero-primary:hover{background:#304299;border-color:#304299}
.question-first-hero .publication-links .resource-icon{width:18px;height:18px;flex:0 0 18px}
@media(max-width:700px){
  .question-first-hero .publication-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:370px;margin:20px auto 0;gap:8px}
  .question-first-hero .publication-links .button{width:100%;padding:0 8px;font-size:12px;gap:6px}
  .filter-bar input,.filter-bar select{font-size:16px;min-height:46px}
  .filter-bar label>span{font-size:12px}
  .quiz-dialog .question-column blockquote,#dialog-question{font-size:16px;line-height:1.65}
  .quiz-navigation button,.sample-buttons button,.answer-controls button,.sample-controls>button{min-width:44px;min-height:44px}
  .quiz-dialog .question-column{padding:20px}
  .page-contents a,.results-nav a{min-height:44px;display:flex;align-items:center}
  .paper-details>summary,.inverse-columns summary{min-height:44px;display:list-item;padding-top:10px;padding-bottom:10px}
  .page-contents,.results-nav{gap:4px 16px}
  .resource-links a{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
}
@media(max-width:480px){
  .world-grid{grid-template-columns:minmax(0,1fr)}
  .world-card img{height:210px}
  .world-card h3{font-size:17px}
  .world-card .card-question{font-size:14px}
  .filter-bar{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:480px){
  .world-card{padding:14px}
  .world-card .card-title{font-size:17px;min-height:0;line-height:1.4;margin-bottom:8px}
  .world-card .card-type,.world-card .card-open{font-size:12px}
  .world-card .card-type{min-height:0;margin-bottom:10px}
  .quiz-toolbar{flex-wrap:wrap;gap:8px}
  .quiz-toolbar>span{font-size:12px}
  .quiz-navigation{margin-left:auto}
}
