/* Library home ("The Cenacle Library") — ported from the design system's
 * library.html preview. Streaming-style hub: hero, rows, series, people. */
.ml-hero { position: relative; overflow: hidden; background: var(--navy-deep); color: #fff; }
.ml-hero__art { position: absolute; inset: 0; }
.ml-hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; display: block; opacity: .85; }
.ml-hero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-deep) 8%, rgba(13,31,58,.7) 42%, rgba(13,31,58,.15) 100%); }
.ml-hero__inner { position: relative; z-index: 2; max-width: 82rem; margin: 0 auto; padding: var(--sp-8) var(--sp-6); }
.ml-hero__col { max-width: 34rem; }
.ml-tag { display: inline-block; font-family: var(--font-sans); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-deep); background: var(--gold); padding: .3rem .8rem; border-radius: 999px; margin-bottom: var(--sp-4); }
.ml-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; margin: 0 0 var(--sp-3); letter-spacing: -.01em; }
.ml-hero h1 em { font-style: italic; font-weight: 400; color: var(--gold); }
.ml-hero__lead { font-size: var(--text-lg); color: #e9eef5; margin: 0 0 var(--sp-5); }
.ml-hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.ml-hero__meta { display: flex; gap: var(--sp-4); margin-top: var(--sp-5); font-size: var(--text-sm); color: #c7d2e2; }
.ml-hero__meta b { color: var(--gold-soft); font-weight: 600; }
.ml-btn-ghost { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-sans); font-weight: 600; font-size: var(--text-base); padding: .75rem 1.5rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.45); color: #fff; text-decoration: none; }
.ml-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

.ml-row { max-width: 82rem; margin: 0 auto; padding: var(--sp-7) var(--sp-6) 0; }
.ml-row:last-of-type { padding-bottom: var(--sp-7); }
.ml-row__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.ml-row__head h2 { font-size: var(--text-2xl); margin: 0; }
.ml-row__head h2 em { font-style: italic; color: var(--navy); }
.ml-row__all { font-size: var(--text-sm); font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; }
.ml-rule-eyebrow { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.ml-rule-eyebrow span { width: 1.6rem; height: 3px; background: var(--gold); border-radius: 2px; }
.ml-rule-eyebrow p { margin: 0; font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }

/* This Sunday band */
.ml-sunday { background: var(--mist); border-top: 1px solid var(--gold-soft); border-bottom: 1px solid var(--gold-soft); }
.ml-sunday__inner { max-width: 82rem; margin: 0 auto; padding: var(--sp-6); display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.ml-sunday__body { flex: 1; min-width: 16rem; }
.ml-sunday__cite { font-family: var(--font-serif); font-style: italic; color: var(--navy); font-size: var(--text-lg); }

/* In-place search on the home page — results land here, not on another page. */
.ml-find__form { margin-bottom: var(--sp-5); }
.ml-find__form .h2h-input { max-width: 26rem; }
.ml-find__results { min-height: 4rem; }

/* What each voice recorded for this Sunday's gospel. */
.ml-sunday__picks { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: stretch; flex: 1 1 auto; min-width: 0; }
/* Dark buttons on the light band. Each wears its program's own deep colour —
 * Fr. Jim's violet, Fr. Michael's blue, or the season's liturgical dark — so
 * you can tell whose voice it is before reading the label. */
.ml-sunday__pick {
  display: flex; flex-direction: column; gap: 2px; text-decoration: none;
  background: var(--program-hero-bg, var(--navy-deep));
  border: 1px solid transparent;
  border-radius: var(--radius); padding: var(--sp-2) var(--sp-4); min-width: 0;
}
.ml-sunday__pick:hover { box-shadow: var(--shadow-lg); border-color: var(--gold); }
.ml-sunday__pick-program { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); }
.ml-sunday__pick-title { font-family: var(--font-serif); font-weight: 700; color: #fff; }

/* The band with the stepper stacks: a top line the arrows live on, then the
 * gospel and the recordings below. Nothing below the top line can move the
 * arrows — not a title that wraps to three lines, not a third recording. */
.ml-sunday--nav .ml-sunday__inner { flex-direction: column; align-items: stretch; gap: var(--sp-3); }
.ml-sunday__top { display: flex; align-items: center; gap: var(--sp-4); }
.ml-sunday__top .ml-rule-eyebrow { margin: 0; }
/* The arrows sit beside the date, so the date reserves room for the longest
 * one it can print ("September 13, 2026") — otherwise a shorter month would
 * pull the arrows left as you step through the year. */
.ml-sunday__top .ml-rule-eyebrow p { min-width: 13rem; }
.ml-sunday__top .ml-sunday__nav { margin-left: 0; }
.ml-sunday__main { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }

/* Step between Sundays — look ahead to prepare, or back to catch up.
 * The rail is a fixed-size grid and "Today" keeps its space when it doesn't
 * apply, so the arrows sit in exactly the same place on every Sunday —
 * clicking through several never moves the target. */
.ml-sunday__nav {
  display: grid; grid-template-columns: 2.25rem 4rem 2.25rem;
  align-items: center; justify-items: center; gap: var(--sp-2);
  flex: none; order: 9; margin-left: auto;
}
.ml-sunday__today.is-hidden { visibility: hidden; pointer-events: none; }
.ml-sunday__step {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; border: 1px solid var(--gold); background: var(--gold);
  color: #fff; text-decoration: none; font-size: 1.4rem; line-height: 1;
}
.ml-sunday__step:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.ml-sunday__today { color: var(--gold-deep); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ml-sunday__today:hover { color: var(--crimson); text-decoration: underline; }

/* Happening now — the current things, side by side */
.ml-spotlight { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.ml-spot {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; border-top: 4px solid var(--navy);
}
.ml-spot--running { border-top-color: var(--crimson); }
.ml-spot--weekly { border-top-color: var(--gold); }
.ml-spot--flagship { border-top-color: var(--navy); }
.ml-spot__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: var(--sp-3) var(--sp-4) 0; color: var(--ink-soft);
}
.ml-spot--running .ml-spot__label { color: var(--crimson); }
.ml-spot--weekly .ml-spot__label { color: var(--gold-deep); }
.ml-spot--flagship .ml-spot__label { color: var(--navy); }
.ml-spot__thumb { position: relative; padding-top: 52%; margin: var(--sp-3) var(--sp-4) 0; border-radius: var(--radius); overflow: hidden; background: #1c1512; }
.ml-spot__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ml-spot__body { padding: var(--sp-3) var(--sp-4); flex: 1; }
.ml-spot__title { font-size: var(--text-lg); margin: 0 0 var(--sp-2); line-height: 1.25; }
.ml-spot__title a { text-decoration: none; color: var(--ink); }
.ml-spot__title a:hover { color: var(--navy); }
.ml-spot__blurb { font-size: var(--text-sm); color: var(--ink-soft); margin: 0 0 var(--sp-3); }
.ml-spot__next { font-size: var(--text-sm); margin: 0; }
.ml-spot__next-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.ml-spot__cta { padding: 0 var(--sp-4) var(--sp-4); display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }

@media (max-width: 900px) { .ml-spotlight { grid-template-columns: 1fr; } }

/* Continue */
.ml-continue { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.ml-cont { display: flex; gap: var(--sp-4); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit; }
.ml-cont__thumb { position: relative; flex: none; width: 44%; background: #1c1512; }
.ml-cont__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ml-cont__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.35); }
.ml-cont__bar i { display: block; height: 100%; background: var(--crimson); }
.ml-cont__body { padding: var(--sp-4) var(--sp-4) var(--sp-4) 0; display: flex; flex-direction: column; justify-content: center; }
.ml-cont__series { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.ml-cont__t { font-family: var(--font-serif); font-weight: 700; font-size: var(--text-base); margin: var(--sp-1) 0 var(--sp-2); }
.ml-cont__meta { font-size: var(--text-sm); color: var(--ink-soft); }

/* Series */
.ml-series { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.ml-serie { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow 140ms, transform 140ms; text-decoration: none; color: inherit; display: block; }
.ml-serie:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.ml-serie__thumb { position: relative; padding-top: 60%; background: #1c1512; }
.ml-serie__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ml-serie__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,31,58,0) 45%, rgba(13,31,58,.78) 100%); }
.ml-serie__count { position: absolute; z-index: 2; left: var(--sp-4); bottom: var(--sp-3); color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ml-serie__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.ml-serie__eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.ml-serie__t { font-family: var(--font-serif); font-weight: 700; font-size: var(--text-lg); margin: var(--sp-1) 0 var(--sp-2); }
.ml-serie__d { font-size: var(--text-sm); color: var(--ink-soft); margin: 0; }

/* People */
.ml-people { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.ml-person { text-align: center; text-decoration: none; color: inherit; }
.ml-person__frame { border-radius: 50%; padding: 5px; background: linear-gradient(150deg, var(--gold) 0%, var(--gold-soft) 100%); box-shadow: var(--shadow); width: 8.5rem; height: 8.5rem; margin: 0 auto; }
.ml-person__frame > div { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--mist); display: grid; place-items: center; }
.ml-person__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ml-person__initials { font-family: var(--font-serif); font-weight: 700; font-size: var(--text-2xl); color: var(--gold-deep); }
.ml-person__name { font-family: var(--font-serif); font-weight: 700; margin-top: var(--sp-3); }
.ml-person__role { font-size: var(--text-sm); color: var(--ink-soft); }

/* CTA */
.ml-cta { position: relative; background: var(--navy); color: #fff; text-align: center; overflow: hidden; margin-top: var(--sp-7); }
.ml-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 50% -20%, rgba(181,143,77,.35), transparent 55%); }
.ml-cta__inner { position: relative; z-index: 2; max-width: 44rem; margin: 0 auto; padding: var(--sp-8) var(--sp-6); }
.ml-cta h2 { color: #fff; font-size: var(--text-3xl); margin: 0 0 var(--sp-3); }
.ml-cta h2 em { font-style: italic; color: var(--gold-soft); }
.ml-cta p { color: #dbe4f0; font-size: var(--text-lg); margin: 0 0 var(--sp-5); }
.ml-cta .h2h-btn--primary { background: #fff; color: var(--crimson); }
.ml-cta .h2h-btn--primary:hover { background: var(--gold-soft); color: var(--crimson-deep); }

@media (max-width: 820px) { .ml-continue, .ml-series, .ml-people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ml-continue, .ml-series, .ml-people { grid-template-columns: 1fr; } }
