/* ================================================================
   SPS JOURNAL — COMPLETE THEME STYLESHEET v2.0
   ================================================================ */

/* ----------------------------------------------------------------
   DESIGN TOKENS
---------------------------------------------------------------- */
:root {
  --forest:        #0d2b1e;
  --forest-deep:   #071811;
  --forest-mid:    #1a4a2e;
  --forest-light:  #2d7a50;
  --copper:        #c8873c;
  --copper-light:  #dfa055;
  --ivory:         #f8f4ed;
  --ivory-dark:    #ede8df;
  --ivory-deeper:  #e0d9cd;
  --white:         #ffffff;
  --text:          #1c1c1c;
  --text-mid:      #3d3d3d;
  --muted:         #6b7280;
  --muted-light:   #9ca3af;
  --border:        #d6d0c4;
  --border-light:  #e8e3da;
  --red:           #c0392b;
  --green:         #27ae60;
  --blue:          #2980b9;
  --amber:         #d68910;

  --ff-display:   'Playfair Display', 'Times New Roman', Georgia, serif;
  --ff-body:      'Source Serif 4', Georgia, 'Times New Roman', serif;
  --ff-ui:        'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --ff-mono:      'IBM Plex Mono', 'Courier New', monospace;

  --radius-xs:    4px;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    18px;
  --radius-xl:    24px;
  --radius-full:  9999px;

  --shadow-xs:    0 1px 4px rgba(0,0,0,.06);
  --shadow-sm:    0 2px 10px rgba(0,0,0,.08);
  --shadow-md:    0 6px 24px rgba(0,0,0,.11);
  --shadow-lg:    0 16px 48px rgba(0,0,0,.15);
  --shadow-xl:    0 28px 72px rgba(0,0,0,.20);

  --transition:   .2s ease;
  --transition-slow: .35s ease;
  --container:    1240px;
  --col-pad:      24px;
}

/* ----------------------------------------------------------------
   RESET & BASE
---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-mid); text-decoration: none; }
a:hover { color: var(--forest); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--col-pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ----------------------------------------------------------------
   TYPOGRAPHY UTILITIES
---------------------------------------------------------------- */
.font-display { font-family: var(--ff-display); }
.font-ui      { font-family: var(--ff-ui); }
.font-mono    { font-family: var(--ff-mono); }

h1,h2,h3,h4,h5 { font-family: var(--ff-display); line-height: 1.2; color: var(--forest-deep); }

/* ----------------------------------------------------------------
   BUTTONS
---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ff-ui); font-size: 13.5px; font-weight: 600;
  padding: 10px 22px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer;
  transition: all var(--transition); white-space: nowrap; text-decoration: none;
  letter-spacing: .01em;
}
.btn svg { flex-shrink: 0; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-sm { padding: 7px 15px; font-size: 12.5px; }
.btn-xs { padding: 5px 11px; font-size: 11.5px; }

.btn-primary   { background: var(--copper); color: #fff; border-color: var(--copper); }
.btn-primary:hover { background: var(--copper-light); border-color: var(--copper-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(200,135,60,.35); color: #fff; }

.btn-forest    { background: var(--forest); color: #fff; border-color: var(--forest); }
.btn-forest:hover { background: var(--forest-mid); border-color: var(--forest-mid); transform: translateY(-1px); color: #fff; }

.btn-outline   { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--ivory); }

.btn-outline-light { background: transparent; color: var(--ivory); border-color: rgba(248,244,237,.45); }
.btn-outline-light:hover { background: rgba(248,244,237,.12); border-color: var(--ivory); }

.btn-ghost     { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { background: var(--ivory-dark); color: var(--text); }

.btn-danger    { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #a93226; border-color: #a93226; color: #fff; }

.btn-success   { background: var(--green); color: #fff; border-color: var(--green); }
.btn-success:hover { background: #219a52; border-color: #219a52; color: #fff; }

/* Icon-only button */
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border-radius: var(--radius-sm);
  background: var(--ivory-dark); border: 1px solid var(--border);
  color: var(--muted); transition: all var(--transition);
}
.btn-icon:hover { background: var(--forest); color: #fff; border-color: var(--forest); }
.btn-icon.danger:hover { background: var(--red); border-color: var(--red); }

/* ----------------------------------------------------------------
   STATUS BADGES
---------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--ff-ui); font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: var(--radius-full);
}
.badge-submitted    { background: #dbeafe; color: #1e40af; }
.badge-under-review { background: #fef3c7; color: #92400e; }
.badge-with-editor  { background: #ede9fe; color: #5b21b6; }
.badge-revision     { background: #ffe4e6; color: #9f1239; }
.badge-accepted     { background: #d1fae5; color: #065f46; }
.badge-rejected     { background: #fee2e2; color: #7f1d1d; }
.badge-published    { background: var(--forest); color: #fff; }
.badge-withdrawn    { background: #f3f4f6; color: #374151; }
.badge-pending      { background: #fef9c3; color: #713f12; }
.badge-open-access  { background: #ffd700; color: #7b4f00; }

/* ----------------------------------------------------------------
   FORMS
---------------------------------------------------------------- */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.form-row.full { grid-template-columns: 1fr; }

.form-label {
  display: block; margin-bottom: 6px;
  font-family: var(--ff-ui); font-size: 12.5px; font-weight: 600;
  color: var(--text-mid); letter-spacing: .01em;
}
.form-label .req { color: var(--red); margin-left: 2px; }
.form-hint { font-family: var(--ff-ui); font-size: 11.5px; color: var(--muted); margin-top: 5px; }

.form-control {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--ff-ui); font-size: 13.5px; color: var(--text);
  background: var(--white); transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; appearance: none;
}
.form-control:focus { border-color: var(--forest-mid); box-shadow: 0 0 0 3px rgba(45,122,80,.12); }
.form-control::placeholder { color: var(--muted-light); }
.form-control:disabled { background: var(--ivory-dark); color: var(--muted); cursor: not-allowed; }

textarea.form-control { resize: vertical; min-height: 110px; line-height: 1.65; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer; }

.checkbox-wrap, .radio-wrap { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.checkbox-wrap input[type=checkbox], .radio-wrap input[type=radio] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--forest-mid); }
.checkbox-wrap span, .radio-wrap span { font-family: var(--ff-ui); font-size: 13.5px; color: var(--text); line-height: 1.5; }

.form-error { border-color: var(--red) !important; }
.form-error-msg { font-family: var(--ff-ui); font-size: 12px; color: var(--red); margin-top: 4px; }

/* Alert banners */
.alert { padding: 13px 18px; border-radius: var(--radius-sm); font-family: var(--ff-ui); font-size: 13.5px; margin-bottom: 18px; display: flex; align-items: flex-start; gap: 10px; }
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #14532d; border: 1px solid #bbf7d0; }
.alert-info    { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }
.alert-warning { background: #fffbeb; color: #78350f; border: 1px solid #fde68a; }

/* ----------------------------------------------------------------
   CARD
---------------------------------------------------------------- */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); }
.card-body { padding: 24px; }
.card-header { padding: 18px 24px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-header h3 { font-family: var(--ff-ui); font-size: 14px; font-weight: 700; color: var(--forest-deep); }
.card-footer { padding: 14px 24px; border-top: 1px solid var(--border-light); background: var(--ivory); border-radius: 0 0 var(--radius-md) var(--radius-md); }

/* ----------------------------------------------------------------
   TABLE
---------------------------------------------------------------- */
.data-table { width: 100%; border-collapse: collapse; font-family: var(--ff-ui); font-size: 13.5px; }
.data-table th { padding: 11px 14px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--ivory-dark); border-bottom: 2px solid var(--border); white-space: nowrap; }
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--border-light); vertical-align: middle; color: var(--text-mid); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(13,43,30,.025); }
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
.table-action-group { display: flex; align-items: center; gap: 5px; }

/* ----------------------------------------------------------------
   TOP BAR
---------------------------------------------------------------- */
.topbar {
  background: var(--forest-deep); color: rgba(248,244,237,.6);
  font-family: var(--ff-ui); font-size: 11.5px; letter-spacing: .02em;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 0; }
.topbar-sep { margin: 0 10px; opacity: .25; }
.topbar a { color: inherit; text-decoration: none; transition: color var(--transition); }
.topbar a:hover { color: var(--ivory); }
.topbar .editorial-link { color: var(--copper) !important; font-weight: 600; }

/* ----------------------------------------------------------------
   HEADER
---------------------------------------------------------------- */
.site-header {
  background: var(--forest); color: var(--ivory);
  position: sticky; top: 0; z-index: 900;
  transition: box-shadow var(--transition-slow);
}
.site-header.scrolled { box-shadow: 0 4px 28px rgba(0,0,0,.4); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }

/* Logo */
.site-logo { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ivory); flex-shrink: 0; }
.logo-mark { width: 40px; height: 40px; color: var(--copper); flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: var(--ff-display); font-size: 1rem; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.logo-tagline { font-family: var(--ff-ui); font-size: 9.5px; color: rgba(248,244,237,.4); letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }

/* Nav */
.primary-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 1px; }
.nav-list li { position: relative; }
.nav-list a { display: flex; align-items: center; gap: 4px; font-family: var(--ff-ui); font-size: 13px; font-weight: 500; color: rgba(248,244,237,.8); padding: 7px 13px; border-radius: var(--radius-sm); transition: all var(--transition); text-decoration: none; white-space: nowrap; }
.nav-list a:hover, .nav-list .current > a { color: var(--ivory); background: rgba(255,255,255,.09); }
.nav-list .has-sub > a::after { content: ''; display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor; margin-left: 4px; opacity: .6; }
.nav-dropdown { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: #0a2219; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-sm); padding: 6px; min-width: 210px; box-shadow: var(--shadow-lg); z-index: 100; }
.nav-list li:hover .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: 8px 12px; border-radius: var(--radius-xs); font-size: 13px; }

/* Search toggle */
.search-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255,255,255,.08); border: none; border-radius: var(--radius-sm); color: var(--ivory); transition: background var(--transition); flex-shrink: 0; }
.search-btn:hover { background: rgba(255,255,255,.15); }

/* Mobile toggle */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; padding: 4px; margin-left: auto; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ivory); border-radius: 2px; transition: all .3s; }

/* Search bar */
.header-search { display: none; background: rgba(0,0,0,.22); border-top: 1px solid rgba(255,255,255,.07); padding: 12px 0; }
.header-search.open { display: block; }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.15); color: var(--ivory); font-family: var(--ff-ui); font-size: 14px; padding: 9px 16px; border-radius: var(--radius-sm); outline: none; transition: border-color var(--transition); }
.search-form input::placeholder { color: rgba(248,244,237,.4); }
.search-form input:focus { border-color: var(--copper); }
.search-form button { background: var(--copper); color: #fff; border: none; padding: 9px 18px; border-radius: var(--radius-sm); font-family: var(--ff-ui); font-size: 13px; font-weight: 600; transition: background var(--transition); }
.search-form button:hover { background: var(--copper-light); }
.search-close-btn { background: none; border: none; color: rgba(248,244,237,.55); padding: 9px; }

/* ----------------------------------------------------------------
   HERO
---------------------------------------------------------------- */
.hero {
  background: linear-gradient(140deg, var(--forest-deep) 0%, #0f3521 45%, #1a4a30 100%);
  color: var(--ivory); padding: 88px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 20% 60%, rgba(200,135,60,.07) 0%, transparent 55%),
              radial-gradient(ellipse at 82% 15%, rgba(248,244,237,.03) 0%, transparent 50%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 380px; gap: 72px; align-items: center; position: relative; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(200,135,60,.18); border: 1px solid rgba(200,135,60,.35); color: var(--copper); font-family: var(--ff-ui); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: var(--radius-full); margin-bottom: 22px; }
.hero-eyebrow-dot { width: 6px; height: 6px; background: var(--copper); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.8)} }
.hero-title { font-family: var(--ff-display); font-size: clamp(2rem,5vw,3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; margin-bottom: 22px; color: var(--ivory); }
.hero-title em { color: var(--copper); font-style: italic; }
.hero-desc { font-family: var(--ff-body); font-size: 1.08rem; line-height: 1.78; color: rgba(248,244,237,.72); margin-bottom: 36px; max-width: 510px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 36px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stat-num { display: block; font-family: var(--ff-display); font-size: 1.7rem; font-weight: 700; color: var(--copper); line-height: 1; }
.hero-stat-lbl { display: block; font-family: var(--ff-ui); font-size: 10.5px; color: rgba(248,244,237,.5); text-transform: uppercase; letter-spacing: .08em; margin-top: 5px; }
.hero-visual { position: relative; }
.hero-globe { width: 240px; margin: 0 auto 20px; opacity: .55; }
.hero-globe svg { width: 100%; animation: rotateSlow 50s linear infinite; }
@keyframes rotateSlow { to { transform: rotate(360deg); } }
.hero-cards { display: flex; flex-direction: column; gap: 10px; }
.hero-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: 13px 16px; }
.hero-card-type { font-family: var(--ff-ui); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--copper); display: block; margin-bottom: 4px; }
.hero-card-title { font-family: var(--ff-body); font-size: 12.5px; color: rgba(248,244,237,.9); line-height: 1.45; margin-bottom: 4px; }
.hero-card-author { font-family: var(--ff-ui); font-size: 11px; color: rgba(248,244,237,.45); }

/* ----------------------------------------------------------------
   SUBJECT STRIP
---------------------------------------------------------------- */
.subject-strip { background: var(--ivory-dark); border-bottom: 1px solid var(--border); padding: 13px 0; }
.subject-strip-inner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.subject-label { font-family: var(--ff-ui); font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-right: 4px; white-space: nowrap; }
.subject-pill { background: var(--forest); color: rgba(248,244,237,.88); font-family: var(--ff-ui); font-size: 11.5px; font-weight: 500; padding: 4px 12px; border-radius: var(--radius-full); text-decoration: none; transition: background var(--transition), transform var(--transition); }
.subject-pill:hover { background: var(--forest-mid); transform: translateY(-1px); color: var(--ivory); }

/* ----------------------------------------------------------------
   SECTION UTILITIES
---------------------------------------------------------------- */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-dark { background: var(--forest); color: var(--ivory); }
.section-muted { background: var(--ivory-dark); }
.section-label { display: block; font-family: var(--ff-ui); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); margin-bottom: 8px; }
.section-title { font-family: var(--ff-display); font-size: clamp(1.6rem,3vw,2.3rem); font-weight: 700; color: var(--forest-deep); letter-spacing: -.02em; line-height: 1.2; }
.section-dark .section-title { color: var(--ivory); }
.section-subtitle { font-family: var(--ff-body); font-size: 1rem; color: var(--muted); line-height: 1.68; margin-top: 12px; max-width: 540px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.section-header-center { text-align: center; }
.section-header-center .section-subtitle { margin: 12px auto 0; }

/* ----------------------------------------------------------------
   PAPER CARDS
---------------------------------------------------------------- */
/* Grid card */
.paper-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.paper-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.paper-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(13,43,30,.18); }
.paper-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.paper-card-top { display: flex; gap: 7px; margin-bottom: 13px; flex-wrap: wrap; align-items: center; }
.paper-type-tag { font-family: var(--ff-ui); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--forest); color: rgba(248,244,237,.92); padding: 3px 9px; border-radius: var(--radius-xs); }
.paper-subj-tag { font-family: var(--ff-ui); font-size: 10px; font-weight: 600; color: var(--copper); background: rgba(200,135,60,.1); border: 1px solid rgba(200,135,60,.22); padding: 3px 9px; border-radius: var(--radius-xs); }
.paper-card-title { font-family: var(--ff-body); font-size: 1rem; font-weight: 600; line-height: 1.44; color: var(--forest-deep); margin-bottom: 9px; flex: 1; }
.paper-card-title a { color: inherit; text-decoration: none; }
.paper-card-title a:hover { color: var(--forest-mid); text-decoration: underline; }
.paper-card-authors { font-family: var(--ff-ui); font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.paper-card-abstract { font-family: var(--ff-body); font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.paper-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border-light); font-family: var(--ff-ui); font-size: 11.5px; color: var(--muted); }
.paper-card-meta { display: flex; gap: 10px; align-items: center; }
.paper-card-stats { display: flex; gap: 8px; }
.paper-card-stats span { display: flex; align-items: center; gap: 3px; }
.doi-pill { font-family: var(--ff-mono); font-size: 10px; color: var(--copper); background: rgba(200,135,60,.1); padding: 2px 7px; border-radius: 3px; }
.oa-badge { background: #ffd700; color: #6b4000; font-family: var(--ff-ui); font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-xs); letter-spacing: .05em; }

/* List card */
.paper-list-item { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--border-light); }
.paper-list-item:first-child { border-top: 1px solid var(--border-light); }
.paper-list-type { flex-shrink: 0; width: 95px; padding-top: 2px; }
.paper-list-body { flex: 1; }
.paper-list-title { font-family: var(--ff-body); font-size: 1.05rem; font-weight: 600; line-height: 1.4; color: var(--forest-deep); margin-bottom: 6px; }
.paper-list-title a { color: inherit; text-decoration: none; }
.paper-list-title a:hover { color: var(--forest-mid); text-decoration: underline; }
.paper-list-authors { font-family: var(--ff-ui); font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.paper-list-abstract { font-family: var(--ff-body); font-size: 13px; color: var(--muted); line-height: 1.58; margin-bottom: 10px; }
.paper-list-footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--ff-ui); font-size: 11.5px; color: var(--muted); }
.paper-list-stats { display: flex; gap: 10px; margin-left: auto; }
.paper-list-stats span { display: flex; align-items: center; gap: 3px; }
.kw-tag { font-family: var(--ff-ui); font-size: 11px; color: var(--forest-mid); background: rgba(45,122,80,.08); padding: 3px 9px; border-radius: var(--radius-xs); text-decoration: none; }
.kw-tag:hover { background: rgba(45,122,80,.15); color: var(--forest); }

/* ----------------------------------------------------------------
   FEATURE CARDS
---------------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px 24px; transition: transform var(--transition), box-shadow var(--transition); }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.feature-icon { width: 50px; height: 50px; background: rgba(13,43,30,.07); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--forest); margin-bottom: 16px; }
.feature-title { font-family: var(--ff-ui); font-size: 15px; font-weight: 700; color: var(--forest-deep); margin-bottom: 8px; }
.feature-desc { font-family: var(--ff-body); font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ----------------------------------------------------------------
   FOOTER
---------------------------------------------------------------- */
.site-footer { background: var(--forest-deep); color: rgba(248,244,237,.65); }
.footer-main { padding: 60px 0 48px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 12px; color: var(--ivory); font-family: var(--ff-display); font-size: 1rem; font-weight: 700; margin-bottom: 13px; }
.footer-brand .footer-logo svg { color: var(--copper); }
.footer-brand p { font-size: .875rem; line-height: 1.7; margin-bottom: 20px; }
.footer-meta { display: flex; flex-direction: column; gap: 8px; }
.footer-meta-row { display: flex; flex-direction: column; gap: 1px; }
.footer-meta-key { font-family: var(--ff-ui); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(248,244,237,.3); }
.footer-meta-val { font-family: var(--ff-ui); font-size: 12.5px; color: rgba(248,244,237,.7); }
.footer-col-title { font-family: var(--ff-ui); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--copper); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-family: var(--ff-ui); font-size: 13px; color: rgba(248,244,237,.6); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--ivory); }
.footer-newsletter-label { font-family: var(--ff-ui); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(248,244,237,.35); margin-bottom: 10px; }
.footer-newsletter-form { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.footer-newsletter-form input { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: var(--ivory); padding: 9px 14px; border-radius: var(--radius-sm); font-family: var(--ff-ui); font-size: 13px; outline: none; }
.footer-newsletter-form input::placeholder { color: rgba(248,244,237,.3); }
.footer-newsletter-form input:focus { border-color: var(--copper); }
.footer-newsletter-form button { background: var(--copper); color: #fff; border: none; padding: 9px 16px; border-radius: var(--radius-sm); font-family: var(--ff-ui); font-size: 13px; font-weight: 600; }
.footer-bottom { padding: 18px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-copy { font-family: var(--ff-ui); font-size: 11.5px; color: rgba(248,244,237,.35); }
.footer-copy a { color: var(--copper); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { font-family: var(--ff-ui); font-size: 11.5px; color: rgba(248,244,237,.35); text-decoration: none; transition: color var(--transition); }
.footer-legal a:hover { color: var(--ivory); }

/* ----------------------------------------------------------------
   ARTICLE PAGE
---------------------------------------------------------------- */
.article-header { background: var(--forest-deep); color: var(--ivory); padding: 44px 0 38px; }
.article-breadcrumb { display: flex; align-items: center; gap: 7px; font-family: var(--ff-ui); font-size: 12px; color: rgba(248,244,237,.4); margin-bottom: 18px; }
.article-breadcrumb a { color: inherit; text-decoration: none; }
.article-breadcrumb a:hover { color: var(--copper); }
.article-breadcrumb svg { opacity: .4; }
.article-meta-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.article-type-badge { background: var(--copper); color: #fff; font-family: var(--ff-ui); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 11px; border-radius: var(--radius-xs); }
.article-volume { font-family: var(--ff-ui); font-size: 12px; color: rgba(248,244,237,.5); }
.article-doi-display { font-family: var(--ff-mono); font-size: 11.5px; color: rgba(248,244,237,.4); }
.article-doi-display a { color: inherit; text-decoration: underline; }
.article-title { font-family: var(--ff-display); font-size: clamp(1.5rem,3.5vw,2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--ivory); margin-bottom: 22px; }
.article-authors { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.article-author { display: flex; align-items: center; gap: 3px; }
.article-author-name { font-family: var(--ff-ui); font-weight: 500; font-size: 14px; color: rgba(248,244,237,.9); }
.article-author-sup { font-size: 10px; color: var(--copper); }
.author-sep { color: rgba(248,244,237,.3); }
.orcid-link { color: #a6ce39; display: flex; align-items: center; }
.corr-mark { color: rgba(248,244,237,.5); font-size: 12px; }
.article-affiliations { margin-bottom: 12px; }
.article-affil { font-family: var(--ff-ui); font-size: 11.5px; color: rgba(248,244,237,.48); line-height: 1.65; }
.article-affil sup { color: var(--copper); }
.article-dates { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--ff-ui); font-size: 11.5px; color: rgba(248,244,237,.4); margin-bottom: 26px; }
.article-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.article-metrics { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.metric-chip { display: flex; align-items: center; gap: 4px; font-family: var(--ff-ui); font-size: 12px; color: rgba(248,244,237,.45); }

/* Cite dropdown */
.cite-wrapper { position: relative; }
.cite-menu { position: absolute; top: calc(100% + 8px); left: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px; min-width: 224px; box-shadow: var(--shadow-md); z-index: 200; }
.cite-menu-title { font-family: var(--ff-ui); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 5px 10px 7px; }
.cite-option { display: block; width: 100%; text-align: left; padding: 8px 12px; font-family: var(--ff-ui); font-size: 13px; color: var(--text); background: none; border: none; border-radius: var(--radius-xs); cursor: pointer; text-decoration: none; transition: background var(--transition); }
.cite-option:hover { background: var(--ivory-dark); }
.cite-divider { border-top: 1px solid var(--border-light); margin: 5px 0; }

/* Article body layout */
.article-body { padding: 44px 0 80px; background: var(--ivory); }
.article-layout { display: grid; grid-template-columns: 196px 1fr 260px; gap: 40px; align-items: start; }
.article-sidebar { position: sticky; top: 80px; }
.article-sidebar-right { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 14px; }
.toc-box { background: var(--ivory-dark); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; }
.toc-title { font-family: var(--ff-ui); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc-list { list-style: none; }
.toc-list li { margin: 1px 0; }
.toc-link { font-family: var(--ff-ui); font-size: 12px; color: var(--muted); text-decoration: none; display: block; padding: 4px 8px 4px 10px; border-left: 2px solid transparent; border-radius: 0 var(--radius-xs) var(--radius-xs) 0; transition: all var(--transition); line-height: 1.4; }
.toc-link:hover { color: var(--forest); background: rgba(13,43,30,.05); }
.toc-link.active { color: var(--forest); border-left-color: var(--forest); background: rgba(13,43,30,.06); }
.toc-h3 .toc-link { padding-left: 22px; font-size: 11.5px; }

/* Article content typography */
.article-section { margin-bottom: 46px; }
.article-section-title { font-family: var(--ff-display); font-size: 1.32rem; font-weight: 700; color: var(--forest-deep); padding-bottom: 11px; border-bottom: 2px solid var(--forest); margin-bottom: 18px; letter-spacing: -.01em; display: block; }
.abstract-box { background: var(--ivory-dark); border-left: 4px solid var(--forest); padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--ff-body); font-size: 1rem; line-height: 1.82; color: var(--text); word-wrap: break-word; overflow-wrap: break-word; white-space: normal; }
.kw-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.kw-label { font-family: var(--ff-ui); font-size: 12px; font-weight: 600; color: var(--muted); }
.article-full-text { font-family: var(--ff-body); font-size: 1rem; line-height: 1.88; color: var(--text); }
.article-full-text h2 { font-family: var(--ff-display); font-size: 1.3rem; color: var(--forest-deep); margin: 40px 0 14px; padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.article-full-text h3 { font-family: var(--ff-display); font-size: 1.1rem; color: var(--forest-deep); margin: 30px 0 12px; }
.article-full-text p { margin-bottom: 18px; }
.article-full-text figure { margin: 32px 0; }
.article-full-text figcaption { font-size: .875rem; color: var(--muted); font-style: italic; margin-top: 8px; text-align: center; }
.article-full-text table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .9rem; }
.article-full-text th { background: var(--ivory-dark); padding: 8px 12px; text-align: left; font-family: var(--ff-ui); font-weight: 600; border: 1px solid var(--border); }
.article-full-text td { padding: 8px 12px; border: 1px solid var(--border-light); }
.ref-list { list-style: decimal; padding-left: 22px; }
.ref-item { font-size: .9rem; line-height: 1.65; margin-bottom: 12px; color: var(--text-mid); }
.ref-doi { color: var(--forest-mid); font-family: var(--ff-mono); font-size: .78rem; word-break: break-all; }
.declaration-block { background: var(--ivory-dark); border-radius: var(--radius-sm); padding: 15px 18px; margin-bottom: 12px; }
.declaration-block h4 { font-family: var(--ff-ui); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; }
.declaration-block p { font-size: .9rem; color: var(--text-mid); margin: 0; }
.cite-apa { background: var(--ivory-dark); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 22px; font-family: var(--ff-body); font-size: .9rem; line-height: 1.7; color: var(--text); }

/* Article right sidebar */
.article-info-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; }
.info-card-title { font-family: var(--ff-ui); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.info-dl dt { font-family: var(--ff-ui); font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.info-dl dd { font-family: var(--ff-ui); font-size: 13px; color: var(--text); margin: 0 0 12px; word-break: break-word; }
.info-dl dd:last-child { margin-bottom: 0; }
.doi-mono { font-family: var(--ff-mono); font-size: 12px; color: var(--forest-mid); word-break: break-all; }
.license-badge { display: inline-flex; align-items: center; gap: 5px; background: #fdf6e3; border: 1px solid #e6d69f; color: #7a5900; font-family: var(--ff-ui); font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: var(--radius-xs); }
.subj-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.subj-chip { font-family: var(--ff-ui); font-size: 11.5px; font-weight: 500; color: var(--forest); background: rgba(45,122,80,.08); border-radius: var(--radius-xs); padding: 4px 10px; text-decoration: none; }
.share-col { display: flex; flex-direction: column; gap: 7px; }
.share-item { display: block; text-align: center; padding: 8px 14px; border-radius: var(--radius-sm); font-family: var(--ff-ui); font-size: 12.5px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--border); background: var(--white); color: var(--text); transition: all var(--transition); cursor: pointer; }
.share-item:hover { background: var(--ivory-dark); }

/* ----------------------------------------------------------------
   ARCHIVE / BROWSE PAGE
---------------------------------------------------------------- */
.browse-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 40px 0; }
.filter-sidebar { position: sticky; top: 80px; align-self: start; }
.filter-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 14px; }
.filter-card-head { padding: 13px 16px; background: var(--ivory-dark); border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.filter-card-head h4 { font-family: var(--ff-ui); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.filter-card-body { padding: 10px; }
.filter-search { display: flex; margin-bottom: 14px; }
.filter-search input { flex: 1; padding: 8px 12px; border: 1.5px solid var(--border); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-family: var(--ff-ui); font-size: 13px; outline: none; }
.filter-search input:focus { border-color: var(--forest-mid); }
.filter-search button { padding: 8px 13px; background: var(--forest); color: #fff; border: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.filter-option { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; font-family: var(--ff-ui); font-size: 13px; color: var(--text); text-decoration: none; border-radius: var(--radius-xs); transition: background var(--transition); }
.filter-option:hover { background: var(--ivory-dark); }
.filter-option.active { background: rgba(13,43,30,.08); color: var(--forest); font-weight: 600; }
.filter-count { font-size: 11px; color: var(--muted); background: var(--ivory-dark); padding: 1px 7px; border-radius: var(--radius-full); }
.active-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 18px; }
.active-tag { background: var(--forest); color: var(--ivory); font-family: var(--ff-ui); font-size: 11.5px; padding: 3px 10px; border-radius: var(--radius-xs); text-decoration: none; display: flex; align-items: center; gap: 5px; }
.active-tag:hover { background: var(--forest-mid); color: var(--ivory); }
.clear-all { font-family: var(--ff-ui); font-size: 11.5px; color: var(--copper); text-decoration: underline; margin-left: 2px; }
.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.results-count { font-family: var(--ff-ui); font-size: 14px; color: var(--muted); }
.sort-select { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 7px 12px; font-family: var(--ff-ui); font-size: 13px; background: var(--white); cursor: pointer; }
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 44px; flex-wrap: wrap; }
.pagination .page-numbers { display: flex; align-items: center; gap: 4px; padding: 8px 14px; font-family: var(--ff-ui); font-size: 13px; font-weight: 500; color: var(--forest-deep); background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; transition: all var(--transition); }
.pagination .page-numbers:hover, .pagination .page-numbers.current { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.no-results { text-align: center; padding: 60px 20px; }
.no-results svg { color: var(--border); margin: 0 auto 20px; }
.no-results h3 { font-family: var(--ff-display); font-size: 1.3rem; color: var(--forest-deep); margin-bottom: 8px; }
.no-results p { color: var(--muted); margin-bottom: 20px; }

/* ----------------------------------------------------------------
   SUBMISSION FORM
---------------------------------------------------------------- */
.submission-page { padding: 44px 0 80px; }
.submission-layout { display: grid; grid-template-columns: 270px 1fr; gap: 36px; }
.submission-sidebar > * { margin-bottom: 16px; }
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist-item { display: flex; align-items: flex-start; gap: 9px; font-family: var(--ff-ui); font-size: 13px; color: var(--text); line-height: 1.45; }
.checklist-item svg { flex-shrink: 0; color: var(--green); margin-top: 1px; }

/* Step indicator */
.step-bar { display: flex; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 22px; margin-bottom: 30px; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 0; }
.step-circle { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: var(--ff-ui); font-size: 13px; font-weight: 700; color: var(--muted); background: var(--white); transition: all .3s; flex-shrink: 0; }
.step-label { font-family: var(--ff-ui); font-size: 11px; color: var(--muted); white-space: nowrap; }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 8px 18px; transition: background .3s; }
.step-item.active .step-circle { background: var(--forest); border-color: var(--forest); color: #fff; }
.step-item.active .step-label { color: var(--forest); font-weight: 600; }
.step-item.done .step-circle { background: var(--green); border-color: var(--green); color: #fff; }
.step-item.done + .step-line { background: var(--green); }

/* Step panels */
.step-panel { display: none; }
.step-panel.active { display: block; }
.step-panel-head { margin-bottom: 26px; }
.step-panel-head h2 { font-family: var(--ff-display); font-size: 1.5rem; font-weight: 700; color: var(--forest-deep); margin-bottom: 6px; }
.step-panel-head p { font-family: var(--ff-body); font-size: .9rem; color: var(--muted); }
.step-actions { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); }

/* Auto-extract banner */
.extract-banner { display: flex; align-items: center; gap: 14px; background: rgba(13,43,30,.04); border: 1.5px dashed rgba(13,43,30,.2); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 26px; flex-wrap: wrap; }
.extract-banner svg { color: var(--forest); flex-shrink: 0; }
.extract-banner-text h4 { font-family: var(--ff-ui); font-size: 14px; font-weight: 700; color: var(--forest-deep); margin-bottom: 3px; }
.extract-banner-text p { font-family: var(--ff-body); font-size: 13px; color: var(--muted); margin: 0; }
.extract-status { width: 100%; font-family: var(--ff-ui); font-size: 13px; }
.extract-ok { color: var(--green); } .extract-err { color: var(--red); } .extract-loading { color: var(--muted); }

/* Keywords input */
.kw-input-wrap { position: relative; }
.kw-tags-box { display: flex; flex-wrap: wrap; gap: 6px; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--white); cursor: text; transition: border-color var(--transition); }
.kw-tags-box:focus-within { border-color: var(--forest-mid); box-shadow: 0 0 0 3px rgba(45,122,80,.12); }
.kw-tag-pill { display: flex; align-items: center; gap: 4px; background: var(--forest); color: var(--ivory); font-family: var(--ff-ui); font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: var(--radius-xs); }
.kw-tag-pill button { background: none; border: none; color: rgba(248,244,237,.65); font-size: 15px; line-height: 1; padding: 0; cursor: pointer; }
.kw-text-input { border: none; outline: none; font-family: var(--ff-ui); font-size: 13.5px; color: var(--text); background: transparent; min-width: 140px; flex: 1; padding: 2px 0; }
.kw-text-input::placeholder { color: var(--muted-light); }

/* File upload zone */
.upload-zone { border: 2px dashed var(--border); border-radius: var(--radius-md); padding: 40px 24px; text-align: center; transition: all var(--transition); cursor: default; background: var(--white); margin-bottom: 14px; }
.upload-zone.drag-over { border-color: var(--forest-mid); background: rgba(13,43,30,.03); }
.upload-zone svg { color: var(--muted); margin: 0 auto 13px; }
.upload-zone h3 { font-family: var(--ff-ui); font-size: 15px; font-weight: 700; color: var(--forest-deep); margin-bottom: 6px; }
.upload-zone p { font-family: var(--ff-body); font-size: 13.5px; color: var(--muted); margin-bottom: 4px; }
.upload-zone .formats { font-size: 12px !important; margin-bottom: 14px; }
.file-selected-row { display: flex; align-items: center; gap: 10px; font-family: var(--ff-ui); font-size: 13px; color: var(--text); padding: 11px 14px; background: rgba(13,43,30,.05); border-radius: var(--radius-sm); margin-top: 12px; }
.file-selected-row svg { color: var(--forest); flex-shrink: 0; }
.file-selected-name { flex: 1; font-weight: 500; }
.file-selected-meta { color: var(--muted); font-size: 11.5px; }
.file-remove { background: none; border: none; color: var(--red); font-size: 18px; line-height: 1; cursor: pointer; margin-left: auto; padding: 2px; }
.supp-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.supp-item { display: flex; align-items: center; gap: 8px; font-family: var(--ff-ui); font-size: 13px; padding: 8px 12px; background: var(--ivory-dark); border-radius: var(--radius-xs); }
.supp-item .file-remove { margin-left: auto; }

/* Author entries */
.author-entry { background: var(--ivory-dark); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 13px; }
.author-entry-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.author-num { font-family: var(--ff-ui); font-size: 13px; font-weight: 700; color: var(--forest-deep); }
.author-entry .submitter-tag { background: var(--forest); color: var(--ivory); font-size: 10.5px; font-family: var(--ff-ui); font-weight: 600; padding: 2px 9px; border-radius: var(--radius-xs); }

/* References import */
.ref-import-section { border-top: 1px solid var(--border); padding-top: 26px; margin-top: 30px; }
.ref-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.ref-tab { padding: 7px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: none; font-family: var(--ff-ui); font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer; transition: all var(--transition); }
.ref-tab.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.ref-tab-panel { display: none; }
.ref-tab-panel.active { display: block; }
.ref-preview { background: rgba(13,43,30,.04); border: 1px solid rgba(13,43,30,.1); border-radius: var(--radius-sm); padding: 14px; margin-top: 12px; }
.ref-preview-header { font-family: var(--ff-ui); font-size: 12.5px; font-weight: 700; color: var(--forest-deep); margin-bottom: 10px; }
.ref-preview-item { display: flex; gap: 9px; font-family: var(--ff-body); font-size: 12.5px; color: var(--text); padding: 5px 0; border-bottom: 1px solid rgba(13,43,30,.06); }
.ref-n { font-family: var(--ff-mono); font-size: 11px; font-weight: 600; color: var(--muted); width: 18px; flex-shrink: 0; margin-top: 1px; }

/* Declaration section */
.declaration-checks { background: rgba(13,43,30,.04); border: 1.5px solid rgba(13,43,30,.1); border-radius: var(--radius-sm); padding: 18px 22px; margin: 22px 0; display: flex; flex-direction: column; gap: 12px; }

/* Submission review section */
.review-section-block { background: var(--ivory-dark); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 12px; }
.review-section-block h4 { font-family: var(--ff-ui); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.review-section-block dl { display: grid; grid-template-columns: 130px 1fr; gap: 6px 14px; font-family: var(--ff-ui); font-size: 13px; }
.review-section-block dt { font-weight: 600; color: var(--muted); }
.review-section-block dd { color: var(--text); }

/* Submission success */
.submission-success { text-align: center; padding: 60px 20px; }
.submission-success svg { color: var(--green); margin: 0 auto 20px; }
.submission-success h2 { font-family: var(--ff-display); font-size: 2rem; color: var(--forest-deep); margin-bottom: 12px; }
.submission-success p { font-family: var(--ff-body); color: var(--muted); margin-bottom: 20px; max-width: 480px; margin-left: auto; margin-right: auto; }
.sub-number-display { font-family: var(--ff-mono); font-size: 1.1rem; color: var(--forest); font-weight: 700; background: rgba(13,43,30,.07); padding: 10px 24px; border-radius: var(--radius-sm); display: inline-block; margin-bottom: 28px; }

/* ----------------------------------------------------------------
   DASHBOARD
---------------------------------------------------------------- */
.dashboard-header { background: var(--forest-deep); color: var(--ivory); padding: 30px 0; }
.dashboard-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.dashboard-user { display: flex; align-items: center; gap: 16px; }
.dashboard-avatar { width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(248,244,237,.2); object-fit: cover; }
.dashboard-user-info h1 { font-family: var(--ff-display); font-size: 1.45rem; font-weight: 700; color: var(--ivory); margin-bottom: 3px; }
.dashboard-user-info p { font-family: var(--ff-ui); font-size: 13px; color: rgba(248,244,237,.5); }
.dashboard-stats-strip { background: var(--forest); border-bottom: 1px solid rgba(255,255,255,.07); padding: 13px 0; }
.dashboard-stats { display: flex; gap: 44px; flex-wrap: wrap; }
.d-stat { text-align: center; }
.d-stat-num { font-family: var(--ff-display); font-size: 1.65rem; font-weight: 700; color: var(--copper); display: block; line-height: 1; }
.d-stat-lbl { font-family: var(--ff-ui); font-size: 10.5px; color: rgba(248,244,237,.45); text-transform: uppercase; letter-spacing: .08em; display: block; margin-top: 4px; }
.dashboard-layout { display: grid; grid-template-columns: 220px 1fr; gap: 36px; padding: 36px 0; }
.dashboard-nav { position: sticky; top: 80px; align-self: start; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.dashboard-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-family: var(--ff-ui); font-size: 13.5px; font-weight: 500; color: var(--text); text-decoration: none; border-left: 3px solid transparent; transition: all var(--transition); }
.dashboard-nav a:hover { background: var(--ivory-dark); color: var(--forest); }
.dashboard-nav a.active { background: rgba(13,43,30,.07); color: var(--forest); border-left-color: var(--forest); font-weight: 700; }
.dashboard-nav a svg { color: var(--muted); flex-shrink: 0; }
.dashboard-nav a.active svg, .dashboard-nav a:hover svg { color: var(--forest); }
.d-nav-badge { font-family: var(--ff-ui); font-size: 10px; font-weight: 700; background: var(--muted); color: #fff; padding: 1px 6px; border-radius: var(--radius-full); margin-left: auto; }
.d-nav-badge.alert { background: var(--red); }
.dashboard-content { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; }
.d-tab-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.d-tab-header h2 { font-family: var(--ff-display); font-size: 1.3rem; font-weight: 700; color: var(--forest-deep); }
.empty-state { text-align: center; padding: 50px 20px; }
.empty-state svg { color: var(--border); margin: 0 auto 16px; }
.empty-state h3 { font-family: var(--ff-display); font-size: 1.2rem; color: var(--forest-deep); margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 18px; }
.review-assign-card { background: var(--ivory-dark); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 13px; }
.review-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.review-card-top h3 { font-family: var(--ff-body); font-size: 1rem; font-weight: 600; color: var(--forest-deep); }
.review-card-meta { font-family: var(--ff-ui); font-size: 12.5px; color: var(--muted); margin-bottom: 13px; }
.profile-form { max-width: 620px; }

/* ----------------------------------------------------------------
   ADMIN (WP back-end) ENHANCEMENTS
---------------------------------------------------------------- */
.sps-admin-wrap { font-family: var(--ff-ui); }
.sps-admin-wrap .page-title-action { margin-left: 8px; }

/* ----------------------------------------------------------------
   PAGE HEADER
---------------------------------------------------------------- */
.page-hero { background: var(--forest-deep); color: var(--ivory); padding: 40px 0; }
.page-hero-breadcrumb { display: flex; align-items: center; gap: 7px; font-family: var(--ff-ui); font-size: 12px; color: rgba(248,244,237,.4); margin-bottom: 12px; }
.page-hero-breadcrumb a { color: inherit; } .page-hero-breadcrumb a:hover { color: var(--copper); }
.page-hero-title { font-family: var(--ff-display); font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 700; color: var(--ivory); letter-spacing: -.02em; margin-bottom: 8px; }
.page-hero-sub { font-family: var(--ff-body); font-size: 1rem; color: rgba(248,244,237,.6); }

/* Generic page layout */
.page-content-wrap { padding: 48px 0; }
.page-prose { max-width: 820px; margin: 0 auto; padding: 48px 20px 80px; }
.page-prose h2 { font-family: var(--ff-display); font-size: 1.65rem; color: var(--forest-deep); margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--forest); }
.page-prose h3 { font-family: var(--ff-display); font-size: 1.25rem; color: var(--forest-mid); margin: 24px 0 10px; }
.page-prose h4 { font-family: var(--ff-display); font-size: 1.08rem; color: var(--forest-deep); margin: 18px 0 8px; font-weight: 600; }
.page-prose p { font-family: var(--ff-body); font-size: 1.02rem; line-height: 1.8; color: var(--text); margin-bottom: 1.15em; }
.page-prose ul, .page-prose ol { font-family: var(--ff-body); font-size: 1rem; line-height: 1.85; color: var(--text); margin: 1em 0 1.2em 1.5em; }
.page-prose li { margin-bottom: .45em; }
.page-prose a { color: var(--forest-mid); text-decoration: underline; text-underline-offset: 2px; }
.page-prose a:hover { color: var(--copper); }
.page-prose strong { color: var(--forest-deep); }
.prose { font-family: var(--ff-body); font-size: 1rem; line-height: 1.85; color: var(--text); }
.prose h2 { font-family: var(--ff-display); color: var(--forest-deep); font-size: 1.5rem; margin: 36px 0 14px; }
.prose h3 { font-family: var(--ff-display); color: var(--forest-deep); font-size: 1.2rem; margin: 28px 0 12px; }
.prose p { margin-bottom: 16px; }
.prose ul { list-style: disc; padding-left: 20px; margin-bottom: 16px; }
.prose li { margin-bottom: 5px; }

/* ----------------------------------------------------------------
   CTA STRIP
---------------------------------------------------------------- */
.cta-strip { background: var(--forest); padding: 68px 0; }
.cta-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-strip h2 { font-family: var(--ff-display); font-size: clamp(1.4rem,3vw,2rem); font-weight: 700; color: var(--ivory); letter-spacing: -.02em; margin-bottom: 8px; }
.cta-strip p { color: rgba(248,244,237,.68); font-size: .96rem; }
.cta-strip-actions { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }

/* ----------------------------------------------------------------
   REVIEW INVITATION PAGE
---------------------------------------------------------------- */
.review-invite-page { padding: 48px 0 80px; }
.review-invite-wrap { max-width: 760px; margin: 0 auto; }
.manuscript-preview { background: var(--ivory-dark); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 24px; margin: 20px 0; }
.manuscript-preview h3 { font-family: var(--ff-body); font-size: 1.1rem; font-weight: 600; color: var(--forest-deep); margin-bottom: 10px; }
.score-row { margin-bottom: 18px; }
.score-row label { display: block; font-family: var(--ff-ui); font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.score-btns { display: flex; gap: 6px; }
.score-btn { width: 40px; height: 40px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: none; font-family: var(--ff-ui); font-size: 14px; font-weight: 700; cursor: pointer; color: var(--muted); transition: all var(--transition); }
.score-btn:hover { border-color: var(--forest); color: var(--forest); }
.score-btn.selected { background: var(--forest); border-color: var(--forest); color: #fff; }
.score-note { font-family: var(--ff-ui); font-size: 11px; color: var(--muted); margin-top: 4px; }
.accept-decline-btns { display: flex; gap: 12px; margin-top: 22px; }

/* ----------------------------------------------------------------
   LOGIN PAGE
---------------------------------------------------------------- */
.login-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.login-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-md); }
.login-box-logo { text-align: center; margin-bottom: 28px; color: var(--forest); }

/* ----------------------------------------------------------------
   LOADING SPINNER
---------------------------------------------------------------- */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.spinner-dark { border-color: rgba(13,43,30,.2); border-top-color: var(--forest); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr 320px; gap: 44px; }
  .article-layout { grid-template-columns: 170px 1fr 230px; gap: 28px; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .paper-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  :root { --section-spacing: 60px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .browse-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-nav { position: static; display: flex; flex-wrap: wrap; }
  .dashboard-nav a { flex: 1; min-width: 120px; }
  .submission-layout { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .hamburger { display: flex; }
  .primary-nav { display: none; position: fixed; top: 102px; left: 0; right: 0; background: #0a2219; padding: 16px; flex-direction: column; align-items: flex-start; gap: 4px; z-index: 890; }
  .primary-nav.open { display: flex; }
  .nav-list { flex-direction: column; width: 100%; }
  .nav-list a { display: block; padding: 11px 14px; font-size: 15px; }
  .paper-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
  .form-row.three { grid-template-columns: 1fr; }
  .step-bar { flex-wrap: wrap; gap: 10px; justify-content: center; }
  .step-line { display: none; }
  .cta-strip-inner { flex-direction: column; text-align: center; }
  .dashboard-stats { gap: 24px; justify-content: center; }
}
@media print {
  .topbar, .site-header, .site-footer, .article-sidebar, .article-actions, .share-col { display: none !important; }
  .article-layout { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  .article-sidebar { display: none; }
  .article-sidebar-right { position: static; }
  .article-full-text { font-size: 11pt; }
}

/* ═══════════════════════════════════════════════════════════════
   PAPER CONTENT BLOCKS (block-based article rendering)
═══════════════════════════════════════════════════════════════ */

.paper-section { margin-bottom: 32px; }
.paper-section-title {
    font-family: var(--ff-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--forest-deep);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--forest);
    margin-bottom: 18px;
    letter-spacing: -.01em;
}
.paper-subsection { margin: 24px 0 20px; }
.paper-sub-title {
    font-family: var(--ff-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--forest-mid);
    margin-bottom: 12px;
}
.paper-paragraph { margin: 16px 0; }

/* Figures */
.paper-figure {
    margin: 30px 0;
    text-align: center;
    background: var(--white);
    padding: 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}
.paper-figure img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}
.paper-figure figcaption {
    font-family: var(--ff-ui);
    font-size: .88rem;
    color: var(--muted);
    margin-top: 12px;
    line-height: 1.55;
    text-align: left;
    padding: 0 8px;
}
.paper-figure figcaption strong {
    color: var(--forest-deep);
    font-weight: 700;
}

/* Tables */
.paper-table-wrap {
    margin: 30px 0;
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--white);
}
.paper-table-caption {
    padding: 12px 18px;
    font-family: var(--ff-ui);
    font-size: .9rem;
    color: var(--text);
    background: var(--ivory-dark);
    border-bottom: 1px solid var(--border-light);
}
.paper-table-caption strong { color: var(--forest-deep); }
.paper-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--ff-ui);
    font-size: .9rem;
}
.paper-table th, .paper-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}
.paper-table th {
    background: var(--ivory-dark);
    font-weight: 600;
    color: var(--forest-deep);
}
.paper-table tr:last-child td { border-bottom: none; }

/* Equations */
.paper-equation {
    margin: 24px 0;
    padding: 18px;
    background: #f5f3ff;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 1.05rem;
    position: relative;
}
.paper-equation .eq-label {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-family: var(--ff-ui);
    font-size: .85rem;
}
.paper-equation .eq-math { display: inline-block; }

/* Callouts */
.paper-callout {
    margin: 24px 0;
    padding: 16px 22px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--forest);
}
.paper-callout .callout-title {
    font-family: var(--ff-display);
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--forest-deep);
}
.paper-callout.callout-amber { background: #fef3c7; border-left-color: #f59e0b; }
.paper-callout.callout-blue  { background: #dbeafe; border-left-color: #3b82f6; }
.paper-callout.callout-green { background: #dcfce7; border-left-color: #059669; }
.paper-callout.callout-red   { background: #fee2e2; border-left-color: #dc2626; }

/* Quotes */
.paper-quote {
    border-left: 4px solid var(--forest);
    padding: 12px 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text);
    background: var(--ivory-dark);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.paper-quote .quote-source {
    display: block;
    margin-top: 8px;
    font-size: .85rem;
    color: var(--muted);
    font-style: normal;
}

/* Lists */
.paper-list { margin: 16px 0 16px 24px; line-height: 1.8; }
.paper-list li { margin-bottom: 6px; }

/* Code blocks */
.paper-code {
    background: #1f2937;
    color: #f9fafb;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-family: var(--ff-mono);
    font-size: .85rem;
    line-height: 1.6;
    margin: 20px 0;
}

/* Footer extras */
.footer-address { font-size: 13px; color: rgba(248,244,237,.65); margin-top: 14px; line-height: 1.6; }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(248,244,237,.08); color: rgba(248,244,237,.75); transition: all .2s; }
.footer-social-link:hover { background: var(--copper); color: #fff; transform: translateY(-2px); }
.footer-logo .site-logo { color: var(--ivory); }
.footer-logo .logo-name { color: var(--ivory); }
.footer-logo .logo-tagline { color: rgba(248,244,237,.5); }
.footer-legal-menu { display: flex; gap: 18px; font-size: 12px; list-style: none; padding: 0; margin: 0; }
.footer-legal-menu a { color: rgba(248,244,237,.5); }
.footer-legal-menu a:hover { color: var(--copper); }

/* Top bar menus from WP nav */
.topbar-menu { display: flex; gap: 14px; list-style: none; padding: 0; margin: 0; align-items: center; }
.topbar-menu li { display: inline-flex; }
.topbar-menu a { color: rgba(248,244,237,.75); font-size: 12px; }
.topbar-menu a:hover { color: var(--copper); }

/* Header CTA */
.header-cta { margin-left: 6px; }

/* ═══════════════════════════════════════════════════════════════
   STICKY TABLE OF CONTENTS for paper pages
═══════════════════════════════════════════════════════════════ */
.article-layout {
    display: grid;
    grid-template-columns: 260px 1fr 280px;
    gap: 40px;
    align-items: start;
}
.article-sidebar {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}
.article-sidebar .toc-box { background: transparent; border: 0; padding: 0; }
.article-sidebar .toc-title {
    font-family: var(--ff-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--forest-deep);
    text-transform: uppercase;
    letter-spacing: .08em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--forest);
    margin-bottom: 12px;
}
.article-sidebar .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--ff-ui);
    font-size: 13px;
}
.article-sidebar .toc-list li { margin-bottom: 4px; }
.article-sidebar .toc-list a {
    display: block;
    padding: 6px 10px;
    color: var(--text);
    border-radius: 4px;
    border-left: 2px solid transparent;
    line-height: 1.4;
    text-decoration: none;
}
.article-sidebar .toc-list a:hover { background: var(--ivory-dark); color: var(--forest-deep); }
.article-sidebar .toc-list a.active {
    background: var(--ivory-dark);
    color: var(--forest-deep);
    border-left-color: var(--copper);
    font-weight: 600;
}
.article-sidebar-right { position: sticky; top: 24px; }
.article-sidebar-right .article-info-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 14px;
}
.article-sidebar-right .info-card-title {
    font-family: var(--ff-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--forest-deep);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE & TABLET RESPONSIVENESS
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .article-layout {
        grid-template-columns: 220px 1fr;
        gap: 24px;
    }
    .article-sidebar-right { display: none; }
}

@media (max-width: 860px) {
    .article-layout {
        grid-template-columns: 1fr !important;
        display: block !important;
        gap: 0 !important;
    }
    /* TOC becomes a collapsible summary at top instead of blocking content */
    .article-sidebar {
        position: static !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 0 0 20px !important;
        padding: 14px 16px !important;
        background: var(--ivory-dark) !important;
        border: 1px solid var(--border-light) !important;
        border-radius: 8px !important;
    }
    .article-sidebar .toc-title { font-size: 13px; margin-bottom: 8px; }
    .article-sidebar .toc-list {
        max-height: 160px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .article-sidebar .toc-list a { padding: 5px 8px; font-size: 12.5px; }
    .article-sidebar-right {
        position: static !important;
        display: block !important;
        margin-top: 24px !important;
    }
    .article-sidebar-right .article-info-card { margin-bottom: 12px; }
    .article-main { width: 100% !important; min-width: 0 !important; }
    .article-body .container { padding: 0 16px; }

    /* Hero */
    .hero-grid { grid-template-columns: 1fr !important; gap: 30px; }
    .hero-visual { display: none; }
    .hero-title { font-size: clamp(1.6rem, 6vw, 2.2rem) !important; }
    .hero-desc { font-size: 0.95rem !important; }
    .hero-cta { flex-wrap: wrap; }
    .hero-cta .btn { flex: 1 1 auto; min-width: 140px; }

    /* Header */
    .primary-nav { display: none; }
    .primary-nav.open {
        display: flex;
        position: fixed;
        top: 60px;
        left: 0; right: 0; bottom: 0;
        background: var(--forest-deep);
        flex-direction: column;
        padding: 20px;
        z-index: 998;
        overflow-y: auto;
    }
    .primary-nav.open .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    .primary-nav.open .nav-list li { width: 100%; padding: 8px 0; border-bottom: 1px solid rgba(248,244,237,.1); }
    .primary-nav.open .nav-list a { color: var(--ivory); font-size: 16px; }
    .primary-nav.open .nav-dropdown { position: static; background: transparent; box-shadow: none; padding: 4px 0 4px 16px; }
    .primary-nav.open .nav-dropdown a { font-size: 14px; color: rgba(248,244,237,.75); }
    .primary-nav.open .header-cta { width: 100%; margin-top: 12px; text-align: center; }

    .hamburger { display: flex !important; }
    .search-btn { display: inline-flex; }
    .header-inner { gap: 12px; padding: 12px 0; }
    .logo-text .logo-name { font-size: 16px; }
    .logo-text .logo-tagline { display: none; }
    .logo-mark { width: 32px; height: 32px; }

    /* Top bar — stack */
    .topbar-inner { flex-direction: column; gap: 4px; padding: 8px 0; text-align: center; }
    .topbar-inner .topbar-left, .topbar-inner .topbar-right { flex-wrap: wrap; justify-content: center; }

    /* Sections */
    .section { padding: 40px 0 !important; }
    .section-title { font-size: clamp(1.3rem, 5vw, 1.8rem) !important; }
    .container { padding: 0 18px; }
    .paper-card-grid { grid-template-columns: 1fr !important; }

    /* Article page */
    .article-header .container { padding: 0 18px; }
    .article-title { font-size: clamp(1.4rem, 5.5vw, 2rem) !important; line-height: 1.3; }
    .article-actions { flex-wrap: wrap; }
    .article-actions .btn { flex: 1 1 45%; min-width: 120px; text-align: center; justify-content: center; }
    .article-metrics { width: 100%; justify-content: center; margin-top: 6px; }

    /* Paper figures/tables */
    .paper-figure { padding: 12px; }
    .paper-table-wrap { margin: 20px -12px; border-radius: 0; }
    .paper-table { font-size: .82rem; }
    .paper-table th, .paper-table td { padding: 6px 8px; }

    /* Editorial board - stack cards */
    .editor-card { flex-direction: column; text-align: center; }
    .editor-card > div:first-child { margin: 0 auto 14px; }
    .editor-card > div:nth-child(2) { width: 100%; }
    .board-group div[style*="grid-template-columns:repeat(2,1fr)"],
    .board-group div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Footer - stack */
    .footer-grid { grid-template-columns: 1fr !important; gap: 28px; text-align: left; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

    /* Submission form - stack steps */
    .step-indicator { flex-wrap: wrap; gap: 8px; }
    .page-prose { padding: 32px 18px 60px; }

    /* Author dashboard */
    .dashboard-stats { grid-template-columns: 1fr 1fr !important; gap: 10px; }
    .dashboard-stats > div { padding: 14px !important; }

    /* Subject strip - horizontal scroll */
    .subject-strip-inner { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
    .subject-pill { flex-shrink: 0; }
}

@media (max-width: 480px) {
    .logo-name { font-size: 14px !important; }
    .logo-mark { width: 28px; height: 28px; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .article-actions .btn { flex: 1 1 100%; }
    .article-meta-top { font-size: 11px; flex-wrap: wrap; gap: 6px; }
    .feature-grid, .paper-card-grid, .ed-grid { grid-template-columns: 1fr !important; }
}

/* Hamburger icon — default hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    gap: 4px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--forest-deep);
    transition: all .3s;
    border-radius: 2px;
}

/* Print-friendly article */
@media print {
    .site-header, .site-footer, .topbar, .article-sidebar, .article-sidebar-right,
    .article-actions, .hero-visual, .announcement-bar { display: none !important; }
    .article-layout { grid-template-columns: 1fr !important; }
    body { background: #fff; color: #000; }
    .article-body { padding: 0 !important; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE PAPER READING IMPROVEMENTS
═══════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
    /* Typography: make reading comfortable on small screens */
    .article-main { font-size: 16px; line-height: 1.75; }
    .article-main p { font-size: 1rem; line-height: 1.8; margin-bottom: 1.1em; }
    .article-main h2.article-section-title,
    .article-main .paper-section-title {
        font-size: 1.2rem !important;
        line-height: 1.3;
        margin-top: 28px;
    }
    .article-main h3, .article-main .paper-sub-title {
        font-size: 1.05rem !important;
        line-height: 1.35;
    }
    .abstract-box { padding: 14px 16px !important; font-size: .95rem; }

    /* Article header - prevent hero badges from clipping */
    .article-header { padding: 20px 0 !important; }
    .article-meta-top { gap: 6px !important; flex-wrap: wrap; font-size: 10.5px !important; }
    .article-authors { font-size: 14px !important; line-height: 1.6; }
    .article-affiliations { font-size: 12px !important; }
    .article-dates { flex-wrap: wrap; gap: 6px 12px !important; font-size: 11.5px !important; }

    /* Action buttons — stack nicely */
    .article-actions { flex-direction: column !important; align-items: stretch !important; gap: 8px !important; margin-top: 16px; }
    .article-actions .btn { width: 100%; justify-content: center; font-size: 13px; padding: 10px 14px; }
    .article-actions .cite-wrapper { position: relative; }
    .cite-menu { position: static !important; width: 100% !important; margin-top: 6px; }
    .article-metrics { width: 100%; justify-content: center; flex-wrap: wrap; gap: 8px; }

    /* Info cards on sidebar-right */
    .article-info-card { padding: 14px 16px !important; }
    .info-dl { grid-template-columns: 100px 1fr !important; font-size: 12.5px; }
}

@media (max-width: 480px) {
    .article-title { font-size: 1.3rem !important; line-height: 1.3 !important; }
    .article-main p { font-size: .97rem; }
    .article-main .paper-figure img { max-height: 260px; }
    .paper-table { display: block; overflow-x: auto; white-space: nowrap; }
    .info-dl { grid-template-columns: 90px 1fr !important; }
    .info-dl dt, .info-dl dd { font-size: 12px; }

    /* References - more compact */
    .ref-list { padding-left: 20px; }
    .ref-item { font-size: 13px; line-height: 1.55; margin-bottom: 10px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE: Article text readability — header doesn't cover content
═══════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
    /* Let header stay sticky but make it compact so less content is hidden */
    .site-header { padding: 0; }
    .site-header .header-inner { padding: 8px 0 !important; min-height: 48px; }
    .site-header .logo-mark { width: 26px; height: 26px; }
    .site-header .logo-text .logo-name { font-size: 14px !important; }

    /* Scroll padding — when jumping to TOC anchors, account for sticky header */
    html { scroll-padding-top: 70px; }

    /* Ensure article main has proper top padding so first heading isn't hidden */
    .article-main { padding-top: 8px; }

    /* Remove all sticky positioning from article layout on mobile */
    .article-layout > * { position: static !important; }
}

@media (max-width: 480px) {
    .site-header .header-inner { padding: 6px 0 !important; min-height: 44px; }
    html { scroll-padding-top: 60px; }

    /* Hide topbar on very small screens to reclaim space for reading */
    .topbar { display: none; }
}

/* Single-paper reading optimization: widen content column on mobile */
@media (max-width: 860px) {
    .article-body .container,
    .article-header .container {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DEFINITIVE MOBILE PAPER PAGE FIX (highest priority — overrides all)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
    .article-layout,
    body .article-layout {
        display: block !important;
        grid-template-columns: none !important;
        gap: 0 !important;
    }
    .article-layout > .article-sidebar,
    body .article-layout > .article-sidebar,
    #toc-sidebar {
        display: block !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 0 0 22px 0 !important;
        padding: 14px 16px !important;
        background: var(--ivory-dark, #f0ece3) !important;
        border: 1px solid rgba(13,43,30,.15) !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        z-index: auto !important;
    }
    .article-layout > .article-main,
    body .article-layout > .article-main,
    #article-main {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        clear: both !important;
    }
    .article-layout > .article-sidebar-right,
    body .article-layout > .article-sidebar-right {
        display: block !important;
        position: relative !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 30px 0 0 0 !important;
        float: none !important;
        clear: both !important;
    }
    /* Ensure TOC list scrolls inside its bounded box */
    #toc-sidebar .toc-list,
    .article-sidebar .toc-list {
        max-height: 200px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FIXES v2.1 — hamburger visibility, topbar on phone, dropdown bridge
═══════════════════════════════════════════════════════════════ */

/* Hamburger icon must be IVORY (not forest-deep) — header has dark bg */
.hamburger span,
body .hamburger span {
    background: var(--ivory, #f8f4ed) !important;
}

/* Restore topbar on phones — just compact it, don't hide */
@media (max-width: 480px) {
    .topbar { display: block !important; }
    .topbar-inner {
        flex-direction: column;
        gap: 2px;
        padding: 6px 0;
        height: auto;
        font-size: 11px;
    }
    .topbar-left, .topbar-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 8px;
    }
    .topbar-sep { margin: 0 4px; }
}

/* Desktop dropdown — bridge the gap so hover doesn't drop when mouse moves to dropdown */
@media (min-width: 861px) {
    .nav-list li.has-sub { position: relative; }
    .nav-list li.has-sub > a { padding-bottom: 12px; } /* extend hover target downward */
    .nav-dropdown {
        top: calc(100% + 0px) !important; /* no gap */
        padding-top: 10px !important;       /* visual spacing inside, not a gap */
        margin-top: -6px;                   /* overlap parent slightly so mouse never crosses empty space */
    }
    .nav-list li.has-sub:hover .nav-dropdown,
    .nav-list li.has-sub:focus-within .nav-dropdown {
        display: block !important;
    }
    /* Invisible bridge element between menu item and dropdown */
    .nav-list li.has-sub::before {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 12px;
        background: transparent;
    }
}

/* ═══════════════════════════════════════════════════════════════
   AUTHOR DRAG-AND-DROP (submission form)
═══════════════════════════════════════════════════════════════ */
.author-entry { transition: opacity .15s, transform .15s; }
.author-entry.dragging { opacity: .45; transform: scale(.985); }
.author-entry[draggable="true"] { cursor: default; }
.author-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--forest-mid, #2d5a3d);
    cursor: grab;
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: middle;
    user-select: none;
    background: rgba(45, 90, 61, 0.08);
    border: 1px solid rgba(45, 90, 61, 0.15);
    transition: all .15s;
}
.author-drag-handle:hover {
    background: var(--forest-mid, #2d5a3d);
    color: #fff;
    border-color: var(--forest-mid, #2d5a3d);
    transform: scale(1.05);
}
.author-drag-handle:active { cursor: grabbing; transform: scale(0.95); }
.author-entry.dragging { box-shadow: 0 4px 16px rgba(0,0,0,.12); background: #fff; }
/* Visual hint for drop target */
.author-entry { position: relative; }
#authors-list.is-dragging .author-entry:not(.dragging) {
    transition: transform .2s;
}
/* Instruction hint above author list */
.author-drag-hint {
    font-size: 12px;
    color: var(--muted, #6b7280);
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.author-drag-hint svg { flex-shrink: 0; }
.author-entry-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
