/**
 * BZM site template.
 * Builds on Joomla's Bootstrap 5 (bootstrap.css asset), so component
 * markup (forms, tables, alerts, buttons) keeps working.
 */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
}

:root {
  /* Brand colours. The template style can override all four (and their
     -rgb twins) from its two colour pickers, see partials/setup.php. */
  --bzm-navy: #01325F;
  --bzm-navy-rgb: 1, 50, 95;
  --bzm-navy-deep: #00213F;
  --bzm-navy-deep-rgb: 0, 33, 63;
  --bzm-cyan: #1ABCEA;
  --bzm-cyan-rgb: 26, 188, 234;
  --bzm-cyan-dark: #0A7FA6;   /* accent that passes contrast on white */
  --bzm-cyan-dark-rgb: 10, 127, 166;
  --bzm-paper: #FFFFFF;
  --bzm-mist: #EEF3F7;
  --bzm-rule: #D7E2EB;
  --bzm-muted: #51667C;
  --bzm-gutter: 28px;
  --bzm-header-h: 96px;
  --bzm-header-h-scrolled: 68px;
  --bzm-logo-h: 52px;
  --bzm-logo-h-scrolled: 40px;

  /* Bootstrap */
  --bs-body-font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--bzm-navy);
  --bs-body-color-rgb: var(--bzm-navy-rgb);
  --bs-heading-color: var(--bzm-navy);
  --bs-link-color: var(--bzm-cyan-dark);
  --bs-link-color-rgb: var(--bzm-cyan-dark-rgb);
  --bs-link-hover-color: var(--bzm-navy);
  --bs-link-hover-color-rgb: var(--bzm-navy-rgb);
  --bs-primary: var(--bzm-navy);
  --bs-primary-rgb: var(--bzm-navy-rgb);
  --bs-border-color: var(--bzm-rule);
  --bs-border-radius: 6px;
}

body {
  background: var(--bzm-paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html { scroll-behavior: smooth; }
::selection { background: var(--bzm-cyan); color: var(--bzm-navy-deep); }
a,
.btn { transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
img { max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-stretch: 87%; font-weight: 700; }
h4 { font-size: 1.3rem; font-stretch: 87%; font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--bzm-cyan);
  outline-offset: 3px;
}

.btn-primary {
  --bs-btn-bg: var(--bzm-navy);
  --bs-btn-border-color: var(--bzm-navy);
  --bs-btn-hover-bg: var(--bzm-cyan);
  --bs-btn-hover-border-color: var(--bzm-cyan);
  --bs-btn-hover-color: var(--bzm-navy-deep);
  --bs-btn-active-bg: var(--bzm-cyan);
  --bs-btn-active-border-color: var(--bzm-cyan);
  --bs-btn-active-color: var(--bzm-navy-deep);
}
.btn-outline-primary {
  --bs-btn-color: var(--bzm-navy);
  --bs-btn-border-color: var(--bzm-navy);
  --bs-btn-hover-bg: var(--bzm-navy);
  --bs-btn-hover-border-color: var(--bzm-navy);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--bzm-navy);
  --bs-btn-active-border-color: var(--bzm-navy);
  --bs-btn-active-color: #fff;
}
.btn {
  font-weight: 600;
  font-stretch: 87%;
}

@media (max-width: 899.98px) {
  :root {
    --bzm-header-h: 72px;
    --bzm-header-h-scrolled: 60px;
    --bzm-logo-h: 40px;
    --bzm-logo-h-scrolled: 34px;
  }
}

.bzm-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--bzm-gutter);
}

.bzm-skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: #fff;
  color: var(--bzm-navy);
  padding: 10px 16px;
  border-radius: 6px;
}
.bzm-skip:focus { top: 16px; }

/* ---------- Header ----------
   Fixed at the top. Over a title image it starts transparent and turns
   navy once the page scrolls (.is-scrolled, set by template.js); it also
   gets a little shorter then. */

.bzm-header {
  --bzm-bar-h: var(--bzm-header-h);
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bzm-navy);
  color: #fff;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.has-hero .bzm-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
}
.bzm-header.is-scrolled,
.bzm-header.is-open {
  --bzm-bar-h: var(--bzm-header-h-scrolled);
  background: var(--bzm-navy);
  box-shadow: 0 6px 24px rgba(var(--bzm-navy-deep-rgb), .3);
}
.bzm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--bzm-bar-h);
  transition: min-height .3s ease;
}
.bzm-logo img {
  display: block;
  height: var(--bzm-logo-h);
  width: auto;
  max-width: 60vw;
  transition: height .3s ease;
}
.is-scrolled .bzm-logo img,
.is-open .bzm-logo img { height: var(--bzm-logo-h-scrolled); }

/* Anchors land below the fixed header */
:target { scroll-margin-top: calc(var(--bzm-header-h-scrolled) + 16px); }

/* Main menu: core mod_menu markup. Joomla's menu script toggles
   submenus (button[aria-expanded] + ul[aria-hidden]) on click and keys. */
.bzm-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bzm-nav .mod-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
}
.bzm-nav li { position: relative; }
.bzm-nav li.parent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.bzm-nav a,
.bzm-nav .mod-menu__toggle-sub,
.bzm-nav .mod-menu__separator {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  border: 0;
  background: none;
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  font-stretch: 87%;
  font-size: 1.05rem;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s ease;
}
.bzm-nav .mod-menu__heading { font: inherit; }
.bzm-nav a:hover,
.bzm-nav .mod-menu__toggle-sub:hover { color: var(--bzm-cyan); }
.bzm-nav .current > a,
.bzm-nav .active > a {
  text-decoration: underline;
  text-decoration-color: var(--bzm-cyan);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}
.bzm-nav .mod-menu__toggle-sub .icon-chevron-down {
  margin-inline-start: .4rem;
  font-size: .7em;
  transition: transform .2s ease;
}
.bzm-nav .mod-menu__toggle-sub[aria-expanded="true"] .icon-chevron-down { transform: rotate(180deg); }
.bzm-nav a + .mod-menu__toggle-sub { padding-left: 2px; }
/* Third level has no toggle in core: always show it inside its parent. */
.bzm-nav .mod-menu__sub .mod-menu__sub {
  display: block;
  padding-left: 14px;
}

/* Desktop: dropdowns fade in on hover/focus or via the toggle */
@media (min-width: 900px) {
  .bzm-nav .mod-menu > li > .mod-menu__sub {
    display: block;
    position: absolute;
    top: 100%;
    left: -18px;
    min-width: 240px;
    padding: 10px 0;
    background: var(--bzm-navy);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(var(--bzm-navy-deep-rgb), .38);
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .bzm-nav .mod-menu > li:nth-last-child(-n+2) > .mod-menu__sub {
    left: auto;
    right: -18px;
  }
  .bzm-nav .mod-menu > li:hover > .mod-menu__sub,
  .bzm-nav .mod-menu > li:focus-within > .mod-menu__sub,
  .bzm-nav .mod-menu > li > .mod-menu__sub[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .bzm-nav .mod-menu__sub a {
    display: block;
    padding: 8px 18px;
    font-size: 1rem;
    white-space: normal;
  }
  .bzm-nav-toggle { display: none; }
}

/* Burger button: three bars that turn into an X */
.bzm-nav-toggle {
  position: relative;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.bzm-nav-toggle__bars,
.bzm-nav-toggle__bars::before,
.bzm-nav-toggle__bars::after {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, top .25s ease, background-color .1s ease .1s;
}
.bzm-nav-toggle__bars { top: 23px; }
.bzm-nav-toggle__bars::before,
.bzm-nav-toggle__bars::after { content: ""; left: 0; }
.bzm-nav-toggle__bars::before { top: -7px; }
.bzm-nav-toggle__bars::after { top: 7px; }
.bzm-nav-toggle[aria-expanded="true"] .bzm-nav-toggle__bars { background-color: transparent; transition-delay: 0s; }
.bzm-nav-toggle[aria-expanded="true"] .bzm-nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.bzm-nav-toggle[aria-expanded="true"] .bzm-nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* Mobile: the menu is a full-height panel under the header bar that
   fades and slides in; the page behind it doesn't scroll (html.bzm-menu-open).
   Submenus open in place via their toggle. */
@media (max-width: 899.98px) {
  .bzm-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - var(--bzm-bar-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px var(--bzm-gutter) 32px;
    background: var(--bzm-navy);
    border-top: 1px solid rgba(255, 255, 255, .12);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .bzm-header.is-open .bzm-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .bzm-nav .mod-menu { display: block; }
  .bzm-nav .mod-menu > li {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .3s ease, transform .3s ease;
  }
  .bzm-header.is-open .bzm-nav .mod-menu > li { opacity: 1; transform: none; }
  .bzm-header.is-open .bzm-nav .mod-menu > li:nth-child(2) { transition-delay: .04s; }
  .bzm-header.is-open .bzm-nav .mod-menu > li:nth-child(3) { transition-delay: .08s; }
  .bzm-header.is-open .bzm-nav .mod-menu > li:nth-child(4) { transition-delay: .12s; }
  .bzm-header.is-open .bzm-nav .mod-menu > li:nth-child(n+5) { transition-delay: .16s; }
  .bzm-nav a,
  .bzm-nav .mod-menu__toggle-sub,
  .bzm-nav .mod-menu__separator {
    padding: 15px 0;
    font-size: 1.3rem;
    white-space: normal;
  }
  .bzm-nav .mod-menu > li > button:first-child { flex: 1; justify-content: space-between; }
  .bzm-nav a + .mod-menu__toggle-sub {
    margin-left: auto;
    padding: 15px 4px 15px 16px;
  }
  .bzm-nav li.parent > .mod-menu__sub {
    flex-basis: 100%;
    padding: 0 0 14px 16px;
  }
  /* Submenus fade in where the browser can animate display */
  .bzm-nav .mod-menu > li > .mod-menu__sub {
    transition: opacity .2s ease, transform .2s ease, display .2s allow-discrete;
  }
  @starting-style {
    .bzm-nav .mod-menu > li > .mod-menu__sub[aria-hidden="false"] {
      opacity: 0;
      transform: translateY(-6px);
    }
  }
  .bzm-nav .mod-menu > li > .mod-menu__sub[aria-hidden="true"] {
    display: none;
    opacity: 0;
  }
  .bzm-nav .mod-menu__sub a {
    padding: 10px 0;
    font-size: 1.1rem;
    font-weight: 500;
  }
}
html.bzm-menu-open { overflow: hidden; }

/* ---------- Title image ---------- */

.bzm-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(92vh, 860px);
  padding: calc(var(--bzm-header-h) + 32px) 0 48px;
  background: var(--bzm-navy);
  color: #fff;
  overflow: hidden;
}
.bzm-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.bzm-hero--top .bzm-hero__img { object-position: center 15%; }
.bzm-hero--bottom .bzm-hero__img { object-position: center 85%; }
.bzm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(var(--bzm-navy-deep-rgb), calc(.6 * var(--bzm-overlay))) 0%,
    rgba(var(--bzm-navy-deep-rgb), calc(.05 * var(--bzm-overlay))) 25%,
    rgba(var(--bzm-navy-deep-rgb), calc(.5 * var(--bzm-overlay))) 60%,
    rgba(var(--bzm-navy-deep-rgb), min(.95, calc(.9 * var(--bzm-overlay)))) 100%);
}
.bzm-hero { --bzm-overlay: 1; }
.bzm-hero--overlay-light { --bzm-overlay: .6; }
.bzm-hero--overlay-strong { --bzm-overlay: 1.4; }
.bzm-hero__text { position: relative; z-index: 1; }
.bzm-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  animation: bzm-rise .9s cubic-bezier(.2, .7, .2, 1) .5s both;
}
.bzm-hero__buttons .btn {
  padding: .75rem 1.5rem;
  border-radius: 999px;
  font-size: 1.05rem;
}
.bzm-hero__buttons .btn-accent {
  background: var(--bzm-cyan);
  border-color: var(--bzm-cyan);
  color: var(--bzm-navy-deep);
}
.bzm-hero__buttons .btn-accent:hover,
.bzm-hero__buttons .btn-accent:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--bzm-navy-deep);
}
.bzm-hero__buttons .btn-ghost {
  border: 2px solid rgba(255, 255, 255, .75);
  color: #fff;
}
.bzm-hero__buttons .btn-ghost:hover,
.bzm-hero__buttons .btn-ghost:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--bzm-navy);
}
.bzm-hero__img { animation: bzm-hero-settle 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.bzm-hero__title,
.bzm-hero__sub { animation: bzm-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.bzm-hero__title { animation-delay: .15s; }
.bzm-hero__sub { animation-delay: .35s; }
/* Entrance switched off in the module */
.bzm-hero--static .bzm-hero__img,
.bzm-hero--static .bzm-hero__title,
.bzm-hero--static .bzm-hero__sub,
.bzm-hero--static .bzm-hero__buttons { animation: none; }
@keyframes bzm-rise {
  from { opacity: 0; transform: translateY(24px); }
}
@keyframes bzm-hero-settle {
  from { transform: scale(1.06); }
}
.bzm-hero__title {
  margin: 0;
  color: #fff;
  font-weight: 800;
  font-stretch: 125%;
  line-height: .86;
  letter-spacing: -.02em;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
}
.bzm-hero__sub {
  margin: 22px 0 0;
  max-width: 60ch;
  font-weight: 600;
  font-stretch: 75%;
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  line-height: 1.15;
}
@media (max-width: 899.98px) {
  .bzm-hero { min-height: min(86vh, 680px); padding-bottom: 36px; }
}

/* ---------- Page content ---------- */

.bzm-main { flex: 1 0 auto; padding: 56px 0 80px; }
.bzm-main--empty { padding: 0; }
.bzm-main--empty #system-message-container:not(:empty) { padding-top: 32px; }

.bzm-has-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
}
@media (max-width: 899.98px) {
  .bzm-has-sidebar { grid-template-columns: 1fr; }
}

.bzm-content { min-width: 0; }
.bzm-content img { max-width: 100%; height: auto; }
.bzm-content table { max-width: 100%; }
.bzm-content .table-responsive,
.bzm-content .com-content-article__body { overflow-x: auto; }
.bzm-content .page-header h1,
.bzm-content .page-header h2 { margin-bottom: .6em; }
.bzm-content .com-content-article__body,
.bzm-content .item-page > p { max-width: 75ch; }
.bzm-content blockquote {
  border-left: 4px solid var(--bzm-cyan);
  padding-left: 1rem;
  color: var(--bzm-muted);
}

.breadcrumb { font-size: .95rem; margin-bottom: 24px; }

/* Joomla article info line */
.article-info { color: var(--bzm-muted); font-size: .95rem; }

/* ---------- Forms (Joomla's control-group markup) ---------- */

.bzm-content .control-group { margin-bottom: 1.1rem; }
.bzm-content .control-label { margin-bottom: .35rem; font-weight: 600; }
.bzm-content .form-control,
.bzm-content .form-select {
  border-color: #B9CBDA;
  padding: .6rem .8rem;
}
.bzm-content .form-control:focus,
.bzm-content .form-select:focus {
  border-color: var(--bzm-cyan);
  box-shadow: 0 0 0 .2rem rgba(var(--bzm-cyan-rgb), .25);
}
.bzm-content .input-password-toggle {
  background: #fff;
  border-color: #B9CBDA;
  color: var(--bzm-navy);
}
.bzm-content .star { color: var(--bzm-cyan-dark); }
/* Joomla's validator appends its message inside the label: keep the label
   text on the left and the message small and red on the right. */
.bzm-content .control-label label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 12px;
}
.bzm-content .form-control-feedback {
  margin-left: auto;
  font-size: .875rem;
  font-weight: 400;
  color: var(--bs-form-invalid-color, #b02a37);
}
.bzm-content .form-control.invalid,
.bzm-content .form-select.invalid { border-color: var(--bs-form-invalid-border-color, #b02a37); }
.bzm-content .form-control.invalid:focus,
.bzm-content .form-select.invalid:focus { box-shadow: 0 0 0 .2rem rgba(176, 42, 55, .2); }
.bzm-content fieldset { margin-bottom: 1rem; }
.bzm-content legend { font-size: 1.4rem; font-weight: 700; font-stretch: 87%; }

/* Account pages (login, registration, reminders, profile): one narrow column */
.com_users .bzm-content { max-width: 560px; }
.bzm-auth { max-width: 400px; }
.bzm-auth h1 { margin-bottom: 1.5rem; }
.bzm-auth fieldset { margin: 0; }
.bzm-auth .star { display: none; } /* every field is required */
.bzm-auth__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  margin: -.25rem 0 1.25rem;
  font-size: .95rem;
}
.bzm-auth__row .form-check { margin: 0; }
.bzm-auth .bzm-auth__submit,
.bzm-auth .bzm-auth__extra { padding: .65rem 1rem; }
.bzm-auth__extra {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: .75rem;
}
/* Joomla's passkey button inlines an SVG without a size */
.bzm-auth__extra svg,
.bzm-auth__extra img {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
}
.bzm-auth__or {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0 0;
  color: var(--bzm-muted);
  font-size: .9rem;
}
.bzm-auth__or::before,
.bzm-auth__or::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--bzm-rule);
}
.bzm-auth__magic { margin-top: .75rem; }
.bzm-auth__magic > summary { list-style: none; cursor: pointer; }
.bzm-auth__magic > summary::-webkit-details-marker { display: none; }
.bzm-auth__magic[open] > summary { display: none; }
.bzm-auth__magic-form {
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--bzm-rule);
  border-radius: var(--bs-border-radius);
  background: var(--bzm-mist);
}
.bzm-auth__magic-form p { margin: 0 0 .75rem; font-size: .95rem; }
.bzm-auth__magic-form .control-group { margin-bottom: .75rem; }
.bzm-auth__remind { margin: 1.25rem 0 0; font-size: .95rem; }
.bzm-auth a:not(.btn) { color: var(--bzm-navy); }
.bzm-auth a:not(.btn):hover { color: var(--bzm-cyan-dark); }
.bzm-auth__register {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bzm-rule);
}
.bzm-auth__register p { margin: 0 0 .6rem; font-weight: 600; }
.com-users-logout .btn { min-width: 200px; }

/* ---------- Articles and news list ---------- */

.bzm-back { margin: 0 0 .75rem; font-weight: 600; }
.bzm-back a { color: var(--bzm-navy); text-decoration: none; }
.bzm-back a::before { content: "\2190\00a0"; }
.bzm-back a:hover { color: var(--bzm-cyan-dark); text-decoration: underline; }
.item-page .page-header h1,
.item-page .page-header h2 { margin-bottom: .4rem; }
.article-info {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  margin: 0 0 1.75rem;
}
.article-info-term { display: none; }
.article-info dd { margin: 0; }
.article-info [class^="icon-"],
.article-info [class*=" icon-"] { display: none; }
.com-content-article__body { font-size: 1.1rem; }
.com-content-article__body > :first-child { margin-top: 0; }
.com-content-article__body img { border-radius: 6px; }

.blog-items { display: block; }
.blog-items .blog-item {
  padding: 28px 0;
  border-top: 1px solid var(--bzm-rule);
}
.blog-items .blog-item:first-child { border-top: 2px solid var(--bzm-navy); }
.blog-item .page-header h2 {
  margin: 0 0 .3rem;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-stretch: 87%;
  font-weight: 700;
}
.blog-item .page-header h2 a { color: inherit; text-decoration: none; }
.blog-item .page-header h2 a:hover { color: var(--bzm-cyan-dark); text-decoration: underline; }
.blog-item .article-info { margin-bottom: .75rem; }
.blog-item .item-content > :not(.page-header):not(.article-info):not(.readmore) { max-width: 70ch; }
.blog-item .readmore { margin: .5rem 0 0; }
.blog-item .readmore .btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--bzm-navy);
  font-weight: 600;
  text-decoration: underline;
}
.blog-item .readmore .btn:hover { color: var(--bzm-cyan-dark); }
.blog-item .readmore [class^="icon-"] { display: none; }
.com-content-category-blog__pagination,
.pagination { margin-top: 2rem; }

/* ---------- Homepage blocks ---------- */

.bzm-block { padding: 80px 0; }
.bzm-block + .bzm-block { padding-top: 0; }
.bzm-block--photos,
.bzm-block + .bzm-block--photos { padding-top: 80px; }

.bzm-block__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  margin-bottom: 28px;
}
.bzm-block__head h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
}
.bzm-more {
  font-weight: 600;
  white-space: nowrap;
  color: inherit;
}
.bzm-more:hover { color: var(--bzm-cyan-dark); }

.bzm-news--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px 48px;
}
.bzm-news__item time { color: var(--bzm-muted); font-size: .95rem; }
.bzm-news__item h3 { margin: 4px 0 8px; }
.bzm-news__item h3 a { color: inherit; text-decoration: none; }
.bzm-news__item h3 a:hover { color: var(--bzm-cyan-dark); text-decoration: underline; }
.bzm-news__item p { max-width: 62ch; margin: 0; }

.bzm-block--photos {
  background: var(--bzm-navy-deep);
  color: #fff;
}
.bzm-block--photos h2 { color: #fff; }
.bzm-block--photos .bzm-more:hover { color: var(--bzm-cyan); }

.bzm-reel {
  display: grid;
  gap: 10px;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 220px;
}
.bzm-reel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.bzm-reel img:first-child { grid-row: span 2; }
.bzm-reel--1 { grid-template-columns: 1fr; grid-auto-rows: 440px; }
.bzm-reel--1 img:first-child { grid-row: auto; }
.bzm-reel--2 { grid-template-columns: 2fr 1fr; }
.bzm-reel--3 { grid-template-columns: 2fr 1fr; }
.bzm-reel--4 { grid-template-columns: 2fr 1fr 1fr; }
.bzm-reel--4 img:last-child { grid-column: span 2; }
@media (max-width: 899.98px) {
  .bzm-block { padding: 56px 0; }
  .bzm-block--photos,
  .bzm-block + .bzm-block--photos { padding-top: 56px; }
  .bzm-reel,
  .bzm-reel--2,
  .bzm-reel--3,
  .bzm-reel--4 { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .bzm-reel img:first-child { grid-column: span 2; grid-row: auto; }
  .bzm-reel--1 { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .bzm-reel--1 img:first-child { grid-column: auto; }
  .bzm-reel--2 img:last-child,
  .bzm-reel--4 img:last-child { grid-column: span 2; }
}

/* Rundkurs: past hosts as a competition task (mod_bzmhome, block "route") */
.bzm-route {
  padding: 64px 0;
  background: var(--bzm-mist);
}
.bzm-route__grid {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) 6fr;
  gap: 48px;
  align-items: center;
}
.bzm-route h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1;
}
.bzm-route__lead { margin: 0 0 20px; max-width: 46ch; color: var(--bzm-muted); }
.bzm-route__years {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--bzm-navy);
  font-size: .95rem;
}
.bzm-route__years li {
  display: grid;
  grid-template-columns: 3.4em minmax(0, auto) auto 1fr;
  align-items: baseline;
  padding: 5px 6px 5px 12px;
  border-bottom: 1px solid var(--bzm-rule);
  transition: background-color .15s ease;
}
.bzm-route__years li[data-tp] { cursor: default; }
.bzm-route__years li:hover,
.bzm-route__years li:focus-visible,
.bzm-route__years li.is-active { background: #fff; }
.bzm-route__year {
  font-weight: 800;
  font-stretch: 75%;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: var(--bzm-cyan-dark);
}
.bzm-route__place {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bzm-route__place b { font-weight: 700; }
.bzm-route__club { margin-left: .5em; color: var(--bzm-muted); font-size: .88rem; }
.bzm-route__flag {
  margin-left: .5em;
  white-space: nowrap;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--bzm-rule);
  font-size: .75rem;
  font-weight: 600;
}
.bzm-route__years li.is-cancelled .bzm-route__year,
.bzm-route__years li.is-cancelled b { color: #8FA5B9; font-weight: 600; }
.bzm-route__years li.is-now {
  background: rgba(var(--bzm-cyan-rgb), .12);
  box-shadow: inset 3px 0 0 var(--bzm-cyan);
}
.bzm-route__years li.is-now:hover,
.bzm-route__years li.is-now:focus-visible,
.bzm-route__years li.is-now.is-active { background: rgba(var(--bzm-cyan-rgb), .2); }

.bzm-route__map { margin: 0; }
.bzm-route__map svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  overflow: visible;
}
.bzm-route__map figcaption {
  margin-top: 6px;
  font-size: .82rem;
  color: var(--bzm-muted);
  text-align: right;
}
.rt-grid { fill: none; stroke: #DCE6EE; stroke-width: 1; }
.rt-water { fill: none; stroke: #B7DCEF; stroke-linecap: round; stroke-linejoin: round; }
.rt-town circle { fill: #9AB0C4; }
.rt-town text { fill: #7F95AA; font-size: 24px; font-family: Archivo, sans-serif; }
.rt-leg {
  fill: none;
  stroke: var(--bzm-navy);
  stroke-width: 3.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.rt-tp circle.zone {
  fill: rgba(var(--bzm-cyan-rgb), .1);
  stroke: var(--bzm-cyan);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  transition: fill .2s ease, stroke-width .2s ease;
}
.rt-tp circle.dot { fill: var(--bzm-navy); }
.rt-tp text {
  font-family: Archivo, sans-serif;
  font-stretch: 75%;
  font-weight: 700;
  font-size: 36px;
  fill: var(--bzm-navy);
  paint-order: stroke;
  stroke: var(--bzm-mist);
  stroke-width: 6px;
  stroke-linejoin: round;
}
.rt-tp text .sub { font-weight: 500; font-size: 26px; fill: var(--bzm-muted); }
.rt-tp.is-active circle.zone { fill: rgba(var(--bzm-cyan-rgb), .32); stroke-width: 3; }
.rt-home circle.zone { stroke-width: 3; }
.rt-cancelled circle.zone { fill: none; stroke: #9AB0C4; }
.rt-cancelled circle.dot { fill: #9AB0C4; }
.rt-cancelled text { fill: #7F95AA; }
.rt-glider { fill: var(--bzm-navy); }

@media (max-width: 899.98px) {
  .bzm-route { padding: 48px 0; }
  .bzm-route__grid { grid-template-columns: 1fr; gap: 24px; }
  .bzm-route__map { order: -1; }
  .bzm-route__map svg { max-height: 380px; }
  /* the map is ~360px wide here: larger labels in map units */
  .rt-tp text { font-size: 44px; stroke-width: 8px; }
  .rt-tp text .sub { font-size: 30px; }
  .rt-town text { display: none; }
}

/* ---------- Footer ---------- */

.bzm-footer {
  background: var(--bzm-navy-deep);
  color: #C6D6E4;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 40px 0;
  font-size: .95rem;
}
.bzm-footer a { color: #fff; }
.bzm-footer a:hover { color: var(--bzm-cyan); }
.bzm-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px 48px;
}
.bzm-footer__about img {
  display: block;
  height: 40px;
  width: auto;
  margin-bottom: 12px;
}
.bzm-footer__about p { margin: 0; }
.bzm-footer__menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bzm-footer__menu a { display: inline-block; padding: 6px 0; }
.bzm-footer__modules { margin-top: 32px; }
.bzm-footer__legal {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .88rem;
}

/* ---------- Error page ---------- */

.bzm-error > * { max-width: 760px; }
.bzm-error__code {
  margin: 0;
  color: var(--bzm-cyan-dark);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
}
.bzm-error__debug { margin-top: 32px; overflow-x: auto; font-size: .85rem; }

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
  :root { --bzm-gutter: 16px; }
  .bzm-main { padding: 36px 0 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
