/* New Hope theme — styles the block editor can't express. Colors/type come from theme.json presets. */
:root{--nh-radius:22px;--nh-radius-s:18px}
body{-webkit-font-smoothing:antialiased}
h1,h2,h3{text-wrap:balance}
p{text-wrap:pretty}

.nh-eyebrow{font-family:var(--wp--preset--font-family--mono);font-size:12px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--wp--preset--color--teal)}
.nh-eyebrow--muted{color:var(--wp--preset--color--stone)}
.nh-label{font-family:var(--wp--preset--font-family--mono);font-size:11px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--wp--preset--color--stone);margin:0}

/* header */
.nh-header{border-bottom:1px solid var(--wp--preset--color--line)}
.nh-header .wp-block-site-logo img,.nh-header .nh-logo img{height:34px;width:auto}
.nh-header .wp-block-navigation a{color:var(--wp--preset--color--ink)}
.nh-btn-text .wp-block-button__link{background:transparent;color:var(--wp--preset--color--ink)}
.nh-btn-text .wp-block-button__link:hover{background:var(--wp--preset--color--mist)}

/* hero */
.nh-hero-media{border-radius:var(--nh-radius);overflow:hidden;min-height:520px}
.nh-sunday-card{border-radius:var(--nh-radius)}
.nh-sunday-card h2{font-size:34px;margin:10px 0 0}
.nh-sunday-card p{margin:8px 0 0}
.nh-sunday-card .wp-block-buttons{flex-direction:column;align-items:stretch}
.nh-sunday-card .is-style-white .wp-block-button__link{background:#fff;color:var(--wp--preset--color--teal-dark)}
.nh-sunday-card .is-style-outline-white .wp-block-button__link{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.6)}
@media (max-width:781px){.nh-hero-media{min-height:300px}}

/* good to know */
.nh-know{border-radius:var(--nh-radius-s);overflow:hidden;gap:3px!important}
.nh-know>.wp-block-group{background:var(--wp--preset--color--mist);padding:22px 24px}
.nh-know h3{font-family:var(--wp--preset--font-family--body);font-size:16px;margin:0}
.nh-know p{font-size:14px;color:var(--wp--preset--color--stone);margin:4px 0 0;line-height:1.45}

/* ministry cards (query loop) */
.nh-people .wp-block-post-template{gap:16px}
.nh-people .wp-block-post{background:var(--wp--preset--color--mist);border-radius:var(--nh-radius-s);overflow:hidden}
.nh-people .wp-block-post-featured-image{margin:0;aspect-ratio:16/10;background:repeating-linear-gradient(115deg,#e9ebed 0 9px,#f1f2f4 9px 18px)}
.nh-people .wp-block-post-featured-image img{width:100%;height:100%;object-fit:cover}
.nh-people .nh-card-body{padding:18px 20px}
.nh-people .wp-block-post-title{font-size:18px;font-weight:700;margin:0}
.nh-people .wp-block-post-title a{color:var(--wp--preset--color--ink);text-decoration:none}
.nh-people .nh-card-meta{font-size:13.5px;color:var(--wp--preset--color--stone);margin:4px 0 0}

/* event banner (shortcode) */
.nh-event-banner{background:var(--wp--preset--color--ink);border-radius:var(--nh-radius);padding:34px 36px;display:grid;grid-template-columns:1fr auto;gap:30px;align-items:center}
.nh-event-banner__meta{display:flex;gap:10px;align-items:center}
.nh-pill{font-size:11px;font-weight:700;color:var(--wp--preset--color--ink);background:var(--wp--preset--color--yellow);padding:5px 10px;border-radius:20px}
.nh-event-banner__title{color:#fff;font-size:32px;margin:12px 0 0}
.nh-event-banner__text{color:#a6a9a2;margin:6px 0 0}
.nh-btn{display:inline-block;border-radius:13px;padding:14px 22px;font-weight:700;font-size:15px;text-decoration:none}
.nh-btn--white{background:#fff;color:var(--wp--preset--color--ink)}
.nh-btn--white:hover{background:var(--wp--preset--color--mist);color:var(--wp--preset--color--ink)}
@media (max-width:640px){.nh-event-banner{grid-template-columns:1fr;padding:26px}}

/* footer */
.nh-footer{border-top:1px solid var(--wp--preset--color--line);font-size:14px;color:var(--wp--preset--color--slate);line-height:1.7}
.nh-footer p{margin:0}
.nh-footer .nh-foot-title{font-weight:700;font-size:13px;color:var(--wp--preset--color--ink);margin-bottom:6px}
.nh-footer .nh-logo img{height:28px;width:auto}

/* WordPress 7.1 gives grid blocks container-type: inline-size, which makes the
   Sunday card grow thousands of pixels tall. */
.nh-sunday-card { container-type: normal; }
/* In a vertical button stack, a "100% width" button must not become 100% height. */
.wp-block-buttons.is-vertical > .wp-block-button { flex-basis: auto; }
