/* ATSP Structured Discovery 1.0.0 */
:root {
  --midnight: #0B1F33;
  --teal: #00776F;
  --knowledge-blue: #315F7D;
  --signal-gold: #D5A62E;
  --paper: #F7F8F5;
  --ink: #17212B;
  --slate: #52616B;
  --mist: #E7ECEF;
  --editorial-tint: #EEF5F8;
  --editorial-tint-alt: #E7F0F4;
  --white: #FFFFFF;
  --link: #005EA8;
  --success: #147D64;
  --warning: #925400;
  --critical: #B42318;
  --title-hero: clamp(2rem, 2.8vw, 2.25rem);
  --title-section: clamp(1.35rem, 1.7vw, 1.5rem);
  --title-page: clamp(1.75rem, 2.5vw, 2rem);
  --measure: 76ch;
  --content: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.6 "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
}
body:has(dialog[open]) { overflow: hidden; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
button, input, select, textarea { font: inherit; }
button, .button { min-height: 44px; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 14px;
  background: var(--white); color: var(--midnight); transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--signal-gold); outline-offset: 3px; }

.news-bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: stretch;
  min-height: 38px; background: var(--teal); color: var(--white); font-size: .83rem;
}
.news-bar > strong { display: grid; place-items: center; padding: 0 22px; background: var(--midnight); text-transform: uppercase; letter-spacing: .09em; }
.news-window { overflow: hidden; display: flex; align-items: center; }
.news-track { display: flex; width: max-content; animation: news-scroll 32s linear infinite; }
.news-track a { color: var(--white); text-decoration: none; padding: 7px 38px; white-space: nowrap; }
.news-track a::after { content: "◆"; color: var(--signal-gold); margin-left: 38px; font-size: .65em; }
.news-bar:hover .news-track, .news-bar:focus-within .news-track, .news-bar[data-paused="true"] .news-track { animation-play-state: paused; }
.news-bar button { min-height: 38px; border: 0; border-left: 1px solid rgba(255,255,255,.35); padding: 0 18px; background: var(--teal); color: var(--white); }
@keyframes news-scroll { to { transform: translateX(-45%); } }

.site-header { position: relative; z-index: 20; background: var(--midnight); color: var(--white); border-bottom: 3px solid var(--teal); }
.utility, .masthead { max-width: var(--content); margin: 0 auto; }
.utility { display: flex; justify-content: space-between; align-items: center; min-height: 34px; padding: 0 24px; color: #bed0d8; font-size: .72rem; letter-spacing: .06em; }
.utility nav { display: flex; gap: 22px; }
.utility a { color: inherit; text-decoration: none; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 20px 24px; border-top: 1px solid #263f53; }
.publisher-brand { display: flex; align-items: center; gap: 13px; color: var(--white); text-decoration: none; flex: 0 0 auto; }
.publisher-mark { width: 42px; height: 42px; }
.publisher-mark path { fill: none; stroke: currentColor; stroke-width: 2.5; }
.publisher-mark circle { fill: var(--signal-gold); }
.publisher-brand strong { display: block; font: 700 1.35rem/1.1 Georgia, "Source Serif 4", serif; }
.publisher-brand small { display: block; margin-top: 5px; color: #afc4cd; font-size: .65rem; letter-spacing: .13em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.primary-nav > a { color: var(--white); text-decoration: none; font-weight: 700; font-size: .86rem; }
.primary-nav form { display: flex; border: 1px solid #486173; }
.primary-nav input { width: 116px; border: 0; padding: 8px 9px; background: #132d42; color: var(--white); }
.primary-nav form button { min-height: 36px; border: 0; background: #25465d; color: var(--white); padding: 0 9px; }
.menu-toggle { display: none; border: 1px solid #5d7585; background: transparent; color: var(--white); padding: 8px 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 11px 17px; border: 2px solid var(--teal); border-radius: 2px; background: var(--teal); color: var(--white) !important; text-decoration: none; font-weight: 800; line-height: 1.2; }
.button:hover { background: var(--midnight); border-color: var(--midnight); }
.button.secondary { color: var(--midnight) !important; background: transparent; border-color: var(--midnight); }
.button.secondary:hover { color: var(--white) !important; background: var(--midnight); }

.hero-carousel { background: var(--white); border-bottom: 1px solid var(--mist); }
.slides { max-width: var(--content); margin: 0 auto; }
.hero-slide { min-height: 380px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(270px, .75fr); gap: 48px; align-items: center; padding: 42px 24px 30px; }
.js .hero-slide[aria-hidden="true"] { display: none; }
.eyebrow { margin: 0 0 14px; color: var(--teal); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { color: var(--midnight); font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif; }
.hero-slide h1, .hero-slide h2 { max-width: 720px; margin: 0; font-size: var(--title-hero); line-height: 1.08; letter-spacing: -.018em; }
.hero-lead { max-width: 660px; margin: 18px 0 22px; color: var(--slate); font-size: 1.05rem; }
.actions, .dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.evidence-graphic { aspect-ratio: 1 / 1; position: relative; display: grid; place-items: center; overflow: hidden; background: var(--midnight); color: var(--white); border: 10px solid var(--mist); }
.evidence-graphic::before, .evidence-graphic::after { content: ""; position: absolute; border: 1px solid #476278; width: 62%; height: 62%; }
.evidence-graphic::after { width: 38%; height: 38%; }
.evidence-graphic > span { position: absolute; top: 18px; left: 18px; font: .72rem "IBM Plex Mono", monospace; color: #a8bfca; }
.evidence-graphic i { width: 58%; height: 2px; background: var(--signal-gold); transform: rotate(-35deg); }
.evidence-graphic b { position: absolute; right: 20%; top: 23%; width: 18px; height: 18px; border-radius: 50%; background: var(--signal-gold); }
.evidence-graphic em { position: absolute; left: 18%; bottom: 24%; width: 11px; height: 11px; border-radius: 50%; background: var(--teal); }
.evidence-graphic small { position: absolute; left: 18px; bottom: 17px; right: 18px; color: #c3d1d8; font-size: .72rem; font-style: normal; text-transform: uppercase; letter-spacing: .08em; }
.hero-controls { max-width: var(--content); margin: 0 auto; padding: 0 24px 26px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.hero-controls button { width: 44px; border: 1px solid #afbec4; background: var(--white); color: var(--midnight); }
.hero-controls [aria-current="true"] { background: var(--midnight); color: var(--white); }

.discover { background: var(--editorial-tint); color: var(--ink); display: grid; grid-template-columns: 1fr 1.25fr; gap: 42px; align-items: end; padding: 44px max(24px, calc((100vw - var(--content))/2 + 24px)); border-block: 1px solid #d5e2e7; }
.discover h2, .trust h2 { margin: 0; color: var(--midnight); font-size: var(--title-section); line-height: 1.18; letter-spacing: -.01em; }
.discover p { max-width: 620px; color: var(--slate); }
.discover label { display: block; margin-bottom: 8px; font-weight: 700; }
.discover form > div, .research-search > div { display: flex; }
.discover input, .research-search input { min-width: 0; flex: 1; min-height: 50px; border: 1px solid #aabcc5; padding: 12px 14px; background: var(--white); color: var(--ink); }
.discover form > div { box-shadow: 0 8px 22px rgba(11,31,51,.07); }
.discover output { display: block; min-height: 24px; margin-top: 5px; color: var(--slate); }

.section, .page-content { max-width: var(--content); margin: 0 auto; padding: 50px 24px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 24px; padding-bottom: 15px; border-bottom: 1px solid #cbd5d9; }
.section-head h2 { margin: 0; font-size: var(--title-section); line-height: 1.2; letter-spacing: -.01em; }
.section-head p { max-width: 680px; margin: 7px 0 0; color: var(--slate); }
.text-link { font-weight: 800; }
.journal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2vw, 30px); min-height: 545px; }
[data-module="all-journals"][data-count="1"] .journal-grid,
[data-module="all-journals"][data-count="2"] .journal-grid,
[data-module="all-journals"][data-count="3"] .journal-grid { min-height: 0; }
.journal-card { min-width: 0; }
.journal-cover { aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; background: var(--midnight); color: var(--white); text-decoration: none; border-top: 8px solid var(--accent, var(--teal)); }
.journal-cover > span { color: #b7c7cf; font-size: .67rem; letter-spacing: .12em; }
.journal-cover > strong { max-width: 12ch; font: 700 clamp(1.15rem, 1.5vw, 1.4rem)/1.15 "IBM Plex Sans", "Segoe UI", Arial, sans-serif; }
.journal-cover > i { width: 60%; height: 3px; background: var(--signal-gold); }
.journal-cover > small { color: #b7c7cf; font-size: .64rem; }
.journal-card h3 { margin: 7px 0 5px; font-size: 1.125rem; line-height: 1.25; }
.journal-card h3 a { color: var(--midnight); }
.journal-card p { margin: 8px 0; }
.state { display: inline-block; padding: 4px 7px; border: 1px solid currentColor; font: 700 .7rem "IBM Plex Mono", monospace; text-transform: uppercase; }
.state.pending { color: var(--warning); }
.state.ok { color: var(--success); }
.state.blocked { color: var(--critical); }
.metadata-line { color: var(--slate); font: .76rem "IBM Plex Mono", monospace; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 30px; }
.pager button { border: 1px solid #9baeb7; background: var(--white); color: var(--midnight); padding: 8px 14px; }
.pager button:disabled { cursor: not-allowed; opacity: .5; }

.brands { background: var(--white); max-width: none; padding-left: max(24px, calc((100vw - var(--content))/2 + 24px)); padding-right: max(24px, calc((100vw - var(--content))/2 + 24px)); }
.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.brand-card { grid-column: span 2; min-height: 190px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 15px; align-items: start; padding: 24px; color: var(--midnight); background: var(--paper); border: 1px solid #ced8dc; text-decoration: none; }
.brand-card:nth-last-child(-n+2):nth-child(n+4) { grid-column: span 3; }
.brand-monogram { width: 56px; height: 56px; display: grid; place-items: center; border: 2px solid var(--teal); color: var(--teal); font: 700 .75rem "IBM Plex Mono", monospace; }
.brand-card strong, .brand-card small { display: block; }
.brand-card strong { font: 700 1.05rem/1.25 "IBM Plex Sans", "Segoe UI", Arial, sans-serif; }
.brand-card small { margin-top: 7px; color: var(--slate); }
.brand-card em { grid-column: 1 / -1; color: var(--warning); font: 700 .7rem "IBM Plex Mono", monospace; font-style: normal; text-transform: uppercase; }

.article-list { border-top: 3px solid var(--midnight); }
.article-record { display: grid; grid-template-columns: 170px 1fr; gap: 30px; padding: 25px 0; border-bottom: 1px solid #cad4d8; }
.article-record h3 { margin: 0; font-size: 1.125rem; line-height: 1.3; }
.empty-state { display: grid; grid-template-columns: 130px 1fr; gap: 30px; align-items: center; padding: 35px; background: var(--mist); }
.empty-symbol { width: 110px; height: 110px; display: grid; place-items: center; border: 2px solid var(--teal); color: var(--teal); font: 700 3.4rem Georgia, serif; }
.empty-state h2, .empty-state h3 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.3; }
.empty-state p { max-width: 760px; }

.trust { padding: 50px max(24px, calc((100vw - var(--content))/2 + 24px)); background: var(--editorial-tint-alt); color: var(--ink); display: grid; grid-template-columns: .8fr 1.2fr; gap: 46px; border-block: 1px solid #cfdee5; }
.trust > div > p:not(.eyebrow) { max-width: 520px; color: var(--slate); }
.trust-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trust-links a { display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; padding: 22px; background: var(--white); color: var(--midnight); text-decoration: none; border: 1px solid #c7d6dd; border-top: 3px solid var(--teal); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.trust-links a:hover { border-color: #87a7b5; box-shadow: 0 9px 24px rgba(11,31,51,.08); transform: translateY(-2px); }
.trust-links span { color: var(--slate); font-size: .88rem; }

.site-footer { background: #071827; color: #b9c9d0; }
.footer-main { max-width: var(--content); margin: 0 auto; display: grid; grid-template-columns: 1.3fr repeat(3, 1fr) 1.4fr; gap: 32px; padding: 58px 24px; }
.footer-main h2 { margin: 0 0 14px; color: var(--white); font: 700 1rem "IBM Plex Sans", sans-serif; }
.footer-main nav a { display: block; margin: 8px 0; color: #cad7dc; text-decoration: none; font-size: .88rem; }
.footer-brand .publisher-mark { color: var(--white); }
.footer-brand p, .newsletter p { font-size: .86rem; }
.site-footer .button.secondary { border-color: #7591a0; color: var(--white) !important; }
.footer-legal { border-top: 1px solid #2b4253; padding: 24px max(24px, calc((100vw - var(--content))/2 + 24px)); display: grid; grid-template-columns: 1.5fr 1fr; gap: 15px 35px; font-size: .78rem; }
.footer-legal p { margin: 0; }
.footer-legal nav { text-align: right; }
.footer-legal a { margin-left: 18px; color: #d4dfe3; }

.floating-utilities { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.floating-utilities button { border: 0; box-shadow: 0 5px 18px rgba(0,0,0,.22); font-weight: 800; }
.back-to-top { width: 46px; background: var(--white); color: var(--midnight); }
.contact-launcher { padding: 0 18px; background: var(--teal); color: var(--white); }
.contact-dialog { width: min(560px, calc(100vw - 32px)); border: 0; border-top: 6px solid var(--teal); padding: 32px; color: var(--ink); background: var(--white); box-shadow: 0 22px 60px rgba(0,0,0,.35); }
.contact-dialog::backdrop { background: rgba(5,20,32,.7); }
.contact-dialog h2 { margin-top: 0; font-size: 1.5rem; line-height: 1.25; }
.dialog-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: var(--midnight); font-size: 1.8rem; }
.small { color: var(--slate); font-size: .8rem; }

.page-hero { padding: 40px max(24px, calc((100vw - var(--content))/2 + 24px)); background: var(--mist); border-bottom: 1px solid #c5d1d6; }
.page-hero h1 { max-width: 900px; margin: 9px 0; font-size: var(--title-page); line-height: 1.1; letter-spacing: -.015em; }
.page-hero > p:last-child { max-width: 760px; margin: 14px 0 0; color: var(--slate); font-size: 1.12rem; }
.breadcrumbs { display: flex; gap: 8px; margin-bottom: 20px; color: var(--slate); font-size: .82rem; }
.page-content { min-height: 420px; }
.page-content > * { max-width: var(--measure); }
.page-content > .split, .page-content > .link-grid, .page-content > .steps, .page-content > .status-table, .page-content > .journal-grid, .page-content > .journal-profile { max-width: none; }
.lead { max-width: 760px; font: 400 1.1rem/1.6 "IBM Plex Sans", "Segoe UI", Arial, sans-serif; color: #263640; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 34px; }
.split section { padding-top: 16px; border-top: 3px solid var(--teal); }
.link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 30px; }
.link-grid a { min-height: 125px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid #c6d2d7; background: var(--white); color: var(--midnight); text-decoration: none; }
.link-grid span { color: var(--slate); }
.check-list { padding-left: 24px; }
.check-list li { margin: 12px 0; padding-left: 5px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.steps article { padding: 22px; border-top: 4px solid var(--teal); background: var(--white); }
.steps b { color: var(--teal); font: 700 .78rem "IBM Plex Mono", monospace; }
.status-banner, .notice { max-width: none; padding: 20px 22px; border-left: 5px solid var(--warning); background: #f3ead3; }
.status-banner strong, .status-banner span { display: block; }
.status-banner.neutral { border-color: var(--knowledge-blue); background: var(--mist); }
.status-table { margin: 26px 0; border-top: 3px solid var(--midnight); }
.status-table > div { display: grid; grid-template-columns: minmax(200px, 1fr) 1fr; gap: 20px; padding: 15px 10px; border-bottom: 1px solid #cbd4d8; }
.metadata { border-top: 3px solid var(--midnight); }
.metadata div { display: grid; grid-template-columns: 210px 1fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid #d1dade; }
.metadata dt { font-weight: 700; }
.metadata dd { margin: 0; }
.journal-profile { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 55px; align-items: start; }
.journal-cover.large { width: 100%; }
.research-search { max-width: 800px; margin-bottom: 35px; }
.research-search label { display: block; margin-bottom: 8px; font-weight: 800; }
.research-search output { display: block; min-height: 24px; margin-top: 5px; }

@media (max-width: 1040px) {
  .primary-nav { gap: 12px; }
  .primary-nav form { display: none; }
  .journal-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: repeat(3, 1fr); }
  .footer-brand, .newsletter { grid-column: span 3; }
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .utility nav { display: none; }
  .masthead { flex-wrap: wrap; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; width: 100%; align-items: stretch; flex-direction: column; padding-top: 12px; }
  .primary-nav[data-open="true"] { display: flex; }
  .primary-nav > a { padding: 8px 0; }
  .hero-slide { grid-template-columns: 1fr; gap: 30px; padding-top: 42px; }
  .evidence-graphic { max-width: 430px; }
  .discover, .trust { grid-template-columns: 1fr; gap: 25px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-card, .brand-card:nth-last-child(-n+2):nth-child(n+4) { grid-column: span 1; }
  .trust-links { grid-template-columns: 1fr; border: 0; }
  .trust-links a { min-height: 120px; border: 1px solid #6f91a6; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .footer-brand, .newsletter { grid-column: span 2; }
  .footer-legal { grid-template-columns: 1fr; }
  .footer-legal nav { text-align: left; }
  .footer-legal a { margin: 0 14px 0 0; }
  .split, .steps, .journal-profile { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .news-bar { grid-template-columns: auto 1fr auto; }
  .news-bar > strong { padding: 0 10px; }
  .news-track a { padding: 7px 15px; }
  .news-track a::after { margin-left: 15px; }
  .publisher-brand strong { font-size: 1.05rem; }
  .publisher-mark { width: 36px; height: 36px; }
  .hero-slide h1, .hero-slide h2 { font-size: 1.875rem; }
  .hero-controls { justify-content: center; }
  .discover { padding-top: 34px; padding-bottom: 34px; }
  .section, .page-content { padding: 48px 22px; }
  .section-head { align-items: start; flex-direction: column; }
  .journal-grid, .brand-grid, .link-grid { grid-template-columns: 1fr; }
  .empty-state { grid-template-columns: 1fr; padding: 25px; }
  .empty-symbol { width: 82px; height: 82px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand, .newsletter { grid-column: span 1; }
  .status-table > div, .metadata div { grid-template-columns: 1fr; gap: 2px; }
  .floating-utilities { right: 10px; bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .news-window { overflow-x: auto; }
  .news-track { animation: none; }
}

@media print {
  .news-bar, .site-header, .floating-utilities, .hero-controls, .contact-dialog, .site-footer { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 8pt; }
  .page-hero, .section, .page-content, .hero-slide { padding: 12mm 0; background: #fff; }
  .hero-slide { min-height: 0; display: block !important; page-break-after: always; }
  .evidence-graphic { display: none; }
}
