/* Base: reset, typography, shared controls. Values are from docs/mockups/home.html. */
html { font-size: 100%; scroll-behavior: smooth; }
html.xc-locked { overflow: hidden; }
body {
  margin: 0; font-family: var(--font-text); font-size: 1.25rem; line-height: 1.6; color: var(--ink);
  background: var(--surface-100) linear-gradient(45deg, var(--shade), transparent) fixed;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
/* The body's side padding as variables, so a full-bleed band can cancel it (negative margin) and put it back as its own padding. */
body { --gutter-l: max(16px, env(safe-area-inset-left, 0px)); --gutter-r: max(16px, env(safe-area-inset-right, 0px)); }
body:not(.editor-styles-wrapper) :is(.mid-cta, .cta-band) { margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding-inline: var(--gutter-l) var(--gutter-r); }
a { color: inherit; text-decoration: none; }
a:hover, a:focus, a:active { color: inherit; }
h1, h2, h3, p, li, summary { text-wrap: balance; }
.nowrap-parent > * { display: inline-block; }
.wrap { max-width: 80rem; margin: 0 auto; }
.display { font-family: var(--font-display); font-size: 5rem; line-height: 1.02; font-weight: 300; letter-spacing: -0.02em; margin: 0; }
.h1 { font-family: var(--font-display); font-size: 3.5rem; line-height: 1.1; font-weight: 300; letter-spacing: -0.01em; margin: 0; }
.h3 { font-family: var(--font-display); font-size: 1.625rem; line-height: 1.3; font-weight: 500; margin: 0; }
.body-lg { font-size: 1.375rem; line-height: 1.55; margin: 0; }
.caption { font-size: 1rem; line-height: 1.5; margin: 0; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.eyebrow { margin: 0; font-family: var(--font-display); font-size: 1rem; line-height: 1.2; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); }
.text-link { border-bottom: 1px solid var(--control-border); }
.text-link:hover { border-bottom-color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Section-heading spacing utilities, for block-built pages (Grow_Pattern) whose owner
   editable Heading/Paragraph blocks can only carry a className, not the one-off inline
   style="margin:...;max-width:..." the PHP-built pages set directly on the same markup.
   Each PHP page's own inline value is unaffected (it still wins; the values just match). */
.heading-tight { margin: 1rem 0 3rem; }
.heading-wide { margin: 1rem 0 3.5rem; }
.heading-measure { max-width: 56rem; }

/* Controls */
:is(button, input, a).btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem; box-sizing: border-box; min-height: 3.25rem; padding: 0 2rem; border: 1px solid transparent; border-radius: var(--radius-xs); font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.2; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); background: transparent; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
:is(button, input, a).btn-gold { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
:is(button, input, a).btn-gold:hover { background: transparent; color: var(--gold-text); }
:is(button, input).btn:hover, a.btn:hover { background: transparent; }
:is(button, input, a).btn-gold:hover { color: var(--gold-text); }
:is(button, input, a).btn-sm { min-height: 2.75rem; padding: 0 1.5rem; font-size: 1rem; }
:is(button, input, a).btn-lg { min-height: 3.75rem; padding: 0 2.5rem; }
:is(button, a).icon-btn { display: inline-flex; padding: 0; font-size: 0.8333rem; align-items: center; justify-content: center; width: 3rem; height: 3rem; background: transparent; color: var(--ink); border: 1px solid var(--control-border); border-radius: var(--radius-xs); cursor: pointer; }
:is(button, a).icon-btn:hover { background: var(--hover-wash); color: var(--ink); }
/* Every button centres its label; the check-up label breaks only after "free" (Cta_Label::html()). */
.btn { text-align: center; }
.btn .cta-label { text-align: center; }
/* A strip's own `span` rule (cta-strip.css) must not recolour the label's halves: they inherit the button's colour. */
.btn .cta-label, .btn .cta-label > span { color: inherit; }
.btn .cta-label > span { display: inline-block; }
.btn:focus-visible, summary:focus-visible, .icon-btn:focus-visible, .input:focus-visible, a:focus-visible, button.text-link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
/* Cookie Notice (third-party plugin). Its bar is light grey (#eee) in both themes, so the ring is the fixed dark #333 (9.6:1 on the bar; the light theme uses the same ink), not the dark theme gold. */
#cookie-notice .cn-button:focus-visible, #cookie-notice .cn-close-icon:focus-visible, #cookie-notice a:focus-visible { outline: 2px solid #333333; outline-offset: 2px; }
:is(input, textarea, select).input { box-sizing: border-box; min-height: 3.25rem; padding: 0 1.25rem; width: 100%; background: var(--glass-fill); color: var(--ink); border: 1px solid var(--control-border); border-radius: var(--radius-xs); font-family: var(--font-text); font-size: 1.25rem; }
.input::placeholder { color: var(--ink-muted); opacity: 1; }
:is(input, textarea, select).input:focus { background: var(--glass-fill); color: var(--ink); border-color: var(--control-border); }
:is(input, textarea, select).input[aria-invalid="true"] { border-color: var(--err); border-width: 2px; }
.input, .pick input { scroll-margin-top: 8rem; }
textarea.input { height: auto; min-height: 7rem; padding: 0.875rem 1.25rem; line-height: 1.5; resize: vertical; }
.panel { box-sizing: border-box; padding: 1.5rem; background: var(--surface-200); border: 1px solid var(--hairline); border-radius: var(--radius-xs); }
.glass { background: var(--glass-fill); border-color: var(--glass-border); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter); }

/* Skip link (first focusable element) */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 0.75rem 1.25rem; background: var(--ink); color: var(--surface-100); font-family: var(--font-display); }
.skip-link:focus { left: 1rem; top: 1rem; outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Logo (inline SVG; the classes are on the elements inside it) */
.logo-svg { display: block; width: auto; }
.logo-ink { fill: var(--ink); }
.logo-gold { fill: var(--gold); }
.logo-text { fill: var(--ink); font-family: var(--font-display); font-weight: 500; }

/* GeneratePress layout wrappers. We use its hooks but not its container, sidebar or content padding. */
.site.grid-container, #page, .site-content { max-width: none; width: 100%; }
.site-content { display: block; padding: 0; }
.content-area, .site-main { width: 100%; float: none; margin: 0; padding: 0; }
/* GeneratePress's ".separate-containers .site-main" margin outranks the rule above. */
.separate-containers .site-main { margin: 0; }

/* GeneratePress adds margin-bottom: 20px to every direct child of .site-main
   (main.min.css, ".page-header, .sidebar .widget, .site-main > *"), meant for generic
   post content. Our page templates' own sections (.band/.mid-cta/.cta-band) handle all
   vertical rhythm explicitly through .band-in padding, so this adds an unwanted 20px gap
   between every section -- found 2026-10-24 explaining an otherwise-unexplained ~160px
   height difference (8 section boundaries) against the Build mockup in pixel comparison.
   Same specificity as GP's own rule; wins on source order since this file loads after
   generate-style. */
.site-main > * { margin-bottom: 0; }

@media (max-width: 48rem) {
  .display { font-size: 3.25rem; } .h1 { font-size: 2.5rem; }
  summary { font-size: 1.25rem; }
}

/* Motion: every animation and transition is off when the visitor asks for less motion. */
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Placeholder template only (index.php, page.php) */
.xc-placeholder { padding-block: 4rem; }
.xc-placeholder-body { min-height: 60vh; }
.xc-placeholder-end { border-top: 2px solid var(--gold); background: var(--surface-200); }

/* Google's reCAPTCHA v3 badge. Hidden per Ricky's instruction; class-checkup-form.php prints the
   required attribution text in the form instead, as Google's terms require when the badge is hidden. */
.grecaptcha-badge { visibility: hidden !important; }
