/* ═══════════════════════════════════════════════════
   RIDGELINE — homepage layout
   Scoped to ridgeline.html + ridgeline-updates.html only (rl- prefix).
   Does not touch nexus-brand.css or any class shared with the other
   four imprint hubs (health-nexus, verdant-science, charter, threnody).

   IA reference: BMC-style publishing brand hub (link.springer.com/brands/bmc)
   — a discovery portal, not a manifesto. Visual identity is Ridgeline's
   own: cool blue-slate brand tokens (already established across all
   ridgeline-*.html pages via --brand/--brand-dk), Playfair Display
   (already the site-wide institutional serif) for display type, Inter
   for reading copy, Archivo + IBM Plex Mono for labels and numerals.
   Cards are used only where BMC uses them (journals, updates, calls
   for papers) — everything else is typography, rules and whitespace.
   ═══════════════════════════════════════════════════ */

#in-main {
  --rl-ink: #14181D;
  --rl-ink-soft: #454C54;
  --rl-muted: #646B71;
  --rl-line: rgba(20,24,29,0.14);
  --rl-line-soft: rgba(20,24,29,0.09);
  --rl-stone: var(--brand-tint, #EAEFF6);
  --rl-stone-line: rgba(44,69,104,0.16);
  --rl-card: #ffffff;
  --rl-deep: var(--brand-dk, #2C4568);
  --rl-on-deep: #F2F5F9;
  --rl-on-deep-soft: rgba(242,245,249,0.68);
  --rl-on-deep-line: rgba(242,245,249,0.20);
  --rl-accent: var(--brand, #3E5F8A);
  --rl-serif: 'Playfair Display', 'Noto Serif', serif;
  --rl-sans: var(--brand-font, 'Archivo'), sans-serif;
  --rl-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --rl-pad-x: 64px;
  --rl-section-y: 96px;
}

@media (max-width: 1279px) { #in-main { --rl-pad-x: 48px; } }
@media (max-width: 1023px) { #in-main { --rl-pad-x: 32px; --rl-section-y: 72px; } }
@media (max-width: 639px)  { #in-main { --rl-pad-x: 20px; --rl-section-y: 56px; } }

.rl-wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--rl-pad-x); }

/* ── Section shell + surfaces ─────────────────────── */
.rl-section { padding: var(--rl-section-y) 0; background: var(--paper); }
.rl-section--stone { background: var(--rl-stone); }
.rl-section--deep  { background: var(--rl-deep); color: var(--rl-on-deep); }

.rl-section-head { margin-bottom: 36px; max-width: 62ch; }
.rl-section-head h2 {
  font-family: var(--rl-serif); font-weight: 700;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -.01em;
  color: var(--rl-ink); margin: 0 0 10px;
}
.rl-section--deep .rl-section-head h2 { color: var(--rl-on-deep); }
.rl-section-head p {
  font-size: 15.5px; line-height: 1.6; color: var(--rl-ink-soft); margin: 0;
}
.rl-section--deep .rl-section-head p { color: var(--rl-on-deep-soft); }

.rl-section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 32px;
}
.rl-section-head-row h2 {
  font-family: var(--rl-serif); font-weight: 700;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -.01em;
  color: var(--rl-ink); margin: 0;
}

.rl-marker {
  display: block; font-family: var(--rl-sans);
  font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--rl-accent); margin: 0 0 12px;
}
.rl-section--deep .rl-marker { color: var(--rl-on-deep-soft); }

/* ── Shared CTAs ───────────────────────────────────── */
.rl-cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rl-ink); color: #fff; text-decoration: none;
  font-family: var(--rl-sans); font-size: 14.5px; font-weight: 700;
  letter-spacing: .01em; padding: 14px 24px; border-radius: 100px;
  transition: transform .15s ease, background .15s ease; white-space: nowrap;
}
.rl-cta-primary:hover { background: var(--rl-deep); transform: translateY(-1px); }
.rl-cta-text {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--rl-sans); font-size: 14.5px; font-weight: 600;
  color: var(--rl-ink-soft); text-decoration: none; white-space: nowrap;
  border: 0; border-bottom: 1px solid var(--rl-line); border-radius: 0;
  padding: 0 0 2px; margin: 0; background: none; appearance: none;
  transition: color .15s ease, border-color .15s ease;
}
button.rl-cta-text { cursor: pointer; }
.rl-cta-text:hover { color: var(--rl-ink); border-color: var(--rl-ink); }
.rl-arrow { display: inline-block; transition: transform .15s ease; }
.rl-cta-text:hover .rl-arrow, .rl-link-row:hover .rl-arrow, .rl-jrow-link:hover .rl-arrow { transform: translateX(3px); }

/* ═══ HERO (500–620px total) ═══ */
.rl-hero { background: var(--paper); border-bottom: 1px solid var(--rl-line-soft); }
.rl-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 500px;
}
.rl-hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 6vw, 64px) 48px clamp(40px, 6vw, 64px) var(--rl-pad-x);
}
.rl-hero-crumb {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--rl-mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--rl-muted); margin-bottom: 20px;
}
.rl-hero-crumb a { color: inherit; text-decoration: none; }
.rl-hero-crumb a:hover { color: var(--rl-accent); }
.rl-hero-eyebrow {
  font-family: var(--rl-sans); font-size: 12.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--rl-accent);
  margin: 0 0 18px;
}
.rl-hero h1 {
  font-family: var(--rl-serif); font-weight: 700;
  font-size: clamp(36px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -.01em;
  color: var(--rl-ink); max-width: 15ch; margin: 0 0 20px;
}
.rl-hero-lede {
  font-size: clamp(15.5px, 1.2vw, 17px); line-height: 1.62; color: var(--rl-ink-soft);
  max-width: 46ch; margin: 0 0 30px;
}
.rl-hero-ctas { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }

.rl-hero-visual { position: relative; overflow: hidden; background: var(--rl-stone); border-left: 1px solid var(--rl-line-soft); }
.rl-hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 1023px) {
  .rl-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .rl-hero-copy { padding: 48px var(--rl-pad-x); }
  .rl-hero-visual { min-height: 0; aspect-ratio: 16/9; border-left: 0; border-top: 1px solid var(--rl-line-soft); }
}
@media (max-width: 639px) { .rl-hero h1 { max-width: none; } }

/* ═══ INTRO (short brand copy, replaces the old long About block) ═══ */
.rl-intro { max-width: 760px; }
.rl-intro h2 {
  font-family: var(--rl-serif); font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.16; letter-spacing: -.01em;
  color: var(--rl-ink); margin: 0 0 14px; max-width: 20ch;
}
.rl-intro p {
  font-size: 16.5px; line-height: 1.68; color: var(--rl-ink-soft); margin: 0 0 18px;
}

/* ═══ FEATURED JOURNALS ═══
   Row cards (cover + copy + a verified metadata table), the structural
   pattern BMC uses for its own featured-journal rows -- adapted, not
   copied: Ridgeline's own deep surface instead of BMC teal, sharp
   corners instead of BMC's rounded geometry, and only metadata Ridgeline
   actually has (publishing model, peer review, ISSN, DOI registration).
   No impact factor / downloads / decision-time rows -- those aren't
   tracked or published for these journals, so they're not shown. */
.rl-journal-rows { display: flex; flex-direction: column; gap: 20px; }
.rl-jrow {
  background: var(--rl-deep); color: var(--rl-on-deep);
  display: grid; grid-template-columns: 128px 1fr 260px;
  grid-template-areas: "brand brand brand" "cover body meta";
  column-gap: 32px; row-gap: 18px; align-items: start; padding: 32px;
}
.rl-jrow-brand {
  grid-area: brand;
  display: flex; align-items: center;
  padding-bottom: 16px; border-bottom: 1px solid var(--rl-on-deep-line);
}
.rl-jrow-brand img { height: 22px; width: auto; display: block; }
.rl-jrow-cover { grid-area: cover; aspect-ratio: 5 / 7; overflow: hidden; background: rgba(242,245,249,0.08); }
.rl-jrow-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rl-jrow-body { grid-area: body; min-width: 0; }
.rl-jrow-tag {
  display: block; font-family: var(--rl-sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--rl-on-deep-soft); margin-bottom: 10px;
}
.rl-jrow-title {
  font-family: var(--rl-serif); font-weight: 600; font-size: 22px; line-height: 1.25;
  color: var(--rl-on-deep); margin: 0 0 12px;
}
.rl-jrow-desc { font-size: 14px; line-height: 1.62; color: var(--rl-on-deep-soft); margin: 0 0 18px; max-width: 56ch; }
.rl-jrow-links { display: flex; gap: 24px; flex-wrap: wrap; }
.rl-jrow-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--rl-sans); font-size: 13px; font-weight: 600;
  color: var(--rl-on-deep); text-decoration: none; border-bottom: 1px solid var(--rl-on-deep-line); padding-bottom: 2px;
}
.rl-jrow-link:hover { color: #fff; border-color: #fff; }
.rl-jrow-meta { grid-area: meta; display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--rl-on-deep-line); padding-left: 28px; }
.rl-jrow-meta div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rl-on-deep-line); }
.rl-jrow-meta div:last-child { border-bottom: 0; }
.rl-jrow-meta dt { font-size: 12px; color: var(--rl-on-deep-soft); }
.rl-jrow-meta dd { margin: 0; font-family: var(--rl-mono); font-size: 12.5px; font-weight: 500; color: var(--rl-on-deep); text-align: right; }
@media (max-width: 900px) {
  .rl-jrow {
    grid-template-columns: 96px 1fr; padding: 24px; column-gap: 20px; row-gap: 16px;
    grid-template-areas: "brand brand" "cover body" "meta meta";
  }
  .rl-jrow-meta { flex-direction: row; flex-wrap: wrap; border-left: 0; border-top: 1px solid var(--rl-on-deep-line); padding: 16px 0 0; margin-top: 4px; }
  .rl-jrow-meta div { flex: 1 1 45%; flex-direction: column; gap: 4px; border-bottom: 0; }
  .rl-jrow-meta dd { text-align: left; }
}
@media (max-width: 560px) {
  .rl-jrow { grid-template-columns: 1fr; grid-template-areas: "brand" "cover" "body" "meta"; }
  .rl-jrow-cover { width: 96px; }
}

/* ═══ CALLS FOR PAPERS ═══ */
.rl-cfp { border: 1px solid var(--rl-stone-line); background: var(--rl-card); padding: 28px 32px; display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: start; }
.rl-cfp-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rl-cfp-badge {
  font-family: var(--rl-sans); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--rl-deep); border: 1px solid var(--rl-stone-line); padding: 4px 10px;
}
.rl-cfp-journal { font-family: var(--rl-mono); font-size: 12px; color: var(--rl-muted); }
.rl-cfp h3 { font-family: var(--rl-serif); font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--rl-ink); margin: 0 0 10px; max-width: 46ch; }
.rl-cfp p { font-size: 14.5px; line-height: 1.62; color: var(--rl-ink-soft); margin: 0; max-width: 62ch; }
.rl-cfp-side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.rl-cfp-target { font-family: var(--rl-sans); font-size: 12px; color: var(--rl-muted); }
@media (max-width: 700px) { .rl-cfp { grid-template-columns: 1fr; padding: 24px; } }

/* ═══ JOURNALS BY SUBJECT (compact, no cards) ═══ */
.rl-subject-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rl-line); border-left: 1px solid var(--rl-line); }
.rl-subject {
  display: block; padding: 22px 24px; border-right: 1px solid var(--rl-line); border-bottom: 1px solid var(--rl-line);
  text-decoration: none; transition: background .15s ease;
}
.rl-subject:hover { background: var(--rl-stone); }
.rl-subject h3 { font-family: var(--rl-sans); font-weight: 700; font-size: 15px; color: var(--rl-ink); margin: 0 0 6px; }
.rl-subject p { font-size: 13px; line-height: 1.55; color: var(--rl-muted); margin: 0; }
@media (max-width: 900px) { .rl-subject-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rl-subject-grid { grid-template-columns: 1fr; } }

/* ═══ RECENT RESEARCH (academic list, not cards) ═══ */
.rl-research-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rl-stone-line); }
.rl-research-item { padding: 22px 0; border-bottom: 1px solid var(--rl-stone-line); display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: start; }
.rl-ri-journal { font-family: var(--rl-mono); font-size: 11.5px; color: var(--rl-accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.rl-ri-title { font-family: var(--rl-serif); font-weight: 600; font-size: 17px; line-height: 1.32; color: var(--rl-ink); margin: 0 0 6px; }
.rl-ri-title a { color: inherit; text-decoration: none; }
.rl-ri-title a:hover { color: var(--rl-accent); }
.rl-ri-meta { font-size: 13px; color: var(--rl-ink-soft); }
.rl-ri-date { font-family: var(--rl-mono); font-size: 12px; color: var(--rl-muted); white-space: nowrap; text-align: right; }
@media (max-width: 640px) {
  .rl-research-item { grid-template-columns: 1fr; }
  .rl-ri-date { text-align: left; }
}

/* ═══ PUBLISHING WITH RIDGELINE (4 pathways, deep surface) ═══ */
.rl-pathways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rl-on-deep-line); }
.rl-pathway { padding: 24px 22px 0; border-right: 1px solid var(--rl-on-deep-line); }
.rl-pathway:last-child { border-right: 0; }
.rl-pathway h3 { font-family: var(--rl-sans); font-weight: 700; font-size: 15.5px; line-height: 1.3; color: var(--rl-on-deep); margin: 0 0 10px; }
.rl-pathway p { font-size: 13.5px; line-height: 1.6; color: var(--rl-on-deep-soft); margin: 0 0 16px; }
.rl-pathway .rl-cta-text { color: var(--rl-on-deep-soft); border-color: var(--rl-on-deep-line); }
.rl-pathway .rl-cta-text:hover { color: #fff; border-color: #fff; }
@media (max-width: 900px) {
  .rl-pathways { grid-template-columns: 1fr 1fr; }
  .rl-pathway:nth-child(2) { border-right: 0; }
  .rl-pathway:nth-child(3), .rl-pathway:nth-child(4) { border-top: 1px solid var(--rl-on-deep-line); padding-top: 24px; }
}
@media (max-width: 560px) {
  .rl-pathways { grid-template-columns: 1fr; }
  .rl-pathway { border-right: 0; border-top: 1px solid var(--rl-on-deep-line); padding-top: 24px; }
  .rl-pathway:first-child { border-top: 0; padding-top: 0; }
}

.rl-pathway-flow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  margin: 36px 0 0; padding-top: 28px; border-top: 1px solid var(--rl-on-deep-line);
  font-family: var(--rl-sans); font-size: 13.5px; color: var(--rl-on-deep-soft);
}
.rl-pathway-flow span.rl-flow-sep { color: var(--rl-on-deep-line); }
.rl-pathway-flow strong { color: var(--rl-on-deep); font-weight: 600; }
.rl-pathway-flow a.rl-cta-text { margin-left: auto; color: var(--rl-on-deep-soft); border-color: var(--rl-on-deep-line); }
.rl-pathway-flow a.rl-cta-text:hover { color: #fff; border-color: #fff; }

/* ═══ LATEST UPDATES ═══ */
.rl-updates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.rl-update { border-top: 2px solid var(--rl-stone-line); padding-top: 16px; }
.rl-update-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rl-update-type { font-family: var(--rl-sans); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rl-accent); }
.rl-update-date { font-family: var(--rl-mono); font-size: 11.5px; color: var(--rl-muted); }
.rl-update h3 { font-family: var(--rl-serif); font-weight: 600; font-size: 16.5px; line-height: 1.32; color: var(--rl-ink); margin: 0 0 8px; }
.rl-update p { font-size: 13.5px; line-height: 1.58; color: var(--rl-ink-soft); margin: 0 0 12px; }
@media (max-width: 900px) { .rl-updates-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rl-updates-grid { grid-template-columns: 1fr; } }

/* ═══ CLOSING STRIP (compact — replaces the old tall manifesto CTA) ═══ */
.rl-final { background: var(--rl-deep); color: var(--rl-on-deep); padding: clamp(48px, 6vw, 64px) 0; }
.rl-final-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.rl-final h2 {
  font-family: var(--rl-serif); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.01em;
  color: var(--rl-on-deep); margin: 0; max-width: 20ch;
}
.rl-final-actions { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.rl-final-actions .rl-cta-primary { background: #fff; color: var(--rl-deep); }
.rl-final-actions .rl-cta-primary:hover { background: var(--rl-on-deep); }
.rl-final-actions .rl-cta-text { color: var(--rl-on-deep-soft); border-color: var(--rl-on-deep-line); }
.rl-final-actions .rl-cta-text:hover { color: #fff; border-color: #fff; }
@media (max-width: 760px) { .rl-final-row { flex-direction: column; align-items: flex-start; } }

/* ═══ UPDATES ARCHIVE PAGE (ridgeline-updates.html) ═══ */
.rl-archive-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rl-line); }
.rl-archive-item { padding: 26px 0; border-bottom: 1px solid var(--rl-line); }
.rl-archive-item .rl-update-kicker { margin-bottom: 12px; }
.rl-archive-item h3 { font-family: var(--rl-serif); font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--rl-ink); margin: 0 0 10px; }
.rl-archive-item p { font-size: 14.5px; line-height: 1.62; color: var(--rl-ink-soft); margin: 0 0 12px; max-width: 74ch; }
