/* RLBC shared typography. Page styles own composition/colour; this file owns type.
   !important is restricted to this compatibility boundary because legacy page
   styles contain inline declarations and important breakpoint rules. */
:root {
  --type-family: 'Ubuntu', sans-serif;
  --type-display-size: 64px;
  --type-hero-size: 60px;
  --type-detail-size: 56px;
  --type-section-size: 38px;
  --type-subsection-size: 24px;
  --type-card-size: 20px;
  --type-eyebrow-size: 12px;
  --type-body-size: 16px;
  --type-lead-size: 18px;
  --type-support-size: 14px;
  --type-control-size: 14px;
  --type-nav-size: 16px;
  --type-mobile-nav-size: 20px;
  --type-heading-weight: 700;
  --type-heading-leading: 1.15;
  --type-heading-tracking: -.035em;
  --font-heading: var(--type-family);
  --font-body: var(--type-family);
  --font-serif: var(--type-family);
}
@media(max-width:1100px) {
 :root { --type-display-size:52px; --type-hero-size:48px; --type-detail-size:44px; --type-section-size:34px; --type-lead-size:17px; }
}
@media(max-width:650px) {
 :root { --type-display-size:40px; --type-hero-size:40px; --type-detail-size:38px; --type-section-size:30px; --type-subsection-size:22px; --type-card-size:18px; --type-lead-size:16px; }
}
body,body :is(button,input,select,textarea,label,p,a,h1,h2,h3,h4,h5,h6,blockquote) { font-family:var(--type-family)!important; }
body main#main-content :is(h1,h2,h3,h4,h5,h6):not(.rl-hero *) {
 font-weight:var(--type-heading-weight)!important;
 line-height:var(--type-heading-leading)!important;
 letter-spacing:var(--type-heading-tracking)!important;
}
body main#main-content :is(h1,h2,h3,h4,h5,h6):not(.rl-hero *) :is(span,em,strong) {
 font-size:inherit!important; font-weight:inherit!important; line-height:inherit!important; letter-spacing:inherit!important;
}
body main#main-content h1:not(.rl-hero *) { --type-role:hero; font-size:var(--type-hero-size)!important; }
body main#main-content h1.fh-cinema-title { --type-role:display; font-size:var(--type-display-size)!important; }
body main#main-content .ed-hero h1,
body main#main-content .entry-title { --type-role:detail; font-size:var(--type-detail-size)!important; }
body main#main-content h2 { --type-role:section; font-size:var(--type-section-size)!important; }
body main#main-content h3 { --type-role:subsection; font-size:var(--type-subsection-size)!important; line-height:1.25!important; }
body main#main-content :is(h4,h5,h6) { --type-role:card; font-size:var(--type-card-size)!important; line-height:1.25!important; }
body main#main-content :is(h3.pyv-card-title,h3.pyv-step-title),
body main#main-content :is(.hr-section,.mi-card,.sm-card,.sm-platform-card,.en-event,.about-triad-card,.fh-expect-card,.giving-method-card,.giving-impact-card,.ct-quick-card,.ed-speaker-grid,.ed-related-card) h3 {
 --type-role:card; font-size:var(--type-card-size)!important; line-height:1.25!important;
}
body main#main-content :is(.fh-path,.sm-featured-info,.ed-location,.ed-contact,.sm-player-heading) h2,
body main#main-content dialog h2 {
 --type-role:subsection; font-size:var(--type-subsection-size)!important; line-height:1.25!important;
}
body main#main-content p:not(.rl-hero *):not(.rl-eyebrow) { --type-role:body; font-size:var(--type-body-size)!important; font-weight:400!important; line-height:1.65!important; }
body main#main-content :is([class*="-meta"],[class*="-note"],[class*="-caption"],[class*="-scripture-ref"],[class*="-subtitle"],[class*="-category"],[class*="-speaker"],[class*="-results"],[class*="-ref"]):is(p,span,div,time),
body main#main-content :is(.hr-message-meta,.sm-card-body,.ed-speaker-grid,.en-metadata,.ed-meta) :is(p,time) {
 --type-role:support; font-size:var(--type-support-size)!important; font-weight:400!important; line-height:1.5!important;
}
body main#main-content :is([class*="hero-lead"],[class*="hero-desc"],[class*="hero-sub"],.ed-lead,.fh-cinema-sub) {
 --type-role:lead; font-size:var(--type-lead-size)!important; font-weight:400!important; line-height:1.6!important;
}
body :is([class*="eyebrow"],.fh-label,.ct-section-label,.en-event-category):not(.rl-eyebrow) {
 --type-role:eyebrow; font-size:var(--type-eyebrow-size)!important; font-weight:700!important; line-height:1.5!important; letter-spacing:.08em!important;
}
body main#main-content :is(p,h2).sm-eyebrow,
body main#main-content p.hr-eyebrow {
 --type-role:eyebrow; font-size:var(--type-eyebrow-size)!important; font-weight:700!important; line-height:1.5!important; letter-spacing:.08em!important;
}
body main#main-content :is(label,.pyv-form-label) {
 --type-role:label; font-size:var(--type-control-size)!important; line-height:1.5!important; font-weight:500!important;
}
body main#main-content :is(input,select,textarea) { --type-role:field; font-size:var(--type-body-size)!important; line-height:1.5!important; }
body main#main-content :is(button,a):is([class*="button"],[class*="btn"],.fh-button,.en-event-link,.ed-session-add,.sm-filter,.en-filter):not([class*="rl-"]) {
 --type-role:control; font-size:var(--type-control-size)!important; font-weight:700!important; line-height:1.3!important; letter-spacing:0!important;
}
body .primary-nav .nav-item-link { --type-role:navigation; font-size:var(--type-nav-size)!important; font-weight:700!important; line-height:1.5!important; }
body .site-footer .rf-heading { --type-role:footer-label; font-size:var(--type-eyebrow-size)!important; font-weight:700!important; line-height:1.5!important; letter-spacing:.08em!important; }
/* Homepage surfaces remain independent of the patterned Messages band. */
body main#main-content :is(.fh-purpose,.fh-purpose-block) { background:#fff; }
/* Homepage Events/Messages: the featured event and featured sermon titles use the subsection role;
   infographic step descriptions use the support role so the compact panels stay legible. */
body main#main-content .hr-section h3:is(.hr-feature__title),
body main#main-content .hr-featured-sermon h3 { --type-role:subsection; font-size:var(--type-subsection-size)!important; line-height:1.2!important; }
body main#main-content .hr-section p.hr-eyebrow:not(.rl-hero *):not(.rl-eyebrow) { --type-role:eyebrow; font-size:var(--type-eyebrow-size)!important; font-weight:700!important; line-height:1.5!important; letter-spacing:.08em!important; }
body main#main-content .hr-section p:is(.hr-ev-meta,.hr-msg-meta):not(.rl-hero *):not(.rl-eyebrow) { --type-role:support; font-size:var(--type-support-size)!important; line-height:1.5!important; }
body main#main-content .hr-section .hr-step p:not(.rl-hero *):not(.rl-eyebrow) { --type-role:support; font-size:var(--type-support-size)!important; line-height:1.45!important; }
body main#main-content .fh-purpose-block + article { border-top:0; }

/* Keep the existing midweek feature legible when the shared type grows. */
@media(max-width:650px) {
 body main#main-content .beliefs-study-grid { grid-template-columns:1fr!important; gap:28px!important; }
}
body main#main-content figcaption { font-size:var(--type-support-size)!important; line-height:1.5!important; }

body .site-footer .rf-service h3 { --type-role:footer-service; font-size:var(--type-body-size)!important; line-height:1.45!important; font-weight:700!important; }

body :is(dialog,[role="dialog"]) :is(h2,h3) { --type-role:subsection; font-size:var(--type-subsection-size)!important; font-weight:700!important; line-height:1.25!important; }
body main#main-content blockquote,
body main#main-content blockquote p { --type-role:quote; font-size:var(--type-lead-size)!important; line-height:1.65!important; }
body main#main-content :is(.ct-faq-question,.pyv-faq-question) { --type-role:question; font-size:var(--type-body-size)!important; font-weight:700!important; line-height:1.5!important; }
body .site-header .header-actions .btn-primary { --type-role:control; font-size:var(--type-control-size)!important; font-weight:700!important; line-height:1.3!important; }

@media(max-width:650px) {
 body main#main-content .ed-related>header { flex-direction:column; align-items:flex-start; gap:12px; }
}
/* Eyebrow paragraphs must outrank the main body paragraph rule as well. */
body main#main-content :is([class*="eyebrow"],.fh-label,.ct-section-label,.en-event-category,.sm-featured-badge):not(.rl-eyebrow) {
 --type-role:eyebrow; font-size:var(--type-eyebrow-size)!important; font-weight:700!important; line-height:1.5!important; letter-spacing:.08em!important;
}
/* Existing gold accent stays readable on these dark editorial panels. */
body main#main-content .pyv-steps-title .text-highlight-red,
body main#main-content .fh-closing-cta h2 em { color:var(--rl-gold)!important; }

body .mobile-drawer-nav-list a { --type-role:mobile-navigation; font-size:var(--type-mobile-nav-size)!important; line-height:1.5!important; font-weight:700!important; }

.route-anchor { display:block; height:0; }
.route-anchor, #location { scroll-margin-top:100px; }
