/*
Theme Name: NewDay Blocks
Description: Clean, block-first reconstruction of the established NewDay website.
Version: 1.0.1
Requires at least: 6.6
Requires PHP: 8.2
Author: NewDay Church
License: GPL-2.0-or-later
Text Domain: newday-blocks
*/
:root {
    --nd-content-width: 1300px;
    --nd-gutter: clamp(20px, 4vw, 56px);
    --nd-body-font: Montserrat, Arial, sans-serif;
    --nd-heading-font: "Gill Sans MT", "Gill Sans", Calibri, sans-serif;
    --nd-text: #666;
    --nd-heading: #393939;
    --nd-link: #9b6500;
    --nd-link-hover: #a14b00;
    --nd-amber: #ffc10e;
    --nd-peach: #fcbc82;
    --nd-orange: #fc9c3c;
    --nd-alt: #fafafa;
    --nd-button-bg: linear-gradient(90deg, #ebba7f, #eb9e10);
    --nd-button-hover: linear-gradient(90deg, #f0982e, #e69d17);
    --nd-focus: #175f8b;
    --nd-header-height: 90px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--nd-text); background: #fff; font-family: var(--nd-body-font); font-size: 16px; font-weight: 400; line-height: 25px; overflow-wrap: break-word; }
::selection { color: #222; background: #ffdfa0; }
input, textarea { caret-color: var(--nd-link); }
a { color: var(--nd-link); text-decoration-thickness: .075em; text-underline-offset: .18em; }
a:hover { color: var(--nd-link-hover); }
:focus-visible { outline: 3px solid var(--nd-focus); outline-offset: 4px; }
:focus:not(:focus-visible) { outline: none; }
button, input, select, textarea { font: inherit; }
button, input[type="submit"] { cursor: pointer; }
img, video { max-width: 100%; height: auto; }
figure { margin: 0 0 1.5rem; }
iframe { max-width: 100%; }
p, ul, ol, dl, blockquote, table { margin: 0 0 1.5rem; }
li > ul, li > ol { margin-bottom: 0; }
h1, h2, h3, h4, h5, h6 { color: var(--nd-heading); font-family: var(--nd-heading-font); font-weight: 700; letter-spacing: 0; margin: 0 0 10px; overflow-wrap: normal; text-wrap: balance; }
h1 { font-size: 70px; line-height: 1.4; }
h2 { font-size: 45px; line-height: 1.4; }
h3 { font-size: 35px; line-height: 1.4; }
h4 { font-size: 30px; line-height: 1.1; }
h5, h6 { font-size: 20px; line-height: 1.4; }
.entry-content p + h2, .entry-content p + h3, .entry-content ul + h2 { margin-top: 2rem; }
.site-container { width: min(calc(100% - var(--nd-gutter) * 2), var(--nd-content-width)); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 10000; background: #fff; color: #222; padding: 12px 20px; border: 2px solid #222; text-decoration: none; }
.site-header { position: sticky; top: 0; width: 100%; z-index: 100; background: #fff; color: #222; box-shadow: 0 1px 4px rgb(0 0 0 / 10%); }
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: var(--nd-header-height); width: min(calc(100% - 48px), 1500px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-brand { display: inline-flex; position: relative; flex: 0 1 auto; align-items: center; color: inherit; text-decoration: none; min-width: 0; }
.site-title { color: inherit; font-family: var(--nd-heading-font); font-size: 28px; font-weight: 700; line-height: 1.2; }
.site-logo { display: block; width: auto; max-width: min(320px, 31vw); max-height: 110px; object-fit: contain; }
.site-logo--transparent { display: none; }
.newday-overlay-header .site-header:not(.is-scrolled) { position: absolute; color: #fff; background: transparent; box-shadow: none; }
.newday-overlay-header .site-header:not(.is-scrolled) .site-logo--transparent { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.newday-overlay-header .site-header:not(.is-scrolled) .site-brand:has(.site-logo--transparent) .site-logo--regular { visibility: hidden; }
.newday-overlay-header .site-header.is-scrolled { position: fixed; }
.site-header.is-scrolled { --nd-header-height: 80px; }
.site-header.is-scrolled .site-logo { max-height: 70px; }
.main-menu, .main-menu ul, .footer-menu { padding: 0; margin: 0; list-style: none; }
.main-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 0 24px; }
.main-menu li { position: relative; margin: 0; }
.main-menu a { display: block; padding: 12px 0; color: inherit; text-decoration: none; font-size: 20px; font-weight: 700; line-height: 1.5; }
.main-menu > li > a { padding-block: 24px; }
.main-menu a:hover, .main-menu .current-menu-item > a, .main-menu .current-menu-ancestor > a { color: #9b4b00; }
.newday-overlay-header .site-header:not(.is-scrolled) .main-menu > li > a { text-shadow: 0 1px 4px rgb(0 0 0 / 65%); }
.newday-overlay-header .site-header:not(.is-scrolled) .main-menu > li > a:hover { color: #ffcf72; }
.main-menu .sub-menu { position: absolute; left: -16px; top: 100%; min-width: 220px; max-width: 320px; padding: 8px 0; border-radius: 4px; color: #222; background: var(--nd-peach); box-shadow: 0 8px 18px rgb(0 0 0 / 15%); display: none; }
.main-menu .sub-menu a { padding: 10px 18px; font-size: 13px; line-height: 1.5; }
.main-menu .sub-menu .sub-menu { left: 100%; top: -8px; }
.main-menu li:hover > .sub-menu, .main-menu li:focus-within > .sub-menu { display: block; }
.main-menu .sub-menu a:hover, .main-menu .sub-menu a:focus-visible { background: rgb(255 255 255 / 40%); color: #222; }
.menu-toggle { display: none; align-items: center; justify-content: center; gap: 10px; background: transparent; color: inherit; border: 0; border-radius: 0; padding: 12px 0 12px 12px; font-size: 16px; font-weight: 700; box-shadow: none; }
.menu-toggle__icon { display: flex; width: 24px; height: 20px; flex-direction: column; justify-content: space-between; }
.menu-toggle__icon span { display: block; width: 24px; height: 3px; background: currentColor; }
.site-main { min-height: 45vh; }
.site-main:focus { outline: none; }
.page-heading { padding-block: 56px 28px; }
.page-heading h1 { font-size: clamp(36px, 5vw, 60px); }
/* Reconstructed inherited title bar; the attachment is supplied by the reviewed import. */
.page-heading.newday-titlebar { position: relative; isolation: isolate; overflow: hidden; padding-block: 24px; background: #393939; color: #fff; }
.newday-titlebar__background { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
.newday-titlebar::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.30); pointer-events: none; }
.newday-titlebar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; min-height: 64px; }
.newday-titlebar .newday-titlebar__title { flex: 1 1 340px; margin: 0; color: #fff; font-family: var(--nd-heading-font); font-size: 40px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.newday-breadcrumbs { min-width: 0; max-width: 100%; font-size: 18px; line-height: 1.5; }
.newday-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; margin: 0; list-style: none; }
.newday-breadcrumbs li { display: inline; margin: 0; }
.newday-breadcrumbs li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 12px 2px 2px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.newday-breadcrumbs a, .newday-breadcrumbs a:hover { color: #fff; }
.newday-breadcrumbs a { text-decoration: underline; text-underline-offset: .18em; }
.newday-breadcrumbs a:focus-visible { outline-color: #fff; }
@media (max-width: 600px) {
    .newday-titlebar__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
    .newday-titlebar .newday-titlebar__title { flex-basis: auto; font-size: 30px; }
}
.entry-content > :not(.alignfull) { max-width: var(--nd-content-width); margin-inline: auto; }
.entry-content > :not(.alignfull):not(.wp-block-group):not(.wp-block-cover):not(.wp-block-columns) { width: min(calc(100% - var(--nd-gutter) * 2), var(--nd-content-width)); }
.entry-content > .wp-block-group, .entry-content > .wp-block-cover, .entry-content > .wp-block-columns { padding-inline: var(--nd-gutter); }
.entry-content > .alignfull { width: 100%; max-width: none; }
.entry-content .alignwide { max-width: calc(var(--nd-content-width) + 120px); }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > :last-child { margin-bottom: 0; }
.wp-block-group.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: var(--nd-content-width); }
.wp-block-group { min-width: 0; }
.wp-block-columns { gap: 30px; }
.wp-block-column { min-width: 0; }
.wp-block-image img { display: block; }
.wp-block-image.aligncenter { text-align: center; }
.wp-block-image.aligncenter img { margin-inline: auto; }
.wp-block-cover { overflow: hidden; }
.wp-block-cover .wp-block-cover__inner-container { width: 100%; max-width: var(--nd-content-width); margin-inline: auto; }
.wp-block-cover h1, .wp-block-cover h2, .wp-block-cover h3, .wp-block-cover h4 { color: inherit; }
.wp-block-embed { overflow-wrap: anywhere; }
.wp-block-embed iframe { max-width: 100%; }
.wp-block-table { overflow-x: auto; }
.wp-block-table td, .wp-block-table th { padding: .75rem; }
.recovery-flex-row { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 20px; }
.recovery-flex-column { display: flex; flex-direction: column; gap: 20px; }
.recovery-flex-row > *, .recovery-flex-column > * { margin-block: 0; min-width: 0; }
.recovery-popup { margin-block: 1.5rem; padding: 20px; background: var(--nd-alt); border: 1px solid #ddd; }
.recovery-popup > summary { cursor: pointer; color: var(--nd-heading); font-weight: 700; }
.recovery-popup[open] > summary { margin-bottom: 20px; }
.recovery-popup:target { scroll-margin-top: 100px; }
.card { border-radius: 5px; }
.cast-shadow-inner, .card { box-shadow: 0 2px 10px rgb(0 0 0 / 12%); }
.text-shadow { text-shadow: 0 0 10px rgb(0 0 0 / 75%), 0 0 4px #000; }
.align_center { text-align: center; }
#mobile-banner, #ipad-banner { display: none; }
#desktop-banner, #mobile-banner { background-position: center; background-size: cover; }
.wp-block-button__link, button[type="submit"], input[type="submit"], .wp-element-button { display: inline-block; border: 1px solid #f4f4f4; border-radius: .5em; padding: 1em 2.7em; background: var(--nd-button-bg); color: #33220b; font-family: var(--nd-body-font); font-size: 16px; font-weight: 700; font-style: normal; letter-spacing: .03em; line-height: 1.2; text-align: center; text-transform: uppercase; text-decoration: none; box-shadow: 0 .1em .2em rgb(0 0 0 / 20%); }
.wp-block-button__link:hover, button[type="submit"]:hover, input[type="submit"]:hover, .wp-element-button:hover { background: var(--nd-button-hover); color: #222; box-shadow: 0 .25em .5em rgb(73 114 201 / 30%); }
button:disabled, input:disabled, .wp-element-button[aria-disabled="true"] { cursor: not-allowed; opacity: .6; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]), select, textarea { width: 100%; max-width: 100%; min-height: 44px; border: 1px solid #ddd; border-radius: .3rem; padding: 10px 14px; background: #f5f5f5; color: #444; box-shadow: inset 0 1px 0 rgb(0 0 0 / 8%); font-size: 16px; line-height: 1.5; }
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #626262; opacity: 1; }
.nd-contact__form > p, .nd-contact__form > div { margin-bottom: 12px; }
.nd-contact label { display: block; color: #444; font-size: 14px; line-height: 1.5; margin-bottom: 5px; }
.nd-contact input[type="submit"], .nd-contact button[type="submit"] { width: 100%; }
.nd-contact__error { padding: 12px; background: #fff1ed; color: #8b260a; border: 1px solid #bd5b41; }
.nd-contact__privacy { font-size: 13px; line-height: 1.6; }
.search-form { max-width: 640px; margin-block: 1rem 2rem; }
.search-form > label { display: block; margin-bottom: 8px; font-weight: 600; }
.search-form__controls { display: flex; gap: 12px; }
.search-form__controls input { min-width: 0; }
.search-form__controls button { flex-shrink: 0; }
.site-footer { background: var(--nd-alt); color: #555; }
.site-footer > .wp-block-group { padding-inline: var(--nd-gutter); }
.site-footer a { color: #926100; }
.site-footer a:hover { color: #9f4b00; }
.site-footer .wp-block-group { margin-block-end: 0; }
.site-footer h2, .site-footer h3, .site-footer h4 { font-size: 25px; }
.footer-fallback { padding-block: 40px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 20px; }
.footer-menu .sub-menu { list-style: none; padding-left: 16px; }
.listing-page { padding-bottom: 70px; }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 30px; padding-block: 20px 40px; }
.post-list__item h2 { font-size: 30px; }
.post-list__item h2 a { color: var(--nd-heading); }
.post-list__image { display: block; margin-bottom: 20px; }
.post-list__image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-date { color: #666; font-size: 14px; }
.post-summary > :last-child { margin-bottom: 0; }
.navigation.pagination, .page-links { padding-block: 20px; }
.page-numbers { display: inline-block; padding: 8px 12px; }
.page-numbers.current { color: #222; background: #ffdfa0; border-radius: 3px; }
.error-page { padding-block: 70px; }
.comments-area { padding-block: 40px; }
.comment-list { list-style: none; padding-left: 0; }
.comment-list .children { list-style: none; padding-left: 30px; }
.comment-body { padding-block: 20px; border-bottom: 1px solid #ddd; }
.comment-meta { font-size: 14px; }
.comment-form label { display: block; margin-bottom: 5px; }
.comment-form-cookies-consent label { display: inline; }
@media (min-width: 1280px) { .vc_hidden-lg { display: none !important; } }
@media (min-width: 1024px) and (max-width: 1279px) { .vc_hidden-md { display: none !important; } }
@media (min-width: 601px) and (max-width: 1023px) { .vc_hidden-sm { display: none !important; } }
@media (max-width: 1279px) { .main-menu { gap: 0 18px; } .main-menu a { font-size: 17px; } }
@media (max-width: 1023px) {
    #desktop-banner { display: none; }
    #ipad-banner { display: block; }
    #ipad-banner h1 { font-size: clamp(36px, 5.5vw, 56px); line-height: 1.3; }
    .header-inner { min-height: 80px; flex-wrap: wrap; width: calc(100% - 40px); gap: 0 24px; }
    .site-logo { max-height: 65px; max-width: min(260px, 65vw); }
    .site-header.is-scrolled .site-logo { max-height: 65px; }
    .primary-navigation { width: 100%; padding-block: 0 20px; color: #222; }
    .main-menu { display: block; }
    .main-menu a, .main-menu > li > a { padding: 12px 8px; font-size: 18px; line-height: 1.5; text-shadow: none !important; }
    .main-menu .sub-menu, .main-menu .sub-menu .sub-menu { display: block; position: static; width: auto; min-width: 0; max-width: none; border-radius: 0; box-shadow: none; background: transparent; padding: 0 0 0 20px; }
    .main-menu .sub-menu a { font-size: 15px; padding: 10px 8px; }
    .js .menu-toggle { display: inline-flex; }
    .js .primary-navigation:not(.is-open) { display: none; }
    .newday-overlay-header .primary-navigation { background: #fff; padding-inline: 15px; border-radius: 4px; }
    .newday-overlay-header .site-header:not(.is-scrolled) .primary-navigation .main-menu > li > a { color: #222; }
    .newday-overlay-header .site-header:not(.is-scrolled) .primary-navigation .main-menu > li > a:hover { color: #9b4b00; }
    .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) {
    body { font-size: 15px; line-height: 22px; }
    h1 { font-size: 30px; } h2 { font-size: 26px; } h3 { font-size: 24px; } h4 { font-size: 22px; } h5 { font-size: 20px; } h6 { font-size: 18px; }
    .header-inner { min-height: 70px; }
    .site-logo, .site-header.is-scrolled .site-logo { max-height: 45px; }
    #desktop-banner, #ipad-banner { display: none; } #mobile-banner { display: block; }
    .vc_hidden-xs { display: none !important; }
    .page-heading { padding-block: 36px 20px; }
    .page-heading h1 { font-size: 30px; }
    .wp-block-columns { gap: 24px; }
    .recovery-flex-row { gap: 15px; }
    .wp-block-button__link, button[type="submit"], input[type="submit"] { padding: 1em 1.5em; font-size: 14px; }
    .search-form__controls { flex-direction: column; }
    .post-list { grid-template-columns: 1fr; }
    .error-page { padding-block: 40px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
