﻿:root {
  --ink: #17202a;
  --muted: #687385;
  --line: #e5e9ef;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --wine: #76132c;
  --wine-dark: #4d0d1f;
  --gold: #c99a3f;
  --blue: #0d5670;
  --green: #27705f;
  --shadow: 0 20px 60px rgba(23, 32, 42, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@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;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfcfe;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: .75rem 1rem;
  background: var(--wine);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: .35rem 1.5rem;
  color: #fff;
  background: var(--wine-dark);
  font-size: .82rem;
}

.topbar a {
  color: #f7d891;
  font-weight: 700;
}

.main-nav {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 330px;
  padding: .35rem .75rem .35rem 0;
}

.brand img {
  width: 82px;
  height: 64px;
  object-fit: contain;
  background: var(--wine);
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 8px;
  padding: .42rem;
  box-shadow:
    0 12px 26px rgba(77, 13, 31, .14),
    inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.brand span {
  position: relative;
  display: block;
  padding-left: .95rem;
}

.brand span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15rem;
  bottom: .15rem;
  width: 3px;
  border-radius: 999px;
  background: var(--gold);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--wine-dark);
  font-size: 1.04rem;
  line-height: 1.05;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  margin-top: .28rem;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-menu > a,
.nav-item > button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 0;
  background: transparent;
  color: #293443;
  font: inherit;
  font-size: .92rem;
  font-weight: 800;
  padding: .75rem .7rem;
  cursor: pointer;
}

.nav-menu > a:hover,
.nav-item > button:hover,
.nav-menu > a:focus-visible,
.nav-item > button:focus-visible {
  color: var(--wine);
  outline: none;
}

.nav-item {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 310px;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: .25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .18s ease;
}

.mega-menu.wide {
  width: 560px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mega-menu strong {
  display: block;
  margin: .3rem .45rem .45rem;
  color: var(--wine);
}

.mega-menu a {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .65rem;
  border-radius: 6px;
  color: #344050;
  font-size: .9rem;
}

.nav-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

.mega-menu a:hover,
.mega-menu a:focus-visible {
  background: #f7eef2;
  color: var(--wine-dark);
}

.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu,
.nav-item.open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: .7rem .9rem;
  font: inherit;
  font-weight: 800;
}

.quick-rail {
  position: fixed;
  right: 1rem;
  top: 50%;
  z-index: 25;
  display: grid;
  gap: .45rem;
  transform: translateY(-50%);
}

.quick-rail a {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: var(--wine);
  color: #fff;
  padding: .85rem .5rem;
  border-radius: 7px;
  font-size: .78rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(77, 13, 31, .22);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #18070d;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #18070d;
  transform: scale(1.02);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 7, 13, .94), rgba(24, 7, 13, .72) 39%, rgba(24, 7, 13, .24) 74%, rgba(24, 7, 13, .06)),
    linear-gradient(0deg, rgba(24, 7, 13, .24), rgba(24, 7, 13, .02) 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 7rem 0 11rem;
}

.eyebrow {
  margin: 0 0 .65rem;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.25rem);
  letter-spacing: 0;
}

h3 {
  margin: 0 0 .65rem;
  font-size: 1.1rem;
}

.hero-content > p:not(.eyebrow) {
  max-width: 670px;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .78rem 1rem;
  border-radius: 7px;
  font-weight: 900;
}

.button.primary {
  background: var(--gold);
  color: #241508;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, .32);
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.hero-panel {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  width: min(1200px, calc(100% - 2rem));
  transform: translate(-50%, 50%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel a {
  padding: 1.25rem;
  border-right: 1px solid var(--line);
  color: var(--ink);
}

.hero-panel a:last-child {
  border-right: 0;
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  color: var(--wine);
  font-size: 1.25rem;
}

.hero-panel span {
  color: var(--muted);
  font-size: .92rem;
}

.section {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 6rem 0;
}

.section,
.directory-section {
  scroll-margin-top: 120px;
}

.institution-drawer {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 55;
  width: 44px;
  transform: translateY(-50%);
}

.institution-drawer-tab {
  width: 44px;
  height: 220px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: var(--wine);
  color: #fff;
  box-shadow: 0 16px 40px rgba(77, 13, 31, .22);
  font: inherit;
  font-weight: 900;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0;
  cursor: pointer;
}

.institution-drawer-panel {
  position: absolute;
  top: 50%;
  left: 44px;
  width: min(380px, calc(100vw - 64px));
  max-height: calc(100vh - 2rem);
  padding: 1rem;
  display: grid;
  gap: .8rem;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateX(-102%) translateY(-50%);
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  transition: transform .22s ease, opacity .22s ease;
}

.institution-drawer.open .institution-drawer-panel {
  transform: translateX(0) translateY(-50%);
  opacity: 1;
  pointer-events: auto;
}

.intro-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: start;
}

.rector-section {
  align-items: center;
}

.rector-media img {
  display: block;
  width: 100%;
  max-width: 520px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.internal-hero {
  padding: 5rem max(1rem, calc((100vw - 1200px) / 2)) 3.25rem;
  color: #fff;
  background: linear-gradient(135deg, #4d0d1f, #0d5670);
}

.internal-hero-inner {
  max-width: 900px;
}

.internal-hero h1 {
  max-width: 860px;
  margin: .35rem 0 0;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: .95;
}

.internal-hero .eyebrow {
  color: #f5d48b;
}

.internal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem;
  align-items: start;
}

.internal-layout.no-sidebar {
  grid-template-columns: minmax(0, 880px);
  justify-content: center;
}

.public-article {
  min-width: 0;
}

.article-body {
  max-width: 880px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.82;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body p {
  margin: 0 0 1.15rem;
  color: #3c4656;
}

.article-body p:first-of-type {
  font-size: 1.16rem;
  color: #253142;
}

.article-body h2,
.article-body h3 {
  margin: 2rem 0 .85rem;
  color: var(--wine);
  line-height: 1.12;
}

.article-body h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.55rem);
}

.article-body h3 {
  font-size: 1.28rem;
}

.article-body strong {
  color: #263242;
}

.article-body em {
  color: var(--wine);
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: .65rem;
  margin: 1.2rem 0 1.7rem;
  padding-left: 1.35rem;
  color: #3c4656;
}

.article-body li::marker {
  color: var(--gold);
  font-weight: 900;
}

.article-body a {
  color: var(--wine);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(118, 19, 44, .28);
  text-underline-offset: .18em;
}

.article-body img,
.article-hero-media img {
  width: 100%;
  max-width: 680px;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-body img {
  margin: 1.2rem 0 1.6rem;
}

.article-hero-media {
  margin: 0 0 2rem;
}

.article-block {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.article-lead {
  font-size: 1.16rem;
  color: #253142;
}

.related-panel {
  position: sticky;
  top: 108px;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 32, 42, .08);
}

.related-panel h2 {
  margin: .25rem 0 1rem;
  color: var(--wine);
  font-size: 1.15rem;
}

.related-panel nav {
  display: grid;
  gap: .55rem;
}

.related-panel a {
  display: block;
  padding: .65rem .7rem;
  border-radius: 6px;
  color: #293443;
  font-weight: 800;
}

.related-panel a:hover,
.related-panel a:focus-visible {
  background: #f7eef2;
  color: var(--wine);
}

.internal-hero {
  padding: 3.2rem max(1rem, calc((100vw - 1200px) / 2)) 3rem;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
  border-bottom: 1px solid var(--line);
}

.internal-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.internal-hero-copy {
  max-width: 860px;
  padding-left: 1.25rem;
  border-left: 6px solid var(--gold);
}

.internal-hero h1 {
  max-width: 820px;
  margin: .35rem 0 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 1.02;
}

.internal-hero .eyebrow {
  color: var(--gold);
}

.internal-page-band {
  padding: 3rem max(1rem, calc((100vw - 1200px) / 2)) 4rem;
  background:
    linear-gradient(180deg, #f7f9fc 0%, #fff 38%);
}

.internal-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 860px) 300px;
  gap: 2.5rem;
  align-items: start;
}

.internal-layout.no-sidebar {
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
}

.article-surface {
  position: relative;
  padding: clamp(1.35rem, 3vw, 3rem);
  border: 1px solid var(--line);
  border-top: 6px solid var(--wine);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(23, 32, 42, .08);
}

.article-surface::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 180px;
  height: 6px;
  background: var(--gold);
  border-radius: 8px 0 0 0;
}

.article-body {
  max-width: none;
  color: var(--ink);
  font-size: 1.07rem;
  line-height: 1.82;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body p {
  margin: 0 0 1.15rem;
  color: #3e4958;
}

.article-body p:first-of-type {
  font-size: 1.12rem;
  color: #263242;
}

.article-body h2,
.article-body h3 {
  margin: 2rem 0 .85rem;
  color: var(--wine);
  line-height: 1.14;
}

.article-body h2 {
  font-size: clamp(1.55rem, 2vw, 2.15rem);
}

.article-body h3 {
  font-size: 1.22rem;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: .7rem;
  margin: 1.15rem 0 1.65rem;
  padding-left: 1.35rem;
  color: #3e4958;
}

.article-body li::marker {
  color: var(--gold);
  font-weight: 900;
}

.article-body a {
  color: var(--wine);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(118, 19, 44, .28);
  text-underline-offset: .18em;
}

.article-body img,
.article-hero-media img {
  width: 100%;
  max-width: 680px;
  height: auto;
  margin-inline: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-hero-media {
  margin: 0 0 2rem;
}

.principle-list {
  display: grid;
  gap: 1.15rem;
}

.principle-list article {
  position: relative;
  padding: 1.35rem 1.35rem 1.35rem 5.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
}

.principle-list span {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 8px;
  background: var(--wine);
  color: #fff;
  font-weight: 950;
}

.principle-list h2 {
  margin-top: 0;
  font-size: 1.22rem;
}

.principle-list p:last-child {
  margin-bottom: 0;
}

.related-panel {
  position: sticky;
  top: 112px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 32, 42, .08);
}

.related-panel h2 {
  margin: .2rem 0 .9rem;
  color: var(--wine);
  font-size: 1.05rem;
}

.related-panel nav {
  display: grid;
  gap: .45rem;
}

.related-panel a {
  display: block;
  padding: .7rem .75rem;
  border-left: 3px solid transparent;
  border-radius: 6px;
  color: #293443;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.3;
}

.related-panel a:hover,
.related-panel a:focus-visible {
  border-left-color: var(--gold);
  background: #f7eef2;
  color: var(--wine);
}

.directory-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 2rem;
  align-items: start;
}

.intro-grid {
  padding-top: 9rem;
}

.intro-grid p,
.split p,
.stacked-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.stacked-copy h2,
.stacked-copy h3 {
  margin: 1.5rem 0 .75rem;
  color: var(--wine);
  line-height: 1.15;
}

.stacked-copy h2 {
  font-size: clamp(1.65rem, 2vw, 2.25rem);
}

.stacked-copy h3 {
  font-size: 1.25rem;
}

.stacked-copy ul,
.stacked-copy ol {
  display: grid;
  gap: .55rem;
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.stacked-copy li::marker {
  color: var(--gold);
  font-weight: 900;
}

.stacked-copy a {
  color: var(--wine);
  font-weight: 800;
}

.stacked-copy img {
  max-width: min(100%, 560px);
  height: auto;
  margin: 1rem 0 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.text-link {
  color: var(--wine);
  font-weight: 900;
}

.directory-copy .cta-card {
  margin-top: 1.5rem;
}

.directory-panel {
  position: sticky;
  top: 110px;
  display: grid;
  gap: .9rem;
}

.directory-card {
  display: grid;
  gap: .85rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(23, 32, 42, .06);
}

.directory-card-head {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.directory-card-head img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  padding: .35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.directory-card-head h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #121826;
}

.directory-card ul,
.stack-list {
  margin: 0;
  padding: 0 0 0 1rem;
  color: #334052;
}

.directory-card li {
  margin: .2rem 0;
}

.directory-card p {
  margin: 0;
  color: var(--muted);
}

.institution-drawer a {
  display: block;
  padding: .1rem 0;
  color: #293443;
  font-weight: 700;
}

.institution-drawer a:hover,
.institution-drawer a:focus-visible {
  color: var(--wine);
  outline: none;
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 0;
}

.cards-4 article,
.values-grid article,
.document-grid article,
.identity-grid article,
.statement-card,
.cta-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(23, 32, 42, .06);
}

.cards-4 article {
  padding: 1.25rem;
}

.cards-4 span {
  display: block;
  color: var(--wine);
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.cards-4 p,
.values-grid p,
.document-grid a span {
  color: var(--muted);
}

.statement-card,
.cta-card {
  padding: 1.5rem;
}

.band {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100vw - 1200px) / 2));
  background: var(--soft);
}

.program-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.2rem;
}

.program-sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
  display: grid;
  gap: .55rem;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.program-sidebar a {
  padding: .7rem .75rem;
  border-radius: 6px;
  color: var(--wine);
  font-weight: 850;
}

.program-sidebar a:hover {
  background: #f7eef2;
}

.programs,
.values-grid,
.link-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.programs a {
  min-height: 112px;
  display: flex;
  align-items: end;
  padding: 1rem;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(118, 19, 44, .95), rgba(13, 86, 112, .92)),
    url("https://instcamp.edu.mx/assets/images/logo-dark2.png") right 1rem top 1rem / 90px auto no-repeat;
}

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

.timeline article {
  padding: 1rem;
  border-left: 4px solid var(--gold);
  background: #fff;
  border-radius: 0 8px 8px 0;
}

.timeline span {
  display: block;
  color: var(--wine);
  font-weight: 950;
}

.content-details {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 1rem 1.25rem;
}

.content-details summary {
  cursor: pointer;
  color: var(--wine);
  font-weight: 900;
}

.content-details p {
  color: var(--muted);
}

.content-details.compact {
  padding: .9rem;
}

.values-grid article {
  padding: 1.15rem;
}

.values-grid h3 {
  color: var(--wine);
}

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

.identity-grid article {
  padding: 1.35rem;
}

.identity-grid article:nth-child(1) {
  background: var(--wine);
  color: #fff;
}

.identity-grid article:nth-child(1) p:not(.eyebrow) {
  color: rgba(255, 255, 255, .85);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.pill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #344050;
  font-weight: 750;
}

.document-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr .8fr;
  gap: 1rem;
}

.document-grid article {
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: .45rem;
}

.document-grid a,
.editorial-list a {
  padding: .68rem .75rem;
  border-radius: 6px;
  background: #f8fafc;
  color: #334052;
  font-weight: 750;
}

.document-grid a:hover,
.editorial-list a:hover {
  background: #f7eef2;
  color: var(--wine);
}

.link-search {
  width: min(320px, 100%);
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: .6rem .8rem;
  font: inherit;
}

.link-directory a {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: .25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.link-directory strong {
  color: var(--wine-dark);
}

.link-directory span {
  color: var(--muted);
  font-size: .9rem;
}

.editorial-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.home-editorial-split {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
}

.home-editorial-copy > h2 {
  max-width: 840px;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.home-feature-grid article {
  min-height: 170px;
  padding: 1.25rem;
  border: 1px solid rgba(118, 19, 44, .12);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(23, 32, 42, .06);
}

.home-feature-grid span,
.document-category,
.link-group > span,
.editorial-cards a > span {
  display: inline-flex;
  margin-bottom: .65rem;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-feature-grid h3 {
  color: var(--wine-dark);
  font-size: 1.12rem;
}

.home-feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.62;
}

.home-editorial-split .statement-card {
  position: sticky;
  top: 112px;
  border-top: 4px solid var(--gold);
}

.document-grid article {
  gap: .35rem;
}

.document-category {
  margin-bottom: .25rem;
}

.document-grid article h3 {
  color: var(--wine-dark);
  font-size: 1.05rem;
}

.document-grid article a {
  display: block;
  padding: .58rem 0;
  border-bottom: 1px solid rgba(23, 32, 42, .08);
  border-radius: 0;
  background: transparent;
  line-height: 1.35;
}

.document-grid article a:last-child {
  border-bottom: 0;
}

.link-directory-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.link-group {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(23, 32, 42, .06);
}

.link-group h3 {
  color: var(--wine-dark);
}

.link-group > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: 1rem;
}

.link-group a {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: .2rem;
  padding: .8rem;
  border: 1px solid rgba(23, 32, 42, .08);
  border-radius: 8px;
  background: #f8fafc;
}

.link-group strong {
  color: var(--wine);
  font-size: .94rem;
}

.link-group small {
  color: var(--muted);
  font-size: .78rem;
}

.editorial-list.editorial-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.editorial-cards a {
  min-height: 154px;
  display: grid;
  align-content: start;
  gap: .45rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(23, 32, 42, .06);
}

.editorial-cards a > strong {
  color: var(--wine-dark);
  line-height: 1.25;
}

.editorial-cards a > small {
  color: var(--muted);
  line-height: 1.45;
}

.cta-card .button {
  margin-top: .7rem;
  width: 100%;
}

.site-footer {
  position: relative;
  padding: 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(201, 154, 63, .16) 0 1px, transparent 1px 100%),
    linear-gradient(135deg, #4d0d1f 0%, #641026 56%, #3b0916 100%);
  background-size: 56px 100%, auto;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--gold);
}

.site-footer-inner {
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3.15rem 0 2.35rem;
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(320px, .85fr) minmax(280px, .7fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.site-footer-identity,
.site-footer-contact,
.site-footer-links {
  min-width: 0;
}

.site-footer-identity {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  padding-right: clamp(1rem, 3vw, 2.25rem);
  border-right: 1px solid rgba(255, 255, 255, .13);
}

.site-footer img {
  width: 100px;
  flex: 0 0 auto;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .2));
}

.site-footer-identity strong {
  display: block;
  max-width: 16rem;
  color: #fff;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.site-footer-identity span,
.site-footer-contact span {
  display: block;
  margin: .2rem 0 .35rem;
  color: #f2c86e;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, .76);
  line-height: 1.65;
}

.site-footer-contact {
  display: grid;
  align-content: start;
  gap: 1.05rem;
}

.site-footer-contact a {
  color: #fff;
  font-weight: 750;
}

.site-footer-links {
  display: grid;
  align-content: start;
  gap: .5rem;
  padding-left: clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid rgba(255, 255, 255, .13);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #fff;
  font-weight: 800;
  line-height: 1.25;
  transition: color .18s ease, transform .18s ease, border-color .18s ease;
}

.site-footer-links a {
  position: relative;
  width: 100%;
  min-height: 0;
  padding: .26rem 0 .26rem 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, .88);
  font-size: .95rem;
  justify-content: flex-start;
}

.site-footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.site-footer a:hover {
  color: #f5d48b;
  transform: translateX(2px);
}

.site-footer-bottom {
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 58px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.site-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
}

.site-footer-social a {
  color: #f5d48b;
}

.site-footer-admin {
  color: rgba(255, 255, 255, .46);
  font-size: .74rem;
  font-weight: 700;
}

.site-footer-admin:hover {
  color: #f5d48b;
}

.announcement-open {
  overflow: hidden;
}

.announcement-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.announcement-overlay[hidden] {
  display: none;
}

.announcement-nav[hidden],
.announcement-action-link[hidden],
.announcement-dismiss[hidden],
.announcement-dots button[hidden] {
  display: none;
}

.announcement-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(201, 154, 63, .24), transparent 34rem),
    rgba(12, 18, 27, .68);
  backdrop-filter: blur(8px);
}

.announcement-dialog {
  position: relative;
  width: min(980px, 100%);
  height: min(760px, calc(100vh - 2.5rem));
  max-height: min(88vh, 820px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .34);
}

.announcement-header,
.announcement-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
}

.announcement-header {
  border-bottom: 1px solid var(--line);
}

.announcement-header span,
.announcement-kicker {
  color: var(--gold);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.announcement-header strong {
  display: block;
  color: var(--ink);
  font-size: .9rem;
}

.announcement-header button {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--wine);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.announcement-track {
  min-height: 0;
  overflow: auto;
}

.announcement-card {
  --announcement-accent: var(--wine);
  --announcement-accent-soft: rgba(118, 19, 44, .08);
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(0, 1.25fr);
  min-height: 100%;
  border-top: 4px solid var(--announcement-accent);
}

.announcement-card--type-urgent {
  --announcement-accent: #b91c1c;
  --announcement-accent-soft: rgba(185, 28, 28, .1);
}

.announcement-card--type-deadline {
  --announcement-accent: #b45309;
  --announcement-accent-soft: rgba(180, 83, 9, .11);
}

.announcement-card--type-results {
  --announcement-accent: #0f5e73;
  --announcement-accent-soft: rgba(15, 94, 115, .1);
}

.announcement-card--type-event,
.announcement-card--type-fair {
  --announcement-accent: var(--gold);
  --announcement-accent-soft: rgba(201, 154, 63, .13);
}

.announcement-card[hidden] {
  display: none;
}

.announcement-card--text-only {
  grid-template-columns: 1fr;
  min-height: 100%;
  background:
    linear-gradient(90deg, var(--announcement-accent-soft), transparent 38%),
    #fff;
}

.announcement-card--text-only .announcement-copy {
  width: min(100%, 760px);
  align-self: center;
  justify-self: center;
  padding: clamp(2rem, 5vw, 4.4rem);
}

.announcement-card--media-focus {
  grid-template-columns: 1fr;
  background: #fff;
}

.announcement-card--media-focus .announcement-copy {
  order: -1;
  align-self: stretch;
  padding: clamp(1rem, 2.2vw, 1.45rem) clamp(1.35rem, 4vw, 2.4rem) .75rem;
}

.announcement-card--media-focus .announcement-media {
  min-height: 0;
  padding: 0 1.25rem 1.25rem;
  background:
    linear-gradient(90deg, rgba(118, 19, 44, .08), rgba(15, 94, 115, .08)),
    #eef2f7;
}

.announcement-card--media-focus .announcement-media img,
.announcement-card--media-focus .announcement-media video,
.announcement-card--media-focus .announcement-document-viewer {
  max-height: min(54vh, 430px);
}

.announcement-media {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(118, 19, 44, .12), rgba(13, 86, 112, .12)),
    #f7f8fb;
}

.announcement-card--type-urgent .announcement-media {
  background:
    linear-gradient(135deg, rgba(185, 28, 28, .14), rgba(118, 19, 44, .08)),
    #fff7f7;
}

.announcement-media img,
.announcement-media video {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 32, 42, .16);
}

.announcement-card--media-focus .announcement-media img {
  width: min(100%, 720px);
  max-height: min(48vh, 410px);
  border-radius: 6px;
  object-fit: contain;
}

.announcement-media audio {
  width: 100%;
}

.announcement-document-viewer {
  display: grid;
  grid-template-rows: minmax(16rem, 1fr) auto auto;
  width: 100%;
  height: min(54vh, 470px);
  overflow: hidden;
  border: 1px solid rgba(118, 19, 44, .16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 32, 42, .16);
}

.announcement-document-viewer iframe {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  border: 0;
  background: #fff;
}

.announcement-document-viewer--external {
  grid-template-rows: 1fr auto auto;
}

.announcement-document-placeholder {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .75rem;
  min-height: 15rem;
  padding: 2rem;
  background:
    linear-gradient(145deg, rgba(118, 19, 44, .08), rgba(15, 94, 115, .08)),
    #f8fafc;
  text-align: center;
}

.announcement-document-placeholder span {
  display: inline-flex;
  min-width: 4.2rem;
  min-height: 4.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  font-size: .92rem;
  font-weight: 900;
}

.announcement-document-placeholder strong {
  max-width: 18rem;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: .98rem;
}

.announcement-document-placeholder p {
  max-width: 22rem;
  margin: 0;
  color: #596678;
  font-size: .86rem;
  line-height: 1.45;
}

.announcement-document-note {
  display: grid;
  gap: .2rem;
  padding: .65rem .8rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(201, 154, 63, .1), rgba(118, 19, 44, .05));
}

.announcement-document-note strong {
  color: var(--announcement-accent);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.announcement-document-note span {
  color: #4d5969;
  font-size: .78rem;
  line-height: 1.35;
}

.announcement-document-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem .8rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.announcement-document-actions strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcement-document-links {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: .7rem;
}

.announcement-document-actions a {
  flex: 0 0 auto;
  color: var(--wine);
  font-size: .82rem;
  font-weight: 900;
  text-decoration: none;
}

.announcement-media-file a {
  display: grid;
  gap: .35rem;
  width: min(100%, 320px);
  padding: 1.25rem;
  border: 1px solid rgba(118, 19, 44, .18);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.announcement-media-file strong {
  color: var(--wine);
}

.announcement-media-file span {
  color: var(--muted);
  font-size: .88rem;
  overflow-wrap: anywhere;
}

.announcement-copy {
  align-self: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.announcement-kicker {
  display: grid;
  gap: .15rem;
  margin: 0 0 .65rem;
}

.announcement-kicker span {
  color: var(--announcement-accent);
}

.announcement-kicker small {
  color: #667386;
  font-size: .72rem;
  font-weight: 800;
  text-transform: none;
}

.announcement-copy h2 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.18;
}

.announcement-card--text-only .announcement-copy h2 {
  max-width: 20ch;
}

.announcement-card--media-focus .announcement-copy h2 {
  max-width: none;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
}

.announcement-summary {
  max-width: 42rem;
  margin: .95rem 0 0;
  color: #344050;
  font-size: .98rem;
  font-weight: 700;
}

.announcement-card--media-focus .announcement-summary {
  margin-top: .6rem;
}

.announcement-body {
  max-width: 44rem;
  margin-top: 1rem;
  color: #4d5969;
}

.announcement-body p:last-child {
  margin-bottom: 0;
}

.announcement-footer {
  border-top: 1px solid var(--line);
}

.announcement-nav,
.announcement-actions,
.announcement-dots {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.announcement-position {
  display: flex;
  min-width: 8rem;
  align-items: center;
  justify-content: center;
}

.announcement-progress {
  display: none;
  width: min(9.5rem, 24vw);
  height: .38rem;
  overflow: hidden;
  border-radius: 999px;
  background: #d4dae3;
}

.announcement-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--wine);
  transition: width .22s ease;
}

.announcement-nav--many .announcement-dots {
  display: none;
}

.announcement-nav--many .announcement-progress {
  display: block;
}

.announcement-nav button,
.announcement-close,
.announcement-dismiss,
.announcement-action-link {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-weight: 900;
  cursor: pointer;
}

.announcement-nav button,
.announcement-close {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: .5rem .75rem;
}

.announcement-dots button {
  width: .65rem;
  height: .65rem;
  min-height: .65rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d4dae3;
}

.announcement-dots button.is-active {
  background: var(--wine);
}

.announcement-dismiss,
.announcement-action-link {
  border: 0;
  padding: .55rem .9rem;
}

.announcement-dismiss {
  background: var(--wine);
  color: #fff;
}

.announcement-action-link {
  background: var(--gold);
  color: #261707;
}

.announcement-action-link:hover,
.announcement-dismiss:hover,
.announcement-close:hover,
.announcement-nav button:hover,
.announcement-document-actions a:hover {
  filter: brightness(.96);
}

@media (max-width: 1080px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: .75rem 1rem 1rem;
    border-top: 1px solid var(--line);
    background: #fff;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-item > button,
  .nav-menu > a {
    width: 100%;
    text-align: left;
  }

  .mega-menu,
  .mega-menu.wide {
    position: static;
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin-bottom: .5rem;
  }

  .nav-item.open .mega-menu {
    display: grid;
  }

  .quick-rail {
    display: none;
  }

  .cards-4,
  .timeline,
  .programs,
  .values-grid,
  .link-directory,
  .identity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-layout,
  .document-grid,
  .home-editorial-split,
  .internal-layout,
  .internal-layout.no-sidebar {
    grid-template-columns: 1fr;
  }

  .program-sidebar {
    position: static;
  }

  .home-editorial-split .statement-card {
    position: static;
  }

  .link-directory-groups,
  .editorial-list.editorial-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-panel {
    position: static;
  }
}

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

  .main-nav {
    min-height: 72px;
  }

  .brand {
    min-width: 0;
    gap: .7rem;
    padding-right: .25rem;
  }

  .brand img {
    width: 62px;
    height: 50px;
    padding: .32rem;
  }

  .brand span {
    padding-left: .65rem;
  }

  .brand span::before {
    width: 2px;
  }

  .brand strong {
    font-size: .9rem;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .internal-hero {
    padding-top: 3.5rem;
    padding-bottom: 2.4rem;
  }

  .internal-page-band {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .article-surface {
    padding: 1.15rem;
  }

  .principle-list article {
    padding: 1rem;
  }

  .principle-list span {
    position: static;
    margin-bottom: .75rem;
  }

  .hero-content {
    padding: 5rem 0 9rem;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    transform: translate(-50%, 60%);
  }

  .hero-panel a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: .95rem;
  }

  .intro-grid {
    padding-top: 12rem;
  }

  .intro-grid,
  .split,
  .section-heading {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section {
    padding: 4rem 0;
  }

  .cards-4,
  .timeline,
  .programs,
  .values-grid,
  .link-directory,
  .link-directory-groups,
  .link-group > div,
  .home-feature-grid,
  .identity-grid,
  .editorial-list,
  .editorial-list.editorial-cards {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-top: 0;
  }

  .site-footer-inner {
    width: min(100% - 2rem, 640px);
    grid-template-columns: 1fr;
    gap: 1.85rem;
    padding: 2.35rem 0 1.6rem;
  }

  .site-footer-identity {
    gap: .85rem;
    padding-right: 0;
    border-right: 0;
  }

  .site-footer-links {
    padding-left: 0;
    border-left: 0;
  }

  .site-footer-bottom {
    width: min(100% - 2rem, 640px);
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 1rem 0 1.25rem;
  }

  .institution-drawer {
    top: 50%;
  }

  .institution-drawer-tab {
    height: 190px;
  }

  .institution-drawer-panel {
    width: min(300px, calc(100vw - 56px));
  }

  .announcement-overlay {
    padding: .75rem;
  }

  .announcement-dialog {
    height: min(92vh, 780px);
    max-height: 92vh;
  }

  .announcement-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .announcement-card--text-only .announcement-copy {
    width: 100%;
    padding: 1.35rem;
  }

  .announcement-media {
    min-height: 180px;
    padding: .9rem;
  }

  .announcement-media img,
  .announcement-media video {
    max-height: 260px;
  }

  .announcement-document-viewer {
    height: min(46vh, 360px);
    grid-template-rows: minmax(13rem, 1fr) auto auto;
  }

  .announcement-document-viewer iframe {
    min-height: 13rem;
  }

  .announcement-document-placeholder {
    min-height: 13rem;
    padding: 1.25rem;
  }

  .announcement-document-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .announcement-document-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .announcement-copy {
    padding: 1.2rem;
  }

  .announcement-copy h2,
  .announcement-card--media-focus .announcement-copy h2 {
    max-width: none;
    font-size: clamp(1.05rem, 5vw, 1.35rem);
  }

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

  .announcement-nav,
  .announcement-actions {
    justify-content: space-between;
  }

  .announcement-actions {
    flex-wrap: wrap;
  }

  .announcement-action-link,
  .announcement-close,
  .announcement-dismiss {
    flex: 1 1 auto;
  }
}

/* Institutional detail pages */
.page-detail {
  background:
    radial-gradient(circle at 12% 6%, rgba(201, 154, 63, .11), transparent 24rem),
    linear-gradient(180deg, #fff 0, #fff 148px, #f4f7fa 148px, #f4f7fa 100%);
}

.page-detail-hero {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(110deg, rgba(100, 5, 31, .075), rgba(200, 158, 76, .09) 45%, rgba(13, 86, 112, .045) 78%),
    #fff;
}

.page-detail-hero-inner {
  width: min(100% - 2rem, 1200px);
  margin: 0 auto;
  padding: clamp(1.85rem, 4vw, 3.2rem) 0 clamp(1.25rem, 2.6vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 860px) 280px;
  gap: 1.5rem;
}

.page-detail-hero .eyebrow {
  margin: 0 0 .65rem;
  color: var(--gold);
}

.page-detail-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.1rem, 3.35vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.page-detail-hero-copy {
  max-width: none;
  padding-left: 1rem;
  border-left: 4px solid var(--gold);
}

.page-detail-band {
  padding: 0 0 clamp(4rem, 7vw, 6rem);
}

.page-detail-shell {
  width: min(100% - 2rem, 1040px);
  margin: 0 auto;
}

.page-detail-shell.has-related {
  width: min(100% - 2rem, 1200px);
  display: grid;
  grid-template-columns: minmax(0, 860px) 280px;
  gap: 1.5rem;
  align-items: start;
}

.page-detail-document {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3.5vw, 3.5rem);
  border: 1px solid rgba(23, 32, 42, .09);
  border-top: 5px solid var(--wine);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(23, 32, 42, .08);
}

.page-detail-shell.has-related .page-detail-document {
  max-width: none;
  margin: 0;
}

.page-detail-document::before {
  content: "";
  position: absolute;
  top: -5px;
  left: clamp(1.5rem, 3.5vw, 3.5rem);
  width: 112px;
  height: 5px;
  background: var(--gold);
}

.page-detail .article-body {
  max-width: 760px;
  margin: 0 auto;
  color: #334051;
  font-size: 1.04rem;
  line-height: 1.86;
}

.page-detail .article-body > :first-child {
  margin-top: 0;
}

.page-detail .article-body > :last-child {
  margin-bottom: 0;
}

.page-detail .article-body p {
  margin: 0 0 1.15rem;
  color: #334051;
}

.page-detail .article-body p:first-of-type {
  font-size: clamp(1.08rem, 1.7vw, 1.2rem);
  line-height: 1.78;
  color: #253142;
}

.page-detail .article-content-main > h2:first-child,
.page-detail .article-content-main > h3:first-child {
  margin-top: 0;
}

.page-detail .article-body h2 {
  margin: 2.35rem 0 .85rem;
  color: var(--wine);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.14;
}

.page-detail .article-body h3 {
  margin: 1.85rem 0 .7rem;
  color: #202b3a;
  font-size: 1.2rem;
  line-height: 1.25;
}

.page-detail .article-body strong {
  color: #1d2735;
  font-weight: 850;
}

.page-detail .article-body em {
  color: #465263;
}

.page-detail .article-body ul,
.page-detail .article-body ol {
  margin: 1.1rem 0 1.5rem;
  padding-left: 1.35rem;
}

.page-detail .article-body li {
  margin: .45rem 0;
}

.page-detail .article-body li::marker {
  color: var(--gold);
  font-weight: 900;
}

.page-detail .article-body a {
  color: var(--wine);
  font-weight: 850;
  text-decoration-color: rgba(100, 5, 31, .3);
  text-underline-offset: .18em;
}

.page-detail .article-body blockquote {
  margin: 2rem 0;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--gold);
  background: #fbf8f0;
  color: #253142;
}

.page-detail .article-body figure,
.page-detail .article-hero-media {
  margin: 0 0 2rem;
}

.page-detail .article-body img,
.page-detail .article-hero-media img {
  display: block;
  width: min(100%, 760px);
  height: auto;
  margin: 1.5rem auto;
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(23, 32, 42, .12);
}

.page-detail .article-body table {
  width: 100% !important;
  max-width: 760px;
  margin: 2rem auto;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 32, 42, .07);
}

.page-detail .article-link-grid a,
.page-detail .article-file-list a {
  box-shadow: 0 12px 28px rgba(23, 32, 42, .055);
}

.page-detail .article-body th,
.page-detail .article-body td {
  width: auto !important;
  padding: 1.1rem 1.2rem;
  border: 0;
  border-right: 1px solid var(--line);
  vertical-align: top;
  color: #2d3847;
}

.page-detail .article-body tr + tr th,
.page-detail .article-body tr + tr td {
  border-top: 1px solid var(--line);
}

.page-detail .article-body th:last-child,
.page-detail .article-body td:last-child {
  border-right: 0;
}

.page-detail .article-body audio {
  display: block;
  width: min(100%, 440px);
  margin: .75rem 0 1.75rem;
}

.page-detail .article-block {
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}

.article-alert {
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border: 1px solid rgba(118, 19, 44, .18);
  border-left: .35rem solid var(--wine);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(118, 19, 44, .06), rgba(203, 151, 46, .1));
}

.article-file-list,
.article-link-grid,
.article-media-gallery,
.article-faq {
  display: grid;
  gap: .85rem;
}

.article-file-list,
.article-link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-file-list a,
.article-link-grid a {
  display: grid;
  gap: .25rem;
  min-height: 5rem;
  padding: 1rem;
  border: 1px solid rgba(118, 19, 44, .12);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.article-file-list a:hover,
.article-link-grid a:hover,
.article-file-list a:focus-visible,
.article-link-grid a:focus-visible {
  border-color: rgba(118, 19, 44, .36);
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, .08);
  outline: 0;
}

.article-file-list strong,
.article-link-grid strong {
  color: var(--wine);
  line-height: 1.25;
}

.article-file-list span,
.article-link-grid span {
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.45;
}

.article-media-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-media-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(118, 19, 44, .12);
  border-radius: 8px;
  background: #fff;
}

.article-media-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.article-media-gallery figcaption {
  padding: .75rem;
  color: var(--ink-soft);
  font-size: .86rem;
  line-height: 1.4;
}

.article-embed {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #111827;
}

.article-embed iframe,
.article-media-player {
  width: 100%;
  height: 100%;
  border: 0;
}

.article-media-player {
  display: block;
  max-height: 32rem;
  border-radius: 8px;
  background: #111827;
}

.article-faq details {
  border: 1px solid rgba(118, 19, 44, .12);
  border-radius: 8px;
  background: #fff;
}

.article-faq summary {
  cursor: pointer;
  padding: 1rem;
  color: var(--wine);
  font-weight: 800;
}

.article-faq details > div {
  padding: 0 1rem 1rem;
  color: var(--ink-soft);
}

.article-contact-card {
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border: 1px solid rgba(118, 19, 44, .14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, .06);
}

.page-detail .article-lead {
  color: #526071;
  font-size: 1.12rem;
}

.page-detail .principle-list {
  gap: 1rem;
}

.page-detail .principle-list article {
  border-radius: 8px;
  border: 1px solid rgba(23, 32, 42, .09);
  background: #fbfcfe;
  box-shadow: none;
}

.page-detail-aside {
  position: sticky;
  top: 112px;
}

.page-detail-related {
  display: grid;
  gap: .55rem;
  padding: 1rem;
  border: 1px solid rgba(23, 32, 42, .08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(23, 32, 42, .06);
}

.page-detail-related span {
  margin: .1rem 0 .45rem;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.page-detail-related a {
  display: grid;
  gap: .25rem;
  padding: .72rem .75rem;
  border: 1px solid rgba(100, 5, 31, .14);
  border-left: 3px solid transparent;
  border-radius: 7px;
  background: #fbfcfe;
  color: #273344;
  text-decoration: none;
}

.page-detail-related a strong {
  color: var(--wine-dark);
  font-size: .92rem;
  line-height: 1.28;
}

.page-detail-related a small {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.4;
}

.page-detail-related a:hover,
.page-detail-related a:focus-visible {
  border-color: rgba(100, 5, 31, .42);
  border-left-color: var(--gold);
  color: var(--wine);
}

@media (max-width: 760px) {
  .page-detail {
    background: #f6f7f9;
  }

  .page-detail-hero-inner,
  .page-detail-shell {
    width: min(100% - 1.25rem, 1200px);
  }

  .page-detail-hero h1 {
    font-size: clamp(1.9rem, 10vw, 2.85rem);
  }

  .page-detail-document {
    padding: 1.15rem;
  }

  .page-detail .article-body {
    font-size: 1rem;
    line-height: 1.78;
  }

  .page-detail .article-body table {
    display: block;
    overflow-x: auto;
    table-layout: auto;
  }

  .page-detail .article-body th,
  .page-detail .article-body td {
    min-width: 230px;
    padding: .9rem;
  }

  .article-file-list,
  .article-link-grid,
  .article-media-gallery {
    grid-template-columns: 1fr;
  }

  .institution-drawer {
    display: none;
  }
}

@media (max-width: 1080px) {
  .page-detail-hero-inner,
  .page-detail-shell.has-related {
    grid-template-columns: 1fr;
  }

  .page-detail-aside {
    position: static;
    order: 2;
  }

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

  .page-detail-related span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .page-detail-hero-copy {
    padding-left: .85rem;
  }

  .page-detail-related {
    grid-template-columns: 1fr;
  }
}

