@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&display=swap');

:root {
  --blue-900: #0c3572;
  --blue-800: #114b9a;
  --blue-700: #155bb8;
  --blue-50: #eef6ff;
  --cream: #f7faff;
  --stone: #edf4fb;
  --surface-soft: #f2f7fd;
  --ink: #171717;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

body.page-ready {
  opacity: 1;
  transform: none;
}

body.page-leaving {
  opacity: 0;
  transform: translateY(6px);
}

.serif {
  font-family: 'Source Serif 4', Georgia, serif;
}

.site-container {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

.article-container {
  width: min(100% - 2rem, 920px);
  margin-inline: auto;
}

.top-strip {
  background: rgb(var(--blue-800));
  color: rgb(255 255 255 / 0.9);
}

.site-header-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.site-header-shell.is-scrolled {
  box-shadow: 0 12px 30px rgb(15 23 42 / 0.08);
}

.site-header-shell.is-hidden {
  transform: translateY(calc(-100% - 0.5rem));
}

.site-main-header {
  transition: background-color 220ms ease, border-color 220ms ease;
}

.social-mini {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.28);
  font-size: 11px;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 1rem;
  background: var(--blue-800);
  color: white;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 10px 30px rgb(17 75 154 / 0.18);
}

.brand-mark-light {
  background: white;
  color: var(--blue-800);
  box-shadow: none;
}

.nav-link {
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  color: rgb(64 64 64);
  font-size: 14px;
  font-weight: 600;
  transition: 180ms ease;
}

.nav-link:hover {
  background: var(--blue-50);
  color: var(--blue-800);
}

.nav-link-active {
  background: #eef6ff !important;
  color: #114b9a !important;
  box-shadow: inset 0 0 0 1px rgb(17 75 154 / 0.14);
}

.nav-link-active:hover {
  background: #dcecff !important;
  color: #0c3572 !important;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 1.25rem;
  pointer-events: auto;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown-trigger svg {
  width: 1rem;
  height: 1rem;
  transition: transform 180ms ease;
}

.nav-dropdown-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 0.35rem);
  left: 0;
  display: grid;
  min-width: 12.5rem;
  gap: 0.2rem;
  border: 1px solid rgb(23 23 23 / 0.12);
  border-radius: 1rem;
  background: rgb(255 255 255);
  padding: 0.45rem;
  box-shadow: 0 22px 58px rgb(15 23 42 / 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.3rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown:focus-within .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu a {
  border-radius: 0.75rem;
  color: #404040;
  font-size: 14px;
  font-weight: 700;
  padding: 0.7rem 0.8rem;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.is-active {
  background: var(--blue-50);
  color: var(--blue-800);
}

.btn {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-size: 14px;
  font-weight: 700;
  transition: 180ms ease;
}

.btn-primary {
  background: var(--blue-800);
  color: white;
  box-shadow: 0 10px 24px rgb(17 75 154 / 0.18);
}

.btn-primary:hover {
  background: var(--blue-900);
}

.btn-dark {
  background: #171717;
  color: white;
}

.btn-dark:hover {
  background: var(--blue-900);
}

.btn-secondary {
  border: 1px solid rgb(23 23 23 / 0.12);
  background: rgb(var(--surface-raised, 255 255 255));
  color: rgb(var(--text-primary, 38 38 38));
}

.btn-secondary:hover {
  border-color: rgb(17 75 154 / 0.25);
  background: var(--blue-50);
  color: var(--blue-800);
}

.btn-icon {
  display: inline-grid;
  min-width: 2.5rem;
  min-height: 2.5rem;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgb(23 23 23 / 0.12);
  background: white;
  color: #262626;
  font-size: 1.4rem;
  line-height: 1;
}

.mobile-sheet {
  margin-left: auto;
  width: min(86vw, 360px);
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgb(var(--surface-raised, 255 255 255));
  color: rgb(var(--text-primary, 23 23 23));
  border-left: 1px solid rgb(var(--border-subtle, 23 23 23) / 0.1);
  padding: 1.25rem;
  box-shadow: -25px 0 60px rgb(0 0 0 / 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .site-header-shell,
  .site-main-header {
    transition: none;
  }
}

.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  color: #404040;
  font-size: 15px;
  font-weight: 650;
}

.mobile-link:hover,
.mobile-link-active {
  background: rgb(var(--brand-soft, 238 246 255));
  color: rgb(var(--brand-primary, 17 75 154));
}

.mobile-link-icon {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-link-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.mobile-link-group {
  display: grid;
  gap: 0.25rem;
}

.mobile-sub-links {
  display: grid;
  gap: 0.25rem;
  margin-left: 1rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgb(var(--border-subtle, 23 23 23) / 0.12);
}

.mobile-sub-link {
  border-radius: 0.85rem;
  color: #525252;
  font-size: 14px;
  font-weight: 750;
  padding: 0.65rem 0.8rem;
}

.mobile-sub-link:hover,
.mobile-sub-link.is-active {
  background: rgb(var(--brand-soft, 238 246 255));
  color: rgb(var(--brand-primary, 17 75 154));
}

.eyebrow {
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2.45rem, 5vw, 5rem);
  line-height: 0.96;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: #171717;
}

.section-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: rgb(var(--text-primary, 23 23 23));
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.78;
  color: #525252;
}

.public-inner-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--blue-900);
  background-image: url('https://genbijambi.com/public/uploads/slider-1.png');
  background-position: center;
  background-size: cover;
  color: white;
}

.public-inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 53, 114, 0.92) 0%, rgba(17, 75, 154, 0.76) 42%, rgba(17, 75, 154, 0.28) 72%, rgba(17, 75, 154, 0) 100%);
}

.public-inner-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.public-inner-hero > * {
  position: relative;
  z-index: 1;
}

.public-inner-hero .eyebrow {
  color: rgb(239 246 255 / 0.95);
}

.public-inner-hero .page-title {
  color: white;
}

.public-inner-hero .lead {
  color: rgb(239 246 255 / 0.86);
}

.prose-soft p {
  margin-top: 1.15rem;
  color: #404040;
  line-height: 1.85;
  font-size: 1.03rem;
}

.soft-card {
  border: 1px solid rgb(23 23 23 / 0.10);
  background: rgb(255 255 255 / 0.78);
  border-radius: 1.6rem;
  box-shadow: 0 24px 80px rgb(23 23 23 / 0.05);
}

.prestasi-gallery {
  padding: 1rem;
}

.prestasi-gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15rem, 22rem);
  gap: 0.85rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0.15rem 0 0.8rem;
  scroll-snap-type: inline mandatory;
}

.prestasi-gallery-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 1.2rem;
  border: 1px solid rgb(23 23 23 / 0.10);
  background: white;
  padding: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.prestasi-gallery-card:hover,
.prestasi-gallery-card:focus-visible {
  border-color: rgb(17 75 154 / 0.35);
  box-shadow: 0 12px 30px rgb(17 75 154 / 0.16);
  transform: translateY(-1px);
}

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

.prestasi-image-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.prestasi-image-modal.hidden {
  display: none;
}

.prestasi-image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 0.76);
  backdrop-filter: blur(10px);
}

.prestasi-image-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: min(1100px, 96vw);
  max-height: 92vh;
  place-items: center;
}

.prestasi-image-modal-panel img {
  display: block;
  width: auto;
  max-width: min(1100px, 96vw);
  max-height: 88vh;
  border-radius: 1.1rem;
  background: white;
  object-fit: contain;
  box-shadow: 0 28px 90px rgb(0 0 0 / 0.42);
}

.prestasi-image-modal-close {
  position: absolute;
  top: -0.9rem;
  right: -0.9rem;
  z-index: 2;
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 999px;
  background: white;
  color: rgb(23 23 23);
  font-size: 1.8rem;
  line-height: 1;
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.24);
}

.public-upload-field {
  display: grid;
  gap: 1rem;
  border: 1px solid rgb(23 23 23 / 0.10);
  border-radius: 1.2rem;
  background: rgb(255 255 255 / 0.92);
  padding: 1rem;
}

.public-prestasi-photo-card {
  border: 0;
  background: transparent;
  padding: 0;
}

.public-prestasi-photo-card .public-upload-empty {
  min-height: 8rem;
  border-color: rgb(17 75 154 / 0.25);
  background: rgb(255 255 255 / 0.92);
  color: rgb(17 75 154);
}

.public-prestasi-photo-card .public-upload-preview {
  order: 5;
}

.public-prestasi-photo-card .public-upload-actions {
  order: 6;
}

.prestasi-photo-uploader {
  display: grid;
  gap: 0.9rem;
}

.public-upload-empty {
  display: grid;
  gap: 0.35rem;
  place-items: center;
  min-height: 8.5rem;
  border: 1px dashed rgb(17 75 154 / 0.28);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgb(238 246 255 / 0.8), rgb(247 250 255 / 0.96));
  color: rgb(17 75 154);
  text-align: center;
  padding: 1.1rem;
}

.public-upload-empty.hidden,
.public-upload-preview.hidden,
.public-upload-actions .hidden,
.public-upload-list.hidden {
  display: none !important;
}

.public-upload-empty strong {
  font-size: 0.98rem;
  font-weight: 800;
}

.public-upload-empty span {
  font-size: 0.86rem;
  color: rgb(59 88 113);
}

.public-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.public-upload-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.public-upload-preview {
  display: grid;
  gap: 0.75rem;
}

.public-upload-preview-stage {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  background: linear-gradient(135deg, rgb(17 75 154 / 0.12), rgb(2 132 199 / 0.08));
}

.public-upload-preview-stage > img {
  width: 100%;
  height: clamp(14rem, 48vw, 24rem);
  object-fit: cover;
  box-shadow: 0 18px 44px rgb(15 23 42 / 0.14);
}

.public-upload-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.88);
  box-shadow: 0 14px 34px rgb(15 23 42 / 0.18);
  color: rgb(17 75 154);
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 160ms ease, background 160ms ease;
}

.public-upload-nav:first-child {
  left: 0.85rem;
}

.public-upload-nav:last-child {
  right: 0.85rem;
}

.public-upload-nav:hover,
.public-upload-nav:focus-visible {
  background: #ffffff;
  transform: translateY(-50%) scale(1.04);
}

.public-upload-nav:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.public-upload-preview-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: rgb(82 82 82);
  font-size: 0.86rem;
}

.public-upload-preview-controls strong {
  color: rgb(23 23 23);
}

.public-upload-preview-slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.public-upload-scroll {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 999px;
  background: rgb(17 75 154 / 0.10);
  color: rgb(17 75 154);
  font-size: 1.75rem;
  line-height: 1;
  transition: background 160ms ease, transform 160ms ease;
}

.public-upload-scroll:hover,
.public-upload-scroll:focus-visible {
  background: rgb(17 75 154 / 0.18);
  transform: scale(1.04);
}

.public-upload-scroll:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.public-upload-preview-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(9rem, 12rem);
  gap: 0.85rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0.15rem 0 0.6rem;
  scroll-snap-type: inline mandatory;
}

.public-upload-preview-card {
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid rgb(17 75 154 / 0.16);
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 14px 36px rgb(15 23 42 / 0.10);
}

.public-upload-preview-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgb(238 246 255);
  object-fit: cover;
}

.public-upload-preview-card div {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem 0.75rem;
}

.public-upload-preview-card strong {
  overflow: hidden;
  color: rgb(23 23 23);
  font-size: 0.82rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-upload-preview-card span {
  color: rgb(82 82 82);
  font-size: 0.74rem;
}

.public-upload-remove {
  width: fit-content;
  border-radius: 999px;
  background: rgb(220 38 38 / 0.08);
  color: rgb(185 28 28);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.public-upload-remove:hover,
.public-upload-remove:focus-visible {
  background: rgb(220 38 38 / 0.14);
  color: rgb(127 29 29);
  transform: translateY(-1px);
}

.public-upload-thumbs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.public-upload-thumb {
  flex: 0 0 auto;
  width: 4.5rem;
  height: 3.4rem;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 0.8rem;
  background: rgb(255 255 255 / 0.75);
}

.public-upload-thumb.is-active,
.public-upload-thumb:hover,
.public-upload-thumb:focus-visible {
  border-color: rgb(17 75 154);
}

.public-upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-upload-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  border-radius: 1rem;
  border: 1px solid rgb(17 75 154 / 0.16);
  background: rgb(238 246 255 / 0.72);
  padding: 0.7rem 0.85rem;
}

.public-upload-chip strong {
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgb(23 23 23);
  font-size: 0.9rem;
}

.public-upload-chip span {
  color: rgb(82 82 82);
  font-size: 0.78rem;
}

.admin-upload-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(9rem, 12rem);
  gap: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 0.5rem;
  scroll-snap-type: inline mandatory;
}

.admin-upload-gallery-item .cms-action {
  width: fit-content;
}

.soft-row {
  border-top: 1px solid rgb(23 23 23 / 0.10);
  transition: 180ms ease;
}

.soft-row:hover {
  background: rgb(238 246 255 / 0.55);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 700ms ease, transform 1100ms ease;
}

.hero-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.blue-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-800);
  padding: 0.45rem 0.7rem;
  font-size: 12px;
  font-weight: 750;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgb(23 23 23 / 0.11);
  background: white;
  padding: 0.5rem 0.85rem;
  font-size: 13px;
  font-weight: 650;
  color: #525252;
  transition: 180ms ease;
}

.chip:hover,
.chip.is-active {
  border-color: rgb(17 75 154 / 0.24);
  background: var(--blue-50);
  color: var(--blue-800);
}

.input-soft {
  min-height: 2.75rem;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgb(23 23 23 / 0.12);
  background: white;
  padding: 0.72rem 1rem;
  font-size: 14px;
  outline: none;
  transition: 180ms ease;
}

.input-soft:focus {
  border-color: var(--blue-800);
  box-shadow: 0 0 0 4px rgb(17 75 154 / 0.14);
}

.custom-select {
  position: relative;
  z-index: 10;
}

.custom-select:has(.select-button[aria-expanded="true"]),
.custom-select-root:has(.select-button[aria-expanded="true"]),
.config-field:has(.select-button[aria-expanded="true"]) {
  z-index: 1200;
}

.soft-card:has(.select-button[aria-expanded="true"]) {
  position: relative;
  z-index: 60;
  overflow: visible;
}

.custom-select-root,
.news-filter,
.team-filter {
  position: relative;
  z-index: 10;
  overflow: visible;
}

.team-filter {
  z-index: 20;
}

.custom-select select {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.select-button {
  display: flex;
  min-height: 2.75rem;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border-radius: 1rem;
  border: 1px solid rgb(23 23 23 / 0.12);
  background: white;
  padding: 0.72rem 1rem;
  font-size: 14px;
  font-weight: 650;
  color: #404040;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.select-button-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
}

.select-button-icon svg {
  width: 1rem;
  height: 1rem;
}

.select-button:focus-visible,
.select-button[aria-expanded="true"] {
  border-color: var(--blue-800);
  box-shadow: 0 0 0 4px rgb(17 75 154 / 0.14);
}

.select-menu {
  position: absolute;
  z-index: 1300;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  max-height: 16rem;
  overflow: auto;
  border-radius: 1rem;
  border: 1px solid rgb(23 23 23 / 0.12);
  background: white;
  padding: 0.35rem;
  box-shadow: 0 20px 55px rgb(23 23 23 / 0.12);
}

.select-menu button {
  width: 100%;
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  text-align: left;
  font-size: 14px;
}

.select-menu button:hover,
.select-menu button.is-active {
  background: rgb(var(--blue-50));
  color: rgb(var(--blue-800));
}

#prestasi-submit-form .custom-select-root:has(.select-button[aria-expanded="true"]) .select-menu {
  position: static;
  margin-top: 0.4rem;
}

.prestasi-submit-hero,
.prestasi-submit-body {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.prestasi-submit-hero::before,
.prestasi-submit-hero::after,
.prestasi-submit-body::before,
.prestasi-submit-body::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.68;
}

.prestasi-submit-hero::before {
  width: min(38vw, 30rem);
  height: min(38vw, 30rem);
  left: -9rem;
  top: 3rem;
  background: radial-gradient(circle, rgb(var(--blue-200) / 0.95), rgb(var(--blue-50) / 0));
}

.prestasi-submit-hero::after {
  width: min(34vw, 26rem);
  height: min(34vw, 26rem);
  right: -7rem;
  top: 6rem;
  background: radial-gradient(circle, rgb(252 211 77 / 0.48), rgb(255 255 255 / 0));
}

.prestasi-submit-body::before {
  width: min(42vw, 34rem);
  height: min(42vw, 34rem);
  left: 8%;
  top: 4rem;
  background: radial-gradient(circle, rgb(125 211 252 / 0.36), rgb(255 255 255 / 0));
}

.prestasi-submit-body::after {
  width: min(40vw, 32rem);
  height: min(40vw, 32rem);
  right: 4%;
  bottom: 5rem;
  background: radial-gradient(circle, rgb(59 130 246 / 0.18), rgb(255 255 255 / 0));
}

.prestasi-submit-body .soft-card {
  background: rgb(255 255 255 / 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgb(15 23 42 / 0.08);
}

.settings-upload-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.settings-upload-preview {
  width: clamp(5rem, 12vw, 9rem);
  height: clamp(5rem, 12vw, 9rem);
  flex: 0 0 auto;
  border: 1px solid rgb(var(--border-soft));
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 0.9);
  object-fit: contain;
  padding: 0.75rem;
  box-shadow: 0 16px 40px rgb(15 23 42 / 0.08);
}

.settings-form[data-endpoint="logo"] .settings-upload-preview,
.settings-form[data-endpoint="favicon"] .settings-upload-preview {
  max-width: 9rem;
  max-height: 9rem;
}

.settings-banner-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.settings-banner-preview,
.theme-card {
  border: 1px solid rgb(var(--border-soft));
  border-radius: 1.4rem;
  background: rgb(var(--surface-elevated));
  box-shadow: 0 16px 45px rgb(15 23 42 / 0.06);
}

.settings-banner-preview {
  overflow: hidden;
}

.settings-banner-preview-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgb(var(--blue-50));
}

.settings-banner-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-banner-preview-copy {
  padding: 1rem;
}

.settings-banner-preview-label,
.theme-card-name {
  color: rgb(var(--text-primary));
  font-weight: 850;
}

.settings-banner-preview-caption,
.theme-card-note {
  margin-top: 0.35rem;
  color: rgb(var(--text-secondary));
  font-size: 0.9rem;
  line-height: 1.55;
}

.settings-hero-preview {
  position: relative;
  min-height: clamp(22rem, 42vw, 34rem);
  overflow: hidden;
  border-radius: 1.75rem;
  background-image: linear-gradient(90deg, rgb(12 53 114 / 0.9), rgb(12 53 114 / 0.52), rgb(12 53 114 / 0.18)), var(--settings-hero-image);
  background-position: center;
  background-size: cover;
  box-shadow: 0 28px 90px rgb(15 23 42 / 0.18);
}

.settings-hero-preview-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgb(255 255 255 / 0.14), transparent 30%), linear-gradient(180deg, transparent, rgb(0 0 0 / 0.08));
}

.settings-hero-preview-copy {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  padding: clamp(2rem, 6vw, 5rem);
  color: white;
}

.settings-hero-preview-copy span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  padding: 0.55rem 1rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.settings-hero-preview-copy h3 {
  margin-top: 1.75rem;
  max-width: 38rem;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 650;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.settings-hero-preview-copy p {
  margin-top: 1.2rem;
  max-width: 36rem;
  color: rgb(255 255 255 / 0.82);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.7;
}

.settings-hero-preview-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.settings-hero-preview-actions i {
  width: 2.75rem;
  height: 0.85rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.86);
}

.theme-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.theme-card {
  padding: 1rem;
  text-align: left;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.theme-card:hover,
.theme-card.is-selected {
  border-color: rgb(var(--blue-300));
  box-shadow: 0 22px 60px rgb(15 23 42 / 0.1);
  transform: translateY(-2px);
}

.theme-card.is-selected {
  background: linear-gradient(180deg, rgb(var(--blue-50)), rgb(var(--surface-elevated)));
}

.theme-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.theme-card-mode,
.editor-status-pill {
  border-radius: 999px;
  background: rgb(var(--blue-50));
  color: rgb(var(--blue-800));
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 850;
}

.theme-card-swatches {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.theme-card-swatch {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgb(var(--border-soft));
  border-radius: 999px;
}

.admin-custom-select {
  position: relative;
  z-index: 10;
  width: 100%;
}

.admin-custom-select:has(.admin-select-button[aria-expanded="true"]) {
  z-index: 20;
}

.admin-custom-select select {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.admin-select-button {
  display: flex;
  min-height: 2.75rem;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgb(23 23 23 / 0.12);
  background: white;
  padding: 0.72rem 1rem;
  color: #404040;
  font-size: 14px;
  font-weight: 700;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.admin-select-button:focus-visible,
.admin-select-button[aria-expanded="true"] {
  border-color: var(--admin-blue);
  box-shadow: 0 0 0 4px rgb(47 111 169 / 0.14);
}

.admin-select-menu {
  position: absolute;
  z-index: 900;
  min-width: var(--select-button-width, 12rem);
  max-height: 16rem;
  overflow: auto;
  border-radius: 1rem;
  border: 1px solid rgb(23 23 23 / 0.12);
  background: white;
  padding: 0.35rem;
  box-shadow: 0 20px 55px rgb(23 23 23 / 0.12);
}

.config-field {
  position: relative;
}

.config-field:has(.admin-select-button[aria-expanded="true"]) {
  z-index: 20;
}

.config-card:has(.admin-select-button[aria-expanded="true"]) {
  position: relative;
  z-index: 15;
}

.cms-toolbar,
.cms-toolbar > div {
  overflow: visible;
}

.admin-card:has(.admin-select-button[aria-expanded="true"]) {
  position: relative;
  z-index: 5;
}

.admin-responsive-table {
  position: relative;
  z-index: 1;
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.admin-select-menu button {
  width: 100%;
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  text-align: left;
  font-size: 14px;
}

.admin-select-menu button:hover,
.admin-select-menu button.is-active {
  background: var(--blue-50);
  color: var(--admin-blue-deep);
}

.admin-inline-select + .admin-select-button,
.admin-toolbar-select + .admin-select-button {
  min-height: 2.45rem;
  border-radius: 0.85rem;
  padding: 0.55rem 0.8rem;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-800);
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 200ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fade-up,
.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.article-link {
  display: grid;
  position: relative;
  z-index: 1;
  gap: 0.75rem;
  padding-block: 1.6rem;
  border-top: 1px solid rgb(23 23 23 / 0.10);
}

.article-link:hover h3 {
  color: var(--blue-800);
}

.public-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.pager-button {
  min-width: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgb(23 23 23 / 0.10);
  background: white;
  padding: 0.65rem 0.9rem;
  color: #404040;
  font-size: 13px;
  font-weight: 800;
  transition: 180ms ease;
}

.pager-button-icon {
  min-width: 2.5rem;
  width: 2.5rem;
  padding-inline: 0;
}

.pager-button-icon svg {
  width: 1rem;
  height: 1rem;
}

.pager-ellipsis {
  display: inline-flex;
  min-width: 1.65rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  color: rgb(var(--text-secondary, 82 82 82));
  font-size: 13px;
  font-weight: 900;
}

.pager-button:hover:not(:disabled),
.pager-button.is-active {
  border-color: var(--blue-800);
  background: var(--blue-800);
  color: white;
}

.admin-pagination .pager-button.is-active {
  border-color: var(--admin-blue);
  background: var(--admin-blue);
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgb(47 111 169 / 0.28);
}

.pager-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.team-public-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .team-public-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .team-public-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.team-public-list {
  display: grid;
  gap: 0.85rem;
}

.team-public-card,
.team-public-row {
  border: 1px solid rgb(23 23 23 / 0.10);
  background: rgb(255 255 255 / 0.88);
  box-shadow: 0 18px 60px rgb(17 75 154 / 0.06);
}

.team-public-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  border-radius: 1.7rem;
  padding: 1rem;
}

.team-public-row {
  display: grid;
  gap: 1rem;
  align-items: center;
  border-radius: 1.3rem;
  padding: 1rem;
}

@media (min-width: 768px) {
  .team-public-row { grid-template-columns: 72px 1fr 220px 80px auto; }
}

.team-public-photo,
.team-public-row-photo {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--blue-50);
  color: var(--blue-800);
  font-weight: 900;
}

.team-public-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 1.35rem;
}

.team-public-row-photo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.2rem;
}

.team-public-photo img,
.team-public-row-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-detail-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: rgb(var(--blue-900, 12 53 114));
}

@media (min-width: 768px) {
  .news-detail-hero { min-height: 520px; }
}

.news-detail-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.96);
}

.news-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgb(255 255 255 / 0.16), transparent 25%),
    linear-gradient(180deg, rgb(0 0 0 / 0.16), rgb(0 0 0 / 0.18)),
    linear-gradient(90deg, rgb(var(--blue-900, 12 53 114) / 0.92), rgb(var(--blue-900, 12 53 114) / 0.70) 42%, rgb(var(--blue-900, 12 53 114) / 0.30) 70%, rgb(var(--blue-900, 12 53 114) / 0.18));
}



.news-detail-hero-content {
  position: relative;
  z-index: 2;
  padding-block: 3rem 2.5rem;
}

.news-detail-hero-content .page-title {
  color: #fef3c7;
}

.news-detail-hero-content .lead {
  color: #fffbeb;
}

.news-detail-hero-content .news-detail-meta,
.news-detail-hero-content .news-detail-meta span {
  color: rgba(255, 255, 255, 0.82);
}

.news-detail-hero-content .news-detail-meta span:first-child {
  color: #ffffff;
}

.chip-light {
  background: rgb(255 255 255 / 0.15) !important;
  color: white !important;
  border-color: rgb(255 255 255 / 0.25) !important;
  backdrop-filter: blur(6px);
}

.chip-light:hover {
  background: rgb(255 255 255 / 0.25) !important;
}

.news-detail-content,
.news-detail-content * {
  color: #262626 !important;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-text-fill-color: #262626 !important;
}

.news-detail-content a {
  color: var(--blue-800) !important;
  -webkit-text-fill-color: var(--blue-800) !important;
}

.news-detail-content {
  max-width: 720px;
  margin-inline: auto;
}

.news-detail-inline-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1.5rem;
  margin: 0 0 2rem;
  box-shadow: 0 24px 60px rgb(15 23 42 / 0.14);
}

.news-detail-contributors {
  max-width: 720px;
  margin-inline: auto;
}

.news-detail-content :where(p, li, div) {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif !important;
  font-size: 1.05rem !important;
  line-height: 1.9 !important;
  text-align: justify !important;
}

.news-detail-content :where(h1, h2, h3, h4, h5, h6) {
  font-family: 'Source Serif 4', Georgia, serif !important;
}

.avatar {
  display: inline-grid;
  width: 3.3rem;
  height: 3.3rem;
  place-items: center;
  border-radius: 1.2rem;
  background: var(--blue-50);
  color: var(--blue-800);
  font-weight: 800;
}

.modal-panel {
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: 180ms ease;
}

.modal-panel.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

.logo-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.05rem;
  min-height: 3.05rem;
  border-radius: 1.15rem;
  background: white;
  border: 1px solid rgb(23 23 23 / 0.08);
  box-shadow: 0 12px 34px rgb(17 75 154 / 0.12);
  padding: 0.42rem;
}

.logo-shell-light {
  background: white;
  border-color: rgb(255 255 255 / 0.18);
  box-shadow: none;
}

.btn-light {
  background: white;
  color: rgb(var(--blue-900));
  box-shadow: 0 16px 34px rgb(0 0 0 / 0.18);
}

.btn-light:hover {
  background: rgb(var(--blue-50));
  color: rgb(var(--blue-900));
}

.btn-ghost-light {
  border: 1px solid rgb(255 255 255 / 0.28);
  background: rgb(255 255 255 / 0.12);
  color: white;
  backdrop-filter: blur(12px);
}

.btn-ghost-light:hover {
  background: rgb(255 255 255 / 0.2);
}


.hero-section-compact {
  min-height: clamp(560px, 72vh, 680px);
}

.hero-inner-compact {
  min-height: clamp(560px, 72vh, 680px);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-title-compact {
  font-size: clamp(2.35rem, 5vw, 5.35rem);
  line-height: 0.94;
  letter-spacing: -0.052em;
}

@media (max-width: 767px) {
  .hero-section-compact,
  .hero-inner-compact {
    min-height: auto;
  }

  .hero-inner-compact {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.hero-bg-image {
  filter: saturate(0.92) contrast(0.96);
}

.hero-bg .hero-image.is-active {
  animation: slowZoom 6800ms linear both;
}

@keyframes slowZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.admin-body {
  background: #f3f0e8;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 1px solid rgb(23 23 23 / 0.10);
  background: rgba(251,250,247,0.92);
  backdrop-filter: blur(18px);
}

.admin-sidebar > div {
  min-height: 100%;
  height: auto;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgb(23 23 23 / 0.10);
  background: rgba(251,250,247,0.88);
  backdrop-filter: blur(18px);
}

.admin-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
  padding: 0.78rem 0.9rem;
  color: #525252;
  font-size: 14px;
  font-weight: 700;
  transition: 180ms ease;
}

.admin-link:hover,
.admin-link-active {
  background: var(--blue-50);
  color: var(--blue-800);
}

.admin-card {
  border: 1px solid rgb(23 23 23 / 0.10);
  border-radius: 1.55rem;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 20px 70px rgb(23 23 23 / 0.045);
}

.admin-login-body {
  min-height: 100vh;
  background: #f4f7fb;
}

.admin-login-page {
  min-height: 100vh;
  display: grid;
  background:
    radial-gradient(circle at 80% 8%, rgb(47 111 169 / 0.16), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #eef6ff 48%, #f4f0e6 100%);
}

.admin-login-hero {
  position: relative;
  display: none;
  overflow: hidden;
  min-height: 100vh;
  background: var(--admin-blue-deep);
}

.admin-login-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgb(12 53 114 / 0.92), rgb(47 111 169 / 0.82)),
    url('https://genbijambi.com/public/uploads/slider-4.png') center/cover;
}

.admin-login-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.10) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 255 255 / 0.10) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(120deg, black, transparent 78%);
}

.admin-login-hero-bg::after {
  content: '';
  position: absolute;
  right: -9rem;
  bottom: -12rem;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.18);
  background: rgb(255 255 255 / 0.08);
}

.admin-login-hero-content {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: clamp(2rem, 5vw, 4rem);
}

.admin-login-badge {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.22);
  background: rgb(255 255 255 / 0.13);
  padding: 0.55rem 0.85rem;
  color: white;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.admin-login-points {
  display: grid;
  gap: 0.85rem;
  max-width: 34rem;
}

.admin-login-points div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.18);
  padding-top: 0.9rem;
  color: white;
}

.admin-login-points strong {
  font-size: 14px;
}

.admin-login-points span {
  color: rgb(255 255 255 / 0.72);
  font-size: 13px;
  text-align: right;
}

.admin-login-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1rem;
}

.admin-login-card {
  width: min(100%, 32rem);
  border: 1px solid rgb(47 111 169 / 0.13);
  border-radius: 2rem;
  background: rgb(255 255 255 / 0.86);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: 0 28px 90px rgb(47 111 169 / 0.14);
  backdrop-filter: blur(18px);
}

.admin-login-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-login-brand strong,
.admin-login-brand small {
  display: block;
}

.admin-login-brand strong {
  color: #143a60;
  font-size: 15px;
}

.admin-login-brand small {
  margin-top: 0.15rem;
  color: #557899;
  font-size: 12px;
  font-weight: 800;
}

.admin-login-field {
  display: grid;
  gap: 0.55rem;
}

.admin-login-field span {
  color: #3d5d7a;
  font-size: 13px;
  font-weight: 850;
}

.admin-login-field input {
  min-height: 3.15rem;
  width: 100%;
  border-radius: 1.05rem;
  border: 1px solid rgb(47 111 169 / 0.16);
  background: white;
  padding: 0.85rem 1rem;
  color: #171717;
  font-size: 14px;
  outline: 0;
  transition: 180ms ease;
}

.admin-login-field input:focus {
  border-color: var(--admin-blue);
  box-shadow: 0 0 0 4px rgb(47 111 169 / 0.14);
}

.admin-login-check {
  width: 1rem;
  height: 1rem;
  accent-color: var(--admin-blue);
}

.admin-login-note {
  border-radius: 1.25rem;
  border: 1px solid rgb(47 111 169 / 0.12);
  background: var(--admin-blue-soft-2);
  padding: 1rem;
}

.admin-login-note strong {
  color: var(--admin-blue-deep);
  font-size: 13px;
}

.admin-login-note p {
  margin-top: 0.4rem;
  color: #5b7892;
  font-size: 12px;
  line-height: 1.7;
}

.admin-login-error {
  margin-top: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgb(220 38 38 / 0.18);
  background: rgb(254 242 242 / 0.92);
  padding: 0.9rem 1rem;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .admin-login-page {
    grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.75fr);
  }

  .admin-login-hero {
    display: grid;
  }
}

.admin-stat-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 1.05rem;
  background: var(--blue-50);
  color: var(--blue-800);
}

.admin-tab {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--border-subtle) / 0.12);
  background: rgb(var(--surface-default));
  padding: 0.65rem 0.95rem;
  color: rgb(var(--text-secondary));
  font-size: 13px;
  font-weight: 750;
  transition: 180ms ease;
}

.admin-tab:hover,
.admin-tab.is-active {
  border-color: rgb(var(--brand-primary) / 0.34);
  background: rgb(var(--brand-soft));
  color: rgb(var(--brand-primary));
}

.admin-field {
  display: grid;
  gap: 0.55rem;
}

.admin-label {
  font-size: 13px;
  font-weight: 750;
  color: rgb(var(--text-secondary));
}

.admin-input,
.admin-textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgb(var(--border-subtle) / 0.12);
  background: rgb(var(--surface-default));
  padding: 0.78rem 1rem;
  color: rgb(var(--text-primary));
  font-size: 14px;
  outline: none;
  transition: 180ms ease;
}

.admin-textarea {
  min-height: 7rem;
  resize: vertical;
}

.admin-input:focus,
.admin-textarea:focus {
  border-color: rgb(var(--brand-primary));
  box-shadow: 0 0 0 4px rgb(var(--brand-primary) / 0.14);
}

.admin-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: 200ms ease;
}

.admin-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.slide-in {
  opacity: 0;
  transform: translateY(18px);
  animation: slideIn 560ms cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes slideIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1023px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    width: min(88vw, 320px);
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-105%);
    transition: 220ms ease;
  }
  .admin-sidebar.is-open { transform: translateX(0); }
}

/* Admin block editor refinement */
.admin-editor-shell {
  display: grid;
  gap: 1.75rem;
}

.admin-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.admin-editor-aside {
  flex: none;
  display: flex;
  align-items: center;
}

.editor-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-800);
  border: 1px solid rgb(17 75 154 / 0.18);
  padding: 0.45rem 0.8rem;
  font-size: 12px;
  font-weight: 800;
}

.admin-editor-canvas {
  display: grid;
  gap: 1rem;
  max-width: 980px;
}

.block-editor-item {
  position: relative;
  border: 1px solid rgb(23 23 23 / 0.10);
  border-radius: 1.35rem;
  background: rgb(var(--surface-raised, 255 255 255) / 0.92);
  padding: 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.block-editor-item:hover,
.block-editor-item:focus-within {
  border-color: rgb(17 75 154 / 0.34);
  background: rgb(var(--surface-default, 255 255 255));
  box-shadow: 0 18px 50px rgb(17 75 154 / 0.08);
}

.block-editor-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.block-editor-input {
  min-height: 2.9rem;
  width: 100%;
  border-radius: 1rem;
  padding: 0.2rem 0.1rem;
  color: rgb(var(--text-primary, 23 23 23));
  font-size: 1.06rem;
  line-height: 1.78;
  outline: none;
}

.block-editor-item.is-long .block-editor-input {
  min-height: 9rem;
  font-size: 1.08rem;
}

.block-editor-item.is-code .block-editor-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgb(var(--text-primary, 31 41 55));
  white-space: pre-wrap;
}

.block-editor-input:empty::before {
  content: attr(data-placeholder);
  color: #a3a3a3;
}

.block-editor-toolbar {
  position: absolute;
  top: -0.9rem;
  right: 1rem;
  z-index: 5;
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: 160ms ease;
}

.block-editor-item:focus-within .block-editor-toolbar,
.block-editor-item:hover .block-editor-toolbar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.block-editor-toolbar button {
  min-height: 1.9rem;
  border-radius: 999px;
  border: 1px solid rgb(17 75 154 / 0.16);
  background: rgb(var(--surface-default, 255 255 255));
  padding: 0.25rem 0.58rem;
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgb(23 23 23 / 0.08);
}

.block-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.block-choice {
  min-height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgb(23 23 23 / 0.12);
  background: white;
  padding: 0.45rem 0.95rem;
  color: #525252;
  font-size: 13px;
  font-weight: 800;
  transition: 180ms ease;
}

.block-choice:hover,
.block-choice.is-active {
  border-color: rgb(17 75 154 / 0.28);
  background: var(--blue-50);
  color: var(--blue-800);
}

.admin-upload-zone {
  display: grid;
  gap: 1rem;
  border-radius: 1.1rem;
  border: 1px dashed rgb(17 75 154 / 0.34);
  background: var(--blue-50);
  padding: 1.2rem;
}

.admin-file-input {
  width: 100%;
  border-radius: 1rem;
  background: rgb(var(--surface-default, 255 255 255));
  border: 1px solid rgb(17 75 154 / 0.18);
  padding: 0.72rem;
  color: rgb(var(--text-primary, 64 64 64));
  font-size: 14px;
}

.admin-media-preview {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgb(23 23 23 / 0.10);
  background: rgb(255 255 255 / 0.78);
  border-radius: 1.35rem;
  padding: 1rem;
}

.admin-media-preview img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 12px 30px rgb(23 23 23 / 0.06);
}

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

.admin-media-grid .admin-media-preview {
  grid-template-columns: 1fr;
}

.admin-media-grid .admin-media-preview img {
  height: 150px;
  object-fit: cover;
}

.color-editor-row {
  display: grid;
  grid-template-columns: 1fr 8rem;
  gap: 0.75rem;
  align-items: stretch;
}

.color-swatch-blue {
  display: block;
  border-radius: 1rem;
  background: var(--blue-800);
  border: 1px solid rgb(23 23 23 / 0.10);
}

.admin-page-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.25rem;
  align-items: start;
}

.admin-page-editor-canvas {
  display: grid;
  gap: 1.25rem;
}

.admin-page-editor-overview {
  position: sticky;
  top: 6rem;
  border: 1px solid rgb(23 23 23 / 0.10);
  border-radius: 1.55rem;
  background: rgba(255,255,255,0.86);
  padding: 1.2rem;
  box-shadow: 0 20px 70px rgb(23 23 23 / 0.045);
}

.block-page-hero,
.block-editor-group {
  border: 1px solid rgb(23 23 23 / 0.10);
  border-radius: 1.55rem;
  background: rgb(var(--surface-raised, 255 255 255) / 0.92);
  padding: 1.35rem;
  box-shadow: 0 20px 70px rgb(23 23 23 / 0.045);
}

.block-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgb(23 23 23 / 0.08);
  color: var(--blue-800);
}

.block-group-header h3 {
  color: rgb(var(--text-primary, 23 23 23));
  font-weight: 850;
  letter-spacing: -0.02em;
}

.outline-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 1rem;
  padding: 0.7rem 0.8rem;
  color: rgb(var(--text-secondary, 82 82 82));
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  transition: 160ms ease;
}

.outline-link:hover {
  background: var(--blue-50);
  color: var(--blue-800);
}

.outline-link span:last-child {
  display: inline-grid;
  min-width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border-radius: 999px;
  background: rgb(17 75 154 / 0.10);
  color: var(--blue-800);
  font-size: 12px;
}

@media (max-width: 1023px) {
  .admin-page-editor-layout {
    grid-template-columns: 1fr;
  }
  .admin-page-editor-overview {
    position: static;
    order: -1;
  }
  .admin-editor-head {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .admin-media-preview,
  .admin-media-grid {
    grid-template-columns: 1fr;
  }
  .color-editor-row {
    grid-template-columns: 1fr;
  }
  .color-swatch-blue {
    min-height: 3rem;
  }
}

/* v7 public hero and admin CMS refinements */
.video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #0a0a0a;
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-stat-mini {
  border-top: 1px solid rgb(255 255 255 / 0.28);
  padding-top: 1rem;
}

.btn-danger {
  background: #dc2626;
  color: white;
  box-shadow: 0 10px 24px rgb(220 38 38 / 0.18);
}

.btn-danger:hover {
  background: #b91c1c;
}

.admin-sidebar {
  background: linear-gradient(180deg, var(--blue-800), #0c3f82 62%, #0c3572);
  border-right: 0;
  color: white;
}

.admin-topbar {
  background: linear-gradient(90deg, var(--blue-900), var(--blue-800));
  border-bottom: 0;
  color: white;
}

.admin-topbar-inner {
  display: flex;
  height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 1rem;
}

@media (min-width: 768px) {
  .admin-topbar-inner { padding-inline: 2rem; }
}
@media (min-width: 1024px) {
  .admin-topbar-inner { padding-inline: 2.5rem; }
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1.25rem;
  padding: 0.65rem;
  color: white;
  transition: 180ms ease;
}

.admin-brand:hover { background: rgb(255 255 255 / 0.10); }

.admin-brand-logo,
.admin-top-logo {
  display: inline-grid;
  place-items: center;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 16px 30px rgb(0 0 0 / 0.12);
}

.admin-brand-logo {
  width: 3.2rem;
  height: 3.2rem;
  padding: 0.45rem;
}

.admin-brand-logo img,
.admin-top-logo img {
  max-width: 100%;
  height: auto;
}

.admin-top-logo {
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.4rem;
}

.admin-visit-link {
  display: inline-flex;
  min-height: 2.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.22);
  background: rgb(255 255 255 / 0.11);
  padding-inline: 1rem;
  color: white;
  font-size: 13px;
  font-weight: 800;
  transition: 180ms ease;
}

.admin-visit-link:hover { background: rgb(255 255 255 / 0.18); }

.admin-menu-button {
  background: rgb(255 255 255 / 0.12);
  color: white;
  border-color: rgb(255 255 255 / 0.22);
}

.admin-link {
  color: rgb(255 255 255 / 0.78);
}

.admin-link:hover,
.admin-link-active {
  background: rgb(255 255 255 / 0.13);
  color: white;
}

.admin-nav-group.is-open > .admin-link {
  background: rgb(255 255 255 / 0.16);
  color: white;
}

.admin-subnav {
  display: grid;
  gap: 0.2rem;
  margin: 0.25rem 0 0.6rem 2.35rem;
}

.admin-sub-link {
  display: block;
  border-radius: 0.9rem;
  padding: 0.55rem 0.75rem;
  color: rgb(255 255 255 / 0.70);
  font-size: 13px;
  font-weight: 750;
  transition: 160ms ease;
}

.admin-sub-link:hover,
.admin-sub-link.is-active {
  background: rgb(0 0 0 / 0.18);
  color: white;
}

.cms-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.cms-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .cms-header { flex-direction: row; align-items: flex-end; }
}

.cms-toolbar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cms-toolbar { flex-direction: row; align-items: center; }
}

.cms-search {
  display: flex;
  min-height: 2.85rem;
  align-items: center;
  gap: 0.65rem;
  border-radius: 1rem;
  border: 1px solid rgb(23 23 23 / 0.12);
  background: rgb(var(--surface-default, 255 255 255));
  padding-inline: 0.9rem;
  color: var(--blue-800);
  width: min(100%, 360px);
}

.cms-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: rgb(var(--text-primary, 38 38 38));
  font-size: 14px;
}

.admin-responsive-table {
  overflow-x: auto;
  border-radius: 1.25rem;
  border: 1px solid rgb(23 23 23 / 0.08);
  background: rgb(var(--surface-default, 255 255 255));
}

.cms-table {
  min-width: 860px;
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cms-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid rgb(23 23 23 / 0.08);
}

.cms-table td {
  padding: 1rem;
  border-bottom: 1px solid rgb(23 23 23 / 0.07);
  vertical-align: top;
  color: #262626;
}

.cms-table tr:hover td { background: rgb(238 246 255 / 0.36); }

.table-thumb {
  width: 96px;
  height: 70px;
  object-fit: cover;
  border-radius: 0.75rem;
}

.table-banner {
  width: 210px;
  height: 58px;
  object-fit: cover;
  border-radius: 0.75rem;
}

.cms-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  color: white;
  font-size: 13px;
  font-weight: 800;
  transition: 160ms ease;
}

.cms-action.edit { background: var(--blue-800); }
.cms-action.delete { background: #ef4444; }
.cms-action:hover { transform: translateY(-1px); filter: brightness(0.95); }

.cms-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-800);
  padding: 0.4rem 0.7rem;
  font-size: 12px;
  font-weight: 800;
}

.cms-pill.muted {
  background: #f5f5f5;
  color: #525252;
}

.cms-pill-blue {
  background: rgba(17, 75, 154, 0.12);
  color: var(--blue-800);
}

.program-list-icon {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #eef5ff, #e2edf9);
  color: var(--blue-800);
  box-shadow: inset 0 0 0 1px rgb(17 75 154 / 0.10);
  flex: 0 0 auto;
}

.feature-image-microstack {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.feature-image-microstack img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.75rem;
  object-fit: cover;
  border: 1px solid rgb(23 23 23 / 0.08);
}

.language-grid {
  display: grid;
  gap: 0.75rem;
}

.language-row {
  display: grid;
  gap: 0.75rem;
  border-radius: 1.15rem;
  border: 1px solid rgb(23 23 23 / 0.08);
  background: rgb(var(--surface-default, 255 255 255));
  padding: 0.85rem;
}

.language-row code {
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 900;
}

.language-edit {
  min-height: 2.4rem;
  outline: 0;
  border-radius: 0.85rem;
  padding: 0.45rem 0.55rem;
  color: rgb(var(--text-primary, 38 38 38));
  line-height: 1.6;
}

.language-edit:focus {
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px rgb(17 75 154 / 0.24);
}

@media (min-width: 768px) {
  .language-row { grid-template-columns: 220px 1fr; align-items: center; }
}

.editor-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.25rem;
  align-items: start;
}

.editor-workspace.compact {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.block-writing-surface,
.editor-config-sidebar,
.config-card {
  border: 1px solid rgb(23 23 23 / 0.10);
  background: rgb(var(--surface-raised, 255 255 255) / 0.92);
  border-radius: 1.55rem;
  box-shadow: 0 20px 70px rgb(23 23 23 / 0.045);
}

.block-writing-surface {
  padding: clamp(1.25rem, 3vw, 2.2rem);
  min-height: 70vh;
}

.editor-config-sidebar {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 1rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.config-card {
  padding: 1rem;
}

.config-card h2 {
  margin-bottom: 0.9rem;
  color: rgb(var(--text-primary, 23 23 23));
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.config-field {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.config-field span {
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.config-input {
  width: 100%;
  border-radius: 0.95rem;
  border: 1px solid rgb(23 23 23 / 0.12);
  background: rgb(var(--surface-default, 255 255 255));
  padding: 0.75rem 0.85rem;
  color: rgb(var(--text-primary, 38 38 38));
  font-size: 14px;
  outline: 0;
  transition: 180ms ease;
}

.config-input:focus {
  border-color: var(--blue-800);
  box-shadow: 0 0 0 4px rgb(17 75 154 / 0.14);
}

.config-preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgb(23 23 23 / 0.08);
}

.config-empty {
  display: grid;
  min-height: 8rem;
  place-items: center;
  border-radius: 1rem;
  border: 1px dashed rgb(17 75 154 / 0.28);
  background: var(--blue-50);
  color: var(--blue-800);
  font-size: 13px;
  font-weight: 800;
}

.editor-toolbar {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.editor-toolbar button {
  min-height: 2.15rem;
  border-radius: 999px;
  border: 1px solid rgb(17 75 154 / 0.16);
  background: white;
  padding: 0.35rem 0.75rem;
  color: var(--blue-800);
  font-size: 13px;
  font-weight: 850;
}

.sticky-toolbar {
  position: sticky;
  top: 5.7rem;
  z-index: 20;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.88);
  padding: 0.4rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgb(23 23 23 / 0.06);
  width: fit-content;
}

.news-title-block,
.news-excerpt-block,
.news-body-block,
.mini-block div,
.code-block-editor {
  outline: none;
}

.news-title-block:empty::before,
.news-excerpt-block:empty::before,
.news-body-block:empty::before,
.mini-block div:empty::before {
  content: attr(data-placeholder);
  color: #a3a3a3;
}

.news-title-block {
  font-family: 'Source Serif 4', Georgia, serif;
  min-height: 4.5rem;
  color: #171717;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 1.02;
  font-weight: 650;
  letter-spacing: -0.045em;
}

.news-excerpt-block {
  margin-top: 1.3rem;
  max-width: 860px;
  color: #525252;
  font-size: 1.16rem;
  line-height: 1.75;
}

.news-body-block {
  margin-top: 2rem;
  max-width: 820px;
  color: #262626;
  font-size: 1.08rem;
  line-height: 1.9;
}

.news-body-block.smaller { min-height: 12rem; }

.news-body-block p { margin-top: 1.1rem; }
.news-body-block h2 { margin-top: 2rem; font-family: 'Source Serif 4', Georgia, serif; font-size: 2rem; line-height: 1.15; font-weight: 650; }
.news-body-block blockquote { margin-top: 1.4rem; border-left: 4px solid var(--blue-800); padding-left: 1rem; color: #404040; font-style: italic; }

.team-form-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 768px) { .team-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.mini-block {
  display: grid;
  gap: 0.35rem;
  border-top: 1px solid rgb(23 23 23 / 0.10);
  padding-top: 1rem;
}

.mini-block span {
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-block div {
  min-height: 2.3rem;
  color: #262626;
  font-size: 1rem;
  line-height: 1.7;
}

.slider-card-grid,
.team-card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .slider-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) { .team-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.slider-card,
.team-admin-card {
  display: grid;
  gap: 1rem;
  position: relative;
  border-radius: 1.3rem;
  border: 1px solid rgb(23 23 23 / 0.10);
  background: white;
  padding: 1rem;
  transition: 180ms ease;
}

.team-admin-card.is-home {
  border-color: rgb(17 75 154 / 0.34);
  box-shadow: 0 18px 50px rgb(17 75 154 / 0.10);
}

.team-select-check {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  border-radius: 999px;
  background: var(--blue-50);
  padding: 0.35rem 0.65rem;
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 850;
}

.team-select-check.hidden {
  display: none !important;
}

.team-home-toggle {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: var(--blue-800);
  color: white;
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 12px 30px rgb(17 75 154 / 0.20);
}

.team-home-toggle.hidden {
  display: none !important;
}

.team-admin-card.is-batch {
  padding-top: 2.85rem;
}

.team-batch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  border-radius: 1rem;
  border: 1px solid rgb(23 23 23 / 0.10);
  background: rgb(255 255 255 / 0.84);
  padding: 0.75rem;
}

.team-batch-bar.hidden {
  display: none !important;
}

.team-action-row,
.team-filter-row,
.team-filter-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.team-filter-row {
  padding: 0.75rem;
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.74);
  border: 1px solid rgb(23 23 23 / 0.08);
}

.team-control-toolbar,
.cms-toolbar.team-control-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cms-toolbar.team-control-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

.team-control-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.team-control-primary {
  justify-content: space-between;
  align-items: flex-end;
}

.team-control-secondary {
  justify-content: flex-start;
}

.team-control-filters,
.team-control-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.team-control-filters {
  align-items: flex-end;
}

.team-control-actions {
  justify-content: flex-end;
}

@media (max-width: 767px) {
  .team-control-primary,
  .team-control-filters,
  .team-control-actions,
  .team-control-secondary {
    flex-direction: column;
    align-items: stretch;
  }

  .team-control-filters,
  .team-control-actions {
    width: 100%;
  }

  .team-filter-field,
  .team-control-actions .cms-search,
  .team-control-secondary .view-toggle,
  .team-control-secondary #team-batch-toggle {
    width: 100%;
  }

  .team-filter-field {
    flex: 1 1 100%;
  }

  .team-filter-field .config-input,
  .team-filter-field select,
  .team-control-actions .cms-search {
    width: 100%;
  }

  .team-control-secondary .view-toggle {
    justify-content: space-between;
  }

  .team-control-secondary .view-toggle-btn,
  .team-control-secondary #team-batch-toggle {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.team-filter-field {
  flex: 1 1 12rem;
  color: #525252;
  font-size: 12px;
  font-weight: 850;
}

.slider-card:hover,
.team-admin-card:hover {
  border-color: rgb(17 75 154 / 0.24);
  box-shadow: 0 18px 50px rgb(17 75 154 / 0.08);
}

.slider-card img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 1rem;
}

.slider-card h2,
.team-admin-card h2 {
  color: #171717;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.slider-card p,
.team-admin-card p { color: #525252; font-size: 14px; line-height: 1.6; }
.slider-card span { color: var(--blue-800); font-size: 12px; font-weight: 850; }

.team-card-list {
  display: grid;
  gap: 0.85rem;
}

.team-card-list .team-admin-card {
  grid-template-columns: 88px 1fr auto;
  align-items: center;
}

.team-admin-photo,
.member-preview-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--blue-50);
  color: var(--blue-800);
  font-weight: 900;
}

.team-admin-photo {
  width: 100%;
  aspect-ratio: 1;
}

.team-admin-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-preview-avatar {
  width: 100%;
  min-height: 11rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 3rem;
}

.member-preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.team-tags span {
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-800);
  padding: 0.32rem 0.6rem;
  font-size: 11px;
  font-weight: 850;
}

.team-card-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
}

.view-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  border-radius: 999px;
  background: rgb(var(--surface-default, 255 255 255));
  border: 1px solid rgb(23 23 23 / 0.10);
  padding: 0.3rem;
}

.view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.2rem;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: rgb(var(--text-secondary, 82 82 82));
  font-size: 13px;
  font-weight: 850;
}

.view-toggle button.is-active {
  background: var(--blue-800);
  color: white;
}

.code-block-editor {
  min-height: 20rem;
  white-space: pre-wrap;
  border-radius: 1.2rem;
  border: 1px solid rgb(23 23 23 / 0.10);
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.7;
}

.admin-confirm {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: rgb(15 23 42 / 0.55);
  padding: 1rem;
  backdrop-filter: blur(10px);
}

.admin-confirm.hidden { display: none; }

.admin-confirm-panel {
  width: min(100%, 440px);
  border-radius: 1.6rem;
  background: rgb(var(--surface-raised, 255 252 246));
  padding: 1.5rem;
  box-shadow: 0 28px 90px rgb(0 0 0 / 0.25);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: 160ms ease;
}

.admin-confirm-panel.is-wide {
  width: min(100%, 720px);
}

.admin-confirm-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.admin-confirm-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 1rem;
  background: var(--blue-50);
  color: var(--blue-800);
}

@media (max-width: 1023px) {
  .editor-workspace,
  .editor-workspace.compact { grid-template-columns: 1fr; }
  .editor-config-sidebar { position: static; }
  .block-writing-surface { min-height: auto; }
  .sticky-toolbar { top: 5rem; }
}

@media (max-width: 767px) {
  .team-card-list .team-admin-card { grid-template-columns: 1fr; }
  .team-card-actions { justify-content: flex-start; }
  .news-title-block { font-size: clamp(2rem, 12vw, 3rem); }
}

/* v8 admin calmer blue and Medium-like Editor.js refinement */
:root {
  --admin-blue: #2f6fa9;
  --admin-blue-deep: #174f86;
  --admin-blue-soft: #eef6ff;
  --admin-blue-soft-2: #f7fbff;
  --admin-border-blue: #d7e8f8;
}

.admin-body {
  background: #f4f7fb;
}

.admin-sidebar {
  background: linear-gradient(180deg, #fbfdff 0%, #f2f8ff 56%, #edf5fc 100%) !important;
  border-right: 1px solid var(--admin-border-blue) !important;
  color: #193b5d !important;
  box-shadow: 12px 0 34px rgb(47 111 169 / 0.05);
}

.admin-topbar {
  background: rgba(248, 251, 255, 0.94) !important;
  border-bottom: 1px solid var(--admin-border-blue) !important;
  color: #193b5d !important;
  box-shadow: 0 10px 30px rgb(47 111 169 / 0.05);
}

.admin-brand {
  color: #193b5d !important;
}

.admin-brand:hover {
  background: rgb(47 111 169 / 0.08) !important;
}

.admin-brand .text-white,
.admin-topbar .text-white {
  color: #143a60 !important;
}

.admin-brand .text-blue-100,
.admin-topbar .text-blue-100 {
  color: #557899 !important;
}

.admin-brand-logo,
.admin-top-logo {
  background: white !important;
  box-shadow: 0 12px 28px rgb(47 111 169 / 0.12) !important;
  border: 1px solid rgb(47 111 169 / 0.10);
}

.admin-link {
  color: #3d5d7a !important;
}

.admin-link:hover,
.admin-link-active,
.admin-nav-group.is-open > .admin-link {
  background: var(--admin-blue-soft) !important;
  color: var(--admin-blue-deep) !important;
}

.admin-link svg,
.admin-sub-link svg {
  color: currentColor;
}

.admin-subnav {
  border-left: 1px solid rgb(47 111 169 / 0.16);
}

.admin-sub-link {
  color: #5b7892 !important;
}

.admin-sub-link:hover,
.admin-sub-link.is-active {
  background: white !important;
  color: var(--admin-blue-deep) !important;
  box-shadow: inset 0 0 0 1px rgb(47 111 169 / 0.10);
}

.admin-nav-group.is-open > .admin-link span.ml-auto {
  color: #7b9cb9 !important;
}

.admin-visit-link {
  border-color: rgb(47 111 169 / 0.16) !important;
  background: white !important;
  color: var(--admin-blue-deep) !important;
  box-shadow: 0 12px 24px rgb(47 111 169 / 0.08);
}

.admin-visit-link:hover {
  background: var(--admin-blue-soft) !important;
}

.admin-menu-button {
  background: white !important;
  color: var(--admin-blue-deep) !important;
  border-color: rgb(47 111 169 / 0.18) !important;
}

.btn-primary,
.cms-action.edit,
.view-toggle button.is-active {
  background: var(--admin-blue) !important;
}

.btn-primary:hover,
.cms-action.edit:hover {
  background: var(--admin-blue-deep) !important;
}

.cms-pill,
.team-tags span,
.blue-badge {
  background: var(--admin-blue-soft) !important;
  color: var(--admin-blue-deep) !important;
}

.config-input:focus,
.admin-input:focus,
.admin-textarea:focus {
  border-color: var(--admin-blue) !important;
  box-shadow: 0 0 0 4px rgb(47 111 169 / 0.14) !important;
}

html[data-theme^="dark-"] .admin-body {
  background: rgb(var(--background-default));
  color: rgb(var(--text-primary));
}

html[data-theme^="dark-"] .admin-sidebar,
html[data-theme^="dark-"] .admin-topbar {
  border-color: rgb(var(--border-subtle) / 0.18);
  background: rgb(var(--background-default) / 0.92);
}

html[data-theme^="dark-"] .admin-main,
html[data-theme^="dark-"] #admin-content {
  background: rgb(var(--background-default));
}

html[data-theme^="dark-"] .admin-card,
html[data-theme^="dark-"] .admin-responsive-table,
html[data-theme^="dark-"] .cms-toolbar,
html[data-theme^="dark-"] .team-filter-row,
html[data-theme^="dark-"] .settings-upload-card,
html[data-theme^="dark-"] .settings-banner-preview,
html[data-theme^="dark-"] .theme-card,
html[data-theme^="dark-"] .simple-admin-card,
html[data-theme^="dark-"] .team-admin-card,
html[data-theme^="dark-"] .comment-admin-card,
html[data-theme^="dark-"] .feature-image-card,
html[data-theme^="dark-"] .rounded-2xl.bg-white,
html[data-theme^="dark-"] [class*="bg-white"] {
  border-color: rgb(var(--border-subtle) / 0.18) !important;
  background: rgb(var(--surface-default) / 0.92) !important;
  color: rgb(var(--text-primary)) !important;
}

html[data-theme^="dark-"] .admin-brand,
html[data-theme^="dark-"] .admin-brand .text-white,
html[data-theme^="dark-"] .admin-topbar .text-white,
html[data-theme^="dark-"] .admin-topbar h1 {
  color: rgb(var(--text-primary)) !important;
}

html[data-theme^="dark-"] .admin-brand .text-blue-100,
html[data-theme^="dark-"] .admin-topbar .text-blue-100,
html[data-theme^="dark-"] .admin-link,
html[data-theme^="dark-"] .admin-sub-link,
html[data-theme^="dark-"] .section-title,
html[data-theme^="dark-"] .outline-link,
html[data-theme^="dark-"] [class*="text-neutral-500"],
html[data-theme^="dark-"] [class*="text-neutral-600"],
html[data-theme^="dark-"] [class*="text-neutral-700"] {
  color: rgb(var(--text-secondary)) !important;
}

html[data-theme^="dark-"] [class*="text-neutral-950"],
html[data-theme^="dark-"] [class*="text-neutral-900"],
html[data-theme^="dark-"] .config-card h2,
html[data-theme^="dark-"] .block-group-header h3,
html[data-theme^="dark-"] .block-editor-input,
html[data-theme^="dark-"] .language-edit,
html[data-theme^="dark-"] .cms-table td,
html[data-theme^="dark-"] .config-input,
html[data-theme^="dark-"] .admin-input,
html[data-theme^="dark-"] .admin-textarea,
html[data-theme^="dark-"] .settings-input,
html[data-theme^="dark-"] .cms-search input,
html[data-theme^="dark-"] .feature-icon-button strong {
  color: rgb(var(--text-primary)) !important;
}

html[data-theme^="dark-"] .admin-brand-logo,
html[data-theme^="dark-"] .admin-top-logo,
html[data-theme^="dark-"] .admin-visit-link,
html[data-theme^="dark-"] .admin-menu-button,
html[data-theme^="dark-"] .admin-sub-link:hover,
html[data-theme^="dark-"] .admin-sub-link.is-active,
html[data-theme^="dark-"] .admin-tab,
html[data-theme^="dark-"] .btn-secondary,
html[data-theme^="dark-"] .block-page-hero,
html[data-theme^="dark-"] .block-editor-group,
html[data-theme^="dark-"] .block-editor-item,
html[data-theme^="dark-"] .block-writing-surface,
html[data-theme^="dark-"] .config-card,
html[data-theme^="dark-"] .language-row,
html[data-theme^="dark-"] .view-toggle,
html[data-theme^="dark-"] .admin-responsive-table,
html[data-theme^="dark-"] .config-input,
html[data-theme^="dark-"] .admin-input,
html[data-theme^="dark-"] .admin-textarea,
html[data-theme^="dark-"] .cms-search,
html[data-theme^="dark-"] .feature-icon-button {
  border-color: rgb(var(--border-subtle) / 0.18) !important;
  background: rgb(var(--surface-raised)) !important;
  color: rgb(var(--text-primary)) !important;
}

html[data-theme^="dark-"] .admin-link:hover,
html[data-theme^="dark-"] .admin-link-active,
html[data-theme^="dark-"] .admin-nav-group.is-open > .admin-link,
html[data-theme^="dark-"] .admin-tab:hover,
html[data-theme^="dark-"] .admin-tab.is-active,
html[data-theme^="dark-"] .outline-link:hover,
html[data-theme^="dark-"] .theme-card.is-selected,
html[data-theme^="dark-"] .cms-pill,
html[data-theme^="dark-"] .team-tags span,
html[data-theme^="dark-"] .blue-badge,
html[data-theme^="dark-"] .editor-status-pill {
  border-color: rgb(var(--brand-primary) / 0.34) !important;
  background: rgb(var(--brand-soft)) !important;
  color: rgb(var(--brand-primary)) !important;
}

html[data-theme^="dark-"] .cms-table th {
  border-color: rgb(var(--border-subtle) / 0.18);
  background: rgb(var(--surface-raised));
  color: rgb(var(--text-primary));
}

html[data-theme^="dark-"] .cms-table td {
  border-color: rgb(var(--border-subtle) / 0.14);
}

html[data-theme^="dark-"] .cms-table tr:hover td {
  background: rgb(var(--brand-soft) / 0.34);
}

html[data-theme^="dark-"] .dark-theme-note,
html[data-theme^="dark-"] [class*="bg-blue-50"] {
  background: rgb(var(--brand-soft) / 0.32) !important;
  color: rgb(var(--text-primary)) !important;
}

html[data-theme^="dark-"] [class*="text-blue-950"],
html[data-theme^="dark-"] [class*="text-blue-800"] {
  color: rgb(var(--brand-primary)) !important;
}

html[data-theme^="dark-"] .block-group-header,
html[data-theme^="dark-"] .admin-activity-item,
html[data-theme^="dark-"] .admin-health-card {
  border-color: rgb(var(--border-subtle) / 0.18) !important;
}

html[data-theme^="dark-"] .block-editor-toolbar button,
html[data-theme^="dark-"] .editor-toolbar button,
html[data-theme^="dark-"] .outline-link span:last-child {
  background: rgb(var(--surface-default)) !important;
  color: rgb(var(--brand-primary)) !important;
}

html[data-theme^="dark-"] .sticky-toolbar,
html[data-theme^="dark-"] .medium-editor-canvas {
  border-color: rgb(var(--border-subtle) / 0.18) !important;
  background: rgb(var(--surface-default) / 0.92) !important;
  color: rgb(var(--text-primary)) !important;
}

html[data-theme^="dark-"] ::placeholder {
  color: rgb(var(--text-tertiary)) !important;
  opacity: 1;
}

.medium-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(1rem, 2.4vw, 1.5rem);
  align-items: start;
}

.prestasi-editor-form {
  max-width: 760px;
  margin-inline: auto;
}

.prestasi-config-panel {
  display: grid;
  gap: 1rem;
  position: static;
}

.medium-editor-canvas {
  min-height: calc(100vh - 10rem);
  border: 1px solid rgb(23 23 23 / 0.08);
  border-radius: 1.7rem;
  background: #fffdf8;
  padding: clamp(1.1rem, 3vw, 2.5rem);
  box-shadow: 0 24px 70px rgb(23 23 23 / 0.045);
}

.medium-editor-kicker {
  margin-bottom: 1rem;
  color: var(--admin-blue-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.medium-editor-host {
  max-width: 720px;
  margin-inline: auto;
}

.medium-editor-help {
  max-width: 820px;
  margin: 2rem auto 0;
  border-top: 1px solid rgb(23 23 23 / 0.08);
  padding-top: 1rem;
  color: #737373;
  font-size: 13px;
  line-height: 1.7;
}

.medium-config-sidebar {
  top: 6.2rem;
}

.medium-config-card {
  background: rgb(255 255 255 / 0.9);
}

.config-hint {
  color: #737373;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.editor-fallback {
  max-width: 820px;
  margin-inline: auto;
}

.editor-fallback h1,
.editor-fallback p,
.editor-fallback article {
  outline: 0;
}

.editor-fallback h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  color: #171717;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.02;
  font-weight: 650;
  letter-spacing: -0.045em;
}

.editor-fallback p {
  margin-top: 1.25rem;
  color: #525252;
  font-size: 1.18rem;
  line-height: 1.75;
}

.editor-fallback article {
  margin-top: 2rem;
  color: #262626;
  font-size: 1.08rem;
  line-height: 1.9;
}

.medium-editor-host .ce-toolbar__plus,
.medium-editor-host .ce-toolbar__settings-btn {
  color: var(--admin-blue-deep);
  background: white;
  border: 1px solid rgb(47 111 169 / 0.12);
  box-shadow: 0 8px 20px rgb(47 111 169 / 0.08);
}

.medium-editor-host .ce-toolbar__plus:hover,
.medium-editor-host .ce-toolbar__settings-btn:hover,
.medium-editor-host .ce-inline-tool:hover {
  background: var(--admin-blue-soft);
  color: var(--admin-blue-deep);
}

.medium-editor-host .ce-block__content,
.medium-editor-host .ce-toolbar__content {
  max-width: 720px;
}

.medium-editor-host .ce-paragraph,
.medium-editor-host .cdx-quote__text,
.medium-editor-host .cdx-list {
  color: #262626;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  line-height: 1.9;
  text-align: justify;
}

.editor-fallback article,
.editor-fallback p,
.editor-fallback li,
.editor-fallback div {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  line-height: 1.9;
  text-align: justify;
}

.medium-editor-host .ce-paragraph[data-placeholder]:empty::before {
  color: #a3a3a3;
}

.medium-editor-host .ce-header {
  font-family: 'Source Serif 4', Georgia, serif;
  color: #171717;
  letter-spacing: -0.045em;
}

.medium-editor-host h1.ce-header,
.medium-editor-host .ce-header[data-level="1"] {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1.02;
  font-weight: 650;
}

.medium-editor-host h2.ce-header,
.medium-editor-host .ce-header[data-level="2"] {
  margin-top: 1.1rem;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.12;
  font-weight: 650;
}

.medium-editor-host h3.ce-header,
.medium-editor-host .ce-header[data-level="3"] {
  margin-top: 1rem;
  font-size: 1.55rem;
  line-height: 1.24;
  font-weight: 700;
}

.medium-editor-host .image-tool__image,
.medium-editor-host .image-tool__image-picture {
  border-radius: 1.25rem;
  overflow: hidden;
}

.medium-editor-host .image-tool--loading .image-tool__image,
.medium-editor-host .image-tool.image-tool--loading {
  position: relative;
  min-height: 180px;
  border: 1px dashed rgb(47 111 169 / 0.35);
  border-radius: 1.25rem;
  background: rgb(47 111 169 / 0.08);
}

.medium-editor-host .image-tool--loading .image-tool__image::after,
.medium-editor-host .image-tool.image-tool--loading::after {
  content: 'Mengupload gambar...';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--admin-blue-deep);
  font-size: 0.9rem;
  font-weight: 800;
}

.medium-editor-host .image-tool__caption,
.medium-editor-host .cdx-input {
  border-color: rgb(23 23 23 / 0.10);
  box-shadow: none;
  border-radius: 0.85rem;
}

.medium-editor-host .ce-conversion-toolbar,
.medium-editor-host .ce-settings,
.medium-editor-host .ce-popover {
  border-radius: 1rem;
  border-color: rgb(23 23 23 / 0.10);
  box-shadow: 0 22px 60px rgb(23 23 23 / 0.14);
}

@media (max-width: 1180px) {
  .medium-editor-layout {
    grid-template-columns: 1fr;
  }
  .medium-config-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .medium-editor-canvas {
    padding: 1rem;
    border-radius: 1.25rem;
  }
  .medium-config-sidebar {
    grid-template-columns: 1fr;
  }
  .medium-editor-host .ce-paragraph,
  .medium-editor-host .cdx-quote__text,
  .medium-editor-host .cdx-list {
    font-size: 1rem;
  }
}

/* v9 refinements: public editorial sections and stronger clean admin blue */
.bpi-editorial-list,
.event-editorial-list {
  border: 1px solid rgb(23 23 23 / 0.10);
  border-radius: 1.75rem;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 24px 70px rgb(23 23 23 / 0.045);
  overflow: hidden;
}

.bpi-row,
.event-row {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border-top: 1px solid rgb(23 23 23 / 0.08);
  transition: background 180ms ease, transform 180ms ease;
}

.bpi-row:first-child,
.event-row:first-child { border-top: 0; }
.bpi-row:hover,
.event-row:hover { background: rgb(238 246 255 / 0.55); }

.bpi-row {
  grid-template-columns: 3rem minmax(0, 1fr);
}

.bpi-row h3,
.event-row h3 {
  color: #171717;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.bpi-row p,
.event-row p {
  margin-top: 0.35rem;
  color: #525252;
  font-size: 14px;
  line-height: 1.7;
}

.bpi-row > span:last-child {
  grid-column: 2;
  width: fit-content;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-800);
  padding: 0.35rem 0.65rem;
  font-size: 11px;
  font-weight: 850;
}

.bpi-number {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-800);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.event-row {
  grid-template-columns: 3.25rem minmax(0, 1fr);
  align-items: start;
}

.event-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 1rem;
  background: var(--blue-50);
  color: var(--blue-800);
}

.event-icon svg { width: 1.2rem; height: 1.2rem; }
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.4rem;
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 800;
}

.contact-prefooter {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid rgb(23 23 23 / 0.10);
  border-radius: 1.85rem;
  background: rgba(255,255,255,0.78);
  padding: clamp(1.25rem, 4vw, 2.2rem);
  box-shadow: 0 24px 70px rgb(23 23 23 / 0.045);
}

.contact-prefooter-card {
  border-radius: 1.45rem;
  background: #0c3572;
  padding: 1.3rem;
  color: white;
  box-shadow: 0 18px 44px rgb(12 53 114 / 0.18);
}

.contact-prefooter-card p { color: rgb(255 255 255 / 0.84); line-height: 1.7; }
.contact-prefooter-card a:not(.btn) { color: white; font-weight: 700; }
.contact-label { margin-bottom: 0.55rem; color: white !important; font-size: 12px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }

@media (min-width: 900px) {
  .contact-prefooter { grid-template-columns: minmax(0, 1fr) 370px; }
}

.contact-map-meta-card {
  border-radius: 1.55rem;
  border: 1px solid rgb(17 75 154 / 0.17);
  background: linear-gradient(180deg, rgb(241 247 255 / 0.9), rgb(255 255 255 / 0.96));
  padding: 1.45rem;
}

.contact-map-shell {
  overflow: hidden;
  border-radius: 1.6rem;
  border: 1px solid rgb(23 23 23 / 0.1);
  background: linear-gradient(180deg, #f7fbff, #eff5fb);
  min-height: 360px;
}

.contact-map-shell iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
}

.contact-map-empty {
  display: grid;
  min-height: 360px;
  place-items: center;
  text-align: center;
  padding: 1.25rem;
  color: #334155;
}

.contact-map-empty p {
  margin-top: 0.5rem;
  color: #64748b;
}

.admin-contact-grid {
  display: grid;
  gap: 1rem;
}

.admin-contact-preview {
  align-self: start;
}

.admin-contact-preview-card {
  border-radius: 1.2rem;
  border: 1px solid rgb(17 75 154 / 0.18);
  background: linear-gradient(180deg, #f5f9ff, #ffffff);
  padding: 1rem;
}

.admin-contact-preview-map {
  margin-top: 0.9rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgb(23 23 23 / 0.1);
  min-height: 260px;
  background: #f8fbff;
}

.admin-contact-preview-map iframe {
  width: 100%;
  min-height: 260px;
  border: 0;
}

.admin-contact-preview-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: #3f4f63;
}

.admin-contact-preview-empty p {
  margin-top: 0.45rem;
  color: #64748b;
}

@media (min-width: 1024px) {
  .admin-contact-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .admin-contact-preview {
    position: sticky;
    top: 1rem;
  }
}

:root {
  --admin-blue: #246aa7;
  --admin-blue-deep: #114f89;
  --admin-blue-hover: #dceeff;
  --admin-blue-active: #1d5f9c;
  --admin-blue-soft: #eaf4ff;
  --admin-blue-soft-2: #f4f9ff;
  --admin-border-blue: #c9dff3;
}

.admin-sidebar {
  background: linear-gradient(180deg, #f6fbff 0%, #eaf4ff 52%, #dfeefc 100%) !important;
  box-shadow: 14px 0 34px rgb(36 106 167 / 0.08) !important;
}

.admin-topbar {
  background: rgba(242, 248, 255, 0.96) !important;
  box-shadow: 0 10px 30px rgb(36 106 167 / 0.07) !important;
}

.admin-link:hover {
  background: var(--admin-blue-hover) !important;
  color: var(--admin-blue-deep) !important;
  box-shadow: inset 0 0 0 1px rgb(36 106 167 / 0.12);
}

.admin-link-active,
.admin-nav-group.is-open > .admin-link {
  background: var(--admin-blue-active) !important;
  color: white !important;
  box-shadow: 0 12px 28px rgb(36 106 167 / 0.20);
}

.admin-nav-group.is-open > .admin-link span.ml-auto { color: rgb(255 255 255 / 0.78) !important; }
.admin-sub-link:hover { background: var(--admin-blue-hover) !important; color: var(--admin-blue-deep) !important; }
.admin-sub-link.is-active { background: white !important; color: var(--admin-blue-deep) !important; box-shadow: inset 3px 0 0 var(--admin-blue-active), 0 8px 22px rgb(36 106 167 / 0.08); }

.btn-primary,
.cms-action.edit,
.view-toggle button.is-active {
  background: var(--admin-blue-active) !important;
}

.btn-primary:hover,
.cms-action.edit:hover {
  background: var(--admin-blue-deep) !important;
}

.cms-table tr:hover td { background: rgb(220 238 255 / 0.58) !important; }

.config-input,
.admin-input,
.admin-textarea,
.cms-search,
select.config-input,
input.config-input,
textarea.config-input {
  border-color: rgb(17 79 137 / 0.18) !important;
  background-color: #fff !important;
}

.config-input:hover,
.admin-input:hover,
.admin-textarea:hover,
.cms-search:hover {
  border-color: rgb(17 79 137 / 0.34) !important;
}

select.config-input,
select.admin-input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #114f89 50%), linear-gradient(135deg, #114f89 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.6rem !important;
}

.config-input[type="file"],
.admin-file-input,
input[type="file"].config-input {
  cursor: pointer;
  padding: 0.55rem !important;
  color: #3b5871;
}

.config-input[type="file"]::file-selector-button,
.admin-file-input::file-selector-button,
input[type="file"].config-input::file-selector-button {
  margin-right: 0.85rem;
  border: 0;
  border-radius: 999px;
  background: var(--admin-blue-active);
  color: white;
  padding: 0.55rem 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.config-input[type="file"]::file-selector-button:hover,
.admin-file-input::file-selector-button:hover,
input[type="file"].config-input::file-selector-button:hover {
  background: var(--admin-blue-deep);
  transform: translateY(-1px);
}

.story-main-block {
  max-width: 820px;
  margin-inline: auto;
  padding-block: 0.65rem 1.05rem;
  border-bottom: 1px solid rgb(23 23 23 / 0.08);
}

.story-main-block label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--admin-blue-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-title-field,
.story-excerpt-field {
  outline: none;
  border-radius: 1rem;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.story-title-field {
  min-height: 4.2rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2.4rem, 5.8vw, 5rem);
  line-height: 1.02;
  font-weight: 650;
  letter-spacing: -0.045em;
  color: #171717;
}

.story-excerpt-field {
  min-height: 4.5rem;
  color: #525252;
  font-size: 1.17rem;
  line-height: 1.75;
}

.story-title-field:empty::before,
.story-excerpt-field:empty::before {
  content: attr(data-placeholder);
  color: #a3a3a3;
}

.story-title-field:focus,
.story-excerpt-field:focus {
  background: rgb(234 244 255 / 0.62);
  box-shadow: 0 0 0 8px rgb(234 244 255 / 0.72);
}

.medium-editor-divider {
  max-width: 820px;
  margin: 1.2rem auto 0.8rem;
}

.news-caption-cell {
  max-width: 520px;
  color: #525252;
  font-size: 13px;
  line-height: 1.65;
}

.team-commission-select {
  width: 100%;
  min-height: 2.75rem;
  border-radius: 1rem;
  border: 1px solid rgb(17 79 137 / 0.18);
  background-color: white;
  padding: 0.72rem 2.6rem 0.72rem 0.85rem;
  color: #262626;
  font-size: 14px;
  outline: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #114f89 50%), linear-gradient(135deg, #114f89 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.team-commission-select:focus {
  border-color: var(--admin-blue-active);
  box-shadow: 0 0 0 4px rgb(36 106 167 / 0.14);
}

.simple-card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) { .simple-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .simple-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.simple-admin-card {
  border: 1px solid rgb(17 79 137 / 0.12);
  border-radius: 1.35rem;
  background: white;
  padding: 1rem;
  box-shadow: 0 16px 44px rgb(36 106 167 / 0.055);
  transition: 180ms ease;
}

.simple-admin-card:hover {
  border-color: rgb(17 79 137 / 0.28);
  box-shadow: 0 18px 50px rgb(36 106 167 / 0.10);
  transform: translateY(-1px);
}

.simple-admin-card h2 { color: #172033; font-weight: 900; letter-spacing: -0.02em; }
.simple-admin-card p { margin-top: 0.5rem; color: #526579; font-size: 14px; line-height: 1.7; }
.simple-admin-card img { width: 100%; height: 170px; object-fit: cover; border-radius: 1rem; background: #f5f7fb; }
.simple-admin-card .meta { margin-top: 0.8rem; color: var(--admin-blue-deep); font-size: 12px; font-weight: 850; }

/* v10 landing carousel refinements */
.home-section-intro {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.carousel-shell {
  position: relative;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.carousel-control-row {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.carousel-nav {
  display: inline-grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgb(12 53 114 / 0.18);
  background: white;
  color: var(--blue-800);
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 12px 32px rgb(12 53 114 / 0.08);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.carousel-nav:hover {
  transform: translateY(-1px);
  border-color: rgb(12 53 114 / 0.28);
  background: var(--blue-800);
  color: white;
}

.carousel-nav:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgb(21 91 184 / 0.16), 0 12px 32px rgb(12 53 114 / 0.08);
}

.horizontal-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: max(1rem, calc((100vw - 1180px) / 2));
  scroll-snap-type: x mandatory;
  padding: 0.35rem max(1rem, calc((100vw - 1180px) / 2)) 1.4rem;
  margin-inline: calc(-1 * max(1rem, calc((100vw - 1180px) / 2)));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.horizontal-carousel::-webkit-scrollbar { display: none; }

.announcement-hero-section {
  position: relative;
  overflow: hidden;
}

.announcement-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 16%, rgb(17 75 154 / 0.08), transparent 28%),
    linear-gradient(180deg, rgb(255 255 255 / 0.58), rgb(255 255 255 / 0));
}

.announcement-hero-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.announcement-link {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgb(17 75 154 / 0.14);
  background: rgb(255 255 255 / 0.72);
  padding: 0.55rem 1rem;
  color: var(--blue-800);
  font-size: 0.82rem;
  font-weight: 850;
  box-shadow: 0 14px 36px rgb(17 75 154 / 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.announcement-link:hover {
  transform: translateY(-1px);
  border-color: rgb(17 75 154 / 0.26);
  background: white;
}

.announcement-scroll {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: max(1rem, calc((100vw - 1180px) / 2));
  scroll-snap-type: x mandatory;
  padding: 1rem max(1rem, calc((100vw - 1180px) / 2)) 2rem;
  margin-inline: calc(-1 * max(1rem, calc((100vw - 1180px) / 2)));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.announcement-scroll::-webkit-scrollbar {
  display: none;
}

.announcement-scroll.is-centered {
  justify-content: center;
  margin-inline: 0;
  padding-inline: 0;
}

.announcement-card {
  position: relative;
  display: grid;
  flex: 0 0 min(84vw, 390px);
  min-height: clamp(22rem, 34vw, 29rem);
  scroll-snap-align: center;
  align-content: center;
  border: 1px solid rgb(17 75 154 / 0.12);
  border-radius: clamp(1.25rem, 2.5vw, 1.8rem);
  background:
    linear-gradient(180deg, rgb(12 53 114 / 0.96), rgb(17 75 154 / 0.90)),
    linear-gradient(135deg, rgb(238 246 255), rgb(255 255 255));
  padding: clamp(1.4rem, 3vw, 2.2rem);
  color: white;
  text-align: center;
  box-shadow: 0 22px 60px rgb(17 75 154 / 0.11);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.announcement-card:hover {
  transform: translateY(-3px);
  border-color: rgb(17 75 154 / 0.24);
  box-shadow: 0 28px 80px rgb(17 75 154 / 0.10);
}

.announcement-number {
  display: inline-grid;
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.94);
  color: var(--blue-800);
  font-size: 0.78rem;
  font-weight: 900;
}

.announcement-date {
  display: inline-flex;
  width: fit-content;
  margin-inline: auto;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.22);
  padding: 0.45rem 0.8rem;
  color: rgb(255 255 255 / 0.98);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.announcement-card h3 {
  margin-top: 1rem;
  color: white;
  text-shadow: 0 2px 14px rgb(0 0 0 / 0.18);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.9rem, 3.15vw, 2.55rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.announcement-card p {
  margin-top: 0.9rem;
  color: rgb(255 255 255 / 0.94);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.7;
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.14);
}

@media (max-width: 640px) {
  .announcement-hero-header {
    align-items: start;
    flex-direction: column;
  }
}

.editorial-slide-card {
  position: relative;
  flex: 0 0 min(84vw, 390px);
  scroll-snap-align: center;
  border: 1px solid rgb(23 23 23 / 0.10);
  border-radius: 1.75rem;
  background: rgba(255,255,255,0.84);
  box-shadow: 0 24px 70px rgb(23 23 23 / 0.05);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.editorial-slide-card:hover {
  transform: translateY(-3px);
  border-color: rgb(17 75 154 / 0.22);
  box-shadow: 0 28px 90px rgb(17 75 154 / 0.10);
}

.program-slide-card,
.event-slide-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.15rem, 2.4vw, 1.8rem);
}

.program-slide-card,
.agenda-slide-card {
  position: relative;
  isolation: isolate;
  align-items: center;
  text-align: center;
  color: #f7fbff;
  border-color: rgb(17 75 154 / 0.20);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.86), rgb(255 255 255 / 0.92));
}

.program-slide-card::before,
.agenda-slide-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background-image: var(--program-bg-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}

.program-slide-card::after,
.agenda-slide-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(12,53,114,.94) 0%, rgba(17,75,154,.82) 44%, rgba(17,75,154,.68) 74%, rgba(17,75,154,.58) 100%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.18));
}

.event-slide-card {
  align-items: center;
  text-align: center;
}

.program-slide-card:hover,
.agenda-slide-card:hover {
  border-color: rgb(17 75 154 / 0.28);
  box-shadow: 0 28px 90px rgb(17 75 154 / 0.16);
}

.program-slide-card h3,
.event-slide-card h3,
.bpi-slide-card h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  color: #171717;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  line-height: 1.04;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.program-slide-card p:not(.slide-kicker),
.event-slide-card p,
.bpi-slide-card p {
  max-width: 29rem;
  margin-top: 0.9rem;
  color: #525252;
  font-size: 0.96rem;
  line-height: 1.75;
}

.event-slide-card p,
.bpi-slide-card p {
  margin-inline: auto;
}

.program-slide-card p:not(.slide-kicker),
.agenda-slide-card p:not(.slide-kicker) {
  max-width: 18.25rem;
  color: rgba(247, 251, 255, 0.92);
  margin-inline: auto;
  font-size: 0.98rem;
  line-height: 1.6;
  font-weight: 500;
}

.slide-kicker {
  margin-bottom: 0.65rem;
  color: rgba(247, 251, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.program-slide-card h3,
.agenda-slide-card h3 {
  max-width: 17rem;
  margin-inline: auto;
  color: #ffffff;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.slide-index {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-800);
  font-size: 0.72rem;
  font-weight: 900;
}

.program-slide-card .slide-index,
.agenda-slide-card .slide-index {
  background: rgb(238 246 255 / 0.95);
  color: var(--blue-800);
  box-shadow: inset 0 0 0 1px rgb(17 75 154 / 0.10);
}

.program-slide-card .blue-badge,
.agenda-slide-card .blue-badge {
  margin-top: 0.85rem;
  background: rgba(247, 251, 255, 0.16);
  color: #f7fbff;
  padding: 0.42rem 0.82rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16);
}

.agenda-slide-card .program-icon {
  background: rgba(247, 251, 255, 0.14);
  color: #f7fbff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16);
}

.agenda-slide-card .program-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.bpi-slide-card {
  flex-basis: min(82vw, 330px);
  background: white;
}

.bpi-slide-photo {
  aspect-ratio: 1 / 1.08;
  background: linear-gradient(180deg, #fff, #f3f7fd);
  overflow: hidden;
}

.bpi-slide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.02);
  transition: transform 420ms ease;
}

.bpi-slide-card:hover .bpi-slide-photo img { transform: scale(1.06); }

.bpi-slide-content {
  min-height: 210px;
  padding: 1.35rem 1.25rem 1.55rem;
  text-align: center;
}

.bpi-slide-content h3 {
  margin-top: 0.9rem;
  font-size: 1.65rem;
}

.bpi-slide-content p {
  margin-top: 0.45rem;
  font-size: 0.9rem;
}

.event-slide-card .event-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.2rem;
  border-radius: 1.15rem;
}

.event-slide-card .event-meta {
  justify-content: center;
  margin-bottom: 0.9rem;
}

@media (min-width: 768px) {
  .horizontal-carousel { gap: 1.25rem; }
  .program-slide-card,
  .event-slide-card { flex-basis: min(55vw, 430px); }
  .bpi-slide-card { flex-basis: min(45vw, 345px); }
}

@media (min-width: 1180px) {
  .program-slide-card,
  .event-slide-card { flex-basis: 430px; }
  .bpi-slide-card { flex-basis: 345px; }
}

/* v11 public news engagement, fixed modals, comment moderation, and icon carousel refinements */
.modal-lock {
  overflow: hidden;
}

.public-fixed-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow-y: auto;
  background: rgb(15 23 42 / 0.56);
  padding: clamp(1rem, 3vw, 2rem);
  backdrop-filter: blur(12px);
}

.public-fixed-modal.hidden {
  display: none;
}

.public-modal-panel {
  position: relative;
  width: min(100%, 760px);
  margin: auto;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  border-radius: 1.8rem;
  border: 1px solid rgb(23 23 23 / 0.10);
  background: #fbfaf7;
  padding: clamp(1rem, 3vw, 1.6rem);
  box-shadow: 0 30px 100px rgb(0 0 0 / 0.28);
}

.category-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.category-editor-modal.hidden {
  display: none;
}

.category-editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 0.52);
  backdrop-filter: blur(10px);
}

.category-editor-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.2rem;
  width: min(540px, 100%);
  max-height: min(88vh, 640px);
  overflow-y: auto;
  border-radius: 1.45rem;
  border: 1px solid rgb(23 23 23 / 0.08);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: clamp(1rem, 2.4vw, 1.5rem);
  box-shadow: 0 30px 80px rgb(15 23 42 / 0.28);
}

.presensi-member-picker-modal .category-editor-panel {
  width: min(920px, calc(100vw - 2rem));
  max-height: min(90vh, 760px);
}

.category-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.category-editor-head h2 {
  margin: 0.25rem 0;
  color: #0f172a;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 800;
}

.category-editor-head p:not(.eyebrow) {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

.category-editor-close {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(15 23 42 / 0.08);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 1.6rem;
  line-height: 1;
}

.category-editor-form {
  display: grid;
  gap: 1rem;
}

.category-editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .category-editor-modal {
    align-items: end;
    padding: 0.65rem;
  }

  .category-editor-panel {
    border-radius: 1.15rem;
  }
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  background: rgb(255 255 255 / 0.92) !important;
}

.program-icon {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 0.75rem;
  place-items: center;
  border-radius: 0.9rem;
  background: rgb(238 246 255 / 0.95);
  color: var(--blue-800);
  box-shadow: inset 0 0 0 1px rgb(17 75 154 / 0.14);
}

.program-icon svg {
  width: 1rem;
  height: 1rem;
}

.feature-editor-form {
  display: grid;
  gap: 1.5rem;
}

.feature-editor-main {
  display: grid;
  gap: 1.25rem;
}

.feature-story-card,
.feature-media-card {
  border-radius: 1.45rem;
  border: 1px solid rgb(23 23 23 / 0.08);
  background: white;
  padding: 1.25rem;
  box-shadow: 0 16px 40px rgb(17 24 39 / 0.04);
}

.feature-story-card {
  display: grid;
  gap: 0.75rem;
}

.feature-label {
  display: block;
  color: var(--blue-800);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-title-input,
.story-name-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0a0a0a;
  font-family: 'Source Serif 4', Georgia, serif;
  letter-spacing: 0;
}

.story-title-input {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.02;
}

.story-name-input {
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.08;
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

.feature-media-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.feature-media-head h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #171717;
}

.feature-media-head p {
  margin-top: 0.35rem;
  max-width: 34rem;
  color: #525252;
  font-size: 0.92rem;
  line-height: 1.7;
}

.feature-image-board {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-image-card {
  overflow: hidden;
  border-radius: 1.05rem;
  border: 1px solid rgb(23 23 23 / 0.08);
  background: #f8fbff;
}

.feature-image-card img {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  object-fit: cover;
}

.feature-image-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
}

.feature-image-card-meta span {
  color: #525252;
  font-size: 0.78rem;
  font-weight: 800;
}

.feature-image-move,
.feature-image-remove {
  border: 0;
  border-radius: 0.7rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.feature-image-move {
  background: #eef4fb;
  color: var(--blue-800);
}

.admin-confirm-message p + p {
  margin-top: 0.75rem;
}

.presensi-public-page {
  padding: clamp(3rem, 8vw, 6rem) 1rem clamp(3.5rem, 8vw, 6.5rem);
  background:
    linear-gradient(180deg, rgb(var(--brand-soft, 238 246 255) / 0.62), rgb(255 255 255) 42%),
    rgb(255 255 255);
}

.presensi-public-container {
  width: min(100%, 46rem);
  margin-inline: auto;
}

.presensi-public-card {
  display: grid;
  gap: 1.35rem;
  border: 1px solid rgb(var(--brand-primary, 17 75 154) / 0.18);
  border-radius: 1.35rem;
  background: rgb(255 255 255 / 0.98);
  box-shadow: 0 28px 70px rgb(17 75 154 / 0.12);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.presensi-public-head {
  display: grid;
  gap: 0.45rem;
  border-bottom: 1px solid rgb(var(--border-subtle, 23 23 23) / 0.1);
  padding-bottom: 1.15rem;
}

.presensi-public-head h1 {
  color: rgb(var(--text-primary, 23 23 23));
  font-family: var(--font-serif, "Source Serif 4", Georgia, serif);
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  font-weight: 650;
  line-height: 1.05;
}

.presensi-public-head p:not(.eyebrow) {
  color: rgb(var(--text-secondary, 82 82 82));
  font-size: 0.98rem;
  line-height: 1.65;
}

.presensi-public-card .config-field {
  gap: 0.55rem;
}

.presensi-public-card .config-field > span {
  color: rgb(var(--text-primary, 23 23 23));
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.presensi-public-card .config-input,
.presensi-public-card .select-button {
  min-height: 3rem;
  border-color: rgb(var(--brand-primary, 17 75 154) / 0.2);
  background: rgb(255 255 255);
  color: rgb(var(--text-primary, 23 23 23));
  font-size: 0.95rem;
}

.presensi-public-card .config-input:focus,
.presensi-public-card .select-button:focus-visible,
.presensi-public-card .select-button[aria-expanded="true"] {
  border-color: rgb(var(--brand-primary, 17 75 154) / 0.58);
  box-shadow: 0 0 0 4px rgb(var(--brand-primary, 17 75 154) / 0.14);
}

.presensi-public-card .select-menu {
  border-color: rgb(var(--brand-primary, 17 75 154) / 0.18);
  box-shadow: 0 24px 55px rgb(17 75 154 / 0.16);
}

.presensi-public-card .btn-primary {
  min-height: 3rem;
  border-radius: 1rem;
}

.presensi-inline-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(6.5rem, 9rem) auto;
  gap: 0.75rem;
  align-items: center;
}

.presensi-score-input {
  min-width: 0;
}

.presensi-chip-list {
  display: block;
  margin-top: 0.9rem;
}

.presensi-member-list {
  margin-top: 0.9rem;
}

.presensi-member-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.presensi-member-actions {
  display: flex;
  justify-content: flex-start;
}

.presensi-member-actions .btn {
  white-space: nowrap;
}

.presensi-btn-icon {
  display: inline-grid;
  place-items: center;
}

.presensi-chip,
.presensi-member-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.35rem;
  border: 1px solid rgb(var(--border-subtle, 23 23 23) / 0.12);
  border-radius: 999px;
  background: rgb(var(--brand-soft, 238 246 255));
  color: rgb(var(--brand-primary, 17 75 154));
  padding: 0.5rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 800;
}

.presensi-member-pill {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.1rem;
  border-radius: 0.9rem;
  background: rgb(var(--surface-raised, 255 255 255));
  color: rgb(var(--text-primary, 23 23 23));
  text-align: left;
}

.presensi-member-pill small {
  color: rgb(var(--text-secondary, 82 82 82));
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.presensi-member-table-wrap,
.presensi-role-table-wrap {
  margin-top: 0;
  border-radius: 1rem;
}

.presensi-member-table th,
.presensi-member-table td,
.presensi-role-table th,
.presensi-role-table td {
  vertical-align: middle;
  white-space: nowrap;
}

.presensi-role-table .config-input {
  min-height: 2.45rem;
  border-radius: 0.75rem;
}

.presensi-role-edit-input {
  min-width: min(100%, 16rem);
}

.presensi-role-score-edit-input {
  width: 7.5rem;
}

.presensi-role-table .config-input:disabled {
  border-color: transparent;
  background: transparent;
  color: rgb(var(--text-primary, 23 23 23));
  opacity: 1;
  padding-left: 0;
  box-shadow: none;
}

.presensi-role-table .presensi-role-score-edit-input:disabled {
  width: 5.5rem;
}

.presensi-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
}

.presensi-icon-btn svg,
.category-editor-close svg {
  width: 1rem;
  height: 1rem;
}

.presensi-autocomplete {
  position: relative;
}

.presensi-suggestions {
  position: absolute;
  z-index: 90;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  max-height: min(18rem, 55vh);
  overflow-y: auto;
  border: 1px solid rgb(var(--border-subtle, 23 23 23) / 0.12);
  border-radius: 1rem;
  background: rgb(var(--surface-raised, 255 255 255));
  box-shadow: 0 20px 45px rgb(15 23 42 / 0.16);
  padding: 0.45rem;
}

.presensi-suggestions.hidden {
  display: none;
}

.presensi-suggestions button,
.presensi-suggestions p {
  display: grid;
  width: 100%;
  gap: 0.15rem;
  border-radius: 0.75rem;
  padding: 0.7rem 0.8rem;
  text-align: left;
}

.presensi-suggestions button:hover,
.presensi-suggestions button:focus-visible {
  outline: none;
  background: rgb(var(--brand-soft, 238 246 255));
}

.presensi-suggestions strong {
  color: rgb(var(--text-primary, 23 23 23));
  font-size: 0.9rem;
}

.presensi-suggestions span,
.presensi-suggestions p {
  color: rgb(var(--text-secondary, 82 82 82));
  font-size: 0.78rem;
  font-weight: 650;
}

.presensi-public-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

.presensi-qr-box {
  display: grid;
  place-items: center;
  width: 14rem;
  min-height: 14rem;
  border: 1px solid rgb(var(--border-subtle, 23 23 23) / 0.12);
  border-radius: 1rem;
  background: #fff;
  padding: 0.75rem;
}

.presensi-qr-box canvas {
  width: 100%;
  height: auto;
}

.presensi-qr-modal {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.presensi-qr-modal p {
  max-width: min(100%, 32rem);
  overflow-wrap: anywhere;
  color: rgb(var(--text-secondary, 82 82 82));
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

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

.presensi-detail-grid strong {
  display: block;
  margin-top: 0.25rem;
  color: rgb(var(--text-primary, 23 23 23));
}

.presensi-proof-photo {
  margin-top: 1.25rem;
  max-height: 70vh;
  width: 100%;
  object-fit: contain;
  border-radius: 1rem;
  background: rgb(var(--surface-soft, 248 250 252));
}

.presensi-photo-modal {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.presensi-photo-modal .presensi-proof-photo {
  margin-top: 0;
}

.presensi-photo-modal figcaption {
  color: rgb(var(--text-secondary, 82 82 82));
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.presensi-member-picker {
  display: grid;
  gap: 1rem;
}

.presensi-picker-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0.9rem;
  align-items: end;
}

.presensi-check-all {
  display: inline-flex;
  grid-column: 1 / -1;
  width: fit-content;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgb(var(--border-subtle, 23 23 23) / 0.12);
  border-radius: 999px;
  background: rgb(var(--surface-raised, 255 255 255));
  color: rgb(var(--text-primary, 23 23 23));
  padding: 0.55rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 800;
}

.presensi-check-all input,
.presensi-picker-row input {
  width: 1rem;
  height: 1rem;
  accent-color: rgb(var(--brand-primary, 17 75 154));
}

.presensi-picker-list {
  display: grid;
  gap: 0.55rem;
  max-height: min(52vh, 28rem);
  overflow: auto;
  padding-right: 0.15rem;
}

@media (min-width: 760px) {
  .presensi-member-picker-modal .presensi-picker-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.presensi-picker-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  border: 1px solid rgb(var(--border-subtle, 23 23 23) / 0.1);
  border-radius: 1rem;
  background: rgb(var(--surface-raised, 255 255 255));
  padding: 0.85rem 0.95rem;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.presensi-picker-row:hover,
.presensi-picker-row:focus-within {
  border-color: rgb(var(--brand-primary, 17 75 154) / 0.28);
  background: rgb(var(--brand-soft, 238 246 255));
  box-shadow: 0 10px 28px rgb(15 23 42 / 0.08);
}

.presensi-picker-row span {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.presensi-picker-row strong {
  overflow: hidden;
  color: rgb(var(--text-primary, 23 23 23));
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presensi-picker-row small {
  overflow: hidden;
  color: rgb(var(--text-secondary, 82 82 82));
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presensi-picker-pagination {
  display: grid;
  gap: 0.7rem;
}

.presensi-picker-pagination .admin-pagination {
  justify-content: center;
}

.presensi-picker-page-info {
  color: rgb(var(--text-secondary, 82 82 82));
  font-size: 0.8rem;
  font-weight: 750;
  text-align: center;
}

.presensi-page-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.presensi-picker-floating {
  position: sticky;
  bottom: -1px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgb(var(--brand-primary, 17 75 154) / 0.16);
  border-radius: 1rem;
  background: rgb(var(--surface-raised, 255 255 255) / 0.96);
  box-shadow: 0 18px 48px rgb(15 23 42 / 0.14);
  padding: 0.8rem;
  backdrop-filter: blur(14px);
}

.presensi-picker-floating span {
  color: rgb(var(--text-primary, 23 23 23));
  font-size: 0.9rem;
  font-weight: 850;
}

.presensi-table-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgb(var(--border-subtle, 23 23 23) / 0.1);
}

.presensi-row-missing {
  background: rgb(var(--surface-soft, 248 250 252) / 0.62);
}

.presensi-row-missing .admin-cell-title strong,
.presensi-row-missing .admin-cell-meta {
  color: rgb(var(--text-secondary, 82 82 82));
}

.presensi-pill-missing {
  background: rgb(241 245 249);
  color: rgb(71 85 105);
}

@media (max-width: 640px) {
  .presensi-inline-control,
  .presensi-member-control,
  .presensi-public-link,
  .presensi-detail-grid,
  .presensi-picker-toolbar {
    grid-template-columns: 1fr;
  }

  .presensi-picker-floating {
    align-items: stretch;
    flex-direction: column;
  }

  .presensi-picker-floating .btn {
    width: 100%;
  }

  .presensi-qr-box {
    width: 100%;
    min-height: auto;
  }

  .presensi-public-page {
    padding-inline: 0.9rem;
  }

  .presensi-public-card {
    border-radius: 1rem;
  }

  .presensi-role-table .config-input:disabled {
    min-width: 8rem;
  }
}

.feature-image-remove {
  background: #fee2e2;
  color: #b91c1c;
}

.feature-image-empty {
  display: grid;
  min-height: 190px;
  place-items: center;
  border: 1px dashed rgb(17 75 154 / 0.28);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  color: #52616d;
  background: linear-gradient(180deg, #f7fbff, #eff5fb);
}

.feature-config-sidebar {
  gap: 1rem;
}

.feature-icon-picker {
  position: relative;
  z-index: 320;
}

.feature-icon-picker.is-open {
  z-index: 1200;
}

.feature-icon-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgb(23 23 23 / 0.08);
  border-radius: 0.95rem;
  background: #f9fbff;
  padding: 0.9rem 1rem;
  text-align: left;
}

.feature-icon-button-preview {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #eef4fb, #e4eef9);
  color: var(--blue-800);
  flex: 0 0 auto;
}

.feature-icon-button strong {
  display: block;
  color: #171717;
  font-size: 0.92rem;
}

.feature-icon-button small {
  display: block;
  margin-top: 0.15rem;
  color: #6b7280;
}

.feature-icon-menu {
  position: absolute;
  inset: calc(100% + 0.45rem) 0 auto;
  z-index: 1300;
  display: grid;
  gap: 0.4rem;
  border-radius: 1rem;
  border: 1px solid rgb(23 23 23 / 0.08);
  background: white;
  padding: 0.7rem;
  box-shadow: 0 22px 45px rgb(15 23 42 / 0.14);
}

.feature-icon-menu.hidden {
  display: none;
}

.feature-icon-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 0;
  border-radius: 0.8rem;
  background: transparent;
  padding: 0.7rem 0.8rem;
  text-align: left;
  color: #334155;
}

.feature-icon-option.is-active,
.feature-icon-option:hover {
  background: #edf4fb;
  color: var(--blue-800);
}

@media (min-width: 1024px) {
  .feature-editor-form {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }

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

.member-photo-skeleton {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(90deg, #eef4fb 0%, #f8fbff 45%, #e5eef8 80%);
  background-size: 220% 100%;
  animation: skeleton-pulse 1.25s ease-in-out infinite;
}

.member-photo-skeleton::after {
  content: '';
  position: absolute;
  inset: 1.2rem;
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 0.54);
}

.member-photo-skeleton.is-hidden,
.bpi-slide-photo img.is-hidden {
  display: none;
}

@keyframes skeleton-pulse {
  0% { background-position: 0% 50%; }
  100% { background-position: -220% 50%; }
}

.home-news-card,
.related-news-card {
  display: grid;
  gap: 1rem;
  border-top: 1px solid rgb(23 23 23 / 0.10);
  padding: 1.35rem 0;
  color: inherit;
  transition: transform 180ms ease, background 180ms ease;
}

.home-news-card:first-child,
.related-news-card:first-child {
  border-top: 0;
}

.home-news-card:hover,
.related-news-card:hover {
  transform: translateX(4px);
}

.home-news-media,
.related-news-card figure {
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgb(23 23 23 / 0.08);
  background: var(--blue-50);
}

.home-news-media img,
.related-news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.home-news-card:hover img,
.related-news-card:hover img {
  transform: scale(1.04);
}

.home-news-media {
  aspect-ratio: 16 / 10;
}

@media (min-width: 760px) {
  .home-news-card {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
  }
  .related-news-card {
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
  }
  .related-news-card figure {
    aspect-ratio: 4 / 3;
  }
}

.news-engagement-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 48rem;
}

.share-card,
.comment-card {
  border: 1px solid rgb(23 23 23 / 0.10);
  border-radius: 1.6rem;
  background: rgb(255 255 255 / 0.78);
  padding: clamp(1rem, 3vw, 1.45rem);
  box-shadow: 0 22px 60px rgb(23 23 23 / 0.045);
}

.share-button {
  display: inline-flex;
  min-height: 2.45rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgb(17 75 154 / 0.16);
  background: white;
  padding: 0.55rem 0.9rem;
  color: var(--blue-800);
  font-size: 13px;
  font-weight: 850;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.share-button:hover {
  transform: translateY(-1px);
  border-color: rgb(17 75 154 / 0.28);
  background: var(--blue-50);
  color: var(--blue-950);
}

.comment-form {
  display: grid;
  gap: 0.8rem;
}

.comment-item {
  border-radius: 1.2rem;
  border: 1px solid rgb(23 23 23 / 0.08);
  background: white;
  padding: 1rem;
}

.comment-item h3 {
  color: #171717;
  font-weight: 850;
}

.comment-item p {
  color: #737373;
  font-size: 13px;
}

.comment-status,
.comment-status-admin {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eaf4ff;
  color: #114f89;
  padding: 0.38rem 0.65rem;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.comment-status.pending,
.comment-status-admin.pending {
  background: #fff7ed;
  color: #9a3412;
}

.comment-status-admin.flagged {
  background: #fef2f2;
  color: #b91c1c;
}

.comment-status-admin.approved {
  background: #ecfdf5;
  color: #047857;
}

.comment-text {
  margin-top: 0.8rem;
  color: #404040 !important;
  font-size: 14px !important;
  line-height: 1.75;
}

.comment-node {
  display: grid;
  gap: 0.75rem;
}

.comment-children {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.comment-depth-1,
.comment-depth-2,
.comment-depth-3,
.comment-depth-4,
.comment-depth-5,
.comment-depth-6 {
  margin-left: 1rem;
  border-left: 3px solid rgb(17 75 154 / 0.12);
}

.comment-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.comment-vote-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-vote-btn,
.comment-reply-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgb(17 75 154 / 0.14);
  background: #fff;
  padding: 0.45rem 0.8rem;
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 800;
}

.comment-reply-form.hidden {
  display: none;
}

.comment-disabled-note {
  border-radius: 1rem;
  border: 1px solid rgb(23 23 23 / 0.08);
  background: white;
  padding: 0.9rem 1rem;
  color: #525252;
  font-size: 13px;
}

@media (max-width: 640px) {
  .comment-depth-1,
  .comment-depth-2,
  .comment-depth-3,
  .comment-depth-4,
  .comment-depth-5,
  .comment-depth-6 {
    margin-left: 0.5rem;
  }
}

.public-mini-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  border-radius: 1rem;
  background: #0c3572;
  color: white;
  padding: 0.8rem 1rem;
  box-shadow: 0 20px 60px rgb(12 53 114 / 0.20);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 180ms ease;
  font-size: 13px;
  font-weight: 800;
}

.public-mini-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.comment-dashboard {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .comment-dashboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.comment-dashboard article {
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #fff, #f7fbff);
  border: 1px solid rgb(17 79 137 / 0.12);
  padding: 1rem;
}

.comment-dashboard span {
  color: var(--admin-blue-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.comment-dashboard strong {
  display: block;
  margin-top: 0.6rem;
  color: #172033;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
}

.comment-dashboard p {
  margin-top: 0.55rem;
  color: #526579;
  font-size: 13px;
  line-height: 1.6;
}

.comment-moderation-list {
  display: grid;
  gap: 1rem;
}

.comment-moderation-card {
  display: grid;
  gap: 1rem;
  border-radius: 1.35rem;
  border: 1px solid rgb(17 79 137 / 0.12);
  background: rgb(var(--surface-default, 255 255 255));
  padding: 1rem;
  box-shadow: 0 14px 44px rgb(36 106 167 / 0.05);
}

.comment-moderation-card h2 {
  margin-top: 0.55rem;
  color: rgb(var(--text-primary, 23 32 51));
  font-weight: 900;
  letter-spacing: -0.02em;
}

.comment-moderation-text {
  margin-top: 0.9rem;
  color: rgb(var(--text-secondary, 51 65 85));
  font-size: 14px;
  line-height: 1.75;
}

.comment-moderation-side {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: start;
}

.cms-action.hold {
  background: #f59e0b;
}

@media (min-width: 900px) {
  .comment-moderation-card {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: start;
  }
  .comment-moderation-side {
    justify-content: flex-end;
  }
}

.prestasi-row {
  width: 100%;
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  text-align: left;
  transition: background 180ms ease, transform 180ms ease;
}

.prestasi-row-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1.35rem;
  background: linear-gradient(135deg, rgb(var(--blue-50)), rgb(255 255 255));
  color: rgb(var(--blue-800));
  display: grid;
  min-height: 9rem;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.prestasi-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prestasi-layout-switch {
  display: inline-flex;
  justify-content: flex-end;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid rgb(23 23 23 / 0.1);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.78);
}

.prestasi-layout-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.5rem 0.75rem;
  color: #525252;
  font-size: 0.85rem;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.prestasi-layout-toggle svg {
  width: 0.95rem;
  height: 0.95rem;
}

.prestasi-layout-toggle.is-active,
.prestasi-layout-toggle:hover {
  background: var(--blue-50);
  color: var(--blue-950);
}

.prestasi-layout-toggle + .prestasi-layout-toggle {
  border-left: 1px solid rgb(23 23 23 / 0.08);
}

.prestasi-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.prestasi-grid-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.prestasi-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgb(23 23 23 / 0.1);
}

.prestasi-grid .prestasi-row {
  overflow: hidden;
  border: 1px solid rgb(23 23 23 / 0.08);
  border-radius: 1.75rem;
  background: rgb(255 255 255 / 0.9);
  box-shadow: 0 18px 55px rgb(23 23 23 / 0.06);
  grid-template-columns: minmax(0, 1fr);
  min-height: 100%;
  padding: 0;
}

.prestasi-grid .prestasi-row:hover {
  background: rgb(255 255 255 / 0.98);
  box-shadow: 0 24px 70px rgb(23 23 23 / 0.1);
  transform: translateY(-3px);
}

.prestasi-grid .prestasi-row-image {
  border-radius: 0;
  min-height: 0;
}

.prestasi-grid .prestasi-number {
  display: none;
}

.prestasi-grid .prestasi-row-copy,
.prestasi-grid .prestasi-person {
  margin: 0 1.25rem;
}

.prestasi-grid .prestasi-row-copy {
  padding-top: 0.25rem;
}

.prestasi-grid .prestasi-person {
  margin-bottom: 1.25rem;
  margin-top: auto;
}

.prestasi-grid-image {
  aspect-ratio: 4 / 3;
  background: var(--blue-50);
  overflow: hidden;
  flex: 0 0 auto;
}

.prestasi-grid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prestasi-grid-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.prestasi-grid-copy > p:last-child {
  margin-top: auto;
}

.prestasi-row:hover {
  background: rgb(238 246 255 / 0.55);
  transform: translateX(3px);
}

.prestasi-number {
  color: var(--blue-800);
  font-size: 2.5rem;
  line-height: 1;
}

.prestasi-person {
  border-radius: 1.25rem;
  background: var(--blue-50);
  padding: 1rem;
  color: var(--blue-950);
  font-size: 14px;
  line-height: 1.55;
}

@media (min-width: 800px) {
  .prestasi-row {
    grid-template-columns: 180px 80px minmax(0, 1fr) 180px;
    align-items: start;
    padding: 1.5rem;
  }

  .prestasi-list .prestasi-row-image,
  .soft-card.prestasi-list .prestasi-row-image {
    min-height: 7.5rem;
  }

  .prestasi-person {
    grid-column: auto;
  }

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

.prestasi-detail-panel {
  width: min(100%, 940px);
  padding: 0;
}

@media (min-width: 900px) {
  .prestasi-detail-panel {
    display: grid;
    width: min(100%, 1040px);
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;
  }
}

.prestasi-detail-image {
  overflow: hidden;
  border-radius: 1.8rem 1.8rem 0 0;
  background: var(--blue-50);
}

@media (min-width: 900px) {
  .prestasi-detail-image {
    min-height: 100%;
    border-radius: 1.8rem 0 0 1.8rem;
  }
}

.prestasi-detail-image img {
  width: 100%;
  max-height: min(45vh, 360px);
  object-fit: cover;
}

@media (min-width: 900px) {
  .prestasi-detail-image img {
    height: 100%;
    max-height: none;
    min-height: 520px;
  }
}

.prestasi-detail-copy {
  padding: clamp(1.1rem, 3vw, 2rem);
}

@media (min-width: 900px) {
  .prestasi-detail-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.75rem, 3vw, 2.5rem);
  }
}

.prestasi-detail-meta {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

@media (min-width: 760px) {
  .prestasi-detail-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.prestasi-detail-meta p {
  border-radius: 1rem;
  background: white;
  border: 1px solid rgb(23 23 23 / 0.08);
  padding: 0.9rem;
}

.prestasi-detail-meta span {
  display: block;
  color: var(--blue-800);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prestasi-detail-meta strong {
  display: block;
  margin-top: 0.35rem;
  color: #171717;
  font-size: 13px;
  line-height: 1.5;
}

.team-detail-panel {
  width: min(100%, 450px);
  padding: clamp(0.85rem, 2vw, 1.1rem);
}

.team-detail-photo {
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 4;
  margin: 0 auto 1rem;
  place-items: center;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--blue-50);
  color: var(--blue-800);
  font-size: 3rem;
  font-weight: 900;
}

.team-detail-content {
  min-width: 0;
}

@media (min-width: 900px) {
  .team-detail-panel {
    display: grid;
    width: min(100%, 920px);
    grid-template-columns: 450px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
  }

  .team-detail-photo {
    margin: 0;
  }
}

.team-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-detail-heading {
  border-radius: 1.35rem;
  border: 1px solid rgb(23 23 23 / 0.08);
  background: white;
  padding: 1rem;
  box-shadow: 0 16px 45px rgb(17 75 154 / 0.08);
}

.team-detail-info-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.team-detail-info-card,
.team-detail-bio {
  border-radius: 1.1rem;
  border: 1px solid rgb(23 23 23 / 0.08);
  background: rgb(255 255 255 / 0.84);
  padding: 0.85rem 0.95rem;
}

.team-detail-info-card span {
  display: block;
  color: var(--blue-800);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-detail-info-card strong {
  display: block;
  margin-top: 0.35rem;
  color: #171717;
  font-size: 14px;
  line-height: 1.55;
}

.team-detail-bio {
  margin-top: 0.85rem;
  color: #404040;
  font-size: 14px;
  line-height: 1.7;
}
/* Event page */
.event-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .event-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.event-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  border-radius: 1.7rem;
  border: 1px solid rgb(23 23 23 / 0.10);
  background: rgb(255 255 255 / 0.88);
  padding: 1rem;
  box-shadow: 0 18px 60px rgb(17 75 154 / 0.06);
}

.event-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1.35rem;
  background: var(--blue-50);
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border-radius: 999px;
  background: rgb(23 23 23 / 0.72);
  padding: 0.35rem 0.75rem;
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.event-card-badge.upcoming {
  background: var(--blue-800);
}

.event-card-body {
  min-height: 0;
}

.event-detail-panel {
  width: min(100%, 920px);
}

@media (min-width: 900px) {
  .event-detail-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
  }
}

.event-detail-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--blue-50);
  margin-bottom: 1rem;
}

@media (min-width: 900px) {
  .event-detail-image { margin-bottom: 0; }
}

.event-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-detail-content {
  min-width: 0;
}

.event-detail-heading {
  border-radius: 1.35rem;
  border: 1px solid rgb(23 23 23 / 0.08);
  background: white;
  padding: 1rem;
  box-shadow: 0 16px 45px rgb(17 75 154 / 0.08);
}

.event-detail-info-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.event-detail-info-card {
  border-radius: 1.1rem;
  border: 1px solid rgb(23 23 23 / 0.08);
  background: rgb(255 255 255 / 0.84);
  padding: 0.85rem 0.95rem;
}

.event-detail-info-card span {
  display: block;
  color: var(--blue-800);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-detail-info-card strong {
  display: block;
  margin-top: 0.35rem;
  color: #171717;
  font-size: 14px;
  line-height: 1.55;
}

.event-detail-body {
  margin-top: 0.85rem;
  border-radius: 1.1rem;
  border: 1px solid rgb(23 23 23 / 0.08);
  background: rgb(255 255 255 / 0.84);
  padding: 0.85rem 0.95rem;
  color: #404040;
  font-size: 14px;
  line-height: 1.7;
}

.bpi-slide-photo { position: relative; }
.bpi-slide-photo img { position: relative; z-index: 1; }

/* Admin multi-select dropdown */
.admin-multi-select {
  position: relative;
}

.admin-multi-select-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(17 79 137 / 0.18);
  background: white;
  padding: 0.5rem 0.85rem;
  color: #262626;
  font-size: 14px;
  cursor: pointer;
  transition: 150ms ease;
}

.admin-multi-select-button:hover {
  border-color: var(--admin-blue-active);
}

.admin-multi-select-button[aria-expanded="true"] {
  border-color: var(--admin-blue-active);
  box-shadow: 0 0 0 3px rgb(36 106 167 / 0.12);
}

.admin-multi-select-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 900;
  min-width: 16rem;
  max-height: 20rem;
  overflow-y: auto;
  border-radius: 0.875rem;
  border: 1px solid rgb(17 79 137 / 0.12);
  background: white;
  padding: 0.5rem;
  box-shadow: 0 12px 40px rgb(17 79 137 / 0.15);
}

.admin-multi-select-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 14px;
  transition: 120ms ease;
}

.admin-multi-select-option:hover {
  background: var(--blue-50);
}

.admin-multi-select-option input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.admin-multi-select-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgb(17 79 137 / 0.08);
}

.admin-multi-select-clear,
.admin-multi-select-apply {
  flex: 1;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 120ms ease;
}

.admin-multi-select-clear {
  background: rgb(239 239 239);
  color: #525252;
}

.admin-multi-select-clear:hover {
  background: rgb(229 229 229);
}

.admin-multi-select-apply {
  background: var(--blue-800);
  color: white;
}

.admin-multi-select-apply:hover {
  background: var(--admin-blue-active);
}

/* Admin news grid layout */
.admin-news-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.admin-news-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.3rem;
  border: 1px solid rgb(23 23 23 / 0.10);
  background: white;
  overflow: hidden;
  transition: 180ms ease;
}

.admin-news-card:hover {
  border-color: rgb(17 75 154 / 0.24);
  box-shadow: 0 18px 50px rgb(17 75 154 / 0.08);
}

.admin-news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--blue-50);
}

.admin-news-card-placeholder {
  width: 100%;
  height: 180px;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue-800);
  font-weight: 700;
  font-size: 14px;
}

.admin-news-card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.admin-news-card h2 {
  color: #171717;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.admin-news-card p {
  color: #525252;
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
}

.admin-news-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-news-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* View toggle button styles */
.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.2rem;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: #525252;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  transition: 120ms ease;
}

.view-toggle-btn:hover {
  background: rgb(var(--blue-50));
  color: rgb(var(--blue-900));
}

.view-toggle-btn.is-active {
  background: rgb(var(--blue-800));
  color: rgb(255 255 255);
}

/* Admin filter group */
.admin-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cms-toolbar-admin {
  gap: 1.25rem;
}

.admin-toolbar-row,
.admin-toolbar-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.admin-toolbar-footer {
  justify-content: space-between;
}

.admin-toolbar-summary {
  margin-left: auto;
}

.admin-toolbar-inline-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.admin-toolbar-inline-label .admin-custom-select {
  width: auto;
  min-width: 7rem;
}

.admin-filter-group .admin-custom-select {
  width: 14rem;
}

.cms-toolbar-admin .cms-search {
  min-width: 16rem;
}

.admin-data-table-wrap {
  overflow-x: auto;
  border-radius: 1.35rem;
  border: 1px solid var(--admin-border-blue);
  background: white;
  box-shadow: 0 18px 45px rgb(47 111 169 / 0.06);
}

.admin-data-table {
  width: 100%;
  min-width: 1024px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.admin-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--admin-blue-soft-2) 0%, var(--admin-blue-soft) 100%);
  padding: 0.78rem 0.88rem;
  border-bottom: 1px solid rgb(47 111 169 / 0.14);
  color: var(--admin-blue-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
}

.admin-data-table tbody td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid rgb(47 111 169 / 0.08);
  vertical-align: top;
  background: rgb(255 255 255 / 0.92);
}

.admin-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-data-table tbody tr:hover td {
  background: rgb(238 246 255 / 0.72);
}

.admin-col-index { width: 3.5rem; }
.admin-col-title { width: 21rem; }
.admin-col-excerpt { width: 21rem; }
.admin-col-image { width: 7rem; }
.admin-col-meta { width: 10rem; }
.admin-col-status { width: 7.5rem; }
.admin-col-actions { width: 10rem; }
.admin-col-person { width: 9rem; }
.admin-col-year { width: 5.5rem; }
.admin-col-institution { width: 11rem; }

.genbi-point-table {
  min-width: 900px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.84rem;
  line-height: 1.25;
}

.genbi-point-table .genbi-point-col-no {
  width: 2.65rem;
}

.genbi-point-table .genbi-point-col-member {
  width: 15rem;
}

.genbi-point-table .genbi-point-col-detail {
  width: 9.75rem;
}

.genbi-point-table .genbi-point-col-meta {
  width: 12.5rem;
}

.genbi-point-table .genbi-point-col-score {
  width: 9.5rem;
}

.genbi-point-table .genbi-point-col-action {
  width: 9rem;
}

.genbi-point-table thead th:first-child,
.genbi-point-table tbody td:first-child {
  width: 2.65rem;
  padding-left: 0.7rem;
  padding-right: 0.35rem;
}

.genbi-point-table thead th {
  padding: 0.62rem 0.72rem;
  font-size: 0.64rem;
  line-height: 1.15;
}

.genbi-point-table tbody td {
  padding: 0.52rem 0.72rem;
  color: var(--admin-blue-deep);
  font-size: 0.84rem;
  line-height: 1.25;
}

.genbi-point-table .admin-cell-title {
  line-height: 1.2;
}

.genbi-point-table .admin-cell-title strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.2;
}

.genbi-point-table .admin-cell-title p {
  margin-top: 0.12rem;
  color: rgb(var(--text-secondary, 82 82 82));
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
}

.genbi-point-table .admin-cell-meta,
.genbi-point-table .admin-cell-index,
.genbi-point-table .admin-cell-actions {
  font-size: 0.84rem;
  line-height: 1.25;
}

.genbi-point-table .genbi-point-detail-link {
  min-height: 1.55rem;
  padding: 0.22rem 0.46rem;
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
}

.genbi-point-table .genbi-point-detail-link svg {
  flex: 0 0 auto;
  width: 0.8rem;
  height: 0.8rem;
}

.genbi-point-table .admin-cell-actions .btn-sm {
  min-height: 1.75rem;
  padding: 0.34rem 0.56rem;
  white-space: nowrap;
}

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

.genbi-point-summary div {
  border: 1px solid rgb(47 111 169 / 0.16);
  border-radius: 1rem;
  background: rgb(238 246 255 / 0.72);
  padding: 0.9rem 1rem;
}

.genbi-point-summary span {
  display: block;
  color: rgb(var(--text-secondary, 82 82 82));
  font-size: 0.78rem;
  font-weight: 800;
}

.genbi-point-summary strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--admin-blue-deep);
  font-size: 1.45rem;
  line-height: 1;
}

.genbi-point-detail-table {
  min-width: 820px;
}

.genbi-point-detail-table tbody td {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  vertical-align: middle;
}

.genbi-point-detail-table .admin-cell-title strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.25;
}

.genbi-point-detail-table .admin-cell-title p {
  margin-top: 0.18rem;
  color: rgb(var(--text-secondary, 82 82 82));
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.presensi-attendance-table {
  min-width: 900px;
}

.presensi-attendance-table tbody td {
  padding-top: 0.62rem;
  padding-bottom: 0.62rem;
  vertical-align: middle;
}

.presensi-attendance-table .admin-cell-title strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.25;
}

.presensi-attendance-table .admin-cell-meta,
.presensi-attendance-table .admin-cell-status {
  font-size: 0.92rem;
  line-height: 1.35;
}

.presensi-attendance-table .cms-pill {
  min-height: 2rem;
  padding: 0.38rem 0.72rem;
}

.presensi-attendance-table .admin-table-actions,
.presensi-attendance-table .admin-cell-actions {
  align-items: center;
  white-space: nowrap;
}

.presensi-attendance-table .btn-sm,
.presensi-photo-button {
  min-height: 2.1rem;
  padding: 0.45rem 0.75rem;
}

.admin-cell-index,
.admin-cell-year {
  color: var(--admin-blue-deep);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-cell-thumb,
.admin-cell-status,
.admin-cell-actions {
  vertical-align: middle;
}

.admin-table-title {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.admin-table-title strong {
  color: var(--admin-blue-deep);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  word-break: break-word;
}

.admin-table-title p,
.admin-table-copy {
  color: #557899;
  font-size: 10.5px;
  line-height: 1.35;
}

.admin-table-copy {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-table-media {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

.admin-thumb-placeholder {
  display: grid;
  place-items: center;
  width: 76px;
  min-width: 76px;
  height: 56px;
  border: 1px dashed rgb(47 111 169 / 0.22);
  border-radius: 0.65rem;
  background: var(--admin-blue-soft);
  color: var(--admin-blue-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-start;
}

.admin-table-actions .btn {
  min-width: 0;
  min-height: 2rem;
  border-radius: 0.6rem;
  padding: 0.38rem 0.6rem;
  font-size: 11.5px;
  gap: 0.32rem;
}

.admin-table-actions .btn svg {
  flex: none;
}

.admin-data-table .table-thumb {
  width: 76px;
  height: 56px;
  border-radius: 0.65rem;
  border: 1px solid rgb(47 111 169 / 0.10);
  object-fit: cover;
  background: rgb(245 247 250);
}

.admin-table-actions .btn.btn-secondary,
.admin-table-actions .btn.btn-danger,
.admin-table-actions .btn.btn-outline {
  box-shadow: none;
}

.admin-table-actions .btn.btn-secondary {
  border-color: rgb(47 111 169 / 0.16);
  color: var(--admin-blue-deep);
}

.admin-table-actions .btn.btn-secondary:hover {
  background: var(--admin-blue-soft);
  color: var(--admin-blue-deep);
}

.admin-table-actions .btn.btn-outline {
  border-color: rgb(47 111 169 / 0.18);
  background: white;
  color: var(--admin-blue-deep);
}

.admin-table-actions .btn.btn-outline:hover {
  background: var(--admin-blue-soft);
}

.admin-table-actions .btn.btn-danger {
  border: 1px solid rgb(220 38 38 / 0.16);
}

@media (max-width: 767px) {
  .cms-toolbar-admin,
  .admin-toolbar-row,
  .admin-toolbar-footer {
    align-items: stretch;
  }

  .admin-toolbar-summary {
    margin-left: 0;
  }

  .admin-toolbar-inline-label {
    width: 100%;
  }

  .admin-toolbar-inline-label select,
  .admin-filter-group,
  .cms-search {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .admin-toolbar-row {
    flex-wrap: nowrap;
  }

  .admin-toolbar-inline-label {
    flex-wrap: nowrap;
  }

  .cms-toolbar-admin .cms-search {
    margin-left: auto;
    flex: 0 1 22rem;
  }
}

/* v10 centralized admin shell theme tokens */
.admin-body {
  --admin-shell-bg: #f4f7fb;
  --admin-shell-surface: rgba(248, 251, 255, 0.96);
  --admin-shell-surface-strong: linear-gradient(180deg, #f6fbff 0%, #eaf4ff 52%, #dfeefc 100%);
  --admin-shell-raised: #ffffff;
  --admin-shell-border: #c9dff3;
  --admin-shell-text: #143a60;
  --admin-shell-text-muted: #557899;
  --admin-shell-link: #3d5d7a;
  --admin-shell-hover: #dceeff;
  --admin-shell-active: #1d5f9c;
  --admin-shell-shadow: 0 10px 30px rgb(36 106 167 / 0.07);
  background: var(--admin-shell-bg);
}

.admin-shell,
.admin-main,
#admin-content {
  background: transparent;
}

.admin-sidebar {
  background: var(--admin-shell-surface-strong) !important;
  border-right: 1px solid var(--admin-shell-border) !important;
  color: var(--admin-shell-text) !important;
  box-shadow: 14px 0 34px rgb(36 106 167 / 0.08) !important;
}

.admin-topbar {
  background: var(--admin-shell-surface) !important;
  border-bottom: 1px solid var(--admin-shell-border) !important;
  color: var(--admin-shell-text) !important;
  box-shadow: var(--admin-shell-shadow) !important;
}

.admin-brand {
  color: var(--admin-shell-text) !important;
}

.admin-brand:hover {
  background: color-mix(in srgb, var(--admin-shell-hover) 72%, white 28%) !important;
}

.admin-brand-copy {
  display: grid;
  gap: 0.1rem;
}

.admin-brand-title,
.admin-topbar-title {
  color: var(--admin-shell-text) !important;
}

.admin-brand-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.admin-brand-subtitle,
.admin-topbar-kicker,
.admin-nav-caret {
  color: var(--admin-shell-text-muted) !important;
}

.admin-brand-subtitle {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
}

.admin-topbar-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-topbar-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-brand-logo,
.admin-top-logo {
  background: var(--admin-shell-raised) !important;
  border: 1px solid color-mix(in srgb, var(--admin-shell-border) 78%, white 22%) !important;
  box-shadow: 0 12px 28px rgb(47 111 169 / 0.12) !important;
}

.admin-link {
  color: var(--admin-shell-link) !important;
}

.admin-link:hover {
  background: var(--admin-shell-hover) !important;
  color: var(--admin-shell-text) !important;
  box-shadow: inset 0 0 0 1px rgb(36 106 167 / 0.12);
}

.admin-link-active,
.admin-nav-group.is-open > .admin-link {
  background: var(--admin-shell-active) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgb(36 106 167 / 0.20);
}

.admin-link-active .admin-nav-caret,
.admin-nav-group.is-open > .admin-link .admin-nav-caret {
  color: rgb(255 255 255 / 0.78) !important;
}

.admin-subnav {
  border-left: 1px solid color-mix(in srgb, var(--admin-shell-border) 70%, transparent) !important;
}

.admin-sub-link {
  color: color-mix(in srgb, var(--admin-shell-text) 68%, white 32%) !important;
}

.admin-sub-link:hover {
  background: var(--admin-shell-hover) !important;
  color: var(--admin-shell-text) !important;
}

.admin-sub-link.is-active {
  background: var(--admin-shell-raised) !important;
  color: var(--admin-shell-text) !important;
  box-shadow: inset 3px 0 0 var(--admin-shell-active), 0 8px 22px rgb(36 106 167 / 0.08);
}

.admin-visit-link,
.admin-menu-button {
  border-color: color-mix(in srgb, var(--admin-shell-border) 72%, transparent) !important;
  background: var(--admin-shell-raised) !important;
  color: var(--admin-shell-text) !important;
}

.admin-visit-link:hover,
.admin-menu-button:hover {
  background: var(--admin-shell-hover) !important;
}

.admin-card,
.block-page-hero,
.block-editor-group,
.block-editor-item,
.block-writing-surface,
.config-card,
.medium-editor-canvas,
.admin-responsive-table,
.comment-moderation-card,
.language-row,
.view-toggle,
.admin-confirm-panel,
.cms-search,
.admin-file-input,
.config-input,
.admin-input,
.admin-textarea {
  border-color: color-mix(in srgb, var(--admin-shell-border) 72%, transparent) !important;
}

.admin-card,
.block-page-hero,
.block-editor-group,
.block-editor-item,
.block-writing-surface,
.config-card,
.medium-editor-canvas,
.admin-responsive-table,
.comment-moderation-card,
.language-row,
.view-toggle,
.admin-confirm-panel {
  background: color-mix(in srgb, var(--admin-shell-raised) 92%, transparent) !important;
  color: var(--admin-shell-text) !important;
}

.cms-search,
.admin-file-input,
.config-input,
.admin-input,
.admin-textarea,
select.config-input,
input.config-input,
textarea.config-input {
  background: var(--admin-shell-raised) !important;
  background-color: var(--admin-shell-raised) !important;
  color: var(--admin-shell-text) !important;
}

.cms-search input,
.admin-file-input,
.config-input,
.admin-input,
.admin-textarea,
.block-editor-input,
.language-edit,
.story-title-field,
.story-excerpt-field,
.medium-editor-help,
.news-title-block,
.news-excerpt-block,
.news-body-block,
.code-block-editor,
.team-admin-card p,
.comment-moderation-text {
  color: var(--admin-shell-text) !important;
}

.admin-card [class*="text-neutral-500"],
.admin-card [class*="text-neutral-600"],
.admin-card [class*="text-neutral-700"],
.block-page-hero [class*="text-neutral-500"],
.block-page-hero [class*="text-neutral-600"],
.block-editor-group [class*="text-neutral-500"],
.block-editor-group [class*="text-neutral-600"],
.admin-responsive-table [class*="text-neutral-500"],
.admin-responsive-table [class*="text-neutral-600"],
.comment-moderation-card [class*="text-neutral-500"],
.comment-moderation-card [class*="text-neutral-600"] {
  color: var(--admin-shell-text-muted) !important;
}

html[data-theme^="dark-"] .admin-body {
  --admin-shell-bg: rgb(var(--background-default));
  --admin-shell-surface: rgb(var(--surface-default) / 0.94);
  --admin-shell-surface-strong: linear-gradient(180deg, rgb(var(--surface-raised)) 0%, rgb(var(--surface-default)) 55%, rgb(var(--background-default)) 100%);
  --admin-shell-raised: rgb(var(--surface-raised));
  --admin-shell-border: rgb(var(--border-subtle) / 0.22);
  --admin-shell-text: rgb(var(--text-primary));
  --admin-shell-text-muted: rgb(var(--text-secondary));
  --admin-shell-link: rgb(var(--text-secondary));
  --admin-shell-hover: rgb(var(--brand-soft) / 0.32);
  --admin-shell-active: rgb(var(--brand-primary));
  --admin-shell-shadow: 0 14px 34px rgb(0 0 0 / 0.22);
}

html[data-theme^="dark-"] .admin-link:hover,
html[data-theme^="dark-"] .admin-sub-link:hover,
html[data-theme^="dark-"] .admin-visit-link:hover,
html[data-theme^="dark-"] .admin-menu-button:hover {
  box-shadow: none !important;
}

html[data-theme^="dark-"] .admin-link-active,
html[data-theme^="dark-"] .admin-nav-group.is-open > .admin-link {
  color: #fff !important;
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.26) !important;
}

html[data-theme^="dark-"] .admin-link-active svg,
html[data-theme^="dark-"] .admin-link-active span,
html[data-theme^="dark-"] .admin-nav-group.is-open > .admin-link svg,
html[data-theme^="dark-"] .admin-nav-group.is-open > .admin-link span {
  color: #fff !important;
}

html[data-theme^="dark-"] .admin-sub-link.is-active {
  background: rgb(var(--surface-default)) !important;
  color: rgb(var(--text-primary)) !important;
  box-shadow: inset 3px 0 0 rgb(var(--brand-primary)), 0 8px 22px rgb(0 0 0 / 0.18) !important;
}

html[data-theme^="dark-"] .admin-data-table-wrap,
html[data-theme^="dark-"] .admin-responsive-table,
html[data-theme^="dark-"] .comment-moderation-card,
html[data-theme^="dark-"] .slider-card,
html[data-theme^="dark-"] .admin-health-card,
html[data-theme^="dark-"] .team-batch-bar,
html[data-theme^="dark-"] .team-filter-row,
html[data-theme^="dark-"] .dark-theme-note {
  border-color: rgb(var(--border-subtle) / 0.18) !important;
  background: rgb(var(--surface-default)) !important;
  color: rgb(var(--text-primary)) !important;
  box-shadow: 0 16px 42px rgb(0 0 0 / 0.16) !important;
}

html[data-theme^="dark-"] .admin-data-table thead th,
html[data-theme^="dark-"] .cms-table th {
  border-color: rgb(var(--border-subtle) / 0.18) !important;
  background: rgb(var(--surface-raised)) !important;
  color: rgb(var(--text-primary)) !important;
}

html[data-theme^="dark-"] .admin-data-table tbody td,
html[data-theme^="dark-"] .cms-table td {
  border-color: rgb(var(--border-subtle) / 0.12) !important;
  background: rgb(var(--surface-default)) !important;
  color: rgb(var(--text-primary)) !important;
}

html[data-theme^="dark-"] .admin-data-table tbody tr:hover td,
html[data-theme^="dark-"] .cms-table tr:hover td {
  background: rgb(var(--brand-soft) / 0.38) !important;
}

html[data-theme^="dark-"] .admin-table-title strong,
html[data-theme^="dark-"] .admin-table-copy,
html[data-theme^="dark-"] .admin-cell-index,
html[data-theme^="dark-"] .admin-cell-title,
html[data-theme^="dark-"] .admin-cell-excerpt,
html[data-theme^="dark-"] .admin-cell-status,
html[data-theme^="dark-"] .comment-moderation-card h2,
html[data-theme^="dark-"] .slider-card h2,
html[data-theme^="dark-"] .slider-card p,
html[data-theme^="dark-"] .slider-card span,
html[data-theme^="dark-"] .team-admin-card h2,
html[data-theme^="dark-"] .team-admin-card p,
html[data-theme^="dark-"] .admin-health-card,
html[data-theme^="dark-"] .admin-activity-item {
  color: rgb(var(--text-primary)) !important;
}

html[data-theme^="dark-"] .admin-table-title p,
html[data-theme^="dark-"] .news-caption-cell,
html[data-theme^="dark-"] .comment-moderation-text,
html[data-theme^="dark-"] [class*="text-blue-800"],
html[data-theme^="dark-"] [class*="text-blue-900"],
html[data-theme^="dark-"] [class*="text-blue-950"] {
  color: rgb(var(--text-secondary)) !important;
}

html[data-theme^="dark-"] .status-pill,
html[data-theme^="dark-"] .cms-pill,
html[data-theme^="dark-"] .editor-status-pill,
html[data-theme^="dark-"] .blue-badge {
  border-color: rgb(var(--brand-primary) / 0.32) !important;
  background: rgb(var(--brand-soft)) !important;
  color: rgb(var(--brand-primary)) !important;
}

html[data-theme^="dark-"] .btn-secondary,
html[data-theme^="dark-"] .btn.btn-secondary,
html[data-theme^="dark-"] .admin-table-actions .btn.btn-secondary,
html[data-theme^="dark-"] .admin-table-actions .btn.btn-outline {
  border-color: rgb(var(--border-subtle) / 0.22) !important;
  background: rgb(var(--surface-raised)) !important;
  color: rgb(var(--text-primary)) !important;
}

html[data-theme^="dark-"] .rounded-2xl.bg-white,
html[data-theme^="dark-"] [class*="bg-white"] {
  border-color: rgb(var(--border-subtle) / 0.18) !important;
  background: rgb(var(--surface-default)) !important;
  color: rgb(var(--text-primary)) !important;
}

html[data-theme^="dark-"] .select-button,
html[data-theme^="dark-"] .admin-select-button,
html[data-theme^="dark-"] .select-menu,
html[data-theme^="dark-"] .admin-select-menu {
  border-color: rgb(var(--border-subtle) / 0.22) !important;
  background: rgb(var(--surface-raised)) !important;
  color: rgb(var(--text-primary)) !important;
  box-shadow: 0 18px 46px rgb(0 0 0 / 0.26) !important;
}

html[data-theme^="dark-"] .select-menu button,
html[data-theme^="dark-"] .admin-select-menu button {
  color: rgb(var(--text-secondary)) !important;
}

html[data-theme^="dark-"] .select-menu button:hover,
html[data-theme^="dark-"] .select-menu button.is-active,
html[data-theme^="dark-"] .admin-select-menu button:hover,
html[data-theme^="dark-"] .admin-select-menu button.is-active {
  background: rgb(var(--brand-soft)) !important;
  color: rgb(var(--brand-primary)) !important;
}

html[data-theme^="dark-"] .settings-field-label,
html[data-theme^="dark-"] .settings-upload-title,
html[data-theme^="dark-"] .settings-banner-preview-label,
html[data-theme^="dark-"] .theme-card-name,
html[data-theme^="dark-"] .theme-card-mode {
  color: rgb(var(--text-primary)) !important;
}

html[data-theme^="dark-"] .settings-upload-note,
html[data-theme^="dark-"] .settings-banner-preview-caption,
html[data-theme^="dark-"] .theme-card-note,
html[data-theme^="dark-"] .settings-banner-preview-empty,
html[data-theme^="dark-"] [class*="text-neutral-400"],
html[data-theme^="dark-"] [class*="text-neutral-800"] {
  color: rgb(var(--text-secondary)) !important;
}

html[data-theme^="dark-"] .settings-banner-preview-media,
html[data-theme^="dark-"] .settings-banner-preview-empty,
html[data-theme^="dark-"] .theme-card-swatch {
  border-color: rgb(var(--border-subtle) / 0.18) !important;
  background: rgb(var(--surface-raised)) !important;
}

html[data-theme^="dark-"] .theme-card:hover,
html[data-theme^="dark-"] .settings-upload-card:hover,
html[data-theme^="dark-"] .settings-banner-preview:hover {
  border-color: rgb(var(--brand-primary) / 0.36) !important;
  box-shadow: 0 18px 46px rgb(0 0 0 / 0.2) !important;
}

html[data-theme^="dark-"] .btn-outline,
html[data-theme^="dark-"] .admin-table-actions .btn,
html[data-theme^="dark-"] button[class*="border-neutral-900"] {
  border-color: rgb(var(--border-subtle) / 0.22) !important;
  background: rgb(var(--surface-raised)) !important;
  color: rgb(var(--text-primary)) !important;
}

html[data-theme^="dark-"] .btn-outline:hover,
html[data-theme^="dark-"] .btn-secondary:hover,
html[data-theme^="dark-"] .admin-table-actions .btn:hover {
  border-color: rgb(var(--brand-primary) / 0.36) !important;
  background: rgb(var(--brand-soft)) !important;
  color: rgb(var(--brand-primary)) !important;
}

html[data-theme^="dark-"] .medium-editor-canvas,
html[data-theme^="dark-"] .medium-config-card,
html[data-theme^="dark-"] .config-card {
  border-color: rgb(var(--border-subtle) / 0.18) !important;
  background: rgb(var(--surface-default)) !important;
  color: rgb(var(--text-primary)) !important;
}

html[data-theme^="dark-"] .medium-editor-kicker,
html[data-theme^="dark-"] .story-main-block label,
html[data-theme^="dark-"] .config-field span {
  color: rgb(var(--brand-primary)) !important;
}

html[data-theme^="dark-"] .config-card h2,
html[data-theme^="dark-"] .story-title-field,
html[data-theme^="dark-"] .medium-editor-host .ce-header,
html[data-theme^="dark-"] .editor-fallback h1 {
  color: rgb(var(--text-primary)) !important;
}

html[data-theme^="dark-"] .story-excerpt-field,
html[data-theme^="dark-"] .medium-editor-help,
html[data-theme^="dark-"] .config-hint,
html[data-theme^="dark-"] .editor-fallback p,
html[data-theme^="dark-"] .editor-fallback article,
html[data-theme^="dark-"] .medium-editor-host .ce-paragraph,
html[data-theme^="dark-"] .medium-editor-host .cdx-quote__text,
html[data-theme^="dark-"] .medium-editor-host .cdx-list {
  color: rgb(var(--text-secondary)) !important;
}

html[data-theme^="dark-"] .story-main-block,
html[data-theme^="dark-"] .medium-editor-help,
html[data-theme^="dark-"] .medium-editor-divider {
  border-color: rgb(var(--border-subtle) / 0.16) !important;
}

html[data-theme^="dark-"] .story-title-field:focus,
html[data-theme^="dark-"] .story-excerpt-field:focus,
html[data-theme^="dark-"] .medium-editor-host .ce-block--selected .ce-block__content,
html[data-theme^="dark-"] .medium-editor-host .ce-block.ce-block--focused .ce-block__content,
html[data-theme^="dark-"] .medium-editor-host .ce-block__content:hover {
  background: rgb(var(--brand-soft) / 0.32) !important;
  box-shadow: 0 0 0 8px rgb(var(--brand-soft) / 0.22) !important;
}

html[data-theme^="dark-"] .medium-editor-host ::selection,
html[data-theme^="dark-"] .story-title-field::selection,
html[data-theme^="dark-"] .story-excerpt-field::selection,
html[data-theme^="dark-"] .editor-fallback ::selection {
  background: rgb(var(--brand-primary) / 0.38) !important;
  color: rgb(var(--text-primary)) !important;
}

html[data-theme^="dark-"] .medium-editor-host .ce-toolbar__plus,
html[data-theme^="dark-"] .medium-editor-host .ce-toolbar__settings-btn,
html[data-theme^="dark-"] .medium-editor-host .ce-inline-toolbar,
html[data-theme^="dark-"] .medium-editor-host .ce-conversion-toolbar,
html[data-theme^="dark-"] .medium-editor-host .ce-settings,
html[data-theme^="dark-"] .medium-editor-host .ce-popover,
html[data-theme^="dark-"] .medium-editor-host .ce-popover__container {
  border-color: rgb(var(--border-subtle) / 0.22) !important;
  background: rgb(var(--surface-raised)) !important;
  color: rgb(var(--text-primary)) !important;
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.3) !important;
}

html[data-theme^="dark-"] .medium-editor-host .ce-inline-tool,
html[data-theme^="dark-"] .medium-editor-host .ce-popover-item,
html[data-theme^="dark-"] .medium-editor-host .ce-settings__button,
html[data-theme^="dark-"] .medium-editor-host .ce-conversion-tool {
  color: rgb(var(--text-primary)) !important;
}

html[data-theme^="dark-"] .medium-editor-host .ce-inline-tool:hover,
html[data-theme^="dark-"] .medium-editor-host .ce-inline-tool--active,
html[data-theme^="dark-"] .medium-editor-host .ce-popover-item:hover,
html[data-theme^="dark-"] .medium-editor-host .ce-popover-item--focused,
html[data-theme^="dark-"] .medium-editor-host .ce-settings__button:hover,
html[data-theme^="dark-"] .medium-editor-host .ce-conversion-tool:hover,
html[data-theme^="dark-"] .medium-editor-host .ce-toolbar__plus:hover,
html[data-theme^="dark-"] .medium-editor-host .ce-toolbar__settings-btn:hover {
  background: rgb(var(--brand-soft)) !important;
  color: rgb(var(--brand-primary)) !important;
}

html[data-theme^="dark-"] .medium-editor-host .image-tool__caption,
html[data-theme^="dark-"] .medium-editor-host .cdx-input,
html[data-theme^="dark-"] .medium-editor-host .ce-popover__search,
html[data-theme^="dark-"] select.config-input,
html[data-theme^="dark-"] select.config-input option,
html[data-theme^="dark-"] input.config-input,
html[data-theme^="dark-"] textarea.config-input {
  border-color: rgb(var(--border-subtle) / 0.22) !important;
  background: rgb(var(--surface-raised)) !important;
  color: rgb(var(--text-primary)) !important;
}

html[data-theme^="dark-"] .config-empty {
  border-color: rgb(var(--brand-primary) / 0.32) !important;
  background: rgb(var(--brand-soft) / 0.72) !important;
  color: rgb(var(--brand-primary)) !important;
}

html[data-theme^="dark-"] .input-soft,
html[data-theme^="dark-"] .settings-input,
html[data-theme^="dark-"] .settings-file-input,
html[data-theme^="dark-"] .admin-file-input,
html[data-theme^="dark-"] input[type="file"].config-input {
  border-color: rgb(var(--border-subtle) / 0.22) !important;
  background: rgb(var(--surface-raised)) !important;
  color: rgb(var(--text-primary)) !important;
}

html[data-theme^="dark-"] .input-soft:focus,
html[data-theme^="dark-"] .settings-input:focus,
html[data-theme^="dark-"] .config-input:focus,
html[data-theme^="dark-"] .admin-file-input:focus {
  border-color: rgb(var(--brand-primary) / 0.56) !important;
  box-shadow: 0 0 0 4px rgb(var(--brand-primary) / 0.2) !important;
}

html[data-theme^="dark-"] .admin-file-input::file-selector-button,
html[data-theme^="dark-"] input[type="file"].config-input::file-selector-button,
html[data-theme^="dark-"] .settings-file-input::file-selector-button {
  background: rgb(var(--brand-primary)) !important;
  color: #fff !important;
}

html[data-theme^="dark-"] .feature-story-card,
html[data-theme^="dark-"] .feature-media-card,
html[data-theme^="dark-"] .feature-image-card,
html[data-theme^="dark-"] .feature-icon-button {
  border-color: rgb(var(--border-subtle) / 0.18) !important;
  background: rgb(var(--surface-default)) !important;
  color: rgb(var(--text-primary)) !important;
  box-shadow: 0 18px 46px rgb(0 0 0 / 0.16) !important;
}

html[data-theme^="dark-"] .feature-label,
html[data-theme^="dark-"] .feature-media-card .eyebrow,
html[data-theme^="dark-"] .feature-image-card-meta span {
  color: rgb(var(--brand-primary)) !important;
}

html[data-theme^="dark-"] .story-title-input,
html[data-theme^="dark-"] .story-name-input,
html[data-theme^="dark-"] .feature-media-head h2,
html[data-theme^="dark-"] .feature-icon-button strong,
html[data-theme^="dark-"] .news-title-block {
  color: rgb(var(--text-primary)) !important;
}

html[data-theme^="dark-"] .news-body-block,
html[data-theme^="dark-"] .news-body-block blockquote,
html[data-theme^="dark-"] .feature-media-head p,
html[data-theme^="dark-"] .feature-icon-button small,
html[data-theme^="dark-"] .feature-image-empty,
html[data-theme^="dark-"] .story-title-input::placeholder,
html[data-theme^="dark-"] .story-name-input::placeholder,
html[data-theme^="dark-"] .news-body-block::placeholder {
  color: rgb(var(--text-secondary)) !important;
}

html[data-theme^="dark-"] .feature-icon-button-preview,
html[data-theme^="dark-"] .program-icon,
html[data-theme^="dark-"] .feature-image-empty {
  border-color: rgb(var(--border-subtle) / 0.18) !important;
  background: rgb(var(--surface-raised)) !important;
  color: rgb(var(--brand-primary)) !important;
}

html[data-theme^="dark-"] .feature-icon-button-preview svg,
html[data-theme^="dark-"] .program-icon svg,
html[data-theme^="dark-"] .program-icon .program-icon-svg {
  color: rgb(var(--brand-primary)) !important;
  stroke: currentColor !important;
}

html[data-theme^="dark-"] .feature-image-move,
html[data-theme^="dark-"] .btn-dark,
html[data-theme^="dark-"] .btn.btn-dark {
  border: 1px solid rgb(var(--border-subtle) / 0.22) !important;
  background: rgb(var(--surface-raised)) !important;
  color: rgb(var(--text-primary)) !important;
}

html[data-theme^="dark-"] .feature-image-move:hover,
html[data-theme^="dark-"] .btn-dark:hover,
html[data-theme^="dark-"] .btn.btn-dark:hover {
  border-color: rgb(var(--brand-primary) / 0.36) !important;
  background: rgb(var(--brand-soft)) !important;
  color: rgb(var(--brand-primary)) !important;
}

html[data-theme^="dark-"] textarea.news-body-block,
html[data-theme^="dark-"] .news-body-block.smaller,
html[data-theme^="dark-"] .news-body-block[contenteditable="true"],
html[data-theme^="dark-"] .mini-block div,
html[data-theme^="dark-"] .code-block-editor {
  border: 1px solid rgb(var(--border-subtle) / 0.18) !important;
  border-radius: 1rem !important;
  background: rgb(var(--surface-raised)) !important;
  color: rgb(var(--text-primary)) !important;
  caret-color: rgb(var(--brand-primary)) !important;
}

html[data-theme^="dark-"] textarea.news-body-block,
html[data-theme^="dark-"] .news-body-block.smaller {
  padding: 0.85rem 1rem !important;
}

html[data-theme^="dark-"] textarea.news-body-block:focus,
html[data-theme^="dark-"] .news-body-block[contenteditable="true"]:focus,
html[data-theme^="dark-"] .mini-block div:focus,
html[data-theme^="dark-"] .code-block-editor:focus {
  border-color: rgb(var(--brand-primary) / 0.5) !important;
  outline: 0 !important;
  box-shadow: 0 0 0 4px rgb(var(--brand-primary) / 0.18) !important;
}

html[data-theme^="dark-"] .mini-block,
html[data-theme^="dark-"] .medium-editor-divider {
  border-color: rgb(var(--border-subtle) / 0.16) !important;
}

html[data-theme^="dark-"] .mini-block span,
html[data-theme^="dark-"] .feature-config-sidebar .config-field span,
html[data-theme^="dark-"] .medium-config-sidebar .config-field span {
  color: rgb(var(--brand-primary)) !important;
}

html[data-theme^="dark-"] textarea.news-body-block::placeholder,
html[data-theme^="dark-"] .news-body-block:empty::before,
html[data-theme^="dark-"] .mini-block div:empty::before {
  color: rgb(var(--text-tertiary)) !important;
  opacity: 1 !important;
}

html[data-theme^="dark-"] .admin-link svg,
html[data-theme^="dark-"] .admin-sub-link svg,
html[data-theme^="dark-"] .btn-icon svg {
  color: currentColor !important;
}

html[data-theme^="dark-"] .admin-card,
html[data-theme^="dark-"] .block-page-hero,
html[data-theme^="dark-"] .block-editor-group,
html[data-theme^="dark-"] .block-editor-item,
html[data-theme^="dark-"] .block-writing-surface,
html[data-theme^="dark-"] .config-card,
html[data-theme^="dark-"] .medium-editor-canvas,
html[data-theme^="dark-"] .admin-responsive-table,
html[data-theme^="dark-"] .comment-moderation-card,
html[data-theme^="dark-"] .language-row,
html[data-theme^="dark-"] .view-toggle,
html[data-theme^="dark-"] .admin-confirm-panel,
html[data-theme^="dark-"] .cms-search,
html[data-theme^="dark-"] .admin-file-input,
html[data-theme^="dark-"] .config-input,
html[data-theme^="dark-"] .admin-input,
html[data-theme^="dark-"] .admin-textarea {
  box-shadow: none !important;
}
