:root {
  --color-white: #ffffff;
  --color-text: #111111;
  --color-ink: #091524;
  --color-text-heading: #111a26;
  --color-text-secondary: #39424c;
  --color-text-muted: #535963;
  --color-bg: var(--color-white);
  --color-bg-muted: #fbfbfb;
  --color-bg-soft: #e6f1fc;
  --color-bg-active: #eef5fb;
  --color-border: #e1e4e8;
  --color-border-soft: #e6ebf0;
  --color-border-strong: #c6cdd7;
  --color-border-control: #cfd7e1;
  --color-brand: #0a6fae;
  --color-brand-accent: #11569b;
  --color-brand-strong: #173f6f;
  --color-brand-dark: #0d4881;
  --color-brand-button: #134f89;
  --color-error: #c62828;
  --color-shadow-soft: rgba(17, 30, 45, 0.08);
  --color-shadow-dropdown: rgba(15, 32, 56, 0.12);
  --color-shadow-text: rgba(0, 0, 0, 0.615);
  --color-overlay-scrim: rgba(12, 23, 37, 0.5);
  --color-hero-overlay-start: rgba(20, 28, 36, 0.04);
  --color-hero-overlay-end: rgba(20, 28, 36, 0.16);
  --color-blue-border-soft: rgba(118, 152, 186, 0.18);
  --color-blue-border-strong: rgba(118, 152, 186, 0.28);
  --font-body: "Open Sans", sans-serif;
  --font-heading: "Open Sans", sans-serif;
  --font-article: "Open Sans", sans-serif;
  --font-ui: "Open Sans", sans-serif;
  --page-width: 1140px;
  --content-width: 980px;
  --page-gutter: 24px;
  --image-hero-main: url("../images/vyznamne-aktivity/hp-pef-foto-1-scaled.webp");
  --image-hero-activities: url("/assets/images/vyznamne-aktivity/hp-pef-foto-1-scaled.webp");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

.layout-container {
  width: min(var(--page-width), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
}

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

.site-header {
  background: var(--color-bg);
}

.site-header__inner {
  padding: 0;
  min-height: 122px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-logo {
  display: inline-flex;
  flex: 0 0 auto;
  margin-left: -18px;
}

.site-logo img {
  width: 240px;
  height: auto;
  display: block;
  filter: brightness(0);
}

.nav-toggle-input,
.nav-toggle-button {
  display: none;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav__list,
.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 18px;
}

.primary-nav__list > li {
  position: relative;
}

.primary-nav__list a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.primary-nav__list > li > a {
  display: flex;
  align-items: center;
  line-height: 1;
  min-height: 56px;
  padding: 0 12px;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 1.5px solid var(--color-text);
  border-bottom: 1.5px solid var(--color-text);
  transform: translateY(-2px) rotate(45deg);
  transition: border-color 180ms ease;
}

.primary-nav__list > li > a:hover,
.primary-nav__list > li > a:focus-visible {
  background: var(--color-brand-strong);
  color: var(--color-white);
}

.primary-nav__list > li > a:hover::after,
.primary-nav__list > li > a:focus-visible::after {
  border-color: var(--color-white);
}

.has-dropdown:hover > a,
.has-dropdown:focus-within > a {
  background: var(--color-brand-strong);
  color: var(--color-white);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.has-dropdown:hover > a::after,
.has-dropdown:focus-within > a::after {
  border-color: var(--color-white);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  max-width: 300px;
  background: var(--color-white);
  border: 0;
  border-radius: 0;
  padding: 8px 0;
  box-shadow: 0 16px 36px var(--color-shadow-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 18px;
  border-radius: 0;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 500;
  white-space: normal;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus-visible {
  background: var(--color-brand-strong);
  color: var(--color-white);
}

.dropdown-menu [aria-current="page"] {
  color: var(--color-brand-strong);
  font-weight: 600;
}

.dropdown-menu [aria-current="page"]:hover,
.dropdown-menu [aria-current="page"]:focus-visible {
  color: var(--color-white);
}

.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-switcher {
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-white);
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.language-switcher img {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
}

.language-switcher span {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.language-switcher:hover,
.language-switcher:focus-visible {
  background: var(--color-bg-muted);
  text-decoration: none;
}

.header-search-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  margin-left: 4px;
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-text);
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.header-search-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.header-search-link:hover,
.header-search-link:focus-visible {
  border-color: var(--color-brand-strong);
  background: var(--color-brand-strong);
  color: var(--color-white);
}

.hero-banner {
  position: relative;
  isolation: isolate;
  height: 512px;
  color: var(--color-white);
  background-image: var(--image-hero-main);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero-banner__inner {
  height: 100%;
  padding: 62px 0 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.hero-banner__kicker {
  margin: 0;
  padding-top: 30px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--color-bg-muted);
  text-shadow: 0 1px 20px var(white);
}

.hero-banner h1 {
  margin: 32px 0 28px;
  align-self: stretch;
  width: min(var(--page-width), 100%);
  max-width: none;
  font-family: var(--font-heading);
  font-size: 68px;
  line-height: 1.05;
  font-weight: 700;
  overflow-wrap: normal;
  word-break: normal;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px var(--color-shadow-text);
}

.hero-banner__subtitle {
  margin: 0 0 88px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04rem;
  text-shadow: 0 2px 10px var(--color-shadow-text);
}

.dropdown-menu a[aria-current="page"] {
  background: var(--color-bg-active);
  color: var(--color-brand-accent);
  font-weight: 600;
}

.subpage-hero {
  position: relative;
  color: var(--color-white);
  background-image:
    linear-gradient(180deg, var(--color-hero-overlay-start) 0%, var(--color-hero-overlay-end) 100%),
    var(--image-hero-main);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.subpage-hero__breadcrumbs {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-blue-border-soft);
  border-bottom: 1px solid var(--color-blue-border-strong);
}

.subpage-hero__breadcrumbs-inner {
  width: min(var(--page-width), calc(100% - (var(--page-gutter) * 2)));
  min-height: 0;
  padding: 8px 0;
  display: flex;
  align-items: center;
}

.subpage-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.4;
}

.subpage-breadcrumbs a {
  color: var(--color-brand-accent);
  text-decoration: none;
}

.subpage-breadcrumbs a:hover,
.subpage-breadcrumbs a:focus-visible {
  text-decoration: underline;
}

.subpage-breadcrumbs__separator {
  color: var(--color-text-muted);
}

.subpage-hero__header {
  background: transparent;
  border-top: none;
  border-bottom: none;
}

.subpage-hero__header-inner {
  width: min(var(--page-width), calc(100% - (var(--page-gutter) * 2)));
  min-height: 142px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.subpage-hero__title {
  margin: 0;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px var(--color-shadow-text);
}

.subpage-content {
  padding: 72px 0 88px;
  background: var(--color-white);
}

.subpage-content__inner {
  width: min(var(--content-width), 100%);
  margin: 0;
}

.subpage-content__lead,
.subpage-content p,
.subpage-content li {
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.66;
}

.subpage-content__lead {
  margin: 0 0 24px;
  color: var(--color-ink);
  font-weight: 600;
}

.subpage-content__list {
  margin: 0 0 40px;
  padding-left: 24px;
  display: grid;
  gap: 8px;
}

.subpage-content p {
  margin: 0;
}

.subpage-content p + p {
  margin-top: 34px;
}

.lab-gallery {
  margin: 22px 0 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.lab-gallery__item {
  margin: 0;
}

.lab-gallery__image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 340px;
  object-fit: cover;
  display: block;
}

.domaci-spoluprace-page .subpage-content {
  background: var(--color-bg-muted);
}

.domestic-coop__heading,
.foreign-coop__heading,
.laboratories-page__heading {
  margin: 56px 0 18px;
  color: var(--color-text-heading);
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.14;
  font-weight: 700;
}

.domestic-coop__rows {
  margin: 24px 0 62px;
  border-bottom: 1px solid var(--color-border-strong);
}

.domestic-coop__row {
  display: grid;
  border-top: 1px solid var(--color-border-strong);
}

.domestic-coop__row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.domestic-coop__card {
  margin: 0;
  padding: 28px 18px 24px;
  text-align: center;
}

.domestic-coop__logo-wrap {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.domestic-coop__logo-wrap--org {
  height: 176px;
}

.domestic-coop__logo {
  display: block;
  width: auto;
  max-width: 78%;
  max-height: 120px;
  object-fit: contain;
}

.domestic-coop__logo-wrap--org .domestic-coop__logo {
  max-height: 104px;
}

.domestic-coop__label {
  margin: 14px 0 0;
  color: var(--color-text-heading);
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.38;
  font-weight: 700;
}

.domestic-coop__list {
  margin: 26px 0 0;
  padding-left: 24px;
  columns: 2;
  column-gap: 44px;
}

.domestic-coop__list li {
  break-inside: avoid;
  margin-bottom: 10px;
}

.zahranicni-spoluprace-page .subpage-content {
  background: var(--color-bg-muted);
}

.foreign-coop__rows {
  margin: 24px 0 62px;
  border-bottom: 1px solid var(--color-border-strong);
}

.foreign-coop__row {
  display: grid;
  border-top: 1px solid var(--color-border-strong);
}

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

.foreign-coop__row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.foreign-coop__card {
  margin: 0;
  padding: 28px 18px 24px;
  text-align: center;
}

.foreign-coop__logo-wrap {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.foreign-coop__logo-wrap--org {
  height: 176px;
}

.foreign-coop__logo {
  display: block;
  width: auto;
  max-width: 78%;
  max-height: 124px;
  object-fit: contain;
}

.foreign-coop__logo--square {
  max-height: 148px;
}

.foreign-coop__logo--tall {
  max-height: 170px;
}

.foreign-coop__label {
  margin: 14px 0 0;
  color: var(--color-text-heading);
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.38;
  font-weight: 700;
}

.foreign-coop__list {
  margin: 6px 0 0;
  padding-left: 24px;
  columns: 2;
  column-gap: 44px;
}

.foreign-coop__list li {
  break-inside: avoid;
  margin-bottom: 10px;
}

.foreign-coop__list--compact li {
  margin-bottom: 8px;
}

.foreign-coop__note {
  margin-top: 48px;
  color: var(--color-text-heading);
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
}

.foreign-coop__map {
  margin-top: 24px;
}

.foreign-coop__map iframe {
  display: block;
  width: 100%;
  max-width: 1000px;
  border: 0;
}

.news-events-page .subpage-content {
  background: var(--color-bg-muted);
}

.news-article-hero {
  position: relative;
  color: var(--color-white);
  background-image:
    linear-gradient(180deg, var(--color-hero-overlay-start) 0%, var(--color-hero-overlay-end) 100%),
    var(--image-hero-main);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.news-article-hero__breadcrumbs {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-blue-border-soft);
  border-bottom: 1px solid var(--color-blue-border-strong);
}

.news-article-hero__breadcrumbs-inner {
  width: min(var(--page-width), calc(100% - (var(--page-gutter) * 2)));
  min-height: 0;
  padding: 8px 0;
  display: flex;
  align-items: center;
}

.news-article-hero__breadcrumbs .subpage-breadcrumbs {
  color: var(--color-brand-accent);
  font-size: 15px;
  line-height: 1.3;
}

.news-article-hero__breadcrumbs .subpage-breadcrumbs a,
.news-article-hero__breadcrumbs .subpage-breadcrumbs__separator {
  color: var(--color-brand-accent);
}

.news-article-hero__inner {
  min-height: 142px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.news-article-hero__title {
  margin: 0;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px var(--color-shadow-text);
}

.news-article {
  padding: 24px 0 88px;
}

.news-article__content {
  width: min(var(--content-width), 100%);
  margin: 0 auto;
}

.news-article__meta {
  margin: 0 0 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}

.news-article__meta-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-secondary);
  font-size: 18px;
  line-height: 1.3;
}

.news-article__meta-item::before {
  content: "";
  display: inline-block;
}

.news-article__meta-item--date::before {
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-brand-accent);
  border-radius: 50%;
  background:
    linear-gradient(var(--color-brand-accent), var(--color-brand-accent)) center 3px / 2px 5px no-repeat,
    linear-gradient(var(--color-brand-accent), var(--color-brand-accent)) center / 6px 2px no-repeat;
}

.news-article__meta-item--category::before {
  width: 17px;
  height: 13px;
  border: 2px solid var(--color-brand-accent);
  border-radius: 2px;
  background: linear-gradient(var(--color-brand-accent), var(--color-brand-accent)) 3px 3px / 7px 2px no-repeat;
}

.news-article .guten-column-wrapper {
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  color: var(--color-text-secondary);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.4;
}

.news-article .wp-block-gutenverse-icon .guten-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-accent);
  font-size: 16px;
  line-height: 1;
}

.news-article .wp-block-post-date {
  display: inline-flex;
  align-items: center;
}

.news-article .wp-block-post-date time {
  color: var(--color-text-secondary);
}

.news-article .guten-post-terms {
  display: inline-flex;
  align-items: center;
}

.news-article .guten-post-terms span {
  display: inline;
}

.news-article .guten-post-terms .term-list {
  display: inline;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.news-article__lead,
.news-article__content p {
  margin: 0;
  color: var(--color-text-muted);
  font-family: var(--font-article);
  font-size: 18px;
  line-height: 1.62;
}

.news-article__lead {
  color: var(--color-text-secondary);
  font-weight: 700;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.news-article__content p + p {
  margin-top: 28px;
}

.news-events-placeholder {
  min-height: 420px;
}

@media (max-width: 1024px) {
  .domestic-coop__heading,
  .foreign-coop__heading,
  .laboratories-page__heading {
    margin-top: 42px;
    font-size: 30px;
  }

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

  .domestic-coop__row--two {
    grid-template-columns: 1fr;
  }

  .domestic-coop__logo-wrap {
    height: 150px;
  }

  .domestic-coop__label {
    font-size: 18px;
  }

  .domestic-coop__list {
    columns: 1;
  }

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

  .foreign-coop__row--two {
    grid-template-columns: 1fr;
  }

  .foreign-coop__logo-wrap {
    height: 150px;
  }

  .foreign-coop__logo-wrap--org {
    height: 146px;
  }

  .foreign-coop__label {
    font-size: 18px;
  }

  .foreign-coop__list {
    columns: 1;
  }

  .foreign-coop__note {
    font-size: 21px;
  }

  .news-article {
    padding-bottom: 64px;
  }

  .news-article__lead,
  .news-article__content p {
    font-size: 16px;
  }

  .news-article__meta-item {
    font-size: 16px;
  }

  .news-article .guten-column-wrapper {
    font-size: 14px;
  }

  .news-events-placeholder {
    min-height: 300px;
  }
}

.projects-page__content {
  background: var(--color-bg-muted);
}

.projects-page .subpage-content__inner {
  width: min(var(--content-width), 100%);
}

.projects-page__section {
  margin-top: 64px;
}

.projects-page__heading {
  margin: 0 0 36px;
  color: var(--color-text-heading);
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.project-card {
  min-height: 346px;
  padding: 28px 24px 26px;
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  box-shadow: 0 14px 34px var(--color-shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.project-card__logo-wrap {
  width: 100%;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.project-card__logo {
  display: block;
  width: auto;
  max-width: 86%;
  max-height: 94px;
  object-fit: contain;
}

.project-card__logo--wide {
  max-width: 90%;
}

.project-card__logo--square {
  max-height: 106px;
}

.project-card__logo--tall {
  max-height: 112px;
}

.project-card__title {
  margin: 0 0 24px;
  color: var(--color-text-heading);
  font-size: 24px;
  line-height: 1.28;
  font-weight: 500;
  text-wrap: balance;
}

.project-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 8px;
  border: 1px solid var(--color-brand-strong);
  background: var(--color-brand-button);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.project-card__cta:hover,
.project-card__cta:focus-visible {
  background: var(--color-brand-strong);
}

.projects-page__list {
  margin: 0;
  padding-left: 24px;
  display: grid;
  gap: 10px;
}

.projects-page__list li {
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1.6;
}

.news-feed {
  background: var(--color-bg-muted);
  padding-bottom: 72px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000;
  background: var(--color-brand-strong);
  color: var(--color-white);
  padding: 10px 14px;
}

.skip-link:focus {
  top: 12px;
}

.main {
  display: block;
}

.primary-nav__button {
  display: flex;
  align-items: center;
  line-height: 1;
  min-height: 56px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.005em;
}

.primary-nav__button:hover,
.primary-nav__button:focus-visible,
.primary-nav__button[aria-expanded="true"],
.primary-nav__button.is-active {
  background: var(--color-brand-strong);
  color: var(--color-white);
}

.primary-nav__button::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.has-dropdown .primary-nav__button[aria-expanded="true"] + .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-toggle-button {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border-control);
  background: var(--color-white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 8px;
}

.nav-toggle-button span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-button.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle-button.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-button.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--color-overlay-scrim);
}

.mobile-nav__panel {
  margin-left: auto;
  width: min(360px, 100%);
  min-height: 100%;
  background: var(--color-white);
  padding: 88px 20px 24px;
  overflow-y: auto;
}

.mobile-nav__list,
.mobile-nav__dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav__item + .mobile-nav__item {
  border-top: 1px solid var(--color-border-soft);
}

.mobile-nav__link,
.mobile-nav__toggle,
.mobile-nav__dropdown-link {
  display: block;
  width: 100%;
  padding: 16px 0;
  color: var(--color-text);
  text-decoration: none;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 16px;
}

.mobile-nav__toggle {
  position: relative;
  padding-right: 28px;
}

.mobile-nav__toggle::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--color-brand-accent);
}

.mobile-nav__item--dropdown.is-open .mobile-nav__toggle::after {
  content: "−";
}

.mobile-nav__dropdown {
  display: none;
  padding-bottom: 12px;
}

.mobile-nav__item--dropdown.is-open .mobile-nav__dropdown {
  display: block;
}

.mobile-nav__dropdown-link {
  padding: 10px 0 10px 16px;
  color: var(--color-text-muted);
}

body.mobile-nav-open {
  overflow: hidden;
}

.homepage-section {
  padding: 72px 0;
  background: var(--color-white);
}

.homepage-section--alt {
  background: var(--color-bg-muted);
}

.homepage-block {
  width: min(var(--content-width), 100%);
}

.homepage-block h2 {
  margin: 0 0 18px;
  color: var(--color-text-heading);
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.14;
  font-weight: 700;
}

.homepage-block p,
.homepage-block li {
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1.66;
}

.homepage-block ul,
.homepage-block ol,
.page-detail__content ul,
.page-detail__content ol,
.news-article__body ul,
.news-article__body ol {
  list-style: revert;
  padding-left: 24px;
}

.news-feed__tags,
.listing-card__tags,
.news-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tag-color, var(--color-brand-accent)) 12%, var(--color-white));
  color: var(--tag-color, var(--color-brand-accent));
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.article-draft-badge {
  --tag-color: var(--color-brand-accent);
  background: var(--color-brand-accent);
  color: var(--color-white);
}

.tag--filter {
  background: color-mix(in srgb, var(--tag-color, var(--color-brand-strong)) 12%, var(--color-white));
  color: var(--tag-color, var(--color-brand-strong));
  border: 1px solid color-mix(in srgb, var(--tag-color, var(--color-brand-strong)) 35%, transparent);
}

.tag--filter:hover,
.tag--filter:focus-visible {
  background: color-mix(in srgb, var(--tag-color, var(--color-brand-strong)) 22%, var(--color-white));
}

.tag--active {
  background: var(--tag-color, var(--color-brand-strong));
  border-color: var(--tag-color, var(--color-brand-strong));
  color: var(--color-white);
}

.tag--active:hover,
.tag--active:focus-visible {
  background: var(--tag-color, var(--color-brand-strong));
}

.articles-page {
  background: var(--color-bg-muted);
}

.articles-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 12px 18px;
  margin-bottom: 12px;
}

.articles-toolbar__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.articles-search {
  min-width: 0;
  width: 100%;
}

.articles-search__field {
  display: flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--color-border-control);
  border-radius: 8px;
  background: var(--color-white);
  overflow: hidden;
}

.articles-search__input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  font: inherit;
}

.articles-search__input:focus {
  outline: none;
}

.articles-search__field:focus-within {
  border-color: var(--color-brand-strong);
  box-shadow: 0 0 0 3px var(--color-bg-soft), 0 0 0 4px var(--color-brand-strong);
}

.articles-search__submit {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--color-border-control);
  background: var(--color-bg-soft);
  color: var(--color-brand-strong);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.articles-search__submit:hover,
.articles-search__submit:focus-visible {
  background: var(--color-brand-strong);
  color: var(--color-white);
}

.articles-sort {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 14px;
  margin: 25px 0 12px;
}

.articles-sort__link {
  color: var(--color-brand-strong);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.articles-sort__link:hover,
.articles-sort__link:focus-visible {
  text-decoration: underline;
}

.articles-sort__link--active {
  color: var(--color-brand-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.articles-results-summary {
  margin: 0 0 18px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.site-search-form {
  width: 100%;
}

.site-search-form__field {
  display: flex;
  align-items: stretch;
  min-height: 58px;
  border: 1px solid var(--color-border-control);
  border-radius: 8px;
  background: var(--color-white);
  overflow: hidden;
  box-shadow: 0 12px 30px var(--color-shadow-soft);
}

.site-search-form__input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 14px 18px;
  color: var(--color-text);
  font: inherit;
  font-size: 18px;
}

.site-search-form__input:focus {
  outline: none;
}

.site-search-form__field:focus-within {
  border-color: var(--color-brand-strong);
  box-shadow: 0 0 0 3px var(--color-bg-soft), 0 0 0 4px var(--color-brand-strong);
}

.site-search-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 132px;
  padding: 0 20px;
  border: 0;
  border-left: 1px solid var(--color-border-control);
  background: var(--color-brand-strong);
  color: var(--color-white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-search-form__submit:hover,
.site-search-form__submit:focus-visible {
  background: var(--color-brand-accent);
}

.site-search-form__submit-icon {
  font-size: 19px;
  line-height: 1;
}

.search-section .subpage-content__inner {
  display: grid;
  gap: 20px;
}

.search-results-summary,
.search-empty {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 16px;
}

.search-results {
  display: grid;
  gap: 18px;
}

.search-result-card {
  padding: 24px;
  border: 1px solid var(--color-border-soft);
  background: var(--color-white);
  box-shadow: 0 14px 34px var(--color-shadow-soft);
}

.search-result-card__meta {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
}

.search-result-card__type {
  color: var(--color-brand-strong);
  text-transform: uppercase;
}

.search-result-card__tags {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.search-result-card__title {
  margin: 0 0 12px;
  color: var(--color-brand-accent);
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.2;
}

.search-result-card__title a {
  color: inherit;
  text-decoration: none;
}

.search-result-card__title a:hover,
.search-result-card__title a:focus-visible {
  text-decoration: underline;
}

.search-result-card__excerpt {
  margin: 0 0 16px;
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.6;
}

.search-result-card__excerpt mark {
  padding: 0 2px;
  border-radius: 3px;
  background: #fff0a8;
  color: var(--color-text-heading);
}

.search-result-card__link {
  color: var(--color-brand-accent);
  font-weight: 700;
  text-decoration: none;
}

.search-result-card__link:hover,
.search-result-card__link:focus-visible {
  text-decoration: underline;
}

.event-form__input {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--color-border-control);
  border-radius: 8px;
  background: var(--color-white);
  font: inherit;
}

#reg-first-name,
#reg-last-name {
  width: 300px;
  max-width: 100%;
}

.article-list {
  display: grid;
  gap: 22px;
}

.listing-card,
.event-registration,
.article-featured-image img {
  background: var(--color-white);
}

.listing-card {
  padding: 24px;
  border: 1px solid var(--color-border-soft);
  box-shadow: 0 14px 34px var(--color-shadow-soft);
}

.listing-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 14px;
}

.listing-card__date {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 700;
}

.listing-card__title {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.2;
}

.listing-card__title a {
  color: var(--color-brand-accent);
  text-decoration: none;
}

.listing-card__title a:hover,
.listing-card__title a:focus-visible {
  text-decoration: underline;
}

.listing-card__excerpt {
  margin: 0 0 18px;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1.62;
}

.listing-card__excerpt--snippet mark {
  padding: 0 2px;
  border-radius: 3px;
  background: #fff0a8;
  color: var(--color-text-heading);
}

.listing-card__link {
  color: var(--color-brand-accent);
  font-weight: 700;
  text-decoration: none;
}

.pagination {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pagination__pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--color-border-control);
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-brand-strong);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.pagination__item:hover,
.pagination__item:focus-visible {
  border-color: var(--color-brand-strong);
  background: var(--color-bg-soft);
}

.pagination__item--current {
  border-color: var(--color-brand-strong);
  background: var(--color-bg-soft);
}

.pagination__item--control {
  min-width: 110px;
}

.pagination__item--disabled {
  color: var(--color-text-muted);
  opacity: 0.55;
}

.pagination__item--disabled:hover,
.pagination__item--disabled:focus-visible {
  border-color: var(--color-border-control);
  background: var(--color-white);
}

.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 40px;
  color: var(--color-text-muted);
  font-weight: 700;
}

.article-featured-image {
  margin: 28px 0;
}

.article-featured-image img {
  width: 100%;
  height: auto;
}

.news-article__body,
.page-detail__content,
.event-registration__description {
  margin-top: 28px;
}

.news-article__body,
.page-detail__content {
  font-family: var(--font-article);
  font-weight: 200;
}

.news-article__body h2,
.page-detail__content h2,
.news-article__body h3,
.page-detail__content h3 {
  margin: 36px 0 18px;
  color: var(--color-text-heading);
  font-family: var(--font-heading);
}

.news-article__body img,
.page-detail__content img,
.event-registration__description img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
}

.news-article__body figure,
.page-detail__content figure {
  max-width: 100%;
  margin: 24px auto;
}

.news-article__body figure img,
.page-detail__content figure img {
  margin: 0 auto;
}

.news-article__body figcaption,
.page-detail__content figcaption {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 14px;
  text-align: center;
}

.news-article__body table,
.page-detail__content table {
  display: block;
  max-width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.news-article__body iframe,
.page-detail__content iframe {
  max-width: 100%;
}

.news-article__body p,
.page-detail__content p,
.event-registration__description p {
  margin: 0 0 20px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.article-detail__event-cta,
.article-detail__footer {
  margin-top: 28px;
}

.article-gallery {
  margin-top: 36px;
}

.article-gallery__title {
  margin: 0 0 18px;
  color: var(--color-text-heading);
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.25;
}

.article-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.article-gallery__item {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.article-gallery__item:focus-visible {
  outline: 3px solid var(--color-brand-accent);
  outline-offset: 3px;
}

.article-gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 64px 72px;
  background: rgba(0, 0, 0, 0.88);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__image {
  max-width: min(100%, 1180px);
  max-height: calc(100vh - 128px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: var(--color-white);
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: fixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--color-white);
  cursor: pointer;
}

.gallery-lightbox__close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 32px;
  line-height: 1;
}

.gallery-lightbox__nav {
  top: 50%;
  width: 48px;
  height: 64px;
  transform: translateY(-50%);
  font-size: 52px;
  line-height: 1;
}

.gallery-lightbox__nav--prev {
  left: 18px;
}

.gallery-lightbox__nav--next {
  right: 18px;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover,
.gallery-lightbox__close:focus-visible,
.gallery-lightbox__nav:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

@media (max-width: 640px) {
  .article-gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .gallery-lightbox {
    padding: 58px 12px;
  }

  .gallery-lightbox__image {
    max-height: calc(100vh - 116px);
  }

  .gallery-lightbox__nav {
    top: auto;
    bottom: 14px;
    width: 52px;
    height: 44px;
    transform: none;
    font-size: 40px;
  }
}

.event-registration {
  padding: 32px;
  border: 1px solid var(--color-border-soft);
  box-shadow: 0 14px 34px var(--color-shadow-soft);
}

.event-registration__info {
  margin-top: 16px;
  color: var(--color-text-secondary);
}

.event-registration__debug-email {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--color-border-soft);
  background: var(--color-bg-soft);
}

.event-registration__debug-email h3 {
  margin: 0 0 12px;
}

.event-registration__debug-email p {
  margin: 0 0 8px;
}

.event-registration__debug-email-frame {
  display: block;
  width: 100%;
  min-height: 360px;
  margin-top: 12px;
  border: 1px solid var(--color-border-soft);
  background: #fff;
}

/* --------------------------------------------------------------------------
   Practice lectures
   -------------------------------------------------------------------------- */
.practice-lectures__intro {
  margin-bottom: 42px;
}

.practice-lectures__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 22px;
  flex-wrap: wrap;
}

.practice-lectures__section-title,
.practice-archive-group__heading h2 {
  margin: 0;
  color: var(--color-text-heading);
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.2;
}

.practice-lectures__archive-link,
.practice-archive-group__heading a,
.practice-lecture-item__register,
.practice-lecture-item__recording,
.practice-lecture-links a {
  color: var(--color-brand-accent);
  font-weight: 700;
  text-decoration: none;
}

.practice-lectures__archive-link:hover,
.practice-lectures__archive-link:focus-visible,
.practice-archive-group__heading a:hover,
.practice-archive-group__heading a:focus-visible,
.practice-lecture-item__register:hover,
.practice-lecture-item__register:focus-visible,
.practice-lecture-item__recording:hover,
.practice-lecture-item__recording:focus-visible,
.practice-lecture-links a:hover,
.practice-lecture-links a:focus-visible {
  text-decoration: underline;
}

.practice-lecture-item__actions,
.practice-lecture-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.practice-lecture-item__registration-closed {
  color: var(--color-text-muted);
}

.practice-series-card__summary {
  display: flex;
  align-items: baseline;
  gap: 10px 18px;
  flex-wrap: wrap;
}

.practice-series-card__summary span {
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1.4;
  font-weight: 700;
}

.practice-series-detail__description {
  margin-bottom: 34px;
}

.practice-lecture-list {
  display: grid;
  gap: 18px;
}

.practice-lecture-item {
  padding: 24px;
  border: 1px solid var(--color-border-soft);
  background: var(--color-white);
  box-shadow: 0 14px 34px var(--color-shadow-soft);
}

.practice-lecture-item__time {
  margin: 0 0 8px;
  color: var(--color-brand-accent);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
}

.practice-lecture-item__title {
  margin: 0 0 16px;
  color: var(--color-text-heading);
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.25;
}

.practice-lecture-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px 18px;
  margin: 0 0 16px;
}

.practice-lecture-meta div {
  min-width: 0;
}

.practice-lecture-meta dt {
  margin: 0 0 3px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
}

.practice-lecture-meta dd {
  margin: 0;
  color: var(--color-text-heading);
  font-size: 15px;
  line-height: 1.4;
}

.practice-archive-groups {
  display: grid;
  gap: 34px;
}

.practice-archive-group {
  display: grid;
  gap: 16px;
}

.practice-archive-group__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.practice-archive-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border-soft);
  background: var(--color-white);
}

.practice-archive-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.practice-archive-table th,
.practice-archive-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border-soft);
  text-align: left;
  vertical-align: top;
}

.practice-archive-table th {
  color: var(--color-text-heading);
  font-size: 13px;
  font-weight: 800;
  background: var(--color-bg-soft);
}

.practice-archive-table td {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.45;
}

.practice-archive-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 720px) {
  .practice-lecture-item {
    padding: 20px;
  }

  .practice-lecture-item__title {
    font-size: 22px;
  }
}

.alert {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 8px;
}

.alert--success {
  background: #ebfff1;
  color: #17653d;
}

.alert--warning {
  background: #fff8e9;
  color: #8a5a11;
}

.alert--error {
  background: #ffefef;
  color: #9d1f1f;
}

.event-form {
  margin-top: 24px;
}

.event-form__required-notice {
  margin: 0 0 18px;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.event-form__controls {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.event-form__controls:disabled {
  opacity: 0.65;
}

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

.event-form__group + .event-form__group,
.event-form__row + .event-form__group {
  margin-top: 18px;
}

.event-form__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.event-form__input--email {
  width: min(100%, 36rem);
}

.event-form__input--text {
  width: min(100%, var(--event-form-control-width, 40ch));
}

.event-form__input--select {
  width: min(100%, var(--event-form-select-width, 32ch));
}

.event-form__input--error {
  border-color: var(--color-error);
}

.event-form__error {
  display: block;
  margin-top: 6px;
  color: var(--color-error);
  font-size: 14px;
}

.event-form__hint {
  display: block;
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.event-form__fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.event-form__fieldset .event-form__label {
  padding: 0;
}

.event-form__radio-group,
.event-form__checkbox-group {
  display: grid;
  gap: 10px;
}

.event-form__radio,
.event-form__checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.event-form__actions {
  margin-top: 24px;
}

.event-form .button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 8px;
  border: 1px solid var(--color-brand-strong);
  background: var(--color-brand-button);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: var(--color-brand-strong);
  color: var(--color-white);
  text-decoration: none;
}

.contact-footer__block p {
  margin: 0 0 10px;
}

.resource-card__media {
  display: block;
  margin: -36px -38px 28px;
  overflow: hidden;
  background: var(--color-bg-muted);
}

.resource-grid--wide .resource-card__media {
  margin: -40px -40px 30px;
}

.resource-card__media img {
  width: 100%;
  height: auto;
  display: block;
}

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

  .site-logo img {
    width: 180px;
  }

  .primary-nav,
  .header-search-link,
  .language-switcher {
    display: none;
  }

  .nav-toggle-button {
    display: inline-flex;
    margin-left: auto;
  }
}

@media (max-width: 767px) {
  .hero-banner {
    height: auto;
    min-height: 360px;
  }

  .hero-banner__inner {
    padding: 44px 0 52px;
  }

  .hero-banner h1 {
    font-size: 42px;
    margin: 20px 0;
  }

  .subpage-hero__title,
  .news-article-hero__title,
  .homepage-block h2,
  .listing-card__title {
    font-size: 20px;
  }

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

  .event-registration,
  .listing-card {
    padding: 20px;
  }

  .articles-toolbar {
    grid-template-columns: 1fr;
  }

  .articles-sort {
    justify-content: flex-start;
  }

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

  .pagination__pages {
    order: -1;
  }

  .pagination__item--control {
    width: 100%;
  }
}

.news-feed__inner {
  padding: 0;
}

.news-feed__panel {
  margin: -160px auto 0;
  position: relative;
  z-index: 5;
  background: var(--color-white);
  width: 100%;
  box-shadow: 0px 5px 25px  rgba(9, 31, 52, 0.1);
}

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

.news-feed__item {
  padding: 22px 16px 24px;
  min-height: 256px;
  display: flex;
  flex-direction: column;
}

.news-feed__item + .news-feed__item {
  border-left: 0;
}

.news-feed__title {
  margin: 0;
  color: var(--color-brand-accent);
  font-size: 22px;
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.22;
  min-height: 0;
}

.news-feed__title a {
  color: var(--color-brand-accent);
  text-decoration: none;
  font-size: 22px;
  font-family: var(--font-heading);
  font-weight: 500;
  display: block;
  overflow: visible;
  text-wrap: pretty;
}

.news-feed__title a:hover,
.news-feed__title a:focus-visible {
  text-decoration: underline;
}

.news-feed__meta {
  margin: 14px 0 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.news-feed__date {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.3;
}

.news-feed__meta .news-feed__tags {
  margin-left: 0;
}

.news-feed__excerpt {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 16px;
  font-family: var(--font-ui);
  line-height: 1.58;
  width: 353.33px;
  height: 75px;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-feed__link {
  margin-top: auto;
  padding-top: 22px;
  display: inline-block;
  color: var(--color-brand-accent);
  font-size: 16px;
  font-family: var(--font-ui);
  font-weight: 500;
  text-decoration: none;
}

.news-feed__link:hover,
.news-feed__link:focus-visible {
  text-decoration: underline;
}

.news-feed__footer {
  border-top: 1px solid var(--color-border-control);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-feed__footer a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
}

.news-feed__footer a:hover,
.news-feed__footer a:focus-visible {
  text-decoration: underline;
}

.students-overview {
  background: var(--color-bg-muted);
  padding: 40px 0 80px;
}

.students-overview__inner {
  text-align: center;
}

.students-overview__kicker {
  margin: 0;
  color: #c4142d;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.students-overview__title {
  margin: 28px 0 22px;
  color: var(--color-text-heading);
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.students-overview__description {
  margin: 0 auto;
  max-width: 760px;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.45;
}

.button {
  margin-top: auto;
  padding-top: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
}

.button--primary {
  background: var(--color-brand-dark);
  color: var(--color-white);
  border-radius: 3px;
  box-sizing: border-box;
  width: 176px;
  height: 45px;
  padding: 15px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.button--primary span {
  color: var(--color-white);
}

.button__label {
  display: inline-flex;
  align-items: center;
  width: 100px;
  height: 15px;
  line-height: 15px;
  white-space: nowrap;
}

.button__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: var(--color-white);
  font-size: 1.2em;
  font-weight: 400;
  line-height: 15px;
  height: 15px;
  transform: none;
}

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

.contact-footer {
  background: var(--color-bg-soft);
  color: var(--color-ink);
  padding: 88px 0 56px;
}

.contact-footer__inner {
  text-align: center;
}

.contact-footer__block {
  max-width: 760px;
  margin: 0 auto;
  color: var(--color-ink);
  font-size: 17px;
  line-height: 1.7;
}

.contact-footer__block > :last-child {
  margin-bottom: 0;
}

.contact-footer__block a {
  color: var(--color-brand-accent);
  text-decoration: none;
}

.contact-footer__block a:hover,
.contact-footer__block a:focus-visible {
  text-decoration: underline;
}

.contact-nav__title {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.08;
  font-weight: 700;
}

.contact-nav__title a {
  color: inherit;
  text-decoration: none;
}

.contact-nav__title a:hover,
.contact-nav__title a:focus-visible {
  color: var(--color-brand-accent);
}

.contact-nav__list a,
.contact-footer__legal a {
  color: var(--color-brand-accent);
  text-decoration: none;
}

.contact-nav__list a:hover,
.contact-nav__list a:focus-visible,
.contact-footer__legal a:hover,
.contact-footer__legal a:focus-visible {
  text-decoration: underline;
}

.contact-footer__navs,
.contact-footer__brands {
  border-top: 1px solid rgba(18, 36, 59, 0.14);
}

.contact-footer__navs {
  margin-top: 72px;
  padding-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px 32px;
  align-items: start;
}

.contact-nav__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.contact-nav__list a {
  display: inline-block;
  color: var(--color-brand-accent);
  font-size: 14px;
  line-height: 1.45;
}

.contact-footer__brands {
  margin-top: 52px;
  padding-top: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  flex-wrap: wrap;
}

.contact-footer__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-footer__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-footer__brand--kit {
  max-width: 290px;
}

.contact-footer__brand--pef {
  max-width: 370px;
}

.contact-footer__brand--czu {
  max-width: 225px;
}

.contact-footer__legal {
  margin: 38px auto 0;
  max-width: 1040px;
}

.contact-footer__legal p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.contact-footer__legal p + p {
  margin-top: 6px;
}

@media (max-width: 1180px) {
  .resource-card__media,
  .resource-grid--wide .resource-card__media {
    margin: -26px -24px 24px;
  }

  .hero-banner {
    height: auto;
  }

  .site-header__inner {
    min-height: 84px;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-logo img {
    width: 190px;
  }

  .nav-toggle-button {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    margin-left: auto;
  }

  .nav-toggle-button span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    display: block;
  }

  .primary-nav {
    display: none;
    width: 100%;
    margin-left: 0;
    order: 10;
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
  }

  .nav-toggle-input:checked ~ .primary-nav {
    display: block;
  }

  .primary-nav__list {
    display: block;
  }

  .primary-nav__list > li > a {
    display: block;
    min-height: 0;
    padding: 10px 0;
  }

  .dropdown-menu {
    position: static;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    padding: 0 0 8px 12px;
  }

  .dropdown-menu li a {
    padding: 6px 0;
    font-size: 13px;
    line-height: 1.4;
  }

  .language-switcher {
    margin-left: 0;
  }

  .hero-banner__inner {
    padding: 90px 30px 96px;
    min-height: 500px;
  }

  .hero-banner__subtitle {
    margin-bottom: 56px;
  }

  .hero-banner h1 {
    width: 100%;
    max-width: none;
    margin: 22px 0 18px;
    font-size: 54px;
    line-height: 1.04;
  }

  .subpage-hero__breadcrumbs-inner {
    min-height: 0;
    padding: 8px 0;
  }

  .subpage-breadcrumbs {
    font-size: 16px;
  }

  .subpage-hero__header-inner {
    min-height: 124px;
  }

  .subpage-hero__title {
    font-size: 30px;
  }

  .projects-page__heading {
    margin-bottom: 30px;
    font-size: 30px;
  }

  .projects-page__section {
    margin-top: 56px;
  }

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

  .project-card {
    min-height: 326px;
    padding: 24px 20px;
  }

  .project-card__logo-wrap {
    height: 116px;
    margin-bottom: 18px;
  }

  .project-card__title {
    font-size: 22px;
  }

  .project-card__cta {
    min-width: 104px;
    min-height: 46px;
    padding: 12px 18px;
    font-size: 15px;
  }

  .projects-page__list li {
    font-size: 17px;
  }

  .news-feed__panel {
    margin-top: -96px;
  }

  .news-feed__grid {
    grid-template-columns: 1fr;
  }

  .news-feed__item {
    min-height: 0;
    padding: 20px 20px 22px;
  }

  .news-feed__item + .news-feed__item {
    border-left: 0;
    border-top: 1px solid var(--color-border-soft);
  }

  .news-feed__title,
  .news-feed__title a {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.22;
  }

  .news-feed__excerpt {
    width: 100%;
    height: auto;
    font-size: 16px;
  }

  .news-feed__link {
    font-size: 16px;
  }

  .news-feed__footer {
    min-height: 58px;
  }

  .news-feed__footer a {
    font-size: 16px;
  }

  .site-search-form__field {
    min-height: 0;
    flex-direction: column;
  }

  .site-search-form__input {
    min-height: 52px;
    font-size: 16px;
  }

  .site-search-form__submit {
    min-height: 48px;
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--color-border-control);
  }

  .search-result-card {
    padding: 20px 16px;
  }

  .search-result-card__title {
    font-size: 23px;
  }

  .search-result-card__excerpt {
    font-size: 16px;
  }

  .students-overview {
    padding: 32px 0 64px;
  }

  .students-overview__title {
    font-size: 48px;
    margin: 22px 0 18px;
  }

  .students-overview__kicker {
    font-size: 15px;
    letter-spacing: 0.22em;
  }


  .button {
    padding-top: 24px;
  }


  .contact-footer {
    padding: 76px 0 52px;
  }

  .contact-nav__title {
    font-size: 22px;
  }

  .contact-footer__navs {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 44px 32px;
  }

  .contact-footer__brands {
    justify-content: center;
  }
}
@media (max-width: 640px) {
  .resource-card__media,
  .resource-grid--wide .resource-card__media {
    margin: -20px -18px 22px;
  }

  .domestic-coop__row--three {
    grid-template-columns: 1fr;
  }

  .domestic-coop__heading,
  .foreign-coop__heading {
    font-size: 26px;
  }

  .laboratories-page__heading,
  .projects-page__heading {
    font-size: 26px;
  }

  .foreign-coop__row--three {
    grid-template-columns: 1fr;
  }

  .foreign-coop__note {
    font-size: 18px;
  }

  .news-article-hero__inner {
    min-height: 132px;
  }

  .news-article__meta {
    margin-bottom: 24px;
  }

  .news-article__meta-item {
    font-size: 16px;
  }

  .news-article .guten-column-wrapper {
    font-size: 13px;
  }

  .news-article .wp-block-gutenverse-icon .guten-icon-wrapper {
    font-size: 15px;
  }

  .news-events-placeholder {
    min-height: 220px;
  }

  .site-logo img {
    width: 150px;
  }

  .language-switcher span {
    display: none;
  }

  .hero-banner__inner {
    padding: 74px 22px 82px;
    min-height: 420px;
  }

  .hero-banner__kicker {
    font-size: 16px;
  }

  .hero-banner h1 {
    margin: 14px 0 14px;
    font-size: 42px;
    line-height: 0.96;
  }

  .hero-banner__subtitle {
    margin-bottom: 24px;
    font-size: 14px;
  }

  .subpage-hero__breadcrumbs-inner {
    min-height: 0;
    padding: 8px 0;
  }

  .subpage-breadcrumbs {
    gap: 8px;
    font-size: 15px;
  }

  .subpage-hero__header-inner {
    min-height: 108px;
  }

  .subpage-hero__title {
    font-size: 24px;
  }

  .subpage-content {
    padding: 56px 0 68px;
  }

  .subpage-content__lead,
  .subpage-content p,
  .subpage-content li {
    font-size: 16px;
  }

  .subpage-content__list {
    margin-bottom: 32px;
    padding-left: 22px;
  }

  .projects-page__section {
    margin-top: 44px;
  }

  .projects-page__heading {
    margin-bottom: 22px;
    line-height: 1.14;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-card {
    min-height: 0;
    padding: 20px 16px;
  }

  .project-card__logo-wrap {
    height: 96px;
    margin-bottom: 14px;
  }

  .project-card__logo {
    max-height: 72px;
  }

  .project-card__logo--square {
    max-height: 80px;
  }

  .project-card__logo--tall {
    max-height: 88px;
  }

  .project-card__title {
    margin-bottom: 18px;
    font-size: 21px;
  }

  .project-card__cta {
    min-width: 100px;
    min-height: 42px;
    padding: 10px 16px;
    font-size: 14px;
  }

  .projects-page__list {
    padding-left: 22px;
    gap: 8px;
  }

  .projects-page__list li {
    font-size: 16px;
    line-height: 1.55;
  }

  .news-feed__panel {
    margin-top: -52px;
  }

  .news-feed__item {
    padding: 18px 16px 20px;
  }

  .news-feed__title,
  .news-feed__title a {
    font-size: 22px;
  }

  .news-feed__meta {
    margin: 10px 0 8px;
  }

  .news-feed__date {
    font-size: 14px;
  }

  .news-feed__excerpt {
    font-size: 16px;
  }

  .news-feed__link {
    padding-top: 18px;
    font-size: 16px;
  }

  .news-feed__footer a {
    font-size: 16px;
  }

  .students-overview {
    padding: 24px 0 52px;
  }

  .students-overview__title {
    font-size: 34px;
    line-height: 1.08;
    margin: 16px 0 14px;
  }

  .students-overview__kicker {
    font-size: 15px;
    letter-spacing: 0.18em;
  }

  .students-overview__description {
    font-size: 16px;
    line-height: 1.4;
    max-width: 420px;
  }


  .button--primary {
    font-size: 15px;
    width: 176px;
    height: 45px;
    padding: 15px;
  }


  .contact-footer {
    padding: 60px 0 42px;
  }

  .contact-footer__navs {
    grid-template-columns: 1fr;
  }

  .contact-nav__title {
    font-size: 22px;
  }

  .contact-footer__block {
    font-size: 16px;
  }

  .contact-footer__navs {
    margin-top: 52px;
    padding-top: 44px;
    gap: 40px;
  }

  .contact-nav__list {
    margin-top: 20px;
    gap: 16px;
  }

  .contact-nav__list a {
    font-size: 13px;
  }

  .contact-footer__brands {
    margin-top: 40px;
    padding-top: 36px;
    gap: 30px;
  }

  .contact-footer__brand--kit {
    max-width: 250px;
  }

  .contact-footer__brand--pef {
    max-width: 300px;
  }

  .contact-footer__brand--czu {
    max-width: 210px;
  }

  .contact-footer__legal {
    margin-top: 28px;
  }

  .contact-footer__legal p {
    font-size: 15px;
    line-height: 1.65;
  }
}
