.menu-btn{display:none !important}

:root{
  --bg:#f7fbff;
  --surface:#ffffff;
  --ink:#0a1f33;
  --muted:#4f6b86;
  --brand:#1587d3;
  --brand-strong:#0b66a3;
  --accent:#22c1dc;
  --ok:#1b9e5a;
  --warn:#c97700;
  --shadow:0 10px 25px rgba(10,31,51,.08), 0 2px 6px rgba(10,31,51,.05);
  --radius:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font: 16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block}
a{color:var(--brand-strong); text-decoration:none}
a:focus{outline:3px solid var(--accent); outline-offset:2px; border-radius:8px}

.container{width:min(1200px, 92%); margin-inline:auto; padding-inline:clamp(12px,2vw,24px)}

.btn{
  display:inline-flex; align-items:center; gap:.6rem;
  padding:.85rem 1.2rem; border-radius:12px;
  background:var(--brand); color:white; font-weight:600;
  border:none; box-shadow:var(--shadow); cursor:pointer
}
.btn.secondary{background:#fff; color:var(--brand-strong); border:2px solid var(--brand-strong)}
.btn:hover{filter:brightness(.95)}
.btn:focus{outline:3px solid var(--accent); outline-offset:2px}

.badge{display:inline-block; font-weight:600; color:#0b4665; background:#dcf3ff; padding:.25rem .6rem; border-radius:999px; letter-spacing:.02em}

.header{position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.85); backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid #eaf2f9;}
.nav{display:flex; align-items:center; justify-content:space-between; padding:.85rem 0}
.logo{display:flex; align-items:center; gap:.6rem; font-weight:800; letter-spacing:.3px}
.logo img{height: 72px; width:auto; object-fit:contain}
.nav ul{display:flex; gap:1rem; list-style:none; padding:0; margin:0}
.nav a{padding:.55rem .75rem; border-radius:10px; color:var(--ink); font-weight:600}
.nav a.active,.nav a:hover{background:#eaf6ff}

#menu-toggle{display:none}



.hero{margin: clamp( 1.25rem, 2.5vw, 1.7rem)  clamp(12px,2vw,24px); overflow:hidden; position:relative; border-radius:var(--radius); background:radial-gradient(1200px 600px at 100% -60%, #bfe6ff 0%, transparent 60%),radial-gradient(800px 600px at -20% 120%, #e6f7ff 0%, transparent 60%),linear-gradient(180deg, #ffffff, #f4faff);box-shadow:var(--shadow); padding:clamp(1.2rem,3vw,2rem)}
.hero-inner{display:grid; grid-template-columns:1.05fr .95fr; gap:2rem; padding:0}
.hero h1{font-size: clamp(2rem, 4vw, 3rem); line-height:1.1; margin:.2rem 0 1rem}
.hero p{color:var(--muted); font-size:1.125rem}
.hero-cta{display:flex; gap:1rem; flex-wrap:wrap}
.hero art{position:relative}
.hero .art{
  height:100%; min-height:320px; border-radius:14px; background:#0b4665;
  background-image: none;
  background-size:cover; background-position:center; border:1px solid #0b4665;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), var(--shadow)
}
@media (max-width:1100px){ .hero-inner{display:grid; grid-template-columns:1.05fr .95fr; gap:2rem; padding:0} .hero .art{min-height:220px} }

.section{margin: clamp(2rem, 4vw, 3rem) 0}
.section h2{font-size: clamp(1.6rem, 3vw, 2.2rem); margin:0 0 1rem}
.section p.lead{color:var(--muted); max-width:70ch}

.grid{display:grid; grid-template-columns: repeat(3, 1fr); gap:1.2rem}
@media (max-width:1100px){ .grid{grid-template-columns: repeat(2, 1fr)} }
@media (max-width:640px){ .grid{grid-template-columns: 1fr} }

.card{
  background:var(--surface); border:1px solid #e8f1f9; border-radius:var(--radius);
  padding:1.1rem; box-shadow:var(--shadow); display:flex; flex-direction:column; gap:.8rem
}
.card .thumb{height:160px; border-radius:12px; background:#e7f6ff; background-size:cover; background-position:center; border:1px solid #cfe8fb}
.card h3{margin:.2rem 0}
.card p{color:var(--muted)}
.card .actions{margin-top:auto}

.partners{display:grid; grid-template-columns:repeat(4, 1fr); gap:1.25rem; align-items:stretch; justify-items:stretch}
.partner{display:flex; align-items:center; justify-content:center; height:120px; background:#fff; border-radius:12px; box-shadow:0 1px 3px rgba(16,24,40,.06); padding:.75rem 1.25rem; text-decoration:none}
.partner img{max-height:100%; max-width:100%; width:auto; height:auto; object-fit:contain; display:block}

.testimonial{
  background:linear-gradient(180deg, #ffffff, #f6fbff); border:1px solid #e3eef7; border-radius:var(--radius);
  padding:1.2rem; box-shadow:var(--shadow)
}
.testimonial blockquote{font-size:1.05rem; margin:0; color:var(--ink)}
.testimonial footer{margin-top:.6rem; color:var(--muted); font-weight:600}

.blog .card .thumb{}

.cta{ text-align:center; background:#0b4665; color:#fff; border-radius:0; padding:2rem 1rem; box-shadow:var(--shadow); margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw) }
.cta p{color:#d5e7f4}

.footer{
  margin-top:3rem; padding:2rem 0; color:#5e7a96; border-top:none
}
.footer .cols{display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:1rem}
.footer a{color:#3c5f7e}
@media (max-width:1100px){ .footer .cols{grid-template-columns:1fr 1fr} }
@media (max-width:540px){ .footer .cols{grid-template-columns:1fr} }

.hero-inner > div:first-child { text-align:left; }

:root{ --container-pad: clamp(12px, 2vw, 24px) }

.container-content{ width: calc(min(1200px, 92%) - (var(--container-pad) * 2)); margin-inline:auto }

.footer .copyright{text-align:center}

.hero .badge{font-size:1.05rem; padding:.35rem .85rem}

.hero-subhead{font-size:1.25rem; font-weight:600; margin:.5rem 0 1rem; color:var(--ink)}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.hamburger{display:inline-block; width:22px; height:2px; background:var(--ink); border-radius:2px; position:relative}
.hamburger::before,.hamburger::after{content:""; position:absolute; left:0; width:22px; height:2px; background:var(--ink); border-radius:2px}
.hamburger::before{top:-6px}
.hamburger::after{top:6px}




@media (max-width:640px){
  .hero .badge{margin-inline:auto; display:inline-block}
}

@media (max-width:1100px){
  .hero .hero-inner{grid-template-columns:1fr}
  .hero .art{order:-1; min-height:260px}
}


.brand-text{display:none}

.footer .brand-text{display:none}

.header{padding-block:.6rem}

.footer .logo img{height: 72px; width:auto; object-fit:contain}

.partners{display:grid; grid-template-columns:repeat(4, 1fr); gap:1.25rem; align-items:stretch; justify-items:stretch}
.partner{display:flex; align-items:center; justify-content:center; height:120px; background:#fff; border-radius:12px; box-shadow:0 1px 3px rgba(16,24,40,.06); padding:.75rem 1.25rem; text-decoration:none}
.partner img{max-height:100%; max-width:100%; width:auto; height:auto; object-fit:contain; display:block}
@media (max-width:900px){
  .partners{display:grid; grid-template-columns:repeat(4, 1fr); gap:1.25rem; align-items:stretch; justify-items:stretch}
}

.partner:hover{box-shadow:0 6px 20px rgba(16,24,40,.12); transform:translateY(-1px)}

@media (max-width:900px){ .partners{grid-template-columns:repeat(2, 1fr)} }


.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3);
}



:root{ --header-h: 104px; }

/* Make header fixed across the entire page */
.header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 6px 20px rgba(16,24,40,0.06);
}

/* Offset page so content doesn't hide under the fixed header */
body{ padding-top: var(--header-h); scroll-padding-top: var(--header-h); }

/* Ensure mobile dropdown sits below the fixed header if it uses absolute positioning */
.nav, .nav ul{
  position: relative;
  z-index: 1001;
}


/* Restore small visual gap between fixed header and the first section */
.header + main .section:first-of-type,
.header + main .hero,
main .section:first-of-type,
main .hero:first-of-type{
  margin-top: clamp(24px, 4vw, 40px);
}



/* Extra spacing between hero subheading and h1 */
.hero-h1 {
  margin-top: 1rem;
}

/* Footer contact styling */
.footer-contact {
  margin-top: 1rem;
  font-size: 0.9rem;
}
.footer-contact a {
  color: inherit;
  text-decoration: none;
}
.footer-contact a:hover {
  text-decoration: underline;
}

.hero-headline{ margin-top: .75rem; }
/* Footer list links inherit color */
footer a{ color: inherit; text-decoration: none; }
footer a:hover{ text-decoration: underline; }


.footer h4 {
    font-size: 1.2rem;
}

.footer .cols > div:first-child {
    margin-right: 1.5rem;
}


/* Force space between header/nav and hero */
.header + main .hero,
.header + main .section:first-of-type {
  margin-top: 1.25rem !important;
}

@media (max-width: 600px) {
  .header + main .hero,
  .header + main .section:first-of-type {
    margin-top: 0.75rem !important;
  }
}


@media (max-width: 600px) {
  :root{ --header-h: 96px; }
}

/* FINAL mobile gap enforcement */
@media (max-width: 600px){
  body .header + main > .hero:first-of-type,
  body .header + main > .section:first-of-type{
    margin-top: 20px !important;
  }
}


/* === Forced header-to-content gap (robust) === */
.header + main{
  padding-top: 56px !important; /* desktop/tablet default */
  scroll-padding-top: calc(var(--header-h) + 56px);
}
@media (max-width: 768px){
  .header + main{
    padding-top: 24px !important; /* guaranteed mobile gap */
    scroll-padding-top: calc(var(--header-h) + 24px);
  }
}


.footer{
  margin-top:3rem; color:#5e7a96;
}

.footer-top{
  padding: 2rem 0 1rem;
  background: #f4faff;
}

.footer-top .grid{
  display:grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1.25rem;
  align-items:start;
}

.footer-col h4{
  font-size: 1.2rem;
  margin: 0 0 .5rem;
  color: #2e4a62;
}

.footer a{ color:#3c5f7e; text-decoration:none; }
.footer a:hover{ text-decoration:underline; }

.footer-brand .brand-text{ max-width: 42ch; }

.footer-bottom{
  border-top: 1px solid #e6eef6;
  padding: .75rem 0;
  background: #ffffff;
}

.footer-inline{
  display:flex; flex-wrap:wrap; gap:.5rem .75rem;
  align-items:center; justify-content:center;
  font-weight:600;
  margin-bottom:.35rem;
}

.footer-inline .sep{ opacity:.5; }

.copyright{
  text-align:center; font-size:.9rem;
}

@media (max-width: 860px){
  .footer-top .grid{
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand{
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px){
  .footer-top .grid{
    grid-template-columns: 1fr;
  }
  .footer-inline{
    justify-content:flex-start;
  }
}

.footer-brand .brand-contact{
  margin-top:.6rem;
  line-height:1.35;
}
.footer-brand .brand-contact a{
  color:#2e4a62;
  font-weight:600;
  text-decoration:none;
}
.footer-brand .brand-contact a:hover{
  text-decoration:underline;
}

.footer-bottom{
  border-top: 1px solid #e6eef6;
  padding: .75rem 0;
  background: #ffffff;
}
.footer-bottom .copyright{ text-align:center; font-size:.9rem; }


/* Center brand block */
.footer-top .grid{
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.footer-brand .brand-text{ max-width: 52ch; }
.footer-brand .brand-contact{
  margin-top:.6rem; line-height:1.35; text-align:center;
}
.footer-brand .brand-contact a{
  color:#2e4a62; font-weight:600; text-decoration:none;
}
.footer-brand .brand-contact a:hover{ text-decoration:underline; }

/* Horizontal link bar and copyright share same background as top */
.footer-bottom{
  background:#f4faff; /* same as footer-top */
  border-top:none;
  padding: .75rem 0 1rem;
}
.footer-inline{
  display:flex; flex-wrap:wrap; gap:.5rem .75rem;
  align-items:center; justify-content:center;
  font-weight:600;
  margin-bottom:.35rem;
}
.footer-inline .sep{ opacity:.5; }
.footer .copyright{ text-align:center; font-size:.9rem; }

@media (max-width: 540px){
  .footer-inline{ justify-content:center; }
}


.footer-top .footer-brand-row{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:1rem;
}
.footer-logo img{ max-height:60px; width:auto; }
.footer-contact-info{ text-align:left; }
.footer-contact-info .brand-contact a{
  color:#2e4a62; font-weight:600; text-decoration:none;
}
.footer-contact-info .brand-contact a:hover{ text-decoration:underline; }

/* Add space between nav and copyright */
.footer-bottom .footer-inline{ margin-bottom: 3rem; }


.footer-top .footer-brand-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:2rem;
}
.footer-logo img{ max-height:60px; width:auto; display:block; margin:0 auto; }
.footer-contact-info{ text-align:center; }
.footer-contact-info .brand-contact{ margin:0; line-height:1.35; }
.footer-contact-info .brand-contact a{
  color:#2e4a62; font-weight:600; text-decoration:none;
}
.footer-contact-info .brand-contact a:hover{ text-decoration:underline; }

/* Increase space between nav and copyright */
.footer-bottom .footer-inline{ margin-bottom: 3rem; }


.footer-bottom{
  padding-top: 3rem; /* extra space above nav */
}


/* Mid-page CTA (compact, not full-bleed) */
.cta.cta-mid{
  margin:0;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
  background:#0b4665;
  color:#fff;
}

.cta.cta-mid .btn{ background:#fff; color:#0b4665; }
.cta.cta-mid p{ color:#d5e7f4; }

/* Blog section light contrast */
.section.blog{
  background: #f4faff;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 2rem 0;
}

/* Mobile menu fixes */
.menu-btn{ cursor:pointer; }


/* Ensure header/nav stack above content for clicks */
.header{ z-index: 1000; }
.nav{ position: relative; }

.blog-date{
  font-size: 0.85rem;
  color: #666;
  margin-left: 0.5rem;
  white-space: nowrap;
}

/* Blog card actions: button left, date right */
.section.blog .card .actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.section.blog .card .actions .blog-date{
  font-size:.9rem;
  color:#6b8aa8;
  margin-left:1rem;
  white-space:nowrap;
}


/* Ensure blog dates show on mobile */
.section.blog .card .actions{
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:.5rem 1rem;
}
.section.blog .card .actions .blog-date{
  font-size:.9rem;
  color:#6b8aa8;
  margin-left:1rem;
  white-space:nowrap;
}

/* Stack nicely on narrow screens */
@media (max-width: 640px){
  .section.blog .card .actions{
    gap:.5rem 0.5rem;
  }
  .section.blog .card .actions .btn{
    flex:0 0 auto;
  }
  .section.blog .card .actions .blog-date{
    display:block;
    flex:1 0 auto;
    text-align:right;
    margin-left:auto;
  }
}


/* Robust mobile menu support */




/* Make logos clickable and preserve layout */
.logo-link{ display:inline-block; }
.header .logo .logo-link img, .footer-logo .logo-link img, .footer-brand .logo .logo-link img{ display:block; }
.logo-link{ cursor:pointer; }


/* Remove hover background from header logo */
.header .logo-link:hover,
.header .logo-link:focus{
  background:none !important;
}


/* Training quick tiles */
.quick-tiles{ display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1rem; }
.quick-tiles .tile{
  display:inline-block; padding:.55rem .9rem; border-radius:999px;
  background:#eaf6ff; color:#0b4665; font-weight:600; text-decoration:none;
}
.quick-tiles .tile:hover{ text-decoration:underline; }

/* Event grid/cards */
.event-grid{ grid-template-columns: repeat(3, 1fr); }
@media (max-width:1100px){ .event-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width:640px){ .event-grid{ grid-template-columns: 1fr; } }
.card.event .event-head{ display:flex; justify-content:space-between; align-items:baseline; gap:.75rem; color:#4f6b86; font-weight:600; }
.card.event .event-meta{ font-size:.95rem; opacity:.9; }
.card.event h3{ margin:.4rem 0; }
.card.event .actions{ display:flex; gap:.5rem; justify-content:flex-start; }

/* Notes / small callouts */
.note{ color:#4f6b86; font-size:.95rem; margin-bottom:1rem; }

/* Contrast section flavor */
.section.contrast{
  background:#f7fbff;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 2rem 0;
}

/* Full-bleed mid CTA variation (reuse existing .cta styles) */
.cta.fullbleed{ margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* Topic cards grid */
.topics{ grid-template-columns: repeat(2, 1fr); }
@media (max-width:1100px){ .topics{ grid-template-columns: 1fr; } }



.nav-links a.active {
    font-weight: bold !important;
}

/* Bold active nav item */


/* Training dropdown */
.nav ul li.has-sub{ position:relative; }
.nav ul li.has-sub > a{ position:relative; padding-right: 1.4rem; }
.nav ul li.has-sub > a::after{
  content: "▾"; position:absolute; right:.4rem; top:50%; transform:translateY(-50%);
  font-size:.8rem; opacity:.7;
}
.nav ul li.has-sub > ul.sub{
  display:none; position:absolute; top:100%; left:0; margin-top:.3rem;
  background:#fff; border-radius:12px; box-shadow:var(--shadow); padding:.4rem 0; min-width: 220px;
}
.nav ul li.has-sub > ul.sub a{ display:block; padding:.5rem 1rem; border-radius:0; }


/* Mobile: show submenu inline */


/* Extra topics list styling */
.extra-topics { margin-top: 2rem; }
.extra-topics h3 { margin-bottom: 0.5rem; }
.topic-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0.5rem; }
.topic-list ul { list-style: disc; padding-left: 1.5rem; margin: 0; }
.topic-list li { margin-bottom: 0.25rem; }

/* Collapsible extra topics */
details.extra-topics{ margin-top: 2rem; }
details.extra-topics > summary{
  list-style: none; cursor: pointer; user-select: none;
  font-weight: 700; color:#2e4a62; margin-bottom:.5rem;
  display:flex; align-items:center; gap:.5rem;
}
details.extra-topics > summary::-webkit-details-marker{ display:none; }
details.extra-topics > summary::before{
  content: "▸"; transform: translateY(1px);
}
details.extra-topics[open] > summary::before{
  content: "▾";
}
details.extra-topics .topic-list{ padding-top:.25rem; }


/* --- Card icons (Safety tiles) --- */
.card {
  position: relative;
}
.card .card-icon {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  
}
.card .card-icon img {
  display: block;
  width: 100%;
  height: 100%;
}
@media (max-width: 700px) {
  .card .card-icon { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}


/* Match card icons to CTA background color */
.card .card-icon svg,
.card .card-icon img {
  color: #0077b6;
}


/* Match card icons to CTA background color (inline SVG) */
.card .card-icon svg {
  color: #0b4665;
  stroke: currentColor;
  fill: currentColor;
}
.card .card-icon svg [fill="none"] {
  fill: none;
}

.card .card-icon { opacity: 1 !important; }


/* --- Added in v1.1.36→v1.1.37: alternating bands + CTA chips + contact fix --- */
.section.alt { background: var(--bg-soft, #f7fafc); }
.accent-band { background: var(--accent-verylight, #eef6ff); }

.cta-band{
  display:flex; flex-wrap:wrap; gap:.8rem; justify-content:center; align-items:center;
  padding: .5rem 0 0.4rem 0;
}
.cta-chip{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.75rem 1rem; border-radius:999px; font-weight:600;
  background: var(--brand-weak, #e6f0ff); color: var(--brand-ink, #0b3a88);
  border: 1px solid rgba(0,0,0,.08);
}
.cta-chip:hover{ filter:brightness(0.97) }
.footer-bottom .footer-inline a { white-space:nowrap }
.hero .container { width:min(1200px,92%) } /* ensure hero content width is consistent */


/* v1.139: Alternating background for Solutions rows */
.solutions-section.alt{ background: var(--accent-verylight, #eef6ff); }
.solutions-section{ padding-block: clamp(24px, 4vw, 56px); border-top: 1px solid rgba(0,0,0,.06) }
.solutions-section:first-of-type{ border-top: none }

/* v1.142: Ensure hero image scales */
.hero .art img{max-width:100%; height:auto; display:block}


/* v1.145: Clients page layout */
.grid.logos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
@media (max-width:1100px){.grid.logos{grid-template-columns:repeat(2,minmax(0,1fr))}}
.logo-card{background:var(--bg-soft,#f7fafc);
    background:rgba(240,248,255,0.6);padding:1rem;border-radius:12px;border:1px solid rgba(0,0,0,.06)}

.grid.testimonials{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
@media (max-width:1100px){.grid.testimonials{grid-template-columns:1fr}}
.testimonial blockquote{font-size:1.05rem;line-height:1.5;margin:0 0 .5rem}

.grid.cases{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
@media (max-width:900px){.grid.cases{grid-template-columns:1fr}}
.card.case .thumb{height:180px;background-size:cover;background-position:center;border-radius:12px;margin-bottom:.6rem}


/* v1.150: Pop for Who we work with tiles */
#who-we-work-with .logo-card{
  background: rgba(240,248,255,0.85) !important; /* soft pop */
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
}
#who-we-work-with .logo-card h3{ margin-top:.2rem; }

/* Anchor offset so sticky header doesn't cover section headings */
html { scroll-padding-top: 120px; }
.section[id] { scroll-margin-top: 120px; }
.section h2[id] { scroll-margin-top: 140px; }


/* Team flip cards */
.team-grid { gap: 1.25rem; }
.team-card { position: relative; border-radius: 1rem; overflow: hidden; }
.team-card .team-photo { width: 100%; height: 220px; object-fit: cover; display:block; }
.flip-card { perspective: 1000px; }
.flip-card .flip-inner { position: relative; transition: transform .6s; transform-style: preserve-3d; min-height: 260px; }
.flip-card.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back { position: relative; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 1rem; }
.flip-front { background: #fff; }
.flip-back { background: #f7fbff; transform: rotateY(180deg); }
.bio-button, .bio-close {
  position: absolute; top: .75rem; right: .75rem;
  font: inherit; border: 0; padding: .4rem .7rem; border-radius: 9999px; cursor: pointer;
  background: #0c63ce; color: #fff;
}
.bio-close { right: .75rem; }
.flip-front h3, .flip-back h3 { margin-top: .75rem; margin-bottom: .5rem; }
@media (prefers-reduced-motion: reduce) {
  .flip-card .flip-inner { transition: none; }
}


/* v1.189 adjustments */
.flip-front { padding-bottom: 1.25rem; }
.bio-button { top: auto; bottom: .75rem; right: .75rem; }
.flip-front .contact-row { margin-bottom: 0; }

/* Make team grid 3-up, responsive */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 1024px){
  .team-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .team-grid { grid-template-columns: 1fr; }
}


/* v1.190 — Flip without whitespace & action layout */
.flip-card { position: relative; }
.flip-card .flip-inner { min-height: initial; }
.flip-front, .flip-back { position: absolute; inset: 0; }
.flip-front { padding-bottom: 1rem; }
.flip-back { padding: 1rem; display: block; }

/* Action row: contact left, Bio button right */
.contact-actions { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; }
.contact-actions .contact-row { margin: 0; }
.contact-actions .bio-button { position: static; margin-left: auto; }

/* Ensure back content starts at top and fills area nicely */
.flip-back h3 { margin-top: 0; }
.bio-close { position: absolute; top: .75rem; right: .75rem; }



/* v1.191 dynamic flip height */
.flip-card .flip-inner { height: auto; }
/* Ensure faces are absolute overlays only after JS sets height */
.flip-front, .flip-back { position: absolute; inset: 0; }


/* v1.192 — align Close button with Bio button */
.flip-back { padding-bottom: 3.25rem; } /* room for the Close button */
.bio-close { top: auto; bottom: .75rem; right: .75rem; }


/* v1.194 — align Bio/Close buttons to site button color scale */
.bio-button, .bio-close {
  background: var(--brand);
  color: #fff;
}
.bio-button:hover, .bio-button:focus,
.bio-close:hover, .bio-close:focus {
  background: var(--brand-strong);
}


/* v1.195 — home: blog 'View all posts' */
.blog-view-all { margin-top: 1rem; text-align: center; }
.blog-view-all .btn { padding: .625rem 1rem; }


/* v1.197 — blog cards with thumbnails */
article.card .card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
article.card { overflow: hidden; }
@media (min-width: 1024px){
  article.card .card-thumb { height: 200px; }
}


/* v1.203 — Larger 'Additional …' toggles with custom caret */
section details > summary {
  font-size: 1.125rem; /* up from base */
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .1rem .25rem;
}

section details > summary::-webkit-details-marker { display: none; }
section details > summary::marker { content: ""; }

section details > summary::after {
  content: "▾";
  display: inline-block;
  transform: translateY(-1px) rotate(0deg);
  transition: transform .18s ease;
  font-size: 1.2em; /* bigger caret */
  color: var(--brand-strong);
}
section details[open] > summary::after {
  transform: translateY(-1px) rotate(180deg);
}



/* v1.204 — Training: single left caret and larger toggle */
section details > summary {
  font-size: 1.125rem;          /* bigger text */
  font-weight: 700;
  cursor: pointer;
  list-style: none;              /* hide default marker (FF) */
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .1rem .25rem;
}
/* Hide native marker (WebKit/Chromium & general) */
section details > summary::-webkit-details-marker { display: none; }
section details > summary::marker { content: ""; }
/* Optional older gecko */
section details > summary::-moz-list-bullet { font-size: 0; }

/* Custom left caret */
section details > summary::before {
  content: "▸";
  display: inline-block;
  transform: rotate(0deg);
  transition: transform .18s ease;
  font-size: 1.2em;
  color: var(--brand-strong);
}
section details[open] > summary::before {
  transform: rotate(90deg);
}


/* v1.205 — enforce single left caret, hide native markers and old right caret */
details > summary { list-style: none !important; }
details > summary::-webkit-details-marker { display: none !important; }
details > summary::marker { content: "" !important; font-size: 0 !important; }
section details > summary::after { content: none !important; }



/* v1.206 — Solutions page: increase bullet spacing/line-height */
.solutions-section ul { margin-top: .25rem; }
.solutions-section ul li {
  line-height: 1.6;
  margin-block: .25rem;
}


/* v1.211 — Solutions CTA spacing + anchor offset */
.cta { margin-bottom: 0; }
.cta + .solutions-section.alt { margin-top: 0; padding-top: 2.5rem; }
.solutions-section { scroll-margin-top: var(--sticky-offset, 96px); }


/* v1.213 — Ensure each submenu anchors under its own nav item */
.header .nav ul > li.has-sub { position: relative; }
.header .nav ul > li.has-sub > ul.sub {
  left: 0;
  right: auto;
  top: 100%;
  margin-top: .3rem;
  z-index: 1000;
}

/* ===== v1.215: CTA button standardization (scoped, minimal) ===== */
.section.cta .btn {
  background-color: #ffffff !important;
  color: #0d4a5a !important; /* dark teal text to match theme */
  border-color: #ffffff !important;
}
.section.cta .btn:hover {
  opacity: 0.9;
}
/* ===== end v1.215 ===== */

/* ===== v1.217: Who we work with - Accordion implementation ===== */
.section.audience-accordion .items details { border-top:1px solid rgba(0,0,0,0.08); padding:10px 0; }
.section.audience-accordion .items details:last-child { border-bottom:1px solid rgba(0,0,0,0.08); }
.section.audience-accordion summary { cursor:pointer; font-weight:600; color:#0d2e38; }
.section.audience-accordion details p { margin:8px 0 0; color:#465a63; }
/* Keep native left caret: DO NOT hide summary marker. No custom right caret here. */
/* ===== end v1.217 ===== */

/* ===== v1.219: Training page caret fix (scoped) ===== */
details.extra-topics > summary { list-style: none; cursor: pointer; }
details.extra-topics > summary::-webkit-details-marker { display: none; } /* hide default marker (Chrome/Safari) */
details.extra-topics > summary::marker { content: ''; } /* hide default marker (Firefox) */
details.extra-topics > summary::before {
  content: '▸';
  display: inline-block;
  width: 1em;
  margin-right: 6px;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}
details.extra-topics[open] > summary::before {
  transform: rotate(90deg); /* points down when open */
}
/* ===== end v1.219 ===== */

/* ===== v1.220: Training page caret fix (robust SVG, scoped) ===== */
/* Hide native marker across browsers */
details.extra-topics > summary::-webkit-details-marker { display: none; }
details.extra-topics > summary::marker { content: ""; }
/* Inject our own caret via inline SVG so angle is precise */
details.extra-topics > summary {
  position: relative;
  padding-left: 1.2rem;
}
details.extra-topics > summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 0.9rem;
  height: 0.9rem;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transform: rotate(0deg);
  transition: transform 0.18s ease;
  /* right-pointing triangle path in currentColor */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d4a5a'><path d='M5 3l7 5-7 5z'/></svg>");
}
details.extra-topics[open] > summary::before {
  transform: rotate(90deg); /* straight down when open */
}
/* Color inherits from text; ensure consistent color */
details.extra-topics > summary { color: #0d2e38; }
/* ===== end v1.220 ===== */

/* ===== v1.221: Caret single-icon fix (training page only) ===== */
details.extra-topics > summary { list-style: none !important; position: relative; padding-left: 1.2rem; }
details.extra-topics > summary::-webkit-details-marker { display: none !important; }
details.extra-topics > summary::marker { content: "" !important; }
/* Remove any legacy arrows */
details.extra-topics > summary::after { content: none !important; }
/* Our single caret */
details.extra-topics > summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 0.9rem;
  height: 0.9rem;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transform: rotate(0deg);
  transition: transform 0.18s ease;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d4a5a'><path d='M5 3l7 5-7 5z'/></svg>");
}
details.extra-topics[open] > summary::before { transform: rotate(90deg); }
/* ===== end v1.221 ===== */

/* ===== v1.222: Caret unification & training double-caret fix ===== */
/* Common SVG caret (right-pointing triangle). We'll reuse it per page. */
:root { --caret-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d4a5a'><path d='M5 3l7 5-7 5z'/></svg>"); }

/* ---- Training page (.extra-topics) ---- */
details.extra-topics > summary {
  position: relative;
  padding-left: 1.2rem;
  color: #0d2e38;
  cursor: pointer;
}
/* Remove any native & legacy markers first */
details.extra-topics > summary::-webkit-details-marker { display: none !important; }
details.extra-topics > summary::marker { content: "" !important; }
details.extra-topics > summary::before,
details.extra-topics > summary::after { content: none !important; }
/* Our single caret */
details.extra-topics > summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--caret-svg) no-repeat 0 0 / 100% 100%;
  transform: rotate(0deg);
  transition: transform 0.18s ease;
  content: "" !important; /* ensure override after reset */
}
details.extra-topics[open] > summary::before { transform: rotate(90deg); } /* down */

/* ---- Clients page (.audience-accordion) ---- */
.section.audience-accordion details > summary {
  position: relative;
  padding-left: 1.2rem;
  color: #0d2e38;
  cursor: pointer;
}
.section.audience-accordion details > summary::-webkit-details-marker { display: none !important; }
.section.audience-accordion details > summary::marker { content: "" !important; }
.section.audience-accordion details > summary::before,
.section.audience-accordion details > summary::after { content: none !important; }
/* Same caret + rotation behavior */
.section.audience-accordion details > summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--caret-svg) no-repeat 0 0 / 100% 100%;
  transform: rotate(0deg);
  transition: transform 0.18s ease;
  content: "" !important;
}
.section.audience-accordion details[open] > summary::before { transform: rotate(90deg); } /* down */
/* Divider lines remain from existing styles */
/* ===== end v1.222 ===== */

/* ===== v1.223: Blog hero + controls + numbered pagination ===== */
.hero.container-content .art { background: var(--hero-art, #0d4a5a); border-radius: 12px; min-height: 220px; }
#posts .controls { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-bottom:16px; }
#posts .input { flex:1 1 240px; padding:10px 12px; border:1px solid rgba(0,0,0,0.15); border-radius:10px; outline:none; }
#posts .input:focus { border-color:#0d4a5a; box-shadow:0 0 0 3px rgba(13,74,90,0.12); }
#posts .chips { display:flex; gap:8px; flex-wrap:wrap; }
#posts .chip { background:#fff; border:1px solid rgba(0,0,0,0.12); border-radius:999px; padding:8px 12px; cursor:pointer; }
#posts .chip.active, #posts .chip:hover { background:#0d4a5a; color:#fff; border-color:#0d4a5a; }

#posts .grid.posts { display:grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap:16px; }
#posts .blog-card .hero img { width:100%; height:120px; object-fit:cover; border-radius:12px; }
#posts .blog-card h3 { margin:10px 0 6px; }

.pagination.numbered { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:16px; }
.pagination.numbered .page-arrow { background:#fff; border:1px solid rgba(0,0,0,0.15); border-radius:10px; padding:8px 12px; cursor:pointer; }
.pagination.numbered .page-numbers { display:flex; gap:6px; }
.pagination.numbered .page-btn { background:#fff; border:1px solid rgba(0,0,0,0.15); border-radius:8px; padding:8px 12px; cursor:pointer; min-width:40px; }
.pagination.numbered .page-btn.active { background:#0d4a5a; color:#fff; border-color:#0d4a5a; }
.pagination.numbered .page-arrow:disabled { opacity:0.4; cursor:not-allowed; }
/* ===== end v1.223 ===== */

/* ===== v1.228: Case Studies (single post) ===== */
.post .post-meta { color:#5b6d75; margin-bottom:10px; }
.post .post-hero { width:100%; height:260px; object-fit:cover; border-radius:12px; margin:10px 0 18px; }
.post .prose h3 { margin-top:18px; }
.post .post-cta { display:flex; gap:10px; margin-top:16px; }
/* ===== end v1.228 ===== */


/* --- Testimonial Flair (lightweight + on-brand) --- */
.testimonial.fancy{ 
  position:relative; 
  background:linear-gradient(180deg, #ffffff, #f3f9ff);
  border:1px solid #e0edf8;
  padding: 1.25rem 1.25rem 1.25rem 3.25rem;
}
.testimonial.fancy blockquote{ font-size:1.08rem; font-style:italic }
.testimonial.fancy::before{
  content:"\201C"; /* decorative opening quote */
  position:absolute; left:1rem; top: .4rem;
  font-size:3rem; line-height:1; font-weight:800;
  color:rgba(21,135,211,.18); /* uses brand hue */
  pointer-events:none; aria-hidden:true;
}
@media (min-width: 900px){
  .testimonials{grid-template-columns:repeat(3,minmax(0,1fr));}
}

/* --- v1.244: Testimonial flair refinements --- */
/* Remove inline quote characters around the text for fancy testimonials */
.testimonial.fancy blockquote{ quotes:none; }
.testimonial.fancy blockquote::before,
.testimonial.fancy blockquote::after{ content:none !important; }

/* Make the decorative opening quote clearly a quotation mark and in a serif font */
.testimonial.fancy::before{
  content:"“"; /* curly opening quote */
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1;
  color: rgba(21,135,211,.28);
  text-shadow: 0 1px 0 rgba(0,0,0,.02);
}
@media (min-width: 1200px){
  .testimonial.fancy::before{ font-size: 3.8rem; }
}
/* --- end v1.244 --- */

/* v1.250 – Normalize single post hero image sizing */
.post .post-hero{ overflow:hidden; }
.post .post-hero img{ width:100%; height:260px; object-fit:cover; display:block; }

/* v1.275 overrides */
.hero .art{
  /* Remove any frame/edge artifacts */
  border: 0 !important;
  box-shadow: var(--shadow) !important;
  background-color: transparent !important;
  /* Show most of the image while avoiding teal edges */
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* v1.284 hero fallback */
.hero .art{
  background-color:#0b4665;
  background-image: var(--hero-fallback, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* v1.291: Increase space above the 'View more blog posts' button */
.blog-view-all{margin-top:2.25rem;}




/* v1.296: hero uses inline style for precise cropping */


/* ===== v1.321: training-registration controls & chips styling to match blog ===== */
#register .controls { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-bottom:16px; }
#register .input { flex:1 1 240px; padding:10px 12px; border:1px solid rgba(0,0,0,0.15); border-radius:10px; outline:none; }
#register .input:focus { border-color:#0d4a5a; box-shadow:0 0 0 3px rgba(13,74,90,0.12); }
#register .chips { display:flex; gap:8px; flex-wrap:wrap; }
#register .chip { background:#fff; border:1px solid rgba(0,0,0,0.12); border-radius:999px; padding:8px 12px; cursor:pointer; }
#register .chip.active, #register .chip:hover { background:#0d4a5a; color:#fff; border-color:#0d4a5a; }


/* v1.324: helper text below pagination on training registration */
#register .pagination-note { display:block; text-align:center; margin-top:12px; }


/* v1.332: precise framing for blog hero image */
section[aria-labelledby="blog-hero-title"] .art{
  background-position: center 31% !important;
}
@media (max-width: 900px){
  section[aria-labelledby="blog-hero-title"] .art{
    background-position: center 29% !important;
  }
}

/* v1.342 hero cleanup */

#home-hero .art .art-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* v1.342 hero sizing: controlled aspect ratio, avoid overly tall hero */
#home-hero .art { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 520px; min-height: 320px; }
#home-hero .art .art-img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 1024px){
  #home-hero .art { aspect-ratio: 16 / 9; max-height: 520px; }
}



/* v1.342 services hero adjusted */
#solutions-hero-title { }
.hero.container-content .art { 
  position: relative; 
  width: 100%; 
  aspect-ratio: 16 / 8;  /* was 16/10, ~20% shorter */
  max-height: 420px; 
  min-height: 260px; 
  border-radius: 12px; 
  overflow: hidden; 
}
.hero.container-content .art .art-img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
}
@media (min-width: 1024px){
  .hero.container-content .art { aspect-ratio: 16 / 8; max-height: 420px; }
}

/* v1.349 digital hero sizing */
#digital-hero .art {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  max-height: 420px;
  min-height: 260px;
  border-radius: 12px;
  overflow: hidden;
}
#digital-hero .art .art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 1024px){
  #digital-hero .art { aspect-ratio: 16 / 8; max-height: 420px; }
}

/* v1.353 clients hero sizing */
section[aria-labelledby="clients-hero-title"] .art{ position:relative; width:100%; aspect-ratio:16/8; max-height:420px; min-height:260px; border-radius:12px; overflow:hidden; }
section[aria-labelledby="clients-hero-title"] .art .art-img{ width:100%; height:100%; object-fit:cover; display:block; }
@media (min-width:1024px){
  section[aria-labelledby="clients-hero-title"] .art{ aspect-ratio:16/8; max-height:420px; }
}

/* v1.358: Vertically center carets in 'Who we work with' list */
section[aria-labelledby="clients-who-title"] ul li {
  display: flex;
  align-items: center;
}
section[aria-labelledby="clients-who-title"] .caret {
  margin-right: 0.5rem;
}

/* v1.358: center caret in 'Who we work with' */
.section.audience-accordion details > summary::before{
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
}
.section.audience-accordion details[open] > summary::before{
  transform: translateY(-50%) rotate(90deg);
}

/* v1.360: blog-specific hero crop */
body.blog .art-img{
  object-position: center 25%;
}

/* v1.361: blog hero crop (page-scoped) */
section[aria-labelledby="blog-hero-title"] .art .art-img{
  object-position: center 25%;
}


/* v1.381 — Digital: scope Websites & Email tiles to <picture>/<img> */
.websites-email .thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: none;
}
.websites-email .thumb .thumb-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


/* v1.382 — Digital: scope Cybersecurity & AI Tools tiles to <picture>/<img> */
.other-it-services .thumb,
.ai-tools .thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: none;
  display: block;
}
.other-it-services .thumb .thumb-img,
.ai-tools .thumb .thumb-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* v1.384: restore What we do picture styles */
.what-we-do .card .thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: none; /* remove bg-image usage in this section only */
}
.what-we-do .card .thumb .thumb-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


.team-photo-rounded{border-radius:12px;overflow:hidden;display:block;}


/* v1.389: contact-only bio button formatting (from v1.382) */
body.contact .bio-button { top: auto; bottom: .75rem; right: .75rem; }
body.contact .contact-actions .bio-button { position: static; margin-left: auto; }


body.contact .contact-actions{
  display: grid;
  grid-template-columns: 4fr 1fr;  /* ~80/20 split */
  align-items: center;
  gap: .75rem;
}
body.contact .contact-actions .contact-row{
  min-width: 0;               /* allow wrapping within grid */
  overflow-wrap: anywhere;    /* prevent long emails from overflow */
  line-height: 1.25;
}
body.contact .contact-actions .bio-button{
  justify-self: end;          /* stay at the right of its column */
  white-space: nowrap;
  min-width: clamp(72px, 60%, 110px); /* scales with its column */
  padding-inline: .85rem;
  padding-block: .45rem;
  border-radius: 999px;
}
@media (max-width: 430px){
  body.contact .contact-actions{
    grid-template-columns: 1fr; /* stack on small screens */
  }
  body.contact .contact-actions .bio-button{
    justify-self: start;       /* or center; start keeps alignment with text */
    margin-top: .5rem;
    min-width: auto;
    width: fit-content;
  }
}


/* v1.391 — contact-only: 85/15 split, shrink text & button instead of wrapping */
body.contact .contact-actions{
  display: grid;
  grid-template-columns: 85% 15%;
  align-items: center;
}
body.contact .contact-actions .contact-row{
  min-width: 0;
  white-space: nowrap;
  font-size: clamp(0.7rem, 1.2vw, 1rem); /* scales text with width */
}
body.contact .contact-actions .bio-button{
  justify-self: end;
  white-space: nowrap;
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  padding: clamp(0.3rem, 0.8vw, 0.5rem) clamp(0.6rem, 1vw, 0.8rem);
  border-radius: 999px;
}


/* v1.392 — contact-only: 85/15 split, phone/email stacked, Bio aligned to email row, shrink instead of wrap */
body.contact .contact-actions{
  display: grid;
  grid-template-columns: 85% 15%;
  grid-template-rows: auto auto;  /* two rows: phone, email */
  align-items: center;
  gap: .5rem .75rem;
}
/* Left column spans both rows */
body.contact .contact-actions .contact-info{
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-rows: auto auto;
  min-width: 0;
}
/* Phone + email on separate lines, shrink to fit card width */
body.contact .contact-actions .contact-info .phone,
body.contact .contact-actions .contact-info .email{
  white-space: nowrap;
  font-size: clamp(0.70rem, 1.1vw, 1rem);
  line-height: 1.2;
}
/* Align Bio to the email row (row 2, right column) */
body.contact .contact-actions .bio-button{
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  white-space: nowrap;
  font-size: clamp(0.70rem, 1vw, 0.95rem);
  padding: clamp(0.30rem, 0.8vw, 0.50rem) clamp(0.60rem, 1vw, 0.80rem);
  border-radius: 999px;
  min-width: clamp(72px, 14cqw, 110px);
}
/* Mobile fallback: stack everything */
@media (max-width: 430px){
  body.contact .contact-actions{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  body.contact .contact-actions .contact-info{
    grid-column: 1; grid-row: 1 / span 2;
  }
  body.contact .contact-actions .bio-button{
    grid-column: 1; grid-row: 3;
    justify-self: start;
    margin-top: .5rem;
    min-width: auto;
    width: fit-content;
  }
}


/* v1.393 — contact-only refinements
   - Guarantee button column width to avoid clipping
   - Tighten phone/email spacing
   - Larger minima for small screens
*/
body.contact .contact-actions{
  grid-template-columns: minmax(0, 1fr) minmax(88px, 15%); /* 85/15 with a safe minimum for the button */
  gap: .4rem .75rem;
}
body.contact .contact-actions .contact-info{
  display: grid;
  grid-template-rows: auto auto;
  row-gap: .2rem;
  min-width: 0;
}
body.contact .contact-actions .contact-info .phone,
body.contact .contact-actions .contact-info .email{
  display: block;
  white-space: nowrap;
  font-size: clamp(0.85rem, 1.15vw, 1rem); /* bigger floor for readability */
  line-height: 1.15;
}
body.contact .contact-actions .bio-button{
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  white-space: nowrap;
  min-width: 88px; /* align with column min */
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  padding: clamp(0.4rem, 0.9vw, 0.55rem) clamp(0.7rem, 1.1vw, 0.9rem);
  border-radius: 999px;
}
@media (max-width: 520px){
  body.contact .contact-actions{
    grid-template-columns: 1fr;     /* stack earlier to avoid tiny text/buttons */
    grid-template-rows: auto auto auto;
  }
  body.contact .contact-actions .bio-button{
    grid-column: 1; grid-row: 3;
    justify-self: start;
    margin-top: .4rem;
    min-width: auto;
    width: fit-content;
  }
}


/* v1.394 — contact-only: shrink Bio pill ~50% and tighten button column */
body.contact .contact-actions{
  grid-template-columns: minmax(0, 1fr) minmax(64px, 15%); /* smaller safe min for button */
}
body.contact .contact-actions .bio-button{
  min-width: 64px;
  font-size: clamp(0.60rem, 0.6vw, 0.70rem);
  padding: clamp(0.20rem, 0.45vw, 0.30rem) clamp(0.35rem, 0.55vw, 0.45rem);
  border-radius: 999px;
}


/* v1.395 — contact-only: shrink Bio pill width but keep text/height */
body.contact .contact-actions .bio-button{
  font-size: clamp(0.8rem, 0.7vw, 0.9rem);
  padding: 0.35rem 0.5rem; /* reduce horizontal padding only */
  min-width: 50px;
  text-align: center;
}


/* v1.401 — contact-only: rounded light-blue bio panel via clip-path (no layout/position changes) */
body.contact .team-card .flip-back{
  -webkit-clip-path: inset(0 round 12px);
          clip-path: inset(0 round 12px);
}

/* v1.402 — contact-only: anchor phone/email/button with named grid areas */
body.contact .contact-actions{
  display: grid;
  grid-template-columns: 85% 15%;
  grid-template-areas: "info btn";
  align-items: center;
  align-content: start;
  gap: .35rem .75rem;
  margin: 0;
}
body.contact .contact-actions .contact-info{
  grid-area: info;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  row-gap: .2rem;
  min-width: 0;
  margin: 0;
}
body.contact .contact-actions .contact-info .phone,
body.contact .contact-actions .contact-info .email{
  margin: 0;
  white-space: nowrap;
}
body.contact .contact-actions .bio-button{
  grid-area: btn;
  justify-self: end;
  align-self: center;
  margin: 0;
  white-space: nowrap;
}
@media (max-width: 520px){
  body.contact .contact-actions{
    grid-template-columns: 1fr;
    grid-template-areas:
      "info"
      "btn";
  }
  body.contact .contact-actions .bio-button{
    justify-self: start;
    margin-top: .4rem;
  }
}

/* v1.403 — contact-only: increase sizes on small screens */
@media (max-width: 520px){
  body.contact .contact-info{
    font-size: 1rem;
  }
  body.contact .contact-info a{
    font-size: 1rem;
  }
  body.contact .bio-button{
    font-size: 0.95rem;
    padding: 0.5rem 1.25rem;
  }
}


/* v1.404 — contact-only (small screens ≤430px):
   - Remove shrinking for phone/email/bio button once Bio drops below
   - Align Bio button to the right with same edge spacing
   - Keep stack (1fr) to avoid overlap */
@media (max-width: 430px){
  body.contact .contact-actions{
    grid-template-columns: 1fr; /* stacked */
  }
  body.contact .contact-info,
  body.contact .contact-info a{
    font-size: 1.05rem; /* don't shrink on stacked layout */
  }
  body.contact .bio-button{
    font-size: 1.05rem;          /* keep tap target big */
    padding: 0.55rem 1.2rem;     /* maintain comfortable padding */
    justify-self: end;           /* push to right edge */
    margin-top: .5rem;           /* keep vertical spacing from contact info */
  }
}



/* v1.405 — contact-only (≤520px): stack + no-shrink + right-align */
@media (max-width: 520px){
  body.contact .contact-actions{
    grid-template-columns: 1fr;   /* force stack at 520 to match drop behavior */
  }
  body.contact .contact-info,
  body.contact .contact-info a{
    font-size: 1.05rem;           /* keep readable */
  }
  body.contact .bio-button{
    font-size: 1.05rem;
    padding: 0.55rem 1.2rem;
    justify-self: end;            /* push to right edge of card */
    margin-top: .5rem;
  }
}



/* v1.406 — contact-only (≤430px): keep stacked, no shrink, button right-aligned */
@media (max-width: 430px){
  body.contact .contact-actions{
    grid-template-columns: 1fr;
  }
  body.contact .contact-actions .bio-button{
    justify-self: end;
    margin-top: .5rem;
  }
  body.contact .contact-info,
  body.contact .contact-info a,
  body.contact .contact-actions .bio-button{
    font-size: 1.05rem;
  }
}



/* v1.406 — contact-only (≤430px): keep stacked, no shrink, button to bottom-right */
@media (max-width: 430px){
  /* ensure stacked layout at this breakpoint */
  body.contact .contact-actions{ 
    grid-template-columns: 1fr; 
  }

  /* push Bio button to the right edge with same spacing */
  body.contact .contact-actions .bio-button{
    justify-self: end;
    margin-top: .5rem; /* keep the existing vertical spacing */
  }

  /* stop shrinking phone/email/button when stacked */
  body.contact .contact-info,
  body.contact .contact-info a,
  body.contact .contact-actions .bio-button{
    font-size: 1.05rem;
  }
}



/* v1.407 — contact-only (≤430px): explicit grid + right-edge button and no shrinking */
@media (max-width: 430px){
  body.contact .contact-actions{
    display: grid !important;        /* ensure grid at this breakpoint */
    grid-template-columns: 1fr;      /* stack */
  }
  body.contact .contact-actions .bio-button{
    justify-self: end;               /* right edge */
    margin-top: .5rem;
    font-size: 1.05rem;              /* no shrink */
    padding: 0.55rem 1.2rem;
    min-width: 96px;                 /* keep pill shape legible */
  }
  body.contact .contact-info,
  body.contact .contact-info a{
    font-size: 1.05rem;              /* no shrink on text */
  }
}



/* v1.409 — contact-only small screens: stack, larger sizes, right-edge button */
@media (max-width: 520px){
  /* Ensure stacked layout at this breakpoint */
  body.contact .team-card .contact-actions{
    display: grid !important;
    grid-template-columns: 1fr;
    align-items: center;
    gap: .75rem;
  }
  /* Remove “shrunken” look: make phone/email and button clearly larger */
  body.contact .team-card .contact-actions .contact-info,
  body.contact .team-card .contact-actions .contact-info a,
  body.contact .team-card .contact-actions .bio-button{
    font-size: clamp(1.05rem, 3.8vw, 1.2rem);
    line-height: 1.2;
  }
  /* Push the Bio button to the right edge on its own row */
  body.contact .team-card .contact-actions .bio-button{
    justify-self: end;
    margin-top: .5rem;
    padding: 0.6rem 1.25rem;
    min-width: 108px;
  }
}



/* v1.410 — contact-only (all sizes): larger consistent phone/email/button, Bio button right-aligned */
body.contact .team-card .contact-actions{
  display: grid;
  grid-template-columns: 1fr auto;  /* phone/email left, bio button right */
  align-items: center;
  gap: .75rem;
}
/* Larger consistent text and button sizing at all breakpoints */
body.contact .team-card .contact-actions .contact-info,
body.contact .team-card .contact-actions .contact-info a,
body.contact .team-card .contact-actions .bio-button{
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.2;
}
/* Bio button consistently at right edge */
body.contact .team-card .contact-actions .bio-button{
  justify-self: end;
  padding: 0.6rem 1.25rem;
  min-width: 108px;
}


/* v1.411 — contact-only (all sizes): Bio button always below, right-aligned */
body.contact .team-card .contact-actions{
  display: grid;
  grid-template-columns: 1fr;      /* single column layout */
  grid-template-rows: auto auto;   /* row 1: phone/email, row 2: button */
  align-items: start;
  gap: .75rem;
}
/* Consistent, readable sizes */
body.contact .team-card .contact-actions .contact-info,
body.contact .team-card .contact-actions .contact-info a,
body.contact .team-card .contact-actions .bio-button{
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.2;
}
/* Button in its own row, at right edge */
body.contact .team-card .contact-actions .bio-button{
  grid-row: 2;
  justify-self: end;
  padding: 0.6rem 1.25rem;
  min-width: 108px;
}


/* v1.412 — contact-only: narrower Bio button (~30% less width) */
body.contact .team-card .contact-actions .bio-button{
  padding: 0.6rem 0.85rem;  /* narrower horizontal padding */
  min-width: 76px;          /* reduce from 108px (~30% smaller) */
}


/* v1.416 — services-only: offset anchor scrolling under sticky header */
body.services section[id]{
  scroll-margin-top: 88px; /* match site header height; adjust if header changes */
}


/* v1.435/436: stronger header-to-hero gap on small phones */
@media (max-width: 520px){
  .header + main{
    padding-top: clamp(36px, 8vw, 56px) !important;
    scroll-padding-top: calc(var(--header-h, 64px) + clamp(36px, 8vw, 56px));
  }
}


/* v1.445: ensure blog/index card thumbs render <picture> like background-cover */
.card .thumb{
  position: relative;
  overflow: hidden;             /* keep rounded corners on content */
  border-radius: 12px;          /* match card radius */
}
.card .thumb picture,
.card .thumb img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;            /* fill box like background-size: cover */
}


/* v1.446: blog post hero image rounding for <picture> */
.post .post-hero{
  border-radius:12px;
  overflow:hidden;                 /* clip children so corners appear */
}
.post .post-hero picture,
.post .post-hero img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
}


/* v1.448: ensure rounded corners on blog post hero figures */
figure.post-hero{
  border-radius:12px;
  overflow:hidden;
}
figure.post-hero picture,
figure.post-hero img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
}


/* v1.448: round blog post heroes regardless of wrapper */
figure.post-hero{ border-radius:12px; overflow:hidden; }
figure.post-hero picture,
figure.post-hero img{
  display:block; width:100%; height:100%;
  object-fit:cover; border-radius:inherit;
}


/* v1.476: Mobile hamburger tweaks + visible 'Menu' label on mobile */



/* v1.481: Extend phone-style hamburger & 'Menu' label up to 1100px */



/* v1.482: Consolidated mobile/tablet nav (<=1100px) */
@media (max-width:1100px){
  /* Toggle + label visible */
  header .menu-btn{
    display:inline-flex !important;
    align-items:center;
    gap:.5rem;
  }
  /* Make 'Menu' label visible on mobile/tablet */
  header .menu-btn .sr-only{
    position:static !important;
    width:auto !important;
    height:auto !important;
    clip:auto !important;
    clip-path:none !important;
    overflow:visible !important;
    white-space:nowrap !important;
  }

  /* Phone-style hamburger geometry (length & thickness) */
  header .menu-btn .hamburger,
  header .menu-btn .hamburger::before,
  header .menu-btn .hamburger::after{
    display:block;
    width:24px;
    height:3px;
    background:#0a1f33;
    border-radius:2px;
  }
  header .menu-btn .hamburger{ position:relative; }
  header .menu-btn .hamburger::before,
  header .menu-btn .hamburger::after{
    content:"";
    position:absolute;
    left:0;
  }
  header .menu-btn .hamburger::before{ top:-7px; }
  header .menu-btn .hamburger::after{ top:7px; }

  /* Mobile panel behavior */
  .header .nav{ position: relative; z-index: 1002; }
  .header .nav ul{
    display:none;
    position:absolute; right:4%; top:64px; background:#fff; border-radius:12px; min-width:200px;
    box-shadow:var(--shadow); padding:.5rem; flex-direction:column; z-index:1001;
  }
  #menu-toggle:checked + label + ul{ display:flex; }  /* checkbox method */
  .header .nav.is-open ul{ display:flex; }           /* JS fallback */

  /* Item layout & submenu reset */
  .nav ul a{ display:block; text-align:left; padding:.75rem 1rem; border-radius:12px; }
  .nav ul li{ margin:.1rem 0; }
  .nav ul li.has-sub > ul.sub{
    position: static; display:block; margin:.2rem 0 .4rem .5rem; box-shadow:none; background:transparent; padding:0;
  }
  .nav ul li.has-sub > ul.sub a{ padding:.35rem 0 .35rem .75rem; }
}

/* v1.482: Desktop guard (>=1101px) */
@media (min-width:1101px){
  /* Desktop-only hover/focus for submenus */
  .header .nav > ul li.has-sub:hover > ul.sub,
  .header .nav > ul li.has-sub:focus-within > ul.sub{ display:block; }

  /* Hide the mobile trigger and ensure desktop menu is inline */
  #menu-toggle + label.menu-btn, header .menu-btn{ display:none !important; }
  .header .nav > ul{
    display:flex !important;
    position:static; box-shadow:none; background:transparent;
    padding:0; flex-direction:row;
  }
}


/* v1.483: Desktop submenu behavior (hover/focus) */
@media (min-width:1101px){
  /* Main menu stays horizontal */
  .header .nav > ul{ display:flex !important; flex-direction:row; } }

  /* Submenus hidden by default on desktop */
  .header .nav ul li.has-sub{ position:relative; }
  .header .nav ul li.has-sub > ul.sub{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    background:#fff;
    box-shadow:var(--shadow);
    padding:.5rem;
    border-radius:12px;
    min-width:220px;
    z-index:1001;
    flex-direction:column;
  }
  /* Reveal submenu on hover or keyboard focus */
  .header .nav ul li.has-sub:hover > ul.sub,
  .header .nav ul li.has-sub:focus-within > ul.sub{
    display:block;
  }

  /* Submenu items layout */
  .header .nav ul li.has-sub > ul.sub a{
    display:block;
    white-space:nowrap;
    padding:.5rem .9rem;
    border-radius:10px;
  }
}

/* v1.484: Restrict desktop layout to top-level UL and keep submenus hidden until hover */
@media (min-width:1101px){
  .header .nav > ul{ display:flex !important; position:static; box-shadow:none; background:transparent; padding:0; flex-direction:row; }
  .header .nav > ul li.has-sub > ul.sub{ display:none; }
  .header .nav > ul li.has-sub:hover > ul.sub,
  .header .nav > ul li.has-sub:focus-within > ul.sub{ display:block; }
}


/* v1.485: Mobile accordion submenus (chevron click) */
@media (max-width:1100px){
  /* Hide submenus by default; expand when parent li.has-sub has .open */
  .header .nav ul li.has-sub > ul.sub{ display:none; }
  .header .nav ul li.has-sub.open > ul.sub{ display:block; }

  /* Chevron toggle button */
  .header .nav ul li.has-sub{
    position: relative;
  }
  .header .nav ul li.has-sub .sub-toggle{
    position:absolute;
    right:.75rem;
    top:50%;
    transform:translateY(-50%);
    width:28px;
    height:28px;
    border:0;
    background:transparent;
    cursor:pointer;
  }
  .header .nav ul li.has-sub .sub-toggle::before{
    content:"";
    display:block;
    width:10px; height:10px;
    border-right:2px solid #0a1f33;
    border-bottom:2px solid #0a1f33;
    transform:rotate(45deg);
    margin:0 auto;
  }
  .header .nav ul li.has-sub.open .sub-toggle::before{
    transform:rotate(-135deg);
  }

  /* Give anchors some right padding so the chevron doesn't overlap text */
  .header .nav ul li.has-sub > a{ padding-right:2.25rem; }
}


/* v1.486: Mobile — disable hover-open; chevron click only */
@media (max-width:1100px){
  .header .nav ul li.has-sub:hover > ul.sub{ display:none !important; }
}


/* v1.487: Mobile off-canvas nav drawer with overlay + close X */
@media (max-width:1100px){
  /* Panel defaults */
  .header .nav > ul{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(88vw, 360px);
    background: #0b66a3;
    color: #fff;
    box-shadow: -6px 0 24px rgba(0,0,0,.25);
    padding: 1.25rem 0;
    transform: translateX(100%);
    transition: transform .28s ease;
    border-radius: 0; /* drawer, not popover */
    overflow-y: auto;
    z-index: 1002;
  }
  .header .nav > ul a{ color:#fff; }
  .header .nav > ul li{ margin:0; }
  .header .nav > ul > li > a{
    display:flex; align-items:center; gap:.75rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.18);
  }

  /* Hide any built-in link arrows; we will use our chevron button */
  .header .nav ul li.has-sub > a::after{ display:none !important; }

  /* Drawer open state via checkbox */
  #menu-toggle:checked ~ ul{ transform: translateX(0); }

  /* Hamburger/label becomes a close button when open */
  #menu-toggle + label.menu-btn{
    position: fixed;
    right: calc(min(88vw, 360px) + 16px);
    top: 18px;
    z-index: 1003;
    background: transparent;
  }
  /* Hide the "Menu" text when open */
  #menu-toggle:checked + label.menu-btn .sr-only{ display:none !important; }

  /* Turn hamburger into X when open */
  #menu-toggle:checked + label.menu-btn .hamburger{ background: transparent; }
  #menu-toggle:checked + label.menu-btn .hamburger::before{
    transform: rotate(45deg); top:0;
  }
  #menu-toggle:checked + label.menu-btn .hamburger::after{
    transform: rotate(-45deg); top:0;
  }

  /* Submenu accordion styles inside drawer */
  .header .nav > ul li.has-sub{ position:relative; }
  .header .nav > ul li.has-sub > ul.sub{
    display:none; padding:.25rem 0 .5rem 0; margin:0;
  }
  .header .nav > ul li.has-sub.open > ul.sub{ display:block; }
  .header .nav > ul li.has-sub > ul.sub a{
    display:block; padding:.65rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .header .nav > ul li.has-sub > a{ padding-right: 3rem; }

  /* Chevron toggle btn inside drawer */
  .header .nav > ul li.has-sub .sub-toggle{
    position:absolute; right:.85rem; top:50%; transform:translateY(-50%);
    width:32px; height:32px; border:0; background:transparent; cursor:pointer;
  }
  .header .nav > ul li.has-sub .sub-toggle::before{
    content:""; display:block; width:10px; height:10px;
    border-right:2px solid #fff; border-bottom:2px solid #fff; transform: rotate(-45deg);
    margin: auto;
  }
  .header .nav > ul li.has-sub.open .sub-toggle::before{ transform: rotate(45deg); }

  /* Overlay (uses body.drawer-open + real .nav-overlay element) */
  body.drawer-open 
  

  /* Prevent page scroll when drawer open */
  body.drawer-open{ overflow:hidden; }
}


/* v1.488: refine drawer — correct overlay layering, close button, and default button position */
@media (max-width:1100px){
  /* Ensure default (closed) header button sits normally */
  #menu-toggle + label.menu-btn{
    position: static;
    color: inherit;
  }

  /* Drawer z-order above overlay */
  .header .nav > ul{ z-index: 1002; }

  /* Overlay sits under drawer; blocks page only */
  
  body.drawer-open 

  /* Close/X button when open: fix to top-right of viewport, inside drawer area */
  #menu-toggle:checked + label.menu-btn{
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1003;
  }
  /* Make the X white and hide 'Menu' text */
  #menu-toggle:checked + label.menu-btn .sr-only{ display:none !important; }
  #menu-toggle + label.menu-btn .hamburger,
  #menu-toggle + label.menu-btn .hamburger::before,
  #menu-toggle + label.menu-btn .hamburger::after{
    background: var(--ink);
  }
  #menu-toggle:checked + label.menu-btn .hamburger{ background: transparent; }
  #menu-toggle:checked + label.menu-btn .hamburger::before,
  #menu-toggle:checked + label.menu-btn .hamburger::after{
    background: #fff;
  }
}


/* v1.489: Overlay only covers page (left of drawer), X position/color, consistent across pages */
@media (max-width:1100px){
  /* Shared drawer width variable */
  body{ --drawer-w: min(88vw, 360px); }

  .header .nav > ul{
    width: var(--drawer-w);
    right: 0;
  }

  /* Overlay only on the left side of drawer */
  
  body.drawer-open 

  /* Close button (white X) pinned inside drawer's top-right */
  #menu-toggle:checked + label.menu-btn{
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1003;
  }
  #menu-toggle:checked + label.menu-btn .hamburger{ background: transparent; }
  #menu-toggle:checked + label.menu-btn .hamburger::before,
  #menu-toggle:checked + label.menu-btn .hamburger::after{
    background: #fff !important;
  }
}


/* v1.490: Mobile drawer refinements (no dropdowns, flush dividers, mobile-only link) */
@media (max-width:1100px){
  /* Flush dividers (no rounded corners on anchors) */
  .header .nav > ul{ border-radius:0; }
  .header .nav > ul > li > a{ border-radius:0 !important; }

  /* Remove dropdowns entirely on mobile */
  .header .nav > ul li.has-sub > ul.sub{ display:none !important; }

  /* Hide any chevrons/pseudo arrows */
  .header .nav > ul li.has-sub > a::after,
  .header .nav > ul li.has-sub .sub-toggle{ display:none !important; }

  /* Mobile-only item visibility */
  .mobile-only{ display:block; }
}

/* Desktop: never show the mobile-only item */
@media (min-width:1101px){
  .mobile-only{ display:none !important; }
}

/* Strengthen z-index across pages so drawer is always above overlay */
@media (max-width:1100px){
  .header .nav > ul{ z-index: 1010; }
}


/* v1.491: canonical overlay rules (mobile only), consistent across pages */
@media (max-width:1100px){
  body{ --drawer-w: min(88vw, 360px); }

  /* Drawer stays above overlay */
  .header .nav > ul{ z-index: 1010; }

  /* Overlay defaults hidden; shows only when drawer-open */
  .nav-overlay{
    position: fixed;
    top: 0; left: 0; bottom: 0; right: var(--drawer-w);
    background: rgba(10,31,51,.45);
    z-index: 1000;
    display: none;
    pointer-events: none;
  }
  body.drawer-open .nav-overlay{
    display: block;
    pointer-events: auto;
  }

  /* Menu button placement: normal when closed; becomes close/X when open */
  #menu-toggle + label.menu-btn{ position: static; }
  #menu-toggle:checked + label.menu-btn{
    position: fixed; right: 16px; top: 16px; z-index: 1011;
  }
  #menu-toggle:checked + label.menu-btn .hamburger{ background: transparent; }
  #menu-toggle:checked + label.menu-btn .hamburger::before,
  #menu-toggle:checked + label.menu-btn .hamburger::after{ background: #fff; }
  #menu-toggle:checked + label.menu-btn .sr-only{ display:none !important; }
}


/* v1.492: enforce white X and transform when open */
@media (max-width:1100px){
  #menu-toggle:checked + label.menu-btn .hamburger{ background: transparent !important; }
  #menu-toggle:checked + label.menu-btn .hamburger::before{
    transform: rotate(45deg) !important; top:0 !important; background:#fff !important;
  }
  #menu-toggle:checked + label.menu-btn .hamburger::after{
    transform: rotate(-45deg) !important; top:0 !important; background:#fff !important;
  }
}


/* v1.494: Canonical mobile drawer using body.drawer-open for all behaviors */
@media (max-width:1100px){
  body{ --drawer-w: min(88vw, 360px); }

  /* Drawer panel */
  .header .nav > ul{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: var(--drawer-w);
    background: #0b66a3;
    color: #fff;
    transform: translateX(100%);
    transition: transform .28s ease;
    overflow-y: auto;
    z-index: 1010;
    box-shadow: -6px 0 24px rgba(0,0,0,.25);
    padding: 1.25rem 0;
  }
  .header .nav > ul a{ color:#fff; }
  .header .nav > ul > li > a{ display:flex; align-items:center; gap:.75rem; padding:1.1rem 1.25rem; border-bottom:1px solid rgba(255,255,255,.18); border-radius:0 !important; }

  /* Open state driven by body class (works on all pages) */
  body.drawer-open .header .nav > ul{ transform: translateX(0); }

  /* Overlay only on left side of drawer */
  .nav-overlay{ display:none; }
  body.drawer-open .nav-overlay{
    position: fixed; top:0; left:0; bottom:0; right: var(--drawer-w);
    background: rgba(10,31,51,.45);
    z-index: 1000;
    display:block;
  }

  /* Close/X button */
  #menu-toggle ~ label.menu-btn{ position: static; }
  body.drawer-open label.menu-btn{
    position: fixed; right: 16px; top: 16px; z-index: 1011;
  }
  body.drawer-open label.menu-btn .sr-only{ display:none !important; }
  body.drawer-open label.menu-btn .hamburger{ background: transparent !important; }
  body.drawer-open label.menu-btn .hamburger::before{ transform: rotate(45deg); top:0; background:#fff !important; }
  body.drawer-open label.menu-btn .hamburger::after{ transform: rotate(-45deg); top:0; background:#fff !important; }

  /* Remove mobile dropdowns & chevrons */
  .header .nav > ul li.has-sub > ul.sub{ display:none !important; }
  .header .nav > ul li.has-sub > a::after, .header .nav > ul li.has-sub .sub-toggle{ display:none !important; }

  /* Mobile-only item helper */
  .mobile-only{ display:block; }
}
@media (min-width:1101px){
  .mobile-only{ display:none !important; }
}

/* v1.498: Robust white X drawn on the label itself (works even if inner .hamburger variations conflict) */
@media (max-width:1100px){
  body.drawer-open label.menu-btn{
    position: fixed !important;
    right: 16px !important;
    top: 16px !important;
    z-index: 1012 !important;
  }
  /* Hide inner bar graphics and draw the X on the label */
  body.drawer-open label.menu-btn .hamburger{
    background: transparent !important;
  }
  body.drawer-open label.menu-btn .hamburger::before,
  body.drawer-open label.menu-btn .hamburger::after{
    background: transparent !important;
  }
  body.drawer-open label.menu-btn::before,
  body.drawer-open label.menu-btn::after{
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 22px !important;
    height: 2px !important;
    background: #fff !important;
    transform-origin: center !important;
  }
  body.drawer-open label.menu-btn::before{ transform: translate(-50%, -50%) rotate(45deg) !important; }
  body.drawer-open label.menu-btn::after{  transform: translate(-50%, -50%) rotate(-45deg) !important; }
}
