.language-discreet .mod-languages, .mod-languages { display:flex; flex-wrap:nowrap; align-items:center; margin:0; padding:0; list-style:none; background:transparent; border:0; }
.mod-languages li { margin:0; padding:0; background:transparent; border:0; }
.mod-languages li+li::before { content:"|"; margin:0 .45em; color:rgba(255,255,255,.35); font-size:11px; }
.mod-languages a, .mod-languages .lang-active a { display:inline-block; padding:0; font-size:11px; line-height:1.4; letter-spacing:.04em; text-transform:uppercase; text-decoration:none; color:rgba(255,255,255,.65); background:transparent !important; border:0 !important; box-shadow:none !important; }
.mod-languages .lang-active a { color:#fff; }
.mod-languages a:hover, .mod-languages a:focus { color:#fff; text-decoration:underline; }
.mod-languages img { display:none; }
div.mod-languages ul li.lang-active { background:transparent !important; }

/* Header: language switcher in the logo row, right-aligned (module 117, position menu). NOTE: with chrome "none" the module class suffix "language-discreet" is not rendered in the HTML; the live wrapper is div.mod-languages, so this targets that. Absolute so it adds no header height and does not push the logo down. */
.container-header { position: relative; }
.container-header div.mod-languages { position: absolute; top: 32px; right: 15px; z-index: 5; }

/* Header: logo slightly smaller (600x67 -> 525px wide, about 12.5% smaller) */
.container-header .navbar-brand img, .navbar-brand img, .brand-logo img { width: 525px; max-width: 100%; height: auto; }

/* Mobile header fix 2026-11-18: at ~375px the switcher overlapped the logo ("ES" on "PA" in PAUL). Desktop switcher measures ~163px wide, so on mobile it is capped at 120px and the logo shrunk to 210px, keeping the switcher absolute in the logo row at top-right, so there is clear blue space between the logo's right edge and "ES". Desktop rules above are unchanged. */
@media (max-width: 767.98px) {
  .container-header div.mod-languages { top: 12px !important; right: 12px !important; width: 120px !important; max-width: 120px !important; white-space: nowrap; }
  .container-header div.mod-languages ul.mod-languages { display: flex !important; flex-wrap: nowrap !important; justify-content: flex-end !important; gap: 0 !important; width: 120px !important; max-width: 120px !important; margin: 0 !important; padding: 0 !important; }
  .container-header .mod-languages li { flex: 0 1 auto !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; }
  .container-header .mod-languages li+li::before { margin: 0 .25em !important; font-size: 10px !important; }
  .container-header .mod-languages a, .container-header .mod-languages .lang-active a { padding: 0 !important; margin: 0 !important; font-size: 10px !important; letter-spacing: .02em !important; }
  .container-header .navbar-brand { max-width: 210px !important; padding-right: 0 !important; }
  .container-header .navbar-brand img { width: 210px !important; max-width: 210px !important; height: auto !important; }
}
@media (max-width: 360px) {
  /* Still holds at 320px: 180px logo + 105px switcher + 10px right edge + clear gap. */
  .container-header div.mod-languages { right: 10px !important; width: 105px !important; max-width: 105px !important; }
  .container-header div.mod-languages ul.mod-languages { width: 105px !important; max-width: 105px !important; }
  .container-header .navbar-brand { max-width: 180px !important; }
  .container-header .navbar-brand img { width: 180px !important; max-width: 180px !important; height: auto !important; }
}

/* Header search: friendlier - slimmer, pill-shaped, light subtle border. Same position and roughly same width. */
.container-header .container-search .form-control,
.container-header .mod-finder .form-control,
.container-header .container-search input[type="search"],
.container-header .container-search input[type="text"],
.container-header .mod-finder input[type="search"],
.container-header .mod-finder input[type="text"] {
  height: 34px;
  min-height: 0;
  padding: 0.2rem 1rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background-color: #fff;
  font-size: 0.95rem;
  box-shadow: none;
}
.container-header .container-search .form-control:focus,
.container-header .mod-finder .form-control:focus,
.container-header .container-search input:focus,
.container-header .mod-finder input:focus {
  border-color: #fff;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.container-header .container-search .btn,
.container-header .mod-finder .btn {
  border-radius: 999px;
}

/* Prevent horizontal drag / sideways scroll on mobile (2026-11-18): clip any horizontal overflow site-wide. overflow: clip is used so position: sticky / fixed elements keep working. */
html, body {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html, body {
    overflow-x: hidden;
  }
}


/* Footer trim — 2026-11-18: remove the ~120px empty blue band below the lowest footer content. Cassiopeia gives .footer .grid-child 2.5rem (40px) padding top/bottom, and footer module/form margins add more below the newsletter. Keep 28px below the lowest content, desktop and mobile. Colours, content and layout unchanged. */
.container-footer.footer,
.footer {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  min-height: 0 !important;
}
.footer .grid-child {
  padding-top: 2.5rem;
  padding-bottom: 28px !important;
  margin-bottom: 0 !important;
}
.footer .grid-child:not(:last-child) {
  padding-bottom: 0 !important;
}
.footer .grid-child + .grid-child {
  padding-top: 0 !important;
  padding-bottom: 28px !important;
}
.footer .moduletable,
.footer .mod-custom,
.footer .mod-footer,
.footer .mod-languages,
.footer form,
.footer .acymailing_module,
.footer .acymailing_form {
  margin-bottom: 0 !important;
}
.footer .moduletable > :last-child,
.footer .mod-custom > :last-child,
.footer form > :last-child {
  margin-bottom: 0 !important;
}
.footer p:last-child {
  margin-bottom: 0 !important;
}
/* Collapse any empty footer row/module so it adds no blue space. */
.footer .grid-child:empty,
.footer .moduletable:empty,
.footer > div:empty {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
}




/* Footer trim, desktop: bottom-align the footer columns. Cassiopeia centers .grid-child items, so the shorter column floats above the footer bottom and leaves extra blue below it. Bottom-aligning removes that offset, so the 28px padding above is the gap below the lowest content. */
@media (min-width: 992px) {
  .footer .grid-child {
    align-items: flex-end !important;
  }
}
/* Remove any trailing space inside the footer columns (newsletter form/module). */
.footer .grid-child > * {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.footer .grid-child > * > :last-child,
.footer .grid-child form > :last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}


/* Footer trim, part 2: the two footer columns carry their own bottom space below the visible content (the custom footer module has 20px bottom padding in its inline style, and the newsletter module has trailing space below its form). Remove it so only the 28px above remains below the lowest content. */
.footer .playful-footer-container,
.footer .playful-footer-links,
.footer .playful-footer-logo {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.footer form {
  padding-bottom: 0 !important;
}
.footer div[class*="phoca" i],
.footer div[id*="phoca" i] {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.footer div[class*="phoca" i] > :last-child,
.footer div[id*="phoca" i] > :last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Footer trim, final pass 2026-11-18: collapse the remaining empty band below the footer content (empty spacer elements and the custom footer's own padding), so only about 24px remains below the lowest content on desktop and mobile. */
.footer .grid-child { padding-bottom: 24px !important; }
.footer .playful-footer-container { padding-top: 0 !important; padding-bottom: 0 !important; }
.footer .grid-child > * { min-height: 0 !important; height: auto !important; }
.footer .grid-child form > :last-child { min-height: 0 !important; height: auto !important; }
.footer div:empty, .footer p:empty, .footer span:empty { display: none !important; }

/* Footer trim, final pass 2 (2026-11-18): a small strip still trails below the newsletter form (the form's trailing message area keeps top margin/padding). Collapse it so the blue ends about 24px below the lowest content. */
.footer form > :last-child { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; min-height: 0 !important; height: auto !important; }
.footer form [class*="message" i] { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; min-height: 0 !important; }
.footer .grid-child > * > :last-child { margin-top: 0 !important; padding-top: 0 !important; }

/* Footer trim, final pass 3 (2026-11-18): the newsletter column still carries about 26px of trailing space below its form (inside the Phoca module), so the grid-child bottom padding is reduced to 4px; together that leaves about 28-30px of blue below the lowest content. This supersedes the 28px/24px bottom padding set above. */
.footer .grid-child { padding-bottom: 4px !important; }
.footer .grid-child + .grid-child { padding-bottom: 4px !important; }


/* Footer section links on one line on desktop (2026-11-18): keep all seven pills on a single row at 992px and up; wrapping stays allowed below that width. */
@media (min-width: 992px) {
  .footer .playful-footer-links { display: flex !important; flex-wrap: nowrap !important; align-items: center !important; gap: 6px !important; }
  .footer .playful-footer-links a { padding: 8px 11px !important; font-size: 14px !important; white-space: nowrap !important; flex-shrink: 0 !important; }
}
