/* ==========================================================================
   MEDICAL AFFAIRS CONSULTING — page components (2026 restyling)
   Loaded after style.css. Uses its design tokens.
   ========================================================================== */
/* ── Accessibility ───────────────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: 0; top: 0; z-index: 10000; transform: translateY(-120%);
  background: var(--color-primary-dark); color: #fff; padding: .75rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0; font-size: var(--text-sm); font-weight: 600;
}
.skip-link:focus { transform: none; color: #fff; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
/* ── Navbar: seven entries, compact up to 1440px ────────────────────────────────────────────────── */
@media (min-width: 1441px) { .navbar__menu { gap: 40px; } }
@media (min-width: 1321px) and (max-width: 1440px) {
  .navbar__menu { gap: 28px; }
  .navbar__menu a { font-size: .875rem; }
  .navbar__logo img { width: 150px; height: auto; }
}
/* Phone menu: the button keeps its white label, the language links stay compact */
.navbar__mobile .btn--primary { color: #fff; border-bottom: 0; }
.navbar__mobile .lang-switcher a { border-bottom: 0; font-size: 1rem; font-weight: 600; min-height: 44px; padding: 0 var(--space-3); display: inline-flex; align-items: center; }
/* ── Draft markers (removed before publication) ──────────────────────────── */
/* ── Home: figures bar ───────────────────────────────────────────────────── */
.stats-bar__number { font-size: clamp(2.25rem, 3.4vw, 3.25rem); white-space: nowrap; }
/* ── Cards in four columns ───────────────────────────────────────────────── */
/* ── Home: method, tools, about preview ──────────────────────────────────── */
.about-preview, .split {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--space-16); align-items: center;
}
.about-preview p, .split p { max-width: 62ch; }
.split p + p { margin-top: var(--space-4); }
@media (max-width: 900px) {
  .about-preview, .split { grid-template-columns: 1fr; gap: var(--space-8); }
}
/* ── Check lists and standards ───────────────────────────────────────────── */
.standards li { display: flex; align-items: flex-start; gap: var(--space-3); }
.standards svg {
  flex-shrink: 0; margin-top: .4em; color: var(--color-primary);
  background: var(--color-primary-light); border-radius: 5px; padding: 3px; width: 20px; height: 20px;
}
.standards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-10); margin-top: var(--space-8); }
.standards li { font-weight: 500; }
@media (max-width: 768px) {
  .standards { grid-template-columns: 1fr; }
}
/* ── PV System: obligations table ────────────────────────────────────────── */
.oblig { width: 100%; border-collapse: collapse; margin-top: var(--space-10); background: var(--color-bg-white);
  border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.oblig thead th {
  text-align: left; padding: var(--space-4) var(--space-6); background: var(--color-primary-dark); color: #fff;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.oblig tbody tr { border-top: 1px solid var(--color-border); }
.oblig tbody th, .oblig tbody td { padding: var(--space-5) var(--space-6); vertical-align: top; text-align: left; }
.oblig tbody th { width: 38%; font-family: var(--font-heading); font-weight: 700; color: var(--color-primary-dark); line-height: 1.35; }
.oblig tbody td { color: var(--color-text); }
@media (max-width: 768px) {
  .oblig thead { display: none; }
  .oblig, .oblig tbody, .oblig tr, .oblig th, .oblig td { display: block; width: 100% !important; }
  .oblig tbody th, .oblig tbody td { padding: var(--space-2) var(--space-5); }
  .oblig tbody td:last-child { padding-bottom: var(--space-5); }
}
/* ── Steps (transition, how we start) ────────────────────────────────────── */
/* ── Services: anchor nav, full-system banner, module grid ───────────────── */
.module {
  background: var(--color-bg-white); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-6); box-shadow: var(--shadow-sm);
}
/* ── Points (title + one or two sentences) ───────────────────────────────── */
/* ── Quality: improvement timeline ───────────────────────────────────────── */
/* ── Quality: code of ethics ─────────────────────────────────────────────── */
/* ── Contact ─────────────────────────────────────────────────────────────── */
/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.accordion__heading { font-size: inherit; margin: 0; }
.accordion__content a { color: var(--color-primary); text-decoration: underline; white-space: nowrap; }
/* ── Legal pages ─────────────────────────────────────────────────────────── */
.prose h2 { font-size: var(--text-2xl); margin: var(--space-10) 0 var(--space-3); }
.prose p, .prose ul { margin-bottom: var(--space-4); max-width: none; }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose li { margin-bottom: var(--space-2); }
.prose a { color: var(--color-primary); text-decoration: underline; }
/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer__title {
  font-size: var(--text-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-bottom: var(--space-5);
}
.footer__anniv { font-size: var(--text-xs); font-weight: 600; letter-spacing: .06em; color: rgba(255,255,255,.75) !important; }
.footer__legal { font-size: var(--text-xs); color: rgba(255,255,255,.6); line-height: 1.7; margin-bottom: var(--space-4); max-width: none; }
.footer__bottom, .footer__bottom-links a { color: rgba(255,255,255,.6); }
.footer__bottom-links { flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right, .reveal-fade, .reveal-scale { opacity: 1 !important; transform: none !important; transition: none !important; }
}
/* ==========================================================================
   HOME (2026 redesign) — scoped to body.site-v2 on every page (see RESTYLE.md §6).
   One screen per section, one pair of edge lines, flat grounds, no boxes.
   Brand palette and the self-hosted Archivo / Libre Franklin are unchanged;
   headlines drop from 800 to 500 and carry by size and tracking.
   ========================================================================== */
.site-v2 {
  --hm-gut: 24px;            /* page gutter: the two edge lines */
  --hm-padt: 96px;           /* section top padding (clears the fixed bar) */
  --hm-padb: 48px;
  --hm-screen: min(100svh, 1200px);
  --hm-rule: rgba(26, 26, 26, .14);
  --hm-ease: cubic-bezier(.2, .7, .2, 1);
  background: var(--color-bg);
  font-size: 1rem;
  line-height: 1.625;
}
@media (min-width: 640px) {
  .site-v2 { --hm-gut: 64px; --hm-padb: 72px; }
}
@media (min-width: 1024px) {
  .site-v2 { --hm-gut: 80px; --hm-padt: 120px; --hm-padb: 72px; }
}
html:has(.site-v2) { scroll-behavior: auto; }
/* ── The frame: one wrap for the bar, every section and the footer ───────── */
.hm-wrap,
.site-v2 .navbar__inner,
.site-v2 .footer > .container {
  width: min(100% - 2 * var(--hm-gut), 1280px);
  max-width: none; margin-inline: auto; padding-inline: 0;
}
.hm-hero, .hm-section {
  min-height: var(--hm-screen);
  padding: var(--hm-padt) 0 var(--hm-padb);
  display: flex;
}
.hm-hero > .hm-wrap, .hm-section > .hm-wrap { display: flex; flex-direction: column; }
.site-v2 .skip-link { left: var(--hm-gut); }
.hm-section > .hm-split { display: grid; align-content: start; }
.hm-section--white { background: var(--color-bg-white); }
.hm-section--band { background: var(--color-primary-dark); color: #fff; }
.hm-split { display: grid; grid-template-columns: 1fr; gap: var(--space-10); align-items: start; }
@media (min-width: 1024px) {
  .hm-split { grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 0; }
  .hm-split > :first-child { grid-column: 1 / span 5; }
  .hm-split > :last-child { grid-column: 7 / span 6; }
}
/* ── Type ────────────────────────────────────────────────────────────────── */
.site-v2 h1, .site-v2 h2, .site-v2 h3 { font-weight: 500; color: var(--color-text); }
.site-v2 main p { color: var(--color-text); line-height: 1.625; max-width: 62ch; }
.hm-h1 {
  font-size: clamp(2.125rem, 5vw, 4.5rem); line-height: 1.04; letter-spacing: -.035em;
  max-width: 15.5em; text-wrap: balance;
}
.hm-h1 .text-primary { white-space: nowrap; }
.hm-h2 { font-size: clamp(1.875rem, 3.34vw, 3rem); line-height: 1.1; letter-spacing: -.028em; text-wrap: balance; }
.hm-h3, .hm-rows h3, .hm-steps h3 { font-size: clamp(1.375rem, 1.7vw, 1.5rem); line-height: 1.25; letter-spacing: -.016em; }
.hm-fact__n, .hm-figures strong, .hm-stats strong {
  font-family: var(--font-heading); font-weight: 500; font-size: clamp(1.75rem, 2.64vw, 2.375rem); line-height: 1.1;
  letter-spacing: -.03em; color: var(--color-primary-dark); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hm-lead { font-size: clamp(1.125rem, 1.4vw, 1.25rem); line-height: 1.5; }
.hm-kicker { font-size: var(--text-sm); font-weight: 500; line-height: 1.45; color: var(--color-primary-dark) !important; }
.hm-label { font-size: .8125rem; font-weight: 500; color: var(--color-text-muted) !important; }
.hm-accent { color: var(--color-accent) !important; }
/* ── Links and buttons: one pair, each answers the pointer ───────────────── */
.hm-link {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px;
  position: relative; font-weight: 500; color: var(--color-primary-dark);
}
.hm-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--hm-ease);
}
.hm-link:hover { color: var(--color-primary-dark); }
.hm-link:hover::after { transform: scaleX(1); }
.hm-link svg { transition: transform .3s var(--hm-ease); }
.hm-link:hover svg { transform: translateX(4px); }
.hm-section--band .hm-link, .hm-section--band .hm-link:hover { color: #fff; }
.site-v2 .btn { min-height: 48px; font-weight: 500; }
.site-v2 .btn--lg { min-height: 52px; font-size: 1rem; }
.site-v2 .btn--primary:hover { box-shadow: none; }
.site-v2 .btn--outline { border-width: 1px; border-color: var(--color-primary-dark); color: var(--color-primary-dark); }
.site-v2 .btn--outline:hover { background: var(--color-primary-dark); color: #fff; }
.site-v2 .btn:active { transform: translateY(0) scale(.98); transition-duration: .05s; }
.site-v2 .btn svg { transition: transform .3s var(--hm-ease); }
.site-v2 .btn:hover svg { transform: translateX(3px); }
/* ── The bar: one line from edge to edge, never wrapping ─────────────────── */
.site-v2 .navbar { box-shadow: none; border-bottom: 1px solid var(--hm-rule); }
.site-v2 .navbar__menu a, .site-v2 .navbar__actions .btn { white-space: nowrap; }
.site-v2 .navbar__menu a { color: var(--color-text); }
.site-v2 .navbar__menu a:hover, .site-v2 .navbar__menu a.active { color: var(--color-primary-dark); }
.site-v2 .navbar__menu a::after { background: var(--color-primary-dark); }
.site-v2 .lang-switcher a { min-height: 32px; display: inline-flex; align-items: center; }
.site-v2 .lang-switcher a.active, .site-v2 .lang-switcher a:hover { color: var(--color-primary-dark); }
.site-v2 .lang-switcher span { color: var(--color-muted); }
.site-v2 .navbar__hamburger { width: 44px; height: 44px; justify-content: center; padding: 8px; }
@media (max-width: 1320px) {
  .site-v2 .navbar__menu { display: none; }
  .site-v2 .navbar__hamburger { display: flex; }
  .site-v2 .navbar__actions .btn { display: none; }
}
@media (max-width: 639px) {
  .site-v2 .navbar__logo img { height: 36px; }
  .site-v2 .navbar__mobile a { min-height: 44px; font-weight: 500; }
  .site-v2 .navbar__mobile .btn { justify-content: center; }
}
/* ── Hero: a statement, the proof, two actions, four figures at the foot ─── */
.hm-hero { padding-bottom: 24px; }
.hm-h1 { margin-top: var(--space-4); }
.hm-hero .hero-text { display: flex; flex-direction: column; }
.hm-hero__row { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.hm-proof { font-weight: 500; }
.hm-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hm-facts { display: none; }
@media (max-width: 639px) {
  .hm-actions { flex-direction: column; }
  .hm-actions .btn { justify-content: center; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .hm-h1 { font-size: clamp(3rem, 7.2vw, 3.75rem); }
  .hm-hero .hm-lead { font-size: 1.375rem; }
  .hm-hero .hm-proof { font-size: 1.125rem; }
}
@media (min-width: 640px) {
  .hm-hero { padding-bottom: 48px; }
  .hm-hero__row { margin-top: var(--space-8); }
}
@media (min-width: 1280px) and (min-height: 800px) {
  .hm-facts {
    display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 24px;
    margin-top: auto; padding-top: var(--space-6); border-top: 1px solid var(--hm-rule);
  }
  .hm-actions { margin-bottom: var(--space-10); }
}
@media (min-width: 1024px) {
  .hm-hero { padding-bottom: 64px; }
  .hm-hero__row { grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-top: var(--space-10); }
  .hm-hero__row .hm-lead { grid-column: 1 / span 5; }
  .hm-hero__row .hm-proof { grid-column: 7 / span 6; }
}
.hm-fact__n { display: block; }
.hm-fact__of { font-size: .42em; letter-spacing: 0; color: var(--color-text-muted); }
.hm-fact p { margin-top: var(--space-1); font-size: var(--text-sm); line-height: 1.45; color: var(--color-text-muted) !important; max-width: 26ch !important; }
.hm-facts__note { grid-column: 1 / -1; margin-top: var(--space-3); font-size: .8125rem; color: var(--color-text-muted) !important; }
@media (min-width: 1280px) and (min-height: 800px) {
  /* the strip stays a slim foot of the hero */
  .hm-facts { padding-top: var(--space-5); }
  .hm-fact__n { font-size: 2.25rem; }
  .hm-fact p { margin-top: 0; font-size: .8125rem; line-height: 1.4; max-width: 30ch !important; }
  .hm-facts__note { margin-top: var(--space-2); line-height: 1.4; }
}
@media (min-width: 640px) and (max-width: 1023px) and (min-height: 800px) {
  /* tablet: the figures follow the actions, two by two */
  .hm-facts {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6) 24px;
    margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--hm-rule);
  }
  .hm-fact__n { font-size: 2.75rem; }
  .hm-fact p { font-size: 1rem; }
}
/* The hero enters once on load (html.m-enter is set in the head; without script it stands). */
@media (prefers-reduced-motion: no-preference) {
  html.m-enter:not(.m-enter-done) .hm-hero[data-enter] .hero-text > *,
html.m-enter:not(.m-enter-done) .hm-hero[data-enter] .hm-facts { animation: hm-enter .6s var(--hm-ease) both; }
  html.m-enter:not(.m-enter-done) .hm-hero[data-enter] .hero-text > :nth-child(2) { animation-delay: .05s; }
  html.m-enter:not(.m-enter-done) .hm-hero[data-enter] .hero-text > :nth-child(3) { animation-delay: .12s; }
  html.m-enter:not(.m-enter-done) .hm-hero[data-enter] .hero-text > :nth-child(4) { animation-delay: .18s; }
  html.m-enter:not(.m-enter-done) .hm-hero[data-enter] .hm-facts { animation-delay: .26s; }
}
@keyframes hm-enter { from { opacity: 0; transform: translateY(14px); } }
/* ── What we do: two pillars in plain columns, the tools as the last row ─── */
.hm-pillars { display: grid; gap: var(--space-10); margin-top: var(--space-12); }
.hm-pillar p { margin-top: var(--space-4); }
.hm-pillar--lead p { font-size: clamp(1.125rem, 1.4vw, 1.25rem); line-height: 1.5; }
.hm-pillar .hm-link { margin-top: var(--space-4); }
@media (min-width: 1024px) {
  .hm-pillars { grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-top: var(--space-16); }
  .hm-pillar--lead { grid-column: 1 / span 5; }
  .hm-pillar:not(.hm-pillar--lead) { grid-column: 7 / span 6; }
}
/* ── Why: the heading on the left line, four plain rows on the split line ── */
.hm-rows li { padding: var(--space-6) 0; border-bottom: 1px solid var(--hm-rule); }
.hm-rows li:first-child { padding-top: var(--space-2); }
.hm-rows p { margin-top: var(--space-2); }
@media (min-width: 640px) {
  .hm-rows li { padding: var(--space-8) 0; }
  .site-v2 .hm-rows p { font-size: 1.125rem; line-height: 1.55; }
}
/* ── Method: the one brand band, three numbered columns ──────────────────── */
.hm-section--band h2, .hm-section--band h3 { color: #fff; }
.site-v2 .hm-section--band p { color: rgba(255, 255, 255, .9); }
.hm-steps { display: grid; gap: var(--space-8); margin-top: var(--space-12); counter-reset: none; }
.hm-steps li { padding-top: var(--space-5); border-top: 1px solid rgba(255, 255, 255, .28); }
.hm-steps__n { display: block; font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 500; color: rgba(255, 255, 255, .72); }
.hm-steps h3 { margin-top: var(--space-3); }
.hm-steps p { margin-top: var(--space-3); }
.hm-steps .hm-link { margin-top: var(--space-3); }
@media (min-width: 1024px) {
  .hm-steps { grid-template-columns: repeat(3, 1fr); column-gap: 24px; margin-top: var(--space-20); }
  .site-v2 .hm-steps p { max-width: 40ch; font-size: 1.125rem; line-height: 1.55; }
}
/* ── Clients: three figures on the left line, the map on the split line ──── */
.hm-clients { margin-top: var(--space-10); }
@media (min-width: 1024px) {
  .hm-clients { margin-top: var(--space-16); }
}
.hm-figures li {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--space-4); align-items: center;
  padding: var(--space-6) 0; border-bottom: 1px solid var(--hm-rule);
}
.hm-figures span { max-width: 40ch; }
.hm-key { display: grid; gap: var(--space-1); margin-top: var(--space-6); font-size: var(--text-sm); color: var(--color-text-muted) !important; }
.hm-map { margin: 0; }
.hm-map svg { display: block; width: 100%; height: auto; }
.hm-map text { text-anchor: middle; font-family: inherit; }
@media (max-width: 1023px) {
  .hm-map svg { max-width: 460px; }
  .hm-clients { gap: var(--space-6); }
}
@media (max-width: 639px) {
  .hm-figures li { display: block; padding: var(--space-4) 0; }
  .hm-figures strong { display: block; margin-bottom: var(--space-1); }
  .hm-rows li { padding: var(--space-4) 0; }
}
/* client map drawing (colours from the palette) */
.cm-halo { fill: var(--color-primary-light); }
.cm-links line { stroke: #9DBED3; stroke-width: 2; stroke-dasharray: 7 6; }
.cm-hub { fill: var(--color-primary-dark); }
.cm-mah { fill: var(--color-primary); }
.cm-sponsor { fill: var(--color-accent); }
.cm-both { stroke: var(--color-accent); stroke-width: 7; }
.cm-hub-name { fill: #fff; font-size: 26px; font-weight: 600; }
.cm-hub-place { fill: #E3EEF5; font-size: 15px; }
.cm-code { fill: #fff; font-size: 20px; font-weight: 600; }
.cm-label { fill: var(--color-text); font-size: 15px; font-weight: 500; }
.cm-dot { display: inline-block; width: .8em; height: .8em; border-radius: 50%; margin-right: .5em; }
.cm-dot--mah { background: var(--color-primary); }
.cm-dot--sponsor { background: var(--color-accent); }
@media (max-width: 600px) {
  .cm-label, .cm-hub-place { font-size: 19px; }
}
/* ── The year in figures, then the about preview as the second row ───────── */
.hm-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8) 12px; margin-top: var(--space-12); }
.hm-stats strong { display: block; }
.hm-stats span { display: block; margin-top: var(--space-3); max-width: 24ch; }
.hm-since { margin-top: var(--space-4); padding-top: var(--space-12); align-items: stretch; }
.hm-since .hm-h3 { margin-top: var(--space-2); }
.hm-since .btn { margin-top: var(--space-6); }
@media (min-width: 1024px) {
  .hm-stats { grid-template-columns: repeat(4, 1fr); column-gap: 24px; margin-top: var(--space-16); }
  .hm-stats--3 { grid-template-columns: repeat(3, 1fr); }
  .hm-since { margin-top: auto; padding-top: var(--space-16); }
}
/* ── Close and footer: one closing screen ────────────────────────────────── */
.site-v2 .footer {
  min-height: var(--hm-screen); padding: var(--hm-padt) 0 var(--space-8);
  display: flex;
}
.site-v2 .footer > .container { display: flex; flex-direction: column; }
.footer__close { padding-bottom: var(--space-8); }
.site-v2 .footer__bottom p { color: inherit; max-width: none; }
.footer__close .hm-h2 { color: #fff; max-width: 21em; }
.site-v2 .footer__close p { margin-top: var(--space-4); font-size: clamp(1.125rem, 1.4vw, 1.25rem); color: rgba(255, 255, 255, .8); }
.footer__close .btn { margin-top: var(--space-6); }
.site-v2 .footer__main { margin-top: auto; }
.site-v2 .footer__top { padding-top: var(--space-10); border-top: 1px solid rgba(255, 255, 255, .14); border-bottom: 0; padding-bottom: var(--space-4); margin-bottom: 0; }
@media (min-width: 641px) {
  .site-v2 .footer { padding-bottom: var(--hm-padb); }
}
@media (min-width: 641px) and (max-width: 1023px) {
  .site-v2 .footer { padding-top: var(--space-20); }
}
@media (min-width: 1024px) {
  .site-v2 .footer__top { padding-top: var(--space-8); }
  .site-v2 .footer__brand p { margin: var(--space-3) 0; }
}
.site-v2 .footer__brand p, .site-v2 .footer__links a, .site-v2 .footer__contact-item { color: rgba(255, 255, 255, .78); }
.site-v2 .footer__title { color: rgba(255, 255, 255, .7); text-transform: none; letter-spacing: 0; font-weight: 500 !important; font-family: var(--font-main); }
.site-v2 .footer__links a:hover, .site-v2 .footer__bottom-links a:hover, .site-v2 .footer__contact-item a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-v2 .footer__contact-item svg { color: rgba(255, 255, 255, .78); }
.site-v2 .footer__legal, .site-v2 .footer__bottom, .site-v2 .footer__bottom-links a { color: rgba(255, 255, 255, .7); }
.site-v2 .footer__social a { width: 44px; height: 44px; }
@media (max-width: 1023px) {
  .site-v2 .footer__links { gap: 0; }
  .site-v2 .footer__links a, .site-v2 .footer__bottom-links a, .site-v2 .footer__contact-item a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .site-v2 .footer__bottom-links { gap: 0 var(--space-5); }
}
@media (min-width: 641px) and (max-width: 1023px) {
  .site-v2 .footer__top { grid-template-columns: repeat(3, 1fr); gap: var(--space-5) 24px; padding-top: var(--space-6); }
  .site-v2 .footer__brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-6); }
  .site-v2 .footer__brand p { margin: 0; max-width: none; }
  .site-v2 .footer__title { margin-bottom: var(--space-1); }
  .site-v2 .footer__contact-item { overflow-wrap: anywhere; }
  .footer__close { padding-bottom: var(--space-6); }
}
@media (max-width: 640px) {
  .site-v2 .footer__bottom { align-items: flex-start; text-align: left; }
  .footer__close .btn { width: 100%; justify-content: center; }
}
/* ── Phone: one column, sections grow with what they hold ────────────────── */
@media (max-width: 639px) {
  .hm-hero, .hm-section, .site-v2 .footer { min-height: 100svh; }
  .hm-since .btn { width: 100%; justify-content: center; }
}
/* ==========================================================================
   THE PV SYSTEM (2026 redesign) — what the home blocks do not already cover
   ========================================================================== */
/* Coverage: a table whose columns sit on the page's one split line */
.pv-oblig { width: 100%; margin-top: var(--space-10); border-collapse: collapse; text-align: left; }
.pv-oblig thead th { font-size: .8125rem; font-weight: 500; color: var(--color-text-muted); padding-bottom: var(--space-3); }
.pv-oblig tbody tr { border-top: 1px solid var(--hm-rule); }
.pv-oblig tbody tr:last-child { border-bottom: 1px solid var(--hm-rule); }
.pv-oblig th, .pv-oblig td { vertical-align: top; }
.pv-oblig tbody th { font-family: var(--font-heading); font-weight: 500; font-size: 1.0625rem; line-height: 1.35; letter-spacing: -.01em; color: var(--color-text); }
.pv-oblig tbody td { color: var(--color-text); line-height: 1.55; }
.pv-oblig__n { font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 500; color: var(--color-primary-dark) !important; font-variant-numeric: tabular-nums; }
.pv-oblig tbody th, .pv-oblig tbody td { padding: var(--space-4) 0; }
@media (max-width: 1023px) {
  .pv-oblig thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pv-oblig tbody tr { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: var(--space-3); padding: var(--space-4) 0; }
  .pv-oblig tbody th, .pv-oblig tbody td { padding: 0; }
  .pv-oblig tbody td:last-child { grid-column: 2; margin-top: var(--space-1); }
}
@media (min-width: 1024px) {
  .pv-oblig { margin-top: var(--space-8); }
  .pv-oblig thead tr, .pv-oblig tbody tr { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .pv-oblig tr > :nth-child(1) { grid-column: 1; }
  .pv-oblig tr > :nth-child(2) { grid-column: 2 / span 4; }
  .pv-oblig tr > :nth-child(3) { grid-column: 7 / span 6; }
  .pv-oblig tbody th, .pv-oblig tbody td { padding: 10px 0; }
}
/* Governance band: inspections as the second row */
.pv-follow { margin-top: var(--space-5); }
.pv-insp { margin-top: auto; padding-top: var(--space-12); }
.pv-insp .hm-h3 { color: #fff; }
@media (min-width: 1024px) {
  .pv-insp { padding-top: var(--space-16); }
}
/* Transition: the method columns on a light ground, four of them */
.pv-steps li { border-top-color: var(--hm-rule); }
.pv-steps .hm-steps__n { color: var(--color-primary-dark); }
@media (min-width: 640px) and (max-width: 1023px) {
  .pv-steps { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
}
@media (min-width: 1024px) {
  .pv-steps { grid-template-columns: repeat(4, 1fr); }
  .site-v2 .pv-steps p { font-size: 1.125rem; line-height: 1.55; }
}
/* Regulation: four plain rows after the date */
.pv-reg { margin-top: var(--space-3); }
.pv-reg li { font-size: 1.125rem; line-height: 1.5; }
.pv-reg li:first-child { padding-top: var(--space-4); border-top: 1px solid var(--hm-rule); }
/* ══════════════════════════════════════════════════════════════════════════
   SECONDARY PAGE HERO — a deep-blue band that sets inner pages apart from the
   home. White type, the page's sections as a numbered index along the foot.
   Built by Ctx.page_header() in _src/build.py; works inside .container (older
   pages) and .hm-wrap (redesigned pages) alike.
   ══════════════════════════════════════════════════════════════════════════ */
.sub-hero {
  --sub-line: rgba(255, 255, 255, .14);
  --sub-ease: cubic-bezier(.2, .7, .2, 1);
  position: relative; isolation: isolate; overflow: hidden;
  display: block; min-height: 0; padding: 0;
  color: #fff; text-align: left;
  background:
    radial-gradient(60% 90% at 88% 0%, rgba(47, 118, 162, .55) 0%, rgba(47, 118, 162, 0) 70%),
    linear-gradient(135deg, #0D2E55 0%, #16436A 55%, #1E5A86 100%);
}
.sub-hero > .sub-hero__inner {
  position: relative; display: flex; flex-direction: column;
  padding-top: calc(var(--navbar-height, 76px) + 56px);
}
/* fine vertical rules in quarters of the content width, fading downwards */
.sub-hero__inner::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 0; bottom: 0; left: var(--sub-pad, 0); right: var(--sub-pad, 0);
  border-right: 1px solid rgba(255, 255, 255, .06);
  background-image: linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 25% 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
/* a large open ring on the right, echoing the client map halo */
.sub-hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 720px; height: 720px; right: -260px; top: -180px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 0 0 90px rgba(255, 255, 255, .025), 0 0 0 180px rgba(255, 255, 255, .02);
}
.sub-hero .sub-hero__kicker, .sub-hero .hm-kicker {
  display: inline-flex; align-items: center; gap: 12px; margin: 0;
  font-size: var(--text-sm); font-weight: 500; letter-spacing: .02em;
  color: rgba(255, 255, 255, .85) !important;
}
.sub-hero .sub-hero__kicker::before, .sub-hero .hm-kicker::before {
  content: ""; width: 28px; height: 2px; background: var(--color-accent);
}
.sub-hero h1 {
  margin: var(--space-4) 0 0; max-width: 18em; color: #fff !important;
  font-weight: 500; font-size: clamp(2.125rem, 4.6vw, 4rem); line-height: 1.05; letter-spacing: -.035em;
  text-wrap: balance;
}
.sub-hero h1 .text-primary { color: #8CC4E8; }
.sub-hero p { color: rgba(255, 255, 255, .86) !important; }
.sub-hero .sub-hero__lead {
  margin: var(--space-6) 0 0; max-width: 58ch;
  font-size: clamp(1.125rem, 1.4vw, 1.25rem); line-height: 1.55;
}
.sub-hero .hm-proof { color: #fff !important; }
@media (min-width: 1024px) {
  .sub-hero .hm-hero__row { grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .sub-hero .hm-lead { grid-column: 1 / span 5; }
  .sub-hero .hm-proof { grid-column: 7 / span 6; padding-left: 24px; border-left: 2px solid var(--color-accent); }
}
/* buttons inverted for the dark band */
.sub-hero .btn--primary { background: #fff; color: var(--color-primary-dark); border-color: #fff; }
.sub-hero .btn--primary:hover { background: var(--color-primary-light); border-color: var(--color-primary-light); color: var(--color-primary-dark); }
.sub-hero .btn--outline { border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.sub-hero .btn--outline:hover { background: #fff; color: var(--color-primary-dark); border-color: #fff; }
/* the page index along the foot of the band (or a plain bottom margin) */
.sub-hero__end { height: var(--space-16); }
.sub-hero__toc {
  display: grid; grid-template-columns: 1fr; margin-top: var(--space-12);
  border-top: 1px solid var(--sub-line);
}
.sub-hero__toc a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 18px 0; color: #fff; font-weight: 500; font-size: .9375rem; line-height: 1.35;
  border-bottom: 1px solid var(--sub-line);
  transition: color .25s var(--sub-ease), background-color .25s var(--sub-ease);
}
.sub-hero__toc span { font-size: .75rem; color: var(--color-accent); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.sub-hero__toc a:hover { color: #8CC4E8; }
@media (min-width: 640px) {
  .sub-hero__toc { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
}
@media (min-width: 1024px) {
  .sub-hero > .sub-hero__inner { padding-top: calc(var(--navbar-height, 76px) + 80px); }
  .sub-hero__end { height: var(--space-20, 5rem); }
  .sub-hero__toc { grid-template-columns: repeat(var(--toc-n, 4), 1fr); column-gap: 0; margin-top: var(--space-16); }
  .sub-hero__toc a { border-bottom: 0; padding: 22px 20px 26px; border-left: 1px solid var(--sub-line); }
  .sub-hero__toc a:first-child { border-left: 0; padding-left: 0; }
  .sub-hero__toc a:hover { background: rgba(255, 255, 255, .04); }
}
@media (prefers-reduced-motion: reduce) {
  .sub-hero__toc a { transition: none; }
}
/* ==========================================================================
   SECONDARY PAGES (2026 redesign): Services, Quality & Data, About, Careers,
   Contact, FAQ, Insights. Built from the home blocks; only what they lack is here.
   ========================================================================== */
/* No scroll-reveal on the redesigned site (blog cards still carry the class). */
.site-v2 :is(.reveal, .reveal-fade, .reveal-left, .reveal-right, .reveal-scale) { opacity: 1 !important; transform: none !important; }
/* A section that holds less than a screen grows with its content. */
.hm-section--fit { min-height: 0; }
/* A lead paragraph straight under an H2 */
.hm-intro { margin-top: var(--space-6); }
/* A second row inside a section, pushed to its foot */
.hm-row2 { margin-top: auto; padding-top: var(--space-12); }
@media (min-width: 1024px) {
  .hm-row2 { padding-top: var(--space-16); }
}
/* Columns of short items, each opened by a 1px rule (2, 3 or 4 across) */
.hm-cols { display: grid; gap: var(--space-8) 24px; margin-top: var(--space-10); }
.hm-cols li { padding-top: var(--space-5); border-top: 1px solid var(--hm-rule); }
.hm-cols h3 { font-size: clamp(1.25rem, 1.6vw, 1.375rem); line-height: 1.3; letter-spacing: -.014em; }
.hm-cols p { margin-top: var(--space-3); }
.hm-cols .hm-steps__n { margin-bottom: var(--space-3); color: var(--color-primary-dark); }
@media (min-width: 640px) {
  .hm-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .hm-cols { grid-template-columns: repeat(var(--cols, 3), 1fr); margin-top: var(--space-16); row-gap: var(--space-10); }
}
.hm-section--band .hm-cols li { border-top-color: rgba(255, 255, 255, .28); }
.hm-section--band .hm-steps__n, .hm-section--band .hm-cols .hm-steps__n { color: rgba(255, 255, 255, .72); }
.site-v2 .hm-section--band .hm-lead { color: #fff; }
/* Plain rows with a running number */
.hm-rows--num { counter-reset: row; }
.hm-rows--num li { display: grid; grid-template-columns: 2.75rem 1fr; column-gap: var(--space-3); }
.hm-rows--num li::before {
  counter-increment: row; content: counter(row, decimal-leading-zero);
  grid-row: 1 / span 2; padding-top: .35em;
  font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 500;
  color: var(--color-primary-dark); font-variant-numeric: tabular-nums;
}
.hm-rows--num li > * { grid-column: 2; }
/* Rows that are a single line each (standards, items to include) */
.hm-rows--plain li, .hm-rows--plain li:first-child { padding: var(--space-4) 0; }
.hm-rows--plain li:first-child { border-top: 1px solid var(--hm-rule); }
.hm-rows--plain h3 { font-family: var(--font-main); font-size: 1.125rem; line-height: 1.45; letter-spacing: 0; }
/* One highlighted row that points to another page (Services to The PV System) */
.hm-feature {
  display: grid; gap: var(--space-3); margin-top: var(--space-10);
  padding: var(--space-6) 0 0; border-top: 2px solid var(--color-primary-dark);
}
@media (min-width: 1024px) {
  .hm-feature { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; margin-top: var(--space-12); }
  .hm-feature h3 { grid-column: 1 / span 5; }
  .hm-feature div { grid-column: 7 / span 6; }
}
.hm-feature .hm-link { margin-top: var(--space-2); }
/* Text links inside running text, notes, a warning */
.site-v2 main p a:not(.btn):not(.hm-link), .hm-dl a { color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.site-v2 main p a:not(.btn):not(.hm-link):hover, .hm-dl a:hover { text-decoration-thickness: 2px; }
.site-v2 main .hm-note { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); }
.site-v2 main .hm-warning { margin-top: var(--space-8); padding-left: var(--space-4); border-left: 2px solid var(--color-accent); font-weight: 500; }
.site-v2 .hm-section--band .btn--primary { background: #fff; color: var(--color-primary-dark); border-color: #fff; }
.site-v2 .hm-section--band .btn--primary:hover { background: var(--color-primary-light); border-color: var(--color-primary-light); }
.site-v2 main .hm-section--band p a:not(.btn):not(.hm-link) { color: #fff; }
.site-v2 main .hm-section--band .hm-note { color: rgba(255, 255, 255, .78); }
/* Contact details: label beside value, rows closed by a rule */
.hm-dl { margin: var(--space-8) 0 0; border-top: 1px solid var(--hm-rule); }
.hm-dl > div { display: grid; gap: var(--space-1); padding: var(--space-5) 0; border-bottom: 1px solid var(--hm-rule); }
.hm-dl dt { font-size: .8125rem; font-weight: 500; color: var(--color-text-muted); }
.hm-dl dd { margin: 0; font-size: 1.125rem; line-height: 1.5; color: var(--color-text); overflow-wrap: anywhere; }
.hm-dl address { font-style: normal; }
@media (min-width: 640px) {
  .hm-dl > div { grid-template-columns: 8rem 1fr; gap: 24px; align-items: baseline; }
}
/* FAQ: the accordion as plain rows */
.site-v2 .accordion { display: block; max-width: none; margin: var(--space-8) 0 0; border-top: 1px solid var(--hm-rule); }
.site-v2 .accordion__item, .site-v2 .accordion__item.open { background: none; border: 0; border-bottom: 1px solid var(--hm-rule); border-radius: 0; box-shadow: none; }
.site-v2 .accordion__trigger {
  min-height: 64px; padding: var(--space-5) 0; gap: var(--space-6);
  font-family: var(--font-heading); font-weight: 500; letter-spacing: -.012em;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.35; color: var(--color-text);
}
.site-v2 .accordion__trigger:hover { color: var(--color-primary-dark); }
.site-v2 .accordion__trigger svg { flex-shrink: 0; color: var(--color-primary-dark); transition: transform .3s var(--hm-ease); }
.site-v2 .accordion__item.open .accordion__trigger svg { transform: rotate(45deg); }
.site-v2 .accordion__content { padding: 0 0 var(--space-6); color: var(--color-text); }
.site-v2 .accordion__content p { font-size: 1.0625rem; }
@media (min-width: 1024px) {
  .site-v2 .accordion__content { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .site-v2 .accordion__content p { grid-column: 1 / span 8; }
}
/* Insights: filters as text tabs, articles as flat columns */
.site-v2 .filters { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); margin: var(--space-8) 0 0; border-bottom: 1px solid var(--hm-rule); }
.site-v2 .filter-btn {
  min-height: 44px; padding: 0 0 var(--space-2); margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: none; font-weight: 500; font-size: .9375rem; color: var(--color-text-muted); box-shadow: none;
}
.site-v2 .filter-btn:hover, .site-v2 .filter-btn.active { background: none; color: var(--color-primary-dark); border-bottom-color: var(--color-primary-dark); }
.site-v2 #blog-container { display: grid; gap: var(--space-10) 24px; margin-top: var(--space-10); }
@media (min-width: 640px) {
  .site-v2 #blog-container { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .site-v2 #blog-container { grid-template-columns: repeat(3, 1fr); }
}
.site-v2 .blog-card { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.site-v2 .blog-card:hover { transform: none; box-shadow: none; }
.site-v2 .blog-card__image, .site-v2 .blog-card__image-placeholder { border-radius: 0; }
.site-v2 .blog-card__body { padding: var(--space-4) 0 0; }
.site-v2 .blog-card__title { font-weight: 500; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.012em; }
.site-v2 .blog-card .badge { background: none; padding: 0; border-radius: 0; color: var(--color-primary-dark); font-weight: 500; }
/* Legal pages: the text on the page's left line, a readable measure */
.site-v2 .legal-body { padding: var(--space-16) 0 var(--space-20); }
.site-v2 .legal-body .prose { max-width: 72ch; }
/* Inner pages: sections are as tall as what they hold (the home keeps one screen per section). */
.site-v2:not(.page-home) .hm-section {
  min-height: 0; padding: 72px 0; scroll-margin-top: var(--navbar-height, 76px);
}
.site-v2:not(.page-home) :is(.pv-insp, .hm-row2) { margin-top: 0; }
@media (min-width: 1024px) {
  .site-v2:not(.page-home) .hm-section { padding: 104px 0; }
}
@media (max-width: 639px) {
  .site-v2:not(.page-home) .hm-section { min-height: 0; padding: 56px 0; }
}


/* ── Draft markers (removed before publication) ──────────────────────────── */
.draft {
  display: inline; padding: .1em .45em; border-radius: 4px;
  background: #FFF4CC; color: #5B4300; border: 1px dashed #C99A00;
  font-size: .85em; font-weight: 500; line-height: 1.5; text-transform: none; letter-spacing: 0;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.draft__tag {
  font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .8em; color: #8A5A00;
}
.draft-ribbon {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 900;
  background: #FFF4CC; color: #5B4300; border: 1px solid #C99A00;
  border-radius: var(--radius-full); padding: .5rem 1rem;
  font-size: var(--text-xs); box-shadow: var(--shadow-md);
}
@media print { .draft-ribbon { display: none; } }

/* Careers: one row per role. Left: level, title, brief, areas. Right: what you do, what you need, next step. */
.roles { margin-top: var(--space-10); border-top: 1px solid var(--hm-rule); }
.role { display: grid; gap: var(--space-6); padding: var(--space-10) 0; border-bottom: 1px solid var(--hm-rule); scroll-margin-top: var(--navbar-height, 76px); }
.site-v2 main .role__level {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--space-3);
  font-size: .8125rem; font-weight: 500; letter-spacing: .02em; color: var(--color-primary-dark);
}
.role__level::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }
.role__level--entry::before { background: #9DBED3; }
.role__level--senior::before { background: var(--color-primary-dark); }
.role__level--specialist::before { background: var(--color-accent); }
.site-v2 main .role__brief { margin-top: var(--space-3); font-size: 1.0625rem; line-height: 1.55; }
.role__areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-4); }
.role__areas li {
  padding: 4px 10px; border: 1px solid var(--hm-rule); border-radius: 999px;
  font-size: .8125rem; font-weight: 500; line-height: 1.4; color: var(--color-text);
}
.role__body { display: grid; gap: var(--space-6); }
.role__list { margin-top: var(--space-2); }
.role__list li { position: relative; padding: var(--space-1) 0 var(--space-1) var(--space-5); line-height: 1.5; }
.role__list li::before { content: ""; position: absolute; left: 0; top: .95em; width: 8px; height: 2px; background: var(--color-primary); }
.role__list--req li::before { background: var(--color-accent); }
.role__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-6); padding-top: var(--space-4); border-top: 1px dashed var(--hm-rule); }
.site-v2 main .role__next { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.role__open {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--color-accent); color: #fff; font-weight: 500; font-size: .9375rem;
}
.role__open:hover { background: #B8461F; color: #fff; }
.role__open svg { width: 16px; height: 16px; }
@media (min-width: 1024px) {
  .roles { margin-top: var(--space-12); }
  .role { grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .role__head { grid-column: 1 / span 5; }
  .role__body { grid-column: 7 / span 6; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .role__foot { grid-column: 1 / -1; }
}
.path__spec { margin-top: var(--space-8); }
.hm-steps h3 a { color: inherit; text-decoration: underline; text-decoration-color: var(--hm-rule); text-underline-offset: 4px; }
.hm-steps h3 a:hover { text-decoration-color: currentColor; }


/* ── Page changes: a soft cross-fade between pages, the bar stays put ────────
   Cross-document view transitions (Chrome, Edge, Safari 18.2+). Browsers without
   them get a short fade-in of the page content instead. */
@view-transition { navigation: auto; }
.navbar { view-transition-name: site-bar; }
::view-transition-group(site-bar) { animation: none; }
::view-transition-old(root) { animation: mac-fade-out .22s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: mac-fade-in .38s cubic-bezier(0, 0, .2, 1) .06s both; }
@keyframes mac-fade-out { to { opacity: 0; } }
@keyframes mac-fade-in { from { opacity: 0; transform: translateY(6px); } }
@supports not (view-transition-name: none) {
  @media (prefers-reduced-motion: no-preference) {
    main { animation: mac-fade-in .38s cubic-bezier(0, 0, .2, 1) both; }
  }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
