:root {
  --unu-teal: #0da7b2;
  --unu-teal-deep: #007c88;
  --unu-teal-dark: #062e35;
  --unu-orange: #ff8200;
  --unu-orange-strong: #a94700;
  --unu-gold: #fdba12;
  --unu-cyan: #ddfbfa;
  --unu-base: #f7fffe;
  --unu-ink: #062e35;
  --unu-line: rgba(6, 46, 53, 0.12);
  --unu-shadow: 0 22px 60px rgba(0, 124, 136, 0.16);
  --unu-radius: 22px;
  --unu-ref-border: #dde8ea;
  --unu-ref-off-white: #f8fafb;
  --unu-ref-text-mid: #3a4a55;
  --unu-ref-text-light: #6b7e8a;
  --unu-ref-shadow-sm: 0 2px 8px rgba(26, 171, 176, 0.12);

  /*
   * Page width, in one place.
   *
   * This used to be the literal 1160px, repeated in eight rules. The layout
   * budget at the widest breakpoint wants 1320px: the article column then
   * carries a genuine 68-character measure and the sidebar stops looking
   * pinned to the right edge on a 1920 screen.
   *
   * Change the number here and every container follows — header, topbar,
   * hero, footer, archive grid, and the single-post layout.
   */
  --unu-container: 1320px;
  --unu-container-gutter: 48px;
  --unu-ref-shadow-md: 0 8px 32px rgba(26, 171, 176, 0.18);
  --unu-ref-shadow-lg: 0 20px 60px rgba(15, 32, 39, 0.15);

  /* Shared layout tokens so header/sidebar offsets stay in sync. */
  --unu-header-height: 72px;
  --unu-topbar-height: 34px;
  --unu-gutter: clamp(1rem, 3vw, 1.5rem);
  --unu-sticky-offset: calc(var(--unu-header-height) + 1.5rem);
}

/*
 * Collapse the top bar when the sticky header engages, so the two do not
 * stack into ~106px of permanent vertical chrome on small laptops.
 */
@media (max-width: 1180px) {
  :root {
    --unu-sticky-offset: calc(var(--unu-header-height) + 1rem);
  }
}

/*
 * Anchor targets must clear the sticky header, otherwise in-page links hide
 * their own heading underneath it.
 */
:where(h1, h2, h3, h4, h5, h6, [id]) {
  scroll-margin-top: var(--unu-sticky-offset);
}

/*
 * Respect the user's motion preference. The theme leans on hover lifts,
 * smooth scrolling and the sticky header blur.
 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .unu-ref-stat-card:hover,
  .unu-ref-prodi-grid > div:hover,
  .unu-card:hover,
  .unu-ref-archive-card:hover,
  .unu-gallery-card:hover,
  .unu-action-row .wp-block-button__link:hover,
  .wp-block-button__link:hover {
    transform: none;
  }
}

/*
 * Motion-sensitive users and older browsers: drop the backdrop blur, which is
 * expensive to composite over long pages on low-end mobile GPUs.
 */
@media (prefers-reduced-transparency: reduce) {
  .unu-header {
    backdrop-filter: none;
    background: #fff;
  }
}

/* Screen-reader only utility for pattern-provided labels. */
.unu-visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(120deg, rgba(13, 167, 178, 0.1), transparent 34%),
    linear-gradient(300deg, rgba(255, 130, 0, 0.12), transparent 38%),
    var(--unu-base);
  color: var(--unu-ink);
}

body::before {
  background-image:
    linear-gradient(rgba(6, 46, 53, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 46, 53, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

::selection {
  background: var(--unu-orange);
  color: #fff;
}

.wp-site-blocks {
  /*
   * `overflow: hidden` used to be set here to clip the hero's bleed. It also
   * broke `position: sticky` on the header and sidebar, because a clipping
   * ancestor becomes the scroll container. `clip` keeps the horizontal
   * clipping without creating a scroll container, so sticky keeps working.
   */
  overflow-x: clip;
}

.wp-site-blocks > .unu-main,
.unu-main,
.unu-main > .wp-block-group:first-child {
  margin-block-start: 0;
}

/*
 * Container width.
 *
 * Core wraps these groups in `.is-layout-constrained` and emits a per-block
 * class (wp-container-core-group-is-layout-N) that pins `max-width` to
 * theme.json's contentSize (760px). That rule outranks a plain max-width
 * declaration, which made containers render 760px wide inside the Site Editor
 * while the front end showed 1160px — the same template looked different in the
 * two places.
 *
 * Resetting the layout tokens on the container itself makes core's own rule
 * resolve to 100%, so the explicit max-width below is the one that applies in
 * both contexts.
 */
.unu-ref-container,
.unu-topbar-inner,
.unu-header-inner,
.unu-footer > .wp-block-group {
  --wp--style--global--content-size: 100%;
  --wp--style--global--wide-size: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: min(var(--unu-container), calc(100% - var(--unu-container-gutter))) !important;
  width: 100%;
}

.unu-topbar {
  background: var(--unu-teal-deep);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  padding: 0.45rem 0;
}

.unu-topbar p {
  margin: 0;
}

.unu-topbar a {
  color: rgba(255, 255, 255, 0.9);
}

.unu-topbar a:hover {
  color: var(--unu-gold);
}

.unu-topbar-links {
  display: flex;
  gap: 1.25rem;
}

.unu-header {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 2px solid var(--unu-cyan);
  box-shadow: var(--unu-ref-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 30;
}

.unu-header > .wp-block-group,
.unu-footer > .wp-block-group {
  max-width: min(1220px, calc(100% - 32px));
}

.unu-header-inner {
  gap: clamp(1rem, 2vw, 2rem);
  flex-wrap: nowrap !important;
  min-height: 72px;
  padding-bottom: 0.65rem;
  padding-top: 0.65rem;
}

.unu-header-inner > .wp-block-group:first-child {
  flex: 0 0 auto;
  min-width: 0;
}

.unu-header-inner > .wp-block-navigation {
  flex: 1 1 auto;
  min-width: 0;
}

.unu-header .wp-block-navigation__container {
  flex-wrap: nowrap;
  gap: 0.14rem;
}

.unu-logo-mark img {
  filter: drop-shadow(0 8px 16px rgba(0, 124, 136, 0.16));
}

.unu-mobile-menu-head {
  display: none;
}

.unu-brand-title {
  color: var(--unu-teal-deep);
  font-size: clamp(0.96rem, 1.15vw, 1.1rem);
  font-weight: 950;
  line-height: 1.05;
  margin: 0;
  max-width: 290px;
}

.unu-brand-title a {
  color: inherit;
  text-decoration: none;
}

.unu-brand-subtitle {
  color: var(--unu-teal-deep);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.unu-header .wp-block-navigation a {
  border-radius: 999px;
  color: #173f47;
  line-height: 1;
  padding: 0.62rem 0.72rem;
  position: relative;
  transition: background-color 180ms ease, color 180ms ease;
}

.unu-header .wp-block-navigation a::after {
  background: var(--unu-orange);
  border-radius: 999px;
  bottom: 0.24rem;
  content: "";
  height: 2px;
  left: 0.72rem;
  opacity: 0;
  position: absolute;
  right: 0.72rem;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.unu-header .wp-block-navigation,
.unu-header .wp-block-navigation-item {
  column-gap: 0.12rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  row-gap: 0.2rem;
}

.unu-header .wp-block-navigation a:hover,
.unu-header .wp-block-navigation a[aria-current="page"],
.unu-header .wp-block-navigation .current-menu-ancestor > a {
  background: rgba(221, 251, 250, 0.76);
  color: var(--unu-teal-deep);
}

.unu-header .wp-block-navigation a:hover::after,
.unu-header .wp-block-navigation a[aria-current="page"]::after,
.unu-header .wp-block-navigation .current-menu-ancestor > a::after {
  opacity: 1;
  transform: scaleX(1);
}

.unu-header .wp-block-navigation a:focus,
.unu-header .wp-block-navigation a:focus-visible,
.unu-header .wp-block-navigation .wp-block-navigation-item__content:focus,
.unu-header .wp-block-navigation .wp-block-navigation-item__content:focus-visible {
  box-shadow: none;
  outline: 0;
}

.unu-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(6, 46, 53, 0.1);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(6, 46, 53, 0.14);
  color: var(--unu-ink);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0;
  max-height: min(72vh, 560px);
  min-width: 240px;
  overflow-y: auto;
  padding: 0.45rem;
}

.unu-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
  margin-left: 0;
  margin-top: -0.45rem;
}

.unu-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item {
  width: 100%;
}

.unu-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container a {
  border-radius: 8px;
  color: #173f47;
  display: block;
  font-size: 0.82rem;
  font-weight: 720;
  line-height: 1.28;
  padding: 0.68rem 0.8rem;
  white-space: normal;
}

.unu-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container a::after {
  display: none;
}

.unu-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container a:hover,
.unu-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container a[aria-current="page"],
.unu-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .current-menu-ancestor > a {
  background: linear-gradient(90deg, rgba(221, 251, 250, 0.96), rgba(255, 255, 255, 0.82));
  color: var(--unu-teal-deep);
}

.unu-ref-hero {
  align-items: center;
  background: #07838b;
  display: flex;
  margin-bottom: 0;
  min-height: 88vh;
  overflow: hidden;
  padding-left: 0 !important;
  padding-right: 0 !important;
  position: relative;
}

.unu-ref-hero::before {
  /*
   * The hero background is a video clip with bright, high-contrast content
   * (large event signage). The overlay has to be strong enough over the text
   * column for body copy to stay readable, then fall away toward the right so
   * the footage stays visible.
   */
  background:
    linear-gradient(90deg,
      rgba(4, 62, 69, 0.88) 0%,
      rgba(4, 75, 82, 0.78) 38%,
      rgba(5, 112, 121, 0.42) 62%,
      rgba(5, 132, 140, 0.14) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.30) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

/* Belt-and-braces readability for the copy that sits directly on the video. */
.unu-ref-hero-desc {
  text-shadow: 0 1px 12px rgba(2, 32, 36, 0.55);
}

/*
 * Hero background video.
 *
 * Rendered by core/video, so the layout is a <figure class="wp-block-video">
 * wrapping a <video>. The figure carries `.unu-ref-hero-media` and is pulled
 * out of flow to fill the hero; the video inside is stretched to cover it.
 *
 * This replaced a core/html block containing hand-written markup. That version
 * could not be edited in the Site Editor at all — no video picker, no settings —
 * and it tripped the "Block contains unexpected or invalid content" notice,
 * because the editor has nothing to validate free-form HTML against.
 */
.unu-ref-hero-media {
  inset: 0;
  margin: 0 !important;
  max-width: none !important;
  opacity: 1;
  position: absolute;
  width: 100% !important;
  z-index: 0;
}

.unu-ref-hero-media .unu-ref-hero-video,
.unu-ref-hero-media video {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
  width: 100%;
}

/* The figure is positioned, so core's default margins would offset it. */
.wp-block-video.unu-ref-hero-media {
  background: var(--unu-teal-deep, #062e35);
}

.unu-ref-hero-grid {
  align-items: center;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 760px);
  justify-content: start;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  position: relative;
  z-index: 2;
}

.unu-ref-badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding: 0.42rem 0.9rem;
}

.unu-ref-hero-title {
  color: #fff;
  font-family: var(--wp--preset--font-family--display, "Segoe UI", Arial, sans-serif);
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.06;
  /*
   * `15ch` wrapped this headline into five very tall lines and pushed the
   * stats far below the fold. A wider measure keeps it to three lines while
   * staying inside the hero's text column.
   */
  max-width: 22ch;
  text-wrap: balance;
}

.unu-ref-hero-title em {
  color: var(--unu-gold);
  font-style: normal;
}

.unu-ref-hero-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.06rem;
  line-height: 1.7;
  max-width: 54ch;
  text-wrap: pretty;
}

.unu-ref-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.85rem;
}

.unu-button-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.54);
  color: #fff;
  box-shadow: none;
}

.unu-button-outline .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.unu-ref-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.unu-ref-hero-stats strong {
  color: var(--unu-gold);
  display: block;
  font-family: var(--wp--preset--font-family--display);
  font-size: 2rem;
  line-height: 1;
}

.unu-ref-hero-stats span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.unu-ref-hero-visual {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  box-shadow: var(--unu-ref-shadow-lg);
  display: flex;
  justify-content: center;
  min-height: 360px;
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
}

.unu-ref-hero-visual img {
  filter: drop-shadow(0 22px 42px rgba(6, 46, 53, 0.28));
  max-width: 320px;
  width: 78%;
}

.unu-ref-float {
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--unu-ref-shadow-lg);
  color: var(--unu-teal-deep);
  display: flex;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.85rem 1rem;
  position: absolute;
  white-space: nowrap;
}

.unu-ref-float.is-left {
  left: -1rem;
  top: 2.5rem;
}

.unu-ref-float.is-right {
  bottom: 3rem;
  right: -1rem;
}

.unu-ref-ticker {
  background: var(--unu-gold);
  color: var(--unu-teal-dark);
  font-size: 0.9rem;
  font-weight: 800;
  margin-block-start: 0;
  padding: 0.7rem 0;
}

.unu-ref-hero + .unu-ref-ticker,
.unu-ref-ticker + .unu-ref-section {
  margin-block-start: 0;
}

.unu-ref-ticker-inner {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.unu-ref-ticker-inner span {
  background: var(--unu-orange-strong);
  border-radius: 4px;
  color: #fff;
  flex-shrink: 0;
  font-size: 0.74rem;
  padding: 0.25rem 0.7rem;
  text-transform: uppercase;
}

.unu-ref-ticker-inner p {
  margin: 0;
}

.unu-ref-section {
  padding-bottom: clamp(4rem, 8vw, 5.25rem);
  padding-top: clamp(4rem, 8vw, 5.25rem);
}

.unu-ref-section-alt {
  background: var(--unu-ref-off-white);
}

.unu-ref-label {
  color: var(--unu-teal-deep);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 0.5rem;
  letter-spacing: 0;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.unu-ref-label::before {
  background: var(--unu-orange-strong);
  border-radius: 999px;
  content: "";
  height: 3px;
  margin-top: 0.55rem;
  width: 24px;
}

.has-text-align-center.unu-ref-label {
  display: flex;
  justify-content: center;
}

.has-text-align-center.unu-ref-title {
  margin-left: auto;
  margin-right: auto;
}

.unu-ref-title {
  color: var(--unu-ink);
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  line-height: 1.2;
  max-width: 720px;
}

.unu-ref-desc {
  color: var(--unu-ref-text-light);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 620px;
}

.unu-ref-stats-row,
.unu-ref-prodi-grid,
.unu-ref-partner-row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.unu-ref-stat-card,
.unu-ref-prodi-grid > div,
.unu-ref-news-card,
.unu-ref-widget {
  background: #fff;
  border: 1px solid var(--unu-ref-border);
  border-radius: 20px;
  box-shadow: var(--unu-ref-shadow-sm);
}

.unu-ref-stat-card {
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.unu-ref-stat-card:hover,
.unu-ref-prodi-grid > div:hover {
  border-color: #5ecdd0;
  box-shadow: var(--unu-ref-shadow-md);
  transform: translateY(-4px);
}

.unu-ref-stat-card span,
.unu-ref-prodi-grid > div span {
  color: var(--unu-orange-strong);
  display: block;
  font-weight: 900;
  margin-bottom: 1rem;
}

.unu-ref-stat-card strong {
  color: var(--unu-teal-deep);
  display: block;
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.85rem;
  line-height: 1.1;
}

.unu-ref-stat-card p,
.unu-ref-prodi-grid > div p {
  color: var(--unu-ref-text-light);
  font-size: 0.92rem;
  line-height: 1.65;
}

.unu-ref-about-grid {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 7vw, 4.5rem);
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1fr);
}

.unu-ref-about-image {
  position: relative;
}

.unu-ref-image-placeholder {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, rgba(13, 167, 178, 0.18), rgba(221, 251, 250, 0.9)),
    #fff;
  border: 1px solid var(--unu-ref-border);
  border-radius: 20px;
  color: var(--unu-teal-deep);
  margin: 0;
  overflow: hidden;
}

.unu-ref-image-placeholder img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.unu-ref-image-badge {
  background: var(--unu-orange-strong);
  border-radius: 12px;
  bottom: -1.25rem;
  box-shadow: var(--unu-ref-shadow-md);
  color: #fff;
  padding: 1.15rem 1.35rem;
  position: absolute;
  right: -1.25rem;
}

.unu-ref-image-badge strong {
  display: block;
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.7rem;
  line-height: 1;
}

.unu-ref-image-badge p {
  margin: 0;
}

.unu-ref-values {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.unu-ref-values div {
  background: var(--unu-cyan);
  border-left: 3px solid var(--unu-teal);
  border-radius: 12px;
  padding: 1rem;
}

.unu-ref-values strong {
  color: var(--unu-teal-deep);
  display: block;
}

.unu-ref-values span {
  color: var(--unu-ref-text-light);
  display: block;
  font-size: 0.84rem;
  margin-top: 0.25rem;
}

.unu-ref-prodi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.unu-ref-prodi-grid > div {
  padding: 1.75rem;
}

.unu-ref-prodi-grid h3,
.unu-ref-news-card h3 {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.2rem;
  line-height: 1.3;
}

.unu-ref-prodi-grid h3 {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 900;
}

.unu-ref-prodi-grid a,
.unu-ref-more-link a,
.unu-ref-news-card a {
  color: var(--unu-teal-deep);
  font-weight: 800;
}

.unu-ref-facility-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.unu-ref-facility-grid > .wp-block-cover,
.unu-ref-facility-grid > div {
  background:
    linear-gradient(180deg, rgba(6, 46, 53, 0.08), rgba(6, 46, 53, 0.7)),
    var(--unu-facility-image, linear-gradient(135deg, rgba(13, 167, 178, 0.9), rgba(5, 127, 137, 0.84))),
    var(--unu-cyan);
  background-position: center;
  background-size: cover;
  border-radius: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 210px;
  overflow: hidden;
  padding: 1.4rem;
}

.unu-ref-facility-grid > .is-tall {
  grid-row: span 2;
  min-height: 444px;
}

.unu-ref-facility-grid .wp-block-cover__inner-container {
  color: inherit;
  position: relative;
  z-index: 1;
}

.unu-ref-facility-grid strong,
.unu-ref-facility-grid h3 {
  display: block;
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 0;
}

.unu-ref-facility-grid span,
.unu-ref-facility-grid p {
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0.35rem;
}

.unu-ref-section-headline {
  margin-bottom: 2rem;
}

.unu-ref-news-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.unu-ref-news-grid.wp-block-post-template > .wp-block-post {
  display: flex;
}

.unu-ref-news-card {
  color: var(--unu-ink);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 240px;
  padding: 1.5rem;
  width: 100%;
}

.unu-ref-news-media {
  align-items: center;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(13, 167, 178, 0.18), rgba(253, 186, 18, 0.16)),
    url("../images/Logo_UNU-KALTIM.png"),
    #eefafa;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover, 34%, cover;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  margin: -0.45rem -0.45rem 1rem;
  overflow: hidden;
}

.unu-ref-news-media:has(.wp-block-post-featured-image) {
  background-image: none;
}

.unu-ref-news-media > * {
  height: 100%;
  margin: 0 !important;
  max-width: none !important;
  width: 100%;
}

.unu-ref-news-media a,
.unu-ref-news-media img {
  display: block;
  height: 100%;
  width: 100%;
}

.unu-ref-news-media img {
  object-fit: cover;
}

.unu-ref-news-card .wp-block-post-title {
  margin-bottom: 0.85rem;
}

.unu-ref-news-card .wp-block-post-excerpt {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-bottom: 0;
  margin-top: 0;
}

.unu-ref-news-card .wp-block-post-excerpt__excerpt {
  margin-bottom: 1.25rem;
}

.unu-ref-news-card .wp-block-post-excerpt__more-link {
  margin-top: auto;
}

.unu-ref-news-date {
  color: var(--unu-orange-strong);
  font-size: 0.82rem;
  font-weight: 900;
}

.unu-ref-rector-message {
  background: linear-gradient(135deg, var(--unu-teal-deep) 0%, var(--unu-teal) 100%);
}

.unu-ref-rector-card {
  align-items: center;
  color: #fff;
  display: grid;
  gap: clamp(1.5rem, 5vw, 4rem);
  grid-template-columns: minmax(180px, 280px) minmax(0, 760px);
  max-width: min(var(--unu-container), calc(100% - var(--unu-container-gutter)));
}

.unu-ref-rector-photo {
  aspect-ratio: 4 / 5;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  margin: 0;
  overflow: hidden;
}

.unu-ref-rector-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.unu-ref-rector-message .unu-ref-label,
.unu-ref-rector-message .unu-ref-title,
.unu-ref-rector-message p {
  color: #fff;
}

.unu-ref-rector-message .unu-ref-label::before {
  background: var(--unu-gold);
}

.unu-ref-rector-name {
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-top: 1.5rem;
  text-transform: uppercase;
}

.unu-ref-partner-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-left: auto;
  margin-right: auto;
  margin-top: 2.25rem;
  max-width: var(--unu-container);
}

.unu-ref-partner-row div {
  background: #fff;
  border: 1px solid var(--unu-ref-border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(6, 46, 53, 0.04);
  color: var(--unu-teal-deep);
  display: flex;
  flex-direction: column;
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.08rem, 1.4vw, 1.22rem);
  font-weight: 800;
  justify-content: center;
  min-height: 104px;
  padding: 1.25rem 1.4rem;
  text-align: center;
}

.unu-ref-partner-row span {
  color: var(--unu-ref-text-light);
  display: block;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.35rem;
}

.unu-ref-trust {
  padding-bottom: clamp(3.5rem, 6vw, 4.75rem);
  padding-top: clamp(3.25rem, 6vw, 4.5rem);
}

.unu-ref-trust .unu-ref-label {
  justify-content: flex-start;
  margin-bottom: 0.8rem;
}

.unu-ref-trust .unu-ref-title {
  max-width: 760px;
}

.unu-ref-page-header {
  background: linear-gradient(135deg, var(--unu-teal-deep) 0%, var(--unu-teal) 100%);
  overflow: hidden;
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  position: relative;
}

.unu-single-unit-lpm .unu-ref-page-header {
  background: linear-gradient(135deg, #004d53 0%, #008084 100%);
}

.unu-single-unit-lppm .unu-ref-page-header {
  background: linear-gradient(135deg, #005d6a 0%, #12917b 100%);
}

.unu-single-unit-fakultas .unu-ref-page-header {
  background: linear-gradient(135deg, #004a5c 0%, #cd5d00 100%);
}

.unu-ref-page-header::before {
  background: radial-gradient(circle, rgba(253, 186, 18, 0.16) 0%, transparent 70%);
  border-radius: 50%;
  content: "";
  height: 420px;
  position: absolute;
  right: -120px;
  top: -140px;
  width: 420px;
}

.unu-ref-breadcrumb {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  font-weight: 700;
}

.unu-ref-breadcrumb a {
  color: var(--unu-gold);
  /*
   * Tap target. These links measured 18px tall (53x18), about a third of the
   * 44px minimum for touch, and they sit right under the header where thumbs
   * land. Pad them to a comfortable height and pull the padding back with
   * negative margins so the breadcrumb line keeps its visual rhythm instead of
   * pushing the hero title down.
   */
  display: inline-block;
  margin-block: -0.5rem;
  padding-block: 0.5rem;
  text-decoration: none;
}

.unu-ref-breadcrumb a:hover,
.unu-ref-breadcrumb a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.unu-ref-page-title {
  color: #fff;
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.25;
  max-width: 860px;
}

.unu-ref-page-meta {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  gap: 1.2rem;
}

.unu-ref-page-meta a {
  color: #fff;
}

.unu-ref-single-layout {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 3.2vw, 2.75rem);
  /*
   * The article is the hero of this page, not the sidebar.
   *
   * The old ratio (1.75fr : 0.85fr) gave the sidebar 364px of a 1160px page,
   * which squeezed the article to 748px — so the text column inside it came out
   * 604px, i.e. ~66 characters, and every paragraph ran into the card edge.
   * Giving the sidebar a fixed, still-comfortable 320px leaves the article
   * ~950px, wide enough for a full reading measure.
   */
  grid-template-columns: minmax(0, 1fr) 320px;
  margin-top: 0;
  padding-bottom: clamp(4rem, 8vw, 6rem);
  padding-top: clamp(2rem, 5vw, 3.75rem);
  position: relative;
  z-index: 2;
}

.unu-ref-main-content {
  /*
   * Near-white, not pure white. The page background carries a faint grid, and a
   * pure #fff card cut a hard rectangle out of it. A barely-there tint keeps the
   * card readable while letting the paper texture show through.
   */
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--unu-ref-border);
  border-radius: 20px;
  box-shadow: var(--unu-ref-shadow-sm);
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 2rem);
}

.unu-ref-page-layout {
  display: block;
  max-width: min(var(--unu-container), calc(100% - var(--unu-container-gutter)));
}

.unu-ref-page-layout .unu-ref-main-content {
  margin-left: auto;
  margin-right: auto;
  padding: clamp(2rem, 5vw, 3rem);
  --wp--style--global--content-size: min(940px, 100%);
  --wp--style--global--wide-size: 100%;
}

.unu-ref-page-layout .unu-ref-article-body {
  max-width: none;
  --wp--style--global--content-size: min(940px, 100%);
  --wp--style--global--wide-size: 100%;
}

.unu-ref-featured-image img {
  border-radius: 12px;
}

.unu-ref-article-body {
  color: var(--unu-ref-text-mid);
  font-size: 1.03rem;
  /*
   * The text fills the card.
   *
   * This used to cap at 68ch (~604px) inside a ~890px card, which left ~175px
   * of empty space on each side. The featured image and the article footer both
   * ran the full card width, so the paragraph column sitting narrower than its
   * own image read as a layout bug rather than as a deliberate reading measure.
   *
   * The card is now the reading measure: image, text and footer all start and
   * end on the same vertical line. Long-form readability is handled further
   * down: the card itself is narrower than the page, and the sidebar keeps the
   * text from ever reaching full viewport width.
   */
  line-height: 1.72;
  max-width: none;
  width: 100%;
}

/*
 * Images that fail to load collapse instead of leaving a resized box.
 *
 * Posts saved from the old site may reference attachments whose files never
 * came across, so the browser lays out a box from the width/height attributes
 * and then paints an empty frame hundreds of pixels tall. Here the alt-text
 * trick used on archive cards is not enough, because the box comes from the
 * attributes, not the text.
 *
 * The `is-broken` class is the gate. Tagging the image is the job of the footer
 * script in inc/assets.php, which sets it only when `naturalWidth === 0`. An
 * earlier version of this rule dropped the class and matched every
 * `.wp-block-image img` inside a post, which hid images that had loaded
 * perfectly — invisible while uploads/ was empty, and a page of blank figures
 * the moment the media arrived. Never style a broken image without checking
 * that something has actually established it is broken.
 *
 * `display: none` rather than `height: 0`: a zero-height inline-block still
 * generates a line box, which added ~40px of unexplained blank space above and
 * below every caption whose image was missing. Taking the img out of flow
 * leaves the figure sized to its caption, which is still real content, so the
 * spacing around it closes up to the normal margin.
 */
.unu-ref-article-body .wp-block-image img.is-broken {
  display: none;
}

/*
 * The featured image is the same problem in a bigger box.
 *
 * It is rendered with `width:100%` and no aspect-ratio, so a 404 leaves the
 * browser honouring the 2560x1707 attributes: an empty slab roughly 600px tall
 * between the post title and the first paragraph. The figure carries
 * `has-broken-image` from the footer script; hide it outright rather than
 * shrink it, because unlike an in-body image it has no caption to keep.
 */
.unu-ref-featured-image.has-broken-image {
  display: none;
}

/*
 * With the featured image gone nothing separates the card edge from the first
 * paragraph, but the body still carries a 24px top margin meant to clear the
 * image. Drop it so the text sits on the card padding.
 */
.unu-ref-main-content > .unu-ref-featured-image.has-broken-image + .unu-ref-article-body {
  margin-top: 0;
}

.unu-ref-article-body .wp-block-image figcaption,
.unu-ref-article-body figcaption {
  color: var(--unu-ref-text-light);
  font-size: 0.86rem;
  line-height: 1.6;
  margin-top: 0.7rem;
  text-align: left;
}

/*
 * h4 gets its own step from theme.json now (font-size medium-large), so no
 * local override is needed here any more.
 */
.unu-ref-article-body h2,
.unu-ref-article-body h3,
.unu-ref-article-body h4 {
  color: var(--unu-ink);
  font-family: var(--wp--preset--font-family--display);
  line-height: 1.3;
  margin-top: 2.2rem;
}

.unu-ref-article-body h2 {
  border-bottom: 2px solid var(--unu-cyan);
  padding-bottom: 0.7rem;
}

.unu-ref-article-body blockquote {
  background: var(--unu-ref-off-white);
  border-left: 4px solid var(--unu-orange-strong);
  border-radius: 0 12px 12px 0;
  color: var(--unu-teal-deep);
  font-style: italic;
  padding: 1.5rem 2rem;
}

.unu-ref-article-footer {
  border-top: 1px solid var(--unu-ref-border);
  color: var(--unu-ref-text-light);
  margin-top: 3rem;
  padding-top: 1.5rem;
}

.unu-ref-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  /*
   * The sidebar grows to its natural height and travels with the page.
   *
   * It used to be capped at the viewport height with `overflow-y: auto`, which
   * turned it into a second scroll area inside the page: at 900px the content
   * is ~1035px tall, so 247px — the whole PMB call-to-action — was clipped and
   * a thin scrollbar track appeared flush against the card edge, looking like a
   * defect. A page should have one scroll axis; the sidebar simply ends where
   * it ends.
   */
}

/*
 * Sticky only when it actually fits.
 *
 * `position: sticky` with `top` on an element taller than the viewport defeats
 * itself: the block pins at the top and its lower widgets slide off-screen, so
 * scrolling down never reveals them. The sidebar is ~1010px tall, so the pin is
 * only enabled from 1140px viewport height upward, which leaves room for the
 * sticky header offset plus the widget stack. Below that the sidebar simply
 * scrolls with the page and every widget stays reachable.
 */
@media (min-height: 71.25rem) {
  .unu-ref-sidebar {
    position: sticky;
    top: var(--unu-sticky-offset);
  }
}

.unu-ref-widget {
  padding: 1.6rem;
}

.unu-ref-widget-title {
  border-bottom: 2px solid var(--unu-cyan);
  color: var(--unu-ink);
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.2rem;
  padding-bottom: 0.8rem;
}

.unu-ref-widget-title::before {
  background: var(--unu-orange-strong);
  border-radius: 4px;
  content: "";
  display: inline-block;
  height: 18px;
  margin-right: 0.5rem;
  vertical-align: -3px;
  width: 6px;
}

.unu-ref-widget .wp-block-search__inside-wrapper {
  display: flex;
}

.unu-ref-widget .wp-block-search__input {
  border: 1px solid var(--unu-ref-border);
  border-radius: 8px 0 0 8px;
  color: var(--unu-ink);
  padding: 0.75rem 0.9rem;
}

.unu-ref-widget .wp-block-search__button {
  background: var(--unu-teal);
  border: 0;
  border-radius: 0 8px 8px 0;
  color: #fff;
  margin-left: 0;
}

.unu-ref-recent-list {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.unu-ref-recent-list li {
  background: transparent !important;
  border-bottom: 1px dashed var(--unu-ref-border);
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box;
  color: var(--unu-ink);
  margin: 0 !important;
  overflow: visible !important;
  padding: 0 0 1rem !important;
  width: 100%;
}

.unu-ref-recent-list h4 {
  font-family: var(--wp--preset--font-family--system-sans, Arial, sans-serif);
  font-size: 0.9rem;
  /* Matches the heading scale in theme.json: small list titles sit at 700. */
  font-weight: 700;
  line-height: 1.34;
  margin: 0 0 0.4rem;
  overflow: visible;
  word-break: normal;
}

.unu-ref-recent-list a {
  color: var(--unu-ink);
  text-decoration: none;
}

.unu-ref-recent-list a:hover {
  color: var(--unu-teal);
}

.unu-ref-recent-list .wp-block-post-date {
  color: rgba(13, 39, 48, 0.62);
  font-size: 0.78rem;
  margin: 0;
}

.unu-ref-recent-list li + li {
  padding-top: 1rem !important;
}

.unu-ref-recent-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0 !important;
}

.unu-ref-widget-pmb {
  background: linear-gradient(135deg, var(--unu-teal-deep), var(--unu-teal));
  border: 0;
  color: #fff;
  text-align: center;
}

.unu-ref-widget-pmb h3,
.unu-ref-widget-pmb p {
  color: #fff;
}

.unu-ref-archive-header {
  padding-bottom: clamp(2.35rem, 5vw, 3.35rem);
  padding-top: clamp(2.35rem, 5vw, 3.35rem);
}

.unu-ref-archive-desc {
  color: rgba(255, 255, 255, 0.84);
  max-width: 720px;
}

.unu-ref-archive-layout {
  padding-bottom: clamp(4rem, 8vw, 6rem);
  padding-top: clamp(2rem, 5vw, 3.25rem);
}

.unu-ref-archive-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.unu-ref-archive-grid > li {
  margin: 0;
}

.unu-ref-archive-card {
  background: #fff;
  border: 1px solid var(--unu-ref-border);
  border-radius: 20px;
  box-shadow: var(--unu-ref-shadow-sm);
  color: var(--unu-ink);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  overflow: hidden;
  padding: 1.5rem;
  position: relative;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.unu-ref-archive-card::before {
  background:
    linear-gradient(135deg, rgba(0, 124, 136, 0.92), rgba(13, 167, 178, 0.82)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 18px);
  content: "";
  display: block;
  height: 92px;
  margin: -1.5rem -1.5rem 1.25rem;
}

.unu-ref-archive-card:hover {
  border-color: #5ecdd0;
  box-shadow: var(--unu-ref-shadow-md);
  transform: translateY(-3px);
}

.unu-ref-archive-card h2 {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
  line-height: 1.25;
  margin: 0.6rem 0 0.85rem;
}

.unu-ref-archive-card h2 a {
  color: var(--unu-ink);
}

.unu-ref-archive-card h2 a:hover {
  color: var(--unu-teal-deep);
}

.unu-ref-archive-card .wp-block-post-excerpt {
  color: var(--unu-ref-text-mid);
  display: flex;
  flex: 1;
  flex-direction: column;
  font-size: 0.95rem;
  line-height: 1.65;
}

.unu-ref-archive-card .wp-block-post-excerpt__excerpt {
  margin-bottom: 1rem;
}

.unu-ref-archive-card .wp-block-post-excerpt__more-link {
  color: var(--unu-teal-deep);
  font-weight: 800;
  margin-top: auto;
}

/*
 * ------------------------------------------------------------- pagination ---
 *
 * A row of identical white circles reads as six unrelated buttons: nothing says
 * they belong together, the current page is only distinguished by colour, and
 * the "Berikutnya" text pill is a different width from everything beside it, so
 * the row ends in a shape that looks tacked on.
 *
 * Instead the whole control becomes ONE recessed track that holds a row of flat
 * numbers. The current page is the only filled shape, so the eye lands on it,
 * and prev/next become arrows that bracket the numbers, which reads as
 * navigation rather than as two more page numbers.
 */
.unu-ref-pagination {
  --unu-pag-size: 40px;

  align-items: center;
  background: #f4f8f9;
  border: 1px solid var(--unu-ref-border);
  border-radius: 999px;
  box-sizing: border-box;
  display: inline-flex;
  gap: 0.15rem;
  /*
   * The block's own layout class stretches this to the full column. A flex
   * container ignores auto margins on a stretched child, so the track must be
   * told to size to its contents and then centred explicitly.
   */
  margin-inline: auto;
  margin-top: clamp(2rem, 5vw, 3rem) !important;
  max-width: 100% !important;
  padding: 0.32rem;
  width: max-content;
}

/*
 * The numbers arrive wrapped in their own div, which would otherwise be a
 * second flex row inside the track and break the single-pill silhouette.
 */
.unu-ref-pagination .wp-block-query-pagination-numbers {
  align-items: center;
  display: flex;
  gap: 0.15rem;
}

/* Every item is the same square, so the row keeps one rhythm. */
.unu-ref-pagination .page-numbers,
.unu-ref-pagination .wp-block-query-pagination-previous,
.unu-ref-pagination .wp-block-query-pagination-next {
  align-items: center;
  background: none;
  border: 0;
  border-radius: 999px;
  box-sizing: border-box;
  color: #4a6469;
  display: inline-flex;
  font-family: inherit;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  height: var(--unu-pag-size);
  justify-content: center;
  line-height: 1;
  min-height: 0;
  min-width: 0;
  padding: 0;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
  width: var(--unu-pag-size);
}

.unu-ref-pagination a.page-numbers:hover,
.unu-ref-pagination a.page-numbers:focus-visible {
  background: #fff;
  color: var(--unu-teal-deep);
}

/*
 * The current page is the one filled shape in the control, so it carries the
 * emphasis and needs no border or shadow to separate it.
 */
.unu-ref-pagination .page-numbers.current {
  background: var(--unu-teal-deep);
  color: #fff;
  font-weight: 800;
  /*
   * A subtle ring makes the filled pill read as "you are here" rather than as
   * just another filled button, and it keeps the number from looking squashed
   * against the disc edge.
   */
  box-shadow: 0 0 0 3px rgba(0, 124, 136, 0.16);
}

/* The ellipsis is a gap in the sequence, not a clickable target. */
.unu-ref-pagination .page-numbers.dots {
  color: #9aadb2;
  cursor: default;
  letter-spacing: 0.05em;
  width: auto;
  min-width: 1.5rem;
}

/*
 * Direction is shown with an arrow glyph drawn in CSS, so the control stays
 * typographic and no icon font or extra markup is needed. Prev/next widen to
 * fit, which is fine here because they are the ends of the track.
 */
.unu-ref-pagination .wp-block-query-pagination-previous,
.unu-ref-pagination .wp-block-query-pagination-next {
  font-size: 0;
  width: calc(var(--unu-pag-size) + 0.4rem);
}

.unu-ref-pagination .wp-block-query-pagination-previous::after,
.unu-ref-pagination .wp-block-query-pagination-next::after {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.unu-ref-pagination .wp-block-query-pagination-previous::after {
  content: "\2190";
}

.unu-ref-pagination .wp-block-query-pagination-next::after {
  content: "\2192";
}

.unu-ref-pagination .wp-block-query-pagination-previous:hover,
.unu-ref-pagination .wp-block-query-pagination-next:hover,
.unu-ref-pagination .wp-block-query-pagination-previous:focus-visible,
.unu-ref-pagination .wp-block-query-pagination-next:focus-visible {
  background: #fff;
  color: var(--unu-teal-deep);
}

/*
 * On a phone fifteen pages do not fit beside the arrows. The numbers keep their
 * own scrollable row so the control never overflows the column.
 */
@media (max-width: 640px) {
  .unu-ref-pagination {
    --unu-pag-size: 34px;
    max-width: calc(100% - 2px) !important;
  }

  .unu-ref-pagination .page-numbers,
  .unu-ref-pagination .wp-block-query-pagination-previous,
  .unu-ref-pagination .wp-block-query-pagination-next {
    font-size: 0.82rem;
  }

  .unu-ref-pagination .wp-block-query-pagination-numbers {
    gap: 0.05rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .unu-ref-pagination .wp-block-query-pagination-numbers::-webkit-scrollbar {
    display: none;
  }

  .unu-ref-pagination .wp-block-query-pagination-previous,
  .unu-ref-pagination .wp-block-query-pagination-next {
    font-size: 0;
    flex: 0 0 auto;
  }
}

.unu-hero {
  isolation: isolate;
  min-height: min(760px, calc(100vh - 76px));
  padding-bottom: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(3rem, 8vw, 7rem);
  position: relative;
}

.unu-hero::before,
.unu-hero::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.unu-hero::before {
  background: linear-gradient(135deg, rgba(13, 167, 178, 0.92), rgba(0, 124, 136, 0.88));
  clip-path: polygon(0 0, 76% 0, 62% 100%, 0 100%);
  inset: 0 28% 0 0;
}

.unu-hero::after {
  background:
    linear-gradient(135deg, rgba(255, 130, 0, 0.95), rgba(253, 186, 18, 0.9)),
    repeating-linear-gradient(-35deg, transparent 0 18px, rgba(255, 255, 255, 0.18) 18px 20px);
  bottom: 7%;
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
  height: clamp(78px, 12vw, 132px);
  right: -2vw;
  width: min(46vw, 560px);
}

.unu-hero-media {
  background:
    linear-gradient(135deg, rgba(13, 167, 178, 0.42), rgba(6, 46, 53, 0.72)),
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(255, 255, 255, 0.09) 16px 18px);
  clip-path: polygon(0 0, 76% 0, 62% 100%, 0 100%);
  inset: 0 28% 0 0;
  overflow: hidden;
  position: absolute;
  z-index: -2;
}

.unu-hero-video {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0.68;
  position: absolute;
  width: 100%;
}

.unu-hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
}

.unu-kicker {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.55rem 0.85rem;
  text-transform: uppercase;
}

.unu-hero-title {
  color: #fff;
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(2.65rem, 7vw, 5.9rem);
  font-weight: 900;
  max-width: 10ch;
  text-wrap: balance;
}

.unu-hero-copy {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.04rem, 2vw, 1.3rem);
  max-width: 56ch;
}

.unu-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.unu-action-row .wp-block-button__link,
.wp-block-button__link {
  background: var(--unu-orange-strong);
  color: #fff;
  box-shadow: 0 14px 28px rgba(255, 130, 0, 0.24);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.unu-action-row .wp-block-button__link:hover,
.wp-block-button__link:hover {
  box-shadow: 0 18px 36px rgba(255, 130, 0, 0.32);
  transform: translateY(-2px);
}

.unu-button-secondary .wp-block-button__link {
  background: #fff;
  color: var(--unu-teal-deep);
}

.wp-block-button__link:focus-visible,
a:focus-visible {
  outline: 3px solid var(--unu-gold);
  outline-offset: 3px;
}

.unu-hero-panel {
  align-self: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--unu-radius);
  box-shadow: var(--unu-shadow);
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
  position: relative;
}

.unu-hero-panel::before {
  background: linear-gradient(90deg, var(--unu-teal), var(--unu-orange), var(--unu-gold));
  content: "";
  height: 7px;
  inset: 0 0 auto;
  position: absolute;
}

.unu-logo-hero img {
  margin-inline: auto;
  max-width: min(320px, 78vw);
}

.unu-stat-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.unu-stat {
  background: rgba(221, 251, 250, 0.72);
  border: 1px solid var(--unu-line);
  border-radius: 18px;
  padding: 0.9rem;
  text-align: center;
}

.unu-stat strong {
  color: var(--unu-teal-deep);
  display: block;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1;
}

.unu-stat span {
  color: rgba(6, 46, 53, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.unu-section {
  padding-bottom: clamp(3rem, 7vw, 6rem);
  padding-top: clamp(3rem, 7vw, 6rem);
}

.unu-section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 12ch;
}

.unu-section-eyebrow {
  color: var(--unu-orange-strong);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.unu-section-heading {
  font-size: clamp(2rem, 5vw, 4.2rem);
  max-width: 13ch;
}

.unu-section-lead {
  color: rgba(6, 46, 53, 0.72);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.unu-impact-strip {
  margin-top: -2rem;
  position: relative;
  z-index: 3;
}

.unu-impact-grid {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 26px;
  box-shadow: 0 26px 70px rgba(6, 46, 53, 0.14);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.unu-impact-item {
  background: linear-gradient(180deg, rgba(221, 251, 250, 0.55), rgba(255, 255, 255, 0.82));
  min-height: 190px;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.unu-impact-item span {
  color: var(--unu-orange-strong);
  display: block;
  font-size: 0.8rem;
  font-weight: 950;
  margin-bottom: 1.1rem;
}

.unu-impact-item strong {
  color: var(--unu-teal-dark);
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.12;
}

.unu-impact-item p {
  color: rgba(6, 46, 53, 0.68);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.unu-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.unu-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--unu-line);
  border-radius: var(--unu-radius);
  box-shadow: 0 18px 46px rgba(6, 46, 53, 0.08);
  min-height: 220px;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  transition: border-color 180ms ease, transform 180ms ease;
}

.unu-card:hover {
  border-color: rgba(13, 167, 178, 0.45);
  transform: translateY(-4px);
}

.unu-card-number {
  color: var(--unu-orange-strong);
  font-weight: 950;
}

.unu-programs {
  background:
    linear-gradient(180deg, rgba(221, 251, 250, 0.72), rgba(247, 255, 254, 0.2)),
    var(--unu-base);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  padding-top: clamp(3rem, 7vw, 6rem);
}

.unu-programs-head {
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.unu-program-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
}

.unu-program-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--unu-line);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(6, 46, 53, 0.08);
  min-height: 280px;
  padding: clamp(1.2rem, 3vw, 1.65rem);
  position: relative;
}

.unu-program-card::after {
  background: linear-gradient(90deg, var(--unu-teal), var(--unu-orange));
  border-radius: 999px;
  content: "";
  height: 5px;
  inset: auto 1.3rem 1.3rem;
  position: absolute;
}

.unu-program-card span {
  color: var(--unu-orange-strong);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 950;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.unu-program-card h3 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.unu-program-card p {
  color: rgba(6, 46, 53, 0.72);
}

.unu-program-card.is-featured {
  background:
    linear-gradient(145deg, rgba(6, 46, 53, 0.94), rgba(0, 124, 136, 0.92)),
    var(--unu-teal-dark);
  color: #fff;
}

.unu-program-card.is-featured p,
.unu-program-card.is-featured span {
  color: rgba(255, 255, 255, 0.84);
}

.unu-pmb-cta {
  padding-bottom: clamp(3rem, 7vw, 6rem);
  padding-top: clamp(3rem, 7vw, 6rem);
}

.unu-pmb-card {
  align-items: end;
  background:
    linear-gradient(135deg, rgba(255, 130, 0, 0.92), rgba(253, 186, 18, 0.84)),
    linear-gradient(45deg, rgba(13, 167, 178, 0.35), transparent);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(255, 130, 0, 0.18);
  color: var(--unu-teal-dark);
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  padding: clamp(1.6rem, 5vw, 3.5rem);
  position: relative;
}

.unu-pmb-card::after {
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  content: "";
  height: 240px;
  position: absolute;
  right: -70px;
  top: -90px;
  width: 240px;
}

.unu-pmb-card h2 {
  color: var(--unu-teal-dark);
  font-size: clamp(2rem, 5vw, 4.4rem);
  max-width: 14ch;
}

.unu-pmb-card p {
  color: rgba(6, 46, 53, 0.82);
  max-width: 56ch;
}

.unu-pmb-card .unu-section-eyebrow {
  color: var(--unu-teal-dark);
}

.unu-pmb-card .wp-block-button:not(.unu-button-secondary) .wp-block-button__link {
  background: var(--unu-teal-dark);
  color: #fff;
  box-shadow: 0 16px 34px rgba(6, 46, 53, 0.24);
}

.unu-pmb-card .unu-button-secondary .wp-block-button__link {
  background: #fff;
  color: var(--unu-teal-dark);
}

.unu-news-band {
  background:
    linear-gradient(135deg, rgba(6, 46, 53, 0.96), rgba(0, 124, 136, 0.94)),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255, 255, 255, 0.04) 42px 44px);
  color: #fff;
  padding-bottom: clamp(3rem, 7vw, 6rem);
  padding-top: clamp(3rem, 7vw, 6rem);
}

.unu-news-band a,
.unu-news-band h2,
.unu-news-band h3,
.unu-news-band p {
  color: inherit;
}

.wp-block-post-template {
  gap: 1rem;
}

.wp-block-post {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--unu-radius);
  color: var(--unu-ink);
  box-shadow: 0 18px 40px rgba(6, 46, 53, 0.09);
  overflow: hidden;
}

.unu-news-band .wp-block-post,
.unu-news-band .wp-block-post h2,
.unu-news-band .wp-block-post h3,
.unu-news-band .wp-block-post p,
.unu-news-band .wp-block-post-excerpt,
.unu-news-band .wp-block-post-excerpt__excerpt {
  color: var(--unu-ink);
}

.unu-news-band .wp-block-post-excerpt__more-link {
  color: var(--unu-teal-deep);
  font-weight: 800;
}

.wp-block-post-title a {
  color: var(--unu-ink);
}

.wp-block-post-title a:hover {
  color: var(--unu-teal-deep);
}

.unu-footer {
  background:
    linear-gradient(135deg, rgba(6, 46, 53, 0.98), rgba(0, 91, 99, 0.98)),
    var(--unu-teal-dark);
  color: rgba(255, 255, 255, 0.86);
  padding-bottom: 1.5rem;
  padding-top: clamp(2rem, 5vw, 4rem);
  position: relative;
}

.unu-footer a,
.unu-footer h2,
.unu-footer h3,
.unu-footer p {
  color: inherit;
}

.unu-footer-cta {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.unu-footer-cta h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0;
}

.unu-footer-kicker {
  color: var(--unu-gold);
  font-size: 0.78rem;
  font-weight: 950;
  margin: 0 0 0.4rem;
  text-transform: uppercase;
}

.unu-footer-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.35fr);
}

.unu-footer-brand {
  max-width: 440px;
}

.unu-footer-brand h3 {
  color: #fff;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.unu-footer-brand p {
  color: rgba(255, 255, 255, 0.72);
}

.unu-footer-links {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.unu-footer-links h3 {
  color: #fff;
  font-size: 0.92rem;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.unu-footer-links a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  font-weight: 700;
  padding: 0.32rem 0;
}

.unu-footer-links a:hover {
  color: var(--unu-gold);
}

.unu-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: 1.2rem;
}

.unu-error-page {
  min-height: 62vh;
}

.unu-error-card {
  background:
    linear-gradient(135deg, rgba(221, 251, 250, 0.82), rgba(255, 255, 255, 0.94)),
    #fff;
  border: 1px solid var(--unu-line);
  border-radius: 30px;
  box-shadow: var(--unu-shadow);
  padding: clamp(1.5rem, 5vw, 4rem);
}

.unu-error-card .wp-block-search__inside-wrapper {
  background: #fff;
  border: 1px solid rgba(6, 46, 53, 0.16);
  border-radius: 999px;
  overflow: hidden;
  padding: 0.3rem;
}

.unu-error-card .wp-block-search__input {
  border: 0;
  color: var(--unu-ink);
}

.unu-error-card .wp-block-search__button {
  background: var(--unu-teal-deep);
  border: 0;
  border-radius: 999px;
  color: #fff;
}

.unu-blank-template {
  min-height: 100vh;
  padding-bottom: clamp(2rem, 6vw, 5rem);
  padding-top: clamp(2rem, 6vw, 5rem);
}

/*
 * Section-heading font family is set once in theme.json (elements.heading).
 * Individual weights belong to that scale too — an earlier revision hard-pinned
 * font-weight: 900 here, which flattened the h2/h3/h4 hierarchy into one voice.
 */

.unu-gallery-header .unu-ref-archive-desc {
  margin-bottom: 1.4rem;
}

.unu-gallery-filter {
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.unu-gallery-filter p {
  margin: 0;
}

.unu-gallery-filter a {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.72rem 1rem;
  text-decoration: none;
}

.unu-gallery-filter a:hover {
  background: var(--unu-gold);
  border-color: var(--unu-gold);
  color: var(--unu-teal-dark);
}

.unu-gallery-archive {
  padding-bottom: clamp(4rem, 8vw, 6rem);
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.unu-gallery-grid {
  display: grid !important;
  gap: 1.35rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.unu-gallery-grid > li {
  margin: 0;
}

.unu-gallery-card {
  background: #fff;
  border: 1px solid var(--unu-ref-border);
  border-radius: 16px;
  box-shadow: var(--unu-ref-shadow-sm);
  height: 100%;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.unu-gallery-card:hover {
  border-color: #5ecdd0;
  box-shadow: var(--unu-ref-shadow-md);
  transform: translateY(-4px);
}

.unu-gallery-image {
  background:
    linear-gradient(135deg, rgba(0, 124, 136, 0.14), rgba(253, 186, 18, 0.2)),
    var(--unu-ref-off-white);
  margin: 0;
}

.unu-gallery-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.unu-gallery-card-body {
  padding: 1.15rem;
}

.unu-gallery-terms,
.unu-gallery-terms a {
  color: var(--unu-orange-strong);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 0.55rem;
  text-decoration: none;
  text-transform: uppercase;
}

.unu-gallery-title {
  font-size: clamp(1.12rem, 1.6vw, 1.35rem);
  line-height: 1.18;
  margin: 0 0 0.75rem;
}

.unu-gallery-title a {
  color: var(--unu-ink);
  text-decoration: none;
}

.unu-gallery-title a:hover {
  color: var(--unu-teal-deep);
}

.unu-gallery-excerpt {
  color: var(--unu-ref-text-light);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

.unu-gallery-excerpt .wp-block-post-excerpt__excerpt {
  margin-bottom: 0.8rem;
}

.unu-gallery-excerpt .wp-block-post-excerpt__more-link {
  color: var(--unu-teal-deep);
  font-weight: 900;
}

.unu-gallery-empty {
  background: #fff;
  border: 1px solid var(--unu-ref-border);
  border-radius: 16px;
  color: var(--unu-ref-text-light);
  margin: 0;
  padding: 1.5rem;
}

.unu-gallery-single {
  padding-bottom: clamp(4rem, 8vw, 6rem);
  padding-top: clamp(2rem, 5vw, 3.75rem);
}

.unu-gallery-single .unu-ref-main-content {
  margin-left: auto;
  margin-right: auto;
  max-width: 920px;
}

.unu-page-daftar-berita .wp-block-query .wp-block-post-template {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.8rem);
}

.unu-page-daftar-berita .wp-block-query .wp-block-post {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--unu-ref-border);
  border-radius: 18px;
  box-shadow: var(--unu-ref-shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.unu-page-daftar-berita .wp-block-query .wp-block-post:hover {
  border-color: rgba(13, 167, 178, 0.42);
  box-shadow: var(--unu-ref-shadow-md);
}

.unu-page-daftar-berita .wp-block-query .wp-block-post-title {
  border-bottom: 2px solid var(--unu-cyan);
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.18;
  margin: 0;
  padding: clamp(1.15rem, 3vw, 1.75rem) clamp(1.15rem, 3vw, 1.9rem) 1.05rem;
}

.unu-page-daftar-berita .wp-block-query .wp-block-post-title a {
  color: var(--unu-ink);
  text-decoration: none;
}

.unu-page-daftar-berita .wp-block-query .wp-block-post-title a:hover {
  color: var(--unu-teal-deep);
}

.unu-page-daftar-berita .wp-block-query .wp-block-post-featured-image {
  margin: 0;
  order: -1;
}

.unu-page-daftar-berita .wp-block-query .wp-block-post-featured-image img {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  width: 100%;
}

.unu-page-daftar-berita .wp-block-query .wp-block-post-date,
.unu-page-daftar-berita .wp-block-query .wp-block-post-terms {
  color: var(--unu-orange-strong);
  font-size: 0.78rem;
  font-weight: 900;
  margin: 0;
  padding: 1rem clamp(1.15rem, 3vw, 1.9rem) 0;
  text-transform: uppercase;
}

.unu-page-daftar-berita .wp-block-query .wp-block-post-excerpt {
  color: var(--unu-ref-text-mid);
  font-size: 0.96rem;
  line-height: 1.75;
  margin: 0;
  padding: 0 clamp(1.15rem, 3vw, 1.9rem) clamp(1.15rem, 3vw, 1.65rem);
}

.unu-page-daftar-berita .wp-block-query .wp-block-post-excerpt__more-link {
  color: var(--unu-teal-deep);
  font-weight: 900;
  text-decoration: none;
}

.unu-page-daftar-berita .wp-block-query-pagination {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.unu-page-daftar-berita .unu-ref-sidebar .wp-block-query .wp-block-post-template {
  gap: 0;
}

.unu-page-daftar-berita .unu-ref-sidebar .wp-block-query .wp-block-post {
  background: transparent;
  border: 0;
  border-bottom: 1px dashed var(--unu-ref-border);
  border-radius: 0;
  box-shadow: none;
  display: block;
  min-height: 0;
  overflow: visible;
  padding: 0 0 1rem;
}

.unu-page-daftar-berita .unu-ref-sidebar .wp-block-query .wp-block-post + .wp-block-post {
  padding-top: 1rem;
}

.unu-page-daftar-berita .unu-ref-sidebar .wp-block-query .wp-block-post:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.unu-page-daftar-berita .unu-ref-sidebar .wp-block-query .wp-block-post-title {
  border-bottom: 0;
  font-size: 0.9rem !important;
  line-height: 1.34;
  margin: 0 0 0.4rem;
  padding: 0;
}

.unu-page-daftar-berita .unu-ref-sidebar .wp-block-query .wp-block-post-date {
  color: rgba(13, 39, 48, 0.62);
  font-size: 0.72rem;
  margin: 0;
  padding: 0;
}

@media (max-width: 900px) {
  .unu-ref-hero-grid,
  .unu-ref-about-grid,
  .unu-ref-single-layout {
    grid-template-columns: 1fr;
  }

  .unu-ref-rector-card {
    grid-template-columns: 1fr;
  }

  .unu-ref-rector-photo {
    max-width: 260px;
  }

  .unu-ref-stats-row,
  .unu-ref-prodi-grid,
  .unu-ref-news-grid,
  .unu-ref-archive-grid,
  .unu-ref-partner-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .unu-ref-sidebar {
    position: static;
  }

  .unu-hero::before {
    clip-path: polygon(0 0, 100% 0, 100% 74%, 0 100%);
    inset: 0;
  }

  .unu-hero-grid,
  .unu-card-grid,
  .unu-impact-grid,
  .unu-program-grid,
  .unu-pmb-card,
  .unu-footer-grid,
  .unu-footer-links {
    grid-template-columns: 1fr;
  }

  .unu-hero-title {
    max-width: 12ch;
  }

  .unu-hero-panel {
    margin-top: 1rem;
  }

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

@media (max-width: 640px) {
  .unu-ref-container,
  .unu-topbar-inner,
  .unu-header-inner,
  .unu-footer > .wp-block-group {
    max-width: min(100% - 32px, var(--unu-container));
  }

  .unu-topbar-links {
    display: none;
  }

  .unu-ref-hero {
    min-height: auto;
  }

  .unu-ref-hero-grid {
    padding-bottom: 3rem;
    padding-top: 3rem;
  }

  .unu-ref-hero-title {
    max-width: 100%;
  }

  .unu-ref-hero-stats,
  .unu-ref-actions,
  .unu-ref-ticker-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .unu-ref-hero-visual {
    min-height: 280px;
  }

  .unu-ref-float {
    display: none;
  }

  .unu-ref-stats-row,
  .unu-ref-prodi-grid,
  .unu-ref-news-grid,
  .unu-ref-archive-grid,
  .unu-ref-partner-row,
  .unu-ref-facility-grid,
  .unu-ref-values {
    grid-template-columns: 1fr;
  }

  .unu-ref-facility-grid .is-tall {
    min-height: 260px;
  }

  .unu-ref-single-layout {
    margin-top: 0;
    padding-top: 2rem;
  }

  .unu-ref-page-header {
    padding-bottom: 3rem;
    padding-top: 3rem;
  }

  .unu-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
  }

  .unu-stat-grid {
    grid-template-columns: 1fr;
  }

  .unu-action-row .wp-block-button,
  .unu-action-row .wp-block-button__link {
    width: 100%;
  }

  .unu-impact-strip {
    margin-top: -1rem;
  }

  .unu-program-card,
  .unu-impact-item {
    min-height: auto;
  }

  .unu-footer {
    padding-top: 2rem;
  }

  .unu-footer-grid {
    gap: 1.4rem;
  }

  .unu-footer-links {
    gap: 0.7rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .unu-footer-links h3 {
    font-size: 0.74rem;
    margin-bottom: 0.55rem;
  }

  .unu-footer-links a {
    font-size: 0.78rem;
    line-height: 1.25;
    padding: 0.28rem 0;
  }

  .unu-footer-bottom {
    align-items: flex-start;
    gap: 0.35rem;
  }

  .unu-gallery-grid {
    grid-template-columns: 1fr;
  }

  .unu-gallery-filter {
    align-items: flex-start;
  }

  .unu-gallery-filter a {
    font-size: 0.78rem;
    padding: 0.66rem 0.85rem;
  }
}

@media (max-width: 1180px) {
  .unu-header {
    border-bottom: 1px solid var(--unu-cyan);
  }

  .unu-header-inner {
    align-items: center;
    flex-direction: row;
    gap: 0.75rem;
    min-height: 72px;
    padding: 0.4rem 0;
  }

  .unu-header-inner > .wp-block-group:first-child {
    flex: 1 1 auto;
  }

  .unu-logo-mark img {
    height: 56px !important;
    width: 56px !important;
  }

  .unu-brand-title {
    font-size: 0.9rem;
    max-width: min(56vw, 250px);
  }

  .unu-header-inner > .wp-block-navigation {
    flex: 0 0 auto;
  }

  .unu-header .wp-block-navigation__responsive-container-open {
    align-items: center;
    background: var(--unu-teal);
    border: 0;
    border-radius: 6px;
    color: #fff;
    display: inline-flex !important;
    height: 42px;
    justify-content: center;
    padding: 0;
    width: 42px;
  }

  .unu-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }

  .unu-header .wp-block-navigation__responsive-container-open svg {
    fill: currentColor;
  }

  .unu-header .wp-block-navigation__responsive-container.is-menu-open {
    background: #fff;
    bottom: 0 !important;
    height: 100dvh !important;
    left: 0 !important;
    max-width: none !important;
    overflow: hidden;
    padding: 0;
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    z-index: 999999;
  }

  .unu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    color: #111;
    height: 100dvh;
    margin: 0 !important;
    max-width: none;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 0 2rem !important;
    width: 100vw;
  }

  .unu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close,
  .unu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
  .unu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    box-sizing: border-box;
    max-width: none !important;
    min-width: 0 !important;
  }

  .unu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
    margin: 0 !important;
    width: 100%;
  }

  .unu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    width: 100%;
  }

  .unu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    margin: 0 !important;
    padding: 0 !important;
  }

  .unu-header .wp-block-navigation__responsive-container-close {
    background: #fff;
    border: 1px solid var(--unu-teal);
    color: var(--unu-teal);
    height: 32px;
    right: 1rem;
    top: 0.85rem;
    width: 32px;
    z-index: 2;
  }

  .unu-header .wp-block-navigation__responsive-container-close svg {
    height: 20px;
    width: 20px;
  }

  .unu-mobile-menu-head {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    min-height: 64px;
    padding: 0.55rem 3.6rem 0.65rem 1.5rem;
  }

  .unu-mobile-menu-logo {
    flex: 0 0 auto;
    margin: 0;
  }

  .unu-mobile-menu-head .unu-mobile-menu-logo img {
    flex: 0 0 auto;
    height: 48px !important;
    object-fit: contain;
    width: 48px !important;
  }

  .unu-mobile-menu-head strong {
    color: var(--unu-orange-strong);
    display: block;
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1.15;
  }

  .unu-mobile-menu-head span {
    color: var(--unu-teal);
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0.16rem;
  }

  .unu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    border-top: 1px solid rgba(6, 46, 53, 0.12);
    align-items: stretch !important;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .unu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    align-items: stretch;
    border-bottom: 1px solid rgba(6, 46, 53, 0.12);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    font-size: 0.92rem;
    font-weight: 900;
    width: 100%;
  }

  .unu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu {
    grid-template-columns: minmax(0, 1fr) 52px;
  }

  .unu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    border-radius: 0;
    color: #111;
    min-width: 0;
    padding: 0.95rem 1.5rem;
    transform: none;
  }

  .unu-header .wp-block-navigation__responsive-container.is-menu-open a[aria-current="page"],
  .unu-header .wp-block-navigation__responsive-container.is-menu-open .current-menu-ancestor > a {
    background: rgba(221, 251, 250, 0.68);
    color: var(--unu-teal-deep);
  }

  .unu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon {
    align-items: center;
    background: transparent;
    border-left: 1px solid rgba(6, 46, 53, 0.12);
    cursor: pointer;
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    margin: 0;
    min-height: 48px;
    width: 52px;
  }

  .unu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
    background: #f7fbfb;
    border: 0;
    box-shadow: none;
    color: #111;
    display: none;
    flex-basis: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    height: auto;
    left: auto;
    min-width: 100%;
    opacity: 1;
    padding: 0;
    position: static;
    visibility: visible;
    width: 100%;
  }

  .unu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu.is-menu-open > .wp-block-navigation__submenu-container,
  .unu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container,
  .unu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu.current-menu-ancestor > .wp-block-navigation__submenu-container {
    display: block;
  }

  .unu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-submenu__toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  .unu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    font-size: 0.86rem;
    font-weight: 800;
    padding-left: 2.25rem;
  }
}

@media (max-width: 782px) {
  .unu-topbar {
    display: none;
  }
}

.unu-archive-sidebar {
  display: grid;
  gap: 1.15rem;
  justify-items: stretch;
  max-width: none !important;
  position: sticky;
  top: 1rem;
  width: 100%;
}

.unu-archive-sidebar > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100%;
}

.unu-archive-widget {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(8, 117, 123, 0.18);
  box-sizing: border-box;
  box-shadow: 0 16px 36px rgba(6, 46, 53, 0.07);
  margin: 0 !important;
  padding: 1.05rem;
  width: 100%;
}

.unu-archive-widget h3 {
  color: var(--unu-ink);
  font-family: var(--wp--preset--font-family--system-sans, Arial, sans-serif);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 0 0.85rem;
}

.unu-archive-widget .wp-block-search__inside-wrapper {
  border: 1px solid rgba(6, 46, 53, 0.14);
  display: flex;
  overflow: hidden;
}

.unu-archive-widget .wp-block-search__input {
  border: 0;
  color: var(--unu-ink);
  font-size: 0.86rem;
  min-height: 44px;
  padding: 0 0.8rem;
}

.unu-archive-widget .wp-block-search__button {
  align-items: center;
  background: var(--unu-teal);
  border: 0;
  color: #fff;
  display: inline-flex;
  justify-content: center;
  margin: 0;
  min-width: 44px;
  padding: 0.7rem;
  border-radius: 0;
}

.unu-archive-widget .wp-block-categories-list {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.unu-archive-widget .wp-block-categories-list li {
  display: flex;
  justify-content: space-between;
  line-height: 1.45;
  margin: 0;
}

.unu-archive-widget .wp-block-categories-list a {
  color: var(--unu-ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.unu-archive-widget .wp-block-categories-list a:hover {
  color: var(--unu-teal);
}

.unu-archive-cta {
  background:
    radial-gradient(circle at 100% 0, rgba(255, 198, 0, 0.18), transparent 40%),
    linear-gradient(145deg, rgba(0, 137, 145, 0.96), rgba(6, 46, 53, 0.98)),
    var(--unu-teal);
  color: #fff;
  padding: 1.25rem;
}

.unu-archive-cta .unu-ref-kicker,
.unu-archive-cta h3 {
  color: #fff;
}

.unu-archive-cta .unu-ref-kicker {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 0.55rem;
}

.unu-archive-cta h3 {
  font-size: 1rem;
  line-height: 1.18;
  margin-bottom: 1rem;
}

.unu-archive-cta .wp-block-button__link {
  background: var(--unu-gold);
  border-radius: 0;
  color: #102126;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.78rem 1rem;
}

.unu-ref-sidebar-news {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.unu-archive-widget .unu-ref-sidebar-news > li,
.unu-ref-sidebar-news li {
  background: transparent !important;
  border-bottom: 1px solid rgba(6, 46, 53, 0.1);
  border-left: 3px solid transparent;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--unu-ink);
  min-height: 0;
  overflow: visible !important;
  padding: 0 0 0.85rem 0.65rem;
  width: 100%;
}

.unu-archive-widget .unu-ref-sidebar-news > li:last-child,
.unu-ref-sidebar-news li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.unu-archive-widget .unu-ref-sidebar-news .wp-block-post-title,
.unu-archive-widget .unu-ref-sidebar-news h4.wp-block-post-title,
.unu-ref-sidebar-news .wp-block-post-title {
  font-family: var(--wp--preset--font-family--system-sans, Arial, sans-serif);
  font-size: 0.98rem !important;
  /* Small list headings: 900 at 0.98rem reads heavy and muddy. */
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.35rem;
  overflow: visible;
  word-break: normal;
}

.unu-ref-sidebar-news .wp-block-post-title a {
  color: var(--unu-ink);
  text-decoration: none;
}

.unu-ref-sidebar-news .wp-block-post-title a:hover {
  color: var(--unu-teal);
}

.unu-archive-widget .unu-ref-sidebar-news .unu-ref-news-date,
.unu-ref-sidebar-news .unu-ref-news-date {
  color: rgba(13, 39, 48, 0.58);
  font-size: 0.72rem;
  margin: 0;
}

@media (max-width: 1040px) {

  .unu-archive-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }

  .unu-lpm-hero-grid,
  .unu-lpm-profile-grid {
    grid-template-columns: 1fr;
  }

  .is-style-unu-news-grid .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {

  .unu-archive-sidebar {
    grid-template-columns: 1fr;
  }


  .unu-lpm-hero {
    background-position: center, 120% 24px, center;
    background-size: cover, 260px, cover;
  }

  .unu-lpm-program-grid,
  .unu-lpm-gallery-grid {
    grid-template-columns: 1fr;
  }

  .unu-lpm-gallery-grid > .is-large {
    min-height: 260px;
  }

  .is-style-unu-news-grid .wp-block-post-template {
    grid-template-columns: 1fr;
  }
}
