/* 4. Footer 5-column grid — theme frow/fcol module (3+2+2+2+3, 1.5rem gutter),
   re-declared here because the page strips the theme CSS. */
#page-body section .frow {
  display: flex;
  flex-wrap: wrap;
  margin-left: -.75rem;
  margin-right: -.75rem;
  row-gap: 2.5rem;
}
#page-body section .frow > div { padding-left: .75rem; padding-right: .75rem; }
#page-body section .fcol-12 { width: 100%; }
#page-body section .fcol-6  { width: 50%; }
#page-body section .order-1 { order: 1; }
#page-body section .order-2 { order: 2; }
#page-body section .order-3 { order: 3; }
#page-body section .order-4 { order: 4; }
#page-body section .order-5 { order: 5; }
@media (min-width: 1024px) {
  #page-body section .frow { row-gap: 0; }
  #page-body section .fcol-lg-3 { width: 25%; }
  #page-body section .fcol-lg-2 { width: 16.6667%; }
  #page-body section .order-lg-1 { order: 1; }
  #page-body section .order-lg-2 { order: 2; }
  #page-body section .order-lg-3 { order: 3; }
  #page-body section .order-lg-4 { order: 4; }
  #page-body section .order-lg-5 { order: 5; }
}

/* 5. Footer widget content — dynamic_sidebar() markup carries no Tailwind classes.
   Scoped to .footer-grid so the strips below are untouched. */
#page-body section .footer-grid .widget { margin-bottom: 1.5rem; }
#page-body section .footer-grid .widget:last-child { margin-bottom: 0; }
#page-body section .footer-grid .widget-title,
#page-body section .footer-grid .headtitle,
#page-body section .footer-grid h2,
#page-body section .footer-grid h3,
#page-body section .footer-grid h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.25rem;
  text-transform: none;
}
#page-body section .footer-grid ul { list-style: none; margin: 0; padding: 0; }
#page-body section .footer-grid li { margin: 0 0 .625rem; }
#page-body section .footer-grid li:last-child { margin-bottom: 0; }
#page-body section .footer-grid a {
  font-size: .875rem;
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  transition: color .15s ease;
}
#page-body section .footer-grid a:hover { color: #fff; }
#page-body section .footer-grid p,
#page-body section .footer-grid address,
#page-body section .footer-grid .textwidget {
  font-size: .875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .9);
  font-style: normal;
}
#page-body section .footer-grid img { max-width: 100%; height: auto; }

/* 6. Footer accreditation strip — CQC / Bupa badges. */
#page-body section .trust-strip{border-top:1px solid hsl(var(--ukat-line));background:hsl(var(--ukat-sand) / .4)}
#page-body section .trust-strip__inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding-top:1.5rem;padding-bottom:1.5rem}
#page-body section .trust-badges{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
#page-body section .trust-badge{display:inline-flex;align-items:center;gap:.375rem;border-radius:9999px;padding:.375rem .75rem;font-size:.75rem;font-weight:500;background:hsl(var(--ukat-mist));color:hsl(var(--ukat-ink));box-shadow:0 0 0 1px hsl(var(--ukat-line));-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
@media (min-width: 640px) {
#page-body section .trust-badge{font-size:.875rem}
}
#page-body section .trust-link{font-size:.75rem;color:hsl(var(--ukat-teal))}
#page-body section .trust-link:hover{text-decoration:underline}
#page-body section .footerbottom{background:hsl(var(--ukat-sand) / .4);border-top:1px solid hsl(var(--ukat-line));color:hsl(var(--ukat-ink));padding-top:1.5rem;padding-bottom:1.5rem}
#page-body section .footerbottom-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem}
#page-body section .footerbottom .footer-legal{margin:1rem 0 0;font-size:.75rem;line-height:1.6;color:hsl(var(--ukat-ink) / .6)}


/* 9. Footer + mobile action bar — semantic classes for footer-ukat.php.
   frow/fcol is repeated here: section 4 scopes it to "#page-body section". */


footer .headtitle{font-size: 1rem !important;line-height: 1.5rem !important;}
footer ul li a{font-size: .875rem !important;}
footer ul li{margin-top:12px; width:100%;line-height: 1.05rem !important;}
.socialnew ul{clear:both; max-width: 200px;}
.socialnew ul li{width:30%; margin-bottom:10px;}
footer .priority{font-size: .875rem !important;}
footer address{max-width: 180px;}

/* Column grid (footer-scoped copy of the frow/fcol module) */
.ukat-footer .frow { display: flex; flex-wrap: wrap; margin-left: -.75rem; margin-right: -.75rem; row-gap: 2.5rem; }
.ukat-footer .frow > div { padding-left: .75rem; padding-right: .75rem; }
.ukat-footer .fcol-12 { width: 100%; }
.ukat-footer .fcol-6  { width: 50%; }
.ukat-footer .order-1 { order: 1; }
.ukat-footer .order-2 { order: 2; }
.ukat-footer .order-3 { order: 3; }
.ukat-footer .order-4 { order: 4; }
.ukat-footer .order-5 { order: 5; }
@media (min-width: 1024px) {
  .ukat-footer .frow { row-gap: 0; }
  .ukat-footer .fcol-lg-3 { width: 25%; }
  .ukat-footer .fcol-lg-2 { width: 16.6667%; }
  .ukat-footer .order-lg-1 { order: 1; }
  .ukat-footer .order-lg-2 { order: 2; }
  .ukat-footer .order-lg-3 { order: 3; }
  .ukat-footer .order-lg-4 { order: 4; }
  .ukat-footer .order-lg-5 { order: 5; }
}

/* Wrapper + gradient panel */
.ukat-footer { border-top: 1px solid hsl(var(--ukat-line)); }
.ukat-footer__panel { position: relative; overflow: hidden; color: #fff; }
.ukat-footer__grad {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom right, hsl(var(--ukat-teal-700)), hsl(var(--ukat-teal)), hsl(var(--ukat-coral)));
}
.ukat-footer__blob { position: absolute; border-radius: 9999px; filter: blur(64px); }
.ukat-footer__blob--tl { top: -8rem; left: -6rem; width: 24rem; height: 24rem; background: rgb(255 255 255 / .10); }
.ukat-footer__blob--br { bottom: -10rem; right: -6rem; width: 28rem; height: 28rem; background: hsl(var(--ukat-coral) / .40); }
.ukat-footer__body { position: relative; padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 1024px) { .ukat-footer__body { padding-top: 4rem; padding-bottom: 4rem; } }

/* Column 1 — brand / address / CQC / social */
.ukat-footer__logo-img { width: 6rem; height: 6rem; border-radius: .75rem; }
.ukat-footer__logo-img--sm { width: 5rem; height: 5rem; }
.ukat-footer__logo--lg { display: none; }
.ukat-footer__logo--sm { display: inline-block; flex-shrink: 0; }
@media (min-width: 1024px) {
  .ukat-footer__logo--lg { display: inline-block; }
  .ukat-footer__logo--sm { display: none; }
}
.ukat-footer__brand { display: flex; align-items: flex-start; gap: 1rem; }
@media (min-width: 1024px) { .ukat-footer__brand { display: block; } }
.ukat-footer__address { font-size: .875rem; line-height: 1.625; font-style: normal; color: rgb(255 255 255 / .90); }
@media (min-width: 1024px) { .ukat-footer__address { margin-top: 1.25rem; } }
.ukat-footer__cqc { margin-top: 1.5rem; display: inline-block; border-radius: .375rem; background: #fff; padding: .75rem; box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05); }
.ukat-footer__cqc-img { height: 4rem; width: auto; }
.ukat-footer__social { margin-top: 1.5rem; }
.ukat-footer__social-title { margin: 0; font-size: .875rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .025em; }
.ukat-footer__social-list { margin-top: .75rem; padding: 0; list-style: none; }
.ukat-footer__social-link {
  display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center;
  border-radius: 9999px; background: rgb(255 255 255 / .15); border: 1px solid rgb(255 255 255 / .25); color: #fff;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ukat-footer__social-link:hover { background: #fff; color: hsl(var(--ukat-teal)); }

/* Live site's prebuilt social shortcode: <ul class="circular"><li><a><i class="fa …"> */
#page-body footer ul.circular,
.ukat-footer ul.circular {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  clear: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
#page-body footer ul.circular > li,
.ukat-footer ul.circular > li {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
#page-body footer ul.circular > li > a,
.ukat-footer ul.circular > li > a {
  display: inline-flex !important;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / .20);
  border-radius: .5rem;
  background: rgb(255 255 255 / .10);
  color: #fff !important;
  text-decoration: none !important;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
#page-body footer ul.circular > li > a:hover,
.ukat-footer ul.circular > li > a:hover {
  background: #fff;
  color: hsl(var(--ukat-teal)) !important;
  transform: translateY(-1px);
}
#page-body footer ul.circular i,
.ukat-footer ul.circular i {
  display: block;
  width: auto;
  height: auto;
  font-size: 1rem;
  line-height: 1;
}
#page-body footer ul.circular .none,
.ukat-footer ul.circular .none { display: none !important; }
@media (max-width: 767px) {
  #page-body footer ul.circular,
  .ukat-footer ul.circular { justify-content: center; margin-top: 1rem !important; }
}

/* First-column legacy shortcode: address, CQC badge, FOLLOW US icon stack. */
#page-body footer .addcont img[src*="footer-logo-icon"],
.ukat-footer .addcont img[src*="footer-logo-icon"] { display: none !important; }

#page-body footer .addcont img[src*="cqc"],.ukat-footer .addcont img[src*="cqc"]{display:block!important;width:13.5rem!important;max-width:100%!important;height:auto!important;margin-top:1.5rem!important;border-radius:.375rem;background:#fff}
#page-body footer .addcont ul.circular,.ukat-footer .addcont ul.circular{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:.75rem;width:100%!important;margin-top:1.5rem!important}
#page-body footer .addcont ul.circular::before,.ukat-footer .addcont ul.circular::before{content:"FOLLOW US";flex:0 0 100%;margin-bottom:.25rem;color:#fff;font-size:.875rem;line-height:1.25rem;font-weight:700;letter-spacing:.025em}
#page-body footer .addcont ul.circular > li,.ukat-footer .addcont ul.circular > li{width:60px!important;height:2.5rem;border:none}
#page-body footer .addcont ul.circular > li > a,.ukat-footer .addcont ul.circular > li > a{width:2.5rem;height:2.5rem;border-radius:9999px;border-color:#ffffff40;background:#ffffff26}
.ukat-footer__legal ul.circular{display:none!important}
.ukat-footer__link,footer a{font-size:.875rem;color:#ffffffd9!important}
.ukat-footer__link:hover,footer a:hover{color:#fff!important}
.ukat-footer__priority{align-self:flex-start;border-radius:1rem;padding:1.25rem;background:#ffffff1a;border:1px solid #fff3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.ukat-footer__priority a{text-decoration:underline}
.ukat-footer__accred{border-top:1px solid hsl(var(--ukat-line));background:hsl(var(--ukat-sand) / .40)}
.ukat-footer__accred-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding-top:1.5rem;padding-bottom:1.5rem}
.ukat-footer__badges{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.ukat-footer__badge{display:inline-flex;align-items:center;gap:.375rem;border-radius:9999px;padding:.375rem .75rem;font-size:.75rem;font-weight:500;background:hsl(var(--ukat-mist));color:hsl(var(--ukat-ink));box-shadow:0 0 0 1px hsl(var(--ukat-line));-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
@media (min-width: 640px) {
.ukat-footer__badge{font-size:.875rem}
}
.ukat-footer__accred-link{font-size:.75rem;color:hsl(var(--ukat-teal))}
.ukat-footer__accred-link:hover{text-decoration:underline}


/* Legal strip */
.ukat-footer__legal { border-top: 1px solid hsl(var(--ukat-line)); }
.ukat-footer__legal-inner { padding-top: 1.5rem; padding-bottom: 1.5rem; font-size: .75rem; color: hsl(var(--ukat-ink) / .60); }

/* Mobile action bar */
.ukat-mobilebar { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; border-top: 1px solid hsl(var(--ukat-line)); box-shadow: 0 -4px 16px rgb(0 0 0 / .06); }
@media (min-width: 1024px) { .ukat-mobilebar { display: none; } }
.ukat-mobilebar__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ukat-mobilebar__btn { display: inline-flex; height: 3.5rem; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; }
.ukat-mobilebar__btn--call { background: #fff; color: hsl(var(--ukat-coral)); border-right: 1px solid hsl(var(--ukat-line)); }
.ukat-mobilebar__btn--cb { background: hsl(var(--ukat-coral)); color: #fff; }

/* 10. Desktop header + mega-nav — ported from lhc-home.css, palette → UKAT,
   scoped to the header so the shared token names can't leak. */
.announce, .header, .qnb {
  --ink-deep: hsl(var(--ukat-teal-700));
  --gold: hsl(var(--ukat-coral));
  --background: #fff;
  --border: hsl(var(--ukat-line));
  --primary: hsl(var(--ukat-teal));
  --secondary: hsl(var(--ukat-teal));
  --surface-warm: hsl(var(--ukat-mist));
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);
  --font-display: "Playfair Display", serif;
  --accent: hsl(var(--ukat-coral));
  --muted: hsl(var(--ukat-mist));
  --muted-foreground: hsl(var(--ukat-ink) / .6);
  --foreground: hsl(var(--ukat-ink));
}

/* Sticky needs a BFC on the scroll ancestor — see lhc-home.css note.
   `clip` (not `hidden`) is deliberate: the theme's own body{overflow-x:hidden}
   would make the body a scroll container and kill the sticky header, while
   clip still contains the sections' horizontal overhang. */
#page-body { overflow-x: clip; display: flow-root; }

/* Announcement / top bar */
.announce { background: var(--ink-deep); color: #fff; font-size: 0.8125rem; }
.announce .container { display: flex; justify-content: flex-end; gap: 1.25rem; padding-block: 0.5rem; }
.announce a { font-weight: 500; opacity: 0.95; }
.announce a:hover { text-decoration: underline; }

/* Sticky header shell */
.header { position: sticky; top: 0; z-index: 40; background: var(--background);  transition: background .2s, border-color .2s, box-shadow .2s; }
.header.scrolled { background: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

/* Desktop row: logo | centred nav | CTA */
.desktop .header-inner { display: flex; align-items: center; gap: 1rem; height: 7rem; transition: height .25s ease; max-width: 1480px; width: 100%; margin-inline: auto; padding-inline: 1.5rem; }
.announce .container { max-width: 1480px; width: 100%; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 1024px) { .announce .container { padding-inline: 1.5rem; } }
.header.scrolled .desktop .header-inner { }
.desktop .logo { display: inline-flex; align-items: center; width: auto; max-width: none; overflow: visible; flex: none; }
.desktop .logo img {width: auto; max-width: none; max-height: none; object-fit: contain; background: none; border: 0; box-shadow: none; transition: height .25s ease; }
.desktop .mega-nav { display: flex; gap: 0.125rem; }
.desktop .header-row .mega-nav { margin-inline: auto; }
.desktop .header-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.75rem; padding: 0 1.25rem; border-radius: 9999px; white-space: nowrap;
  font-size: .875rem; font-weight: 600; background: var(--gold); color: #fff;
  box-shadow: var(--shadow-sm); transition: background .2s;
}
.desktop .header-cta:hover { background: hsl(var(--ukat-coral-600)); color: #fff; }

/* Nav items — full-width panel anchors to the sticky .header, so item is static */
.mega-nav__item { position: static; }
.mega-nav__link { display: inline-flex; align-items: center; gap: .25rem; padding: 0.5rem 0.625rem; font-size: 0.875rem; font-weight: 500; color: hsl(var(--ukat-ink) / .8); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; white-space: nowrap; }
.mega-nav__item:hover .mega-nav__link,
.mega-nav__item.open .mega-nav__link { color: var(--primary); border-bottom-color: var(--gold); }
.mega-nav__link .icon-sm { width: 0.875rem; height: 0.875rem; flex: none; opacity: .6; }

/* Mega panels (desktop) */
.mega-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: var(--background); border-top: 3px solid var(--gold); box-shadow: 0 12px 36px -12px rgba(0,55,92,0.35); display: none; animation: ukat-panel-in .18s ease-out; }
.header .mega-panel.open { display: block; }
@keyframes ukat-panel-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.mega-panel__inner { max-width: 80rem; margin: 0 auto; display: grid; grid-template-columns: 220px 1fr 280px; max-height: 520px; overflow: hidden; }
.mega-panel.cols .mega-panel__inner { grid-template-columns: 1fr 1fr 1fr 280px; }
.mega-panel aside.tabs { background: var(--ink-deep); padding: 1.5rem 1rem; overflow-y: auto; }
.mega-panel aside.tabs .label { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.4); padding-inline: 0.5rem; margin-bottom: 0.75rem; }
.mega-panel aside.tabs button,
.mega-panel aside.tabs a { display: flex; width: 100%; padding: 0.5rem 0.75rem; border-radius: 0.375rem; color: rgba(255,255,255,0.7); text-align: left; align-items: center; justify-content: space-between; font-size: 0.875rem; transition: background .2s, color .2s; }
.mega-panel aside.tabs button:hover,
.mega-panel aside.tabs a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.mega-panel aside.tabs button.active,
.mega-panel aside.tabs a.active { background: rgba(255,255,255,0.1); color: #fff; }
.mega-panel .content { padding: 1.5rem; overflow-y: auto; max-height: 520px; }
#page-body .mega-panel .group-heading { font-size: 0.625rem !important; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase !important; color: var(--secondary) !important; margin-bottom: 0.75rem; }
.mega-panel .content .col-list { display: grid; gap: 0.4rem; }
.mega-panel .content .col-list a { display: flex; justify-content: space-between; padding: 0.375rem 0; font-size: 0.875rem; color: hsl(var(--ukat-ink) / .85); border-top: 1px solid hsl(var(--ukat-line) / .6); transition: color .2s; }
.mega-panel .content .col-list a:first-child { border-top: 0; }
.mega-panel .content .col-list a:hover { color: var(--primary); }
.mega-panel .content .col-list:has(> a:nth-child(5)),
.mega-panel .content .col-list.grid-2 { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
.mega-panel .content .col-list:has(> a:nth-child(5)) a:nth-child(2),
.mega-panel .content .col-list.grid-2 a:nth-child(2) { border-top: 0; }
.mega-panel .cta-col { background: var(--surface-warm); border-left: 1px solid var(--border); padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.mega-panel .cta-card { background: var(--ink-deep); color: #fff; padding: 1rem; border-radius: 0.75rem; }
.mega-panel .cta-card .eyebrow-w { color: rgba(255,255,255,0.5); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.25rem; }
.mega-panel .cta-card .title-w { font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.75rem; }
.mega-panel .mm-callback { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.875rem; background: #fff; border: 1px solid var(--border); border-radius: 0.75rem; }
.mega-panel .mm-callback:hover { border-color: hsl(var(--ukat-teal) / .4); }
.mega-panel .mm-callback .ico { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; background: var(--accent); color: #fff; display: grid; place-items: center; }
.mega-panel .mm-callback .txt { display: grid; gap: 0.1rem; }
.mega-panel .mm-callback .sm { font-size: 0.75rem; color: var(--muted-foreground); }
.mega-panel .mm-callback .lg { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 600; font-size: 0.9375rem; color: var(--primary); }
.mega-panel .mm-download { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem; font-weight: 600; font-size: 0.875rem; color: var(--primary); }
.mega-panel .mm-download svg { color: var(--primary); flex: none; }
.mega-panel .mm-download:hover { text-decoration: underline; text-underline-offset: 3px; }
.mega-panel .mm-note { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.75rem 0.875rem; background: #fff; border: 1px solid var(--border); border-radius: 0.75rem; font-size: 0.8125rem; line-height: 1.4; color: var(--muted-foreground); }
.mega-panel .mm-note svg { flex: none; margin-top: 0.1rem; color: var(--secondary); }
.mega-panel .col-block { padding: 1.5rem 1.25rem; border-right: 1px solid var(--border); overflow-y: auto; max-height: 520px; }
.mega-panel .col-block .col-list { display: grid; gap: 0.4rem; }
.mega-panel .col-block .col-list a { display: flex; justify-content: space-between; align-items: center; padding: 0.375rem 0; font-size: 0.875rem; color: hsl(var(--ukat-ink) / .85); border-top: 1px solid hsl(var(--ukat-line) / .6); transition: color .2s; }
.mega-panel .col-block .col-list a:first-child { border-top: 0; }
.mega-panel .col-block .col-list a:hover { color: var(--primary); }

/* 11. UKAT menu — hover-reveal panels. Items stay non-positioned so each panel's
   absolute left-0/right-0/top-full resolves to the sticky .header (full width). */
/* Hover box reaches down to the panel (per item); negative margin keeps the row height. */
.ukat-mi { position: static; padding-bottom: 2rem; margin-bottom: -2rem; }
.ukat-mp { display: none; z-index: 40; }
.ukat-mi:hover .ukat-mp { display: block; }

/* Theme minify.css floats every `ul li`; the section-scoped reset misses the header. */
#page-body .mega-nav ul,
#page-body .mega-nav ol,
#page-body .mega-nav li,
#page-body .mega-nav p { float: none !important; clear: none !important; }

/* Panel interiors are grid/flex — kill float everywhere, the markup is DB-authored. */
#page-body .ukat-mp *,
#page-body .mega-panel * { float: none !important; clear: none !important; }

/* No ::before hover bridge: being full-width it covered the whole nav row and
   swallowed hover for every other item. The .ukat-mi padding bridges the gap. */

/* 12. Header responsive — desktop nav from 1280px up, logo scales, nav compacted. */
/* Show the desktop bar only where the full menu fits; mobile menu below. 
@media (max-width: 997.99px) {
  #page-body .desktop { display: none !important; }
  #page-body .mobile  { display: block !important; }
}
@media (min-width: 958px) {
  #page-body .desktop { display: block !important; }
  #page-body .mobile  { display: none !important; }
}*/

/* Drop wpautop's breaks between layout wrappers only; prose and form breaks stay. */
#page-body main > .section > .container > br { display: none !important; }

/* Compact nav so 8 items + phone sit alongside the logo. */
.desktop .ukat-staticnav { gap: 0; }
.desktop .ukat-staticnav .ukat-mi > a { padding-left: .45rem; padding-right: .45rem; font-size: .82rem; }

/* Bar height + logo scale up with the viewport. */
.desktop .header-inner { height: 6rem; padding-inline: 1rem; }

/* 13. Menu panels — de-Tailwindified component classes (.ukat-mi__*, .ukat-mp__*). */
/* Panel shell (reveal/z-index is in section 11; here: position + surface). */
.ukat-mp {
  position: absolute; left: 0; right: 0; top: 100%;
  background: hsl(var(--ukat-mist));
  border-top: 1px solid hsl(var(--ukat-line));
  border-bottom: 1px solid hsl(var(--ukat-line));
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
}
.ukat-mp__inner { margin-inline: auto; width: 100%; max-width: 1480px; padding: 2rem 1.5rem; }
.ukat-mp__grid  { display: grid; gap: 1.5rem 2rem; }
.ukat-mp__split { display: grid; gap: 1.5rem; }
.ukat-mp__cardgrid { display: grid; gap: .625rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
.ukat-mp__col { grid-column: span 1 / span 1; }
@media (min-width: 1024px) {
  .ukat-mp__grid  { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .ukat-mp__split { grid-template-columns: 320px minmax(0,1fr); }
  .ukat-mp__cardgrid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  /* Cardgrid takes the other 3 of the 4 columns (≈ the 320px + 1fr split). */
  #page-body .ukat-mp__grid > .ukat-mp__cardgrid { grid-column: span 3 / span 3; }
  .ukat-mp__col--2 { grid-column: span 2 / span 2; }
}

/* Featured teal card */
.ukat-mp__featured{display:flex;flex-direction:column;justify-content:space-between;border-radius:1rem;padding:1.25rem;color:#fff;background:linear-gradient(to bottom right,hsl(var(--ukat-teal)),hsl(var(--ukat-teal-700)));box-shadow:0 1px 2px 0 #0000000d;transition:box-shadow .2s}
.ukat-mp__featured:hover{box-shadow:0 4px 6px -1px #0000001a 0 2px 4px -2px #0000001a}
.ukat-mp__feat-eyebrow{font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;font-weight:600;color:#fffc}
.ukat-mp__feat-title{margin-top:.5rem;font-size:1.125rem!important;font-weight:700!important;line-height:1.25!important;color:#FFF}
.ukat-mp__feat-desc{margin-top:.5rem;font-size:.875rem;line-height:1.625;color:#ffffffd9}
.ukat-mp__feat-cta{margin-top:1rem;display:inline-flex;align-items:center;gap:.375rem;font-size:.875rem;font-weight:600}
.ukat-mp__feat-arrow{width:.875rem;height:.875rem;flex:none}


/* Group heading + link list */
.ukat-mp__group--mt { margin-top: 1.25rem; }
.ukat-mp__group-title,
.ukat-mp__group-link { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; color: hsl(var(--ukat-teal)); margin-bottom: .5rem; }
.ukat-mp__group-link { display: block; }
.ukat-mp__group-link:hover { color: hsl(var(--ukat-teal-700)); }
.ukat-mp__list > * + * { margin-top: .125rem; }

/* Plain link + slide-in arrow */
.ukat-mp__link { display: inline-flex; align-items: center; gap: .375rem; padding-top: .375rem; padding-bottom: .375rem; font-size: .875rem; color: hsl(var(--ukat-ink)); transition: color .15s; }
.ukat-mp__link:hover { color: hsl(var(--ukat-teal)); }
.ukat-mp__link-arrow { width: .75rem; height: .75rem; flex: none; opacity: 0; transform: translateX(-.25rem); transition: opacity .2s, transform .2s; }
.ukat-mp__link:hover .ukat-mp__link-arrow { opacity: .7; transform: translateX(0); }

/* Card link (locations grid) */
.ukat-mp__card { display: flex; align-items: flex-start; gap: .625rem; border-radius: .75rem; background: #fff; border: 1px solid hsl(var(--ukat-line)); padding: .625rem .75rem; transition: border-color .2s, box-shadow .2s; }
.ukat-mp__card:hover { border-color: hsl(var(--ukat-teal)); box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05); }
.ukat-mp__card-icon { width: 1rem; height: 1rem; flex: none; color: hsl(var(--ukat-coral)); margin-top: .125rem; }
.ukat-mp__card-text { min-width: 0; }
.ukat-mp__card-title { font-size: .875rem; font-weight: 600; color: hsl(var(--ukat-ink)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ukat-mp__card-sub { font-size: .75rem; color: hsl(var(--ukat-ink) / .6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Nav trigger link + chevron */
.ukat-mi__link { display: inline-flex; align-items: center; gap: .25rem; padding: .5rem .625rem; border-radius: .375rem; font-size: .9rem; font-weight: 500; white-space: nowrap; color: hsl(var(--ukat-ink) / .8); transition: color .15s, background-color .15s; }
.ukat-mi__link:hover { color: hsl(var(--ukat-teal)); background: hsl(var(--ukat-teal) / .05); }
.ukat-mi__chevron { width: .875rem; height: .875rem; opacity: .6; transition: transform .2s; }

#page-body .ukat-topbar-fallback { display:flex;min-height:2.25rem;align-items:center;justify-content:flex-end;gap:1.25rem }
#page-body .ukat-topbar-fallback a { color:inherit;font-size:.75rem;font-weight:500;text-decoration:none;opacity:.88 }
#page-body .ukat-topbar-fallback a:hover { opacity:1;text-decoration:underline;text-underline-offset:3px }

body.page-template-template-ukat-home :where(
main,header,footer,.ukat-mobilebar,.announce
),body.page-template-template-ukat-home :where(
main,header,footer,.ukat-mobilebar,.announce
) :where(a,button,input,select,textarea,label,p,span,li,dt,dd,h1,h2,h3,h4,h5,h6){font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;letter-spacing:normal!important}
body.page-template-template-ukat-home main h1,body.page-template-template-ukat-home main [style*="Playfair Display"],body.page-template-template-ukat-home main .font-display{font-family:"Playfair Display",Georgia,serif!important}
body.page-template-template-ukat-home .font-semibold{font-weight:600!important}
body.page-template-template-ukat-home .font-bold{font-weight:700!important}
body.page-template-template-ukat-home .ukat-mi__link{font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;font-size:14.4px!important;line-height:21.6px!important;font-weight:500!important;letter-spacing:normal!important}
body.page-template-template-ukat-home .header-cta{font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;font-size:14px!important;line-height:20px!important;font-weight:600!important;letter-spacing:normal!important}
body.page-template-template-ukat-home .header{transition:background .45s ease,border-color .45s ease,box-shadow .45s ease,color .45s ease!important}
body.page-template-template-ukat-home .header:not(.scrolled){background:#606f7e3d!important;-webkit-backdrop-filter:blur(4px)!important;backdrop-filter:blur(4px)!important;}
body.page-template-template-ukat-home .header:not(.scrolled) .announce{background:#004370a1!important;color:#fff!important}
@media (min-width: 958px) {
body.page-template-template-ukat-home .header{margin-bottom:-5rem!important}
body.page-template-template-ukat-home .header:has(.announce){margin-bottom:calc(-5rem - 36px)!important}
body.page-template-template-ukat-home .header:not(.scrolled),body.page-template-template-ukat-home .header:not(.scrolled) .ukat-mi__link{color:#fff!important}
body.page-template-template-ukat-home .header .desktop .logo img{max-width:210px!important}
/* Swap the real artwork instead of filtering: white over the transparent header,
   the colour mark once .scrolled paints the solid background. */
body.page-template-template-ukat-home .header:not(.scrolled) .desktop .logo-img--dark{display:none!important}
body.page-template-template-ukat-home .header.scrolled .desktop .logo-img--light{display:none!important}


body.page-template-template-ukat-home .header:not(.scrolled) .ukat-mi__link{border-radius:.5rem!important;text-shadow:0 1px 8px rgba(0,0,0,.28)!important}
body.page-template-template-ukat-home .header:not(.scrolled) .ukat-mi__link:hover{background:rgba(255,255,255,.12)!important;color:#fff!important}
}
@media (min-width: 1440px) {
body.page-template-template-ukat-home .header{margin-bottom:-6rem!important}
body.page-template-template-ukat-home .header:has(.announce){margin-bottom:calc(-6rem - 36px)!important}
}
@media (min-width: 1600px) {
body.page-template-template-ukat-home .header{margin-bottom:-7rem!important}
body.page-template-template-ukat-home .header:has(.announce){margin-bottom:calc(-7rem - 36px)!important}
}

/* Menu glyphs come from CSS so the DB-authored menu_content stays plain markup.
   They are masks, not images: the shape is the mask and the colour is a normal
   background-color, so the pin follows --ukat-coral and the arrows follow the
   text colour. An inline .ukat-mp__card-icon / __feat-arrow still wins if present. */
#page-body .ukat-mp__card::before {
  content: ""; width: 1rem; height: 1rem; flex: none; margin-top: .125rem;
  background-color: hsl(var(--ukat-coral));
  -webkit-mask: url('data:image/svg+xml;utf8,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M20%2010c0%204.993-5.539%2010.193-7.399%2011.799a1%201%200%200%201-1.202%200C9.539%2020.193%204%2014.993%204%2010a8%208%200%200%201%2016%200%22/%3E%3Ccircle%20cx=%2212%22%20cy=%2210%22%20r=%223%22/%3E%3C/svg%3E') center / contain no-repeat;
          mask: url('data:image/svg+xml;utf8,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M20%2010c0%204.993-5.539%2010.193-7.399%2011.799a1%201%200%200%201-1.202%200C9.539%2020.193%204%2014.993%204%2010a8%208%200%200%201%2016%200%22/%3E%3Ccircle%20cx=%2212%22%20cy=%2210%22%20r=%223%22/%3E%3C/svg%3E') center / contain no-repeat;
}
#page-body .ukat-mp__card:has(.ukat-mp__card-icon)::before { display: none; }

#page-body .ukat-mp__feat-cta:has(.ukat-mp__feat-arrow)::after { display: none; }

/* Link arrow slides in on hover, same as the inline .ukat-mp__link-arrow. */
#page-body .ukat-mp__link::after {
  content: ""; width: .75rem; height: .75rem; flex: none;
  background-color: currentColor; opacity: 0; transform: translateX(-.25rem);
  transition: opacity .2s, transform .2s;
  -webkit-mask: url('data:image/svg+xml;utf8,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M5%2012h14%22/%3E%3Cpath%20d=%22m12%205%207%207-7%207%22/%3E%3C/svg%3E') center / contain no-repeat;
          mask: url('data:image/svg+xml;utf8,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M5%2012h14%22/%3E%3Cpath%20d=%22m12%205%207%207-7%207%22/%3E%3C/svg%3E') center / contain no-repeat;
}


#page-body .ukat-mp__link:hover::after { opacity: 1; transform: translateX(0); }
#page-body .ukat-mp__link:has(.ukat-mp__link-arrow)::after { display: none; }

#page-body .ukat-mp__feat-cta:after{
  content: ""; width: .75rem; height: .75rem; flex: none;
  background-color: currentColor; opacity: 1; transform: translateX(0);;
  transition: opacity .2s, transform .2s;
  -webkit-mask: url('data:image/svg+xml;utf8,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M5%2012h14%22/%3E%3Cpath%20d=%22m12%205%207%207-7%207%22/%3E%3C/svg%3E') center / contain no-repeat;
          mask: url('data:image/svg+xml;utf8,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M5%2012h14%22/%3E%3Cpath%20d=%22m12%205%207%207-7%207%22/%3E%3C/svg%3E') center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   Mobile bar layout. The theme's .col-6 pair is a fixed 50/50 float, but the
   logo renders wider than its half and the icon list starts left of its own
   column, so the two overlapped; the GPT chip (50px image + two-line label)
   also stood taller than the bar. Lay the row out with flex and size the
   pieces to the bar instead.
   -------------------------------------------------------------------------- */
@media (max-width: 958px) {
    body.page-template-template-ukat-home .header .mobile,
  body.page-template-template-ukat-home .header .mobile .container-fluid,
  body.page-template-template-ukat-home .header .mobile .row,
  body.page-template-template-ukat-home .header .mobile .headseccont { background: transparent !important; }

  /* content is white while the header is see-through */
  body.page-template-template-ukat-home .header:not(.scrolled) .mobile,
  body.page-template-template-ukat-home .header:not(.scrolled) .mobile a,
  body.page-template-template-ukat-home .header:not(.scrolled) .mobile i { color: #fff !important; }

  /* real artwork swap — no filter */
  body.page-template-template-ukat-home .header:not(.scrolled) .mobile .logo-img--dark { display: none !important; }
  body.page-template-template-ukat-home .header.scrolled .mobile .logo-img--light { display: none !important; }

  /* pull the hero up under the transparent bar (desktop does this from 1280px) */
  body.page-template-template-ukat-home .header { margin-bottom: -4.5rem !important; }
  body.page-template-template-ukat-home .header:has(.announce) { margin-bottom: calc(-4.5rem - 36px) !important; }

  #page-body .header .mobile .dflex { display: flex !important; align-items: center; gap: .5rem; width: 100%; }
  #page-body .header .mobile .dflex > .col-6 { float: none !important; width: auto !important; }
  #page-body .header .mobile .dflex > .col-6:first-child { flex: 1 1 auto; min-width: 0; }
  #page-body .header .mobile .dflex > .col-6.mobiico { flex: 0 0 auto; }

  #page-body .header .mobile .logo { display: inline-flex; align-items: center; max-width: 100%; }
  #page-body .header .mobile .logo img { width: auto !important; max-width: min(46vw, 11rem) !important; max-height: none !important; object-fit: contain; }

  #page-body .header .mobile .mobiico ul { display: flex; align-items: center; justify-content: flex-end;
  flex-wrap: nowrap; gap: .5rem; margin: 0; padding: 0; list-style: none; width: auto !important; }
  #page-body .header .mobile .mobiico li { margin: 5px !important;}
  #page-body .header .mobile .mobiico li.ukat-gpt-link{margin-right:-20px !important;}
  #page-body .header .mobile .mobiico li > a,
  #page-body .header .mobile .mobiico li > button { padding: 0 !important; margin: 0 !important; }
}

@media (max-width: 568px) {
  #page-body .header .mobile .mobiico li.ukat-gpt-link .ukat-gpt-mobile-text{font-size:8px;width:58px;}
  #page-body .header .mobile .mobiico li.ukat-gpt-link img{max-width:30px;}
  .announce{display:none;}
}
