/*
 * EAST LONDON RELATIONSHIP THERAPY | ELRT-3 Refined | v1.2 - consolidated
 * Cassiopeia child template - core stylesheet
 *
 * INSTALL: paste into the active child's media/templates/site/CHILD/css/user.css.
 * REPLACE the current ELRT user.css with this complete file.
 * Includes the logo enlargement, 1400px content, 400px service images and
 * full-viewport hero. Remove earlier appended ELRT patches when replacing.
 * Set the homepage Menu Item > Page Display > Page Class to: elrt-home
 * Header: publish the logo Custom module and Menu module in position "menu".
 * Add elrt-logo to the logo module class. Disable the template Brand logo.
 * Use Cassiopeia's collapsible dropdown menu layout with submenus enabled.
 * Keep Joomla's menu scripts: CSS below styles them; it does not replace them.
 * Fonts are system fonts, so there are no external font requests.
 * Hero photography and illustrations are supplied separately in the HTML.
 * Team rail supports native scrolling; arrow buttons need a small JS handler.
 */

/* 01. Design tokens ----------------------------------------------------- */
:root {
  --elrt-blue: #609db2;
  --elrt-blue-dark: #286d86;
  --elrt-blue-hover: #20596d;
  --elrt-ink: #17394a;
  --elrt-text: #505d65;
  --elrt-text-dark: #000000;
  --elrt-muted: #65727b;
  --elrt-white: #fff;
  --elrt-ivory: #fcfaf5;
  --elrt-blue-pale: #f1f7f9;
  --elrt-border: #dce4e7;
  --elrt-focus: #174b61;
  --elrt-font-body: "Segoe UI", Arial, sans-serif;
  --elrt-font-heading: Georgia, "Times New Roman", serif;
  --elrt-width: 1400px;
  --elrt-header-width: 1440px;
  --elrt-gutter: clamp(1.25rem, 4vw, 4rem);
  --elrt-section-space: clamp(3rem, 6vw, 5.5rem);
  --elrt-grid-gap: clamp(1.5rem, 3vw, 2.5rem);
  --elrt-radius: 2px;
  --elrt-scroll-offset: 7rem;
  --cassiopeia-color-primary: var(--elrt-blue-dark);
  --cassiopeia-color-link: var(--elrt-blue-dark);
  --cassiopeia-color-hover: var(--elrt-blue-hover);
  --cassiopeia-font-family-body: var(--elrt-font-body);
  --cassiopeia-font-family-headings: var(--elrt-font-heading);
  --body-font-family: var(--elrt-font-body);
  --body-font-size: 1rem;
  --body-font-weight: 400;
  --body-line-height: 1.75;
  --body-color: var(--elrt-text);
  --body-bg: var(--elrt-white);
  --heading-color: var(--elrt-ink);
  --link-color: var(--elrt-blue-dark);
  --link-hover-color: var(--elrt-blue-hover);
  --bs-body-font-family: var(--elrt-font-body);
  --bs-body-color: var(--elrt-text);
  --bs-body-bg: var(--elrt-white);
  --bs-link-color: var(--elrt-blue-dark);
  --bs-link-hover-color: var(--elrt-blue-hover);
}

/* 02. Base and typography ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--elrt-scroll-offset); }
body {
  margin: 0;
  color: var(--elrt-text);
  background: var(--elrt-white);
  font-family: var(--elrt-font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--elrt-ink);
  font-family: var(--elrt-font-heading);
  font-weight: 400;
  line-height: 1.22;
  overflow-wrap: break-word;
  margin: 0 0 1.25rem;
}
h1, .h1 { font-size: clamp(1.85rem, 2.7vw, 2.5rem); }
h2, .h2 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
h3, .h3 { font-size: clamp(1.3rem, 1.65vw, 1.55rem); }
h4, .h4 { font-size: 1.25rem; }
h5, .h5 { font-size: 1.125rem; }
h6, .h6 { font-size: 1rem; }
p { margin: 0 0 1.15rem; }
li + li { margin-top: .35rem; }
strong, b { font-weight: 600; }
a {
  color: var(--elrt-blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}
a:hover { color: var(--elrt-blue-hover); }
:focus-visible { outline: 3px solid var(--elrt-focus); outline-offset: 4px; }
[id] { scroll-margin-top: var(--elrt-scroll-offset); }
figure { margin: 0; }
blockquote {
  margin: 1.75rem 0;
  padding: 1rem 0 1rem 1.5rem;
  border-inline-start: 3px solid var(--elrt-blue);
  color: var(--elrt-ink);
}
hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--elrt-border); opacity: 1; }
.elrt-container {
  width: calc(100% - var(--elrt-gutter) - var(--elrt-gutter));
  max-width: var(--elrt-width);
  margin-inline: auto;
  min-width: 0;
}
.elrt-section { padding-block: var(--elrt-section-space); }
.elrt-section--compact { padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.elrt-section--ivory { background: var(--elrt-ivory); }
.elrt-section--blue-pale { background: var(--elrt-blue-pale); }
.elrt-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}
.elrt-section-heading > * { margin-bottom: 0; }
.elrt-kicker {
  margin: 0 0 1rem;
  color: var(--elrt-blue-dark);
  font-family: var(--elrt-font-body);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.elrt-lead { font-size: 1.1rem; line-height: 1.75; }
.elrt-prose { max-width: 70ch; }
.elrt-prose > :last-child { margin-bottom: 0; }
.elrt-center { text-align: center; }

/* 03. Cassiopeia page shell -------------------------------------------- */
/* The homepage is identified by its existing .elrt-homepage wrapper.
   Inner content is limited to 1400px; the hero has its own viewport width. */
body:has(.elrt-homepage) { overflow-x: clip; }
.site-grid:has(.elrt-homepage) { margin-top: 0; }
.site-grid:has(.elrt-homepage) > .container-component {
  grid-column: full-start / full-end;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.container-component:has(.elrt-homepage),
.container-component > main:has(.elrt-homepage),
.com-content-article:has(.elrt-homepage),
.com-content-article__body:has(.elrt-homepage) {
  min-width: 0;
  max-width: none;
  padding-inline: 0;
  overflow: visible;
}
.elrt-homepage {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}
/* Keep Joomla's page and article titles controlled by their normal settings. */

/* 04. Header: logo and navigation share the menu position -------------- */
.container-header {
  position: relative;
  z-index: 1000;
  display: block;
  width: 100%;
  margin: 0;
  padding: 1rem max(var(--elrt-gutter), calc((100% - var(--elrt-header-width)) / 2));
  color: var(--elrt-ink);
  background: var(--elrt-blue);
  background-image: none;
  border-bottom: 1px solid #edf1f3;
  box-shadow: none;
}
.container-header.position-sticky { position: sticky; top: 0; }
.container-header > .grid-child {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.container-header .container-nav {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 2.5vw, 3rem);
  width: 100%;
}
/* CSS order puts the logo first even if the Menu module is listed first. */
.container-header .container-nav > :is(.elrt-logo, .mod-custom, .custom),
.container-header .container-nav > :has(.elrt-logo),
.container-header .container-nav > .moduletable:has(img):not(:has(nav)) {
  order: 0;
  flex: 0 1 clamp(16rem, 26vw, 25rem);
  min-width: 0;
  margin: 0;
  padding: 0;
}
.container-header .container-nav :is(.elrt-logo, .mod-custom, .custom) p {
  margin: 0;
  padding: 0;
}
.container-header .container-nav :is(.elrt-logo, .mod-custom, .custom) a {
  display: block;
  max-width: 100%;
}
.container-header .container-nav :is(.elrt-logo, .mod-custom, .custom) img,
.container-header .container-nav > .moduletable:has(img):not(:has(nav)) img {
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 84px;
  margin: 0;
  object-fit: contain;
  object-position: left center;
}
.container-header .container-nav > nav,
.container-header .container-nav > .moduletable:has(nav),
.container-header .container-nav > .mod-menu {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.container-header .container-nav nav.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin: 0;
  padding: 0;
}
.container-header .container-nav .navbar-collapse { justify-content: flex-end; }
.container-header .navbar-brand { margin: 0; padding: 0; line-height: 1; }
.container-header .brand-logo img { display: block; width: auto; max-width: 100%; max-height: 76px; }
/* Use Joomla's Show Brand setting to avoid an extra template logo above this row. */
.container-header .mod-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: .3rem clamp(.6rem, 1.2vw, 1.15rem);
  margin: 0;
  padding: 0;
  color: var(--elrt-ink);
  font-family: var(--elrt-font-body);
  font-size: .84rem;
  font-weight: 400;
  line-height: 1.5;
  list-style: none;
}
.container-header .mod-menu li { margin: 0; padding: 0; }
.container-header .mod-menu > li { flex: 0 0 auto; }
.container-header .mod-menu > li > :is(a, button, .nav-header, .mod-menu__heading) { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.container-header .metismenu.mod-menu .metismenu-item { margin: 0; padding: 0; }
.container-header .mod-menu a,
.container-header .mod-menu .nav-header,
.container-header .mod-menu .mod-menu__heading,
.container-header .mod-menu button {
  color: var(--elrt-ink);
  font: inherit;
  text-decoration: none;
  text-transform: none;
}
.container-header .mod-menu > li > a,
.container-header .mod-menu > li > .nav-header,
.container-header .mod-menu > li > .mod-menu__heading { display: inline-block; padding-block: .7rem; }
.container-header .mod-menu a:hover,
.container-header .mod-menu a:focus-visible,
.container-header .mod-menu li.active > a,
.container-header .mod-menu li.current > a { color: var(--elrt-blue-dark); }
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
  text-decoration: underline;
  text-underline-offset: .5rem;
  text-decoration-thickness: 1px;
}
/* Retain Joomla's submenu display/expanded states and parent click targets. */
.container-header .mod-menu :is(.mm-collapse, .mod-menu__sub) {
  min-width: 13rem;
  padding: .6rem;
  color: var(--elrt-ink);
  background: var(--elrt-white);
  border: 1px solid var(--elrt-border);
  border-radius: var(--elrt-radius);
  box-shadow: 0 8px 24px rgb(23 57 74 / 8%);
}
.container-header .mod-menu :is(.mm-collapse, .mod-menu__sub) a {
  display: block;
  padding: .65rem .8rem;
  line-height: 1.5;
  white-space: normal;
}
.container-header .mod-menu :is(.mm-collapse, .mod-menu__sub) a:hover { background: var(--elrt-blue-pale); }
.container-header .navbar-toggler {
  min-width: 44px;
  min-height: 44px;
  padding: .55rem;
  color: var(--elrt-ink);
  background: var(--elrt-white);
  border: 1px solid var(--elrt-border);
  border-radius: var(--elrt-radius);
}
/* CSS-drawn hamburger avoids relying on a Font Awesome font. */
.container-header .navbar-toggler .icon-menu::before {
  content: "";
  display: block;
  width: 22px;
  height: 16px;
  background: linear-gradient(currentColor, currentColor) left top / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) left center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 100% 2px no-repeat;
}

/* 05. Buttons and text links ------------------------------------------- */
.elrt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; margin-top: 1.75rem; }
.elrt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 46px;
  padding: .7rem 1.4rem;
  color: var(--elrt-white);
  background: var(--elrt-blue-dark);
  border: 1px solid var(--elrt-blue-dark);
  border-radius: var(--elrt-radius);
  font-family: var(--elrt-font-body);
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.elrt-button:hover { color: var(--elrt-white); background: var(--elrt-blue-hover); border-color: var(--elrt-blue-hover); }
.elrt-button--outline { color: var(--elrt-blue-dark); background: transparent; }
.elrt-button--outline:hover { color: var(--elrt-blue-hover); background: var(--elrt-blue-pale); }
.elrt-button--light { color: var(--elrt-blue-dark); background: var(--elrt-white); border-color: var(--elrt-white); }
.elrt-button--light:hover { color: var(--elrt-blue-hover); background: var(--elrt-ivory); border-color: var(--elrt-ivory); }
.elrt-link { display: inline-flex; align-items: center; gap: .6rem; font-size: .95rem; line-height: 1.6; }
/* Add an aria-hidden span containing an arrow in HTML when required. */
.elrt-link__arrow { flex-shrink: 0; font-size: 1.2em; text-decoration: none; }

/* 06. Hero: full viewport width, natural image proportions -------------- */
/* A percentage width fills only its parent. This viewport-width breakout
   spans the screen even inside Cassiopeia's centred article container.
   The body clip above avoids a horizontal scrollbar from viewport units. */
.elrt-homepage .elrt-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "hero";
  width: 100vw;
  max-width: none;
  left: 50%;
  margin: 0;
  margin-left: -50vw;
  padding: 0;
  background: var(--elrt-ivory);
}
.elrt-hero__image {
  grid-area: hero;
  position: relative;
  inset: auto;
  z-index: 0;
  display: block;
  align-self: center;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  object-fit: contain;
  object-position: center;
}
.elrt-hero__inner {
  grid-area: hero;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 0;
  padding-block: clamp(1.5rem, 3vw, 3rem);
}
.elrt-hero__panel {
  width: min(100%, 32rem);
  padding: clamp(1.5rem, 2.3vw, 2.25rem);
  color: var(--elrt-text-dark);
  background: var(--elrt-ivory);
}
.elrt-hero__panel h1 {
  max-width: none;
  margin-bottom: 1.4rem;
  font-size: clamp(1.8rem, 2.3vw, 2.35rem);
}
.elrt-hero__panel > p { max-width: 47ch; }
.elrt-hero__panel > :last-child { margin-bottom: 0; }
.elrt-hero .elrt-actions { gap: .75rem; margin-top: 1.4rem; }
.elrt-hero .elrt-button { padding-inline: 1rem; }

/* 07. Services: cards beneath, with a clear white gap ------------------- */
.elrt-services { padding-top: clamp(2.5rem, 4.5vw, 4rem); }
.elrt-services .elrt-grid--3 { gap: 2rem; }
.elrt-services .elrt-card { padding: 1.75rem 1.25rem 2rem; }
.elrt-grid { display: grid; gap: var(--elrt-grid-gap); min-width: 0; }
.elrt-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.elrt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.elrt-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  background: var(--elrt-white);
  border: 1px solid var(--elrt-border);
  border-radius: var(--elrt-radius);
}
.elrt-card__illustration {
  display: block;
  align-self: center;
  flex-shrink: 0;
  width: 100%;
  max-width: 400px;
  height: auto;
  max-height: none;
  margin: 0 auto 1.75rem;
  object-fit: contain;
}
.elrt-card h2, .elrt-card h3 { margin-bottom: .9rem; font-size: 1.4rem; }
.elrt-card p { font-size: .97rem; line-height: 1.75; }
.elrt-card > .elrt-link,
.elrt-card__link { align-self: flex-start; margin-top: auto; padding-top: .8rem; }

/* 08. Introduction and reusable alternating content ------------------- */
.elrt-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.elrt-split__content, .elrt-split__media { min-width: 0; }
.elrt-split__content > :last-child { margin-bottom: 0; }
.elrt-split__media img { display: block; width: 100%; height: auto; }
.elrt-split__media--portrait img { aspect-ratio: 4 / 5; object-fit: cover; }
/* Desktop image-left variant. Keep text first in source for mobile. */
.elrt-split--image-left > .elrt-split__media { grid-column: 1; grid-row: 1; }
.elrt-split--image-left > .elrt-split__content { grid-column: 2; grid-row: 1; }

/* 09. Team rail: native touch/keyboard scroll; optional JS arrows ------- */
.elrt-team { background: var(--elrt-white); }
.elrt-team__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--elrt-grid-gap)) / 4);
  align-items: start;
  gap: var(--elrt-grid-gap);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 3px;
  scrollbar-width: thin;
  scrollbar-color: var(--elrt-blue) var(--elrt-blue-pale);
  padding: .4rem .25rem 1rem;
}
/* Give the rail tabindex="0" and an accessible label in the HTML. */
.elrt-team__card { min-width: 0; scroll-snap-align: start; }
.elrt-team__image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; margin-bottom: 1rem; }
.elrt-team__name { margin: 0 0 .25rem; font-size: 1.25rem; }
.elrt-team__role { margin: 0 0 .5rem; color: var(--elrt-muted); font-size: .875rem; line-height: 1.6; }
.elrt-team__controls { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }
.elrt-team__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: .5rem;
  color: var(--elrt-blue-dark);
  background: var(--elrt-white);
  border: 1px solid var(--elrt-border);
  border-radius: 50%;
  line-height: 1;
  cursor: pointer;
}
.elrt-team__control:hover { background: var(--elrt-blue-pale); }
.elrt-team__control:disabled { opacity: .45; cursor: default; }

/* 10. Locations and final call to action ------------------------------- */
.elrt-locations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.elrt-location { min-width: 0; }
.elrt-location + .elrt-location { border-inline-start: 1px solid var(--elrt-border); padding-inline-start: 2rem; }
.elrt-location h3 { margin-bottom: .9rem; }
.elrt-location p { max-width: 36ch; font-size: .95rem; }
.elrt-cta { padding-block: clamp(2.5rem, 4vw, 4rem); color: var(--elrt-white); background: var(--elrt-blue-dark); }
.elrt-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.elrt-cta__text { flex: 1 1 28rem; min-width: 0; }
.elrt-cta h2, .elrt-cta h3 { margin-bottom: .65rem; color: var(--elrt-white); }
.elrt-cta p { margin: 0; }
.elrt-cta a:not(.elrt-button) { color: var(--elrt-white); }

/* 11. Footer ----------------------------------------------------------- */
.container-footer.footer { margin-top: 0; color: var(--elrt-text); background: var(--elrt-white); background-image: none; }
.container-footer.footer a { color: var(--elrt-blue-dark); }
.container-footer.footer > .grid-child { width: 100%; max-width: none; margin: 0; padding: 0; }
.elrt-footer { padding-block: 2.5rem; background: var(--elrt-white); border-top: 1px solid var(--elrt-border); }
.elrt-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 1.5rem 2rem; }
.elrt-footer__logo { display: block; width: min(100%, 300px); height: auto; }
.elrt-footer address { margin: 0; font-size: .85rem; font-style: normal; line-height: 1.7; }
.elrt-footer__links { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin: 0; padding: 0; list-style: none; font-size: .85rem; }
.elrt-footer__links li { margin: 0; }
.elrt-footer__copyright { margin: 1.5rem 0 0; color: var(--elrt-muted); font-size: .8rem; }

/* 12. Inner pages, optional Joomla blog cards and FAQ ------------------- */
.elrt-page { padding-block: var(--elrt-section-space); }
.elrt-page__heading { max-width: 32ch; margin-bottom: 2.25rem; }
.elrt-page .elrt-split + .elrt-split { margin-top: var(--elrt-section-space); }
/* Optional Menu Page Class: elrt-cards-blog. Uses Joomla's own column count. */
.elrt-cards-blog .blog-items { align-items: stretch; gap: var(--elrt-grid-gap); }
.elrt-cards-blog .blog-item { display: flex; flex-direction: column; min-width: 0; height: 100%; margin: 0; padding: 1.5rem; border: 1px solid var(--elrt-border); background: var(--elrt-white); }
.elrt-cards-blog .item-content { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.elrt-cards-blog .page-header h2 { margin-bottom: 1rem; font-size: 1.45rem; }
.elrt-cards-blog .page-header h2 a { color: var(--elrt-ink); text-decoration: none; }
.elrt-cards-blog .item-image { float: none; margin: 0 0 1.5rem; }
.elrt-cards-blog .item-image img { display: block; width: 100%; height: auto; }
.elrt-cards-blog .readmore { margin-top: auto; padding-top: 1rem; }
.elrt-faq details { margin: 0; padding: 1.35rem 0; border-bottom: 1px solid var(--elrt-border); }
.elrt-faq details:first-child { border-top: 1px solid var(--elrt-border); }
.elrt-faq summary { color: var(--elrt-ink); font-family: var(--elrt-font-heading); font-size: 1.3rem; line-height: 1.5; cursor: pointer; }
.elrt-faq details[open] summary { margin-bottom: 1rem; }
.elrt-faq details > :last-child { margin-bottom: 0; }

/* 13. Contact form and map classes ------------------------------------- */
.elrt-form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]), textarea, select) {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: .75rem .9rem;
  color: var(--elrt-text);
  background: var(--elrt-white);
  border: 1px solid #a8b8c0;
  border-radius: var(--elrt-radius);
}
.elrt-form label { display: block; margin-bottom: .4rem; color: var(--elrt-ink); }
.elrt-form textarea { min-height: 10rem; resize: vertical; }
.elrt-map { margin-top: 2rem; }
.elrt-map iframe { display: block; width: 100%; min-height: 360px; border: 0; }

/* 14. Responsive layout ------------------------------------------------ */
/* Collapse early so logo and navigation do not collide on small laptops. */
/* Desktop logo enlargement: this block closes before other rules. */
@media (min-width: 1200px) {
  .container-header .container-nav > :is(.elrt-logo, .mod-custom, .custom),
  .container-header .container-nav > :has(.elrt-logo),
  .container-header .container-nav > .moduletable:has(img):not(:has(nav)) {
    flex: 0 1 clamp(24rem, 34vw, 36rem);
    min-width: 24rem;
  }
  .container-header .container-nav :is(.elrt-logo, .mod-custom, .custom) img,
  .container-header .container-nav > .moduletable:has(img):not(:has(nav)) img {
    max-height: 90px;
  }
}

@media (max-width: 1199.98px) {
  .container-header .container-nav { gap: 1rem; }
  .container-header .container-nav > :is(.elrt-logo, .mod-custom, .custom),
  .container-header .container-nav > :has(.elrt-logo),
  .container-header .container-nav > .moduletable:has(img):not(:has(nav)) { flex: 0 1 370px; }
  .container-header .container-nav > nav,
  .container-header .container-nav > .moduletable:has(nav) { position: static; flex: 0 0 auto; margin-inline-start: auto; }
  .container-header .container-nav nav.navbar { width: auto; }
  .container-header .container-nav :is(.elrt-logo, .mod-custom, .custom) img { max-height: 64px; }
  .container-header .navbar-toggler { display: inline-flex !important; align-items: center; justify-content: center; }
  .container-header .navbar-collapse {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    z-index: 1001;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    padding: 1rem var(--elrt-gutter) 1.5rem;
    background: var(--elrt-white);
    border-bottom: 1px solid var(--elrt-border);
    box-shadow: 0 12px 20px rgb(23 57 74 / 6%);
  }
  .container-header .navbar-collapse.collapse:not(.show) { display: none !important; }
  .container-header .navbar-collapse.show { display: block !important; }
  .container-header .mod-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .container-header .mod-menu > li { width: 100%; border-bottom: 1px solid #edf1f3; }
  .container-header .mod-menu > li > a { padding-block: .85rem; white-space: normal; }
  .container-header .mod-menu > li > :is(button, .nav-header, .mod-menu__heading) { white-space: normal; }
  .container-header .mod-menu :is(.mm-collapse, .mod-menu__sub) { min-width: 0; max-width: 100%; box-shadow: none; }
  .container-header .metismenu.mod-menu .mm-collapse { position: static; width: 100%; }
}
/* Keep the whole image visible above the text on smaller screens. */
@media (max-width: 1100px) {
  .elrt-homepage .elrt-hero { display: block; }
  .elrt-hero__image { width: 100%; height: auto; }
  .elrt-hero__inner { display: block; width: 100%; max-width: none; min-height: 0; padding: 0; }
  .elrt-hero__panel { width: 100%; padding: 2rem var(--elrt-gutter); }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .elrt-services .elrt-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .elrt-split { gap: 2rem; }
  .elrt-team__rail { grid-auto-columns: calc((100% - 2 * var(--elrt-grid-gap)) / 3); }
  .elrt-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .elrt-footer__links { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  :root { --elrt-scroll-offset: 6rem; }
  .container-header { padding-block: .85rem; }
  .container-header .container-nav :is(.elrt-logo, .mod-custom, .custom) img { max-height: 58px; }
  .elrt-section-heading { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .elrt-grid--2, .elrt-grid--3, .elrt-split, .elrt-locations { grid-template-columns: minmax(0, 1fr); }
  .elrt-card { padding: 1.75rem; }
  .elrt-card__illustration { margin-bottom: 1.25rem; }
  .elrt-split--image-left > .elrt-split__content,
  .elrt-split--image-left > .elrt-split__media { grid-column: auto; grid-row: auto; }
  .elrt-split__media--portrait img { aspect-ratio: 5 / 4; }
  .elrt-team__rail { grid-auto-columns: calc((100% - var(--elrt-grid-gap)) / 2); }
  .elrt-locations { gap: 1.75rem; }
  .elrt-location + .elrt-location { padding-inline-start: 0; padding-top: 1.75rem; border-inline-start: 0; border-top: 1px solid var(--elrt-border); }
  .elrt-cta__text { flex-basis: 100%; }
  .elrt-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .elrt-footer__links { grid-column: auto; }
}
@media (max-width: 479.98px) {
  .container-header .container-nav > :is(.elrt-logo, .mod-custom, .custom),
  .container-header .container-nav > :has(.elrt-logo),
  .container-header .container-nav > .moduletable:has(img):not(:has(nav)) { flex-basis: 235px; }
  .elrt-actions { align-items: stretch; }
  .elrt-actions > .elrt-button { width: 100%; }
  .elrt-team__rail { grid-auto-columns: 78%; }
  .elrt-map iframe { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .elrt-button { transition: none; }
  .elrt-team__rail { scroll-behavior: auto; scroll-snap-type: none; }
}
@media print {
  .elrt-homepage .elrt-hero { display: block; width: 100%; left: auto; margin: 0; }
  .container-header, .elrt-team__controls, .elrt-map { display: none !important; }
  .elrt-hero__image { position: static; height: auto; }
  .elrt-hero__inner { min-height: 0; }
  .elrt-hero__panel { width: 100%; }
  .elrt-team__rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row; overflow: visible; }
  .elrt-card, .elrt-team__card { break-inside: avoid; }
}
/* Practice introduction: equal text and image columns */
.elrt-split--equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.elrt-split--equal > .elrt-split__media {
  width: 100%;
  margin: 0;
}

.elrt-split--equal > .elrt-split__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
}

/* Stack on smaller screens */
@media (max-width: 991.98px) {
  .elrt-split--equal {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Append once to user.css after the existing ELRT styles.
   Default: image right. Add elrt-service-intro--image-left to reverse. */
.elrt-service-page .elrt-service-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  isolation: isolate;
}

.elrt-service-page .elrt-service-intro__panel {
  grid-column: 1 / 8;
  grid-row: 1;
  position: relative;
  z-index: 1;
  min-width: 0;
  margin-block: 3rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  background: var(--elrt-ivory, #faf8f2);
  color: var(--elrt-ink, #243e46);
}

.elrt-service-page .elrt-service-intro__panel h1 {
  margin-top: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.2;
}

.elrt-service-page .elrt-service-intro__panel > :last-child {
  margin-bottom: 0;
}

.elrt-service-page .elrt-service-intro__media {
  grid-column: 6 / -1;
  grid-row: 1;
  align-self: stretch;
  position: relative;
  z-index: 0;
  min-width: 0;
  min-height: 28rem;
  margin: 0;
}

.elrt-service-page .elrt-service-intro__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.elrt-service-page .elrt-service-intro--image-left .elrt-service-intro__panel {
  grid-column: 6 / -1;
}

.elrt-service-page .elrt-service-intro--image-left .elrt-service-intro__media {
  grid-column: 1 / 8;
}

.elrt-service-page .elrt-service-concerns {
  padding-top: 0;
}

.elrt-service-page .elrt-service-list {
  columns: 2;
  column-gap: clamp(2rem, 5vw, 5rem);
  max-width: 65rem;
  margin-block: 1.5rem 2rem;
  padding-left: 1.25rem;
}

.elrt-service-page .elrt-service-list li {
  break-inside: avoid;
  padding-left: 0.25rem;
  margin-bottom: 0.65rem;
}

.elrt-service-page .elrt-service-list li::marker {
  color: var(--elrt-blue, #2b7184);
}

.elrt-service-page .elrt-service-cta {
  padding: 1.5rem clamp(1.5rem, 3vw, 2rem);
  border-left: 3px solid var(--elrt-blue, #2b7184);
  background: var(--elrt-ivory, #faf8f2);
}

.elrt-service-page .elrt-service-cta p {
  margin: 0;
}

@media (max-width: 991.98px) {
  .elrt-service-page .elrt-service-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .elrt-service-page .elrt-service-intro .elrt-service-intro__panel,
  .elrt-service-page .elrt-service-intro .elrt-service-intro__media {
    grid-column: 1;
    grid-row: auto;
  }

  .elrt-service-page .elrt-service-intro__panel {
    margin: 0;
  }

  .elrt-service-page .elrt-service-intro__media {
    min-height: 0;
  }

  .elrt-service-page .elrt-service-intro__media img {
    position: static;
    height: auto;
  }
}

@media (max-width: 575.98px) {
  .elrt-service-page .elrt-service-list {
    columns: 1;
  }
}
/* Service issues: bordered boxes */
.elrt-service-page .elrt-service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  columns: auto;
  max-width: none;
  padding: 0;
  margin-block: 1.5rem 2rem;
  list-style: none;
}

.elrt-service-page .elrt-service-list li {
  min-width: 0;
  margin: 0;
  padding: 1rem 1.25rem;
  border: 1px solid #cbd9dc;
  border-radius: 4px;
  background: #faf8f2;
}

@media (max-width: 575.98px) {
  .elrt-service-page .elrt-service-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Workshop graphic: show the complete image */
.elrt-service-page .elrt-service-intro--workshop
.elrt-service-intro__media {
  align-self: center;
  min-height: 0;
}

.elrt-service-page .elrt-service-intro--workshop
.elrt-service-intro__media img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Give the workshop graphic its own clear space */
@media (min-width: 992px) {
  .elrt-service-page .elrt-service-intro--workshop {
    column-gap: 2rem;
  }

  .elrt-service-page .elrt-service-intro--workshop
  .elrt-service-intro__panel {
    grid-column: 1 / 7;
    margin-block: 0;
  }

  .elrt-service-page .elrt-service-intro--workshop
  .elrt-service-intro__media {
    grid-column: 7 / -1;
  }
}

/* Workshop testimonials */
.elrt-workshop-page p.blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid #6b9da9;
  background: #faf8f2;
  font-style: italic;
}

.elrt-workshop-page .elrt-workshop-feedback {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.elrt-workshop-page .elrt-workshop-feedback p {
  margin: 0;
}
/* ELRT: uppercase navigation, including dropdowns */
.container-header .mod-menu a,
.container-header .mod-menu button,
.container-header .mod-menu .nav-header {
  text-transform: uppercase !important;
}
/* ELRT blog: three equal-width columns */
.elrt-blog .blog-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 2rem;
}

/* Equal-height cards within each row */
.elrt-blog .blog-items > .blog-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
  min-width: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid #cbd9dc;
  border-radius: 4px;
  background: #fff;
}

.elrt-blog .blog-item .item-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
}

/* Article headings */
.elrt-blog .blog-item .page-header h1,
.elrt-blog .blog-item .page-header h2,
.elrt-blog .blog-item .item-title {
  margin: 0 0 1rem;
  font-size: 1rem !important;
  font-weight: 400;
  line-height: 1.45;
}

.elrt-blog .blog-item .page-header a {
  font-size: inherit;
  font-weight: inherit;
}

/* Images retain their full proportions */
.elrt-blog .blog-item .item-image {
  float: none !important;
  margin: 0 0 1rem;
}

.elrt-blog .blog-item .item-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Align Read More links at the bottom */
.elrt-blog .blog-item .readmore {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 1rem;
}

/* Tablet */
@media (max-width: 991.98px) {
  .elrt-blog .blog-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .elrt-blog .blog-items {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}
/* Homepage practice introduction: overlapping text and image */
.elrt-practice-overlap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  isolation: isolate;
}

.elrt-practice-overlap > .elrt-split__content {
  grid-column: 1 / 8;
  grid-row: 1;
  position: relative;
  z-index: 1;
  min-width: 0;
  margin-block: 2.5rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  background: var(--elrt-ivory, #faf8f2);
}

.elrt-practice-overlap > .elrt-split__content > :last-child {
  margin-bottom: 0;
}

.elrt-practice-overlap > .elrt-split__media {
  grid-column: 6 / -1;
  grid-row: 1;
  align-self: stretch;
  position: relative;
  z-index: 0;
  min-width: 0;
  min-height: 30rem;
  margin: 0;
}

.elrt-practice-overlap > .elrt-split__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

/* Stack naturally on tablets and phones */
@media (max-width: 991.98px) {
  .elrt-practice-overlap {
    grid-template-columns: minmax(0, 1fr);
  }

  .elrt-practice-overlap > .elrt-split__content,
  .elrt-practice-overlap > .elrt-split__media {
    grid-column: 1;
    grid-row: auto;
  }

  .elrt-practice-overlap > .elrt-split__content {
    margin: 0;
  }

  .elrt-practice-overlap > .elrt-split__media {
    min-height: 0;
  }

  .elrt-practice-overlap > .elrt-split__media img {
    position: static;
    height: auto;
  }
}
/* ELRT reusable profile pages. Append once to user.css. */
.elrt-profile {
  padding-block: clamp(2rem, 4vw, 4rem);
}

.elrt-profile .elrt-profile__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 22.5rem);
  grid-template-areas: "intro portrait" "details portrait";
  align-items: start;
  column-gap: clamp(2rem, 4vw, 4rem);
  row-gap: 2rem;
}

.elrt-profile .elrt-profile__intro { grid-area: intro; min-width: 0; }
.elrt-profile .elrt-profile__sidebar { grid-area: portrait; min-width: 0; }

.elrt-profile h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.2;
}

.elrt-profile h2 {
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  font-weight: 400;
  line-height: 1.35;
}

.elrt-profile .elrt-profile__role {
  margin: 0 0 2rem;
  color: var(--elrt-blue, #2b7184);
  font-size: 1.1rem;
}

.elrt-profile .elrt-profile__intro > :last-child { margin-bottom: 0; }
.elrt-profile .elrt-profile__portrait { margin: 0; }

.elrt-profile .elrt-profile__portrait img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  border-radius: 4px;
}

.elrt-profile .elrt-profile__accreditations {
  margin-top: 1.25rem;
  padding: 1.5rem;
  border: 1px solid #cbd9dc;
  border-radius: 4px;
  background: #fff;
}

.elrt-profile .elrt-profile__accreditations h2 {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
}

.elrt-profile .elrt-profile__logos {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
}

.elrt-profile .elrt-profile__logos img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 8rem;
  object-fit: contain;
}

.elrt-profile .elrt-profile__details {
  grid-area: details;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  min-width: 0;
}

.elrt-profile .elrt-profile__panel {
  min-width: 0;
  padding: clamp(1.25rem, 2vw, 2rem);
  border: 1px solid #cbd9dc;
  border-radius: 4px;
  background: #fff;
}

.elrt-profile .elrt-profile__panel h2 { margin-top: 0; }
.elrt-profile .elrt-profile__panel > :last-child { margin-bottom: 0; }

.elrt-profile .elrt-profile__list {
  margin: 0;
  padding-left: 1.25rem;
}

.elrt-profile .elrt-profile__list li {
  padding: 0.75rem 0 0.75rem 0.25rem;
  margin: 0;
  border-bottom: 1px solid #e2e9eb;
}

.elrt-profile .elrt-profile__list li:first-child { padding-top: 0; }
.elrt-profile .elrt-profile__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.elrt-profile .elrt-profile__list li::marker { color: var(--elrt-blue, #2b7184); }

.elrt-profile .elrt-profile__fees {
  background: var(--elrt-ivory, #faf8f2);
}

.elrt-profile .elrt-profile__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-left: 3px solid var(--elrt-blue, #2b7184);
  background: var(--elrt-ivory, #faf8f2);
}

.elrt-profile .elrt-profile__cta-copy { min-width: 0; max-width: 100%; }
.elrt-profile .elrt-profile__cta h2 { margin: 0 0 0.75rem; }
.elrt-profile .elrt-profile__cta p { margin: 0; }
.elrt-profile a { overflow-wrap: anywhere; }
.elrt-profile .elrt-profile__cta .elrt-button { white-space: normal; }

@media (max-width: 991.98px) {
  .elrt-profile .elrt-profile__layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "portrait" "details";
  }
  .elrt-profile .elrt-profile__sidebar {
    width: 100%;
    max-width: 22.5rem;
    justify-self: center;
  }
}

@media (max-width: 575.98px) {
  .elrt-profile .elrt-profile__cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Profile job title */
.elrt-profile .elrt-profile__role {
  margin: 0.75rem 0 2rem;
  color: #245b6b;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  font-weight: 400;
  line-height: 1.45;
}

.elrt-profile .elrt-profile__role::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 3px;
  margin-top: 1rem;
  background: #b49a60;
}
/* Job title and enquiry button: two columns */
.elrt-profile .elrt-profile__role-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 1.5rem;
  margin: 0.75rem 0 2rem;
}

.elrt-profile .elrt-profile__role-row .elrt-profile__role {
  min-width: 0;
  margin: 0;
}

/* Gold outline with blue lettering */
.elrt-profile .elrt-profile__header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-sizing: border-box;
  padding: 1rem;
  border: 1px solid #b49a60;
  border-radius: 3px;
  background: transparent;
  color: #245b6b;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
}

.elrt-profile .elrt-profile__header-cta:hover {
  background: #faf8f2;
  border-color: #92783f;
  color: #163d49;
}

.elrt-profile .elrt-profile__header-cta:focus-visible {
  outline: 3px solid #245b6b;
  outline-offset: 4px;
}

@media (max-width: 767.98px) {
  .elrt-profile .elrt-profile__role-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .elrt-profile .elrt-profile__header-cta {
    justify-self: start;
    max-width: 100%;
  }
}
/* Therapist directory: four columns on desktop */
@media (min-width: 992px) {
  .elrt-directory[data-elrt-directory] .elrt-directory__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* ELRT directory: match the original boxed four-column team listing.
 * Append this entire file at the END of the child template's user.css.
 * Keep elrt-directory.css, elrtdirectory.php and the filter JavaScript in place.
 */

/* Match the original page's component width; remove the nested page gutters. */
.elrt-page:has(.elrt-directory[data-elrt-directory]) {
  padding-block: 0;
}
.elrt-page:has(.elrt-directory[data-elrt-directory]) .elrt-section {
  padding-block: 1rem;
}
.elrt-page:has(.elrt-directory[data-elrt-directory]) .elrt-container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

/* Original listing: four columns with 16px gaps. */
.elrt-directory[data-elrt-directory] .elrt-directory__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Cassiopeia boxed-card finish, including its fine blue top edge. */
.elrt-directory[data-elrt-directory] .elrt-directory__card {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 3px 0 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow:
    0 0 2px rgba(51, 57, 66, .10),
    0 2px 5px rgba(51, 57, 66, .08),
    0 5px 15px rgba(51, 57, 66, .08),
    inset 0 3px 0 #286d86;
}
.elrt-directory[data-elrt-directory] .elrt-directory__profile {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #505d65;
  text-decoration: none;
}
.elrt-directory[data-elrt-directory] .elrt-directory__image {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}
.elrt-directory[data-elrt-directory] .elrt-directory__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 25px;
}
.elrt-directory[data-elrt-directory] .elrt-directory__name {
  margin: 0 0 20px;
  color: #286d86;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.22;
  text-decoration: underline;
  text-underline-offset: .15em;
}
.elrt-directory[data-elrt-directory] .elrt-directory__role {
  margin: 0 0 20px;
  color: #17394a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.22;
}
.elrt-directory[data-elrt-directory] .elrt-directory__link {
  display: block;
  align-self: stretch;
  margin-top: auto;
  padding: .6rem 1rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #fff;
  color: #353b41;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}
.elrt-directory[data-elrt-directory] .elrt-directory__profile:hover .elrt-directory__link {
  border-color: #286d86;
  background: #f3f7f8;
  color: #17394a;
}

/* Keep filtered-out profiles hidden, including after the grid restyling. */
.elrt-directory[data-elrt-directory] [hidden] {
  display: none !important;
}
@media (max-width: 991.98px) {
  .elrt-directory[data-elrt-directory] .elrt-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  .elrt-directory[data-elrt-directory] .elrt-directory__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Practice introduction: text left, video module right */
.elrt-practice-video .elrt-practice-video__layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.elrt-practice-video__content,
.elrt-practice-video__media {
  min-width: 0;
}

.elrt-practice-video__content > :last-child {
  margin-bottom: 0;
}

/* Clearly defined video column */
.elrt-practice-video__media {
  padding: clamp(1rem, 2vw, 1.75rem);
  border: 1px solid #cbd9dc;
  border-top: 3px solid #286d86;
  border-radius: 4px;
  background: var(--elrt-ivory, #faf8f2);
}

.elrt-practice-video__media > h3 {
  margin: 0 0 1rem;
  color: #17394a;
  font-size: 1.5rem;
  font-weight: 400;
}

.elrt-practice-video__media .moduletable {
  margin: 0;
  padding: 0;
}

/* Video retains its natural proportions */
.elrt-practice-video .elrt-video {
  overflow: hidden;
  border: 1px solid #cbd9dc;
  border-radius: 4px;
  background: #17394a;
}

.elrt-practice-video .elrt-video video {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 991.98px) {
  .elrt-practice-video .elrt-practice-video__layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ELRT footer module v1.0. Append at the end of user.css. */

/* Let the module supply the background and spacing in Cassiopeia's footer. */
.container-footer:has(.elrt-footer) {
  margin-top: 0;
  padding: 0;
  background: #d49387;
  color: #17394a;
}
.container-footer:has(.elrt-footer) > .grid-child {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.container-footer .mod-custom:has(.elrt-footer),
.container-footer .moduletable:has(.elrt-footer) {
  width: 100%;
  margin: 0;
  padding: 0;
}

.elrt-footer {
  width: 100%;
  background: #d49387;
  color: #17394a;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
.elrt-footer,
.elrt-footer * {
  box-sizing: border-box;
}
.elrt-footer .elrt-footer__inner {
  width: min(1400px, calc(100% - 3rem));
  margin-inline: auto;
  padding-top: clamp(2rem, 4vw, 3.5rem);
}
.elrt-footer .elrt-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr .7fr 1.2fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: clamp(2rem, 3vw, 3rem);
}
.elrt-footer .elrt-footer__grid > * {
  min-width: 0;
}
.elrt-footer .elrt-footer__brand {
  margin: 0 0 1.25rem;
  color: #17394a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
}
.elrt-footer address {
  margin: 0;
  color: inherit;
  font-style: normal;
}
.elrt-footer .elrt-footer__heading {
  margin: 0 0 1.1rem;
  color: #17394a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
}
.elrt-footer a,
.container-footer .elrt-footer a {
  color: #17394a;
  text-decoration: none;
  text-underline-offset: .2em;
}
.elrt-footer a:hover,
.container-footer .elrt-footer a:hover {
  color: #17394a;
  text-decoration: underline;
}
.elrt-footer a:focus-visible {
  outline: 2px solid #17394a;
  outline-offset: 5px;
  border-radius: 2px;
}
.elrt-footer .elrt-footer__nav ul {
  display: grid;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.elrt-footer .elrt-footer__nav li {
  margin: 0;
  padding: 0;
}
.elrt-footer .elrt-footer__nav a {
  display: inline-block;
  padding-block: .15rem;
}
.elrt-footer .elrt-footer__email {
  display: inline-flex;
  align-items: flex-start;
  gap: .65rem;
  max-width: 100%;
}
.elrt-footer .elrt-footer__email > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.elrt-footer .elrt-footer__email-icon {
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1.25;
}
.elrt-footer .elrt-footer__instagram-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  margin-top: 1.5rem;
  padding: .8rem 1.25rem;
  border: 1px dashed rgba(23, 57, 74, .65);
  border-radius: 4px;
  color: #17394a;
  font-size: .875rem;
}
.elrt-footer .elrt-footer__instagram-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.5rem;
}
.elrt-footer .elrt-footer__instagram-link img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.elrt-footer .elrt-footer__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(23, 57, 74, .3);
  font-size: .875rem;
}
.elrt-footer .elrt-footer__base p {
  margin: 0;
}
.elrt-footer .elrt-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}
.elrt-footer .elrt-footer__legal a {
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .elrt-footer .elrt-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .elrt-footer .elrt-footer__contact {
    grid-column: 1 / -1;
  }
}
@media (max-width: 575.98px) {
  .elrt-footer .elrt-footer__inner {
    width: calc(100% - 2rem);
  }
  .elrt-footer .elrt-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .elrt-footer .elrt-footer__contact {
    grid-column: auto;
  }
  .elrt-footer .elrt-footer__base {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* Footer: three columns above, legal row below */
.elrt-footer,
.elrt-footer .elrt-footer__inner {
  display: block;
}

.elrt-footer .elrt-footer__grid,
.elrt-footer .elrt-footer__base {
  width: 100%;
}
/* ELRT header menu refinement v1.0
 * Append at the END of the child template's user.css.
 * For the native mod-menu__sub markup used by this ELRT site.
 * Retains the existing header background and menu open/close behaviour.
 */

/* Main menu links, parent headings and separate dropdown toggle buttons. */
.container-header .navbar .mod-menu > li > a,
.container-header .navbar .mod-menu > li > button,
.container-header .navbar .mod-menu > li > .nav-header,
.container-header .navbar .mod-menu > li > button .mod-menu__heading {
  color: #fff !important;
}
.container-header .navbar .mod-menu > li > a:hover,
.container-header .navbar .mod-menu > li > a:focus,
.container-header .navbar .mod-menu > li.active > a,
.container-header .navbar .mod-menu > li.current > a,
.container-header .navbar .mod-menu > li > button:hover,
.container-header .navbar .mod-menu > li > button:focus,
.container-header .navbar .mod-menu > li > button[aria-expanded="true"] {
  color: #fff !important;
}
.container-header .navbar .mod-menu > li > button .icon-chevron-down {
  color: #fff !important;
}
.container-header .navbar .mod-menu > li.active > a,
.container-header .navbar .mod-menu > li.current > a {
  border-bottom-color: #fff;
}
.container-header .navbar .mod-menu > li > a:focus-visible,
.container-header .navbar .mod-menu > li > button:focus-visible,
.container-header .navbar .navbar-toggler:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

/* Roomier dropdown panels. Do not set display: the menu script controls it. */
.container-header .navbar .mod-menu .mod-menu__sub {
  box-sizing: border-box;
  padding: .5rem;
  border: 1px solid #d4e0e4;
  border-top: 3px solid #d49387;
  border-radius: 0 0 6px 6px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 57, 74, .16);
  font-size: .9375rem;
  line-height: 1.5;
}
.container-header .navbar .mod-menu .mod-menu__sub > li {
  margin: 0;
  padding: 0;
}
.container-header .navbar .mod-menu .mod-menu__sub > li + li {
  border-top: 1px solid #edf1f2;
}
.container-header .navbar .mod-menu .mod-menu__sub > li > a,
.container-header .navbar .mod-menu .mod-menu__sub > li > button,
.container-header .navbar .mod-menu .mod-menu__sub > li > .nav-header {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: .85rem 1rem;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #17394a !important;
  font: inherit;
  line-height: 1.5;
  text-align: left;
  text-transform: uppercase;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: break-word;
}
.container-header .navbar .mod-menu .mod-menu__sub .mod-menu__heading {
  color: inherit !important;
}
.container-header .navbar .mod-menu .mod-menu__sub > li > a:hover,
.container-header .navbar .mod-menu .mod-menu__sub > li > button:hover,
.container-header .navbar .mod-menu .mod-menu__sub > li.active > a,
.container-header .navbar .mod-menu .mod-menu__sub > li.current > a,
.container-header .navbar .mod-menu .mod-menu__sub > li > a[aria-current="page"] {
  background: #eaf2f5;
  color: #17394a !important;
}
.container-header .navbar .mod-menu .mod-menu__sub > li > a:focus-visible,
.container-header .navbar .mod-menu .mod-menu__sub > li > button:focus-visible {
  outline: 2px solid #17394a;
  outline-offset: -3px;
  background: #eaf2f5;
}

/* Mobile menu toggle on the blue header. */
.container-header .navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, .65);
  color: #fff !important;
}
.container-header .navbar .navbar-toggler .icon-menu {
  color: inherit !important;
}

@media (min-width: 768px) {
  .container-header .navbar .mod-menu > li > .mod-menu__sub {
    width: 22rem;
    min-width: 22rem;
    max-width: calc(100vw - 2rem);
  }

  /* Keep dropdowns at the right end of the navigation inside the viewport. */
  .container-header .navbar .mod-menu > li:nth-last-child(-n+2) > .mod-menu__sub {
    right: 0;
    left: auto;
  }
}

@media (max-width: 767.98px) {
  .container-header .navbar .mod-menu .mod-menu__sub {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: .5rem 0 .75rem;
    box-shadow: none;
  }
}
/* Wider, translucent hero introduction */
.elrt-homepage .elrt-hero__panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 820px;
  background: rgba(250, 248, 242, 0.7);
}

/* Three evenly aligned buttons */
.elrt-homepage .elrt-hero__panel .elrt-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.elrt-homepage .elrt-hero__panel .elrt-actions .elrt-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  text-align: center;
}

/* Stack buttons on smaller screens */
@media (max-width: 767.98px) {
  .elrt-homepage .elrt-hero__panel .elrt-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Five services across */
.elrt-services.elrt-services--five .elrt-grid--5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.elrt-services.elrt-services--five .elrt-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.25rem 1rem;
}

.elrt-services.elrt-services--five .elrt-card__illustration {
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0 auto 1.25rem;
  object-fit: contain;
}

.elrt-services.elrt-services--five .elrt-card h2 {
  font-size: 1.25rem;
  line-height: 1.3;
}

.elrt-services.elrt-services--five .elrt-card .elrt-link {
  margin-top: auto;
  padding-top: 1rem;
}

/* Smaller screens */
@media (max-width: 1100px) {
  .elrt-services.elrt-services--five .elrt-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .elrt-services.elrt-services--five .elrt-grid--5 {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Wider, translucent hero introduction */
.elrt-homepage .elrt-hero__panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 820px;
  background: rgba(250, 248, 242, 0.9);
}

/* Three evenly aligned buttons */
.elrt-homepage .elrt-hero__panel .elrt-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.elrt-homepage .elrt-hero__panel .elrt-actions .elrt-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  text-align: center;
}

/* Stack buttons on smaller screens */
@media (max-width: 767.98px) {
  .elrt-homepage .elrt-hero__panel .elrt-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Mobile navigation: blue text on a white panel */
@media (max-width: 767.98px) {

  .container-header .navbar .navbar-collapse {
    background: #fff;
    color: #17394a;
  }

  .container-header .navbar .navbar-collapse .mod-menu > li > a,
  .container-header .navbar .navbar-collapse .mod-menu > li > button,
  .container-header .navbar .navbar-collapse .mod-menu > li > .nav-header,
  .container-header .navbar .navbar-collapse .mod-menu > li > button .mod-menu__heading,
  .container-header .navbar .navbar-collapse .mod-menu > li > button .icon-chevron-down {
    color: #17394a !important;
  }

  /* Current page and hover states */
  .container-header .navbar .navbar-collapse .mod-menu > li.active > a,
  .container-header .navbar .navbar-collapse .mod-menu > li.current > a,
  .container-header .navbar .navbar-collapse .mod-menu > li > a:hover,
  .container-header .navbar .navbar-collapse .mod-menu > li > button:hover {
    color: #17394a !important;
    background: #eaf2f5;
    border-bottom-color: #17394a;
  }

  /* Visible hamburger icon on its white button */
  .container-header .navbar .navbar-toggler {
    background: #fff;
    border-color: #d4e0e4;
    color: #17394a !important;
  }

  .container-header .navbar .navbar-toggler .icon-menu {
    color: #17394a !important;
  }

  /* Keyboard focus */
  .container-header .navbar .navbar-collapse .mod-menu a:focus-visible,
  .container-header .navbar .navbar-collapse .mod-menu button:focus-visible {
    outline: 2px solid #17394a;
    outline-offset: -3px;
  }
}
/* Blog H1 headings */
.elrt-blog h1 {
  font-size: 1.5rem;
}
/* ELRT — Trainee Placement */
.elrt-placement {
  padding-block: clamp(2rem, 5vw, 5rem);
}

.elrt-placement__layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
}

.elrt-placement__content {
  position: relative;
  z-index: 2;
  grid-column: 1 / 8;
  grid-row: 1;
  margin-block: 2.5rem;
  padding: clamp(1.5rem, 3.5vw, 3.5rem);
  background: #faf8f3;
  border-left: 3px solid #b99a5b;
  box-shadow: 0 12px 35px rgb(23 57 74 / 7%);
}

.elrt-placement__content h1 {
  margin: 0 0 1.5rem;
  color: #17394a;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
}

.elrt-placement__content p {
  line-height: 1.8;
}

.elrt-placement__media {
  grid-column: 7 / -1;
  grid-row: 1;
  align-self: stretch;
  min-width: 0;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  background: #e8eff0;
}

.elrt-placement__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.elrt-placement__placeholder {
  display: grid;
  min-height: 520px;
  height: 100%;
  padding: 2rem;
  place-items: center;
  border: 1px dashed #8ba6af;
  color: #365d6c;
  text-align: center;
}

.elrt-placement__contact {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #deded5;
}

.elrt-placement__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 100%;
  padding: 0.9rem 1.35rem;
  border: 2px solid #b99a5b;
  background: #17394a;
  color: #fff;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.elrt-placement__button:hover {
  background: #285c70;
  color: #fff;
  text-decoration: none;
}

.elrt-placement__button:focus-visible {
  outline: 3px solid #17394a;
  outline-offset: 4px;
}

@media (max-width: 991.98px) {
  .elrt-placement__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .elrt-placement__content,
  .elrt-placement__media {
    grid-column: 1;
    grid-row: auto;
    margin: 0;
  }

  .elrt-placement__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .elrt-placement__placeholder {
    min-height: 0;
  }
}
/* ELRT — balanced five-column service cards */
.elrt-services--five .elrt-grid--5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.25rem;
}

.elrt-services--five .elrt-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.35rem;
}

/* Consistent image area */
.elrt-services--five .elrt-card > a:first-child {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1;
  margin: 0 auto 1.5rem;
}

.elrt-services--five .elrt-card__illustration {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  object-fit: contain;
}

/* Reserve space for two-line headings */
.elrt-services--five .elrt-card h2 {
  min-height: 2.6em;
  margin: 0 0 1rem;
  font-size: 1.35rem;
  line-height: 1.3;
}

.elrt-services--five .elrt-card > p {
  margin: 0 0 1.5rem;
}

/* White buttons with a restrained blue-grey outline */
.elrt-services--five .elrt-card > .elrt-button {
  align-self: stretch;
  min-height: 44px;
  margin-top: auto;
  padding: 0.7rem 0.8rem;
  border: 1px solid #7f939c;
  border-radius: 3px;
  background: #fff;
  color: #245b6b;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.elrt-services--five .elrt-card > .elrt-button:hover {
  border-color: #245b6b;
  background: #edf4f6;
  color: #17394a;
}

.elrt-services--five .elrt-card > a:focus-visible {
  outline: 3px solid #17394a;
  outline-offset: 4px;
}

@media (max-width: 1199.98px) {
  .elrt-services--five .elrt-grid--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .elrt-services--five .elrt-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .elrt-services--five .elrt-grid--5 {
    grid-template-columns: minmax(0, 1fr);
  }

  .elrt-services--five .elrt-card h2 {
    min-height: 0;
  }
}
/* ELRT — prevent OS Services Booking affecting header buttons */
body.com_osservicesbooking .container-header .mod-menu__toggle-sub {
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
}

/* OS Services Booking — four-column therapist listing */
body.com_osservicesbooking.view-listemployee #employees.grid-view {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.5rem;
}

body.com_osservicesbooking.view-listemployee
#employees.grid-view > .service-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: auto;
  margin: 0;
}

body.com_osservicesbooking.view-listemployee
#employees.grid-view > .service-item > a {
  display: block;
}

body.com_osservicesbooking.view-listemployee
#employees.grid-view > .service-item > a > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
}

body.com_osservicesbooking.view-listemployee
#employees.grid-view .service-content {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Tablet */
@media (max-width: 1199.98px) {
  body.com_osservicesbooking.view-listemployee #employees.grid-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  body.com_osservicesbooking.view-listemployee #employees.grid-view {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ELRT — mobile menu spacing refinement */
@media (max-width: 1199.98px) {

  .container-header .navbar .navbar-collapse {
    padding: .75rem var(--elrt-gutter, 1.25rem) 1.25rem;
    background: #fff;
    color: #17394a;
  }

  .container-header .navbar .navbar-collapse > .mod-menu {
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: stretch;
  }

  .container-header .navbar .navbar-collapse .mod-menu > li {
    width: 100%;
    margin: 0;
    padding: .2rem 0;
    border-bottom: 1px solid #e5edef;
  }

  /* Equal spacing for links and dropdown buttons */
  .container-header .navbar .navbar-collapse .mod-menu > li > a,
  .container-header .navbar .navbar-collapse .mod-menu > li > button,
  .container-header .navbar .navbar-collapse .mod-menu > li > .nav-header {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 56px;
    gap: 1rem;
    margin: 0;
    padding: .9rem .75rem;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #17394a !important;
    font: inherit;
    line-height: 1.5;
    text-align: left;
    text-decoration: none;
    white-space: normal;
  }

  /* Remove extra spacing inside dropdown labels */
  .container-header .navbar .navbar-collapse
  .mod-menu > li > button .mod-menu__heading {
    margin: 0;
    padding: 0;
    color: inherit !important;
    font: inherit;
    line-height: inherit;
  }

  .container-header .navbar .navbar-collapse
  .mod-menu > li > button .icon-chevron-down {
    flex: 0 0 auto;
    margin-inline-start: auto;
    color: #17394a !important;
  }

  /* Full-width active and hover states */
  .container-header .navbar .navbar-collapse .mod-menu > li > a:hover,
  .container-header .navbar .navbar-collapse .mod-menu > li > button:hover,
  .container-header .navbar .navbar-collapse .mod-menu > li.active > a,
  .container-header .navbar .navbar-collapse .mod-menu > li.current > a,
  .container-header .navbar .navbar-collapse
  .mod-menu > li > button[aria-expanded="true"] {
    background: #eaf2f5;
    text-decoration: none;
  }

  /* Dropdowns sit neatly beneath their parent */
  .container-header .navbar .navbar-collapse .mod-menu .mod-menu__sub {
    position: static;
    inset: auto;
    transform: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: .25rem 0 .75rem;
    padding: .35rem;
    border: 1px solid #d4e0e4;
    border-radius: 4px;
    background: #f7fafb;
    box-shadow: none;
  }

  .container-header .navbar .navbar-collapse
  .mod-menu .mod-menu__sub > li > a {
    display: block;
    min-height: 48px;
    padding: .8rem .9rem;
    color: #17394a !important;
    line-height: 1.5;
    white-space: normal;
  }

  .container-header .navbar .navbar-collapse .mod-menu a:focus-visible,
  .container-header .navbar .navbar-collapse .mod-menu button:focus-visible {
    outline: 2px solid #17394a;
    outline-offset: -3px;
  }
}
@media (max-width: 1199.98px) {
  .container-header .navbar .navbar-collapse .mod-menu .mod-menu__sub {
    padding-bottom: .85rem;
    margin-bottom: 1rem;
  }
}
.container-component>:first-child, .container-sidebar-left>:first-child, .container-sidebar-right>:first-child, .container-component>*+*, .container-sidebar-left>*+*, .container-sidebar-right>*+* {
    margin-top: 0;
}