*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:   #1a3a5c;
  --blue:   #2d6a9f;
  --sky:    #a8d4f0;
  --teal:   #4caf7d;
  --bg:     #e8f4fd;
  --bgsoft: #f0f8ff;
  --white:  #ffffff;
  --text:   #1a2b3c;
  --muted:  #6b8aa8;
  --border: #c8e0f5;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bgsoft); color: var(--text); font-size: 15px; line-height: 1.6; }

/* ── NAV ── */
nav {
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  padding: 0 5%; display: flex; align-items: center; justify-content: space-between;
  height: 64px; box-shadow: 0 1px 12px rgba(26,58,92,.07);
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-icon {
  width: 42px; height: 42px; background: var(--navy); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-logo-icon span { font-family: 'Space Grotesk',sans-serif; font-weight: 600; font-size: 13px; color: var(--white); }
.nav-brand-text strong { display: block; font-family: 'Space Grotesk',sans-serif; font-size: 15px; font-weight: 600; color: var(--navy); }
.nav-brand-text small { font-size: 10.5px; color: var(--muted); letter-spacing: .4px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text); font-size: 13.5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-issn { font-size: 11px; color: var(--muted); background: var(--bg); padding: 4px 10px; border-radius: 20px; }
.btn { display: inline-block; padding: 10px 22px; border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .2s; border: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(45,106,159,.35); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: #3d9a6b; box-shadow: 0 4px 14px rgba(76,175,125,.4); }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e4d7b 50%, #2d6a9f 100%);
  padding: 52px 5% 56px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 50%, rgba(168,212,240,.1) 0%, transparent 60%);
}
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 12.5px; }
.breadcrumb a { color: rgba(168,212,240,.7); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--sky); }
.breadcrumb span { color: rgba(168,212,240,.4); }
.breadcrumb strong { color: var(--sky); }
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(76,175,125,.18); border: 1px solid rgba(76,175,125,.4);
  color: #7edba8; padding: 5px 14px; border-radius: 30px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
  margin-bottom: 16px;
}
.page-hero h1 { font-family: 'Playfair Display',serif; font-size: clamp(28px,4vw,44px); color: var(--white); font-weight: 700; margin-bottom: 14px; }
.page-hero p { color: rgba(168,212,240,.82); max-width: 560px; font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── MAIN LAYOUT ── */
.main-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 32px;
  max-width: 1200px; margin: 0 auto; padding: 40px 5% 64px;
  align-items: start;
}

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 84px; }
.sidebar-card {
  background: var(--white); border-radius: 14px; border: 1.5px solid var(--border);
  overflow: hidden; margin-bottom: 16px;
}
.sidebar-header {
  background: var(--navy); padding: 14px 18px;
  font-family: 'Space Grotesk',sans-serif; font-size: 12px; font-weight: 600;
  color: var(--sky); letter-spacing: .8px; text-transform: uppercase;
}
.sidebar-nav { padding: 8px 0; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; text-decoration: none; font-size: 13px;
  color: var(--text); transition: all .18s; border-left: 3px solid transparent;
  font-weight: 500;
}
.sidebar-nav a:hover { background: var(--bg); color: var(--blue); border-left-color: var(--blue); }
.sidebar-nav a.active { background: var(--bg); color: var(--blue); border-left-color: var(--blue); font-weight: 600; }
.sidebar-nav a .nav-icon { font-size: 15px; flex-shrink: 0; }
.sidebar-cta {
  background: linear-gradient(135deg, var(--navy), #2d6a9f);
  border-radius: 14px; padding: 22px 20px; text-align: center;
}
.sidebar-cta h4 { font-family: 'Space Grotesk',sans-serif; font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.sidebar-cta p { font-size: 12px; color: rgba(168,212,240,.75); margin-bottom: 14px; line-height: 1.55; }
.sidebar-cta .btn-teal { width: 100%; text-align: center; display: block; font-size: 13px; padding: 10px; }

/* ── CONTENT ── */
.content-area { min-width: 0; }

/* Section cards */
.guide-section {
  background: var(--white); border-radius: 16px; border: 1.5px solid var(--border);
  margin-bottom: 24px; overflow: hidden;
  scroll-margin-top: 90px;
}
.guide-section-header {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 28px 20px; border-bottom: 1.5px solid var(--border);
  cursor: pointer; user-select: none;
}
.guide-section-header:hover { background: var(--bgsoft); }
.section-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.icon-blue { background: #e8f0fb; }
.icon-teal { background: #e7f5ef; }
.icon-orange { background: #fef3e2; }
.icon-purple { background: #f0ebff; }
.icon-red { background: #fdecea; }
.icon-green { background: #eaf7f0; }
.icon-indigo { background: #eef0ff; }
.icon-sky { background: var(--bg); }

.section-title-group { flex: 1; }
.section-eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--teal); margin-bottom: 3px; }
.section-title { font-family: 'Space Grotesk',sans-serif; font-size: 17px; font-weight: 600; color: var(--navy); }
.section-toggle { font-size: 18px; color: var(--muted); transition: transform .25s; }
.guide-section.collapsed .section-toggle { transform: rotate(-90deg); }
.guide-section-body { padding: 28px; }
.guide-section.collapsed .guide-section-body { display: none; }

/* Prose */
.prose p { color: #3a5268; line-height: 1.78; margin-bottom: 16px; font-size: 14.5px; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--blue); text-decoration: underline; text-decoration-color: var(--border); }
.prose a:hover { text-decoration-color: var(--blue); }
.prose strong { color: var(--navy); font-weight: 600; }

/* Ordered list */
.guide-list { list-style: none; counter-reset: guide-counter; }
.guide-list li {
  counter-increment: guide-counter;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 13px 0; border-bottom: 1px solid var(--border);
  font-size: 14px; color: #3a5268; line-height: 1.65;
}
.guide-list li:last-child { border-bottom: none; padding-bottom: 0; }
.guide-list li::before {
  content: counter(guide-counter, decimal-leading-zero);
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 7px;
  background: var(--bg); color: var(--blue); font-size: 12px;
  font-weight: 700; font-family: 'Space Grotesk',sans-serif;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

/* Bullet list */
.bullet-list { list-style: none; }
.bullet-list li {
  padding: 8px 0 8px 20px; border-bottom: 1px solid var(--border);
  font-size: 14px; color: #3a5268; position: relative; line-height: 1.6;
}
.bullet-list li:last-child { border-bottom: none; }
.bullet-list li::before { content: '→'; position: absolute; left: 0; color: var(--blue); font-weight: 600; }

/* Info boxes */
.info-box {
  border-radius: 10px; padding: 16px 18px; margin: 18px 0; font-size: 13.5px; line-height: 1.65;
  display: flex; gap: 12px; align-items: flex-start;
}
.info-box-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.info-box p { margin: 0; }
.info-note { background: #e8f0fb; border-left: 3px solid var(--blue); }
.info-note .info-box-icon { color: var(--blue); }
.info-warning { background: #fff8e1; border-left: 3px solid #f0a500; }
.info-warning .info-box-icon { color: #f0a500; }
.info-success { background: #e7f5ef; border-left: 3px solid var(--teal); }
.info-success .info-box-icon { color: var(--teal); }
.info-box p { color: #3a5268; }

/* Reference example */
.ref-example {
  background: var(--bgsoft); border-radius: 8px; border: 1px solid var(--border);
  padding: 14px 18px; margin: 12px 0; font-size: 13px; color: #3a5268;
  line-height: 1.7; font-family: 'Georgia', serif;
}
.ref-example em { color: var(--navy); }

/* Highlight cards grid */
.highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.highlight-card {
  background: var(--bgsoft); border-radius: 10px; padding: 16px 18px;
  border: 1.5px solid var(--border); transition: border-color .2s;
}
.highlight-card:hover { border-color: var(--blue); }
.highlight-card h5 { font-family: 'Space Grotesk',sans-serif; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.highlight-card p { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

/* Publication charges table */
.charges-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin: 20px 0; }
.charge-card {
  background: var(--bgsoft); border-radius: 12px; padding: 20px; text-align: center;
  border: 1.5px solid var(--border);
}
.charge-card.featured { background: var(--navy); border-color: var(--navy); }
.charge-amount { font-family: 'Space Grotesk',sans-serif; font-size: 26px; font-weight: 700; color: var(--blue); line-height: 1; margin-bottom: 6px; }
.charge-card.featured .charge-amount { color: var(--sky); }
.charge-label { font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.charge-card.featured .charge-label { color: var(--white); }
.charge-desc { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.charge-card.featured .charge-desc { color: rgba(168,212,240,.7); }

/* Manuscript sections list */
.ms-sections { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.ms-tag {
  font-size: 12.5px; font-weight: 500; padding: 5px 12px; border-radius: 6px;
  background: var(--bg); color: var(--blue); border: 1px solid var(--border);
}

/* Format spec */
.format-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.format-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bgsoft); border-radius: 8px; padding: 12px 14px;
  border: 1px solid var(--border);
}
.format-key { font-size: 12px; color: var(--muted); min-width: 90px; }
.format-val { font-size: 13px; font-weight: 600; color: var(--navy); }

/* ── FOOTER ── */
footer { background: var(--navy); color: rgba(168,212,240,.75); padding: 48px 5% 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand .nav-logo-icon { margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.65; max-width: 260px; }
.footer-contact { margin-top: 16px; font-size: 12.5px; }
.footer-contact div { margin-bottom: 5px; display: flex; gap: 7px; }
.footer-col h5 { font-family: 'Space Grotesk',sans-serif; font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(168,212,240,.65); text-decoration: none; font-size: 13px; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: var(--sky); }
.footer-bottom { border-top: 1px solid rgba(168,212,240,.15); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; }
.footer-bottom p { color: rgba(168,212,240,.5); }
.footer-badges { display: flex; gap: 10px; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 10.5px; font-weight: 600; border: 1px solid rgba(168,212,240,.25); color: rgba(168,212,240,.6); }

@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .highlight-grid, .charges-grid, .format-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
