/* Sandy Ridge Church: design for block-editor page content (see inc/editable-pages.php).
   Plain element rules (h1, p, ...) use :where() so they carry almost no
   specificity: any component's own class (sermon player, live strip, forms)
   always wins over them. */

.srb-blocks .srb-sec{max-width:1240px; margin:0 auto; padding:88px 40px; box-sizing:border-box;}
.srb-blocks .srb-sec--hero{max-width:1040px; padding:86px 40px 8px; text-align:center;}
.srb-blocks .srb-sec--narrow{max-width:920px;}
.srb-blocks .srb-sec--copy{max-width:840px;}
.srb-blocks .srb-sec--center{text-align:center;}
.srb-blocks .srb-sec--tight-top{padding-top:32px;}
.srb-blocks .srb-sec--flush-top{padding-top:0;}
.srb-blocks .srb-sec--flush-bottom{padding-bottom:0;}
.srb-blocks .srb-sec--first{padding-top:86px;}
.srb-blocks .srb-band{background:#E9EFED;}
.srb-blocks .srb-band--dark{background:#123F3B; color:#F1F4F2;}
.srb-blocks .srb-center{text-align:center;}
.srb-blocks .srb-gap{margin-bottom:40px !important;}
.srb-blocks .srb-gap-top{margin-top:34px !important;}

:where(.srb-blocks) h1{font-family:'Montserrat',sans-serif; font-weight:400; font-size:64px; line-height:1.05; letter-spacing:-.02em; margin:0 0 26px; color:#2A2E30;}
:where(.srb-blocks) h2{font-family:'Montserrat',sans-serif; font-weight:400; font-size:38px; line-height:1.15; letter-spacing:-.01em; margin:0 0 22px; color:#2A2E30;}
:where(.srb-blocks) h3{font-family:'Montserrat',sans-serif; font-weight:500; font-size:22px; line-height:1.3; margin:0 0 10px; color:#2A2E30;}
:where(.srb-blocks) p{font-family:'Roboto',sans-serif; font-size:17px; line-height:1.72; color:#4E5654; margin:0 0 18px;}
:where(.srb-blocks) p:last-child{margin-bottom:0;}
:where(.srb-blocks) p a, :where(.srb-blocks) summary a{color:#1C7F76; font-weight:600; text-decoration:none; border-bottom:1px solid rgba(28,127,118,.35);}
:where(.srb-blocks) p a:hover{color:#155E58; border-bottom-color:#155E58;}
:where(.srb-blocks) strong{font-weight:600; color:#2A2E30;}
.srb-blocks .srb-lede{font-size:21px; line-height:1.65; max-width:680px; margin:0 auto 14px;}
.srb-blocks .srb-intro{font-size:19px; line-height:1.7; max-width:460px; margin-bottom:44px;}
.srb-blocks .srb-note{font-size:15px; color:#8B928F;}
.srb-blocks .srb-small{font-size:15px; line-height:1.6; color:#626A67;}
.srb-blocks .srb-h2-sm{font-size:28px; line-height:1.2;}

.srb-blocks .kicker{display:flex; align-items:center; gap:10px; font-size:12px; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:#1C7F76; margin:0 0 24px;}
.srb-blocks .kicker::before{content:""; width:24px; height:1px; background:currentColor; flex:none;}
.srb-blocks .kicker--center{justify-content:center;}
.srb-blocks .kicker--center::after{content:""; width:24px; height:1px; background:currentColor; flex:none;}
.srb-blocks .srb-band--dark .kicker{color:#7FC4BB;}

.srb-blocks .wp-block-columns{gap:24px; margin:0 0 24px;}
.srb-blocks .wp-block-columns:last-child{margin-bottom:0;}
.srb-blocks .srb-split{gap:64px; align-items:stretch;}
.srb-blocks .srb-split--center{align-items:center;}
.srb-blocks .srb-split--top{gap:72px; align-items:flex-start;}
.srb-blocks .srb-split--visit > .wp-block-column:first-child{flex-basis:42%; flex-grow:0;}
.srb-blocks .srb-stack > * + *{margin-top:20px;}
.srb-blocks .srb-map-col{display:flex;}

.srb-blocks .card{background:#FFFFFF; border:1px solid #DCE2DF; border-radius:8px; padding:30px; box-sizing:border-box;}
.srb-blocks .wp-block-column.card{display:flex; flex-direction:column;}
.srb-blocks .card p{font-size:15.5px; line-height:1.65; color:#626A67;}
.srb-blocks .card--dark{background:#123F3B; border-color:#123F3B; padding:40px;}
.srb-blocks .card--dark p{color:#AFC9C4;}
.srb-blocks .srb-label{font-size:12px; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:#1C7F76; line-height:1.4; margin:0 0 12px;}
.srb-blocks .srb-label--muted{color:#8B928F; margin-bottom:6px;}
.srb-blocks .card--dark .srb-label{color:#7FC4BB;}
.srb-blocks .srb-big{font-family:'Montserrat',sans-serif; font-size:46px; line-height:1; color:#FFFFFF !important; margin:0 0 12px;}
.srb-blocks .srb-detail{font-family:'Montserrat',sans-serif; font-size:24px; line-height:1.35; color:#2A2E30 !important; margin:0 0 8px;}
.srb-blocks .srb-detail--gap{margin-bottom:24px;}
.srb-blocks .srb-card-link{margin-top:auto; padding-top:8px; font-size:14.5px;}
.srb-blocks .srb-card-link a{border-bottom:none;}
.srb-blocks .srb-aside{font-size:15px; color:#8B928F; margin:-12px 0 32px;}
.srb-blocks .srb-callout{background:#E9EFED; border-radius:8px; padding:44px 48px;}
.srb-blocks .srb-band .srb-callout{background:#FFFFFF;}
.srb-blocks .srb-callout h2{font-size:28px; margin-bottom:14px;}
.srb-blocks .srb-callout--spaced{margin-top:48px;}
.srb-blocks .srb-mission{font-family:'Montserrat',sans-serif; font-weight:300; font-size:38px; line-height:1.34; color:#F1F4F2; max-width:820px; margin:0 auto;}
.srb-blocks .srb-mission em{color:#E0AF6E;}

.srb-blocks .srb-photo{margin:0;}
.srb-blocks .srb-photo img{width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:6px; display:block;}
.srb-blocks .srb-portrait{margin:0;}
.srb-blocks .srb-portrait img{width:100%; aspect-ratio:1/1; object-fit:cover; display:block;}
.srb-blocks .srb-leader{padding:0; overflow:hidden;}
.srb-blocks .srb-leader > :not(figure){padding-left:24px; padding-right:24px;}
.srb-blocks .srb-leader > h3{padding-top:22px; margin-bottom:4px; font-size:21px;}
.srb-blocks .srb-leader > :last-child{padding-bottom:26px;}
.srb-blocks .srb-role{font-size:12px !important; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:#1C7F76 !important; line-height:1.45 !important; margin:0 0 12px;}
.srb-blocks .srb-bio{font-size:14.5px !important; line-height:1.65; color:#4E5654 !important;}
.srb-blocks .srb-bio--soon{color:#8B928F !important; font-style:italic;}
.srb-blocks .srb-leaders--2{max-width:760px;}
.srb-blocks .srb-leaders--3of4{max-width:calc(75% - 6px);}

.srb-blocks .srb-faq{border-top:1px solid #DCE2DF; margin:0;}
.srb-blocks .srb-faq:last-of-type{border-bottom:1px solid #DCE2DF;}
.srb-blocks .srb-faq summary{list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:20px; padding:24px 0; font-family:'Montserrat',sans-serif; font-weight:500; font-size:20px; color:#2A2E30;}
.srb-blocks .srb-faq summary::-webkit-details-marker{display:none;}
.srb-blocks .srb-faq summary::after{content:"+"; font-weight:300; font-size:28px; line-height:.8; color:#1C7F76; flex:none; transition:transform .2s ease;}
.srb-blocks .srb-faq[open] summary::after{transform:rotate(45deg);}
.srb-blocks .srb-faq > :not(summary){font-size:16px; color:#626A67; margin:0 0 26px;}

.srb-blocks .srb-beliefs{counter-reset:belief;}
.srb-blocks .srb-belief{counter-increment:belief; border-top:1px solid #DCE2DF; margin:0;}
.srb-blocks .srb-belief:last-of-type{border-bottom:1px solid #DCE2DF;}
.srb-blocks .srb-belief summary{list-style:none; cursor:pointer; display:grid; grid-template-columns:72px 1fr auto; gap:28px; align-items:start; padding:30px 0; font-size:17px; line-height:1.6; color:#3A4042;}
.srb-blocks .srb-belief summary::-webkit-details-marker{display:none;}
.srb-blocks .srb-belief summary::before{content:counter(belief, decimal-leading-zero); font-family:'Montserrat',sans-serif; font-size:26px; line-height:1.3; color:#1C7F76;}
.srb-blocks .srb-belief summary::after{content:"+"; font-family:'Montserrat',sans-serif; font-weight:300; font-size:30px; line-height:1; color:#1C7F76; transition:transform .2s ease;}
.srb-blocks .srb-belief[open] summary::after{transform:rotate(45deg);}
.srb-blocks .srb-belief summary strong{font-family:'Montserrat',sans-serif; font-weight:500; font-size:25px; line-height:1.6; color:#2A2E30;}
.srb-blocks .srb-belief > :not(summary){margin-left:100px; font-size:16px;}
.srb-blocks .srb-belief > :last-child{margin-bottom:32px;}
.srb-blocks .srb-refs{font-size:13px !important; font-weight:600; letter-spacing:.03em; color:#8B928F !important;}

.srb-blocks .srb-map{position:relative; width:100%; min-height:380px; border-radius:10px; overflow:hidden; border:1px solid #DCE2DF;}
.srb-blocks .srb-map iframe{position:absolute; inset:0; width:100%; height:100%; border:0;}
.srb-blocks .srb-map-note{margin-top:20px;}
.srb-blocks .srb-form-card{padding:44px;}
.srb-blocks .srb-form-card__foot{font-size:14px !important; color:#626A67; border-top:1px solid #DCE2DF; padding-top:18px; margin-top:26px !important;}

.srb-blocks .srb-give-card{text-align:center; padding:60px 56px; border-radius:12px;}
.srb-blocks .srb-quote{font-family:'Montserrat',sans-serif; font-weight:300; font-style:italic; font-size:28px !important; line-height:1.4 !important; color:#F0EBDE !important; margin:0 0 30px;}

.srb-blocks .wp-block-buttons{margin-top:26px; gap:14px;}
.srb-blocks .srb-center .wp-block-buttons, .srb-blocks .srb-give-card .wp-block-buttons, .srb-blocks .srb-callout.srb-center .wp-block-buttons{justify-content:center;}
.srb-blocks .wp-block-button.srb-btn-primary > .wp-block-button__link{background:#C08A3E; color:#FFFFFF; border-radius:999px; padding:15px 32px; font-family:'Roboto',sans-serif; font-size:16px; font-weight:600; text-decoration:none; transition:background .2s ease, transform .2s ease, box-shadow .2s ease;}
.srb-blocks .wp-block-button.srb-btn-primary > .wp-block-button__link:hover{background:#A8752F; transform:translateY(-2px); box-shadow:0 10px 22px rgba(192,138,62,.32);}
.srb-blocks .wp-block-button.srb-btn-secondary > .wp-block-button__link{background:transparent; color:#2A2E30; border:1.5px solid #2A2E30; border-radius:999px; padding:14px 30px; font-weight:600;}

.srb-blocks .srb-count{font-size:14px; color:#8B928F; margin:0 0 14px;}

@media (max-width:1040px){
  .srb-blocks .srb-grid-4{flex-wrap:wrap !important;}
  .srb-blocks .srb-grid-4 > .wp-block-column{flex-basis:calc(50% - 12px) !important; flex-grow:0;}
  .srb-blocks .srb-leaders{flex-wrap:wrap !important; max-width:760px;}
  .srb-blocks .srb-leaders > .wp-block-column{flex-basis:calc(50% - 12px) !important; flex-grow:0;}
}
@media (max-width:781px){
  .srb-blocks .srb-split{gap:40px;}
  .srb-blocks .srb-split--visit > .wp-block-column:first-child{flex-basis:100%;}
  .srb-blocks .srb-grid-4 > .wp-block-column, .srb-blocks .srb-leaders > .wp-block-column{flex-basis:100% !important;}
  .srb-blocks .srb-map{min-height:300px;}
}
@media (max-width:640px){
  .srb-blocks .srb-sec{padding:64px 22px;}
  .srb-blocks .srb-sec--hero{padding:64px 22px 8px;}
  .srb-blocks .srb-sec--tight-top{padding-top:24px;}
  .srb-blocks .srb-sec--flush-top{padding-top:0;}
  .srb-blocks .srb-sec--flush-bottom{padding-bottom:0;}
  :where(.srb-blocks) h1{font-size:42px;}
  :where(.srb-blocks) h2{font-size:30px;}
  .srb-blocks .srb-lede{font-size:18px;}
  .srb-blocks .srb-mission{font-size:28px;}
  .srb-blocks .srb-callout, .srb-blocks .srb-form-card{padding:30px 24px;}
  .srb-blocks .card--dark{padding:30px 24px;}
  .srb-blocks .srb-give-card{padding:40px 24px;}
  .srb-blocks .srb-quote{font-size:22px !important;}
  .srb-blocks .srb-belief summary{grid-template-columns:40px 1fr auto; gap:14px;}
  .srb-blocks .srb-belief summary::before{font-size:20px;}
  .srb-blocks .srb-belief summary strong{font-size:20px;}
  .srb-blocks .srb-belief > :not(summary){margin-left:0;}
  .srb-blocks .srb-big{font-size:38px;}
}

/* Sermons: keep the featured player a true 16:9 inside its column so a tall
   title can never stretch the video over the text beside it. */
.sermon-hero{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr) !important; align-items:center;}
.sermon-hero .sermon-player{height:auto !important; width:100%; aspect-ratio:16/9; align-self:center;}
.sermon-hero__info{min-width:0;}
.sermon-featured__title{overflow-wrap:anywhere;}

/* Sermons: "We stream every service live" strip, centered on one line */
.srb-live__off{justify-content:center; text-align:center; gap:12px 18px; padding:18px 24px;}
.srb-live__off .srb-live__strip{flex:0 1 auto; margin:0; line-height:1.5;}
.srb-live__off .srb-live__dot{align-self:center;}
.srb-live__off .text-link{white-space:nowrap;}
@media (max-width:960px){
  .sermon-hero{grid-template-columns:1fr !important;}
}
@media (max-width:640px){
  .srb-live__off{flex-direction:column; gap:8px;}
}

/* Beliefs: number left, title above summary, + right; no grid (the bold title
   and the text after it would each become a separate grid cell). */
.srb-blocks .srb-belief summary{display:block !important; position:relative; padding:30px 56px 30px 100px; font-size:17px; line-height:1.6; color:#3A4042;}
.srb-blocks .srb-belief summary::before{position:absolute; left:0; top:30px; line-height:1.4;}
.srb-blocks .srb-belief summary::after{position:absolute; right:4px; top:30px; line-height:1.2;}
.srb-blocks .srb-belief summary strong{display:block; font-size:25px; line-height:1.3; margin:0 0 8px;}
.srb-blocks .srb-belief summary br{display:none;}
.srb-blocks .srb-belief > :not(summary){margin-left:100px; margin-right:56px;}
.srb-blocks .srb-belief summary:hover strong{color:#1C7F76;}
@media (max-width:640px){
  .srb-blocks .srb-belief summary{padding:24px 40px 24px 52px;}
  .srb-blocks .srb-belief summary::before{top:25px; font-size:20px;}
  .srb-blocks .srb-belief summary::after{top:22px;}
  .srb-blocks .srb-belief summary strong{font-size:20px;}
  .srb-blocks .srb-belief > :not(summary){margin-left:52px; margin-right:0;}
}
