:root {
  --page-max: 1600px;
  --page-gutter: clamp(20px, 2.5vw, 32px);
  --page-inset: max(var(--page-gutter), calc((100vw - var(--page-max)) / 2));
  --space-2xs: 8px;
  --space-xs: 12px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --section-y: var(--space-xl);
  --logo-width: 260px;
  --logo-col: calc(var(--logo-width) + 20px);
  --header-bg: #80c8d1;
  --header-deep: #6fb8c3;
  --text-main: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.96);
  --overlay-dark: rgba(9, 32, 39, 0.84);
  --overlay-soft: rgba(9, 32, 39, 0.8);
  --overlay-hover: rgba(9, 32, 39, 0.7);
  --border-tone: rgba(8, 44, 51, 0.55);
  --focus: #0f6f81;
  --btn-brand-bg: #347d94;
  --btn-brand-bg-hover: #2e6f83;
  --btn-brand-text: #ffffff;
  --card-elderly: #a94697;
  --card-elderly-hover: #963e86;
  --card-family: #7d1730;
  --card-family-hover: #6a1329;
  --card-youth: #7f55a2;
  --card-youth-hover: #6e4890;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-heading: "Barlow Condensed", "Arial Narrow", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: #102126;
  background: #e8f3f5;
  overflow-x: clip;
}

h1,
h2,
h3,
.home-banner__title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* V?ikesed silt-pealkirjad j??vad loetavaks sans-serifiks */
.meist-sidebar h2,
.eakad-sidebar h2,
.news-sidebar h2,
.footer-block h2 {
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}

html.font-scale-small {
  font-size: 15px;
}

html.font-scale-large {
  font-size: 18px;
}

html.high-contrast {
  filter: contrast(1.32) saturate(0.85);
}

html.high-contrast body {
  background: #ffffff;
  color: #0b1a20;
}

html.high-contrast .topbar {
  background: #2c6f7b;
}

html.high-contrast .info-page {
  background: #f4fbfd;
}

html.high-contrast .info-page__box,
html.high-contrast .news-card,
html.high-contrast .contact-panel,
html.high-contrast .meist-sidebar,
html.high-contrast .eakad-sidebar,
html.high-contrast .news-sidebar {
  background: #ffffff;
  border-color: #1d5f6d !important;
}

html.high-contrast .main-nav a,
html.high-contrast .news-card h2,
html.high-contrast .info-page__box h1,
html.high-contrast .info-page__box h2 {
  color: #0b2b33;
}

html.high-contrast .main-nav > a.nav-link,
html.high-contrast .main-nav .nav-drop__toggle {
  color: #ffffff;
}

html.high-contrast .center-nav a {
  color: #ffffff;
}

html.high-contrast .site-footer {
  background: #08131a;
  color: #f2fbff;
}

html.high-contrast .site-footer .footer-block h2,
html.high-contrast .site-footer .footer-list li,
html.high-contrast .site-footer .footer-list a {
  color: #f2fbff;
}

html.high-contrast .site-footer .footer-list a:hover,
html.high-contrast .site-footer .footer-list a:focus-visible {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.95);
}

html.high-contrast form.search {
  background: transparent;
  border-color: transparent;
}

html.high-contrast form.search:not(.is-open) input {
  background: transparent !important;
  border-color: transparent !important;
}

html.high-contrast form.search.is-open input,
html.high-contrast form.search.is-open .search__toggle {
  background: #ffffff;
  color: #0b1a20;
  border-color: #1d5f6d !important;
}

html.high-contrast form.search.is-open .search__toggle::before {
  border-color: #0b1a20;
}

html.high-contrast form.search.is-open .search__toggle::after {
  background: #0b1a20;
}
html.high-contrast .contact-form input,
html.high-contrast .contact-form textarea,
html.high-contrast .contact-form .wpcf7-form-control:not(.wpcf7-submit) {
  border-color: #1d5f6d !important;
  color: #0b1a20;
  background: #ffffff;
}

html.high-contrast .btn--brand {
  background: #2b7280;
  color: #ffffff;
}

a {
  color: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #27646d;
  border-bottom: 0;
  backdrop-filter: blur(8px);
  box-shadow: none;
  overflow: visible;
}

.topbar__inner {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 6px var(--page-gutter);
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: var(--logo-col) 1fr;
  align-items: center;
  gap: var(--space-sm);
}

.brand img {
  width: var(--logo-width);
  height: auto;
  display: block;
}

.topbar__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  min-height: 100%;
}

.topbar__menus {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.topbar__menus:has(form.search.is-open) {
  flex-wrap: wrap;
}

.topbar__menus:has(form.search.is-open) .topbar__actions {
  flex: 1 0 100%;
  justify-content: flex-end;
  margin-top: 8px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 0;
}

.menu-toggle__icon {
  position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__icon::before { top: -7px; }
.menu-toggle__icon::after { top: 7px; }

.topbar.is-open .menu-toggle__icon { background: transparent; }
.topbar.is-open .menu-toggle__icon::before { top: 0; transform: rotate(45deg); }
.topbar.is-open .menu-toggle__icon::after { top: 0; transform: rotate(-45deg); }

.main-nav {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  min-width: 0;
  max-width: 100%;
}

.main-nav a,
.main-nav .nav-drop__toggle {
  color: #ffffff;
  text-decoration: none;
  font-family: inherit;
  font-size: clamp(1rem, 1.08vw, 1.16rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 8px 10px;
  border-bottom: 0;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
  position: relative;
  flex: 0 0 auto;
  white-space: nowrap;
}

.main-nav a[href="index.html"] { order: 1; padding-left: 8px; }
.main-nav a[href="meist.html"] { order: 2; }
.main-nav a[href="uritused.html"] { order: 4; }
.main-nav a[href="personal.html"] { order: 5; }
.main-nav a[href="kontakt.html"] { order: 6; padding-right: 8px; }

.main-nav .nav-drop__toggle {
  display: inline-flex;
  align-items: center;
  margin: 0;
  background: none;
  border: 0;
  font-weight: 700;
  line-height: normal;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.main-nav > a.nav-link:focus-visible,
.main-nav .nav-drop__toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.main-nav > a.nav-link:hover,
.main-nav > a.nav-link:focus-visible,
.main-nav .nav-drop__toggle:hover,
.main-nav .nav-drop__toggle:focus-visible,
.nav-drop.is-open .nav-drop__toggle {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.main-nav > a.nav-link[aria-current="page"],
.nav-drop.is-current .nav-drop__toggle {
  color: #ffffff;
  background: rgba(6, 32, 40, 0.34);
  text-decoration: none;
}

.nav-drop {
  position: relative;
  flex: 0 0 auto;
  order: 3;
}

.nav-drop__caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 7px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transform: translateY(1px);
}

.nav-drop__panel {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  z-index: 30;
  min-width: 250px;
  margin: 0;
  padding: 6px 0;
  background: #ffffff;
  border: 1px solid rgba(18, 63, 73, 0.12);
}

.nav-drop.is-open .nav-drop__panel {
  display: block;
}

@media (hover: hover) and (min-width: 981px) {
  .nav-drop:hover .nav-drop__panel,
  .nav-drop:focus-within .nav-drop__panel {
    display: block;
  }
}

.main-nav .nav-drop__panel a {
  display: block;
  width: auto;
  padding: 10px 16px;
  color: #123f49;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  white-space: normal;
}

.main-nav .nav-drop__panel a:hover,
.main-nav .nav-drop__panel a:focus-visible,
.main-nav .nav-drop__panel a[aria-current="page"] {
  color: #0f6f81;
  background: rgba(59, 151, 165, 0.1);
  text-decoration: none;
}

.center-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  flex: 0 0 auto;
  margin-left: 0;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.center-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(1rem, 1.08vw, 1.16rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  padding: 6px 8px 8px;
  border-radius: 0;
  border: 0;
  border-bottom: 0;
  background: transparent;
}

.center-nav a span {
  position: relative;
}

.center-nav a span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: transparent;
}

.center-nav a::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-right: 9px;
  flex: 0 0 12px;
  align-self: center;
}

.center-nav a.nav-center--eakatele::before { background: var(--card-elderly); }
.center-nav a.nav-center--peredele::before { background: var(--card-family); }
.center-nav a.nav-center--noortele::before { background: var(--card-youth); }

.center-nav a:hover,
.center-nav a:focus-visible,
.center-nav a[aria-current="page"] {
  color: #ffffff;
}

.center-nav a:hover span::after,
.center-nav a:focus-visible span::after,
.center-nav a[aria-current="page"] span::after {
  background: #ffffff;
}

.topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  margin-left: 4px;
}

.font-switcher {
  display: flex;
  gap: 4px;
}

.font-switcher button {
  border: 1px solid var(--border-tone);
  background: rgba(238, 251, 252, 0.74);
  color: #0f3a44;
  min-width: 30px;
  height: 28px;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.75rem;
}

form.search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  margin: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

form.search input {
  width: 0;
  min-width: 0;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px 0 0 2px;
  outline: none;
  background: #f7fcfd;
  color: #123f49;
  font-size: 0.96rem;
  opacity: 0;
  pointer-events: none;
  transition: width 0.2s ease, opacity 0.2s ease, padding 0.2s ease;
}

form.search input::placeholder {
  color: #285a65;
}

form.search.is-open {
  width: auto;
  flex: 0 1 auto;
}

form.search.is-open input {
  width: min(320px, 70vw);
  padding: 0 12px;
  opacity: 1;
  pointer-events: auto;
}

form.search input::-webkit-search-decoration,
form.search input::-webkit-search-cancel-button {
  appearance: none;
}

form.search .search__toggle {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}

form.search.is-open .search__toggle {
  background: #f7fcfd;
  border-radius: 0 2px 2px 0;
}

form.search .search__toggle::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  top: 8px;
  left: 8px;
}

form.search .search__toggle::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transform: rotate(45deg);
  top: 19px;
  left: 18px;
}

form.search.is-open .search__toggle::before {
  border-color: #123f49;
}

form.search.is-open .search__toggle::after {
  background: #123f49;
}

form.search .search__toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

form.search.is-open .search__toggle:focus-visible,
form.search.is-open input:focus-visible {
  outline: 2px solid #0f6f81;
  outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.home-banner {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: #102126;
  border-bottom: 0;
  overflow: hidden;
}

.home-banner__carousel {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
}

.home-banner__carousel:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.home-banner__viewport {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  width: 100%;
  min-height: clamp(420px, 44vw, 560px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.home-banner__viewport::-webkit-scrollbar {
  display: none;
}

.home-banner__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: clamp(420px, 44vw, 560px);
  overflow: hidden;
}

.home-banner__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-banner__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(8, 32, 38, 0.88) 0%,
    rgba(8, 32, 38, 0.62) 38%,
    rgba(8, 32, 38, 0.28) 62%,
    rgba(8, 32, 38, 0.08) 100%
  );
  pointer-events: none;
}

.home-banner__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: inherit;
  padding:
    var(--space-xl)
    var(--page-inset)
    calc(var(--space-xl) + 52px);
}

.home-banner__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 36rem;
  color: #ffffff;
}

.home-banner__eyebrow {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.home-banner__title {
  margin: 0;
  font-size: clamp(2.15rem, 3.8vw, 3.35rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 18ch;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.home-banner__text {
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
  max-width: 42ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.home-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: var(--space-xs);
  padding: 12px 22px;
  background: #ffffff;
  border: 2px solid #ffffff;
  color: #123f49;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-banner__cta:hover,
.home-banner__cta:focus-visible {
  background: #123f49;
  border-color: #123f49;
  color: #ffffff;
  transform: none;
}

.home-banner__controls {
  position: absolute;
  right: var(--page-inset);
  bottom: var(--space-md);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.home-banner__counter {
  margin: 0;
  min-width: 3.4rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #123f49;
  background: rgba(242, 246, 245, 0.94);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid rgba(18, 63, 73, 0.22);
}

.home-banner__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 14px;
  background: rgba(242, 246, 245, 0.94);
  border: 1px solid rgba(18, 63, 73, 0.22);
}

.home-banner__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 1px;
  background: #123f49;
  opacity: 0.28;
  transform: rotate(45deg);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-banner__dot:hover,
.home-banner__dot:focus-visible {
  opacity: 0.7;
}

.home-banner__dot.is-active {
  opacity: 1;
  transform: rotate(45deg) scale(1.12);
}

.home-banner__arrow {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(18, 63, 73, 0.28);
  border-radius: 0;
  background: rgba(242, 246, 245, 0.94);
  color: #123f49;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-banner__arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-banner__arrow:hover,
.home-banner__arrow:focus-visible {
  background: #123f49;
  border-color: #123f49;
  color: #ffffff;
}

@media (max-width: 900px) {
  .home-banner__viewport,
  .home-banner__slide {
    min-height: clamp(380px, 62vw, 480px);
  }

  .home-banner__content {
    align-items: flex-end;
    padding:
      var(--space-lg)
      var(--page-gutter)
      calc(var(--space-lg) + 52px);
  }

  .home-banner__copy {
    max-width: none;
  }

  .home-banner__title {
    max-width: none;
  }

  .home-banner__controls {
    right: var(--page-gutter);
  }
}

@media (max-width: 520px) {
  .home-banner__viewport,
  .home-banner__slide {
    min-height: 420px;
  }

  .home-banner__shade {
    background: linear-gradient(
      180deg,
      rgba(8, 32, 38, 0.35) 0%,
      rgba(8, 32, 38, 0.78) 55%,
      rgba(8, 32, 38, 0.92) 100%
    );
  }
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: transparent;
}

.card {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 220px;
  padding: var(--space-lg);
  border: 0;
  transition: background-color 0.25s ease;
}

.card--elderly {
  background: var(--card-elderly);
}

.card--family {
  background: var(--card-family);
}

.card--youth {
  background: var(--card-youth);
}

.card--elderly:hover,
.card--elderly:focus-visible {
  background: var(--card-elderly-hover);
}

.card--family:hover,
.card--family:focus-visible {
  background: var(--card-family-hover);
}

.card--youth:hover,
.card--youth:focus-visible {
  background: var(--card-youth-hover);
}

.card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  color: var(--text-main);
}

.eyebrow {
  margin: 0 0 var(--space-xs);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
}

.card h2 {
  margin: 0 0 var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  line-height: 1.05;
}

.card p {
  margin: 0 0 var(--space-sm);
  color: var(--text-soft);
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
  line-height: 1.45;
  max-width: 30ch;
  flex-grow: 1;
}

.card a {
  display: inline-block;
  margin-top: var(--space-2xs);
  font-size: clamp(1rem, 1.1vw, 1.35rem);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.card--link {
  text-decoration: none;
  color: inherit;
}

.home-events {
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}

.home-events--elderly {
  background: linear-gradient(180deg, #f9eef6 0%, #fdf7fb 100%);
  border-top-color: rgba(186, 89, 168, 0.18);
  border-bottom-color: rgba(186, 89, 168, 0.1);
}

.home-events--youth {
  background: linear-gradient(180deg, #f3eef8 0%, #faf7fc 100%);
  border-top-color: rgba(127, 85, 162, 0.16);
  border-bottom-color: rgba(127, 85, 162, 0.1);
}

.home-events--default {
  background: linear-gradient(180deg, #eef7f8 0%, #f7fbfc 100%);
  border-top-color: rgba(15, 111, 129, 0.16);
  border-bottom-color: rgba(15, 111, 129, 0.1);
}

.home-events__inner {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--section-y) var(--page-gutter);
}

.youth-instagram {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 3px solid var(--card-youth);
}

.youth-instagram__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.info-page__box .youth-instagram__header h2 {
  margin: 0;
  color: #5a3a78;
}

.youth-instagram__header a {
  font-weight: 700;
  color: var(--card-youth);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.youth-instagram #sb_instagram,
.youth-instagram .sbi_feed {
  width: 100%;
  max-width: none;
  padding: 0;
}

.youth-instagram .sbi-header {
  display: none;
}

.youth-instagram .sbi_photo img,
.youth-instagram .sbi_photo {
  width: 100%;
}

.home-events__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.home-events__header h2 {
  margin: 0;
  font-size: clamp(2.15rem, 3.6vw, 3.05rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  position: relative;
  padding-bottom: var(--space-2xs);
}

.home-events__header h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 999px;
}

.home-events--elderly .home-events__header h2 {
  color: #7a2f6e;
}

.home-events--elderly .home-events__header h2::after {
  background: var(--card-elderly);
}

.home-events--youth .home-events__header h2 {
  color: #5a3a78;
}

.home-events--youth .home-events__header h2::after {
  background: var(--card-youth);
}

.home-events--default .home-events__header h2 {
  color: #0f6f81;
}

.home-events--default .home-events__header h2::after {
  background: var(--focus);
}

.home-events__all {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.home-events--elderly .home-events__all {
  color: var(--card-elderly);
}

.home-events--youth .home-events__all {
  color: var(--card-youth);
}

.home-events--default .home-events__all {
  color: var(--focus);
}

.home-events__all:hover,
.home-events__all:focus-visible {
  opacity: 0.85;
}

.home-events__list {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-md);
}

.home-event {
  display: block;
  background: #ffffff;
  border: 1px solid rgba(20, 79, 94, 0.1);
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  grid-column: span 4;
  min-height: 100%;
  transition: border-color 0.25s ease;
}

.home-events--elderly .home-event {
  border-color: rgba(186, 89, 168, 0.16);
}

.home-events--youth .home-event {
  border-color: rgba(127, 85, 162, 0.16);
}

.home-events--default .home-event {
  border-color: rgba(15, 111, 129, 0.16);
}

.home-events--elderly .home-event:hover,
.home-events--elderly .home-event:focus-visible {
  border-color: rgba(186, 89, 168, 0.4);
}

.home-events--youth .home-event:hover,
.home-events--youth .home-event:focus-visible {
  border-color: rgba(127, 85, 162, 0.4);
}

.home-events--default .home-event:hover,
.home-events--default .home-event:focus-visible {
  border-color: rgba(15, 111, 129, 0.4);
}

.home-event--featured {
  grid-column: span 4;
}

.home-event--pinned {
  outline: 2px solid rgba(15, 111, 129, 0.35);
  outline-offset: -2px;
}

.home-event__pin {
  display: inline-block;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #0f6f81;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-event__poster {
  position: relative;
}

.home-event__poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(12, 45, 54, 0) 0%, rgba(12, 45, 54, 0.28) 100%);
}

.home-event img {
  width: 100%;
  height: 218px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.home-event img.kk-img-focus--top,
.event-card__poster-wrap img.kk-img-focus--top,
.news-card img.kk-img-focus--top {
  object-position: center top;
}

.home-event img.kk-img-focus--center,
.event-card__poster-wrap img.kk-img-focus--center,
.news-card img.kk-img-focus--center {
  object-position: center center;
}

.home-event img.kk-img-focus--bottom,
.event-card__poster-wrap img.kk-img-focus--bottom,
.news-card img.kk-img-focus--bottom {
  object-position: center bottom;
}

.home-event__date-badge {
  position: absolute;
  top: var(--space-xs);
  left: var(--space-xs);
  z-index: 2;
  min-width: 56px;
  padding: var(--space-2xs) var(--space-2xs) var(--space-xs);
  border-radius: 0;
  color: #ffffff;
  text-align: center;
  line-height: 1;
}

.home-events--elderly .home-event__date-badge {
  background: var(--card-elderly);
}

.home-events--youth .home-event__date-badge {
  background: var(--card-youth);
}

.home-events--default .home-event__date-badge {
  background: var(--focus);
}

.home-event__date-badge strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.home-event__date-badge span {
  display: block;
  margin-top: 3px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.home-event__date-badge time {
  display: block;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-event__content {
  padding: var(--space-sm);
}

.home-event h3 {
  margin: 0 0 var(--space-2xs);
  font-size: clamp(1.28rem, 1.55vw, 1.55rem);
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.22;
  letter-spacing: 0.01em;
}

.home-event__excerpt {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4a5560;
}

.home-event__cta {
  display: inline-block;
  margin-top: var(--space-xs);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.home-events--elderly .home-event__cta {
  color: var(--card-elderly);
}

.home-events--youth .home-event__cta {
  color: var(--card-youth);
}

.home-events--default .home-event__cta {
  color: var(--focus);
}

.home-event__cta::after {
  content: "";
  display: block;
  margin-top: 4px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.2s ease;
}

.home-event:hover .home-event__cta::after,
.home-event:focus-visible .home-event__cta::after {
  width: 100%;
}

.card__cta {
  display: inline-block;
  margin-top: 6px;
  font-size: clamp(1.05rem, 1.06vw, 1.24rem);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.card__cta::after {
  content: "\2192";
  margin-left: 0.35em;
}

.card:hover .card__cta,
.card:focus-visible .card__cta {
  transform: translateX(4px);
}

.site-footer {
  background: #27646d;
  color: #ffffff;
}

.site-footer__grid {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: var(--space-md);
  padding: var(--section-y) var(--page-gutter);
}

.grecaptcha-badge {
  visibility: hidden !important;
  pointer-events: none !important;
}

.footer-block h2 {
  margin: 0 0 var(--space-xs);
  color: #ffffff;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  margin: 0 0 var(--space-2xs);
  line-height: 1.45;
  font-size: 0.96rem;
  color: #ffffff;
}

.footer-list a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  color: #ffffff;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  border-bottom-color: rgba(255, 255, 255, 0.78);
}

.a11y-fab {
  position: fixed;
  right: 18px;
  top: 10px;
  bottom: auto;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.a11y-fab button {
  border: 0;
  background: #f7fcfd;
  color: #1d4f5d;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.a11y-fab button:hover,
.a11y-fab button:focus-visible {
  transform: translateY(-1px);
  background: #ffffff;
}

.a11y-fab button.is-active {
  background: #ffffff;
}

.info-page {
  min-height: auto;
  background:
    radial-gradient(1200px 520px at 8% -8%, rgba(129, 215, 196, 0.2), rgba(129, 215, 196, 0)),
    linear-gradient(180deg, #eef6f7 0%, #f6fbfc 52%, #edf5f6 100%);
  padding: 56px 18px 72px;
}

.info-page__box {
  max-width: 920px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(16, 37, 43, 0.1);
  padding: 40px 34px;
}

.info-page__box h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 3vw, 2.75rem);
  letter-spacing: 0.02em;
}

.info-page__box p {
  margin: 0 0 14px;
  line-height: 1.6;
}

.info-page__back {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
}

.eakad-page {
  padding-top: 24px;
}


.eakad-layout {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.meist-page {
  padding-top: 24px;
}

.meist-layout {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.meist-sidebar {
  position: sticky;
  top: 122px;
  align-self: start;
  background: #f7fcfb;
  border: 1px solid rgba(56, 124, 140, 0.22);
  border-radius: 14px;
  padding: 24px 20px;
}

.meist-sidebar h2 {
  margin: 0 0 18px;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  color: #123f4b;
}

.meist-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.meist-submenu li + li {
  margin-top: 6px;
}

.meist-submenu a {
  display: block;
  padding: 13px 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.03rem;
  line-height: 1.35;
  color: #1c4f5c;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.meist-submenu a:hover,
.meist-submenu a:focus-visible {
  background: rgba(129, 215, 196, 0.14);
  color: #0f6f81;
}

.meist-submenu a[aria-current="page"] {
  background: rgba(129, 215, 196, 0.34);
  font-weight: 800;
  color: #124b58;
}

/* ?? Noorteka lehed: sticky logo + erinev kujundus ?? */
.noored-brandbar {
  position: sticky;
  top: 100px;
  z-index: 35;
  background: #ffffff;
  border-bottom: 3px solid var(--card-youth);
  box-shadow: 0 6px 18px rgba(90, 50, 130, 0.08);
}

.noored-brandbar__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 10px var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.noored-brandbar__logo {
  display: block;
  line-height: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.noored-brandbar__logo:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.noored-brandbar__logo img {
  display: block;
  height: 56px;
  width: auto;
  max-width: min(280px, 85vw);
  object-fit: contain;
}

.noored-page {
  background:
    radial-gradient(900px 480px at 92% -6%, rgba(127, 85, 162, 0.18), rgba(127, 85, 162, 0)),
    radial-gradient(700px 420px at 4% 12%, rgba(186, 89, 168, 0.1), rgba(186, 89, 168, 0)),
    linear-gradient(180deg, #f6f1fa 0%, #faf7fc 55%, #f3eef8 100%);
  padding-top: 28px;
}

.noored-page .meist-sidebar {
  background: #ffffff;
  border: 1px solid rgba(127, 85, 162, 0.22);
  border-radius: 16px;
  border-top: 1px solid rgba(127, 85, 162, 0.22);
  box-shadow: none;
  color: #2a1f38;
  overflow: hidden;
  top: 122px;
}

.noored-sidebar__logo {
  display: block;
  margin: 0 0 16px;
  line-height: 0;
}

.noored-sidebar__logo img {
  display: block;
  height: 58px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.noored-page .meist-sidebar h2 {
  color: var(--card-youth);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.noored-page .meist-submenu a {
  color: #3d2f52;
  border-radius: 10px;
}

.noored-page .meist-submenu a:hover,
.noored-page .meist-submenu a:focus-visible {
  background: rgba(127, 85, 162, 0.1);
  color: var(--card-youth);
}

.noored-page .meist-submenu a[aria-current="page"] {
  background: var(--card-youth);
  color: #fff;
  font-weight: 800;
  box-shadow: none;
}

.noored-page .info-page__box {
  border-color: rgba(127, 85, 162, 0.16);
  background: #ffffff;
  box-shadow: none;
}

.noored-page .info-page__box h1 {
  color: #5a3a78;
}

.noored-page .info-page__box h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--card-youth), var(--card-elderly));
}


.meist-submenu li:has(> a[href="noortele-linnalaagrid.html"]) {
  display: none;
}

.news-layout {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.news-sidebar {
  position: sticky;
  top: 122px;
  align-self: start;
  background: #f7fcfb;
  border: 1px solid rgba(56, 124, 140, 0.22);
  border-radius: 14px;
  padding: 20px 18px;
}

.news-sidebar h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  color: #123f4b;
}

.news-sidebar__section-title {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(56, 124, 140, 0.24);
}

.news-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.news-sidebar li + li {
  margin-top: 0;
}

.news-sidebar a {
  display: block;
  padding: 10px 12px;
  color: #1c4f5c;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(56, 124, 140, 0.2);
  border-radius: 8px;
}

.news-sidebar a:hover,
.news-sidebar a:focus-visible {
  border-color: rgba(34, 108, 126, 0.4);
  color: #0f6f81;
}

.news-content h1 {
  margin: 0 0 8px;
}

.news-intro {
  margin: 0 0 22px;
  max-width: 62ch;
  color: #275c69;
  font-size: 1.02rem;
}

.events-page {
  max-width: var(--page-max);
}

.events-category .info-page__box h1 {
  margin-bottom: 22px;
}

.events-category .info-page__box h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
}

.events-category--elderly .info-page__box h1 {
  color: #7a2f6e;
}

.events-category--elderly .info-page__box h1::after {
  background: var(--card-elderly);
}

.events-category--youth .info-page__box h1 {
  color: #5a3a78;
}

.events-category--youth .info-page__box h1::after {
  background: var(--card-youth);
}

.events-category--default .info-page__box h1 {
  color: #0f6f81;
}

.events-category--default .info-page__box h1::after {
  background: var(--focus);
}

.events-category__intro {
  max-width: 62ch;
  margin-bottom: 22px;
}

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

.events-board:not(.events-board--inpage) .event-card__poster-wrap img {
  height: 250px;
}

.events-board--inpage {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 8px 0 22px;
}

.events-board--inpage .event-card__poster-wrap img {
  height: 220px;
}

@media (max-width: 1400px) {
  .events-board:not(.events-board--inpage) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .events-board:not(.events-board--inpage) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .events-board,
  .events-board--inpage {
    grid-template-columns: 1fr;
  }
}

.event-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfeff 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(20, 79, 94, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.event-card:hover,
.event-card:focus-within {
  border-color: rgba(15, 111, 129, 0.45);
  background: #f7fcfd;
}

.event-card:hover .event-card__poster-wrap img,
.event-card:focus-within .event-card__poster-wrap img {
  filter: saturate(1.05);
}

.event-card:hover .news-card__cta,
.event-card:focus-within .news-card__cta {
  color: #0f6f81;
  text-decoration: none;
}

.event-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.event-card__poster-wrap {
  position: relative;
  background: #d9ecef;
}

.event-card__poster-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(9, 32, 39, 0) 0%, rgba(9, 32, 39, 0.24) 100%);
}

.event-card__poster-wrap img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.event-card__time-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  background: rgba(10, 54, 64, 0.86);
}

.event-card__body {
  padding: 18px 20px 20px;
  display: grid;
  gap: 9px;
  align-content: start;
}

.event-card__audience {
  display: inline-block;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  margin: 0;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: #0f6f81;
  background: rgba(232, 249, 246, 0.9);
  border: 1px solid rgba(15, 111, 129, 0.26);
  backdrop-filter: blur(3px);
}

.event-card__audience--youth {
  color: #ffffff;
  background: var(--card-youth);
  border-color: var(--card-youth);
}

.event-card__audience--elderly {
  color: #ffffff;
  background: var(--card-elderly);
  border-color: var(--card-elderly);
}

.event-card h2 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: #103f4b;
}

.event-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.58;
  color: #275c69;
}

.events-page .news-card__cta {
  margin-top: 2px;
  justify-self: start;
  text-decoration: none;
}

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

.news-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 0;
  border: 0;
  outline: 2px solid rgba(20, 79, 94, 0.22);
  outline-offset: -2px;
  overflow: hidden;
  grid-column: span 6;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.news-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.news-card:hover,
.news-card:focus-within {
  outline-color: rgba(17, 92, 109, 0.42);
}

.news-card--pinned {
  outline-color: rgba(15, 111, 129, 0.45);
}

.news-card__pin {
  margin: 0 0 6px;
  color: #0f6f81;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-card--featured {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(0, 1fr);
  align-items: stretch;
}

.news-card--featured .news-card__link {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(320px, 1.2fr) minmax(0, 1fr);
  align-items: stretch;
}

.news-card--featured img {
  height: 100%;
  min-height: 290px;
}

.news-card img {
  width: 100%;
  margin: 0;
  height: 170px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.news-card__placeholder {
  width: 100%;
  height: 170px;
  background: linear-gradient(135deg, #b7dce2, #8fc6d0);
}

.news-card__placeholder--teal {
  background: linear-gradient(135deg, #9fd6d1, #6dbab2);
}

.news-card__placeholder--violet {
  background: linear-gradient(135deg, #c7c0ea, #9b91d4);
}

.news-card__body {
  padding: 14px 14px 16px;
}

.news-card__meta {
  margin: 0 0 8px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a7c89;
  font-weight: 700;
}

.news-card h2 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.35;
  color: #103f4b;
}

.news-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.news-card__cta {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: #14556a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-article {
  max-width: 980px;
  margin: 0 auto;
}

.news-article__hero {
  width: 100%;
  margin: 0 0 28px;
  line-height: 0;
  text-align: left;
}

.info-page__box .news-article__hero img {
  width: auto;
  max-width: min(100%, 680px);
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.news-article__body p,
.news-article__body ul,
.news-article__body ol,
.news-article__body blockquote {
  margin: 0 0 1.35em;
}

.news-article__body h2,
.news-article__body h3,
.news-article__body h4 {
  margin: 1.4em 0 0.5em;
}

.news-article__body li + li {
  margin-top: 0.35em;
}

.news-article__body > :last-child {
  margin-bottom: 0;
}

.news-article__body img {
  max-width: 100%;
  height: auto;
}

.news-article__body figure {
  margin: 0 0 18px;
}

.news-article__body .aligncenter,
.news-article__body .aligncenter img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.news-article__body .alignleft {
  float: left;
  margin: 4px 18px 12px 0;
}

.news-article__body .alignright {
  float: right;
  margin: 4px 0 12px 18px;
}

.news-article__body::after {
  content: "";
  display: block;
  clear: both;
}

.news-article__poster {
  margin: 0 0 22px;
}

.news-article__poster-btn {
  display: block;
  width: min(420px, 100%);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.news-article__poster-btn img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 12px;
}

.news-article__meta {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  color: #27646d;
}

.news-article__lead {
  margin: 0 0 18px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #1d4f5d;
}

.news-article__section-title {
  margin: 24px 0 10px;
  font-size: 1.25rem;
  color: #164f5c;
}

.news-article__back {
  display: inline-block;
  margin-top: 22px;
  font-weight: 700;
  color: #14556a;
}

.contact-page {
  max-width: 920px;
  margin: 0 auto;
}

.personal-page {
  max-width: 920px;
  margin: 0 auto;
}

.personal-page__intro {
  margin-bottom: 20px;
  color: #2b6674;
}

.personal-directory {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.personal-group {
  background: linear-gradient(180deg, #ffffff, #f8fcfd);
  border: 0;
  border-radius: 0;
  padding: 12px 0 8px;
}

.personal-group h2 {
  margin: 0 0 14px;
  font-size: clamp(1.32rem, 1.45vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #124b58;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(18, 75, 88, 0.22);
}

.personal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 0;
  gap: 0 18px;
}

.personal-list > li:first-child {
  grid-column: 1 / -1;
}

.personal-list li {
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid rgba(20, 79, 94, 0.16);
  display: flex;
  flex-direction: column;
  line-height: 1.45;
  font-size: 0.96rem;
}

.personal-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 1120px) {
  .personal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .personal-list {
    grid-template-columns: 1fr;
  }
}

.personal-list li strong {
  order: 2;
  display: block;
  color: #0f4451;
}

.personal-list li span {
  display: block;
  margin-top: 2px;
  color: #356776;
  font-size: 0.9rem;
}

.personal-list li a {
  display: inline-block;
  margin-top: 4px;
}

.personal-role {
  order: 1;
  display: block;
  color: #2b7284;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 6px;
}

.personal-list li a.personal-phone {
  order: 4;
  display: block;
  margin-top: 4px;
  font-weight: 500;
  color: #14556a;
  text-decoration: none;
}

.personal-phone:hover,
.personal-phone:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.personal-list li a.personal-email {
  order: 3;
  display: block;
  margin-top: 4px;
  color: #1f5f6f;
  text-decoration: none;
}

.personal-email:hover,
.personal-email:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.personal-note {
  margin: 10px 0 0;
  color: #285f6d;
  font-weight: 600;
}

.contact-page h1 {
  margin: 0 0 20px;
}

.contact-hero {
  padding: 22px 22px 20px;
  border: 1px solid rgba(38, 109, 128, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(520px 220px at 5% -20%, rgba(140, 211, 201, 0.24), transparent),
    linear-gradient(180deg, #ffffff, #f8fcfd);
  margin-bottom: 18px;
}

.contact-kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #3b7685;
}

.contact-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 30px;
}

.contact-intro {
  max-width: 74ch;
  margin-bottom: 14px;
}

.contact-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fbfeff 100%);
  border: 1px solid rgba(20, 79, 94, 0.18);
  border-radius: 16px;
  padding: 28px 24px;
  height: 100%;
}

.contact-panel--primary {
  border-color: rgba(20, 79, 94, 0.22);
}

.contact-panel h2 {
  margin: 0 0 16px;
  color: #124b58;
}

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

.contact-list li {
  padding: 12px 13px;
  border: 1px solid rgba(20, 79, 94, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  text-align: left;
}

.contact-list strong {
  color: #124b58;
}

.contact-item__label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d5f6d;
  font-weight: 700;
  text-align: left;
}

.contact-item__value {
  display: block;
  color: #114754;
  font-weight: 600;
  text-align: left;
}

.contact-item__content {
  display: block;
}

.contact-item__icon {
  color: #2a7482;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(1px);
}

.contact-item__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item__value a {
  color: #114754;
  text-decoration: none;
}

.contact-item__value a:hover,
.contact-item__value a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  font-weight: 600;
  color: #1d4f5d;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(20, 79, 94, 0.24);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: #103f4b;
  background: #ffffff;
}

.contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-form .wpcf7-submit {
  align-self: start;
  width: 200px;
  padding: 12px 20px;
  border: 1px solid #1d5f6d;
  border-radius: 0;
  justify-content: center;
  text-align: center;
  font-size: 1.14rem;
  background: #ffffff;
  color: #103f4b;
}

.noored-page .contact-form .wpcf7-submit,
.kk-tone-noortele .contact-form .wpcf7-submit {
  background: var(--card-youth);
  color: #ffffff;
  border: 0;
}

.noored-page .contact-form .wpcf7-submit:hover,
.noored-page .contact-form .wpcf7-submit:focus-visible,
.kk-tone-noortele .contact-form .wpcf7-submit:hover,
.kk-tone-noortele .contact-form .wpcf7-submit:focus-visible {
  background: var(--card-youth-hover);
  color: #ffffff;
  transform: none;
}

.contact-form .wpcf7-form {
  display: grid;
  gap: 16px;
}

.contact-form .wpcf7-form-control-wrap {
  display: block;
}

.contact-form .wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%;
  border: 1px solid rgba(20, 79, 94, 0.24);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: #103f4b;
  background: #ffffff;
}

.contact-form .wpcf7-textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #7d1730;
  font-size: 0.9rem;
}

.contact-form .wpcf7-response-output {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(20, 79, 94, 0.2);
  color: #103f4b;
}

.contact-form .wpcf7-spinner {
  margin: 0;
}

.contact-map {
  margin-top: 18px;
  border: 1px solid rgba(20, 79, 94, 0.16);
  border-radius: 12px;
  padding: 22px;
  background: #f5fbfc;
}

.contact-map h3 {
  margin: 0 0 12px;
  color: #124b58;
}

.contact-map p {
  margin: 0 0 14px;
  line-height: 1.7;
}

.contact-locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-locations-wrap {
  margin-top: 34px;
}

.contact-locations-wrap h2 {
  margin: 0 0 16px;
  color: #124b58;
}

.contact-map iframe {
  width: 100%;
  height: 210px;
  border: 0;
  border-radius: 10px;
  margin-top: 14px;
}

.eakad-sidebar {
  position: sticky;
  top: 108px;
  align-self: start;
  max-height: none;
  overflow: visible;
  background: #f7fcfb;
  border: 1px solid rgba(56, 124, 140, 0.22);
  border-radius: 14px;
  padding: 24px 20px;
}

.eakad-sidebar h2 {
  margin: 0 0 18px;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  color: #123f4b;
}

.eakad-sidebar > nav > .kk-submenu__title:first-child,
.meist-sidebar > nav > .kk-submenu__title:first-child {
  margin-top: 0;
}

.eakad-submenu__title {
  margin: 22px 0 10px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2b7b8c;
}

.eakad-submenu {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.eakad-submenu li + li {
  margin-top: 6px;
}

.eakad-submenu a {
  display: block;
  padding: 13px 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.03rem;
  line-height: 1.35;
  color: #1c4f5c;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.eakad-submenu a:hover,
.eakad-submenu a:focus-visible,
.eakad-submenu a[aria-current="page"] {
  color: #0f6f81;
}

.eakad-submenu a:hover,
.eakad-submenu a:focus-visible {
  background: rgba(129, 215, 196, 0.14);
}

.eakad-submenu a[aria-current="page"] {
  background: rgba(129, 215, 196, 0.34);
  font-weight: 800;
  color: #124b58;
}

.info-page.kk-tone-eakatele {
  background:
    radial-gradient(900px 480px at 92% -6%, rgba(186, 89, 168, 0.16), rgba(186, 89, 168, 0)),
    linear-gradient(180deg, #fbf6fa 0%, #fff 58%, #f8f1f6 100%);
}

.info-page.kk-tone-peredele {
  background:
    radial-gradient(900px 480px at 92% -6%, rgba(125, 23, 48, 0.12), rgba(125, 23, 48, 0)),
    linear-gradient(180deg, #fbf6f7 0%, #fff 58%, #f8f1f3 100%);
}

.kk-tone-eakatele .eakad-sidebar,
.kk-tone-eakatele .meist-sidebar,
.kk-tone-peredele .meist-sidebar,
.kk-tone-peredele .eakad-sidebar {
  background: #fff;
}

.kk-tone-eakatele .eakad-sidebar,
.kk-tone-eakatele .meist-sidebar {
  border-color: rgba(186, 89, 168, 0.28);
}

.kk-tone-peredele .meist-sidebar,
.kk-tone-peredele .eakad-sidebar {
  border-color: rgba(125, 23, 48, 0.24);
}

.kk-tone-eakatele .eakad-sidebar h2,
.kk-tone-eakatele .meist-sidebar h2,
.kk-tone-eakatele .kk-submenu__title {
  color: var(--card-elderly);
}

.kk-tone-peredele .meist-sidebar h2,
.kk-tone-peredele .eakad-sidebar h2,
.kk-tone-peredele .kk-submenu__title {
  color: var(--card-family);
}

.kk-tone-noortele .kk-submenu__title,
.noored-page .kk-submenu__title {
  color: var(--card-youth);
}

.kk-tone-eakatele .kk-submenu a {
  color: #5c3054;
}

.kk-tone-peredele .kk-submenu a {
  color: #4a1824;
}

.kk-tone-noortele .eakad-submenu a,
.noored-page .eakad-submenu a {
  color: #3d2f52;
  border-radius: 10px;
}

.kk-tone-eakatele .kk-submenu a:hover,
.kk-tone-eakatele .kk-submenu a:focus-visible {
  background: rgba(186, 89, 168, 0.12);
  color: var(--card-elderly);
}

.kk-tone-peredele .kk-submenu a:hover,
.kk-tone-peredele .kk-submenu a:focus-visible {
  background: rgba(125, 23, 48, 0.08);
  color: var(--card-family);
}

.kk-tone-noortele .eakad-submenu a:hover,
.kk-tone-noortele .eakad-submenu a:focus-visible,
.noored-page .eakad-submenu a:hover,
.noored-page .eakad-submenu a:focus-visible {
  background: rgba(127, 85, 162, 0.1);
  color: var(--card-youth);
}

.kk-tone-eakatele .kk-submenu a[aria-current="page"] {
  background: var(--card-elderly);
  color: #fff;
  font-weight: 800;
}

.kk-tone-peredele .kk-submenu a[aria-current="page"] {
  background: var(--card-family);
  color: #fff;
  font-weight: 800;
}

.kk-tone-noortele .eakad-submenu a[aria-current="page"],
.noored-page .eakad-submenu a[aria-current="page"] {
  background: var(--card-youth);
  color: #fff;
  font-weight: 800;
}

.kk-tone-noortele .kk-submenu__branch-label,
.noored-page .kk-submenu__branch-label {
  display: block;
  padding: 13px 12px 6px;
  font-weight: 600;
  font-size: 1.03rem;
  line-height: 1.35;
  color: #3d2f52;
}

.kk-tone-noortele .kk-submenu__nested,
.noored-page .kk-submenu__nested {
  list-style: none;
  margin: 0 0 4px;
  padding: 0 0 4px 10px;
}

.kk-tone-noortele .kk-submenu__nested li + li,
.noored-page .kk-submenu__nested li + li {
  margin-top: 2px;
}

.kk-tone-noortele .kk-submenu__nested a,
.noored-page .kk-submenu__nested a {
  padding: 7px 12px 7px 14px;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.3;
}

.kk-tone-eakatele .info-page__box h1 {
  color: #7a2f6e;
}

.kk-tone-peredele .info-page__box h1 {
  color: #7d1730;
}

.kk-tone-eakatele .info-page__box h1::after,
.kk-tone-peredele .info-page__box h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
}

.kk-tone-eakatele .info-page__box h1::after {
  background: var(--card-elderly);
}

.kk-tone-peredele .info-page__box h1::after {
  background: var(--card-family);
}

.info-page__box {
  width: 100%;
  max-width: 1080px;
  background: linear-gradient(180deg, #ffffff, #fcfefe);
  border: 1px solid rgba(16, 37, 43, 0.1);
  border-radius: 16px;
  padding: 46px 44px;
}

.info-page > .info-page__box:not(.info-page__box--wide) {
  max-width: 920px;
}

.info-page__box--wide {
  max-width: 1600px;
}

.eakad-layout .info-page__box {
  max-width: none;
}

.meist-layout .info-page__box {
  max-width: none;
  background: #ffffff;
  border: 0;
  border-radius: 16px;
}

.info-page__box h1 {
  margin: 0 0 16px;
  line-height: 1.1;
  font-size: clamp(2.1rem, 3vw, 2.75rem);
  letter-spacing: 0.02em;
  color: #103f4b;
}

.info-page__box h2 {
  margin: 28px 0 10px;
  font-size: 1.34rem;
  color: #164f5c;
}

.youth-location {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 3px solid var(--card-youth);
}

.youth-location__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "kicker open"
    "title open";
  column-gap: 18px;
  align-items: end;
  margin-bottom: 14px;
}

.youth-location__kicker {
  grid-area: kicker;
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--card-youth);
}

.youth-location__title {
  grid-area: title;
}

.noored-page .info-page__box .youth-location h2 {
  margin: 0;
  font-size: clamp(2.05rem, 4.4vw, 2.7rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: #2a1f38;
}

.youth-location__title p {
  margin: 6px 0 0;
  font-size: 1rem;
  line-height: 1.3;
  color: #5c4d6e;
}

.youth-location__open {
  grid-area: open;
  align-self: end;
  margin-bottom: 3px;
  color: #5a3a78;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.youth-location__open:hover,
.youth-location__open:focus-visible {
  color: var(--card-youth-hover);
}

.youth-location iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

@media (max-width: 640px) {
  .youth-location__head {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "title"
      "open";
    row-gap: 8px;
  }

  .youth-location iframe {
    height: 240px;
  }
}

.info-page__box {
  min-width: 0;
  max-width: 100%;
}

.info-page__box img {
  max-width: 100%;
  height: auto;
}

.info-page__box p,
.info-page__box li {
  font-size: 1.04rem;
  line-height: 1.78;
}

.people-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
  margin: 4px 0 32px;
}

@media (max-width: 640px) {
  .people-board {
    grid-template-columns: 1fr;
  }
}

.people-card {
  min-width: 0;
}

.people-card img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 12px;
}

.people-card__text p {
  margin: 0;
}

.people-card__line {
  margin: 0 0 2px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.people-card__name {
  margin-bottom: 4px;
  font-weight: 700;
}

@media (max-width: 1360px) {
  .eakad-layout .personal-list,
  .meist-layout .personal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .eakad-layout .kk-split,
  .meist-layout .kk-split,
  .news-layout .kk-split {
    grid-template-columns: 1fr;
  }
}

.kk-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr);
  gap: 22px 32px;
  align-items: center;
  margin: 28px 0;
}

.kk-split__copy > :first-child {
  margin-top: 0;
}

.kk-split__copy > :last-child {
  margin-bottom: 0;
}

.kk-split__figure,
.kk-figure {
  margin: 0;
}

.kk-split__figure img,
.kk-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.kk-split__figure img {
  aspect-ratio: 4 / 3;
}

.kk-figure {
  margin: 28px 0;
}

.kk-figure figcaption {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #4a5560;
}

.info-page__box ul {
  margin: 0 0 12px;
  padding-left: 0;
}

.info-page__box ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
}

.info-page__box ol ol {
  margin: 8px 0 4px;
  padding-left: 1.35em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn--brand {
  color: var(--btn-brand-text);
  background: var(--btn-brand-bg);
}

.btn--brand:hover,
.btn--brand:focus-visible {
  transform: translateY(-1px);
  background: var(--btn-brand-bg-hover);
}

.info-page__box ul.eakad-quicklinks {
  list-style: none;
  padding-left: 0;
  margin: 14px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  margin-left: 0;
  text-align: left;
}

.eakad-quicklinks li {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 0;
  text-align: left;
}

.eakad-quicklinks a {
  justify-content: flex-start;
  text-align: left;
  color: var(--btn-brand-text);
  background: var(--btn-brand-bg);
}

.eakad-quicklinks a:hover,
.eakad-quicklinks a:focus-visible {
  background: var(--btn-brand-bg-hover);
}

.eakad-content-section {
  scroll-margin-top: 112px;
}

.eakad-content-section + .eakad-content-section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(21, 89, 105, 0.18);
}

.eakad-content-section h3 {
  margin: 16px 0 8px;
  font-size: 1.16rem;
  color: #1e5d6d;
}

.timetable-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 14px 0 18px;
}

.timetable {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  background: #ffffff;
  table-layout: fixed;
}

.timetable th,
.timetable td {
  border: 1px solid rgba(27, 84, 98, 0.16);
  padding: 8px 8px;
  vertical-align: top;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.35;
  word-break: break-word;
}

.timetable th:last-child,
.timetable td:last-child {
  border-right: 1px solid rgba(27, 84, 98, 0.22);
}

.timetable th {
  background: rgba(95, 174, 199, 0.14);
  color: #1a5261;
  font-weight: 700;
}

.video-embed {
  position: relative;
  width: 100%;
  margin: 16px 0 6px;
  border-radius: 12px;
  overflow: hidden;
}

.video-embed::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 18px;
}

.album-card {
  border: 1px solid rgba(24, 92, 108, 0.18);
  border-radius: 12px;
  background: #ffffff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}

.album-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.album-card span {
  display: block;
  padding: 10px 12px;
  font-weight: 700;
  color: #174f5c;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(9, 21, 27, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 20px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: min(94vw, 1100px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #133f4b;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.7rem;
  cursor: pointer;
}

.lightbox__close {
  top: 18px;
  right: 18px;
}

.lightbox__nav--prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 1540px) {
  :root {
    --logo-width: 220px;
  }
}

@media (min-width: 1361px) {
  .topbar__inner {
    padding-right: 160px;
  }
}

@media (max-width: 1360px) {
  .topbar__right {
    flex-wrap: wrap;
  }

  .a11y-fab {
    top: auto;
    right: 16px;
    bottom: 16px;
    width: auto;
    justify-content: flex-end;
  }
}

@media (max-width: 1120px) {
  .topbar__inner {
    max-width: 980px;
    min-height: 0;
    grid-template-columns: calc(var(--logo-width) + 16px) minmax(0, 1fr);
    justify-items: stretch;
    gap: 12px;
    padding: 8px 16px;
  }

  .topbar__right {
    align-items: center;
    width: 100%;
  }

  .topbar__menus {
    justify-content: flex-end;
    max-width: 100%;
  }

  .topbar__actions {
    justify-content: flex-end;
  }

  .main-nav {
    gap: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: auto;
  }

  .main-nav a,
  .main-nav .nav-drop__toggle { font-size: 0.96rem; padding-left: 12px; padding-right: 12px; }

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

  .card {
    min-height: 180px;
  }

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

  .home-event,
  .home-event--featured {
    grid-column: span 1;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }

  .info-page__box { padding: 32px 26px; }
}

@media (max-width: 980px) {
  .kk-split {
    grid-template-columns: 1fr;
  }

  .topbar__inner {
    max-width: 760px;
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand toggle" "menus menus";
    justify-items: stretch;
    align-items: center;
    gap: 8px 10px;
    padding: 8px 14px;
  }

  .brand { grid-area: brand; justify-self: start; }

  .topbar__right { display: contents; }

  .menu-toggle {
    display: inline-flex;
    grid-area: toggle;
    justify-self: end;
  }

  .topbar__menus {
    grid-area: menus;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    padding-top: 6px;
  }

  .topbar.is-open .topbar__menus { display: flex; }

  .noored-brandbar {
    top: 78px;
  }

  .noored-brandbar__inner {
    justify-content: center;
    padding: 8px 14px;
  }

  .noored-brandbar__logo img {
    height: 44px;
  }

  .noored-page .meist-sidebar {
    position: static;
    top: auto;
  }

  .topbar__right {
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .topbar__menus {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
  }

  .nav-drop,
  .nav-drop__panel,
  .main-nav .nav-drop__panel a {
    width: 100%;
  }

  .nav-drop__panel {
    position: static;
    min-width: 0;
    padding: 0 0 0 12px;
    background: transparent;
    border: 0;
  }

  .main-nav .nav-drop__panel a {
    color: #ffffff;
    padding: 8px 12px;
  }

  .main-nav .nav-drop__panel a:hover,
  .main-nav .nav-drop__panel a:focus-visible,
  .main-nav .nav-drop__panel a[aria-current="page"] {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    text-decoration: none;
    box-shadow: none;
  }

  .main-nav a,
  .center-nav a {
    justify-content: flex-start;
    width: 100%;
  }

  .topbar__actions {
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
  }

  form.search {
    position: relative;
    width: 36px;
    height: 36px;
    margin: 4px 12px 8px;
  }

  .topbar__menus:has(form.search.is-open) .topbar__actions {
    margin-top: 0;
  }

  form.search.is-open {
    width: calc(100% - 24px);
  }

  form.search.is-open input {
    position: static;
    width: auto;
    flex: 1 1 auto;
  }

  .center-nav {
    justify-content: center;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .main-nav a,
  .main-nav .nav-drop__toggle { font-size: 0.96rem; padding-left: 12px; padding-right: 12px; }

  .eakad-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .meist-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .news-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-events__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-events__list {
    grid-template-columns: 1fr;
  }

  .personal-directory {
    grid-template-columns: 1fr;
  }

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

  .eakad-sidebar,
  .meist-sidebar,
  .news-sidebar {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
  }

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

  .contact-top-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-hero {
    padding: 18px 16px 16px;
  }

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

  .news-card {
    grid-column: span 1;
  }

  .news-card--featured {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .news-card--featured .news-card__link {
    grid-template-columns: 1fr;
  }

  .news-card--featured img {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .album-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .eakad-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .meist-sidebar {
    position: static;
  }

  .news-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  :root {
    --logo-width: 210px;
  }

  .brand img {
    width: var(--logo-width);
  }

  .card {
    padding: 26px 22px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 22px 30px;
  }

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

  .news-card {
    grid-column: span 1;
  }

  .info-page {
    padding: 34px 18px;
  }

  .info-page__box {
    padding: 26px 20px;
  }
}

/* WordPress: men??lingid ei ole enam .html failid */
.main-nav a.nav-link--avaleht { order: 1; padding-left: 8px; }
.main-nav a.nav-link--meist { order: 2; }
.main-nav a.nav-link--uritused { order: 4; }
.main-nav a.nav-link--teated,
.main-nav a.nav-link--uudised { order: 5; }
.main-nav a.nav-link--personal { order: 6; }
.main-nav a.nav-link--kontakt { order: 7; padding-right: 8px; }
.admin-bar .topbar { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .topbar { top: 46px; }
}

.page-details {
  margin-top: 28px;
  padding-top: 8px;
  border-top: 1px solid rgba(18, 75, 88, 0.16);
}

.page-details h2 {
  margin: 22px 0 8px;
}

.page-details h4,
.info-page__box h4 {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  color: #164f5c;
}

.page-details p:first-child,
.personal-directory + .page-details > p:first-child {
  margin-top: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(95, 174, 199, 0.14);
}

.kk-tone-eakatele .page-details p:first-child {
  background: rgba(156, 76, 140, 0.12);
  color: #5a2454;
}

.timetable tr.timetable-day td {
  background: rgba(95, 174, 199, 0.2);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-event__date-line {
  display: inline-block;
  margin: 0 0 12px;
  min-width: 56px;
  padding: 8px 8px 10px;
  background: var(--focus);
  color: #ffffff;
  text-align: center;
  line-height: 1;
}

.home-event__date-line strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 800;
}

.home-event__date-line span {
  display: block;
  margin-top: 3px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.notices-page .home-events__list {
  margin-top: 12px;
}

.info-page__box .home-event p {
  margin: 0;
}

.home-notices {
  background: #f4f8f8;
  border-top: 1px solid rgba(29, 109, 124, 0.16);
}

.home-notices__inner {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--section-y) var(--page-gutter) calc(var(--section-y) + 12px);
}

.home-notices__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.home-notices__header h2 {
  margin: 0;
  position: relative;
  padding-bottom: var(--space-2xs);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #14566a;
}

.home-notices__header h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  background: #1d6d7c;
}

.home-notices__all {
  color: #1d6d7c;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.home-notices__all:hover,
.home-notices__all:focus-visible {
  color: #0f5562;
}

.notice-lead > a {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.15fr);
  min-height: 240px;
  background: #ffffff;
  border: 1px solid rgba(20, 79, 94, 0.14);
  color: inherit;
  text-decoration: none;
}

.notice-lead--text > a {
  grid-template-columns: 1fr;
}

.notice-lead img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.notice-lead__body {
  padding: 28px 32px 26px;
  border-left: 4px solid #1d6d7c;
}

.notice-lead--text .notice-lead__body {
  max-width: 760px;
}

.notice-lead time,
.notice-list time {
  display: block;
  margin: 0 0 8px;
  color: #1d6d7c;
  font-size: 0.98rem;
  font-weight: 700;
}

.notice-lead h2,
.notice-lead h3,
.info-page__box .notice-lead h2,
.info-page__box .notice-lead h3 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: #123840;
}

.notice-lead p,
.info-page__box .notice-lead p {
  margin: 0;
  max-width: 62ch;
  color: #2c5560;
  font-size: 1.02rem;
  line-height: 1.55;
}

.notice-lead__more {
  display: inline-block;
  margin-top: 16px;
  color: #1d6d7c;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

.notice-lead > a:hover .notice-lead__more,
.notice-lead > a:focus-visible .notice-lead__more {
  color: #0f5562;
}

.notice-lead > a:focus-visible,
.notice-list a:focus-visible,
.home-notices__all:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-notices .notice-list {
  margin-top: 8px;
}

.notice-list a {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(20, 79, 94, 0.14);
  color: #123840;
  font-weight: 700;
  text-decoration: none;
}

.notice-list time {
  margin: 0;
  font-weight: 600;
}

.notice-list a:hover span,
.notice-list a:focus-visible span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notices-page .notice-lead {
  margin-top: 8px;
}

.notices-page .notice-lead > a {
  background: transparent;
  border: 0;
}

.notices-page .notice-list {
  margin-top: 8px;
}

@media (max-width: 800px) {
  .notice-lead > a,
  .notice-lead--text > a {
    grid-template-columns: 1fr;
  }

  .notice-lead__body {
    padding: 20px 18px 18px;
    border-left: 0;
    border-top: 4px solid #1d6d7c;
  }

  .notice-lead img {
    min-height: 0;
    height: 210px;
  }

  .notice-list a {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notice-lead > a,
  .notice-list a {
    transition: none;
  }
}

.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: #1d4f5d;
  color: #f4fbfc;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.18);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice__inner {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 16px var(--page-gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

.cookie-notice p {
  margin: 0;
  flex: 1 1 auto;
  font-size: 1.05rem;
  line-height: 1.45;
}

.cookie-notice a {
  color: #ffffff;
  font-weight: 600;
  text-underline-offset: 3px;
}

.cookie-notice a:hover,
.cookie-notice a:focus-visible {
  text-decoration-thickness: 2px;
}

.cookie-notice__ok {
  flex: none;
  border: 0;
  background: #ffffff;
  color: #1d4f5d;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  min-height: 46px;
  padding: 12px 22px;
  cursor: pointer;
}

.cookie-notice__ok:hover,
.cookie-notice__ok:focus-visible {
  background: #e7f6f8;
}

.cookie-notice__ok:focus-visible,
.cookie-notice a:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

body:has(#cookie-notice:not([hidden])) {
  padding-bottom: var(--cookie-notice-h, 92px);
}

@media (max-width: 1360px) {
  body:has(#cookie-notice:not([hidden])) .a11y-fab {
    bottom: calc(var(--cookie-notice-h, 92px) + 12px);
  }
}

@media (max-width: 700px) {
  .cookie-notice__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 18px 18px;
  }

  .cookie-notice__ok {
    width: 100%;
  }
}

a .ext-link {
  display: inline-block;
  width: 0.86em;
  height: 0.86em;
  margin-left: 0.34em;
  vertical-align: -0.02em;
  line-height: 0;
  flex: none;
  position: relative;
  top: -0.08em;
}

a .ext-link svg {
  display: block;
  width: 100%;
  height: 100%;
}
