/* The shared Header/Navbar: graphite with green and lime accents. */
:root,html.header-compact{
 --header-height:100px;--header-top:0px;--header-offset:112px;
 --header-panel:#202A2C;--header-panel-scrolled:#2D3A36;--header-border:#46594B;
 --header-shadow:0 8px 28px rgba(0,0,0,.24);
 --header-shadow-scrolled:0 12px 32px rgba(0,0,0,.38);
 --header-menu-panel:var(--header-panel);
}
html{scroll-padding-top:calc(var(--header-offset) + 24px)}
.site-header{
 position:sticky;top:var(--header-top);z-index:40;isolation:isolate;
 width:100%;max-width:none;height:var(--header-height);
 margin:0;background:var(--header-panel);
 border:0;border-bottom:1px solid var(--header-border);border-radius:0;
 box-shadow:var(--header-shadow);backdrop-filter:none;
 animation:none;transform:none;opacity:1;
 transition:background-color 280ms ease,border-color 280ms ease,box-shadow 280ms ease;
}
.header-compact .site-header{
 background:var(--header-panel-scrolled);
 border-bottom-color:var(--header-border);
 box-shadow:var(--header-shadow-scrolled);
}
.header-inner.shell{
 display:grid;grid-template-columns:190px minmax(0,1fr);align-items:center;
 width:100%;max-width:none;height:100%;min-height:0;margin:0;
 padding:0 32px;gap:24px;position:static;transition:none;
}
.header-inner>.brand,.header-compact .header-inner>.brand{
 width:190px;min-width:190px;flex:none;transform:none;transition:none;
}
.brand img{width:100%;height:auto;object-fit:contain;filter:brightness(0) invert(1)}
.site-nav{
 display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;
 column-gap:18px;margin:0;min-width:0;position:static;
 padding:0;background:none;border:0;box-shadow:none;overflow:visible;
}
.nav-links{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0}
.nav-link{
 display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
 min-width:44px;min-height:46px;padding:10px 14px;
 border:1px solid transparent;border-radius:10px;
 font-size:16px;font-weight:500;line-height:1.4;white-space:nowrap;color:var(--ink);
 transition:background-color 180ms ease,border-color 180ms ease;
}
.nav-link:hover{background:var(--accent-soft);border-color:var(--line);color:var(--ink);transform:none}
.nav-link[aria-current=page]{background:var(--accent-soft);border-color:var(--control-line);color:var(--ink)}
.nav-link[aria-current=page]::after{display:none;content:none}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:none}
.nav-cta{
 display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
 min-height:48px;margin:0;padding:11px 18px;border:1px solid var(--accent);
 border-radius:12px;background:var(--accent);color:var(--on-accent);
 font-size:16px;line-height:1.4;gap:12px;white-space:nowrap;box-shadow:none;
 transition:background-color 180ms ease,border-color 180ms ease;
}
.nav-cta:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:var(--on-accent);transform:none;box-shadow:none}
.theme-toggle{
 display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
 width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;gap:10px;
 border:1px solid var(--control-line);border-radius:10px;
 background:var(--card);color:var(--ink);font:inherit;line-height:1.4;
 cursor:pointer;box-shadow:none;
 transition:background-color 180ms ease,border-color 180ms ease,color 180ms ease;
}
.theme-toggle[hidden]{display:none}
.theme-toggle:hover{background:var(--accent-soft);border-color:var(--accent-strong);color:var(--ink)}
.theme-toggle:focus-visible{outline:3px solid var(--accent-strong);outline-offset:4px}
.theme-toggle svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle-label{display:none}
.theme-toggle .theme-icon-sun{display:none}
.theme-toggle .theme-icon-moon{display:block}
html[data-theme=dark] .theme-toggle .theme-icon-sun{display:block}
html[data-theme=dark] .theme-toggle .theme-icon-moon{display:none}
.language-switch{display:flex;align-items:center;justify-content:center;flex:none;gap:0;margin:0;font-size:13px;line-height:1.5}
.language-switch a{
 display:inline-flex;align-items:center;justify-content:center;
 min-width:44px;min-height:44px;padding:8px 5px;
 border:1px solid transparent;border-radius:10px;color:var(--muted);
}
.language-switch a:hover{color:var(--ink);background:var(--accent-soft);border-color:var(--line)}
.language-switch a[aria-current]{background:var(--accent-soft);border:1px solid var(--control-line);color:var(--ink);font-weight:700}
.language-switch>span{display:block;color:var(--muted);margin:0}
.menu-toggle{display:none}
.header-circuit{display:none}.header-flow{animation:none}
.site-header a:focus-visible,.site-header button:focus-visible,.site-footer a:focus-visible{outline:3px solid var(--accent-strong);outline-offset:4px}
@media(min-width:1440px){.nav-link{font-size:17px}.nav-links{gap:4px}}
@media(min-width:1241px) and (max-width:1359px){
 .header-inner.shell{grid-template-columns:180px minmax(0,1fr);padding-inline:28px;gap:18px}
 .header-inner>.brand,.header-compact .header-inner>.brand{width:180px;min-width:180px}
 .site-nav{column-gap:12px}.header-actions{gap:8px}
}
@media(max-width:1240px){
 :root,html.header-compact{--header-height:78px;--header-top:0px;--header-offset:90px}
 .site-header{width:100%;height:var(--header-height);margin:0;border-radius:0}
 .header-inner.shell{grid-template-columns:minmax(0,1fr) 46px;gap:16px;padding-inline:20px}
 .header-inner>.brand,.header-compact .header-inner>.brand{width:152px;min-width:0;justify-self:start}
 .menu-toggle{
  display:flex;position:relative;order:1;flex-direction:column;align-items:center;justify-content:center;
  width:46px;height:46px;min-width:44px;min-height:44px;padding:12px;gap:7px;
  border:1px solid var(--control-line);border-radius:12px;background:var(--card);color:var(--ink);
 }
 .menu-toggle:hover{background:var(--accent-soft);border-color:var(--accent-strong)}
 .menu-toggle>span:not(.sr-only){width:21px;height:2px;background:var(--ink)}
 .menu-toggle[aria-expanded=true]>span:first-child{transform:translateY(4.5px) rotate(45deg)}
 .menu-toggle[aria-expanded=true]>span:nth-child(2){transform:translateY(-4.5px) rotate(-45deg)}
 .site-nav{
  display:none;position:absolute;left:0;right:0;top:100%;order:2;
  grid-template-columns:1fr;gap:16px;margin:0;padding:18px;
  max-height:calc(100dvh - var(--header-offset) - 16px);overflow-y:auto;
  background:var(--header-menu-panel);border:0;border-bottom:1px solid var(--header-border);border-radius:0;
  box-shadow:var(--header-shadow-scrolled);backdrop-filter:none;
 }
 .site-nav.is-open{display:grid;animation:none}
 .nav-links{display:grid;grid-template-columns:1fr;gap:6px;justify-content:stretch}
 .nav-link{justify-content:flex-start;min-height:48px;padding:11px 14px;font-size:17px}
 .nav-link[aria-current=page]{background:var(--accent-soft);border-color:var(--control-line)}
 .header-actions{display:grid;grid-template-columns:1fr;gap:12px;justify-content:stretch}
 .nav-cta{margin:0;min-height:48px;align-self:stretch;font-size:17px}
 .theme-toggle{width:100%;height:auto;min-height:48px;padding:12px 16px;font-size:17px;justify-self:stretch}
 .theme-toggle-label{display:inline}
 .language-switch{margin:0;justify-self:center;width:auto;font-size:14px;gap:4px}
 .language-switch a{min-width:44px;min-height:44px;padding:8px}
 .language-switch>span{display:block}
}
@media(max-width:580px){.header-inner.shell{padding-inline:18px}.header-inner>.brand,.header-compact .header-inner>.brand{width:148px}}
@media(prefers-reduced-motion:reduce){
 .site-header,.nav-link,.nav-cta,.theme-toggle,.menu-toggle,.menu-toggle>span:not(.sr-only){transition:none;animation:none}
}

/* The light variant restores the original olive header colours, using the
   same layout and the current footer's plain navigation links. */
html[data-theme=light]{
 --header-panel:#E3E9D8;--header-panel-scrolled:#DAE3CD;--header-border:#C5CFB7;
 --header-shadow:0 8px 28px rgba(41,50,54,.10);
 --header-shadow-scrolled:0 12px 32px rgba(41,50,54,.15);
 --header-menu-panel:#F8FAF4;
}
html[data-theme=light] .brand img{filter:none}
html[data-theme=light] .nav-link{color:#293236}
html[data-theme=light] .nav-link:hover{background:#F1F5E9;border-color:transparent;color:#293236}
html[data-theme=light] .nav-link[aria-current=page]{background:#F8FAF4;border-color:#CBD5BE;color:#293236}
html[data-theme=light] .nav-cta{background:#293236;border-color:#293236;color:#F8FAF4}
html[data-theme=light] .nav-cta:hover{background:#414C50;border-color:#414C50;color:#fff}
html[data-theme=light] .language-switch a{color:#4F5A4B}
html[data-theme=light] .language-switch a:hover{background:#F1F5E9;border-color:transparent;color:#293236}
html[data-theme=light] .language-switch a[aria-current]{background:#F8FAF4;border-color:#CBD5BE;color:#293236}
html[data-theme=light] .language-switch>span{color:#69765E}
html[data-theme=light] .menu-toggle{background:#F8FAF4;border-color:#BBC8AC;color:#293236}
html[data-theme=light] .menu-toggle:hover{background:#EDF1E5;border-color:var(--accent-strong)}
html[data-theme=light] .menu-toggle>span:not(.sr-only){background:#293236}
html[data-theme=light] .theme-toggle{background:#F8FAF4;border-color:#BBC8AC;color:#293236}
html[data-theme=light] .theme-toggle:hover{background:#EDF1E5;border-color:var(--accent-strong);color:#293236}
@media(max-width:1240px){
 html[data-theme=light] .nav-link[aria-current=page]{background:#EDF1E5;border-color:#CBD5BE}
}

/* Footer proportions are comparable to the rest of the page. */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  padding-top: 70px;
  background: var(--surface);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.05fr .95fr 1.35fr 1.05fr;
  align-items: start;
  gap: 36px;
  padding-bottom: 60px;
}

.footer-main > * {
  min-width: 0;
}

.footer-brand .brand {
  width: 158px;
  margin-bottom: 26px;
}

.footer-main p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.footer-main .eyebrow {
  display: block;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -.015em;
  text-transform: none;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: none;
  transition: color 180ms ease;
}

.footer-link:hover,
.footer-link[aria-current="page"] {
  background: transparent;
  border: 0;
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transform: none;
  box-shadow: none;
}

.footer-link::after {
  display: none;
  content: none;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.footer-email:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 25px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}


@media(max-width:1100px){.footer-main{grid-template-columns:1fr 1fr;gap:40px}}
@media(max-width:580px){
 .site-footer{margin-top:24px;padding-top:48px}
 .footer-main{grid-template-columns:1fr;gap:34px;padding-bottom:38px}
 .footer-main>*,.footer-main>div:nth-child(2),.footer-main>div:last-child,.footer-nav{grid-column:1;grid-row:auto}
 .footer-main p{font-size:17px}
 .footer-main .eyebrow{font-size:19px;margin-bottom:14px}
 .footer-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;font-size:17px}
 .footer-link{min-height:44px;padding:8px 0;font-size:17px}
 .footer-email{font-size:20px}
 .footer-bottom{flex-direction:column;gap:8px;font-size:14px;padding-block:22px}
}
@media(max-width:359px){.footer-nav{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.footer-link{transition:none;animation:none}}
