:root { --bg-cream: #F9F7F2; --surface-white: #FFFFFF; --navy-primary: #1B2E4B; --navy-dark: #122036; --gold-accent: #C59326; --gold-light: #DFB44C; --text-main: #2A3441; --text-muted: #5C6878; --border-subtle: #E4DFD3; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background-color: var(--bg-cream); color: var(--text-main); line-height: 1.75; font-size: 16.5px; -webkit-font-smoothing: antialiased; }
.utility-ribbon { background-color: var(--navy-dark); color: #FFFFFF; padding: 0.75rem 1.5rem; border-bottom: 2px solid var(--gold-accent); position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 14px rgba(18, 32, 54, 0.18); }
.utility-inner { max-width: 920px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.audio-controls { display: flex; align-items: center; justify-content: center; gap: 0.85rem; width: 100%; max-width: 540px; }
.btn-play { background: linear-gradient(135deg, var(--gold-light), var(--gold-accent)); color: var(--navy-dark); border: none; border-radius: 999px; padding: 0.5rem 1.15rem; font-weight: 700; font-size: 0.88rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
audio#sermonAudio { height: 34px; max-width: 340px; width: 100%; border-radius: 6px; }
.page-container { max-width: 840px; margin: 0 auto; padding: 3rem 1.75rem 5rem; }
.study-header { margin-bottom: 2.25rem; }
.kicker { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; color: var(--gold-accent); margin-bottom: 0.55rem; }
.study-title { font-family: Georgia, "Times New Roman", Times, serif; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.18; color: var(--navy-primary); margin-bottom: 0.65rem; }
.service-date-banner { font-size: 1.05rem; font-weight: 700; color: var(--navy-primary); margin-bottom: 0.75rem; letter-spacing: 0.01em; }
.service-date-banner a { color: inherit; text-decoration: none; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; transition: color 0.18s ease; }
.service-date-banner a .service-date-text { border-bottom: 1.5px solid var(--gold-accent); padding-bottom: 1px; transition: color 0.18s ease, border-color 0.18s ease; }
.service-date-banner a:hover .service-date-text { color: #9C7116; border-bottom-color: var(--navy-primary); }
.yt-watch-btn { color: #B8860B; background-color: rgba(197, 147, 38, 0.12); border: 1px solid rgba(197, 147, 38, 0.35); border-radius: 999px; padding: 0.18rem 0.7rem; font-size: 0.84rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
.service-date-banner a:hover .yt-watch-btn { background-color: var(--navy-primary); color: var(--gold-light); border-color: var(--navy-primary); }
.meta-line { font-size: 0.94rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 0.95rem; }
.meta-line strong { color: var(--navy-primary); font-weight: 700; }
.meta-sep { margin: 0 0.55rem; color: #CBD5E1; }
details.share-dropdown { display: inline-block; margin-top: 0.25rem; }
details.share-dropdown summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.45rem; background-color: var(--surface-white); color: var(--navy-primary); border: 1px solid var(--border-subtle); border-left: 3px solid var(--gold-accent); border-radius: 999px; padding: 0.38rem 0.95rem; font-size: 0.86rem; font-weight: 700; box-shadow: 0 2px 6px rgba(27, 46, 75, 0.05); user-select: none; transition: background-color 0.18s ease, border-color 0.18s ease; }
details.share-dropdown summary::-webkit-details-marker { display: none; }
details.share-dropdown summary:hover { background-color: #F4F1E8; border-color: var(--gold-accent); }
details.share-dropdown[open] summary { background-color: var(--navy-primary); color: #FFFFFF; border-color: var(--navy-primary); }
.share-panel { margin-top: 0.65rem; background-color: var(--surface-white); border: 1px solid var(--border-subtle); border-top: 3px solid var(--gold-accent); border-radius: 8px; padding: 0.85rem 1rem; box-shadow: 0 8px 20px rgba(27, 46, 75, 0.08); display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.share-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-right: 0.25rem; }
.btn-share-item { text-decoration: none; font-size: 0.84rem; font-weight: 700; color: var(--navy-primary); background-color: #F4F1E8; border: 1px solid #DFD9C8; border-radius: 6px; padding: 0.42rem 0.85rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
.btn-share-item:hover { background-color: var(--navy-primary); color: var(--gold-light); border-color: var(--navy-primary); }
.hero-figure { margin: 2rem 0 2.25rem; }
.hero-svg-frame { width: 100%; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 25px rgba(27, 46, 75, 0.12); background: var(--navy-primary); }
.hero-svg-frame svg, .infographic-card svg { display: block; width: 100%; height: auto; }
.hero-caption { text-align: center; font-style: italic; font-size: 0.9rem; color: var(--text-muted); margin-top: 0.75rem; }
.core-message-box { background-color: var(--navy-primary); color: #F8FAFC; border-left: 5px solid var(--gold-light); border-radius: 8px; padding: 1.45rem 1.75rem; margin: 2rem 0 2.75rem; box-shadow: 0 6px 18px rgba(27, 46, 75, 0.1); font-size: 1.03rem; line-height: 1.68; }
.core-message-box strong { color: var(--gold-light); font-weight: 700; }
.study-section { margin-bottom: 3rem; }
h2 { font-family: Georgia, "Times New Roman", Times, serif; font-size: 1.58rem; font-weight: 700; color: var(--navy-primary); padding-bottom: 0.55rem; border-bottom: 2px solid var(--gold-accent); margin-top: 2.65rem; margin-bottom: 1.35rem; }
.study-section h2:first-child { margin-top: 0; }
h3 { font-family: Georgia, "Times New Roman", Times, serif; font-size: 1.24rem; font-weight: 700; color: var(--navy-primary); margin: 1.85rem 0 0.75rem; }
p { margin-bottom: 1.15rem; }
ul, ol { margin: 0.75rem 0 1.45rem 1.5rem; }
li { margin-bottom: 0.65rem; }
li strong { color: var(--navy-primary); }
.scripture-card { background-color: var(--surface-white); border-left: 4px solid var(--gold-accent); border-radius: 0 8px 8px 0; padding: 1.5rem 1.85rem; margin: 1.25rem 0 2rem; box-shadow: 0 3px 12px rgba(27, 46, 75, 0.05); font-family: Georgia, "Times New Roman", Times, serif; font-size: 1.04rem; color: #1E293B; }
.scripture-card p:last-of-type { margin-bottom: 0.75rem; }
.scripture-cite { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-primary); margin-bottom: 0 !important; }
.infographic-card { background: var(--surface-white); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 1.15rem; margin: 2rem 0; box-shadow: 0 6px 20px rgba(27, 46, 75, 0.06); page-break-inside: avoid; break-inside: avoid; }
.infographic-card figcaption { text-align: center; font-size: 0.88rem; font-style: italic; color: var(--text-muted); margin-top: 0.85rem; padding: 0 0.5rem; }
.application-box { background: #F2EFE7; border: 1px solid #DFD9C8; border-left: 4px solid var(--gold-accent); border-radius: 8px; padding: 1.4rem 1.75rem; margin: 1.75rem 0; page-break-inside: avoid; break-inside: avoid; }
.application-box strong { color: var(--navy-primary); }
.theology-callout { background: #F4F7FB; border: 1px solid #D6E0EC; border-left: 4px solid var(--navy-primary); border-radius: 8px; padding: 1.4rem 1.75rem; margin: 1.75rem 0; page-break-inside: avoid; break-inside: avoid; }
.theology-callout strong { color: var(--navy-primary); }
.heritage-callout { background: #FCFBF7; border: 1px solid #E5D7B5; border-top: 3px solid var(--gold-accent); border-radius: 8px; padding: 1.35rem 1.65rem; margin: 1.75rem 0; box-shadow: 0 2px 8px rgba(27, 46, 75, 0.04); page-break-inside: avoid; break-inside: avoid; }
.heritage-callout strong { color: var(--navy-primary); }
.study-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.65rem 0 2.15rem; background: var(--surface-white); border: 1px solid var(--border-subtle); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 14px rgba(27, 46, 75, 0.05); font-size: 0.94rem; page-break-inside: avoid; break-inside: avoid; }
.study-table th { background-color: var(--navy-primary); color: #FFFFFF; font-weight: 700; text-align: left; padding: 0.9rem 1.05rem; font-size: 0.92rem; letter-spacing: 0.01em; border-bottom: 2px solid var(--gold-accent); }
.study-table td { padding: 1rem 1.05rem; border-bottom: 1px solid var(--border-subtle); vertical-align: top; line-height: 1.6; }
.study-table tbody tr:nth-child(even) td { background-color: #FAF9F6; }
.study-table tbody tr:last-child td { border-bottom: none; }
.study-table td:first-child { font-weight: 700; color: var(--navy-primary); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin: 1.35rem 0 2.15rem; page-break-inside: avoid; break-inside: avoid; }
@media (max-width: 720px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar-card { background: var(--surface-white); border: 1px solid var(--border-subtle); border-top: 4px solid var(--gold-accent); border-radius: 8px; padding: 1.25rem 1.3rem; box-shadow: 0 3px 10px rgba(27, 46, 75, 0.04); }
.pillar-card h4 { font-family: Georgia, "Times New Roman", Times, serif; font-size: 1.06rem; font-weight: 700; color: var(--navy-primary); margin-bottom: 0.6rem; }
.pillar-card p { font-size: 0.94rem; line-height: 1.62; margin-bottom: 0; color: var(--text-main); }
.reflection-card { background: var(--surface-white); border: 1px solid var(--border-subtle); border-left: 5px solid var(--navy-primary); border-radius: 8px; padding: 1.65rem 1.95rem; margin: 1.4rem 0 1.85rem; box-shadow: 0 4px 14px rgba(27, 46, 75, 0.05); }
.reflection-card ol { margin: 0 0 0 1.35rem; }
.reflection-card li { margin-bottom: 0.95rem; line-height: 1.68; }
.reflection-card li:last-child { margin-bottom: 0; }
.reflection-card li strong { color: var(--navy-primary); }
.prayer-focus-box { background: #F2EDE0; border: 1px solid #DFD3B8; border-radius: 8px; padding: 1.45rem 1.75rem; margin: 1.6rem 0 2.25rem; color: var(--text-main); font-size: 0.98rem; line-height: 1.72; page-break-inside: avoid; break-inside: avoid; }
.prayer-focus-box p { margin-bottom: 0; font-style: italic; }
.prayer-focus-box strong { color: var(--navy-primary); font-style: italic; font-weight: 700; }
.transcript-wrapper { margin-top: 3.5rem; border-top: 2px solid var(--border-subtle); padding-top: 2rem; }
details.transcript-dropdown { background: var(--surface-white); border: 1px solid var(--border-subtle); border-radius: 10px; box-shadow: 0 4px 14px rgba(27, 46, 75, 0.05); overflow: hidden; }
details.transcript-dropdown summary { padding: 1.15rem 1.75rem; font-weight: 700; font-size: 1rem; color: var(--navy-primary); cursor: pointer; background: #F4F1E8; list-style: none; display: flex; align-items: center; justify-content: space-between; user-select: none; }
details.transcript-dropdown summary::-webkit-details-marker { display: none; }
details.transcript-dropdown summary::after { content: "+ Expand Full Text"; font-size: 0.82rem; font-weight: 700; color: var(--gold-accent); text-transform: uppercase; letter-spacing: 0.05em; }
details.transcript-dropdown[open] summary::after { content: "- Collapse Text"; }
details.transcript-dropdown[open] summary { border-bottom: 1px solid var(--border-subtle); }
.transcript-text { padding: 2.25rem 2.5rem; color: #334155; font-size: 0.98rem; line-height: 1.85; max-height: 650px; overflow-y: auto; }
.transcript-text p { margin-bottom: 1.25rem; }
.transcript-text p:last-child { margin-bottom: 0; }
.study-archive-footer { margin-top: 3rem; background-color: var(--surface-white); border: 1px solid var(--border-subtle); border-top: 3px solid var(--navy-primary); border-radius: 8px; padding: 1.25rem 1.5rem; font-size: 0.86rem; color: var(--text-muted); line-height: 1.65; }
.study-archive-footer-title { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--navy-primary); margin-bottom: 0.45rem; }
.study-archive-footer strong { color: var(--navy-primary); }
@media print {
  .utility-ribbon, details.share-dropdown { display: none !important; }
  body { background-color: #F9F7F2 !important; }
  .page-container { max-width: 100%; padding: 1.25rem 1.5rem; }
  .transcript-text { max-height: none !important; overflow: visible !important; }
}
