/* =====================================================================
   NBG HOMEPAGE STYLES  —  scoped to .nbg-home, loaded ONLY on front page
   (enqueued by mu-plugin nbg-home.php via is_front_page()).
   Does NOT touch sitewide custom_css, header, footer, or Pinterest band.
   Every selector is prefixed .nbg-home so it out-specifies the sitewide
   :is(.single-post,.page) .entry-content rules and never leaks outward.
   Tokens mirror DESIGN-SYSTEM.md.
   ===================================================================== */
.nbg-home{
  --ink:#23272F; --ink-soft:#565C68;
  --cream:#FBF6EE; --white:#FFFFFF;
  --orange:#F26B21; --orange-dk:#C24F12;
  --teal:#159C8E; --teal-dk:#0E7C70;
  --butter:#FFC94D; --hl:#FFDD82; --blush:#FFEEE1; --mint-band:#E3F4F0;
  --peach:#FFE7D3; --mint:#DDF3EF; --lemon:#FFF1C9; --pink:#FBDDEC;
  --line:#ECE3D6;
  --wrap:1180px;
  font-size:18px; line-height:1.6; color:var(--ink);
  /* full-bleed cream canvas — homepage never depends on the theme body bg,
     and banded sections span edge-to-edge (same break-out the pinfollow band uses) */
  width:100vw; margin-left:calc(50% - 50vw); background:var(--cream);
}
.nbg-home *{box-sizing:border-box}
.nbg-home a{text-decoration:none; color:inherit}
.nbg-home img{max-width:100%; height:auto}

.nbg-home .wrap{max-width:var(--wrap); margin:0 auto; padding:0}

/* homepage: let the cream hero meet the header's crisp line (kills the 24px theme gap) */
body.home #primary.content-area{margin-top:0}
.nbg-home .section{padding-top:74px; padding-bottom:74px}
/* safety side-gutter only when the viewport approaches the content width */
@media(max-width:1220px){ .nbg-home .wrap{padding-left:24px; padding-right:24px} }
.nbg-home .center{text-align:center}
.nbg-home .mt40{margin-top:40px}

/* eyebrow + section heads */
.nbg-home .eyebrow{font-size:13px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:var(--teal-dk); margin:0 0 10px}
.nbg-home .shead{font-size:clamp(26px,3.4vw,38px); font-weight:800; letter-spacing:-.02em; line-height:1.12; margin:0; color:var(--ink); text-wrap:balance}
.nbg-home .shead .swipe{background:linear-gradient(transparent 56%, var(--hl) 56%); padding:0 .06em; box-decoration-break:clone; -webkit-box-decoration-break:clone}
.nbg-home .sec-head{display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:36px}
.nbg-home .sec-head p.sub{margin:8px 0 0; color:var(--ink-soft); font-size:16.5px; max-width:56ch}

/* buttons */
.nbg-home .btn{display:inline-block; font-weight:700; padding:12px 22px; border:2px solid var(--ink); background:var(--orange); color:#fff; cursor:pointer; font-size:15.5px; transition:transform .08s; line-height:1.2}
.nbg-home .btn:hover{transform:translate(-2px,-2px)}
.nbg-home .btn--teal{background:var(--teal); color:#fff}
.nbg-home .btn--ghost{background:transparent; color:var(--ink)}
/* buttons: force legible text (beats the sitewide entry-content link colour) */
.nbg-home a.btn:not(.btn--ghost){color:#fff !important}
.nbg-home a.btn--ghost{color:var(--ink) !important}
.nbg-home .seeall{display:inline-flex; align-items:center; gap:7px; font-weight:800; color:var(--orange-dk); border-bottom:2.5px solid var(--orange); padding-bottom:2px; font-size:15.5px}
.nbg-home .seeall:hover{color:var(--ink)}

/* ---------- HERO ---------- */
.nbg-home .hero{background:
   radial-gradient(circle at 10% 16%, var(--blush) 0 20%, transparent 20.5%),
   var(--cream);
   padding:60px 0 0; border-bottom:2px solid var(--ink); overflow:hidden; position:relative}
.nbg-home .hero-grid{display:grid; grid-template-columns:1.05fr .95fr; gap:40px; align-items:stretch; position:relative; z-index:1}
/* confetti scattered across the whole hero */
.nbg-home .hero-confetti{position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden}
.nbg-home .cf{position:absolute}
.nbg-home .cf.dot{width:10px; height:10px; border-radius:50%; background:currentColor}
.nbg-home .cf.sq{width:11px; height:11px; background:currentColor}
.nbg-home .cf.ring{width:16px; height:16px; border-radius:50%; border:4px solid currentColor; box-sizing:border-box}
.nbg-home .cf.tri{width:0; height:0; border-left:7px solid transparent; border-right:7px solid transparent; border-bottom:12px solid currentColor}
.nbg-home .cf.plus{width:15px; height:15px}
.nbg-home .cf.plus::before,
.nbg-home .cf.plus::after{content:""; position:absolute; background:currentColor; border-radius:1px}
.nbg-home .cf.plus::before{left:50%; top:0; width:4px; height:100%; transform:translateX(-50%)}
.nbg-home .cf.plus::after{top:50%; left:0; height:4px; width:100%; transform:translateY(-50%)}
.nbg-home .hero-copy{align-self:center; padding:8px 0 64px}
/* right column: kid standing on the teal circle, floating shapes around */
.nbg-home .hero-art{position:relative; display:flex; align-items:flex-end; justify-content:center; min-height:480px}
.nbg-home .hero-circle{position:absolute; z-index:0; bottom:0; left:50%; transform:translateX(-50%);
  width:min(460px,100%); aspect-ratio:1; background:var(--mint-band); border-radius:50%}
.nbg-home .hero-kid{position:relative; z-index:2; width:min(472px,100%); height:auto; display:block; align-self:flex-end}
.nbg-home .hshape{position:absolute; z-index:1}
.nbg-home .hshape--plus{top:6%; right:16%; width:26px; height:26px}
.nbg-home .hshape--plus::before,
.nbg-home .hshape--plus::after{content:""; position:absolute; background:var(--orange); border-radius:2px}
.nbg-home .hshape--plus::before{left:50%; top:0; width:6px; height:100%; transform:translateX(-50%)}
.nbg-home .hshape--plus::after{top:50%; left:0; height:6px; width:100%; transform:translateY(-50%)}
.nbg-home .hshape--diamond{top:34%; right:3%; width:22px; height:22px; background:var(--teal); transform:rotate(45deg)}
.nbg-home .hshape--ring{bottom:20%; left:6%; width:26px; height:26px; border:5px solid var(--butter); border-radius:50%}
.nbg-home .hero .kicker{display:inline-block; background:var(--butter); border:2px solid var(--ink); font-weight:800; font-size:13.5px; letter-spacing:.05em; padding:6px 14px; transform:rotate(-1.5deg); margin-bottom:22px}
.nbg-home .hero h1{font-size:clamp(38px,6.4vw,72px); line-height:1.02; letter-spacing:-.03em; font-weight:850; margin:0 0 20px; max-width:16ch; color:var(--ink); text-wrap:balance}
.nbg-home .hero h1 em{font-style:normal; color:var(--orange)}
.nbg-home .hero .lede{font-size:clamp(18px,2.1vw,22px); color:var(--ink-soft); max-width:46ch; margin:0 0 30px}
.nbg-home .searchbar{display:flex; max-width:560px; border:2.5px solid var(--ink); background:#fff}
.nbg-home .searchbar input{flex:1; border:0; outline:0; font:inherit; font-size:17px; padding:15px 18px; background:transparent}
.nbg-home .searchbar button{border:0; border-left:2.5px solid var(--ink); background:var(--orange); color:#fff; font-weight:800; padding:0 26px; font-size:16px; cursor:pointer}
.nbg-home .searchbar button:hover{background:var(--orange-dk)}
.nbg-home .hero-actions{display:flex; gap:14px; margin-top:22px; flex-wrap:wrap; align-items:center}
.nbg-home .hero-actions .or{color:var(--ink-soft); font-size:15px; font-weight:600}
.nbg-home .trust{display:flex; gap:34px; flex-wrap:wrap; margin-top:44px; padding-top:26px; border-top:2px dashed var(--line)}
.nbg-home .trust .t{display:flex; flex-direction:column}
.nbg-home .trust .n{font-size:26px; font-weight:850; color:var(--orange); line-height:1}
.nbg-home .trust .l{font-size:13.5px; font-weight:700; letter-spacing:.04em; color:var(--ink-soft); margin-top:5px; text-transform:uppercase}

/* ---------- AUDIENCE TILES ---------- */
.nbg-home .tiles{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.nbg-home .tile{border:2.5px solid var(--ink); padding:26px 22px 22px; position:relative; display:block; transition:transform .1s; min-height:172px}
.nbg-home .tile:hover{transform:translate(-3px,-3px)}
.nbg-home .tile .emoji{font-size:40px; line-height:1; display:block; margin-bottom:16px}
.nbg-home .tile h3{margin:0 0 6px; font-size:22px; font-weight:800; letter-spacing:-.01em; color:var(--ink)}
.nbg-home .tile p{margin:0; font-size:15px; color:var(--ink-soft)}
.nbg-home .tile .badge{position:absolute; top:16px; right:16px; font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; padding:4px 9px; border:2px solid var(--ink)}
.nbg-home .badge--live{background:var(--teal); color:#fff}
.nbg-home .badge--soon{background:var(--white); color:var(--ink-soft)}
.nbg-home .tile.peach{background:var(--peach)} .nbg-home .tile.mint{background:var(--mint)}
.nbg-home .tile.lemon{background:var(--lemon)} .nbg-home .tile.pink{background:var(--pink)}
.nbg-home .tile.blush{background:var(--blush)} .nbg-home .tile.white{background:var(--white)}

/* ---------- STATIC CARDS (curated picks) ---------- */
.nbg-home .cards{display:grid; grid-template-columns:repeat(4,1fr); gap:20px}
.nbg-home .cards.three{grid-template-columns:repeat(3,1fr)}
.nbg-home .card{border:2.5px solid var(--ink); background:#fff; display:flex; flex-direction:column; transition:transform .1s; position:relative}
.nbg-home .card:hover{transform:translate(-3px,-3px)}
.nbg-home .card .thumb{aspect-ratio:4/3; display:block; width:100%; object-fit:cover; border-bottom:2.5px solid var(--ink)}
.nbg-home .card .body{padding:16px 16px 18px; display:flex; flex-direction:column; gap:9px; flex:1}
.nbg-home .card h4{margin:0; font-size:17.5px; font-weight:750; line-height:1.28; letter-spacing:-.01em; color:var(--ink)}
.nbg-home .card .meta{margin-top:auto; font-size:13px; color:var(--ink-soft); font-weight:600; display:flex; gap:10px; align-items:center}
.nbg-home .card .meta .pill{background:var(--lemon); border:1.5px solid var(--ink); padding:2px 8px; font-size:11.5px}
.nbg-home .card.pick .ribbon{position:absolute; top:12px; right:-2px; background:var(--orange); color:#fff; font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; padding:5px 12px; border:2px solid var(--ink); z-index:2}

/* ---------- DYNAMIC FEED (native core/query) styled as cards ---------- */
.nbg-home .nbg-feed .wp-block-post-template{
  display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin:0; padding:0; list-style:none}
.nbg-home .nbg-feed.cols3 .wp-block-post-template{grid-template-columns:repeat(3,1fr)}
.nbg-home .nbg-feed li.wp-block-post{
  border:2.5px solid var(--ink); background:#fff; display:flex; flex-direction:column;
  margin:0; padding:0; transition:transform .1s; overflow:hidden}
.nbg-home .nbg-feed li.wp-block-post:hover{transform:translate(-3px,-3px)}
.nbg-home .nbg-feed .wp-block-post-featured-image{
  margin:0; border-bottom:2.5px solid var(--ink); line-height:0}
.nbg-home .nbg-feed .wp-block-post-featured-image img{
  width:100%; aspect-ratio:4/3; object-fit:cover; display:block}
.nbg-home .nbg-feed .wp-block-post-featured-image a{display:block}
.nbg-home .nbg-feed .nbg-cardbody{padding:16px 16px 18px; display:flex; flex-direction:column; gap:8px; flex:1}
/* title = dark ink (out-specify + !important to beat sitewide entry-content link color) */
.nbg-home .nbg-feed li.wp-block-post .wp-block-post-title{
  margin:0; font-size:17.5px; font-weight:750; line-height:1.28; letter-spacing:-.01em}
.nbg-home .nbg-feed li.wp-block-post .wp-block-post-title,
.nbg-home .nbg-feed li.wp-block-post .wp-block-post-title a{color:var(--ink) !important}
.nbg-home .nbg-feed li.wp-block-post .wp-block-post-title a:hover{color:var(--orange-dk) !important}
/* category line hidden on cards: every post shares the same 4 categories + an
   "All" catch-all, so a label is noise. Clean image + title reads better. */
.nbg-home .nbg-feed li.wp-block-post .wp-block-post-terms{display:none}

/* ---------- band backgrounds ---------- */
.nbg-home .band-tint{background:var(--mint-band); border-top:2px solid var(--ink); border-bottom:2px solid var(--ink)}
.nbg-home .band-white{background:#fff; border-top:2px solid var(--ink); border-bottom:2px solid var(--ink)}

/* ---------- chips ---------- */
.nbg-home .chips{display:flex; flex-wrap:wrap; gap:12px}
.nbg-home .chip{border:2px solid var(--ink); background:#fff; padding:11px 18px; font-weight:700; font-size:15.5px; display:flex; align-items:center; gap:9px; transition:transform .08s; color:var(--ink)}
.nbg-home .chip:hover{transform:translate(-2px,-2px); background:var(--hl)}
.nbg-home .chip .e{font-size:18px}

/* ---------- author ---------- */
/* two separate boxes side by side (photo box + info box) */
.nbg-home .author{display:grid; grid-template-columns:minmax(240px,36%) 1fr; gap:24px; align-items:stretch; border:0; background:transparent; padding:0}
.nbg-home .author .photo{background:var(--peach); border:2.5px solid var(--ink); display:block; min-height:340px; overflow:hidden}
.nbg-home .author .photo img{width:100%; height:100%; object-fit:cover; object-position:center 18%; display:block}
.nbg-home .author .info{border:2.5px solid var(--ink); background:#fff; padding:36px 40px; display:flex; flex-direction:column; justify-content:center}
.nbg-home .author .info .btn{align-self:flex-start}
.nbg-home .author h3{font-size:30px; font-weight:800; margin:0 0 6px; letter-spacing:-.02em; color:var(--ink)}
.nbg-home .author .hi{color:var(--teal-dk); font-weight:800; letter-spacing:.02em}
.nbg-home .author p{margin:0 0 18px; color:var(--ink-soft); font-size:17px; max-width:60ch}

/* ---------- email band ---------- */
.nbg-home .email{background:var(--butter); border-top:2.5px solid var(--ink); border-bottom:2.5px solid var(--ink)}
.nbg-home .email .inner{display:grid; grid-template-columns:1.2fr 1fr; gap:40px; align-items:center; padding:56px 0}
.nbg-home .email h2{font-size:clamp(26px,3.2vw,36px); font-weight:850; margin:0 0 10px; letter-spacing:-.02em; line-height:1.1; color:var(--ink)}
.nbg-home .email p{margin:0; font-size:17px; color:#6a4a12}
.nbg-home .email .form{display:flex; border:2.5px solid var(--ink); background:#fff}
.nbg-home .email .form input{flex:1; border:0; outline:0; font:inherit; padding:15px 16px; background:transparent}
.nbg-home .email .form button{border:0; border-left:2.5px solid var(--ink); background:var(--teal); color:#fff; font-weight:800; padding:0 24px; cursor:pointer}
.nbg-home .email .ph{font-size:12.5px; color:#8a6a2a; margin-top:10px; font-weight:600}

/* ---------- responsive ---------- */
@media(max-width:900px){
  /* hero stacks: copy on top, kid centered below */
  .nbg-home .hero{padding:52px 0 0}
  .nbg-home .hero-grid{grid-template-columns:1fr; gap:8px}
  .nbg-home .hero-copy{align-self:auto; padding:0 0 28px; text-align:center}
  .nbg-home .hero .searchbar{margin-left:auto; margin-right:auto}
  .nbg-home .hero-actions,.nbg-home .trust{justify-content:center}
  .nbg-home .trust{border-top:none}
  .nbg-home .hero-art{min-height:360px}
  .nbg-home .hero-circle{width:min(360px,90%)}
  .nbg-home .hero-kid{width:min(320px,90%)}
  .nbg-home .tiles{grid-template-columns:repeat(2,1fr)}
  .nbg-home .cards,.nbg-home .cards.three{grid-template-columns:repeat(2,1fr)}
  .nbg-home .nbg-feed .wp-block-post-template,
  .nbg-home .nbg-feed.cols3 .wp-block-post-template{grid-template-columns:repeat(2,1fr)}
  .nbg-home .author{grid-template-columns:1fr; gap:16px; text-align:center}
  .nbg-home .author .photo{min-height:220px; max-height:300px}
  .nbg-home .author .info{padding:28px 24px}
  .nbg-home .author .info .btn{align-self:center}
  .nbg-home .email .inner{grid-template-columns:1fr}
}
@media(max-width:560px){
  .nbg-home .hero-confetti{display:none}
  .nbg-home .tiles{grid-template-columns:1fr}
  .nbg-home .cards,.nbg-home .cards.three{grid-template-columns:1fr}
  .nbg-home .nbg-feed .wp-block-post-template,
  .nbg-home .nbg-feed.cols3 .wp-block-post-template{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  .nbg-home *{transition:none !important}
}
