/*
Theme Name: IVFandICSI Library
Theme URI: https://ivfandicsi.ikivana.com/
Author: ikivana
Author URI: https://ikivana.com/
Description: A custom WordPress theme rendering ivfandicsi.com as the British Library of IVF/ICSI knowledge for the Indian subcontinent. Knowledge partner of ikivana.com. Library-first architecture with shelves, the Journey Map, the Reading Room, and proprietary patient tools. Built to inherit ikivana brand: Fraunces serif + Manrope sans, mustard gold #E4C123, warm cream #FBF7F0, charcoal #2D322C.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
License URI: https://ikivana.com/
Text Domain: ivfandicsi-library
Tags: library, knowledge-base, multilingual, fertility, custom-theme
*/

/* === ikivana brand tokens (sampled live from ikivana.com) === */
:root {
 --gold: #E4C123;
 --gold-dark: #C9A91D;
 --cream: #FBF7F0;
 --cream-2: #F5EFE3;
 --cream-3: #EFE7D5;
 --border: #EBE6DE;
 --charcoal: #2D322C;
 --ink: #1F2520;
 --muted: #6F6A5E;
 --rust: #B8736A;
 --sage: #6E8676;
 --plum: #6B4C5E;
 --serif: "Fraunces", "Cormorant Garamond", "Cambria", "Georgia", "Times New Roman", serif;
 --sans: "Manrope", system-ui, -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
 --max: 1280px;
}

/* === Reset / base === */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Windows ClearType can render web fonts too thin at common sizes - bump weight slightly. */
@supports (-ms-ime-align: auto) {
  body { font-weight: 400; }
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* === Top utility bar === */
.utility {
  background: var(--cream-2);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.utility-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.utility .left, .utility .right { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.utility .langs-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.utility .langs-pills span {
  font-size: 11px; padding: 2px 8px;
  border-radius: 999px;
  background: var(--cream-3);
  color: var(--charcoal);
}
.utility .langs-pills span.active { background: var(--charcoal); color: white; }
.socials { display: flex; gap: 12px; align-items: center; }
.socials a { text-decoration: none; }
.socials .util-social {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--charcoal);
  transition: color 0.15s;
}
.socials .util-social:hover { color: var(--ink); }
.socials .util-yt:hover { color: #FF0000; }
.socials .util-ig:hover { color: #E1306C; }
.socials .util-fb:hover { color: #1877F2; }
.socials .util-social svg { flex-shrink: 0; }

/* === Header === */
header.brand {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.brand-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.logo {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.logo em { font-style: italic; }
.logo small {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}
nav.main { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
nav.main a {
  text-decoration: none;
  font-size: 14px;
  color: var(--charcoal);
  font-weight: 500;
}
nav.main a:hover { color: var(--gold-dark); }
nav.main a.tool::before {
  content: "·";
  color: var(--gold);
  margin-right: 6px;
  font-weight: bold;
}
.search-wrap { display: flex; align-items: center; gap: 14px; }
.search-bar {
  display: flex; align-items: center;
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  width: 240px;
  gap: 8px;
}
.search-bar input {
  border: none; background: none; outline: none;
  font-family: var(--sans); font-size: 13px;
  flex: 1; color: var(--charcoal);
}
.search-bar input::placeholder { color: var(--muted); }
.cta-pill {
  background: var(--gold);
  color: white;
  border: none;
  padding: 11px 22px;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: background 0.15s;
}
.cta-pill:hover { background: var(--gold-dark); color: white; }
.cta-pill.outline {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}
.cta-pill.outline:hover { background: var(--charcoal); color: white; }

/* === HERO === */
section.hero { padding: 80px 0 64px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.eyebrow {
  display: inline-block;
  background: var(--cream-3);
  color: var(--charcoal);
  padding: 5px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ink);
}
.hero h1 em { font-style: italic; font-weight: 350; }
.hero h1 .accent { color: var(--gold-dark); font-style: italic; }
.hero .lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--charcoal);
  max-width: 540px;
  margin: 0 0 32px;
}
.hero .lede em { font-style: italic; color: var(--ink); }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 32px; }
.hero-stats {
  display: flex; gap: 36px; padding-top: 24px; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stats .stat { display: flex; flex-direction: column; }
.hero-stats .num {
  font-family: var(--serif); font-size: 30px; font-weight: 400;
  color: var(--ink); line-height: 1;
}
.hero-stats .num em { font-style: italic; }
.hero-stats .lab {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); margin-top: 6px; font-weight: 600;
}
.hero-collage { position: relative; height: 520px; }
.hero-collage .book {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 6px 24px rgba(45, 50, 44, 0.08);
  font-family: var(--serif);
  transition: transform 0.4s ease;
}
.hero-collage .book:hover { transform: translateY(-6px); }
.hero-collage .book .tag {
  font-family: var(--sans);
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--muted);
  margin-bottom: 10px; font-weight: 600;
}
.hero-collage .book .ttl {
  font-size: 21px; line-height: 1.15; font-weight: 500; color: var(--ink);
}
.hero-collage .book .ttl em { font-style: italic; }
.hero-collage .book .meta {
  font-family: var(--sans); font-size: 11px; color: var(--muted); margin-top: 12px;
}
.book.b1 { left: 0; top: 30px; width: 240px; transform: rotate(-3deg); background: var(--cream-2); }
.book.b2 { left: 200px; top: 90px; width: 270px; transform: rotate(2deg); border-left: 4px solid var(--gold); z-index: 3; }
.book.b3 { right: 20px; top: 0; width: 220px; transform: rotate(4deg); background: var(--cream-3); }
.book.b4 { left: 30px; bottom: 30px; width: 250px; transform: rotate(-2deg); }
.book.b5 { right: 0; bottom: 60px; width: 280px; transform: rotate(3deg); background: linear-gradient(180deg, #FFFCEF 0%, white 100%); border-left: 4px solid var(--rust); z-index: 2; }
.book.b6 { left: 240px; bottom: 0; width: 220px; transform: rotate(-4deg); border-left: 4px solid var(--sage); }
@media (max-width: 980px) { .hero-collage { height: 480px; } }

/* === Section heads === */
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  border-bottom: 2px solid var(--charcoal);
  padding-bottom: 20px;
  margin-bottom: 40px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  margin: 12px 0 0;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.section-head h2 em { font-style: italic; }
.section-head .meta {
  font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600;
}
.section-head a.see-all {
  font-size: 13px;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--charcoal);
  padding-bottom: 2px;
  font-weight: 500;
  white-space: nowrap;
}

/* === The Library shelves === */
section.library { padding: 96px 0 32px; background: var(--cream); }
.shelves {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .shelves { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .shelves { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .shelves { grid-template-columns: 1fr; } }
.shelf {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  display: flex; flex-direction: column;
  position: relative;
  min-height: 200px;
}
.shelf:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 12px 28px rgba(45, 50, 44, 0.06);
}
.shelf .shelf-num {
  font-family: var(--serif);
  font-size: 13px; color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  font-style: italic;
}
.shelf h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 24px; line-height: 1.15;
  margin: 0 0 10px; color: var(--ink);
}
.shelf h3 em { font-style: italic; }
.shelf p { font-size: 14px; color: var(--muted); margin: 0 0 16px; flex-grow: 1; }
.shelf .count {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--charcoal); font-weight: 600;
  border-top: 1px solid var(--border); padding-top: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.shelf .count .arrow {
  width: 24px; height: 24px;
  background: var(--cream-2);
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.18s, transform 0.18s;
  font-size: 13px;
}
.shelf:hover .count .arrow { background: var(--gold); color: white; transform: translateX(4px); }
.shelf::before {
  content: ""; position: absolute; top: 22px; right: 22px;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--cream-3); opacity: 0.55;
}
.shelf.s1::before { background: #DDC7E0; }
.shelf.s2::before { background: #C8DDD0; }
.shelf.s3::before { background: #F1D5C8; }
.shelf.s4::before { background: #F4E0AB; }
.shelf.s5::before { background: #C5D7E5; }
.shelf.s6::before { background: #E8D9C0; }
.shelf.s7::before { background: #DCD0E5; }
.shelf.s8::before { background: #D5DECC; }

/* === Featured tool block === */
section.feature-tool { padding: 80px 0; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.tool-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--ink);
  color: var(--cream);
  border-radius: 24px;
  overflow: hidden;
  align-items: stretch;
}
@media (max-width: 900px) { .tool-card { grid-template-columns: 1fr; } }
.tool-card-text { padding: 56px; }
@media (max-width: 600px) { .tool-card-text { padding: 36px 28px; } }
.tool-card .pretitle {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--gold); font-weight: 700; margin-bottom: 20px;
}
.tool-card h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05; margin: 0 0 20px; letter-spacing: -0.015em;
}
.tool-card h2 em { font-style: italic; }
.tool-card p {
  color: rgba(251, 247, 240, 0.78);
  font-size: 17px; margin: 0 0 32px; max-width: 520px;
}
.tool-card-visual {
  background: linear-gradient(135deg, #3a3f3a 0%, #1F2520 100%);
  padding: 56px 40px;
  display: flex; align-items: center; justify-content: center;
}
.mini-map { width: 100%; max-width: 460px; }
.mini-map svg { width: 100%; height: auto; display: block; }
.mini-map .node-mini circle.bg {
  fill: rgba(251, 247, 240, 0.06);
  stroke: rgba(251, 247, 240, 0.25);
  stroke-width: 1.5;
  transition: all 0.2s;
}
.mini-map .node-mini:hover circle.bg { fill: rgba(228, 193, 35, 0.18); stroke: var(--gold); }
.mini-map .node-mini.active circle.bg { fill: var(--gold); stroke: var(--gold); }
.mini-map text { fill: var(--cream); font-family: var(--sans); font-size: 10px; text-anchor: middle; }
.mini-map .lbl { font-size: 11px; font-weight: 600; }
.mini-map .stage-num { font-size: 8px; fill: rgba(251,247,240,0.55); letter-spacing: 0.12em; }
.mini-map line.connect { stroke: rgba(251, 247, 240, 0.16); stroke-dasharray: 3 4; stroke-width: 1.5; }

/* === Reading room === */
section.reading-room { padding: 96px 0; }
.room-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}
@media (max-width: 980px) { .room-grid { grid-template-columns: 1fr; } }
.editors-pick {
  background: white; border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.editors-pick .cover {
  aspect-ratio: 16/10;
  background:
    radial-gradient(ellipse at top right, #d9c3a0 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, #c5b78a 0%, transparent 60%),
    linear-gradient(135deg, #e8dec4 0%, #d4c39c 100%);
  position: relative; display: flex; align-items: flex-end; padding: 30px;
}
.editors-pick .cover .badge {
  position: absolute; top: 20px; left: 20px;
  background: var(--ink); color: var(--gold);
  padding: 6px 14px; border-radius: 999px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700;
}
.editors-pick .cover .title-on-cover {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.05; color: var(--ink); font-weight: 400;
  letter-spacing: -0.01em; text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
.editors-pick .cover .title-on-cover em { font-style: italic; }
.editors-pick .body { padding: 28px 32px 32px; }
.editors-pick .body .meta {
  font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600;
}
.editors-pick .body p { font-size: 16px; color: var(--charcoal); margin: 14px 0 22px; }
.editors-pick .body a.read-more {
  font-family: var(--serif); font-style: italic;
  color: var(--gold-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  font-size: 16px; font-weight: 500;
}
.recent-list { display: flex; flex-direction: column; gap: 0; }
.recent-list h3.kicker {
  font-family: var(--sans); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted); margin: 0 0 18px; font-weight: 700;
}
.recent {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 18px; padding: 22px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: padding-left 0.18s;
}
.recent:hover { padding-left: 8px; }
.recent:last-child { border-bottom: none; }
.recent .thumb {
  width: 80px; height: 80px; border-radius: 8px;
  background: var(--cream-3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--muted); flex-shrink: 0;
}
.recent.r1 .thumb { background: #E0CFD3; color: var(--rust); }
.recent.r2 .thumb { background: #D5DECC; color: var(--sage); }
.recent.r3 .thumb { background: #DCCFE5; color: var(--plum); }
.recent.r4 .thumb { background: #F4E0AB; color: var(--gold-dark); }
.recent .info .tag {
  font-size: 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600;
}
.recent .info h4 {
  font-family: var(--serif); font-weight: 500;
  font-size: 18px; line-height: 1.2;
  margin: 6px 0 8px; color: var(--ink);
}
.recent .info h4 em { font-style: italic; }
.recent .info .when { font-size: 12px; color: var(--muted); }

/* === Tools row === */
section.tools { padding: 80px 0; background: var(--cream-2); }
.tools-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .tools-grid { grid-template-columns: 1fr; } }
.tool-tile {
  background: white; border: 1px solid var(--border);
  border-radius: 18px; padding: 32px 30px;
  display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
}
.tool-tile::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, rgba(228, 193, 35, 0.18), transparent 70%);
}
.tool-tile .num {
  font-family: var(--serif); font-style: italic;
  font-size: 13px; color: var(--gold-dark); font-weight: 500;
}
.tool-tile h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 26px; line-height: 1.1; margin: 0;
}
.tool-tile h3 em { font-style: italic; }
.tool-tile p { color: var(--muted); font-size: 14px; margin: 0; }
.tool-tile .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--charcoal); font-weight: 600; margin-top: 6px;
  display: inline-flex; align-items: center; gap: 8px;
}
.tool-tile .label::after { content: "→"; transition: transform 0.18s; }
.tool-tile:hover .label::after { transform: translateX(5px); }

/* === Languages strip === */
section.languages {
  padding: 56px 0; text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: white;
}
.languages h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 2.6vw, 32px);
  margin: 0 0 8px; color: var(--ink);
}
.languages h3 em { font-style: italic; color: var(--gold-dark); }
.languages .sub { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.lang-grid {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  max-width: 880px; margin: 0 auto;
}
.lang-chip {
  background: var(--cream-2); border: 1px solid var(--border);
  padding: 10px 18px; border-radius: 999px;
  font-family: var(--serif); font-size: 16px;
  cursor: pointer; transition: all 0.15s;
}
.lang-chip:hover { background: var(--cream-3); border-color: var(--charcoal); }
.lang-chip .latin {
  font-family: var(--sans); font-size: 11px; color: var(--muted);
  margin-left: 8px; letter-spacing: 0.06em; text-transform: uppercase;
}

/* === Voices === */
section.voices { padding: 96px 0; background: var(--cream); }
.voices-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
@media (max-width: 820px) { .voices-grid { grid-template-columns: 1fr; } }
.voice {
  background: white; border: 1px solid var(--border);
  border-radius: 18px; padding: 36px;
  display: flex; flex-direction: column; gap: 14px;
}
.voice.podcast {
  background: linear-gradient(180deg, #FFFCEF 0%, white 100%);
  border-color: var(--gold);
}
.voice .pretitle {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted); font-weight: 700;
}
.voice h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 30px; line-height: 1.1;
  margin: 0; color: var(--ink);
}
.voice h3 em { font-style: italic; }
.voice p { color: var(--charcoal); font-size: 16px; margin: 0; }
.voice .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.voice .platform-pill {
  background: var(--cream-2); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  text-decoration: none; color: var(--charcoal);
}
.voice .platform-pill:hover { background: var(--cream-3); }

/* === Footer CTA === */
section.foot-cta {
  padding: 80px 0; text-align: center;
  background: var(--ink); color: var(--cream);
}
.foot-cta h2 {
  font-family: var(--serif); font-weight: 350;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1; margin: 0 0 20px;
  letter-spacing: -0.015em;
}
.foot-cta h2 em { font-style: italic; color: var(--gold); }
.foot-cta p {
  color: rgba(251,247,240,0.7); max-width: 540px;
  margin: 0 auto 32px;
}
.foot-cta .cta-pill { background: var(--gold); }
.foot-cta .small {
  font-size: 11px; color: rgba(251,247,240,0.5);
  margin-top: 24px; text-transform: uppercase; letter-spacing: 0.14em;
}

/* === Footer === */
footer.site {
  background: #1A1F1B;
  color: rgba(251,247,240,0.55);
  padding: 56px 0 32px;
  font-size: 13px;
}
footer.site .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 32px;
  border-bottom: 1px solid rgba(251,247,240,0.1);
}
@media (max-width: 800px) { footer.site .cols { grid-template-columns: 1fr 1fr; gap: 28px; } }
footer.site h4 {
  font-family: var(--sans); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--cream); margin: 0 0 14px; font-weight: 700;
}
footer.site .col-brand .logo { color: var(--cream); margin-bottom: 14px; display: inline-block; }
footer.site .col-brand .logo small { color: rgba(251,247,240,0.45); }
footer.site .col-brand p { color: rgba(251,247,240,0.55); max-width: 320px; }
footer.site ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
footer.site a { color: inherit; text-decoration: none; }
footer.site a:hover { color: var(--gold); }
footer.site .legal {
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 11px; color: rgba(251,247,240,0.4);
}
.disclaimer-strip {
  background: var(--cream-3); color: var(--muted);
  font-size: 12px; text-align: center;
  padding: 14px 24px; font-style: italic;
}

/* === Inner page (single article / page) === */
.page-content {
  max-width: 760px; margin: 64px auto 96px;
  padding: 0 32px;
}
.page-content .article-meta {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.16em;
  font-weight: 600; margin-bottom: 16px;
}
.page-content h1.entry-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 24px; color: var(--ink);
}
.page-content h1.entry-title em { font-style: italic; }
.page-content .article-byline {
  font-size: 14px; color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px; margin-bottom: 32px;
}
.page-content .entry-content { font-size: 17px; line-height: 1.75; color: var(--charcoal); }
.page-content .entry-content h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: 30px; line-height: 1.1;
  margin-top: 48px; color: var(--ink);
}
.page-content .entry-content h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; margin-top: 32px; color: var(--ink);
}
.page-content .entry-content p { margin: 0 0 18px; }
.page-content .entry-content blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; line-height: 1.4;
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 24px; margin: 32px 0;
  color: var(--ink);
}
.page-content .entry-content a {
  color: var(--gold-dark); border-bottom: 1px solid var(--gold);
  text-decoration: none;
}

/* === Archive grid === */
.archive-list {
  max-width: var(--max); margin: 64px auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .archive-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .archive-list { grid-template-columns: 1fr; } }
.archive-list article {
  background: white; border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
}
.archive-list article h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; line-height: 1.2;
  margin: 8px 0 12px;
}
.archive-list article a { text-decoration: none; color: inherit; }
.archive-list article p { color: var(--muted); font-size: 14px; margin: 0; }

/* === Skip-to-content (a11y) === */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--charcoal); color: white;
  padding: 8px 16px; z-index: 100;
}
.skip-link:focus { top: 0; }

/* === Concept banner (preview only - remove for production) === */
.concept-banner {
  background: var(--charcoal); color: white;
  padding: 8px 24px; text-align: center;
  font-size: 11px; letter-spacing: 0.08em;
}
.concept-banner strong { color: var(--gold); }

/* ===========================================================================
   EDITORIAL LAYER (v3) - HBR-grade classes prefixed .ed-*
   Used by front-page.php to render a magazine-style homepage with
   hairline rules, catalog tables, and disciplined typography.
   =========================================================================== */

/* MASTHEAD STRIP --------------------------------------------------------- */
.ed-masthead {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.ed-masthead-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.ed-masthead .center { color: var(--ink); letter-spacing: 0.22em; }
.ed-masthead .right  { text-align: right; }

/* SECTION KICKER (used to label every editorial section) --------------- */
.ed-section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.ed-section.no-rule { border-top: none; }
.ed-section-head {
  max-width: var(--max);
  margin: 0 auto 40px;
  padding: 0 32px;
}
.ed-kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.ed-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.ed-kicker .meta { color: var(--charcoal); letter-spacing: 0.18em; }

/* HERO EDITORIAL SPREAD -------------------------------------------------- */
.ed-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 32px 72px;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 980px) { .ed-hero { grid-template-columns: 1fr; gap: 48px; padding: 48px 32px; } }

.ed-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.ed-feature-tag .star { color: var(--gold-dark); font-size: 14px; }
.ed-feature-tag .sep { opacity: 0.4; }

.ed-feature-title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 18ch;
}
.ed-feature-title em { font-style: italic; font-weight: 350; }
.ed-feature-deck {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.45;
  color: var(--charcoal);
  margin: 0 0 28px;
  max-width: 36ch;
}
.ed-feature-byline {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}
.ed-feature-byline strong { color: var(--ink); font-weight: 600; }
.ed-feature-cta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.ed-feature-cta:hover { color: var(--gold-dark); border-color: var(--gold-dark); }

/* Right rail - three secondary picks, hairline-separated */
.ed-secondary-list {
  border-top: 1px solid var(--charcoal);
  margin-top: 6px;
}
.ed-secondary {
  display: block;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.18s;
}
.ed-secondary:hover { padding-left: 6px; }
.ed-secondary:last-child { border-bottom: none; }
.ed-secondary .tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
}
.ed-secondary .tag .num { color: var(--charcoal); }
.ed-secondary .tag .sep { opacity: 0.4; }
.ed-secondary h3 {
  font-family: var(--serif);
  font-weight: 450;
  font-size: 21px;
  line-height: 1.18;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.ed-secondary h3 em { font-style: italic; }
.ed-secondary .deck {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* CATALOG TABLE - Departments ------------------------------------------ */
.ed-catalog-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
.ed-catalog {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
}
.ed-catalog thead th {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid var(--charcoal);
  padding: 14px 16px;
}
.ed-catalog thead th.right, .ed-catalog tbody td.right { text-align: right; }
.ed-catalog tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.ed-catalog tbody tr:hover { background: var(--cream-2); }
.ed-catalog tbody td {
  padding: 22px 16px;
  vertical-align: top;
}
.ed-catalog .col-no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  width: 70px;
}
.ed-catalog .dept-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.ed-catalog .dept-name em { font-style: italic; }
.ed-catalog .dept-blurb {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.ed-catalog .featured-link {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.ed-catalog .featured-link:hover { border-color: var(--gold-dark); color: var(--gold-dark); }
.ed-catalog .featured-meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.ed-catalog .col-vol {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 16px;
  width: 90px;
  text-align: right;
}
.ed-catalog .col-vol .arrow {
  display: inline-block;
  margin-left: 12px;
  color: var(--charcoal);
  font-style: normal;
  transition: transform 0.18s;
}
.ed-catalog tbody tr:hover .col-vol .arrow { transform: translateX(4px); color: var(--gold-dark); }

@media (max-width: 760px) {
  .ed-catalog thead { display: none; }
  .ed-catalog tbody td { display: block; padding: 6px 0; border: none; }
  .ed-catalog tbody tr { padding: 22px 0; display: block; }
  .ed-catalog .col-no { width: auto; font-size: 14px; margin-bottom: 8px; }
  .ed-catalog .col-vol { width: auto; text-align: left; margin-top: 10px; }
}

/* TOOLBOX TYPOGRAPHIC GRID --------------------------------------------- */
.ed-toolbox {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
}
@media (max-width: 1100px) { .ed-toolbox { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .ed-toolbox { grid-template-columns: 1fr; } }
.ed-tool {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  transition: background 0.15s;
}
.ed-tool:last-child { border-right: none; }
.ed-tool:hover { background: var(--cream-2); }
@media (max-width: 900px) {
  .ed-tool { border-right: none; border-bottom: 1px solid var(--border); }
  .ed-tool:last-child { border-bottom: none; }
}
.ed-tool .num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.ed-tool h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.008em;
}
.ed-tool h3 em { font-style: italic; }
.ed-tool p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.55; }
.ed-tool .open {
  margin-top: auto;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}
.ed-tool .open::after { content: "→"; transition: transform 0.18s; }
.ed-tool:hover .open::after { transform: translateX(5px); color: var(--gold-dark); }

/* EDITORIAL STANDARDS SECTION ----------------------------------------- */
.ed-standards-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
}
@media (max-width: 800px) { .ed-standards-wrap { grid-template-columns: 1fr; gap: 32px; } }
.ed-standards h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.ed-standards h2 em { font-style: italic; }
.ed-standards p.lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--charcoal);
  margin: 0;
}
.ed-standards-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 600px) { .ed-standards-cols { grid-template-columns: 1fr; } }
.ed-standards-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.ed-standards-col p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--charcoal);
  margin: 0 0 12px;
}

/* VOICES (cleaner cards) ---------------------------------------------- */
.ed-voices-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
}
@media (max-width: 820px) { .ed-voices-wrap { grid-template-columns: 1fr; } }
.ed-voice {
  padding: 40px 36px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ed-voice:last-child { border-right: none; }
@media (max-width: 820px) {
  .ed-voice { border-right: none; border-bottom: 1px solid var(--border); }
  .ed-voice:last-child { border-bottom: none; }
}
.ed-voice .pre {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.ed-voice h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.ed-voice h3 em { font-style: italic; }
.ed-voice p { font-size: 15px; line-height: 1.6; color: var(--charcoal); margin: 0; max-width: 44ch; }
.ed-voice .platforms {
  margin-top: 8px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.ed-voice .platforms a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
}
.ed-voice .platforms a:hover { color: var(--gold-dark); border-color: var(--gold-dark); }

/* LANGUAGES STRIP (simplified to a single editorial row) -------------- */
.ed-languages {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 32px;
  text-align: center;
}
.ed-languages .label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 14px;
}
.ed-languages .row {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.ed-languages .row span {
  display: inline-block;
  padding: 0 14px;
  border-right: 1px solid var(--border);
  margin: 4px 0;
}
.ed-languages .row span:last-child { border-right: none; }

/* FEATURED TOOL block (Journey Map) - cleaner, less corner-radius -- */
.ed-flagship {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
.ed-flagship-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--ink);
  color: var(--cream);
  align-items: stretch;
  border-radius: 0;
}
@media (max-width: 900px) { .ed-flagship-card { grid-template-columns: 1fr; } }
.ed-flagship-text { padding: 56px 56px; }
@media (max-width: 600px) { .ed-flagship-text { padding: 36px 28px; } }
.ed-flagship .pre {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.ed-flagship .pre::after {
  content: ""; flex: 1; height: 1px; background: rgba(228,193,35,0.35);
}
.ed-flagship h2 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(34px, 3.8vw, 48px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.015em;
}
.ed-flagship h2 em { font-style: italic; }
.ed-flagship p {
  color: rgba(251,247,240,0.78);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 48ch;
}
.ed-flagship .ed-flagship-cta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}
.ed-flagship .ed-flagship-cta + .ed-flagship-cta { margin-left: 24px; color: var(--cream); border-color: rgba(251,247,240,0.4); }
.ed-flagship-visual {
  background: linear-gradient(135deg, #3a3f3a 0%, #1F2520 100%);
  padding: 56px 40px;
  display: flex; align-items: center; justify-content: center;
}

/* FOOT CTA ------------------------------------------------------------- */
.ed-foot-cta {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 32px;
  text-align: center;
}
.ed-foot-cta .pre {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 18px;
}
.ed-foot-cta h2 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.1;
  margin: 0 0 16px;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.012em;
}
.ed-foot-cta h2 em { font-style: italic; color: var(--gold); }
.ed-foot-cta p { color: rgba(251,247,240,0.7); max-width: 48ch; margin: 0 auto 28px; line-height: 1.6; }
.ed-foot-cta .btn {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0;
}
.ed-foot-cta .btn:hover { background: var(--gold-dark); }
.ed-foot-cta .small { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(251,247,240,0.4); margin-top: 24px; }

/* ===========================================================================
   LIBRARY VISUALISATION (v3.3) - virtual library feel.
   Per Roshan: site needs to FEEL like a library, not a magazine.
   Adds: subtle paper grain, drop caps on body, a row of 10 book spines
   above the Departments catalog, and the bookmark UI.
   =========================================================================== */

body {
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.16 0 0 0 0 0.13 0 0 0 0.025 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  background-attachment: fixed;
}

.entry-content > p:first-of-type::first-letter,
.page-content .entry-content > p:nth-of-type(2)::first-letter {
  font-family: var(--serif);
  font-weight: 500;
  font-style: normal;
  font-size: 5.4em;
  line-height: 0.85;
  float: left;
  margin: 0.05em 0.12em 0 -0.04em;
  color: var(--ink);
  letter-spacing: -0.04em;
}

.ivfl-shelf-display {
  max-width: var(--max);
  margin: 0 auto 48px;
  padding: 0 32px;
}
.ivfl-shelf-rail {
  position: relative;
  padding: 32px 0 0;
  border-bottom: 6px solid var(--ink);
  background: linear-gradient(180deg, transparent 0%, transparent calc(100% - 14px), var(--cream-3) calc(100% - 14px), var(--cream-3) 100%);
}
.ivfl-shelf-rail::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -16px;
  height: 12px;
  background: linear-gradient(180deg, rgba(45,50,44,0.12) 0%, transparent 100%);
}
.ivfl-spines {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 8px;
}
.ivfl-spine {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 22px 10px 18px;
  width: 76px;
  text-decoration: none;
  color: inherit;
  border-radius: 2px 2px 0 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.08), inset 1px 0 0 rgba(255,255,255,0.12);
  cursor: pointer;
}
.ivfl-spine:hover {
  transform: translateY(-8px);
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.12), inset 1px 0 0 rgba(255,255,255,0.18), 0 6px 18px rgba(45,50,44,0.18);
}
.ivfl-spine .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.7;
}
.ivfl-spine .ttl {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: left;
  margin: 8px 0;
  flex: 1;
  padding: 4px 0;
}
.ivfl-spine .foil {
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.85;
}
.ivfl-spine.s1  { background: #2D322C; color: var(--cream); height: 220px; }
.ivfl-spine.s1 .foil { color: var(--gold); }
.ivfl-spine.s2  { background: #5C5043; color: var(--cream); height: 232px; }
.ivfl-spine.s2 .foil { color: var(--gold); }
.ivfl-spine.s3  { background: #E4C123; color: var(--ink); height: 210px; }
.ivfl-spine.s3 .foil { color: var(--ink); }
.ivfl-spine.s4  { background: #8E7B57; color: var(--cream); height: 226px; }
.ivfl-spine.s4 .foil { color: var(--gold); }
.ivfl-spine.s5  { background: #1F2520; color: var(--gold); height: 240px; }
.ivfl-spine.s5 .foil { color: var(--cream); }
.ivfl-spine.s5 .ttl { color: var(--cream); }
.ivfl-spine.s6  { background: #B8736A; color: var(--cream); height: 218px; }
.ivfl-spine.s6 .foil { color: var(--cream); }
.ivfl-spine.s7  { background: #6E8676; color: var(--cream); height: 228px; }
.ivfl-spine.s7 .foil { color: var(--cream); }
.ivfl-spine.s8  { background: #EBE6DE; color: var(--ink); height: 215px; border-left: 1px solid rgba(45,50,44,0.1); border-right: 1px solid rgba(45,50,44,0.1); }
.ivfl-spine.s8 .foil { color: var(--gold-dark); }
.ivfl-spine.s9  { background: #6B4C5E; color: var(--cream); height: 236px; }
.ivfl-spine.s9 .foil { color: var(--gold); }
.ivfl-spine.s10 { background: #C9A91D; color: var(--ink); height: 222px; }
.ivfl-spine.s10 .foil { color: var(--ink); }

@media (max-width: 700px) {
  .ivfl-spines { gap: 3px; }
  .ivfl-spine { width: 56px; padding: 16px 6px 14px; }
  .ivfl-spine .ttl { font-size: 11px; }
}

/* BOOKMARK BUTTON ------------------------------------------------------- */
.ivfl-bookmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
  padding: 10px 18px 10px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: all 0.18s;
}
.ivfl-bookmark:hover { border-color: var(--charcoal); background: var(--cream-2); }
.ivfl-bookmark .bm-icon { color: var(--muted); transition: color 0.18s; }
.ivfl-bookmark .bm-icon .bm-stroke { transition: fill 0.18s, stroke 0.18s; }
.ivfl-bookmark .bm-label-saved { display: none; }
.ivfl-bookmark.is-saved {
  border-color: var(--gold-dark);
  background: rgba(228, 193, 35, 0.08);
  color: var(--gold-dark);
}
.ivfl-bookmark.is-saved .bm-icon { color: var(--gold-dark); }
.ivfl-bookmark.is-saved .bm-icon .bm-stroke { fill: var(--gold-dark); stroke: var(--gold-dark); }
.ivfl-bookmark.is-saved .bm-label-default { display: none; }
.ivfl-bookmark.is-saved .bm-label-saved { display: inline; }

/* READING LIST PAGE -------------------------------------------------- */
.ivfl-saved-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px 96px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .ivfl-saved-grid { grid-template-columns: 1fr; } }
.ivfl-saved-card {
  display: block;
  position: relative;
  background: white;
  border: 1px solid var(--border);
  padding: 28px 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.ivfl-saved-card:hover { border-color: var(--charcoal); box-shadow: 0 8px 22px rgba(45,50,44,0.05); }
.ivfl-saved-card .ivfl-saved-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.ivfl-saved-card .ivfl-saved-tag {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
}
.ivfl-saved-card .ivfl-saved-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.18;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.ivfl-saved-card .ivfl-saved-excerpt {
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1.55;
  margin: 0 0 16px;
}
.ivfl-saved-remove {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.ivfl-saved-remove:hover { color: var(--rust); }

/* ==========================================================================
   v3.6 - Responsive layer + mobile menu + utility bar additions
   ========================================================================== */

/* Phone link in utility bar */
.utility .util-phone {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  margin-left: 18px;
  font-size: 12px;
  letter-spacing: 0.01em;
}
.utility .util-phone:hover { color: var(--gold-dark); }
.utility .util-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 2px 10px;
  background: transparent;
  color: var(--ink) !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.utility .util-whatsapp:hover {
  background: var(--ink);
  color: var(--cream) !important;
}
.utility .util-whatsapp svg { flex-shrink: 0; }
.utility .util-tagline { font-size: 12px; color: var(--charcoal); }

/* ==========================================================================
   /ebook/ page - three-language framework
   ========================================================================== */
.ebook-lang-nav {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--charcoal);
  border-radius: 999px;
  padding: 4px;
  margin: 0 0 32px;
  background: white;
}
.ebook-lang-nav .ebook-tab {
  padding: 8px 18px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.ebook-lang-nav .ebook-tab:hover { background: var(--cream-2); }
.ebook-lang-nav .ebook-tab.is-active {
  background: var(--ink);
  color: var(--cream);
}

.ebook-grid {
  max-width: var(--max);
  margin: 0 auto 32px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .ebook-grid { grid-template-columns: 1fr; max-width: 760px; padding: 0 16px; } }

.ebook-card {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding: 36px 28px;
  border: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
}
.ebook-card.is-recommended {
  border-color: var(--gold);
  box-shadow: 0 12px 28px rgba(45, 50, 44, 0.18);
  transform: translateY(-4px);
}
.ebook-recommend {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.ebook-card .ebook-edition {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 18px;
}
.ebook-card .ebook-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.ebook-card .ebook-blurb {
  color: rgba(251, 247, 240, 0.78);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 20px;
}
.ebook-form { display: flex; flex-direction: column; gap: 12px; }
.ebook-card .ebook-email {
  padding: 11px 14px;
  border: 1px solid rgba(251, 247, 240, 0.4);
  background: rgba(251, 247, 240, 0.08);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
  border-radius: 0;
  width: 100%;
}
.ebook-card .ebook-email::placeholder { color: rgba(251, 247, 240, 0.5); }
.ebook-card .ebook-button {
  background: var(--gold);
  color: var(--ink);
  padding: 11px 18px;
  border: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}
.ebook-card .ebook-button:hover { background: var(--gold-dark); }
.ebook-card .ebook-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(251, 247, 240, 0.66);
  line-height: 1.45;
  cursor: pointer;
}
.ebook-card .ebook-consent-box { margin-top: 3px; flex-shrink: 0; }
.ebook-card .ebook-result {
  margin-top: 6px;
}
.ebook-card .ebook-thanks {
  background: rgba(228, 193, 35, 0.12);
  border-left: 3px solid var(--gold);
  padding: 18px;
}
.ebook-card .ebook-thanks h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--cream);
}
.ebook-card .ebook-thanks p {
  margin: 0;
  font-size: 13px;
  color: rgba(251, 247, 240, 0.78);
  line-height: 1.5;
}
.ebook-card .ebook-thanks a { color: var(--gold); }

/* Footer Connect column - phone with WhatsApp inline */
footer.site .footer-connect .connect-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
footer.site .footer-connect .connect-wa {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  background: var(--gold);
  color: var(--ink) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  border-radius: 999px;
  border: none !important;
  transition: background 0.15s;
}
footer.site .footer-connect .connect-wa:hover { background: var(--gold-dark); }
footer.site .footer-connect .connect-spacer {
  height: 8px;
  list-style: none;
  border: none;
}
footer.site .footer-connect .connect-link {
  font-weight: 500;
}

/* Language pills - allow wrap; smaller pad */
.utility .langs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}
.utility .langs-pills a {
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
}
/* Google Translate - hide ONLY the visible top banner, leave the
   translation iframes alone so GT can actually translate the page.
   The .skiptranslate class is on GT's hidden working iframes - hiding them
   breaks translation entirely. */
body { top: 0 !important; }
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame { display: none !important; }
body > .skiptranslate:not(iframe) { display: none !important; }
.goog-te-gadget { font-size: 0 !important; }
.goog-te-gadget .goog-te-combo { font-size: 12px; }
/* Hide our offscreen container's GT-injected UI without removing it from DOM */
#google_translate_element .goog-logo-link,
#google_translate_element .goog-te-gadget span { display: none !important; }

/* Mobile menu toggle - hidden on desktop */
.ivfl-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--charcoal);
  width: 40px;
  height: 40px;
  padding: 8px 6px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}
.ivfl-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 0;
  transition: transform 0.2s, opacity 0.2s;
}
.ivfl-menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.ivfl-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.ivfl-menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Tablet + smaller (980px and below) - HAMBURGER MENU ---------- */
@media (max-width: 980px) {
  /* Brand bar - 2-col grid: logo on left, hamburger on right */
  header.brand .brand-inner {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas: "logo toggle" !important;
    align-items: center !important;
    padding: 14px 16px !important;
    gap: 12px !important;
  }
  header.brand .logo, header.brand a.logo { grid-area: logo; font-size: 22px; }
  .ivfl-menu-toggle { display: flex !important; grid-area: toggle; }

  /* Nav: hidden by default, drops down as overlay below header when open */
  header.brand nav.main {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0 !important;
    flex-wrap: nowrap;
    box-shadow: 0 8px 20px rgba(45,50,44,0.08);
    z-index: 100;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  header.brand nav.main.is-open { display: flex !important; }
  header.brand nav.main a,
  header.brand nav.main li > a {
    padding: 14px 4px !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: 15px !important;
    display: block;
    width: 100%;
  }
  header.brand nav.main li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
  }
  header.brand nav.main li:last-child a { border-bottom: none !important; }

  /* Search + CTA hidden on mobile by default - show inside menu when open */
  header.brand .search-wrap {
    display: none;
  }
  header.brand nav.main.is-open ~ .search-wrap,
  header.brand nav.main.is-open + .search-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 10px;
    margin-top: 12px;
    padding: 16px;
    background: var(--cream-2);
  }

  /* Position the brand header relatively so the absolute nav drops correctly */
  header.brand { position: sticky; top: 0; z-index: 50; }
}

/* ---------- Tablet content rules (above 768) ---------- */
@media (max-width: 1024px) {
  /* About Us - drop from 2-col to 1-col */
  #about .container[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  #about svg { max-width: 460px; margin: 0 auto; }

  #ivfl-jm-detail > div[style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  section#editors-desk .container[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  #about .container[style*="repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }
  #ivfl-decode-form > div[style*="grid-template-columns"],
  #ivfl-bmi-form > div[style*="grid-template-columns"],
  #ivfl-ovulation-form > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- Mobile (768px and below) ---------- */
@media (max-width: 768px) {
  /* Utility bar - stack */
  .utility .utility-inner {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    padding: 8px 16px;
  }
  .utility .left, .utility .right {
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
  }
  .utility .util-phone { margin-left: 0; }
  .utility .util-social-label { display: none; }
  .utility .socials a { font-size: 13px; }
  .utility .util-tagline { display: none; }
  .utility .langs-pills a { font-size: 11px; padding: 1px 6px; }

  /* All editorial section heads */
  .ed-section-head, .ed-section { padding-left: 16px; padding-right: 16px; }
  .ed-section h2, .entry-title { font-size: clamp(28px, 7vw, 40px) !important; }

  /* About 4 cards → 1 column on mobile */
  #about .container[style*="repeat(4"] {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    padding: 0 16px 40px !important;
  }

  /* Departments / catalog table → stacked */
  #departments .ed-catalog-table { display: block; }
  #departments .ed-catalog-table thead { display: none; }
  #departments .ed-catalog-table tbody, #departments .ed-catalog-table tr, #departments .ed-catalog-table td {
    display: block;
    width: 100%;
  }
  #departments .ed-catalog-table tr { border-bottom: 1px solid var(--border); padding: 16px 0; }
  #departments .ed-catalog-table td { padding: 4px 0 !important; }

  /* Toolbox 4 → 1 col on mobile */
  .ed-toolbox { grid-template-columns: 1fr !important; padding: 0 16px; }
  .ed-tool { padding: 28px 20px; }

  /* Foot CTA */
  .ed-foot-cta h2 { font-size: clamp(28px, 7vw, 40px); }

  /* Footer cols → 1 */
  footer.site .cols { grid-template-columns: 1fr !important; gap: 28px !important; }
  footer.site .legal { flex-direction: column; gap: 8px; align-items: flex-start; }

  /* Journey map svg - allow scrolling on tiny screens */
  #ivfl-jm-svg { min-width: 700px; }
  #ivfl-jm-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 18px; }

  /* Journey map detail */
  #ivfl-jm-detail { padding: 22px !important; }
  #ivfl-jm-detail h2 { font-size: 26px !important; }

  /* Scenarios grid 2 col → 1 col */
  #ivfl-jm-scenarios, .ed-flagship-card,
  div[style*="display: grid"][style*="repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Article reading layout */
  .page-content { padding-left: 16px !important; padding-right: 16px !important; }

  /* Calculator pills */
  #ivfl-bmi-form, #ivfl-ovulation-form, #ivfl-decode-form { padding: 22px 18px !important; }

  /* Concept banner / disclaimer */
  .concept-banner, .disclaimer-strip { font-size: 11px; padding: 8px 14px; line-height: 1.4; }

  /* Editorial masthead - shrink */
  .ed-masthead-inner { font-size: 10px; flex-wrap: wrap; gap: 6px; padding: 10px 16px; }

  /* Hero */
  .hero { padding: 36px 0; }

  /* Reading list saved card */
  .ivfl-saved-grid { grid-template-columns: 1fr !important; padding: 0 16px !important; }
}

/* ---------- Very small (480px and below) ---------- */
@media (max-width: 480px) {
  .utility .langs-pills a { font-size: 11px; padding: 1px 6px; }
  .utility .socials { gap: 8px; }
  .ed-section { padding-top: 40px; padding-bottom: 40px; }
  h1.entry-title { font-size: 30px !important; }
  .ed-flagship-card { padding: 0; }
  .ed-flagship-text { padding: 28px 20px !important; }
  .ed-flagship-cta { font-size: 13px; }
  /* Bookmark button - shrink */
  .ivfl-bookmark { font-size: 12px; padding: 8px 12px; }
}
