/* =====================================================================
   Nogap Healthcare design system, v2 (Nov 2026)
   One stylesheet for every page. Loaded last so it re-themes the
   older page-level styles through shared tokens and component classes.
   Brand: logo blue + green, deep eucalyptus for actions, warm paper.
   ===================================================================== */

/* ---------- Tokens ---------- */
html[data-theme],
html {
  --paper: #f7f6f2;
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #eef3ef;
  --surface-3: #e4ece6;
  --ink: #13231e;
  --muted: #4b5c56;
  --line: rgba(19, 35, 30, .12);
  --line-strong: rgba(19, 35, 30, .22);
  --green: #1c6b4c;          /* primary action, 6.6:1 with white */
  --green-dark: #134d37;     /* hover / text accent */
  --blue: #155f9c;           /* links, secondary accent */
  --lime: #6fb33a;           /* decorative only */
  --sky: #2b7fc4;            /* decorative only */
  --sand: #efe9dc;
  --action: #1c6b4c;
  --action-hover: #134d37;
  --on-action: #ffffff;
  --focus: #155f9c;
  --footer-bg: #0f2a21;
  --footer-ink: #e6efe9;
  --footer-muted: #b7c9c0;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 1px 2px rgba(19, 35, 30, .05), 0 8px 24px rgba(19, 35, 30, .06);
  --shadow-sm: 0 1px 2px rgba(19, 35, 30, .05), 0 4px 12px rgba(19, 35, 30, .05);
  --max: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
html[data-theme="dark"] {
  --paper: #0e1613;
  --bg: #0e1613;
  --surface: #15201c;
  --surface-2: #1b2924;
  --surface-3: #22332c;
  --ink: #e8f0ec;
  --muted: #a8bab2;
  --line: rgba(232, 240, 236, .12);
  --line-strong: rgba(232, 240, 236, .24);
  --green: #84d2a9;
  --green-dark: #a9e2c3;
  --blue: #93c5ef;
  --lime: #8fd05c;
  --sky: #7db8e8;
  --sand: #1f2a22;
  --action: #84d2a9;
  --action-hover: #a9e2c3;
  --on-action: #0b1a14;
  --focus: #93c5ef;
  --footer-bg: #09110e;
  --footer-ink: #e8f0ec;
  --footer-muted: #a8bab2;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 12px rgba(0, 0, 0, .2);
  color-scheme: dark;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper) !important;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
section, [id] { scroll-margin-top: calc(var(--header-h) + 16px); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
main a:not(.btn):not(.card-link):not(.route):not(.svc-link) { color: var(--blue); text-underline-offset: 3px; }
main p a:not(.btn), main li a:not(.btn), .content-body a:not(.btn) { text-decoration: underline; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-sans); font-weight: 650; letter-spacing: -.022em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.25rem); letter-spacing: -.035em; line-height: 1.04; max-width: 16ch; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.3rem); letter-spacing: -.012em; }
p { text-wrap: pretty; }
.muted { color: var(--muted) !important; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); }
.skip:focus { left: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Old top strip is replaced by the new header utility row */
.topbar { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.site-brand { display: inline-flex; align-items: center; flex: 0 0 auto; border-radius: 8px; }
.site-brand img { display: block; width: 216px; height: auto; max-width: 52vw; background: none !important; box-shadow: none !important; border-radius: 0 !important; }
.logo-dark { display: none !important; }
html[data-theme="dark"] .site-brand .logo-light { display: none !important; }
html[data-theme="dark"] .site-brand .logo-dark { display: block !important; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem;
  padding: 9px 12px; border-radius: 10px; transition: background .15s var(--ease), color .15s var(--ease);
}
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--green-dark); background: var(--surface-2); }
.site-actions { display: flex; align-items: center; gap: 8px; }
.site-call { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: .95rem; text-decoration: none; color: var(--ink); padding: 9px 12px; border-radius: 10px; white-space: nowrap; }
.site-call:hover { background: var(--surface-2); }
.site-call svg { width: 18px; height: 18px; color: var(--green); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: background .15s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-btn .moon { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .moon { display: block; }
.menu-btn { display: none; }

/* Mobile menu drawer */
.site-drawer { display: none; }
@media (max-width: 1180px) {
  .site-nav, .site-call { display: none; }
  .menu-btn { display: inline-grid; }
  .site-actions { margin-left: auto; }
  .site-drawer {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 59;
    background: var(--paper); padding: 12px 20px 120px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
  }
  .site-drawer.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-drawer nav { display: grid; gap: 2px; max-width: 560px; margin: 0 auto; }
  .site-drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: 15px 4px; font-size: 1.15rem; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
  .site-drawer nav a::after { content: "›"; color: var(--muted); font-size: 1.3rem; }
  .site-drawer .drawer-actions { display: grid; gap: 10px; max-width: 560px; margin: 22px auto 0; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .site-brand img { width: 172px; }
  .site-actions .btn-primary { display: none; }
}

/* Old headers (if any page still carries one) */
header:not(.site-header) .brand img { width: 216px !important; height: auto !important; background: none !important; box-shadow: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink) !important;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none !important; text-align: center;
  cursor: pointer; box-shadow: none;
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease), color .15s var(--ease);
}
.btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); }
.btn-primary, a.btn-primary, button.btn-primary {
  background: var(--action) !important; color: var(--on-action) !important; border-color: transparent !important;
}
.btn-primary:hover { background: var(--action-hover) !important; }
.btn-secondary { background: var(--surface); }
.btn-quiet { border-color: transparent; background: transparent; padding-inline: 12px; color: var(--blue) !important; }
.btn-quiet:hover { background: var(--surface-2); }
.btn-link { border-color: transparent !important; background: transparent !important; padding-inline: 4px; color: var(--blue) !important; text-decoration: underline !important; text-underline-offset: 3px; min-height: 44px; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .94rem; border-radius: 10px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Shared components (inner pages + home) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green-dark) !important; font-weight: 650; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px;
}
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head > div { max-width: 640px; }
.section-head h2 { margin-bottom: 0; }
.section-head p { max-width: 52ch; margin: 0; color: var(--muted); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 58ch; }

.card, .panel, .faq details, .image-card, .form-panel, .metric-card, .article-card, .content-faq details, .formbricks-gateway, .formbricks-feature, .visual-step {
  background: var(--surface) !important; color: var(--ink);
  border: 1px solid var(--line) !important; border-radius: var(--radius) !important; box-shadow: none !important;
}
.card { padding: 24px; gap: 12px; }
.panel { padding: 26px; }
.card .tag, .tag {
  display: inline-flex; align-self: flex-start; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2) !important; color: var(--green-dark) !important;
  font-size: .8rem; font-weight: 600; letter-spacing: .01em; border: 0;
}
.card ul, .panel ul { color: var(--muted); padding-left: 20px; }
.card li, .panel li { margin: 4px 0; }
.image-card img, .service-card img { border-radius: 0; }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { padding: 0 !important; overflow: hidden; }
.faq summary, .content-faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.faq summary::-webkit-details-marker, .content-faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .content-faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after, .content-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > p, .faq details > div { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* Inner page heroes */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(24px, 4vw, 48px) !important; background: none !important; }
.hero-grid { gap: clamp(20px, 4vw, 48px) !important; align-items: center; }
.hero-copy { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.hero-copy > p, .hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 58ch; }
.hero-img, .hero-photo { border-radius: var(--radius-lg) !important; overflow: hidden; box-shadow: none !important; border: 1px solid var(--line); background: var(--surface-2); }
.hero-img img { width: 100%; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.hero-actions, .mini-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-actions { margin-top: 24px; }
.cta-panel {
  background: var(--footer-bg) !important; color: var(--footer-ink) !important;
  border-radius: var(--radius-lg) !important; padding: clamp(28px, 5vw, 56px) !important; border: 0 !important; box-shadow: none !important;
  display: grid; gap: 24px;
}
.cta-panel h2, .cta-panel h3, .cta-panel p, .cta-panel li, .cta-panel .eyebrow { color: var(--footer-ink) !important; }
.cta-panel p { color: var(--footer-muted) !important; }
.cta-panel .btn { background: transparent; color: var(--footer-ink) !important; border-color: rgba(255, 255, 255, .35) !important; }
.cta-panel .btn:hover { background: rgba(255, 255, 255, .08); }
.cta-panel .btn:first-child, .cta-panel .btn-primary { background: #ffffff !important; color: #0f2a21 !important; border-color: transparent !important; }
html[data-theme="dark"] .cta-panel { background: var(--surface-2) !important; border: 1px solid var(--line) !important; }

/* Forms */
label { font-weight: 550; color: var(--ink); }
input, select, textarea {
  font: inherit; color: var(--ink) !important; background: var(--surface) !important;
  border: 1px solid var(--line-strong) !important; border-radius: 10px !important; min-height: 48px;
}
textarea { min-height: 120px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus) !important; }
input[type="checkbox"], input[type="radio"] { min-height: 0; width: 20px; height: 20px; accent-color: var(--action); }
input[type="file"] { padding: 10px; }
::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.formbricks-status.success, .live-status.success { color: var(--green-dark); }
.formbricks-status.error, .live-status.error { color: #b3261e; }
html[data-theme="dark"] .formbricks-status.error, html[data-theme="dark"] .live-status.error { color: #ffb4ab; }
.formbricks-badge { background: var(--surface-2) !important; color: var(--green-dark) !important; letter-spacing: .06em; font-weight: 650; }
.formbricks-gateway { background: var(--surface) !important; }

/* Visual process (inner pages) */
.visual-step-number { background: var(--surface-2) !important; color: var(--green-dark) !important; }

/* Repeated NDIS strip on inner pages becomes a compact verified band */
.trust-band { padding: 28px 0; }
.trust-band .inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px 24px;
}
.trust-band p { margin: 0; color: var(--muted); max-width: 70ch; }
.trust-band strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: clamp(48px, 6vw, 80px) 0 0; margin-top: 0; }
.site-footer a { color: var(--footer-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .f-top { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; }
.site-footer .f-brand img { width: 240px; max-width: 100%; height: auto; display: block; }
.site-footer .f-brand p { color: var(--footer-muted); margin: 16px 0 18px; max-width: 34ch; font-size: .97rem; }
.site-footer .f-contact { display: grid; gap: 6px; font-size: .97rem; }
.site-footer .f-contact span { color: var(--footer-muted); }
.site-footer h2.f-h { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--footer-muted); font-weight: 650; margin: 0 0 14px; }
.site-footer .f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .96rem; }
.site-footer .f-areas { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--footer-muted); }
.site-footer .f-areas a { color: var(--footer-muted); }
.site-footer .f-areas strong { color: var(--footer-ink); font-weight: 600; }
.site-footer .f-ack {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 22px; padding: 28px 0;
  display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start;
}
.site-footer .f-ack h2 { color: var(--footer-ink); font-size: 1.05rem; margin: 0 0 10px; letter-spacing: -.01em; }
.site-footer .f-ack p { color: var(--footer-muted); font-size: .95rem; max-width: 78ch; margin: 0 0 10px; }
.site-footer .f-flags { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.site-footer .f-flags img { width: 46px; height: 29px; object-fit: cover; border-radius: 3px; display: block; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.site-footer .f-social { display: flex; gap: 8px; margin-top: 16px; }
.site-footer .f-social a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); transition: background .15s var(--ease), transform .15s var(--ease); }
.site-footer .f-social a:hover { background: rgba(255, 255, 255, .08); transform: translateY(-1px); text-decoration: none; }
.site-footer .f-social svg { width: 18px; height: 18px; }
.site-footer .f-legal { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .86rem; color: var(--footer-muted); }
@media (max-width: 980px) {
  .site-footer .f-top { grid-template-columns: 1fr 1fr; }
  .site-footer .f-brand { grid-column: 1 / -1; }
  .site-footer .f-ack { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .site-footer .f-legal { padding-bottom: 96px; } }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 55;
    padding: 6px; border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
    transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  .action-bar.is-hidden { transform: translateY(140%); opacity: 0; }
  .action-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 52px; border-radius: 11px; text-decoration: none; font-weight: 600; font-size: .82rem; color: var(--ink);
  }
  .action-bar a svg { width: 19px; height: 19px; }
  .action-bar a.primary { background: var(--action); color: var(--on-action); }
  /* Keep Ask Impi clear of the bar */
  .impi-launcher { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
}

/* ---------- Motion ---------- */
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Generic responsive fixes for inner pages ---------- */
@media (max-width: 900px) {
  .hero-grid, .grid-2, .trust-grid { grid-template-columns: 1fr !important; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  .container { width: min(calc(100% - 32px), var(--max)); }
  .hero-actions .btn, .mini-cta .btn { flex: 1 1 auto; }
}

/* Sizing safety */
*, *::before, *::after { box-sizing: border-box; }
input, select, textarea { max-width: 100%; min-width: 0; }
.form-grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.impact-dashboard, .dashboard-panel, .metric-grid, .metric-card, .impact-table, .dashboard-note { max-width: 100%; min-width: 0; }
.impact-table { overflow-x: auto; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .container.impact-dashboard { grid-template-columns: minmax(0, 1fr); overflow: hidden; }
  .dashboard-panel, .metric-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-panel, .metric-card { padding: 18px; }
  .dashboard-panel h2, .dashboard-panel p, .metric-value, .metric-label { overflow-wrap: anywhere; }
  .impact-table { display: block; }
}

/* Header fit */
.site-nav a, .site-actions .btn { white-space: nowrap; }
@media (min-width: 0px) {
  .site-nav a { padding: 8px 9px; font-size: .93rem; }
  .site-header .bar { gap: 14px; }
  .site-call { display: none; }
  .site-brand img { width: 196px; }
}
.site-footer .f-areas strong { min-width: 112px; }
@media (max-width: 620px) {
  .site-footer .f-areas strong { flex-basis: 100%; margin-top: 10px; }
}
body.menu-open .impi-launcher, body.menu-open .action-bar { visibility: hidden; }
@media (max-width: 1180px) and (min-width: 860px) { .site-header .site-call { display: inline-flex; } }

/* ---------- Soft light footer ---------- */
html[data-theme="light"], html:not([data-theme]) {
  --footer-bg: #edf3ef; --footer-ink: #13231e; --footer-muted: #4b5c56;
}
html:not([data-theme="dark"]) .site-footer { background: linear-gradient(180deg, #f1f6f2 0%, #e8f0ea 100%); border-top: 1px solid #dbe6df; }
html:not([data-theme="dark"]) .site-footer .f-areas,
html:not([data-theme="dark"]) .site-footer .f-ack,
html:not([data-theme="dark"]) .site-footer .f-legal { border-top-color: rgba(19, 35, 30, .12); }
html:not([data-theme="dark"]) .site-footer .f-social a { border-color: rgba(19, 35, 30, .16); background: #ffffff; color: var(--ink); }
html:not([data-theme="dark"]) .site-footer .f-social a:hover { background: #f4f8f5; }
html:not([data-theme="dark"]) .site-footer .f-flags img { box-shadow: 0 0 0 1px rgba(19, 35, 30, .14); }
html:not([data-theme="dark"]) .site-footer a:hover { color: var(--green-dark); }
.site-footer .f-logo-dark { display: none !important; }
html[data-theme="dark"] .site-footer .f-logo-light { display: none !important; }
html[data-theme="dark"] .site-footer .f-logo-dark { display: block !important; }

/* ---------- Soft call-to-action panels (with logo top right) ---------- */
html body .cta-panel, html body .cta, html body .pathway-band, html body .final-card {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(111, 179, 58, .13), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(21, 95, 156, .09), transparent 46%),
    linear-gradient(135deg, #f1f7f2 0%, #f7faf8 52%, #eef4f8 100%) !important;
  color: var(--ink) !important;
  border: 1px solid #d9e7de !important;
  box-shadow: 0 1px 2px rgba(19, 35, 30, .04), 0 12px 32px -18px rgba(19, 35, 30, .18) !important;
  border-radius: var(--radius-lg) !important;
}
html body .cta { padding: 72px 28px 28px !important; }
html body .pathway-band { padding: clamp(72px, 6vw, 84px) clamp(24px, 4vw, 42px) clamp(24px, 4vw, 42px) !important; }
html body .cta-panel::before, html body .cta::before, html body .pathway-band::before, html body .final-card::before {
  content: ""; position: absolute; top: 22px; right: 26px; width: 150px; height: 34px; pointer-events: none;
  background: url("../images/nogap-healthcare-logo-integrated.png?v=20261127") no-repeat right top / contain;
}
html body .cta-panel h2, html body .cta-panel h3, html body .cta h2, html body .cta h3,
html body .pathway-band h2, html body .pathway-band h3, html body .final-card h2 { color: var(--ink) !important; }
html body .cta-panel p, html body .cta-panel li, html body .cta p, html body .pathway-band p, html body .final-card p { color: var(--muted) !important; opacity: 1 !important; }
html body .cta-panel .eyebrow { color: var(--green-dark) !important; }
html body .pathway-band .tag, html body .cta .tag {
  background: #ffffff !important; color: var(--green-dark) !important; border: 1px solid #d3e4d9 !important;
}
html body .cta-panel .btn, html body .cta .btn, html body .pathway-band .btn, html body .final-card .btn {
  background: #ffffff !important; color: var(--ink) !important; border: 1px solid var(--line-strong) !important;
}
html body .cta-panel .btn:hover, html body .cta .btn:hover, html body .pathway-band .btn:hover, html body .final-card .btn:hover { background: #f3f7f4 !important; }
html body .cta-panel .btn:first-child, html body .cta .btn:first-child, html body .pathway-band .btn:first-child, html body .final-card .btn:first-child,
html body .cta-panel .btn-primary {
  background: var(--action) !important; color: var(--on-action) !important; border-color: transparent !important;
}
html body .cta-panel .btn:first-child:hover, html body .cta .btn:first-child:hover, html body .pathway-band .btn:first-child:hover, html body .final-card .btn:first-child:hover { background: var(--action-hover, #134d37) !important; }
html body .final-card { padding-top: clamp(72px, 7vw, 88px) !important; }
@media (min-width: 761px) {
  html body .cta-panel { padding-top: clamp(72px, 6vw, 84px) !important; }
}
@media (max-width: 620px) {
  html body .cta-panel::before, html body .cta::before, html body .pathway-band::before, html body .final-card::before { width: 124px; height: 28px; top: 20px; right: 20px; }
  html body .cta-panel { padding-top: 68px !important; }
}
/* Dark mode keeps a soft, not black, panel */
html[data-theme="dark"] body .cta-panel, html[data-theme="dark"] body .cta, html[data-theme="dark"] body .pathway-band, html[data-theme="dark"] body .final-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(132, 210, 169, .12), transparent 45%),
    linear-gradient(135deg, #182a23 0%, #17231f 55%, #172530 100%) !important;
  border-color: var(--line) !important; box-shadow: none !important;
}
html[data-theme="dark"] body .cta-panel::before, html[data-theme="dark"] body .cta::before, html[data-theme="dark"] body .pathway-band::before, html[data-theme="dark"] body .final-card::before {
  background-image: url("../images/nogap-healthcare-logo-on-dark.png?v=20261127");
}
html[data-theme="dark"] body .cta-panel .btn, html[data-theme="dark"] body .cta .btn, html[data-theme="dark"] body .pathway-band .btn, html[data-theme="dark"] body .final-card .btn { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line-strong) !important; }
html[data-theme="dark"] body .cta-panel .btn:first-child, html[data-theme="dark"] body .cta .btn:first-child, html[data-theme="dark"] body .pathway-band .btn:first-child, html[data-theme="dark"] body .final-card .btn:first-child { background: var(--action) !important; color: var(--on-action) !important; border-color: transparent !important; }
html[data-theme="dark"] body .pathway-band .tag, html[data-theme="dark"] body .cta .tag { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.nw { white-space: nowrap; }

/* Resume role buttons */
.vacancy .status-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--action, #1b6b4a); color: #fff; border: 1px solid transparent; font-weight: 700; white-space: nowrap; transition: background .2s ease, transform .2s ease; }
.vacancy .status-btn svg { width: 16px; height: 16px; flex: none; }
.vacancy .status-btn:hover { background: #14563a; transform: translateY(-1px); }
.vacancy .status-btn:focus-visible { outline: 3px solid #7cc4a0; outline-offset: 3px; }
html[data-theme="dark"] .vacancy .status-btn { background: #7fd3a8; color: #0f2a21; }
html[data-theme="dark"] .vacancy .status-btn:hover { background: #9be0bb; }
#careers-form label small { display: block; margin-top: 6px; font-weight: 400; font-size: .85rem; }
@media (prefers-reduced-motion: reduce) { .vacancy .status-btn { transition: none; } .vacancy .status-btn:hover { transform: none; } }
html body .vacancy a.status-btn, html body .vacancy a.status-btn:visited, html body .vacancy a.status-btn:hover { color: #fff !important; text-decoration: none !important; }
html[data-theme="dark"] body .vacancy a.status-btn, html[data-theme="dark"] body .vacancy a.status-btn:visited { color: #0f2a21 !important; }
.pl { display: inline; text-align: center; }

/* Website forms: tidy two-column layout */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 24px; }
.form-grid > label { display: flex; flex-direction: column; gap: 8px; font-size: .95rem; font-weight: 650; color: var(--ink); line-height: 1.35; }
.form-grid > label.full, .form-grid > .full { grid-column: 1 / -1; }
.form-grid input:not([type="checkbox"]):not([type="radio"]), .form-grid select, .form-grid textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line, #d9e3dd); border-radius: 12px; background: var(--surface, #fff); color: var(--ink); font: inherit; font-weight: 400; font-size: 1rem; transition: border-color .2s ease, box-shadow .2s ease; }
.form-grid textarea { min-height: 140px; resize: vertical; }
.form-grid input::placeholder, .form-grid textarea::placeholder { color: var(--muted); opacity: .75; }
.form-grid input:hover, .form-grid select:hover, .form-grid textarea:hover { border-color: #a9c5b6; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--action, #1b6b4a); box-shadow: 0 0 0 4px rgba(27, 107, 74, .14); outline: none; }
.form-grid label small { font-weight: 400; font-size: .85rem; color: var(--muted); margin-top: -2px; }
.form-grid input[type="file"] { min-height: 64px; padding: 14px; border: 1.5px dashed #b9d3c4; background: #f6faf7; cursor: pointer; font-size: .95rem; color: var(--muted); }
.form-grid input[type="file"]::file-selector-button { margin-right: 14px; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--action, #1b6b4a); color: #fff; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.form-grid input[type="file"]:hover { border-color: var(--action, #1b6b4a); background: #eff7f2; }
html[data-theme="dark"] .form-grid input[type="file"] { background: rgba(255,255,255,.03); border-color: rgba(127,211,168,.35); }
html[data-theme="dark"] .form-grid input[type="file"]::file-selector-button { background: #7fd3a8; color: #0f2a21; }
.formbricks-gateway > h2 { margin-top: 4px; }
.formbricks-gateway > p.muted { max-width: 62ch; }
.formbricks-actions { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line, #e2ebe5); }
.formbricks-status:empty { display: none; }
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .formbricks-actions .btn { flex: 1 1 100%; justify-content: center; }
}
html body .form-grid input[type="file"] { border: 1.5px dashed #b9d3c4 !important; background: #f6faf7 !important; border-radius: 14px !important; color: var(--muted) !important; }
html body .form-grid input[type="file"]:hover { border-color: var(--action, #1b6b4a) !important; background: #eff7f2 !important; }
html[data-theme="dark"] body .form-grid input[type="file"] { background: rgba(255,255,255,.03) !important; border-color: rgba(127,211,168,.35) !important; }
html body .form-grid input:not([type="checkbox"]):not([type="radio"]), html body .form-grid select, html body .form-grid textarea { border-radius: 12px !important; }
html body .form-grid input:focus, html body .form-grid select:focus, html body .form-grid textarea:focus { border-color: var(--action, #1b6b4a) !important; }
