/* Shared chrome for inner pages: header, mobile book bar, footer and palette
   matching the scroll-craft homepage (index.html). Loaded after each page's
   inline <style>, so these :root tokens win over the old ones. */
:root {
  --bg-primary: #F5F6F1;
  --bg-secondary: #ECEFE7;
  --bg-card: #FFFFFF;
  --text-primary: #15241B;
  --text-secondary: #4A5A50;
  --text-tertiary: #6B7A70;
  --accent: #1B7A4E;
  --accent-light: #3C9A6C;
  --accent-soft: rgb(27 122 78 / 0.10);
  --border: color-mix(in oklab, #15241B 13%, transparent);
  --border-light: color-mix(in oklab, #15241B 8%, transparent);
  --site-deep: #12301F;
  --site-gutter: clamp(1.25rem, 5vw, 5.5rem);
  --site-ease: cubic-bezier(0.23, 1, 0.32, 1);
}
body { background: var(--bg-primary); color: var(--text-primary); }

/* buttons: homepage pill + soft green shadow */
.btn-primary, .btn-nav, .site-btn {
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgb(27 122 78 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.18);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover, .btn-nav:hover, .site-btn:hover { background: #156640; }
}

/* ------------------------------------------------------------ header -- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 100; height: 100px; display: flex; align-items: center; gap: 2rem;
  padding-inline: var(--site-gutter); box-sizing: border-box; background: rgb(255 255 255 / 0.95);
  box-shadow: 0 1px 0 var(--border); font-family: "Satoshi", system-ui, sans-serif; color: var(--text-primary); }
.bar__logo { display: block; height: 80px; flex: none; }
.bar__logo img { height: 100%; width: auto; display: block; }
/* pages style bare `nav {}` as the old fixed bar; undo that for ours */
.bar nav { position: static; inset: auto; padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  display: flex; gap: 2rem; margin-left: auto; font-size: 0.9375rem; font-weight: 500; }
.bar nav a, .bar__phone { color: inherit; text-decoration: none; text-underline-offset: 0.2em; }
@media (hover: hover) { .bar nav a:hover { text-decoration: underline; } }
.bar__phone { font-weight: 500; font-size: 0.9375rem; }
.site-btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; text-decoration: none;
  font-weight: 700; font-size: 0.9375rem; padding: 0.85em 1.4em; border: 0; transition: transform 140ms var(--site-ease), background-color 160ms var(--site-ease); }
.site-btn:active { transform: scale(0.97); }
.mbar { display: none; }

@media (max-width: 960px) {
  .bar nav { display: none; }
  .bar__phone { margin-left: auto; }
}
@media (max-width: 700px) {
  .bar { height: 76px; gap: 1rem; }
  .bar__logo { height: 58px; }
  .bar > .site-btn { display: none; }
  .mbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; }
  .mbar .site-btn { flex: 1; }
  body { padding-bottom: 76px; }
}

/* Pages still carry the old menu's bare `nav { position: fixed; ... }` rule, which
   pinned every other <nav> (blog breadcrumb, "On this page" boxes) over the page.
   Reset bare nav; class rules like .post-toc / .legal-toc still win over this. */
nav { position: static; inset: auto; z-index: auto; padding: 0; background: none; border: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none; transition: none; }

/* ------------------------------------------------- blog posts (homepage look) -- */
.btn-primary, .btn-nav { text-transform: none; letter-spacing: 0; font-weight: 700; }
.post-hero h1, .post-body h2, .related-section h3, .related-card h4, .cta-inner h2, .inline-cta h4 {
  font-weight: 400; letter-spacing: -0.012em; }
.post-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.02; }
.post-tag { background: none; padding: 0; border-radius: 0; letter-spacing: 0.04em; font-size: 0.8125rem; }
.post-meta, .post-breadcrumb { letter-spacing: 0; }
.post-hero-image { border-radius: 12px; border: 0; box-shadow: 0 30px 60px -34px rgb(20 35 27 / 0.5); }
/* article sits flat on the canvas like the homepage, no card */
.post-body { max-width: 44rem; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.post-body p, .post-body li { color: #2b3b31; font-size: 1.0625rem; line-height: 1.7; }
.post-body h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.05; margin-top: 3.5rem;
  padding-top: 1.5rem; border-top: 1px solid var(--border); }
.post-body h2:first-child { padding-top: 0; border-top: 0; }
.post-body h3 { font-size: 1.125rem; letter-spacing: 0; }
.post-body a:not(.btn-primary) { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.post-toc { background: none; border: 0; border-top: 2px solid var(--text-primary); border-radius: 0; padding: 1.25rem 0 0; }
.post-toc h4 { letter-spacing: 0.04em; color: var(--text-primary); }
.post-toc ol { font-size: 0.9875rem; gap: 0; }
.post-toc li { padding: 0.55em 0; border-bottom: 1px solid var(--border); }
.post-body table { border: 0; border-radius: 0; border-top: 2px solid var(--text-primary); }
.post-body th { background: none; letter-spacing: 0.04em; }
.post-body th, .post-body td { border-bottom: 1px solid var(--border); }
.callout { background: var(--bg-card); border: 0; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0;
  box-shadow: 0 1px 0 var(--border), 0 24px 48px -32px rgb(20 35 27 / 0.4); }
.callout strong { letter-spacing: 0.04em; }
.red-flag-card, .checklist-block { background: var(--bg-card); border: 0; border-radius: 12px;
  box-shadow: 0 1px 0 var(--border), 0 24px 48px -32px rgb(20 35 27 / 0.4); }
.checklist-block h4 { font-weight: 400; letter-spacing: -0.012em; }
/* inline + closing CTAs echo the homepage's deep-green price band */
.inline-cta { background: var(--site-deep); border: 0; border-radius: 12px; padding: 2rem; }
.inline-cta h4 { color: #fff; font-size: 1.75rem; }
.post-body .inline-cta p { color: #B9CBBF; }
.inline-cta .btn-primary { background: #fff; color: var(--site-deep) !important; box-shadow: 0 10px 24px -14px rgb(0 0 0 / 0.5); }
.related-section h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); text-align: left; }
.related-card { border: 0; border-radius: 12px; box-shadow: 0 1px 0 var(--border), 0 24px 48px -32px rgb(20 35 27 / 0.4); }
.related-card h4 { font-size: 1.4rem; line-height: 1.15; }
.related-card-tag { letter-spacing: 0.04em; }
.cta-section { background: var(--bg-primary); border-top: 1px solid var(--border); }
.cta-inner h2 { line-height: 1.02; }
/* phones already get the bottom book bar; the floating button would sit on top of it */
@media (max-width: 700px) { .floating-cta { display: none; } }

/* blog tables on phones: prices never break mid-range; a wide table scrolls
   sideways inside the article instead of widening the page */
@media (max-width: 560px) {
  .post-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 0.8125rem; }
  .post-body th, .post-body td { padding: 0.65rem 0.6rem; }
  .post-body th { font-size: 0.6875rem; letter-spacing: 0.03em; white-space: nowrap; }
  .post-body td:not(:first-child) { white-space: nowrap; }
  .post-body td:first-child { min-width: 7.5rem; }
}

/* ------------------------------------------------------------ footer -- */
footer.site-foot { background: var(--site-deep); color: #DCE7DF; padding: 3rem var(--site-gutter) 2rem; margin: 0; border: 0;
  font-family: "Satoshi", system-ui, sans-serif; font-size: 0.875rem; }
.site-foot__row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; max-width: 1240px; margin-inline: auto; }
.site-foot__row + .site-foot__row { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / 0.12); }
.site-foot a { color: inherit; text-decoration: none; }
@media (hover: hover) { .site-foot a:hover { text-decoration: underline; color: #fff; } }
.site-foot__label { color: #8FD9B0; font-weight: 700; }
.site-foot__copy { margin-left: auto; color: #B9CBBF; }
