/* ChurchHost Sanctuary: section styles the block settings can't express. Colors are theme.json presets. */
:root { --ch-radius: 16px; }

/* Header */
.ch-header { background: var(--wp--preset--color--surface); border-bottom: 1px solid var(--wp--preset--color--line); padding-top: .8rem; padding-bottom: .8rem; position: sticky; top: 0; z-index: 20; }
.admin-bar .ch-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ch-header { top: 0; position: relative; } }
.ch-header-row { gap: 1rem; }
.ch-brand { gap: .7rem; align-items: center; }
.ch-brand .wp-block-site-title { margin: 0; }
.ch-nav { gap: 1.2rem; align-items: center; }
.ch-nav .ch-give { margin: 0; }
.ch-nav .ch-button { padding: .55em 1.15em; font-size: .95rem; }
.wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Main and page titles */
.ch-main { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--60); }
.ch-sections.ch-main { padding-top: 0; }
.ch-page-title { margin-bottom: .4em; }
.ch-lede { font-size: var(--wp--preset--font-size--large); color: #3A4558; }
.ch-crumb { font-size: .95rem; margin-bottom: .6rem; }
.ch-crumb a { text-decoration: none; }
.ch-crumb a::before { content: "\2190  "; }
.ch-feature-image img { border-radius: var(--ch-radius); }

/* Sections used by the home page and other pages built from sections */
.ch-hero { background: linear-gradient(180deg, var(--wp--preset--color--accent-soft) 0%, var(--wp--preset--color--surface) 100%); padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); position: relative; overflow: hidden; }
.ch-hero::after { content: ""; position: absolute; right: -10vw; top: -20vw; width: 50vw; height: 50vw; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .55), transparent 65%); pointer-events: none; }
.ch-hero > * { position: relative; z-index: 1; }
.ch-hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); max-width: 14em; }
.ch-hero .ch-lede { max-width: 34em; }
.ch-section { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.ch-band { background: var(--wp--preset--color--base); border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.ch-eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; font-weight: 700; color: var(--wp--preset--color--accent-ink); margin-bottom: .4rem; }
.ch-card { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--line); border-radius: var(--ch-radius); padding: 1.6rem; }
.ch-band .ch-card { background: var(--wp--preset--color--surface); }
.ch-card > :first-child { margin-top: 0; }
.ch-card > :last-child { margin-bottom: 0; }
.ch-sermon-card { padding: 0 0 1.2rem; overflow: hidden; }
.ch-sermon-card > *:not(.wp-block-post-featured-image) { margin-left: 1.2rem; margin-right: 1.2rem; }
.ch-sermon-card .wp-block-post-featured-image { margin-bottom: 1rem; }
.ch-sermon-card .wp-block-post-title { font-size: 1.2rem; margin-top: 1rem; }
.ch-sermon-card .wp-block-post-terms, .ch-sermon-card .wp-block-post-date { margin-top: .3rem; color: var(--wp--preset--color--muted); }
.ch-sermon-grid { margin-top: 2rem; }

/* The strong color block: one per page at most (give) */
.ch-give-card { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); border-radius: 22px; padding: clamp(1.8rem, 4vw, 3rem); }
.ch-give-card h2, .ch-give-card p { color: var(--wp--preset--color--base); }
.ch-give-card .ch-button { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast) !important; }
.ch-give-card .ch-button:hover { background: var(--wp--preset--color--base); }

.is-style-outline .wp-block-button__link, .wp-block-button.is-style-outline > .wp-element-button { background: transparent; border: 2px solid currentColor; color: var(--wp--preset--color--primary); }
.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--tint); color: var(--wp--preset--color--contrast); }

/* Footer */
.ch-footer { background: var(--wp--preset--color--tint); border-top: 1px solid var(--wp--preset--color--line); padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--40); font-size: .95rem; }
.ch-footer h3 { font-family: var(--wp--preset--font-family--body); font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.ch-footer .wp-block-site-title { font-size: 1.25rem; }
.ch-footer a { color: var(--wp--preset--color--contrast); }
.ch-footer .ch-times li { padding: .3em 0; }
.ch-footer-bottom { border-top: 1px solid var(--wp--preset--color--line); padding-top: 1.2rem; margin-top: 2rem; color: var(--wp--preset--color--muted); font-size: .88rem; }
.ch-footer-bottom p { margin: 0; }
.ch-credit a { color: var(--wp--preset--color--muted); }

/* Phone */
@media (max-width: 600px) {
  .ch-header { position: relative; }
  .ch-nav { gap: .6rem; }
  .ch-hero h1 { font-size: 2.4rem; }
}
