:root{color-scheme:light;--bg:#fff;--border:#e8e8e8;--muted:#666;--text:#242424;--link:#365b78;--green:#2d7047;--orange:#8e5a20}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--bg);color:var(--text);font:14px/1.65 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
main{max-width:1320px;margin:auto;padding:32px 40px}
header{display:flex;align-items:center;margin-bottom:32px}
.header-title{border-left:1px solid #d4d4d4;padding-left:18px;margin:0 0 0 18px;font-size:15px;line-height:22px;font-weight:550;color:var(--text)}
h1.header-title{display:flex;flex:1;flex-wrap:wrap;column-gap:5px;min-width:0;margin-right:12px}
h1.header-title+.github-link{flex-shrink:0}
.header-title span{white-space:nowrap}
#citation-total{color:var(--muted);font-weight:400}
.github-link{display:flex;align-items:center;justify-content:center;width:32px;height:32px;margin-left:auto;color:var(--muted)}
.github-link:hover{color:var(--text)}
.github-link svg{display:block}
.brand{font-size:22px;font-weight:650;letter-spacing:-.7px;color:var(--text)}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--link);outline-offset:4px}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:72px}
.layout>section,.layout>aside{min-width:0}
h2{font-size:15px;font-weight:550;margin:0 0 12px}
.section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0 0 16px}
.section-heading h2{font-size:15px;font-weight:550;margin:0}
button{font:inherit;color:var(--link);background:none;border:0;cursor:pointer;padding:4px 0}
button:hover{text-decoration:underline;text-underline-offset:3px}
button:disabled{opacity:.5;cursor:wait}
input,select{background:#fff;border:1px solid var(--border);border-radius:4px;color:var(--text);padding:10px 12px;font:inherit;min-width:0}
input[type=search]{display:block;width:100%}
.search-label,.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
#filters{border:1px solid #dfe3e6;border-radius:7px;padding:0 10px 5px}
#filters input,#filters select{background:transparent;border-color:transparent;border-radius:0}
#filters input:focus,#filters select:focus,#filters button:focus{outline:none}
.search-row{display:flex;gap:10px;border-bottom:1px solid var(--border)}
.search-row input{flex:1}
.search-row button{flex-shrink:0}
.filter-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,1.5fr) auto;gap:10px;margin-top:5px}
#sort{max-width:145px}
.filter-row input,.filter-row select{width:100%;padding:3px 8px;font-size:12px;line-height:1.4;height:26px}
.filter-button{padding:7px 12px;border:1px solid transparent;border-radius:4px}
#publications{padding-top:16px}
.pub{padding:18px 0;border-bottom:1px solid var(--border)}
.pub .title{display:block;color:var(--text);font-size:18px;line-height:1.5;font-weight:500;letter-spacing:-.15px;margin:0 0 4.5px}
.pub .summary{margin:0 0 6px;line-height:1.45;overflow-wrap:anywhere}
.pub-body.with-figure{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:18px;align-items:stretch}
.pub-text{min-width:0}
.pub-thumbnail{display:block;position:relative;min-width:0;min-height:135px;width:100%;padding:0;overflow:hidden;border:0;border-radius:0;background:transparent;color:var(--muted)}
.figure-toggle{position:absolute;inset:0;width:100%;height:100%;padding:0}
.figure-toggle:disabled{opacity:1;cursor:default}
.figure-toggle:focus-visible{outline-offset:-3px}
.pub-thumbnail img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;background:#fff}
.pub-thumbnail.loaded img{opacity:1}
.pub-body.figure-expanded{grid-template-columns:minmax(0,1fr);gap:0}
.figure-expanded .pub-text{display:contents}
.figure-expanded .pub-meta{grid-row:1}
.figure-expanded .summary{grid-row:2}
.figure-expanded .pub-thumbnail{grid-row:3;margin:8px 0 12px;min-height:240px}
.figure-expanded .pub-thumbnail.loaded{min-height:0}
.figure-expanded .pub-thumbnail.loaded img{position:static;width:100%;height:auto}
.figure-expanded .categories{grid-row:4}
.abstract-toggle{padding:0;color:var(--muted);white-space:nowrap}
.pub-meta{display:flex;flex-wrap:wrap;align-items:center;gap:3.5px 18px;color:var(--muted);font-size:12px;margin-bottom:6px}
.pub-meta .identity{font:11px/1.7 ui-monospace,monospace}
.categories{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:12px;color:var(--muted)}
.pub .categories{row-gap:4px}
.categories .primary{color:var(--link)}
.more{display:block;margin:24px auto}
aside section{padding:0 0 26px;margin:0 0 26px;border-bottom:1px solid var(--border)}
aside section:last-child{border:0}
aside p{font-size:13px;color:var(--muted);margin:10px 0}
aside a{font-size:13px}
.about-sidebar{align-self:start;background:#f7f7f6;border-radius:6px;padding:22px}
.about-sidebar pre{background:#eaecea}
.about-sidebar section{padding-bottom:22px;margin-bottom:22px}
.about-sidebar section>p:last-child{margin-bottom:0}
.about-sidebar .sidebar-notes p,.about-sidebar .sidebar-notes a{font-size:12px}
pre{font:12px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;background:#f8f9fa;padding:14px 16px;border-radius:3px}
code,.mono{font:12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}
.problem{padding:16px 0;color:var(--orange);overflow-wrap:anywhere}
.empty{padding:28px 0;color:var(--muted)}
.small,.muted{color:var(--muted);font-size:12px}
.skip{position:absolute;left:16px;top:-100px;background:white;padding:12px;z-index:2}
.skip:focus{top:16px}
.back{display:block;font-size:13px;margin:-12px 0 30px}
.publication-heading{max-width:870px;margin-bottom:34px}
.publication-heading h1{font-size:clamp(25px,3vw,34px);line-height:1.35;font-weight:550;letter-spacing:-.5px;margin:12px 0 20px}
.abstract{font-size:16px;line-height:1.55;white-space:pre-wrap;margin:0 0 20px}
.keywords{font-size:12px;color:var(--muted);margin-bottom:12px}
.dates{display:flex;gap:20px;flex-wrap:wrap;color:var(--muted);font-size:12px}
.reader-layout{gap:64px}
figure{margin:0 0 32px}
figure img{display:block;max-width:100%;height:auto;margin:0 auto}
figcaption{margin-top:12px;font-size:13px;color:var(--muted);white-space:pre-wrap}
.readme{font-size:15px;line-height:1.8;overflow-wrap:anywhere}
.readme h1{font-size:25px;font-weight:550;margin:24px 0 14px}
.readme h2{font-size:20px;font-weight:550;margin:28px 0 14px}
.readme h3{font-size:17px;font-weight:550;margin:22px 0 12px}
.readme p{margin:0 0 16px}
.readme pre{overflow-x:auto;white-space:pre}
.readme blockquote{border-left:2px solid var(--border);padding-left:20px;margin:20px 0;color:var(--muted)}
.readme table{display:block;overflow-x:auto;border-collapse:collapse;max-width:100%;font-size:13px;margin:20px 0}
.readme th,.readme td{padding:9px 14px;border-bottom:1px solid var(--border);text-align:left}
.readme.plain{white-space:pre-wrap}
dl{margin:16px 0}
dt{color:var(--muted);font-size:12px;margin:16px 0 4px}
dd{margin:0}
.verified{color:var(--green)}
.downloads a{display:block;padding:4px 0}
#file-list{background:none;padding:0}
.citations-section{border-top:1px solid var(--border);padding-top:25px;margin-top:36px}
.citation{padding:12px 0;border-bottom:1px solid #f1f1f1}
.citation:last-child{border:0}
.citation p{margin:5px 0;color:var(--muted);font-size:13px;white-space:pre-wrap}
.citation .relation{font-size:11px;color:var(--muted);margin-right:10px;text-transform:uppercase;letter-spacing:.04em}
.citation .target{font-size:12px;overflow-wrap:anywhere}
@media(max-width:1000px){.layout{gap:38px;grid-template-columns:minmax(0,1fr) 250px}main{padding:28px}}
@media(max-width:760px){main{padding:22px}.layout{grid-template-columns:minmax(0,1fr);gap:40px}header{margin-bottom:34px}.publication-heading h1{font-size:28px}aside{border-top:1px solid var(--border);padding-top:26px}.pub .title{font-size:17px}}
@media(max-width:430px){.dates{gap:8px}.publication-heading h1{font-size:25px}}
@media(max-width:760px){
  .search-row{gap:4px}
  .search-row input{padding:10px 8px;font-size:16px}
  .search-row .filter-button{padding:8px 4px;min-height:44px}
  .filter-row{grid-template-columns:minmax(0,1fr) auto;gap:0 8px;margin-top:0}
  .filter-row select{height:34px;padding:7px 4px}
  .pub-body.with-figure{grid-template-columns:minmax(0,1fr);gap:0}
  .with-figure .pub-text{display:contents}
  .with-figure .pub-meta{grid-row:1}
  .with-figure .summary{grid-row:2}
  .with-figure .pub-thumbnail{grid-row:3;width:100%;margin:8px 0 12px;min-height:240px}
  .with-figure .pub-thumbnail.loaded{min-height:0}
  .with-figure .pub-thumbnail.loaded img{position:static;width:100%;height:auto}
  .with-figure .categories{grid-row:4}
  .figure-toggle{display:none}
  #headline img{width:100%}
}

.pub-heading{display:flex;align-items:baseline;gap:18px}
.pub-heading .title{flex:1;min-width:0}
.citation-count{flex:none;color:#555;white-space:nowrap;font-size:18px;line-height:1.5;font-weight:500;letter-spacing:-.15px;font-variant-numeric:tabular-nums}
.citation-count svg{width:12px;height:12px;margin-right:2px;vertical-align:0;fill:none;color:var(--muted)}
@media(max-width:760px){.pub-heading{gap:16px}.citation-count{font-size:17px}}
#filters :is(input,select,button):focus-visible{outline:2px solid var(--link);outline-offset:1px;border-radius:3px}

/* --- Sciscape additions --- */
h1.header-title{margin:0 12px 0 18px}
.pub-meta .accounts{display:inline-flex;flex-wrap:wrap;gap:4px 10px}
.account a,.account span{font-size:12px}
.account.lapsed{opacity:.75}
.lapsed-mark{color:var(--orange);margin-left:1px}
.revoked{color:var(--orange);font-size:12px}
.active-filters{font-size:12px;color:var(--muted);margin:10px 0 0;display:flex;flex-wrap:wrap;gap:6px 14px;overflow-wrap:anywhere}
.filter-row{grid-template-columns:minmax(100px,1.2fr) minmax(0,1.2fr) minmax(0,1fr) auto}
#filters #key,#filters #domain,#filters #sort{border-left-color:#e4e7e9}
a.more{text-align:center;width:max-content;max-width:100%}
.pager-start{text-align:center;font-size:12px}
.pub-thumbnail.failed{display:flex;align-items:center;justify-content:center;min-height:60px}
.data-label{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:0 0 8px}
.message{max-width:720px}
.message h1{font-size:24px;font-weight:550;margin:0 0 16px}
.archive-form{display:grid;gap:8px;max-width:560px;margin-top:20px}
.archive-form button,.online-form button{justify-self:start;padding:6px 14px;border:1px solid var(--border);border-radius:4px}
.prefix-matches li{margin:10px 0}
.plain-list{list-style:none;margin:0;padding:0}
.plain-list li{margin:2px 0}
.citation-list{padding-left:20px;margin:0}
.record dd{overflow-wrap:anywhere}
.reader{margin-bottom:36px}
.reader h2{margin-top:0}
.reader-status{color:var(--muted);font-size:13px}
.reader-status.problem,.problem{color:var(--orange)}
.reader-status.ok{color:var(--green)}
.verification{border:1px solid var(--border);border-radius:6px;padding:14px 18px;margin:0 0 24px}
.verification h3{margin:0 0 6px;font-size:14px}
.verdict{font-weight:600;margin:0 0 6px}
.verdict.ok,.ok{color:var(--green)}
.verdict.warn,.warn{color:var(--orange)}
.fail{color:var(--orange)}
.checks{margin:0 0 8px;padding-left:18px;font-size:13px}
.checks li{margin:2px 0}
.checks li:not(.ok):not(.fail){color:var(--muted)}
button.action,button.download{color:var(--link)}
.verified-publication section{margin:0 0 28px}
.verified-publication h3{font-size:15px;font-weight:550;margin:0 0 10px}
.verified-metadata h2{font-size:24px;font-weight:550;line-height:1.35;margin:0 0 12px}
.evidence dt{font-weight:500}
.evidence p{margin:2px 0}
.license-text{max-height:360px;overflow:auto}
.table-wrap{overflow-x:auto}
table.files{border-collapse:collapse;font-size:12px;width:100%}
table.files th,table.files td{text-align:left;padding:6px 10px 6px 0;border-bottom:1px solid var(--border);vertical-align:top}
table.files .hash{max-width:220px;overflow-wrap:anywhere;color:var(--muted)}
.unresolved-link{border-bottom:1px dotted var(--muted)}
.readme a.external::after{content:" ↗";font-size:11px}
.source-failures{border-left:3px solid var(--orange);padding:4px 0 4px 14px;margin:0 0 20px;font-size:13px}
.source-failures h3{font-size:14px;margin:0 0 6px}
.reader-inputs{border-top:1px solid var(--border);padding-top:20px;margin-top:24px}
.input-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.input-grid form{display:grid;gap:6px;align-content:start}
.input-grid h3{margin:0;font-size:14px}
.input-grid label{font-size:12px;color:var(--muted)}
.docs{max-width:900px}
.docs h1{font-size:26px;font-weight:550}
.docs h2{margin-top:32px}
.docs .route{border-top:1px solid var(--border);padding-top:14px;margin-top:14px}
.docs .route h3{font-size:14px;font-weight:550;margin:0 0 6px}
.docs .method{font:600 11px/1 ui-monospace,monospace;background:#eef2f5;padding:3px 6px;border-radius:3px;margin-right:4px}
.docs pre{overflow-x:auto;white-space:pre}
.protocol{overflow-wrap:anywhere}
.protocol-source{margin:0 0 28px;padding:18px 0;border-block:1px solid var(--border)}
.protocol-source > a{display:inline-flex;align-items:center;gap:8px;font-size:13px}
.protocol-source svg{flex-shrink:0}
.protocol-contents{margin-top:14px;font-size:13px}
.protocol-contents summary{cursor:pointer;font-weight:550;width:fit-content}
.protocol-contents summary:focus-visible{outline:2px solid var(--link);outline-offset:4px}
.protocol-contents ol{list-style:none;margin:12px 0 0;padding:0}
.protocol-contents li{margin:5px 0}
.protocol-contents ol ol{margin:4px 0 8px;padding-left:18px}
.protocol-contents details > ol{columns:2;column-gap:32px}
.protocol-contents details > ol > li{break-inside:avoid;margin:0 0 12px}
.protocol-contents details > ol > li > a{font-weight:550}
@media(max-width:760px){.protocol-contents details > ol{columns:1}}
.protocol :is(h1,h2,h3,h4){scroll-margin-top:24px}
.protocol :is(th,td){overflow-wrap:normal;vertical-align:top}
@media(max-width:760px){.input-grid{grid-template-columns:1fr}.filter-row{grid-template-columns:minmax(0,1fr) auto}#filters #sort{grid-row:1;grid-column:2}#filters #key,#filters #domain{grid-column:1/-1;height:34px;padding:7px 8px;font-size:12px;border-left-color:transparent;border-top-color:var(--border)}}

/* Shared publication/reader composition: article first, supporting tools at right. */
.reader-page,.publication,.reader-output,.verified-publication{min-width:0}
.reader-sidebar{min-width:0;align-self:start;overflow-wrap:anywhere}
.reader-sidebar .reader-status:empty,.reader-feedback:empty{display:none}
.reader-sidebar .reader-status{margin:0 0 18px;font-size:12px}
.reader-sidebar h3{font-size:15px;font-weight:550;margin:0 0 10px}
.reader-sidebar section{margin:0 0 24px;padding:0 0 24px;border-bottom:1px solid var(--border)}
.reader-sidebar .verification{border:0;border-bottom:1px solid var(--border);border-radius:0;padding:0 0 24px}
.reader-sidebar .verdict{font-size:13px;margin:0 0 8px}
.reader-sidebar summary{cursor:pointer;color:var(--link);font-size:13px;line-height:1.6}
.reader-sidebar details[open]>summary{margin-bottom:12px}
.reader-sidebar .checks{font-size:12px;padding-left:17px;margin-top:12px}
.reader-sidebar .verified-metadata h3{font-size:14px;line-height:1.5}
.reader-sidebar .verified-metadata .abstract{font-size:13px;line-height:1.6}
.reader-sidebar .verified-metadata .categories{margin-bottom:10px}
.reader-sidebar .input-grid{grid-template-columns:minmax(0,1fr);gap:22px;margin-top:16px}
.reader-sidebar .input-grid form{min-width:0}
.reader-sidebar input{width:100%;max-width:100%;font-size:12px;padding:8px}
.reader-sidebar input[type=file]{padding:6px 0;border:0}
.reader-sidebar .reader-inputs{border-top:0;margin-top:0;padding-top:0}
.reader-sidebar table.files,.reader-sidebar table.files tbody{display:block;width:100%}
.reader-sidebar table.files thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.reader-sidebar table.files tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;border-bottom:1px solid var(--border);padding:10px 0}
.reader-sidebar table.files td{padding:0;border:0;min-width:0}
.reader-sidebar table.files .hash{grid-column:1/-1;max-width:none;font-size:10px}
.reader-sidebar .files-section .table-wrap{overflow:visible}
.reader-sidebar .verified-citations{margin-bottom:24px;padding-bottom:24px;border-bottom:1px solid var(--border)}
.reader-sidebar .verified-citations .citations-section{border:0;padding-top:0;margin-top:12px}
.reader-sidebar .source-failures ul{padding-left:16px}
.reader-sidebar dl{margin-top:0}
.verified-publication .readme-section{margin-bottom:32px}
.publication-heading .metadata{margin:0}
.reader-layout #reader-app{margin-bottom:0}
.reader-sidebar .license-text{font-size:11px}
@media(max-width:760px){
  .reader-sidebar{border-top:1px solid var(--border);padding-top:26px}
  .reader-sidebar .input-grid{grid-template-columns:minmax(0,1fr)}
  .publication-heading{max-width:100%}
}

/* On-demand file retrieval and archive ZIP fallback. */
.file-download{overflow-wrap:anywhere}
.file-download p{margin:6px 0}
.zip-fallback{margin-top:8px}
.download-notice{margin:12px 0;padding:12px;border:1px solid var(--border);border-radius:6px}
.download-notice>p{margin:0 0 6px;font-family:var(--mono);font-size:12px}
.reader-sidebar table.files td:last-child{grid-column:1/-1}

/* Content reports: one compact dialog for catalog and reader pages. */
button.report-link{font:inherit;font-size:12px;color:#a02a2a;padding:0;text-decoration:underline;text-underline-offset:3px;background:none;border:0;cursor:pointer}
button.report-link:hover{color:#761b1b}
.report-dialog{width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 48px);overflow:auto;padding:28px;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--text);box-shadow:0 16px 70px #0002}
.report-dialog::backdrop{background:#0005}
.report-dialog h2{font-size:21px;font-weight:600;margin:0 0 22px}
.report-dialog label{display:block;font-size:13px;font-weight:550;margin:16px 0 7px}
.report-dialog input,.report-dialog textarea{width:100%;box-sizing:border-box;border:1px solid #ccc;border-radius:5px;padding:10px;font:inherit;background:var(--bg);color:var(--text)}
.report-dialog input{font:11px/1.5 ui-monospace,monospace;background:#f7f7f7}
.report-dialog textarea{resize:vertical;min-height:120px}
.report-dialog :focus-visible{outline:2px solid var(--link);outline-offset:2px}
.report-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}
.report-actions button{font:inherit;padding:8px 14px;border-radius:5px;cursor:pointer}
.report-actions .report-submit{color:white;background:var(--link);border:1px solid var(--link)}
.report-actions button:disabled{opacity:.6;cursor:wait}
.report-status{color:#a02a2a;font-size:13px;margin:10px 0}
.report-status:empty{display:none}
.report-reference{overflow-wrap:anywhere}

@media(max-width:600px){
button.report-link{min-height:44px;min-width:44px}
.report-dialog{padding:20px;max-height:calc(100dvh - 24px)}
.report-dialog textarea,.report-actions button{font-size:16px}
.report-actions button{min-height:44px}
}
