/* ==========================================================================
   Tekton Sites skin for the shared engine and legal pages on tektondigital.ca
   (2026-11-18 design pass). These pages are built on the Next Truck sheet stack
   (v3, nt-skin, nt-chrome, nt-level-pages); this file loads last on Tekton pages
   only (tkHeader() in _engine/render.mjs, privacy.html, terms.html) and puts them
   back on the Sites look: navy and Action Blue on cool white, Montserrat with
   Inter, no serif accent, no grain, no glow. Source of truth for the tokens:
   _studio/website-business/SITES-DESIGN-2026-11-10.md and assets/sites-factory.css.
   ========================================================================== */

@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #ffffff;
  --paper-2: #f8fafc;
  --ground: #f8fafc;
  --ink: #0b2d5b;
  --ink-2: #0a2550;
  --ink-3: #2f4360;
  --text: #2f4360;
  --muted: #475569;
  --hair: rgba(11, 45, 91, .1);
  --hair-2: rgba(11, 45, 91, .17);
  --rule: rgba(11, 45, 91, .13);
  --line: #dce6f2;
  --on-ink: #ffffff;
  --on-ink-2: rgba(255, 255, 255, .8);
  --on-ink-hair: rgba(255, 255, 255, .16);
  --head: "Montserrat", -apple-system, "Segoe UI", Arial, sans-serif;
  --display: "Montserrat", -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Montserrat", -apple-system, "Segoe UI", Arial, sans-serif;
  --sans: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --grain: none;
  --pop: #005fcc;
  --pop-fill: #007bff;
}

html, body { background: #f8fafc !important; }
body { color: var(--text); font-family: var(--sans); overflow-x: clip; }
:where(input, select, textarea, button) { font-family: inherit; }
body :is(h1, h2, h3, h4, .foot-line) { font-family: var(--head) !important; color: var(--ink); letter-spacing: -0.022em; }

/* The italic serif accent becomes the Sites accent: same face, Action Blue */
body :is(h1, h2, h3, .foot-line, .lede) :is(em, .sw) { font-family: inherit !important; font-style: normal !important; font-weight: inherit; color: var(--pop) !important; }
:is(.ink, .final, .bp-final) .sw { color: #fff !important; }

/* Small uppercase labels: Inter, not mono */
body :is(.eyebrow, .tag, .post-tag, .chip, .meta-tag, .answer-first .k, .answer-first > p:first-child, .foot-k, .kicker) { font-family: var(--sans) !important; letter-spacing: .08em; }

/* Heroes: cool white, no glow */
body :is(.hero, .pillar-hero, .blog-hero, .article-head, .bp-hero, .intake-hero, .page-head) { background: #f8fafc !important; }

/* Breadcrumbs: v3-pages.css still paints them white for the old dark heroes */
.crumbs { color: var(--muted); }
.crumbs a { color: var(--ink) !important; text-decoration-color: rgba(0, 95, 204, .35) !important; }
.crumbs a:hover { color: var(--pop) !important; }

/* Cards: one hairline and a soft shadow, as on the Sites pages */
:is(.card, .post-card, .tile, .vs-card, .panel, .panel-copy, .pillar-link, .answer-first, .area-glance, .svc-item, .proof-list, .pbox, .ref-card, .sites-offer) {
  background: #fff !important;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -30px rgba(11, 45, 91, .35) !important;
}

/* Dark bands: solid navy, the Sites ink, no orange glow */
.section.final, .bp-final, .section.ink, .section.ink:not(.final) { background: var(--ink) !important; }
.section.final::after, .bp-final::after { display: none !important; }

/* Header: the primary button is Action Blue, as on the Sites pages */
/* Gold is the Sites action colour since 2026-11-18 (home v2): navy text on gold, 9:1. */
.top .btn:not(.btn-soft), body :is(.btn-primary, .btn-gold), :is(.section.final, .bp-final, .section.ink) .btn:not(.btn-soft):not(.btn-ghost):not(.ghost) { background: #ffc21a !important; color: #0b2d5b !important; border-color: #ffc21a !important; box-shadow: 0 10px 22px -12px rgba(217, 156, 0, .95); }
.top .btn:not(.btn-soft):hover, body :is(.btn-primary, .btn-gold):hover, :is(.section.final, .bp-final, .section.ink) .btn:not(.btn-soft):not(.btn-ghost):not(.ghost):hover { background: #ffd04d !important; }

/* Footer */
.foot { background: #fff; }
.foot-top a:hover { color: var(--pop) !important; }
.foot-line em { color: var(--pop) !important; }
.foot-mark span {
  font-size: 15.5cqw !important;
  color: var(--ink) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}
.verse, .verse em, .verse span { color: var(--muted) !important; }
@media (max-width: 760px) {
  .foot-top { grid-template-columns: 1fr 1fr !important; gap: 24px 20px !important; }
  .foot-top > div:first-child { grid-column: 1 / -1; }
  .foot-top ul a { padding: 7px 0; }
  .verse { flex-direction: column; align-items: flex-start; }
}

/* Cookie banner: the Sites version (nt-chrome.css paints Accept blue with dark text here) */
:root #tk-consent-banner { background: rgba(255, 255, 255, .96) !important; color: var(--text) !important; border-top: 1px solid var(--line) !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
:root #tk-consent-banner p { color: var(--text) !important; }
:root #tk-consent-banner a { color: var(--ink) !important; }
:root #tk-consent-banner button:first-child { background: transparent !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-radius: 99px !important; }
:root:has(.top .logo img[src*="/brand/tekton-digital/"]) #tk-consent-banner button:last-of-type, :root #tk-consent-banner button:last-child, :root #tk-consent-banner button:last-of-type { background: var(--pop) !important; color: #fff !important; border: 1px solid var(--pop) !important; border-radius: 99px !important; }

/* No dot field behind ground sections, and the footer sheet is white, not paper */
.section.ground { background: #f8fafc !important; background-image: none !important; }
.foot-in { background: #fff !important; box-shadow: 0 0 0 1px var(--line) !important; }

/* In-text links: navy with the Action Blue underline, as on the Sites pages (the old stack paints them ember) */
main :is(p, li, dd, td, .updated, .meta) a:not(.btn):not(.textlink) { color: var(--ink) !important; text-decoration: underline !important; text-decoration-color: var(--pop) !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px; }
main :is(p, li, dd, td) a:not(.btn):hover { color: var(--pop) !important; }
main :is(ul, ol) li::marker { color: var(--pop); }

/* The skip link stays off screen until it has focus (site.css on the legal pages lets it peek in) */
.skip { position: fixed !important; left: 16px !important; top: 12px !important; z-index: 90; transform: translateY(-200%) !important; }
.skip:focus { transform: none !important; }
