/*
Theme Name: Neonatology Modern
Theme URI: https://neonatology.org.ua/
Author: Neonatology migration build
Description: Editorial WordPress theme for the Association of Neonatologists of Ukraine.
Version: 2.11.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: neonatology-modern
*/

:root {
  --color-ink: #18232d;
  --color-ink-soft: #18232d;
  --color-muted: #5b6973;
  --color-line: #d6e2e8;
  --color-surface: #ffffff;
  --color-soft: #f4f8fa;
  --color-primary: #145a7a;
  --color-primary-dark: #103b53;
  --color-primary-soft: #e7f1f5;
  --color-header-blue: #2a6f8a;
  --color-header-blue-deep: #225f78;
  --color-secondary: #2f7f7b;
  --color-secondary-soft: #e7f2f1;
  --color-coral: #e59a62;
  --color-coral-soft: #fff3eb;
  --color-yellow: #f2c94c;
  --color-yellow-soft: #fff8de;
  --shadow-small: 0 10px 26px rgba(16, 59, 83, 0.08);
  --shadow-large: 0 24px 64px rgba(16, 59, 83, 0.14);
  --radius: 8px;
  --container: 1180px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--color-ink-soft);
  background: var(--color-soft);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: 0;
}

a {
  color: var(--color-primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--color-primary);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
iframe,
video,
embed,
object {
  max-width: 100%;
}

img {
  height: auto;
}

figure {
  margin: 0;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 12px;
  left: 12px;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  clip: auto;
  color: #fff;
  background: var(--color-primary-dark);
  border-radius: 6px;
}

.icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  vertical-align: -0.18em;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-main {
  width: 100%;
  min-width: 0;
  flex: 1;
}

/* Header */
.top-strip {
  color: rgba(255, 255, 255, 0.78);
  background: var(--color-header-blue-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.top-strip__inner {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.top-strip__identity {
  font-weight: 650;
}

.top-strip__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.top-strip a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.top-strip a:hover,
.top-strip a:focus {
  color: #fff;
}

.site-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(42, 111, 138, 0.98);
}

.site-header__inner {
  position: relative;
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  min-width: 268px;
  max-width: 330px;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand:hover,
.brand:focus {
  color: #fff;
}

.brand__mark,
.footer-brand__mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  color: #fff;
  background: var(--color-primary-dark);
  font-weight: 850;
  line-height: 1;
}

.brand__mark {
  width: 48px;
  height: 48px;
  font-size: 14px;
}

.brand__mark::after,
.footer-brand__mark::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--color-yellow);
  content: "";
}

.brand__logo,
.footer-brand__logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
}

.brand__logo {
  width: 50px;
  height: 50px;
}

.brand__logo img,
.footer-brand__logo img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transform: scale(1.18);
}

.brand__copy {
  min-width: 0;
}

.brand__title {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 780;
  line-height: 1.16;
}

.header-drawer {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.site-navigation {
  min-width: 0;
}

.primary-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu li {
  position: relative;
}

.primary-menu a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 9px;
  border-radius: 6px;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
}

.primary-menu > li > a {
  color: #fff;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
}

.primary-menu > li > a:hover,
.primary-menu > li > a:focus,
.primary-menu > .current-menu-item > a,
.primary-menu > .current-menu-ancestor > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.primary-menu > .menu-item-has-children > a {
  gap: 7px;
}

.primary-menu > .menu-item-has-children > a::after {
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.primary-menu .sub-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  z-index: 20;
  display: block;
  min-width: 240px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: var(--shadow-large);
  list-style: none;
  transform: translateY(4px);
  transition: opacity 140ms ease 320ms, visibility 0s linear 460ms, transform 140ms ease 320ms;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.primary-menu .sub-menu a {
  display: flex;
  width: 100%;
}

.submenu-toggle {
  display: none;
}

.header-actions,
.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-controls {
  display: none;
  margin-left: auto;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 7px;
  color: var(--color-ink);
  background: #fff;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  background: var(--color-soft);
}

.header-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 7px;
  color: #fff;
  background: transparent;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.header-action:hover,
.header-action:focus {
  color: var(--color-primary-dark);
  background: #fff;
}

.site-header__inner .icon-button {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  background: transparent;
}

.site-header__inner .icon-button:hover,
.site-header__inner .icon-button:focus {
  border-color: #fff;
  color: var(--color-primary-dark);
  background: #fff;
}

.site-header .brand__mark {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.menu-toggle__close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
  display: inline-flex;
}

.search-toggle--mobile {
  display: none;
}

.header-search {
  border-top: 1px solid var(--color-line);
  background: #fff;
  box-shadow: 0 14px 28px rgba(16, 59, 83, 0.09);
}

.header-search[hidden] {
  display: none;
}

.header-search__inner {
  display: flex;
  align-items: end;
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 20px;
}

.search-form {
  display: grid;
  flex: 1;
  gap: 7px;
}

.search-form__label {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.search-form__control {
  position: relative;
  display: flex;
  min-width: 0;
}

.search-form__control > .icon {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  color: var(--color-muted);
  transform: translateY(-50%);
}

.search-field {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 10px 120px 10px 44px;
  border: 1px solid #b6c9d3;
  border-radius: 7px;
  color: var(--color-ink);
  background: #fff;
}

.search-field:focus {
  border-color: var(--color-primary);
  outline: 2px solid rgba(20, 90, 122, 0.18);
  outline-offset: 0;
}

.search-submit {
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  padding: 0 18px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: var(--color-primary-dark);
  font-weight: 720;
  cursor: pointer;
}

/* Shared controls */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
}

.button--accent {
  color: #fff;
  background: var(--color-primary);
}

.button--accent:hover,
.button--accent:focus {
  color: #fff;
  background: var(--color-primary-dark);
}

.button--glass {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.button--glass:hover,
.button--glass:focus {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.button--outline {
  border-color: rgba(20, 90, 122, 0.38);
  color: var(--color-primary-dark);
  background: transparent;
}

.button--outline:hover,
.button--outline:focus {
  color: #fff;
  background: var(--color-primary-dark);
}

.button--dark {
  color: #fff;
  background: var(--color-ink);
}

.button--dark:hover,
.button--dark:focus {
  color: #fff;
  background: var(--color-primary-dark);
}

.button--light {
  color: var(--color-ink);
  background: #fff;
}

.button--light:hover,
.button--light:focus {
  color: var(--color-ink);
  background: var(--color-yellow);
}

.text-link,
.post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-primary-dark);
  font-size: 15px;
  font-weight: 760;
  text-decoration: none;
}

.text-link .icon,
.post-card__more .icon {
  transition: transform 150ms ease;
}

.text-link:hover .icon,
.text-link:focus .icon,
.post-card__more:hover .icon,
.post-card__more:focus .icon {
  transform: translateX(3px);
}

.eyebrow,
.section-kicker {
  display: block;
  margin: 0 0 12px;
  color: var(--color-secondary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section {
  padding: 76px 0;
}

.section--compact {
  padding: 0;
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr) auto;
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.section__head--simple {
  grid-template-columns: minmax(0, 1fr) auto;
}

.section__head h2,
.association-intro__content h2,
.resources-intro h2 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
}

.section__head p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
}

/* Hero */
.hero--photo {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(34, 95, 120, 0.94) 0%, rgba(42, 111, 138, 0.82) 48%, rgba(76, 145, 169, 0.56) 100%),
    var(--hero-image),
    var(--color-header-blue);
  background-position: center;
  background-size: cover;
}

.hero--photo::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary) 0 56%, var(--color-secondary) 56% 86%, var(--color-yellow) 86% 96%, var(--color-coral) 96% 100%);
  content: "";
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 56px;
  align-items: center;
  min-height: 570px;
  padding: 72px 0 86px;
}

.hero__content {
  max-width: 790px;
}

.hero .eyebrow {
  color: #c5e8f2;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 62px;
  font-weight: 600;
  line-height: 0.99;
  text-wrap: balance;
}

.hero__lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.87);
  font-size: 21px;
  line-height: 1.52;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__aside {
  display: grid;
  align-self: center;
  align-content: center;
}

.hero__metrics {
  display: grid;
  align-content: end;
  gap: 12px;
  border: 0;
  background: transparent;
}

.hero-metric {
  position: relative;
  isolation: isolate;
  display: grid;
  overflow: hidden;
  justify-items: center;
  gap: 6px;
  padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 18px;
  background: rgba(34, 95, 120, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    0 16px 34px rgba(16, 59, 83, 0.2);
  text-align: center;
  transform-origin: right center;
}

.hero-metric::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 16% -14%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.08) 20%, transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 38%, rgba(169, 216, 229, 0.06));
  content: "";
  pointer-events: none;
}

.hero-metric strong {
  position: relative;
  z-index: 1;
  display: inline-block;
  min-width: 4ch;
  color: #fff;
  font-family: var(--font-display);
  font-size: 44px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(16, 59, 83, 0.5);
  transform-origin: center bottom;
}

.hero-metric span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  text-shadow: 0 1px 10px rgba(16, 59, 83, 0.62);
}

.has-js .hero__metrics[data-statistics]:not(.is-visible) .hero-metric {
  opacity: 0;
  transform: translate3d(72px, 0, 0) scale(0.96);
}

.hero__metrics[data-statistics].is-visible .hero-metric {
  animation: hero-metric-reveal 720ms cubic-bezier(0.16, 0.78, 0.24, 1) both;
}

.hero__metrics[data-statistics].is-visible .hero-metric:nth-child(2) {
  animation-delay: 160ms;
}

.hero__metrics[data-statistics].is-visible .hero-metric:nth-child(3) {
  animation-delay: 320ms;
}

.hero-metric strong.is-counting {
  animation: hero-stat-pulse 420ms ease-out both;
}

@keyframes hero-metric-reveal {
  from {
    opacity: 0;
    transform: translate3d(72px, 0, 0) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-metric {
    background: rgba(34, 95, 120, 0.3);
    -webkit-backdrop-filter: blur(18px) saturate(115%) brightness(0.6);
    backdrop-filter: blur(18px) saturate(115%) brightness(0.6);
  }
}

@keyframes hero-stat-pulse {
  0% {
    opacity: 0.55;
    transform: scale(0.94);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Main navigation band */
.service-band {
  position: relative;
  z-index: 4;
  margin-top: -38px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-large);
}

.service-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  min-width: 0;
  min-height: 112px;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-right: 1px solid var(--color-line);
  color: var(--color-ink);
  text-decoration: none;
}

.service-link:last-child {
  border-right: 0;
}

.service-link:hover,
.service-link:focus {
  color: var(--color-primary-dark);
  background: var(--color-soft);
}

.service-link__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
  color: var(--color-secondary);
  background: var(--color-secondary-soft);
}

.service-link:nth-child(3) .service-link__icon {
  color: var(--color-ink);
  background: var(--color-coral-soft);
}

.service-link:nth-child(4) .service-link__icon {
  color: var(--color-ink);
  background: var(--color-yellow-soft);
}

.service-link small,
.service-link strong {
  display: block;
}

.service-link small {
  margin-bottom: 3px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.service-link strong {
  font-size: 15px;
  line-height: 1.28;
}

.service-link > .icon {
  color: var(--color-muted);
}

/* Association */
.association-intro {
  padding-top: 98px;
  background: #fff;
}

.association-intro__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 58px;
  align-items: center;
}

.association-intro__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: var(--color-soft);
  box-shadow: var(--shadow-large);
}

.association-intro__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.association-intro__media figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 10px 12px;
  border-radius: 6px;
  color: #fff;
  background: rgba(16, 59, 83, 0.88);
  font-size: 12px;
  line-height: 1.35;
}

.association-intro__content h2 {
  margin-bottom: 22px;
}

.association-intro__content > p {
  margin: 0;
  color: var(--color-muted);
  font-size: 18px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 28px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--color-ink);
  font-weight: 650;
}

.check-list li::before {
  position: absolute;
  top: 0.52em;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-coral);
  box-shadow: 0 0 0 5px var(--color-coral-soft);
  content: "";
}

/* Events */
.events-section {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: var(--color-soft);
}

.event-calendar {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-small);
}

.event-calendar__calendar {
  min-width: 0;
  padding: 28px;
}

.event-calendar__toolbar {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.event-calendar__toolbar > div:first-child > span,
.calendar-agenda__head > span {
  display: block;
  margin-bottom: 3px;
  color: var(--color-primary-dark);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.event-calendar__toolbar h3 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
}

.event-calendar__controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.event-calendar__arrow {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-color: var(--color-line);
  color: var(--color-ink);
  background: #fff;
}

.event-calendar__arrow:hover,
.event-calendar__arrow:focus-visible {
  color: #fff;
  background: var(--color-primary-dark);
}

.event-calendar__today {
  min-height: 40px;
  padding: 7px 13px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  color: var(--color-ink);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
}

.event-calendar__today:hover,
.event-calendar__today:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
}

.event-calendar__weekdays,
.event-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.event-calendar__weekdays {
  border: 1px solid var(--color-line);
  border-bottom: 0;
  background: var(--color-soft);
}

.event-calendar__weekdays span {
  display: grid;
  min-height: 34px;
  place-items: center;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.event-calendar__grid {
  border-top: 1px solid var(--color-line);
  border-left: 1px solid var(--color-line);
}

.calendar-day {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 68px;
  align-content: start;
  justify-items: start;
  padding: 9px;
  border: 0;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  color: var(--color-ink);
  background: #fff;
  font: inherit;
  text-align: left;
}

button.calendar-day {
  cursor: pointer;
}

button.calendar-day:hover,
button.calendar-day:focus-visible {
  z-index: 1;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.calendar-day--outside {
  background: var(--color-soft);
}

.calendar-day__number {
  font-size: 14px;
  font-weight: 720;
  line-height: 1;
}

.calendar-day__count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--color-ink);
  background: var(--color-coral);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.calendar-day.has-events {
  background: var(--color-secondary-soft);
}

.calendar-day.is-today::after {
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  left: 5px;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  content: "";
  pointer-events: none;
}

.calendar-day.is-selected {
  color: #fff;
  background: var(--color-primary-dark);
}

.calendar-day.is-selected .calendar-day__count {
  color: var(--color-ink);
  background: var(--color-yellow);
}

.event-calendar__agenda {
  min-width: 0;
  max-height: 620px;
  overflow-y: auto;
  padding: 28px;
  border-left: 1px solid var(--color-line);
  background: #fff;
}

.calendar-agenda__head {
  margin-bottom: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-line);
}

.calendar-agenda__head strong {
  display: block;
  color: var(--color-ink);
  font-size: 17px;
  line-height: 1.3;
}

.calendar-agenda__list {
  min-width: 0;
}

.calendar-agenda__item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-line);
}

.calendar-agenda__item:last-child {
  border-bottom: 0;
}

.calendar-agenda__item time {
  display: grid;
  align-content: center;
  align-self: start;
  justify-items: center;
  min-height: 58px;
  padding: 8px 4px;
  border-radius: 6px;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  text-align: center;
}

.calendar-agenda__item.is-past time {
  color: var(--color-muted);
  background: var(--color-soft);
}

.calendar-agenda__item time strong {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  line-height: 0.95;
}

.calendar-agenda__item time span {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-agenda__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin: 0 0 7px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 700;
}

.calendar-agenda__meta span:first-child {
  color: var(--color-primary-dark);
}

.calendar-agenda__item h4 {
  margin: 0;
  color: var(--color-ink);
  font-size: 16px;
  line-height: 1.32;
}

.calendar-agenda__item h4 a {
  color: inherit;
  text-decoration: none;
}

.calendar-agenda__item h4 a:hover,
.calendar-agenda__item h4 a:focus {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.calendar-agenda__location {
  display: flex;
  gap: 5px;
  align-items: flex-start;
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 12px;
}

.calendar-agenda__location .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-top: 1px;
  color: var(--color-secondary);
}

.calendar-agenda__empty,
.calendar-agenda__more {
  margin: 0;
  padding: 24px 0;
  color: var(--color-muted);
  font-size: 14px;
}

.calendar-agenda__more {
  padding-bottom: 0;
  color: var(--color-primary-dark);
  font-weight: 720;
}

.event-archive__list-head {
  margin: 68px 0 28px;
}

.event-archive__list-head h2 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.12;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.event-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-small);
}

.event-card__date {
  display: grid;
  min-height: 100%;
  align-content: start;
  justify-items: center;
  padding: 22px 8px;
  color: #fff;
  background: var(--color-primary-dark);
  text-align: center;
}

.event-card__date strong {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
}

.event-card__date span,
.event-card__date small {
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.event-card__date span {
  margin-top: 4px;
}

.event-card__date small {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.66);
}

.event-card--past .event-card__date {
  background: var(--color-muted);
}

.event-card__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 20px;
}

.event-card__meta,
.post-card__meta,
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  align-items: center;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 680;
}

.event-card__meta span:first-child,
.entry-categories a {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  color: #fff;
  background: var(--color-secondary);
  text-decoration: none;
}

.event-card h2,
.event-card h3 {
  margin: 12px 0 16px;
  color: var(--color-ink);
  font-size: 19px;
  line-height: 1.28;
}

.event-card h2 {
  font-size: 22px;
}

.event-card h2 a,
.event-card h3 a {
  color: inherit;
  text-decoration: none;
}

.event-card h2 a:hover,
.event-card h2 a:focus,
.event-card h3 a:hover,
.event-card h3 a:focus {
  color: var(--color-primary-dark);
}

.event-card__content > p {
  margin: 0 0 16px;
  color: var(--color-muted);
  font-size: 15px;
}

.event-card__location {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.event-card__location .icon {
  margin-top: 0.2em;
  color: var(--color-secondary);
}

.event-card .text-link {
  margin-top: auto;
}

.event-grid--archive {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.empty-state {
  padding: 38px;
  border: 1px dashed var(--color-line);
  border-radius: 8px;
  text-align: center;
}

.empty-state h2,
.empty-state h3 {
  margin: 0 0 6px;
  color: var(--color-ink);
}

.empty-state p {
  margin: 0;
  color: var(--color-muted);
}

/* News */
.news-section {
  background: #fff;
}

.editorial-news {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 0.75fr));
  grid-template-rows: repeat(2, minmax(220px, auto));
  gap: 18px;
}

.news-feature,
.news-brief,
.post-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
}

.news-feature {
  display: flex;
  grid-row: 1 / 3;
  flex-direction: column;
  box-shadow: var(--shadow-small);
}

.news-feature__media,
.news-brief__media,
.post-card__media {
  display: block;
  overflow: hidden;
  color: #fff;
  background: var(--color-line);
  text-decoration: none;
}

.news-feature__media {
  aspect-ratio: 16 / 10;
}

.news-feature__media img,
.news-brief__media img,
.post-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.news-feature:hover img,
.news-brief:hover img,
.post-card:hover img {
  transform: scale(1.025);
}

.media-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 130px;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, 0.12) 48% 52%, transparent 52%),
    var(--color-primary-dark);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
}

.media-placeholder .media-placeholder__logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.news-feature__content {
  padding: 26px;
}

.news-feature h3,
.news-brief h3 {
  margin: 12px 0 0;
  color: var(--color-ink);
  line-height: 1.24;
}

.news-feature h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
}

.news-feature h3 a,
.news-brief h3 a {
  color: inherit;
  text-decoration: none;
}

.news-feature h3 a:hover,
.news-feature h3 a:focus,
.news-brief h3 a:hover,
.news-brief h3 a:focus {
  color: var(--color-primary-dark);
}

.news-feature p {
  margin: 14px 0 0;
  color: var(--color-muted);
}

.news-brief {
  display: grid;
  grid-template-rows: 112px minmax(0, 1fr);
}

.news-brief__media {
  min-height: 112px;
}

.news-brief__content {
  padding: 16px;
}

.news-brief h3 {
  font-size: 16px;
}

/* Resource band */
.resources-section {
  color: var(--color-muted);
  background: var(--color-secondary-soft);
}

.resources-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: start;
}

.resources-intro .section-kicker {
  color: var(--color-primary);
}

.resources-intro h2 {
  color: var(--color-primary-dark);
}

.resources-intro p {
  margin: 20px 0 0;
  color: var(--color-muted);
}

.resource-list {
  display: grid;
}

.resource-list > a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 22px;
  gap: 14px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #c6dadb;
  color: var(--color-primary-dark);
  text-decoration: none;
}

.resource-list > a:first-child {
  border-top: 1px solid #c6dadb;
}

.resource-list > a:hover,
.resource-list > a:focus {
  color: var(--color-primary);
}

.resource-list > a > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 7px;
  border: 1px solid rgba(47, 127, 123, 0.18);
  color: var(--color-secondary);
  background: rgba(255, 255, 255, 0.72);
}

.resource-list strong,
.resource-list small {
  display: block;
  grid-column: 2;
}

.resource-list strong {
  font-size: 17px;
}

.resource-list small {
  margin-top: -11px;
  color: var(--color-muted);
  font-size: 13px;
}

.resource-list > a > .icon {
  grid-column: 3;
  grid-row: 1 / span 2;
}

/* Post cards and archives */
.grid,
.post-list,
.news-grid {
  display: grid;
  gap: 20px;
}

.grid--3,
.post-list,
.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-list {
  margin: 44px 0 76px;
}

.post-list .navigation {
  grid-column: 1 / -1;
}

.post-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  box-shadow: var(--shadow-small);
}

.post-card__media {
  aspect-ratio: 16 / 10;
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.post-card h3 {
  margin: 12px 0 10px;
  color: var(--color-ink);
  font-size: 20px;
  line-height: 1.28;
}

.post-card h3 a {
  color: inherit;
  text-decoration: none;
}

.post-card h3 a:hover,
.post-card h3 a:focus {
  color: var(--color-primary-dark);
}

.post-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
}

.post-card__more {
  margin-top: auto;
  padding-top: 18px;
}

.entry-categories {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Inner pages */
.page-header-band {
  padding: 52px 0;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-soft);
}

.page-header-band__inner {
  min-width: 0;
}

.page-header-band--split .page-header-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: 54px;
  align-items: center;
}

.page-header-band--text .page-header-band__inner {
  max-width: 980px;
}

.page-header-band--contact {
  padding: 38px 0 42px;
}

.contact-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: stretch;
  margin-top: 24px;
}

.contact-header-action {
  min-width: 0;
  min-height: 40px;
  padding: 7px 12px;
  background: #fff;
  font-size: 14px;
}

.contact-header-action span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-title,
.entry-title,
.archive-title {
  margin: 0;
  overflow-wrap: break-word;
  word-break: normal;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  text-wrap: pretty;
}

.page-title {
  max-width: 980px;
  font-size: 50px;
}

.page-header-band__lead,
.post-hero__excerpt {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--color-muted);
  font-size: 19px;
}

.archive-description {
  max-width: 760px;
  margin-top: 18px;
  color: var(--color-muted);
  font-size: 17px;
}

.archive-description > *:first-child,
.archive-description > *:last-child {
  margin-top: 0;
  margin-bottom: 0;
}

.page-header-band__media,
.post-hero__media,
.event-hero__media {
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-line);
  box-shadow: var(--shadow-large);
}

.page-header-band__media {
  aspect-ratio: 4 / 3;
}

.page-header-band__media img,
.post-hero__media img,
.event-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--color-muted);
  font-size: 12px;
}

.breadcrumbs a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.breadcrumbs span[aria-current="page"] {
  max-width: 440px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-hero {
  max-width: 980px;
}

.post-hero .entry-meta {
  margin-bottom: 15px;
}

.post-hero__media {
  max-height: 560px;
  margin-top: 34px;
}

.news-carousel {
  width: 100%;
  margin-top: 34px;
}

.news-carousel__stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-soft);
  box-shadow: var(--shadow-large);
  touch-action: pan-y;
}

.news-carousel__slides,
.news-carousel__slide {
  width: 100%;
  height: 100%;
}

.news-carousel__slide {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  margin: 0;
  isolation: isolate;
  background: var(--color-line);
}

.news-carousel__slide[hidden] {
  display: none;
}

.news-carousel__slide img {
  display: block;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
}

.news-carousel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-carousel__control {
  position: absolute;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(24, 35, 45, 0.2);
  border-radius: 50%;
  place-items: center;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 18px rgba(16, 59, 83, 0.18);
  cursor: pointer;
  transform: translateY(-50%);
}

.news-carousel__control:hover {
  color: #fff;
  background: var(--color-primary-dark);
}

.news-carousel__control:focus-visible,
.news-carousel__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--color-primary);
}

.news-carousel__control .icon {
  width: 22px;
  height: 22px;
}

.news-carousel__control--previous {
  left: 14px;
}

.news-carousel__control--next {
  right: 14px;
}

.news-carousel__navigation {
  position: relative;
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 64px;
}

.news-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.news-carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-muted);
  cursor: pointer;
}

.news-carousel__dot.is-active {
  background: var(--color-primary-dark);
  box-shadow: 0 0 0 3px rgba(20, 90, 122, 0.15);
}

.news-carousel__counter {
  position: absolute;
  right: 0;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 840px) minmax(220px, 1fr);
  gap: 48px;
  padding-top: 52px;
  padding-bottom: 68px;
}

.content-layout--single {
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
}

.content-layout--contact {
  grid-template-columns: minmax(0, 1120px);
  padding-top: 42px;
  padding-bottom: 64px;
}

.entry-content {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  color: var(--color-ink);
  font-size: 17px;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 1.7em 0 0.65em;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
}

.entry-content h1 {
  font-size: 42px;
}

.entry-content h2 {
  font-size: 34px;
}

.entry-content h3 {
  font-size: 27px;
}

.entry-content h4 {
  font-size: 22px;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-top: 0;
  margin-bottom: 1.25em;
}

.entry-content a {
  overflow-wrap: break-word;
  word-break: normal;
}

.entry-content blockquote {
  margin: 30px 0;
  padding: 8px 0 8px 22px;
  border-left: 4px solid var(--color-coral);
  color: var(--color-muted);
  font-family: var(--font-display);
  font-size: 21px;
}

.entry-content img {
  display: block;
  margin: 26px auto;
  border-radius: 7px;
}

.entry-content .aligncenter {
  display: block;
  margin-inline: auto;
}

.entry-content .alignleft {
  float: left;
  margin: 6px 24px 18px 0;
}

.entry-content .alignright {
  float: right;
  margin: 6px 0 18px 24px;
}

.entry-content table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 15px;
}

.entry-content th,
.entry-content td {
  padding: 11px 12px;
  border: 1px solid var(--color-line);
  vertical-align: top;
  text-align: left;
}

.entry-content th {
  color: var(--color-ink);
  background: var(--color-soft);
}

.entry-content hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--color-line);
}

.entry-content a[href$=".pdf"],
.entry-content a[href$=".doc"],
.entry-content a[href$=".docx"],
.entry-content a[href$=".xls"],
.entry-content a[href$=".xlsx"],
.entry-content a[href$=".ppt"],
.entry-content a[href$=".pptx"] {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  margin: 4px 0;
  padding: 7px 11px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  color: var(--color-primary-dark);
  background: var(--color-soft);
  font-weight: 700;
  text-decoration: none;
}

.entry-content iframe {
  width: 100%;
  border: 0;
}

/* Compatibility layer for imported Bootstrap-like content */
.entry-content .row {
  display: flex;
  flex-wrap: wrap;
  margin: -12px;
}

.entry-content .row > [class*="col"] {
  min-width: 0;
  flex: 1 1 0;
  padding: 12px;
}

.entry-content .col-12 {
  flex: 0 0 100% !important;
  max-width: 100%;
}

.entry-content .jumbotron {
  margin: 0 0 26px;
  padding: 28px;
  border-radius: 8px;
  background: var(--color-soft);
  text-align: center;
}

.entry-content .jumbotron h1:empty {
  display: none;
}

.legacy-content {
  display: flow-root;
  width: 100%;
}

.legacy-content .row {
  display: block !important;
  width: 100%;
  max-width: none;
  margin: 0 !important;
}

.legacy-content .row > [class*="col"] {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

.legacy-content .jumbotron,
.legacy-content .font-size-sm.text-muted,
.legacy-content .col-lg-1,
.legacy-content [class*="col"]:empty,
.legacy-content .row:empty {
  display: none !important;
}

.legacy-content p[style],
.legacy-content li[style] {
  margin-right: 0 !important;
  margin-left: 0 !important;
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  text-align: left !important;
}

.legacy-content span[style] {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.legacy-content iframe {
  display: block;
  width: 100% !important;
  min-height: clamp(220px, 48vw, 500px);
  margin: 18px 0;
}

.legacy-content p:has(> iframe + iframe) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.legacy-content p:has(> iframe + iframe) iframe {
  min-height: clamp(180px, 28vw, 350px);
  margin: 0;
}

.legacy-content .row.py-3.py-lg-4,
.legacy-content .row.py-4 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 !important;
}

.legacy-content .row.py-3.py-lg-4 > [class*="col"],
.legacy-content .row.py-4 > [class*="col"] {
  min-width: 0;
  padding: 14px !important;
  border: 1px solid var(--color-line);
  border-radius: 7px;
}

.legacy-content__toggle {
  display: none;
}

/* Structured layouts for migrated association pages */
.page--legal-index .legacy-content > .col-lg-8 {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
}

.page--legal-index .legacy-content .row:has(> .col-lg-6) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 16px !important;
}

.page--legal-index .legacy-content .row:has(> .col-lg-6) > .col-lg-6 {
  min-width: 0;
  padding: 22px !important;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
}

.page--legal-index .legacy-content .row:has(> .col-lg-6:only-child) > .col-lg-6 {
  grid-column: 1 / -1;
}

.page--legal-index .legacy-content h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.3;
}

.page--legal-index .legacy-content .col-lg-6 > :last-child {
  margin-bottom: 0;
}

/* National protocols and official neonatal-care documents */
.page--legal-index .protocol-library {
  width: 100%;
  color: var(--color-ink);
}

.protocol-library__intro {
  position: relative;
  margin: 0 0 42px;
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3.5vw, 36px);
  border: 1px solid #c7dde7;
  border-left: 5px solid var(--color-primary);
  border-radius: 10px;
  background: linear-gradient(135deg, #edf6f9 0%, #f8fbfc 100%);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
}

.protocol-library__intro p {
  margin: 0;
}

.protocol-library__intro p + p {
  margin-top: 10px;
}

.protocol-library__intro strong {
  color: var(--color-primary-dark);
}

.protocol-library__section + .protocol-library__section {
  margin-top: 52px;
}

.protocol-library__heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 17px;
  font-size: clamp(23px, 2.6vw, 31px);
  line-height: 1.25;
  color: var(--color-primary-dark);
}

.protocol-library__heading::after {
  min-width: 40px;
  height: 1px;
  flex: 1;
  background: var(--color-line);
  content: "";
}

.protocol-library__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 11px;
  background: var(--color-surface);
  box-shadow: 0 12px 32px rgba(16, 59, 83, 0.07);
}

.protocol-card {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 220px;
  grid-template-areas:
    "type actions"
    "title actions"
    "meta actions"
    "note actions"
    "attachments attachments";
  column-gap: clamp(24px, 4vw, 42px);
  align-items: start;
  padding: clamp(22px, 2.8vw, 30px);
  border: 0;
  border-left: 4px solid #b9d8e4;
  border-bottom: 1px solid var(--color-line);
  border-radius: 0;
  background: var(--color-surface);
  box-shadow: none;
  transition: background-color 160ms ease, border-left-color 160ms ease;
}

.protocol-card:last-child {
  border-bottom: 0;
}

.protocol-card:hover {
  border-left-color: var(--color-primary);
  background: #f8fbfc;
}

.protocol-card__type {
  display: flex;
  grid-area: type;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  padding: 0;
  background: transparent;
  color: #256a67;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.protocol-card__type::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--color-secondary);
  content: "";
}

.protocol-card h3 {
  grid-area: title;
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.protocol-card__meta {
  grid-area: meta;
  margin: 9px 0 0;
  color: var(--color-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.protocol-card__note {
  grid-area: note;
  margin: 13px 0 0;
  padding: 10px 13px;
  border-left: 3px solid #e2bd48;
  border-radius: 4px;
  background: var(--color-yellow-soft);
  color: #5b4710;
  font-size: 14px;
  line-height: 1.5;
}

.protocol-card__actions {
  display: flex;
  grid-area: actions;
  width: 220px;
  flex-direction: column;
  align-self: center;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.page--legal-index .entry-content a.protocol-card__button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  background: var(--color-primary);
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none !important;
}

.page--legal-index .entry-content a.protocol-card__button:hover,
.page--legal-index .entry-content a.protocol-card__button:focus-visible {
  border-color: var(--color-primary-dark);
  background: var(--color-primary-dark);
  color: #fff !important;
}

.page--legal-index .entry-content a.protocol-card__button--source {
  background: #fff;
  color: var(--color-primary-dark) !important;
}

.page--legal-index .entry-content a.protocol-card__button--source:hover,
.page--legal-index .entry-content a.protocol-card__button--source:focus-visible {
  color: #fff !important;
}

.protocol-card__attachments {
  display: grid;
  grid-area: attachments;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--color-line);
}

.protocol-card__attachment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  grid-template-areas:
    "attachment-title actions"
    "attachment-meta actions";
  column-gap: clamp(24px, 4vw, 42px);
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid var(--color-line);
}

.protocol-card__attachment:first-child {
  border-top: 0;
}

.protocol-card__attachment strong,
.protocol-card__attachment span {
  display: block;
}

.protocol-card__attachment strong {
  grid-area: attachment-title;
  font-size: 16px;
}

.protocol-card__attachment span {
  grid-area: attachment-meta;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.45;
}

.protocol-card__attachment .protocol-card__actions {
  align-self: center;
}

.protocol-card:has(> .protocol-card__attachments) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "type"
    "title"
    "note"
    "attachments";
}

.protocol-library__association {
  padding-top: 6px;
}

.protocol-library__association .protocol-library__grid {
  box-shadow: none;
}

.protocol-library__association .protocol-card {
  border-left-color: #aad1ce;
}

@media (max-width: 860px) {
  .protocol-card,
  .protocol-card:has(> .protocol-card__attachments) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "type"
      "title"
      "meta"
      "note"
      "attachments"
      "actions";
  }

  .protocol-card > .protocol-card__actions {
    width: 100%;
    flex-direction: row;
    align-self: auto;
    margin-top: 18px;
  }

  .protocol-card > .protocol-card__actions .protocol-card__button {
    flex: 1;
  }

  .protocol-card__attachment {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "attachment-title"
      "attachment-meta"
      "actions";
  }

  .protocol-card__attachment .protocol-card__actions {
    width: 100%;
    flex-direction: row;
    margin-top: 13px;
  }

  .protocol-card__attachment .protocol-card__button {
    flex: 1;
  }
}

@media (max-width: 600px) {
  .protocol-library__section + .protocol-library__section {
    margin-top: 42px;
  }

  .protocol-library__heading {
    display: block;
  }

  .protocol-library__heading::after {
    display: none;
  }

  .protocol-card {
    padding: 20px 17px;
    border-left-width: 3px;
  }

  .protocol-card > .protocol-card__actions,
  .protocol-card__attachment .protocol-card__actions {
    flex-direction: column;
  }

  .protocol-card__actions,
  .page--legal-index .entry-content a.protocol-card__button {
    width: 100%;
  }
}

.page--history .legacy-content .row.py-3.py-lg-4 {
  display: block !important;
  margin: 24px 0 !important;
}

.page--history .legacy-content .row.py-3.py-lg-4 > .col {
  width: 100% !important;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
}

.page--history .legacy-content .row.py-3.py-lg-4 .row:has(> .col-12.col-lg-6) {
  display: grid !important;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.page--history .legacy-content .row:has(> .col-12.col-lg-6) > .col-12.col-lg-6 {
  display: grid !important;
  min-width: 0;
  height: 100%;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin: 0 !important;
  padding: 20px !important;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
}

.page--history .legacy-content .float-left {
  float: none !important;
  margin: 0 !important;
}

.page--history .legacy-content .row:has(> .col-12.col-lg-6) img {
  display: block;
  width: 124px;
  height: 124px;
  border-radius: 8px;
  object-fit: cover;
}

.page--history .legacy-content .row:has(> .col-12.col-lg-6) .pt-2 {
  min-width: 0;
  padding-top: 0 !important;
}

.page--history .legacy-content .row:has(> .col-12.col-lg-6) p {
  margin-top: 0;
}

.page--history .legacy-content .img-thumbnail {
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 8px;
}

.page--departments .legacy-content .row > .col:has(> .row.mb-md-5) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.page--departments .legacy-content .row.mb-md-5 {
  display: block !important;
  min-width: 0;
  height: 100%;
  margin: 0 !important;
  padding: 20px !important;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
}

.page--departments .legacy-content .row.mb-md-5 > .col,
.page--departments .legacy-content .media,
.page--departments .legacy-content .media-body {
  height: 100%;
}

.page--departments .legacy-content .media {
  display: block;
}

.page--departments .legacy-content .media-body h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.3;
}

.page--departments .legacy-content .media-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.page--branches .legacy-content .row:has(> .col-12.col-lg-3.col-sm-6) {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 22px;
  margin: 8px 0 26px !important;
  padding: 14px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.page--branches .legacy-content .row:has(> .col-12.col-lg-3.col-sm-6) > .col-12 {
  width: auto !important;
  padding: 0 !important;
}

.page--branches .legacy-content .row:has(> .col-12.col-lg-3.col-sm-6) ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page--branches .legacy-content .row:has(> .col-12.col-lg-3.col-sm-6) li {
  margin: 0;
}

.page--branches .legacy-content .row:has(> .col-12.col-lg-3.col-sm-6) a {
  display: block;
  padding: 7px 2px;
  border-bottom: 1px solid var(--color-line);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.page--branches .legacy-content .row:has(> .col-12.col-lg-3.col-sm-6) li:last-child a {
  border-bottom: 0;
}

.page--branches .legacy-content .row:has(> .col-md-6.py-4) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.page--branches .legacy-content .row:has(> .col-md-6.py-4) > .col-md-6 {
  min-width: 0;
  padding: 20px 0 !important;
  border-top: 1px solid var(--color-line);
}

.page--branches .legacy-content .col-md-6 h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

.page--branches .legacy-content .col-md-6 > :last-child {
  margin-bottom: 0;
}

.page--leadership .legacy-content .row:has(> .col-sm-6) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.page--leadership .legacy-content .row:has(> .col-sm-6) > .col-sm-6 {
  min-width: 0;
  padding: 14px 0 !important;
  border-top: 1px solid var(--color-line);
}

.page--leadership .legacy-content .row:has(> .col-sm-6) p {
  margin: 0;
}

@media (min-width: 900px) {
  .page--history .legacy-content .row:has(> .col-lg-3) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: start;
    gap: 28px;
  }

  .page--history .legacy-content .row:has(> .col-lg-3) > .col-lg-3 {
    padding-left: 20px !important;
    border-left: 1px solid var(--color-line);
  }
}

@media (max-width: 899px) {
  .page--departments .legacy-content .row > .col:has(> .row.mb-md-5) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page--branches .legacy-content .row:has(> .col-12.col-lg-3.col-sm-6) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .page--legal-index .legacy-content .row:has(> .col-lg-6),
  .page--history .legacy-content .row.py-3.py-lg-4 .row:has(> .col-12.col-lg-6),
  .page--branches .legacy-content .row:has(> .col-md-6.py-4),
  .page--leadership .legacy-content .row:has(> .col-sm-6) {
    grid-template-columns: 1fr;
  }

  .page--departments .legacy-content .row > .col:has(> .row.mb-md-5) {
    grid-template-columns: 1fr;
  }

  .page--legal-index .legacy-content .row:has(> .col-lg-6) > .col-lg-6,
  .page--departments .legacy-content .row.mb-md-5 {
    padding: 16px !important;
  }

  .page--history .legacy-content .row:has(> .col-12.col-lg-6) > .col-12.col-lg-6 {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding: 14px !important;
  }

  .page--history .legacy-content .row:has(> .col-12.col-lg-6) img {
    width: 88px;
    height: 88px;
  }

  .page--branches .legacy-content .row:has(> .col-12.col-lg-3.col-sm-6) {
    gap: 0 14px;
  }

  .page--branches .legacy-content .row:has(> .col-12.col-lg-3.col-sm-6) a {
    font-size: 14px;
  }
}

.development-notice {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 0 36px;
  text-align: center;
}

.development-notice__icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  font-size: 25px;
}

.development-notice .section-kicker {
  margin-bottom: 8px;
}

.development-notice h2 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
}

.development-notice p {
  max-width: 620px;
  margin: 18px auto 24px;
  color: var(--color-muted);
  font-size: 17px;
}

.contact-page-content .row:has(> .col.text-center a[href^="mailto:inbox@neonatology.org.ua"]),
.contact-page-content .row:has(> .col > hr) {
  display: none !important;
}

.contact-page-content .row.mb-5:has(> .col-lg-4) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 !important;
}

.contact-page-content .row.mb-5:has(> .col-lg-4) > .col-lg-4 {
  min-width: 0;
  padding: 0 28px !important;
  border-left: 1px solid var(--color-line);
}

.contact-page-content .row.mb-5:has(> .col-lg-4) > .col-lg-4:first-child {
  padding-left: 0 !important;
  border-left: 0;
}

.contact-page-content .row.mb-5:has(> .col-lg-4) > .col-lg-4:last-child {
  padding-right: 0 !important;
}

.contact-page-content h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.contact-page-content p {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.55;
}

.contact-page-content .contact-action {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  margin: 4px 4px 4px 0;
  padding: 7px 10px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  color: var(--color-primary-dark);
  background: var(--color-soft);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.25;
  text-decoration: none;
}

.contact-page-content .contact-action:hover,
.contact-page-content .contact-action:focus {
  border-color: var(--color-primary-dark);
  color: #fff;
  background: var(--color-primary-dark);
}

.contact-page-content .contact-action .icon {
  width: 16px;
  height: 16px;
}

.contact-page-content .contact-action span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-page-content .row:has(> .col.text-center .contact-action--branches) {
  margin-top: 30px !important;
}

.contact-page-content .row:has(> .col.text-center .contact-action--branches) .mb-3 {
  display: none;
}

.contact-page-content .contact-action--branches {
  min-height: 42px;
  padding: 9px 13px;
}

.entry-content .lead {
  color: var(--color-muted);
  font-size: 20px;
}

.entry-content .display-2,
.entry-content .display-3,
.entry-content .display-4 {
  font-family: var(--font-display);
  line-height: 1.08;
}

.entry-content .display-2 {
  font-size: 50px;
}

.entry-content .display-3 {
  font-size: 42px;
}

.entry-content .display-4 {
  font-size: 34px;
}

.entry-content .text-center,
.entry-content .text-center-lg {
  text-align: center;
}

.entry-content .font-weight-medium {
  font-weight: 700;
}

.entry-content .font-weight-light {
  font-weight: 500;
}

.entry-content .font-size-sm {
  font-size: 14px;
}

.entry-content .mb-3 {
  margin-bottom: 1rem;
}

.entry-content .mb-4 {
  margin-bottom: 1.5rem;
}

.entry-content .mb-5,
.entry-content .my-5 {
  margin-bottom: 2.5rem;
}

.entry-content .my-5 {
  margin-top: 2.5rem;
}

.entry-content .py-1 {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

/* President and events */
.president-profile {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin: 36px 0 54px;
  padding: 28px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-soft);
}

.president-profile__media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 7px;
  background: var(--color-line);
}

.president-profile__media img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center 38%;
  border-radius: 0;
}

.president-profile__content h2 {
  margin: 6px 0 12px;
  font-size: 35px;
}

.president-profile__content p {
  margin: 0 0 15px;
}

.president-profile__role {
  color: var(--color-primary-dark);
  font-size: 18px;
  font-weight: 720;
}

/* Historic association leader profile */
.person-profile {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin: 34px 0 48px;
}

.person-profile__media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 8px;
  background: var(--color-soft);
}

.person-profile__media img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

.person-profile__summary {
  min-width: 0;
}

.person-profile__summary h2 {
  margin: 8px 0 14px;
  font-size: 38px;
  line-height: 1.12;
}

.person-profile__role {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--color-primary-dark);
  font-size: 19px;
  font-weight: 720;
}

.person-profile__dates {
  margin: 0;
  color: var(--color-muted);
  font-weight: 680;
}

.person-profile__milestones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 52px;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.person-profile__milestone {
  min-width: 0;
  padding: 22px 24px;
}

.person-profile__milestone + .person-profile__milestone {
  border-left: 1px solid var(--color-line);
}

.person-profile__milestone strong,
.person-profile__milestone span {
  display: block;
}

.person-profile__milestone strong {
  margin-bottom: 4px;
  color: var(--color-primary-dark);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.2;
}

.person-profile__milestone span {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.45;
}

.person-biography {
  max-width: 920px;
}

.person-biography h2 {
  margin: 42px 0 16px;
  font-size: 29px;
}

.person-biography p {
  margin: 0 0 18px;
}

.person-profile__source-note {
  margin-top: 42px !important;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 14px;
}

.person-profile--text {
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-line);
}

.person-profile--archive {
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  align-items: start;
  max-width: 940px;
}

.person-profile__media--archive {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 150 / 206;
  background: var(--color-soft);
}

.person-profile__media--archive img {
  object-position: center top;
}

.page--history .legacy-content .row:has(> .col-12.col-lg-6) > .col-12.col-lg-6:not(:has(img)) {
  grid-template-columns: minmax(0, 1fr);
}

/* Partnership and BPR content */
.page--partnership .content-layout--single,
.page--bpr .content-layout--single,
.page--bpr-speakers .content-layout--single,
.page--bpr-participation .content-layout--single,
.page--neoid .content-layout--single {
  grid-template-columns: minmax(0, 1080px);
}

.content-intro {
  max-width: 860px;
  margin-bottom: 48px;
}

.content-intro h2 {
  margin: 7px 0 16px;
  font-size: 39px;
}

.content-intro__lead {
  margin: 0;
  color: var(--color-muted);
  font-size: 20px;
  line-height: 1.55;
}

.content-section-heading {
  margin-bottom: 22px;
}

.content-section-heading h2 {
  margin: 6px 0 0;
  font-size: 30px;
}

.partnership-results,
.partnership-directions,
.bpr-principles {
  margin: 52px 0;
}

.partnership-grid,
.bpr-principles__grid,
.speaker-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.partnership-card,
.bpr-principles__grid article,
.speaker-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
}

.speaker-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.speaker-card__media {
  overflow: hidden;
  width: 112px;
  height: 112px;
  margin: 0;
  border-radius: 7px;
  background: var(--color-soft);
}

.speaker-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.speaker-card__body {
  min-width: 0;
}

.partnership-card:nth-child(2n),
.speaker-card:nth-child(3n) {
  border-top-color: var(--color-yellow);
}

.partnership-card__label,
.speaker-card__body > span {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.partnership-card h3,
.bpr-principles__grid h3,
.speaker-card h3 {
  margin: 8px 0 10px;
  font-family: var(--font-sans);
  font-size: 21px;
  line-height: 1.3;
}

.partnership-card p,
.bpr-principles__grid p,
.speaker-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
}

.partnership-directions__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-line);
  list-style: none;
}

.partnership-directions__list li {
  display: grid;
  gap: 4px;
  padding: 19px 20px;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.partnership-directions__list li:nth-child(2n) {
  border-right: 0;
}

.partnership-directions__list strong {
  color: var(--color-ink);
}

.partnership-directions__list span {
  color: var(--color-muted);
  font-size: 15px;
}

.partnership-contact,
.bpr-audience,
.bpr-rules,
.bpr-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  margin: 52px 0 28px;
  padding: 28px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.partnership-contact h2,
.bpr-audience h2,
.bpr-rules h2,
.bpr-contact h2 {
  margin: 6px 0 9px;
  font-size: 29px;
}

.partnership-contact p,
.bpr-audience p,
.bpr-rules p,
.bpr-contact p {
  margin: 0;
  color: var(--color-muted);
}

.content-source-note {
  margin-top: 38px !important;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 13px;
}

.bpr-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 40px 0 54px;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.bpr-facts div {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--color-line);
}

.bpr-facts div:last-child {
  border-right: 0;
}

.bpr-facts strong,
.bpr-facts span {
  display: block;
}

.bpr-facts strong {
  margin-bottom: 6px;
  color: var(--color-primary-dark);
  font-family: var(--font-display);
  font-size: 25px;
}

.bpr-facts span {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.45;
}

.bpr-principles__grid article:nth-child(4n + 1) {
  border-top-color: var(--color-coral);
}

.bpr-audience {
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
}

.speaker-directory {
  margin: 42px 0;
}

.speaker-card {
  min-height: 200px;
}

.participation-steps {
  counter-reset: participation;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 44px 0 58px !important;
  padding: 0 !important;
  border-top: 1px solid var(--color-line);
  list-style: none;
}

.participation-steps li {
  counter-increment: participation;
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 150px;
  padding: 24px 24px 24px 68px;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.participation-steps li:nth-child(2n) {
  border-right: 0;
}

.participation-steps li::before {
  position: absolute;
  top: 24px;
  left: 22px;
  content: counter(participation, decimal-leading-zero);
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

.participation-steps strong {
  color: var(--color-ink);
  font-size: 18px;
}

.participation-steps span {
  color: var(--color-muted);
  font-size: 15px;
}

.bpr-rules {
  grid-template-columns: minmax(240px, 0.5fr) minmax(0, 1fr);
  align-items: start;
}

.bpr-rules__content {
  display: grid;
  gap: 16px;
}

.participation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.event-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 36px;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.event-facts > div {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--color-line);
}

.event-facts > div:last-child {
  border-right: 0;
}

.event-facts dt {
  margin-bottom: 5px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.event-facts dd {
  margin: 0;
  color: var(--color-ink);
  font-size: 14px;
  line-height: 1.5;
}

.page-header-band--event {
  padding-bottom: 70px;
}

.event-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 50px;
  align-items: end;
}

.event-summary {
  padding-left: 24px;
  border-left: 1px solid var(--color-line);
}

.event-summary__date {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.event-summary__date strong {
  color: var(--color-primary-dark);
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1;
}

.event-summary__date span {
  font-weight: 750;
  text-transform: uppercase;
}

.event-summary p {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 18px;
  color: var(--color-muted);
}

.event-summary p .icon {
  margin-top: 0.2em;
  color: var(--color-secondary);
}

.event-hero__media {
  max-height: 620px;
  margin-top: 40px;
}

/* Pagination and search */
.page-search-form {
  max-width: 760px;
  margin-top: 28px;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 32px;
}

.pagination,
.nav-links,
.news-archive__pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-numbers,
.nav-links a,
.nav-links span {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
}

.page-numbers.current {
  border-color: var(--color-primary-dark);
  color: #fff;
  background: var(--color-primary-dark);
}

.news-archive,
.event-archive {
  padding-top: 64px;
}

.news-archive__pagination {
  margin-top: 42px;
}

/* Footer */
.site-footer {
  clear: both;
  width: 100%;
  min-width: 0;
  color: rgba(255, 255, 255, 0.88);
  background: var(--color-header-blue);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.9fr) minmax(380px, 1.35fr);
  gap: 24px;
  align-items: start;
  padding-top: 14px;
  padding-bottom: 10px;
}

.site-footer__inner > * {
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
}

.footer-brand:hover,
.footer-brand:focus {
  color: #fff;
}

.footer-brand__logo {
  width: 32px;
  height: 32px;
}

.footer-brand__mark {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.site-footer__about p {
  max-width: 480px;
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.site-footer h2 {
  margin: 0 0 7px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.footer-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 14px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.4;
  list-style: none;
}

.site-footer__contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 14px;
  align-content: start;
  font-size: 13px;
  line-height: 1.4;
}

.site-footer__contacts h2 {
  grid-column: 1 / -1;
}

.footer-menu a,
.site-footer__contacts a {
  overflow-wrap: break-word;
  word-break: normal;
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
}

.footer-menu a:hover,
.footer-menu a:focus,
.site-footer__contacts a:hover,
.site-footer__contacts a:focus {
  color: #ffecb0;
}

.site-footer__contacts p {
  display: flex;
  min-width: 0;
  gap: 9px;
  margin: 0;
  align-items: flex-start;
}

.site-footer__contacts p a,
.site-footer__address {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  gap: 9px;
  align-items: flex-start;
}

.site-footer__contacts p a > span,
.site-footer__address > span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-footer__contacts .icon {
  margin-top: 0.18em;
  color: var(--color-yellow);
}

.social-links {
  display: flex;
  gap: 6px;
  margin-top: 0;
}

.social-links a {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.social-links a:hover,
.social-links a:focus {
  border-color: var(--color-yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom__inner {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
}

.footer-bottom__inner > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

/* Homepage section transitions */
body.home .events-section,
body.home .news-section,
body.home .resources-section {
  position: relative;
  isolation: isolate;
}

body.home .events-section {
  border-top: 0;
  border-bottom: 0;
}

body.home .events-section > .container,
body.home .news-section > .container,
body.home .resources-section > .container {
  position: relative;
  z-index: 1;
}

body.home .events-section::before,
body.home .news-section::before,
body.home .resources-section::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  height: clamp(22px, 2.8vw, 38px);
  content: "";
  pointer-events: none;
}

body.home .resources-section::before {
  height: clamp(44px, 4.4vw, 64px);
}

body.home .events-section::before {
  background: linear-gradient(180deg, #fff 0%, rgba(231, 241, 245, 0.88) 48%, rgba(244, 248, 250, 0) 100%);
}

body.home .news-section::before {
  background: linear-gradient(180deg, var(--color-soft) 0%, rgba(231, 241, 245, 0.78) 40%, rgba(255, 255, 255, 0) 100%);
}

body.home .resources-section::before {
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.82) 32%, rgba(255, 255, 255, 0.38) 70%, rgba(255, 255, 255, 0) 100%);
}

@media (max-width: 899px) {
  body.home .events-section::before,
  body.home .news-section::before {
    height: 24px;
  }

  body.home .resources-section::before {
    height: 38px;
  }
}

@media (forced-colors: active) {
  body.home .events-section::before,
  body.home .news-section::before,
  body.home .resources-section::before {
    display: none;
  }

  body.home .events-section,
  body.home .news-section,
  body.home .resources-section {
    border-top: 1px solid CanvasText;
  }
}

@media print {
  body.home .events-section::before,
  body.home .news-section::before,
  body.home .resources-section::before {
    display: none;
  }
}

/* Responsive */
@media (min-width: 900px) {
  .entry-content .col-lg-1 {
    flex: 0 0 8.333% !important;
    max-width: 8.333%;
  }

  .entry-content .col-lg-3 {
    flex: 0 0 25% !important;
    max-width: 25%;
  }

  .entry-content .col-lg-4 {
    flex: 0 0 33.333% !important;
    max-width: 33.333%;
  }

  .entry-content .col-lg-8 {
    flex: 0 0 66.667% !important;
    max-width: 66.667%;
  }

  .entry-content .text-lg-center {
    text-align: center;
  }
}

@media (min-width: 700px) and (max-width: 899px) {
  .entry-content .col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50%;
  }
}

@media (max-width: 1120px) {
  .site-header__inner {
    min-height: 74px;
  }

  .header-controls {
    display: flex;
  }

  .search-toggle--mobile {
    display: inline-grid;
  }

  .header-drawer {
    position: absolute;
    top: 100%;
    right: -20px;
    left: -20px;
    display: none;
    max-height: calc(100vh - 112px);
    max-height: var(--menu-available-height, calc(100dvh - 112px));
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    background: var(--color-header-blue);
    box-shadow: 0 18px 36px rgba(16, 59, 83, 0.14);
  }

  .header-drawer.is-open {
    display: flex;
  }

  .primary-menu {
    align-items: stretch;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
  }

  .site-navigation {
    min-height: 0;
    flex: 0 0 auto;
  }

  .primary-menu a {
    display: flex;
    min-height: 46px;
    width: 100%;
    padding: 10px 12px;
    color: #fff;
    font-size: 15px;
  }

  .primary-menu a:hover,
  .primary-menu a:focus,
  .primary-menu .current-menu-item > a,
  .primary-menu .current-menu-ancestor > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }

  .primary-menu .sub-menu {
    position: static;
    display: grid;
    margin: 0 0 6px 14px;
    padding: 2px 0 2px 12px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.24);
    opacity: 1;
    visibility: visible;
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: none;
  }

  .header-drawer.has-submenu-accordion .primary-menu > .has-submenu-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: stretch;
  }

  .header-drawer.has-submenu-accordion .primary-menu > .has-submenu-control > a {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    border-radius: 6px 0 0 6px;
  }

  .header-drawer.has-submenu-accordion .primary-menu > .has-submenu-control > a::after {
    display: none;
  }

  .header-drawer.has-submenu-accordion .submenu-toggle {
    position: relative;
    display: inline-grid;
    width: 46px;
    min-height: 46px;
    grid-column: 2;
    grid-row: 1;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0 6px 6px 0;
    color: #fff;
    background: transparent;
    cursor: pointer;
  }

  .header-drawer.has-submenu-accordion .submenu-toggle:hover,
  .header-drawer.has-submenu-accordion .submenu-toggle:focus-visible,
  .header-drawer.has-submenu-accordion .current-menu-ancestor > .submenu-toggle,
  .header-drawer.has-submenu-accordion .current-menu-parent > .submenu-toggle,
  .header-drawer.has-submenu-accordion .current-menu-item > .submenu-toggle {
    background: rgba(255, 255, 255, 0.12);
  }

  .header-drawer.has-submenu-accordion .submenu-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
  }

  .header-drawer.has-submenu-accordion .submenu-toggle > span {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 150ms ease;
  }

  .header-drawer.has-submenu-accordion .is-submenu-open > .submenu-toggle > span {
    transform: translateY(2px) rotate(225deg);
  }

  .header-drawer.has-submenu-accordion .primary-menu > .has-submenu-control > .sub-menu {
    position: static;
    display: none;
    min-width: 0;
    grid-column: 1 / -1;
    margin: 4px 0 8px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 6px;
    opacity: 1;
    visibility: visible;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    transform: none;
    transition: none;
  }

  .header-drawer.has-submenu-accordion .primary-menu > .is-submenu-open > .sub-menu {
    display: grid;
  }

  .header-drawer.has-submenu-accordion .sub-menu a {
    min-height: 42px;
    padding: 8px 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 620;
  }

  .header-actions {
    display: grid;
    width: 100%;
    flex: 0 0 auto;
  }

  .header-actions .search-toggle--desktop {
    display: none;
  }

  .header-action {
    width: 100%;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 42px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-link:nth-child(2) {
    border-right: 0;
  }

  .service-link:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-line);
  }

  .association-intro__layout {
    grid-template-columns: 1fr;
  }

  .association-intro__media {
    max-height: 600px;
  }

  .section__head {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  }

  .section__head-action {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .event-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    min-height: 190px;
  }

  .editorial-news {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    grid-template-rows: none;
  }

  .news-feature {
    grid-row: 1 / 5;
  }

  .news-brief {
    grid-template-columns: 118px minmax(0, 1fr);
    grid-template-rows: none;
  }

  .news-brief__media {
    min-height: 138px;
  }

  .page-header-band--split .page-header-band__inner,
  .event-hero__layout {
    grid-template-columns: 1fr;
  }

  .page-header-band__media {
    max-width: 640px;
  }

  .event-summary {
    max-width: 460px;
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid var(--color-line);
    border-left: 0;
  }
}

@media (max-width: 920px) {
  .event-calendar {
    grid-template-columns: 1fr;
  }

  .event-calendar__agenda {
    max-height: none;
    border-top: 1px solid var(--color-line);
    border-left: 0;
  }
}

@media (max-width: 899px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .top-strip {
    display: none;
  }

  .site-header__inner {
    min-height: 62px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 96px);
    gap: 9px;
  }

  .brand__mark {
    width: 43px;
    height: 43px;
    font-size: 12px;
  }

  .brand__title {
    font-size: 14px;
  }

  .header-controls {
    gap: 5px;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .header-drawer {
    right: -14px;
    left: -14px;
    max-height: calc(100vh - 62px);
    max-height: var(--menu-available-height, calc(100dvh - 62px));
    padding-right: 14px;
    padding-left: 14px;
  }

  .header-search__inner {
    align-items: center;
  }

  .search-form__label {
    display: none;
  }

  .search-field {
    padding-right: 94px;
  }

  .search-submit {
    padding: 0 13px;
  }

  .hero--photo {
    background:
      linear-gradient(180deg, rgba(34, 95, 120, 0.94) 0%, rgba(49, 121, 147, 0.84) 62%, rgba(34, 95, 120, 0.94) 100%),
      var(--hero-image),
      var(--color-header-blue);
    background-position: 61% center;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding: 44px 0 52px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 40px;
    line-height: 1.02;
  }

  .hero__lead {
    margin-top: 16px;
    font-size: 16px;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 22px;
  }

  .hero__actions .button {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
  }

  .hero__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    border: 0;
  }

  .hero__aside {
    gap: 0;
  }

  .hero-metric {
    align-content: center;
    padding: 15px 8px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 14px;
  }

  .hero-metric strong {
    font-size: 34px;
  }

  .hero-metric span {
    font-size: 11px;
  }

  .service-band {
    margin-top: -22px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-link {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 78px;
    gap: 9px;
    padding: 11px;
    border-right: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
  }

  .service-link:nth-child(even) {
    border-right: 0;
  }

  .service-link:nth-child(n + 3) {
    border-bottom: 0;
  }

  .service-link__icon {
    width: 36px;
    height: 36px;
  }

  .service-link small,
  .service-link > .icon {
    display: none;
  }

  .service-link strong {
    font-size: 13px;
  }

  .section {
    padding: 50px 0;
  }

  .association-intro {
    padding-top: 68px;
  }

  .association-intro__layout {
    gap: 34px;
  }

  .association-intro__media {
    aspect-ratio: 16 / 10;
  }

  .association-intro__media figcaption {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .section__head,
  .section__head--simple {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section__head h2,
  .association-intro__content h2,
  .resources-intro h2 {
    font-size: 32px;
  }

  .section__head-action {
    grid-column: auto;
  }

  .event-calendar__calendar,
  .event-calendar__agenda {
    padding: 18px;
  }

  .event-calendar__toolbar {
    gap: 12px;
    margin-bottom: 16px;
  }

  .event-calendar__toolbar h3 {
    font-size: 27px;
  }

  .calendar-day {
    min-height: 54px;
    padding: 7px;
  }

  .calendar-day__number {
    font-size: 13px;
  }

  .calendar-day__count {
    right: 5px;
    bottom: 5px;
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .calendar-agenda__item {
    padding: 16px 0;
  }

  .event-calendar--home .calendar-agenda__item:nth-child(n + 3) {
    display: none;
  }

  .event-archive__list-head {
    margin-top: 52px;
  }

  .event-archive__list-head h2 {
    font-size: 31px;
  }

  .event-card {
    grid-template-columns: 68px minmax(0, 1fr);
    min-height: 0;
  }

  .event-card__date {
    padding: 18px 7px;
  }

  .event-card__date strong {
    font-size: 31px;
  }

  .event-card__content {
    padding: 17px;
  }

  .event-card h2,
  .event-card h3 {
    font-size: 18px;
  }

  .editorial-news {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 12px;
  }

  .news-feature {
    display: grid;
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1.1fr);
  }

  .news-feature__media {
    min-height: 220px;
    aspect-ratio: auto;
  }

  .news-feature__content {
    padding: 17px;
  }

  .news-feature h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 21px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .news-feature p {
    display: none;
  }

  .news-brief {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .news-brief__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .news-brief__content {
    padding: 12px;
  }

  .news-brief h3 {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 8px;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .editorial-news .entry-categories,
  .news-grid .entry-categories {
    display: none;
  }

  .resources-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .resource-list > a {
    grid-template-columns: 40px minmax(0, 1fr) 20px;
  }

  .resource-list > a > span {
    width: 40px;
    height: 40px;
  }

  .grid--3,
  .post-list,
  .event-grid--archive {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .news-grid .post-card__body {
    padding: 12px;
  }

  .news-grid .post-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 0;
    font-size: 15px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .news-grid .post-card p,
  .news-grid .post-card__more {
    display: none;
  }

  .page-header-band {
    padding: 46px 0;
  }

  .page-header-band--contact {
    padding: 30px 0 34px;
  }

  .contact-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
  }

  .contact-header-action {
    width: 100%;
    min-height: 50px;
    height: 100%;
    padding: 7px 9px;
    font-size: 13px;
  }

  .page-title {
    font-size: 38px;
  }

  .page-header-band__lead,
  .post-hero__excerpt {
    font-size: 17px;
  }

  .content-layout {
    grid-template-columns: 1fr;
    padding-top: 36px;
    padding-bottom: 50px;
  }

  .content-layout--contact {
    padding-top: 30px;
    padding-bottom: 44px;
  }

  .entry-content h1 {
    font-size: 34px;
  }

  .entry-content h2 {
    font-size: 29px;
  }

  .entry-content h3 {
    font-size: 24px;
  }

  .development-notice {
    padding: 12px 0 24px;
  }

  .development-notice h2 {
    font-size: 31px;
  }

  .development-notice p {
    margin: 14px auto 20px;
    font-size: 16px;
  }

  .contact-page-content .row.mb-5:has(> .col-lg-4) {
    grid-template-columns: 1fr;
  }

  .contact-page-content .row.mb-5:has(> .col-lg-4) > .col-lg-4,
  .contact-page-content .row.mb-5:has(> .col-lg-4) > .col-lg-4:first-child,
  .contact-page-content .row.mb-5:has(> .col-lg-4) > .col-lg-4:last-child {
    padding: 24px 0 !important;
    border-top: 1px solid var(--color-line);
    border-left: 0;
  }

  .contact-page-content .row.mb-5:has(> .col-lg-4) > .col-lg-4:first-child {
    padding-top: 0 !important;
    border-top: 0;
  }

  .entry-content .row {
    margin: 0;
  }

  .entry-content .row > [class*="col"] {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 8px 0;
  }

  .legacy-content .row.py-3.py-lg-4,
  .legacy-content .row.py-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .legacy-content .row.py-3.py-lg-4 > [class*="col"],
  .legacy-content .row.py-4 > [class*="col"] {
    padding: 10px !important;
  }

  .has-js .legacy-content--collapsible .legacy-content__body {
    max-height: 2900px;
    overflow: hidden;
    border-bottom: 1px solid var(--color-line);
  }

  .has-js .legacy-content--collapsible .legacy-content__body.is-expanded {
    max-height: none;
    overflow: visible;
    border-bottom: 0;
  }

  .has-js .legacy-content--collapsible .legacy-content__toggle {
    display: flex;
    margin: 20px auto 0;
  }

  .legacy-content__toggle .icon {
    transform: rotate(90deg);
  }

  .legacy-content__toggle[aria-expanded="true"] .icon {
    transform: rotate(-90deg);
  }

  .entry-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .entry-content .alignleft,
  .entry-content .alignright {
    float: none;
    margin: 24px auto;
  }

  .president-profile {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .president-profile__media {
    max-width: 380px;
  }

  .person-profile {
    grid-template-columns: 1fr;
    gap: 26px;
    margin: 22px 0 38px;
  }

  .person-profile__media {
    width: min(100%, 340px);
  }

  .person-profile__media--archive {
    width: min(100%, 220px);
  }

  .person-profile__summary h2 {
    font-size: 31px;
  }

  .person-profile__milestones {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }

  .person-profile__milestone {
    padding: 17px 0;
  }

  .person-profile__milestone + .person-profile__milestone {
    border-top: 1px solid var(--color-line);
    border-left: 0;
  }

  .event-hero__layout {
    gap: 28px;
  }

  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    padding-top: 16px;
    padding-bottom: 12px;
  }

  .site-footer__about {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
  }

  .site-footer__about p {
    margin: 0;
  }

  .footer-bottom__inner {
    flex-wrap: wrap;
    padding-top: 7px;
    padding-bottom: 7px;
  }
}

@media (max-width: 440px) {
  .brand__title {
    font-size: 13px;
  }

  .site-footer__contacts {
    font-size: 12px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .site-footer__about {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .site-footer__about p {
    display: none;
  }

  .footer-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px 8px;
    font-size: 11px;
  }

  .footer-bottom__inner {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-footer__contacts p,
  .site-footer__contacts p a,
  .site-footer__address {
    gap: 6px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero__actions .button {
    font-size: 13px;
  }

  .hero__metrics {
    gap: 6px;
  }

  .event-calendar__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .event-calendar__controls {
    width: 100%;
  }

  .event-calendar__today {
    flex: 1;
  }

  .event-calendar__weekdays span {
    min-height: 30px;
    font-size: 10px;
  }

  .calendar-day {
    min-height: 46px;
    padding: 6px;
  }

  .calendar-day__count {
    right: 4px;
    bottom: 4px;
    width: 16px;
    height: 16px;
  }

  .calendar-agenda__item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 11px;
  }

  .calendar-agenda__item time {
    min-height: 52px;
  }

  .calendar-agenda__item time strong {
    font-size: 22px;
  }

  .hero-metric strong {
    font-size: 29px;
  }

  .hero-metric span {
    overflow-wrap: break-word;
    word-break: normal;
    font-size: 10px;
  }

  .service-link {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 74px;
    padding: 9px;
  }

  .service-link__icon {
    width: 34px;
    height: 34px;
  }

  .section__head h2,
  .association-intro__content h2,
  .resources-intro h2 {
    font-size: 32px;
  }

  .news-brief__content {
    padding: 10px;
  }

  .news-brief h3 {
    font-size: 13px;
  }

  .page-title {
    font-size: 34px;
  }
}

@media (max-width: 899px) {
  .content-intro {
    margin-bottom: 36px;
  }

  .content-intro h2 {
    font-size: 32px;
  }

  .content-intro__lead {
    font-size: 17px;
  }

  .partnership-grid,
  .bpr-principles__grid,
  .speaker-directory {
    grid-template-columns: 1fr;
  }

  .partnership-card,
  .bpr-principles__grid article,
  .speaker-card {
    min-height: 0;
    padding: 20px;
  }

  .speaker-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
  }

  .speaker-card__media {
    width: 96px;
    height: 96px;
  }

  .partnership-contact,
  .bpr-audience,
  .bpr-rules,
  .bpr-contact {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .partnership-contact .button {
    width: fit-content;
  }

  .bpr-facts,
  .event-facts {
    grid-template-columns: 1fr;
  }

  .bpr-facts div,
  .event-facts > div {
    padding: 17px 0;
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .bpr-facts div:last-child,
  .event-facts > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 600px) {
  .news-carousel {
    margin-top: 26px;
  }

  .news-carousel__control {
    width: 40px;
    height: 40px;
  }

  .news-carousel__control--previous {
    left: 8px;
  }

  .news-carousel__control--next {
    right: 8px;
  }

  .news-carousel__navigation {
    padding: 0 52px;
  }

  .news-carousel__dots {
    gap: 7px;
  }

  .speaker-card {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .speaker-card__media {
    width: 80px;
    height: 80px;
  }

  .speaker-card h3 {
    font-size: 19px;
  }

  .partnership-directions__list,
  .participation-steps {
    grid-template-columns: 1fr;
  }

  .partnership-directions__list li,
  .participation-steps li {
    border-right: 0;
  }

  .participation-steps li {
    min-height: 0;
    padding: 19px 16px 19px 56px;
  }

  .participation-steps li::before {
    top: 19px;
    left: 14px;
  }

  .participation-actions,
  .participation-actions .button,
  .partnership-contact .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-js .hero__metrics[data-statistics] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .has-js .hero__metrics[data-statistics] .hero-metric {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .hero-metric strong.is-counting {
    animation: none !important;
  }

  .header-drawer.has-submenu-accordion .submenu-toggle > span {
    transition: none !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
