/* Site chrome for the free tools: matches the buildwithbpp.com r26 nav + footer
   (values copied from the live r26 CSS, 2026-10-20). Loaded after each page's own styles. */

/* r26 page tokens */
body { background: #f8f8f8; color: #040708; }
.card-head h1, .done h2 { font-weight: 700; }
.btn { border-radius: 999px; }
.btn-gold, .btn:not(.btn-navy):not(.btn-ghost) { color: #044771; }
.btn:hover { box-shadow: 0 10px 28px rgba(241, 190, 92, 0.28); }

/* Slim top bar (r26-nav look, tool-focused links) */
.bpp-bar { position: sticky; top: 0; z-index: 100; background: #044771; box-shadow: 0 2px 12px rgba(3, 51, 89, 0.25); }
.bpp-bar-inner { max-width: 1280px; margin: 0 auto; padding: 14px 6vw; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bpp-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: Montserrat, sans-serif; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; }
.bpp-brand img { height: 30px; width: auto; display: block; }
.bpp-accent { color: #F1BE5C; }
.bpp-bar-links { display: flex; align-items: center; gap: 24px; }
.bpp-bar-link { position: relative; color: rgba(255, 255, 255, 0.82); font-family: Poppins, sans-serif; font-size: 0.95rem; text-decoration: none; transition: color 0.2s; }
.bpp-bar-link::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 100%; background: #F1BE5C; transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.bpp-bar-link:hover { color: #fff; }
.bpp-bar-link:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.bpp-bar-cta { color: #044771; background: #F1BE5C; border-radius: 999px; padding: 10px 20px; font-family: Poppins, sans-serif; font-size: 0.92rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.bpp-bar a:focus-visible, .bpp-footer a:focus-visible { outline: 2px solid #F1BE5C; outline-offset: 3px; }
@media (max-width: 600px) {
  .bpp-bar-inner { padding: 12px 16px; }
  .bpp-brand-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bpp-bar-links { gap: 16px; }
  .bpp-bar-cta { padding: 9px 16px; font-size: 0.85rem; }
}

/* Footer (r26-footer) */
.bpp-footer { color: #fff; background: #033359; padding: 64px 6vw 36px; overflow: hidden; margin-top: 24px; }
.bpp-footer-inner { max-width: 1280px; margin: 0 auto; }
.bpp-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.bpp-footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: Montserrat, sans-serif; font-size: 1.5rem; font-weight: 800; }
.bpp-footer-brand img { height: 36px; width: auto; }
.bpp-footer-tag { color: rgba(255, 255, 255, 0.65); max-width: 34ch; margin-top: 14px; font-family: Poppins, sans-serif; font-size: 0.95rem; line-height: 1.6; }
.bpp-footer-title { color: #F1BE5C; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; font-family: Montserrat, sans-serif; font-size: 12px; font-weight: 600; }
.bpp-footer-link { position: relative; display: block; width: fit-content; color: rgba(255, 255, 255, 0.8); padding: 6px 0; font-family: Poppins, sans-serif; font-size: 0.95rem; text-decoration: none; }
.bpp-footer-text { display: block; color: rgba(255, 255, 255, 0.55); padding: 6px 0; font-family: Poppins, sans-serif; font-size: 0.95rem; }
.bpp-footer-text a { color: inherit; }
.bpp-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: rgba(255, 255, 255, 0.5); border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 48px; padding-top: 24px; font-family: Poppins, sans-serif; font-size: 0.85rem; }
@media (max-width: 991px) { .bpp-footer-grid { grid-template-columns: 1fr; gap: 32px; } }
/* The calculator pins its total to the bottom on phones; keep the footer's last line clear of it */
@media (max-width: 760px) { body[data-sticky-total] .bpp-footer { padding-bottom: 120px; } }
@media (prefers-reduced-motion: reduce) { .bpp-bar-link::after { transition: none; } }
.brand-foot { display: none; } /* the site footer now carries the brand line */

/* Partner ref line ("Shared by <name>"), added by assets/ref.js for codes in assets/partners.js */
.bpp-ref { margin: 0 0 12px; font-family: Poppins, sans-serif; font-size: 14px; line-height: 1.4; color: #1A2B3C; }
.bpp-ref strong { color: #044771; font-weight: 600; }

/* Static explainer under each tool: plain HTML, readable with JavaScript off.
   Palette only: navy #044771, navy-dark #033359, gold #F1BE5C (decorative only),
   text #1A2B3C, bg #F4F6F8. Muted #64748B is ~4.4:1 on #F4F6F8, under AA, so it is not used for text. */
.explainer { max-width: 720px; margin: 40px auto 0; padding: 36px 36px 30px; background: #F4F6F8; border: 1px solid rgba(4, 71, 113, 0.12); border-radius: 16px; color: #1A2B3C; font-family: Poppins, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.7; overflow-wrap: break-word; }
.explainer h2 { font-family: Montserrat, sans-serif; font-size: clamp(22px, 4vw, 28px); font-weight: 800; line-height: 1.25; color: #033359; margin: 0 0 16px; }
.explainer h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 12px; border-radius: 2px; background: #F1BE5C; }
.explainer h3 { font-family: Montserrat, sans-serif; font-size: 19px; font-weight: 700; line-height: 1.3; color: #044771; margin: 32px 0 10px; }
.explainer h4 { font-family: Montserrat, sans-serif; font-size: 16px; font-weight: 700; line-height: 1.4; color: #033359; margin: 20px 0 4px; }
.explainer p { margin: 0 0 14px; }
.explainer ul, .explainer ol { margin: 0 0 16px; padding-left: 22px; }
.explainer li { margin-bottom: 10px; }
.explainer li::marker { color: #044771; font-weight: 700; }
.explainer strong { color: #033359; }
.explainer a { color: #044771; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.explainer .ex-tag { display: inline-block; margin-right: 6px; padding: 1px 9px; border-radius: 999px; background: rgba(4, 71, 113, 0.09); color: #044771; font-family: Montserrat, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 1px; }
.explainer .ex-scale { display: block; font-size: 15px; }
.explainer .ex-formula { padding: 14px 18px; border-left: 4px solid #F1BE5C; border-radius: 0 10px 10px 0; background: rgba(4, 71, 113, 0.05); }
.explainer .ex-faq h4:first-child { margin-top: 4px; }
.explainer .ex-credit { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid rgba(4, 71, 113, 0.15); font-size: 15px; }
@media (max-width: 600px) { .explainer { margin-top: 28px; padding: 26px 18px 22px; font-size: 16px; } .explainer h3 { font-size: 18px; } }

/* One "Next step" line per results view, pointing to the next tool */
.next-step { margin: 22px 0 0; font-family: Poppins, sans-serif; font-size: 14.5px; line-height: 1.6; text-align: center; color: #1A2B3C; }
.next-step strong { color: #033359; }
.next-step a { color: #044771; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
