/* ═════════ Publication hero (navy, same family as the home page) ═════════ */
.paper-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; margin-top: -80px; padding: 108px 0 clamp(36px, 5vw, 64px);
  background: radial-gradient(90% 90% at 78% 30%, #12385f 0%, #0b2239 46%, #061527 100%); }
.paper-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: linear-gradient(90deg, #c01f2f 0 25%, #fff300 25% 50%, #01b1f1 50% 75%, #22c55e 75% 100%); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13.5px; color: rgba(255,255,255,.6); }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: rgba(255,255,255,.88); }
.paper-grid { display: grid; gap: 28px; margin-top: clamp(20px, 3vw, 34px); align-items: center; }
@media (min-width: 900px) { .paper-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }
.paper-cover { justify-self: center; width: min(210px, 56vw); position: relative; }
@media (min-width: 900px) { .paper-cover { width: 100%; justify-self: end; } }
.paper-cover::before { content: ""; position: absolute; inset: -14% -22%; background: radial-gradient(closest-side, rgba(220,174,92,.3), rgba(220,174,92,0)); z-index: -1; }
.paper-cover img { display: block; width: 100%; height: auto; border-radius: 5px; box-shadow: 0 0 0 1px rgba(220,174,92,.35), 0 40px 70px -26px rgba(0,0,0,.9); }
.paper-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--gold-soft); border: 1px solid rgba(220,174,92,.45); border-radius: 999px; padding: 4px 12px; }
.paper-title { font-family: 'Newsreader', Georgia, serif; font-weight: 600; font-size: clamp(1.8rem, 3.8vw, 2.9rem); line-height: 1.12; letter-spacing: -.015em; margin-top: 16px; max-width: 22em; }
.paper-by { margin-top: 14px; font-size: 1.1rem; color: rgba(255,255,255,.88); }
.paper-meta { margin-top: 6px; font-size: 14px; color: rgba(255,255,255,.6); }
.paper-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.share-row a, .share-row button { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #fff; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.share-row a:hover, .share-row button:hover { border-color: var(--gold); color: var(--gold); }

/* abstract + keywords */
.kw { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.kw span { font-size: 13.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }
.kw-label { font-size: 13px; font-weight: 700; color: var(--gold-deep); margin-top: 26px; }

/* ═════════ Reader ═════════ */
#pdfViewerModal { display: none; position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 2147483000; background: #061527; overflow: hidden; flex-direction: column; overscroll-behavior: none; color: #e8eef5; font-family: 'Public Sans', system-ui, sans-serif; }
#pdfViewerModal.active { display: flex; }
#pdfTopBar { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #0b2239; border-bottom: 1px solid rgba(220,174,92,.28); }
.rd-title { flex: 1 1 0; min-width: 0; font-family: 'Newsreader', Georgia, serif; font-weight: 600; font-size: 1.02rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; }
.rd-group { display: flex; align-items: center; gap: 4px; }
.tb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 38px; height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: rgba(255,255,255,.08); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; text-decoration: none; white-space: nowrap; }
.tb-btn:hover { background: rgba(255,255,255,.16); }
.tb-btn:disabled { opacity: .35; cursor: default; }
.tb-btn[aria-pressed="true"] { background: var(--gold); color: #061527; }
.tb-gold { background: var(--gold); color: #061527; }
.tb-gold:hover { background: var(--gold-soft); }
.tb-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 9px; background: rgba(255,255,255,.08); font-size: 14px; white-space: nowrap; }
#pageInput { width: 3ch; min-width: 36px; text-align: center; background: rgba(255,255,255,.1); color: #fff; border: 1px solid transparent; border-radius: 6px; font: inherit; font-weight: 700; padding: 3px 4px; -moz-appearance: textfield; }
#pageInput::-webkit-outer-spin-button, #pageInput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#pageInput:focus { outline: 2px solid var(--gold); background: #fff; color: #061527; }
#zoomLevel { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.rd-stage { flex: 1 1 0; min-height: 0; position: relative; display: flex; flex-direction: column; }
#pdfScrollContainer { flex: 1 1 0; min-height: 0; overflow: auto; outline: 0; background: radial-gradient(80% 60% at 50% 0%, #123456 0%, #0b2239 55%, #07182b 100%); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scroll-behavior: auto; touch-action: pan-x pan-y; }
#pdfPagesInner { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 12px 0 40px; min-width: 100%; width: max-content; }
.pdf-page-block { flex: none; position: relative; }
.pdf-page-canvas { display: block; background: #fff; border-radius: 2px; box-shadow: 0 2px 4px rgba(0,0,0,.3), 0 18px 44px -14px rgba(0,0,0,.7); }
.pdf-page-canvas[data-state="idle"], .pdf-page-canvas[data-state="loading"] { background: #f4f1ea; }
#pdfViewerModal.pdf-night .pdf-page-canvas[data-state="done"] { filter: invert(.9) hue-rotate(180deg); }
#pdfViewerModal.pdf-night .pdf-page-canvas { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 44px -14px rgba(0,0,0,.8); }
#pdfViewerModal.pdf-night .pdf-page-canvas[data-state="idle"], #pdfViewerModal.pdf-night .pdf-page-canvas[data-state="loading"] { background: #1b2a3c; }
#pdfInitLoader, #pdfError { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; background: #061527; z-index: 10; font-size: 14.5px; color: rgba(255,255,255,.8); text-align: center; padding: 24px; }
#pdfError { display: none; }
#pdfError p { font-family: 'Newsreader', Georgia, serif; font-size: 1.35rem; color: #fff; max-width: 22em; }
.loader { width: 36px; height: 36px; border: 3px solid rgba(255,255,255,.18); border-radius: 50%; border-top-color: var(--gold); animation: rdspin .9s linear infinite; }
@keyframes rdspin { to { transform: rotate(360deg); } }
#resumeNote { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 15; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 999px; background: #0b2239; border: 1px solid rgba(220,174,92,.5); box-shadow: 0 14px 34px -12px rgba(0,0,0,.8); font-size: 14px; white-space: nowrap; }
#resumeNote[hidden] { display: none; }
#resumeNote button { background: var(--gold); color: #061527; border: 0; border-radius: 999px; font-weight: 700; font-size: 13px; padding: 7px 14px; cursor: pointer; }
#pageCounterBar { flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); background: #0b2239; border-top: 1px solid rgba(220,174,92,.28); }
#pageSlider { -webkit-appearance: none; appearance: none; flex: 1; height: 28px; background: transparent; --pct: 0%; cursor: pointer; margin: 0; }
#pageSlider::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold) var(--pct), rgba(255,255,255,.18) var(--pct)); }
#pageSlider::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); }
#pageSlider::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--gold); }
#pageSlider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--gold-soft); border: 3px solid #0b2239; box-shadow: 0 0 0 1px var(--gold); }
#pageSlider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--gold-soft); border: 3px solid #0b2239; box-shadow: 0 0 0 1px var(--gold); }
@media (max-width: 640px) {
  .rd-title, .hide-sm { display: none; }
  #pdfTopBar { gap: 6px; padding: 8px; }
  #pdfTopBar .rd-spacer { flex: 1; }
  .tb-btn { padding: 0 10px; }
}
@media (min-width: 641px) { .rd-spacer { display: none; } }
