/* Styles for the blog and glossary pages. Plain CSS (served as-is from
   /public) so the article pages stay tiny and need no build step. */
@font-face { font-family: 'Space Grotesk'; src: url('/fonts/space-grotesk.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --bg: #05060d; --bg-2: #0a0c1a; --panel: #0b0e22;
  --ink: #eef0ff; --ink-2: #c3c7e4; --muted: #8f94b8;
  --line: rgba(180, 170, 255, 0.14); --line-2: rgba(180, 170, 255, 0.26);
  --magenta: #f05ac8; --violet: #8c66ff; --cyan: #7ff3f7; --amber: #ffc46b;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; color-scheme: dark; }
body { margin: 0; background: radial-gradient(1100px 700px at 80% -10%, #1a1440 0%, transparent 60%), var(--bg); color: var(--ink); font: 400 17px/1.75 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: rgba(240, 90, 200, 0.4); color: #fff; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

/* Reading progress */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 40; pointer-events: none; }
.progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--magenta), var(--violet), var(--cyan)); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; padding: 14px var(--gutter); background: rgba(5, 6, 13, 0.78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 500 1rem var(--display); margin-right: auto; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current] { box-shadow: 0 1px 0 var(--cyan); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; text-decoration: none; font: 500 0.95rem var(--display); color: #0a0612 !important; background: linear-gradient(100deg, #ff8ad9, var(--violet) 55%, var(--cyan)); box-shadow: 0 10px 34px -12px rgba(240, 90, 200, 0.7); transition: transform 0.3s var(--ease); border: 0; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-small { min-height: 36px; padding: 0 15px; font-size: 0.86rem; }
.btn-ghost { background: rgba(255, 255, 255, 0.05); color: var(--ink) !important; box-shadow: 0 0 0 1px var(--line-2) inset; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; color: var(--ink); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform 0.25s var(--ease); }
.bars::before, .bars::after { content: ''; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded='true'] .bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 66px 12px auto; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px; background: rgba(10, 12, 26, 0.98); border: 1px solid var(--line); border-radius: 16px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: 0.25s var(--ease); }
  .site-nav.open { visibility: visible; opacity: 1; transform: none; }
  .site-nav a { padding: 12px; font-size: 1.05rem; }
  .site-nav a[aria-current] { box-shadow: none; color: var(--cyan); }
}

/* Breadcrumbs */
.crumbs { font: 0.78rem var(--mono); color: var(--muted); margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: 0.5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* Article hero */
.hero { position: relative; padding: clamp(40px, 8vh, 88px) 0 clamp(32px, 5vh, 56px); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-art { position: absolute; right: -6%; top: -10%; width: min(620px, 70vw); opacity: 0.55; pointer-events: none; mask-image: radial-gradient(closest-side, #000 40%, transparent); -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent); }
.hero .wrap { position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 0.74rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--magenta); margin-bottom: 18px; }
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); max-width: 22ch; margin: 0 0 18px; }
.dek { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-2); max-width: 62ch; margin: 0 0 24px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 0.8rem var(--mono); color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 8px; }

/* Layout */
.layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: clamp(32px, 5vw, 72px); padding: clamp(40px, 7vh, 72px) 0 40px; justify-content: center; }
.toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; font-size: 0.86rem; }
.toc p { font: 0.72rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--cyan); }
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--panel); }
}

/* Prose */
.prose { min-width: 0; }
.prose > p:first-child { font-size: 1.16rem; color: var(--ink); line-height: 1.7; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin: 2.4em 0 0.7em; padding-top: 0.4em; }
.prose h3 { font-size: 1.22rem; margin: 1.9em 0 0.5em; color: var(--ink); }
.prose h2 .anchor, .prose h3 .anchor { opacity: 0; margin-left: 8px; color: var(--muted); text-decoration: none; font-weight: 400; transition: opacity 0.2s; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--violet); }
.prose a { color: var(--cyan); }
.prose a[href^='/glossary/'] { text-decoration-style: dotted; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--magenta); font: 400 1.2rem/1.55 var(--display); color: var(--ink); }
.prose code { font: 0.86em var(--mono); background: rgba(127, 243, 247, 0.08); padding: 2px 6px; border-radius: 6px; color: var(--cyan); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 3em 0; }
.prose p:has(> strong:only-child) + ul { border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px 18px 40px; background: linear-gradient(180deg, rgba(20, 16, 48, 0.7), rgba(10, 12, 28, 0.7)); }
.table-wrap { overflow-x: auto; margin: 1.8em 0; border: 1px solid var(--line); border-radius: 14px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.93rem; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 0.82rem var(--mono); color: var(--cyan); background: rgba(127, 243, 247, 0.04); letter-spacing: 0.02em; }
.prose tr:last-child td { border-bottom: 0; }
.prose td { color: var(--ink-2); }

/* Definition box (glossary) */
.definition { margin: 0 0 36px; padding: 24px 26px; border-radius: 18px; background: linear-gradient(135deg, rgba(240, 90, 200, 0.12), rgba(127, 243, 247, 0.06)); border: 1px solid var(--line-2); }
.definition .label { font: 500 0.72rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin: 0 0 8px; }
.definition p { margin: 0; color: var(--ink); font-size: 1.1rem; }
.definition .aka { margin-top: 12px; font-size: 0.86rem; color: var(--muted); }

/* FAQ */
.faq { margin-top: 3.2em; }
.faq h2 { margin-top: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 500 1.06rem/1.4 var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font: 300 1.5rem var(--display); color: var(--cyan); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }

/* Sources */
.sources { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--line); }
.sources h2 { font-size: 1.1rem; margin: 0 0 0.8em; }
.sources ol { padding-left: 1.3em; font-size: 0.88rem; }
.sources li { color: var(--muted); margin: 0.5em 0; overflow-wrap: anywhere; }
.sources a { color: var(--ink-2); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(11, 13, 30, 0.7); text-decoration: none; color: var(--ink); transition: border-color 0.3s, transform 0.35s var(--ease); overflow: hidden; }
.card:hover { border-color: rgba(127, 243, 247, 0.4); transform: translateY(-3px); color: var(--ink); }
.card .cat { font: 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--magenta); margin-bottom: 10px; }
.card h3 { font-size: 1.18rem; margin: 0 0 10px; }
.card p { color: var(--muted); font-size: 0.93rem; margin: 0 0 16px; line-height: 1.6; }
.card .more { margin-top: auto; font: 0.78rem var(--mono); color: var(--cyan); }
.card-art { margin: -24px -24px 20px; aspect-ratio: 1200 / 630; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--panel); }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-art img { transform: scale(1.04); }
.related { padding: 56px 0 24px; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.5rem; margin: 0 0 22px; }
.term-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 36px; }
.term-chips a { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none; font-size: 0.9rem; }
.term-chips a:hover { border-color: var(--cyan); color: var(--ink); }

/* CTA */
.cta { margin: 48px 0 80px; padding: clamp(28px, 5vw, 56px); border-radius: 26px; border: 1px solid var(--line); background: radial-gradient(600px 300px at 90% 0%, rgba(240, 90, 200, 0.18), transparent 60%), linear-gradient(180deg, rgba(16, 14, 40, 0.9), rgba(8, 9, 22, 0.9)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.cta h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta p { margin: 0; color: var(--ink-2); max-width: 56ch; }
.cta .actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Index pages */
.index-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 16ch; }
.featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: rgba(11, 13, 30, 0.7); text-decoration: none; color: var(--ink); margin: 40px 0; transition: border-color 0.3s; }
.featured:hover { border-color: rgba(127, 243, 247, 0.4); color: var(--ink); }
.featured img { border-radius: 16px; border: 1px solid var(--line); }
.featured h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 8px 0 12px; }
.featured p { color: var(--ink-2); margin: 0 0 16px; }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.filters button { font: 0.82rem var(--mono); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--ink-2); cursor: pointer; min-height: 36px; }
.filters button[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.search { position: relative; max-width: 520px; margin: 28px 0 8px; }
.search input { width: 100%; font: inherit; color: var(--ink); background: rgba(5, 6, 13, 0.7); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px 14px 46px; min-height: 52px; }
.search input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(127, 243, 247, 0.15); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin: 20px 0 8px; padding: 0; list-style: none; }
.az a, .az span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; font: 0.82rem var(--mono); text-decoration: none; }
.az a { color: var(--ink); border: 1px solid var(--line-2); }
.az a:hover { border-color: var(--cyan); }
.az span { color: #3a3f66; }
.letter { margin-top: 40px; }
.letter h2 { font: 500 2rem var(--display); color: var(--magenta); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.terms { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.terms a { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: rgba(11, 13, 30, 0.6); transition: border-color 0.3s; }
.terms a:hover { border-color: rgba(127, 243, 247, 0.4); }
.terms strong { display: block; color: var(--ink); font: 500 1.08rem var(--display); margin-bottom: 6px; }
.terms span { color: var(--muted); font-size: 0.9rem; line-height: 1.55; display: block; }
.empty { color: var(--muted); display: none; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0 0; }
.prev-next a { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.prev-next a:hover { border-color: var(--cyan); }
.prev-next small { display: block; font: 0.72rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.prev-next .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .prev-next { grid-template-columns: 1fr; } .prev-next .next { grid-column: 1; text-align: left; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 0.9rem; background: rgba(5, 6, 13, 0.85); }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; }
.foot h3 { font: 500 0.74rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 6px 0; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot p { margin: 0 0 6px; color: var(--muted); }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
.legal { color: var(--muted); font-size: 0.82rem; margin-top: 28px; }
.lede-sm { color: var(--ink-2); max-width: 60ch; margin: 0 0 20px; }
.foot .brand + p { margin-top: 12px; }

/* Shared texture with the homepage: microscope grid + film grain + slow aurora. */
body::before, body::after { content: ''; position: fixed; pointer-events: none; z-index: -1; }
body::before {
  inset: 0;
  background-image:
    radial-gradient(900px 600px at 85% 10%, rgba(240, 90, 200, 0.14), transparent 60%),
    radial-gradient(800px 600px at 5% 80%, rgba(140, 102, 255, 0.12), transparent 60%),
    linear-gradient(rgba(180, 170, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 170, 255, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 160px 160px, 160px 160px;
  mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.25));
  -webkit-mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.25));
}
body::after {
  inset: -5%; z-index: 50; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, 3%); } 100% { transform: translate(0, 0); } }
body { position: relative; isolation: isolate; }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

/* ---------------------------------------------------------------- research */
.research-note { margin: 32px 0 8px; padding: 18px 22px; border: 1px solid var(--line); border-left: 2px solid var(--amber); border-radius: 12px; background: rgba(255, 196, 107, 0.04); }
.research-note p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.research-block { padding: 48px 0 8px; }
.research-block > h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 8px; }
.research-tools { position: sticky; top: 66px; z-index: 5; padding: 16px 0 12px; margin: 16px 0 20px; background: linear-gradient(rgba(5, 6, 13, 0.96), rgba(5, 6, 13, 0.9)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.research-tools .search { margin: 0 0 12px; }
.research-tools .filters { margin: 0 0 8px; }
.filters-sm button { min-height: 32px; font-size: 0.76rem; padding: 6px 12px; }
.result-count { margin: 4px 0 0; font: 0.76rem var(--mono); color: var(--muted); }
.papers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.paper { display: flex; flex-direction: column; padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(11, 13, 30, 0.72); transition: border-color 0.3s, transform 0.35s var(--ease); }
.paper:hover { border-color: rgba(127, 243, 247, 0.35); transform: translateY(-2px); }
.paper[hidden] { display: none; }
.paper-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; font: 0.74rem var(--mono); color: var(--muted); }
.badge { font: 500 0.66rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ink-2); }
.badge-peer-reviewed { color: var(--cyan); border-color: rgba(127, 243, 247, 0.4); }
.badge-preprint { color: var(--amber); border-color: rgba(255, 196, 107, 0.45); }
.badge-review { color: #c4adff; border-color: rgba(196, 173, 255, 0.45); }
.badge-oa { color: #9ef0b4; border-color: rgba(158, 240, 180, 0.35); }
.paper h3 { font-size: 1.06rem; line-height: 1.35; margin: 0 0 8px; }
.paper h3 a { color: var(--ink); text-decoration: none; }
.paper h3 a:hover { color: var(--cyan); text-decoration: underline; }
.paper-meta { margin: 0 0 12px; font-size: 0.84rem; color: var(--muted); }
.paper-meta em { color: var(--ink-2); }
.paper-sum { margin: 0 0 14px; font-size: 0.93rem; color: var(--ink-2); line-height: 1.6; }
.paper-topics { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.paper-topics li { font-size: 0.74rem; padding: 4px 9px; border-radius: 999px; background: rgba(140, 102, 255, 0.12); color: #c9b6ff; }
.paper-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.paper-link { font: 500 0.86rem var(--display); color: var(--cyan); text-decoration: none; }
.paper-link:hover { color: #fff; }
.paper-guide { font-size: 0.8rem; color: var(--muted); text-decoration: none; }
.paper-guide:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 480px) { .papers-grid { grid-template-columns: 1fr; } .research-tools { position: static; } }
.badge-perspective { color: #ff9ad8; border-color: rgba(240, 90, 200, 0.4); }
