/* Journal-first presentation; existing article content and styles remain in place. */
.journal-site-header,html[data-theme="dark"] .journal-site-header,html:not([data-theme="dark"]) .journal-site-header{background:#f8f9fa;color:#152c3b;border-bottom:1px solid #d8dedf}
.journal-header-inner{position:relative;display:flex;justify-content:center;align-items:center;padding-top:18px;padding-bottom:8px;min-height:0}
.journal-home-link{display:block;width:min(100%,720px);line-height:0}
.journal-header-masthead{display:block;width:100%;height:auto}
.journal-header-inner .theme-toggle{position:absolute;right:40px;top:22px;color:#152c3b;border-color:#9aaeb9}
.journal-header-inner .theme-toggle:hover,html[data-theme="dark"] .journal-header-inner .theme-toggle:hover{background:#e8eff3}
.journal-main-nav,html:not([data-theme="dark"]) header .journal-main-nav{display:flex;justify-content:center;gap:clamp(16px,4vw,48px);padding-top:8px;padding-bottom:16px;border-top:1px solid #d8dedf;font-size:14px;font-weight:600;color:#152c3b}
.journal-main-nav a{padding:5px 0;white-space:nowrap}
.journal-main-nav a:hover,html:not([data-theme="dark"]) header .journal-main-nav a:hover{color:#467a9b}
body:not(:has(.journal-home-intro)) .journal-home-link{width:min(100%,470px)}
body:not(:has(.journal-home-intro)) .journal-header-inner{padding-top:8px;padding-bottom:2px}
.journal-home-intro{padding:32px 0 46px;border-bottom:1px solid var(--line)}
.journal-home-intro .journal-summary{margin:0 auto 24px;text-align:center}
.journal-stories{padding:58px 0 62px}
.journal-browse{display:flex;flex-wrap:wrap;gap:10px 28px;margin:30px 0 0}
.journal-services-note{border-top:1px solid var(--line);padding:46px 0 55px}
.journal-services-note .wrap{max-width:850px}
.journal-services-note h2{margin-bottom:14px}
.journal-services-note p:not(.eyebrow){max-width:720px}
.research-wordmark{display:block;width:min(100%,590px);height:auto;margin:0 0 42px}
.research-services .intro{max-width:720px}
.private-investigations,.consultation{border-top:1px solid var(--line);padding-top:8px;margin-top:52px}
.research-services .private-investigations h2,.research-services .consultation h2{margin-top:20px}
.editorial-independence{border-top:1px solid var(--line);padding-top:22px;margin-top:45px}
@media(max-width:680px){
 .journal-header-inner{padding:14px 16px 8px;display:block}
 .journal-home-link,body:not(:has(.journal-home-intro)) .journal-home-link{width:100%;max-width:520px;margin:auto}
 .journal-header-inner .theme-toggle{position:static;margin:7px auto 0;width:34px;height:34px;display:grid}
 .journal-header-inner .theme-toggle[hidden]{display:none}
 .journal-main-nav,html:not([data-theme="dark"]) header .journal-main-nav{padding:9px 16px 13px;gap:6px 17px;font-size:12px;flex-wrap:wrap}
 .journal-home-intro{padding:22px 0 34px}
 .journal-home-intro .journal-summary{font-size:17px}
 .journal-stories{padding:40px 0}
 .research-wordmark{margin-bottom:30px}
}
html:not([data-theme="dark"]) .journal-site-header .theme-toggle,html[data-theme="dark"] .journal-site-header .theme-toggle{color:#152c3b;border-color:#9aaeb9}

.research-site-header,html[data-theme="dark"] .research-site-header,html:not([data-theme="dark"]) .research-site-header{background:#f8f9fa}
.research-site-header .research-home-link{width:min(100%,570px)}
.research-header-wordmark{display:block;width:100%;height:auto}
@media(max-width:680px){.research-site-header .research-home-link{width:100%;max-width:520px}}

/* Compact navigation on interior pages; homepage masthead stays unchanged. */
.interior-site-header .interior-header-bar{display:flex;align-items:center;gap:clamp(12px,2vw,24px);padding-top:12px;padding-bottom:12px;min-height:64px}
.interior-site-header .interior-main-nav,html:not([data-theme="dark"]) .interior-site-header .interior-main-nav{flex:1;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px clamp(14px,3vw,38px);padding:0;border:0;font-size:14px}
.interior-site-header .theme-toggle{position:static;flex:none;color:#152c3b;border-color:#9aaeb9}
.interior-site-header .theme-toggle:hover,html[data-theme="dark"] .interior-site-header .theme-toggle:hover{background:#e8eff3}
.research-services .research-wordmark{width:min(100%,420px);margin-bottom:34px}
@media(max-width:600px){.interior-site-header .interior-header-bar{min-height:58px;padding:9px 16px;gap:10px}.interior-site-header .interior-main-nav,html:not([data-theme="dark"]) .interior-site-header .interior-main-nav{justify-content:flex-start;gap:2px 14px;font-size:12px}.interior-site-header .theme-toggle{width:34px;height:34px;flex-basis:34px}.research-services .research-wordmark{width:min(100%,340px)}}

.research-wordmark-dark{display:none}
html[data-theme="dark"] .research-wordmark-light{display:none}
html[data-theme="dark"] .research-wordmark-dark{display:block}
@media(max-width:360px){.interior-site-header .interior-main-nav,html:not([data-theme="dark"]) .interior-site-header .interior-main-nav{display:grid;grid-template-columns:max-content max-content;column-gap:16px;row-gap:2px;justify-content:start}}

/* Keep interior page headings close to the text they introduce. */
main>section .reading :is(h1,h2,h3){margin-bottom:0}
main>section .reading :is(h1,h2,h3)+p{margin-top:8px}
/* Balance spacing between sections after tightening heading-to-body gaps. */
main>section .reading h2{margin-top:32px}
main>section .reading h3{margin-top:24px}
@media(max-width:600px){main>section .reading h2{margin-top:26px}main>section .reading h3{margin-top:20px}}
/* The founder portrait follows a heading rather than a paragraph. */
main>section .reading h2+.founder-profile{margin-top:18px}
@media(max-width:680px){main>section .founder-profile figure{width:min(100%,220px);max-width:220px;margin-inline:auto}}
/* Keep the founder portrait secondary to the biography. */
main>section .founder-profile{grid-template-columns:160px minmax(0,1fr);gap:28px}
main>section .founder-profile figure{max-width:160px}
@media(max-width:680px){main>section .founder-profile{grid-template-columns:1fr}main>section .founder-profile figure{width:min(100%,170px);max-width:170px;margin-inline:auto}}
/* Align the founder name with the top edge of the portrait. */
main>section .reading .founder-profile h3{margin-top:0}

/* Use the approved Journal masthead on editorial category pages. */
body:not(:has(.journal-home-intro)) .journal-category-header .journal-home-link{width:min(100%,720px)}
body:not(:has(.journal-home-intro)) .journal-category-header .journal-header-inner{padding-top:18px;padding-bottom:8px}
@media(max-width:680px){body:not(:has(.journal-home-intro)) .journal-category-header .journal-home-link{width:100%;max-width:520px}body:not(:has(.journal-home-intro)) .journal-category-header .journal-header-inner{padding:14px 16px 8px}}
