:root{--ink:#111827;--muted:#5b6475;--line:rgba(17,24,39,.12);--paper:#fff;--soft:#f7f8fb;--deep:#1f3a5f;--cyan:#2f6f73;--orange:#9a6a24;--rose:#7b3f4a;--shadow:0 24px 70px rgba(17,24,39,.14);--radius:24px}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:radial-gradient(circle at 10% 0%,rgba(47,111,115,.10),transparent 28%),radial-gradient(circle at 84% 8%,rgba(154,106,36,.10),transparent 30%),linear-gradient(180deg,#fbfcfd 0%,#f3f5f8 45%,#fff 100%);line-height:1.6}a{color:inherit;text-decoration:none}.site-shell{width:min(1180px,calc(100% - 40px));margin:0 auto}.topbar{position:sticky;top:0;z-index:50;backdrop-filter:blur(18px);background:rgba(255,255,255,.78);border-bottom:1px solid rgba(20,23,43,.08)}.nav{min-height:108px;padding:16px 0;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:16px;font-weight:900;letter-spacing:-.04em}.brand-mark{width:78px;height:78px;border-radius:22px;display:grid;place-items:center;overflow:hidden;box-shadow:0 14px 34px rgba(31,58,95,.22);background:white;flex:0 0 auto}.brand-logo img{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}.brand-title{font-family:"Tinos",Georgia,"Times New Roman",serif;display:block;font-size:clamp(30px,3.4vw,46px);font-weight:700;line-height:1.2;letter-spacing:-.035em;background:linear-gradient(135deg,#1f3a5f,#2f6f73);-webkit-background-clip:text;background-clip:text;color:transparent}.brand-subtitle{display:block;margin-top:9px;color:var(--muted);font-size:12px;font-weight:850;letter-spacing:.16em;text-transform:uppercase}.nav-links{display:flex;align-items:center;gap:22px;color:var(--muted);font-size:14px;font-weight:700}.nav-links a:hover{color:var(--deep)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;padding:12px 20px;font-weight:850;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background .2s ease;font-size:14px}.btn:hover{transform:translateY(-2px)}.btn-primary{background:linear-gradient(135deg,#1f3a5f,#2f4f73);color:white;box-shadow:0 14px 34px rgba(31,58,95,.24)}.btn-cyan{background:linear-gradient(135deg,#245d63,#2f6f73);color:white;box-shadow:0 14px 34px rgba(47,111,115,.20)}.btn-ghost{background:#fff;color:var(--deep);border:1px solid var(--line)}.btn-danger{background:#7b3f4a;color:white}.hero{padding:86px 0 42px}.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:34px;align-items:center}.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(31,58,95,.08);color:var(--deep);font-weight:850;font-size:13px;margin-bottom:20px}.pulse{width:9px;height:9px;border-radius:50%;background:#9a6a24;box-shadow:0 0 0 7px rgba(154,106,36,.14)}h1{margin:0;font-size:clamp(46px,7vw,86px);line-height:.93;letter-spacing:-.075em}.hero-copy{font-size:20px;color:var(--muted);max-width:690px;margin:24px 0 28px}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.search-card{margin-top:28px;background:rgba(255,255,255,.86);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);padding:16px;display:grid;grid-template-columns:1fr auto;gap:12px}.search-card input,input,textarea,select{width:100%;border:1px solid var(--line);outline:0;background:#f2f4ff;border-radius:16px;padding:14px 16px;color:var(--ink);font-size:15px}textarea{min-height:160px;resize:vertical;background:#fff}label{display:block;font-weight:850;margin:14px 0 7px}.hero-panel{background:linear-gradient(160deg,rgba(31,58,95,.96),rgba(47,79,115,.92)),radial-gradient(circle at 70% 20%,rgba(47,111,115,.35),transparent 30%);color:#fff;border-radius:34px;box-shadow:var(--shadow);padding:28px;min-height:520px}.status-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.24);padding:8px 12px;border-radius:999px;font-size:12px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}.panel-title{font-size:34px;line-height:1.08;letter-spacing:-.04em;margin:28px 0 16px;font-weight:900}.panel-text{color:rgba(255,255,255,.82);font-size:16px;margin-bottom:28px}.metric-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.metric{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);border-radius:20px;padding:18px}.metric strong{display:block;font-size:28px;line-height:1;letter-spacing:-.05em}.metric span{display:block;color:rgba(255,255,255,.74);margin-top:8px;font-size:13px;font-weight:700}.notice{margin-top:18px;padding:16px;border-radius:18px;background:rgba(111,127,79,.16);border:1px solid rgba(111,127,79,.26);color:rgba(255,255,255,.90);font-size:14px}section{padding:58px 0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}.section-head h2,.page-title{margin:0;font-size:clamp(30px,4vw,48px);letter-spacing:-.055em;line-height:1}.section-head p,.muted{margin:10px 0 0;color:var(--muted);max-width:760px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card,.paper,.topic,.step,.form-card,.admin-card{background:rgba(255,255,255,.88);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:0 14px 34px rgba(32,32,80,.08)}.card-icon{width:44px;height:44px;border-radius:15px;display:grid;place-items:center;color:#fff;font-weight:950;margin-bottom:16px}.bg-violet{background:linear-gradient(135deg,#1f3a5f,#2f4f73)}.bg-cyan{background:linear-gradient(135deg,#245d63,#2f6f73)}.bg-orange{background:linear-gradient(135deg,#7a5a2a,#9a6a24)}.workflow{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.step{position:relative;overflow:hidden;min-height:190px}.step::before{content:attr(data-step);position:absolute;right:14px;top:8px;font-size:54px;line-height:1;font-weight:950;color:rgba(31,58,95,.09);letter-spacing:-.08em}.step h3{margin:62px 0 8px;font-size:18px;line-height:1.15;letter-spacing:-.025em}.manuscript-layout{display:grid;grid-template-columns:1.1fr .9fr;gap:20px}.paper-list{display:grid;gap:14px}.paper-top{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.tag{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;background:#eef2f6;color:var(--deep);font-size:12px;font-weight:850}.tag.orange{background:rgba(154,106,36,.12);color:#6f4b17}.tag.cyan{background:rgba(47,111,115,.12);color:#245d63}.tag.rose{background:rgba(123,63,74,.10);color:#6b3440}.paper h3{margin:0;font-size:21px;line-height:1.22;letter-spacing:-.025em}.paper-meta{color:var(--muted);font-size:14px}.paper-actions{display:flex;flex-wrap:wrap;gap:10px}.small-link{font-weight:850;color:var(--deep);font-size:14px}.sidebar-card{background:var(--ink);color:#fff;border-radius:28px;padding:28px;box-shadow:var(--shadow)}.sidebar-card p{color:rgba(255,255,255,.76)}.topic-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.topic{min-height:120px;display:flex;flex-direction:column;justify-content:space-between}.topic span{color:var(--muted);font-size:13px;font-weight:700}.policy-strip{background:linear-gradient(135deg,rgba(31,58,95,.97),rgba(47,79,115,.94)),radial-gradient(circle at 10% 0%,rgba(47,111,115,.26),transparent 26%);border-radius:34px;padding:36px;color:white;display:grid;grid-template-columns:1fr 1fr;gap:26px;align-items:center;box-shadow:var(--shadow)}.policy-list{display:grid;gap:10px}.policy-item{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.18);border-radius:18px;padding:14px 16px;font-weight:800}.page{padding:64px 0}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.section-builder{display:grid;gap:18px;margin-top:20px}.paper-section-editor,.review-section{display:grid;grid-template-columns:1fr 360px;gap:18px;background:white;border:1px solid var(--line);border-radius:24px;padding:18px}.image-preview{background:#f2f4ff;border:1px dashed rgba(31,58,95,.25);border-radius:18px;min-height:180px;display:grid;place-items:center;overflow:hidden;color:var(--muted);font-weight:800;text-align:center}.image-preview img{width:100%;height:100%;object-fit:cover}.license-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.license-option{border:1px solid var(--line);border-radius:18px;padding:14px;background:#fff}.admin-table{width:100%;border-collapse:collapse;background:white;border-radius:18px;overflow:hidden}.admin-table th,.admin-table td{padding:14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.admin-table th{background:#eef2f6;color:var(--deep)}.status{font-weight:900;border-radius:999px;padding:5px 10px;display:inline-block;background:#eef2f6;color:var(--deep)}.status.accepted{background:rgba(47,111,115,.13);color:#245d63}.status.rejected{background:rgba(123,63,74,.13);color:#6b3440}.layout-workspace{display:grid;grid-template-columns:1fr 420px;gap:20px}.pdf-page{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:34px;min-height:900px}.pdf-title{font-family:Georgia,serif;font-size:28px;line-height:1.1}.pdf-columns{columns:2;column-gap:34px;font-family:Georgia,serif;font-size:13px;line-height:1.5}.figure-box{break-inside:avoid;border:1px solid var(--line);border-radius:10px;padding:8px;margin:12px 0;background:#fafafa}.figure-box img{max-width:100%;display:block;border-radius:8px}.layout-tool{position:sticky;top:130px}.reader-layout{display:grid;grid-template-columns:minmax(0,760px) 280px;gap:56px;align-items:start}.article-title{font-family:Georgia,"Times New Roman",serif;font-size:48px;line-height:1.05;letter-spacing:-.04em;margin:0 0 18px}.authors{font-size:18px;color:var(--deep);font-weight:800}.citation-box{border-left:4px solid var(--deep);padding:12px 16px;background:#f4f7fb;border-radius:0 12px 12px 0;margin:22px 0;color:#374151}.article-body{font-family:Georgia,"Times New Roman",serif;font-size:18px;line-height:1.8}.article-body h2{font-family:Inter,system-ui,sans-serif;font-size:28px;letter-spacing:-.035em;margin-top:48px}.article-body figure{margin:30px 0;padding:14px;border:1px solid var(--line);border-radius:18px;background:#fff}.article-body img{max-width:100%;border-radius:12px}.article-body figcaption{font-family:Inter,system-ui,sans-serif;color:var(--muted);font-size:14px;line-height:1.5;margin-top:10px}.toc-card{position:sticky;top:130px;background:white;border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:0 14px 34px rgba(32,32,80,.08)}.toc-card a{display:block;color:var(--deep);font-weight:800;margin:8px 0}.download-top{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.abstract-snippet{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.footer-grid{display:grid;grid-template-columns:1.2fr repeat(3,1fr);gap:28px;border-top:1px solid var(--line);padding:28px 0 60px;color:var(--muted);font-size:14px}.footer-grid h4{color:var(--ink);margin:0 0 10px}.footer-grid a{display:block;margin:7px 0}@media(max-width:980px){.hero-grid,.manuscript-layout,.policy-strip,.footer-grid,.grid-2,.form-grid,.paper-section-editor,.review-section,.layout-workspace,.reader-layout{grid-template-columns:1fr}.cards,.topic-grid,.grid-3,.license-grid{grid-template-columns:repeat(2,1fr)}.workflow{grid-template-columns:repeat(2,1fr)}.nav-links{display:none}.toc-card,.layout-tool{position:static}}@media(max-width:640px){.site-shell{width:min(100% - 24px,1180px)}.hero{padding-top:48px}.search-card,.cards,.topic-grid,.workflow,.metric-grid,.grid-3,.license-grid{grid-template-columns:1fr}.hero-panel{min-height:auto}.section-head{display:block}}
.manuscript-block{margin:22px 0;padding:22px;border:1px solid var(--line);border-radius:24px;background:rgba(255,255,255,.72)}.manuscript-block>h3,.block-head h3{margin:0 0 10px;font-size:24px;letter-spacing:-.035em}.block-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px}.section-label{font-size:18px;font-weight:950;color:var(--deep);letter-spacing:-.025em;margin-bottom:10px}.hidden-pane{display:none}.section-display{display:grid;grid-template-columns:1fr 360px;gap:18px;grid-column:1/-1}.section-display h3{margin:0 0 8px;font-size:22px}.section-display p{margin:0 0 16px}.section-display figure{margin:0;border:1px solid var(--line);border-radius:18px;padding:12px;background:#fff}.section-display img{width:100%;border-radius:12px;display:block}.section-display figcaption{margin-top:10px;color:var(--muted);font-size:14px}.section-saved{border-color:rgba(47,111,115,.55);background:rgba(247,250,250,.92)}@media(max-width:980px){.section-display{grid-template-columns:1fr}.block-head{display:block}.block-head .btn{margin-top:12px}}
.review-editor{display:grid;grid-template-columns:1fr 360px;gap:18px;grid-column:1/-1}.editable-review .review-display,.editable-review .review-figure-display{min-width:0}.pdf-brand{display:flex;align-items:center;gap:14px;border-bottom:2px solid var(--deep);padding-bottom:12px;margin-bottom:24px}.pdf-brand img{width:58px;height:58px;object-fit:cover;border-radius:14px}.pdf-brand-title{font-size:32px}.pdf-authors{font-size:14px;margin-bottom:6px}.pdf-meta{font-size:12px;color:#4b5563;border-bottom:1px solid var(--line);padding-bottom:12px}.pdf-footer{margin-top:28px;border-top:1px solid var(--line);padding-top:8px;text-align:center;font-size:11px;color:#6b7280}.image-modal{position:fixed;inset:0;background:rgba(5,8,14,.84);display:none;z-index:999;align-items:center;justify-content:center;padding:34px}.image-modal.open{display:flex;flex-direction:column}.image-modal img{max-width:min(1100px,92vw);max-height:78vh;border-radius:16px;background:white}.image-modal p{max-width:min(1000px,90vw);color:white;font-size:15px;line-height:1.6}.image-modal-close{position:absolute;right:22px;top:18px;width:42px;height:42px;border-radius:50%;border:0;background:white;font-size:28px;cursor:pointer}.zoomable-image{cursor:zoom-in}.no-print{display:flex}@media print{body{background:white}.topbar,footer,.no-print,.layout-tool{display:none!important}.site-shell{width:100%;margin:0}.page{padding:0}.pdf-page{box-shadow:none;border:0;border-radius:0;min-height:auto}.printable-pdf{page-break-after:always}.pdf-columns{columns:2}.pdf-footer{position:fixed;bottom:0;left:0;right:0}.article-body img{max-height:9cm;object-fit:contain}}
.author-sheet{display:grid;gap:8px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:10px;margin-top:8px}.author-row{display:grid;grid-template-columns:1fr 1fr 38px;gap:8px;align-items:center}.author-row-head{grid-template-columns:1fr 1fr 38px;color:var(--deep);font-size:13px}.author-remove{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--rose);font-weight:900;cursor:pointer}.rich-toolbar{display:flex;gap:6px;margin:8px 0}.rich-toolbar button{border:1px solid var(--line);background:#fff;border-radius:10px;min-width:38px;height:34px;cursor:pointer;color:var(--deep)}.section-rich-text{min-height:220px;width:100%;border:1px solid var(--line);background:#f2f4ff;border-radius:16px;padding:14px 16px;outline:0;overflow:auto}.section-rich-text:empty:before{content:attr(data-placeholder);color:var(--muted)}.rich-display-text{white-space:normal}.rich-display-text p,.rich-display-text div{margin:0 0 12px}.add-section-below{margin-top:18px}.home-topic-actions{display:flex;gap:12px;align-items:center;justify-content:flex-end}@media(max-width:640px){.author-row,.author-row-head{grid-template-columns:1fr}.author-remove{width:100%;border-radius:12px}.home-topic-actions{justify-content:flex-start;margin-top:12px}}
/* v7 editorial review and PDF layout fixes */
.review-editor[hidden], .review-display[hidden], .review-figure-display[hidden]{display:none!important}
.review-rich-text{min-height:240px;border:1px solid var(--line);border-radius:16px;background:#fff;padding:14px 16px;font-size:15px;line-height:1.7;outline:none;overflow:auto}
.review-rich-text:focus{border-color:rgba(47,111,115,.55);box-shadow:0 0 0 4px rgba(47,111,115,.08)}
.rich-display-text{font-size:16px;line-height:1.75}.rich-display-text p{margin:0 0 12px}.rich-display-text i,.rich-display-text em{font-style:italic}.rich-display-text b,.rich-display-text strong{font-weight:800}
.pdf-document{display:grid;gap:28px}.pdf-page{width:min(100%,794px);min-height:1123px;margin:0 auto;position:relative;padding:34px 34px 54px;break-after:page;page-break-after:always;overflow:hidden}.pdf-columns{column-count:2;columns:2;column-gap:34px;text-align:justify;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word;word-break:normal}.pdf-columns p{margin:0 0 10px;text-align:justify;hyphens:auto;-webkit-hyphens:auto}.pdf-columns h3{font-family:Inter,system-ui,sans-serif;font-size:15px;margin:0 0 8px;break-after:avoid;color:var(--deep)}.pdf-footer{position:absolute;left:34px;right:34px;bottom:20px}.figure-box{break-inside:avoid;page-break-inside:avoid}.figure-box small{text-align:left;display:block;line-height:1.4;margin-top:6px}.admin-table .btn{margin:2px 3px 2px 0}
@page{size:A4;margin:14mm}
@media print{.pdf-document{display:block}.pdf-page{width:auto;min-height:auto;height:auto;margin:0;padding:0 0 14mm;box-shadow:none;border:0;border-radius:0;overflow:visible}.pdf-columns{column-count:2;text-align:justify;hyphens:auto}.pdf-footer{position:fixed;bottom:4mm;left:0;right:0}}
/* v8 admin and PDF refinements */
.admin-table .btn-delete{font-size:11px;padding:4px 8px;min-height:0;border-radius:999px;line-height:1.1;box-shadow:none;vertical-align:middle}
.admin-table .btn-delete:hover{transform:none}
.trash-table input[type="checkbox"]{width:18px;height:18px}
.pdf-page{min-height:1123px;padding:34px 34px 46px}
.pdf-columns{font-family:Georgia,"Times New Roman",serif;font-size:13px;line-height:1.42;column-fill:auto;text-align:justify;text-align-last:left;text-justify:inter-word;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:normal;word-break:normal;word-spacing:normal;orphans:2;widows:2}
.pdf-columns p{margin:0 0 8px;text-align:justify;text-align-last:left;text-justify:inter-word;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:normal;word-break:normal;word-spacing:normal}
.pdf-columns h3{break-after:avoid;page-break-after:avoid;margin-top:0}
.pdf-authors a,.authors a{color:var(--deep);text-decoration:none}
.pdf-footer{bottom:16px}
@media print{.pdf-page{min-height:0;height:auto}.pdf-columns{column-fill:balance}}

/* v9 submission clarity and PDF preview repairs */
[hidden]{display:none!important}
input[type="checkbox"],input[type="radio"]{width:auto!important;display:inline-block;vertical-align:middle;margin-right:8px;accent-color:var(--deep)}
.license-confirm{display:flex!important;align-items:flex-start;gap:10px;font-weight:750;line-height:1.45}
.license-confirm input{margin-top:3px;flex:0 0 auto}
.paper-section-editor.editing .section-display{display:none!important}
.paper-section-editor.section-saved .section-input-pane,.paper-section-editor.section-saved .section-figure-pane{display:none!important}
.paper-section-editor:not(.section-saved) .section-display{display:none!important}
.pdf-document{display:grid;gap:28px;background:#e8ebef;padding:24px;border-radius:18px}
.pdf-page{width:794px;min-height:1123px;height:1123px;margin:0 auto;position:relative;background:#fff;box-shadow:0 18px 46px rgba(15,23,42,.18);border:1px solid rgba(17,24,39,.08);border-radius:0;padding:34px 38px 70px;overflow:hidden;break-after:page;page-break-after:always}
.pdf-brand{display:flex;align-items:center;gap:18px;border-bottom:3px solid var(--deep);padding-bottom:12px;margin-bottom:26px;min-height:86px}
.pdf-brand img{width:72px;height:72px;object-fit:contain!important;border-radius:16px;background:#fff;box-shadow:none}
.pdf-brand-title{font-size:34px;line-height:1;color:var(--deep);background:none;-webkit-background-clip:initial;background-clip:initial;letter-spacing:-.025em}
.pdf-title{font-family:Georgia,"Times New Roman",serif;font-size:31px;line-height:1.08;margin:0 0 16px;color:#06152b;letter-spacing:-.02em}
.pdf-authors{font-size:15px;margin:0 0 10px;color:var(--deep)}
.pdf-meta{font-size:13px;color:#425066;border-bottom:1px solid var(--line);padding-bottom:13px;margin:0 0 18px}
.pdf-columns{column-count:2;column-gap:38px;column-fill:auto;font-family:Georgia,"Times New Roman",serif;font-size:13.4px;line-height:1.43;text-align:justify;text-align-last:left;text-justify:inter-word;hyphens:manual!important;-webkit-hyphens:manual!important;overflow-wrap:normal;word-break:normal;word-spacing:normal;orphans:2;widows:2;max-height:825px;overflow:hidden}
.pdf-page.first-pdf-page .pdf-columns{max-height:690px}
.pdf-columns p{margin:0 0 8px;text-align:justify;text-align-last:left;hyphens:manual!important;-webkit-hyphens:manual!important;overflow-wrap:normal;word-break:normal;word-spacing:normal}
.pdf-columns h3{font-family:Inter,system-ui,sans-serif;font-size:15px;line-height:1.2;margin:0 0 7px;color:var(--deep);break-after:avoid;page-break-after:avoid;column-span:none}
.figure-box{break-inside:avoid;page-break-inside:avoid;border:1px solid var(--line);border-radius:12px;padding:9px;margin:10px 0 12px;background:#fafafa;text-align:left}
.figure-box img{max-width:100%;max-height:210px;object-fit:contain;display:block;margin:0 auto;border-radius:8px}
.figure-box small{display:block;line-height:1.35;margin-top:7px;text-align:left;color:#374151}
.pdf-footer{position:absolute;left:38px;right:38px;bottom:18px;border-top:1.5px solid #9aa4b2;background:white;padding-top:7px;text-align:center;font-size:13px;font-weight:800;color:#1f2937;z-index:5}
@page{size:A4;margin:0}
@media print{html,body{width:210mm;background:white!important}.topbar,footer,.no-print,.layout-tool,.page-title,.page>.site-shell>p.muted{display:none!important}.site-shell{width:100%!important;margin:0!important}.page{padding:0!important}.pdf-document{display:block!important;padding:0!important;background:white!important;border-radius:0!important}.pdf-page{width:210mm!important;height:297mm!important;min-height:297mm!important;margin:0!important;padding:12mm 13mm 16mm!important;box-shadow:none!important;border:0!important;border-radius:0!important;overflow:hidden!important;page-break-after:always!important;break-after:page!important}.pdf-brand{min-height:22mm;margin-bottom:7mm}.pdf-brand img{width:18mm!important;height:18mm!important}.pdf-brand-title{font-size:26pt}.pdf-title{font-size:23pt}.pdf-columns{font-size:10.5pt;line-height:1.38;column-gap:9mm;max-height:218mm!important;overflow:hidden!important}.pdf-page.first-pdf-page .pdf-columns{max-height:181mm!important}.pdf-footer{left:13mm;right:13mm;bottom:6mm;font-size:10pt}.figure-box img{max-height:48mm}}

/* v10 PDF block pagination, editable layout, and figure-stable columns */
.pdf-fixed-columns{display:grid;grid-template-columns:1fr 1fr;gap:38px;height:820px;overflow:hidden;font-family:Georgia,"Times New Roman",serif;font-size:13.4px;line-height:1.43;text-align:justify;text-justify:inter-word;hyphens:manual!important;-webkit-hyphens:manual!important;overflow-wrap:normal;word-break:normal;word-spacing:normal}
.pdf-page.first-pdf-page .pdf-fixed-columns{height:675px}
.pdf-column{min-width:0;overflow:hidden}
.pdf-text-block{break-inside:avoid;margin:0 0 8px}
.pdf-text-block p{margin:0 0 7px;text-align:justify;text-align-last:left;hyphens:manual!important;-webkit-hyphens:manual!important;overflow-wrap:normal;word-break:normal;word-spacing:normal}
.pdf-text-block h3{font-family:Inter,system-ui,sans-serif;font-size:15px;line-height:1.18;margin:0 0 7px;color:var(--deep)}
.pdf-text-block [contenteditable="true"],.pdf-title[contenteditable="true"],.pdf-meta[contenteditable="true"],.pdf-editable-figure small[contenteditable="true"]{outline:0;border-radius:4px}
.pdf-text-block [contenteditable="true"]:focus,.pdf-title[contenteditable="true"]:focus,.pdf-meta[contenteditable="true"]:focus,.pdf-editable-figure small[contenteditable="true"]:focus{box-shadow:0 0 0 2px rgba(47,111,115,.22);background:rgba(47,111,115,.05)}
.pdf-editable-figure{break-inside:avoid;margin:8px 0 12px;padding:8px;border:1px solid var(--line);border-radius:12px;background:#fff}
.pdf-editable-figure img{display:block;width:100%;height:142px;object-fit:contain;border-radius:8px;background:#f8fafc}
.pdf-editable-figure small{display:block;text-align:left;line-height:1.35;margin-top:6px;color:#111827;font-size:11.5px}
.pdf-columns{display:none!important}
@media print{.pdf-fixed-columns{height:225mm!important;gap:9mm;font-size:10.5pt;line-height:1.36}.pdf-page.first-pdf-page .pdf-fixed-columns{height:178mm!important}.pdf-editable-figure img{height:38mm}.pdf-editable-figure{border:.25pt solid #d1d5db;padding:2.5mm;border-radius:2mm}.pdf-text-block [contenteditable="true"]:focus,.pdf-title[contenteditable="true"]:focus,.pdf-meta[contenteditable="true"]:focus,.pdf-editable-figure small[contenteditable="true"]:focus{box-shadow:none;background:transparent}}

/* v11 single-column Word-like PDF layout */
.pdf-document-onecol{display:grid;gap:28px;background:#e8ebef;padding:24px;border-radius:18px}
.pdf-document-onecol .pdf-page{width:794px;height:1123px;min-height:1123px;padding:34px 46px 70px;overflow:hidden;background:#fff;position:relative;margin:0 auto;box-shadow:0 18px 46px rgba(15,23,42,.18);border:1px solid rgba(17,24,39,.08)}
.pdf-single-flow{height:960px;overflow:hidden;font-family:Georgia,"Times New Roman",serif;font-size:14px;line-height:1.55;color:#06152b}
.pdf-page.first-pdf-page .pdf-single-flow{height:760px}
.pdf-single-flow .pdf-text-block{margin:0 0 14px;break-inside:avoid;page-break-inside:avoid;text-align:left}
.pdf-single-flow .pdf-text-block h3{font-family:Inter,system-ui,sans-serif;color:var(--deep);font-size:16px;line-height:1.2;margin:0 0 8px}
.pdf-single-flow .pdf-editable-text{outline:0;white-space:normal;text-align:left;hyphens:manual!important;-webkit-hyphens:manual!important;overflow-wrap:break-word;word-break:normal}
.pdf-single-flow .pdf-editable-text p,.pdf-single-flow .pdf-editable-text div{margin:0 0 11px}
.pdf-single-flow .pdf-editable-text:focus,.pdf-single-flow h3[contenteditable="true"]:focus,.pdf-figure-one figcaption:focus{box-shadow:0 0 0 2px rgba(47,111,115,.22);background:rgba(47,111,115,.05);border-radius:4px}
.pdf-abstract-block{background:rgba(47,111,255,.075);border:1px solid rgba(47,111,255,.16);border-radius:14px;padding:16px 18px;margin-bottom:18px!important}
.pdf-abstract-block h3{margin-bottom:10px!important}
.pdf-figure-one{margin:18px auto 20px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fafafa;break-inside:avoid;page-break-inside:avoid;max-width:92%}
.pdf-figure-one img{display:block;width:100%;max-height:330px;object-fit:contain;border-radius:10px;background:#fff}
.pdf-figure-one figcaption{display:block;margin-top:9px;font-size:12.5px;line-height:1.4;color:#111827;text-align:left;outline:0}
.pdf-fixed-columns{display:none!important}
.pdf-columns{display:none!important}
@media print{.pdf-document-onecol{display:block!important;padding:0!important;background:white!important;border-radius:0!important}.pdf-document-onecol .pdf-page{width:210mm!important;height:297mm!important;min-height:297mm!important;margin:0!important;padding:12mm 14mm 16mm!important;box-shadow:none!important;border:0!important;border-radius:0!important;overflow:hidden!important;page-break-after:always!important;break-after:page!important}.pdf-single-flow{height:251mm!important;font-size:11pt;line-height:1.48}.pdf-page.first-pdf-page .pdf-single-flow{height:199mm!important}.pdf-figure-one{max-width:94%;padding:3mm;margin:5mm auto}.pdf-figure-one img{max-height:82mm}.pdf-abstract-block{border:.4pt solid rgba(47,111,255,.22);background:rgba(47,111,255,.075)!important;padding:4mm}.pdf-single-flow .pdf-editable-text:focus,.pdf-single-flow h3[contenteditable="true"]:focus,.pdf-figure-one figcaption:focus{box-shadow:none;background:transparent}}

/* v12 PDF one-column pagination repair */
.pdf-document-onecol .pdf-page{
  width:794px;
  height:1123px;
  min-height:1123px;
  padding:34px 46px 72px;
  overflow:hidden;
  background:#fff;
  position:relative;
  margin:0 auto;
  box-shadow:0 18px 46px rgba(15,23,42,.18);
  border:1px solid rgba(17,24,39,.08);
}
.pdf-single-flow{
  height:890px;
  overflow:hidden;
  font-family:Georgia,"Times New Roman",serif;
  font-size:14px;
  line-height:1.55;
  color:#06152b;
}
.pdf-page.first-pdf-page .pdf-single-flow{height:705px;}
.pdf-single-flow .pdf-text-block{
  margin:0 0 13px;
  break-inside:avoid;
  page-break-inside:avoid;
  text-align:left;
}
.pdf-single-flow .pdf-editable-text{
  outline:0;
  white-space:normal;
  text-align:left;
  hyphens:manual!important;
  -webkit-hyphens:manual!important;
  overflow-wrap:break-word;
  word-break:normal;
}
.pdf-single-flow .pdf-editable-text p,
.pdf-single-flow .pdf-editable-text div{
  margin:0 0 10px;
  text-align:left;
}
.pdf-single-flow .pdf-editable-text span,
.pdf-single-flow .pdf-editable-text i,
.pdf-single-flow .pdf-editable-text em,
.pdf-single-flow .pdf-editable-text b,
.pdf-single-flow .pdf-editable-text strong{
  display:inline;
}
.pdf-abstract-block{
  background:rgba(47,111,255,.075)!important;
  border:1px solid rgba(47,111,255,.16)!important;
  border-radius:14px;
  padding:16px 18px;
  margin-bottom:18px!important;
}
.pdf-figure-one{
  margin:16px auto 18px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fafafa;
  break-inside:avoid;
  page-break-inside:avoid;
  max-width:92%;
  max-height:440px;
  overflow:hidden;
}
.pdf-figure-one img{
  display:block;
  width:100%;
  max-height:340px;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
}
.pdf-figure-one figcaption{
  display:block;
  margin-top:9px;
  font-size:12.5px;
  line-height:1.35;
  color:#111827;
  text-align:left;
  outline:0;
}
.pdf-footer{
  position:absolute;
  left:46px;
  right:46px;
  bottom:18px;
  border-top:1.5px solid #9aa4b2;
  background:white;
  padding-top:7px;
  text-align:center;
  font-size:13px;
  font-weight:800;
  color:#1f2937;
  z-index:5;
}
@media print{
  .pdf-document-onecol{display:block!important;padding:0!important;background:white!important;border-radius:0!important}
  .pdf-document-onecol .pdf-page{width:210mm!important;height:297mm!important;min-height:297mm!important;margin:0!important;padding:12mm 14mm 17mm!important;box-shadow:none!important;border:0!important;border-radius:0!important;overflow:hidden!important;page-break-after:always!important;break-after:page!important}
  .pdf-single-flow{height:246mm!important;font-size:11pt;line-height:1.48}
  .pdf-page.first-pdf-page .pdf-single-flow{height:190mm!important}
  .pdf-figure-one{max-width:94%;max-height:112mm;padding:3mm;margin:5mm auto;overflow:hidden}
  .pdf-figure-one img{max-height:86mm}
  .pdf-abstract-block{border:.4pt solid rgba(47,111,255,.22)!important;background:rgba(47,111,255,.075)!important;padding:4mm}
}

/* v13 continuous one-column PDF layout with movable figures */
.pdf-document-continuous .pdf-page{
  width:794px;
  height:1123px;
  min-height:1123px;
  padding:34px 46px 70px;
  overflow:hidden;
  background:#fff;
  position:relative;
  margin:0 auto;
  box-shadow:0 18px 46px rgba(15,23,42,.18);
  border:1px solid rgba(17,24,39,.08);
  border-radius:0;
}
.pdf-document-continuous .pdf-single-flow{
  height:930px;
  overflow:hidden;
  font-family:Georgia,"Times New Roman",serif;
  font-size:14.5px;
  line-height:1.56;
  color:#06152b;
  white-space:normal;
}
.pdf-document-continuous .first-pdf-page .pdf-single-flow{height:700px;}
.pdf-continuous-flow .pdf-text-block{margin:0 0 13px;text-align:left;break-inside:avoid;page-break-inside:avoid;}
.pdf-continuous-flow .pdf-text-block h3{font-family:Inter,system-ui,sans-serif;color:var(--deep);font-size:16px;line-height:1.2;margin:0 0 8px;}
.pdf-continuous-flow .pdf-editable-text{outline:0;white-space:normal;text-align:left;hyphens:manual!important;overflow-wrap:break-word;word-break:normal;}
.pdf-continuous-flow .pdf-editable-text p,
.pdf-continuous-flow .pdf-editable-text div{margin:0 0 11px;}
.pdf-continuous-flow .pdf-editable-text span,
.pdf-continuous-flow .pdf-editable-text i,
.pdf-continuous-flow .pdf-editable-text em,
.pdf-continuous-flow .pdf-editable-text b,
.pdf-continuous-flow .pdf-editable-text strong{line-height:inherit;}
.pdf-continuous-flow .pdf-abstract-block{background:rgba(47,111,255,.075);border:1px solid rgba(47,111,255,.16);border-radius:14px;padding:16px 18px;margin-bottom:18px!important;}
.pdf-movable-figure{position:relative;margin:18px auto 20px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fafafa;break-inside:avoid;page-break-inside:avoid;max-width:94%;}
.pdf-movable-figure img{display:block;width:100%;max-height:360px;object-fit:contain;border-radius:10px;background:#fff;}
.pdf-movable-figure figcaption{display:block;margin-top:9px;font-size:12.5px;line-height:1.4;color:#111827;text-align:left;outline:0;}
.figure-move-controls{position:absolute;left:-42px;top:10px;display:flex;flex-direction:column;gap:6px;opacity:0;transition:opacity .16s ease;}
.pdf-movable-figure:hover .figure-move-controls{opacity:1;}
.figure-move-controls button{width:30px;height:30px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--deep);box-shadow:0 8px 20px rgba(15,23,42,.14);cursor:pointer;font-weight:900;line-height:1;}
.figure-move-controls button:hover{background:#eef2f6;}
@media print{
  .pdf-document-continuous{display:block!important;padding:0!important;background:white!important;border-radius:0!important;}
  .pdf-document-continuous .pdf-page{width:210mm!important;height:297mm!important;min-height:297mm!important;margin:0!important;padding:12mm 14mm 17mm!important;box-shadow:none!important;border:0!important;border-radius:0!important;overflow:hidden!important;page-break-after:always!important;break-after:page!important;}
  .pdf-document-continuous .pdf-single-flow{height:246mm!important;font-size:11pt;line-height:1.48;}
  .pdf-document-continuous .first-pdf-page .pdf-single-flow{height:190mm!important;}
  .pdf-movable-figure{max-width:94%;max-height:120mm;padding:3mm;margin:5mm auto;overflow:hidden;}
  .pdf-movable-figure img{max-height:92mm;}
  .figure-move-controls{display:none!important;}
}

/* v14 PDF layout stability fixes */
.pdf-document-continuous .pdf-single-flow{
  height:950px!important;
  overflow:hidden!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:14.5px!important;
  line-height:1.48!important;
  color:#06152b!important;
  white-space:normal!important;
}
.pdf-document-continuous .first-pdf-page .pdf-single-flow{height:720px!important;}
.pdf-continuous-flow .pdf-text-block{
  margin:0 0 7px!important;
  padding:0!important;
  text-align:left!important;
  break-inside:avoid!important;
  page-break-inside:avoid!important;
}
.pdf-continuous-flow .pdf-text-block h3{
  font-family:Inter,system-ui,sans-serif!important;
  color:var(--deep)!important;
  font-size:16px!important;
  line-height:1.16!important;
  margin:0 0 4px!important;
  padding:0!important;
}
.pdf-continuous-flow .pdf-editable-text{
  outline:0!important;
  white-space:normal!important;
  text-align:left!important;
  hyphens:manual!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  margin:0!important;
  padding:0!important;
}
.pdf-continuous-flow .pdf-editable-text p,
.pdf-continuous-flow .pdf-editable-text div,
.pdf-continuous-flow .pdf-editable-text li{
  margin:0 0 7px!important;
  padding:0!important;
  min-height:0!important;
}
.pdf-continuous-flow .pdf-editable-text p:empty,
.pdf-continuous-flow .pdf-editable-text div:empty,
.pdf-continuous-flow .pdf-editable-text span:empty{display:none!important;}
.pdf-continuous-flow .pdf-editable-text br + br{display:none!important;}
.pdf-continuous-flow .pdf-abstract-block{
  background:rgba(47,111,255,.075)!important;
  border:1px solid rgba(47,111,255,.16)!important;
  border-radius:14px!important;
  padding:14px 16px!important;
  margin-bottom:12px!important;
}
.pdf-movable-figure{
  position:relative!important;
  margin:12px auto 14px!important;
  padding:12px!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  background:#fafafa!important;
  break-inside:avoid!important;
  page-break-inside:avoid!important;
  max-width:88%!important;
  overflow:visible!important;
}
.pdf-movable-figure img{
  display:block!important;
  width:100%!important;
  max-height:320px!important;
  object-fit:contain!important;
  border-radius:10px!important;
  background:#fff!important;
}
.pdf-movable-figure figcaption{
  display:block!important;
  margin-top:8px!important;
  font-size:12.5px!important;
  line-height:1.35!important;
  color:#111827!important;
  text-align:left!important;
  outline:0!important;
}
.figure-move-controls{
  position:absolute!important;
  left:8px!important;
  top:8px!important;
  z-index:20!important;
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
  opacity:0!important;
  pointer-events:none!important;
  transition:opacity .16s ease!important;
}
.pdf-movable-figure:hover .figure-move-controls,
.figure-move-controls:hover{
  opacity:1!important;
  pointer-events:auto!important;
}
.figure-move-controls button{
  width:32px!important;
  height:32px!important;
  border-radius:999px!important;
  border:1px solid var(--line)!important;
  background:rgba(255,255,255,.96)!important;
  color:var(--deep)!important;
  box-shadow:0 8px 20px rgba(15,23,42,.18)!important;
  cursor:pointer!important;
  font-weight:900!important;
  line-height:1!important;
}
.figure-move-controls button:hover{background:#eef2f6!important;}
.pdf-page{overflow:hidden!important;}
@media print{
  .pdf-document-continuous .pdf-single-flow{height:250mm!important;font-size:11pt!important;line-height:1.42!important;}
  .pdf-document-continuous .first-pdf-page .pdf-single-flow{height:193mm!important;}
  .pdf-movable-figure{max-width:88%!important;max-height:112mm!important;padding:3mm!important;margin:4mm auto!important;overflow:hidden!important;}
  .pdf-movable-figure img{max-height:82mm!important;}
  .figure-move-controls{display:none!important;}
}

/* v15 Word-like continuous PDF workspace */
.word-layout-workspace{grid-template-columns:minmax(0,880px) 360px!important;align-items:start;}
.pdf-word-document{background:#e8ebef;padding:24px;border-radius:18px;display:grid;gap:22px;}
.pdf-word-page{width:794px;min-height:1123px;margin:0 auto;background:#fff;border:1px solid rgba(17,24,39,.10);border-radius:18px;box-shadow:0 18px 46px rgba(15,23,42,.18);padding:46px 56px 70px;position:relative;}
.pdf-word-page .pdf-brand{border-bottom:4px solid var(--deep);padding-bottom:20px;margin-bottom:34px;}
.pdf-word-page .pdf-brand img{object-fit:contain!important;background:#fff;}
.pdf-word-editor{font-family:Georgia,"Times New Roman",serif;font-size:17px;line-height:1.68;color:#07152b;outline:0;min-height:720px;}
.pdf-word-editor:focus{box-shadow:0 0 0 3px rgba(47,111,115,.16);border-radius:8px;}
.pdf-word-editor h2{font-family:Inter,system-ui,sans-serif;font-size:24px;line-height:1.22;color:var(--deep);margin:34px 0 12px;letter-spacing:-.02em;}
.pdf-word-editor p,.pdf-word-editor div.word-section-text{margin:0 0 16px;}
.pdf-word-editor p{white-space:normal;}
.pdf-word-editor .word-section-text p,.pdf-word-editor .word-section-text div{margin:0 0 16px;}
.word-abstract-box{background:rgba(47,111,255,.075);border:1px solid rgba(47,111,255,.16);border-radius:16px;padding:18px 20px;margin:0 0 28px;}
.word-abstract-box h2{margin-top:0!important;}
.word-figure{position:relative;margin:28px auto 30px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fafafa;max-width:92%;break-inside:avoid;page-break-inside:avoid;}
.word-figure img{display:block;width:100%;max-height:440px;object-fit:contain;border-radius:12px;background:#fff;}
.word-figure figcaption{display:block;margin-top:10px;font-size:14px;line-height:1.45;color:#111827;outline:0;}
.word-figure figcaption:focus{box-shadow:0 0 0 2px rgba(47,111,115,.22);background:rgba(47,111,115,.05);border-radius:4px;}
.word-figure .figure-move-controls{position:absolute;left:10px;top:10px;z-index:4;display:grid;gap:4px;opacity:0;transition:opacity .15s ease;}
.word-figure:hover .figure-move-controls{opacity:1;}
.word-figure .figure-move-controls button{width:28px;height:26px;border:0;border-radius:8px;background:rgba(31,58,95,.92);color:white;font-weight:900;cursor:pointer;box-shadow:0 6px 14px rgba(15,23,42,.22);}
.pdf-word-page .pdf-title{font-size:38px;margin-bottom:18px;}
.pdf-word-page .pdf-authors{font-size:17px;margin:0 0 8px;}
.pdf-word-page .pdf-meta{color:var(--muted);margin:0 0 28px;}
@media print{
  .topbar,.layout-tool,.no-print,.hero-actions{display:none!important;}
  body{background:white!important;}
  .site-shell{width:100%!important;margin:0!important;}
  .pdf-word-document{display:block!important;background:white!important;padding:0!important;border-radius:0!important;}
  .pdf-word-page{width:auto!important;min-height:auto!important;margin:0!important;padding:12mm 14mm 17mm!important;border:0!important;border-radius:0!important;box-shadow:none!important;}
  .pdf-word-editor{font-size:11pt!important;line-height:1.48!important;min-height:0!important;}
  .pdf-word-page .pdf-title{font-size:24pt!important;}
  .pdf-word-editor h2{font-size:16pt!important;margin:8mm 0 3mm!important;}
  .word-abstract-box{background:rgba(47,111,255,.075)!important;border:.4pt solid rgba(47,111,255,.22)!important;padding:4mm!important;}
  .word-figure{max-width:92%!important;margin:6mm auto!important;padding:3mm!important;border:.35pt solid #d1d5db!important;}
  .word-figure img{max-height:105mm!important;}
}

/* v16 print-preview running margins for edited PDF */
@page {
  size: A4;
  margin: 22mm 16mm 22mm 16mm;
  @top-left {
    content: "AIBioTʀχiv AI BIOTHEORY ARCHIVE";
    font-family: Inter, Arial, sans-serif;
    font-size: 8.5pt;
    letter-spacing: .08em;
    color: #1f3a5f;
  }
  @bottom-center {
    content: "Page " counter(page);
    font-family: Inter, Arial, sans-serif;
    font-size: 9pt;
    color: #1f3a5f;
  }
}
@page :first {
  margin-top: 12mm;
  @top-left { content: ""; }
}
@media print {
  .pdf-word-page {
    padding: 0 !important;
  }
  .pdf-word-page .pdf-brand {
    margin-top: 0 !important;
  }
  .pdf-word-document,
  .pdf-word-page {
    overflow: visible !important;
  }
  .pdf-word-editor {
    widows: 2;
    orphans: 2;
  }
  .word-figure,
  .word-abstract-box {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
@media screen {
  body.pdf-preview-mode .pdf-word-document {
    padding-top: 34px;
    padding-bottom: 34px;
  }
  body.pdf-preview-mode .pdf-word-page {
    padding-top: 56px;
    padding-bottom: 78px;
  }
  body.pdf-preview-mode .pdf-word-page::after {
    content: "Print preview uses A4 page margins with a running header after page 1 and centered page numbers.";
    display: block;
    margin-top: 28px;
    padding-top: 12px;
    border-top: 1px solid rgba(31,58,95,.25);
    color: var(--muted);
    font-size: 12px;
    font-family: Inter, system-ui, sans-serif;
    text-align: center;
  }
}

/* v17 live PDF layout workspace */
.wide-shell{width:min(1760px,calc(100% - 32px))!important;}
.live-pdf-workspace.word-layout-workspace{display:block!important;}
.live-layout-grid{display:grid;grid-template-columns:minmax(560px,1fr) minmax(560px,1fr);gap:22px;align-items:start;}
.layout-editor-pane,.layout-preview-pane{min-width:0;}
.panel-label{font-weight:900;color:var(--deep);letter-spacing:.02em;margin:0 0 10px;font-size:14px;text-transform:uppercase;}
.layout-editor-pane .pdf-word-document,.layout-preview-pane .pdf-word-document{padding:18px;border-radius:18px;}
.layout-editor-pane .pdf-word-page,.layout-preview-pane .pdf-word-page{width:100%;max-width:794px;}
.layout-preview-pane{position:sticky;top:126px;max-height:calc(100vh - 146px);overflow:auto;padding-right:6px;}
.live-preview-actions{margin-bottom:12px;}
.pdf-live-preview-shell .pdf-word-editor{pointer-events:none;}
.pdf-live-preview-shell .figure-move-controls{display:none!important;}
.pdf-live-preview-shell .pdf-word-page{box-shadow:0 14px 36px rgba(15,23,42,.16);}
.live-pdf-workspace .layout-tool{position:static!important;margin-top:24px;}
.live-pdf-workspace .editor-document .pdf-word-page{outline:2px solid rgba(47,111,115,.10);}
.live-pdf-workspace .live-preview-document .pdf-word-page{background:#fff;}
@media (max-width:1240px){.live-layout-grid{grid-template-columns:1fr}.layout-preview-pane{position:static;max-height:none;}}
@media print{
  body.print-live-preview-only .topbar,
  body.print-live-preview-only .page-title,
  body.print-live-preview-only .page>.wide-shell>p,
  body.print-live-preview-only .layout-editor-pane,
  body.print-live-preview-only .layout-tool,
  body.print-live-preview-only .panel-label,
  body.print-live-preview-only .live-preview-actions,
  body.print-live-preview-only footer{display:none!important;}
  body.print-live-preview-only .wide-shell,
  body.print-live-preview-only .layout-workspace,
  body.print-live-preview-only .live-layout-grid,
  body.print-live-preview-only .layout-preview-pane,
  body.print-live-preview-only #livePdfPreview{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;overflow:visible!important;position:static!important;}
  body.print-live-preview-only #livePdfPreview .pdf-word-document{display:block!important;background:white!important;padding:0!important;border-radius:0!important;}
  body.print-live-preview-only #livePdfPreview .pdf-word-page{width:auto!important;min-height:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;}
}


/* v18 membership, draft, and PayPal workflow */
.auth-card{max-width:620px;margin:0 auto;background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:28px;padding:28px;box-shadow:var(--shadow)}
.member-status-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;background:#eef2f6;color:var(--deep)}
.member-status-pill.paid{background:rgba(47,111,115,.12);color:#245d63}.member-status-pill.unpaid{background:rgba(154,106,36,.12);color:#6f4b17}.member-status-pill.review{background:rgba(47,111,255,.10);color:#1f3a5f}
.pay-card{max-width:780px;margin:0 auto;background:white;border:1px solid var(--line);border-radius:28px;padding:28px;box-shadow:var(--shadow)}
.price-badge{display:inline-flex;align-items:center;justify-content:center;width:88px;height:88px;border-radius:26px;background:linear-gradient(135deg,#1f3a5f,#2f6f73);color:white;font-size:30px;font-weight:950;box-shadow:0 14px 34px rgba(31,58,95,.24)}
.dashboard-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:24px 0}.dashboard-summary .metric-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px}.metric-card strong{font-size:28px;display:block;color:var(--deep)}
.auth-required{border:1px dashed rgba(31,58,95,.28);background:#f6f9fc;border-radius:22px;padding:22px;margin:20px 0}
.member-mini{font-size:13px;color:var(--muted);font-weight:800}
.payment-note{background:rgba(47,111,115,.08);border:1px solid rgba(47,111,115,.18);border-radius:18px;padding:14px;margin:18px 0;color:var(--deep);font-weight:800}


/* v19 member verification and protection styles */
.field-hint{font-size:13px;color:var(--muted);margin:6px 0 12px;line-height:1.45}.verification-preview,.protection-note{margin-top:18px;padding:16px;border-radius:18px;background:rgba(47,111,115,.09);border:1px solid rgba(47,111,115,.18);color:#1f3a5f}.protection-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:24px}.protection-grid .card{background:#fff}.member-mini{font-size:13px;color:var(--muted)}@media(max-width:760px){.protection-grid{grid-template-columns:1fr}}

.independent-section { padding-top: 30px; }
.payment-warning { max-width: 900px; margin: 22px auto; padding: 24px; border-radius: 24px; border: 2px solid rgba(154, 106, 36, .35); background: linear-gradient(135deg, rgba(154,106,36,.14), rgba(47,111,115,.08)); box-shadow: 0 14px 34px rgba(32,32,80,.08); }
.payment-warning h2 { margin: 0 0 10px; color: #7a4b00; font-size: 30px; letter-spacing: -.035em; }
.payment-warning p { margin: 10px 0 0; color: #263241; font-size: 16px; }
.peer-comments { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.comment-form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; margin: 16px 0; box-shadow: 0 10px 24px rgba(17,24,39,.06); }
.comment-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 14px; font: inherit; background: #fbfcfd; }
.comment-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-top: 12px; }
.comment-card p { margin-bottom: 0; }

.pdf-download-btn{white-space:nowrap;min-width:150px;padding:13px 24px;border-radius:999px;font-size:14px;letter-spacing:.01em;text-align:center}
.pdf-download-btn.disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
.comment-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.comment-report{border:0;background:rgba(123,63,74,.08);color:#7b3f4a;border-radius:999px;padding:6px 10px;font-weight:800;font-size:12px;cursor:pointer;white-space:nowrap}
.comment-report:hover{background:rgba(123,63,74,.16)}


/* v26 production polish */
.pdf-download-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  white-space:nowrap!important;
  word-break:keep-all!important;
  overflow-wrap:normal!important;
  padding:12px 18px!important;
  border-radius:14px!important;
  font-size:14px!important;
  line-height:1!important;
  letter-spacing:.01em!important;
  box-shadow:0 10px 24px rgba(31,58,95,.18)!important;
}
.pdf-download-btn::before{content:"↓";font-size:15px;margin-right:8px;line-height:1;}
.download-top{align-items:flex-start;gap:24px;}
.download-top .pdf-download-btn{margin-top:8px;}
@media(max-width:760px){.download-top{display:block}.download-top .pdf-download-btn{margin-top:18px}}
.policy-text{max-width:980px;margin-top:22px;display:grid;gap:22px;}
.policy-text article{background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:0 12px 32px rgba(17,24,39,.06)}
.policy-text h2{margin:0 0 10px;font-size:26px;color:var(--deep);letter-spacing:-.03em}.policy-text h3{margin:18px 0 8px;font-size:18px}.policy-text ul,.policy-text ol{margin:10px 0 0 22px;color:var(--muted)}.policy-text li{margin:7px 0}.policy-text p{color:var(--muted);margin:8px 0}.policy-note{background:#eef6fb;border-left:5px solid #2f6f73;padding:16px 18px;border-radius:16px;color:#1f3a5f}.license-links a{font-weight:800;color:var(--deep);text-decoration:underline;text-underline-offset:3px}.site-check-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px}.dev-only{display:none!important}.sample-badge{display:inline-flex;border-radius:999px;background:rgba(31,58,95,.08);color:var(--deep);font-weight:900;padding:6px 10px;font-size:12px;margin-right:8px}


/* v28 PDF button and example-date polish */
.pdf-download-btn{
  min-width:230px!important;
  height:48px!important;
  padding:0 30px!important;
  border-radius:999px!important;
  font-size:15px!important;
  line-height:1!important;
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  flex-shrink:0!important;
}
.pdf-download-btn span{display:inline-block!important;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;}
.download-top .pdf-download-btn{align-self:flex-start!important;}
@media(max-width:760px){.pdf-download-btn{min-width:210px!important;width:auto!important;}}

/* v29 member dashboard and version controls */
.member-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;background:rgba(255,255,255,.86);border:1px solid var(--line);border-radius:24px;padding:24px;margin-bottom:22px;box-shadow:0 14px 34px rgba(32,32,80,.08)}
.member-action-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0 24px}
.member-action-card{display:block;background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:0 12px 28px rgba(31,58,95,.08);transition:transform .2s ease, box-shadow .2s ease}
.member-action-card:hover{transform:translateY(-2px);box-shadow:0 18px 36px rgba(31,58,95,.12)}
.member-action-card strong{display:block;color:var(--deep);font-size:18px;margin-bottom:8px}
.member-action-card span{display:block;color:var(--muted);font-size:14px;line-height:1.45}
.dashboard-section{background:rgba(255,255,255,.86);border:1px solid var(--line);border-radius:24px;padding:24px;margin:22px 0;box-shadow:0 12px 28px rgba(31,58,95,.06)}
.dashboard-section h2{margin-top:0;color:var(--deep);letter-spacing:-.035em}.article-side-actions{display:flex;flex-direction:column;align-items:flex-end;gap:12px;min-width:220px}.version-switcher{background:#fff;border:1px solid var(--line);border-radius:18px;padding:12px;min-width:210px;box-shadow:0 10px 22px rgba(31,58,95,.08)}.version-switcher strong{display:block;color:var(--deep);font-size:13px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px}.version-pill{display:flex;justify-content:space-between;gap:10px;align-items:center;border-radius:12px;padding:8px 10px;margin:4px 0;color:var(--deep);background:#f4f7fb;font-weight:800}.version-pill span{font-size:12px;color:var(--muted);font-weight:700}.version-pill.active{background:linear-gradient(135deg,#1f3a5f,#2f6f73);color:#fff}.version-pill.active span{color:rgba(255,255,255,.78)}
@media(max-width:980px){.member-action-grid{grid-template-columns:repeat(2,1fr)}.member-hero,.download-top{flex-direction:column}.article-side-actions{align-items:flex-start;min-width:0}}
@media(max-width:640px){.member-action-grid{grid-template-columns:1fr}}

.article-report-link {
  width: 100%;
  border: 1px solid rgba(123, 63, 74, 0.22);
  background: rgba(123, 63, 74, 0.06);
  color: #6b3440;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 850;
  text-align: center;
  cursor: pointer;
}
.article-report-link:hover { background: rgba(123, 63, 74, 0.12); }
.policy-note.warning {
  border: 1px solid rgba(154, 106, 36, 0.28);
  background: rgba(154, 106, 36, 0.10);
  color: #5f3f12;
}

/* v32: keep in-page article anchors visible below the sticky header. */


/* Keep in-page article navigation below the sticky header. */
html{scroll-padding-top:260px;}
.article-body h2[id],.article-body [id],.citation-box[id],.peer-comments[id],#abstract,#introduction,#results,#methods,#discussion,#references,#rights{scroll-margin-top:260px;}
@media(max-width:980px){html{scroll-padding-top:220px;}.article-body h2[id],.article-body [id],.citation-box[id],.peer-comments[id],#abstract,#introduction,#results,#methods,#discussion,#references,#rights{scroll-margin-top:220px;}}

/* v34: cleaner Browse cards and member dashboard action spacing */
.paper h3,
.paper-title,
.manuscript-card h2,
.manuscript-card h3,
.article-list-card h2,
.article-list-card h3 {
  margin-top: 12px !important;
  margin-bottom: 12px !important;
  line-height: 1.18 !important;
}
.paper .paper-top,
.manuscript-card .paper-top,
.article-list-card .paper-top {
  margin-bottom: 10px !important;
}
.paper-meta {
  margin-top: 6px !important;
}
.member-action-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}
.member-action-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  min-height: 132px !important;
  padding: 22px !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,0.9) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 12px 28px rgba(17,24,39,0.08) !important;
  text-decoration: none !important;
}
.member-action-card strong {
  display: block !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  color: var(--ink) !important;
}
.member-action-card span {
  display: block !important;
  color: var(--muted) !important;
  line-height: 1.45 !important;
}

/* v35: stronger Browse manuscript title breathing room */
.paper-list .paper h3 {
  display: block !important;
  margin: 18px 0 16px !important;
  padding: 8px 0 6px !important;
  line-height: 1.28 !important;
}
.paper-list .paper .paper-top {
  margin-bottom: 14px !important;
}
.paper-list .paper .paper-meta {
  margin-top: 8px !important;
  margin-bottom: 18px !important;
}
.paper-list .paper .abstract-snippet {
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  line-height: 1.55 !important;
}
.paper-list .paper .paper-actions {
  margin-top: 6px !important;
}

/* v37 admin member moderation controls */
.admin-member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.comment-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-delete-comment {
  border-color: rgba(123,63,74,0.28) !important;
  color: #7b3f4a !important;
}
.admin-session-active .peer-comments::before {
  content: "Admin moderation active: peer comments can be deleted from this page.";
  display: block;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(154, 106, 36, 0.10);
  color: #6f4b17;
  font-weight: 800;
}

/* v42: responsive phone/tablet interface */
.mobile-nav-toggle{display:none;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:#fff;color:var(--deep);border-radius:999px;padding:10px 14px;font-weight:900;box-shadow:0 8px 20px rgba(17,24,39,.08);cursor:pointer}.mobile-nav-toggle .hamburger{width:18px;height:12px;display:inline-grid;gap:3px}.mobile-nav-toggle .hamburger span{display:block;height:2px;background:var(--deep);border-radius:2px}.desktop-only{display:initial}.mobile-only{display:none}
@media(max-width:1100px){
  .site-shell{width:min(100% - 28px,1180px)}
  .nav{min-height:82px;padding:10px 0;gap:12px}
  .brand{gap:10px;min-width:0}.brand-mark{width:54px;height:54px;border-radius:16px}.brand-title{font-size:clamp(24px,4.8vw,34px);line-height:1.05}.brand-subtitle{font-size:10px;margin-top:4px;letter-spacing:.12em}.brand-text{min-width:0}.brand-text .brand-subtitle:nth-of-type(2){display:none}
  .mobile-nav-toggle{display:inline-flex;flex:0 0 auto}
  .topbar .nav-links{position:fixed;left:14px;right:14px;top:74px;display:none;flex-direction:column;align-items:stretch;gap:0;background:rgba(255,255,255,.98);border:1px solid var(--line);border-radius:22px;box-shadow:0 24px 70px rgba(17,24,39,.18);padding:10px;z-index:80;color:var(--ink)}
  .topbar.mobile-menu-open .nav-links{display:flex}.topbar .nav-links a{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-radius:16px;font-size:15px}.topbar .nav-links a:hover{background:#f2f4ff}.topbar .nav-links a::after{content:'›';font-size:20px;color:var(--muted)}
  .hero{padding:44px 0 28px}.hero-grid,.manuscript-layout,.policy-strip,.grid-2,.form-grid,.layout-workspace,.reader-layout{grid-template-columns:1fr!important}.hero-panel{min-height:auto;border-radius:26px;padding:24px}.panel-title{font-size:28px}.hero-copy{font-size:18px}.hero-actions .btn{flex:1 1 180px}.search-card{grid-template-columns:1fr}.cards,.grid-3,.topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workflow{grid-template-columns:repeat(2,minmax(0,1fr))}.section-head{align-items:flex-start}.paper-section-editor,.review-section{grid-template-columns:1fr}.layout-tool{position:static}.toc-card{position:static}.article-title{font-size:40px}.footer-grid{grid-template-columns:1fr 1fr}.admin-table{display:block;overflow-x:auto;white-space:nowrap}.admin-table th,.admin-table td{white-space:normal;min-width:140px}
  html{scroll-padding-top:120px}.article-body h2[id],.article-body [id],.citation-box[id],.peer-comments[id],#abstract,#introduction,#results,#methods,#discussion,#references,#rights{scroll-margin-top:120px}
}
@media(max-width:700px){
  body{line-height:1.55}.site-shell{width:min(100% - 22px,1180px)}.topbar{backdrop-filter:blur(14px)}.nav{min-height:68px;padding:8px 0}.brand-mark{width:44px;height:44px;border-radius:13px}.brand-title{font-size:24px}.brand-subtitle{display:none}.mobile-nav-toggle{padding:9px 12px;font-size:0}.mobile-nav-toggle::after{content:'Menu';font-size:13px}.topbar .nav-links{top:64px;left:10px;right:10px;border-radius:18px;max-height:calc(100vh - 86px);overflow:auto}
  h1{font-size:clamp(38px,12vw,58px);line-height:.96}.page-title,.section-head h2{font-size:clamp(28px,9vw,40px);line-height:1.05}.hero{padding:34px 0 22px}section,.page{padding:40px 0}.hero-copy{font-size:16px;margin:18px 0 22px}.eyebrow{font-size:12px;line-height:1.3}.hero-actions{display:grid;grid-template-columns:1fr;gap:10px}.btn{width:100%;padding:12px 16px}.paper-actions .btn,.paper-actions .small-link{width:auto}.search-card{padding:12px;border-radius:18px;box-shadow:0 14px 34px rgba(17,24,39,.10)}
  .cards,.grid-3,.topic-grid,.workflow,.metric-grid,.license-grid{grid-template-columns:1fr}.card,.paper,.topic,.step,.form-card,.admin-card{padding:20px;border-radius:20px}.step{min-height:150px}.step h3{margin-top:46px}.step::before{font-size:44px}.policy-strip{padding:24px;border-radius:26px}.topic{min-height:104px}.paper-list .paper h3{font-size:20px;margin:14px 0 12px!important;padding:6px 0!important}.paper-meta{font-size:13px}.tag{font-size:11px}.sidebar-card{border-radius:24px;padding:22px}.footer-grid{grid-template-columns:1fr;gap:18px}.footer-grid .brand-mark{width:52px;height:52px}.article-title{font-size:34px}.reader-layout{gap:28px}.article-body{font-size:17px}.article-side-actions{display:grid;grid-template-columns:1fr;gap:10px}.pdf-download-btn{width:100%;justify-content:center}.toc-card{padding:18px;border-radius:20px}.toc-card a{padding:11px 0}.member-action-grid{grid-template-columns:1fr!important}.member-action-card{min-height:auto!important}.stat-grid,.dashboard-stats{grid-template-columns:1fr!important}.admin-table{font-size:14px}.admin-table th,.admin-table td{padding:12px;min-width:160px}.admin-member-actions,.comment-actions{display:grid;grid-template-columns:1fr;align-items:stretch}.admin-member-actions .btn,.comment-actions .btn{width:100%}.pdf-page{min-height:auto;padding:22px;border-radius:14px}.image-modal img{max-width:92vw;max-height:72vh}
  html{scroll-padding-top:92px}.article-body h2[id],.article-body [id],.citation-box[id],.peer-comments[id],#abstract,#introduction,#results,#methods,#discussion,#references,#rights{scroll-margin-top:92px}
}
@media(max-width:420px){.brand-title{font-size:22px}.mobile-nav-toggle::after{content:''}.hero-panel{padding:20px}.panel-title{font-size:24px}.metric strong{font-size:24px}.paper-top{gap:6px}.article-title{font-size:30px}.site-shell{width:min(100% - 18px,1180px)}}
