/* Site-wide spacing system (2026-12-03). Loads after each page's own stylesheet.
   Spacing and alignment only. Section 80px desktop / 48px mobile, heading to body 16px,
   stacked blocks 24-32px, card padding 24px, grid gap 24px, content width 1100px. */

/* Sections */
body > section, body > section[class], main > section, main > section[class] { padding: 80px 24px; }
body > section.menu-section, body > section.price-footnote-sec, main > section.menu-section, main > section.price-footnote-sec { padding: 48px 24px; }
body > section.hero, body > section.page-hero, body > .page-hero, body > header.hero, main > .page-hero, main > section.hero, main > section.page-hero, main > header.hero { padding: 72px 24px; }
body > section.hero-split, main > section.hero-split { padding: 56px 24px; }
body > section.hub-demo, main > section.hub-demo { padding: 80px 24px; }
body > section.hub-proof, main > section.hub-proof { padding: 48px 24px; }
body > section.price-story-section, main > section.price-story-section { padding: 48px 24px; }
body > section.cta-section, main > section.cta-section { padding: 80px 24px; }
.container { max-width: 1100px; margin-left: auto; margin-right: auto; }
.hub-hero .container, .hero .container { max-width: 900px; }
.hero-split .hero-grid { max-width: 1100px; }

/* Narrow text wrappers line up with the 1100px grid; text keeps a readable line length */
.tool-intro, .sources { max-width: 1100px; margin-left: auto; margin-right: auto; }
.tool-intro p, .tool-intro ul, .tool-intro ol, .sources p, .sources ul, .sources ol { max-width: 820px; }

/* Heading to body 16px, label to heading 12px */
section .section-label { margin-top: 0; margin-bottom: 12px; }
section > .container > h2, section > .container > .section-title, section > .tool-intro > h2, section > .sources > h2, section > .hub-demo-inner > h2 { margin-top: 0; margin-bottom: 16px; }
section > .container > h2 + p, section > .container > .section-title + p, section > .tool-intro > h2 + p { margin-top: 0; }
.hub-demo-title { margin-bottom: 16px; }
.hub-demo-intro { margin-bottom: 32px; }

/* Stacked blocks inside a section 24-32px */
.hub-grid, .pricing-grid, .process-grid, .practice-grid, .faq-grid, .who-grid, .safeguards-grid, .tools-grid, .values-grid, .services-grid,
.credentials-grid, .deliverables-grid, .contract-type-grid, .prevention-grid, .flag-grid, .vc-grid, .story-grid, .menu-grid { gap: 24px; margin-top: 32px; }
.hub-grid { margin-top: 32px; }
.hub-shots { margin-top: 32px; gap: 24px; }
.hub-sample-link { margin-top: 32px; }
.hub-demo-note, .hub-sample-note { margin-top: 16px; }
.tracker-shot { margin-top: 32px; }
.tracker-sub-h { margin-top: 48px; margin-bottom: 0; }
.tracker-pricing { margin-top: 24px; }
.hub-notice, .hub-addons, .hub-price-story { margin-top: 24px; margin-bottom: 0; }
.hub-addons { padding: 24px; }
.hub-legal { margin-top: 24px; margin-bottom: 0; }
.hub-hero .hero-cta, .hero .hero-cta { margin-bottom: 32px; }

/* Cards 24px */
.safeguard-card, .pricing-card, .faq-item, .who-card, .process-step, .tool-card, .contract-type-card, .credential-card, .service-card,
.prevention-card, .price-card, .dr-card, .bk-card, .form-card, .contact-card, .progress-card, .profile-card { padding: 24px; }
.client-review, .hub-proof .client-review { padding: 24px 28px; }
.hub-shots figcaption { padding: 16px 24px 24px; }
.faq-item p:last-child, .safeguard-card p:last-child { margin-bottom: 0; }

/* Forms */
.lead-form, .form-success { margin-top: 32px; }
fieldset { min-width: 0; }
.form-grid { gap: 24px; }
.form-grid + .form-grid, .form-grid + .form-group, .form-group + .form-grid { margin-top: 24px; }
:not(.form-grid) > .form-group + .form-group { margin-top: 24px; }
.form-grid > .form-group { margin-top: 0; }
.form-section-title { margin-top: 32px; margin-bottom: 24px; }
.form-card > p { margin-bottom: 24px; }

@media (max-width: 768px) {
  body > section, body > section[class], main > section, body > section.menu-section, body > section.price-footnote-sec, body > section.cta-section, body > section.hub-demo, body > section.hub-proof, main > section[class], main > section.menu-section, main > section.price-footnote-sec, main > section.cta-section, main > section.hub-demo, main > section.hub-proof { padding: 48px 20px; }
  body > section.hero, body > section.page-hero, body > .page-hero, body > header.hero, main > .page-hero, main > section.hero, main > section.page-hero, main > header.hero { padding: 48px 20px; }
  body > section.hero-split, main > section.hero-split { padding: 40px 20px; }
  body > section.price-story-section, main > section.price-story-section { padding: 32px 20px; }
  .hub-grid, .pricing-grid, .process-grid, .practice-grid, .faq-grid, .who-grid, .safeguards-grid, .tools-grid, .values-grid, .services-grid,
  .credentials-grid, .deliverables-grid, .contract-type-grid, .prevention-grid, .flag-grid, .vc-grid, .story-grid, .menu-grid, .hub-shots { gap: 24px; margin-top: 24px; }
  .client-review, .hub-proof .client-review { padding: 24px 20px; }
  .form-card { padding: 24px 20px; }
  .lead-form, .form-success { padding: 24px 20px; margin-top: 32px; }
  fieldset, .lf-field, .lf-group { min-width: 0; max-width: 100%; }
  .tool-intro, .sources { max-width: 100%; }
}

/* Same-background neighbours: one 80px gap, not two */
body > section:not([class]) + section:not([class]), main > section:not([class]) + section:not([class]),
body > section.section-alt + section.section-alt, main > section.section-alt + section.section-alt { padding-top: 0; }
@media (max-width: 768px) { body > section:not([class]) + section:not([class]), main > section:not([class]) + section:not([class]), body > section.section-alt + section.section-alt, main > section.section-alt + section.section-alt { padding-top: 0; } }

/* Related links row and wrappers align to the 1100px column */
.related-section .container { max-width: 1100px; }
.related-section ul { margin-top: 24px; }
.related-section ul + p { margin-top: 24px; }

/* Flush callout section: neighbours supply the gap */
body > section.cost-section, main > section.cost-section { padding-top: 0; padding-bottom: 0; }

/* ===== Visual pass 2026-12-03 (v=5) ===== */

/* Footer: heading to link list 16px on every page (the home page already had it) */
footer.site-footer .footer-grid h3 { margin-bottom: 16px; }

/* Links with no color rule of their own: navy on light, gold on dark (zero specificity so any page rule still wins) */
a:where(:not([class])) { color: #1F3864; }
:where(.hero, .page-hero, .hub-hero, .cta-section, .cta-mid) a:where(:not([class])) { color: #F0C000; }
:where(.btn-primary):where(a) { color: #0B2C4F; }
:where(.cta-mid) :where(.btn-outline):where(a), :where(.hero, .page-hero, .hub-hero, .cta-section) :where(.btn-outline):where(a) { color: #ffffff; }

/* Bulleted lists inside narrow text wrappers keep their bullets inside the column */
.tool-intro ul, .tool-intro ol, .sources ul, .sources ol { padding-left: 24px; }
.sources h2 { font-size: 1.5rem; }
.sources p { margin-top: 16px; }

/* Cards in a row: text grows, the button sits at the bottom so buttons line up */
.practice-grid .safeguard-card { display: flex; flex-direction: column; }
.practice-grid .safeguard-card p { margin-bottom: 24px; }
.practice-grid .safeguard-card .btn-primary { margin-top: auto; text-align: center; }
.practice-types .section-label, .practice-types .section-title { text-align: left; }

/* Plan cards: the Buy button lines up across cards even where Practice also has Pay quarterly */
@media (min-width: 900px) {
  .pricing-grid > .pricing-card:not(:has(.buy-pair)) > .btn-primary { margin-bottom: 93px; }
}
.pricing-grid.tracker-pricing > .pricing-card > .btn-primary { margin-bottom: 0; }

/* Yellow price note: fills its box; same width as the grid below it outside the hero */
.hub-price-story p { max-width: none; }
section:not(.hero):not(.page-hero) .hub-price-story { max-width: 1100px; }

/* Pricing menu: three cards, the long one spans two rows so there is no hole under the short one */
@media (min-width: 769px) {
  .menu-grid > :first-child:nth-last-child(3) { grid-row: span 2; }
}


/* Blog: headings keep their own tight line height; callouts read at body size */
.article-body h2, .article-body h3 { line-height: 1.3; }
.article-body h3 { margin-top: 32px; margin-bottom: 12px; }
.article-body .callout { line-height: 1.7; font-size: 1rem; }
.article-body .callout p:last-child { margin-bottom: 0; }
.article-body div:has(> table) { overflow-x: auto; margin: 24px 0; }
.article-body table { border-collapse: collapse; width: 100%; min-width: 680px; font-size: 0.9rem; line-height: 1.5; }
.article-body th { text-align: left; vertical-align: bottom; padding: 8px 10px; border-bottom: 2px solid #1F3864; }
.article-body td { vertical-align: top; padding: 8px 10px; border-bottom: 1px solid #d0d7e2; }
@media (max-width: 600px) {
  .article-container { padding: 24px 12px; }
  .article-body { padding: 24px 20px; line-height: 1.7; }
}

/* Practice type buttons: same height whether the label wraps or not; no double gap under the cards */
.practice-grid .safeguard-card .btn-primary { display: flex; align-items: center; justify-content: center; min-height: 58px; }
body > section.practice-types { padding-bottom: 0; }
.article-body th:first-child, .article-body td:first-child { white-space: nowrap; }
.article-body ul, .article-body ol { margin-bottom: 20px; }

/* Two-line section titles: tight line height instead of the loose body line height */
body > section h2, main > section h2 { line-height: 1.25; }
body > section h3, main > section h3 { line-height: 1.35; }
section > .container > p + p, section > .tool-intro > p + p { margin-top: 16px; }
.section-sub a, .faq-item p a { color: #1F3864; text-decoration: underline; font-weight: 600; }
