/* Design tokens live in tokens.css (loaded before this file). */

* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
}

a {
  text-decoration: none;
}

.corp-strip {
  background: var(--uitm-purple-deep);
  color: #fff;
  padding: .5rem 0;
  font-size: .88rem;
  border-bottom: 4px solid var(--uitm-gold);
}

.corp-strip span {
  font-weight: 750;
}

.corp-strip a {
  color: rgba(255, 255, 255, .82);
  font-weight: 650;
}

.corp-strip a:hover {
  color: #fff;
}

.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(42, 11, 63, .06);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--uitm-purple-dark);
}

.navbar-brand-logo {
  display: block;
  width: auto;
  height: 44px;
  max-width: min(260px, 48vw);
  object-fit: contain;
  flex: 0 0 auto;
}


.navbar-brand:hover {
  color: var(--uitm-purple-dark);
}

.navbar-brand strong {
  display: block;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.navbar-brand small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
}

.brand-mark {
  width: 56px;
  height: 44px;
  display: inline-flex;
  place-items: center;
  border-radius: 8px;
  color: var(--uitm-purple-dark);
  background: linear-gradient(135deg, var(--uitm-gold), #ffe28a);
  border: 1px solid rgba(200, 149, 22, .4);
  font-weight: 900;
  font-size: .9rem;
}

.main-nav .nav-link {
  color: #51465d;
  font-weight: 700;
  padding-inline: .8rem;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--uitm-purple);
}

.btn-admin,
.btn-search,
.btn-next,
.btn-primary-brand,
.btn-filter {
  border-radius: 8px;
  font-weight: 750;
}

.btn-admin {
  background: var(--uitm-purple);
  color: #fff;
  padding: .58rem .9rem;
}

.btn-admin:hover {
  background: var(--uitm-purple-dark);
  color: #fff;
}

.hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}


.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(23, 5, 31, .96) 0%, rgba(75, 20, 111, .84) 45%, rgba(8, 125, 129, .34) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, .08));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  color: #fff;
}


.eyebrow,
.section-heading p,
.panel-kicker {
  margin: 0 0 .7rem;
  color: var(--teal);
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.hero-section h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}


.hero-lead {
  max-width: 720px;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 1.12rem;
  line-height: 1.7;
}

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

.btn-primary-brand {
  background: var(--uitm-gold);
  color: var(--uitm-purple-dark);
  border: 1px solid rgba(255, 226, 138, .65);
  padding: .72rem 1rem;
}

.btn-primary-brand:hover {
  background: #ffda65;
  color: var(--uitm-purple-dark);
}

.search-panel {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .65);
  border-top: 5px solid var(--uitm-gold);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
  color: var(--ink);
}

.panel-kicker {
  display: block;
  color: var(--uitm-purple);
}

.search-panel label,
.filter-panel label {
  display: block;
  margin-bottom: .55rem;
  font-weight: 800;
}

.search-panel .input-group {
  min-height: 52px;
}

.search-panel .form-control,
.search-panel .input-group-text,
.btn-search {
  border-color: #ddd2e6;
}

.search-panel .form-control {
  min-width: 0;
}

.btn-search,
.btn-filter {
  background: var(--uitm-purple);
  color: #fff;
  min-width: 82px;
}

.btn-search:hover,
.btn-filter:hover {
  background: var(--uitm-purple-dark);
  color: #fff;
}

.quick-links {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  margin-top: .9rem;
}

.quick-links a {
  color: var(--uitm-purple);
  background: #f3edf7;
  border: 1px solid #e4d7ec;
  border-radius: 8px;
  padding: .4rem .62rem;
  font-size: .88rem;
  font-weight: 750;
}

.stats-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}

.metric {
  border-left: 4px solid var(--uitm-gold);
  padding: .35rem 0 .35rem 1rem;
}

.metric strong {
  display: block;
  color: var(--uitm-purple-dark);
  font-size: 1.65rem;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 4.5rem 0;
}

.section-muted {
  background: var(--soft);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--uitm-purple-dark);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 850;
  letter-spacing: 0;
}

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

.collection-card {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .8rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-top: 5px solid var(--uitm-purple);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 28px rgba(42, 11, 63, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.collection-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 125, 129, .4);
  border-top-color: var(--uitm-gold);
  box-shadow: var(--shadow);
}

.collection-card i {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #fdf3cf;
  color: var(--uitm-purple);
  font-size: 1.45rem;
}

.collection-card span {
  font-size: 1.12rem;
  font-weight: 840;
}

.collection-card small {
  color: var(--muted);
  line-height: 1.55;
}

.archive-shell {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 1rem;
  align-items: start;
}

.filter-panel,
.record-list,
.admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(42, 11, 63, .08);
}

.filter-panel {
  padding: 1.25rem;
  border-top: 5px solid var(--uitm-gold);
}

.filter-panel h3 {
  margin: 0 0 1rem;
  color: var(--uitm-purple-dark);
  font-size: 1.1rem;
  font-weight: 850;
}

.filter-panel .form-select {
  margin-bottom: 1rem;
  border-color: #ddd2e6;
}

.filter-panel .btn-filter {
  width: 100%;
  min-height: 44px;
}

.record-list {
  overflow: visible;
}

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

.record-card-grid-full {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.record-card {
  content-visibility: auto;
  contain-intrinsic-size: 360px;
  contain: layout paint style;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(35, 18, 48, .08);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.record-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--uitm-purple), var(--uitm-gold));
  opacity: .9;
}

.record-card:hover {
  color: var(--ink);
  background: #fbfafc;
  transform: translateY(-2px);
  border-color: rgba(8, 125, 129, .24);
  box-shadow: 0 18px 36px rgba(35, 18, 48, .13);
}

.record-thumb {
  contain: layout paint;
  transform: translateZ(0);
  backface-visibility: hidden;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f6f1f8;
  transition: transform .2s ease;
}

.record-thumb img,
.record-thumb-fallback {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.record-thumb img {
  object-fit: cover;
  object-position: center top;
  image-rendering: auto;
}

.record-thumb-fallback {
  display: grid;
  place-items: center;
  color: var(--uitm-purple-dark);
  background: var(--uitm-gold);
  text-align: center;
  line-height: 1.05;
  font-weight: 900;
  font-size: 1.45rem;
}

@media (hover: hover) and (pointer: fine) {
  .record-card:hover .record-thumb {
    transform: translateZ(0) scale(1.02);
  }
}

.record-card-body {
  display: grid;
  flex: 1 1 auto;
  gap: .45rem;
  min-width: 0;
  padding: 1rem 1rem 1.1rem;
  align-content: start;
}

.record-card-copy {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.record-memory-footer {
  position: relative;
  display: block;
  margin-top: auto;
  padding: .8rem 1rem .95rem;
  background: #fff;
}

.record-memory-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--uitm-purple), var(--uitm-gold));
  opacity: .9;
}

.record-memory-meta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  max-width: 100%;
  margin-top: .45rem;
  color: var(--muted);
}

.record-memory-meta .record-date {
  min-height: 24px;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: rgba(224, 172, 55, .2);
  font-size: .7rem;
}

.record-age {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.25;
  font-weight: 700;
}

.record-age::before {
  content: "\F293";
  font-family: "bootstrap-icons";
  color: var(--uitm-purple);
  font-size: .82rem;
  line-height: 1;
}

.record-meta-line {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
}

.record-meta-line i {
  color: var(--uitm-purple);
  font-size: .95rem;
}

.record-date {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .25rem .55rem;
  border-radius: 999px;
  color: var(--uitm-purple-dark);
  background: rgba(224, 172, 55, .22);
  font-size: .72rem;
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
}

.record-card strong {
  display: block;
  color: var(--uitm-purple-dark);
  font-size: 1.03rem;
  line-height: 1.35;
}

.record-card small {
  color: var(--muted);
  line-height: 1.45;
}

.record-card-action {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--uitm-purple-dark);
  background: #f6f1f8;
}

.about-section p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.admin-panel {
  padding: 1.5rem;
  border-top: 5px solid var(--teal);
}

.admin-panel i {
  color: var(--teal);
  font-size: 2.1rem;
}

.admin-panel h3 {
  margin-top: .48rem;
  color: var(--uitm-purple-dark);
  font-weight: 840;
}

.backend-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: .2rem 0 1rem;
  padding: .35rem .65rem;
  border-radius: 8px;
  font-size: .86rem;
  font-weight: 800;
}

.backend-status.is-live {
  color: #055d60;
  background: #dff7f3;
}

.backend-status.is-fallback {
  color: var(--uitm-purple-dark);
  background: #f3edf7;
}

.btn-next {
  background: var(--teal);
  color: #fff;
  padding: .7rem 1rem;
}

.btn-next:hover {
  background: #06686c;
  color: #fff;
}

.site-footer {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .045), transparent 34%),
    var(--uitm-purple-deep);
  color: #fff;
  padding: 1.35rem 0;
  border-top: 5px solid var(--uitm-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  align-items: stretch;
}

.footer-segment {
  min-width: 0;
  padding: .85rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
}

.footer-brand-segment {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.footer-uitm-logo {
  flex: 0 0 auto;
  width: clamp(52px, 5vw, 64px);
  height: auto;
  padding: .45rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(18, 10, 44, .24);
}

.footer-contact-segment {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .45rem;
}

.site-footer span,
.site-footer small {
  color: rgba(255, 255, 255, .74);
}

.site-footer span {
  display: block;
}

.site-footer strong {
  display: block;
  line-height: 1.2;
}

.footer-analytics {
  min-width: 0;
}

.footer-dashboard {
  position: relative;
  overflow: hidden;
  padding: .85rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)),
    linear-gradient(180deg, rgba(250, 204, 21, .12), transparent 46%);
  box-shadow: 0 12px 28px rgba(18, 10, 44, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
  animation: footerDashboardIn .7s ease both;
}

.footer-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.footer-dashboard-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  margin-bottom: .5rem;
}

.site-footer .footer-analytics-source {
  color: #2b174f;
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  margin-bottom: .24rem;
  padding: .28rem .46rem;
  border-radius: 8px;
  background: var(--uitm-gold);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-footer .footer-analytics-source span {
  color: inherit;
  display: inline;
  line-height: 1.1;
}

.footer-dashboard-title {
  color: #fff;
  display: block;
  margin-top: .12rem;
  font-size: .92rem;
  line-height: 1.1;
}

.site-footer .footer-dashboard-live {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .55rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(16, 185, 129, .14);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.footer-dashboard-live i {
  color: #34d399;
  font-size: .45rem;
  filter: drop-shadow(0 0 7px rgba(52, 211, 153, .85));
  animation: footerPulse 1.6s ease-in-out infinite;
}

.footer-analytics-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

.footer-analytics-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: .65rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)),
    rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  animation: footerMetricIn .65s ease both;
}

.footer-analytics-card:nth-child(2) {
  animation-delay: .12s;
}

.footer-analytics-card::after {
  content: "";
  position: absolute;
  width: 86px;
  height: 86px;
  right: -26px;
  top: -30px;
  border-radius: 999px;
  background: rgba(250, 204, 21, .16);
}

.footer-analytics-card-accent::after {
  background: rgba(56, 189, 248, .18);
}

.footer-metric-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .42rem;
}

.footer-metric-top > span {
  min-width: 0;
}

.site-footer .footer-metric-icon small {
  color: inherit;
  font-size: .62rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.site-footer .footer-metric-icon {
  color: #2b174f;
  display: inline-flex;
  width: auto;
  min-height: 28px;
  padding: .26rem .4rem;
  align-items: center;
  gap: .28rem;
  border-radius: 8px;
  background: var(--uitm-gold);
  box-shadow: 0 10px 20px rgba(250, 204, 21, .18);
}

.footer-analytics-card-accent .footer-metric-icon {
  color: #062437;
  background: #7dd3fc;
}

.footer-analytics-period {
  color: rgba(255, 255, 255, .86);
  display: block;
  margin-top: .08rem;
  font-size: .68rem;
  font-weight: 800;
}

.footer-metric-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: .4rem;
  margin-top: .48rem;
}

.footer-metric-main strong {
  color: #fff;
  display: block;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: .9;
  letter-spacing: 0;
}

.footer-metric-main small {
  margin-bottom: .05rem;
  font-size: .64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-metric-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: .45rem;
  margin-top: .46rem;
  padding-top: .38rem;
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.footer-metric-bottom b {
  color: #fff;
  font-size: .95rem;
}

.footer-analytics-sub {
  color: rgba(255, 255, 255, .72);
  display: block;
  font-size: .68rem;
}

.footer-metric-bar {
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .45rem;
  height: 0;
  overflow: hidden;
  border-radius: 999px;
  display: none;
  background: rgba(255, 255, 255, .14);
}

.site-footer .footer-metric-bar span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--uitm-gold), #fff3b0);
  animation: footerBarGrow .9s .18s ease both;
}

.site-footer .footer-metric-bar-year span {
  width: 88%;
  background: linear-gradient(90deg, #7dd3fc, #ffffff);
}


@keyframes footerDashboardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes footerMetricIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes footerBarGrow {
  from {
    transform: translateX(-105%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes footerPulse {
  0%, 100% {
    opacity: .45;
    transform: scale(.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-dashboard,
  .footer-analytics-card,
  .footer-dashboard-live i,
  .footer-metric-bar span {
    animation: none;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
  }

  .hero-content {
    padding-top: 4rem;
    padding-bottom: 3.5rem;
  }

  .collection-grid,
  .archive-shell {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-analytics {
    grid-column: 1 / -1;
  }

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

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

@media (max-width: 767.98px) {
  .footer-brand-segment {
    align-items: flex-start;
  }

  .footer-dashboard-head {
    align-items: flex-start;
  }

  .footer-analytics-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .corp-strip .container > div {
    width: 100%;
    justify-content: space-between;
  }

  .navbar-brand-logo {
    height: 38px;
    max-width: min(220px, 58vw);
  }


  .hero-section h1 {
    font-size: 3.1rem;
  }

  .search-panel {
    width: 100%;
  }

  .search-panel .input-group {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    width: 100%;
  }

  .search-panel .input-group-text {
    width: 48px;
    justify-content: center;
  }

  .search-panel .form-control {
    width: 100%;
    min-width: 0;
  }

  .search-panel .input-group .btn-search {
    grid-column: 1 / -1;
    width: 100%;
    border-radius: 8px;
    margin-top: .6rem;
    min-height: 46px;
  }

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

  .record-card-grid {
    grid-template-columns: 1fr;
    padding: .75rem;
  }

  .record-card-grid-full {
    grid-template-columns: 1fr;
  }

  .record-card {
    min-height: 100%;
  }

  .record-card-body {
    padding: .85rem .9rem .95rem;
  }

  .record-thumb {
    aspect-ratio: 16 / 10;
  }
}


.article-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.article-hero img,
.article-hero-overlay {
  position: absolute;
  inset: 0;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero-overlay {
  background:
    linear-gradient(90deg, rgba(23, 5, 31, .96) 0%, rgba(75, 20, 111, .82) 55%, rgba(8, 125, 129, .34) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .06));
  pointer-events: none;
}

.article-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, .86);
  font-weight: 750;
}

.article-back:hover {
  color: #fff;
}

.article-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.article-summary {
  max-width: 820px;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 1.08rem;
  line-height: 1.75;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.4rem;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .35rem .7rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-weight: 750;
  font-size: .9rem;
}

.article-body-section {
  background: var(--soft);
  padding: 3rem 0 4rem;
}

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

.article-copy,
.article-sidebar,
.empty-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-copy {
  padding: clamp(1.25rem, 3vw, 2.4rem);
  font-size: 1.03rem;
  line-height: 1.85;
  color: #33223f;
  white-space: normal;
}

.article-gallery {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.4vw, 1.5rem);
}

.article-gallery h2 {
  margin: 0 0 1rem;
  color: var(--uitm-purple-dark);
  font-size: 1.2rem;
  font-weight: 850;
}

.article-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .85rem;
}

.article-gallery figure {
  margin: 0;
}

.article-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.article-gallery figcaption {
  margin-top: .45rem;
  color: var(--muted);
  font-size: .9rem;
}


.gallery-item {
  cursor: zoom-in;
}

.lightbox-shell {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(23, 5, 31, .28);
}

.lightbox-shell .modal-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.lightbox-shell .modal-body {
  background: #fff;
  padding: 1rem;
}

.lightbox-actions {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}

.btn-outline-uitm {
  border: 1px solid var(--uitm-purple);
  color: var(--uitm-purple);
  border-radius: 8px;
  font-weight: 750;
}

.btn-outline-uitm:hover {
  background: var(--uitm-purple);
  color: #fff;
}

.lightbox-image {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
  background: #f4eef7;
}

@media (max-width: 575.98px) {
  .lightbox-actions {
    flex-direction: column;
  }

  .lightbox-image {
    max-height: 62vh;
  }
}

.article-sidebar {
  padding: 1.25rem;
  position: sticky;
  top: 1rem;
}

.article-sidebar h2 {
  margin: 0 0 1rem;
  color: var(--uitm-purple-dark);
  font-size: 1.15rem;
  font-weight: 850;
}

.article-sidebar dl,
.article-sidebar dd {
  margin: 0;
}

.article-sidebar dt {
  margin-top: .9rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.article-sidebar dd {
  margin-top: .2rem;
  color: var(--ink);
  font-weight: 750;
}

.article-empty {
  background: var(--soft);
  min-height: 58vh;
  padding: 4rem 0;
}

.empty-panel {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.empty-panel i {
  color: var(--teal);
  font-size: 2.5rem;
}

.empty-panel h1 {
  margin: .8rem 0 .4rem;
  color: var(--uitm-purple-dark);
  font-weight: 900;
}

.empty-panel p {
  color: var(--muted);
}

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

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .article-hero {
    min-height: 460px;
  }

  .article-hero-content {
    padding-top: 3.25rem;
    padding-bottom: 2.8rem;
  }

  .article-meta span {
    width: 100%;
  }
}


.article-block-stack {
  display: grid;
  gap: 1.35rem;
}

.article-block {
  max-width: 760px;
}

.article-block h2 {
  margin: 0 0 .7rem;
  color: var(--uitm-purple-dark);
  font-size: 1.35rem;
  font-weight: 850;
}

.block-width-wide,
.block-width-full {
  max-width: 100%;
}

.article-block blockquote {
  margin: 0;
  border-left: 5px solid var(--uitm-gold);
  background: #fffaf0;
  border-radius: 8px;
  color: var(--uitm-purple-dark);
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.7;
  padding: 1rem 1.15rem;
}

.block-figure {
  margin: 0;
}

.block-figure img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.block-figure figcaption,
.article-block figcaption {
  margin-top: .5rem;
  color: var(--muted);
  font-size: .92rem;
}

.block-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.block-two-column > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8fc;
  padding: 1rem;
}

.block-document {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8fc;
  padding: 1rem;
}

.block-document i {
  color: var(--teal);
  font-size: 1.55rem;
}

@media (max-width: 575.98px) {
  .block-two-column {
    grid-template-columns: 1fr;
  }
}

/* Article detail redesign */
.article-detail,
.article-detail * {
  min-width: 0;
}

.article-detail {
  background: var(--soft);
  overflow-x: clip;
}

.article-hero {
  min-height: 430px;
  align-items: flex-end;
  background: var(--uitm-purple-deep);
}

.article-hero img {
  object-position: center;
  filter: saturate(.95) contrast(1.03);
}

.article-hero-overlay {
  background:
    linear-gradient(90deg, rgba(23, 5, 31, .96) 0%, rgba(42, 11, 63, .88) 52%, rgba(8, 125, 129, .42) 100%),
    linear-gradient(0deg, rgba(23, 5, 31, .72) 0%, rgba(23, 5, 31, .08) 66%);
}

.article-hero-content {
  width: min(100%, 1140px);
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.article-back {
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  padding: .5rem .7rem;
}

.article-hero h1 {
  max-width: 920px;
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  line-height: 1.06;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.article-summary {
  max-width: 820px;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.article-meta span {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.article-body-section {
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.article-body-section > .container {
  max-width: 1180px;
}

.article-grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(1rem, 2.4vw, 1.6rem);
}

.article-copy,
.article-sidebar,
.article-gallery,
.empty-panel {
  box-shadow: 0 14px 34px rgba(42, 11, 63, .08);
}

.article-copy {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-top: 5px solid var(--uitm-gold);
  padding: clamp(1rem, 3vw, 2.25rem);
  color: #33223f;
  font-size: 1rem;
  line-height: 1.8;
}

.article-copy :where(p, div, h2, h3, h4, li, dd, figcaption, blockquote, span),
.article-sidebar :where(dt, dd, h2),
.article-gallery :where(h2, figcaption) {
  overflow-wrap: anywhere;
  word-break: normal;
}

.article-copy :where(img, video, iframe, embed, object),
.article-gallery :where(img, video, iframe, embed, object) {
  display: block;
  max-width: 100%;
}

.article-block-stack {
  width: 100%;
  gap: clamp(1rem, 2.4vw, 1.5rem);
}

.article-block {
  width: 100%;
  max-width: 760px;
  margin-inline: 0;
}

.article-block + .article-block {
  padding-top: clamp(.2rem, 1vw, .4rem);
}

.article-block h2 {
  margin-bottom: .65rem;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.25;
  font-weight: 750;
}

.block-text,
.fallback-content {
  max-width: 760px;
}

.block-width-wide {
  max-width: 940px;
}

.block-width-full {
  max-width: 100%;
}

.block-width-wide .block-text,
.block-width-full .block-text,
.block-width-wide.fallback-content,
.block-width-full.fallback-content {
  max-width: 100%;
}

.article-block blockquote {
  max-width: 100%;
  font-size: clamp(1.06rem, 2vw, 1.22rem);
  overflow-wrap: anywhere;
}

.block-figure,
.article-gallery-grid figure {
  max-width: 100%;
  margin: 0;
}

.block-figure img,
.article-gallery-grid img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f4eef7;
}

.block-figure img {
  max-height: 620px;
}

.article-gallery-grid {
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
}

.article-block .article-gallery-grid {
  max-width: 100%;
}

.article-gallery-grid figcaption,
.block-figure figcaption,
.article-block figcaption {
  line-height: 1.55;
}

.block-two-column {
  max-width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.block-two-column > div,
.block-document {
  overflow-wrap: anywhere;
}

.block-document {
  max-width: 100%;
}

.article-sidebar {
  top: 1.25rem;
  border-top: 5px solid var(--teal);
}

.article-sidebar dl {
  display: grid;
  gap: .55rem;
}

.article-sidebar dt {
  margin-top: .45rem;
}

.article-sidebar dd {
  line-height: 1.45;
}

.record-metadata {
  margin-top: 1.35rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.record-metadata:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.record-metadata h2 {
  margin-bottom: .8rem;
}

.record-metadata dl {
  display: grid;
  gap: .7rem;
  margin: 0;
}

.record-metadata-row {
  display: grid;
  gap: .25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8fc;
  padding: .72rem .78rem;
}

.record-metadata-row dt {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  color: var(--uitm-purple-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.record-metadata-row dt i {
  color: var(--teal);
  font-size: .95rem;
}

.record-metadata-row dd {
  margin: 0;
  color: #33223f;
  font-size: .94rem;
  font-weight: 650;
}

.article-gallery {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.article-layout-image_story .article-copy {
  border-top-color: var(--teal);
}

.article-layout-gallery_article .article-copy,
.article-layout-document_focus .article-copy {
  max-width: 100%;
}

.article-layout-archive_record .article-sidebar {
  border-top-color: var(--uitm-gold);
}

@media (max-width: 991.98px) {
  .article-hero {
    min-height: 380px;
  }

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

  .article-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 575.98px) {
  .article-hero {
    min-height: 360px;
  }

  .article-back {
    width: 100%;
    justify-content: center;
  }

  .article-meta {
    gap: .45rem;
  }

  .article-meta span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .article-copy,
  .article-sidebar,
  .article-gallery {
    border-radius: 8px;
  }

  .block-two-column {
    grid-template-columns: 1fr;
  }

  .block-document {
    display: grid;
  }
}

.compact-header .main-nav {
  position: relative;
  z-index: 3;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23, 5, 31, .96), rgba(75, 20, 111, .88) 58%, rgba(8, 125, 129, .78)),
    url('../../banner_uitmmemory.jpg') center/cover;
  color: #fff;
  padding: 5rem 0 4rem;
}

.page-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: 1.08rem;
  line-height: 1.72;
}

.inline-search {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  max-width: 820px;
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 8px;
  padding: .45rem;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.inline-search > i {
  display: inline-grid;
  place-items: center;
  color: var(--uitm-purple);
  font-size: 1.15rem;
}

.inline-search .form-control {
  border: 0;
  min-height: 46px;
  box-shadow: none;
}

.inline-search .btn-search {
  min-height: 46px;
  border-radius: 8px;
}

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

.collection-directory-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: .75rem 1rem;
  align-items: start;
  min-height: 210px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-top: 5px solid var(--uitm-purple);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(42, 11, 63, .07);
}

.collection-directory-card:hover {
  border-top-color: var(--uitm-gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.collection-directory-card i {
  grid-row: span 3;
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #fdf3cf;
  color: var(--uitm-purple);
  font-size: 1.5rem;
}

.collection-directory-card span {
  color: var(--uitm-purple-dark);
  font-size: 1.1rem;
  font-weight: 850;
}

.collection-directory-card small {
  color: var(--muted);
  line-height: 1.55;
}

.collection-directory-card strong {
  color: var(--teal);
  font-size: .9rem;
}

.public-record-list {
  display: grid;
  gap: .75rem;
  margin-bottom: 1rem;
}

.record-row {
  display: grid;
  grid-template-columns: 96px 1fr 24px;
  gap: 1rem;
  align-items: center;
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(42, 11, 63, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.record-row:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 125, 129, .35);
  box-shadow: var(--shadow);
}

.record-row .date-box {
  display: inline-grid;
  place-items: center;
  min-height: 56px;
  padding: .35rem .5rem;
  border-radius: 8px;
  background: rgba(224, 172, 55, .18);
  color: var(--uitm-purple-dark);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.record-row-thumb {
  display: block;
  width: 96px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(42, 11, 63, .12);
  background: #f4eef7;
  box-shadow: 0 10px 20px rgba(42, 11, 63, .1);
}

.record-row-thumb img,
.record-row-thumb-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.record-row-thumb img {
  object-fit: cover;
  transition: transform .22s ease;
}

.record-row-thumb-fallback {
  color: var(--teal);
  font-size: 1.45rem;
  background: linear-gradient(135deg, rgba(224, 172, 55, .18), rgba(8, 125, 129, .12));
}

.record-row:hover .record-row-thumb img {
  transform: scale(1.05);
}

.popular-record-section {
  background: #fff;
}

.popular-record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.35rem);
}

.popular-record-card {
  display: grid;
  gap: .85rem;
  min-width: 0;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(42, 11, 63, .08);
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.popular-record-card:hover {
  border-color: rgba(8, 125, 129, .38);
  box-shadow: 0 22px 42px rgba(42, 11, 63, .14);
  transform: translateY(-4px);
}

.popular-record-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, .96);
  outline: 1px solid rgba(42, 11, 63, .18);
  outline-offset: -6px;
  background: #f4eef7;
  box-shadow:
    0 16px 28px rgba(42, 11, 63, .16),
    0 4px 0 rgba(42, 11, 63, .08);
  perspective: 900px;
}

.popular-record-thumb img,
.popular-record-thumb-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.popular-record-thumb img {
  object-fit: cover;
  transform: rotateX(.8deg) scale(1.01);
  transition: transform .24s ease;
}

.popular-record-thumb-fallback {
  color: var(--teal);
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(224, 172, 55, .2), rgba(8, 125, 129, .14));
}

.popular-record-card:hover .popular-record-thumb img {
  transform: rotateX(0) scale(1.06);
}

.popular-record-body {
  display: grid;
  gap: .35rem;
  min-width: 0;
}

.popular-record-body strong {
  color: var(--uitm-purple-dark);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.popular-record-body small {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.record-row > div {
  min-width: 0;
}

.record-row strong {
  display: block;
  color: var(--uitm-purple-dark);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.record-row small {
  display: block;
  margin-top: .25rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.record-meta-inline span + span::before {
  content: "\00b7";
  margin: 0 .4rem;
  color: rgba(42, 11, 63, .42);
}

.record-row > i {
  justify-self: end;
  color: var(--teal);
}

@media (max-width: 575.98px) {
  .record-row {
    grid-template-columns: 72px 1fr;
  }

  .record-row-thumb {
    width: 72px;
  }

  .record-row > i {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .popular-record-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .popular-record-grid {
    grid-template-columns: 1fr;
  }
}

.list-footer-action {

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.public-filter-panel {
  position: sticky;
  top: 1rem;
}

.filter-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-title-row h2 {
  margin: 0;
  color: var(--uitm-purple-dark);
  font-size: 1.1rem;
  font-weight: 850;
}

.filter-title-row a {
  color: var(--teal);
  font-weight: 800;
}

.public-filter-panel .form-control,
.public-filter-panel .form-select {
  margin-bottom: 1rem;
  border-color: #ddd2e6;
  min-height: 44px;
}

.results-panel {
  min-width: 0;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(42, 11, 63, .06);
}

.results-toolbar p {
  margin: 0 0 .25rem;
  color: var(--teal);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .78rem;
}

.results-toolbar h2 {
  margin: 0;
  color: var(--uitm-purple-dark);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
}

.search-result-list {
  display: grid;
  gap: .85rem;
}

.search-result-card {
  display: grid;
  grid-template-columns: 152px 1fr 24px;
  gap: 1rem;
  align-items: center;
  min-height: 154px;
  padding: .85rem 1rem .85rem .85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(42, 11, 63, .06);
}

.search-result-card:hover {
  border-color: rgba(8, 125, 129, .35);
  box-shadow: var(--shadow);
}

.search-result-card img {
  width: 152px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}

.search-result-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: .35rem;
  padding: .25rem .5rem;
  border-radius: 8px;
  background: #f3edf7;
  color: var(--uitm-purple);
  font-size: .78rem;
  font-weight: 850;
}

.search-result-card h3 {
  margin: 0 0 .35rem;
  color: var(--uitm-purple-dark);
  font-size: 1.15rem;
  font-weight: 850;
}

.search-result-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 .45rem;
  color: var(--muted);
  line-height: 1.5;
}

.search-result-card small {
  color: var(--muted);
  font-weight: 700;
}

.search-result-card > i {
  color: var(--teal);
}

.results-range {
  display: inline-block;
  margin-top: .25rem;
  color: var(--muted);
  font-weight: 750;
}

.search-pagination {
  display: grid;
  gap: .75rem;
  margin-top: 1.15rem;
  padding: .85rem;
  border: 1px solid rgba(42, 11, 63, .08);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfafc);
  box-shadow: 0 10px 24px rgba(42, 11, 63, .055);
}

.pagination-status {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  text-align: center;
}

.pagination-controls {
  display: grid;
  grid-template-columns: minmax(112px, auto) 1fr minmax(112px, auto);
  align-items: center;
  gap: .65rem;
}

.pagination-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem;
}

.pagination-link,
.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(42, 11, 63, .12);
  border-radius: 8px;
  background: #fff;
  color: var(--uitm-purple-dark);
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 7px 16px rgba(42, 11, 63, .045);
}

.pagination-link {
  gap: .35rem;
  padding: .55rem .85rem;
  white-space: nowrap;
}

.pagination-page {
  min-width: 42px;
  padding: .55rem .72rem;
}

.pagination-link:hover,
.pagination-page:hover {
  border-color: rgba(8, 125, 129, .42);
  color: var(--teal);
  transform: translateY(-1px);
}

.pagination-page.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 20px rgba(8, 125, 129, .2);
}

.pagination-link.is-disabled {
  pointer-events: none;
  opacity: .45;
}

.pagination-ellipsis {
  min-width: 24px;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.search2-hero {
  padding: 4.2rem 0 2rem;
  background: linear-gradient(135deg, rgba(42, 11, 63, .96), rgba(8, 125, 129, .88)), url("../../banner_uitmmemory.jpg") center / cover;
  color: #fff;
}

.search2-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 1.5rem;
  align-items: end;
}

.search2-hero h1 {
  max-width: 820px;
  margin: 0 0 .8rem;
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.02;
}

.search2-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 1.05rem;
  line-height: 1.7;
}

.search2-source {
  display: grid;
  gap: .15rem;
  justify-items: start;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
}

.search2-source span,
.search2-source small {
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
}

.search2-source strong {
  font-size: 2.25rem;
  line-height: 1;
}

.search2-command {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: .6rem;
  margin-top: 1.5rem;
  padding: .55rem;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

.search2-command > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.3rem;
}

.search2-command .form-control {
  min-height: 50px;
  border: 0;
  color: var(--ink);
  font-weight: 750;
  box-shadow: none;
}

.search2-command .btn-search {
  min-height: 50px;
}

.search2-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .9rem;
}

.search2-active-filters a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 36px;
  padding: .4rem .65rem;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-weight: 800;
}

.search2-active-filters .is-reset {
  background: #fff;
  color: var(--uitm-purple-dark);
}

.search2-shell {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 1rem;
  align-items: start;
}

.search2-facets,
.search2-toolbar,
.search2-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(42, 11, 63, .06);
}

.search2-facets {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
  scrollbar-gutter: stable;
}

.search2-facets :is(span, small, strong, label, summary, a, .search2-tree-heading, .search2-live-status, .search2-facet-empty) {
  font-weight: 400;
  letter-spacing: 0;
}

.search2-facet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.search2-facet-head div {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--uitm-purple-dark);
  font-weight: 400;
}

.search2-facet-head strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-size: .85rem;
  font-weight: 400;
}

.search2-facet-head a {
  color: var(--teal);
  font-weight: 400;
}

.search2-facet-block {
  display: grid;
  gap: .35rem;
  margin-bottom: .9rem;
}

.search2-facet-block label {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
}

.search2-facet-block .form-select {
  min-height: 44px;
  border-color: #ddd2e6;
  font-weight: 750;
}

.search2-facet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}

.search2-facets .btn-filter {
  width: 100%;
  margin-top: .2rem;
}

.search2-results {
  min-width: 0;
}

.search2-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.05rem 1.15rem;
}

.search2-toolbar span {
  color: var(--teal);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.search2-toolbar h2 {
  margin: .1rem 0;
  color: var(--uitm-purple-dark);
  font-size: 1.8rem;
  font-weight: 900;
}

.search2-toolbar small {
  color: var(--muted);
  font-weight: 750;
}

.search2-classic-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 42px;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--uitm-purple-dark);
  font-weight: 850;
}

.search2-classic-link:hover {
  border-color: rgba(8, 125, 129, .36);
  color: var(--teal);
}

.search2-result-list {
  display: grid;
  gap: .85rem;
}

.search2-card {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 1rem;
  padding: .85rem;
}

.search2-card-media {
  position: relative;
  display: block;
  width: 172px;
  aspect-ratio: 4 / 3;
  padding: 4px;
  border: 2px solid rgba(255, 255, 255, .96);
  outline: 1px solid rgba(86, 36, 110, .22);
  outline-offset: -6px;
  border-radius: 8px;
  background: linear-gradient(145deg, #fff, #f3edf7);
  box-shadow:
    0 14px 26px rgba(44, 26, 64, .18),
    0 4px 0 rgba(44, 26, 64, .08),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  overflow: hidden;
  transform: translateZ(0) rotateX(.8deg);
  transition: transform .2s ease, box-shadow .2s ease, outline-color .2s ease;
}

.search2-card-media::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), inset 0 -18px 26px rgba(44, 26, 64, .12);
  pointer-events: none;
}

.search2-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  background: var(--soft);
  transition: transform .22s ease;
}

.search2-card:hover .search2-card-media {
  outline-color: rgba(8, 125, 129, .48);
  box-shadow:
    0 18px 32px rgba(44, 26, 64, .22),
    0 5px 0 rgba(8, 125, 129, .12),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  transform: translateY(-3px) rotateX(0);
}

.search2-card:hover .search2-card-media img {
  transform: scale(1.05);
}

.search2-card-body {
  min-width: 0;
}

.search2-card-meta {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  margin-bottom: .45rem;
}

.search2-card-meta span,
.search2-card-meta small {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .28rem .5rem;
  border-radius: 8px;
  font-size: .76rem;
  font-weight: 850;
}

.search2-card-meta span {
  background: #f3edf7;
  color: var(--uitm-purple);
}

.search2-card-meta small {
  background: #eaf7f7;
  color: var(--teal);
}

.search2-card h3 {
  margin: 0 0 .35rem;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.25;
}

.search2-card h3 a {
  color: var(--uitm-purple-dark);
}

.search2-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 .45rem;
  color: var(--muted);
  line-height: 1.55;
}

.search2-card-body > small {
  color: var(--muted);
  font-weight: 750;
}

.search2-facet-accordion {
  border-top: 1px solid var(--line);
  padding: .15rem 0;
}

.search2-facet-accordion:first-of-type {
  border-top: 0;
}

.search2-facet-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 44px;
  cursor: pointer;
  color: var(--uitm-purple-dark);
  font-weight: 400;
  list-style: none;
}

.search2-facet-accordion summary::-webkit-details-marker {
  display: none;
}

.search2-facet-accordion summary::after {
  content: "\F282";
  font-family: "bootstrap-icons";
  color: var(--teal);
  font-size: .85rem;
}

.search2-facet-accordion[open] summary::after {
  content: "\F286";
}

.search2-facet-accordion summary small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 22px;
  border-radius: 8px;
  background: #eaf7f7;
  color: var(--teal);
  font-size: .72rem;
  font-weight: 400;
}

.search2-check-list {
  display: grid;
  gap: .35rem;
  max-height: 260px;
  overflow: auto;
  padding: .15rem .15rem .75rem;
}

.search2-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem;
  min-height: 38px;
  padding: .35rem .45rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 400;
}

.search2-check:hover {
  border-color: rgba(8, 125, 129, .22);
  background: #f8fbfb;
}

.search2-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--teal);
}

.search2-check span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search2-check small {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 400;
}

.search2-category-tree {
  display: grid;
  gap: .35rem;
  max-height: 360px;
  overflow: auto;
  padding: .15rem .15rem .75rem;
}

.search2-tree-node {
  display: grid;
  gap: .25rem;
}

.search2-check-parent {
  background: transparent;
  border-color: transparent;
}

.search2-check-child {
  position: relative;
  margin-left: 1.25rem;
  padding-left: .7rem;
}

.search2-check-child::before {
  content: "";
  position: absolute;
  left: -.62rem;
  top: -8px;
  width: .72rem;
  height: 27px;
  border-left: 2px solid rgba(8, 125, 129, .25);
  border-bottom: 2px solid rgba(8, 125, 129, .25);
  border-bottom-left-radius: 6px;
}

.search2-tree-children {
  display: grid;
  gap: .25rem;
}

.search2-tree-heading {
  margin: .35rem 0 .1rem;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 400;
}

.search2-live-status {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: .48rem;
  padding: .65rem .75rem;
  border-radius: 8px;
  background: #eefafa;
  color: var(--teal);
  font-size: .84rem;
  font-weight: 400;
}

.search2-live-status i {
  font-size: 1rem;
}

.search2-live-form.is-refreshing .search2-check-list,
.search2-live-form.is-refreshing .search2-facet-accordion summary {
  opacity: .58;
}

.search2-live-form.is-refreshing .search2-live-status {
  background: #f3edf7;
  color: var(--uitm-purple);
}

.search2-live-form.is-refreshing .search2-live-status i {
  animation: search2Pulse .8s ease-in-out infinite alternate;
}

@keyframes search2Pulse {
  from { transform: scale(1); }
  to { transform: scale(1.16); }
}

.search2-facet-empty {
  margin: 0;
  padding: .55rem .25rem .85rem;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 750;
}

.search-empty-panel {
  background: #fff;
}

@media (max-width: 991.98px) {
  .collection-directory-grid,
  .search-layout {
    grid-template-columns: 1fr;
  }

  .public-filter-panel,
  .search2-facets {
    position: static;
  }

  .search2-facets {
    max-height: min(72vh, 680px);
  }

  .search2-hero-grid,
  .search2-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .page-hero {
    padding: 3.5rem 0 3rem;
  }

  .inline-search {
    grid-template-columns: 42px 1fr;
  }

  .inline-search .btn-search {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: .4rem;
  }

  .collection-directory-card,
  .search-result-card {
    grid-template-columns: 1fr;
  }

  .collection-directory-card i {
    grid-row: auto;
  }

  .search-result-card img {
    width: 100%;
  }

  .search-result-card > i {
    display: none;
  }

  .results-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagination-controls {
    grid-template-columns: 1fr;
  }

  .pagination-link {
    width: 100%;
  }

  .pagination-pages {
    order: -1;
  }

  .search2-command {
    grid-template-columns: 42px 1fr;
  }

  .search2-command .btn-search {
    grid-column: 1 / -1;
    width: 100%;
  }

  .search2-source,
  .search2-toolbar {
    align-items: flex-start;
  }

  .search2-toolbar {
    flex-direction: column;
  }

  .search2-facet-grid,
  .search2-card {
    grid-template-columns: 1fr;
  }

  .search2-card-media {
    width: 100%;
  }
}

.rich-content :where(h2, h3, h4) {
  color: var(--uitm-purple-dark);
  font-weight: 650;
  line-height: 1.25;
  margin: 1.25rem 0 .65rem;
}

.rich-content :where(p, ul, ol, blockquote, pre) {
  margin: 0 0 1rem;
}

.rich-content :where(ul, ol) {
  padding-left: 1.35rem;
}

.rich-content blockquote {
  border-left: 4px solid var(--uitm-gold);
  color: var(--uitm-purple-dark);
  margin-left: 0;
  padding: .2rem 0 .2rem 1rem;
}

.rich-content a {
  color: var(--teal);
  font-weight: 650;
  text-decoration: underline;
}

.rich-content font,
.rich-content span {
  max-width: 100%;
}


.article-grid-full {
  grid-template-columns: minmax(0, 1fr);
}

.article-grid-full .article-copy {
  max-width: 100%;
}

.article-side-gallery {
  position: static;
  top: auto;
  align-self: start;
  overflow: hidden;
}

.article-side-gallery h2 {
  margin-bottom: .85rem;
}

.article-masonry-gallery {
  column-count: 2;
  column-gap: .75rem;
}

.article-masonry-gallery figure {
  display: inline-block;
  width: 100%;
  margin: 0 0 .75rem;
  break-inside: avoid;
  page-break-inside: avoid;
  perspective: 900px;
}

.article-masonry-gallery img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, .95);
  outline: 1px solid rgba(42, 11, 63, .16);
  outline-offset: -5px;
  background: #f4eef7;
  box-shadow:
    0 14px 24px rgba(42, 11, 63, .16),
    0 3px 0 rgba(42, 11, 63, .08);
  cursor: zoom-in;
  transform: translateZ(0) rotateX(.8deg);
  transition: transform .2s ease, box-shadow .2s ease, outline-color .2s ease;
}

.article-masonry-gallery img:hover,
.article-masonry-gallery img:focus-visible {
  outline-color: rgba(8, 125, 129, .5);
  box-shadow:
    0 18px 30px rgba(42, 11, 63, .2),
    0 5px 0 rgba(8, 125, 129, .12);
  transform: translateY(-3px) rotateX(0);
}

.article-masonry-gallery figcaption {
  margin-top: .4rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.article-side-gallery :where(h2, figcaption) {
  overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
  .article-side-gallery {
    order: initial;
  }

  .article-masonry-gallery {
    column-count: 3;
  }
}

@media (max-width: 575.98px) {
  .article-masonry-gallery {
    column-count: 2;
    column-gap: .6rem;
  }

  .article-masonry-gallery figure {
    margin-bottom: .6rem;
  }
}


.rich-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.rich-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  table-layout: fixed;
  overflow-wrap: anywhere;
}

.rich-content th,
.rich-content td {
  border: 1px solid rgba(75, 20, 111, .18);
  padding: .65rem .7rem;
  vertical-align: top;
}

.rich-content th {
  background: #fbf8fc;
  color: var(--uitm-purple-dark);
  font-weight: 850;
}

.rich-content td {
  background: #fff;
}

.record-card-has-memory::after {
  display: none;
}

.upcoming-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbf8fc 100%);
}

.upcoming-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgba(42, 27, 61, .12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 8%, rgba(8, 125, 129, .12), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #fff9e9 100%);
  box-shadow: 0 18px 42px rgba(42, 27, 61, .12);
}

.upcoming-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--uitm-purple), var(--uitm-gold), var(--teal));
}

.upcoming-card::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(75, 20, 111, .06);
  border-radius: 8px;
  pointer-events: none;
}

.upcoming-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  gap: 1rem;
  align-items: stretch;
}

.upcoming-record {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-width: 0;
  padding: .35rem .35rem .35rem .55rem;
  color: inherit;
  text-decoration: none;
  perspective: 700px;
}

.upcoming-record:hover .upcoming-title {
  color: var(--uitm-purple);
}

.upcoming-media-card {
  position: relative;
  display: block;
  width: 112px;
  transform: rotateX(0deg) rotateY(-7deg);
  transform-style: preserve-3d;
  transition: transform .32s ease, filter .32s ease;
}

.upcoming-media-card::before {
  content: "";
  position: absolute;
  inset: 10px -9px -9px 10px;
  z-index: -1;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(75, 20, 111, .26), rgba(8, 125, 129, .18));
  filter: blur(.2px);
  transform: translateZ(-18px);
}

.upcoming-record:hover .upcoming-media-card {
  filter: saturate(1.08);
  transform: rotateX(5deg) rotateY(-12deg) translateY(-3px);
}

.upcoming-media {
  display: block;
  width: 112px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid rgba(224, 172, 55, .45);
  border-radius: 8px;
  background: #f4eef8;
  box-shadow: 0 12px 22px rgba(42, 27, 61, .18);
}

.upcoming-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .42s ease;
}

.upcoming-record:hover .upcoming-media img {
  transform: scale(1.08);
}

.upcoming-media > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--uitm-purple);
  font-size: 1.85rem;
}

.upcoming-caption {
  display: grid;
  gap: .55rem;
  min-width: 0;
}

.upcoming-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
  align-items: center;
}

.upcoming-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: .22rem .55rem;
  border-radius: 999px;
  color: var(--uitm-purple-dark);
  background: rgba(224, 172, 55, .22);
  font-size: .7rem;
  font-weight: 800;
}

.upcoming-title {
  display: block;
  color: var(--uitm-purple-dark);
  font-size: clamp(1.25rem, 2.15vw, 1.75rem);
  line-height: 1.16;
  font-weight: 800;
  transition: color .2s ease;
}

.upcoming-time {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .72rem;
  align-items: center;
  overflow: hidden;
  min-width: 0;
  padding: .9rem;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 16% 16%, rgba(244, 196, 48, .52), transparent 31%),
    linear-gradient(135deg, var(--uitm-purple-dark), #3d1557 58%, #0a5f62);
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.upcoming-time::before {
  content: "";
  position: absolute;
  inset: -70%;
  z-index: -2;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .22), transparent 26%, rgba(244, 196, 48, .30), transparent 56%, rgba(8, 125, 129, .34), transparent 78%);
  animation: upcoming-spin 7s linear infinite;
}

.upcoming-time::after {
  content: "";
  position: absolute;
  inset: .55rem;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  animation: upcoming-glow 2.8s ease-in-out infinite;
}

.upcoming-countdown-copy {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, .78);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.upcoming-day-block {
  display: grid;
  place-items: center;
  min-width: 88px;
  min-height: 88px;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 24px rgba(0, 0, 0, .16);
  animation: upcoming-pulse 1.8s ease-in-out infinite;
}

.upcoming-days {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: .86;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 7px 16px rgba(0, 0, 0, .25);
}

.upcoming-label {
  margin-top: .24rem;
  color: rgba(255, 255, 255, .84);
  font-size: .76rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.upcoming-clock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .35rem;
  width: 100%;
}

.upcoming-clock span {
  position: relative;
  display: grid;
  gap: .14rem;
  min-width: 0;
  padding: .52rem .3rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 7px;
  background: rgba(255, 255, 255, .13);
  text-align: center;
}

.upcoming-clock b {
  font-size: 1.12rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.upcoming-clock small {
  color: rgba(255, 255, 255, .75);
  font-size: .61rem;
  font-weight: 800;
  text-transform: uppercase;
}

.upcoming-clock b.is-ticking {
  animation: upcoming-tick .38s ease;
}

.upcoming-empty {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1.25rem;
  border: 1px dashed rgba(42, 27, 61, .25);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

.upcoming-empty i {
  color: var(--uitm-purple);
  font-size: 1.6rem;
}

.upcoming-empty p {
  margin: 0;
}

@keyframes upcoming-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes upcoming-glow {
  0%, 100% {
    opacity: .38;
  }
  50% {
    opacity: .86;
  }
}

@keyframes upcoming-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

@keyframes upcoming-tick {
  0% {
    transform: translateY(-5px) scale(.96);
    opacity: .65;
  }
  70% {
    transform: translateY(1px) scale(1.06);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .upcoming-time::before,
  .upcoming-time::after,
  .upcoming-day-block,
  .upcoming-media-card,
  .upcoming-media img,
  .upcoming-clock b.is-ticking {
    animation: none;
    transition: none;
  }
}

@media (max-width: 991.98px) {
  .upcoming-layout {
    grid-template-columns: 1fr;
  }

  .upcoming-time {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

@media (max-width: 575.98px) {
  .upcoming-card {
    padding: .78rem;
  }

  .upcoming-record {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: .82rem;
    padding: .25rem;
  }

  .upcoming-media-card,
  .upcoming-media {
    width: 86px;
  }

  .upcoming-title {
    font-size: 1.14rem;
  }

  .upcoming-time {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .upcoming-countdown-copy {
    justify-self: center;
  }

  .upcoming-day-block {
    justify-self: center;
    min-width: 98px;
  }
}
