
:root {
  --ink: #132333;
  --navy: #17324d;
  --navy-2: #244b6d;
  --gold: #c9a85d;
  --cream: #f7f1e5;
  --paper: #fffdf8;
  --muted: #65717b;
  --line: #d8d1c4;
  --good: #276749;
  --shadow: 0 14px 40px rgba(19,35,51,.12);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}
a { color: var(--navy-2); text-underline-offset: .18em; }
a:hover { color: #0b2237; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: .8rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }
.site-header { background: var(--navy); color: white; border-bottom: 4px solid var(--gold); }
.header-inner { max-width: 1180px; margin: 0 auto; padding: 1rem 1.3rem; display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .75rem; color: white; text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.brand img { width: 38px; height: 38px; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: 0; padding: 0; }
nav a { color: #f6f0e3; text-decoration: none; font-weight: 650; font-size: .94rem; }
nav a:hover, nav a[aria-current="page"] { color: white; text-decoration: underline; }
main { min-height: 68vh; }
.container { max-width: 1120px; margin: 0 auto; padding: 3.2rem 1.3rem; }
.narrow { max-width: 860px; }
.hero { background: linear-gradient(135deg, var(--navy) 0%, #204866 60%, #315f79 100%); color: white; }
.hero .container { padding-top: 4.8rem; padding-bottom: 4.8rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800; color: var(--gold); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 6vw, 5.2rem); max-width: 16ch; margin: .7rem 0 1rem; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.8rem); margin-top: 2.5rem; }
h3 { font-size: 1.28rem; }
.lead { font-size: clamp(1.08rem, 2.1vw, 1.34rem); max-width: 70ch; color: #edf3f6; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .65rem 1.4rem; margin-top: 1.4rem; color: #dbe7ec; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .72rem 1.05rem; border-radius: 999px; text-decoration: none; font-weight: 760; border: 1px solid transparent; cursor: pointer; font: inherit; }
.button.primary { background: var(--gold); color: #152637; }
.button.secondary { background: white; color: var(--navy); }
.button.outline { border-color: #b9c7d0; color: var(--navy); background: transparent; }
.button.dark { background: var(--navy); color: white; }
.button:hover { filter: brightness(.97); transform: translateY(-1px); }
.grid { display: grid; gap: 1.25rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; box-shadow: 0 5px 18px rgba(19,35,51,.06); }
.card h3 { margin-top: .25rem; }
.card p:last-child { margin-bottom: 0; }
.publication-card { display: grid; grid-template-columns: minmax(190px, 310px) 1fr; gap: 2rem; align-items: start; }
.cover { background: #eee6d7; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid #b9b0a1; }
.cover img { display: block; width: 100%; height: auto; }
.badge { display: inline-block; padding: .22rem .58rem; border-radius: 999px; background: #e9f3ee; color: var(--good); font-weight: 800; font-size: .78rem; letter-spacing: .03em; }
.notice { border-left: 5px solid var(--gold); background: var(--cream); padding: 1rem 1.15rem; border-radius: 0 12px 12px 0; }
.status-box { border: 2px solid var(--navy); border-radius: 14px; overflow: hidden; margin: 1.2rem 0; }
.status-box .label { background: var(--navy); color: white; font-weight: 850; padding: .55rem .85rem; }
.status-box .content { padding: 1rem; }
.evidence-ladder { display: grid; grid-template-columns: repeat(7, minmax(95px, 1fr)); gap: .45rem; margin: 1.3rem 0; align-items: stretch; }
.evidence-ladder span { background: var(--cream); border: 1px solid var(--line); padding: .75rem .55rem; text-align: center; border-radius: 10px; font-weight: 750; font-size: .86rem; position: relative; }
.evidence-ladder span:not(:last-child)::after { content: "→"; position: absolute; right: -.42rem; top: 50%; transform: translateY(-50%); color: var(--navy); background: var(--paper); padding: 0 .05rem; font-weight: 900; }
.meta-list { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; }
.meta-list dt { font-weight: 800; }
.meta-list dd { margin: 0; }
.download-list { display: grid; gap: .7rem; }
.download-item { display: flex; gap: 1rem; justify-content: space-between; align-items: center; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.download-item small { color: var(--muted); display: block; }
.viewer-shell { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #e9ecef; min-height: 78vh; }
.viewer-shell object { width: 100%; height: 80vh; display: block; }
.markdown-body table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1.3rem 0; }
.markdown-body th, .markdown-body td { border: 1px solid var(--line); padding: .58rem .65rem; text-align: left; vertical-align: top; }
.markdown-body th { background: var(--cream); }
.markdown-body code { overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
.figure-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.figure-card img { width: 100%; height: 220px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.site-footer { background: #0f263a; color: #d8e3e9; margin-top: 3rem; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 2.2rem 1.3rem; display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.site-footer a { color: white; }
.small { font-size: .9rem; color: var(--muted); }
.site-footer .small { color: #b9cbd4; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }
code { background: #eef1f3; padding: .1em .35em; border-radius: 4px; }
.visually-hidden { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
@media (max-width: 900px) {
  .grid.three, .figure-grid { grid-template-columns: 1fr 1fr; }
  .evidence-ladder { grid-template-columns: 1fr; }
  .evidence-ladder span:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -.65rem; transform: translateX(50%); }
}
@media (max-width: 720px) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  .publication-card, .grid.two, .grid.three, .figure-grid, .footer-inner { grid-template-columns: 1fr; }
  .cover { max-width: 360px; }
  .download-item { align-items: flex-start; flex-direction: column; }
  .container { padding-top: 2.3rem; padding-bottom: 2.3rem; }
  h1 { font-size: 2.55rem; }
  nav ul { gap: .5rem 1rem; }
}
@media print {
  .site-header, .site-footer, .actions, .no-print, .skip-link { display: none!important; }
  body { background: white; color: black; font-size: 10.5pt; }
  .container { max-width: none; padding: 0; }
  a { color: black; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; overflow-wrap: anywhere; }
  .card, .notice, .status-box { box-shadow: none; break-inside: avoid; }
  table { break-inside: auto; }
  tr { break-inside: avoid; }
}
