:root{--bg:#050506;--panel:#0d0e10;--panel2:#121317;--line:#252831;--line2:#343845;--text:#f4f5f7;--muted:#9ca3ad;--soft:#c9ced6;--accent:#84b9ff;--accent2:#d99cff;--good:#9cd5ad;--danger:#ff9a9a;--max:1180px}*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--text)}body{margin:0;background:radial-gradient(circle at 50% -20%,#171923 0,#090a0d 32%,#050506 62%);min-height:100vh}a{color:var(--text);text-decoration:none}a:hover{color:#fff}.topbar{height:82px;background:rgba(5,5,6,.91);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:10px 24px;position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:14px}.brand img{width:52px;height:52px;object-fit:contain;border-radius:0;border:1px solid #ffffff20}.brand span{display:flex;flex-direction:column}.brand strong{font-size:1.12rem;letter-spacing:.03em}.brand small{color:var(--muted);font-size:.78rem}.brand.small img{width:38px;height:38px}.header-actions{display:flex;align-items:center;gap:16px}.langs{display:flex;gap:5px;flex-wrap:wrap}.langs a{font-size:.68rem;color:var(--muted);border:1px solid transparent;padding:6px 7px;border-radius:999px}.langs a:hover,.langs a.active{color:#fff;border-color:var(--line2);background:#15171c}.nav-toggle{display:none;background:#111318;border:1px solid var(--line2);color:#fff;border-radius:8px;padding:8px 10px}.layout{display:grid;grid-template-columns:310px minmax(0,1fr);min-height:calc(100vh - 82px)}.sidebar{background:rgba(8,9,11,.95);border-right:1px solid var(--line);padding:20px 17px;position:sticky;top:82px;height:calc(100vh - 82px);overflow:auto}.searchbox{display:grid;grid-template-columns:1fr auto;gap:7px;margin-bottom:24px}.searchbox input,.big-search{background:#0e1014;color:#fff;border:1px solid var(--line2);border-radius:9px;padding:11px 12px;outline:none}.searchbox input:focus,.big-search:focus{border-color:#5d7196}.searchbox button,.primary,.toolbar button,.editor-actions button,.admin-view button,.setup button{background:#171a20;color:#f5f5f5;border:1px solid var(--line2);border-radius:8px;padding:9px 12px;cursor:pointer}.primary{background:#e9edf4;color:#08090b;border-color:#e9edf4;font-weight:650}.searchbox button:hover,.toolbar button:hover,.editor-actions button:hover,.admin-view button:hover{border-color:#596170}.sidebar-section{margin:18px 0 28px}.sidebar-section h3{font-size:.72rem;text-transform:uppercase;letter-spacing:.13em;color:#c0c6cf;margin:0 7px 10px}.tree{list-style:none;padding-left:14px;margin:0}.tree:first-of-type{padding-left:0}.tree li{margin:3px 0}.tree a{display:block;color:#aeb5bf;font-size:.84rem;line-height:1.25;padding:6px 7px;border-radius:6px}.tree a:hover{background:#12151a;color:#fff}.sidebar-foot{border-top:1px solid var(--line);padding-top:15px;color:#727985;font-size:.72rem}.content{width:min(var(--max),100%);padding:44px 52px 90px}.hero{display:grid;grid-template-columns:210px minmax(0,1fr);align-items:center;gap:42px;padding:36px 10px 52px;border-bottom:1px solid var(--line)}.hero img{width:210px;height:210px;object-fit:contain;border-radius:0;box-shadow:0 0 80px #679aff18;border:1px solid #ffffff20}.eyebrow,.section-kicker{font-size:.71rem;letter-spacing:.17em;text-transform:uppercase;color:#a9b1bd;font-weight:700}.hero h1{font-size:clamp(2.6rem,7vw,6.3rem);line-height:.91;letter-spacing:-.055em;margin:8px 0 15px;max-width:760px}.tagline{font-size:1.1rem;color:#c6ccd4;letter-spacing:.06em}.two-corpora{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:32px 0}.corpus-card{position:relative;display:block;min-height:260px;padding:32px;border:1px solid var(--line2);border-radius:18px;background:linear-gradient(145deg,#101217,#0a0b0e)}.corpus-card.secondary{background:linear-gradient(145deg,#121015,#0a0b0e)}.corpus-card:hover{border-color:#596170;transform:translateY(-1px)}.corpus-card .n{font-size:.72rem;color:#727b87}.corpus-card h2{font-size:1.75rem;line-height:1.08;margin:55px 0 14px;max-width:420px}.corpus-card p{color:#aab1bb;line-height:1.65;max-width:560px}.search-panel,.filter-panel{margin-top:22px;padding:26px;border:1px solid var(--line);border-radius:14px;background:#0b0c0f}.search-panel h2{margin-top:0}.big-search{width:100%;font-size:1rem;margin-bottom:16px}.keyword-grid{display:flex;flex-wrap:wrap;gap:7px 12px;margin:10px 0}.keyword-grid label,.section-filter label{font-size:.82rem;color:#b9c0c9;background:#111318;border:1px solid var(--line);border-radius:999px;padding:7px 10px}.keyword-grid input,.section-filter input{accent-color:#d7dce4}.hint{font-size:.76rem;color:#7f8792}.section-filter{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.page-head{border-bottom:1px solid var(--line);padding:0 0 24px;margin-bottom:24px}.page-head h1,.article h1{font-size:clamp(2.15rem,4.6vw,4.4rem);line-height:1.02;letter-spacing:-.035em;margin:7px 0}.breadcrumbs{font-size:.76rem;color:#777f8b;margin-bottom:26px}.breadcrumbs a{color:#9ea6b2}.result-list{display:grid;gap:14px;margin-top:20px}.result-card{padding:24px 25px;border:1px solid var(--line);background:#0b0c0f;border-radius:13px}.result-card h2{font-size:1.28rem;margin:8px 0}.result-card p{color:#aab1ba;line-height:1.55}.type-pill{display:inline-flex;font-size:.67rem;text-transform:uppercase;letter-spacing:.1em;border:1px solid var(--line2);padding:5px 8px;border-radius:999px;color:#b8c1ce}.type-pill.corpus{border-color:#2e4d61;color:#a6d6f4}.type-pill.analysis{border-color:#55425e;color:#d8b5e6}.chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}.chips a{font-size:.72rem;color:#98a1ad;border:1px solid #2b2e35;border-radius:999px;padding:5px 8px}.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.category-card{border:1px solid var(--line);border-radius:12px;background:#0b0c0f;padding:20px}.category-card h3{margin:0;font-size:1rem}.article{max-width:940px}.article .chips{margin:17px 0 30px}.article-section{padding:30px 0;border-top:1px solid var(--line)}.article-section p,.article-section li{font-size:1.03rem;line-height:1.78;color:#d3d7dd}.article-section h2{font-size:1.7rem;margin-top:2.2rem}.article-section h3{font-size:1.28rem;margin-top:1.8rem}.article-section blockquote{border-left:3px solid #626b79;margin:1.5rem 0;padding:12px 20px;color:#b9c0c8;background:#0b0d11}.neutral{background:linear-gradient(90deg,#0b0c0f,#090a0c);padding:30px 28px;border:1px solid var(--line);border-radius:14px}.autismology-analysis{margin-top:18px;padding:30px 28px;border:1px solid #394250;border-radius:14px;background:linear-gradient(120deg,#0e1116,#0a0b0e)}.section-kicker{color:#c4cad3;margin-top:0}.sources{margin-top:36px;border-top:1px solid var(--line);padding-top:24px}.source{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #1d2026;font-size:.83rem}.source span{color:#8f97a2}.source a{color:#bcd8ff}.article-meta{font-size:.72rem;color:#747c87;margin-top:28px}.empty{color:#89919c;padding:30px 0}.admin-body{background:#08090b}.setup{width:min(520px,calc(100% - 32px));margin:8vh auto;padding:34px;border:1px solid var(--line);background:#0c0d10;border-radius:16px}.setup img{width:88px;height:88px;object-fit:contain;border-radius:0;display:block;margin-bottom:18px}.setup label,.editor-form label{display:grid;gap:6px;margin-bottom:13px;font-size:.82rem;color:#c4cad1}.setup input,.editor-form input,.editor-form select,.editor-form textarea,#ioJson{width:100%;background:#0d0f13;color:#f1f2f4;border:1px solid var(--line2);border-radius:8px;padding:10px;font:inherit}.setup form{display:grid;gap:12px}.error,.danger{color:var(--danger)!important}.admin-top{height:64px;display:flex;align-items:center;justify-content:space-between;padding:8px 18px;border-bottom:1px solid var(--line);background:#090a0c}.admin-shell{display:grid;grid-template-columns:170px minmax(0,1fr);height:calc(100vh - 64px)}.admin-nav{padding:14px 10px;border-right:1px solid var(--line);background:#090a0c}.admin-nav button{width:100%;display:block;text-align:left;border:0;background:transparent;color:#9ca3ad;padding:10px;border-radius:7px;margin-bottom:4px}.admin-nav button.active,.admin-nav button:hover{background:#15171c;color:#fff}.admin-main{overflow:hidden}.admin-view{display:none;height:100%}.admin-view.active{display:block}.admin-columns{display:grid;grid-template-columns:320px minmax(0,1fr);height:100%}.list-panel{border-right:1px solid var(--line);padding:14px;overflow:auto;background:#0a0b0d}.toolbar{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.item-row{width:100%;display:grid;grid-template-columns:22px 1fr;gap:7px;text-align:left;background:transparent!important;border:0!important;border-radius:7px;padding:8px 7px!important;color:#d6d9de!important}.item-row:hover{background:#13161b!important}.item-row small{display:block;color:#727a86;font-size:.67rem;margin-top:2px}.type-dot{width:8px;height:8px;border-radius:50%;margin:5px}.type-dot.corpus{background:#72c6f4}.type-dot.analysis{background:#d59be8}.editor-panel{padding:22px;overflow:auto;height:100%}.editor-form{max-width:1100px;border:1px solid var(--line);background:#0b0c0f;border-radius:12px;padding:22px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.keyword-admin{display:flex;flex-wrap:wrap;gap:6px 12px;background:#0d0f13;border:1px solid var(--line2);border-radius:8px;padding:10px}.keyword-admin label{display:flex;align-items:center;gap:4px;margin:0}.lang-tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);margin:20px 0 14px}.lang-tabs button{border:0!important;border-radius:0!important;background:transparent!important;color:#8d95a0!important}.lang-tabs button.active{color:#fff!important;border-bottom:2px solid #fff!important}.lang-pane{display:none}.lang-pane.active{display:block}.analysis-fields{display:none}.editor-form textarea{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;line-height:1.42;resize:vertical}.editor-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:13px}.admin-view code{color:#c5d9ff}.admin-view h4{color:#89919c;font-size:.69rem;text-transform:uppercase;letter-spacing:.1em;margin:18px 6px 7px}#ioJson{display:block;margin:15px 0}.small{font-size:.8rem}
@media(max-width:900px){.nav-toggle{display:block}.layout{display:block}.sidebar{position:fixed;z-index:19;left:-330px;top:82px;width:310px;transition:left .2s}.nav-open .sidebar{left:0}.content{padding:28px 18px 70px}.hero{grid-template-columns:115px 1fr;gap:20px}.hero img{width:115px;height:115px}.two-corpora{grid-template-columns:1fr}.source{grid-template-columns:1fr}.admin-shell{grid-template-columns:1fr;height:auto}.admin-nav{display:flex;overflow:auto;border-right:0;border-bottom:1px solid var(--line)}.admin-nav button{width:auto;white-space:nowrap}.admin-columns{grid-template-columns:1fr;height:auto}.list-panel{max-height:300px;border-right:0;border-bottom:1px solid var(--line)}.editor-panel{height:auto}.form-row{grid-template-columns:1fr}}
@media(max-width:560px){.topbar{padding:8px 12px}.brand img{width:44px;height:44px}.brand small{display:none}.langs a{padding:5px;font-size:.61rem}.hero{display:block;text-align:center}.hero img{margin:auto}.hero h1{margin-top:18px}.content{padding-top:18px}.corpus-card{min-height:210px;padding:24px}.corpus-card h2{margin-top:35px}.neutral,.autismology-analysis{padding:22px 18px}.article-section p,.article-section li{font-size:.98rem}.admin-top .brand span{display:none}}

/* v0.3: real articles, archive attachments, draft preview, print/PDF */
.brand img,.hero img,.setup img{background:transparent!important;border:0!important;box-shadow:none!important}
.hero img{filter:drop-shadow(0 0 34px rgba(120,170,255,.16))}
.analysis-format-note,.upload-box{border:1px solid var(--line);border-radius:10px;padding:14px;margin:14px 0;background:#0a0c10}
.doc-meta{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 6px;color:#8e97a4;font-size:.8rem}.doc-meta span{border:1px solid var(--line);border-radius:999px;padding:5px 9px}
.article-tools{display:flex;gap:8px;margin:18px 0}.article-tools button,.article-tools a{background:#15181e;color:#e9edf3;border:1px solid var(--line2);border-radius:8px;padding:8px 11px;font:inherit;cursor:pointer}
.preview-banner{border:1px solid #7c672d;background:#201b0c;color:#f2d987;padding:9px 12px;border-radius:8px;margin-bottom:18px;font-size:.78rem;font-weight:700;letter-spacing:.04em}
.article-toc{margin:26px 0 34px;padding:20px 24px;border:1px solid var(--line);background:#090b0e;border-radius:12px}.article-toc strong{font-size:.75rem;text-transform:uppercase;letter-spacing:.12em;color:#9ca5b1}.article-toc ol{columns:2;column-gap:34px;padding-left:20px}.article-toc li{break-inside:avoid;margin:5px 0;color:#7f8996;font-size:.82rem}.article-toc .toc-h2{margin-left:10px}.article-toc .toc-h3{margin-left:20px;font-size:.76rem}.article-toc a{color:#aeb6c2}.longform-text{border-top:1px solid var(--line)}
.article-section table{width:100%;border-collapse:collapse;margin:1.5rem 0;font-size:.9rem}.article-section th,.article-section td{border:1px solid #30343c;padding:9px 10px;text-align:left;vertical-align:top}.article-section th{background:#12151a}.article-section hr{border:0;border-top:1px solid var(--line);margin:2rem 0}.print-brand{display:none}
@media(max-width:760px){.article-toc ol{columns:1}}
@media print{
 @page{size:A4;margin:17mm 15mm 19mm 15mm}
 html,body{background:#fff!important;color:#111!important;font-family:Arial,sans-serif}.topbar,.sidebar,.breadcrumbs,.article-tools,.chips,.preview-banner{display:none!important}.layout{display:block!important}.content{width:auto!important;max-width:none!important;padding:0!important}.article{max-width:none!important}.print-brand{display:flex!important;align-items:center;gap:10px;border-bottom:1px solid #bbb;padding-bottom:8mm;margin-bottom:8mm}.print-brand img{width:22mm;height:22mm;object-fit:contain}.print-brand strong{font-size:17pt}.print-brand span{font-size:9pt;color:#555}.article h1{font-size:24pt;line-height:1.08;color:#111;margin:0 0 4mm}.doc-meta{color:#555}.doc-meta span{border-color:#bbb}.type-pill{color:#333!important;border-color:#999!important}.article-toc{background:#fff;border:1px solid #bbb;color:#111;break-inside:avoid}.article-toc a{color:#111}.article-section{border-color:#bbb!important;background:#fff!important;padding:6mm 0!important}.article-section p,.article-section li{font-size:10.5pt;line-height:1.48;color:#111!important}.article-section h1{font-size:18pt;margin-top:8mm;break-after:avoid}.article-section h2{font-size:14pt;color:#111;break-after:avoid}.article-section h3{font-size:12pt;color:#111;break-after:avoid}.article-section blockquote{background:#f5f5f5;color:#222!important;border-left-color:#777}.article-section a{color:#111;text-decoration:underline}.article-section table{font-size:8.5pt}.article-section th,.article-section td{border-color:#999}.sources{border-color:#aaa;break-before:auto}.source{grid-template-columns:1fr;border-color:#ccc;color:#111}.source span,.source a{color:#333}.article-meta{color:#555}.article-section h1,.article-section h2,.article-section h3{page-break-after:avoid}.article-section p,.article-section li{orphans:3;widows:3}
}

.field-help{display:block;color:#7f8792;font-size:.72rem;line-height:1.4;margin-top:3px}.rich-wrap{border:1px solid var(--line2);border-radius:10px;background:#0d0f13;overflow:hidden;margin-bottom:18px}.rich-toolbar{display:flex;gap:5px;flex-wrap:wrap;align-items:center;padding:8px;border-bottom:1px solid var(--line2);background:#111318;position:sticky;top:0;z-index:2}.rich-toolbar button,.rich-toolbar select{width:auto!important;min-width:auto;background:#171a20!important;color:#e8ebef!important;border:1px solid #343945!important;border-radius:6px!important;padding:6px 8px!important;font-size:.78rem!important;margin:0!important}.rich-toolbar select{padding-right:24px!important}.rich-editor{min-height:520px;padding:28px 34px;background:#0b0c0f;color:#eceff3;outline:none;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.72}.rich-editor:focus{box-shadow:inset 0 0 0 1px #58677f}.rich-editor p{margin:.65em 0}.rich-editor h1{font-size:2.15rem;line-height:1.12;margin:1.8em 0 .6em}.rich-editor h2{font-size:1.75rem;line-height:1.2;margin:1.7em 0 .55em}.rich-editor h3{font-size:1.4rem;line-height:1.25;margin:1.5em 0 .5em}.rich-editor h4{font-size:1.12rem;line-height:1.3;margin:1.35em 0 .45em}.rich-editor blockquote{border-left:3px solid #626b79;margin:1.2rem 0;padding:10px 18px;background:#0f1115;color:#c5cad2}.rich-editor a{color:#bcd8ff;text-decoration:underline}.rich-editor font[size="2"],.article-section font[size="2"]{font-size:.82em}.rich-editor font[size="3"],.article-section font[size="3"]{font-size:1em}.rich-editor font[size="4"],.article-section font[size="4"]{font-size:1.18em}.rich-editor font[size="5"],.article-section font[size="5"]{font-size:1.38em}.article-section>div[style*="text-align"],.article-section>p[style*="text-align"]{text-align:inherit}

/* v0.6: publications visible in navigation and homepage */
.tree-articles{margin-top:5px;margin-bottom:8px}.tree-article>a{font-size:.78rem!important;color:#aeb6c2!important;padding-top:5px!important;padding-bottom:5px!important}.tree-article>a:before{content:'•';margin-right:7px;color:#6f7d90}.latest-publications{margin:42px 0}.latest-publications>h2{font-size:1.2rem;margin-bottom:14px}.latest-list{display:grid;gap:8px}.latest-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:#0b0d10;color:#eef1f4}.latest-item:hover{background:#101318;border-color:var(--line2)}.latest-item strong{font-size:.95rem}.latest-item small{color:#7f8792;font-size:.75rem}.latest-item .type-pill{margin:0;white-space:nowrap}@media(max-width:650px){.latest-item{grid-template-columns:1fr}.latest-item small{display:block}}

/* v0.7 — public site: authentic Autistan blue-plastic background, compact hero, white publication sheets */
body:not(.admin-body){
  background:#395fd7 url('blue-plastic3.jpg') repeat fixed;
  color:#fff;
}
body:not(.admin-body) .topbar{
  background:rgba(21,58,170,.54);
  border-bottom:1px solid rgba(255,255,255,.28);
  backdrop-filter:blur(5px);
}
body:not(.admin-body) .brand strong,
body:not(.admin-body) .brand small,
body:not(.admin-body) .brand,
body:not(.admin-body) .header-actions,
body:not(.admin-body) .langs a{color:#fff}
body:not(.admin-body) .langs a:hover,
body:not(.admin-body) .langs a.active{
  color:#fff;
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.48);
}
body:not(.admin-body) .nav-toggle{
  background:rgba(10,42,140,.48);
  border-color:rgba(255,255,255,.35);
  color:#fff;
}
body:not(.admin-body) .sidebar{
  background:rgba(20,62,177,.46);
  border-right:1px solid rgba(255,255,255,.25);
  backdrop-filter:blur(3px);
}
body:not(.admin-body) .sidebar-section h3,
body:not(.admin-body) .tree a,
body:not(.admin-body) .tree-article>a,
body:not(.admin-body) .sidebar-foot,
body:not(.admin-body) .sidebar-foot a{color:#fff!important}
body:not(.admin-body) .tree a:hover{background:rgba(255,255,255,.15);color:#fff}
body:not(.admin-body) .sidebar-foot{border-color:rgba(255,255,255,.25)}
body:not(.admin-body) .searchbox input,
body:not(.admin-body) .big-search{
  background:#fff;
  color:#111;
  border-color:rgba(255,255,255,.82);
}
body:not(.admin-body) .searchbox input::placeholder,
body:not(.admin-body) .big-search::placeholder{color:#666}
body:not(.admin-body) .searchbox button,
body:not(.admin-body) .primary{
  background:#fff;
  color:#173a9d;
  border-color:#fff;
  font-weight:700;
}
body:not(.admin-body) .content{color:#fff}
body:not(.admin-body) .hero{
  grid-template-columns:120px minmax(0,1fr);
  gap:26px;
  padding:18px 8px 25px;
  border-bottom:1px solid rgba(255,255,255,.28);
}
body:not(.admin-body) .hero img{width:120px;height:120px;filter:drop-shadow(0 8px 18px rgba(0,0,70,.28))}
body:not(.admin-body) .hero h1{
  font-size:clamp(2rem,3.4vw,3.35rem);
  line-height:1.02;
  letter-spacing:-.025em;
  margin:5px 0 8px;
  max-width:720px;
  color:#fff;
}
body:not(.admin-body) .eyebrow,
body:not(.admin-body) .section-kicker,
body:not(.admin-body) .tagline{color:#fff}
body:not(.admin-body) .tagline{font-size:1rem;letter-spacing:.045em;margin:0}
body:not(.admin-body) .latest-publications{margin:30px 0 38px}
body:not(.admin-body) .section-heading{margin-bottom:14px}
body:not(.admin-body) .section-heading h2{font-size:1.55rem;margin:3px 0 0;color:#fff}
body:not(.admin-body) .latest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body:not(.admin-body) .publication-card,
body:not(.admin-body) .result-card{
  background:#fff;
  color:#171717;
  border:1px solid rgba(0,0,0,.12);
  border-radius:10px;
  padding:22px 24px;
  box-shadow:0 5px 18px rgba(10,28,85,.22);
}
body:not(.admin-body) .publication-card-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
body:not(.admin-body) .publication-card h3{font-size:1.25rem;line-height:1.22;margin:14px 0 9px}
body:not(.admin-body) .publication-card h3 a,
body:not(.admin-body) .result-card h2 a{color:#122b74}
body:not(.admin-body) .publication-card h3 a:hover,
body:not(.admin-body) .result-card h2 a:hover{color:#244fc0}
body:not(.admin-body) .publication-card p,
body:not(.admin-body) .result-card p{color:#333;line-height:1.58;margin:0 0 12px}
body:not(.admin-body) .publication-card small{color:#666;font-size:.75rem}
body:not(.admin-body) .publication-card .type-pill,
body:not(.admin-body) .result-card .type-pill,
body:not(.admin-body) .article .type-pill{color:#333;background:#f5f6f8;border-color:#c9cdd5}
body:not(.admin-body) .publication-card .type-pill.corpus,
body:not(.admin-body) .result-card .type-pill.corpus,
body:not(.admin-body) .article .type-pill.corpus{color:#16587a;border-color:#9bc7d9}
body:not(.admin-body) .publication-card .type-pill.analysis,
body:not(.admin-body) .result-card .type-pill.analysis,
body:not(.admin-body) .article .type-pill.analysis{color:#70317d;border-color:#d0acd8}
body:not(.admin-body) .publication-card .chips{margin:10px 0 16px}
body:not(.admin-body) .publication-card .chips a,
body:not(.admin-body) .result-card .chips a,
body:not(.admin-body) .article .chips a{color:#3453a0;border-color:#cbd2e2;background:#f8f9fc}
body:not(.admin-body) .read-more{display:inline-block;color:#173a9d;font-weight:700;font-size:.86rem}
body:not(.admin-body) .two-corpora{margin:34px 0 28px}
body:not(.admin-body) .corpus-card{
  min-height:205px;
  padding:28px;
  background:rgba(20,54,157,.36);
  border:1px solid rgba(255,255,255,.38);
  color:#fff;
  box-shadow:0 4px 16px rgba(16,35,100,.12);
}
body:not(.admin-body) .corpus-card.secondary{background:rgba(33,50,142,.34)}
body:not(.admin-body) .corpus-card:hover{border-color:#fff;background:rgba(30,69,186,.48)}
body:not(.admin-body) .corpus-card .n,
body:not(.admin-body) .corpus-card p{color:#fff}
body:not(.admin-body) .corpus-card h2{margin:34px 0 10px;color:#fff;font-size:1.5rem}
body:not(.admin-body) .search-panel,
body:not(.admin-body) .filter-panel{
  background:rgba(20,54,157,.34);
  border-color:rgba(255,255,255,.32);
  color:#fff;
}
body:not(.admin-body) .search-panel h2,
body:not(.admin-body) .filter-panel h2,
body:not(.admin-body) .hint{color:#fff}
body:not(.admin-body) .keyword-grid label,
body:not(.admin-body) .section-filter label{
  color:#fff;
  background:rgba(20,54,157,.36);
  border-color:rgba(255,255,255,.35);
}
body:not(.admin-body) .page-head{border-color:rgba(255,255,255,.28)}
body:not(.admin-body) .page-head h1{color:#fff}
body:not(.admin-body) .breadcrumbs,
body:not(.admin-body) .breadcrumbs a{color:#fff}
body:not(.admin-body) .category-card{
  background:rgba(20,54,157,.34);
  border-color:rgba(255,255,255,.35);
  color:#fff;
}
body:not(.admin-body) .category-card:hover{background:rgba(30,69,186,.48);border-color:#fff}
body:not(.admin-body) .category-card h3{color:#fff}
body:not(.admin-body) .empty{color:#fff}

/* Publication page = white reading sheet, black typography */
body:not(.admin-body) .article{
  max-width:980px;
  background:#fff;
  color:#151515;
  padding:34px 44px 46px;
  border-radius:10px;
  box-shadow:0 7px 28px rgba(8,25,80,.28);
}
body:not(.admin-body) .article h1{color:#111;font-size:clamp(2rem,3.5vw,3.25rem);line-height:1.07}
body:not(.admin-body) .article .doc-meta{color:#555}
body:not(.admin-body) .article .doc-meta span{border-color:#d4d4d4;background:#fafafa}
body:not(.admin-body) .article-tools button,
body:not(.admin-body) .article-tools a{background:#f3f4f6;color:#173a9d;border-color:#cfd4dc}
body:not(.admin-body) .article-toc{background:#f7f7f8;border-color:#d9d9dc;color:#222}
body:not(.admin-body) .article-toc strong{color:#444}
body:not(.admin-body) .article-toc li{color:#666}
body:not(.admin-body) .article-toc a{color:#223d86}
body:not(.admin-body) .article-section{border-color:#ddd;color:#111}
body:not(.admin-body) .article-section p,
body:not(.admin-body) .article-section li{color:#202020}
body:not(.admin-body) .article-section h1,
body:not(.admin-body) .article-section h2,
body:not(.admin-body) .article-section h3,
body:not(.admin-body) .article-section h4{color:#111}
body:not(.admin-body) .article-section a{color:#1748b0;text-decoration:underline}
body:not(.admin-body) .article-section blockquote{background:#f3f4f6;color:#333;border-left-color:#4567b6}
body:not(.admin-body) .article-section th{background:#f0f1f3;color:#111}
body:not(.admin-body) .article-section th,
body:not(.admin-body) .article-section td{border-color:#ccc;color:#111}
body:not(.admin-body) .sources{border-color:#d7d7d7}
body:not(.admin-body) .sources h2,
body:not(.admin-body) .source strong{color:#111}
body:not(.admin-body) .source{border-color:#e3e3e3;color:#222}
body:not(.admin-body) .source span{color:#555}
body:not(.admin-body) .source a{color:#1748b0}
body:not(.admin-body) .article-meta{color:#666}

@media(max-width:900px){
  body:not(.admin-body) .latest-grid{grid-template-columns:1fr}
  body:not(.admin-body) .sidebar{background:rgba(20,62,177,.96)}
}
@media(max-width:560px){
  body:not(.admin-body) .hero{display:grid;grid-template-columns:78px 1fr;text-align:left;gap:16px}
  body:not(.admin-body) .hero img{width:78px;height:78px;margin:0}
  body:not(.admin-body) .hero h1{font-size:1.85rem;margin:2px 0 5px}
  body:not(.admin-body) .tagline{font-size:.85rem}
  body:not(.admin-body) .article{padding:24px 20px 34px;border-radius:8px}
  body:not(.admin-body) .publication-card{padding:19px}
}

/* v0.8 — header with the two main sections + responsive public navigation */
body:not(.admin-body) .topbar{
  position:relative;
  top:auto;
  height:auto;
  min-height:0;
  padding:0;
  display:block;
}
body:not(.admin-body) .site-header-inner{
  width:100%;
  display:grid;
  grid-template-columns:minmax(250px,1fr) auto;
  grid-template-areas:
    "brand actions"
    "supernav supernav";
  align-items:center;
}
body:not(.admin-body) .brand{
  grid-area:brand;
  padding:13px 24px 10px;
  gap:15px;
  min-width:0;
}
body:not(.admin-body) .brand img{
  width:64px;
  height:64px;
  flex:0 0 64px;
}
body:not(.admin-body) .brand span{min-width:0}
body:not(.admin-body) .brand strong{
  font-size:1.72rem;
  line-height:1.02;
  letter-spacing:.015em;
  font-weight:760;
}
body:not(.admin-body) .brand small{
  display:block;
  margin-top:5px;
  font-size:.94rem;
  line-height:1.15;
  color:#fff;
  opacity:.92;
}
body:not(.admin-body) .header-actions{
  grid-area:actions;
  padding:12px 24px 8px 12px;
  align-self:start;
}
body:not(.admin-body) .supernav{
  grid-area:supernav;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  padding:0 24px 14px;
}
body:not(.admin-body) .supernav-button{
  min-height:48px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 16px;
  border:1px solid rgba(255,255,255,.56);
  border-radius:10px;
  background:rgba(12,46,146,.34);
  color:#fff;
  box-shadow:0 2px 8px rgba(8,28,95,.12);
}
body:not(.admin-body) .supernav-button:hover,
body:not(.admin-body) .supernav-button.active{
  background:rgba(255,255,255,.16);
  border-color:#fff;
  color:#fff;
}
body:not(.admin-body) .supernav-button span{
  font-size:.67rem;
  letter-spacing:.1em;
  opacity:.72;
}
body:not(.admin-body) .supernav-button strong{
  font-size:.98rem;
  line-height:1.18;
  font-weight:700;
}
body:not(.admin-body) .layout{min-height:0}
body:not(.admin-body) .sidebar{
  top:0;
  height:100vh;
}
body:not(.admin-body) .content{
  padding-top:30px;
}
body:not(.admin-body) .home-latest{
  margin-top:0;
}
body:not(.admin-body) .home-latest .section-heading h1{
  color:#fff;
  font-size:clamp(1.75rem,3vw,2.45rem);
  line-height:1.08;
  margin:4px 0 0;
}
body:not(.admin-body) .publication-card h2{
  font-size:1.25rem;
  line-height:1.22;
  margin:14px 0 9px;
}
body:not(.admin-body) .publication-card h2 a{color:#122b74}
body:not(.admin-body) .publication-card h2 a:hover{color:#244fc0}
body:not(.admin-body) .section-page-head p:last-child{
  max-width:820px;
  color:#fff;
  line-height:1.55;
  opacity:.94;
}
body:not(.admin-body) .section-root-grid{margin-bottom:30px}
body:not(.admin-body) .section-latest{margin-top:30px}

@media(max-width:900px){
  body:not(.admin-body) .site-header-inner{
    grid-template-columns:minmax(0,1fr) auto;
  }
  body:not(.admin-body) .brand{padding-left:16px}
  body:not(.admin-body) .header-actions{padding-right:16px}
  body:not(.admin-body) .supernav{padding-left:16px;padding-right:16px}
  body:not(.admin-body) .sidebar{
    position:static;
    width:auto;
    height:auto;
    display:none;
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.28);
  }
  body:not(.admin-body).nav-open .sidebar{display:block}
  body:not(.admin-body) .content{padding-top:24px}
}

@media(max-width:620px){
  body:not(.admin-body) .site-header-inner{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "brand actions"
      "supernav supernav";
  }
  body:not(.admin-body) .brand{
    padding:10px 10px 8px 12px;
    gap:10px;
  }
  body:not(.admin-body) .brand img{
    width:48px;
    height:48px;
    flex-basis:48px;
  }
  body:not(.admin-body) .brand strong{font-size:1.28rem}
  body:not(.admin-body) .brand small{
    display:block;
    font-size:.72rem;
    margin-top:3px;
    white-space:normal;
  }
  body:not(.admin-body) .header-actions{
    padding:9px 10px 6px 2px;
    gap:7px;
  }
  body:not(.admin-body) .langs{gap:2px;justify-content:flex-end}
  body:not(.admin-body) .langs a{font-size:.57rem;padding:4px 5px}
  body:not(.admin-body) .nav-toggle{padding:6px 8px}
  body:not(.admin-body) .supernav{
    gap:6px;
    padding:0 10px 10px;
  }
  body:not(.admin-body) .supernav-button{
    min-height:44px;
    padding:8px 9px;
    gap:7px;
    border-radius:8px;
  }
  body:not(.admin-body) .supernav-button span{display:none}
  body:not(.admin-body) .supernav-button strong{
    font-size:.78rem;
    line-height:1.16;
    text-align:center;
    width:100%;
  }
  body:not(.admin-body) .content{padding:18px 12px 60px}
  body:not(.admin-body) .publication-card,
  body:not(.admin-body) .result-card{padding:18px}
}

@media(max-width:390px){
  body:not(.admin-body) .brand strong{font-size:1.12rem}
  body:not(.admin-body) .brand small{font-size:.66rem}
  body:not(.admin-body) .brand img{width:42px;height:42px;flex-basis:42px}
  body:not(.admin-body) .langs a{font-size:.52rem;padding:3px 4px}
  body:not(.admin-body) .supernav-button strong{font-size:.72rem}
}


/* v0.9 — publications may exist in only some languages */
.language-badge{display:inline-flex;align-items:center;justify-content:center;min-width:2.6rem;padding:.2rem .5rem;border-radius:999px;font-size:.72rem;font-weight:800;letter-spacing:.04em;background:#eef2f7;color:#25364b;border:1px solid #c9d3df}
.result-card-meta{display:flex;align-items:center;gap:.5rem;margin-bottom:.55rem}
.language-fallback-notice{margin:1rem 0 1.2rem;padding:.8rem 1rem;border-left:4px solid #376a9b;background:#eef5fb;color:#18324a;font-size:.92rem;line-height:1.45}
.language-fallback-notice strong{display:inline-block;margin-right:.25rem}

/* v1.0 — coherent two-part identity, full blue-plastic skin, visual section markers */
body:not(.admin-body),
body:not(.admin-body) .topbar,
body:not(.admin-body) .sidebar{
  background-color:#5269cf;
  background-image:linear-gradient(rgba(42,63,179,.10),rgba(42,63,179,.10)),url('blue-plastic3.jpg');
  background-repeat:repeat;
  background-position:0 0;
}
body:not(.admin-body) .topbar,
body:not(.admin-body) .sidebar{backdrop-filter:none}
body:not(.admin-body) .content{background:transparent}

body:not(.admin-body) .sidebar-section h3{
  display:flex;
  align-items:center;
  gap:8px;
}
body:not(.admin-body) .sidebar-section h3 img{
  width:24px;
  height:24px;
  object-fit:contain;
  flex:0 0 24px;
}

body:not(.admin-body) .supernav-button{
  min-height:68px;
  padding:8px 16px;
  gap:14px;
  background:rgba(30,54,165,.26);
}
body:not(.admin-body) .supernav-icon{
  width:48px;
  height:48px;
  object-fit:contain;
  flex:0 0 48px;
  filter:drop-shadow(0 3px 6px rgba(14,31,100,.28));
}
body:not(.admin-body) .supernav-text{
  min-width:0;
  display:flex;
  align-items:baseline;
  gap:10px;
}
body:not(.admin-body) .supernav-text small{
  font-size:.67rem;
  letter-spacing:.1em;
  opacity:.72;
}
body:not(.admin-body) .supernav-text strong{
  font-size:1.06rem;
  line-height:1.18;
  font-weight:750;
}

body:not(.admin-body) .section-visual-heading{
  display:grid;
  grid-template-columns:132px minmax(0,1fr);
  gap:28px;
  align-items:center;
  padding:4px 0 24px;
}
body:not(.admin-body) .section-emblem{
  width:132px;
  height:132px;
  object-fit:contain;
  filter:drop-shadow(0 8px 16px rgba(15,32,105,.32));
}
body:not(.admin-body) .section-page-head h1{
  font-size:clamp(2.2rem,4.2vw,4.1rem);
  line-height:1.02;
  margin:4px 0 12px;
}
body:not(.admin-body) .section-page-head p:last-child{
  margin:0;
  max-width:900px;
  font-size:1rem;
}

body:not(.admin-body) .publication-card-layout{
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  gap:16px;
  align-items:start;
}
body:not(.admin-body) .publication-emblem{
  width:58px;
  height:58px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}
body:not(.admin-body) .publication-emblem img{
  width:54px;
  height:54px;
  object-fit:contain;
}
body:not(.admin-body) .publication-card-body{min-width:0}
body:not(.admin-body) .publication-card h2{margin-top:10px}
body:not(.admin-body) .result-list .publication-card{margin:0}

body:not(.admin-body) .category-section-marker{
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}
body:not(.admin-body) .category-section-marker img{
  width:42px;
  height:42px;
  object-fit:contain;
}
body:not(.admin-body) .category-page-head h1{
  font-size:clamp(2rem,3.8vw,3.6rem);
}
body:not(.admin-body) .category-publications{margin-bottom:28px}

body:not(.admin-body) .article-heading{
  display:grid;
  grid-template-columns:86px minmax(0,1fr);
  gap:20px;
  align-items:start;
}
body:not(.admin-body) .article-section-emblem{
  width:82px;
  height:82px;
  object-fit:contain;
  margin-top:2px;
}
body:not(.admin-body) .article-heading h1{margin-top:10px}
body:not(.admin-body) .language-fallback-notice{margin:.7rem 0 .5rem}

/* Keep the blue plastic visible through structural panels. Only reading/publication surfaces are white. */
body:not(.admin-body) .search-panel,
body:not(.admin-body) .filter-panel,
body:not(.admin-body) .category-card{
  background:rgba(31,54,166,.24);
  backdrop-filter:none;
}
body:not(.admin-body) .supernav-button:hover,
body:not(.admin-body) .supernav-button.active,
body:not(.admin-body) .category-card:hover{
  background:rgba(255,255,255,.15);
}

@media(max-width:900px){
  body:not(.admin-body) .sidebar{
    background-color:#5269cf;
    background-image:linear-gradient(rgba(42,63,179,.10),rgba(42,63,179,.10)),url('blue-plastic3.jpg');
    background-repeat:repeat;
  }
  body:not(.admin-body) .section-visual-heading{grid-template-columns:96px minmax(0,1fr);gap:20px}
  body:not(.admin-body) .section-emblem{width:96px;height:96px}
}

@media(max-width:620px){
  body:not(.admin-body) .supernav-button{min-height:58px;padding:7px 9px;gap:8px}
  body:not(.admin-body) .supernav-icon{width:34px;height:34px;flex-basis:34px}
  body:not(.admin-body) .supernav-text{display:block;text-align:left}
  body:not(.admin-body) .supernav-text small{display:none}
  body:not(.admin-body) .supernav-text strong{font-size:.78rem;text-align:left}
  body:not(.admin-body) .section-visual-heading{grid-template-columns:72px minmax(0,1fr);gap:15px}
  body:not(.admin-body) .section-emblem{width:72px;height:72px}
  body:not(.admin-body) .section-page-head h1{font-size:2rem}
  body:not(.admin-body) .publication-card-layout{grid-template-columns:44px minmax(0,1fr);gap:12px}
  body:not(.admin-body) .publication-emblem{width:44px;height:44px}
  body:not(.admin-body) .publication-emblem img{width:42px;height:42px}
  body:not(.admin-body) .article-heading{grid-template-columns:58px minmax(0,1fr);gap:12px}
  body:not(.admin-body) .article-section-emblem{width:56px;height:56px}
}

@media(max-width:390px){
  body:not(.admin-body) .supernav-icon{width:30px;height:30px;flex-basis:30px}
  body:not(.admin-body) .supernav-text strong{font-size:.7rem}
  body:not(.admin-body) .section-visual-heading{grid-template-columns:58px minmax(0,1fr);gap:11px}
  body:not(.admin-body) .section-emblem{width:58px;height:58px}
  body:not(.admin-body) .section-page-head h1{font-size:1.7rem}
}
