/*
Theme Name: Faith Behind The Badge
Theme URI: https://faithbehindthebadge.com/
Author: Faith Behind The Badge
Author URI: https://faithbehindthebadge.com/
Description: A clean black-and-white block theme with a thin blue line accent, made for Faith Behind The Badge: devotionals and encouragement for law enforcement officers and first responders. Every section is built from editable blocks and patterns, so text and images can be changed in the Site Editor without code.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fbtb
Tags: block-patterns, full-site-editing, one-column, custom-colors, editor-style, wide-blocks, blog
*/

/* ---------- Brand mark (cross with a thin blue line) ---------- */
.fbtb-brand{display:flex;align-items:center;gap:14px}
.fbtb-brand::before{content:"";flex:none;width:26px;height:40px;background:
 linear-gradient(currentColor,currentColor) 11px 0/4px 32px no-repeat,
 linear-gradient(currentColor,currentColor) 3px 9px/20px 4px no-repeat,
 linear-gradient(var(--wp--preset--color--blue),var(--wp--preset--color--blue)) 0 38px/26px 2px no-repeat}
.fbtb-brand .wp-block-site-title{line-height:1.12;max-width:9.5em}
.fbtb-brand .wp-block-site-title a{text-decoration:none;color:inherit}

/* ---------- Header ---------- */
.fbtb-header .wp-block-navigation a{text-decoration:none}
.fbtb-header .wp-block-navigation a:hover{color:var(--wp--preset--color--blue)}

/* ---------- Eyebrow / kicker text ---------- */
.is-style-fbtb-eyebrow{font-family:var(--wp--preset--font-family--sans);font-size:12.5px!important;letter-spacing:.22em;text-transform:uppercase;font-weight:600}

/* ---------- Blue line divider (block style on Separator) ---------- */
hr.wp-block-separator.is-style-fbtb-blue-line{border:0;height:2px;opacity:1;width:100%;max-width:none;
 background:linear-gradient(90deg,var(--wp--preset--color--ink) 0,var(--wp--preset--color--ink) calc(50% - 60px),var(--wp--preset--color--blue) calc(50% - 60px),var(--wp--preset--color--blue) calc(50% + 60px),var(--wp--preset--color--ink) calc(50% + 60px))!important}
.has-black-background-color hr.wp-block-separator.is-style-fbtb-blue-line{background:linear-gradient(90deg,#fff 0,#fff calc(50% - 60px),var(--wp--preset--color--blue) calc(50% - 60px),var(--wp--preset--color--blue) calc(50% + 60px),#fff calc(50% + 60px))!important}
hr.wp-block-separator.is-style-fbtb-thick-blue{border:0;height:6px;background:var(--wp--preset--color--blue)!important;opacity:1;width:100%;max-width:none}

/* ---------- Hero ---------- */
.fbtb-hero{overflow:hidden}
.fbtb-hero .wp-block-columns{align-items:flex-end!important}
.fbtb-hero-copy{padding-bottom:var(--wp--preset--spacing--70)}
.fbtb-hero h1 em{font-style:italic}
.fbtb-hero-image{margin:0!important;position:relative}
.fbtb-hero-image img{width:100%;height:560px;object-fit:cover;object-position:center 62%;filter:grayscale(1) contrast(1.1);display:block}
.fbtb-hero-image figcaption{position:absolute;left:-18px;bottom:40px;transform:rotate(-90deg);transform-origin:left bottom;margin:0;font-size:11px;letter-spacing:.3em;text-transform:uppercase;color:#888;white-space:nowrap}

/* ---------- Images ---------- */
.is-style-fbtb-hard-shadow img{box-shadow:16px 20px 38px rgba(17,24,39,.45),5px 7px 14px rgba(17,24,39,.25);border-radius:6px}
.is-style-fbtb-soft-tile img{box-shadow:12px 12px 0 #e8e8e8}

/* ---------- Chips & status pills ---------- */
.fbtb-chips{gap:10px!important}
.fbtb-chips p{border:1px solid var(--wp--preset--color--ink);padding:6px 14px;margin:0!important;font-size:13.5px}
.fbtb-chips p strong{color:var(--wp--preset--color--blue);font-size:12px;letter-spacing:.08em;margin-right:6px}
.is-style-fbtb-pill{display:table;font-size:12.5px!important;font-weight:700;letter-spacing:.12em;text-transform:uppercase;padding:5px 12px;border:1px solid var(--wp--preset--color--ink);margin-left:auto!important;margin-right:auto!important;width:fit-content}
.is-style-fbtb-pill-blue{display:table;font-size:12.5px!important;font-weight:700;letter-spacing:.12em;text-transform:uppercase;padding:5px 12px;background:var(--wp--preset--color--blue);color:#fff;width:fit-content;margin-left:auto!important;margin-right:auto!important}

/* ---------- Devotional cards (query loop) ---------- */
.fbtb-card{border-top:3px solid var(--wp--preset--color--ink);height:100%}
.fbtb-card .wp-block-post-title a{text-decoration:none;color:inherit}
.fbtb-card .wp-block-post-title a:hover{color:var(--wp--preset--color--blue)}
.fbtb-card .wp-block-post-excerpt__more-link{font-weight:600;color:var(--wp--preset--color--blue);text-decoration:none}
.fbtb-card .wp-block-post-terms a{text-decoration:none;color:var(--wp--preset--color--blue)}

/* ---------- Verse callout & prayer (block styles) ---------- */
.wp-block-quote.is-style-fbtb-verse{border-left:3px solid var(--wp--preset--color--blue)!important;padding:6px 0 6px 26px!important;margin:2.2em 0!important;font-family:var(--wp--preset--font-family--serif);font-style:italic;font-size:1.35rem;line-height:1.5}
.wp-block-quote.is-style-fbtb-verse cite{display:block;margin-top:12px;font-family:var(--wp--preset--font-family--sans);font-style:normal;font-size:12.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--wp--preset--color--gray)}
.is-style-fbtb-prayer{font-family:var(--wp--preset--font-family--serif);font-style:italic;font-size:1.2rem;line-height:1.65}
.wp-block-group.is-style-fbtb-prayer-box{border-top:2px solid var(--wp--preset--color--ink);border-bottom:2px solid var(--wp--preset--color--ink);padding:28px 0}
.wp-block-group.is-style-fbtb-prayer-box p{font-family:var(--wp--preset--font-family--serif);font-style:italic;font-size:1.2rem;line-height:1.65}

/* ---------- Form placeholder ---------- */
.fbtb-form-placeholder{border:1px dashed currentColor;opacity:.85}

/* ---------- Footer ---------- */
.fbtb-footer a{text-decoration:none}
.fbtb-footer a:hover{color:#fff;text-decoration:underline}
.fbtb-footer .wp-block-navigation{gap:9px}
.fbtb-crisis strong{color:#fff}

/* ---------- Single post ---------- */
.fbtb-single .wp-block-post-content>p:first-of-type::first-letter{font-family:var(--wp--preset--font-family--serif);float:left;font-size:3.6em;line-height:.85;padding:6px 10px 0 0}
.fbtb-single .wp-block-post-terms a{text-decoration:none}

/* ---------- Mobile ---------- */
@media (max-width:781px){
 .fbtb-hero-copy{padding-bottom:var(--wp--preset--spacing--50)}
 .fbtb-hero-image{margin:0 calc(-1 * var(--wp--style--root--padding-right)) 0 calc(-1 * var(--wp--style--root--padding-left))!important}
 .fbtb-hero-image img{height:340px}
 .fbtb-hero-image figcaption{display:none}
 .fbtb-hero .wp-block-buttons,.fbtb-stack-mobile{flex-direction:column;align-items:stretch!important}
 .fbtb-hero .wp-block-button,.fbtb-stack-mobile .wp-block-button{width:100%}
 .fbtb-hero .wp-block-button__link,.fbtb-stack-mobile .wp-block-button__link{width:100%}
 .is-style-fbtb-hard-shadow img{box-shadow:11px 14px 28px rgba(17,24,39,.45),3px 5px 10px rgba(17,24,39,.25);border-radius:5px}
}

/* ---------- Section stacking: no gaps between full-width bands ---------- */
.wp-site-blocks>*{margin-block-start:0!important}
main.wp-block-group>*{margin-block-start:0!important}
hr.wp-block-separator.is-style-fbtb-blue-line,hr.wp-block-separator.is-style-fbtb-thick-blue{width:100%!important}
.wp-block-heading a{text-decoration:none;color:inherit}
.wp-block-heading a:hover{color:var(--wp--preset--color--blue)}

/* Keep the footer at the bottom on short pages */
.wp-site-blocks{min-height:100vh;display:flex;flex-direction:column}
.wp-site-blocks>*{width:100%}
.wp-site-blocks>footer.wp-block-template-part{margin-block-start:auto!important}
/* Cap large book covers on phones */
@media (max-width:781px){
  .is-style-fbtb-hard-shadow img,.is-style-fbtb-soft-tile img{max-width:260px!important}
  .wp-block-image.is-style-fbtb-hard-shadow,.wp-block-image.is-style-fbtb-soft-tile{text-align:center}
}

/* "Coming Soon to Amazon" badge: looks like a disabled button, not a link */
.is-style-fbtb-soon{display:table;width:fit-content;padding:14px 26px;border:1px dashed currentColor;font-family:var(--wp--preset--font-family--sans);font-size:15px!important;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75;cursor:not-allowed;user-select:none;margin-bottom:0!important}
.is-style-fbtb-soon::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--wp--preset--color--blue);margin-right:10px;vertical-align:middle;position:relative;top:-1px}
.has-text-align-center.is-style-fbtb-soon{margin-left:auto!important;margin-right:auto!important}
.fbtb-soon-note{margin-top:12px!important}
.fbtb-soon-note a{font-weight:600}
.fbtb-book-cta .is-style-fbtb-soon{margin-bottom:18px!important}
.is-style-fbtb-soon:not(.has-text-align-center){margin-left:0!important;margin-right:auto!important}
.is-layout-constrained>.is-style-fbtb-soon:not(.has-text-align-center){margin-left:max(0px,calc((100% - var(--wp--style--global--content-size))/2))!important;margin-right:auto!important}

/* MailerLite embedded form */
.fbtb-ml-wrap{max-width:560px;margin:var(--wp--preset--spacing--40) auto 0!important}
.fbtb-ml-fallback{text-align:center;font-size:14px;color:var(--wp--preset--color--silver);border:1px dashed #444;padding:18px}
.fbtb-ml-wrap:has(.ml-embedded:not(:empty)) .fbtb-ml-fallback{display:none}

/* ==========================================================
   Mobile menu (1.0.4): hamburger + full-screen overlay
   Core Navigation block, overlayMenu "mobile".
   ========================================================== */
/* Extra overlay-only items (email CTA, 988) stay hidden in the desktop bar */
.wp-block-navigation__responsive-container:not(.is-menu-open) .fbtb-nav-mobile-only{display:none!important}

/* Hamburger */
.fbtb-header .wp-block-navigation__responsive-container-open{color:var(--wp--preset--color--ink);padding:8px;margin-right:-8px;border-radius:0}
.fbtb-header .wp-block-navigation__responsive-container-open svg{width:30px;height:30px}
.fbtb-header .wp-block-navigation__responsive-container-open:hover{color:var(--wp--preset--color--blue)}

/* Overlay panel */
.fbtb-header .wp-block-navigation__responsive-container.is-menu-open{
  background:var(--wp--preset--color--ink)!important;color:#fff!important;
  padding:20px 24px calc(28px + env(safe-area-inset-bottom))!important;
  border-top:6px solid var(--wp--preset--color--blue);
  font-family:var(--wp--preset--font-family--serif)}
.fbtb-header .is-menu-open .wp-block-navigation__responsive-close{max-width:none;width:100%;height:100%}
.fbtb-header .is-menu-open .wp-block-navigation__responsive-dialog{display:flex;flex-direction:column;min-height:100%;position:relative}

/* Brand at the top of the overlay (cross mark + wordmark) */
.fbtb-header .is-menu-open .wp-block-navigation__responsive-dialog::before{
  content:"Faith Behind\A The Badge";white-space:pre;display:block;
  font-family:var(--wp--preset--font-family--display);font-weight:600;text-transform:uppercase;
  font-size:15px;letter-spacing:.14em;line-height:1.15;color:#fff;
  padding:3px 0 0 40px;min-height:40px;
  background:
   linear-gradient(#fff,#fff) 11px 0/4px 32px no-repeat,
   linear-gradient(#fff,#fff) 3px 9px/20px 4px no-repeat,
   linear-gradient(var(--wp--preset--color--blue),var(--wp--preset--color--blue)) 0 38px/26px 2px no-repeat}

/* Close X */
.fbtb-header .is-menu-open .wp-block-navigation__responsive-container-close{
  top:0;right:-8px;padding:8px;color:#fff;opacity:1}
.fbtb-header .is-menu-open .wp-block-navigation__responsive-container-close svg{width:30px;height:30px;fill:currentColor}
@media (hover:hover){.fbtb-header .is-menu-open .wp-block-navigation__responsive-container-close:hover{color:var(--wp--preset--color--blue-light)}}
.fbtb-header .is-menu-open .wp-block-navigation__responsive-container-close:focus-visible{outline:2px solid var(--wp--preset--color--blue-light);outline-offset:2px}

/* Links: left-aligned, large serif, thin divider lines with a blue accent */
.fbtb-header .is-menu-open .wp-block-navigation__responsive-container-content{
  padding-top:34px!important;flex:1;display:flex;flex-direction:column;align-items:stretch!important}
.fbtb-header .is-menu-open .wp-block-navigation__container{
  display:flex;flex-direction:column;align-items:stretch!important;gap:0!important;flex:1;width:100%;
  border-top:1px solid rgba(255,255,255,.16);position:relative}
.fbtb-header .is-menu-open .wp-block-navigation__container::before{
  content:"";position:absolute;top:-1px;left:0;width:56px;height:2px;background:var(--wp--preset--color--blue)}
.fbtb-header .is-menu-open .wp-block-navigation-item{width:100%;border-bottom:1px solid rgba(255,255,255,.16);align-items:stretch!important}
.fbtb-header .is-menu-open .wp-block-navigation-item__content{
  display:block;width:100%;box-sizing:border-box;padding:15px 0!important;
  font-family:var(--wp--preset--font-family--serif);font-size:1.7rem!important;font-weight:400;
  letter-spacing:0;line-height:1.2;color:#fff!important;text-align:left}
@media (hover:hover){.fbtb-header .is-menu-open .wp-block-navigation-item__content:hover{color:var(--wp--preset--color--blue-light)!important}}
.fbtb-header .is-menu-open .wp-block-navigation-item__content:focus-visible{color:var(--wp--preset--color--blue-light)!important;outline:2px solid var(--wp--preset--color--blue-light);outline-offset:2px}
.fbtb-header .is-menu-open .wp-block-navigation-item__content:active{color:var(--wp--preset--color--blue-light)!important}
.fbtb-header .is-menu-open .current-menu-item>.wp-block-navigation-item__content,
.fbtb-header .is-menu-open .wp-block-navigation-item__content[aria-current="page"]{box-shadow:inset 3px 0 0 var(--wp--preset--color--blue);padding-left:14px!important}

/* Email list button */
.fbtb-header .is-menu-open .fbtb-nav-cta{border-bottom:0;margin-top:30px}
.fbtb-header .is-menu-open .fbtb-nav-cta .wp-block-navigation-item__content{
  background:var(--wp--preset--color--blue);color:#fff!important;text-align:center;
  font-family:var(--wp--preset--font-family--sans);font-size:16px!important;font-weight:700;letter-spacing:.04em;
  padding:16px 20px!important}
@media (hover:hover){.fbtb-header .is-menu-open .fbtb-nav-cta .wp-block-navigation-item__content:hover{background:#174a8c;color:#fff!important}}

/* 988 crisis line, pinned to the bottom */
.fbtb-header .is-menu-open .fbtb-nav-988{border-bottom:0;margin-top:auto;padding-top:28px}
.fbtb-header .is-menu-open .fbtb-nav-988 .wp-block-navigation-item__content{
  font-family:var(--wp--preset--font-family--sans);font-size:15px!important;font-weight:600;color:#fff!important;
  text-align:center;padding:14px 0 0!important;border-top:1px solid rgba(255,255,255,.16)}

/* No shop on this site: hide WooCommerce cart/account icons if they end up in the header
   (e.g. a header customized in the Site Editor that saved WooCommerce's hooked blocks). */
.fbtb-header .wp-block-woocommerce-mini-cart,
.fbtb-header .wc-block-mini-cart,
.fbtb-header .wp-block-woocommerce-customer-account,
.fbtb-header .wc-block-customer-account{display:none!important}
