/* ============================================================
   ACADEMIC SITE TEMPLATE
   DrA Web Services
   Aesthetic: Refined Scholarly Luxury
   ============================================================

   THEMING GUIDE
   ─────────────────────────────────────────────────────────
   All colors derive from four user-chosen values:
     --main        Primary/brand color (e.g. university navy)
     --main-deep   Darkest variant   (header, hero bg in dark mode)
     --main-mid    Medium variant    (gradient fills)
     --accent      Accent color      (gold, crimson, teal, etc.)

   The generator writes these four values + RGB equivalents into
   :root from config.json.  DO NOT edit this file directly —
   edit config.json and re-run generate.py.

   Hero/header mode is set by a class on <body>:
     <body class="hero-dark">   ← dark header + hero (default)
     <body class="hero-light">  ← white/light header + hero
   ============================================================ */

/* ── FONT IMPORT ────────────────────────────────────────────── */
/* Replaced by generator from config.theme.googleFontsUrl */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Brand colors — SET BY GENERATOR from config.json */
  --main:         #275D38;
  --main-deep:    #1c4228;
  --main-mid:     #225131;
  --main-rgb:     39, 93, 56;       /* e.g. 26, 39, 68  */
  --main-mid-rgb: 34, 81, 49;   /* e.g. 35, 48, 88  */
  --accent:       #94742E;
  --accent-light: #a4894d;
  --accent-pale:  #f0ebe1;
  --accent-rgb:   148, 116, 46;     /* e.g. 184, 154, 90 */

  /* Palette neutrals — SET BY GENERATOR (preset or institution path) */
  --neutral:      #D8D3C7;
  --neutral-rgb:  216, 211, 199;
  --bg-rgb:       247, 245, 240;
  --text-rgb:     31, 41, 51;

  /* Page background (always light regardless of hero mode) */
  --bg:           #F7F5F0;
  --bg-alt:       rgba(var(--neutral-rgb),0.35);
  --bg-dk:        rgba(var(--neutral-rgb),0.60);

  /* Text */
  --text-dark:    var(--main);
  --text:         #1F2933;
  --text-muted:   rgba(var(--text-rgb),0.66);
  --text-warm:    rgba(var(--text-rgb),0.50);

  /* Borders (derived from palette neutral so they read on all presets) */
  --border:       rgba(var(--neutral-rgb),0.85);
  --border-light: rgba(var(--neutral-rgb),0.50);

  /* Typography — SET BY GENERATOR */
  --font-display: 'Crimson Pro', Georgia, serif;
  --font-body:    'Crimson Pro', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;

  /* Spacing / shape */
  --radius:       4px;
  --radius-md:    8px;
  --shadow-sm:    0 2px 8px rgba(var(--main-rgb),0.06);
  --shadow-md:    0 6px 24px rgba(var(--main-rgb),0.10);
  --shadow-lg:    0 16px 48px rgba(var(--main-rgb),0.14);
  --transition:   0.25s ease;
  --max-width:    1160px;

  /* ── DARK HERO MODE (default) ─────────────────────────────── */
  --header-bg:          var(--main-deep);
  --header-link:        rgba(255,255,255,0.75);
  --header-link-hover:  #fff;
  --header-link-active: var(--accent-light);
  --hero-bg:            var(--main-deep);
  --hero-text:          #fff;
  --hero-text-muted:    rgba(255,255,255,0.80);
  --hero-text-dim:      rgba(255,255,255,0.45);
  --hero-border:        rgba(var(--accent-rgb),0.30);
  --hero-badge-bg:      var(--main-deep);
}

/* ── LIGHT HERO MODE override ───────────────────────────────── */
/* Applied when generator sets config.theme.heroMode = "light"  */
body.hero-light {
  --header-bg:          var(--bg);
  --header-link:        rgba(var(--main-rgb),0.70);
  --header-link-hover:  var(--main);
  --header-link-active: var(--accent);
  --hero-bg:            var(--bg-alt);
  --hero-text:          var(--main);
  --hero-text-muted:    rgba(var(--main-rgb),0.75);
  --hero-text-dim:      rgba(var(--main-rgb),0.45);
  --hero-border:        rgba(var(--accent-rgb),0.25);
  --hero-badge-bg:      #fff;
}
body.hero-light .site-header {
  box-shadow: 0 2px 20px rgba(var(--main-rgb),0.08);
  border-bottom: 1px solid var(--border-light);
}
body.hero-light .logo-text  { color: var(--main); }
body.hero-light .logo-sub   { color: rgba(var(--main-rgb),0.45); }
body.hero-light .logo-mark  { color: var(--main); border-color: var(--main); }
body.hero-light .hamburger span { background: var(--main); }
body.hero-light .site-nav {
  background: var(--bg);
}
body.hero-light .hero-texture { opacity: 0.4; }
body.hero-light .hero::before { display: none; }
body.hero-light .page-hero { background: var(--bg-alt); }
body.hero-light .page-hero h1 { color: var(--main); }
body.hero-light .page-hero .lead { color: var(--text-muted); }
body.hero-light .page-hero::after {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--main); transition: color var(--transition); }
a:hover { color: var(--accent); }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  color: var(--main);
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem,5vw,3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem,3vw,2.4rem); }
h3 { font-size: clamp(1.2rem,2vw,1.6rem); }
h4 { font-size: 1.1rem; font-weight: 500; }
p  { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }
.lead {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text);
}

/* ── UTILITY ────────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(1rem,4vw,2.5rem); }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); font-style: italic; }
.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.gold-rule {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  margin: 1.25rem auto; border: none;
}
.gold-rule.left { margin-left: 0; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7em 1.6em;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--main); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--main-deep); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-gold { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--accent-light); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--main); border: 1.5px solid var(--main); }
.btn-outline:hover { background: var(--main); color: #fff; }
.btn-outline-gold { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline-gold:hover { background: var(--accent); color: #fff; }

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  background: var(--header-bg);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; gap: 1rem; }
.site-logo { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.logo-mark {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--accent); border: 1.5px solid var(--accent);
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.05em; flex-shrink: 0;
}
.logo-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; color: #fff; letter-spacing: 0.02em; line-height: 1.2; }
.logo-sub { display: block; font-family: var(--font-sans); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); font-weight: 300; }
.site-nav { display: flex; align-items: center; gap: 0.15rem; }
.site-nav a {
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--header-link); text-decoration: none;
  padding: 0.4em 0.85em; border-radius: 2px; transition: all var(--transition);
}
.site-nav a:hover, .site-nav a.active { color: var(--header-link-hover); background: rgba(var(--accent-rgb),0.15); }
.site-nav a.active { color: var(--header-link-active); }
.nav-cta { background: var(--accent) !important; color: #fff !important; padding: 0.4em 1.1em !important; }
.nav-cta:hover { background: var(--accent-light) !important; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: #fff; transition: all var(--transition); }

/* ── HERO (HOME) ────────────────────────────────────────────── */
.hero { background: var(--hero-bg); min-height: 86vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 40%, rgba(var(--accent-rgb),0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 20% 60%, rgba(var(--main-mid-rgb),0.80) 0%, transparent 60%);
}
.hero-texture {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 420px;
  grid-template-rows: auto 1fr;
  grid-template-areas: "kicker portrait" "content portrait";
  column-gap: 5rem; row-gap: 0;
  align-items: start; position: relative; z-index: 1; padding: 5rem 0;
}
.hero-content { grid-area: content; }
.hero-kicker {
  grid-area: kicker; font-family: var(--font-sans);
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0; padding-bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.75rem; align-self: end;
}
.hero-kicker::before { content: ''; width: 32px; height: 1px; background: var(--accent); }

.hero h1 { font-family: var(--font-display); font-size: clamp(2.8rem,6vw,5rem); font-weight: 300; color: var(--hero-text); line-height: 1.1; margin-bottom: 0.2rem; }
.hero h1 em { display: block; font-style: italic; font-weight: 300; color: var(--accent-light); }
.hero-title-sub { font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hero-text-dim); margin-bottom: 2rem; margin-top: 0.5rem; }
.hero-bio {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 300; line-height: 1.7;
  color: var(--hero-text-muted); margin-bottom: 2.5rem; max-width: 520px;
  border-left: 2px solid var(--accent); padding-left: 1.25rem;
}
.hero-stats { display: flex; gap: 2.5rem; margin-bottom: 2.5rem; }
.stat-item { text-align: left; }
.stat-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; color: var(--accent-light); line-height: 1; }
.stat-label { font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hero-text-dim); margin-top: 0.2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-portrait { grid-area: portrait; align-self: center; position: relative; }
.hero-portrait-frame { position: relative; border: 1px solid var(--hero-border); padding: 1rem; }
.hero-portrait-frame::before {
  content: ''; position: absolute; top: -8px; left: -8px; right: 8px; bottom: 8px;
  border: 1px solid rgba(var(--accent-rgb),0.15); pointer-events: none;
}
.hero-portrait-badge {
  position: absolute; bottom: 1.5rem; left: -1.5rem;
  background: var(--hero-badge-bg); border: 1px solid var(--accent);
  padding: 0.75rem 1rem; font-family: var(--font-sans); font-size: 0.7rem;
  color: var(--hero-text-muted); letter-spacing: 0.08em;
}
.hero-portrait-badge strong { display: block; color: var(--accent-light); font-size: 1rem; font-family: var(--font-display); font-weight: 600; }

/* ── PAGE HEADERS ───────────────────────────────────────────── */
.page-hero { background: var(--hero-bg); padding: 5rem 0 4rem; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.page-hero h1 { color: var(--hero-text); font-weight: 300; margin-bottom: 1rem; }
.page-hero .lead { color: var(--hero-text-muted); max-width: 620px; }

/* ── HOME FEATURED SECTION ──────────────────────────────────── */
.section-featured { padding: 6rem 0; background: var(--bg-alt); position: relative; }
.section-featured::before {
  content: '"'; position: absolute; top: 2rem; right: 5%;
  font-family: var(--font-display); font-size: 20rem;
  color: rgba(var(--accent-rgb),0.05); line-height: 1; pointer-events: none;
}
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.featured-text .section-label { margin-bottom: 0.5rem; }
.featured-text h2 { margin-bottom: 1rem; }
.featured-book-visual { position: relative; padding: 2rem; }
.book-cover-stack { position: relative; display: inline-block; }
.book-cover-stack .cover-main { width: 220px; height: 300px; background: linear-gradient(135deg, var(--main-mid), var(--main-deep)); box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); font-size: 0.75rem; font-family: var(--font-sans); text-align: center; position: relative; z-index: 2; }
.book-cover-stack::before, .book-cover-stack::after { content: ''; position: absolute; width: 220px; height: 300px; background: var(--main-mid); }
.book-cover-stack::before { top: -8px; left: 8px; z-index: 1; opacity: 0.5; }
.book-cover-stack::after  { top: -16px; left: 16px; z-index: 0; opacity: 0.25; }

/* ── BOOKS ──────────────────────────────────────────────────── */
.section-books { padding: 6rem 0; background: var(--bg); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--text-muted); max-width: 540px; margin: 0 auto; font-size: 0.95rem; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 2rem; }
.book-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; transition: all var(--transition); box-shadow: var(--shadow-sm); }
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border); }
.book-card-cover { aspect-ratio: 2/3; overflow: hidden; background: var(--bg-dk); position: relative; }
.book-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.book-card:hover .book-card-cover img { transform: scale(1.03); }
.book-card-cover-placeholder { width: 100%; height: 100%; background: linear-gradient(145deg,var(--main-mid),var(--main-deep)); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; gap: 0.75rem; min-height: 260px; }
.book-card-cover-placeholder .ph-title { font-family: var(--font-display); font-size: 1rem; color: rgba(255,255,255,0.8); line-height: 1.3; }
.book-card-cover-placeholder .ph-line  { width: 30px; height: 1px; background: var(--accent); }
.book-card-cover-placeholder .ph-note  { font-family: var(--font-sans); font-size: 0.65rem; color: rgba(255,255,255,0.35); letter-spacing: 0.1em; text-transform: uppercase; }
.book-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.book-title { font-size: 1.15rem; margin-bottom: 0.25rem; line-height: 1.3; }
.book-title a { text-decoration: none; color: var(--main); }
.book-title a:hover { color: var(--accent); }
.book-authors { font-family: var(--font-sans); font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.75rem; font-style: italic; }
.book-year-tag { display: inline-block; font-family: var(--font-sans); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: var(--accent-pale); padding: 0.15em 0.5em; border-radius: 2px; margin-bottom: 0.75rem; }
.book-meta-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.book-meta-row .book-year-tag { margin-bottom: 0; }
.book-year { font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted, #6b6b6b); white-space: nowrap; }
.book-blurb { font-size: 0.88rem; color: var(--text); line-height: 1.6; margin-bottom: 1.25rem; flex: 1; }
.book-card-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: auto; }

/* ── BOOK DETAIL ────────────────────────────────────────────── */
.book-hero { background: var(--hero-bg); padding: 5rem 0; position: relative; overflow: hidden; }
.book-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(var(--accent-rgb),0.06) 0%, transparent 70%); pointer-events: none; }
.book-hero-inner { display: grid; grid-template-columns: 260px 1fr; gap: 4rem; align-items: start; position: relative; z-index: 1; }
.book-hero-cover { position: sticky; top: 5rem; }
.book-hero-cover img { width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,0.5); border-radius: 2px; }
.book-kicker { font-family: var(--font-sans); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.book-hero-text h1 { color: var(--hero-text); font-weight: 300; margin-bottom: 0.5rem; }
.book-subtitle-hero { font-family: var(--font-display); font-size: 1.2rem; font-style: italic; color: var(--hero-text-muted); margin-bottom: 1rem; }
.book-meta { font-family: var(--font-sans); font-size: 0.82rem; color: var(--hero-text-muted); margin-bottom: 0.35rem; }
.book-meta strong { color: var(--hero-text); }
.book-description { font-family: var(--font-display); font-size: 1.1rem; font-weight: 300; line-height: 1.7; color: var(--hero-text-muted); margin: 1.5rem 0 2rem; border-left: 2px solid var(--accent); padding-left: 1.25rem; }
.book-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.book-content { padding: 5rem 0; background: var(--bg-alt); }
.book-layout { display: grid; grid-template-columns: 1fr 300px; gap: 4rem; align-items: start; }
.book-main h2 { font-size: 1.6rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); margin-top: 2.5rem; }
.book-main h2:first-child { margin-top: 0; }
.book-main ul, .book-main ol { padding-left: 1.5rem; margin-bottom: 1.25em; }
.book-main li { margin-bottom: 0.5em; }
.book-sidebar-section { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 1.5rem; }
.book-sidebar-section h3 { font-size: 0.75rem; font-family: var(--font-sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-warm); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-light); }
.book-facts { list-style: none; padding: 0; font-size: 0.88rem; }
.book-facts li { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; color: var(--text); }
.book-facts li strong { color: var(--main); min-width: 80px; }
.sidebar-links { list-style: none; padding: 0; font-size: 0.88rem; }
.sidebar-links li { margin-bottom: 0.6rem; }
.sidebar-links a { color: var(--main); text-decoration: none; display: flex; align-items: center; gap: 0.4rem; transition: color var(--transition); }
.sidebar-links a::before { content: '→'; color: var(--accent); font-size: 0.8rem; }
.sidebar-links a:hover { color: var(--accent); }

/* ── ABOUT ──────────────────────────────────────────────────── */
.about-layout { display: grid; grid-template-columns: 1fr 340px; gap: 4rem; align-items: start; padding: 5rem 0; }
.credentials-card { background: #fff; border: 1px solid var(--border-light); border-top: 3px solid var(--accent); border-radius: var(--radius-md); padding: 2rem; margin-bottom: 2rem; }
.credentials-card h3 { font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-warm); margin-bottom: 1.25rem; }
.cred-list { list-style: none; padding: 0; }
.cred-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--border-light); font-size: 0.88rem; line-height: 1.5; }
.cred-list li:last-child { border-bottom: none; }
.cred-list .cred-degree { font-weight: 700; color: var(--main); display: block; font-size: 0.85rem; }
.cred-list .cred-institution { color: var(--text-muted); font-style: italic; font-size: 0.82rem; }
.research-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.research-tag { font-family: var(--font-sans); font-size: 0.72rem; color: var(--main); background: var(--bg-dk); border: 1px solid var(--border); padding: 0.25em 0.75em; border-radius: 2px; letter-spacing: 0.04em; }
.about-name-note { background: var(--accent-pale); border-left: 3px solid var(--accent); padding: 1rem 1.25rem; font-family: var(--font-sans); font-size: 0.85rem; color: var(--text); border-radius: 0 var(--radius) var(--radius) 0; margin-top: 2.5rem; font-style: italic; }

/* ── SPEAKING ────────────────────────────────────────────────── */
.speaking-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 1.5rem; padding: 4rem 0; }
.speaking-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 2rem; transition: all var(--transition); }
.speaking-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.speaking-icon { width: 48px; height: 48px; background: var(--accent-pale); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.5rem; }
.speaking-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.speaking-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.testimonial-section { background: var(--hero-bg); padding: 5rem 0; text-align: center; }
.testimonial-quote { font-family: var(--font-display); font-size: 1.5rem; font-style: italic; font-weight: 300; color: var(--hero-text-muted); max-width: 700px; margin: 0 auto 1.5rem; line-height: 1.5; }
.testimonial-attribution { font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

/* ── MEDIA ──────────────────────────────────────────────────── */
.media-list { display: flex; flex-direction: column; gap: 1.5rem; padding: 4rem 0; }
.media-item { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 1.5rem 2rem; display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; align-items: start; transition: all var(--transition); }
.media-item:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }
.media-type-badge { display: inline-block; font-family: var(--font-sans); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3em 0.7em; border-radius: 2px; text-align: center; }
.badge-podcast   { background: #e8f4f8; color: #2a6080; }
.badge-article   { background: var(--accent-pale); color: #7a5a20; }
.badge-video     { background: #f0e8f8; color: #5a2080; }
.badge-interview { background: #e8f8e8; color: #206040; }
.media-item h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.media-item .media-meta { font-family: var(--font-sans); font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; font-style: italic; }
.media-item p { font-size: 0.88rem; color: var(--text); line-height: 1.6; }

/* ── RESOURCES ──────────────────────────────────────────────── */
.resources-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 2rem; padding: 4rem 0; }
.resource-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 2rem; transition: all var(--transition); }
.resource-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.resource-icon { width: 52px; height: 52px; background: var(--bg-dk); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.4rem; border: 1px solid var(--border); }
.resource-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.resource-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.25rem; }

/* ── CV PAGE ────────────────────────────────────────────────── */
.cv-download-bar { padding: 1.5rem 0 0; }
.print-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent; border: 1.5px solid var(--accent); color: var(--accent);
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  padding: 0.6rem 1.4rem; border-radius: var(--radius); text-decoration: none;
  transition: background var(--transition), color var(--transition), transform 0.15s;
}
.print-btn:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.cv-hero { background: var(--hero-bg); padding: 5rem 0 4rem; position: relative; overflow: hidden; }
.cv-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.cv-hero h1 { color: var(--hero-text); font-weight: 300; margin-bottom: 1rem; }
.cv-hero .lead { color: var(--hero-text-muted); max-width: 620px; }
.cv-body { padding: 5rem 0; background: var(--bg-alt); }
.cv-layout { display: grid; grid-template-columns: 1fr 280px; gap: 4rem; align-items: start; }
.cv-section { margin-bottom: 3rem; }
.cv-section h2 { font-size: 1.4rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--accent); }
.cv-entry { margin-bottom: 1.25rem; font-size: 0.92rem; }
/* CV entries render as table cells (<td class="cv-entry">) — use full column width, not the legacy 120px grid. */
.cv-table td.cv-entry { display: table-cell; width: auto; }
.cv-table td.cv-entry strong { display: inline; }
/* Education section on the CV page: match the entry sizes above it (scoped to #education so About-page credential cards stay compact). */
#education .cred-list li { font-size: 1rem; padding: 0.9rem 0; }
#education .cred-list .cred-degree { font-family: var(--font-display); font-size: 1.02rem; }
#education .cred-list .cred-institution { font-size: 0.9rem; }
/* Footer: menu items run horizontal, not stacked. */
.site-footer .footer-col ul { flex-direction: row; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.cv-year { font-family: var(--font-sans); font-size: 0.8rem; color: var(--accent); font-weight: 500; padding-top: 0.1rem; }
.cv-detail strong { display: block; color: var(--main); margin-bottom: 0.15rem; }
.cv-detail em { color: var(--text-muted); font-size: 0.88rem; display: block; }
.cv-sidebar-card { background: #fff; border: 1px solid var(--border-light); border-top: 3px solid var(--accent); border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 1.5rem; }
.cv-sidebar-card h3 { font-family: var(--font-sans); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-warm); margin-bottom: 1rem; }

/* ── CONTACT ────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 400px; gap: 4rem; padding: 5rem 0; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group label { display: block; font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-warm); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem;
  color: var(--text); background: #fff; transition: border-color var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--main); box-shadow: 0 0 0 3px rgba(var(--main-rgb),0.06); }
.form-group textarea { min-height: 140px; resize: vertical; }
.contact-info-card { background: var(--hero-bg); border-radius: var(--radius-md); padding: 2.5rem; color: var(--hero-text-muted); }
.contact-info-card h3 { color: var(--hero-text); font-size: 1.4rem; margin-bottom: 1.5rem; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.25rem; align-items: flex-start; }
.contact-info-icon { width: 36px; height: 36px; border: 1px solid var(--hero-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; margin-top: 2px; }
.contact-info-item .ci-label { font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 0.2rem; }
.contact-info-item .ci-value { font-size: 0.92rem; color: var(--hero-text); font-family: var(--font-sans); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer { background: var(--main-deep); border-top: 1px solid rgba(var(--accent-rgb),0.15); }
.footer-top { display: grid; grid-template-columns: 260px 1fr 1fr 1fr; gap: 3rem; padding: 4rem 0 3rem; align-items: start; }
/* Keep the brand fixed and let the remaining columns pack left so pages with
   fewer footer columns (about, contact, speaking) stay tight and aligned
   instead of stretching a lone column across the full grid. */
.footer-top { grid-template-columns: 260px repeat(3, max-content); justify-content: start; }
.footer-brand { max-width: 260px; }
.footer-brand .logo-text { color: #fff; font-size: 1.15rem; }
.footer-brand p { font-family: var(--font-sans); font-size: 0.82rem; color: rgba(255,255,255,0.45); line-height: 1.65; margin-top: 0.75rem; }
.footer-col h4 { font-family: var(--font-sans); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { font-family: var(--font-sans); font-size: 0.83rem; color: rgba(255,255,255,0.55); text-decoration: none; transition: color var(--transition); }
.footer-col ul a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 1.5rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-family: var(--font-sans); font-size: 0.78rem; color: rgba(255,255,255,0.35); margin: 0; }
.footer-note { font-style: italic; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.12); border-radius: 2px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); text-decoration: none; font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.05em; transition: all var(--transition); }
.footer-social a:hover { background: rgba(var(--accent-rgb),0.15); border-color: var(--accent); color: var(--accent-light); }

/* ── TESTIMONIALS ───────────────────────────────────────────── */
.section-testimonials { background: var(--bg-dk); padding: 5rem 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.testimonial-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 2rem; position: relative; }
.testimonial-card::before { content: '\201C'; font-family: var(--font-display); font-size: 4rem; color: var(--accent-pale); line-height: 1; position: absolute; top: 0.75rem; left: 1.25rem; }
.testimonial-card p { font-family: var(--font-display); font-size: 1rem; font-style: italic; color: var(--text); line-height: 1.7; margin-bottom: 1.25rem; padding-top: 1.5rem; }
.testimonial-author { font-family: var(--font-sans); font-size: 0.78rem; color: var(--text-muted); }
.testimonial-author strong { display: block; color: var(--main); font-size: 0.85rem; margin-bottom: 0.15rem; }

/* ── AWARDS BAR ─────────────────────────────────────────────── */
.awards-bar { background: var(--bg-alt); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); padding: 1.5rem 0; overflow: hidden; }
.awards-bar-inner { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; justify-content: center; }
.award-item { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-sans); font-size: 0.78rem; color: var(--text-warm); }
.award-item::before { content: '★'; color: var(--accent); font-size: 0.9rem; }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-up { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.animate-fade-up.delay-1 { animation-delay: 0.1s; }
.animate-fade-up.delay-2 { animation-delay: 0.2s; }
.animate-fade-up.delay-3 { animation-delay: 0.3s; }
.animate-fade-up.delay-4 { animation-delay: 0.4s; }

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb { font-family: var(--font-sans); font-size: 0.75rem; color: var(--hero-text-dim); margin-bottom: 1rem; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--hero-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb .sep { color: rgba(255,255,255,0.2); }

/* ── MISC ───────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.divider { border: none; border-top: 1px solid var(--border-light); margin: 2.5rem 0; }
.highlight-box { background: var(--accent-pale); border: 1px solid rgba(var(--accent-rgb),0.25); border-radius: var(--radius-md); padding: 1.5rem 2rem; margin: 2rem 0; }

/* ── MOBILE BREAKPOINTS ─────────────────────────────────────── */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .site-nav { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--header-bg); flex-direction: column; padding: 5rem 2rem 2rem; transition: right 0.3s ease; box-shadow: -10px 0 40px rgba(0,0,0,0.3); z-index: 200; align-items: flex-start; gap: 0.25rem; }
  .site-nav.open, .site-nav.nav-open { right: 0; }
  .site-nav a { font-size: 1rem; padding: 0.75em 1em; width: 100%; }
  .hero-inner { display: flex; flex-direction: column; gap: 1.5rem; padding: 3rem 0; }
  .hero-kicker { display: none; }
  .hero-portrait { display: block; }
  .hero-portrait-frame { max-width: 300px; margin: 0 auto; }
  .hero-portrait-badge { position: static; margin-top: 0.75rem; left: auto; bottom: auto; }
  .hero-stats { gap: 1.5rem; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-book-visual { display: none; }
  .about-layout { grid-template-columns: 1fr; }
  .about-portrait-wrap { margin: 0 auto; }
  .book-hero-inner { grid-template-columns: 1fr; }
  .book-hero-cover { position: static; max-width: 220px; margin: 0 auto; }
  .book-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .cv-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .hero-cta { flex-direction: column; }
  .media-item { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.25rem; }
  .media-item > div:first-child { text-align: center; }
}

/* ============================================================
   ===== MJS Reconciliation =====
   The page markup (*/index.html + main.js) emits a newer set of
   class names than the original rules above styled.  This section
   ADDS the missing rules, modeled on the MJS reference site's
   equivalent classes (mjs/assets/css/main.css).  MJS hardcoded
   navy/gold/parchment values are mapped to this template's tokens:
     var(--navy*)  → var(--main*)
     var(--gold*) / rgba(184,154,90,…) → var(--accent*) / rgba(var(--accent-rgb),…)
     parchment/cream backgrounds → var(--bg) / var(--bg-alt) / var(--bg-dk)
   ============================================================ */

/* ── NAV OPEN STATE ─────────────────────────────────────────── */
/* main.js toggles `.nav-open` on .site-nav; the base mobile rule
   above uses `.open`.  Alias so the drawer actually slides in. */
.site-nav.nav-open { right: 0; }

/* ── PAGE HEADER (every page) — model: MJS .page-hero (mjs 484-509) */
.page-header {
  background: var(--hero-bg);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.page-header h1 { color: var(--hero-text); font-weight: 300; margin-bottom: 1rem; }
.page-header p {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 300; line-height: 1.65;
  color: var(--hero-text-muted); max-width: 620px; margin: 0;
}
.page-header .section-label { margin-bottom: 0.75rem; }
/* breadcrumb sits on a dark band here → use hero-mode colors */
.page-header .breadcrumb { color: var(--hero-text-dim); }
.page-header .breadcrumb a { color: var(--hero-text-muted); }
.page-header .breadcrumb a:hover { color: var(--accent-light); }
body.hero-light .page-header { background: var(--bg-alt); }
body.hero-light .page-header h1 { color: var(--main); }
body.hero-light .page-header p { color: var(--text-muted); }
body.hero-light .page-header .breadcrumb { color: var(--text-warm); }
body.hero-light .page-header .breadcrumb a { color: var(--text-muted); }
body.hero-light .page-header::after {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ── ABOUT PAGE — model: MJS .about-layout (mjs 937-1016) ──── */
.section-about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: start;
  padding: 5rem 0;
}
/* About portrait: never larger than the home hero photo (max 300px), centered in the sidebar column. */
.about-portrait-wrap { max-width: 300px; margin: 0 auto; }
.about-portrait-img { max-width: 300px; }
.about-portrait-col { position: sticky; top: 5rem; }
.about-portrait-wrap { margin-bottom: 2rem; }
.about-portrait-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.about-bio-col { min-width: 0; }
.about-bio-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text);
}
.about-bio-text p { margin-bottom: 1.25em; }
.section-rule {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 2.5rem 0;
}
.credentials-section h2,
.research-section h2 { margin-bottom: 0; }
.about-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
/* At-a-Glance sidebar card — stacked credentials-card treatment */
.about-sidebar-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
}
.about-sidebar-card h3,
.about-sidebar-card h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-warm);
  margin-bottom: 1.25rem;
}
.about-dl { margin: 0; }
.about-dl dt {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-warm);
  margin-top: 0.9rem;
}
.about-dl dt:first-child { margin-top: 0; }
.about-dl dd {
  font-size: 0.9rem;
  color: var(--main);
  margin: 0.15rem 0 0;
  line-height: 1.5;
}
.about-dl dd a { color: var(--main); text-decoration: none; }
.about-dl dd a:hover { color: var(--accent); }
.about-academic-links {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}
.about-academic-links ul { list-style: none; padding: 0; }
.about-academic-links li { margin-bottom: 0.5rem; font-size: 0.88rem; }
.about-academic-links a {
  color: var(--main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.about-academic-links a::before { content: '→'; color: var(--accent); font-size: 0.8rem; }
.about-academic-links a:hover { color: var(--accent); }

/* ── SPEAKING PAGE ──────────────────────────────────────────── */
/* Intro grid — model: MJS .about-layout proportions (mjs 937-943) */
.section-speaking-intro { padding: 5rem 0; background: var(--bg); }
.speaking-intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}
.speaking-intro-text { min-width: 0; }
.speaking-headshot img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.section-speaking-topics { padding: 5rem 0; }
/* Topics grid — model: MJS .speaking-grid + .speaking-card (mjs 1019-1061) */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.topic-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.topic-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.topic-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.topic-audience {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.topic-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}
.topic-format {
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--main);
  background: var(--bg-dk);
  border: 1px solid var(--border);
  padding: 0.25em 0.75em;
  border-radius: 2px;
  letter-spacing: 0.04em;
  margin-top: auto;
}
/* Booking CTA strip — dark band, centered — model: MJS .testimonial-section (mjs 1063-1067) */
.speaking-cta-strip {
  background: var(--hero-bg);
  padding: 5rem 0;
  text-align: center;
}
.speaking-cta-strip h2 { color: var(--hero-text); }
.speaking-cta-strip .section-label { color: var(--accent-light); }

/* ── FILTER BAR (media + books) — model: MJS .filter-btn conventions */
.books-filter-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0;
}
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.5em 1.2em;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--accent); color: var(--main); }
.filter-btn.active {
  background: var(--main);
  border-color: var(--main);
  color: #fff;
}

/* ── MEDIA PAGE — model: MJS .media-item + badges (mjs 1088-1145) */
.section-media { padding: 4rem 0; background: var(--bg); }
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.media-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.media-thumb-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-dk);
}
.media-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
  transition: transform 0.4s ease;
}
.media-card:hover .media-thumb { transform: scale(1.03); }
.media-thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: linear-gradient(145deg, var(--main-mid), var(--main-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.media-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.media-card-body .media-type-badge { align-self: flex-start; margin-bottom: 0.75rem; }
.media-show { font-size: 1.1rem; margin-bottom: 0.25rem; line-height: 1.3; }
.media-episode {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.75rem;
}
.media-desc {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}
.media-card-body .btn { align-self: flex-start; margin-top: auto; }
/* per-type badges — mjs 1123-1126 (+ press/video mapped) */
.badge-podcast   { background: #e8f4f8; color: #2a6080; }
.badge-interview { background: #e8f8e8; color: #206040; }
.badge-press     { background: var(--accent-pale); color: #7a5a20; }
.badge-video     { background: #f0e8f8; color: #5a2080; }

/* ── RESOURCES PAGE — model: MJS .resource-card (mjs 1147-1182) */
.section-resources { background: var(--bg); }
.resource-card {
  display: flex;
  flex-direction: column;
}
.resource-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.resource-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.resource-body .btn { margin-top: auto; align-self: flex-start; }

/* ── CV PAGE — model: MJS .cv sections + book-main tables ───── */
.section-cv { padding: 5rem 0; background: var(--bg-alt); }
.cv-download-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.cv-download-note { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.cv-section-heading {
  font-size: 1.4rem;
  margin-bottom: 0;
}
.cv-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.cv-table tr { border-bottom: 1px solid var(--border-light); }
.cv-table tr:last-child { border-bottom: none; }
td.cv-year {
  width: 90px;
  vertical-align: top;
  padding: 0.9rem 1rem 0.9rem 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}
td.cv-entry {
  vertical-align: top;
  padding: 0.9rem 0;
  font-size: 0.92rem;
  line-height: 1.5;
}
td.cv-entry strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--main);
  font-size: 1.02rem;
}
.cv-org { color: var(--text-muted); font-size: 0.88rem; }

/* ── CONTACT PAGE — model: MJS .contact-layout (mjs 1184-1274) */
.section-contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  padding: 5rem 0;
  align-items: start;
}
.contact-info-col { min-width: 0; }
.contact-info-col h2,
.contact-form-col h2 { font-size: 1.6rem; }
.contact-block { margin-bottom: 1.5rem; }
.contact-block h3 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-warm);
  margin-bottom: 0.3rem;
}
.contact-block p,
.contact-block address {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}
.contact-block a { color: var(--main); text-decoration: none; }
.contact-block a:hover { color: var(--accent); }
.contact-links { list-style: none; padding: 0; }
.contact-links li { margin-bottom: 0.5rem; font-size: 0.92rem; }
.contact-links a {
  color: var(--main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.contact-links a::before { content: '→'; color: var(--accent); font-size: 0.8rem; }
.contact-links a:hover { color: var(--accent); }
.contact-speaking-note {
  background: var(--accent-pale);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}
.contact-speaking-note strong {
  display: block;
  font-family: var(--font-display);
  color: var(--main);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.contact-speaking-note p { font-size: 0.9rem; color: var(--text); margin: 0; }
.contact-speaking-note a { color: var(--main); }
.contact-form-col { min-width: 0; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ── CONTACT FORM — speaking checklist + consent + success/note ── */
.speaking-checklist {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}
.speaking-checklist li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.4rem;
}
.speaking-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
.contact-response-note {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.form-consent input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--main);
}
.form-consent label {
  display: inline;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
  cursor: pointer;
}
.form-note {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0.25rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm, 6px);
  background: var(--bg-alt);
  color: var(--text-warm);
  border: 1px solid var(--border);
}
.form-note.is-error {
  color: #8a2b2b;
  background: rgba(138,43,43,0.06);
  border-color: rgba(138,43,43,0.2);
}
.contact-form-success {
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm, 6px);
}
.contact-form-success h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--main);
  margin: 0 0 0.75rem;
}
.contact-form-success p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

/* ── CV TEASER STRIP (home) ─────────────────────────────────── */
.cv-teaser-strip {
  padding: 5rem clamp(1rem,4vw,2.5rem);
  background: var(--bg-alt);
  text-align: center;
}

/* ── HERO PORTRAIT PLACEHOLDER — port: MJS 437-481 ──────────── */
.hero-portrait-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, var(--main-mid) 0%, rgba(var(--main-mid-rgb),0.6) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-align: center;
}
.hero-portrait-placeholder .ph-icon {
  width: 64px;
  height: 64px;
  border: 1.5px solid rgba(var(--accent-rgb),0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── RECONCILIATION — RESPONSIVE (collapse to single column) ── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait-col { position: static; }
  .speaking-intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .about-cta-row .btn { width: 100%; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .cv-download-bar { flex-direction: column; align-items: flex-start; }
  td.cv-year { width: 72px; }
}

/* ============================================================
   ===== CV PAGE PRESENTATION — model: MJS /cv/ (hand-built) =====
   Rebuilds the data-driven CV page to match the MJS reference:
   stat meta row in the hero, a sticky two-column TOC layout,
   section count pills, refined entry rows, and a print sheet.
   All MJS navy/gold hardcodes map to --main*/--accent* tokens.
   ============================================================ */

/* ── CV HERO STAT META ROW — model: MJS .cv-hero-meta (mjs 158-175) ── */
.cv-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  margin-top: 1.75rem;
}
.cv-hero-meta .stat-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.cv-hero-meta .stat-item::before {
  content: '◆';
  color: var(--accent);
  font-size: 0.5rem;
  transform: translateY(-0.15em);
}
/* Reflow the shared .stat-item so the number + label read inline in the meta row */
.cv-hero-meta .stat-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-light);
  line-height: 1;
}
.cv-hero-meta .stat-label {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-text-dim);
}
.cv-hero-download { margin-top: 2rem; }
body.hero-light .cv-hero-meta .stat-num { color: var(--accent); }
body.hero-light .cv-hero-meta .stat-label { color: var(--text-warm); }
body.hero-light .cv-hero-meta .stat-item::before { color: var(--accent); }

/* ── TWO-COLUMN LAYOUT + STICKY TOC — model: MJS .cv-layout / .cv-toc (mjs 200-244) ── */
.cv-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}
.cv-toc {
  position: sticky;
  top: 96px;
}
.cv-toc-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid rgba(var(--accent-rgb),0.35);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}
.cv-toc ul { list-style: none; padding: 0; margin: 0; }
.cv-toc li { border-bottom: 1px solid rgba(var(--accent-rgb),0.12); }
.cv-toc a {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.45rem 0;
  transition: color var(--transition), padding-left var(--transition);
}
.cv-toc a:hover { color: var(--accent); padding-left: 0.3rem; }
.cv-main { min-width: 0; }

/* ── SECTION HEADING + COUNT PILL — model: MJS .cv-section-title / .section-count (mjs 253-275) ── */
.cv-section-heading {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.section-count {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(var(--accent-rgb),0.1);
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* ── PRINT — model: MJS @media print (mjs 573-578) ── */
@media print {
  .site-header, .site-footer, .cv-toc, .cv-page-header .cv-hero-meta,
  .cv-page-header .cv-hero-download, .cv-page-header .breadcrumb,
  .cv-download-bar, .hamburger { display: none !important; }
  body { background: #fff !important; }
  .cv-page-header { background: #fff !important; padding: 0 0 1rem !important; }
  .cv-page-header::after { display: none !important; }
  .cv-page-header h1 { color: var(--main) !important; }
  .cv-page-header p { color: var(--text) !important; }
  .section-cv { padding: 0 !important; background: #fff !important; }
  .cv-layout { display: block !important; }
  .cv-main { width: 100%; }
  .cv-section { page-break-inside: avoid; break-inside: avoid; }
  .section-count { color: #000 !important; background: none !important; }
}

/* ── CV RESPONSIVE — TOC hides, entry columns tighten (model: MJS mjs 543-553) ── */
@media (max-width: 900px) {
  .cv-layout { grid-template-columns: 1fr; gap: 0; }
  .cv-toc { display: none; }
}
