/*
 * Babits V2 visual layer — staging-first redesign.
 * Loaded after style.css so the original theme remains a safe fallback.
 */

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eaf0f7;
  --ink: #0a2442;
  --ink-2: #4b6177;
  --ink-3: #5b6f84;
  --line: rgba(10, 36, 66, 0.1);
  --line-strong: rgba(10, 36, 66, 0.17);
  --accent: #14599b;
  --accent-soft: rgba(20, 89, 155, 0.1);
  --accent-2: #087a9f;
  --accent-2-soft: rgba(8, 122, 159, 0.1);
  --gold: #ffc247;
  --gold-soft: rgba(255, 194, 71, 0.18);
  --navy: #071b32;
  --navy-2: #0b3156;
  --shadow:
    0 24px 70px -34px rgba(7, 27, 50, 0.35), 0 2px 8px rgba(7, 27, 50, 0.05);
  --shadow-soft: 0 18px 50px -34px rgba(7, 27, 50, 0.28);
  --font-display: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}
body.bx-page.bx-v2 {
  --ink-3: #5b6f84;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--ink);
  overflow-x: clip;
}
.bx-v2 .bx-wrap {
  max-width: 1320px;
  padding-inline: clamp(20px, 4vw, 52px);
}
.bx-v2 .bx-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.bx-v2 a:focus-visible,
.bx-v2 button:focus-visible,
.bx-v2 input:focus-visible,
.bx-v2 select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Header */
.bx-v2 .bx-utility {
  height: 48px;
  background: var(--navy);
}
.bx-v2 .bx-utility-left a,
.bx-v2 .bx-utility-right a {
  color: #cbd8e6;
  font-size: 12px;
}
.bx-v2 .bx-header-search {
  display: flex;
  width: clamp(260px, 25vw, 360px);
  height: 38px;
  align-items: center;
  gap: 9px;
  padding-left: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 194, 71, 0.8);
  border-radius: 999px;
  color: #173f67;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
}
.bx-v2 .bx-header-search input[type="search"] {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 14px;
}
.bx-v2 .bx-header-search input[type="search"]::placeholder {
  color: #5b6f84;
  opacity: 1;
}
.bx-v2 .bx-header-search button {
  height: 100%;
  padding: 0 17px;
  border: 0;
  color: var(--navy);
  background: var(--gold);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.bx-v2 .bx-header-search:focus-within {
  outline: 3px solid rgba(255, 194, 71, 0.42);
  outline-offset: 2px;
}
.bx-v2 .bx-mobile-search {
  display: none;
}
.bx-v2 .bx-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 30px rgba(7, 27, 50, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.bx-v2 .bx-header-top {
  border-bottom: 1px solid var(--line);
}
.bx-v2 .bx-header-top .bx-wrap {
  height: 76px;
}
.bx-v2 .bx-brand img {
  width: 42px;
  height: 46px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(7, 27, 50, 0.13);
}
.bx-v2 .bx-brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.bx-v2 .bx-header-nav {
  background: rgba(244, 247, 251, 0.88);
  border: 0;
}
.bx-v2 .bx-header-nav .bx-wrap {
  justify-content: center;
}
.bx-v2 .bx-nav {
  position: relative;
  width: 100%;
  padding: 5px 0;
}
.bx-v2 .bx-menu,
.bx-v2 .bx-menu ul,
.bx-v2 .bx-mobile-menu-list,
.bx-v2 .bx-mobile-menu-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bx-v2 .bx-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.bx-v2 .bx-menu > li {
  position: relative;
}
.bx-v2 .bx-menu a {
  position: relative;
  display: block;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.bx-v2 .bx-menu > li > a:hover,
.bx-v2 .bx-menu > li > a:focus-visible {
  transform: translateY(-1px);
  background: #fff;
}
.bx-v2 .bx-menu > .current-menu-item > a,
.bx-v2 .bx-menu > .current-menu-ancestor > a,
.bx-v2 .bx-menu > .current-menu-parent > a {
  background: var(--navy);
  color: #fff;
}
.bx-v2 .bx-menu > .menu-item-has-children > a {
  padding-right: 32px;
}
.bx-v2 .bx-menu > .menu-item-has-children > a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
}
.bx-v2 .bx-menu > li > .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 6px;
  z-index: 200;
  display: none;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 24px 60px rgba(7, 27, 50, 0.2);
}
.bx-v2 .bx-menu > li:nth-last-child(-n + 2) > .sub-menu {
  right: 0;
  left: auto;
}
.bx-v2 .bx-menu > li:hover > .sub-menu,
.bx-v2 .bx-menu > li:focus-within > .sub-menu {
  display: block;
}
.bx-v2 .bx-menu .sub-menu a {
  padding: 9px 11px;
  border-radius: 9px;
  white-space: normal;
}
.bx-v2 .bx-menu .sub-menu a:hover,
.bx-v2 .bx-menu .sub-menu a:focus-visible,
.bx-v2 .bx-menu .sub-menu .current-menu-item > a {
  color: var(--accent);
  background: var(--accent-soft);
}
.bx-v2 .bx-menu .sub-menu .sub-menu {
  display: block;
  margin: 2px 0 7px 12px;
  padding-left: 10px;
  border-left: 2px solid var(--line-strong);
}
.bx-v2 .bx-menu .sub-menu .sub-menu a {
  padding-block: 7px;
  font-size: 12px;
  font-weight: 600;
}
.bx-v2 .bx-btn {
  height: 48px;
  padding-inline: 22px;
  border-radius: 14px;
  font-weight: 750;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.bx-v2 .bx-btn:hover {
  transform: translateY(-2px);
}
.bx-v2 .bx-btn.bx-btn-primary {
  background: var(--accent);
  box-shadow: 0 10px 24px -14px rgba(20, 89, 155, 0.8);
}
.bx-v2 .bx-btn.bx-btn-gold {
  box-shadow: 0 15px 34px -18px rgba(255, 194, 71, 0.9);
}

/* Hero */
.bx-v2 .bx-hero {
  isolation: isolate;
  background:
    radial-gradient(
      circle at 13% 20%,
      rgba(25, 112, 183, 0.4),
      transparent 31%
    ),
    radial-gradient(
      circle at 84% 78%,
      rgba(8, 122, 159, 0.28),
      transparent 28%
    ),
    linear-gradient(135deg, #06192e 0%, #0a2d50 52%, #0c4165 100%);
}
.bx-v2 .bx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, #000, transparent 72%);
}
.bx-v2 .bx-hero-ghost40 {
  right: -56px;
  top: -94px;
  font-size: 470px;
  color: rgba(255, 194, 71, 0.08);
  letter-spacing: -34px;
}
.bx-v2 .bx-hero-rings {
  right: -5%;
  top: 4%;
  opacity: 0.75;
  transform: scale(1.15);
}
.bx-v2 .bx-hero-inner {
  min-height: 690px;
  padding-block: 72px 98px;
  gap: clamp(44px, 6vw, 92px);
}
.bx-v2 .bx-hero-copy {
  flex-basis: 520px;
  gap: 24px;
  z-index: 2;
}
.bx-v2 .bx-hero-copy .bx-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  border: 1px solid rgba(255, 194, 71, 0.34);
  border-radius: 999px;
  background: rgba(255, 194, 71, 0.08);
}
.bx-v2 .bx-hero-title {
  font-size: clamp(48px, 5.1vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  max-width: 760px;
  text-wrap: balance;
}
.bx-v2 .bx-hero-title .bx-underline {
  color: var(--gold);
  white-space: normal;
}
.bx-v2 .bx-hero-title .bx-underline::after {
  display: none;
}
.bx-v2 .bx-hero-lede {
  max-width: 610px;
  color: #c9d8e7;
  font-size: 17px;
  line-height: 1.75;
}
.bx-v2 .bx-hero-actions {
  gap: 12px;
}
.bx-v2 .bx-hero-media {
  flex-basis: 440px;
  perspective: 1000px;
}
.bx-v2 .bx-hero-media-accent {
  width: min(500px, 95%);
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 40px;
  transform: rotate(4deg) translate(20px, 7px);
  opacity: 0.9;
  background: linear-gradient(145deg, var(--gold), #e89a16);
}
.bx-v2 .bx-hero-photo {
  width: min(520px, 100%);
  height: auto;
  aspect-ratio: 16 / 10;
  clip-path: none;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: rotate(-1.5deg);
  box-shadow: 0 46px 90px -35px rgba(0, 0, 0, 0.75);
}
.bx-v2 .bx-hero-photo img {
  object-position: center center;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bx-v2 .bx-hero-photo:hover img {
  transform: scale(1.035);
}
.bx-v2 .bx-hero-photo-caption {
  left: 22px;
  bottom: 22px;
  height: 34px;
  padding-inline: 15px;
  backdrop-filter: blur(12px);
}
.bx-v2 .bx-hero-year-badge {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 14px;
  color: #fff;
  background: rgba(7, 27, 50, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  font-size: 11px;
  font-weight: 700;
}
.bx-v2 .bx-hero-year-badge i {
  width: 20px;
  height: 1px;
  background: var(--gold);
}
.bx-v2 .bx-hero-year-badge strong {
  color: var(--gold);
}

/* Quick access cards */
.bx-v2 .bx-quicklinks {
  position: relative;
  z-index: 12;
  margin-top: -46px;
}
.bx-v2 .bx-quicklinks-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.bx-v2 .bx-quicklink {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 94px;
  padding: 17px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.bx-v2 .bx-quicklink:hover {
  color: var(--ink);
  transform: translateY(-5px);
  border-color: rgba(20, 89, 155, 0.25);
  box-shadow: 0 28px 65px -32px rgba(7, 27, 50, 0.5);
}
.bx-v2 .bx-quicklink-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--accent);
  background: var(--accent-soft);
  font-family: var(--font-display);
  font-weight: 700;
}
.bx-v2 .bx-quicklink span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bx-v2 .bx-quicklink small {
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.bx-v2 .bx-quicklink strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  white-space: nowrap;
}
.bx-v2 .bx-quicklink b {
  color: var(--accent);
  font-size: 18px;
}

/* Jubilee */
.bx-v2 .bx-jubilee {
  margin-top: 66px;
  padding: 0;
  clip-path: none;
  background: transparent;
}
.bx-v2 .bx-jubilee .bx-wrap {
  position: relative;
  overflow: hidden;
  padding-block: 34px;
  border-radius: 30px;
  background: linear-gradient(110deg, var(--accent), #0b345a 70%, var(--navy));
  box-shadow: var(--shadow);
}
.bx-v2 .bx-jubilee .bx-wrap::after {
  content: "40";
  position: absolute;
  right: -5px;
  top: -44px;
  font: 700 210px/1 var(--font-display);
  color: rgba(255, 255, 255, 0.055);
}
.bx-v2 .bx-jubilee-num strong {
  font-size: 70px;
}
.bx-v2 .bx-jubilee-copy .bx-title {
  font-size: 21px;
}
.bx-v2 .bx-jubilee-copy .bx-desc {
  color: #cfdae5;
}
.bx-v2 .bx-jubilee .bx-btn {
  position: relative;
  z-index: 2;
}

/* Editorial news grid */
.bx-v2 .bx-news {
  padding: 92px 20px 86px;
  background: transparent;
}
.bx-v2 .bx-news-head {
  margin-bottom: 30px;
}
.bx-v2 .bx-news-title {
  font-size: clamp(30px, 3.3vw, 46px);
  letter-spacing: -0.045em;
  font-weight: 700;
}
.bx-v2 .bx-news-filters {
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}
.bx-v2 .bx-news-filters .bx-tag {
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  transition: all 0.2s ease;
}
.bx-v2 .bx-news-filters .bx-tag:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.bx-v2 .bx-news-filters .bx-tag.is-active {
  background: var(--navy);
  color: #fff;
}
.bx-v2 .bx-news-grid {
  grid-template-rows: 292px 292px auto;
  gap: 18px;
}
.bx-v2 .bx-news-card {
  position: relative;
  border: 1px solid rgba(10, 36, 66, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}
.bx-v2 .bx-news-card .bx-title::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.bx-v2 .bx-news-card .bx-more,
.bx-v2 .bx-news-card .bx-tag {
  position: relative;
  z-index: 2;
}
.bx-v2 .bx-news-card:focus-within {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.bx-v2 .bx-news-card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 89, 155, 0.19);
  box-shadow: 0 30px 70px -38px rgba(7, 27, 50, 0.48);
}
.bx-v2 .bx-news-card-img img {
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bx-v2 .bx-news-card:hover .bx-news-card-img img {
  transform: scale(1.045);
}
.bx-v2 .bx-news-card-body {
  padding: 22px 24px 24px;
}
.bx-v2 .bx-news-card-body .bx-title {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}
.bx-v2 .bx-card-a .bx-title {
  font-size: 25px;
}
.bx-v2 .bx-card-a .bx-news-card-img .bx-tag {
  background: rgba(255, 255, 255, 0.94) !important;
  color: var(--accent) !important;
  box-shadow: 0 8px 20px -12px rgba(7, 27, 50, 0.65);
  backdrop-filter: blur(8px);
}
.bx-v2 .bx-card-compact-body {
  padding: 18px;
}
.bx-v2 .bx-card-b .bx-news-card-body,
.bx-v2 .bx-card-c .bx-news-card-body {
  flex: 1;
  gap: 5px;
  padding: 14px 17px 15px;
}
.bx-v2 .bx-card-b,
.bx-v2 .bx-card-c {
  flex-direction: column;
}
.bx-v2 .bx-card-b .bx-news-card-img,
.bx-v2 .bx-card-c .bx-news-card-img {
  width: 100%;
  height: 128px;
}
.bx-v2 .bx-card-b .bx-title,
.bx-v2 .bx-card-c .bx-title {
  font-size: 14px;
  line-height: 1.25;
}
.bx-v2 .bx-card-b .bx-excerpt,
.bx-v2 .bx-card-c .bx-excerpt {
  display: -webkit-box;
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.bx-v2 .bx-card-b .bx-more,
.bx-v2 .bx-card-c .bx-more {
  margin-top: auto;
  font-size: 11.5px;
}
.bx-v2 .bx-more {
  color: var(--accent);
}
.bx-v2 .bx-news-footer {
  margin-top: 40px;
}

/* Results */
.bx-v2 .bx-stats {
  padding: 78px 20px;
  background: linear-gradient(
    135deg,
    var(--navy) 0%,
    #0a345a 55%,
    #0a526a 100%
  );
  position: relative;
  overflow: hidden;
}
.bx-v2 .bx-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 24px 24px;
}
.bx-v2 .bx-stats-grid {
  position: relative;
  padding: 0;
  gap: 14px;
}
.bx-v2 .bx-stat {
  min-height: 168px;
  justify-content: center;
  gap: 10px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  transition:
    transform 0.22s ease,
    background 0.22s ease;
}
.bx-v2 .bx-stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.105);
}
.bx-v2 .bx-stat strong {
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
}
.bx-v2 .bx-stat span {
  color: #cfdae5;
  line-height: 1.45;
}

/* Community cards */
.bx-v2 .bx-community {
  max-width: 1320px;
  padding: 100px clamp(20px, 4vw, 52px);
  gap: 46px;
}
.bx-v2 .bx-community-copy {
  max-width: 820px;
}
.bx-v2 .bx-community-copy .bx-title {
  max-width: 760px;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.05em;
  line-height: 1.08;
}
.bx-v2 .bx-community-copy .bx-desc {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.8;
}
.bx-v2 .bx-community-grid {
  width: 100%;
  gap: 20px;
}
.bx-v2 .bx-community-card {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(21, 48, 91, 0.11);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}
.bx-v2 .bx-community-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(21, 48, 91, 0.16);
}
.bx-v2 .bx-community-card-media {
  height: clamp(210px, 18vw, 250px);
}
.bx-v2 .bx-community-card-media.is-crest {
  padding: 38px;
}
.bx-v2 .bx-community-card-body {
  min-height: 230px;
  padding: 27px 28px 29px;
  gap: 10px;
}
.bx-v2 .bx-community-card-label {
  color: var(--accent);
  font-size: 10px;
}
.bx-v2 .bx-community-card-title {
  color: var(--ink);
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.03em;
}
.bx-v2 .bx-community-card-desc {
  font-size: 14px;
  line-height: 1.65;
}
.bx-v2 .bx-community-card-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--accent);
}
.bx-v2 .bx-community-card:hover .bx-community-card-link span {
  transform: translateX(4px);
}
.bx-v2 .bx-community-card-link span {
  transition: transform 0.2s ease;
}

/* Compact horizontal partner gallery */
.bx-v2 .bx-widgets {
  width: 100%;
  max-width: 100vw;
  padding: 74px 0 82px;
  background: #eaf0f7;
  border: 0;
  overflow: hidden;
  contain: layout paint;
}
.bx-v2 .bx-widgets-head {
  max-width: 1320px;
  padding-inline: clamp(20px, 4vw, 52px);
  margin-bottom: 24px;
}
.bx-v2 .bx-widgets-intro {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}
.bx-v2 .bx-widgets-grid {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  max-width: none;
  margin: 0;
  padding: 8px max(20px, calc((100vw - 1320px) / 2 + 52px)) 22px;
  display: flex;
  gap: 14px;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 89, 155, 0.35) transparent;
  overscroll-behavior-inline: contain;
}
.bx-v2 .bx-widgets-grid[data-auto-scrolling="true"] {
  scroll-snap-type: none;
}
.bx-v2 .bx-widgets-grid aside.widget {
  flex: 0 0 220px;
  width: 220px;
  height: 180px;
  min-height: 0;
  overflow: hidden;
  scroll-snap-align: start;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid rgba(10, 36, 66, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}
.bx-v2 .bx-widgets-grid aside.widget_media_image {
  padding: 8px;
}
.bx-v2 .bx-widgets-grid aside.widget_media_image > .wp-block-image,
.bx-v2 .bx-widgets-grid aside.widget_media_image figure,
.bx-v2 .bx-widgets-grid aside.widget_media_image a {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.bx-v2 .bx-widgets-grid aside.widget_media_image img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: none;
  object-fit: contain;
  object-position: center;
  margin: 0 !important;
  border-radius: 10px;
}
.bx-v2 .bx-widgets-grid #block-22 {
  display: none;
}
.bx-v2 .bx-widgets-grid #archives-6 {
  justify-content: center;
}
.bx-v2 .bx-widgets-grid #archives-6 select {
  margin-top: 14px;
}

/* Footer */
.bx-v2 .bx-footer {
  background: var(--navy);
}
.bx-v2 .bx-footer-grid {
  padding-top: 70px;
}
.bx-v2 .bx-footer-brand img {
  border-radius: 10px;
}
.bx-v2 .bx-footer-col .bx-heading {
  color: #7f9bb8;
}
.bx-v2 .bx-footer-col a {
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}
.bx-v2 .bx-footer-col a:hover {
  color: var(--gold);
  transform: translateX(2px);
}

@media (max-width: 1000px) {
  .bx-v2 .bx-hero-inner {
    min-height: 640px;
    gap: 35px;
  }
  .bx-v2 .bx-hero-copy {
    flex-basis: 430px;
  }
  .bx-v2 .bx-hero-media {
    flex-basis: 300px;
  }
  .bx-v2 .bx-hero-photo {
    height: auto;
  }
  .bx-v2 .bx-hero-media-accent {
    height: auto;
  }
  .bx-v2 .bx-quicklinks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bx-v2 .bx-jubilee .bx-wrap {
    border-radius: 0;
  }
  .bx-v2 .bx-community {
    padding-block: 78px;
  }
}

@media (max-width: 760px) {
  .bx-v2 .bx-wrap {
    padding-inline: 18px;
  }
  .bx-v2 .bx-utility {
    height: 30px;
  }
  .bx-v2 .bx-utility .bx-wrap {
    padding-inline: 14px;
  }
  .bx-v2 .bx-utility-left {
    gap: 8px;
  }
  .bx-v2 .bx-utility-left a:nth-child(2) {
    display: none;
  }
  .bx-v2 .bx-utility-right form {
    display: none !important;
  }
  .bx-v2 .bx-mobile-search {
    display: flex;
    min-height: 46px;
    margin: 2px 0 14px;
    overflow: hidden;
    border: 2px solid var(--gold);
    border-radius: 12px;
    background: #fff;
  }
  .bx-v2 .bx-mobile-search input {
    min-width: 0;
    flex: 1 1 auto;
    padding: 0 13px;
    border: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-size: 16px;
  }
  .bx-v2 .bx-mobile-search button {
    width: 48px;
    border: 0;
    color: var(--navy);
    background: var(--gold);
  }
  .bx-v2 .bx-header {
    position: relative;
  }
  .bx-v2 .bx-header-top .bx-wrap {
    height: 70px;
    padding-inline: 14px;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: space-between;
    text-align: left;
  }
  .bx-v2 .bx-brand {
    gap: 9px;
    min-width: 0;
  }
  .bx-v2 .bx-brand img {
    width: 34px;
    height: 38px;
  }
  .bx-v2 .bx-brand > span {
    min-width: 0;
  }
  .bx-v2 .bx-brand-name {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
  }
  .bx-v2 .bx-brand-address {
    display: none !important;
  }
  .bx-v2 .bx-header-actions > a:not(.bx-btn) {
    display: none;
  }
  .bx-v2 .bx-header-actions .bx-btn {
    height: 38px;
    padding-inline: 12px;
    font-size: 11px;
    border-radius: 10px;
  }
  .bx-v2 .bx-header-nav .bx-wrap {
    padding: 0;
    overflow: hidden;
  }
  .bx-v2 .bx-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 7px 12px;
    scrollbar-width: none;
  }
  .bx-v2 .bx-nav::-webkit-scrollbar {
    display: none;
  }
  .bx-v2 .bx-nav a {
    flex: 0 0 auto;
    font-size: 11.5px;
    padding: 7px 11px;
  }

  .bx-v2 .bx-hero::before {
    background-size: 44px 44px;
  }
  .bx-v2 .bx-hero-ghost40 {
    top: -45px;
    right: -60px;
    font-size: 260px;
    letter-spacing: -18px;
  }
  .bx-v2 .bx-hero-rings {
    display: none;
  }
  .bx-v2 .bx-hero-inner {
    display: block;
    min-height: 0;
    padding: 52px 18px 102px;
  }
  .bx-v2 .bx-hero-copy {
    gap: 19px;
  }
  .bx-v2 .bx-hero-copy .bx-eyebrow {
    font-size: 9px;
    line-height: 1.4;
  }
  .bx-v2 .bx-hero-title {
    font-size: clamp(37px, 11.5vw, 49px);
    line-height: 1.03;
    letter-spacing: -0.05em;
    overflow-wrap: anywhere;
  }
  .bx-v2 .bx-hero-lede {
    font-size: 15px;
    line-height: 1.68;
  }
  .bx-v2 .bx-hero-actions {
    align-items: stretch;
  }
  .bx-v2 .bx-hero-actions .bx-btn {
    flex: 1 1 160px;
    justify-content: center;
    height: 46px;
    padding-inline: 12px;
    font-size: 12px;
  }
  .bx-v2 .bx-hero-media {
    margin-top: 38px;
  }
  .bx-v2 .bx-hero-media-accent {
    width: calc(100% - 22px);
    height: auto;
    border-radius: 27px;
    transform: rotate(3deg) translate(12px, 4px);
  }
  .bx-v2 .bx-hero-photo {
    width: calc(100% - 10px);
    height: auto;
    border-radius: 28px;
    transform: rotate(-1deg);
  }
  .bx-v2 .bx-hero-year-badge {
    top: 12px;
    right: 12px;
  }

  .bx-v2 .bx-quicklinks {
    margin-top: -62px;
  }
  .bx-v2 .bx-quicklinks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding-inline: 12px;
  }
  .bx-v2 .bx-quicklink {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 82px;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }
  .bx-v2 .bx-quicklink-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 12px;
  }
  .bx-v2 .bx-quicklink strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.25;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .bx-v2 .bx-quicklink b {
    display: none;
  }

  .bx-v2 .bx-jubilee {
    margin-top: 42px;
  }
  .bx-v2 .bx-jubilee .bx-wrap {
    padding: 30px 20px;
    gap: 24px;
  }
  .bx-v2 .bx-jubilee-left {
    gap: 18px;
  }
  .bx-v2 .bx-jubilee-divider {
    display: none;
  }
  .bx-v2 .bx-jubilee-num {
    flex-direction: row;
    gap: 8px;
  }
  .bx-v2 .bx-jubilee-num strong {
    font-size: 52px;
  }
  .bx-v2 .bx-jubilee-copy .bx-title {
    font-size: 18px;
  }
  .bx-v2 .bx-jubilee-copy .bx-desc {
    font-size: 13px;
  }

  .bx-v2 .bx-news {
    padding: 66px 12px;
  }
  .bx-v2 .bx-news-head {
    align-items: flex-start;
  }
  .bx-v2 .bx-news-filters {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
    border-radius: 16px;
  }
  .bx-v2 .bx-news-filters .bx-tag {
    flex: 0 0 auto;
  }
  .bx-v2 .bx-news-grid {
    grid-template-rows: none;
    gap: 14px;
  }
  .bx-v2 .bx-news-card {
    border-radius: 20px;
  }
  .bx-v2 .bx-card-a .bx-news-card-img {
    height: 210px;
  }
  .bx-v2 .bx-card-a .bx-title {
    font-size: 21px;
  }
  .bx-v2 .bx-card-b,
  .bx-v2 .bx-card-c {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .bx-v2 .bx-card-b .bx-news-card-img,
  .bx-v2 .bx-card-c .bx-news-card-img {
    width: 100%;
    height: 180px;
    min-width: 0;
  }
  .bx-v2 .bx-card-b .bx-news-card-body,
  .bx-v2 .bx-card-c .bx-news-card-body {
    gap: 10px;
    padding: 22px 24px 24px;
  }
  .bx-v2 .bx-card-b .bx-title,
  .bx-v2 .bx-card-c .bx-title {
    font-size: 17.5px;
  }
  .bx-v2 .bx-card-b .bx-excerpt,
  .bx-v2 .bx-card-c .bx-excerpt {
    font-size: 13.5px;
    line-height: 1.5;
  }
  .bx-v2 .bx-card-d .bx-news-card-img,
  .bx-v2 .bx-card-e .bx-news-card-img,
  .bx-v2 .bx-card-f .bx-news-card-img {
    height: 180px;
  }

  .bx-v2 .bx-stats {
    padding: 56px 14px;
  }
  .bx-v2 .bx-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .bx-v2 .bx-stat {
    min-height: 150px;
    padding: 18px 15px;
    border-radius: 19px;
  }
  .bx-v2 .bx-stat strong {
    font-size: 38px;
  }
  .bx-v2 .bx-stat span {
    font-size: 11.5px;
  }

  .bx-v2 .bx-community {
    padding: 70px 18px;
    gap: 36px;
  }
  .bx-v2 .bx-community-copy .bx-title {
    font-size: 34px;
  }
  .bx-v2 .bx-community-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .bx-v2 .bx-community-card {
    max-width: none;
    border-radius: 19px;
  }
  .bx-v2 .bx-community-card-media {
    height: 210px;
  }
  .bx-v2 .bx-community-card-media.is-crest {
    padding: 34px;
  }
  .bx-v2 .bx-community-card-body {
    min-height: 210px;
    padding: 24px;
  }
  .bx-v2 .bx-community-card-title {
    font-size: 25px;
  }

  .bx-v2 .bx-widgets {
    padding-block: 58px 64px;
  }
  .bx-v2 .bx-widgets-head {
    padding-inline: 18px;
  }
  .bx-v2 .bx-widgets-grid {
    padding-left: 18px;
    padding-right: 18px;
  }
  .bx-v2 .bx-widgets-grid aside.widget {
    flex-basis: 170px;
    width: 170px;
    height: 145px;
    padding: 10px;
    border-radius: 18px;
  }
  .bx-v2 .bx-widgets-grid aside.widget_media_image {
    padding: 6px;
  }

  .bx-v2 .bx-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 20px;
    padding: 54px 18px 34px;
  }
  .bx-v2 .bx-footer-grid .bx-footer-col:first-child {
    grid-column: 1 / -1;
  }
  .bx-v2 .bx-footer-bottom {
    padding-inline: 18px;
  }
}

@media (max-width: 430px) {
  .bx-v2 .bx-brand-name {
    max-width: 150px;
  }
  .bx-v2 .bx-header-actions .bx-btn {
    max-width: 94px;
    white-space: normal;
    line-height: 1.1;
    text-align: center;
  }
  .bx-v2 .bx-quicklinks-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bx-v2 .bx-community-actions .bx-btn {
    width: 100%;
    justify-content: center;
  }
  .bx-v2 .bx-footer-grid {
    grid-template-columns: 1fr;
  }
  .bx-v2 .bx-footer-grid .bx-footer-col:first-child {
    grid-column: auto;
  }
}

/* V2 audit refinements: explicit partner affordance and accessible mobile menu. */
.bx-v2 .bx-mobile-menu {
  display: none;
}
.bx-v2 .bx-widgets-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.bx-v2 .bx-widgets-scroll-hint {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  font-weight: 750;
}

@media (max-width: 760px) {
  .bx-v2 .bx-brand-name {
    display: -webkit-box !important;
    max-width: 150px;
    overflow: hidden;
    white-space: normal;
    font-size: 11.5px;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .bx-v2 .bx-header-nav {
    display: none;
  }
  .bx-v2 .bx-mobile-menu {
    position: relative;
    display: block;
  }
  .bx-v2 .bx-mobile-menu summary {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
    list-style: none;
  }
  .bx-v2 .bx-mobile-menu summary::-webkit-details-marker {
    display: none;
  }
  .bx-v2 .bx-mobile-menu[open] summary {
    color: #fff;
    background: var(--navy);
  }
  .bx-v2 .bx-mobile-menu nav {
    position: absolute;
    right: 0;
    top: 52px;
    z-index: 300;
    width: min(380px, calc(100vw - 20px));
    max-height: calc(100vh - 132px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: var(--shadow);
  }
  .bx-v2 .bx-mobile-menu-list > li + li {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }
  .bx-v2 .bx-mobile-menu nav a {
    display: block;
    min-height: 42px;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
    line-height: 20px;
    text-decoration: none;
  }
  .bx-v2 .bx-mobile-menu-list > li > a {
    color: var(--navy);
    font-weight: 800;
  }
  .bx-v2 .bx-mobile-menu-list .sub-menu {
    margin: 1px 0 5px 12px;
    padding-left: 9px;
    border-left: 2px solid var(--line-strong);
  }
  .bx-v2 .bx-mobile-menu-list .sub-menu .sub-menu {
    margin-left: 10px;
  }
  .bx-v2 .bx-mobile-menu-list .sub-menu a {
    font-size: 12px;
    font-weight: 600;
  }
  .bx-v2 .bx-mobile-menu nav a:hover,
  .bx-v2 .bx-mobile-menu nav a:focus-visible,
  .bx-v2 .bx-mobile-menu nav .current-menu-item > a {
    color: var(--accent);
    background: var(--accent-soft);
  }
  .bx-v2 .bx-widgets-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .bx-v2 .bx-hero-copy > * {
    animation: bx-rise 0.65s both;
  }
  .bx-v2 .bx-hero-copy > *:nth-child(2) {
    animation-delay: 0.08s;
  }
  .bx-v2 .bx-hero-copy > *:nth-child(3) {
    animation-delay: 0.16s;
  }
  .bx-v2 .bx-hero-copy > *:nth-child(4) {
    animation-delay: 0.24s;
  }
  .bx-v2 .bx-hero-media {
    animation: bx-reveal 0.8s 0.15s both;
  }
  .bx-v2 .bx-quicklink {
    animation: bx-rise 0.55s both;
  }
  .bx-v2 .bx-quicklink:nth-child(2) {
    animation-delay: 0.06s;
  }
  .bx-v2 .bx-quicklink:nth-child(3) {
    animation-delay: 0.12s;
  }
  .bx-v2 .bx-quicklink:nth-child(4) {
    animation-delay: 0.18s;
  }
}

@keyframes bx-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes bx-reveal {
  from {
    opacity: 0;
    transform: translateX(28px) rotate(2deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Privacy notice: focused, accessible document layout without the legacy widget rail. */
body.bx-v2.page-id-3 {
  background: #eef3f8;
}
body.bx-v2:not(.home) #primary {
  float: none;
  width: min(1120px, calc(100% - 36px));
  margin-right: auto;
  margin-left: auto;
}
body.bx-v2.single .bx-single-wrap {
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
}
body.bx-v2.single .bx-single-main {
  width: 100%;
  max-width: 900px;
}
body.bx-v2.page-id-3 #sidebar-primary {
  display: none;
}
body.bx-v2.page-id-3 #primary {
  float: none;
  width: min(960px, calc(100% - 36px));
  margin: 44px auto 64px;
  padding: 48px 56px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--muted);
  background: #fff;
  box-shadow: 0 18px 52px rgba(7, 27, 50, 0.1);
}
body.bx-v2.page-id-3 .entry-title,
body.bx-v2.page-id-3 .entry-content h2 {
  color: var(--ink);
}
body.bx-v2.page-id-3 .entry-title {
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.035em;
}
body.bx-v2.page-id-3 .entry-content {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}
body.bx-v2.page-id-3 .entry-content h2 {
  margin: 38px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 27px);
  letter-spacing: -0.02em;
}
body.bx-v2.page-id-3 .entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.bx-v2.page-id-3 .entry-content li {
  margin-bottom: 6px;
}
body.bx-v2.page-id-3 .wp-block-table {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 12px;
}
body.bx-v2.page-id-3 .wp-block-table table {
  width: 100%;
  min-width: 620px;
  margin: 0;
  border-collapse: collapse;
  color: var(--muted);
  background: #f8fafc;
}
body.bx-v2.page-id-3 .wp-block-table th,
body.bx-v2.page-id-3 .wp-block-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
body.bx-v2.page-id-3 .wp-block-table th {
  color: var(--ink);
  background: var(--accent-soft);
}
body.bx-v2.page-id-3 .bx-privacy-lead {
  display: inline-block;
  margin: 0 0 20px;
  padding: 7px 11px;
  border-radius: 8px;
  color: #27496e;
  background: var(--accent-soft);
  font-size: 13px;
}

@media (max-width: 640px) {
  body.bx-v2.page-id-3 #primary {
    width: calc(100% - 24px);
    margin: 22px auto 40px;
    padding: 28px 18px;
    border-radius: 16px;
  }
  body.bx-v2.page-id-3 .entry-title {
    margin-bottom: 20px;
    font-size: 30px;
  }
  body.bx-v2.page-id-3 .entry-content {
    font-size: 15px;
    line-height: 1.68;
  }
  body.bx-v2.page-id-3 .entry-content h2 {
    margin-top: 32px;
    font-size: 21px;
  }
}

/* Teachers page: compact, consistent portrait grid. */
body.bx-v2:is(.page-id-91, .page-id-218) {
  background: #f4f7fa;
}
body.bx-v2:is(.page-id-91, .page-id-218) #sidebar-primary {
  display: none;
}
body.bx-v2:is(.page-id-91, .page-id-218) #primary {
  width: min(1120px, calc(100% - 36px));
  margin: 42px auto 64px;
}
body.bx-v2:is(.page-id-91, .page-id-218) .entry-title {
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.035em;
}
body.bx-v2:is(.page-id-91, .page-id-218) .entry-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: 100%;
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
}
body.bx-v2:is(.page-id-91, .page-id-218) .entry-content > p:first-child {
  flex: 1 0 100%;
  grid-column: 1 / -1;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.055em;
}
body.bx-v2:is(.page-id-91, .page-id-218)
  .entry-content
  .wp-block-gallery.has-nested-images,
body.bx-v2:is(.page-id-91, .page-id-218) .entry-content > .wp-block-group,
body.bx-v2:is(.page-id-91, .page-id-218)
  .entry-content
  > .wp-block-group
  > .wp-block-group__inner-container {
  display: contents;
}
body.bx-v2:is(.page-id-91, .page-id-218)
  .wp-block-gallery.has-nested-images
  > figure.wp-block-image {
  flex: 0 0 calc((100% - 42px) / 3);
  width: calc((100% - 42px) / 3) !important;
  min-width: 0;
  margin: 0 7px 14px !important;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(9, 34, 61, 0.1);
  border-radius: 14px;
  background: linear-gradient(145deg, #edf3f8, #dce6ef);
  box-shadow: 0 8px 22px rgba(7, 27, 50, 0.1);
}
body.bx-v2:is(.page-id-91, .page-id-218)
  .wp-block-gallery.has-nested-images
  > figure.wp-block-image
  img {
  width: 100% !important;
  height: 100% !important;
  flex: none;
  object-fit: cover;
}
body.bx-v2:is(.page-id-91, .page-id-218)
  .wp-block-gallery.has-nested-images
  > figure.wp-block-image
  figcaption {
  padding: 42px 12px 12px;
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(4, 18, 34, 0.92),
    rgba(4, 18, 34, 0.56) 58%,
    transparent
  );
  font-size: 12px;
  line-height: 1.38;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
body.bx-v2:is(.page-id-91, .page-id-218) .entry-content > p:empty {
  display: none;
}
body.bx-v2:is(.page-id-91, .page-id-218) .entry-content > p:not(:first-child) {
  flex: 1 0 100%;
  grid-column: 1 / -1;
  margin: 20px 0 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
@media (max-width: 640px) {
  body.bx-v2:is(.page-id-91, .page-id-218) #primary {
    width: calc(100% - 24px);
    margin: 24px auto 42px;
  }
  body.bx-v2:is(.page-id-91, .page-id-218) .entry-title {
    font-size: 32px;
  }
  body.bx-v2:is(.page-id-91, .page-id-218) .entry-content {
    gap: 0;
  }
  body.bx-v2:is(.page-id-91, .page-id-218) .entry-content > p:first-child {
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1.5;
  }
  body.bx-v2:is(.page-id-91, .page-id-218)
    .wp-block-gallery.has-nested-images
    > figure.wp-block-image {
    flex-basis: calc((100% - 20px) / 2);
    width: calc((100% - 20px) / 2) !important;
    margin: 0 5px 10px !important;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
  }
  body.bx-v2:is(.page-id-91, .page-id-218)
    .wp-block-gallery.has-nested-images
    > figure.wp-block-image
    figcaption {
    padding: 34px 8px 9px;
    font-size: 10px;
    line-height: 1.3;
  }
  body.bx-v2:is(.page-id-91, .page-id-218)
    .entry-content
    > p:not(:first-child) {
    margin: 28px 0 14px;
    font-size: 18px;
  }
}

/* Bell schedule page: clear card tables for normal and shortened days. */
body.bx-v2.page-id-196 {
  background: #f4f7fa;
}
body.bx-v2.page-id-196 #sidebar-primary {
  display: none;
}
body.bx-v2.page-id-196 #primary {
  width: min(1120px, calc(100% - 36px));
  margin: 42px auto 64px;
}
body.bx-v2.page-id-196 .entry-title {
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.035em;
}
body.bx-v2.page-id-196 .entry-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  width: 100%;
  max-width: 960px;
  margin-right: auto;
  margin-left: auto;
}
body.bx-v2.page-id-196 .bx-schedule-note {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 1px solid #c9dced;
  border-radius: 12px;
  color: #27496e;
  background: #eaf3fb;
  font-size: 14px;
  line-height: 1.55;
}
body.bx-v2.page-id-196 .entry-content > h2 {
  margin: 0;
  padding: 18px 20px;
  border-radius: 16px 16px 0 0;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #16496c);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
body.bx-v2.page-id-196 .entry-content > h2:first-of-type {
  grid-column: 1;
  grid-row: 2;
}
body.bx-v2.page-id-196 .entry-content > h2:nth-of-type(2) {
  grid-column: 2;
  grid-row: 2;
  background: linear-gradient(135deg, #0d536a, #087a8f);
}
body.bx-v2.page-id-196 .wp-block-table:first-of-type {
  grid-column: 1;
  grid-row: 3;
}
body.bx-v2.page-id-196 .wp-block-table:nth-of-type(2) {
  grid-column: 2;
  grid-row: 3;
}
body.bx-v2.page-id-196 .wp-block-table {
  overflow: hidden;
  margin: 0 0 28px !important;
  border: 1px solid #d8e1e9;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(7, 27, 50, 0.1);
}
body.bx-v2.page-id-196 .wp-block-table table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
  color: #344b62;
  background: #fff;
  font-size: 15px;
}
body.bx-v2.page-id-196 .wp-block-table td {
  padding: 13px 12px;
  border: 0;
  border-bottom: 1px solid #e6edf3;
  text-align: center;
  vertical-align: middle;
}
body.bx-v2.page-id-196 .wp-block-table tr:first-child td {
  color: var(--ink);
  background: #eaf1f7;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}
body.bx-v2.page-id-196 .wp-block-table tr:nth-child(even):not(:first-child) td {
  background: #f8fafc;
}
body.bx-v2.page-id-196 .wp-block-table tr:last-child td {
  border-bottom: 0;
}
body.bx-v2.page-id-196 .wp-block-table td:first-child {
  width: 18%;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
}
body.bx-v2.page-id-196 .wp-block-table tr:first-child td:first-child {
  color: var(--ink);
}
body.bx-v2.page-id-196 .wp-block-table td:nth-child(2),
body.bx-v2.page-id-196 .wp-block-table td:nth-child(3) {
  color: #173c5d;
  font-family: var(--font-display);
  font-weight: 700;
}
body.bx-v2.page-id-196 .wp-block-table tr:first-child td:nth-child(2),
body.bx-v2.page-id-196 .wp-block-table tr:first-child td:nth-child(3) {
  color: var(--ink);
}
@media (hover: hover) {
  body.bx-v2.page-id-196 .wp-block-table tr:not(:first-child):hover td {
    background: #eef6fb;
  }
}
@media (max-width: 700px) {
  body.bx-v2.page-id-196 #primary {
    width: calc(100% - 24px);
    margin: 24px auto 42px;
  }
  body.bx-v2.page-id-196 .entry-title {
    font-size: 32px;
  }
  body.bx-v2.page-id-196 .entry-content {
    grid-template-columns: minmax(0, 1fr);
  }
  body.bx-v2.page-id-196 .entry-content > h2:first-of-type {
    grid-column: 1;
    grid-row: 2;
  }
  body.bx-v2.page-id-196 .wp-block-table:first-of-type {
    grid-column: 1;
    grid-row: 3;
  }
  body.bx-v2.page-id-196 .entry-content > h2:nth-of-type(2) {
    grid-column: 1;
    grid-row: 4;
  }
  body.bx-v2.page-id-196 .wp-block-table:nth-of-type(2) {
    grid-column: 1;
    grid-row: 5;
  }
  body.bx-v2.page-id-196 .bx-schedule-note {
    margin-bottom: 18px;
    padding: 12px 14px;
    font-size: 13px;
  }
  body.bx-v2.page-id-196 .entry-content > h2 {
    padding: 16px;
    border-radius: 14px 14px 0 0;
    font-size: 19px;
  }
  body.bx-v2.page-id-196 .wp-block-table {
    margin-bottom: 22px !important;
    border-radius: 0 0 14px 14px;
  }
  body.bx-v2.page-id-196 .wp-block-table table {
    font-size: 14px;
  }
  body.bx-v2.page-id-196 .wp-block-table td {
    padding: 11px 8px;
  }
  body.bx-v2.page-id-196 .wp-block-table tr:first-child td {
    font-size: 11px;
  }
}

/* Contact page: structured contact cards and responsive map. */
body.bx-v2.page-id-14 {
  background: #f4f7fa;
}
body.bx-v2.page-id-14 #sidebar-primary {
  display: none;
}
body.bx-v2.page-id-14 #primary {
  width: min(1120px, calc(100% - 36px));
  margin: 42px auto 64px;
}
body.bx-v2.page-id-14 .entry-title {
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.035em;
}
body.bx-v2.page-id-14 .entry-content {
  width: 100%;
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
}
body.bx-v2.page-id-14 .bx-contact-lead {
  max-width: 760px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
body.bx-v2.page-id-14 .bx-contact-grid > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
body.bx-v2.page-id-14 .bx-contact-card {
  padding: 24px;
  border: 1px solid #dbe4ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(7, 27, 50, 0.08);
}
body.bx-v2.page-id-14 .bx-contact-card--primary {
  color: #e9f2f8;
  border-color: transparent;
  background: linear-gradient(145deg, var(--navy), #164b70);
  box-shadow: 0 14px 32px rgba(7, 27, 50, 0.18);
}
body.bx-v2.page-id-14 .bx-contact-card--wide {
  grid-column: 1 / -1;
}
body.bx-v2.page-id-14 .bx-contact-card--notice {
  border-left: 5px solid var(--gold);
  background: linear-gradient(120deg, #fffdf7, #fff);
}
body.bx-v2.page-id-14 .bx-contact-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
body.bx-v2.page-id-14 .bx-contact-card--primary .bx-contact-kicker {
  color: var(--gold);
}
body.bx-v2.page-id-14 .bx-contact-card h2,
body.bx-v2.page-id-14 .bx-contact-map-section h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
body.bx-v2.page-id-14 .bx-contact-card--primary h2 {
  color: #fff;
}
body.bx-v2.page-id-14 .bx-contact-card p {
  margin: 0 0 16px;
  line-height: 1.55;
}
body.bx-v2.page-id-14 .bx-contact-card p:last-child {
  margin-bottom: 0;
}
body.bx-v2.page-id-14 .bx-contact-card strong {
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}
body.bx-v2.page-id-14 .bx-contact-card--primary p {
  color: #e6eff6;
}
body.bx-v2.page-id-14 .bx-contact-card--primary strong {
  color: #bcd2e3;
}
body.bx-v2.page-id-14 .bx-contact-card a {
  color: var(--accent);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
body.bx-v2.page-id-14 .bx-contact-card--primary a {
  color: #fff;
}
body.bx-v2.page-id-14
  .bx-contact-identifiers
  > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
body.bx-v2.page-id-14 .bx-contact-identifiers p {
  padding: 14px;
  border-radius: 10px;
  background: #edf3f8;
}
body.bx-v2.page-id-14 .bx-contact-card--transit ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.bx-v2.page-id-14 .bx-contact-card--transit li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 68px;
  padding: 13px 14px 13px 46px;
  border-radius: 11px;
  background: #f1f6fa;
}
body.bx-v2.page-id-14 .bx-contact-card--transit li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 18px;
  width: 14px;
  height: 14px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}
body.bx-v2.page-id-14 .bx-contact-card--transit li strong {
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}
body.bx-v2.page-id-14 .bx-contact-card--transit li span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
body.bx-v2.page-id-14 .bx-contact-map-section {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid #dbe4ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(7, 27, 50, 0.1);
}
body.bx-v2.page-id-14
  .bx-contact-map-header
  > .wp-block-group__inner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
}
body.bx-v2.page-id-14 .bx-contact-map-header h2 {
  margin-bottom: 0;
}
body.bx-v2.page-id-14 .bx-contact-actions {
  margin: 0;
}
body.bx-v2.page-id-14 .bx-contact-actions .wp-block-button__link {
  padding: 11px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(8, 122, 159, 0.2);
}
body.bx-v2.page-id-14 .bx-contact-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 340px;
  overflow: hidden;
  background: #dce7ef;
}
body.bx-v2.page-id-14 .bx-contact-map iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}
@media (max-width: 700px) {
  body.bx-v2.page-id-14 #primary {
    width: calc(100% - 24px);
    margin: 24px auto 42px;
  }
  body.bx-v2.page-id-14 .entry-title {
    font-size: 32px;
  }
  body.bx-v2.page-id-14 .bx-contact-lead {
    margin-bottom: 20px;
    font-size: 14px;
  }
  body.bx-v2.page-id-14 .bx-contact-grid > .wp-block-group__inner-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  body.bx-v2.page-id-14 .bx-contact-card--wide {
    grid-column: 1;
  }
  body.bx-v2.page-id-14 .bx-contact-card {
    padding: 19px;
    border-radius: 14px;
  }
  body.bx-v2.page-id-14 .bx-contact-card h2,
  body.bx-v2.page-id-14 .bx-contact-map-section h2 {
    margin-bottom: 16px;
    font-size: 21px;
  }
  body.bx-v2.page-id-14
    .bx-contact-identifiers
    > .wp-block-group__inner-container,
  body.bx-v2.page-id-14 .bx-contact-card--transit ul {
    grid-template-columns: minmax(0, 1fr);
  }
  body.bx-v2.page-id-14 .bx-contact-map-section {
    margin-top: 14px;
    border-radius: 14px;
  }
  body.bx-v2.page-id-14
    .bx-contact-map-header
    > .wp-block-group__inner-container {
    align-items: flex-start;
    flex-direction: column;
    padding: 19px;
  }
  body.bx-v2.page-id-14 .bx-contact-map {
    min-height: 300px;
    aspect-ratio: 4 / 5;
  }
}

/* Namesake page: editorial biography layout for Babits Mihály. */
body.bx-v2.page-id-226 {
  background: #f4f7fa;
}
body.bx-v2.page-id-226 #sidebar-primary {
  display: none;
}
body.bx-v2.page-id-226 #primary {
  width: min(1120px, calc(100% - 36px));
  margin: 42px auto 64px;
}
body.bx-v2.page-id-226 .entry-title {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.035em;
}
body.bx-v2.page-id-226 .entry-content {
  width: 100%;
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
}
body.bx-v2.page-id-226 .bx-namesake-hero > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  padding: 30px;
  overflow: hidden;
  border-radius: 20px;
  color: #e7f0f7;
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(8, 122, 159, 0.34),
      transparent 34%
    ),
    linear-gradient(140deg, var(--navy), #123f61 72%, #0b5f74);
  box-shadow: 0 18px 40px rgba(7, 27, 50, 0.2);
}
body.bx-v2.page-id-226 .bx-namesake-portrait {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: #dbe5ed;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}
body.bx-v2.page-id-226 .bx-namesake-portrait img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(0.18) contrast(1.04);
}
body.bx-v2.page-id-226 .bx-namesake-portrait figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 36px 12px 11px;
  color: #fff;
  background: linear-gradient(to top, rgba(4, 18, 34, 0.9), transparent);
  font-size: 12px;
  text-align: left;
}
body.bx-v2.page-id-226 .bx-namesake-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
body.bx-v2.page-id-226 .bx-namesake-intro h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
body.bx-v2.page-id-226 .bx-namesake-years {
  margin: 8px 0 22px;
  color: #b9d2e3;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
body.bx-v2.page-id-226 .bx-namesake-facts {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.bx-v2.page-id-226 .bx-namesake-facts li {
  position: relative;
  padding: 11px 13px 11px 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #e9f2f8;
  background: rgba(255, 255, 255, 0.07);
  line-height: 1.4;
}
body.bx-v2.page-id-226 .bx-namesake-facts li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 194, 71, 0.14);
  transform: translateY(-50%);
}
body.bx-v2.page-id-226 .bx-namesake-callout {
  max-width: 880px;
  margin: 26px auto;
  padding: 22px 26px;
  border: 1px solid #edd9a6;
  border-left: 5px solid var(--gold);
  border-radius: 14px;
  color: #213f5d;
  background: linear-gradient(120deg, #fff9e8, #fff);
  box-shadow: 0 8px 22px rgba(7, 27, 50, 0.07);
}
body.bx-v2.page-id-226 .bx-namesake-callout p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
}
body.bx-v2.page-id-226 .bx-namesake-story > .wp-block-group__inner-container {
  display: grid;
  gap: 18px;
  max-width: 840px;
  margin-right: auto;
  margin-left: auto;
  counter-reset: namesake-section;
}
body.bx-v2.page-id-226 .bx-namesake-section {
  padding: 30px 32px;
  border: 1px solid #dce5ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(7, 27, 50, 0.07);
  counter-increment: namesake-section;
}
body.bx-v2.page-id-226 .bx-namesake-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
body.bx-v2.page-id-226 .bx-namesake-section h2::before {
  content: counter(namesake-section, decimal-leading-zero);
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
body.bx-v2.page-id-226 .bx-namesake-section p {
  margin: 0 0 17px;
  color: #40566c;
  font-size: 16.5px;
  line-height: 1.82;
}
body.bx-v2.page-id-226 .bx-namesake-section p:last-child {
  margin-bottom: 0;
}
@media (max-width: 700px) {
  body.bx-v2.page-id-226 #primary {
    width: calc(100% - 24px);
    margin: 24px auto 42px;
  }
  body.bx-v2.page-id-226 .entry-title {
    font-size: 32px;
  }
  body.bx-v2.page-id-226 .bx-namesake-hero > .wp-block-group__inner-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
    border-radius: 16px;
  }
  body.bx-v2.page-id-226 .bx-namesake-portrait {
    width: min(220px, 76%);
    margin-right: auto;
    margin-left: auto;
    border-radius: 13px;
  }
  body.bx-v2.page-id-226 .bx-namesake-intro {
    text-align: center;
  }
  body.bx-v2.page-id-226 .bx-namesake-intro h2 {
    font-size: 38px;
  }
  body.bx-v2.page-id-226 .bx-namesake-years {
    margin-bottom: 18px;
    font-size: 18px;
  }
  body.bx-v2.page-id-226 .bx-namesake-facts {
    text-align: left;
  }
  body.bx-v2.page-id-226 .bx-namesake-callout {
    margin: 16px 0;
    padding: 18px;
    border-radius: 12px;
  }
  body.bx-v2.page-id-226 .bx-namesake-callout p {
    font-size: 19px;
  }
  body.bx-v2.page-id-226 .bx-namesake-story > .wp-block-group__inner-container {
    gap: 14px;
  }
  body.bx-v2.page-id-226 .bx-namesake-section {
    padding: 21px 19px;
    border-radius: 14px;
  }
  body.bx-v2.page-id-226 .bx-namesake-section h2 {
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 21px;
  }
  body.bx-v2.page-id-226 .bx-namesake-section p {
    margin-bottom: 15px;
    font-size: 15.5px;
    line-height: 1.75;
  }
}

/* School psychologist page: calm, focused contact card. */
body.bx-v2.page-id-1582 {
  background:
    radial-gradient(
      circle at 10% 18%,
      rgba(8, 122, 159, 0.08),
      transparent 28%
    ),
    #f4f7fa;
}
body.bx-v2.page-id-1582 #sidebar-primary {
  display: none;
}
body.bx-v2.page-id-1582 #primary {
  width: min(1040px, calc(100% - 36px));
  margin: 42px auto 72px;
}
body.bx-v2.page-id-1582 .entry-title {
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.035em;
}
body.bx-v2.page-id-1582 .entry-content {
  width: 100%;
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
}
body.bx-v2.page-id-1582 .bx-psychologist-lead {
  max-width: 650px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
body.bx-v2.page-id-1582 .bx-psychologist-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #d3e2ea;
  border-radius: 20px;
  background:
    radial-gradient(circle at 96% 8%, rgba(8, 122, 159, 0.12), transparent 30%),
    linear-gradient(145deg, #fff, #f8fbfd);
  box-shadow: 0 18px 42px rgba(7, 27, 50, 0.13);
}
body.bx-v2.page-id-1582 .bx-psychologist-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -48px;
  width: 150px;
  height: 150px;
  border: 22px solid rgba(8, 122, 159, 0.07);
  border-radius: 50%;
  pointer-events: none;
}
body.bx-v2.page-id-1582
  .bx-psychologist-card
  > .wp-block-group__inner-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  padding: 36px;
}
body.bx-v2.page-id-1582 .bx-psychologist-mark {
  display: grid;
  width: 136px;
  height: 136px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), #09516d);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.06em;
  box-shadow:
    0 14px 28px rgba(8, 83, 111, 0.24),
    0 0 0 10px rgba(8, 122, 159, 0.08);
}
body.bx-v2.page-id-1582 .bx-psychologist-kicker {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
body.bx-v2.page-id-1582 .bx-psychologist-profile h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
body.bx-v2.page-id-1582 .bx-psychologist-contact-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}
body.bx-v2.page-id-1582 .bx-psychologist-email {
  margin: 0 0 20px;
}
body.bx-v2.page-id-1582 .bx-psychologist-email a {
  color: #16496c;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration-color: rgba(8, 122, 159, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
body.bx-v2.page-id-1582 .bx-psychologist-actions {
  margin: 0;
}
body.bx-v2.page-id-1582 .bx-psychologist-actions .wp-block-button__link {
  padding: 12px 20px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 7px 18px rgba(8, 122, 159, 0.22);
}
@media (hover: hover) {
  body.bx-v2.page-id-1582
    .bx-psychologist-actions
    .wp-block-button__link:hover {
    color: #fff;
    background: #075f7e;
    transform: translateY(-1px);
  }
}
@media (max-width: 700px) {
  body.bx-v2.page-id-1582 #primary {
    width: calc(100% - 24px);
    margin: 24px auto 48px;
  }
  body.bx-v2.page-id-1582 .entry-title {
    font-size: 32px;
  }
  body.bx-v2.page-id-1582 .bx-psychologist-lead {
    margin-bottom: 18px;
    font-size: 14px;
  }
  body.bx-v2.page-id-1582 .bx-psychologist-card {
    border-radius: 16px;
  }
  body.bx-v2.page-id-1582
    .bx-psychologist-card
    > .wp-block-group__inner-container {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 24px;
    padding: 28px 20px;
    text-align: center;
  }
  body.bx-v2.page-id-1582 .bx-psychologist-mark {
    width: 112px;
    height: 112px;
    font-size: 34px;
  }
  body.bx-v2.page-id-1582 .bx-psychologist-profile h2 {
    margin-bottom: 20px;
    font-size: 30px;
  }
  body.bx-v2.page-id-1582 .bx-psychologist-email a {
    font-size: 17px;
  }
  body.bx-v2.page-id-1582 .bx-psychologist-actions {
    justify-content: center;
  }
}

/* Documents page: categorized, accessible document cards. */
body.bx-v2.page-id-170 {
  background: #f4f7fa;
}
body.bx-v2.page-id-170 #sidebar-primary {
  display: none;
}
body.bx-v2.page-id-170 #primary {
  width: min(1120px, calc(100% - 36px));
  margin: 42px auto 72px;
}
body.bx-v2.page-id-170 .entry-title {
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.035em;
}
body.bx-v2.page-id-170 .entry-content {
  width: 100%;
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
}
body.bx-v2.page-id-170 .bx-documents-lead {
  max-width: 780px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
body.bx-v2.page-id-170 .bx-documents-official {
  overflow: hidden;
  border-radius: 18px;
  color: #e8f1f7;
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(8, 122, 159, 0.32),
      transparent 34%
    ),
    linear-gradient(140deg, var(--navy), #123f61 70%, #0b5f74);
  box-shadow: 0 16px 36px rgba(7, 27, 50, 0.18);
}
body.bx-v2.page-id-170
  .bx-documents-official
  > .wp-block-group__inner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 28px;
}
body.bx-v2.page-id-170 .bx-documents-kicker {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
body.bx-v2.page-id-170 .bx-documents-official h2 {
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
body.bx-v2.page-id-170 .bx-documents-official p:not(.bx-documents-kicker) {
  max-width: 610px;
  margin: 0;
  color: #d4e2ec;
  line-height: 1.55;
}
body.bx-v2.page-id-170 .bx-documents-official-action {
  flex: 0 0 auto;
  margin: 0;
}
body.bx-v2.page-id-170 .bx-documents-official-action .wp-block-button__link {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}
body.bx-v2.page-id-170
  .bx-documents-sections
  > .wp-block-group__inner-container {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}
body.bx-v2.page-id-170 .bx-document-section {
  padding: 24px;
  border: 1px solid #dce5ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(7, 27, 50, 0.07);
}
body.bx-v2.page-id-170 .bx-document-section > .wp-block-group__inner-container {
  display: grid;
  gap: 16px;
}
body.bx-v2.page-id-170 .bx-document-section h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
body.bx-v2.page-id-170 .bx-document-grid > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
body.bx-v2.page-id-170 .bx-document-card {
  border: 1px solid #dfe7ee;
  border-radius: 12px;
  background: #f9fbfc;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
body.bx-v2.page-id-170 .bx-document-card > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 82px;
  padding: 13px 15px;
}
body.bx-v2.page-id-170 .bx-document-type {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 10px;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
body.bx-v2.page-id-170 .bx-document-pdf .bx-document-type {
  color: #9a3e26;
  background: #fde9e2;
}
body.bx-v2.page-id-170 .bx-document-docx .bx-document-type {
  color: #245e91;
  background: #e4f0fb;
}
body.bx-v2.page-id-170 .bx-document-title {
  margin: 0;
  line-height: 1.4;
}
body.bx-v2.page-id-170 .bx-document-title a {
  color: #193c5b;
  font-size: 14px;
  font-weight: 750;
  overflow-wrap: anywhere;
  text-decoration: none;
}
body.bx-v2.page-id-170 .bx-document-title a::after {
  content: " ↗";
  color: var(--accent);
  font-size: 12px;
  white-space: nowrap;
}
@media (hover: hover) {
  body.bx-v2.page-id-170 .bx-document-card:hover {
    border-color: #b9d3e2;
    box-shadow: 0 9px 20px rgba(7, 27, 50, 0.1);
    transform: translateY(-2px);
  }
  body.bx-v2.page-id-170
    .bx-documents-official-action
    .wp-block-button__link:hover {
    color: var(--navy);
    background: #f2f8fb;
    transform: translateY(-1px);
  }
}
@media (max-width: 700px) {
  body.bx-v2.page-id-170 #primary {
    width: calc(100% - 24px);
    margin: 24px auto 48px;
  }
  body.bx-v2.page-id-170 .entry-title {
    font-size: 32px;
  }
  body.bx-v2.page-id-170 .bx-documents-lead {
    margin-bottom: 18px;
    font-size: 14px;
  }
  body.bx-v2.page-id-170 .bx-documents-official {
    border-radius: 15px;
  }
  body.bx-v2.page-id-170
    .bx-documents-official
    > .wp-block-group__inner-container {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 21px 19px;
  }
  body.bx-v2.page-id-170 .bx-documents-official h2 {
    font-size: 22px;
  }
  body.bx-v2.page-id-170 .bx-documents-official-action .wp-block-button__link {
    padding: 11px 16px;
  }
  body.bx-v2.page-id-170
    .bx-documents-sections
    > .wp-block-group__inner-container {
    gap: 14px;
    margin-top: 16px;
  }
  body.bx-v2.page-id-170 .bx-document-section {
    padding: 18px 16px;
    border-radius: 14px;
  }
  body.bx-v2.page-id-170 .bx-document-section h2 {
    font-size: 20px;
  }
  body.bx-v2.page-id-170 .bx-document-grid > .wp-block-group__inner-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
  body.bx-v2.page-id-170 .bx-document-card > .wp-block-group__inner-container {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 11px;
    min-height: 74px;
    padding: 11px 12px;
  }
  body.bx-v2.page-id-170 .bx-document-type {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    font-size: 9px;
  }
  body.bx-v2.page-id-170 .bx-document-title a {
    font-size: 13px;
  }
}

/* International relations page: unified ESN and Erasmus entry point. */
body.bx-v2.page-id-3082 .bx-international-hub {
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto 26px;
  border-radius: 18px;
  color: #e8f1f7;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(245, 172, 39, 0.2),
      transparent 30%
    ),
    linear-gradient(140deg, var(--navy), #123f61 72%, #0b5f74);
  box-shadow: 0 16px 36px rgba(7, 27, 50, 0.18);
}
body.bx-v2.page-id-3082
  .bx-international-hub
  > .wp-block-group__inner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 27px 30px;
}
body.bx-v2.page-id-3082 .bx-international-kicker {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
body.bx-v2.page-id-3082 .bx-international-hub h2 {
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
body.bx-v2.page-id-3082 .bx-international-hub p:not(.bx-international-kicker) {
  max-width: 650px;
  margin: 0;
  color: #d7e4ed;
  font-size: 15px;
  line-height: 1.6;
}
body.bx-v2.page-id-3082 .bx-international-actions {
  flex: 0 0 auto;
  margin: 0;
}
body.bx-v2.page-id-3082 .bx-international-actions .wp-block-button__link {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
@media (hover: hover) {
  body.bx-v2.page-id-3082
    .bx-international-actions
    .wp-block-button__link:hover {
    color: var(--navy);
    background: #f2f8fb;
    transform: translateY(-1px);
  }
}
@media (max-width: 700px) {
  body.bx-v2.page-id-3082 .bx-international-hub {
    margin-bottom: 18px;
    border-radius: 15px;
  }
  body.bx-v2.page-id-3082
    .bx-international-hub
    > .wp-block-group__inner-container {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 22px 19px;
  }
  body.bx-v2.page-id-3082 .bx-international-hub h2 {
    font-size: 23px;
  }
  body.bx-v2.page-id-3082
    .bx-international-hub
    p:not(.bx-international-kicker) {
    font-size: 14px;
  }
  body.bx-v2.page-id-3082 .bx-international-actions .wp-block-button__link {
    padding: 11px 16px;
  }
}

/* Student life archive hubs: simplify deep menu trees. */
body.bx-v2:is(.page-id-4089, .page-id-6933) {
  background: #f4f7fa;
}
body.bx-v2:is(.page-id-4089, .page-id-6933) #sidebar-primary {
  display: none;
}
body.bx-v2:is(.page-id-4089, .page-id-6933) #primary {
  width: min(1120px, calc(100% - 36px));
  margin: 42px auto 72px;
}
body.bx-v2:is(.page-id-4089, .page-id-6933) .entry-content {
  width: 100%;
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
}
body.bx-v2:is(.page-id-4089, .page-id-6933) .bx-student-archive {
  overflow: hidden;
  margin: 0 auto 28px;
  border: 1px solid #d8e3eb;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(7, 27, 50, 0.12);
}
body.bx-v2:is(.page-id-4089, .page-id-6933)
  .bx-student-archive
  > .wp-block-group__inner-container {
  display: grid;
}
body.bx-v2:is(.page-id-4089, .page-id-6933) .bx-student-archive-head {
  color: #e5eef5;
  background:
    radial-gradient(
      circle at 90% 12%,
      rgba(245, 172, 39, 0.2),
      transparent 30%
    ),
    linear-gradient(140deg, var(--navy), #123f61 72%, #0b5f74);
}
body.bx-v2:is(.page-id-4089, .page-id-6933)
  .bx-student-archive-head
  > .wp-block-group__inner-container {
  padding: 25px 28px;
}
body.bx-v2:is(.page-id-4089, .page-id-6933) .bx-student-archive-kicker {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
body.bx-v2:is(.page-id-4089, .page-id-6933) .bx-student-archive-head h2 {
  margin: 0 0 7px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
body.bx-v2:is(.page-id-4089, .page-id-6933)
  .bx-student-archive-head
  p:not(.bx-student-archive-kicker) {
  max-width: 680px;
  margin: 0;
  color: #d4e2ec;
  font-size: 15px;
  line-height: 1.55;
}
body.bx-v2:is(.page-id-4089, .page-id-6933)
  .bx-student-archive-grid
  > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}
body.bx-v2:is(.page-id-4089, .page-id-6933) .bx-student-archive-card {
  border: 1px solid #dfe7ee;
  border-radius: 12px;
  background: #f8fafc;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
body.bx-v2:is(.page-id-4089, .page-id-6933)
  .bx-student-archive-card
  > .wp-block-group__inner-container {
  display: flex;
  min-height: 132px;
  padding: 16px;
  flex-direction: column;
}
body.bx-v2:is(.page-id-4089, .page-id-6933) .bx-student-archive-type {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
body.bx-v2:is(.page-id-4089, .page-id-6933) .bx-student-archive-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
body.bx-v2:is(.page-id-4089, .page-id-6933) .bx-student-archive-card h3 a {
  color: #193c5b;
  text-decoration: none;
}
body.bx-v2:is(.page-id-4089, .page-id-6933) .bx-student-archive-open {
  margin: auto 0 0;
  padding-top: 13px;
}
body.bx-v2:is(.page-id-4089, .page-id-6933) .bx-student-archive-open a {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
@media (hover: hover) {
  body.bx-v2:is(.page-id-4089, .page-id-6933) .bx-student-archive-card:hover {
    border-color: #b7d2e2;
    box-shadow: 0 9px 20px rgba(7, 27, 50, 0.1);
    transform: translateY(-2px);
  }
}
@media (max-width: 860px) {
  body.bx-v2:is(.page-id-4089, .page-id-6933)
    .bx-student-archive-grid
    > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  body.bx-v2:is(.page-id-4089, .page-id-6933) #primary {
    width: calc(100% - 24px);
    margin: 24px auto 48px;
  }
  body.bx-v2:is(.page-id-4089, .page-id-6933) .bx-student-archive {
    margin-bottom: 20px;
    border-radius: 15px;
  }
  body.bx-v2:is(.page-id-4089, .page-id-6933)
    .bx-student-archive-head
    > .wp-block-group__inner-container {
    padding: 21px 19px;
  }
  body.bx-v2:is(.page-id-4089, .page-id-6933) .bx-student-archive-head h2 {
    font-size: 23px;
  }
  body.bx-v2:is(.page-id-4089, .page-id-6933)
    .bx-student-archive-head
    p:not(.bx-student-archive-kicker) {
    font-size: 14px;
  }
  body.bx-v2:is(.page-id-4089, .page-id-6933)
    .bx-student-archive-grid
    > .wp-block-group__inner-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    padding: 13px;
  }
  body.bx-v2:is(.page-id-4089, .page-id-6933)
    .bx-student-archive-card
    > .wp-block-group__inner-container {
    min-height: 112px;
    padding: 14px;
  }
  body.bx-v2:is(.page-id-4089, .page-id-6933) .bx-student-archive-card h3 {
    font-size: 15px;
  }
}

/* Community-service contracts: reliable responsive Google Sheet embed. */
body.bx-v2.postid-2589 .bx-contract-list-panel {
  overflow: hidden;
  margin: 12px 0 18px;
  padding: 12px;
  border: 1px solid #d8e3eb;
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: 0 10px 26px rgba(7, 27, 50, 0.09);
}
body.bx-v2.postid-2589 .bx-contract-list-frame {
  display: block;
  width: 100%;
  min-height: 620px;
  border: 1px solid #c8d4de;
  border-radius: 8px;
  background: #fff;
}
body.bx-v2.postid-2589 .bx-contract-list-fallback {
  margin: 10px 2px 0;
  text-align: right;
}
body.bx-v2.postid-2589 .bx-contract-list-fallback a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
@media (max-width: 700px) {
  body.bx-v2.postid-2589 .bx-contract-list-panel {
    margin-right: -2px;
    margin-left: -2px;
    padding: 7px;
    border-radius: 11px;
  }
  body.bx-v2.postid-2589 .bx-contract-list-frame {
    min-height: 560px;
    height: 560px;
  }
  body.bx-v2.postid-2589 .bx-contract-list-fallback {
    text-align: left;
  }
}

/* Archive, search and 404 templates. */
.bx-v2 .bx-archive-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 20px 62px;
  color: #fff;
  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(255, 194, 71, 0.18),
      transparent 30%
    ),
    radial-gradient(
      circle at 86% 10%,
      rgba(8, 122, 159, 0.28),
      transparent 28%
    ),
    linear-gradient(125deg, var(--navy) 0%, #0b3156 58%, #0a526a 100%);
}
.bx-v2 .bx-archive-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to right, #000, transparent 78%);
}
.bx-v2 .bx-archive-hero .bx-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.bx-v2 .bx-archive-hero .bx-eyebrow {
  color: var(--gold);
}
.bx-v2 .bx-archive-title {
  max-width: 920px;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}
.bx-v2 .bx-archive-desc {
  max-width: 760px;
  color: #cfdae5;
  font-size: 16px;
  line-height: 1.7;
}
.bx-v2 .bx-archive-desc p {
  margin: 0;
}
.bx-v2 .bx-archive-main {
  padding: 66px 20px 86px;
}
.bx-v2 .bx-archive-main > .bx-wrap {
  max-width: 1320px;
}
.bx-v2 .bx-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.bx-v2 .bx-archive-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bx-v2 .bx-archive-card-img {
  height: 190px;
}
.bx-v2 .bx-archive-card-img .bx-tag {
  position: absolute;
  left: 14px;
  top: 14px;
  box-shadow: 0 8px 20px -12px rgba(7, 27, 50, 0.55);
}
.bx-v2 .bx-archive-card-body {
  flex: 1;
}
.bx-v2 .bx-archive-card-body .bx-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.28;
}
.bx-v2 .bx-pagination {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}
.bx-v2 .bx-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.bx-v2 .bx-pagination a,
.bx-v2 .bx-pagination span {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.86);
  font-weight: 750;
  text-decoration: none;
}
.bx-v2 .bx-pagination .current,
.bx-v2 .bx-pagination a:hover {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}
.bx-v2 .bx-search-form {
  width: min(720px, 100%);
  display: flex;
  gap: 10px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
}
.bx-v2 .bx-search-form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  font: 600 15px/1 var(--font-body);
}
.bx-v2 .bx-empty-state,
.bx-v2 .bx-not-found-card {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 60px);
  border: 1px solid var(--line);
  border-radius: 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}
.bx-v2 .bx-empty-state h2,
.bx-v2 .bx-not-found-card h1 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
}
.bx-v2 .bx-empty-state p,
.bx-v2 .bx-not-found-card p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}
.bx-v2 .bx-empty-state .bx-search-form,
.bx-v2 .bx-not-found-card .bx-search-form {
  margin: 22px auto 0;
  border-color: var(--line);
  background: var(--surface-2);
}
.bx-v2 .bx-not-found {
  position: relative;
  overflow: hidden;
  padding: 78px 20px 96px;
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(255, 194, 71, 0.24),
      transparent 28%
    ),
    radial-gradient(
      circle at 85% 70%,
      rgba(20, 89, 155, 0.16),
      transparent 30%
    ),
    var(--bg);
}
.bx-v2 .bx-not-found-card {
  position: relative;
  overflow: hidden;
}
.bx-v2 .bx-not-found-code {
  position: absolute;
  right: -18px;
  top: -46px;
  color: rgba(20, 89, 155, 0.07);
  font: 800 170px/1 var(--font-display);
  letter-spacing: -0.08em;
}
.bx-v2 .bx-not-found-card .bx-eyebrow {
  position: relative;
  color: var(--accent);
}
.bx-v2 .bx-not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

@media (max-width: 920px) {
  .bx-v2 .bx-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bx-v2 .bx-archive-hero {
    padding: 42px 12px 50px;
  }
  .bx-v2 .bx-archive-main,
  .bx-v2 .bx-not-found {
    padding: 42px 12px 60px;
  }
  .bx-v2 .bx-archive-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .bx-v2 .bx-archive-card-img {
    height: 184px;
  }
  .bx-v2 .bx-search-form {
    flex-direction: column;
    padding: 8px;
  }
  .bx-v2 .bx-search-form .bx-btn {
    width: 100%;
    justify-content: center;
  }
  .bx-v2 .bx-empty-state,
  .bx-v2 .bx-not-found-card {
    padding: 30px 18px;
    border-radius: 20px;
  }
  .bx-v2 .bx-not-found-code {
    font-size: 112px;
  }
}

/* Alma mater hub and legacy memory collections. */
body.bx-v2:is(.page-id-9417, .page-id-221, .page-id-407, .page-id-475) {
  background: #f4f7fa;
}
body.bx-v2:is(.page-id-9417, .page-id-221, .page-id-407, .page-id-475)
  #sidebar-primary {
  display: none;
}
body.bx-v2:is(.page-id-9417, .page-id-221, .page-id-407, .page-id-475)
  #primary {
  width: min(1180px, calc(100% - 36px));
  margin: 42px auto 72px;
}
body.bx-v2:is(.page-id-9417, .page-id-221, .page-id-407, .page-id-475)
  .entry-title {
  margin: 0 0 24px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.04em;
}

/* Alma mater landing page. */
body.bx-v2.page-id-9417 .entry-content {
  max-width: none;
}
.bx-v2 .bx-alma-hub,
.bx-v2 .bx-alma-hub > .wp-block-group__inner-container {
  width: 100%;
}
.bx-v2 .bx-alma-intro {
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
  padding: clamp(34px, 5vw, 62px);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(255, 190, 66, 0.3),
      transparent 28%
    ),
    linear-gradient(135deg, #102e53 0%, #1d4d7d 68%, #28608f 100%);
  box-shadow: 0 24px 54px rgba(9, 35, 65, 0.18);
}
.bx-v2 .bx-alma-intro > .wp-block-group__inner-container {
  position: relative;
  z-index: 1;
  max-width: 790px;
}
.bx-v2 .bx-alma-intro::after {
  position: absolute;
  right: -38px;
  bottom: -96px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgba(255, 255, 255, 0.045),
    0 0 0 76px rgba(255, 255, 255, 0.025);
  content: "";
}
.bx-v2 .bx-alma-eyebrow {
  margin: 0 0 12px;
  color: #ffd070;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bx-v2 .bx-alma-intro h2 {
  max-width: 720px;
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.bx-v2 .bx-alma-intro p:last-child {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.75;
}
.bx-v2 .bx-alma-grid > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.bx-v2 .bx-alma-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 50, 86, 0.11);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 13px 34px rgba(12, 38, 66, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}
.bx-v2 .bx-alma-card > .wp-block-group__inner-container {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
}
.bx-v2 .bx-alma-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--gold), #e48b17);
  content: "";
}
.bx-v2 .bx-alma-card:hover {
  border-color: rgba(21, 82, 134, 0.28);
  box-shadow: 0 20px 44px rgba(12, 38, 66, 0.14);
  transform: translateY(-3px);
}
.bx-v2 .bx-alma-card-index {
  margin: 0 0 30px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.bx-v2 .bx-alma-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 29px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.bx-v2 .bx-alma-card h3 a {
  color: inherit;
  text-decoration: none;
}
.bx-v2 .bx-alma-card h3 a::after {
  position: absolute;
  inset: 0;
  content: "";
}
.bx-v2 .bx-alma-card h3 a:focus-visible::after {
  outline: 3px solid var(--gold);
  outline-offset: -5px;
}
.bx-v2 .bx-alma-card h3 + p {
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
}
.bx-v2 .bx-alma-card-action {
  margin: auto 0 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.025em;
}
.bx-v2 .bx-alma-card-action span {
  display: inline-block;
  margin-left: 5px;
  transition: transform 180ms ease;
}
.bx-v2 .bx-alma-card:hover .bx-alma-card-action span {
  transform: translateX(4px);
}
.bx-v2 .bx-alma-card--jubilee {
  grid-column: 1 / -1;
  color: #fff;
  background:
    radial-gradient(
      circle at 86% 20%,
      rgba(255, 193, 68, 0.28),
      transparent 24%
    ),
    linear-gradient(120deg, #14365e, #245a8b);
}
.bx-v2 .bx-alma-card--jubilee::before {
  width: 7px;
}
.bx-v2 .bx-alma-card--jubilee > .wp-block-group__inner-container {
  min-height: 230px;
  padding-right: min(34%, 360px);
}
.bx-v2 .bx-alma-card--jubilee .bx-alma-card-index,
.bx-v2 .bx-alma-card--jubilee .bx-alma-card-action {
  color: #ffd070;
}
.bx-v2 .bx-alma-card--jubilee h3,
.bx-v2 .bx-alma-card--jubilee h3 + p {
  color: #fff;
}
.bx-v2 .bx-alma-card--jubilee h3 + p {
  color: rgba(255, 255, 255, 0.82);
}

/* Graduation tableaux: clear year sections without rewriting the archive. */
body.bx-v2.page-id-221 .entry-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}
body.bx-v2.page-id-221 .entry-content > :not(figure.wp-block-image) {
  grid-column: 1 / -1;
}
body.bx-v2.page-id-221 .entry-content > p:first-child {
  margin: 0 0 8px;
  padding: 20px 22px;
  border: 1px solid rgba(19, 68, 111, 0.12);
  border-radius: 16px;
  color: var(--ink-2);
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 15px;
  line-height: 1.7;
}
body.bx-v2.page-id-221 .entry-content > p:first-child a {
  color: var(--accent);
  font-weight: 800;
}
body.bx-v2.page-id-221 .entry-content > .wp-block-heading {
  position: relative;
  margin: 26px 0 0;
  padding: 0 0 12px 44px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 28px;
  text-align: left;
}
body.bx-v2.page-id-221 .entry-content > .wp-block-heading::before {
  position: absolute;
  left: 0;
  top: -3px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--gold);
  content: "";
}
body.bx-v2.page-id-221 .entry-content > figure.wp-block-image {
  display: flex;
  min-width: 0;
  min-height: 300px;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(10, 37, 64, 0.11);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 11px 28px rgba(10, 37, 64, 0.09);
}
body.bx-v2.page-id-221 .entry-content > figure.wp-block-image img {
  width: 100% !important;
  height: auto !important;
  max-height: 620px;
  object-fit: contain;
}
body.bx-v2.page-id-221 .entry-content > p:last-child {
  margin: 0;
  padding: 18px 20px;
  border-radius: 14px;
  color: var(--ink-2);
  background: #e9eff5;
  font-weight: 700;
}

/* Scanned Babits award memory booklets. */
body.bx-v2:is(.page-id-407, .page-id-475) .entry-content {
  max-width: 1120px;
  margin: 0 auto;
}
body.bx-v2:is(.page-id-407, .page-id-475)
  .entry-content
  > figure.wp-block-image:first-child {
  display: flex;
  min-height: 180px;
  max-height: 360px;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  padding: 10px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(145deg, #102f54, #245f91);
  box-shadow: 0 18px 42px rgba(9, 35, 65, 0.16);
}
body.bx-v2:is(.page-id-407, .page-id-475)
  .entry-content
  > figure.wp-block-image:first-child
  img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: contain;
}
body.bx-v2.page-id-407 .entry-content > figure.wp-block-image:first-child {
  display: none;
}
body.bx-v2:is(.page-id-407, .page-id-475) .entry-content > p {
  margin: 0 0 20px;
  padding: 15px 18px;
  border-left: 5px solid var(--gold);
  border-radius: 0 12px 12px 0;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}
body.bx-v2:is(.page-id-407, .page-id-475) .blocks-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
}
body.bx-v2:is(.page-id-407, .page-id-475) .blocks-gallery-item {
  display: block !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(10, 37, 64, 0.11);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(10, 37, 64, 0.09);
}
body.bx-v2:is(.page-id-407, .page-id-475) .blocks-gallery-item figure,
body.bx-v2:is(.page-id-407, .page-id-475) .blocks-gallery-item a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  margin: 0;
}
body.bx-v2:is(.page-id-407, .page-id-475) .blocks-gallery-item img {
  width: 100% !important;
  height: auto !important;
  max-height: 520px;
  object-fit: contain;
}
body.bx-v2:is(.page-id-407, .page-id-475) .blocks-gallery-item a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .bx-v2 .bx-alma-grid > .wp-block-group__inner-container,
  body.bx-v2.page-id-221 .entry-content {
    grid-template-columns: 1fr;
  }
  .bx-v2 .bx-alma-card--jubilee {
    grid-column: auto;
  }
  .bx-v2 .bx-alma-card--jubilee > .wp-block-group__inner-container {
    padding-right: 30px;
  }
  body.bx-v2:is(.page-id-407, .page-id-475) .blocks-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.bx-v2:is(.page-id-9417, .page-id-221, .page-id-407, .page-id-475)
    #primary {
    width: calc(100% - 24px);
    margin: 24px auto 48px;
  }
  body.bx-v2:is(.page-id-9417, .page-id-221, .page-id-407, .page-id-475)
    .entry-title {
    margin-bottom: 18px;
    font-size: 32px;
  }
  .bx-v2 .bx-alma-intro {
    padding: 30px 22px;
    border-radius: 20px;
  }
  .bx-v2 .bx-alma-intro h2 {
    font-size: 29px;
  }
  .bx-v2 .bx-alma-card {
    border-radius: 18px;
  }
  .bx-v2 .bx-alma-card > .wp-block-group__inner-container,
  .bx-v2 .bx-alma-card--jubilee > .wp-block-group__inner-container {
    min-height: 0;
    padding: 24px 22px;
  }
  .bx-v2 .bx-alma-card-index {
    margin-bottom: 22px;
  }
  body.bx-v2.page-id-221 .entry-content {
    gap: 12px;
  }
  body.bx-v2.page-id-221 .entry-content > figure.wp-block-image {
    min-height: 0;
    border-radius: 12px;
  }
  body.bx-v2.page-id-221 .entry-content > .wp-block-heading {
    margin-top: 20px;
    font-size: 24px;
  }
  body.bx-v2:is(.page-id-407, .page-id-475) .blocks-gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  body.bx-v2:is(.page-id-407, .page-id-475) .blocks-gallery-item {
    padding: 7px;
    border-radius: 12px;
  }
}

/* Iskolai élet: stable hub, media center and result archives */
body.bx-v2:is(
    .page-id-9428,
    .page-id-9429,
    .page-id-161,
    .page-id-164,
    .page-id-166,
    .page-id-168,
    .page-id-311,
    .page-id-8351,
    .page-id-8349,
    .page-id-5573
  )
  #sidebar-primary {
  display: none;
}
body.bx-v2:is(
    .page-id-9428,
    .page-id-9429,
    .page-id-161,
    .page-id-164,
    .page-id-166,
    .page-id-168,
    .page-id-311,
    .page-id-8351,
    .page-id-8349,
    .page-id-5573
  )
  #primary {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  margin: 38px auto 72px;
}
body.bx-v2:is(.page-id-9428, .page-id-9429, .page-id-161) .entry-content {
  max-width: none;
}
.bx-v2 .bx-life-hub,
.bx-v2 .bx-life-hub > .wp-block-group__inner-container {
  display: grid;
  gap: 24px;
}
.bx-v2 .bx-life-intro {
  position: relative;
  overflow: hidden;
  padding: 46px 48px;
  border: 1px solid rgba(199, 151, 61, 0.24);
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(
      circle at 87% 16%,
      rgba(236, 184, 81, 0.29),
      transparent 27%
    ),
    linear-gradient(135deg, #0a2540 0%, #123e65 65%, #18547c 100%);
  box-shadow: 0 22px 50px rgba(10, 37, 64, 0.17);
}
.bx-v2 .bx-life-intro > .wp-block-group__inner-container {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.bx-v2 .bx-life-intro::after {
  position: absolute;
  right: 42px;
  bottom: -58px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(255, 255, 255, 0.045),
    0 0 0 48px rgba(255, 255, 255, 0.025);
  content: "";
}
.bx-v2 .bx-life-eyebrow {
  margin: 0 0 10px;
  color: #f2c76f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.bx-v2 .bx-life-intro h2 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.04;
}
.bx-v2 .bx-life-intro p:last-child {
  max-width: 680px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.65;
}
.bx-v2 .bx-life-grid > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.bx-v2 .bx-life-grid--three > .wp-block-group__inner-container {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bx-v2 .bx-life-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(10, 37, 64, 0.11);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(10, 37, 64, 0.08);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.bx-v2 .bx-life-card > .wp-block-group__inner-container {
  display: flex;
  min-height: 250px;
  padding: 28px 30px;
  flex-direction: column;
}
.bx-v2 .bx-life-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #d0a347, #f2c76f);
  content: "";
}
.bx-v2 .bx-life-card:nth-child(3n + 2)::before {
  background: linear-gradient(180deg, #176a94, #46a6c8);
}
.bx-v2 .bx-life-card:nth-child(3n)::before {
  background: linear-gradient(180deg, #7f3159, #c36c8f);
}
@media (hover: hover) {
  .bx-v2 .bx-life-card:hover {
    transform: translateY(-4px);
    border-color: rgba(199, 151, 61, 0.42);
    box-shadow: 0 18px 40px rgba(10, 37, 64, 0.13);
  }
}
.bx-v2 .bx-life-card-index {
  width: fit-content;
  margin: 0 0 26px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #76551d;
  background: #f8edd5;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
}
.bx-v2 .bx-life-card h3 {
  margin: 0;
  color: #0a2540;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.15;
}
.bx-v2 .bx-life-card h3 a {
  color: inherit;
  text-decoration: none;
}
.bx-v2 .bx-life-card h3 a::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
}
.bx-v2 .bx-life-card h3 a:focus-visible::after {
  outline: 3px solid var(--gold);
  outline-offset: -5px;
}
.bx-v2 .bx-life-card h3 + p {
  margin: 13px 0 24px;
  color: #536373;
  font-size: 15px;
  line-height: 1.6;
}
.bx-v2 .bx-life-card-action {
  margin: auto 0 0;
  color: #164f73;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bx-v2 .bx-life-card-action span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s ease;
}
.bx-v2 .bx-life-card:hover .bx-life-card-action span {
  transform: translateX(4px);
}
.bx-v2 .bx-life-card--media {
  background: linear-gradient(145deg, #fff 0%, #eef7fa 100%);
}

/* Media landing and temporary external archives */
.bx-v2 .bx-media-feature,
.bx-v2 .bx-media-page-head,
.bx-v2 .bx-competition-head,
.bx-v2 .bx-result-page-head {
  overflow: hidden;
  padding: 34px 36px;
  border: 1px solid rgba(10, 37, 64, 0.11);
  border-radius: 22px;
  background: linear-gradient(145deg, #fff 0%, #f4f8fb 100%);
  box-shadow: 0 14px 36px rgba(10, 37, 64, 0.09);
}
.bx-v2 .bx-media-feature > .wp-block-group__inner-container,
.bx-v2 .bx-media-page-head > .wp-block-group__inner-container,
.bx-v2 .bx-competition-head > .wp-block-group__inner-container,
.bx-v2 .bx-result-page-head > .wp-block-group__inner-container {
  min-width: 0;
}
.bx-v2 .bx-media-feature h2 {
  margin: 0 0 12px;
  color: #0a2540;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 4vw, 42px);
}
.bx-v2 .bx-media-feature h2 + p,
.bx-v2 .bx-media-page-head p:not(.bx-life-eyebrow),
.bx-v2 .bx-competition-head p:not(.bx-life-eyebrow),
.bx-v2 .bx-result-page-head p:not(.bx-life-eyebrow) {
  color: #4d6070;
  font-size: 17px;
  line-height: 1.65;
}
.bx-v2 .bx-media-feature figure {
  overflow: hidden;
  margin: 26px 0 22px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(10, 37, 64, 0.12);
}
.bx-v2 .bx-media-feature figure img {
  display: block;
  width: 100%;
  height: auto;
}
.bx-v2 .bx-media-feature .wp-block-button__link {
  border-radius: 999px;
  color: #fff;
  background: #0f5378;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 83, 120, 0.18);
}
.bx-v2 .bx-media-feature--firkak {
  position: relative;
  max-width: 820px;
  padding: 44px;
  background:
    linear-gradient(
      135deg,
      rgba(248, 237, 213, 0.82),
      rgba(255, 255, 255, 0.96)
    ),
    #fff;
}
.bx-v2 .bx-media-note {
  margin: 18px 0 0;
  color: #6a7680;
  font-size: 13px;
}
body.bx-v2.page-id-166 .entry-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: none;
}
body.bx-v2.page-id-166 .bx-media-page-head {
  grid-column: 1 / -1;
}
body.bx-v2.page-id-166 .wp-block-embed {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(10, 37, 64, 0.11);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(10, 37, 64, 0.08);
}
body.bx-v2.page-id-166 .wp-block-embed__wrapper {
  overflow: hidden;
  border-radius: 10px;
}
body.bx-v2.page-id-166 .wp-block-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
}
body.bx-v2.page-id-166 figcaption {
  padding: 3px 4px 0;
  color: #536373;
  font-weight: 700;
}

/* Competition hub and annual archive */
body.bx-v2.page-id-311 .entry-content {
  max-width: none;
}
.bx-v2 .bx-competition-links > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 42px;
}
.bx-v2 .bx-competition-links .bx-life-card > .wp-block-group__inner-container {
  min-height: 230px;
  padding: 24px;
}
body.bx-v2.page-id-311 .bx-competition-archive-title {
  margin: 48px 0 24px;
  padding-top: 8px;
  color: #0a2540;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}
body.bx-v2.page-id-311 .entry-content > p:has(strong) {
  margin: 34px 0 6px;
  color: #0a2540;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}
body.bx-v2.page-id-311 .wp-block-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 16px 0 24px;
  padding: 18px 20px;
  border: 1px solid rgba(10, 37, 64, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(10, 37, 64, 0.07);
}
body.bx-v2.page-id-311 .wp-block-file__embed {
  display: none;
}
body.bx-v2.page-id-311 .wp-block-file > a:not(.wp-block-file__button) {
  min-width: 0;
  color: #0d4f75;
  font-weight: 800;
  overflow-wrap: anywhere;
}
body.bx-v2.page-id-311 .wp-block-file__button {
  margin: 0;
  border-radius: 999px;
  color: #fff;
  background: #0f5378;
}

/* Large current-result image collections */
body.bx-v2:is(.page-id-8351, .page-id-8349) .entry-content {
  display: flex;
  max-width: none;
  margin: 0 -8px;
  flex-wrap: wrap;
  gap: 0;
}
body.bx-v2:is(.page-id-8351, .page-id-8349) .bx-result-page-head {
  flex: 0 0 calc(100% - 16px);
  margin: 0 8px 24px;
}
body.bx-v2:is(.page-id-8351, .page-id-8349) .bx-result-back {
  margin-bottom: 0;
}
body.bx-v2:is(.page-id-8351, .page-id-8349) .bx-result-back a {
  color: #0d5279;
  font-weight: 800;
}
body.bx-v2:is(.page-id-8351, .page-id-8349) .wp-block-gallery {
  display: contents !important;
}
body.bx-v2:is(.page-id-8351, .page-id-8349) .wp-block-image {
  display: flex !important;
  flex: 0 0 calc(33.333% - 16px) !important;
  width: auto !important;
  min-width: 0;
  margin: 8px !important;
  padding: 7px;
  align-items: center;
  border: 1px solid rgba(10, 37, 64, 0.1);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 19px rgba(10, 37, 64, 0.07);
}
body.bx-v2:is(.page-id-8351, .page-id-8349) .wp-block-image img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none;
  object-fit: contain;
}

/* Fészeknapló remains editable but gains a calmer reading surface */
body.bx-v2.page-id-5573 .entry-content {
  max-width: 980px;
  margin: 0 auto;
}
body.bx-v2.page-id-5573 .wp-block-buttons {
  gap: 10px;
  margin: 24px 0;
  flex-wrap: wrap;
}
body.bx-v2.page-id-5573 .wp-block-button {
  width: auto !important;
  min-width: 150px;
  flex: 1 1 170px;
}
body.bx-v2.page-id-5573 .wp-block-button__link {
  width: 100%;
  border-radius: 999px;
  background: #0f5378 !important;
  font-weight: 800;
}
body.bx-v2.page-id-5573 .entry-content > p {
  line-height: 1.72;
}
body.bx-v2.page-id-5573 .wp-block-separator {
  margin: 38px auto 22px;
  border-color: rgba(10, 37, 64, 0.16);
}

@media (max-width: 920px) {
  .bx-v2 .bx-life-grid--three > .wp-block-group__inner-container,
  .bx-v2 .bx-competition-links > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
  }
  body.bx-v2:is(.page-id-8351, .page-id-8349) .wp-block-image {
    flex-basis: calc(50% - 16px) !important;
  }
}

@media (max-width: 700px) {
  body.bx-v2:is(
      .page-id-9428,
      .page-id-9429,
      .page-id-161,
      .page-id-164,
      .page-id-166,
      .page-id-168,
      .page-id-311,
      .page-id-8351,
      .page-id-8349,
      .page-id-5573
    )
    #primary {
    width: calc(100% - 24px);
    margin: 24px auto 50px;
  }
  .bx-v2 .bx-life-intro {
    padding: 30px 22px;
    border-radius: 20px;
  }
  .bx-v2 .bx-life-intro h2 {
    font-size: 30px;
  }
  .bx-v2 .bx-life-intro p:last-child {
    font-size: 16px;
  }
  .bx-v2 .bx-life-grid > .wp-block-group__inner-container,
  body.bx-v2.page-id-166 .entry-content {
    grid-template-columns: 1fr;
  }
  .bx-v2 .bx-life-card {
    border-radius: 17px;
  }
  .bx-v2 .bx-life-card > .wp-block-group__inner-container,
  .bx-v2
    .bx-competition-links
    .bx-life-card
    > .wp-block-group__inner-container {
    min-height: 0;
    padding: 23px 22px;
  }
  .bx-v2 .bx-life-card-index {
    margin-bottom: 20px;
  }
  .bx-v2 .bx-media-feature,
  .bx-v2 .bx-media-page-head,
  .bx-v2 .bx-competition-head,
  .bx-v2 .bx-result-page-head,
  .bx-v2 .bx-media-feature--firkak {
    padding: 26px 22px;
    border-radius: 18px;
  }
  body.bx-v2.page-id-311 .wp-block-file {
    grid-template-columns: 1fr;
  }
  body.bx-v2.page-id-311 .wp-block-file__button {
    width: fit-content;
  }
  body.bx-v2:is(.page-id-8351, .page-id-8349) .wp-block-image {
    flex-basis: calc(100% - 16px) !important;
    border-radius: 11px;
  }
  body.bx-v2.page-id-5573 .wp-block-button {
    flex-basis: 100%;
  }
}

/* Final accessibility and audience-hub layer. */
.bx-v2 .bx-skip-link {
  position: fixed;
  z-index: 10000;
  top: 10px;
  left: 10px;
  padding: 11px 16px;
  transform: translateY(-160%);
  border-radius: 9px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(7, 27, 50, 0.28);
}
.bx-v2 .bx-skip-link:focus {
  transform: translateY(0);
}
.bx-v2 #main-content:focus {
  outline: none;
}
.bx-v2 .bx-footer-contact a {
  color: inherit;
  text-decoration: none;
}
.bx-v2 .bx-footer-contact a:hover,
.bx-v2 .bx-footer-contact a:focus-visible {
  color: #fff;
  text-decoration: underline;
}
.bx-v2 .bx-widgets-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 14px;
}
.bx-v2 .bx-widgets-toggle {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(10, 36, 66, 0.22);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.bx-v2 .bx-widgets-toggle:hover,
.bx-v2 .bx-widgets-toggle:focus-visible,
.bx-v2 .bx-widgets-toggle[aria-pressed="true"] {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}
.bx-v2 .bx-hub--audience {
  max-width: 1120px;
  margin: 0 auto;
}
.bx-v2 .bx-hub--audience > .wp-block-group__inner-container {
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(10, 36, 66, 0.1);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff 0%, #f5f8fb 100%);
  box-shadow: 0 22px 52px -36px rgba(7, 27, 50, 0.38);
}
.bx-v2 .bx-hub-eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.bx-v2 .bx-hub--audience h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(31px, 4vw, 48px);
  letter-spacing: -0.04em;
}
.bx-v2 .bx-hub-intro {
  max-width: 760px;
  margin: 14px 0 28px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.7;
}
.bx-v2 .bx-hub-grid > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bx-v2 .bx-hub-card > .wp-block-group__inner-container {
  height: 100%;
  padding: 22px;
  border: 1px solid rgba(10, 36, 66, 0.11);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 32px -28px rgba(7, 27, 50, 0.52);
}
.bx-v2 .bx-hub-card h3 {
  margin: 0 0 9px;
  font-size: 19px;
  line-height: 1.3;
}
.bx-v2 .bx-hub-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.bx-v2 .bx-hub-card h3 a:hover,
.bx-v2 .bx-hub-card h3 a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}
.bx-v2 .bx-hub-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}
.bx-v2 .wp-block-file__button {
  color: #fff !important;
  background: #173f67 !important;
}
.bx-v2 .bx-notice-summary,
.bx-v2 .bx-notice-fees {
  margin: 24px 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(10, 36, 66, 0.13);
  border-left: 5px solid var(--gold);
  border-radius: 16px;
  background: #f5f8fb;
}
.bx-v2 .bx-notice-summary h2,
.bx-v2 .bx-notice-fees h2 {
  margin-top: 0;
}
body.bx-v2.page-id-161 .bx-life-grid--media .bx-life-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  background:
    radial-gradient(
      circle at 88% 14%,
      rgba(255, 171, 31, 0.2),
      transparent 29%
    ),
    linear-gradient(145deg, #fff 0%, #f3f7fb 100%);
}
body.bx-v2.page-id-161 .bx-life-grid--media .bx-life-card::before {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 0 20px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: var(--accent);
  font-size: 25px;
  line-height: 1;
  box-shadow: 0 12px 24px -16px rgba(10, 36, 66, 0.8);
}
body.bx-v2.page-id-161 .bx-life-grid--media .bx-life-card:nth-child(1)::before {
  content: "▣";
}
body.bx-v2.page-id-161 .bx-life-grid--media .bx-life-card:nth-child(2)::before {
  content: "▶";
}
body.bx-v2.page-id-161 .bx-life-grid--media .bx-life-card:nth-child(3)::before {
  content: "▷";
}
body.bx-v2.page-id-161 .bx-life-grid--media .bx-life-card:nth-child(4)::before {
  content: "▤";
}
@media (max-width: 900px) {
  .bx-v2 .bx-hub-grid > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .bx-v2 .bx-hub--audience > .wp-block-group__inner-container {
    padding: 25px 19px;
    border-radius: 18px;
  }
  .bx-v2 .bx-hub-grid > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
  }
  .bx-v2 .bx-widgets-controls {
    justify-content: flex-start;
  }
}

.bx-v2 .bx-teacher-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #173f67, #2f648f);
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: 0.05em;
}
.bx-v2 .has-bx-placeholder {
  background: #173f67;
}
.bx-v2 .bx-staff-section-title {
  flex-basis: 100%;
  margin: 24px 0 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 34px);
}
