/*------------------------------------------------------------------
[Sermon library]

Split out of site.css's old "1h. Sermon library" section: styling for the
sermon library, year/series archives, sermon detail page, and the custom
audio player. Only SermonsController's views (Index, Sermon,
SermonSeries, SermonYear, and the shared _SermonResourceItem partial) use
these selectors, so this stylesheet is linked only on those pages
(_Layout.cshtml) instead of shipping on every page.

Relies on the design tokens (:root) and shared component styles (cards,
buttons) defined in site.css, which always loads first.
-------------------------------------------------------------------*/

.sermon-library-section {
    background-color: var(--color-surface);
}

.sermon-detail-breadcrumb {
    margin-bottom: var(--space-5);
    color: var(--color-muted);
    font-size: var(--font-size-sm);
}

.sermon-detail-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.sermon-detail-breadcrumb li + li::before {
    content: "/";
    margin-right: var(--space-2);
    color: var(--color-border-strong);
}

.sermon-detail-layout {
    display: grid;
    grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr);
    gap: var(--space-7);
    align-items: start;
}

.sermon-detail-artwork {
    margin: 0;
}

.sermon-detail-artwork img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.sermon-detail-artwork figcaption {
    margin-top: var(--space-2);
    color: var(--color-muted);
    font-size: var(--font-size-sm);
    text-align: center;
}

.sermon-detail-facts {
    display: grid;
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--color-border);
}

.sermon-detail-facts > div {
    display: grid;
    grid-template-columns: minmax(6rem, 8rem) minmax(0, 1fr);
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border);
}

.sermon-detail-facts dt {
    color: var(--color-muted);
    font-weight: 700;
}

.sermon-detail-facts dd {
    min-width: 0;
    margin: 0;
    color: var(--color-ink);
}

.sermon-detail-listen {
    margin-top: var(--space-6);
}

.sermon-detail-listen h2,
.sermon-detail-transcript h2,
.sermon-detail-context h2 {
    margin-bottom: var(--space-3);
    font-size: var(--font-size-h3);
}

.sermon-detail-audio {
    display: block;
    width: 100%;
}

.sermon-detail-audio-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    margin: var(--space-3) 0 0;
    font-size: var(--font-size-sm);
}

/* Reviewed transcript (WI-0013). The disclosure shell is in the page; its body is fetched only
   when opened. The marker is drawn here because a flex summary drops the browser's own. */
/* /sermons/…#transcript targets this section. html's global scroll-padding clears the navbar
   until the narrowest layout wraps its logo and toggler onto two rows; that case gets only the
   additional space it needs below. */
.sermon-detail-transcript {
    margin-top: var(--space-6);
}

@media (width <= 360px) {
    .sermon-detail-transcript {
        scroll-margin-top: var(--space-6);
    }
}

.sermon-transcript {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.sermon-transcript > summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    /* Comfortably past the 44px minimum touch target at every text size. */
    min-height: 44px;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    color: var(--color-ink);
    cursor: pointer;
    list-style: none;
}

.sermon-transcript > summary::-webkit-details-marker {
    display: none;
}

.sermon-transcript > summary::before {
    content: "";
    flex: none;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent var(--color-primary-text);
}

.sermon-transcript[open] > summary::before {
    transform: rotate(90deg);
}

.sermon-transcript > summary:hover,
.sermon-transcript > summary:focus-visible {
    color: var(--link-hover-color);
}

/* The site rings its own interactive elements rather than leaning on the UA's thinner default;
   the summary is one, so it gets the same treatment as links and the seek slider. */
.sermon-transcript > summary:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
    box-shadow: var(--focus-ring-shadow);
}

.sermon-transcript-invitation {
    font-weight: 700;
}

.sermon-transcript-length {
    color: var(--color-muted);
    font-size: var(--font-size-sm);
}

.sermon-transcript-body {
    /* The measure is the text column, so the inset from the disclosure's border is added to it
       rather than taken out of it. */
    max-width: calc(var(--measure-prose) + var(--space-4) * 2);
    margin-inline: auto;
    padding: 0 var(--space-4) var(--space-4);
    color: var(--color-body);
    /* Set once on the container so no paragraph rule has to repeat it. */
    line-height: var(--line-height-base);
    /* An unbroken token (a URL read aloud, a run-on) must not push the column past 320px. */
    overflow-wrap: break-word;
}

.sermon-transcript-body p {
    margin: 0 0 var(--space-4);
}

.sermon-transcript-body > :last-child {
    margin-bottom: 0;
}

.sermon-transcript-provenance {
    color: var(--color-muted);
    font-size: var(--font-size-sm);
}

.sermon-transcript-status {
    color: var(--color-muted);
}

.sermon-transcript-section-heading {
    margin: var(--space-6) 0 var(--space-3);
    color: var(--color-ink);
    font-family: var(--font-display);
    font-size: var(--font-size-h4);
}

.sermon-transcript-paragraph {
    position: relative;
}

.sermon-transcript-play {
    position: absolute;
    top: -0.15rem;
    left: 0.125rem;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--color-primary-text);
    cursor: pointer;
    opacity: 0;
    transform: translateX(-100%);
}

.sermon-transcript-play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    border-style: solid;
    border-width: 0.3rem 0 0.3rem 0.48rem;
    border-color: transparent transparent transparent currentColor;
    transform: translate(-50%, -50%);
}

.sermon-transcript-paragraph:hover .sermon-transcript-play,
.sermon-transcript-play:hover,
.sermon-transcript-play:focus-visible {
    opacity: 0.7;
}

.sermon-transcript-play:hover,
.sermon-transcript-play:focus-visible {
    color: var(--link-hover-color);
    opacity: 1;
}

.sermon-transcript-play:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
    box-shadow: var(--focus-ring-shadow);
}

@media (hover: none) {
    .sermon-transcript-play {
        opacity: 0.55;
    }
}

/* Sentence highlight. Every sentence is a span whether or not it is ever highlighted, so
   the base rule must change nothing: no padding (which would shift the following words each
   time the highlight moved) and no color, only a tint behind the text the reader is hearing.

   The tint alone is a hue cue with almost no luminance behind it — 1.06:1 against the light
   surface, and yellow cannot beat 1.46:1 there at any opacity — so it is never the only cue.
   The underline carries the highlight for a reader with tritanopia (yellow against white is
   precisely that confusion axis), on a greyscale or glary display, and in Windows High Contrast,
   which strips author backgrounds entirely. text-decoration rather than an inset box-shadow
   because forced-colors keeps the first and discards the second; neither affects layout, and the
   rule stays off the base span so High Contrast underlines the active sentence alone. */
.sermon-transcript-phrase.is-active {
    background-color: rgba(var(--color-accent-rgb), 0.16);
    border-radius: 2px;
    /* A sentence that wraps gets the tint on each line rather than one box around the block. */
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    /* Drawn from the body ink, so it reads as an emphasis mark rather than a link, inverts with
       the theme for free, and clears 3:1 against both the tint and the surface in both themes. */
    text-decoration: underline;
    text-decoration-color: rgba(var(--color-body-rgb), 0.55);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
}

/* Accent stays at its brand value in both themes, so the same tint reads weaker against the
   dark surface than against paper; it needs a little more to stay legible as a highlight. */
:root[data-theme="dark"] .sermon-transcript-phrase.is-active {
    background-color: rgba(var(--color-accent-rgb), 0.22);
}

@media (prefers-reduced-motion: no-preference) {
    .sermon-transcript > summary::before {
        transition: transform var(--transition-fast);
    }

    .sermon-transcript-phrase {
        transition: background-color var(--transition-fast);
    }

    .sermon-transcript-play {
        transition: color var(--transition-fast), opacity var(--transition-fast);
    }
}

.sermon-detail-context {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-7);
}

.sermon-detail-context > section {
    padding: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.sermon-detail-context > section > :last-child {
    margin-bottom: 0;
}

.sermon-detail-context-title {
    margin-bottom: var(--space-2);
    color: var(--color-ink);
    font-family: var(--font-display);
    font-size: var(--font-size-h4);
    font-weight: 500;
}

/* Archive pages (/sermons/{year} and /sermons/series/{id}) reuse the library's sermon list;
   this pill nav hops between the years — or series — that actually have catalogued sermons. */
.sermon-year-nav,
.sermon-series-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    margin-bottom: var(--space-5);
    font-size: var(--font-size-sm);
}

.sermon-year-nav ul,
.sermon-series-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.sermon-year-nav a,
.sermon-year-nav span,
.sermon-series-nav a,
.sermon-series-nav span {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    text-decoration: none;
}

.sermon-year-nav a:hover,
.sermon-year-nav a:focus-visible,
.sermon-series-nav a:hover,
.sermon-series-nav a:focus-visible {
    border-color: var(--color-border-strong);
}

.sermon-year-nav span[aria-current="page"],
.sermon-series-nav span[aria-current="page"] {
    border-color: var(--color-border-strong);
    background: var(--color-surface);
    font-weight: 700;
}

.sermon-year-library-link {
    margin-top: var(--space-5);
}

/* Series archive intro: the series artwork alongside its summary, above the sermon list. */
.sermon-series-intro {
    display: flex;
    gap: var(--space-5);
    align-items: center;
    margin-bottom: var(--space-5);
}

.sermon-series-intro > picture {
    flex: 0 0 120px;
}

.sermon-series-intro-art {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.sermon-series-intro-summary {
    margin: 0;
    color: var(--color-body);
}

.sermon-detail-pager {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.sermon-detail-pager-link {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    text-decoration: none;
}

.sermon-detail-pager-link:hover,
.sermon-detail-pager-link:focus-visible {
    border-color: var(--color-border-strong);
}

/* An older-only pager keeps the left slot; a newer-only pager sits in the right slot. */
.sermon-detail-pager-previous {
    grid-column: 1;
}

.sermon-detail-pager-next {
    grid-column: 2;
    text-align: right;
}

.sermon-detail-pager-label {
    color: var(--color-muted);
    font-size: var(--font-size-sm);
    font-weight: 700;
}

.sermon-detail-pager-title {
    color: var(--color-ink);
    font-weight: 500;
}

.sermon-detail-pager-link time {
    color: var(--color-muted);
    font-size: var(--font-size-sm);
}

@media (width < 768px) {
    .sermon-detail-layout {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .sermon-detail-artwork {
        width: min(100%, 22rem);
        margin-inline: auto;
    }

    .sermon-detail-context {
        grid-template-columns: 1fr;
    }
}

@media (width < 576px) {
    .sermon-detail-facts > div {
        grid-template-columns: 1fr;
        gap: var(--space-1);
    }

    .sermon-detail-pager {
        grid-template-columns: 1fr;
    }

    .sermon-detail-pager-previous,
    .sermon-detail-pager-next {
        grid-column: auto;
        text-align: left;
    }
}

.sermon-library-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
    align-items: start;
}

.sermon-library-main > p {
    margin-left: 0;
    margin-right: 0;
}

.sermon-latest-section {
    margin-top: var(--space-6);
}

.sermon-latest-section h2 {
    margin: 0 0 var(--space-4);
}

.sermon-series-heading {
    margin: 0 0 var(--space-4);
}

.sermon-series-index-section,
.sermon-year-index-section {
    margin-top: var(--space-6);
}

.sermon-series-index {
    display: grid;
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.sermon-podcast-link {
    margin: var(--space-6) 0 0;
}

.sermon-podcast-link a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 12px var(--space-5);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: var(--font-size-ui);
    font-weight: 700;
    text-decoration: none;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.sermon-podcast-link a::after {
    margin-left: var(--space-3);
    content: "\2192";
}

.sermon-podcast-link a:hover,
.sermon-podcast-link a:focus {
    border-color: var(--color-secondary);
    background: var(--color-secondary);
    color: var(--color-white);
    text-decoration: none;
}

.sermon-series-banner {
    position: relative;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--space-5);
    align-items: center;
    padding: var(--space-4);
    padding-right: calc(var(--space-4) + 2rem);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: inherit;
    list-style: none;
    text-decoration: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.sermon-series-banner::after {
    position: absolute;
    top: 50%;
    right: var(--space-4);
    width: 1.5rem;
    height: 1.5rem;
    transform: translateY(-50%);
    color: var(--color-primary-text);
    content: "\2192";
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.sermon-series-banner:hover,
.sermon-series-banner:focus-visible {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-sm);
}

.sermon-series-banner-art {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.sermon-series-banner-copy {
    display: block;
    min-width: 0;
}

.sermon-series-banner-title {
    display: block;
    margin: 0 0 var(--space-2);
    color: var(--color-ink);
    font-family: var(--font-display);
    font-size: var(--font-size-h3);
    font-weight: 500;
    line-height: var(--line-height-heading);
}

.sermon-series-banner-eyebrow {
    display: block;
    margin: 0 0 var(--space-2);
    color: var(--color-secondary-text);
    font-family: var(--font-brand);
    font-size: var(--font-size-sm);
    font-weight: 700;
    letter-spacing: var(--tracking-caps-label);
    text-transform: uppercase;
}

.sermon-series-banner-summary {
    display: block;
    margin: 0 0 var(--space-2);
    color: var(--color-body);
}

.sermon-series-banner-count {
    display: block;
    margin: 0;
    color: var(--color-muted);
    font-size: var(--font-size-sm);
    font-weight: 700;
}

.sermon-list {
    display: grid;
    gap: var(--space-2);
    margin: var(--space-4) 0 0;
    padding: 0;
    list-style: none;
}

.sermon-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: var(--space-3);
    align-items: center;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.sermon-item[hidden] {
    display: none;
}

.sermon-item:hover,
.sermon-item:focus-within {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-sm);
}

.sermon-item-art {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.sermon-item-body {
    min-width: 0;
}

/* Titles wrap at every width. A single-line ellipsis here silently swallowed long titles
   in the 576-767px band, where .container caps at 540px while the title font still scales
   with viewport width (WI-0002). */
/* Scoped under .sermon-item so the rule out-specifies compound heading rules like
   `.content-section h2` — year-archive pages render these titles as <h2>. */
.sermon-item .sermon-item-title {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: var(--font-size-h4);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

/* Mirrors .sermon-series-banner-eyebrow so the library's two "this belongs to a series"
   labels read as one style. Kept off the series archive, where it would repeat the page
   title on every card. */
.sermon-item-series {
    display: block;
    margin: 0 0 var(--space-1);
    color: var(--color-secondary-text);
    font-family: var(--font-brand);
    font-size: var(--font-size-sm);
    font-weight: 700;
    letter-spacing: var(--tracking-caps-label);
    line-height: 1.2;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.sermon-item-title a {
    text-decoration: none;
}

.sermon-item-title a:hover,
.sermon-item-title a:focus {
    text-decoration: underline;
}

.sermon-scripture {
    color: var(--color-primary-text);
    font-weight: 700;
}

.sermon-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 var(--space-2);
    color: var(--color-muted);
    font-size: var(--font-size-sm);
}

.sermon-item-meta > * + *::before {
    content: "/";
    margin-right: var(--space-2);
    color: var(--color-border-strong);
    font-weight: 400;
}

.sermon-audio {
    display: block;
    width: 100%;
    height: 34px;
    margin-top: 6px;
}

/* On-demand player: a custom transport bar (play/pause, ±15s skip, seek slider, time) wrapped
   around a headless <audio>. The native controls are sealed, so skip can only live *inside* the
   player by drawing the controls ourselves. Built by initializeSermonPlayers. */
.sermon-player {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: 6px;
    padding: 4px 10px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: 22px;
}

.sermon-player .sermon-audio {
    display: none;
}

.sermon-play-toggle {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--color-white);
    background: var(--color-primary);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.sermon-play-toggle:hover,
.sermon-play-toggle:focus-visible {
    background: var(--link-hover-color);
}

.sermon-play-toggle svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.sermon-skip-button {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 40px;
    height: 36px;
    padding: 0 4px;
    color: var(--color-primary-text);
    background: none;
    border: 0;
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.sermon-skip-button:hover,
.sermon-skip-button:focus-visible {
    color: var(--link-hover-color);
}

.sermon-seek {
    flex: 1 1 auto;
    min-width: 0;
    height: 16px;
    margin: 0;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.sermon-seek:disabled {
    cursor: default;
    opacity: 0.6;
}

.sermon-seek::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right,
        var(--color-primary-text) var(--sermon-seek-pct, 0%),
        var(--color-border-strong) var(--sermon-seek-pct, 0%));
}

.sermon-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    margin-top: -4px;
    border: 0;
    border-radius: 50%;
    background: var(--color-primary-text);
    cursor: pointer;
}

.sermon-seek::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: var(--color-border-strong);
}

.sermon-seek::-moz-range-progress {
    height: 4px;
    border-radius: 2px;
    background: var(--color-primary-text);
}

.sermon-seek::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: var(--color-primary-text);
    cursor: pointer;
}

.sermon-seek:focus-visible {
    outline: 2px solid var(--focus-ring-color);
    outline-offset: 3px;
    border-radius: 2px;
}

.sermon-time {
    flex: none;
    color: var(--color-muted);
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* On narrow screens a single row can't fit the time readout without crushing the seek
   slider, so wrap the player onto two rows: transport buttons + readout on top, the
   slider full-width below. The readout stays visible and the slider gains room. */
@media (width <= 480px) {
    .sermon-player {
        flex-wrap: wrap;
        row-gap: 2px;
    }

    .sermon-time {
        margin-left: auto;
    }

    .sermon-seek {
        order: 1;
        flex-basis: 100%;
    }
}

/* Shown in place of the player when the audio can't be played (load/decode error) or the
   custom controls fail to build. Routes the visitor to SoundCloud. */
.sermon-player-error {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-top: 6px;
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    color: var(--color-muted);
}

.sermon-player-error a {
    font-weight: 600;
}

/* Quiet, on-brand play affordance shown until the visitor presses play; sermon-library.js
   then swaps in a real <audio> with the same .sermon-audio class. Styled as a text link (no
   border/fill) to match the site's links, and keeps 100+ media elements from being
   instantiated on load. */
.sermon-play-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    margin-top: var(--space-2);
    padding: 0;
    color: var(--color-primary-text);
    background: none;
    border: 0;
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.sermon-play-button:hover,
.sermon-play-button:focus-visible {
    color: var(--link-hover-color);
    text-decoration: underline;
    text-decoration-color: var(--color-highlight-underline);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

.sermon-play-button::before {
    content: "";
    flex: none;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 7px;
    border-color: transparent transparent transparent currentColor;
}

.sermon-author {
    color: var(--color-muted);
}

@media (width < 992px) {
    .sermon-library-layout {
        grid-template-columns: 1fr;
    }
}

@media (width < 576px) {
    .sermon-series-banner {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: var(--space-3);
        padding: var(--space-3);
        padding-right: calc(var(--space-3) + 1.75rem);
    }

    .sermon-series-banner::after {
        right: var(--space-3);
    }

    .sermon-series-banner-art {
        width: 64px;
        height: 64px;
    }

    .sermon-series-intro-art {
        width: 88px;
        height: 88px;
    }

    .sermon-series-intro {
        gap: var(--space-4);
    }

    .sermon-series-intro > picture {
        flex-basis: 88px;
    }
}
