/* ==========================================================================
   fritzguenther.de — design "C / semantic space"
   Fonts are self-hosted (no Google Fonts requests, GDPR-friendly).
   ========================================================================== */

@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap;
  src: url("/static/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap;
  src: url("/static/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

[hidden] { display: none !important; }
:root {
  --ink: #0d1b2a; --ink-line: #2c4560; --ink-text: #b8c7d6; --ink-muted: #8aa0b6;
  --paper: #ffffff; --bg2: #f4f6f8; --text: #172231; --muted: #5b6b7d; --rule: #e1e6eb; --year: #d3dae2;
  --accent: #f59e0b; --accent-text: #b45309; --accent2: #0f9488;
  --head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0f1720; --bg2: #16212d; --text: #e3e9ef; --muted: #93a3b4; --rule: #223142; --year: #2a3a4c;
          --accent-text: #fbbf24; --accent2: #2dd4bf; }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased;
       min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; display: flex; flex-direction: column; }
main > section:last-child { flex: 1; }   /* last band reaches down to the footer */
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--ink); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- dark band (header) ------------------------------------------------- */
.band { position: relative; background: var(--ink); color: #e8eef5; overflow: hidden; }
.band .space { position: absolute; inset: 0; width: 100%; height: 100%; }
.band .container { position: relative; }
.topnav { display: flex; justify-content: space-between; align-items: center; height: 70px; font-size: 14.5px; }
.brand { font: 700 18px var(--head); color: #fff; }
.brand span { color: var(--accent); }
.topnav .links { display: flex; gap: 26px; color: #9fb3c8; }
.topnav .links a:hover, .topnav .links a.on { color: #fff; }
.topnav .links a.on { box-shadow: inset 0 -2px 0 var(--accent); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: #e8eef5; margin: 4px 0; transition: transform .2s; }

.pagehead { padding: 36px 0 52px; }
.pagehead h1 { font: 700 44px/1.08 var(--head); letter-spacing: -.025em; margin: 0; color: #fff; }
.pagehead p { color: var(--ink-text); font-size: 17.5px; margin: 12px 0 0; max-width: 680px; }
.crumb { display: inline-block; font: 500 14px var(--head); color: var(--accent); margin-bottom: 10px; }

.hero { padding: 64px 0 88px; display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: end; }
.hero h1 { font: 700 60px/1.02 var(--head); letter-spacing: -.03em; margin: 0 0 22px; color: #fff; }
.hero .intro p { font-size: 18px; color: var(--ink-text); max-width: 640px; margin: 0 0 12px; }
.hero .intro a { color: #e8eef5; border-bottom: 1px solid var(--ink-line); }
.hero .intro a:hover { border-bottom-color: var(--accent); }
.hero .meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero .meta a { font-size: 13.5px; border: 1px solid var(--ink-line); padding: 6px 14px; border-radius: 4px; color: #d7e2ec; background: rgba(13,27,42,.7); }
.hero .meta a:hover { border-color: var(--accent); color: var(--accent); }
.portrait { width: 200px; height: 240px; object-fit: cover; object-position: 28% 30%; border-radius: 6px; border: 1px solid var(--ink-line); box-shadow: 14px 14px 0 var(--accent); }
.portrait--initials { display: grid; place-items: center; background: linear-gradient(160deg, #24496e, #0b1a29); font: 700 56px var(--head); color: var(--accent); }

/* --- sections ------------------------------------------------------------ */
main section { padding: 64px 0; }
main section.alt { background: var(--bg2); }
.label { font: 700 13px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
main h2 { font: 700 32px/1.15 var(--head); letter-spacing: -.02em; margin: 0 0 28px; }
.more { display: inline-block; margin-top: 24px; font: 700 15px var(--head); border-bottom: 2px solid var(--accent); }

.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--rule); border: 2px solid var(--rule); }
.theme { background: var(--paper); padding: 26px 24px; }
.theme .num { font: 700 13px var(--head); color: var(--accent2); }
.theme h3 { font: 700 20px/1.2 var(--head); margin: 6px 0 8px; }
.theme p { margin: 0; color: var(--muted); font-size: 15px; }

.proj { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.proj > * { border-left: 4px solid var(--accent); background: var(--paper); padding: 16px 20px; }
.proj > a:hover { background: var(--rule); }
.proj small { display: block; font: 700 12px var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.tile { display: block; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--accent2); padding: 18px 20px; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(13,27,42,.35); }
.tile h3 { font: 700 17px/1.25 var(--head); margin: 0 0 6px; }
.tile p { margin: 0; font-size: 14.5px; color: var(--muted); }
.prose .tiles { margin-top: 36px; }
.prose .tile { color: var(--text); border-bottom: 1px solid var(--rule); }

/* --- publications --------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 16px; margin-top: 14px; align-items: stretch; }
.pub { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--accent2);
       padding: 18px 20px 16px; scroll-margin-top: 20px; transition: box-shadow .15s, transform .15s; }
.pub:hover { box-shadow: 0 8px 22px rgba(13,27,42,.09); transform: translateY(-2px); }
.pub[data-tags~="accepted"] { border-top-color: var(--accent); }
.pub.clickable { cursor: pointer; }
.pub.clickable .abs, .pub.clickable .bib { cursor: auto; }
.pub:target { box-shadow: 0 0 0 3px var(--accent); }
.pub.open { grid-column: 1 / -1; transform: none; }     /* abstract / BibTeX open: card spans the full row */
.pub > div:not(.y) { display: flex; flex-direction: column; flex: 1; }
.pub .y { font: 700 11px/1.65 var(--head); letter-spacing: .1em; color: var(--muted); }
.pub .st { display: block; font: 700 11px var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--accent2); }
.pub .t { font: 600 17px/1.35 var(--body); margin: 0 0 6px; }
.pub .a, .pub .v, .pub .n { color: var(--muted); font-size: 14.5px; }
.pub .a b { color: var(--text); }
.pub .n { font-size: 13px; }
.pub .l { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; font: 600 13px var(--head); }
.pub .l a, .toggle { color: var(--text); border-bottom: 2px solid var(--accent); }
.pub .l a:hover, .toggle:hover { color: var(--accent-text); }
.toggle { background: none; border-top: 0; border-left: 0; border-right: 0; padding: 0; font: inherit; cursor: pointer; border-bottom-color: var(--rule); }
.toggle[aria-expanded="true"] { border-bottom-color: var(--accent); }
.abs { margin: 10px 0 0; padding: 4px 16px; border-left: 3px solid var(--accent2); color: var(--muted); font-size: 15px; max-width: 820px; }
.bib { margin: 10px 0 0; padding: 12px 14px; background: var(--bg2); border: 1px solid var(--rule); font: 12.5px/1.5 var(--mono); white-space: pre-wrap; word-break: break-word; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 13.5px var(--head); padding: 6px 14px; border-radius: 4px; border: 1px solid var(--rule); background: var(--paper); color: var(--muted); cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.chips.topics { margin: 0 0 14px; }
.chips.topics .chip { font-size: 12.5px; padding: 4px 11px; }
.pub .tp { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.pub .tp a { font: 500 11.5px var(--head); color: var(--muted); border: 1px solid var(--rule); border-radius: 3px; padding: 1px 7px; text-decoration: none; }
.pub .tp a:hover { color: var(--text); border-color: var(--muted); }
.search { margin-left: auto; font: 14.5px var(--body); padding: 8px 14px; border-radius: 4px; border: 1px solid var(--rule); background: var(--paper); color: var(--text); min-width: 260px; }
.count { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.count a { border-bottom: 1px solid var(--accent); }
.grouphead { font: 700 15px var(--head) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin: 36px 0 4px !important; }
.pubgroup .pub .y { display: none; }   /* year is already in the group heading */
.empty { color: var(--muted); }

/* --- generic Markdown pages ----------------------------------------------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 26px; margin: 44px 0 14px; }
.prose h3 { font: 700 19px var(--head); margin: 30px 0 10px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose a { border-bottom: 2px solid var(--accent); }
.prose a:hover { color: var(--accent-text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 18px 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--rule); }
.prose th { font-family: var(--head); background: var(--bg2); }
.prose code { font: 0.9em var(--mono); background: var(--bg2); padding: 1px 5px; border-radius: 3px; }
.prose pre { background: var(--bg2); padding: 14px; overflow-x: auto; border: 1px solid var(--rule); }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 18px 0; padding: 4px 18px; border-left: 4px solid var(--accent); color: var(--muted); }
.prose iframe { max-width: 100%; border: 0; }
.prose img { border-radius: 4px; }

/* --- footer ---------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--ink-muted); font-size: 13.5px; padding: 28px 0; }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer a:hover { color: var(--accent); }

/* --- small screens --------------------------------------------------------- */
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .topnav { flex-wrap: wrap; height: auto; min-height: 64px; }
  .topnav .links { display: none; width: 100%; flex-direction: column; gap: 0; padding: 4px 0 14px; }
  .topnav .links a { padding: 9px 0; border-top: 1px solid var(--ink-line); }
  .topnav .links a.on { box-shadow: none; color: var(--accent); }
  .topnav.open .links { display: flex; }
  .topnav.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .topnav.open .menu-btn span:nth-child(2) { opacity: 0; }
  .topnav.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero { grid-template-columns: 1fr; padding: 24px 0 56px; gap: 28px; }
  .hero h1 { font-size: 40px; }
  .portrait { width: 130px; height: 156px; order: -1; box-shadow: 8px 8px 0 var(--accent); }
  .portrait--initials { font-size: 36px; }
  .pagehead h1 { font-size: 34px; }
  .themes, .proj, .tiles { grid-template-columns: 1fr; }
  .search { margin-left: 0; width: 100%; min-width: 0; }
  main section { padding: 44px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .band .space, .menu-btn, .toolbar, .toggle, .footer { display: none; }
  .band { background: none; color: #000; }
  .pagehead h1, .hero h1, .brand { color: #000; }
}

/* --- project cards with expandable description ------------------------------ */
.proj > details { cursor: default; }
.proj summary { list-style: none; cursor: pointer; }
.proj summary::-webkit-details-marker { display: none; }
.proj summary .t { font-weight: 600; }
.proj summary .more-hint { display: inline-block; margin-top: 6px; font: 600 12.5px var(--head); color: var(--accent-text); }
.proj details[open] .more-hint { display: none; }
.proj details p { font-size: 14.5px; color: var(--muted); margin: 10px 0 0; }
.proj details a { border-bottom: 2px solid var(--accent); font: 600 13px var(--head); }
.proj { align-items: start; }

/* --- click-to-load videos ------------------------------------------------------ */
.video { position: relative; aspect-ratio: 16 / 9; max-width: 820px; background: var(--ink); border-radius: 6px; overflow: hidden; margin: 14px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-consent { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; background: radial-gradient(circle at 50% 40%, #1c3550, var(--ink)); color: #e8eef5; border: 0; cursor: pointer; font: 600 16px var(--head); }
.video-consent .play { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-size: 24px; }
.video-consent small { font: 400 12.5px var(--body); color: var(--ink-muted); }
.video-consent:hover .play { transform: scale(1.06); }

/* --- home: theme links, compact publication cards ---------------------------- */
.theme { display: flex; flex-direction: column; }
.theme-links { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.theme-links a { font: 600 14px var(--head); color: var(--text); display: flex; justify-content: space-between; gap: 10px;
                 padding: 7px 0 5px; border-bottom: 1px solid var(--rule); }
.theme-links a span { color: var(--accent-text); white-space: nowrap; }
.theme-links a:hover { color: var(--accent-text); border-bottom-color: var(--accent); }
.pub.compact .t a { color: inherit; }
.pub.compact .t a:hover { color: var(--accent-text); }

/* --- generic page blocks: buttons, timeline (CV), cards ------------------------ */
.pagebuttons { margin: 0 0 8px; }
.btn { display: inline-block; font: 700 14px var(--head); padding: 9px 18px; background: var(--ink); color: #fff;
       border-radius: 4px; box-shadow: inset 0 -3px 0 var(--accent); }
.btn:hover { background: var(--accent); color: var(--ink); }
.tl-head { font-size: 24px; margin: 40px 0 14px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); max-width: 900px; }
.timeline li { position: relative; display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 10px 0 14px 24px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 17px; width: 12px; height: 12px; border-radius: 50%;
                       background: var(--paper); border: 2px solid var(--accent2); }
.timeline li:first-child::before { background: var(--accent2); }
.timeline .when { font: 700 14px/1.6 var(--head); color: var(--muted); }
.timeline .what strong { display: block; font-weight: 600; }
.timeline .what span { display: block; color: var(--muted); font-size: 15px; }
.timeline a, .card p a { color: var(--text); border-bottom: 1px solid var(--accent); }
.timeline a:hover, .card p a:hover { color: var(--accent-text); }

.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-top: 8px; }
.card { display: flex; flex-direction: column; background: var(--paper); color: var(--text); border: 1px solid var(--rule);
        border-top: 3px solid var(--accent2); padding: 18px 20px; transition: transform .15s, box-shadow .15s; }
.card--link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(13,27,42,.35); }
.card h3 { font: 700 17px/1.3 var(--head); margin: 0 0 8px; }
.card p { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.card-label { font: 700 11px/1.6 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--accent2); margin-bottom: 4px; }
.card-meta { font-size: 13.5px; color: var(--muted); }
.card-go { margin-top: auto; padding-top: 10px; align-self: flex-start; font: 700 14px var(--head); color: var(--text);
           border-bottom: 2px solid var(--accent); }
.card--link .card-go { border: 0; font: 600 13px var(--head); color: var(--accent-text); }
.card--link:hover h3, a.card-go:hover { color: var(--accent-text); }
.tile .card-label { margin-bottom: 2px; }
@media (max-width: 860px) {
  .timeline li { grid-template-columns: 1fr; gap: 0; }
}
.prose + .tiles, .prose + .cardgrid { margin-top: 28px; }
.count .reset { margin-left: 14px; font: 600 13px var(--head); color: var(--accent-text); background: none; border: 0; padding: 0; cursor: pointer; }
.count .reset:hover { text-decoration: underline; }

/* --- co-author network (publications page) ------------------------------------
   Dark stage in the style of the organigram "showcase": glowing dots, frosted-glass controls,
   a detail sheet that slides in. Dot size and line thickness = number of joint papers;
   colour = the home-page research theme most joint papers belong to. */
.net-head h2 { margin-bottom: 8px; }
.net-head p { margin: 0 0 22px; color: var(--muted); max-width: 760px; }
#coauthor-stage { --stage: #0b1622; --glass: rgba(22,32,46,.66); --glass-line: rgba(255,255,255,.10);
  position: relative; height: min(76vh, 720px); min-height: 520px; border-radius: 22px; overflow: hidden; background: var(--stage);
  box-shadow: 0 30px 70px -24px rgba(13,27,42,.55), 0 2px 6px rgba(0,0,0,.08); isolation: isolate; color: #eef3f8; }
#coauthor-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(900px 520px at 50% 45%, rgba(96,165,250,.10), transparent 65%),
              radial-gradient(700px 420px at 100% 110%, rgba(45,212,191,.06), transparent 60%); }
#coauthor-stage #network { position: absolute; inset: 0; z-index: 1; }
#coauthor-stage .stage-msg { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; color: rgba(238,243,248,.6);
  font: 500 15px var(--head); pointer-events: none; transition: opacity .6s; }
#coauthor-stage.ready .stage-msg { opacity: 0; }
#coauthor-stage .glass { background: var(--glass); backdrop-filter: saturate(170%) blur(18px); -webkit-backdrop-filter: saturate(170%) blur(18px);
  border: 1px solid var(--glass-line); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
#coauthor-stage .hud { position: absolute; z-index: 3; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; pointer-events: none; }
#coauthor-stage .hud > * { pointer-events: auto; }
#coauthor-stage .net-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; min-width: 230px; }
#coauthor-stage .net-search svg { width: 15px; height: 15px; stroke: rgba(255,255,255,.6); fill: none; stroke-width: 2; flex: none; }
#coauthor-stage .net-search input { background: transparent; border: 0; outline: 0; width: 100%; font: 14px var(--body); color: #fff; }
#coauthor-stage .net-search input::placeholder { color: rgba(255,255,255,.5); }
#coauthor-stage .seg { display: flex; padding: 3px; border-radius: 999px; gap: 2px; }
#coauthor-stage .seg button { border: 0; background: transparent; color: rgba(255,255,255,.75); font: 600 13px var(--head); height: 30px;
  padding: 0 13px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; white-space: nowrap; }
#coauthor-stage .seg button:hover { color: #fff; }
#coauthor-stage .seg button.on { background: rgba(255,255,255,.92); color: #0d1b2a; }
#coauthor-stage .key { position: absolute; z-index: 3; left: 16px; bottom: 16px; display: flex; gap: 16px; align-items: center;
  padding: 9px 16px; border-radius: 999px; font: 500 12px var(--head); color: rgba(255,255,255,.75); flex-wrap: wrap; max-width: calc(100% - 100px); }
#coauthor-stage .key span { display: inline-flex; align-items: center; gap: 6px; }
#coauthor-stage .key i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
#coauthor-stage .zoom { position: absolute; z-index: 3; right: 16px; bottom: 16px; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; }
#coauthor-stage .zoom button { width: 38px; height: 38px; border: 0; background: transparent; color: rgba(255,255,255,.8); cursor: pointer; display: grid; place-items: center; }
#coauthor-stage .zoom button + button { border-top: 1px solid var(--glass-line); }
#coauthor-stage .zoom button:hover { background: rgba(255,255,255,.08); color: #fff; }
#coauthor-stage .zoom svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
#coauthor-stage .sheet { position: absolute; z-index: 4; top: 66px; right: 16px; bottom: 16px; width: min(380px, calc(100% - 32px)); border-radius: 20px;
  overflow: hidden; display: flex; flex-direction: column; transform: translateX(calc(100% + 40px)); opacity: 0;
  transition: transform .5s cubic-bezier(.22,.61,.36,1), opacity .35s; }
#coauthor-stage .sheet.open { transform: none; opacity: 1; }
#coauthor-stage .sheet .scroll { overflow-y: auto; padding: 22px 22px 26px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
#coauthor-stage .sheet .x { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; z-index: 2; }
#coauthor-stage .sheet .x:hover { background: rgba(255,255,255,.22); }
#coauthor-stage .sheet .x svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; }
#coauthor-stage .avatar { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #0b1622; font: 700 17px var(--head);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
#coauthor-stage .pair { display: flex; }
#coauthor-stage .pair .avatar + .avatar { margin-left: -12px; box-shadow: 0 0 0 3px #1a2533; }
#coauthor-stage .sheet h3 { font: 700 23px/1.15 var(--head); letter-spacing: -.02em; margin: 12px 0 0; color: #fff; }
#coauthor-stage .sheet .sub { color: rgba(255,255,255,.62); font-size: 14px; margin-top: 4px; }
#coauthor-stage .pill { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font: 600 12px var(--head); padding: 4px 11px 4px 9px;
  border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; }
#coauthor-stage .pill i { width: 9px; height: 9px; border-radius: 50%; }
#coauthor-stage .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
#coauthor-stage .num { background: rgba(255,255,255,.07); border-radius: 14px; padding: 12px 12px 10px; }
#coauthor-stage .num b { display: block; font: 700 25px/1 var(--head); letter-spacing: -.03em; color: #fff; }
#coauthor-stage .num span { display: block; font-size: 12px; color: rgba(255,255,255,.58); margin-top: 5px; line-height: 1.3; }
#coauthor-stage .btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
#coauthor-stage .btns button, #coauthor-stage .btns a { font: 600 13px var(--head); height: 30px; padding: 0 13px; border-radius: 999px; border: 0;
  display: inline-flex; align-items: center; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; text-decoration: none; }
#coauthor-stage .btns .primary { background: #fff; color: #0d1b2a; }
#coauthor-stage .btns button:hover, #coauthor-stage .btns a:hover { background: rgba(255,255,255,.2); }
#coauthor-stage .btns .primary:hover { background: var(--accent); }
#coauthor-stage .lbl { margin: 22px 0 8px; font: 600 12px var(--head); color: rgba(255,255,255,.5); display: flex; justify-content: space-between; }
#coauthor-stage .people { list-style: none; margin: 0; padding: 0; }
#coauthor-stage .people li { display: grid; grid-template-columns: 10px minmax(0,1fr) 60px 22px; gap: 10px; align-items: center; padding: 7px 8px;
  margin: 0 -8px; border-radius: 10px; cursor: pointer; font-size: 14px; color: #eef3f8; }
#coauthor-stage .people li:hover { background: rgba(255,255,255,.07); }
#coauthor-stage .people i { width: 9px; height: 9px; border-radius: 50%; }
#coauthor-stage .people .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#coauthor-stage .people .n { text-align: right; color: rgba(255,255,255,.6); font-size: 13px; }
#coauthor-stage .meter { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
#coauthor-stage .meter b { display: block; height: 100%; border-radius: 4px; background: rgba(255,255,255,.55); }
#coauthor-stage .papers { list-style: none; margin: 0; padding: 0; }
#coauthor-stage .papers li { padding: 11px 0; border-top: 1px solid rgba(255,255,255,.08); }
#coauthor-stage .papers li:first-child { border-top: 0; padding-top: 2px; }
#coauthor-stage .papers a { color: #fff; font-weight: 600; font-size: 14px; line-height: 1.38; text-decoration: none; }
#coauthor-stage .papers a:hover { text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
#coauthor-stage .papers div { margin-top: 3px; font-size: 12.5px; color: rgba(255,255,255,.55); }
#coauthor-stage div.vis-tooltip { font: 12.5px/1.4 var(--body) !important; color: #0d1b2a !important; background: rgba(255,255,255,.96) !important;
  border: 0 !important; border-radius: 9px !important; padding: 6px 10px !important; box-shadow: 0 8px 26px rgba(0,0,0,.35) !important; }
.net-hint { margin: 10px 0 34px; font: 500 12.5px var(--head); color: var(--muted); }
@media (max-width: 760px) {
  #coauthor-stage { height: 74vh; border-radius: 16px; }
  #coauthor-stage .key { display: none; }
  #coauthor-stage .net-search { min-width: 0; flex: 1; }
  #coauthor-stage .sheet { top: auto; height: 62%; left: 10px; right: 10px; bottom: 10px; width: auto; transform: translateY(calc(100% + 30px)); }
}
@media (prefers-reduced-motion: reduce) { #coauthor-stage * { transition: none !important; } }
.pub.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 3px transparent; } }
/* AND / OR switch for the publication filters */
.count .combine { display: inline-flex; align-items: center; gap: 0; margin-right: 14px; font: 600 12.5px var(--head); color: var(--muted); }
.count .combine button { font: 700 11.5px var(--head); letter-spacing: .04em; padding: 3px 9px; border: 1px solid var(--rule); background: var(--paper);
                         color: var(--muted); cursor: pointer; }
.count .combine button:first-of-type { margin-left: 8px; border-radius: 4px 0 0 4px; }
.count .combine button:last-of-type { border-left: 0; border-radius: 0 4px 4px 0; }
.count .combine button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
