/* =====================================================================
   NOVO DESIGN SYSTEM  (novo-system.css)
   One shared visual language for every page. Loaded after novo.css and
   novo-overrides.css. All classes are prefixed "ns-" so nothing here
   restyles legacy Tailwind markup by accident.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand colors (source of truth: existing Tailwind theme) */
  --novo-navy: #1e2635;          /* bg-blue-dark: emphasis, final CTAs, footer */
  --novo-blue: #3265cc;          /* bg-blue: primary accent, links, primary button */
  --novo-blue-hover: #2854ad;
  --novo-light-blue: #9db8f0;    /* accent on navy */
  --novo-light-blue-soft: #cfe0ff;
  --novo-pale-blue: #eef3fc;     /* "pale" section */
  --novo-pale-blue-line: #d6e2f7;

  /* Semantic roles */
  --novo-background: #ffffff;
  --novo-surface: #f6f8fb;       /* subtle off-white section */
  --novo-text: #1e2635;
  --novo-text-muted: #4a5568;
  --novo-text-subtle: #6b7486;
  --novo-border: #e3e8f0;
  --novo-border-strong: #1e2635;
  --novo-on-dark: #ffffff;
  --novo-on-dark-muted: #cfd8e8;
  --novo-focus: #9db8f0;

  /* Layout */
  --ns-wide: 1240px;             /* grids, large layouts */
  --ns-content: 1040px;          /* normal sections */
  --ns-measure: 42rem;           /* editorial reading width (~65-72 characters) */
  --ns-gutter: 1.25rem;

  /* Vertical rhythm */
  --ns-section-y: 3.5rem;
  --ns-hero-top: 6.5rem;         /* clears the fixed header */
  --ns-hero-bottom: 2.5rem;
  --ns-stack-sm: .75rem;         /* heading -> copy */
  --ns-stack-md: 1.5rem;
  --ns-stack-lg: 2.25rem;        /* copy -> CTA, intro -> grid */
  --ns-grid-gap: 1.75rem;

  /* Shape and depth */
  --ns-radius-sm: 4px;           /* images, inputs */
  --ns-radius: 8px;              /* cards, callouts, maps */
  --ns-radius-pill: 9999px;      /* buttons (existing site radius) */
  --ns-shadow-hover: 0 6px 18px rgba(30, 38, 53, .08);

  /* Type scale */
  --ns-fs-display: clamp(2.125rem, 1.55rem + 2.3vw, 3.5rem);
  --ns-fs-h1: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  --ns-fs-h2: clamp(1.625rem, 1.3rem + 1.3vw, 2.5rem);
  --ns-fs-h2-prose: clamp(1.375rem, 1.2rem + .6vw, 1.75rem);
  --ns-fs-h3: 1.25rem;
  --ns-fs-body-lg: 1.1875rem;
  --ns-fs-body: 1.0625rem;
  --ns-fs-body-sm: .9375rem;
  --ns-fs-caption: .8125rem;
  --ns-fs-eyebrow: .8125rem;
}
@media (min-width: 48rem) {
  :root {
    --ns-gutter: 2.5rem;
    --ns-section-y: 5rem;
    --ns-hero-top: 8.5rem;
    --ns-hero-bottom: 3.5rem;
    --ns-grid-gap: 2.25rem;
    --ns-fs-body: 1.125rem;
  }
}
@media (min-width: 64rem) {
  :root { --ns-section-y: 6.5rem; --ns-hero-top: 9.5rem; --ns-hero-bottom: 4rem; }
}

/* ---------- 2. Base (minimal, sitewide) ---------- */
:focus-visible { outline: 3px solid var(--novo-focus); outline-offset: 3px; }
.ns-skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--novo-navy); color: #fff; padding: .75rem 1rem; border-radius: var(--ns-radius-sm); text-decoration: none; font-weight: 700; }
.ns-skip:focus { top: 1rem; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Header on light-hero pages (every page except the homepage photo hero) */
body.ns-page #nav_wrap { background: #fff; box-shadow: 0 1px 0 var(--novo-border); }
body.ns-page #nav_wrap #wordmark { fill: var(--novo-navy) !important; }
body.ns-page #nav_wrap .hamburger-inner,
body.ns-page #nav_wrap .hamburger-inner::before,
body.ns-page #nav_wrap .hamburger-inner::after { background-color: var(--novo-navy) !important; }
@media (min-width: 48rem) {
  body.ns-page #nav_wrap #menu li a { color: var(--novo-navy) !important; }
  body.ns-page #nav_wrap #menu li a:hover { color: var(--novo-blue) !important; }
  body.ns-page #nav_wrap #menu li:last-child a { color: #fff !important; }
  body.ns-page #nav_wrap #menu li:last-child a:hover { color: var(--novo-blue) !important; border-color: var(--novo-blue) !important; }
}
#menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ---------- 3. Containers and sections ---------- */
.ns { color: var(--novo-text); font-size: var(--ns-fs-body); line-height: 1.65; }
.ns *, .ns *::before, .ns *::after { box-sizing: border-box; }
.ns-wrap { width: 100%; max-width: var(--ns-wide); margin: 0 auto; padding: 0 var(--ns-gutter); }
.ns-wrap--content { max-width: calc(var(--ns-content) + 2 * var(--ns-gutter)); }
.ns-wrap--reading { max-width: calc(var(--ns-measure) + 2 * var(--ns-gutter)); }
.ns-measure { max-width: var(--ns-measure); }
.ns-section { padding: var(--ns-section-y) 0; scroll-margin-top: 6rem; }
.ns-section--tight { padding: calc(var(--ns-section-y) * .65) 0; }
.ns-bg-white { background: var(--novo-background); }
.ns-bg-surface { background: var(--novo-surface); }
.ns-bg-pale { background: var(--novo-pale-blue); }
.ns-bg-navy, .ns-dark { background: var(--novo-navy); color: var(--novo-on-dark); }
.ns-split { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 64rem) { .ns-split { grid-template-columns: 4fr 7fr; gap: 5rem; } }

/* ---------- 4. Typography ---------- */
.ns-eyebrow { display: block; font-size: var(--ns-fs-eyebrow); font-weight: 700; letter-spacing: .16em; line-height: 1.3; text-transform: uppercase; color: var(--novo-blue); margin: 0 0 1rem; }
.ns-display, .ns-h1, .ns-h2, .ns-h3 { color: var(--novo-text); text-wrap: balance; margin-top: 0; }
.ns-display { font-size: var(--ns-fs-display); line-height: 1.08; letter-spacing: -.02em; font-weight: 400; margin-bottom: 1.25rem; }
.ns-h1 { font-size: var(--ns-fs-h1); line-height: 1.12; letter-spacing: -.015em; font-weight: 400; margin-bottom: 1.25rem; }
.ns-h2 { font-size: var(--ns-fs-h2); line-height: 1.15; letter-spacing: -.012em; font-weight: 400; margin-bottom: var(--ns-stack-md); }
.ns-h3 { font-size: var(--ns-fs-h3); line-height: 1.3; font-weight: 700; margin-bottom: .5rem; }
.ns-lede { font-size: var(--ns-fs-body-lg); line-height: 1.6; color: var(--novo-text); }
.ns-body-sm, .ns-small { font-size: var(--ns-fs-body-sm); line-height: 1.6; color: var(--novo-text-muted); }
.ns-caption { font-size: var(--ns-fs-caption); line-height: 1.5; color: var(--novo-text-subtle); }
.ns-muted { color: var(--novo-text-muted); }
:where(.ns) p { margin: 0 0 1.1em; }
:where(.ns) a { color: var(--novo-blue); }
.ns-dark .ns-display, .ns-dark .ns-h1, .ns-dark .ns-h2, .ns-dark .ns-h3 { color: var(--novo-on-dark); }
:where(.ns-dark) p { color: var(--novo-on-dark); }
.ns-dark .ns-eyebrow { color: var(--novo-light-blue); }
.ns-dark .ns-small, .ns-dark .ns-caption { color: var(--novo-on-dark-muted); }
:where(.ns-dark) a { color: #fff; }
.ns-statement { font-size: clamp(1.625rem, 1.15rem + 2vw, 2.75rem); line-height: 1.2; letter-spacing: -.015em; font-weight: 400; text-wrap: balance; margin: 0; }
.ns-pull { font-size: clamp(1.375rem, 1.05rem + 1.2vw, 2rem); line-height: 1.3; font-weight: 400; color: var(--novo-text); border-left: 2px solid var(--novo-blue); padding-left: 1.25rem; margin: 0; }
.ns-list { margin: 0 0 1.25em; padding: 0; list-style: none; }
.ns-list li { position: relative; padding-left: 1.5rem; margin-bottom: .6rem; }
.ns-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: .75rem; height: 2px; background: var(--novo-blue); }
.ns-list--muted li::before { background: #9aa6bd; }

/* ---------- 5. Buttons and links ---------- */
/* .btn / .btn-primary / .btn-secondary are the site-wide button classes (also used on the homepage) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: 0 1.75rem; border-radius: var(--ns-radius-pill); font-size: 1.0625rem; font-weight: 700; line-height: 1.2; letter-spacing: .01em; text-align: center; text-decoration: none !important; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; margin: 0 12px 12px 0; }
.btn-primary { background: var(--novo-blue); border-color: var(--novo-blue); color: #fff !important; box-shadow: none; }
.btn-primary:hover { background: var(--novo-blue-hover); border-color: var(--novo-blue-hover); color: #fff !important; }
.btn-secondary { background: transparent; border-color: var(--novo-navy); color: var(--novo-navy) !important; }
.btn-secondary:hover { background: var(--novo-navy); border-color: var(--novo-navy); color: #fff !important; }
/* On dark backgrounds (navy sections, the homepage photo hero) */
.ns-dark .btn-primary:hover, #hero_section .btn-primary:hover { background: #fff; border-color: #fff; color: var(--novo-blue) !important; }
.ns-dark .btn-secondary, #hero_section .btn-secondary, #site_footer .btn-secondary { border-color: rgba(255,255,255,.8); color: #fff !important; }
.ns-dark .btn-secondary:hover, #hero_section .btn-secondary:hover { background: #fff; border-color: #fff; color: var(--novo-blue) !important; }
.btn:focus-visible { outline: 3px solid var(--novo-focus); outline-offset: 3px; }
@media (max-width: 40rem) { .btn { display: flex; width: 100%; margin-right: 0; } }

.ns-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; margin-top: var(--ns-stack-lg); }
.ns-actions .btn { margin: 0; }
.ns-link { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; font-weight: 700; color: var(--novo-blue); text-decoration: none; }
.ns-link::after { content: "\2192"; transition: transform .15s; }
.ns-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ns-link:hover::after { transform: translateX(2px); }
.ns-dark .ns-link { color: #fff; }
.ns-phone { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- 6. Breadcrumbs ---------- */
.ns-crumbs { margin: 0 0 1.5rem; font-size: var(--ns-fs-caption); line-height: 1.5; }
.ns-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.ns-crumbs li { display: inline-flex; align-items: center; color: var(--novo-text-subtle); }
.ns-crumbs li + li::before { content: "/"; margin: 0 .55rem; color: #a7b0c0; }
.ns-crumbs a { color: var(--novo-text-muted); text-decoration: none; padding: .35rem 0; }
.ns-crumbs a:hover { color: var(--novo-blue); text-decoration: underline; text-underline-offset: 3px; }
.ns-crumbs [aria-current="page"] { color: var(--novo-text); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 7. Secondary-page hero (light editorial) ---------- */
.ns-hero { padding: var(--ns-hero-top) 0 var(--ns-hero-bottom); background: linear-gradient(180deg, #f7f9fd 0%, #fff 100%); border-bottom: 1px solid var(--novo-border); }
.ns-hero--flush { border-bottom: 0; }
.ns-hero-inner { max-width: 50rem; }
.ns-hero .ns-lede { max-width: var(--ns-measure); margin: 0; }
.ns-hero .ns-lede + .ns-lede { margin-top: 1rem; }
.ns-hero-note { margin-top: 1rem; color: var(--novo-text-muted); font-style: italic; max-width: var(--ns-measure); }
.ns-hero-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: 1.25rem; font-size: var(--ns-fs-caption); color: var(--novo-text-subtle); }
.ns-hero-meta a { color: var(--novo-text-muted); }
.ns-hero-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .ns-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 4rem; } }
@media (max-width: 40rem) { .ns-hero .ns-display { font-size: 2.125rem; } .ns-hero .ns-lede { font-size: 1.0625rem; } }

/* ---------- 8. Cards (families share type, spacing, border and hover logic) ---------- */
.ns-grid { display: grid; grid-template-columns: 1fr; gap: var(--ns-grid-gap); list-style: none; margin: 0; padding: 0; }
@media (min-width: 40rem) { .ns-grid--2, .ns-grid--3, .ns-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .ns-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ns-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Rule card: hairline top border, no box (condition, service, process) */
.ns-rule-card { border-top: 1px solid var(--novo-border); padding-top: 1.25rem; display: flex; flex-direction: column; transition: border-color .2s; }
.ns-rule-card:hover { border-top-color: var(--novo-blue); }
.ns-rule-card .ns-h3 { margin-bottom: .5rem; }
.ns-rule-card p { font-size: var(--ns-fs-body-sm); color: var(--novo-text-muted); margin: 0 0 .5rem; flex-grow: 1; }
.ns-step-num { display: block; font-size: 2.25rem; font-weight: 300; line-height: 1; letter-spacing: -.02em; color: var(--novo-blue); margin-bottom: 1rem; }

/* Article card */
.ns-article-card { display: flex; flex-direction: column; height: 100%; color: var(--novo-text); text-decoration: none; }
.ns-article-card .ns-media { margin-bottom: 1.1rem; }
.ns-article-card h2, .ns-article-card h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; color: var(--novo-text); margin: .35rem 0 .6rem; text-wrap: balance; }
.ns-article-card p { font-size: var(--ns-fs-body-sm); color: var(--novo-text-muted); line-height: 1.6; margin: 0 0 .75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ns-article-card .ns-more { margin-top: auto; font-size: var(--ns-fs-body-sm); font-weight: 700; color: var(--novo-blue); }
.ns-article-card:hover h2, .ns-article-card:hover h3 { color: var(--novo-blue); }
.ns-article-card:hover .ns-media img { transform: scale(1.02); }

/* Panel card: bordered box, used sparingly (pricing, callouts) */
.ns-panel { background: #fff; border: 1px solid var(--novo-border); border-radius: var(--ns-radius); padding: 1.75rem; }
.ns-panel--pale { background: var(--novo-pale-blue); border-color: var(--novo-pale-blue-line); }
.ns-panel--feature { border-top: 3px solid var(--novo-blue); }

/* ---------- 9. Media ---------- */
.ns-media { position: relative; overflow: hidden; background: #e9edf3; border-radius: var(--ns-radius-sm); aspect-ratio: 3 / 2; }
.ns-media--4x3 { aspect-ratio: 4 / 3; }
.ns-media--16x9 { aspect-ratio: 16 / 9; }
.ns-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ns-portrait { width: 100%; max-width: 15rem; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #e9edf3; }
.ns-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ns-figure { margin: 0; }
.ns-figure figcaption { margin-top: .75rem; font-size: var(--ns-fs-caption); color: var(--novo-text-subtle); }

/* ---------- 10. Editorial prose (condition, treatment, education, blog bodies) ---------- */
.ns-prose { max-width: var(--ns-measure); font-size: var(--ns-fs-body); line-height: 1.7; color: var(--novo-text); }
.ns-prose > div[class*="max-w"] { max-width: none !important; margin: 0 !important; padding: 0 !important; }
.ns-prose h2 { font-size: var(--ns-fs-h2-prose) !important; line-height: 1.25 !important; font-weight: 700 !important; letter-spacing: -.005em; color: var(--novo-text); margin: 2.75rem 0 .85rem !important; text-wrap: balance; scroll-margin-top: 6rem; }
.ns-prose h3 { font-size: 1.1875rem !important; line-height: 1.35; font-weight: 700 !important; color: var(--novo-text); margin: 2rem 0 .6rem !important; }
.ns-prose > h2:first-child, .ns-prose > div:first-child > h2:first-child, .ns-prose > div:first-child > p:first-child + h2 { margin-top: 0 !important; }
.ns-prose p { margin: 0 0 1.15em !important; }
.ns-prose ul, .ns-prose ol { margin: 0 0 1.35em !important; padding-left: 1.35rem !important; }
.ns-prose ul { list-style: disc; }
.ns-prose ol { list-style: decimal; }
.ns-prose li { margin-bottom: .5rem; padding-left: .2rem; }
.ns-prose li::marker { color: var(--novo-blue); }
.ns-prose a { color: var(--novo-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ns-prose a:hover { text-decoration-thickness: 2px; }
.ns-prose strong { font-weight: 700; }
.ns-prose img { max-width: 100%; height: auto; border-radius: var(--ns-radius-sm); }
.ns-prose div[style*="aspect-ratio"] { width: 100% !important; margin: 2rem 0 !important; border-radius: var(--ns-radius-sm); }
.ns-prose blockquote { border-left: 2px solid var(--novo-blue); margin: 2rem 0; padding: .25rem 0 .25rem 1.25rem; font-size: var(--ns-fs-body-lg); }
.ns-prose table { width: 100%; border-collapse: collapse; font-size: var(--ns-fs-body-sm); margin: 0 0 1.5rem; }
.ns-prose th, .ns-prose td { text-align: left; vertical-align: top; padding: .7rem 1rem .7rem 0 !important; border-bottom: 1px solid var(--novo-border) !important; }
.ns-prose th { font-weight: 700; border-bottom: 2px solid var(--novo-navy) !important; }
.ns-prose .overflow-x-auto { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ns-prose p.text-sm, .ns-prose p[style*="font-size:0.875rem"] { font-size: var(--ns-fs-caption) !important; color: var(--novo-text-subtle); line-height: 1.55; }
/* Direct-answer paragraph (first paragraph that opens with a bold label) */
.ns-prose > p:first-child:has(> strong:first-child),
.ns-prose > h2:first-child + p:has(> strong:first-child) { background: var(--novo-pale-blue); border-left: 3px solid var(--novo-blue); border-radius: 0 var(--ns-radius) var(--ns-radius) 0; padding: 1.25rem 1.5rem; margin-bottom: 2rem !important; }
/* Legacy inline "Book" buttons inside page content -> system primary button */
.ns-prose a.bg-blue { display: inline-flex; align-items: center; min-height: 52px; padding: 0 1.75rem !important; border-radius: var(--ns-radius-pill); background: var(--novo-blue); color: #fff !important; font-size: 1.0625rem !important; font-weight: 700; letter-spacing: .01em !important; text-transform: none !important; text-decoration: none !important; margin-top: .5rem !important; }
.ns-prose a.bg-blue:hover { background: var(--novo-blue-hover) !important; }
.ns-prose p.text-center:has(> a.bg-blue) { text-align: left !important; margin-top: 2rem !important; }
/* Blog article lead paragraph (the summary written as a direct answer) */
.ns-prose--article > p:first-child { font-size: var(--ns-fs-body-lg); line-height: 1.6; color: var(--novo-text); padding-bottom: 1.5rem; border-bottom: 1px solid var(--novo-border); margin-bottom: 1.75rem !important; }

/* Page layout with a reading column and a side rail (desktop) */
.ns-article-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 72rem) { .ns-article-layout { grid-template-columns: minmax(0, var(--ns-measure)) minmax(0, 18rem); gap: 5rem; justify-content: space-between; } .ns-rail-inner { position: sticky; top: 7.5rem; } }
.ns-rail h2 { font-size: var(--ns-fs-eyebrow); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--novo-text-muted); margin: 0 0 1rem; }
.ns-rail ul { list-style: none; margin: 0 0 2rem; padding: 0; border-top: 1px solid var(--novo-border); }
.ns-rail li { border-bottom: 1px solid var(--novo-border); }
.ns-rail li a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 48px; padding: .6rem 0; color: var(--novo-text); font-size: var(--ns-fs-body-sm); font-weight: 700; line-height: 1.35; text-decoration: none; }
.ns-rail li a::after { content: "\2192"; color: var(--novo-blue); flex-shrink: 0; }
.ns-rail li a:hover { color: var(--novo-blue); }
.ns-rail-cta { padding: 1.5rem; border-radius: var(--ns-radius); background: var(--novo-pale-blue); }
.ns-rail-cta p { font-size: var(--ns-fs-body-sm); margin: 0 0 1rem; }
.ns-rail-cta .btn { width: 100%; margin: 0 0 .75rem; min-height: 48px; font-size: 1rem; }
.ns-rail-cta .ns-phone { display: block; text-align: center; font-size: var(--ns-fs-body-sm); color: var(--novo-text); }

/* ---------- 11. FAQ (visible Q&A; same entries feed FAQPage schema) ---------- */
.faq-block-outer { max-width: var(--ns-measure) !important; margin: 0 !important; padding: 0 !important; }
.faq-block { max-width: none; margin: 0; padding: 0; border: 0; }
.faq-block h2 { font-size: var(--ns-fs-h2) !important; line-height: 1.15 !important; font-weight: 400 !important; letter-spacing: -.012em; color: var(--novo-text); margin: 0 0 1.75rem !important; text-wrap: balance; }
.faq-block-item { border-bottom: 1px solid var(--novo-border); }
.faq-block-item:first-of-type { border-top: 1px solid var(--novo-border); }
.faq-block-item summary { display: flex; align-items: center; min-height: 56px; padding: 1rem 2.5rem 1rem 0 !important; font-size: 1.0625rem; font-weight: 700; line-height: 1.4; color: var(--novo-text); }
.faq-block-item summary::after { top: 50% !important; transform: translateY(-50%); font-weight: 300; font-size: 1.5rem !important; }
.faq-block-answer { color: var(--novo-text-muted); font-size: var(--ns-fs-body); line-height: 1.7; padding-bottom: 1.25rem; max-width: 40rem; }
.faq-block-answer a { color: var(--novo-blue); }

/* ---------- 12. Related links / continue exploring ---------- */
.ns-related-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0 2.5rem; }
@media (min-width: 48rem) { .ns-related-links { grid-template-columns: 1fr 1fr; } }
@media (min-width: 72rem) { .ns-related-links--3 { grid-template-columns: repeat(3, 1fr); } }
.ns-related-links li { border-top: 1px solid var(--novo-border); }
.ns-related-links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .85rem 0; color: var(--novo-text); font-weight: 700; line-height: 1.35; text-decoration: none; }
.ns-related-links a::after { content: "\2192"; color: var(--novo-blue); flex-shrink: 0; transition: transform .15s; }
.ns-related-links a:hover { color: var(--novo-blue); }
.ns-related-links a:hover::after { transform: translateX(3px); }
.ns-related-links span { display: block; font-weight: 400; font-size: var(--ns-fs-body-sm); color: var(--novo-text-muted); margin-top: .15rem; }

/* ---------- 13. Final CTA family ---------- */
.ns-cta { padding: var(--ns-section-y) 0; }
.ns-cta .ns-h2 { max-width: 40rem; }
.ns-cta-copy { max-width: 38rem; font-size: var(--ns-fs-body-lg); }
.ns-cta-copy p:last-child { margin-bottom: 0; }
.ns-cta-meta { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; gap: .5rem 2rem; font-size: var(--ns-fs-body-sm); color: var(--novo-on-dark-muted); }
.ns-cta-meta a { color: var(--novo-on-dark-muted); text-decoration: none; }
.ns-cta-meta a:hover { color: #fff; text-decoration: underline; }
.ns-cta .ns-phone { color: #fff; font-size: 1.125rem; }

/* ---------- 14. Location ---------- */
.ns-location { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: stretch; }
@media (min-width: 64rem) { .ns-location { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: center; } }
.ns-location dl { margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.ns-location dt { font-size: var(--ns-fs-caption); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--novo-text-muted); margin-bottom: .2rem; }
.ns-location dd { margin: 0; }
.ns-location dd a { color: var(--novo-text); text-decoration: none; }
.ns-location dd a:hover { color: var(--novo-blue); text-decoration: underline; }
.ns-map { border-radius: var(--ns-radius); overflow: hidden; border: 1px solid var(--novo-border); background: #e9edf3; min-height: 18rem; }
.ns-map iframe { display: block; width: 100%; height: 100%; min-height: 18rem; border: 0; }
@media (min-width: 64rem) { .ns-map, .ns-map iframe { min-height: 24rem; } }

/* ---------- 15. Pricing ---------- */
.ns-prices { display: grid; grid-template-columns: 1fr; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 52rem) { .ns-prices { grid-template-columns: 1.15fr 1fr 1fr; gap: 1.5rem; } }
.ns-price { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--novo-border); border-radius: var(--ns-radius); padding: 1.75rem; }
.ns-price--feature { border: 1px solid var(--novo-navy); box-shadow: inset 0 3px 0 var(--novo-blue); }
.ns-price h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 700; margin: 0; color: var(--novo-text); }
.ns-price-tag { display: block; font-size: var(--ns-fs-caption); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--novo-blue); margin-bottom: .6rem; }
.ns-amount { display: flex; align-items: baseline; gap: .4rem; margin: 1rem 0 .25rem; font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); font-weight: 300; line-height: 1; letter-spacing: -.02em; color: var(--novo-navy); }
.ns-amount small { font-size: var(--ns-fs-body-sm); font-weight: 400; letter-spacing: 0; color: var(--novo-text-muted); }
.ns-price p { font-size: var(--ns-fs-body-sm); color: var(--novo-text-muted); margin: .75rem 0 0; }
.ns-price .ns-list { margin: 1rem 0 0; font-size: var(--ns-fs-body-sm); }
.ns-price .ns-list li { margin-bottom: .45rem; }
.ns-price .btn { margin: 1.5rem 0 0; width: 100%; }
.ns-pay { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--novo-border); }
@media (min-width: 48rem) { .ns-pay { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.ns-pay h3 { font-size: var(--ns-fs-caption); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--novo-text-muted); margin: 0 0 .5rem; }
.ns-pay p { font-size: var(--ns-fs-body-sm); margin: 0; }

/* ---------- 16. Utilities ---------- */
.ns-mt-0 { margin-top: 0 !important; }
.ns-mb-0 { margin-bottom: 0 !important; }
.ns-mt-lg { margin-top: var(--ns-stack-lg); }
.ns-center { text-align: center; }
.ns-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 17. Page-specific helpers ---------- */
.ns-hero-lede p:last-child { margin-bottom: 0; }
.ns-faq-cols { display: grid !important; grid-template-columns: 1fr; gap: 3rem; text-align: left; max-width: none !important; }
@media (min-width: 64rem) { .ns-faq-cols { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.ns-faq-cols .novo-faq-col { max-width: none; margin: 0; padding: 0; }
.ns-faq-cols .ns-eyebrow { margin-bottom: 1.25rem; }
.ns-contact-form > section { padding-top: 0; }
.ns-blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; font-size: var(--ns-fs-caption); color: var(--novo-text-subtle); }
.ns-blog-meta a { color: var(--novo-text-muted); }
.ns-article-hero-img { margin-top: 2.5rem; }
.ns-article-hero-img .ns-media { max-height: 32rem; }
.ns-byline { display: flex; align-items: center; gap: .9rem; margin-top: 1.5rem; }
.ns-byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ns-byline p { margin: 0; font-size: var(--ns-fs-body-sm); line-height: 1.45; color: var(--novo-text-muted); }
.ns-byline strong { color: var(--novo-text); }
.ns-related-articles > li:nth-child(n+4) { display: none; }

/* ---------- 18. QA fixes (2026-10-02) ---------- */
.ns-grid, .ns-split, .ns-article-layout, .ns-location, .ns-hero-grid, .ns-prices, .ns-pay, .ns-related-links { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .ns-grid--2, .ns-grid--3, .ns-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .ns-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ns-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .ns-split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } .ns-location { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
@media (min-width: 56rem) { .ns-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
@media (min-width: 72rem) { .ns-article-layout { grid-template-columns: minmax(0, var(--ns-measure)) minmax(0, 18rem); } }
@media (min-width: 52rem) { .ns-prices { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 48rem) { .ns-pay { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ns-related-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .ns-related-links--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ns-prose { min-width: 0; overflow-wrap: break-word; }
.ns-prose .overflow-x-auto, .ns-prose table { max-width: 100%; }
/* About: compact portrait byline on small screens */
@media (max-width: 55.99rem) {
  .about-hero-figure { display: flex; align-items: center; gap: 1rem; }
  .about-hero-figure .ns-portrait { width: 4.5rem; max-width: 4.5rem; flex-shrink: 0; }
  .about-hero-figure figcaption { margin-top: 0; }
}

/* ---------- 19. Sitewide QA pass (2026-10-02) ---------- */
/* FAQ base behavior (moved here from novo-overrides.css) */
.faq-block-item summary { cursor: pointer; list-style: none; position: relative; }
.faq-block-item summary::-webkit-details-marker { display: none; }
.faq-block-item summary::after { content: '+'; position: absolute; right: .25rem; line-height: 1; color: var(--novo-blue); }
.faq-block-item[open] summary::after { content: '\2212'; }
.faq-block-answer p { margin-bottom: .75rem; }
.faq-block-answer p:last-child { margin-bottom: 0; }

/* Blog article hero image: reading width, never cropped (several are diagrams or portrait photos) */
.ns-article-hero-img { margin-top: 2.5rem; }
.ns-article-img { display: block; width: auto; max-width: 100%; height: auto; max-height: 34rem; border-radius: var(--ns-radius-sm); background: #e9edf3; }

/* Homepage and testimonial section headings use the shared H2 scale */
.home-section h2.home-h2, #testimonials_section > h2 { font-size: var(--ns-fs-h2) !important; line-height: 1.15 !important; font-weight: 400 !important; letter-spacing: -.012em; text-wrap: balance; }

/* Captions never smaller than the caption token */
#site_footer .footer-bottom, .svc-cites span { font-size: var(--ns-fs-caption) !important; }
/* Tablet (48rem-63.99rem): use the mobile menu. The seven desktop links do not fit at this width,
   and at exactly 768px the old breakpoints hid both the menu and the menu button. */
@media (min-width: 48rem) and (max-width: 63.99rem) {
  body #nav_wrap #nav_btn { display: inline-block !important; }
  body #nav_wrap #site_nav { position: fixed !important; top: 0; right: 0; bottom: 0; left: 0; width: 100% !important; display: flex !important; justify-content: center; align-items: center; background: #eaeff9 !important; padding: 0 1rem 1.5rem !important; visibility: hidden; opacity: 0; }
  body #nav_wrap #site_nav.is-visible { visibility: visible; opacity: 1; transition: opacity .35s ease-out; }
  body #nav_wrap #site_nav #menu { display: block !important; text-align: center; }
  body #nav_wrap #site_nav #menu > li { margin-left: 0 !important; padding-bottom: 2.25rem !important; }
  body #nav_wrap #site_nav #menu > li:last-child { padding-bottom: 0 !important; }
  body #nav_wrap #site_nav #menu li a { display: inline-block !important; height: auto !important; padding: 0 !important; font-size: 2.25rem !important; letter-spacing: normal !important; color: var(--novo-blue) !important; background: none !important; border: 0 !important; }
}

/* ---------- 20. Open mobile/tablet menu: same readable treatment on every page (incl. homepage) ---------- */
@media (max-width: 63.99rem) {
  body.menu_open #nav_wrap #site_nav #menu li a { color: var(--novo-text) !important; font-weight: 400; }
  body.menu_open #nav_wrap #site_nav #menu li a:hover, body.menu_open #nav_wrap #site_nav #menu li a[aria-current="page"] { color: var(--novo-blue) !important; }
  body.menu_open #nav_wrap #site_nav #menu li:last-child a { display: inline-flex !important; align-items: center; min-height: 52px; padding: 0 1.75rem !important; border-radius: var(--ns-radius-pill); background: var(--novo-blue) !important; color: #fff !important; font-size: 1.125rem !important; font-weight: 700; text-decoration: none; }
  body.menu_open #nav_wrap #site_nav #menu li:last-child a:hover { background: var(--novo-blue-hover) !important; }
  body.menu_open #nav_wrap #wordmark { fill: var(--novo-navy) !important; }
  body.menu_open #nav_wrap .hamburger-inner, body.menu_open #nav_wrap .hamburger-inner::before, body.menu_open #nav_wrap .hamburger-inner::after { background-color: var(--novo-navy) !important; }
}

/* 21. Article cover image (opt-in per post: hero_image, hero_srcset, hero_focus, hero_focus_mobile) */
.ns-article-cover { margin: 2.5rem 0 0; width: 100%; max-width: 1200px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--ns-radius); background: #e9edf3; }
.ns-article-cover-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
@media (max-width: 48rem) { .ns-article-cover-img { object-position: var(--focus-m, var(--focus, 50% 50%)); } }
