/* Research library: the front page at /research and each report's reading page.
   Built from the approved front-page layout (option 1, 3 November 2026). */
main h2, main h3 { max-width:none; }
.kick { margin:0; font-size:13px; line-height:1.4; color:var(--muted); }
.kick a { transition:color .12s; }
.kick a:hover { color:var(--ink); }
.meta { margin:0; font-size:13px; line-height:1.4; color:var(--muted); }
.chips { display:flex; gap:6px; flex-wrap:nowrap; min-width:0; overflow-x:auto; scrollbar-width:none; padding-right:32px; -webkit-mask-image:linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image:linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.chips::-webkit-scrollbar { display:none; }
.chip { display:inline-flex; align-items:center; height:36px; padding:0 14px; border-radius:999px; border:0; background:var(--white); box-shadow:0 0 0 .5px rgba(0,0,0,.18); font:400 14px/1 var(--sans); color:var(--ink); cursor:pointer; white-space:nowrap; transition:box-shadow .12s, background-color .12s, color .12s; }
.chip:hover { box-shadow:0 0 0 .5px rgba(0,0,0,.32), 0 2px 6px rgba(0,0,0,.05); }
.chip[aria-pressed="true"] { background:var(--ink); color:#fff; box-shadow:none; }
.search { position:relative; display:flex; align-items:center; }
.search svg { position:absolute; left:14px; width:16px; height:16px; color:var(--muted); fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; pointer-events:none; }
.search input { width:100%; height:40px; padding:0 14px 0 38px; border:0; border-radius:999px; background:var(--white); box-shadow:0 0 0 .5px rgba(0,0,0,.18); font:400 15px/1 var(--sans); color:var(--ink); outline:none; transition:box-shadow .12s; -webkit-appearance:none; appearance:none; }
.search input:focus { box-shadow:0 0 0 1.5px var(--ink); }
.cover { width:100%; height:auto; aspect-ratio:16 / 10; object-fit:cover; border-radius:14px; background:var(--navy); }
.empty { padding:40px 0; color:var(--muted); font-size:16px; }
.empty[hidden], [data-card][hidden], [data-hide-when-filtered][hidden] { display:none !important; }
.empty button { margin-left:6px; padding:0; border:0; background:none; font:inherit; color:var(--ink); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* front page */
.mast { position:relative; padding:88px 0 56px; overflow:hidden; }
.mast::before { content:""; position:absolute; inset:0; background:url(/site/img/research/lib-masthead.jpg) right 30% / cover no-repeat; opacity:.9; pointer-events:none; -webkit-mask-image:linear-gradient(180deg, #000 55%, transparent); mask-image:linear-gradient(180deg, #000 55%, transparent); }
.mast .wrap { position:relative; }
.mast h1 { margin:0; font-size:88px; font-weight:400; line-height:1; letter-spacing:-.04em; }
.mast p { margin:18px 0 0; max-width:44ch; font-size:20px; line-height:1.5; color:var(--muted); }
.mast .upd { margin-top:10px; font-size:14px; }
.lead { display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:48px; align-items:center; padding:24px 0 96px; }
.lead .cover { aspect-ratio:3 / 2; border-radius:20px; }
.lead h2 { margin:14px 0 16px; font-size:44px; font-weight:400; line-height:1.06; letter-spacing:-.03em; text-wrap:balance; }
.lead h2 a:hover { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:6px; }
.lead .sum { margin:0 0 18px; font-size:18px; line-height:1.55; color:var(--muted-card); text-wrap:pretty; }
.lead .act { margin-top:28px; }
.bar2 { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:28px 0; border-top:1px solid var(--ring); }
.bar2 .search { flex:0 0 300px; }
.sec-h { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin:0 0 24px; }
.sec-h h2 { margin:0; font-size:28px; font-weight:400; letter-spacing:-.02em; }
.sec-h a { font-size:14px; color:var(--muted); transition:color .12s; }
.sec-h a:hover { color:var(--ink); }
.grid3 { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:40px 28px; }
.rc { display:flex; flex-direction:column; }
.rc .cover { transition:transform .22s cubic-bezier(.33,1,.68,1); }
.rc:hover .cover { transform:scale(1.01); }
.rc .kick { margin-top:16px; }
.rc h3 { margin:8px 0 8px; font-size:21px; font-weight:400; line-height:1.25; letter-spacing:-.015em; text-wrap:balance; }
.rc p.s { margin:0 0 12px; font-size:15px; line-height:1.5; color:var(--muted); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.latest { padding:8px 0 0; }
.shelf { padding:88px 0 0; }
.showmore { display:flex; justify-content:center; padding:48px 0 0; }
.lib-close { padding:120px 0 104px; text-align:center; }
.lib-close h2 { margin:0 auto 14px; max-width:20ch; font-size:40px; font-weight:400; line-height:1.1; letter-spacing:-.025em; text-wrap:balance; }
.lib-close p { margin:0 auto 28px; max-width:52ch; color:var(--muted); font-size:17px; line-height:1.6; }
.lib-follow { margin:-56px 0 0; padding:0 0 88px; text-align:center; font-size:14px; color:var(--muted); }
.lib-follow a { text-decoration:underline; text-decoration-color:rgba(0,0,0,.25); text-underline-offset:3px; }

/* reading page */
.r-head { padding:72px 0 40px; text-align:center; }
.r-head .kick { font-size:14px; }
.r-head h1 { margin:16px auto 20px; max-width:22ch; font-size:56px; font-weight:400; line-height:1.04; letter-spacing:-.035em; text-wrap:balance; }
.r-head .sum { margin:0 auto 22px; max-width:60ch; font-size:19px; line-height:1.55; color:var(--muted-card); text-wrap:pretty; }
.r-head .act { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:28px; }
.r-hero { max-width:1176px; margin:0 auto; padding:0 16px; }
.r-hero .cover { aspect-ratio:21 / 9; border-radius:20px; }
.r-grid { display:grid; grid-template-columns:200px minmax(0,680px) 200px; justify-content:space-between; gap:40px; padding:72px 0 0; }
.r-side { position:sticky; top:96px; align-self:start; max-height:calc(100vh - 120px); overflow:auto; scrollbar-width:none; }
.r-side h3 { margin:0 0 8px; font-size:13px; font-weight:400; color:var(--muted); }
.r-facts { margin:0; font-size:14px; line-height:1.45; }
.r-facts dt { margin-top:18px; font-size:13px; color:var(--muted); }
.r-facts dt:first-child { margin-top:0; }
.r-facts dd { margin:4px 0 0; }
.r-facts .use { display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
.r-facts a:not(.btn), .linkbtn { color:var(--ink); text-decoration:underline; text-decoration-color:rgba(0,0,0,.25); text-underline-offset:3px; transition:text-decoration-color .12s; }
.r-facts a:not(.btn):hover, .linkbtn:hover { text-decoration-color:currentColor; }
.linkbtn { min-height:28px; padding:0; border:0; background:none; font:inherit; font-size:14px; cursor:pointer; }
.copied { min-height:18px; font-size:13px; color:var(--muted); }
.toc { list-style:none; margin:0; padding:0; counter-reset:t; }
.toc a { display:grid; grid-template-columns:28px minmax(0,1fr); padding:7px 0; font-size:14px; line-height:1.4; color:var(--muted); transition:color .12s; }
.toc a::before { counter-increment:t; content:counter(t, decimal-leading-zero); font:400 12px/1.6 var(--mono); color:var(--soft); }
.toc a:hover, .toc a.on { color:var(--ink); }
.toc a.on::before { color:var(--ink); }

.prose { font-size:18px; line-height:1.65; color:var(--ink); }
.prose section { scroll-margin-top:var(--land); }
/* base.css lays out the home page's #sources band (border, deep padding, a scroll margin that
   cancels the padding). A report section of its own named sources is a section like the rest. */
.prose #sources:not(.sources) { padding:0; border-top:0; scroll-margin-top:var(--land); }
.prose h2 { margin:64px 0 18px; font-size:26px; font-weight:500; line-height:1.25; letter-spacing:-.015em; text-wrap:balance; }
.prose > section:first-of-type h2, .prose .findings + section h2 { margin-top:0; }
.prose h3 { margin:36px 0 12px; font-size:20px; font-weight:500; line-height:1.3; letter-spacing:-.01em; }
.prose p { margin:0 0 22px; text-wrap:pretty; }
.prose ul, .prose ol { margin:0 0 22px; padding-left:22px; }
.prose li { margin-bottom:8px; }
.prose strong { font-weight:500; }
.prose a:not(.cite) { text-decoration:underline; text-decoration-color:rgba(0,0,0,.25); text-underline-offset:3px; }
.prose figure { margin:36px 0 40px; }
.prose .fig { display:block; width:100%; padding:14px; border:0; border-radius:14px; background:var(--white); box-shadow:0 0 0 .5px var(--ring); cursor:zoom-in; }
.prose .fig img { width:100%; height:auto; }
.prose figcaption { margin-top:12px; font-size:14px; line-height:1.55; color:var(--muted); text-wrap:pretty; }
.prose figcaption b { color:var(--ink); font-weight:500; }
.prose .note { margin:-8px 0 22px; padding-left:14px; border-left:2px solid var(--ring); font-size:15px; line-height:1.55; color:var(--muted); }
/* wide tables scroll sideways inside their card; a soft shadow at the edge shows there is more */
.table-wrap { margin:32px 0 36px; overflow-x:auto; border-radius:14px; box-shadow:0 0 0 .5px var(--ring);
  background:linear-gradient(90deg, var(--white) 30%, rgba(255,255,255,0)) left / 40px 100% no-repeat local, linear-gradient(270deg, var(--white) 30%, rgba(255,255,255,0)) right / 40px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.12), transparent) left / 14px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.12), transparent) right / 14px 100% no-repeat scroll, var(--white); }
table.data { width:100%; min-width:640px; border-collapse:collapse; font-size:14px; line-height:1.45; }
/* a table with many text columns asks for more room and scrolls sideways sooner */
table.data.wide { min-width:960px; }
table.data td, table.data th { background:transparent; }
table.data caption { padding:14px 16px 10px; text-align:left; font-size:14px; color:var(--muted); caption-side:top; }
table.data th, table.data td { padding:10px 16px; border-top:1px solid var(--ring); text-align:left; vertical-align:top; }
table.data th { font-weight:500; white-space:nowrap; }
table.data .n { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.table-note { margin:-24px 0 32px; font-size:13px; line-height:1.5; color:var(--muted); }
.cite { display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; margin-left:3px; padding:0 4px; border-radius:5px; background:var(--card); font:500 11px/1 var(--mono); color:var(--ink); vertical-align:3px; text-decoration:none; transition:background-color .12s; }
.cite:hover { background:var(--card-hover); }
.abstract p { font-size:19px; line-height:1.6; }
.findings { margin:0 0 56px; padding:24px 26px 8px; border-radius:16px; background:var(--card); }
.findings h2 { margin:0 0 14px !important; font-size:15px !important; font-weight:500 !important; color:var(--muted); letter-spacing:0 !important; }
.findings ul { list-style:none; margin:0; padding:0; }
.findings li { display:grid; gap:2px; margin:0; padding:0 0 18px; }
.findings b { font:400 26px/1.15 var(--sans); letter-spacing:-.02em; }
.findings span { font-size:16px; line-height:1.5; color:var(--muted-card); }
.sources { margin:64px 0 0; padding-top:28px; border-top:1px solid var(--ring); }
.sources h2 { margin:0 0 16px !important; font-size:18px !important; }
.sources ol { margin:0; padding-left:26px; font-size:14px; line-height:1.55; color:var(--muted); }
.sources li { margin-bottom:8px; padding-left:4px; }
.sources li:target { color:var(--ink); }
.sources a { color:var(--ink); text-decoration:underline; text-decoration-color:rgba(0,0,0,.25); text-underline-offset:3px; overflow-wrap:anywhere; }
.related { padding:96px 0 0; }
.related h2 { margin:0 0 24px; font-size:26px; font-weight:400; letter-spacing:-.02em; }
.lightbox { position:fixed; inset:0; z-index:50; display:grid; place-items:center; padding:24px; background:rgba(252,251,249,.97); opacity:0; visibility:hidden; transition:opacity .22s cubic-bezier(.33,1,.68,1), visibility 0s linear .22s; cursor:zoom-out; }
.lightbox.show { opacity:1; visibility:visible; transition:opacity .22s cubic-bezier(.33,1,.68,1), visibility 0s; }
.lightbox img { max-width:min(1400px, 100%); max-height:100%; object-fit:contain; }
/* the way back: top left of every report, again above Contents (which stays on screen while reading) */
.r-top { display:flex; margin:0 0 40px; }
.r-back { display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 14px 0 10px; border-radius:999px; background:var(--white); box-shadow:0 0 0 .5px rgba(0,0,0,.18); font-size:14px; color:var(--ink); transition:box-shadow .12s; }
.r-back:hover { box-shadow:0 0 0 .5px rgba(0,0,0,.32), 0 2px 6px rgba(0,0,0,.05); }
.r-back svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; transition:transform .12s; }
.r-back:hover svg { transform:translateX(-2px); }
.r-side.l .r-back { margin:0 0 28px; }
/* phones: once the top button has scrolled away, the way back (and the PDF) stay one tap away */
.pdf-peek { display:none; }
/* once the title has scrolled off, a pill at the bottom center returns to the top */
.to-top { position:fixed; left:50%; bottom:calc(20px + env(safe-area-inset-bottom)); z-index:16; display:inline-flex; align-items:center; gap:6px; height:44px; padding:0 16px 0 12px; border:0; border-radius:999px; background:rgba(255,255,255,.92); color:var(--ink); font:400 14px/1 var(--sans); white-space:nowrap; cursor:pointer; box-shadow:0 0 0 .5px rgba(0,0,0,.18), 0 8px 24px rgba(17,25,30,.12); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); transform:translate(-50%, 12px); opacity:0; visibility:hidden; pointer-events:none; transition:transform .22s cubic-bezier(.33,1,.68,1), opacity .22s cubic-bezier(.33,1,.68,1), visibility 0s linear .22s, box-shadow .12s; }
.to-top.on { transform:translate(-50%, 0); opacity:1; visibility:visible; pointer-events:auto; transition:transform .22s cubic-bezier(.33,1,.68,1), opacity .22s cubic-bezier(.33,1,.68,1), visibility 0s, box-shadow .12s; }
.to-top:hover { box-shadow:0 0 0 .5px rgba(0,0,0,.32), 0 10px 28px rgba(17,25,30,.16); }
.to-top:focus-visible { outline:none; box-shadow:0 0 0 1.5px var(--ink), 0 8px 24px rgba(17,25,30,.12); }
.to-top:active { transform:translate(-50%, 0) scale(.98); }
.to-top svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; transition:transform .12s; }
.to-top:hover svg { transform:translateY(-2px); }

@media (max-width:1100px) {
  .r-grid { grid-template-columns:minmax(0,680px); justify-content:center; }
  .r-side { position:static; max-height:none; overflow:visible; }
  .r-side.l { display:none; }
  .r-side.r { order:-1; padding:16px 0; border-top:1px solid var(--ring); border-bottom:1px solid var(--ring); }
  .r-side.r .r-facts { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:4px 16px; }
  .r-side.r .r-facts dt { margin-top:12px; }
  .r-side.r .r-facts dt:nth-of-type(-n+2) { margin-top:0; }
  .pdf-peek { display:flex; gap:8px; position:fixed; left:16px; right:16px; bottom:calc(12px + env(safe-area-inset-bottom)); z-index:15; transform:translateY(140%); transition:transform .22s cubic-bezier(.33,1,.68,1); pointer-events:none; }
  .pdf-peek.on { transform:none; pointer-events:auto; }
  .pdf-peek a { display:flex; align-items:center; gap:8px; min-height:52px; border-radius:14px; font-size:15px; box-shadow:0 8px 24px rgba(17,25,30,.18); }
  .pdf-peek .peek-back { flex:none; padding:0 16px 0 12px; background:var(--white); color:var(--ink); box-shadow:0 0 0 .5px rgba(0,0,0,.14), 0 8px 24px rgba(17,25,30,.14); }
  .pdf-peek .peek-back svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
  .pdf-peek .peek-pdf { flex:1; min-width:0; justify-content:space-between; padding:8px 18px; background:var(--ink); color:#fff; }
  .pdf-peek .peek-pdf span:last-child { color:rgba(255,255,255,.72); font-size:14px; white-space:nowrap; }
  .pdf-peek.on ~ .to-top { bottom:calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width:900px) {
  .lead { grid-template-columns:1fr; gap:24px; padding-bottom:72px; }
  .grid3 { grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:720px) {
  .mast { padding:56px 0 96px; }
  .mast::before { top:auto; height:150px; background-position:62% 100%; background-size:auto 300px; opacity:.85; -webkit-mask-image:linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent); mask-image:linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent); }
  .mast h1 { font-size:56px; }
  .mast p { font-size:17px; }
  .lead { padding:8px 0 56px; }
  .lead .cover { border-radius:16px; }
  .lead h2 { font-size:32px; }
  .lead .sum { font-size:17px; }
  .bar2 { flex-direction:column; align-items:stretch; padding:20px 0 24px; }
  .bar2 .search { flex:none; }
  .bar2 .chips { margin:0 -16px; padding:0 48px 0 16px; }
  .grid3 { grid-template-columns:1fr; gap:40px; }
  .shelf { padding-top:72px; }
  .sec-h h2 { font-size:24px; }
  .lib-close { padding:88px 0 72px; }
  .lib-close h2 { font-size:30px; }
  .lib-follow { margin-top:-40px; padding-bottom:64px; }
  .r-head { padding:24px 0 28px; text-align:left; }
  .r-top { margin-bottom:28px; }
  .r-head h1 { margin:12px 0 16px; font-size:34px; line-height:1.08; }
  .r-head .sum { margin:0 0 16px; font-size:17px; }
  .r-head .act { justify-content:flex-start; }
  .r-hero .cover { aspect-ratio:4 / 3; border-radius:16px; }
  .r-grid { padding-top:32px; gap:28px; }
  .prose { font-size:17px; line-height:1.6; }
  .prose h2 { margin:48px 0 14px; font-size:22px; }
  .prose .fig { padding:8px; border-radius:12px; }
  .abstract p { font-size:17px; }
  .findings { padding:20px 18px 4px; }
  .findings b { font-size:22px; }
  .related { padding:72px 0 0; }
}
@media (prefers-reduced-motion:reduce) { .lightbox, .lightbox.show, .pdf-peek, .rc .cover, .chip, .toc a, .to-top, .to-top.on, .to-top svg { transition:none; } }

/* printing a report or article: the text, its figures and sources, nothing else */
@media print {
  .nav, .sheet, footer, .r-top, .r-side, .related, .lib-close, .lib-follow, .pdf-peek, .to-top, .lightbox, .r-head .act, #in-motion-talk { display:none !important; }
  body { background:#fff; }
  .r-head { padding:0 0 16px; text-align:left; }
  .r-head h1 { margin:8px 0 12px; font-size:28pt; max-width:none; }
  .r-hero { padding:0; } .r-hero .cover { aspect-ratio:21 / 9; border-radius:0; }
  .r-grid { display:block; padding-top:16px; }
  .prose { font-size:11pt; line-height:1.5; }
  .prose figure, .table-wrap, .findings { break-inside:avoid; }
  .prose .fig { box-shadow:none; padding:0; }
  .cite { background:none; color:#000; }
}
