/*
Theme Name: Coastline
Theme URI: https://coastlinebaptistchurch.net/
Author: Coastline Baptist Church
Description: A bespoke, accessible theme for Coastline Baptist Church, its sermon library, hymns and historical archive. Designed for the custom Coastline Core plugin without external dependencies.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coastline
Tags: custom-logo, custom-menu, featured-images, accessibility-ready, translation-ready
*/

/* Foundations */
:root {
    --cbc-blue: #003f87;
    --cbc-primary: var(--cbc-blue);
    --cbc-accent: #4d71a3;
    --cbc-navy: #15334d;
    --cbc-ink: #24394c;
    --cbc-muted: #51667b;
    --cbc-line: #d4dfeb;
    --cbc-surface: #edf2f7;
    --cbc-soft: #f6f9fc;
    --cbc-radius: 16px;
    --cbc-serif: Georgia, "Times New Roman", serif;
    --cbc-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--cbc-ink); background: #fff; font-family: var(--cbc-sans); font-size: 18px; line-height: 1.7; -webkit-text-size-adjust: 100%; }
body, button, input, select, textarea { font-family: var(--cbc-sans); }
button, input, select, textarea { font-size: inherit; }
button, input[type="submit"] { cursor: pointer; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
figure { margin: 0; }
a { color: var(--cbc-blue); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a, button { touch-action: manipulation; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 18px; color: var(--cbc-navy); font-family: var(--cbc-serif); font-weight: 500; line-height: 1.18; letter-spacing: -.025em; overflow-wrap: break-word; }
h1 { font-size: clamp(38px, 4.4vw, 54px); }
h2 { font-size: clamp(32px, 3.1vw, 40px); }
h3 { font-size: 28px; }
h4 { font-size: 24px; }
p { margin: 0 0 22px; }
ul, ol { margin: 0 0 24px; padding-left: 1.5em; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid #3773b3; outline-offset: 4px; border-radius: 3px; }
[hidden] { display: none !important; }
.icon { width: 21px; height: 21px; vertical-align: middle; }
.container { width: min(1224px, calc(100% - 80px)); margin-inline: auto; }
.container.narrow { max-width: 900px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 1000; top: 12px; left: 16px; padding: 12px 20px; transform: translateY(-180%); background: var(--cbc-blue); color: #fff; border-radius: 8px; font-size: 16px; text-decoration: none; }
.skip-link:focus { transform: none; }
#main-content:focus { outline: none; }
.section { padding-block: 76px; }
.section-tinted { background: var(--cbc-soft); border-block: 1px solid #e5ecf3; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; color: var(--cbc-blue); font-size: 13px; line-height: 1.5; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow-line { width: 28px; height: 2px; background: var(--cbc-accent); }
.button-row, .card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.button, .cbc-listen { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 50px; padding: 12px 21px; border: 1px solid var(--cbc-blue); border-radius: 8px; background: var(--cbc-blue); color: #fff; font-size: 16px; line-height: 1.4; font-weight: 600; text-align: center; text-decoration: none; transition: background .16s ease, box-shadow .16s ease; }
.button:hover, .cbc-listen:hover { background: #0c376b; border-color: #0c376b; color: #fff; text-decoration: none; box-shadow: 0 3px 10px #003f8717; }
.button .icon, .cbc-listen .icon { width: 19px; height: 19px; }
.button-outline { color: var(--cbc-blue); background: transparent; border-color: #a6bbd1; }
.button-outline:hover { color: var(--cbc-blue); background: #eaf1f8; border-color: var(--cbc-blue); }
.button-small { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.button-quiet { color: var(--cbc-blue); background: transparent; border-color: transparent; }
.button-quiet:hover { color: var(--cbc-blue); background: var(--cbc-surface); border-color: transparent; }
.text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--cbc-blue); font-size: 16px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 19px; height: 19px; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 1px solid #d9e4ef; border-radius: 13px; background: #edf3f9; color: var(--cbc-blue); }
.card-icon .icon { width: 25px; height: 25px; }

/* Header and keyboard-friendly navigation */
.site-header { position: relative; z-index: 30; background: #fff; border-bottom: 1px solid #e3eaf2; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 110px; padding-block: 5px; }
.site-brand { flex: 0 0 auto; }
.brand-link, .custom-logo-link { display: block; }
.brand-logo, .custom-logo { width: 218px; height: auto; max-height: 100px; object-fit: contain; object-position: left center; }
.site-navigation { display: flex; align-items: center; gap: 22px; }
.nav-menu { display: flex; align-items: center; gap: 21px; list-style: none; margin: 0; padding: 0; }
.nav-menu li { position: relative; margin: 0; }
.nav-menu > li { display: flex; align-items: center; }
.nav-menu a { display: block; color: var(--cbc-ink); font-size: 15px; font-weight: 550; line-height: 1.4; text-decoration: none; }
.nav-menu > li > a { padding-block: 16px; }
.nav-menu a:hover, .nav-menu .current-menu-item > a, .nav-menu .current-menu-ancestor > a { color: var(--cbc-blue); }
.nav-menu .current-menu-item > a { text-decoration: underline; text-underline-offset: 7px; }
.nav-menu > .nav-contact > a { padding: 12px 19px; min-height: 46px; border-radius: 7px; background: var(--cbc-blue); color: #fff; }
.nav-menu > .nav-contact > a:hover { background: #0c376b; }
.nav-menu .sub-menu { display: none; position: absolute; z-index: 35; top: 100%; left: -14px; min-width: 220px; list-style: none; padding: 9px; margin: 0; border: 1px solid var(--cbc-line); border-radius: 10px; background: #fff; box-shadow: 0 12px 28px #18334c14; }
.nav-menu .sub-menu a { padding: 13px 14px; min-height: 46px; border-radius: 5px; white-space: normal; }
.nav-menu .sub-menu a:hover { background: var(--cbc-soft); }
body:not(.js) .nav-menu li:hover > .sub-menu, body:not(.js) .nav-menu li:focus-within > .sub-menu, .nav-menu .submenu-open > .sub-menu { display: block; }
.nav-menu .sub-menu li.menu-item-has-children { display: flex; flex-wrap: wrap; }
.nav-menu .sub-menu li.menu-item-has-children > a { flex: 1; }
.nav-menu .sub-menu .sub-menu { left: 100%; top: -9px; }
.submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: 1px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--cbc-muted); }
.submenu-toggle .icon { width: 14px; height: 14px; transition: transform .16s ease; }
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.submenu-toggle:hover { color: var(--cbc-blue); background: var(--cbc-soft); }
.nav-search { display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; color: var(--cbc-blue); border: 1px solid var(--cbc-line); border-radius: 50%; text-decoration: none; }
.nav-search:hover { background: var(--cbc-soft); }
.mobile-search-label { display: none; }
.menu-toggle { display: none; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 14px; background: #fff; color: var(--cbc-blue); border: 1px solid var(--cbc-line); border-radius: 8px; font-size: 15px; font-weight: 600; }
.menu-close-icon { display: none; }

/* A concise welcome, followed by one featured message */
.home-hero { padding-block: 66px 48px; background: linear-gradient(145deg, #f8fafc 0%, #fff 65%); }
.hero-grid { display: grid; grid-template-columns: 1.06fr 1fr; align-items: center; gap: 54px; }
.hero-copy { min-width: 0; }
.hero-copy h1 { font-size: clamp(42px, 4.25vw, 58px); line-height: 1.12; letter-spacing: -.035em; margin-bottom: 23px; }
.hero-copy h1 span { color: var(--cbc-blue); }
.hero-intro { color: var(--cbc-muted); font-size: 18px; line-height: 1.7; max-width: 49ch; margin-bottom: 27px; }
.meeting-note { display: flex; gap: 11px; align-items: flex-start; max-width: 49ch; margin-top: 26px; }
.meeting-note > .icon { width: 19px; height: 19px; margin-top: 4px; color: var(--cbc-accent); }
.meeting-note p { margin: 0; color: var(--cbc-muted); font-size: 14px; line-height: 1.7; }
.meeting-note a { white-space: nowrap; font-weight: 600; }
.hero-photo { min-width: 0; padding-top: 8px; }
.hero-photo-frame { overflow: hidden; border-radius: 18px 18px 18px 50px; background: var(--cbc-surface); box-shadow: 0 18px 40px #18334c14; }
.hero-photo-frame img { width: 100%; height: auto; aspect-ratio: 1642 / 1088; object-fit: cover; }
.hero-photo figcaption { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-left: 8px; color: var(--cbc-muted); font-size: 14px; line-height: 1.5; }
.photo-rule { width: 28px; height: 1px; background: #89a2bd; flex-shrink: 0; }
.featured-section { padding-block: 0 64px; }
.featured-message.record-card { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 34px; padding: 31px 36px; background: #fff; border-color: #c8d8e8; border-radius: var(--cbc-radius); box-shadow: 0 5px 20px #14355706; }
.featured-message-label { border-right: 1px solid var(--cbc-line); padding-right: 32px; }
.featured-message-label .card-icon { margin-bottom: 17px; }
.featured-message-label .eyebrow { margin-bottom: 7px; font-size: 12px; }
.featured-message-label > p:last-child { max-width: 17ch; margin: 0; font-size: 16px; line-height: 1.55; color: var(--cbc-muted); }
.featured-message-copy { min-width: 0; align-self: center; }
.featured-message-copy h2 { margin-bottom: 13px; font-size: 28px; line-height: 1.25; letter-spacing: -.02em; }
.featured-message-copy h2 a { color: var(--cbc-navy); text-decoration: none; }
.featured-message-copy h2 a:hover { color: var(--cbc-blue); text-decoration: underline; }
.featured-message .series-label { margin-bottom: 8px; }
.record-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-bottom: 19px; color: var(--cbc-muted); font-size: 14px; line-height: 1.6; }
.featured-message-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 25px; }
.featured-message-actions .text-link { font-size: 15px; }

/* Home library gateways and church story */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; margin-bottom: 32px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2 { margin: 0; }
.section-heading > p { max-width: 40ch; margin: 0 0 3px; color: var(--cbc-muted); font-size: 17px; line-height: 1.7; }
.library-gateways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.library-gateway { display: flex; align-items: flex-start; flex-direction: column; padding: 31px 34px; border: 1px solid var(--cbc-line); border-radius: var(--cbc-radius); background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
.library-gateway:hover { border-color: #b1c5dc; box-shadow: 0 7px 23px #18334c08; }
.gateway-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; margin-bottom: 24px; }
.collection-count { color: var(--cbc-muted); font-size: 14px; line-height: 1.4; padding: 7px 11px; border-radius: 6px; background: var(--cbc-soft); }
.library-gateway h3 { margin-bottom: 13px; font-size: 32px; }
.library-gateway > p { max-width: 47ch; color: var(--cbc-muted); font-size: 17px; line-height: 1.7; margin-bottom: 16px; }
.library-gateway > .text-link { margin-top: auto; }
.story-grid { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 64px; }
.story-photo { min-width: 0; }
.story-photo a { display: block; border-radius: 14px; overflow: hidden; background: var(--cbc-surface); }
.story-photo img { width: 100%; height: auto; }
.story-photo figcaption { margin-top: 13px; color: var(--cbc-muted); font-size: 14px; line-height: 1.6; }
.story-copy { min-width: 0; }
.story-copy h2 { font-size: 37px; line-height: 1.2; }
.story-copy > p:not(.eyebrow) { max-width: 45ch; color: var(--cbc-muted); font-size: 17px; }
.story-copy .button-row { gap: 15px 23px; }
.story-gallery-link { margin-top: 23px; font-size: 15px; }
.story-gallery-link > .icon:first-child { color: var(--cbc-accent); }
.contact-band { padding-block: 44px; background: var(--cbc-surface); border-block: 1px solid #d9e4ef; }
.contact-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.contact-band .eyebrow { margin-bottom: 10px; }
.contact-band h2 { font-size: 38px; margin-bottom: 12px; }
.contact-band p:not(.eyebrow) { max-width: 64ch; margin: 0; color: var(--cbc-muted); font-size: 16px; }
.contact-band .button { flex: 0 0 auto; }
.history-section { padding-block: 32px 42px; background: #fff; }
.historical-notices { border: 1px solid var(--cbc-line); border-radius: 12px; scroll-margin-top: 24px; }
.historical-notices > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; cursor: pointer; padding: 22px 27px; }
.historical-notices > summary::-webkit-details-marker { display: none; }
.history-summary-copy { display: flex; flex-direction: column; gap: 3px; }
.history-summary-copy > span:last-child { color: var(--cbc-muted); font-size: 15px; }
.history-heading { color: var(--cbc-navy); font-size: 18px; font-weight: 600; line-height: 1.5; }
.historical-notices > summary > .icon { transition: transform .16s ease; color: var(--cbc-blue); }
.historical-notices[open] > summary > .icon { transform: rotate(90deg); }
.historical-notices[open] > summary { border-bottom: 1px solid var(--cbc-line); }
.historical-notices-body { padding: 30px; max-width: 970px; margin-inline: auto; }
.archive-context { color: var(--cbc-muted); background: var(--cbc-soft); border-left: 3px solid #90acc9; padding: 15px 18px; font-size: 15px; line-height: 1.7; }

/* Archive headings, filters, cards and pagination */
.page-masthead { padding-block: 25px 44px; background: var(--cbc-soft); border-bottom: 1px solid #e2eaf3; }
.breadcrumbs { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; font-size: 14px; line-height: 1.7; color: var(--cbc-muted); }
.breadcrumbs a { color: var(--cbc-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cbc-blue); text-decoration: underline; }
.breadcrumbs > span[aria-current] { overflow-wrap: anywhere; }
.page-masthead .eyebrow { margin-bottom: 12px; }
.page-masthead h1 { max-width: 26ch; margin-bottom: 18px; }
.masthead-intro { max-width: 65ch; margin: 0; color: var(--cbc-muted); font-size: 18px; line-height: 1.7; }
.archive-body { padding-top: 34px; }
.filter-disclosure { padding: 0; margin-bottom: 24px; border: 1px solid var(--cbc-line); border-radius: 12px; background: var(--cbc-soft); }
.filter-disclosure > summary { display: none; }
.library-filters { display: grid; gap: 18px; align-items: end; padding: 24px; margin: 0; }
.sermon-filters { grid-template-columns: 1.6fr 1fr 1fr .7fr auto; }
.simple-filters { grid-template-columns: minmax(0, 1fr) 190px auto; }
.post-type-archive-cbc_resource .simple-filters { grid-template-columns: minmax(0, 1fr) auto; }
.filter-field { min-width: 0; }
.filter-field label { display: block; color: var(--cbc-ink); font-size: 14px; font-weight: 600; margin-bottom: 7px; line-height: 1.5; }
.filter-field input, .filter-field select, .site-search-form input { display: block; width: 100%; min-height: 49px; margin: 0; padding: 11px 13px; border: 1px solid #bacbdc; border-radius: 7px; background: #fff; color: var(--cbc-ink); font-size: 16px; line-height: 1.5; }
.filter-field select { padding-right: 8px; }
.filter-field input::placeholder, .site-search-form input::placeholder { color: #63778c; opacity: 1; }
.input-icon { position: relative; min-width: 0; }
.input-icon > .icon { position: absolute; top: 15px; left: 13px; width: 19px; height: 19px; color: var(--cbc-muted); pointer-events: none; }
.input-icon > input { padding-left: 41px; }
.filter-submit { min-height: 49px; }
.filter-reset { display: inline-flex; align-items: center; min-height: 44px; grid-column: 1/-1; justify-self: start; font-size: 15px; }
.filter-count { padding: 3px 8px; border-radius: 5px; background: #e2edf8; color: var(--cbc-blue); font-size: 13px; }
.alphabet-index { display: flex; flex-wrap: wrap; gap: 5px; margin-block: 5px 25px; }
.alphabet-index a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 10px; color: var(--cbc-muted); border: 1px solid var(--cbc-line); border-radius: 6px; background: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.alphabet-index a.active, .alphabet-index a:hover { color: #fff; border-color: var(--cbc-blue); background: var(--cbc-blue); }
.results-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; color: var(--cbc-muted); font-size: 15px; line-height: 1.6; margin-bottom: 22px; }
.results-summary p { margin: 0; }
.results-summary strong { color: var(--cbc-ink); }
.results-summary > span { font-size: 14px; }
.record-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.record-card { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 27px; border: 1px solid var(--cbc-line); border-radius: var(--cbc-radius); background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
.record-card:hover { border-color: #b6c9dc; box-shadow: 0 6px 22px #18334c09; }
.record-card.is-playing { border-color: var(--cbc-blue); background: #f5f9ff; box-shadow: 0 0 0 1px var(--cbc-blue); }
.record-card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 23px; color: var(--cbc-muted); font-size: 14px; line-height: 1.5; }
.record-type { display: inline-flex; align-items: center; gap: 8px; color: var(--cbc-blue); font-size: 14px; font-weight: 600; }
.record-type .icon { width: 19px; height: 19px; }
.hymn-number { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 5px; background: var(--cbc-soft); color: var(--cbc-muted); font-size: 14px; }
.series-label { margin: 0 0 10px; color: var(--cbc-blue); font-size: 14px; font-weight: 600; line-height: 1.55; }
.record-title { margin-bottom: 15px; font-size: 25px; line-height: 1.28; letter-spacing: -.018em; }
.record-title a { color: var(--cbc-navy); text-decoration: none; }
.record-title a:hover { color: var(--cbc-blue); text-decoration: underline; }
.record-grid .record-title a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.speaker-name { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; color: var(--cbc-muted); font-size: 14px; line-height: 1.6; }
.speaker-name .icon { width: 16px; height: 16px; }
.record-excerpt { color: var(--cbc-muted); font-size: 16px; line-height: 1.7; margin-bottom: 22px; }
.record-card-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 15px; margin-top: auto; padding-top: 22px; border-top: 1px solid #e5ecf3; }
.record-listen { min-width: 0; }
.record-listen .cbc-listen { min-height: 44px; padding: 10px 15px; font-size: 15px; }
.record-details { font-size: 14px; }
.record-details .icon { width: 16px; height: 16px; }
.hymn-card .record-title { font-size: 25px; }
.availability-note, .cbc-media-state { display: inline-block; max-width: 100%; color: var(--cbc-muted); font-size: 14px; line-height: 1.6; }
.cbc-audio-actions, .cbc-audio-links { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px 15px; }
.cbc-download, .cbc-download-link { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--cbc-blue); font-size: 14px; text-decoration: none; }
.cbc-download:hover, .cbc-download-link:hover { text-decoration: underline; }
[data-cbc-audio].is-playing { background: #164d85; color: #fff; }
.pagination { margin-top: 40px; }
.pagination ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 46px; padding: 9px 14px; border: 1px solid var(--cbc-line); border-radius: 7px; color: var(--cbc-muted); font-size: 15px; line-height: 1.5; text-decoration: none; }
.pagination .current, .pagination a:hover { background: var(--cbc-blue); color: #fff; border-color: var(--cbc-blue); }
.pagination .dots { border-color: transparent; padding-inline: 4px; min-width: 20px; }
.empty-state { padding: 52px 24px; border: 1px dashed #bfcede; border-radius: var(--cbc-radius); background: var(--cbc-soft); text-align: center; }
.empty-state .card-icon { margin-bottom: 22px; }
.empty-state h2 { font-size: 32px; }
.empty-state p { max-width: 54ch; margin-inline: auto; color: var(--cbc-muted); font-size: 17px; }

/* Individual records and preserved WordPress content */
.single-masthead h1 { max-width: 31ch; font-size: clamp(34px, 3.5vw, 48px); line-height: 1.2; }
.single-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 25px; margin-top: 24px; color: var(--cbc-muted); font-size: 15px; }
.single-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.single-meta .icon { width: 18px; height: 18px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 42px; align-items: start; }
.detail-main { min-width: 0; }
.listening-panel { display: flex; align-items: flex-start; gap: 23px; padding: 30px; border: 1px solid #c9d9e9; border-radius: var(--cbc-radius); background: var(--cbc-soft); margin-bottom: 34px; }
.listening-icon { display: flex; justify-content: center; align-items: center; width: 58px; height: 58px; flex-shrink: 0; border-radius: 14px; color: var(--cbc-blue); background: #e5edf6; }
.listening-icon .icon { width: 29px; height: 29px; }
.listening-copy { min-width: 0; }
.listening-copy .eyebrow { margin-bottom: 9px; font-size: 12px; }
.listening-copy h2 { font-size: 30px; margin-bottom: 13px; }
.listening-copy > p:not(.eyebrow) { color: var(--cbc-muted); font-size: 16px; margin-bottom: 18px; }
.single-audio-action { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.detail-sidebar { display: grid; gap: 23px; }
.sidebar-card { padding: 25px; border: 1px solid var(--cbc-line); border-radius: 13px; background: #fff; }
.sidebar-card h2 { font-size: 25px; margin-bottom: 18px; }
.sidebar-card p { font-size: 15px; color: var(--cbc-muted); }
.sidebar-card p:last-child { margin-bottom: 0; }
.sidebar-card dl { margin: 0; }
.sidebar-card dt { color: var(--cbc-muted); font-size: 14px; margin-top: 17px; }
.sidebar-card dt:first-child { margin-top: 0; }
.sidebar-card dd { margin: 4px 0 0; font-size: 16px; overflow-wrap: anywhere; }
.sidebar-card .text-link { font-size: 15px; }
.sidebar-card > .card-icon { margin-bottom: 19px; }
.sidebar-blue { background: var(--cbc-soft); }
.sidebar-links { padding: 0; margin: 0; list-style: none; }
.sidebar-links li + li { border-top: 1px solid #e2eaf2; }
.sidebar-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding-block: 10px; font-size: 15px; line-height: 1.6; text-decoration: none; }
.sidebar-links a:hover { text-decoration: underline; }
.sidebar-links .icon { width: 17px; height: 17px; }
.featured-image { margin-bottom: 30px; }
.featured-image img { border-radius: 12px; }
.record-attachments { margin-top: 30px; }
.page-links { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.related-section { margin-top: 45px; padding-top: 35px; border-top: 1px solid var(--cbc-line); }
.related-section > h2 { margin-bottom: 25px; font-size: 32px; }
.related-section .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related-section .record-card { padding: 23px; }
.related-section .record-title { font-size: 23px; }
.page-layout { width: min(900px, calc(100% - 80px)); margin-inline: auto; }
.entry-content { color: var(--cbc-ink); font-size: 18px; line-height: 1.8; overflow-wrap: break-word; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 25px; }
.entry-content h2 { font-size: 34px; margin-block: 42px 20px; }
.entry-content h3 { font-size: 28px; margin-block: 34px 17px; }
.entry-content h4 { font-size: 23px; margin-block: 29px 15px; }
.entry-content li { margin-bottom: 8px; }
.entry-content a { overflow-wrap: anywhere; }
.entry-content blockquote { margin: 30px 0; padding: 23px 28px; border-left: 3px solid #789fc8; background: var(--cbc-soft); color: #36546e; font-family: var(--cbc-serif); font-size: 23px; line-height: 1.6; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content hr { border: 0; border-top: 1px solid var(--cbc-line); margin-block: 34px; }
.entry-content img { max-width: 100% !important; height: auto !important; }
.entry-content iframe, .entry-content object, .entry-content embed { max-width: 100%; }
.entry-content audio { max-width: 100%; }
.entry-content video { width: 100%; }
.entry-content table { width: 100% !important; max-width: 100%; table-layout: fixed; border-collapse: collapse; border-spacing: 0; margin-bottom: 25px; font-size: 16px; }
.entry-content th, .entry-content td { overflow-wrap: anywhere; padding: 12px; border: 1px solid var(--cbc-line); vertical-align: top; }
.entry-content th { background: var(--cbc-surface); }
.entry-content pre { max-width: 100%; overflow-x: auto; padding: 20px; background: var(--cbc-soft); font-size: 14px; }
.entry-content .cbc-gallery, .entry-content .legacy-gallery, .entry-content .coastline-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-block: 28px; }
.entry-content .cbc-gallery figure, .entry-content .legacy-gallery figure, .entry-content .coastline-gallery figure { min-width: 0; margin: 0; }
.entry-content .cbc-gallery img, .entry-content .legacy-gallery img, .entry-content .coastline-gallery img { width: 100%; height: 180px !important; object-fit: cover; border-radius: 9px; }
.entry-content figcaption, .wp-caption-text, .gallery-caption { color: var(--cbc-muted); font-size: 14px; line-height: 1.6; margin-top: 10px; }
.wp-caption { max-width: 100%; }
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: 7px 26px 20px 0; }
.alignright { float: right; margin: 7px 0 20px 26px; }
.alignwide { width: min(1140px, calc(100vw - 80px)); max-width: none; position: relative; left: 50%; transform: translateX(-50%); }
.entry-content::after { display: block; content: ""; clear: both; }
.cbc-video, .video-panel { margin-bottom: 30px; }
.cbc-video iframe, .video-panel iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; }
.cbc-attachments { padding: 24px; margin-block: 28px; border: 1px solid var(--cbc-line); border-radius: 12px; background: var(--cbc-soft); }
.cbc-attachments h2, .cbc-attachments h3 { font-size: 25px; margin-top: 0; }
.cbc-attachments ul { margin-bottom: 0; }
.cbc-attachments a { font-size: 16px; }

/* Site search and recovery */
.site-search-form { display: flex; align-items: stretch; gap: 12px; max-width: 760px; }
.site-search-form > .input-icon { flex: 1; }
.site-search-form .button { min-height: 49px; }
.search-results-list { display: grid; gap: 20px; max-width: 970px; }
.search-result-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 27px 30px; border: 1px solid var(--cbc-line); border-radius: 13px; background: #fff; }
.search-result-card > div { min-width: 0; }
.card-kicker { margin-bottom: 10px; color: var(--cbc-blue); font-size: 13px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.search-result-card h2 { font-size: 27px; margin-bottom: 11px; }
.search-result-card h2 a { color: var(--cbc-navy); text-decoration: none; }
.search-result-card h2 a:hover { color: var(--cbc-blue); text-decoration: underline; }
.search-result-card p:last-child { color: var(--cbc-muted); font-size: 16px; margin-bottom: 0; }
.search-result-arrow { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: 0 0 auto; color: var(--cbc-blue); border: 1px solid var(--cbc-line); border-radius: 50%; background: var(--cbc-soft); }
.error-section { padding-block: 90px; background: var(--cbc-soft); }
.error-section h1 { max-width: 18ch; }
.error-section p:not(.eyebrow) { max-width: 60ch; color: var(--cbc-muted); }
.error-section .button-row { margin-top: 28px; }
.empty-state .button-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--cbc-navy); color: #d5e1ed; }
.footer-main { display: grid; grid-template-columns: 1.15fr .75fr 1fr; gap: 68px; padding-top: 48px; padding-bottom: 36px; }
.footer-brand { color: #fff; font-family: var(--cbc-serif); font-size: 36px; line-height: 1; letter-spacing: -.03em; margin-bottom: 22px; }
.footer-brand span { display: block; margin-top: 10px; font-family: var(--cbc-sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; line-height: 1.5; }
.footer-about > p:not(.footer-brand) { font-size: 15px; line-height: 1.8; max-width: 33ch; }
.footer-location { display: flex; align-items: flex-start; gap: 9px; margin-top: 21px; }
.footer-location .icon { margin-top: 5px; width: 17px; height: 17px; color: #a2bbd5; }
.footer-heading { margin: 5px 0 17px; font-family: var(--cbc-sans); font-size: 13px; line-height: 1.5; color: #c1d2e4; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; padding-block: 6px; color: #edf4fa; font-size: 15px; line-height: 1.6; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.contact-links a { gap: 10px; overflow-wrap: anywhere; }
.contact-links a span { min-width: 0; }
.contact-links .icon { width: 17px; height: 17px; color: #a2bbd5; }
.footer-notice { font-size: 14px; line-height: 1.8; max-width: 37ch; margin: 20px 0 0; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #ffffff26; padding-block: 20px 24px; color: #bfd0e2; font-size: 14px; line-height: 1.6; }
.footer-bottom p { margin: 0; }
.footer-bottom-links, .footer-inline-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 40px; color: #d6e2ee; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-bottom a span { margin-left: 6px; }
.preview-banner { position: relative; z-index: 40; padding: 11px 20px; background: #e8f0fa; border-bottom: 1px solid #bfcede; color: #15334d; font-size: 14px; line-height: 1.6; text-align: center; }
.preview-banner a { font-weight: 600; }

/* Responsive layouts */
@media (max-width: 1200px) {
    .container { width: calc(100% - 64px); }
    .header-inner { gap: 20px; }
    .brand-logo, .custom-logo { width: 210px; max-height: 96px; }
    .site-navigation { gap: 15px; }
    .nav-menu { gap: 14px; }
    .nav-menu > .nav-contact > a { padding-inline: 15px; }
    .hero-grid { gap: 35px; }
    .hero-copy h1 { font-size: 48px; }
    .story-grid { gap: 40px; }
    .story-copy h2 { font-size: 34px; }
    .sermon-filters { grid-template-columns: 1.3fr 1fr 1fr .7fr; }
    .sermon-filters .filter-search { grid-column: 1/3; }
    .sermon-filters .filter-submit { grid-column: 3/5; }
    .sermon-filters .filter-reset { grid-column: 1/-1; }
    .record-grid { gap: 20px; }
    .record-card { padding: 24px; }
    .record-title { font-size: 24px; }
    .record-card-top { align-items: flex-start; flex-direction: column; gap: 8px; }
    .hymn-card .record-card-top { flex-direction: row; align-items: center; }
    .footer-main { gap: 44px; }
}
@media (max-width: 1040px) {
    .header-inner { min-height: 104px; }
    .brand-logo, .custom-logo { width: 205px; max-height: 94px; }
    .menu-toggle { display: inline-flex; }
    .site-navigation { display: block; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 104px); overflow-y: auto; background: #fff; padding: 12px 32px 22px; border-bottom: 1px solid var(--cbc-line); box-shadow: 0 14px 24px #15334d14; }
    .js .site-navigation { display: none; }
    .js .site-navigation.is-open { display: block; }
    body:not(.js) .header-inner { flex-wrap: wrap; }
    body:not(.js) .site-navigation { position: static; width: 100%; max-height: none; box-shadow: none; padding-inline: 0; }
    body:not(.js) .menu-toggle { display: none; }
    .nav-menu { display: block; }
    .nav-menu > li { display: flex; flex-wrap: wrap; border-bottom: 1px solid #e8edf4; }
    .nav-menu > li > a { flex: 1; min-height: 49px; padding: 13px 9px; font-size: 16px; }
    .nav-menu .sub-menu { position: static; flex-basis: 100%; width: 100%; min-width: 0; padding: 0 0 9px 15px; border: 0; border-radius: 0; box-shadow: none; }
    .nav-menu .sub-menu a { font-size: 15px; }
    body:not(.js) .nav-menu .sub-menu { display: block; }
    .submenu-toggle { width: 48px; height: 49px; }
    .submenu-toggle .icon { width: 17px; height: 17px; }
    .nav-menu > .nav-contact { margin-top: 12px; border: 0; }
    .nav-menu > .nav-contact > a { flex: 0 1 auto; padding-inline: 22px; }
    .nav-search { width: auto; height: auto; justify-content: flex-start; min-height: 49px; margin-top: 8px; padding: 13px 9px; gap: 10px; border: 0; border-radius: 7px; }
    .mobile-search-label { display: inline; font-size: 16px; font-weight: 600; }
    .menu-toggle[aria-expanded="true"] .menu-open-icon { display: none; }
    .menu-toggle[aria-expanded="true"] .menu-close-icon { display: block; }
    .home-hero { padding-block: 48px 38px; }
    .hero-copy h1 { font-size: 44px; }
    .hero-copy .button-row { gap: 10px; }
    .hero-copy .button { padding-inline: 17px; font-size: 15px; }
    .hero-intro { font-size: 17px; }
    .featured-message.record-card { grid-template-columns: 190px minmax(0, 1fr); gap: 26px; padding: 28px; }
    .featured-message-label { padding-right: 25px; }
    .featured-message-copy h2 { font-size: 26px; }
    .section { padding-block: 62px; }
    .section-heading { gap: 30px; }
    .section-heading > p { max-width: 33ch; }
    .library-gateway { padding: 28px; }
    .story-copy h2 { font-size: 32px; }
    .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .record-card-top { flex-direction: row; align-items: center; }
    .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .detail-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-main { gap: 30px; }
}
@media (max-width: 800px) {
    .container, .page-layout { width: calc(100% - 48px); }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-copy h1 { font-size: clamp(40px, 6.5vw, 54px); }
    .hero-intro { font-size: 18px; max-width: 60ch; }
    .hero-photo { width: 100%; max-width: 600px; padding-top: 0; }
    .hero-photo-frame { border-radius: 15px 15px 15px 36px; }
    .hero-photo-frame img { aspect-ratio: 1642 / 1088; }
    .hero-photo figcaption { margin-top: 13px; }
    .featured-section { padding-bottom: 48px; }
    .featured-message.record-card { grid-template-columns: 1fr; gap: 20px; }
    .featured-message-label { display: flex; align-items: center; gap: 13px; border-right: 0; border-bottom: 1px solid var(--cbc-line); padding: 0 0 18px; }
    .featured-message-label .card-icon { width: 42px; height: 42px; margin: 0; border-radius: 10px; }
    .featured-message-label .card-icon .icon { width: 22px; height: 22px; }
    .featured-message-label .eyebrow { margin: 0; }
    .featured-message-label > p:last-child { margin-left: auto; max-width: 19ch; font-size: 14px; }
    .featured-message-copy h2 { font-size: 28px; }
    .section-heading { display: block; margin-bottom: 27px; }
    .section-heading > p { max-width: 58ch; margin-top: 18px; }
    .library-gateways { gap: 20px; }
    .library-gateway { padding: 25px; }
    .library-gateway h3 { font-size: 29px; }
    .story-grid { grid-template-columns: 1fr; gap: 30px; }
    .story-photo { max-width: 650px; }
    .story-copy h2 { font-size: 36px; }
    .story-copy > p:not(.eyebrow) { max-width: 60ch; }
    .contact-band-inner { display: block; }
    .contact-band .button { margin-top: 25px; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 30px 44px; }
    .footer-about { grid-column: 1/-1; }
    .footer-about > p:not(.footer-brand) { max-width: 60ch; }
    .footer-location { margin-top: 15px; }
    .alignwide { width: calc(100vw - 48px); }
}
@media (max-width: 720px) {
    .section { padding-block: 48px; }
    .page-masthead { padding-block: 22px 34px; }
    .breadcrumbs { font-size: 14px; margin-bottom: 25px; }
    .page-masthead h1 { font-size: 42px; }
    .masthead-intro { font-size: 17px; }
    .archive-body { padding-top: 25px; }
    .filter-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 60px; padding: 15px 20px; list-style: none; cursor: pointer; color: var(--cbc-blue); font-size: 16px; font-weight: 600; }
    .filter-disclosure > summary::-webkit-details-marker { display: none; }
    .filter-disclosure > summary > span { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
    .filter-disclosure > summary > .icon { transition: transform .16s ease; }
    .filter-disclosure[open] > summary { border-bottom: 1px solid var(--cbc-line); }
    .filter-disclosure[open] > summary > .icon { transform: rotate(90deg); }
    .library-filters { padding: 20px; gap: 17px; }
    .sermon-filters, .simple-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sermon-filters .filter-search, .simple-filters .filter-search { grid-column: 1/-1; }
    .sermon-filters .filter-submit, .simple-filters .filter-submit { grid-column: auto; }
    .filter-reset { margin-top: -6px; }
    .post-type-archive-cbc_resource .simple-filters { grid-template-columns: 1fr auto; }
    .post-type-archive-cbc_resource .simple-filters .filter-search { grid-column: 1; }
    .results-summary { align-items: flex-start; gap: 10px; }
    .results-summary > span { max-width: 17ch; text-align: right; }
    .record-grid { grid-template-columns: 1fr; gap: 19px; }
    .record-card { padding: 26px; }
    .record-title, .hymn-card .record-title { font-size: 26px; }
    .record-grid .record-title a { -webkit-line-clamp: 5; }
    .record-card-top { margin-bottom: 20px; }
    .library-gateways { grid-template-columns: 1fr; gap: 20px; }
    .library-gateway { padding: 28px; }
    .library-gateway h3 { font-size: 31px; }
    .gateway-top { margin-bottom: 22px; }
    .historical-notices > summary { padding: 20px; }
    .historical-notices-body { padding: 22px; }
    .history-heading { font-size: 17px; }
    .history-summary-copy > span:last-child { font-size: 14px; }
    .single-masthead h1 { font-size: 36px; }
    .single-meta { gap: 12px 20px; }
    .listening-panel { padding: 25px; gap: 18px; }
    .listening-icon { width: 48px; height: 48px; }
    .listening-icon .icon { width: 25px; height: 25px; }
    .listening-copy h2 { font-size: 28px; }
    .related-section .record-grid { grid-template-columns: 1fr; }
    .entry-content .cbc-gallery, .entry-content .legacy-gallery, .entry-content .coastline-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .entry-content .cbc-gallery img, .entry-content .legacy-gallery img, .entry-content .coastline-gallery img { height: 160px !important; }
    .entry-content table { font-size: 15px; }
    .entry-content td, .entry-content th { padding: 9px; }
    .search-result-card { padding: 25px; gap: 20px; }
    .search-result-card h2 { font-size: 25px; }
    .footer-bottom { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 480px) {
    body { font-size: 17px; }
    .container, .page-layout { width: calc(100% - 36px); }
    .header-inner { min-height: 92px; gap: 12px; }
    .brand-logo, .custom-logo { width: 180px; max-height: 82px; }
    .menu-toggle { padding-inline: 11px; gap: 6px; font-size: 14px; }
    .menu-toggle .icon { width: 20px; height: 20px; }
    .site-navigation { padding-inline: 18px; max-height: calc(100dvh - 92px); }
    .home-hero { padding-block: 35px 32px; }
    .hero-copy h1 { font-size: clamp(35px, 9.2vw, 44px); line-height: 1.14; }
    .hero-copy .eyebrow { font-size: 12px; margin-bottom: 16px; }
    .hero-intro { font-size: 17px; margin-bottom: 23px; }
    .hero-copy .button-row { gap: 11px; }
    .hero-copy .button { min-height: 49px; padding-inline: 16px; font-size: 15px; }
    .meeting-note { margin-top: 23px; }
    .hero-photo figcaption { font-size: 14px; padding-left: 0; }
    .featured-message.record-card { padding: 23px; }
    .featured-message-label > p:last-child { display: none; }
    .featured-message-copy h2 { font-size: 26px; }
    .featured-message-actions { gap: 12px 20px; }
    .section-heading h2 { font-size: 33px; }
    .library-gateway { padding: 25px; }
    .library-gateway h3 { font-size: 30px; }
    .story-copy h2 { font-size: 33px; }
    .contact-band { padding-block: 35px; }
    .contact-band h2 { font-size: 33px; }
    .contact-band .eyebrow { font-size: 12px; }
    .history-section { padding-block: 25px 32px; }
    .historical-notices-body { padding: 20px 17px; }
    .page-masthead h1 { font-size: 38px; }
    .single-masthead h1 { font-size: 33px; }
    .library-filters { grid-template-columns: 1fr; }
    .sermon-filters .filter-search, .simple-filters .filter-search, .sermon-filters .filter-submit, .simple-filters .filter-submit { grid-column: 1; }
    .post-type-archive-cbc_resource .simple-filters { grid-template-columns: 1fr; }
    .filter-submit { width: 100%; }
    .alphabet-index { gap: 4px; }
    .alphabet-index a { min-width: 44px; }
    .results-summary { font-size: 14px; }
    .record-card { padding: 24px; }
    .record-card-top { gap: 8px; font-size: 14px; }
    .record-title, .hymn-card .record-title { font-size: 25px; }
    .pagination a, .pagination span { min-width: 44px; padding-inline: 11px; }
    .listening-panel { display: block; padding: 24px; }
    .listening-icon { margin-bottom: 19px; }
    .detail-sidebar { grid-template-columns: 1fr; }
    .entry-content { font-size: 17px; }
    .entry-content h2 { font-size: 30px; }
    .entry-content h3 { font-size: 26px; }
    .entry-content blockquote { font-size: 22px; padding: 20px; }
    .entry-content table { font-size: 14px; }
    .entry-content td, .entry-content th { padding: 7px; }
    .entry-content .cbc-gallery, .entry-content .legacy-gallery, .entry-content .coastline-gallery { grid-template-columns: 1fr; }
    .entry-content .cbc-gallery img, .entry-content .legacy-gallery img, .entry-content .coastline-gallery img { height: auto !important; object-fit: contain; }
    .alignwide { width: calc(100vw - 36px); }
    .alignleft, .alignright { float: none; display: block; margin: 20px auto; }
    .site-search-form { flex-direction: column; gap: 11px; }
    .search-result-card { align-items: flex-start; padding: 23px; gap: 15px; }
    .search-result-arrow { width: 44px; height: 44px; }
    .search-result-card h2 { font-size: 24px; }
    .error-section { padding-block: 60px; }
    .footer-main { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
    .footer-about { grid-column: auto; }
    .footer-about > p:not(.footer-brand) { max-width: 100%; }
    .footer-heading { margin-bottom: 12px; }
    .footer-links a { min-height: 44px; }
    .footer-bottom { display: block; font-size: 14px; }
    .footer-bottom-links { margin-top: 9px; gap: 18px; }
}
@media (max-width: 360px) {
    .container, .page-layout { width: calc(100% - 32px); }
    .brand-logo, .custom-logo { width: 170px; max-height: 78px; }
    .menu-toggle { padding-inline: 9px; }
    .hero-copy .button-row { align-items: stretch; flex-direction: column; }
    .hero-copy .button-row .button { width: 100%; }
    .record-card-top { flex-direction: column; align-items: flex-start; }
    .hymn-card .record-card-top { flex-direction: row; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
    .site-navigation, .menu-toggle, .site-footer, .cbc-player, #cbc-player, .contact-band, .detail-sidebar, .filter-disclosure, .alphabet-index, .pagination, .record-listen, .single-audio-action, .preview-banner { display: none !important; }
    .container, .container.narrow, .page-layout { width: 100%; max-width: none; }
    .section, .page-masthead, .home-hero { padding-block: 22px; }
    .detail-grid, .hero-grid { display: block; }
    .record-grid { grid-template-columns: 1fr 1fr; }
    .record-grid .record-title a { display: block; }
    body { color: #000; font-size: 11pt; }
    .record-card, .library-gateway { break-inside: avoid; box-shadow: none; }
}
