/* ============================================================
   COLDLETTER — Section styles (consolidated from page style blocks)
   ============================================================ */

/* ---- Home (index.html) ---- */
/* ============ HERO ============ */
.hero { position: relative; overflow: hidden; padding-top: 76px; padding-bottom: 110px; }
.hero-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 5.2vw, 4.5rem); margin: 22px 0 24px; }
.hero h1 .ink-accent { color: var(--flare); }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-micro { margin-top: 20px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; color: var(--ink-3); display: flex; gap: 16px; flex-wrap: wrap; }
.hero-micro span { display: inline-flex; align-items: center; gap: 7px; }
.hero-micro .tick { color: var(--flare); font-weight: 700; }

/* soft warm glow behind mockup */
.hero::after {
  content: ""; position: absolute; right: -14%; top: 8%; width: 760px; height: 620px;
  background: radial-gradient(circle, var(--flare-glow), transparent 62%);
  filter: blur(20px); z-index: 0; pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; }

/* ============ APP MOCKUP ============ */
.app { 
  background: var(--card); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-lg); width: 100%;
  font-size: 13px;
}
.app-hero { transform: perspective(2200px) rotateY(-7deg) rotateX(1.5deg); transform-origin: left center; }
.app-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--card-2); border-bottom: 1px solid var(--hair); }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; background: var(--hair-strong); }
.app-url { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); background: var(--paper); padding: 5px 12px; border-radius: var(--r-pill); }
.app-body { display: grid; grid-template-columns: 184px 1fr 196px; min-height: 430px; }

/* left rail */
.app-rail { background: var(--card-2); padding: 16px 12px; border-right: 1px solid var(--hair); }
.rail-h { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); padding: 4px 8px 10px; }
.rail-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; font-size: 12.5px; }
.rail-item.active { background: var(--ink); color: var(--cream); }
.rail-item .ic { width: 15px; height: 15px; opacity: .8; }
.rail-item.active .ic { opacity: 1; }
.rail-tpl { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 12.5px; }
.rail-tpl:hover, .rail-tpl.on { background: var(--paper); }
.rail-tpl .sw { width: 8px; height: 8px; border-radius: 2px; }

/* center canvas */
.app-canvas { background: var(--sand); padding: 22px; overflow: hidden; }
.canvas-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.canvas-name { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
.canvas-tools { display: flex; gap: 6px; }
.canvas-tools b { width: 26px; height: 26px; border-radius: var(--r-xs); background: var(--card); display: grid; place-items: center; box-shadow: var(--sh-xs); }
.email { background: #fff; border-radius: var(--r-sm); box-shadow: var(--sh-sm); overflow: hidden; max-width: 360px; margin: 0 auto; }
.email-head { background: var(--ink); padding: 18px 22px; }
.email-logo { display: flex; align-items: center; gap: 7px; color: var(--cream); font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: -0.03em; }
.email-logo .m { width: 16px; height: 16px; border-radius: 4px; background: var(--flare); }
.email-body { padding: 20px 22px 24px; }
.eb-tag { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--flare); }
.eb-h { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.03em; line-height: 1.05; margin: 8px 0 10px; color: var(--ink); }
.eb-p { font-size: 11.5px; color: var(--ink-2); line-height: 1.6; }
.eb-var { background: var(--flare-tint); color: var(--flare-press); border-radius: 3px; padding: 0 3px; font-family: var(--mono); font-size: 10.5px; }
.eb-btn { display: inline-block; background: var(--flare); color: #fff; font-weight: 600; font-size: 11px; padding: 9px 16px; border-radius: var(--r-xs); margin-top: 14px; }
.eb-card { background: var(--card-2); border-radius: var(--r-xs); padding: 12px 14px; margin-top: 14px; display: flex; gap: 10px; align-items: center; }
.eb-card .px { width: 34px; height: 34px; border-radius: 6px; background: linear-gradient(135deg, var(--flare), var(--flare-2)); flex: none; }
.eb-card .l1 { height: 7px; width: 80%; background: var(--hair-strong); border-radius: 3px; }
.eb-card .l2 { height: 6px; width: 55%; background: var(--hair); border-radius: 3px; margin-top: 6px; }

/* block selected highlight */
.email-body { position: relative; }
.blk-sel { position: relative; }
.blk-sel::before { content: ""; position: absolute; inset: -8px -10px; border: 1.5px solid var(--flare); border-radius: 6px; pointer-events: none; }
.blk-sel::after { content: "Headline"; position: absolute; top: -8px; left: -10px; transform: translateY(-100%); background: var(--flare); color: #fff; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.06em; padding: 2px 6px; border-radius: 4px 4px 4px 0; }

/* right panel */
.app-panel { background: var(--card); padding: 16px 14px; border-left: 1px solid var(--hair); }
.panel-h { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field label { font-size: 10.5px; font-weight: 600; color: var(--ink-3); display: block; margin-bottom: 5px; }
.field .inp { background: var(--card-2); border-radius: var(--r-xs); padding: 7px 10px; font-size: 11.5px; color: var(--ink); font-family: var(--mono); }
.field .inp.focus { box-shadow: inset 0 0 0 1.5px var(--flare); background: #fff; }
.swatches { display: flex; gap: 6px; margin-top: 4px; }
.swatches i { width: 22px; height: 22px; border-radius: 5px; display: block; }
.swatches i.sel { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ink); }
.panel-var { display: flex; align-items: center; justify-content: space-between; background: var(--card-2); border-radius: var(--r-xs); padding: 7px 10px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); margin-bottom: 6px; }
.panel-var b { color: var(--flare-press); font-weight: 500; }

/* ============ INTEGRATION STRIP ============ */
.strip { padding: 40px 0; border-block: 1px solid var(--hair); }
.strip-lead { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); text-align: center; margin-bottom: 26px; }
.logos { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.logos .lg { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; color: var(--ink-3); transition: color .2s; }
.logos .lg:hover { color: var(--ink); }

/* ============ SPOTLIGHT ============ */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.spot.rev .spot-text { order: 2; }
.feat-list { margin-top: 26px; display: grid; gap: 16px; }
.feat-list li { list-style: none; display: flex; gap: 13px; align-items: flex-start; }
.feat-list .fi { width: 26px; height: 26px; border-radius: var(--r-xs); background: var(--flare-tint); color: var(--flare-press); display: grid; place-items: center; flex: none; margin-top: 1px; }
.feat-list b { font-weight: 700; color: var(--ink); }
.feat-list span { color: var(--ink-2); }

/* spotlight visual: journey builder */
.journey { background: var(--card); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--sh-md); }
.jstep { display: flex; align-items: center; gap: 14px; }
.jnode { flex: 1; background: var(--card-2); border-radius: var(--r-md); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.jnode .ji { width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; }
.jnode.trigger .ji { background: var(--ink); color: var(--cream); }
.jnode.mail .ji { background: var(--flare); color: #fff; }
.jnode.wait .ji { background: var(--warn-bg); color: var(--warn); }
.jnode.cond .ji { background: var(--info-bg); color: var(--info); }
.jnode .jt { font-weight: 700; font-size: 13px; }
.jnode .js { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.jconn { width: 2px; height: 18px; background: var(--hair-strong); margin-left: 25px; }
.jbranch { display: flex; gap: 14px; }
.jbranch > div { flex: 1; }
.jtag { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); margin: 0 0 7px 14px; }

/* ============ FEATURE GRID ============ */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fcard { background: var(--card); border-radius: var(--r-lg); padding: 32px; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.fcard .fic { width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--ink); color: var(--cream); display: grid; place-items: center; margin-bottom: 20px; }
.fcard h3 { font-size: 1.18rem; margin-bottom: 9px; }
.fcard p { font-size: 0.95rem; color: var(--ink-2); }

/* ============ CODE BAND ============ */
.code-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.code-win { background: var(--night-2); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); }
.code-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--hair-dark); }
.code-bar .dt { width: 11px; height: 11px; border-radius: 50%; background: var(--night-3); }
.code-bar .fn { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--cream-2); }
.code-body { padding: 22px 24px; font-family: var(--mono); font-size: 13px; line-height: 1.85; color: var(--cream); overflow-x: auto; }
.code-body .cm { color: #7C8B7E; }
.code-body .kw { color: #FF8A6B; }
.code-body .st { color: #C9D6A8; }
.code-body .fn2 { color: #E5C07B; }
.code-body .pr { color: var(--cream-2); }

/* ============ TESTIMONIALS ============ */
.quote-feat { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: stretch; }
.quote-big { background: var(--ink); color: var(--cream); border-radius: var(--r-xl); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.quote-big .q { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.18; }
.quote-big .q .mk { color: var(--flare-2); }
.qmeta { display: flex; align-items: center; gap: 13px; margin-top: 34px; }
.qmeta .av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--flare), var(--flare-2)); flex: none; }
.qmeta .nm { font-weight: 700; }
.qmeta .rl { font-size: 0.85rem; color: var(--cream-2); }
.stat-col { display: grid; gap: 22px; }
.statc { background: var(--card); border-radius: var(--r-lg); padding: 28px 30px; }
.statc .n { font-family: var(--display); font-weight: 800; font-size: 2.6rem; letter-spacing: -0.04em; line-height: 1; }
.statc .n .u { color: var(--flare); }
.statc .l { color: var(--ink-2); font-size: 0.95rem; margin-top: 8px; }

/* ============ FINAL CTA ============ */
.cta-band { position: relative; overflow: hidden; text-align: center; }
.cta-band::before { content: ""; position: absolute; left: 50%; top: -30%; width: 700px; height: 500px; transform: translateX(-50%); background: radial-gradient(circle, rgba(255,78,41,0.22), transparent 60%); }
.cta-band .inner { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }

@media (max-width: 940px) {
  .hero-grid, .spot, .code-grid, .quote-feat { grid-template-columns: 1fr; gap: 40px; }
  .app-hero { transform: none; }
  .spot.rev .spot-text { order: 0; }
  .fgrid { grid-template-columns: 1fr; }
  .hero::after { display: none; }
}

/* ---- Pricing (pricing.html) ---- */
.pr-hero { padding: 80px 0 48px; text-align: center; }
.pr-hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); margin: 20px auto 18px; max-width: 760px; }
.pr-hero .lede { max-width: 560px; margin-inline: auto; }

.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.tier { background: var(--card); border-radius: var(--r-xl); padding: 36px 32px; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--hair); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.tier:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.tier.feature { background: var(--night); color: var(--cream); box-shadow: var(--sh-lg); position: relative; }
.tier.feature h3, .tier.feature .price .amt { color: var(--cream); }
.tier-name { font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; }
.tier-desc { font-size: 0.92rem; color: var(--ink-3); margin-top: 6px; min-height: 42px; }
.tier.feature .tier-desc { color: var(--cream-2); }
.price { margin: 24px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.price .amt { font-family: var(--display); font-weight: 800; font-size: 3.2rem; letter-spacing: -0.04em; line-height: 1; }
.price .per { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.tier.feature .price .per { color: var(--cream-2); }
.tier .btn { width: 100%; margin: 22px 0 26px; }
.plan-feats { list-style: none; display: grid; gap: 13px; }
.plan-feats li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.95rem; color: var(--ink-2); }
.tier.feature .plan-feats li { color: var(--cream-2); }
.plan-feats .ck { flex: none; width: 19px; height: 19px; border-radius: 50%; background: var(--flare-tint); color: var(--flare-press); display: grid; place-items: center; margin-top: 1px; }
.tier.feature .plan-feats .ck { background: rgba(255,107,71,0.18); color: var(--flare-2); }
.ribbon { position: absolute; top: 22px; right: 22px; }

/* enterprise */
.ent { background: var(--sand); border-radius: var(--r-xl); padding: 44px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }

/* comparison */
.cmp { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--hair); }
.cmp thead th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.cmp tbody th { font-weight: 600; color: var(--ink); }
.cmp td { text-align: center; color: var(--ink-2); font-size: 0.95rem; }
.cmp td:first-child, .cmp th:first-child { text-align: left; }
.cmp .yes { color: var(--good); font-weight: 700; }
.cmp .feat-col { background: rgba(255,78,41,0.04); }
.cmp tbody tr:hover { background: var(--card-2); }
.cmp-h { font-family: var(--display); font-weight: 800; }

/* faq */
.faq { max-width: 760px; margin-inline: auto; }
.qa { border-bottom: 1px solid var(--hair); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; }
.qa summary::-webkit-details-marker { display: none; }
.qa .pl { flex: none; width: 24px; height: 24px; position: relative; transition: transform .25s var(--ease-out); color: var(--flare); }
.qa[open] .pl { transform: rotate(45deg); }
.qa .pl::before, .qa .pl::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.qa .pl::before { left: 50%; top: 4px; width: 2px; height: 16px; transform: translateX(-50%); }
.qa .pl::after { top: 50%; left: 4px; height: 2px; width: 16px; transform: translateY(-50%); }
.qa p { padding: 0 0 24px; color: var(--ink-2); max-width: 640px; }

@media (max-width: 920px) { .tiers { grid-template-columns: 1fr; } .ent { grid-template-columns: 1fr; } .cmp { font-size: 0.85rem; } .cmp th, .cmp td { padding: 12px 10px; } }

/* ---- Blog (blog.html) ---- */
.bl-hero { padding: 76px 0 40px; }
.bl-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin: 18px 0 0; }

.bl-cats { display: flex; gap: 10px; flex-wrap: wrap; margin: 36px 0 48px; }
.cat { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; padding: 8px 16px; border-radius: var(--r-pill); color: var(--ink-2); background: var(--card); box-shadow: 0 0 0 1px var(--hair); cursor: pointer; transition: all .2s; }
.cat:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--hair-strong); }
.cat.on { background: var(--ink); color: var(--cream); box-shadow: none; }

/* featured */
.feat-post { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); background: var(--card); margin-bottom: 56px; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.feat-post:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.feat-thumb { min-height: 380px; position: relative; display: grid; place-items: center; }
.feat-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.feat-body .meta { display: flex; gap: 12px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 18px; }
.feat-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin-bottom: 14px; }
.feat-body p { color: var(--ink-2); margin-bottom: 24px; }
.readmore { font-family: var(--sans); font-weight: 600; color: var(--flare-press); display: inline-flex; align-items: center; gap: 7px; }
.readmore .arr { transition: transform .25s var(--ease-out); }
.feat-post:hover .readmore .arr { transform: translateX(4px); }

/* grid */
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.post { display: flex; flex-direction: column; cursor: pointer; }
.post-thumb { border-radius: var(--r-lg); height: 200px; position: relative; overflow: hidden; display: grid; place-items: center; }
.post-thumb .glyph { font-family: var(--display); font-weight: 800; font-size: 2.6rem; opacity: 0.9; }
.post:hover .post-thumb { transform: translateY(-4px); box-shadow: var(--sh-md); }
.post-thumb { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.post .meta { display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); text-transform: uppercase; margin: 20px 0 9px; }
.post h3 { font-size: 1.25rem; line-height: 1.12; margin-bottom: 9px; }
.post:hover h3 { color: var(--flare-press); }
.post h3, .post-thumb { transition: color .2s; }
.post p { font-size: 0.93rem; color: var(--ink-3); }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }

/* gradients for thumbs */
.g1 { background: linear-gradient(135deg, #FF4E29, #FF6B47); color: #fff; }
.g2 { background: var(--night); color: var(--cream); }
.g3 { background: linear-gradient(135deg, #F1EEE5, #E4DFD2); color: var(--ink); }
.g4 { background: linear-gradient(135deg, #2D6CDF, #5B8DF0); color: #fff; }
.g5 { background: linear-gradient(135deg, #1F9D63, #3DBF82); color: #fff; }
.g6 { background: linear-gradient(135deg, #221F19, #3A3529); color: var(--cream); }

/* envelope motif in thumbs */
.env { width: 100px; height: 74px; opacity: 0.92; }

/* newsletter */
.news { background: var(--night); border-radius: var(--r-xl); padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.news h2 { color: var(--cream); font-size: clamp(1.6rem,2.6vw,2.2rem); }
.news p { color: var(--cream-2); margin-top: 10px; }
.news form { display: flex; gap: 10px; }
.news input { flex: 1; background: var(--night-2); border: 0; border-bottom: 1.5px solid var(--hair-dark); color: var(--cream); padding: 13px 14px; border-radius: var(--r-sm); font-family: var(--sans); font-size: 15px; outline: none; }
.news input:focus { border-bottom-color: var(--flare); }
.news input::placeholder { color: var(--cream-2); }

@media (max-width: 920px) { .feat-post, .news { grid-template-columns: 1fr; } .post-grid { grid-template-columns: 1fr; } .feat-thumb { min-height: 240px; } .feat-body { padding: 32px; } }

/* ============ WORDPRESS BRIDGE ============ */
/* Neutralize default block spacing where Coldletter controls layout */
.wp-block-group.wrap, .wp-block-group.wrap-wide { margin-inline: auto; }
.wp-block-buttons { gap: 14px; }

/* ---- Buttons: the .btn-* variant classes live on the .wp-block-button WRAPPER, but the
   rendered button is the .wp-block-button__link anchor (which theme.json paints flare). So
   neutralize the wrapper's button skin and apply each variant to the actual link element.
   (Plain <a class="btn"> anchors in the header/footer and pricing tiers are untouched.) ---- */
.wp-block-button.btn { background: transparent; box-shadow: none; padding: 0; }
.wp-block-button[class*="btn-"] > .wp-block-button__link { border: 0; border-radius: var(--r-sm); font-weight: 600; }
.wp-block-button.btn-primary > .wp-block-button__link { background: var(--flare); color: #fff; box-shadow: var(--sh-flare); }
.wp-block-button.btn-primary > .wp-block-button__link:hover { background: var(--flare-press); }
.wp-block-button.btn-ink > .wp-block-button__link { background: var(--ink); color: var(--cream); box-shadow: none; }
.wp-block-button.btn-ink > .wp-block-button__link:hover { box-shadow: var(--sh-md); }
.wp-block-button.btn-ghost > .wp-block-button__link { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--hair-strong); }
.wp-block-button.btn-ghost > .wp-block-button__link:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.wp-block-button.btn-on-dark > .wp-block-button__link { background: var(--cream); color: var(--ink); box-shadow: none; }
.wp-block-button.btn-on-dark > .wp-block-button__link:hover { box-shadow: var(--sh-lg); }
.wp-block-button.btn-ghost-dark > .wp-block-button__link { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--hair-dark); }
.wp-block-button.btn-ghost-dark > .wp-block-button__link:hover { box-shadow: inset 0 0 0 1.5px var(--cream-2); }
.wp-block-button.btn-lg > .wp-block-button__link { padding: 16px 28px; font-size: 1.05rem; }
.wp-block-button.btn-sm > .wp-block-button__link { padding: 9px 15px; font-size: 0.88rem; }
/* Headings rendered by core get the display face via theme.json; ensure balance */
.wp-block-heading { text-wrap: balance; }
/* Blog Query Loop -> handoff .post-grid */
.cl-post-grid > .wp-block-post-template { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; list-style: none; padding: 0; margin: 0; }
.cl-post-grid .wp-block-post { display: flex; flex-direction: column; }
@media (max-width: 920px) { .cl-post-grid > .wp-block-post-template { grid-template-columns: 1fr; } }
/* Archive/search grid reuse */
.cl-archive-grid > .wp-block-post-template { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; list-style:none; padding:0; margin:0; }
@media (max-width: 920px) { .cl-archive-grid > .wp-block-post-template { grid-template-columns: 1fr; } }

/* About page stats grid */
.cl-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .cl-stat-grid { grid-template-columns: 1fr; } }

/* Let two-column section grids shrink below their wide visuals (app mockup, code <pre>) so they
   clip/scroll within their own overflow instead of forcing page-level horizontal overflow on mobile.
   Grid items default to min-width:auto, which otherwise sizes the column to the widest child. */
.hero-grid > *, .spot > *, .code-grid > *, .quote-feat > * { min-width: 0; }

/* Newsletter band: let the email input shrink on small screens, and ease the heavy padding */
.news input { min-width: 0; }
@media (max-width: 920px) { .news { padding: 32px; } }
