/* 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; }
/* The day's name needs room. Weekday titles are long — "Monday of the
 * Nineteenth Week in Ordinary Time" — and on an equal share it wrapped to
 * four lines against an empty middle, making the band twice as tall as it
 * needed to be and pushing everything below it off the fold. Basis, not a
 * fixed width, so it still collapses on a phone. */
.ml-sunday__body { flex: 1 1 24rem; min-width: 16rem; }
.ml-sunday__cite { font-family: var(--font-serif); font-style: italic; color: var(--navy); font-size: var(--text-lg); }
/* The passage, pushed to the far end of the stepper row — the emptiest part
 * of the band. A link, not a label: it searches every teaching that touches
 * the passage, which is more than the day itself can show. */
/* The way onward on a bare day. A link inside the sentence rather than a
 * card: a dark block is a lot of weight to spend saying we have nothing, and
 * as a card it looked like the content cards beside it while behaving like
 * the date stepper — content to look at, versus a jump to another day. */
.ml-sunday__onward { color: var(--navy); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ml-sunday__onward:hover { color: var(--crimson); text-decoration: underline; }
.ml-sunday__refs { order: 10; margin-left: auto; display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.ml-sunday__ref {
  display: inline-flex; align-items: baseline; gap: var(--sp-2);
  background: var(--card); border: 1px solid var(--gold-soft);
  border-radius: 999px; padding: .35rem .9rem;
  color: var(--navy); text-decoration: none; white-space: nowrap;
}
.ml-sunday__ref:hover { border-color: var(--gold); box-shadow: var(--shadow); color: var(--crimson); }
/* Names what the citation is. Small caps so it labels without competing —
 * the passage is the thing you click, this only says which reading it is. */
.ml-sunday__ref-label {
  font-family: var(--font-sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep);
}
.ml-sunday__ref-cite { font-family: var(--font-serif); font-style: italic; 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. */
/* Sized to its contents rather than claiming half the band: with flex:1 the
 * cards were pinned to the far right with a gulf beside them. */
.ml-sunday__picks { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: flex-start; flex: 1 1 34rem; 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);
  /* Share the row rather than each claiming its content width. Sized by
   * content they came to ~230px each, and two plus a gap lost to the column
   * by a few pixels — so every card wrapped onto its own line and three
   * voices became three rows. */
  /* 18rem, not less: below that a third card squeezes into the row and
   * every title wraps. Better to wrap the heading on the left — a heading
   * over two lines still reads as a heading, a button over two lines makes
   * the row it sits in uneven. */
  flex: 1 1 18rem; min-width: 0; max-width: 24rem;
}
.ml-sunday__pick-title { overflow-wrap: anywhere; }
.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; }
/* No reservation needed: the date is to the RIGHT of the arrows now, so it
 * can be any length without moving them. */
.ml-sunday__top /* Two arrows, adjacent, first in the row. No middle track any more: the
 * label that lived there changed width and drifted the right arrow, and
 * nothing sits left of these now, so their position is fixed outright. */
.ml-sunday__nav {
  display: flex; align-items: center; gap: var(--sp-2);
  flex: none; order: 0; margin-left: 0;
}
/* Nothing in here may move when you step from one day to the next.
 *
 * Two things made it move. align-items:center re-centred a short column, so a
 * one-line feast name pushed the line above it DOWN rather than simply ending
 * sooner — the text jumped every time the title changed length. And nothing
 * reserved height, so the band itself grew and shrank, shoving the whole page
 * below it up and down as you stepped through days.
 *
 * Top-aligned, and tall enough for the two-line titles that most weekdays
 * have ("Saturday of the Nineteenth Week in Ordinary Time"). A one-line day
 * leaves space below rather than dragging everything up. */
.ml-sunday__main { display: flex; align-items: flex-start; gap: var(--sp-5); flex-wrap: wrap; min-height: 7.5rem; }

/* Step between days — look ahead to prepare, or back to catch up. The
 * position is fixed by being first in the row; see the rule above. */
/* Reads as part of the stepper rather than a word after the date. Same pill
 * family as the arrows, quieter: the arrows are the thing you press
 * repeatedly, this is the one-off way back. Constant width either way, so
 * stepping on and off today never shifts the date beside it. */
.ml-sunday__here {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 4.5rem; height: 2.25rem; padding: 0 var(--sp-3);
  border-radius: 999px; font-family: var(--font-sans); font-size: var(--text-sm);
  font-weight: 600; white-space: nowrap;
  /* Reads as a disabled button on today, not as a stray word: it keeps the
   * border and shape of the pill it becomes when you step away, just muted.
   * A control that vanishes into text is one nobody knows is there. */
  border: 1px solid var(--line); background: transparent;
  color: var(--ink-soft); cursor: default;
}
/* Solid gold when it is live, matching the arrows beside it — the three of
 * them read as one control rather than two buttons and an outline. Inverts on
 * hover rather than deepening, so the change is unmistakable. */
.ml-sunday__here--link {
  background: var(--gold); border-color: var(--gold); color: #fff; text-decoration: none;
  /* The base rule sets cursor:default for the disabled state, which is right
   * there and wrong here — without this the live button showed an arrow, so
   * the one you can press looked less pressable than an ordinary link. */
  cursor: pointer;
}
.ml-sunday__here--link:hover { background: var(--card); color: var(--gold-deep); }
.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; } }
