:root {
  --portal-bg: #f7f8fa;
  --portal-surface: #ffffff;
  --portal-surface-soft: #f3f5f7;
  --portal-surface-muted: #eef1f4;
  --portal-border: #d8dde3;
  --portal-border-strong: #c4ced8;
  --portal-text: #28425e;
  --portal-text-soft: #5e7388;
  --portal-primary: #2d5e91;
  --portal-primary-strong: #234766;
  --portal-primary-soft: #eef4f8;
  --portal-accent-water: #2c6ea8;
  --portal-accent-water-soft: #eaf5ff;
  --portal-accent-green: #467d54;
  --portal-accent-green-soft: #eef7ef;
  --portal-accent-gold: #9d6e23;
  --portal-accent-gold-soft: #fbf3e4;
  --portal-shadow: 0 8px 18px rgba(31, 59, 87, 0.06);
  --portal-shell: min(1170px, calc(100vw - 32px));
  --portal-shell-narrow: min(1000px, calc(100vw - 44px));
  --portal-shell-page: min(860px, calc(100vw - 52px));
  --portal-shell-news: min(1160px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--portal-bg);
  color: var(--portal-text);
  font-family: "Source Sans 3", sans-serif;
}

body.is-lightbox-open {
  overflow: hidden;
}

.site-portal {
  min-height: 100vh;
}

.site-portal a {
  color: inherit;
  text-decoration: none;
}

.site-portal h1,
.site-portal h2,
.site-portal h3,
.site-portal h4,
.site-portal strong,
.portal-button,
.portal-nav__link {
  font-family: "Source Sans 3", sans-serif;
}

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

.portal-shell {
  width: var(--portal-shell);
  margin: 0 auto;
}

.portal-shell--narrow {
  width: var(--portal-shell-narrow);
}

.portal-shell--page {
  width: var(--portal-shell-page);
}

.portal-shell--news {
  width: var(--portal-shell-news);
}

.portal-header {
  position: relative;
  z-index: 30;
  background: #ffffff;
  border-bottom: 1px solid var(--portal-border);
}

.portal-navbar {
  min-height: 56px;
  background: #ffffff;
}

.portal-navbar__inner {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 188px;
  padding: 6px 10px 6px 2px;
}

.portal-brand__mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 24% 24%, #ffffff 0 17%, rgba(255, 255, 255, 0) 18%),
    linear-gradient(135deg, #86b7ea, #2d5e91);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.portal-brand__copy {
  display: grid;
  gap: 1px;
}

.portal-brand__copy strong {
  color: var(--portal-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.portal-brand__copy span {
  color: var(--portal-text-soft);
  font-size: 11px;
  line-height: 1.15;
}

.portal-nav {
  display: flex;
  flex: 0 1 auto;
  margin-left: auto;
  align-items: stretch;
}

.portal-nav__group {
  position: relative;
}

.portal-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 56px;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid var(--portal-border);
  background: transparent;
  color: var(--portal-text);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease;
}

.portal-nav__link:hover,
.portal-nav__link:focus-visible,
.portal-nav__link.is-active,
.portal-nav__group.is-open > .portal-nav__link {
  background: #f6f8fa;
  color: var(--portal-primary-strong);
}

.portal-nav__link--emphasis {
  font-weight: 800;
}

.portal-nav__link--trigger {
  cursor: pointer;
}

.portal-nav__link--trigger i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.portal-nav__panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 248px;
  padding: 5px 0;
  border: 1px solid var(--portal-border);
  background: #ffffff;
  box-shadow: var(--portal-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.portal-nav__group.is-open .portal-nav__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.portal-nav__panel a {
  display: block;
  padding: 9px 14px;
  color: var(--portal-text);
  font-size: 13px;
  line-height: 1.35;
}

.portal-nav__panel a:hover,
.portal-nav__panel a:focus-visible,
.portal-nav__panel a.is-active {
  background: var(--portal-primary-soft);
  color: var(--portal-primary-strong);
}

.portal-nav__group--la-comunidad .portal-nav__panel {
  border-color: #d7eadf;
  background: linear-gradient(180deg, #f8fcf8 0%, #eff8f1 100%);
  box-shadow: 0 16px 28px rgba(47, 92, 60, 0.12);
}

.portal-nav__group--la-comunidad .portal-nav__panel a {
  position: relative;
  padding: 10px 14px 10px 18px;
}

.portal-nav__group--la-comunidad .portal-nav__panel a::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6aa77a;
  transform: translateY(-50%);
}

.portal-nav__group--la-comunidad .portal-nav__panel a:nth-child(2)::before {
  background: #5d8fc0;
}

.portal-nav__group--la-comunidad .portal-nav__panel a:nth-child(3)::before {
  background: #d29a4a;
}

.portal-nav__group--la-comunidad .portal-nav__panel a:nth-child(4)::before {
  background: #5ea4a4;
}

.portal-nav__group--la-comunidad .portal-nav__panel a:nth-child(5)::before {
  background: #8a7bd0;
}

.portal-nav__group--la-comunidad .portal-nav__panel a:hover,
.portal-nav__group--la-comunidad .portal-nav__panel a:focus-visible,
.portal-nav__group--la-comunidad .portal-nav__panel a.is-active {
  background: rgba(121, 185, 143, 0.14);
  color: #2e6640;
}

.portal-nav-toggle {
  display: none;
  align-self: center;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: #f1f4f7;
  cursor: pointer;
}

.portal-nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--portal-primary-strong);
}

.portal-main {
  padding-bottom: 42px;
}

.portal-home-hero {
  position: relative;
  background: #dbe6ef;
  border-bottom: 1px solid var(--portal-border);
}

.portal-carousel,
.portal-carousel__viewport {
  position: relative;
  min-height: 356px;
}

.portal-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(28, 64, 98, 0.18) 0%, rgba(28, 64, 98, 0.08) 36%, rgba(247, 250, 252, 0.52) 62%, rgba(247, 250, 252, 0.92) 100%),
    var(--portal-slide-image) center/cover no-repeat;
  transition: opacity 280ms ease;
}

.portal-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.portal-slide__container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 356px;
}

.portal-slide__caption {
  width: min(430px, 100%);
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 46px rgba(19, 47, 78, 0.22);
}

.portal-slide__eyebrow,
.portal-section-label,
.portal-news-meta {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  background: var(--portal-primary-soft);
  color: var(--portal-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-slide__caption h2,
.portal-page-hero__content h1 {
  margin: 10px 0 8px;
  color: var(--portal-primary-strong);
  font-size: clamp(28px, 3.35vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.portal-slide__caption p,
.portal-page-hero__content p {
  margin: 0;
  color: var(--portal-text-soft);
  font-size: 17px;
  line-height: 1.55;
}

.portal-info-panel p,
.portal-service-panel__body p,
.portal-publication p,
.portal-highlight__content p,
.portal-content-card p,
.portal-summary-card p,
.portal-resource-card span,
.portal-news-card p,
.portal-post p,
.portal-sidebar-card p {
  margin: 0;
  color: var(--portal-text-soft);
  font-size: 16px;
  line-height: 1.55;
}

.portal-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
}

.portal-button--primary {
  background: var(--portal-primary);
  color: #ffffff;
}

.portal-button--secondary {
  background: #ffffff;
  border-color: var(--portal-border-strong);
  color: var(--portal-primary-strong);
}

.portal-carousel__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-carousel__dots {
  display: inline-flex;
  gap: 8px;
}

.portal-carousel__arrow,
.portal-carousel__dot {
  border: 0;
  cursor: pointer;
}

.portal-carousel__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 3px 8px rgba(26, 49, 74, 0.08);
}

.portal-carousel__arrow span {
  width: 11px;
  height: 11px;
  border-top: 2px solid var(--portal-primary-strong);
  border-left: 2px solid var(--portal-primary-strong);
  transform: rotate(-45deg);
}

.portal-carousel__arrow.is-next span {
  transform: rotate(135deg);
}

.portal-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.portal-carousel__dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: #ffffff;
}

.portal-access-band {
  padding: 18px 0 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
  border-bottom: 1px solid var(--portal-border);
}

.portal-access-band__inner {
  display: grid;
  gap: 16px;
}

.portal-access-band__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.portal-access-band__group--quick {
  justify-content: center;
}

.portal-access-shortcut {
  display: inline-grid;
  gap: 4px;
  min-width: 230px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--portal-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(28, 58, 88, 0.05);
  color: var(--portal-primary-strong);
}

.portal-access-shortcut strong {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
}

.portal-access-shortcut span {
  color: var(--portal-text-soft);
  font-size: 14px;
  line-height: 1.35;
}

.portal-access-shortcut:nth-child(1) {
  background: var(--portal-accent-water-soft);
  border-color: #d8e8f7;
}

.portal-access-shortcut:nth-child(2) {
  background: var(--portal-accent-green-soft);
  border-color: #dcebdc;
}

.portal-access-shortcut:nth-child(3) {
  background: var(--portal-accent-gold-soft);
  border-color: #ecdfc5;
}

.portal-access-band__group--portal {
  padding: 18px 20px;
  border: 1px solid #d7e2ee;
  border-radius: 18px;
  background: linear-gradient(135deg, #edf4fb 0%, #ffffff 72%);
  box-shadow: 0 14px 28px rgba(26, 53, 81, 0.06);
}

.portal-access-band__label {
  display: block;
  width: 100%;
  color: var(--portal-primary-strong);
  font-size: 20px;
  font-weight: 700;
}

.portal-access-band__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d6e0ea;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--portal-primary-strong);
  font-size: 15px;
  font-weight: 700;
}

.portal-info-panel,
.portal-service-panel,
.portal-publication,
.portal-highlight,
.portal-summary-card,
.portal-content-card,
.portal-resource-card,
.portal-gallery-card,
.portal-news-card,
.portal-post,
.portal-sidebar-card {
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
}

.portal-info-panel {
  display: grid;
  gap: 12px;
  min-height: 162px;
  padding: 20px;
}

.portal-info-panel h2,
.portal-summary-card h2,
.portal-content-card h2,
.portal-resource-block h2,
.portal-gallery-card__body h2,
.portal-news-card h2,
.portal-post h2,
.portal-sidebar-card h2,
.portal-compliance__inner h2 {
  margin: 0;
  color: var(--portal-primary-strong);
  font-size: 23px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.portal-section-bar h2,
.portal-highlight__content h2 {
  margin: 0;
  color: var(--portal-primary-strong);
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.portal-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--portal-primary);
  font-size: 15px;
  font-weight: 700;
}

.portal-text-link::after {
  content: "→";
}

.portal-section {
  padding: 24px 0 0;
}

.portal-section--soft {
  margin-top: 24px;
  padding: 24px 0;
  background: var(--portal-surface-soft);
  border-top: 1px solid var(--portal-border);
  border-bottom: 1px solid var(--portal-border);
}

.portal-section-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.portal-section-note {
  margin: 6px 0 0;
  color: var(--portal-text-soft);
  font-size: 15px;
  line-height: 1.45;
}

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

.portal-service-grid--directory {
  align-items: start;
}

.portal-service-panel {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 20px 34px rgba(27, 54, 83, 0.07);
}

.portal-service-panel--directory {
  min-height: 100%;
}

.portal-service-panel--directory .portal-service-panel__image {
  display: block;
  height: 92px;
}

.portal-service-panel__image,
.portal-gallery-card__image {
  height: 126px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(34, 71, 107, 0.08) 100%),
    var(--portal-card-image) center/cover no-repeat;
}

.portal-service-panel__body,
.portal-gallery-card__body {
  display: grid;
  gap: 12px;
  padding: 18px 20px 20px;
}

.portal-service-panel--directory .portal-service-panel__body {
  gap: 12px;
  min-height: 100%;
  padding: 22px 22px 24px;
}

.portal-service-panel__body h3,
.portal-publication h3 {
  margin: 0;
  color: var(--portal-primary-strong);
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.portal-service-panel--directory .portal-service-panel__body h3 {
  font-size: 17px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portal-service-panel--gis {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.portal-service-panel--gis .portal-service-panel__image {
  background:
    linear-gradient(135deg, rgba(44, 110, 168, 0.92), rgba(148, 195, 232, 0.52)),
    var(--portal-card-image) center/cover no-repeat;
}

.portal-service-panel--comunidad {
  background: linear-gradient(180deg, #f5fbf4 0%, #ffffff 100%);
}

.portal-service-panel--comunidad .portal-service-panel__image {
  background:
    linear-gradient(135deg, rgba(70, 125, 84, 0.92), rgba(176, 216, 171, 0.5)),
    var(--portal-card-image) center/cover no-repeat;
}

.portal-service-panel--sede {
  background: linear-gradient(180deg, #fffaf2 0%, #ffffff 100%);
}

.portal-service-panel--sede .portal-service-panel__image {
  background:
    linear-gradient(135deg, rgba(157, 110, 35, 0.9), rgba(232, 196, 132, 0.52)),
    var(--portal-card-image) center/cover no-repeat;
}

.portal-service-panel--gis .portal-text-link,
.portal-service-panel--gis .portal-service-panel__body h3 {
  color: var(--portal-accent-water);
}

.portal-service-panel--comunidad .portal-text-link,
.portal-service-panel--comunidad .portal-service-panel__body h3 {
  color: var(--portal-accent-green);
}

.portal-service-panel--sede .portal-text-link,
.portal-service-panel--sede .portal-service-panel__body h3 {
  color: var(--portal-accent-gold);
}

.portal-service-panel--gis .portal-bullet-list li::before {
  background: var(--portal-accent-water);
}

.portal-service-panel--comunidad .portal-bullet-list li::before {
  background: var(--portal-accent-green);
}

.portal-service-panel--sede .portal-bullet-list li::before {
  background: var(--portal-accent-gold);
}

.portal-bullet-list,
.portal-sidebar-card ul,
.portal-footer__column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-bullet-list li,
.portal-sidebar-card li {
  position: relative;
  padding-left: 16px;
  color: var(--portal-text-soft);
  font-size: 15px;
  line-height: 1.5;
}

.portal-bullet-list li + li,
.portal-sidebar-card li + li {
  margin-top: 8px;
}

.portal-bullet-list li::before,
.portal-sidebar-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--portal-primary);
}

.portal-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.85fr);
  gap: 18px;
  padding: 24px;
}

.portal-publications-board {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.portal-publication-feature {
  overflow: hidden;
}

.portal-publication-feature__media {
  min-height: 236px;
  background:
    linear-gradient(180deg, rgba(13, 34, 57, 0.06) 0%, rgba(13, 34, 57, 0.18) 100%),
    var(--portal-card-image) center/cover no-repeat;
}

.portal-publication-feature__body {
  display: grid;
  gap: 10px;
  padding: 18px 20px 20px;
}

.portal-publication-feature__body h2 {
  margin: 0;
  color: var(--portal-primary-strong);
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.portal-publication-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--portal-border);
  background: #ffffff;
}

.portal-publication-list .portal-news-card--home {
  display: grid;
  gap: 9px;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid var(--portal-border);
  background: transparent;
}

.portal-publication-list .portal-news-card--home p {
  display: none;
}

.portal-publication-list .portal-news-card--home:last-child {
  border-bottom: 0;
}

.portal-highlight__content,
.portal-highlight__aside {
  display: grid;
  gap: 14px;
}

.portal-highlight__subtitle {
  color: var(--portal-primary);
  font-size: 18px;
  font-weight: 700;
}

.portal-compliance {
  padding: 24px 0 0;
}

.portal-compliance__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: #eef3f7;
  border: 1px solid var(--portal-border);
}

.portal-compliance__inner p {
  margin: 8px 0 0;
  color: var(--portal-text-soft);
  font-size: 16px;
  line-height: 1.5;
}

.portal-page-hero {
  min-height: 170px;
  background:
    linear-gradient(90deg, rgba(245, 249, 252, 0.9) 0%, rgba(245, 249, 252, 0.78) 34%, rgba(245, 249, 252, 0.26) 68%, rgba(245, 249, 252, 0.08) 100%),
    var(--portal-page-image) center/cover no-repeat;
  border-bottom: 1px solid var(--portal-border);
}

.portal-page-hero--documentary {
  min-height: 132px;
}

.portal-page-hero--article,
.portal-page-hero--governance,
.portal-page-hero--legal,
.portal-page-hero--gallery,
.portal-page-hero--news {
  min-height: 142px;
}

.portal-page-hero__inner {
  display: flex;
  align-items: center;
  min-height: 170px;
  padding: 18px 0;
}

.portal-page-hero--documentary .portal-page-hero__inner {
  min-height: 132px;
  padding: 14px 0;
}

.portal-page-hero--article .portal-page-hero__inner,
.portal-page-hero--governance .portal-page-hero__inner,
.portal-page-hero--legal .portal-page-hero__inner,
.portal-page-hero--gallery .portal-page-hero__inner,
.portal-page-hero--news .portal-page-hero__inner {
  min-height: 142px;
  padding: 16px 0;
}

.portal-page-hero--documentary .portal-page-hero__content h1 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
}

.portal-page-hero--documentary .portal-page-hero__content p {
  font-size: 16px;
  line-height: 1.5;
}

.portal-page-hero__content {
  width: min(700px, 100%);
  padding: 0;
  background: transparent;
}

.portal-page-hero__content--link {
  display: grid;
  gap: 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 36px rgba(27, 53, 81, 0.16);
  backdrop-filter: blur(6px);
}

.portal-page-hero__cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  margin-top: 16px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--portal-primary-strong);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(18, 42, 65, 0.12);
}

.portal-page-hero__cta::after {
  content: "↓";
  margin-left: 8px;
}

.portal-page-body {
  padding-top: 18px;
}

.portal-page-main,
.portal-page-flow,
.portal-meta-strip {
  display: grid;
  gap: 20px;
}

.portal-page-flow--documentary {
  gap: 16px;
}

.portal-page-flow--article,
.portal-page-flow--governance,
.portal-page-flow--legal,
.portal-page-flow--gallery {
  gap: 26px;
}

.portal-fact-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--portal-border);
  border-bottom: 1px solid var(--portal-border);
}

.portal-fact-row {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--portal-border);
}

.portal-fact-row:last-child {
  border-bottom: 0;
}

.portal-fact-row dt {
  color: var(--portal-text-soft);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-fact-row dd {
  margin: 0;
  color: var(--portal-primary-strong);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.portal-fact-row dd a {
  color: var(--portal-primary);
}

.portal-page-main--page-comunidad .portal-fact-list {
  padding: 12px 16px;
  border: 1px solid #dce8dd;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7fcf7 0%, #eef8f0 100%);
  box-shadow: 0 16px 30px rgba(46, 102, 64, 0.07);
}

.portal-page-main--page-comunidad .portal-fact-row {
  padding: 14px 14px;
  border-bottom: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.portal-page-main--page-comunidad .portal-fact-row + .portal-fact-row {
  margin-top: 10px;
}

.portal-page-main--page-comunidad .portal-fact-row:nth-child(1) {
  box-shadow: inset 4px 0 0 #68a87a;
}

.portal-page-main--page-comunidad .portal-fact-row:nth-child(2) {
  box-shadow: inset 4px 0 0 #4c8bc0;
}

.portal-page-main--page-comunidad .portal-fact-row:nth-child(3) {
  box-shadow: inset 4px 0 0 #d39c46;
}

.portal-page-main--page-comunidad .portal-fact-row:nth-child(4) {
  box-shadow: inset 4px 0 0 #68a0a6;
}

.portal-page-main--page-comunidad .portal-fact-row:nth-child(5) {
  box-shadow: inset 4px 0 0 #9a82d1;
}

.portal-article {
  display: grid;
  gap: 16px;
}

.portal-article h2 {
  margin: 0;
  color: var(--portal-primary-strong);
  font-size: 27px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.portal-article__subhead {
  color: var(--portal-primary);
  font-size: 19px;
  font-weight: 700;
}

.portal-page-main--page-comunidad .portal-article,
.portal-page-main--page-historia .portal-article {
  padding: 24px 28px 28px;
  border: 1px solid #dce4ee;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 254, 0.98) 100%);
  box-shadow: 0 20px 36px rgba(28, 54, 82, 0.08);
}

.portal-page-main--page-comunidad .portal-article {
  border-color: #d9eadf;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf7 100%);
}

.portal-page-main--page-comunidad .portal-article h2 {
  color: #2e6640;
}

.portal-page-main--page-comunidad .portal-article__subhead,
.portal-page-main--page-comunidad .portal-inline-link {
  color: #4d8b5e;
}

.portal-page-main--page-historia .portal-article {
  border-color: #d9e3ef;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fd 100%);
}

.portal-page-main--page-historia .portal-article h2 {
  color: #2b5f8b;
}

.portal-page-main--page-historia .portal-article__subhead,
.portal-page-main--page-historia .portal-inline-link {
  color: #4f7fb4;
}

.portal-page-main--page-historia .portal-article p:first-of-type::first-letter {
  float: left;
  margin-right: 8px;
  color: #4f7fb4;
  font-size: 3.2em;
  line-height: 0.84;
  font-weight: 800;
}

.portal-article p,
.portal-content-card p,
.portal-document-item p {
  color: var(--portal-text);
  font-size: 18px;
  line-height: 1.78;
}

.portal-sidebar-card {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
}

.portal-sidebar-card a {
  color: var(--portal-text);
}

.portal-sidebar-card a.is-active,
.portal-sidebar-card a:hover,
.portal-sidebar-card a:focus-visible {
  color: var(--portal-primary);
  font-weight: 700;
}

.portal-summary-grid,
.portal-resource-grid,
.portal-gallery-grid,
.portal-news-grid {
  display: grid;
  gap: 16px;
}

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

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

.portal-summary-grid--documentary {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--portal-border);
}

.portal-summary-card,
.portal-content-card,
.portal-resource-card,
.portal-news-card,
.portal-post {
  padding: 16px 18px;
}

.portal-page-body .portal-summary-card {
  padding: 14px 16px;
  background: #fbfcfd;
}

.portal-page-body .portal-summary-card--documentary {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--portal-border);
  background: transparent;
}

.portal-page-body .portal-summary-card--documentary h2 {
  font-size: 18px;
  line-height: 1.22;
}

.portal-content-stack {
  display: grid;
  gap: 28px;
}

.portal-content-card {
  display: grid;
  gap: 12px;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid var(--portal-border);
  background: transparent;
}

.portal-page-main--page-comunidad .portal-content-card {
  padding: 20px 22px 22px;
  border: 1px solid #dbe8dc;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
}

.portal-page-main--page-comunidad .portal-content-card h2 {
  color: #2e6640;
}

.portal-page-main--page-organos .portal-content-card,
.portal-page-main--page-organos .portal-directory-card {
  padding: 22px 24px 24px;
  border: 1px solid #dce3ed;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 18px 34px rgba(29, 53, 79, 0.07);
}

.portal-page-main--page-organos .portal-content-card:nth-child(1) {
  border-color: #d7eadf;
  background: linear-gradient(180deg, #ffffff 0%, #f5fbf6 100%);
}

.portal-page-main--page-organos .portal-content-card:nth-child(2) {
  border-color: #d9e5f1;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fd 100%);
}

.portal-page-main--page-organos .portal-content-card:nth-child(3) {
  border-color: #efe1cb;
  background: linear-gradient(180deg, #ffffff 0%, #fdf8f0 100%);
}

.portal-page-main--page-organos .portal-content-card:nth-child(4) {
  border-color: #e0dbef;
  background: linear-gradient(180deg, #ffffff 0%, #faf7fd 100%);
}

.portal-page-main--page-organos .portal-content-card h2,
.portal-page-main--page-organos .portal-directory-card h2 {
  color: #294967;
}

.portal-content-card h2,
.portal-directory-card h2 {
  font-size: 25px;
  letter-spacing: -0.03em;
}

.portal-document-links {
  display: grid;
  gap: 8px;
  padding-top: 6px;
}

.portal-inline-link {
  color: var(--portal-primary);
  font-size: 16px;
  font-weight: 700;
}

.portal-inline-link::after {
  content: " ↗";
}

.portal-document-list {
  display: grid;
  gap: 0;
}

.portal-document-item {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid var(--portal-border);
}

.portal-document-item:first-child {
  padding-top: 6px;
  border-top: 0;
}

.portal-document-item h3 {
  margin: 0;
  color: var(--portal-primary-strong);
  font-size: 19px;
  line-height: 1.2;
}

.portal-page-main--page-comunidad .portal-document-item {
  padding: 16px 0;
}

.portal-page-main--page-comunidad .portal-document-item h3 {
  color: #2e6640;
}

.portal-resource-block {
  display: grid;
  gap: 18px;
}

.portal-resource-block--documentary {
  gap: 10px;
}

.portal-resource-grid {
  grid-template-columns: 1fr;
}

.portal-resource-card {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--portal-border);
  background: transparent;
}

.portal-resource-card--documentary strong::after {
  content: " ↗";
}

.portal-gallery-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 72px;
}

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

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

.portal-news-card--home {
  display: grid;
  gap: 10px;
}

.portal-page-body .portal-news-card {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--portal-border);
  background: transparent;
}

.portal-news-feed {
  display: grid;
  gap: 0;
}

.portal-post {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--portal-border);
  background: transparent;
}

.portal-post--featured {
  border-top: 2px solid var(--portal-primary);
}

.portal-post__meta {
  color: var(--portal-text-soft);
  font-size: 15px;
}

.portal-directory-groups {
  display: grid;
  gap: 26px;
}

.portal-directory-card {
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--portal-border);
  background: transparent;
}

.portal-directory-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.portal-directory-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--portal-border);
}

.portal-directory-row dt {
  color: var(--portal-text-soft);
  font-size: 14px;
  font-weight: 700;
}

.portal-directory-row dd {
  margin: 0;
  color: var(--portal-primary-strong);
  font-size: 17px;
  font-weight: 600;
}

.portal-page-main--page-organos .portal-directory-row:nth-child(odd) {
  background: rgba(244, 249, 253, 0.7);
}

.portal-page-main--page-organos .portal-directory-row {
  padding: 12px 14px;
  border-bottom: 1px solid #dfe7ef;
  border-radius: 12px;
}

.portal-page-main--page-organos .portal-directory-row + .portal-directory-row {
  margin-top: 6px;
}

.portal-page-main--legal .portal-content-stack {
  gap: 22px;
}

.portal-page-main--legal .portal-content-card {
  padding: 22px 24px 24px;
  border: 1px solid #dce4ec;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: 0 18px 34px rgba(27, 53, 81, 0.06);
}

.portal-page-main--legal .portal-content-card h2 {
  color: #2d587f;
}

.portal-page-main--legal .portal-document-list {
  gap: 12px;
  margin-top: 8px;
}

.portal-page-main--legal .portal-document-item {
  padding: 16px 18px;
  border: 1px solid #e0e8ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 18px rgba(28, 52, 79, 0.04);
}

.portal-page-main--legal .portal-document-item:first-child {
  padding-top: 16px;
  border-top: 1px solid #e0e8ef;
}

.portal-page-main--legal .portal-document-item h3 {
  color: #294c6b;
}

.portal-page-main--legal .portal-text-link {
  width: fit-content;
  min-height: 34px;
  margin-top: 4px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(237, 244, 251, 0.96);
}

.portal-page-main--page-normativa .portal-content-card:nth-child(1) {
  border-color: #d8e6f4;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fd 100%);
}

.portal-page-main--page-normativa .portal-content-card:nth-child(2) {
  border-color: #dceadf;
  background: linear-gradient(180deg, #ffffff 0%, #f5fbf6 100%);
}

.portal-page-main--page-normativa .portal-content-card:nth-child(3) {
  border-color: #efe1cc;
  background: linear-gradient(180deg, #ffffff 0%, #fdf8f1 100%);
}

.portal-page-main--page-normativa .portal-content-card:nth-child(4) {
  border-color: #e6dcf3;
  background: linear-gradient(180deg, #ffffff 0%, #faf7fd 100%);
}

.portal-page-main--page-normativa .portal-document-item:nth-child(1) {
  box-shadow: inset 4px 0 0 #5d8fc0;
}

.portal-page-main--page-normativa .portal-document-item:nth-child(2) {
  box-shadow: inset 4px 0 0 #6ea87d;
}

.portal-page-main--page-normativa .portal-document-item:nth-child(3) {
  box-shadow: inset 4px 0 0 #d19a47;
}

.portal-page-main--page-impresos-utiles .portal-content-card {
  border-color: #e8dcc6;
  background: linear-gradient(180deg, #ffffff 0%, #fdf8f2 100%);
}

.portal-page-main--page-impresos-utiles .portal-content-card h2,
.portal-page-main--page-impresos-utiles .portal-document-item h3 {
  color: #8d5c1f;
}

.portal-page-main--page-impresos-utiles .portal-document-item {
  border-color: #efe1cc;
  background: rgba(255, 252, 247, 0.98);
}

.portal-page-main--page-impresos-utiles .portal-document-item:nth-child(1) {
  box-shadow: inset 4px 0 0 #c68f3c;
}

.portal-page-main--page-impresos-utiles .portal-document-item:nth-child(2) {
  box-shadow: inset 4px 0 0 #b87158;
}

.portal-page-main--page-impresos-utiles .portal-document-item:nth-child(3) {
  box-shadow: inset 4px 0 0 #5f8db7;
}

.portal-page-main--page-enlaces-de-interes .portal-content-card:nth-child(1) {
  border-color: #d9e8f6;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fd 100%);
}

.portal-page-main--page-enlaces-de-interes .portal-content-card:nth-child(2) {
  border-color: #d8eadf;
  background: linear-gradient(180deg, #ffffff 0%, #f5fbf7 100%);
}

.portal-page-main--page-enlaces-de-interes .portal-content-card h2,
.portal-page-main--page-enlaces-de-interes .portal-document-item h3 {
  color: #2c607f;
}

.portal-page-main--page-enlaces-de-interes .portal-document-item:nth-child(1) {
  box-shadow: inset 4px 0 0 #5c8fbf;
}

.portal-page-main--page-enlaces-de-interes .portal-document-item:nth-child(2) {
  box-shadow: inset 4px 0 0 #6faa78;
}

.portal-page-main--page-enlaces-de-interes .portal-document-item:nth-child(3) {
  box-shadow: inset 4px 0 0 #d8a14d;
}

.portal-gallery-card {
  position: relative;
  grid-column: span 4;
  grid-row: span 4;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 18px 34px rgba(25, 49, 76, 0.1);
}

.portal-gallery-card--link {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.portal-gallery-card--link:hover,
.portal-gallery-card--link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px rgba(25, 49, 76, 0.16);
}

.portal-gallery-card--wide {
  grid-column: span 8;
}

.portal-gallery-card--tall {
  grid-row: span 6;
}

.portal-gallery-card__image {
  height: 100%;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(12, 30, 48, 0.04) 0%, rgba(12, 30, 48, 0.34) 100%),
    var(--portal-card-image) center/cover no-repeat;
}

.portal-gallery-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  gap: 8px;
  padding: 18px 18px 20px;
  background: linear-gradient(180deg, rgba(12, 30, 48, 0) 0%, rgba(12, 30, 48, 0.84) 100%);
}

.portal-gallery-card__body h2,
.portal-gallery-card__body p {
  color: #ffffff;
}

.portal-gallery-card__body p {
  font-size: 15px;
  line-height: 1.45;
}

.portal-gallery-card__hint {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  margin-top: 8px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--portal-primary-strong);
  font-size: 14px;
  font-weight: 700;
}

.portal-gallery-card__hint::after {
  content: "→";
  margin-left: 8px;
}

.portal-gallery-card--lightbox .portal-gallery-card__hint::after {
  content: "+";
}

.portal-gallery-grid--album {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  grid-auto-rows: auto;
  align-items: start;
  gap: 14px;
}

.portal-gallery-grid--album .portal-gallery-card,
.portal-gallery-grid--album .portal-gallery-card--wide,
.portal-gallery-grid--album .portal-gallery-card--tall {
  grid-column: auto;
  grid-row: auto;
}

.portal-gallery-card--lightbox {
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(210, 222, 234, 0.86);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: inherit;
  text-align: left;
  cursor: zoom-in;
  box-shadow: 0 14px 28px rgba(25, 49, 76, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.portal-gallery-card--lightbox:hover,
.portal-gallery-card--lightbox:focus-visible {
  border-color: rgba(29, 89, 140, 0.28);
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(25, 49, 76, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.portal-gallery-card__figure {
  display: grid;
  place-items: center;
  min-height: 180px;
  margin: 0;
  padding: 10px;
  border-bottom: 1px solid rgba(210, 222, 234, 0.72);
  background:
    linear-gradient(180deg, rgba(246, 249, 252, 0.96), rgba(238, 244, 250, 0.88));
}

.portal-gallery-card__photo {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
}

.portal-gallery-card--lightbox .portal-gallery-card__body {
  position: static;
  gap: 5px;
  padding: 12px 14px 14px;
  background: transparent;
}

.portal-gallery-card--lightbox .portal-gallery-card__body h2 {
  color: var(--portal-primary-strong);
  font-size: 16px;
  letter-spacing: 0;
}

.portal-gallery-card--lightbox .portal-gallery-card__body p {
  color: var(--portal-text-soft);
  font-size: 13px;
  line-height: 1.4;
}

.portal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  padding: 46px 18px 24px;
  overflow: auto;
}

.portal-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 31, 44, 0.68);
  backdrop-filter: blur(8px);
}

.portal-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  width: min(1040px, 100%);
  min-height: 620px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(16, 29, 42, 0.78);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.32);
}

.portal-lightbox__figure {
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 420px) auto auto;
  gap: 14px;
  justify-items: center;
  align-items: center;
  min-width: 0;
  min-height: 560px;
}

.portal-lightbox__image {
  display: block;
  width: min(920px, 100%);
  height: 420px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.26);
}

.portal-lightbox__caption {
  display: grid;
  gap: 6px;
  width: min(820px, 100%);
  min-height: 52px;
  padding: 0 10px;
  color: #ffffff;
  text-align: center;
  align-content: start;
}

.portal-lightbox__caption strong {
  font-size: 21px;
  line-height: 1.1;
}

.portal-lightbox__caption span {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.portal-lightbox__thumbs {
  display: flex;
  gap: 10px;
  max-width: min(880px, 100%);
  min-height: 58px;
  padding: 4px 6px 2px;
  overflow-x: auto;
  align-items: center;
}

.portal-lightbox__thumbs::-webkit-scrollbar {
  height: 8px;
}

.portal-lightbox__thumbs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.portal-lightbox__thumb {
  flex: 0 0 auto;
  width: 70px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: pointer;
}

.portal-lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: rgba(255, 255, 255, 0.92);
}

.portal-lightbox__thumb.is-active {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(122, 173, 223, 0.25);
}

.portal-lightbox__close,
.portal-lightbox__nav {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.portal-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.portal-lightbox__close::before,
.portal-lightbox__close::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 12px;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.portal-lightbox__close::before {
  transform: rotate(45deg);
}

.portal-lightbox__close::after {
  transform: rotate(-45deg);
}

.portal-lightbox__nav::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 17px;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.portal-lightbox__nav--prev::before {
  transform: rotate(-45deg);
}

.portal-lightbox__nav--next::before {
  left: 13px;
  transform: rotate(135deg);
}

.portal-news-layout {
  display: grid;
  gap: 26px;
}

.portal-news-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--portal-border);
}

.portal-news-feature__media {
  min-height: 364px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(15, 36, 58, 0.06) 0%, rgba(15, 36, 58, 0.18) 100%),
    var(--portal-card-image) center/cover no-repeat;
  box-shadow: 0 20px 34px rgba(25, 49, 76, 0.09);
}

.portal-news-feature__body,
.portal-news-secondary-card__body,
.portal-news-latest {
  display: grid;
  gap: 12px;
}

.portal-news-feature__body {
  align-content: center;
}

.portal-news-feature__body h2 {
  margin: 0;
  color: var(--portal-primary-strong);
  font-size: clamp(34px, 3.1vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.portal-news-feature__meta,
.portal-news-secondary-card__meta,
.portal-news-list-item__meta {
  color: var(--portal-text-soft);
  font-size: 15px;
}

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

.portal-news-secondary-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 26px rgba(25, 49, 76, 0.06);
}

.portal-news-secondary-card__media {
  min-height: 144px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(15, 36, 58, 0.02) 0%, rgba(15, 36, 58, 0.14) 100%),
    var(--portal-card-image) center/cover no-repeat;
}

.portal-news-secondary-card__body h2,
.portal-news-list-item h3 {
  margin: 0;
  color: var(--portal-primary-strong);
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.portal-news-secondary-card__body p,
.portal-news-list-item p {
  margin: 0;
  color: var(--portal-text-soft);
  font-size: 16px;
  line-height: 1.58;
}

.portal-news-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.portal-section-bar--news {
  margin-bottom: 2px;
}

.portal-news-list {
  display: grid;
  gap: 0;
}

.portal-news-list-item {
  display: grid;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid var(--portal-border);
}

.portal-news-list-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.portal-news-filter-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--portal-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--portal-primary-strong);
  font-size: 14px;
  font-weight: 700;
}

.portal-news-empty {
  padding: 22px;
  border: 1px dashed var(--portal-border-strong);
  border-radius: 18px;
  background: var(--portal-surface-soft);
  color: var(--portal-text-soft);
  font-weight: 700;
}

.portal-news-sidebar {
  display: grid;
  gap: 16px;
}

.portal-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-sidebar-card .portal-filter-list li {
  padding-left: 0;
  line-height: 1;
}

.portal-sidebar-card .portal-filter-list li + li {
  margin-top: 0;
}

.portal-sidebar-card .portal-filter-list li::before {
  content: none;
}

.portal-filter-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--portal-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--portal-text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.portal-filter-button:hover,
.portal-filter-button:focus-visible {
  border-color: var(--portal-border-strong);
  color: var(--portal-primary);
  transform: translateY(-1px);
}

.portal-filter-button.is-active {
  border-color: rgba(44, 110, 168, 0.24);
  background: var(--portal-accent-water-soft);
  color: var(--portal-primary-strong);
}

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

.portal-ranking-list li + li {
  border-top: 1px solid var(--portal-border);
}

.portal-ranking-list a {
  display: grid;
  gap: 4px;
  padding: 12px 0;
}

.portal-ranking-list strong {
  color: var(--portal-primary-strong);
  font-size: 17px;
  line-height: 1.25;
}

.portal-ranking-list span {
  color: var(--portal-text-soft);
  font-size: 14px;
}

.portal-footer {
  margin-top: 32px;
  padding: 24px 0 16px;
  background: #eef2f6;
  border-top: 1px solid var(--portal-border);
}

.portal-footer__top,
.portal-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.portal-footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.portal-footer__brand strong {
  display: block;
  color: var(--portal-primary-strong);
  font-size: 20px;
}

.portal-footer__brand span,
.portal-footer__contact,
.portal-footer__column a,
.portal-footer__bottom {
  color: var(--portal-text-soft);
}

.portal-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 15px;
}

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

.portal-footer__column h3 {
  margin: 0 0 10px;
  color: var(--portal-primary-strong);
  font-size: 17px;
}

.portal-footer__column li + li {
  margin-top: 7px;
}

.portal-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

@media (max-width: 1180px) {
  .portal-publications-board,
  .portal-service-grid,
  .portal-summary-grid--compact,
  .portal-resource-grid,
  .portal-news-grid,
  .portal-footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-news-feature,
  .portal-news-content,
  .portal-news-secondary-grid {
    grid-template-columns: 1fr;
  }

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

  .portal-gallery-card,
  .portal-gallery-card--wide,
  .portal-gallery-card--tall {
    grid-column: auto;
    grid-row: auto;
  }

  .portal-highlight {
    grid-template-columns: 1fr;
  }

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

  .portal-lightbox__dialog {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    width: min(920px, 100%);
    min-height: 560px;
    margin: 0 auto;
  }

  .portal-lightbox__figure {
    grid-template-rows: minmax(0, 360px) auto auto;
    min-height: 500px;
  }

  .portal-lightbox__image {
    height: 360px;
  }
}

@media (max-width: 980px) {
  .portal-nav-toggle {
    display: inline-block;
  }

  .portal-navbar__inner {
    position: relative;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
  }

  .portal-brand {
    min-width: 0;
    padding-right: 10px;
  }

  .portal-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: grid;
    background: #ffffff;
    border: 1px solid var(--portal-border);
    box-shadow: var(--portal-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 140ms ease, transform 140ms ease;
  }

  .portal-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .portal-nav__link {
    justify-content: space-between;
    min-height: 52px;
    border-left: 0;
    border-top: 1px solid var(--portal-border);
    padding: 0 16px;
  }

  .portal-nav__link:first-child {
    border-top: 0;
  }

  .portal-nav__panel {
    position: static;
    min-width: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: none;
  }

  .portal-nav__group.is-open .portal-nav__panel {
    display: block;
  }

  .portal-carousel,
  .portal-carousel__viewport,
  .portal-slide__container {
    min-height: 300px;
  }

  .portal-slide__caption {
    width: min(420px, 100%);
  }

  .portal-slide__container {
    justify-content: center;
  }

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

  .portal-lightbox__caption strong {
    font-size: 22px;
  }
}

@media (max-width: 720px) {
  .portal-brand__copy span {
    display: none;
  }

  .portal-access-band__group,
  .portal-compliance__inner,
  .portal-footer__top,
  .portal-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-service-grid,
  .portal-summary-grid,
  .portal-summary-grid--compact,
  .portal-resource-grid,
  .portal-gallery-grid,
  .portal-news-grid,
  .portal-news-grid--home,
  .portal-publications-board,
  .portal-footer__links {
    grid-template-columns: 1fr;
  }

  .portal-carousel,
  .portal-carousel__viewport,
  .portal-slide__container {
    min-height: 340px;
  }

  .portal-slide__container {
    align-items: flex-end;
    padding-bottom: 66px;
  }

  .portal-slide__caption,
  .portal-page-hero__content {
    width: 100%;
    padding: 20px;
  }

  .portal-fact-row,
  .portal-directory-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .portal-lightbox__dialog {
    grid-template-columns: 1fr;
    gap: 14px;
    align-content: center;
    width: 100%;
    min-height: min(680px, calc(100vh - 48px));
    margin: 0 auto;
    padding: 14px;
  }

  .portal-lightbox__figure {
    grid-template-rows: minmax(0, 300px) auto auto;
    min-height: 440px;
  }

  .portal-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .portal-lightbox__nav--prev {
    left: 8px;
  }

  .portal-lightbox__nav--next {
    right: 8px;
  }

  .portal-lightbox__image {
    max-width: 100%;
    height: 300px;
    max-height: none;
  }

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

  .portal-button {
    width: 100%;
  }

  .portal-access-shortcut,
  .portal-access-band__group--portal {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .portal-publication-feature__media {
    min-height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-slide,
  .portal-nav,
  .portal-nav__panel {
    transition: none;
  }
}
