/* Papers · karlesmarin.github.io/papers/ — generated by excovery.publicaciones (do not edit by hand).
   Depth (v3, 25-nov): short, crisp relief shadows (no fog), a top light edge (inset), cards in a soft grey-blue that
   stands out from the page; titles embossed (1 px light above, 1 px dark below) and emojis/icons with a short
   drop-shadow. Area colour: --h (HSL hue) on each card / page. */
:root {
  --bg: #f6f8fc; --bg2: #e6edf9; --fg: #121a33; --muted: #4c5875; --line: rgba(18, 30, 70, .13);
  --card-a: #eef1f7; --card-b: #e6eaf2; --gem: #2f7fd6; --night: #0b1433; --rim: rgba(255, 255, 255, .95);
  --sh-near: 0 1px 1px rgba(20, 28, 45, .12), 0 2px 3px rgba(20, 28, 45, .07);
  --sh-far: 0 4px 8px -3px rgba(20, 28, 45, .16);
  --sh-far-up: 0 7px 12px -5px rgba(20, 28, 45, .24);
  --sh-open-up: 0 5px 9px -4px rgba(20, 28, 45, .19);
  --pill-a: #ffffff; --pill-b: #edf1f8; --pill-fg: #1d2a4c;
  --accent-s: 74%; --accent-l: 40%; --band-l1: 91%; --band-l2: 83%;
  --stripe-s: 82%; --stripe-l: 50%;
  --link: hsl(var(--h, 215) 72% 33%);
  --title-3d: 0 1px 0 #c9d3e6, 0 2px 0 #b8c4dc, 0 3px 0 #a7b5d2, 0 4px 6px rgba(20, 40, 90, .25);
  --title-3d-s: 0 1px 0 #c9d3e6, 0 2px 0 #b3bfd8, 0 3px 2px rgba(20, 40, 90, .16);
  --emoji-shadow: drop-shadow(0 2px 0 rgba(0, 0, 0, .18)) drop-shadow(0 4px 6px rgba(0, 0, 0, .18));
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1226; --bg2: #121c3c; --fg: #e8eefc; --muted: #a9b6d6; --line: rgba(170, 195, 240, .14);
    --card-a: #222b3e; --card-b: #1b2233; --gem: #7cc4fb; --rim: rgba(255, 255, 255, .09);
    --sh-near: 0 0 0 1px rgba(255, 255, 255, .05), 0 1px 1px rgba(0, 0, 0, .5);
    --sh-far: 0 4px 9px -3px rgba(0, 0, 0, .6);
    --sh-far-up: 0 8px 14px -5px rgba(0, 0, 0, .7), 0 0 0 1px hsl(var(--h, 215) 80% 65% / .22);
    --sh-open-up: 0 5px 10px -4px rgba(0, 0, 0, .65);
    --pill-a: #2c3650; --pill-b: #242d44; --pill-fg: #e6edff;
    --accent-l: 70%; --band-l1: 22%; --band-l2: 15%; --stripe-l: 60%;
    --link: hsl(var(--h, 215) 88% 76%);
    --title-3d: 0 -1px 0 rgba(255, 255, 255, .12), 0 1px 0 #2c3549, 0 2px 0 #232b3d, 0 3px 0 #1b2131,
    0 4px 6px rgba(0, 0, 0, .55);
    --title-3d-s: 0 -1px 0 rgba(255, 255, 255, .12), 0 1px 0 #2c3549, 0 2px 0 #1d2434, 0 3px 4px rgba(0, 0, 0, .5);
    --emoji-shadow: drop-shadow(0 2px 0 rgba(0, 0, 0, .45)) drop-shadow(0 4px 6px rgba(0, 0, 0, .4));
  }
  :root:not([data-theme="light"]) .ai { color: hsl(var(--h, 215) 95% 68%); }
}
:root[data-theme="dark"] .ai { color: hsl(var(--h, 215) 95% 68%); }
:root[data-theme="dark"] {
  --bg: #0b1226; --bg2: #121c3c; --fg: #e8eefc; --muted: #a9b6d6; --line: rgba(170, 195, 240, .14);
  --card-a: #222b3e; --card-b: #1b2233; --gem: #7cc4fb; --rim: rgba(255, 255, 255, .09);
  --sh-near: 0 0 0 1px rgba(255, 255, 255, .05), 0 1px 1px rgba(0, 0, 0, .5);
  --sh-far: 0 4px 9px -3px rgba(0, 0, 0, .6);
  --sh-far-up: 0 8px 14px -5px rgba(0, 0, 0, .7), 0 0 0 1px hsl(var(--h, 215) 80% 65% / .22);
  --sh-open-up: 0 5px 10px -4px rgba(0, 0, 0, .65);
  --pill-a: #2c3650; --pill-b: #242d44; --pill-fg: #e6edff;
  --accent-l: 70%; --band-l1: 22%; --band-l2: 15%; --stripe-l: 60%;
  --link: hsl(var(--h, 215) 88% 76%);
  --title-3d: 0 -1px 0 rgba(255, 255, 255, .12), 0 1px 0 #2c3549, 0 2px 0 #232b3d, 0 3px 0 #1b2131,
  0 4px 6px rgba(0, 0, 0, .55);
  --title-3d-s: 0 -1px 0 rgba(255, 255, 255, .12), 0 1px 0 #2c3549, 0 2px 0 #1d2434, 0 3px 4px rgba(0, 0, 0, .5);
  --emoji-shadow: drop-shadow(0 2px 0 rgba(0, 0, 0, .45)) drop-shadow(0 4px 6px rgba(0, 0, 0, .4));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--sans);
  overflow-x: hidden;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; z-index: 5; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }

/* ---------------------------------------------------------------- index header */
/* the Mathstodon banner (1500×500, night blue) shown WHOLE at the top (contain, never cropped, never covered: the five
   neon panels reach down to the rainbows at the bottom edge); wider than 1500 px it stays at its size with night bands
   on both sides. The fade into the page goes BELOW the image (::after from top: 100%), from the banner's own bottom
   colour (#0a1329) to the page background, so the avatar and the title sit on that band, not on the picture. */
.hero { position: relative; }
.hero-art { position: relative; aspect-ratio: 3 / 1; max-height: 500px; width: 100%;
  background: #0b1430 url("cabecera.png") center top / contain no-repeat;
  background-image: image-set(url("cabecera.webp") type("image/webp"), url("cabecera.png") type("image/png"));
  margin-bottom: var(--fade); }
.hero { --fade: 36px; }
.hero-art::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: var(--fade); pointer-events: none;
  background: linear-gradient(180deg, #0a1329 0%, var(--bg) 100%); }
.hero-in { position: relative; z-index: 1; max-width: 1180px; margin: calc(-1 * var(--fade)) auto 0; padding: 0 16px 6px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: .05em 0 .15em; text-shadow: var(--title-3d);
  display: flex; align-items: center; gap: 12px; }
.lead { color: var(--muted); max-width: 62ch; margin: 0; font-size: 1.05rem; }
.who + .lead { margin-top: 14px; }
.crumbs { margin: 0; font-size: .9rem; display: flex; gap: .6em; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.hero .crumbs a { color: var(--fg); background: var(--card-a); padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--rim), 0 1px 3px rgba(0, 0, 0, .2); }
/* the avatar (the blue gem) over the banner, as on Mathstodon */
.who { display: flex; align-items: flex-start; gap: 16px; }
/* the circle in relief: light rim above, shade below, a soft blue halo; the gem inside (SVG, or the 3D canvas that
   papers.js puts over it) */
.avatar { position: relative; display: block; width: 112px; height: 112px; flex: none; border-radius: 50%; padding: 10px;
  background: radial-gradient(circle at 50% 34%, #24478f 0%, #12275a 45%, var(--night, #0b1433) 74%);
  border: 4px solid var(--bg); cursor: default; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .28), inset 0 -4px 7px rgba(0, 0, 0, .45),
  0 0 0 1px rgba(124, 196, 251, .55), 0 3px 0 rgba(10, 25, 60, .22), 0 6px 10px -2px rgba(20, 50, 110, .45),
  0 0 16px 2px rgba(124, 196, 251, .35); }
.gem-img { display: block; width: 100%; height: 100%;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)) drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.gem-3d { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; pointer-events: none; }
.avatar.has-3d .gem-img { opacity: 0; }
.who-txt { min-width: 0; padding-top: 66px; }
.name { margin: 0; font: 650 1.3rem/1.2 var(--serif); text-shadow: var(--title-3d-s); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.atlas-link { font: 500 .82rem/1 var(--sans); text-decoration: none; color: var(--fg); background: var(--card-a);
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--rim), 0 1px 3px rgba(0, 0, 0, .18); }
.motto { margin: 4px 0 0; font: italic 400 1rem/1.4 var(--serif); color: var(--muted); max-width: 60ch; }
.motto-2 { margin: 3px 0 0; font: italic 400 .88rem/1.4 var(--serif); color: var(--muted); opacity: .82; max-width: 60ch; }
.mark { vertical-align: -6px; margin-right: 4px; filter: var(--emoji-shadow); }
/* emojis and icons with a short relief shadow (buttons, tags, chips, crumbs) */
.pi, .te, .chip > span[aria-hidden], .card-title > span[aria-hidden] { display: inline-block; filter: var(--emoji-shadow);
  transition: transform .18s ease; }
.pill:hover .pi, .tag:hover .te, .crumbs a:hover .te, .chip:hover > span[aria-hidden], .chip:hover > .ai,
.card:hover .card-title > span[aria-hidden] { transform: perspective(200px) translateZ(10px) scale(1.08); }
.hero-fig { width: 52px; height: 52px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--card-a), transparent 72%); }

/* ---------------------------------------------------------------- filters */
.tools { max-width: 1180px; margin: 0 auto; padding: 12px 16px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 .85rem/1 var(--sans); color: var(--pill-fg); cursor: pointer; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 11px; display: inline-flex; gap: 6px; align-items: center;
  background: linear-gradient(180deg, var(--pill-a), var(--pill-b));
  box-shadow: inset 0 1px 0 var(--rim), 0 1px 2px rgba(0, 0, 0, .10); transition: transform .15s, box-shadow .15s; }
.chip small { color: var(--muted); font-weight: 500; }
.chip small.cross { font-size: .72rem; opacity: .85; }
.chip[aria-pressed="true"] { background: hsl(var(--h) var(--accent-s) var(--band-l1));
  border-color: hsl(var(--h) 60% 50% / .55); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .14); transform: translateY(1px); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 4px; }
.search { flex: 1 1 260px; }
.search input, .year-sel select { width: 100%; font: 400 1rem var(--sans); color: var(--fg); background: var(--card-a);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .06); }
.year-sel select { width: auto; }
.count { color: var(--muted); font-size: .9rem; }

/* ---------------------------------------------------------------- list and cards */
.list { max-width: 1180px; margin: 0 auto; padding: 8px 16px 40px; }
.group > h2 { font-size: 1.55rem; margin: 30px 0 14px; display: flex; align-items: center; gap: 10px;
  color: hsl(var(--h) var(--accent-s) var(--accent-l)); text-shadow: var(--title-3d); }
.group > h2 small { font: 500 .9rem var(--sans); color: var(--muted); }
.subchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 10px 12px; border-radius: 14px;
  background: hsl(var(--h, 215) 50% 50% / .06); border: 1px dashed var(--line); }
.chip-sub { font-size: .8rem; padding: 6px 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 10px; }
.tag { font: 500 .72rem/1.2 var(--sans); padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  color: hsl(var(--h, 215) 68% calc(var(--accent-l) - 6%)); background: hsl(var(--h, 215) 80% 55% / .14);
  border: 1px solid hsl(var(--h, 215) 70% 50% / .30); }
/* area icons: inline SVG, thin neon stroke in the area colour */
.ai { width: 26px; height: 26px; flex: none; vertical-align: middle; color: hsl(var(--h, 215) 88% 42%);
  filter: var(--emoji-shadow) drop-shadow(0 0 3px hsl(var(--h, 215) 90% 55% / .45)); transition: transform .18s ease; }
.group > h2:hover .ai, .band .area:hover .ai { transform: perspective(200px) translateZ(10px) scale(1.08); }
.ai-s { width: 18px; height: 18px; margin-right: 4px; }
.ai-l { width: 30px; height: 30px; }
.band .ai { width: 40px; height: 40px; }
.tag .ai-s { width: 14px; height: 14px; margin-right: 3px; vertical-align: -3px; }
.tag-serie { color: var(--muted); background: transparent; border-style: dashed; border-color: var(--line); }
.band .tags { margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.card { --rx: 0deg; --ry: 0deg; --lift: 0px; position: relative; border-radius: 18px;
  background: linear-gradient(170deg, var(--card-a) 0%, var(--card-b) 100%);
  border: 1px solid var(--line); border-top-color: var(--rim);
  box-shadow: inset 0 1px 0 var(--rim), var(--sh-near), var(--sh-far);
  transform: perspective(900px) translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .25s ease; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, hsl(var(--h) var(--stripe-s) var(--stripe-l)),
  hsl(calc(var(--h) + 35) var(--stripe-s) calc(var(--stripe-l) + 6%)));
  box-shadow: 0 1px 0 hsl(var(--h) 60% 30% / .25); }
.card:hover, .card:focus-within, .card.is-tilt { --lift: -2px;
  box-shadow: inset 0 1px 0 var(--rim), var(--sh-near), var(--sh-far-up); }
/* expanded card: hardly moves (1 px), no tilt, the shadow barely changes */
.card.is-open:hover, .card.is-open:focus-within, .card:has(> .card-in > .more[open]):hover {
  box-shadow: inset 0 1px 0 var(--rim), var(--sh-near), var(--sh-open-up); }
.card-in { padding: 20px 20px 18px; transform-style: preserve-3d; display: flex; flex-direction: column; height: 100%; }
.card-top { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted);
  transform: translateZ(10px); }
.card-top time { margin-left: auto; font-variant-numeric: tabular-nums; }
.area-name { font-weight: 600; color: hsl(var(--h) var(--accent-s) var(--accent-l)); }
.area-emoji { font-size: 1.5rem; line-height: 1; display: inline-block; transition: filter .25s, transform .25s;
  transform: translateZ(16px); filter: var(--emoji-shadow); }
.card:hover .area-emoji, .card.is-tilt .area-emoji {
  transform: translateZ(16px) scale(1.08); filter: var(--emoji-shadow) drop-shadow(0 0 3px hsl(var(--h) 90% 60% / .5)); }
.card-title { font-size: 1.18rem; margin: 0 0 6px; transform: translateZ(14px); text-shadow: var(--title-3d-s); }
.card-title a { color: var(--fg); text-decoration: none; }
.card-title a:hover { color: var(--link); }
.card-title a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; } /* whole card clickable */
.authors { margin: 0 0 8px; color: var(--muted); font-size: .92rem; }
.excerpt { margin: 0 0 14px; font-size: .92rem; color: var(--fg); opacity: .88; flex: 1; }
.card .pills { position: relative; z-index: 1; transform: translateZ(8px); }

/* ---------------------------------------------------------------- folded cards (index) */
/* folded: area, date, title, authors, a one-sentence teaser when it is short, PDF and Blueprint; «Show more» opens the
   rest (<details>: works without JS, the content is in the static HTML). Open cards do not tilt. */
.list .grid { align-items: start; }
.teaser { margin: 0 0 12px; font-size: .9rem; color: var(--fg); opacity: .86;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pills-main { margin-top: auto; }
.more { position: relative; z-index: 1; margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.more-btn { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font: 500 .82rem/1 var(--sans); color: var(--link); padding: 6px 10px 6px 11px; border-radius: 999px;
  border: 1px solid hsl(var(--h, 215) 70% 48% / .38); background: linear-gradient(180deg, var(--pill-a), var(--pill-b));
  box-shadow: inset 0 1px 0 var(--rim), 0 1px 2px rgba(0, 0, 0, .12);
  transition: background .15s, box-shadow .15s; user-select: none; }
.more-btn::-webkit-details-marker { display: none; }
.more-btn::marker { content: ""; }
.more-btn:hover { background: hsl(var(--h, 215) 80% 55% / .16); }
.more-btn:active { box-shadow: inset 0 2px 3px rgba(0, 0, 0, .18); }
.more-btn:focus-visible { outline: 2px solid hsl(var(--h, 215) 80% 55%); outline-offset: 2px; }
.more-arrow { display: inline-block; transition: transform .25s ease; }
.more[open] .more-arrow { transform: rotate(180deg); }
.more-close, .more[open] .more-open { display: none; }
.more[open] .more-close { display: inline; }
.more-body { padding: 12px 2px 8px; }
.more .pills { transform: none; }
.more-abstract { font-size: .9rem; line-height: 1.55; overflow-wrap: break-word; margin-bottom: 12px; }
.more-abstract p { margin: 0 0 .7em; }
.more-abstract ul, .more-abstract ol { margin: 0 0 .7em; padding-left: 1.3em; }
.more .tags { margin-bottom: 12px; }
:root { interpolate-size: allow-keywords; }
.more::details-content { block-size: 0; overflow: clip;
  transition: block-size .32s ease, content-visibility .32s allow-discrete; }
.more[open]::details-content { block-size: auto; }
.more[open] .more-body { animation: more-in .32s ease both; }
@keyframes more-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.card.is-open, .card:has(> .card-in > .more[open]) { --rx: 0deg !important; --ry: 0deg !important; --lift: 0px; }
.card.is-open:hover, .card.is-open:focus-within, .card:has(> .card-in > .more[open]):hover { --lift: -1px; }
.expand-all { font: 500 .88rem/1 var(--sans); color: var(--pill-fg); cursor: pointer; border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 14px; background: linear-gradient(180deg, var(--pill-a), var(--pill-b));
  box-shadow: inset 0 1px 0 var(--rim), 0 1px 2px rgba(0, 0, 0, .10); }
.expand-all[aria-pressed="true"] { box-shadow: inset 0 2px 4px rgba(0, 0, 0, .14); }
.expand-all:focus-visible { outline: 2px solid hsl(215 80% 55%); outline-offset: 2px; }
/* formulas: plain text in the HTML (Scholar, search); MathJax draws data-tex in the browser (assets/tex.js) */
.tex-d { display: block; text-align: center; margin: .4em 0; overflow-x: auto; }
mjx-container[jax="CHTML"][display="true"] { margin: .4em 0 !important; }

/* ---------------------------------------------------------------- pills */
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 .82rem/1 var(--sans); color: var(--pill-fg);
  text-decoration: none; padding: 7px 11px 7px 9px; border-radius: 999px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--pill-a), var(--pill-b));
  box-shadow: inset 0 1px 0 var(--rim), 0 1px 1px rgba(0, 0, 0, .14), 0 2px 3px -1px rgba(0, 0, 0, .12);
  transition: transform .12s, box-shadow .12s, background .12s; }
.pill:hover { box-shadow: inset 0 1px 0 var(--rim), 0 1px 2px rgba(0, 0, 0, .16), 0 3px 5px -2px rgba(0, 0, 0, .2); }
.pill:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .22); }
.pill:focus-visible, .chip:focus-visible { outline: 2px solid hsl(var(--h, 215) 80% 55%); outline-offset: 2px; }
.pi { font-size: 1rem; line-height: 1; }
.pill-pdf { background: linear-gradient(180deg, hsl(var(--h, 215) 80% 50%), hsl(var(--h, 215) 80% 40%));
  color: #fff; border-color: hsl(var(--h, 215) 70% 33%); text-shadow: 0 1px 0 rgba(0, 0, 0, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 1px rgba(0, 0, 0, .22), 0 2px 4px -1px hsl(var(--h, 215) 70% 35% / .5); }
.pill-pdf:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 2px rgba(0, 0, 0, .22), 0 4px 6px -2px hsl(var(--h, 215) 70% 35% / .6); }
.pill.big { font-size: 1rem; padding: 11px 18px 11px 14px; }

/* ---------------------------------------------------------------- paper page */
.band { position: relative; padding: 26px 16px 30px; border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, hsl(var(--h) var(--accent-s) var(--band-l1)) 0%, hsl(calc(var(--h) + 30) var(--accent-s) var(--band-l2)) 100%);
  box-shadow: inset 0 -1px 0 var(--rim), 0 3px 6px -3px rgba(0, 0, 0, .3); }
.band-in { max-width: 860px; margin: 0 auto; }
.band .area { margin: 18px 0 6px; font-weight: 600; color: hsl(var(--h) var(--accent-s) calc(var(--accent-l) - 4%));
  display: flex; align-items: center; gap: 10px; text-shadow: var(--title-3d-s); }
.band .area-emoji { font-size: 2.4rem; transform: none; filter: var(--emoji-shadow); }
.band h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 14px; text-shadow: var(--title-3d); }
.band .authors { font-size: 1.05rem; color: var(--fg); margin-bottom: 6px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
.facts span, .facts time { white-space: nowrap; }
.facts span:has(a[href^="https://doi"]) { white-space: normal; overflow-wrap: anywhere; }
.paper-main { max-width: 860px; margin: 0 auto; padding: 8px 16px 32px; }
.paper-main section { position: relative; margin: 22px 0; padding: 24px 24px 22px; border-radius: 18px;
  border: 1px solid var(--line); border-top-color: var(--rim); background: linear-gradient(170deg, var(--card-a), var(--card-b));
  box-shadow: inset 0 1px 0 var(--rim), var(--sh-near), var(--sh-far); }
.paper-main section::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, hsl(var(--h) var(--stripe-s) var(--stripe-l)),
  hsl(calc(var(--h) + 35) var(--stripe-s) calc(var(--stripe-l) + 6%))); }
.paper-main h2 { margin: 0 0 10px; font-size: 1.3rem; text-shadow: var(--title-3d-s);
  color: hsl(var(--h) var(--accent-s) var(--accent-l)); }
/* previous / next paper (index order) and back to all */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; margin: 28px 0 0; }
.pager a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--fg); min-width: 0;
  padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); border-top-color: var(--rim);
  background: linear-gradient(170deg, var(--card-a), var(--card-b));
  box-shadow: inset 0 1px 0 var(--rim), var(--sh-near), var(--sh-far); transition: transform .15s, box-shadow .15s; }
.pager a:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 var(--rim), var(--sh-near), var(--sh-far-up); }
.pager a:active { transform: translateY(1px); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .18); }
.pager a:focus-visible { outline: 2px solid hsl(var(--h, 215) 80% 55%); outline-offset: 2px; }
.pager .pager-dir { font: 600 .8rem/1.2 var(--sans); color: var(--link); text-transform: uppercase; letter-spacing: .04em; }
.pager .pager-title { font: 650 .98rem/1.3 var(--serif); text-shadow: var(--title-3d-s); overflow-wrap: anywhere; }
.pager .pager-next { text-align: right; grid-column: 3; }
.pager .pager-prev { grid-column: 1; }
.pager .pager-all { grid-column: 2; justify-content: center; align-items: center; font: 500 .9rem/1.2 var(--sans);
  color: var(--pill-fg); background: linear-gradient(180deg, var(--pill-a), var(--pill-b)); white-space: nowrap; }
.abstract { font-size: 1.02rem; overflow-wrap: break-word; }
.abstract p { margin: 0 0 .8em; }
.note { color: var(--muted); font-size: .88rem; margin: .4em 0 0; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .85rem; background: var(--bg); padding: 12px;
  border-radius: 10px; border: 1px solid var(--line); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .08); }
summary { cursor: pointer; color: var(--link); }
.foot { max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; color: var(--muted); font-size: .88rem;
  text-align: center; }
.empty { color: var(--muted); text-align: center; }

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .hero-fig { width: 40px; height: 40px; }
  .hero { --fade: 28px; }
  .who-txt { padding-top: 44px; }
  .avatar { width: 84px; height: 84px; padding: 7px; }
  .who { margin-top: 0; gap: 12px; }
  .name { font-size: 1.1rem; }
  .motto { font-size: .9rem; }
  .motto-2 { font-size: .8rem; }
  .card-in { padding: 16px 16px 14px; }
  .paper-main section { padding: 20px 16px 18px; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager .pager-all { grid-column: 1 / -1; grid-row: 2; }
  .pager .pager-prev { grid-column: 1; grid-row: 1; }
  .pager .pager-next { grid-column: 2; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .pill, .chip, .area-emoji, .more-arrow, .more-btn, .more::details-content, .pager a { transition: none; }
  .more[open] .more-body { animation: none; }
  .card:hover, .card:focus-within { --lift: 0px; }
}
@media (hover: none) { .card { transform: none; } }
