:root {
  --bg: #fcf9f8;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-soft: #f6f3f2;
  --surface-muted: #f0eded;
  --text: #1c1b1b;
  --muted: #424752;
  --line: #c2c6d4;
  --primary: #00478d;
  --primary-dark: #001b3d;
  --primary-soft: rgba(0, 94, 184, 0.08);
  --accent: #bb0014;
  --danger: #ba1a1a;
  --success: #137333;
  --shadow: 0 4px 20px rgba(0, 94, 184, 0.08);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --max-width: 1320px;
  --sidebar-width: 280px;
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --font-label: "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background: var(--bg);
  min-height: 100vh;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-shell,
.admin-shell,
.auth-shell {
  min-height: 100vh;
}

.site-shell {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.site-header-inner {
  width: min(var(--max-width), calc(100% - 24px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 88px;
  padding: 10px 0;
}

.brand,
.admin-brand,
.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #4f7cff);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.25);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-brand .brand-mark img,
.auth-brand .brand-mark img {
  object-fit: contain;
}

.site-header .brand-mark {
  width: clamp(74px, 6vw, 92px);
  height: clamp(74px, 6vw, 92px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: var(--primary);
  overflow: hidden;
}

.site-header .brand-mark img {
  object-fit: contain;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
}

.brand-mark-dark {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.brand-copy,
.admin-brand div,
.auth-brand div {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong,
.admin-brand strong,
.auth-brand strong {
  font-family: var(--font-head);
  font-size: 1.1rem;
}

.brand-copy small,
.admin-brand small,
.auth-brand small {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-link,
.nav-trigger,
.nav-dropdown-link {
  border: 0;
  background: transparent;
  color: #334155;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.nav-link,
.nav-trigger {
  padding: 8px 0;
  border-radius: 0;
  font-weight: 600;
}

.nav-link:hover,
.nav-trigger:hover,
.nav-dropdown-link:hover,
.nav-dropdown-link.is-active {
  color: var(--primary);
}

.nav-link.is-active,
.nav-trigger.is-active,
.nav-item.is-open > .nav-trigger {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 8px 0;
  justify-content: center;
}

.nav-trigger .material-symbols-outlined {
  font-size: 0.95rem;
  transition: transform 200ms ease;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  padding: 8px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  z-index: 50;
}

.nav-item.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-link {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  white-space: nowrap;
}

.btn,
.icon-button {
  border: 1px solid transparent;
  border-radius: calc(var(--button-radius, 14) * 1px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.flash-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
}

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.flash.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
}

.flash [data-flash-close] {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
  cursor: pointer;
  flex: 0 0 auto;
}

.flash [data-flash-close] .material-symbols-outlined {
  font-size: 1rem;
}

.flash-success {
  border-color: rgba(22, 163, 74, 0.18);
  background: rgba(22, 163, 74, 0.08);
  color: #166534;
}

.flash-error {
  border-color: rgba(239, 68, 68, 0.18);
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
}

.btn:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  font-weight: 700;
}

.btn .material-symbols-outlined {
  font-size: 1.1rem;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #005eb8);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 78, 141, 0.18);
}

.btn-secondary {
  background: #fff;
  color: var(--primary-dark);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(0, 78, 141, 0.04);
}

.btn-supabase-save {
  background: linear-gradient(135deg, #0f9f6e, #047857);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(4, 120, 87, 0.22);
}

.header-cta {
  min-width: 140px;
}

.site-actions {
  display: none;
  align-items: center;
  gap: 10px;
  justify-content: end;
}

.icon-button {
  width: 44px;
  height: 44px;
  background: #fff;
  border-color: var(--line);
  color: var(--primary-dark);
}

.site-main {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
  flex: 1;
}

.hero-panel,
.page-hero,
.section-grid,
.section-block,
.panel-card,
.metric-grid,
.editor-layout,
.popup-layout {
  animation: fade-up 500ms ease both;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 28px;
  align-items: center;
  min-height: 72vh;
}

.hero-copy h1,
.page-hero h1,
.section-head h2,
.panel-card h2,
.admin-topbar h1,
.auth-card h1 {
  margin: 12px 0 0;
  font-family: var(--font-head);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  max-width: 10ch;
}

.hero-copy p,
.page-hero p,
.section-head p,
.panel-card p,
.auth-card p,
.table-title span,
.stack-item p,
.content-card p,
.info-card p {
  color: var(--muted);
  line-height: 1.65;
}

.chip,
.status-pill,
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.chip {
  background: rgba(29, 78, 216, 0.1);
  color: var(--primary);
  width: fit-content;
}

.chip-soft {
  background: rgba(15, 23, 42, 0.06);
  color: var(--primary-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.stat-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.stat-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.hero-visual {
  display: flex;
  justify-content: end;
}

.canvas-card,
.panel-card,
.info-card,
.content-card,
.metric-card,
.callout-card,
.auth-card,
.page-hero-card,
.mini-option {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.canvas-card {
  width: 100%;
  overflow: hidden;
}

.canvas-card-large {
  min-height: 640px;
}

.canvas-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  background: rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.canvas-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fb7185;
}

.canvas-topbar span:nth-child(2) {
  background: #fbbf24;
}

.canvas-topbar span:nth-child(3) {
  background: #22c55e;
}

.canvas-topbar div {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

.canvas-preview {
  padding: 34px;
  min-height: inherit;
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
}

.preview-hero h2,
.page-hero-card h2,
.panel-card h2,
.callout-card h2 {
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.preview-tile {
  min-height: 120px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.08), rgba(29, 78, 216, 0.03));
  border: 1px solid rgba(29, 78, 216, 0.14);
  display: flex;
  align-items: end;
  justify-content: start;
  padding: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}

.section-block,
.section-grid,
.admin-grid,
.metric-grid,
.editor-layout,
.popup-layout {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head.compact {
  margin-bottom: 14px;
}

.eyebrow {
  display: inline-flex;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-grid {
  display: grid;
  gap: 16px;
}

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

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

.card-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.content-card,
.metric-card,
.panel-card,
.callout-card,
.page-hero-card,
.mini-option {
  padding: 22px;
}

.info-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.info-card h3,
.content-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-family: var(--font-head);
}

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

.stack-list {
  display: grid;
  gap: 12px;
}

.stack-item {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.status-pill {
  background: rgba(15, 23, 42, 0.08);
  color: var(--primary-dark);
  white-space: nowrap;
}

.status-pill-blue {
  background: rgba(29, 78, 216, 0.12);
  color: var(--primary);
}

.status-pill-muted {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.content-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.content-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.88rem;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.callout-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.page-hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
  align-items: end;
  padding: 26px 0 8px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.page-hero-card {
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.09), rgba(255, 255, 255, 0.9));
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 700;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.search-input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.form-grid textarea {
  resize: vertical;
}

.table-wrap {
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--primary-dark);
}

.tab.is-active {
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input {
  min-width: 300px;
}

.table-title {
  display: flex;
  flex-direction: column;
}

.link-action {
  color: var(--primary);
  font-weight: 700;
}

.content-manager-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: start;
}

.content-editor-card,
.content-list-card {
  min-width: 0;
}

.content-editor-card {
  position: sticky;
  top: 18px;
}

.content-form {
  margin-top: 16px;
}

.admin-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.admin-content-card,
.empty-state-card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.84));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.admin-content-card {
  display: flex;
  flex-direction: column;
}

.admin-content-card__image,
.admin-content-card__placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.admin-content-card__image {
  object-fit: cover;
}

.admin-content-card__placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.16), transparent 32%),
    linear-gradient(135deg, #eef2ff, #f8fafc);
  color: var(--primary);
}

.admin-content-card__placeholder .material-symbols-outlined {
  font-size: 2.4rem;
}

.admin-content-card__body,
.empty-state-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.admin-content-card__body h3,
.empty-state-card h3 {
  margin: 0;
  color: var(--primary-dark);
}

.admin-content-card__body p,
.empty-state-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.admin-content-card .content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-card-editor {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 10px;
}

.admin-card-editor summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 800;
}

.admin-card-editor__form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.admin-card-editor__form label {
  display: grid;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 800;
}

.empty-state-card {
  min-height: 260px;
  place-items: center;
  text-align: center;
}

.empty-state-card .material-symbols-outlined {
  font-size: 2.6rem;
  color: var(--primary);
}

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

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-card span.material-symbols-outlined {
  color: var(--primary);
  font-size: 1.7rem;
}

.metric-card strong {
  font-size: 2rem;
  font-family: var(--font-head);
}

.admin-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
}

.admin-shell[data-panel-theme="light"] {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-soft: #f8fafc;
  --surface-muted: #eef2f7;
  --text: #111827;
  --muted: #516074;
  --line: #d8e0ea;
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.admin-shell[data-panel-theme="dark"] {
  --bg: #0b1120;
  --surface: #111827;
  --surface-strong: #0f172a;
  --surface-soft: #1f2937;
  --surface-muted: #273244;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  background: linear-gradient(180deg, #0f172a, #111827 50%, #0b1120);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-shell[data-panel-theme="light"] .admin-sidebar {
  background: linear-gradient(180deg, #ffffff, #f8fafc 52%, #eef2ff);
  color: #1f2937;
  border-right: 1px solid rgba(148, 163, 184, 0.24);
}

.admin-shell[data-panel-theme="light"] .admin-sidebar .admin-sidebar-label,
.admin-shell[data-panel-theme="light"] .admin-sidebar .admin-sidebar-footer a,
.admin-shell[data-panel-theme="light"] .admin-sidebar .admin-nav a,
.admin-shell[data-panel-theme="light"] .admin-sidebar .admin-user-card small {
  color: #516074;
}

.admin-shell[data-panel-theme="light"] .admin-sidebar .admin-nav a.is-active,
.admin-shell[data-panel-theme="light"] .admin-sidebar .admin-nav a:hover {
  background: rgba(29, 78, 216, 0.1);
  color: var(--primary);
}

.admin-shell[data-panel-theme="light"] .admin-sidebar .admin-nav-future a {
  background: rgba(15, 23, 42, 0.04);
}

.admin-shell[data-panel-theme="light"] .admin-user-card {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.18);
}

.admin-shell[data-panel-theme="dark"] .admin-sidebar {
  background: linear-gradient(180deg, #0f172a, #111827 50%, #0b1120);
  color: #cbd5e1;
}

.admin-new {
  margin: 8px 0 4px;
}

.admin-nav {
  display: grid;
  gap: 8px;
  overflow: auto;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #94a3b8;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.admin-nav a:hover,
.admin-nav a.is-active {
  background: rgba(37, 99, 235, 0.95);
  color: #fff;
}

.admin-shell[data-panel-theme="light"] .admin-nav a {
  color: #516074;
}

.admin-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 18px;
}

.admin-sidebar-footer a,
.admin-sidebar-footer button {
  color: #cbd5e1;
}

.admin-sidebar-footer .danger {
  color: #fca5a5;
}

.logout-form {
  margin: 0;
}

.logout-form button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.admin-shell[data-panel-theme="light"] .admin-sidebar-footer {
  border-top-color: rgba(148, 163, 184, 0.24);
}

.admin-shell[data-panel-theme="dark"] .admin-content {
  color: #e5e7eb;
}

.admin-shell[data-panel-theme="dark"] .admin-topbar .muted {
  color: #94a3b8;
}

.admin-shell[data-panel-theme="light"] .admin-topbar .muted {
  color: #516074;
}

.theme-toolbar-card {
  margin-bottom: 18px;
}

.theme-toolbar,
.theme-selector {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.theme-toolbar h2 {
  margin-top: 10px;
  margin-bottom: 4px;
}

.theme-selector label {
  display: grid;
  gap: 8px;
  min-width: 260px;
  font-weight: 700;
}

.theme-selector select,
.theme-selector input {
  min-width: 260px;
}

.theme-gallery-layout {
  display: grid;
  gap: 18px;
}

.theme-gallery-shell {
  display: grid;
  gap: 16px;
}

.theme-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.theme-filter-bar .chip {
  color: #fff;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(29, 78, 216, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.theme-filter-bar .chip.is-active {
  background: linear-gradient(135deg, var(--primary), #005eb8);
  color: #fff;
  border-color: transparent;
}

.theme-filter-bar .chip.is-hidden {
  display: none;
}

.theme-card.is-hidden {
  display: none;
}

.theme-card--gallery {
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.18);
}

.theme-card--gallery .theme-card__hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-height: 168px;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(135deg, #00478d, #002f63 58%, #001b3d);
  color: #ffffff;
}

.theme-card--gallery .theme-card__hero strong {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.8vw, 2.25rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: #ffffff;
}

.theme-card--gallery .theme-card__hero span {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-card__body {
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 20px 22px 22px;
  min-height: 260px;
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.98), rgba(15, 23, 42, 0.98));
  color: #f8fafc;
}

.theme-card__body p {
  margin: 0;
  min-height: 132px;
  color: rgba(226, 232, 240, 0.76);
  line-height: 1.68;
}

.theme-card__footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
  color: #e2e8f0;
}

.theme-card__preview {
  white-space: nowrap;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.theme-card__preview:hover {
  background: #ffffff;
  color: var(--primary-dark);
}

.theme-picker-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.94));
}

.theme-picker-panel__head {
  display: grid;
  gap: 8px;
}

.theme-picker-panel__head h3,
.theme-picker-panel__head p {
  margin: 0;
  color: #f8fafc;
}

.theme-picker-panel__head p {
  color: rgba(226, 232, 240, 0.78);
}

.theme-picker-grid {
  display: grid;
  gap: 12px;
}

.theme-picker-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.88);
}

.theme-picker-card.is-selected {
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.18);
}

.theme-picker-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.theme-picker-choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  font-weight: 800;
  cursor: pointer;
}

.theme-picker-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-picker-choice__box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(2, 6, 23, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.theme-picker-card.is-selected .theme-picker-choice__box::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #60a5fa;
}

.theme-picker-choice__label {
  line-height: 1.2;
}

.theme-picker-card p,
.theme-picker-card small {
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
}

.theme-picker-card small {
  color: rgba(226, 232, 240, 0.58);
  line-height: 1.45;
}

.theme-management-summary {
  margin-bottom: 14px;
}

.theme-picker-card__preview {
  flex: 0 0 auto;
}

.theme-page-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theme-page-strip .chip {
  background: rgba(29, 78, 216, 0.08);
  border-color: rgba(29, 78, 216, 0.14);
}

.theme-capture-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.theme-capture--inline {
  min-height: 96px;
  padding: 12px;
}

.theme-capture--inline strong {
  font-size: 0.9rem;
}

.editor-layout.theme-editor-layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-items: stretch;
  gap: 18px;
  width: 100%;
  max-width: none;
}

.editor-layout.theme-editor-layout > .editor-form {
  min-height: 100%;
  min-width: 0;
  width: 100%;
  max-width: none;
}

.theme-preview-page {
  display: grid;
  gap: 18px;
  width: 100%;
}

.theme-preview-page .canvas-card {
  width: 100%;
}

.theme-editor-form {
  gap: 16px;
  width: 100%;
}

.editor-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px) auto;
  align-items: end;
  gap: 18px;
}

.school-selector-panel {
  display: grid;
  gap: 8px;
}

.school-selector-panel label {
  display: grid;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 800;
}

.school-selector-panel select {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-weight: 700;
}

.theme-editor-form .editor-section {
  width: 100%;
}

.theme-editor-form .editor-section .form-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.theme-editor-form .upload-field__preview,
.theme-editor-form .upload-field__placeholder,
.theme-editor-form .upload-field__preview img {
  min-height: 104px;
}

.theme-editor-form .upload-field__preview {
  max-height: 132px;
}

.theme-editor-form .upload-field__preview img {
  max-height: 132px;
}

.theme-editor-form .upload-field--logo,
.theme-editor-form .upload-field--portrait,
.theme-editor-form .upload-field--icon,
.theme-editor-form .upload-field--gallery,
.admin-grid .upload-field--logo {
  grid-column: auto;
  max-width: 100%;
}

.theme-editor-form .upload-field--logo,
.admin-grid .upload-field--logo,
.theme-editor-form .upload-field--portrait {
  width: 220px;
}

.theme-editor-form .upload-field--logo .upload-field__preview,
.theme-editor-form .upload-field--logo .upload-field__placeholder,
.theme-editor-form .upload-field--logo .upload-field__preview img,
.admin-grid .upload-field--logo .upload-field__preview,
.admin-grid .upload-field--logo .upload-field__placeholder,
.admin-grid .upload-field--logo .upload-field__preview img {
  width: 96px;
  height: 96px;
  min-height: 96px;
  max-height: 96px;
}

.theme-editor-form .upload-field--logo .upload-field__placeholder,
.admin-grid .upload-field--logo .upload-field__placeholder {
  gap: 4px;
  padding: 8px;
}

.theme-editor-form .upload-field--logo .upload-field__placeholder small,
.admin-grid .upload-field--logo .upload-field__placeholder small {
  display: none;
}

.theme-editor-form .upload-field--logo .upload-field__placeholder .material-symbols-outlined,
.admin-grid .upload-field--logo .upload-field__placeholder .material-symbols-outlined {
  font-size: 1.55rem;
}

.theme-editor-form .upload-field--logo .upload-field__placeholder strong,
.admin-grid .upload-field--logo .upload-field__placeholder strong {
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.72rem;
}

.theme-editor-form .upload-field--portrait .upload-field__preview,
.theme-editor-form .upload-field--portrait .upload-field__placeholder,
.theme-editor-form .upload-field--portrait .upload-field__preview img {
  width: 96px;
  height: 160px;
  min-height: 160px;
  max-height: 160px;
}

.upload-field--icon {
  grid-column: auto;
  width: 168px;
  max-width: 100%;
}

.upload-field--icon .upload-field__preview,
.upload-field--icon .upload-field__placeholder,
.upload-field--icon .upload-field__preview img {
  width: 78px;
  height: 78px;
  min-height: 78px;
  max-height: 78px;
}

.upload-field--icon .upload-field__preview img {
  object-fit: contain;
  padding: 10px;
  background: rgba(255, 255, 255, 0.92);
}

.upload-field--icon .upload-field__input {
  width: 132px;
  min-height: 34px;
  border-radius: 12px;
  padding: 5px 7px;
  font-size: 0.68rem;
  line-height: 1.2;
}

.upload-field--icon .upload-field__input::file-selector-button {
  margin-right: 4px;
  border-radius: 999px;
  padding: 5px 7px;
  font-size: 0.66rem;
}

.upload-field--icon .upload-field__placeholder {
  gap: 2px;
  padding: 7px;
  text-align: center;
}

.upload-field--icon .upload-field__placeholder .material-symbols-outlined {
  font-size: 1.55rem;
}

.upload-field--icon .upload-field__placeholder strong {
  font-size: 0.66rem;
  line-height: 1.05;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-field--icon .upload-field__placeholder small,
.upload-field--icon > small {
  display: none;
}

.social-editor-stack {
  display: grid;
  gap: 16px;
  width: 100%;
}

.social-editor-stack h4 {
  margin: 0;
  font-family: var(--font-head);
  color: var(--text);
}

.social-editor-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.72);
}

.social-editor-card label:not(.inline-toggle),
.social-editor-stack > label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  color: var(--primary-dark);
}

.social-editor-card .inline-toggle {
  justify-content: flex-start;
  font-weight: 800;
  color: var(--text);
}

.social-editor-card__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.social-editor-card .upload-field--icon {
  width: min(100%, 220px);
}

.social-editor-card .upload-field--icon .upload-field__input {
  width: 154px;
}

.theme-editor-form .upload-field--gallery,
.content-form .upload-field--gallery {
  width: min(100%, 420px);
}

.theme-editor-form .upload-field--gallery .upload-field__input,
.content-form .upload-field--gallery .upload-field__input {
  min-height: 72px;
  border-radius: 18px;
  padding: 14px;
  font-size: 0.86rem;
  background:
    radial-gradient(circle at 24% 20%, rgba(29, 78, 216, 0.14), transparent 30%),
    rgba(255, 255, 255, 0.92);
}

.upload-field__gallery-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.upload-field__gallery-preview img,
.upload-field__gallery-preview span {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.06);
}

.upload-field__gallery-preview span {
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  font-weight: 900;
}

.student-photo-control-preview {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  width: min(100%, 560px);
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 16%, rgba(29, 78, 216, 0.12), transparent 30%),
    rgba(248, 250, 252, 0.86);
}

.student-photo-control-preview__frame {
  display: grid;
  place-items: center;
  width: 96px;
  height: 160px;
  border-radius: 24px;
  background: #fff;
  color: var(--primary);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.student-photo-control-preview__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-photo-control-preview__copy {
  display: grid;
  gap: 8px;
}

.student-photo-control-preview__copy h4,
.student-photo-control-preview__copy p {
  margin: 0;
}

.student-photo-control-preview__copy p,
.student-photo-control-preview__filename {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.student-photo-control-preview .btn {
  justify-self: start;
}

.student-photo-control-preview [data-student-photo-input] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.editor-page-menu {
  position: sticky;
  top: 14px;
  z-index: 5;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.editor-page-menu button {
  border: 1px solid rgba(29, 78, 216, 0.1);
  border-radius: 999px;
  padding: 11px 14px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--primary-dark);
  font-weight: 800;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.editor-page-menu button:hover,
.editor-page-menu button.is-active {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.editor-page-panel {
  display: none;
  gap: 16px;
  width: 100%;
}

.editor-page-panel.is-active {
  display: grid;
}

.editor-panel-head {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.14), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.editor-panel-head h3 {
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.editor-panel-head p {
  margin: 0;
  max-width: 76ch;
  color: var(--muted);
}

.editor-repeat-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.mini-option--field h3 {
  margin: 0;
  color: var(--primary-dark);
}

.home-value-editor-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-value-editor-card__head .inline-toggle {
  width: auto;
}

.home-pillar-editor-card {
  align-content: start;
}

.home-pillar-editor-card__head {
  display: grid;
  gap: 5px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.home-pillar-editor-card__head .eyebrow,
.home-pillar-editor-card__head h3 {
  margin: 0;
}

.home-pillar-editor-card__head h3 {
  color: var(--primary-dark);
}

.home-pillar-carousel-editor {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(0, 71, 141, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(0, 94, 184, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.98));
}

.home-pillar-carousel-editor > div:first-child {
  display: grid;
  gap: 6px;
}

.home-pillar-carousel-editor h3,
.home-pillar-carousel-editor p {
  margin: 0;
}

.home-pillar-carousel-editor h3 {
  color: var(--primary-dark);
}

.home-pillar-carousel-editor p {
  color: var(--muted);
}

.home-pillar-carousel-editor-card {
  align-content: start;
}

.proposal-editor-subsection {
  align-items: start;
}

.proposal-editor-card-grid {
  margin-top: 4px;
}

.proposal-editor-card {
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
    radial-gradient(circle at top right, rgba(0, 94, 184, 0.08), transparent 34%);
}

.proposal-editor-card__head {
  display: grid;
  gap: 5px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.proposal-editor-card__head .eyebrow {
  margin: 0;
}

.proposal-editor-card__head h3 {
  margin: 0;
  color: var(--primary-dark);
}

.proposal-field-with-style {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.9fr);
  gap: 12px;
  align-items: start;
}

.proposal-field-style-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.03);
}

.quick-content-subsection .proposal-field-with-style label,
.proposal-field-with-style label {
  grid-column: auto;
}

.proposal-field-style-controls .color-control,
.proposal-field-style-controls label {
  min-width: 0;
}

.calendar-month-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.calendar-month-toolbar h4 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.2rem;
}

.calendar-month-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.calendar-month-actions .btn {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 0.86rem;
}

.calendar-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  padding: 20px;
}

.calendar-editor__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(92px, 1fr));
  gap: 10px;
  min-width: 0;
}

.calendar-editor__name {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.calendar-editor__day {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.calendar-editor__day strong {
  font-size: 1rem;
  color: var(--primary-dark);
}

.calendar-editor__day span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.calendar-editor__day--empty {
  border-style: dashed;
  background: rgba(15, 23, 42, 0.025);
  cursor: default;
  pointer-events: none;
}

.calendar-editor__day.has-event {
  border-color: rgba(29, 78, 216, 0.26);
  background: rgba(29, 78, 216, 0.08);
}

.calendar-editor__day.is-selected {
  outline: 3px solid rgba(29, 78, 216, 0.2);
  border-color: var(--primary);
}

.calendar-editor__panel {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 14px;
  align-self: start;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
}

.calendar-editor__panel h4 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.2rem;
}

.quick-content-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  align-items: start;
  padding: 20px;
}

.quick-content-form > input,
.quick-content-form > select,
.quick-content-form > textarea,
.quick-content-form > button,
.quick-content-form > .full {
  min-width: 0;
}

.quick-content-form > textarea,
.quick-content-form > .full,
.quick-content-form > button {
  grid-column: 1 / -1;
}

.quick-content-form > button {
  justify-self: start;
}

.quick-content-subsection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.72);
}

.quick-content-subsection h4 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--primary-dark);
}

.quick-content-subsection textarea,
.quick-content-subsection label {
  grid-column: 1 / -1;
}

.drive-status-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, 0.42);
  background: rgba(120, 53, 15, 0.28);
  color: #f8fafc;
}

.drive-status-card.is-ok {
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(20, 83, 45, 0.28);
}

.drive-status-card strong {
  color: #ffffff;
}

.drive-status-card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.drive-status-card__grid span,
.drive-status-card li {
  color: rgba(248, 250, 252, 0.86);
  font-size: 0.86rem;
}

.drive-status-card ul {
  margin: 0;
  padding-left: 18px;
}

.oauth-connect-card {
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.42);
  background: rgba(30, 64, 175, 0.18);
}

.oauth-connect-card > div {
  display: grid;
  gap: 5px;
  min-width: min(100%, 320px);
}

.oauth-connect-card strong {
  color: #ffffff;
  font-size: 0.94rem;
}

.oauth-connect-card small {
  color: rgba(248, 250, 252, 0.78);
  line-height: 1.45;
}

.admission-access-card__link {
  color: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.admissions-button-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.admissions-button-editor-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.86)),
    #111827;
  color: #f8fafc;
  box-shadow: 0 20px 42px rgba(2, 6, 23, 0.18);
}

.admissions-button-editor-card__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.admissions-button-editor-card h4 {
  margin: 0;
  color: inherit;
}

.admissions-button-editor-card__head span {
  color: rgba(226, 232, 240, 0.74);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admissions-button-editor-card__preview {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(226, 232, 240, 0.2);
  padding: 12px 16px;
  font-weight: 800;
  text-align: center;
}

.admissions-button-editor-card__text {
  display: grid;
  gap: 7px;
}

.admissions-button-style-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(82px, 1fr));
  gap: 10px;
}

.admissions-button-style-row input[type="color"] {
  min-height: 42px;
  padding: 4px;
}

.admissions-button-transparent-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.form-builder {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.form-builder__head,
.form-builder-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.form-builder__head h4,
.form-builder__head p {
  margin: 0;
}

.form-builder__head h4 {
  color: var(--primary-dark);
  font-size: 1.25rem;
}

.form-builder__head p {
  color: var(--muted);
}

.form-builder__sections,
.form-builder-section__fields {
  display: grid;
  gap: 14px;
}

.form-builder-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.82));
}

.form-builder-section__head label {
  flex: 1;
}

.form-builder-field {
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.form-builder-field__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-builder-field__grid label {
  display: grid;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 800;
}

.form-builder-field__grid .full,
.form-builder-field__grid button {
  grid-column: 1 / -1;
}

.form-builder-field__grid input,
.form-builder-field__grid select,
.form-builder-field__grid textarea {
  width: 100%;
  min-width: 0;
}

.enrollment-documents-editor {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.enrollment-documents-editor__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.enrollment-document-editor-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.enrollment-document-editor-card header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.enrollment-document-editor-card label {
  display: grid;
  gap: 6px;
}

.enrollment-document-editor-card__auto-name {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(248, 250, 252, 0.78);
}

.enrollment-document-editor-card__auto-name span {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.enrollment-document-editor-card__auto-name strong {
  color: #0f172a;
  font-size: 0.96rem;
  line-height: 1.35;
}

.quick-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding: 20px;
}

.quick-content-grid--editable {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.quick-content-card,
.quick-content-empty {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.86));
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
}

.quick-content-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.quick-content-card > img,
.quick-content-card__placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.quick-content-card > img {
  object-fit: cover;
}

.quick-content-card__placeholder,
.quick-content-empty {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}

.quick-content-card__placeholder {
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.12), rgba(15, 23, 42, 0.04)),
    #f8fafc;
}

.quick-content-card__placeholder .material-symbols-outlined,
.quick-content-empty .material-symbols-outlined {
  color: var(--primary);
  font-size: 2.1rem;
}

.admin-icon-image {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.quick-content-card__body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.quick-content-card__body h4,
.quick-content-empty p {
  margin: 0;
}

.quick-content-card__body h4 {
  color: var(--primary-dark);
  font-size: 1rem;
}

.quick-content-card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.quick-content-card .content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.quick-content-empty {
  min-height: 180px;
  gap: 10px;
  padding: 22px;
}

.quick-content-card--editable {
  min-width: 0;
}

.periodical-detail-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.periodical-detail-editor h5,
.periodical-detail-editor textarea,
.periodical-detail-editor label,
.quick-content-actions {
  grid-column: 1 / -1;
}

.periodical-detail-editor h5 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 0.96rem;
}

.periodical-detail-editor label {
  display: grid;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 800;
}

.quick-content-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.database-status-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.04);
}

.database-status-card h3,
.database-status-card p {
  margin: 0;
}

.database-status-card p {
  color: var(--muted);
  line-height: 1.55;
}

.database-status-card.is-ok {
  border-color: rgba(16, 185, 129, 0.34);
  background: rgba(16, 185, 129, 0.08);
}

.database-status-card.is-warning {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.1);
}

.database-status-card.is-error {
  border-color: rgba(220, 38, 38, 0.34);
  background: rgba(220, 38, 38, 0.08);
}

.database-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.database-status-grid span {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.database-status-grid strong {
  color: var(--primary-dark);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.database-status-grid em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-content {
  padding: 18px;
  width: 100%;
  min-width: 0;
}

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

.theme-preview-shell {
  min-height: 620px;
  width: 100%;
}

.upload-field {
  display: grid;
  gap: 10px;
  align-content: start;
}

.upload-field > span {
  font-weight: 700;
  color: var(--primary-dark);
}

.upload-field__input {
  width: 100%;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 14px;
  min-height: 38px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.upload-field__input::file-selector-button {
  margin-right: 7px;
  border: 0;
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.upload-field--logo .upload-field__input,
.upload-field--icon .upload-field__input,
.upload-field--portrait .upload-field__input,
.upload-field--gallery .upload-field__input {
  width: min(100%, 156px);
  white-space: normal;
}

.upload-field__preview {
  display: grid;
  place-items: center;
  min-height: 160px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.08), rgba(15, 23, 42, 0.03)),
    #f8fafc;
}

.upload-field__preview img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
}

.upload-field__placeholder {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  min-height: 160px;
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
}

.upload-field__placeholder .material-symbols-outlined {
  font-size: 2rem;
  color: var(--primary);
}

.upload-field__placeholder strong {
  color: var(--primary-dark);
  line-height: 1.1;
}

.color-control {
  display: grid;
  gap: 10px;
  align-content: start;
}

.color-control > span {
  font-weight: 700;
  color: var(--primary-dark);
}

.color-control__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.color-control__row input[type="color"] {
  width: 68px;
  height: 52px;
  padding: 4px;
  border-radius: 14px;
  background: #fff;
}

.color-control__transparent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0;
  white-space: nowrap;
}

.color-control__transparent input {
  width: 16px;
  min-width: 16px;
  height: 16px;
}

.button-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 16px;
  padding: 0 20px 20px;
}

.button-style-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.72);
}

.button-style-card h3 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 0.98rem;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.link-action-danger {
  color: var(--danger);
}

.inline-delete-form {
  display: inline-flex;
}

.inline-delete-form button {
  background: transparent;
  padding: 0;
  border: 0;
}

.admin-content {
  padding: 18px;
}

.admin-topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.admin-topbar h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.muted {
  color: var(--muted);
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-notifications {
  position: relative;
}

.admin-notifications > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  cursor: pointer;
}

.admin-notifications > summary::-webkit-details-marker {
  display: none;
}

.admin-notifications__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #60a5fa;
  color: #081120;
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-notifications__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(360px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(11, 18, 32, 0.98);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
  z-index: 40;
}

.admin-notifications__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-notifications__head strong,
.admin-notifications__head a {
  color: #f8fafc;
}

.admin-notifications__list {
  display: grid;
  gap: 10px;
  max-height: 380px;
  overflow: auto;
}

.admin-notifications__item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
}

.admin-notifications__item.is-unread {
  border-color: rgba(96, 165, 250, 0.36);
}

.admin-notifications__item strong {
  color: #f8fafc;
}

.admin-notifications__item small {
  color: rgba(226, 232, 240, 0.62);
}

.admin-notifications__empty {
  padding: 12px;
  color: rgba(226, 232, 240, 0.68);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-dark), #334155);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.admin-main {
  display: flex;
  flex-direction: column;
}

.editor-layout,
.popup-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr 0.95fr;
  gap: 18px;
}

.editor-list,
.popup-list {
  min-height: 78vh;
}

.editor-form,
.popup-editor {
  min-height: 78vh;
}

.editor-preview,
.popup-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nested-card {
  background: rgba(255, 255, 255, 0.84);
  box-shadow: none;
}

.active-accent {
  border-color: rgba(29, 78, 216, 0.25);
  box-shadow: inset 3px 0 0 var(--primary);
}

.mini-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  font-weight: 700;
  color: var(--primary-dark);
}

.mini-option.is-selected {
  background: rgba(29, 78, 216, 0.1);
  border-color: rgba(29, 78, 216, 0.24);
  color: var(--primary);
}

.canvas-preview-editor {
  min-height: 340px;
}

.popup-preview-visual {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-mock {
  width: min(360px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.2);
  position: relative;
}

.popup-image {
  height: 140px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.85), rgba(15, 23, 42, 0.85)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 40%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 18px;
}

.close-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-body {
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-card {
  width: min(480px, 100%);
  padding: 28px;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
}

.auth-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-links {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  font-size: 0.94rem;
}

.auth-links--stack {
  display: grid;
  gap: 10px;
  text-align: center;
}

.auth-links a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 18px;
  padding: 28px 0 14px;
}

.site-footer {
  width: 100%;
  margin: 0;
  padding: 0 0 26px;
  background: var(
    --footer-bg,
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(249, 247, 246, 0.98))
  );
  border-top: 1px solid rgba(194, 198, 212, 0.72);
  color: var(--footer-text, var(--muted));
}

.site-footer .footer-grid,
.site-footer .footer-bar {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.footer-grid h3,
.footer-grid h4 {
  font-family: var(--font-head);
  margin-bottom: 8px;
  color: inherit;
}

.footer-grid p {
  color: inherit;
  margin: 0;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-grid a {
  color: inherit;
  transition: color 160ms ease;
}

.footer-grid a:hover {
  color: var(--primary);
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  color: inherit;
  font-size: 0.92rem;
}

.footer-bar__copy,
.footer-social,
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social {
  margin-left: auto;
}

.footer-social > span {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: var(--primary);
  color: #fff;
}

.social-link--static {
  cursor: default;
}

.social-link--static:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.62);
  color: inherit;
}

.social-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.social-link span {
  font-family: var(--font-label);
  font-weight: 900;
}

.floating-whatsapp {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 75;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.28), transparent 32%),
    linear-gradient(135deg, #25d366, #128c7e);
  box-shadow:
    0 20px 50px rgba(18, 140, 126, 0.28),
    0 8px 18px rgba(15, 23, 42, 0.18);
  text-decoration: none;
  transform: translateZ(0);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.floating-whatsapp::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(37, 211, 102, 0.24);
  border-radius: inherit;
  opacity: 0.72;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 24px 58px rgba(18, 140, 126, 0.34),
    0 10px 22px rgba(15, 23, 42, 0.22);
  filter: saturate(1.06);
}

.floating-whatsapp:focus-visible {
  outline: 4px solid rgba(37, 211, 102, 0.28);
  outline-offset: 4px;
}

.floating-whatsapp svg {
  position: relative;
  width: 34px;
  height: 34px;
  display: block;
  fill: currentColor;
}

.mobile-toggle {
  display: none;
}

.mobile-toggle__icon {
  transition: transform 200ms ease, opacity 200ms ease;
}

.mobile-toggle.is-open {
  background: var(--primary-dark);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.mobile-toggle.is-open .mobile-toggle__icon {
  transform: rotate(90deg);
}

.admin-sidebar-group {
  display: grid;
  gap: 12px;
}

.admin-sidebar-group-muted {
  opacity: 0.92;
}

.admin-sidebar-label {
  margin: 0;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-nav {
  display: grid;
  gap: 8px;
  overflow: auto;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #94a3b8;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.admin-nav a:hover,
.admin-nav a.is-active {
  background: rgba(37, 99, 235, 0.95);
  color: #fff;
}

.admin-nav-future a {
  background: rgba(255, 255, 255, 0.04);
}

.admin-nav-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.admin-nav-copy strong {
  font-size: 0.96rem;
}

.admin-nav-copy small {
  color: inherit;
  opacity: 0.78;
  font-size: 0.76rem;
}

.admin-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.admin-user-card strong,
.admin-user-card small {
  display: block;
}

.admin-user-card small {
  color: #94a3b8;
}

.admin-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 18px;
}

.admin-sidebar-footer a {
  color: #cbd5e1;
}

.admin-sidebar-footer .danger {
  color: #fca5a5;
}

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

.theme-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.theme-card:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 78, 216, 0.2);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.theme-card.is-selected {
  border-color: rgba(29, 78, 216, 0.28);
  box-shadow: 0 20px 40px rgba(29, 78, 216, 0.08);
}

.theme-card.is-disabled {
  opacity: 0.72;
  pointer-events: none;
}

.theme-card__top,
.theme-card__footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.theme-card h3 {
  margin: 8px 0 0;
  font-size: 1.25rem;
}

.theme-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.theme-capture-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.theme-capture-grid--stacked {
  grid-template-columns: 1fr;
}

.theme-capture {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 108px;
  padding: 14px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(29, 78, 216, 0.1), rgba(29, 78, 216, 0.04)),
    #fff;
  border: 1px solid rgba(29, 78, 216, 0.14);
}

.theme-capture strong {
  font-size: 0.94rem;
}

.theme-capture small,
.theme-capture__url {
  color: var(--muted);
  font-size: 0.78rem;
}

.theme-capture .material-symbols-outlined {
  font-size: 1.2rem;
  color: var(--primary);
}

.theme-editor-form {
  display: grid;
  gap: 14px;
}

.editor-section {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

.editor-section summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.editor-section summary::-webkit-details-marker {
  display: none;
}

.editor-section summary::after {
  content: "expand_more";
  font-family: "Material Symbols Outlined";
  font-size: 1.15rem;
  color: var(--muted);
}

.editor-section[open] summary {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.editor-section[open] summary::after {
  content: "expand_less";
}

.editor-section .form-grid {
  padding: 20px;
}

.editor-page-panel--theme2-popup .editor-panel-head {
  background:
    radial-gradient(circle at 12% 18%, rgba(212, 175, 55, 0.18), transparent 32%),
    linear-gradient(135deg, #061827, #0f172a);
  color: #f8fafc;
  border-color: rgba(212, 175, 55, 0.2);
}

.editor-page-panel--theme2-popup .editor-panel-head p,
.editor-page-panel--theme2-popup .editor-panel-head .eyebrow {
  color: rgba(248, 250, 252, 0.78);
}

.editor-section--theme2-popup {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(255, 255, 255, 0.94)),
    #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}

.theme2-popup-editor-preview {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin: 0 20px 20px;
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 14% 18%, rgba(212, 175, 55, 0.24), transparent 36%),
    linear-gradient(135deg, #061827, #0f172a);
  color: #f8fafc;
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 22px 46px rgba(2, 6, 23, 0.18);
}

.theme2-popup-editor-preview__media {
  min-height: 190px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

.theme2-popup-editor-preview__media img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  display: block;
}

.theme2-popup-editor-preview__media .material-symbols-outlined {
  color: rgba(248, 250, 252, 0.72);
  font-size: 2.3rem;
}

.theme2-popup-editor-preview__copy {
  display: grid;
  align-content: center;
  gap: 10px;
}

.theme2-popup-editor-preview__copy span {
  color: #d4af37;
  font-family: var(--font-label);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theme2-popup-editor-preview__copy h4 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.theme2-popup-editor-preview__copy p {
  margin: 0;
  color: rgba(248, 250, 252, 0.78);
  line-height: 1.7;
}

.theme2-popup-editor-preview__copy strong {
  justify-self: start;
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #d4af37;
  color: #061827;
  font-family: var(--font-label);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.editor-repeat-grid {
  display: grid;
  gap: 14px;
  padding: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.mini-option--field {
  display: grid;
  gap: 12px;
  min-height: auto;
  text-align: left;
  justify-content: start;
}

.mini-option--field label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: var(--primary-dark);
}

.mini-option--field input,
.mini-option--field textarea,
.editor-section input,
.editor-section textarea,
.editor-section select,
.password-field input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

.mini-option--field textarea,
.editor-section textarea {
  resize: vertical;
}

.form-actions,
.full-width {
  width: 100%;
}

.inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.inline-toggle--checkbox {
  padding: 10px 0;
}

.password-field {
  position: relative;
  display: flex;
  align-items: stretch;
}

.password-field input {
  padding-right: 56px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  background: rgba(15, 23, 42, 0.05);
}

.theme-preview-shell {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 540px;
  border-radius: 22px;
  padding: 20px;
  overflow: hidden;
}

.theme-preview-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%);
  pointer-events: none;
}

.theme-preview-shell > * {
  position: relative;
  z-index: 1;
}

.theme-preview-hero {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.theme-preview-brandline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: rgba(255, 255, 255, 0.96);
}

.theme-preview-brandline strong {
  font-size: 1rem;
}

.theme-preview-brandline span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.84;
}

.theme-preview-hero h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.theme-preview-hero p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  line-height: 1.65;
}

.theme-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-preview-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.theme-preview-card {
  min-height: 128px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-dark);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.theme-preview-card strong {
  display: block;
  margin-bottom: 8px;
}

.theme-preview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.theme-preview-footer {
  padding: 16px;
  border-radius: 16px;
  background: var(--footer-bg, #ffffff);
  color: var(--footer-text, var(--muted));
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.theme-preview-footer strong {
  display: block;
  margin-bottom: 8px;
}

.theme-preview-footer p {
  margin: 0;
  color: inherit;
  line-height: 1.55;
}

.theme-preview-popup {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: min(280px, calc(100% - 32px));
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.24);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.theme-preview-popup.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.theme-preview-popup strong,
.theme-preview-popup p {
  display: block;
}

.theme-preview-popup p {
  margin: 10px 0 14px;
  color: inherit;
}

.theme-preview-popup .close-chip {
  position: absolute;
  top: 10px;
  right: 10px;
}

.theme-preview-shell .btn-primary {
  background: var(--primary-button-bg, var(--button-bg, var(--primary)));
  color: var(--primary-button-text, var(--button-text, #fff));
  border-radius: calc(var(--primary-button-radius, var(--button-radius, 14)) * 1px);
  border-color: rgba(255, 255, 255, 0.18);
  font-family: var(--primary-button-font, inherit);
}

.theme-preview-shell .btn-secondary {
  background: var(--secondary-button-bg, var(--button-bg, #fff));
  color: var(--secondary-button-text, var(--button-text, var(--primary-dark)));
  border-radius: calc(var(--secondary-button-radius, var(--button-radius, 14)) * 1px);
  border-color: rgba(255, 255, 255, 0.18);
  font-family: var(--secondary-button-font, inherit);
}

.theme-preview-shell .btn-secondary:hover {
  border-color: var(--primary);
}

.theme-preview-shell .btn-popup {
  background: var(--popup-button-bg, var(--primary-button-bg, var(--button-bg, var(--primary))));
  color: var(--popup-button-text, var(--primary-button-text, var(--button-text, #fff)));
  border-radius: calc(var(--popup-button-radius, var(--button-radius, 14)) * 1px);
  border-color: rgba(15, 23, 42, 0.08);
  font-family: var(--popup-button-font, inherit);
}

.admin-nav .material-symbols-outlined,
.site-nav .material-symbols-outlined {
  font-size: 1.05rem;
}

.site-body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

.site-body h1,
.site-body h2,
.site-body h3,
.site-body h4,
.site-body h5,
.site-body h6 {
  font-family: var(--font-head);
  letter-spacing: -0.03em;
}

.site-body .site-header {
  background: rgba(255, 255, 255, 0.96);
}

.site-body .site-main {
  padding-top: 28px;
}

.site-body .section-head {
  align-items: end;
}

.site-body .section-head.centered {
  justify-content: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 22px;
}

.site-body .section-head p {
  max-width: 760px;
}

.site-shell.theme-layout-bento .site-main p,
.site-shell.theme-layout-bento .site-footer p,
.site-shell.theme-layout-bento .stack-item span,
.site-shell.theme-layout-bento .content-detail-body {
  white-space: pre-line;
}

.site-body .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-body .eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--secondary);
}

.site-body .hero-cover,
.site-body .page-hero-cover {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: var(--surface);
}

.site-body .hero-cover {
  min-height: 680px;
}

.site-body .page-hero-cover {
  min-height: 420px;
}

.site-body .hero-cover__media,
.site-body .page-hero-cover__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  transform: scale(1.01);
}

.site-body .hero-cover__overlay,
.site-body .page-hero-cover__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 71, 141, 0.88) 0%, rgba(0, 71, 141, 0.52) 55%, rgba(0, 71, 141, 0.2) 100%);
}

.site-body .hero-cover__inner,
.site-body .page-hero-cover__inner {
  position: relative;
  z-index: 1;
  min-height: inherit;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px) 0;
}

.site-body .hero-cover__copy,
.site-body .page-hero-cover__copy {
  color: #fff;
  max-width: 760px;
}

.site-body .hero-cover__copy h1,
.site-body .page-hero-cover__copy h1 {
  margin: 14px 0 16px;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1.05;
  color: #fff;
}

.site-body .hero-cover__copy p,
.site-body .page-hero-cover__copy p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.06rem;
  line-height: 1.7;
  max-width: 720px;
}

.site-body .hero-cover__badge,
.site-body .page-hero-cover__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.site-body .hero-cover__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.site-body .hero-cover__side {
  align-self: end;
}

.site-body .hero-cover--home .hero-cover__inner {
  grid-template-columns: minmax(0, 1fr);
}

.site-body .hero-cover--home .hero-cover__copy {
  max-width: 760px;
}

.site-body .hero-cover--home .hero-cover__copy h1 {
  max-width: 12ch;
}

.site-body .page-hero-cover--solid .page-hero-cover__inner {
  grid-template-columns: minmax(0, 1fr);
}

.site-body .page-hero-cover--solid .page-hero-cover__copy {
  max-width: 760px;
}

.site-body .page-hero-cover--solid .page-hero-cover__copy h1 {
  max-width: 12ch;
}

.site-body .home-pillars-section {
  padding-top: 32px;
}

.site-body .home-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.site-body .home-pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  min-height: 100%;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(0, 94, 184, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff, #f7f9fc);
  background: var(
    --pillar-bg,
    radial-gradient(circle at top right, rgba(0, 94, 184, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff, #f7f9fc)
  );
  box-shadow: var(--shadow);
  overflow: hidden;
}

.site-body .home-pillar::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(0, 94, 184, 0.05);
  pointer-events: none;
}

.site-body .home-pillar--wide {
  grid-column: auto;
}

.site-body .home-pillar--primary {
  background: linear-gradient(180deg, rgba(0, 71, 141, 0.98), rgba(0, 94, 184, 0.92));
  background: var(--pillar-bg, linear-gradient(180deg, rgba(0, 71, 141, 0.98), rgba(0, 94, 184, 0.92)));
  border-color: transparent;
  color: #fff;
}

.site-body .home-pillar--media {
  display: flex;
}

.site-body .home-pillar__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-body .home-pillar__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 94, 184, 0.1);
  color: var(--pillar-icon, var(--primary));
}

.site-body .home-pillar__icon .material-symbols-outlined {
  font-size: 28px;
}

.site-body .home-pillar--primary .home-pillar__icon {
  background: rgba(255, 255, 255, 0.16);
  color: var(--pillar-icon, #fff);
}

.site-body .home-pillar h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--pillar-text, inherit);
}

.site-body .home-pillar p {
  margin: 0;
  color: var(--pillar-text, var(--muted));
  line-height: 1.68;
}

.site-body .home-pillar--primary p {
  color: var(--pillar-text, rgba(255, 255, 255, 0.92));
}

.site-body .home-pillar-carousel {
  position: relative;
  width: min(100%, 1040px);
  margin: 28px auto 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #071a36;
  box-shadow: 0 26px 70px rgba(0, 31, 84, 0.14);
  overflow: hidden;
}

.site-body .home-pillar-carousel__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.site-body .home-pillar-carousel__header h3 {
  margin: 4px 0 0;
  color: var(--dark);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.site-body .home-pillar-carousel__controls {
  display: flex;
  gap: 8px;
}

.site-body .home-pillar-carousel__button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 31, 84, 0.28);
  backdrop-filter: blur(12px);
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease-out, border-color 180ms ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .site-body .home-pillar-carousel__button:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.72);
  }

  .site-body .home-pillar-carousel__dot:hover {
    background: rgba(255, 255, 255, 0.58);
  }
}

.site-body .home-pillar-carousel__button:active,
.site-body .home-pillar-carousel__dot:active {
  transform: scale(0.97);
}

.site-body .home-pillar-carousel__button:focus-visible,
.site-body .home-pillar-carousel__dot:focus-visible,
.site-body .home-pillar-carousel__image-button:focus-visible,
.site-body .home-pillar-carousel__viewport:focus-visible {
  outline: 3px solid #8ec5ff;
  outline-offset: 3px;
}

.site-body .home-pillar-carousel__viewport {
  position: relative;
  display: block;
  height: clamp(320px, 45vw, 540px);
  overflow: hidden;
  perspective: 1200px;
  perspective-origin: 50% 45%;
  transform-style: preserve-3d;
}

.site-body .home-pillar-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.site-body .home-pillar-carousel__slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(62%, 620px);
  margin: 0;
  height: 86%;
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
  background: #061326;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
  opacity: var(--carousel-opacity, 0);
  transform:
    translate(-50%, -50%)
    translateX(var(--carousel-x, 0px))
    translateZ(var(--carousel-z, 0px))
    rotateY(var(--carousel-rotate, 0deg))
    scale(var(--carousel-scale, 0.68));
  transform-style: preserve-3d;
  backface-visibility: hidden;
  z-index: var(--carousel-layer, 0);
  pointer-events: none;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease-out, box-shadow 220ms ease-out;
}

.site-body .home-pillar-carousel__slide.is-visible {
  pointer-events: auto;
}

.site-body .home-pillar-carousel__slide.is-active {
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.site-body .home-pillar-carousel__slide::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -36px;
  background-image: var(--carousel-image);
  background-position: center;
  background-size: cover;
  filter: blur(34px) saturate(0.75) brightness(0.58);
  opacity: 0.72;
  transform: scale(1.08);
}

.site-body .home-pillar-carousel__slide img {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  object-fit: contain;
  object-position: center center;
  display: block;
  padding: clamp(12px, 2.2vw, 28px);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.28));
  opacity: 0.84;
  transform: scale(0.992);
  transition: opacity 220ms ease-out, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-body .home-pillar-carousel__image-button {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #fff;
  cursor: zoom-in;
}

.site-body .home-pillar-carousel__slide.is-active img {
  opacity: 1;
  transform: scale(1);
}

.site-body .home-pillar-carousel__expand-icon {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  background: rgba(0, 15, 35, 0.68);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease-out, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-body .home-pillar-carousel__slide.is-active .home-pillar-carousel__expand-icon,
.site-body .home-pillar-carousel__image-button:focus-visible .home-pillar-carousel__expand-icon {
  opacity: 1;
  transform: translateY(0);
}

.site-body .home-pillar-carousel__slide::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 15, 35, 0.44), transparent 30%, transparent 70%, rgba(0, 15, 35, 0.44)),
    linear-gradient(180deg, rgba(0, 15, 35, 0.16), transparent 55%, rgba(0, 15, 35, 0.36));
  pointer-events: none;
}

.site-body .home-pillar-carousel__toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  min-height: 70px;
  padding: 10px 4px 0;
  color: #fff;
}

.site-body .home-pillar-carousel__counter {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 76px;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-variant-numeric: tabular-nums;
}

.site-body .home-pillar-carousel__counter strong {
  color: #fff;
  font-size: 1.15rem;
}

.site-body .home-pillar-carousel__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
}

.site-body .home-pillar-carousel__dot {
  width: clamp(14px, 2vw, 28px);
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease-out;
}

.site-body .home-pillar-carousel__dot.is-active {
  background: #fff;
}

.site-body .home-pillar-lightbox[hidden] {
  display: none;
}

.site-body .home-pillar-lightbox {
  position: fixed;
  z-index: 2400;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 54px);
  background: rgba(2, 10, 24, 0.94);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 200ms ease-out;
}

.site-body .home-pillar-lightbox.is-open {
  opacity: 1;
}

.site-body .home-pillar-lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - clamp(64px, 10vw, 120px));
  object-fit: contain;
  filter: drop-shadow(0 28px 70px rgba(0, 0, 0, 0.5));
  transform: scale(0.98);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-body .home-pillar-lightbox.is-open img {
  transform: scale(1);
}

.site-body .home-pillar-lightbox__close {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease-out;
}

.site-body .home-pillar-lightbox__close:active {
  transform: scale(0.97);
}

.site-body.has-home-pillar-lightbox {
  overflow: hidden;
}

.site-body .home-values-section {
  padding-top: 8px;
}

.site-body .home-values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.site-body .home-value-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(194, 198, 212, 0.74);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 71, 141, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 252, 0.92));
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.site-body .home-value-card::before {
  content: "";
  position: absolute;
  inset: auto -32px -48px auto;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: rgba(0, 71, 141, 0.06);
}

.site-body .home-value-card__number {
  position: absolute;
  top: 16px;
  right: 18px;
  color: rgba(15, 23, 42, 0.16);
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.site-body .home-value-card__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
}

.site-body .home-value-card__icon .material-symbols-outlined {
  font-size: 26px;
}

.site-body .home-value-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.08rem;
}

.site-body .home-value-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.site-body .home-cta-section {
  padding-bottom: 12px;
}

.site-body .home-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(194, 198, 212, 0.72);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-body .home-cta-copy {
  max-width: 48ch;
}

.site-body .home-cta-copy h2 {
  margin: 10px 0 14px;
  color: var(--primary-dark);
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  line-height: 1.15;
}

.site-body .home-cta-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.site-body .home-cta-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1 1 380px;
}

.site-body .home-cta-input {
  flex: 1 1 280px;
  min-width: 220px;
  height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(194, 198, 212, 0.9);
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.site-body .home-cta-input::placeholder {
  color: #7b8794;
}

.site-body .browser-card,
.site-body .preview-card,
.site-body .surface-card,
.site-body .download-card,
.site-body .gallery-card,
.site-body .issue-card,
.site-body .calendar-card,
.site-body .contact-card,
.site-body .form-card,
.site-body .timeline-card,
.site-body .mission-card,
.site-body .step-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.site-body .browser-card {
  overflow: hidden;
}

.site-body .browser-card__topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.site-body .browser-card__topbar i,
.site-body .browser-card__topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fb7185;
}

.site-body .browser-card__topbar i:nth-child(2) {
  background: #fbbf24;
}

.site-body .browser-card__topbar i:nth-child(3) {
  background: #22c55e;
}

.site-body .browser-card__topbar div {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-body .browser-card__body {
  padding: 26px;
  background:
    radial-gradient(circle at top right, rgba(0, 94, 184, 0.08), transparent 28%),
    linear-gradient(180deg, #fff, #f7f9fc);
}

.site-body .browser-card__body h2 {
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--primary-dark);
  margin: 0 0 12px;
}

.site-body .browser-card__body p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 18px;
}

.site-body .browser-grid,
.site-body .gallery-grid,
.site-body .download-grid,
.site-body .issue-grid,
.site-body .pillars-grid,
.site-body .values-grid,
.site-body .mission-grid,
.site-body .schedule-layout,
.site-body .contact-grid,
.site-body .form-layout {
  display: grid;
  gap: 18px;
}

.site-body .browser-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-body .browser-tile {
  min-height: 112px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(0, 94, 184, 0.1), rgba(0, 94, 184, 0.04));
  border: 1px solid rgba(0, 94, 184, 0.14);
  display: flex;
  align-items: end;
  padding: 14px;
  font-weight: 700;
  color: var(--primary-dark);
}

.site-body .section-wrap {
  padding: 28px 0 0;
}

.site-body .section-wrap + .section-wrap {
  margin-top: 8px;
}

.site-body .card-grid,
.site-body .bento-grid,
.site-body .mission-grid,
.site-body .values-grid,
.site-body .download-grid,
.site-body .gallery-grid,
.site-body .issue-grid,
.site-body .timeline-grid,
.site-body .contact-grid {
  display: grid;
  gap: 16px;
}

.site-body .card-grid-two,
.site-body .mission-grid,
.site-body .contact-grid,
.site-body .form-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-body .card-grid-three,
.site-body .bento-grid,
.site-body .values-grid,
.site-body .gallery-grid,
.site-body .download-grid,
.site-body .issue-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-body .card-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-body .bento-card,
.site-body .info-card,
.site-body .mission-card,
.site-body .step-card,
.site-body .download-card,
.site-body .issue-card,
.site-body .gallery-card,
.site-body .timeline-card,
.site-body .surface-card,
.site-body .contact-card,
.site-body .form-card,
.site-body .preview-card {
  padding: 24px;
}

.site-body .bento-card,
.site-body .info-card,
.site-body .mission-card,
.site-body .step-card,
.site-body .timeline-card {
  position: relative;
  overflow: hidden;
}

.site-body .bento-card::after,
.site-body .mission-card::after,
.site-body .step-card::after,
.site-body .download-card::after,
.site-body .issue-card::after,
.site-body .gallery-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -24px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(0, 94, 184, 0.05);
  pointer-events: none;
}

.site-body .bento-card__icon,
.site-body .card-icon,
.site-body .value-icon,
.site-body .step-icon,
.site-body .download-icon,
.site-body .issue-icon,
.site-body .gallery-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 94, 184, 0.1);
  color: var(--primary);
  margin-bottom: 18px;
}

.site-body .card-icon__image {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.site-body .bento-card h3,
.site-body .info-card h3,
.site-body .mission-card h3,
.site-body .step-card h3,
.site-body .download-card h3,
.site-body .issue-card h3,
.site-body .gallery-card h3,
.site-body .timeline-card h3,
.site-body .contact-card h3,
.site-body .form-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--text);
}

.site-body .bento-card p,
.site-body .info-card p,
.site-body .mission-card p,
.site-body .step-card p,
.site-body .download-card p,
.site-body .issue-card p,
.site-body .gallery-card p,
.site-body .timeline-card p,
.site-body .contact-card p,
.site-body .form-card p {
  color: var(--muted);
  line-height: 1.68;
}

.site-body .proposal-feature-grid {
  display: grid;
  gap: 18px;
}

.site-body .proposal-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  min-height: 340px;
  overflow: hidden;
  border: 1px solid rgba(0, 94, 184, 0.14);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.site-body .proposal-feature-card--dark {
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, var(--primary-dark), #062e62 54%, #03172f);
  color: #fff;
}

.site-body .proposal-feature-card--light {
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  background:
    radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.18), transparent 28%),
    linear-gradient(135deg, #f7fbff, #ffffff);
}

.site-body .proposal-feature-card__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 54px);
}

.site-body .proposal-feature-card__copy h2 {
  margin: 0 0 16px;
  max-width: 760px;
  color: inherit;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.site-body .proposal-feature-card__copy p {
  max-width: 680px;
  color: currentColor;
  line-height: 1.72;
  opacity: 0.82;
}

.site-body .proposal-feature-card__media {
  min-height: 300px;
  margin: 0;
  background: rgba(255, 255, 255, 0.12);
}

.site-body .proposal-feature-card__media img,
.site-body .proposal-innovation-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.site-body .proposal-feature-card__placeholder,
.site-body .proposal-innovation-media__placeholder {
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(0, 94, 184, 0.1), rgba(245, 158, 11, 0.14)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 10px, transparent 10px 20px);
  color: currentColor;
}

.site-body .proposal-feature-card__placeholder .material-symbols-rounded,
.site-body .proposal-innovation-media__placeholder .material-symbols-rounded {
  font-size: 3rem;
}

.site-body .proposal-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.site-body .proposal-pillar-card {
  min-height: 250px;
}

.site-body .proposal-pillar-card--innovation {
  background:
    radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.2), transparent 30%),
    linear-gradient(135deg, #ffffff, #f7fbff);
}

.site-body .proposal-innovation-media {
  grid-column: span 2;
  min-height: 250px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(0, 94, 184, 0.14);
  background: #061a36;
  color: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.site-body .proposal-innovation-media__placeholder small {
  color: rgba(255, 255, 255, 0.72);
}

.site-body .summary-card--social .social-links {
  margin-top: 14px;
}

.site-body .uniform-section {
  padding-bottom: 36px;
}

.site-body .uniform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(18px, 3vw, 32px);
}

.site-body .uniform-card {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.site-body .uniform-card > h3 {
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--primary-dark);
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  text-align: center;
}

.site-body .uniform-card__media {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.site-body .uniform-card__image-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  border-radius: 14px;
  background: var(--surface-soft);
  line-height: 0;
}

.site-body .uniform-card__image-stage > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 680px;
  border-radius: inherit;
  object-fit: contain;
}

.site-body .uniform-card__placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  width: 100%;
  min-height: 360px;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at top, var(--primary-soft), transparent 52%),
    var(--surface-soft);
  color: var(--muted);
  text-align: center;
}

.site-body .uniform-card__placeholder .material-symbols-outlined {
  color: var(--primary);
  font-size: 3rem;
}

.site-body .uniform-card__placeholder strong {
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.site-body .uniform-hotspot {
  position: absolute;
  left: var(--uniform-x);
  top: var(--uniform-y);
  z-index: 3;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  line-height: normal;
  transform: translate(-50%, -50%);
}

.site-body .uniform-hotspot__dot {
  position: absolute;
  inset: 3px;
  display: block;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);
  animation: uniform-hotspot-pulse 2s infinite;
}

.site-body .uniform-hotspot__tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 6;
  display: grid;
  gap: 5px;
  width: min(240px, calc(100vw - 48px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.2);
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  visibility: hidden;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.site-body .uniform-hotspot__tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  border: 6px solid transparent;
  border-top-color: #fff;
  transform: translateX(-50%);
}

.site-body .uniform-hotspot__tooltip strong,
.site-body .uniform-hotspot__tooltip span {
  display: block;
}

.site-body .uniform-hotspot__tooltip strong {
  color: var(--primary-dark);
}

.site-body .uniform-hotspot:hover .uniform-hotspot__tooltip,
.site-body .uniform-hotspot:focus-visible .uniform-hotspot__tooltip,
.site-body .uniform-hotspot:focus .uniform-hotspot__tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

.site-body .uniform-hotspot:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 38%, transparent);
  outline-offset: 3px;
}

@keyframes uniform-hotspot-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 58%, transparent); }
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.uniform-hotspot-editor-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 20px;
  border: 1px solid var(--line);
  background: var(--line);
}

.uniform-hotspot-editor {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: var(--surface-soft);
}

.uniform-hotspot-editor legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 0 0 12px;
  color: var(--primary);
  font-weight: 800;
}

.uniform-hotspot-editor legend .inline-toggle {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.uniform-hotspot-map {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 94, 184, 0.1), transparent 28%),
    var(--surface-soft);
}

.uniform-hotspot-map__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.uniform-hotspot-map__head h4,
.uniform-hotspot-map__head small {
  margin: 0;
}

.uniform-hotspot-map__head h4 {
  color: var(--primary-dark);
}

.uniform-hotspot-map__head small {
  max-width: 420px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.uniform-hotspot-map__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background:
    linear-gradient(45deg, rgba(15, 23, 42, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(15, 23, 42, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(15, 23, 42, 0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(15, 23, 42, 0.04) 75%);
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
  touch-action: none;
}

.uniform-hotspot-map__stage img {
  display: none;
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.uniform-hotspot-map.has-image .uniform-hotspot-map__stage img {
  display: block;
}

.uniform-hotspot-map.has-image .uniform-hotspot-map__stage {
  display: block;
  min-height: 0;
}

.uniform-hotspot-map__placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.uniform-hotspot-map__placeholder .material-symbols-outlined {
  color: var(--primary);
  font-size: 2.5rem;
}

.uniform-hotspot-map__placeholder strong {
  color: var(--primary-dark);
}

.uniform-hotspot-map.has-image .uniform-hotspot-map__placeholder {
  display: none;
}

.uniform-hotspot-map__point {
  position: absolute;
  left: var(--uniform-x);
  top: var(--uniform-y);
  z-index: 4;
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 999px !important;
  background: var(--accent);
  color: #fff;
  cursor: grab;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  user-select: none;
  touch-action: none;
}

.uniform-hotspot-map.has-image .uniform-hotspot-map__point {
  display: grid;
}

.uniform-hotspot-map__point:hover,
.uniform-hotspot-map__point:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.3);
}

.uniform-hotspot-map__point.is-dragging {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.14);
}

.uniform-hotspot-map__point.is-disabled {
  opacity: 0.38;
  filter: grayscale(0.8);
}

@media (max-width: 760px) {
  .site-body .uniform-grid {
    grid-template-columns: 1fr;
  }

  .site-body .uniform-card__placeholder {
    min-height: 280px;
  }

  .uniform-hotspot-editor-list {
    grid-template-columns: 1fr;
  }

  .uniform-hotspot-map__head {
    align-items: start;
    flex-direction: column;
  }

  .uniform-hotspot-map__stage {
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-body .uniform-hotspot__dot {
    animation: none;
  }
}

.site-body .mission-card--primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.site-body .mission-card--primary h3,
.site-body .mission-card--primary p {
  color: #fff;
}

.site-body .mission-card__image {
  width: 100%;
  min-height: 220px;
  margin: 18px 0 0;
  display: grid;
  place-items: center;
}

.site-body .mission-card__image img {
  display: block;
  width: min(100%, 420px);
  max-height: 320px;
  object-fit: contain;
}

.site-body .mission-card--image-only {
  display: grid;
  min-height: 320px;
  place-items: center;
}

.site-body .mission-card--image-only .mission-card__image {
  margin: 0;
}

.site-body .timeline-grid {
  position: relative;
}

.site-body .timeline-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #c2c6d4;
  transform: translateX(-50%);
}

.site-body .timeline-card {
  background: #fff;
}

.site-body .timeline-card--with-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.72fr);
  gap: 18px;
  align-items: stretch;
}

.site-body .timeline-card__copy {
  position: relative;
  z-index: 1;
}

.site-body .timeline-card__media {
  position: relative;
  z-index: 1;
  min-height: 170px;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 71, 141, 0.16), rgba(0, 94, 184, 0.08));
}

.site-body .timeline-card__media img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  display: block;
}

.site-body .timeline-card__year {
  margin: 0 0 10px;
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.site-body .timeline-card:nth-child(odd) {
  margin-right: 20%;
}

.site-body .timeline-card:nth-child(even) {
  margin-left: 20%;
}

.site-body .timeline-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 94, 184, 0.1);
  color: var(--primary);
  font-weight: 800;
  font-family: var(--font-label);
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.site-body .section-head--page {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.site-body .callout-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(0, 71, 141, 0.96), rgba(0, 94, 184, 0.92));
  color: #fff;
  box-shadow: var(--shadow);
}

.site-body .callout-panel p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 56ch;
}

.site-body .schedule-layout {
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  align-items: start;
}

.site-body .calendar-card,
.site-body .contact-card,
.site-body .form-card,
.site-body .preview-card {
  padding: 24px;
}

.site-body .calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.site-body .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  text-align: center;
}

.site-body .calendar-grid .day-name {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 8px 0;
  min-height: auto;
  background: transparent;
  border-color: transparent;
}

.site-body .calendar-day {
  min-height: 58px;
  border-radius: 12px;
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text);
  font-weight: 600;
  border: 1px solid transparent;
  padding: 8px;
}

.site-body .calendar-day small {
  max-width: 100%;
  color: inherit;
  font-size: 0.68rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-body .calendar-day--empty {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.05);
}

.site-body .calendar-day.is-active {
  background: rgba(0, 94, 184, 0.12);
  color: var(--primary);
}

.site-body .calendar-day.is-alert {
  background: rgba(237, 76, 92, 0.12);
  color: #a61b1b;
}

.site-body .event-list {
  display: grid;
  gap: 14px;
}

.site-body .event-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.site-body .event-date {
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  padding: 10px 0;
  line-height: 1;
}

.site-body .event-date span {
  display: block;
}

.site-body .event-date .month {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.site-body .event-date .day {
  font-size: 1.45rem;
  font-family: var(--font-head);
  font-weight: 800;
}

.site-body .form-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
}

.site-body .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.site-body .form-grid .full {
  grid-column: 1 / -1;
}

.site-body .form-grid label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.site-body .form-grid input,
.site-body .form-grid select,
.site-body .form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
}

.site-body .form-grid textarea {
  resize: vertical;
}

.site-body .admission-sheet-form {
  display: grid;
  gap: 18px;
}

.site-body .admission-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 18px;
  align-items: start;
}

.site-body .admission-access-intro {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 94, 184, 0.18);
  border-radius: 18px;
  background: #ffffff;
  color: #0f172a;
}

.site-body .admission-access-intro h3,
.site-body .admission-access-intro p {
  margin: 0;
}

.site-body .admission-access-intro p {
  color: #334155;
}

.site-body .admission-access-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(0, 94, 184, 0.22);
  border-radius: 22px;
  color: #0f172a;
  background:
    radial-gradient(circle at top left, rgba(0, 94, 184, 0.12), transparent 34%),
    #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
}

.site-body .admission-access-card--login {
  position: sticky;
  top: 90px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 34%),
    #fff;
}

.site-body .admission-access-card h3,
.site-body .admission-access-card p {
  margin: 0;
}

.site-body .admission-access-card h3 {
  color: #0f172a;
}

.site-body .admission-access-card p {
  color: #334155;
}

.site-body .admission-session-card {
  display: grid;
  gap: 10px;
  border-color: rgba(0, 94, 184, 0.24);
  color: #0f172a;
  background:
    linear-gradient(135deg, rgba(0, 94, 184, 0.09), transparent 62%),
    #fff;
}

.site-body .admission-session-card h3,
.site-body .admission-session-card p {
  color: #0f172a;
}

.site-body .admission-session-card small {
  color: #475569;
}

.site-body .admission-photo-field {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 188px;
  border: 2px dashed var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(0, 94, 184, 0.1), transparent 36%),
    var(--surface-soft);
  color: var(--text);
  padding: 22px;
  cursor: pointer;
}

.site-body .admission-photo-field__preview {
  display: grid;
  place-items: center;
  width: 96px;
  height: 160px;
  border-radius: 28px;
  background: #fff;
  color: var(--primary);
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.site-body .admission-photo-field__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-body .admission-photo-field__preview .material-symbols-outlined {
  font-size: 2.4rem;
}

.site-body .admission-photo-field__copy {
  display: grid;
  gap: 6px;
}

.site-body .admission-photo-field__filename {
  color: var(--muted);
  font-size: 0.86rem;
}

.site-body .admission-photo-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-body .admission-sheet-section {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.site-body .admission-sheet-section legend {
  padding: 0 10px;
  color: var(--primary-dark);
  font-family: var(--font-head);
  font-size: 1.18rem;
  font-weight: 800;
}

.site-body .admission-sheet-table-wrap {
  overflow-x: auto;
}

.site-body .admission-sheet-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.82);
}

.site-body .admission-sheet-table th,
.site-body .admission-sheet-table td {
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  vertical-align: top;
}

.site-body .admission-sheet-table th {
  width: 34%;
  background: rgba(226, 232, 240, 0.58);
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 900;
  text-align: left;
}

.site-body .admission-sheet-table input,
.site-body .admission-sheet-table select,
.site-body .admission-sheet-table textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 5px 2px;
  color: var(--primary-dark);
}

.site-body .admission-documents-section > p {
  margin: 0;
  color: var(--muted);
}

.site-body .admission-parent-register {
  display: grid;
  gap: 12px;
  border-color: rgba(0, 94, 184, 0.22);
  background:
    linear-gradient(135deg, rgba(0, 94, 184, 0.08), transparent 52%),
    var(--surface-soft);
}

.site-body .admission-side-form-grid {
  display: grid;
  gap: 10px;
}

.site-body .admission-side-form-grid label {
  display: grid;
  gap: 6px;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 800;
}

.site-body .admission-side-form-grid input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 11px 12px;
}

.site-body .admission-documents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.site-body .side-summary .admission-documents-grid {
  grid-template-columns: minmax(0, 1fr);
}

.site-body .admission-document-upload {
  display: grid;
  gap: 10px;
  min-height: 156px;
  padding: 16px;
  border: 1px solid rgba(0, 94, 184, 0.2);
  border-radius: 18px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.site-body .admission-document-upload span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  justify-content: space-between;
}

.site-body .admission-document-upload strong {
  font-family: var(--font-head);
  color: #0f172a;
}

.site-body .admission-document-upload em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(0, 94, 184, 0.1);
  color: var(--primary-dark);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 8px;
  text-transform: uppercase;
}

.site-body .admission-document-upload small {
  color: #334155;
}

.site-body .admission-document-upload input {
  width: 100%;
  border: 1px dashed rgba(0, 94, 184, 0.28);
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  padding: 10px;
}

.site-body .upload-box {
  min-height: 180px;
  border-radius: 16px;
  border: 2px dashed var(--line);
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  text-align: center;
  padding: 20px;
}

.site-body .side-summary {
  display: grid;
  gap: 14px;
}

.site-body .summary-card {
  padding: 20px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.site-body .summary-card p {
  white-space: pre-line;
}

.site-body .summary-gallery-link {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  color: inherit;
}

.site-body .summary-gallery-link strong {
  color: var(--primary);
}

.site-body .summary-gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.site-body .summary-gallery-strip img,
.site-body .summary-gallery-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(0, 71, 141, 0.18), rgba(0, 94, 184, 0.1)),
    var(--surface);
  border: 1px solid var(--line);
}

.site-body .summary-card__muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-body .download-card,
.site-body .issue-card,
.site-body .gallery-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-body .content-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
}

.site-body .download-card__media {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
  box-sizing: border-box;
  background:
    linear-gradient(135deg, rgba(0, 71, 141, 0.16), rgba(15, 23, 42, 0.05)),
    var(--surface-soft);
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  font-weight: 900;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

.site-body .download-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  box-sizing: border-box;
  padding: 14px;
  background: #fff;
}

.site-body .announcements-grid {
  align-items: stretch;
}

.site-body .announcement-card {
  position: relative;
  overflow: hidden;
  border-top: 6px solid var(--primary);
  background:
    linear-gradient(180deg, rgba(0, 94, 184, 0.045), rgba(255, 255, 255, 0.94)),
    var(--surface);
}

.site-body .announcement-card__media {
  text-decoration: none;
}

.site-body .announcement-card__media img {
  object-fit: cover;
  padding: 0;
}

.site-body .announcement-card h3 a {
  color: inherit;
  text-decoration: none;
}

.site-body .announcement-card h3 a:hover {
  color: var(--primary);
}

.site-body .issue-card__media {
  min-height: 190px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(0, 71, 141, 0.82), rgba(0, 94, 184, 0.62)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent);
  background-size: cover;
  background-position: center center;
  color: #fff;
  display: flex;
  align-items: end;
  justify-content: start;
  padding: 16px;
  font-weight: 800;
}

.site-body .issue-card__media span {
  max-width: 18ch;
}

.site-body .download-card__meta,
.site-body .issue-card__meta,
.site-body .gallery-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-body .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-label);
  text-transform: uppercase;
}

.site-body .gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-body .gallery-grid--photos {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-body .gallery-card--album-link {
  color: inherit;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.site-body .gallery-card--album-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

.site-body .gallery-card__cta {
  margin-top: auto;
  color: var(--primary);
  font-weight: 800;
}

.site-body .gallery-card__meta strong {
  color: var(--primary-dark);
}

.site-body .gallery-card__thumb {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(0, 71, 141, 0.82), rgba(0, 94, 184, 0.62)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
  color: #fff;
  display: flex;
  align-items: end;
  justify-content: start;
  padding: 16px;
  font-weight: 800;
}

.site-body .gallery-photo-trigger {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  color: inherit;
  text-align: left;
}

.site-body .gallery-card--photo .gallery-card__thumb {
  width: 100%;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.site-body .gallery-card--photo:hover .gallery-card__thumb {
  transform: scale(1.015);
  filter: saturate(1.08);
}

.site-body .gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 44px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.site-body .gallery-lightbox.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.site-body .gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 10, 26, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-body .gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  display: grid;
  gap: 12px;
  padding: clamp(12px, 2vw, 18px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.36);
}

.site-body .gallery-lightbox__dialog img {
  width: 100%;
  max-height: min(76vh, 760px);
  object-fit: contain;
  border-radius: 18px;
  background: #050a1a;
}

.site-body .gallery-lightbox__dialog p {
  margin: 0;
  color: var(--primary-dark);
  font-weight: 800;
}

.site-body .gallery-lightbox__close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

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

.site-body .hero-cover__copy .btn-secondary,
.site-body .page-hero-cover__copy .btn-secondary {
  background: var(--secondary-button-bg, var(--button-bg, rgba(255, 255, 255, 0.96)));
  color: var(--secondary-button-text, var(--button-text, var(--primary-dark)));
  border-radius: calc(var(--secondary-button-radius, var(--button-radius, 14)) * 1px);
  border-color: rgba(255, 255, 255, 0.12);
}

.site-body .hero-cover__copy .btn-secondary:hover,
.site-body .page-hero-cover__copy .btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.site-body .btn-primary {
  background: var(--primary-button-bg, var(--button-bg, var(--primary)));
  color: var(--primary-button-text, var(--button-text, #fff));
  border-radius: calc(var(--primary-button-radius, var(--button-radius, 14)) * 1px);
  border-color: rgba(255, 255, 255, 0.18);
  font-family: var(--primary-button-font, inherit);
}

.site-body .btn-secondary {
  background: var(--secondary-button-bg, var(--button-bg, #fff));
  color: var(--secondary-button-text, var(--button-text, var(--primary-dark)));
  border-radius: calc(var(--secondary-button-radius, var(--button-radius, 14)) * 1px);
  border-color: rgba(255, 255, 255, 0.18);
  font-family: var(--secondary-button-font, inherit);
}

.site-body .btn-secondary:hover {
  border-color: var(--primary);
}

.site-body .btn-popup {
  background: var(--popup-button-bg, var(--primary-button-bg, var(--button-bg, var(--primary))));
  color: var(--popup-button-text, var(--primary-button-text, var(--button-text, #fff)));
  border-radius: calc(var(--popup-button-radius, var(--button-radius, 14)) * 1px);
  border-color: rgba(15, 23, 42, 0.08);
  font-family: var(--popup-button-font, inherit);
}

.is-delete-confirm-open {
  overflow: hidden;
}

.delete-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 30%, rgba(29, 78, 216, 0.18), transparent 34%),
    rgba(15, 23, 42, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.delete-confirm-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.delete-confirm-modal__panel {
  display: grid;
  gap: 18px;
  width: min(440px, 100%);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.28);
  transform: translateY(14px) scale(0.96);
  transition: transform 220ms ease;
}

.delete-confirm-modal.is-visible .delete-confirm-modal__panel {
  transform: translateY(0) scale(1);
}

.delete-confirm-modal__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: rgba(187, 0, 20, 0.1);
  color: #bb0014;
  font-size: 30px;
}

.delete-confirm-modal__copy {
  display: grid;
  gap: 8px;
}

.delete-confirm-modal__copy h2,
.delete-confirm-modal__copy p {
  margin: 0;
}

.delete-confirm-modal__copy h2 {
  color: var(--primary-dark);
  font-size: 1.35rem;
}

.delete-confirm-modal__copy p {
  color: var(--muted);
  line-height: 1.6;
}

.delete-confirm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.delete-confirm-modal__accept {
  background: #bb0014;
  color: #fff;
  border-color: #bb0014;
}

.public-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 80;
  display: grid;
  gap: 14px;
  width: min(560px, calc(100vw - 40px));
  min-height: 420px;
  padding: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.26);
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.96);
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.public-popup.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.public-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
  cursor: pointer;
  font-weight: 800;
}

.public-popup__image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 20px;
}

.public-popup__copy {
  display: grid;
  gap: 8px;
  padding-right: 32px;
}

.public-popup__copy h3,
.public-popup__copy p {
  margin: 0;
  color: inherit;
}

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

@media (max-width: 1180px) {
  .hero-panel,
  .page-hero,
  .section-grid,
  .editor-layout,
  .popup-layout {
    grid-template-columns: 1fr;
  }

  .theme-editor-layout {
    grid-template-columns: 1fr;
    width: 100%;
    margin-right: 0;
  }

  .button-style-grid {
    grid-template-columns: 1fr;
  }

  .editor-callout,
  .content-manager-layout,
  .calendar-editor {
    grid-template-columns: 1fr;
  }

  .content-editor-card {
    position: static;
  }

  .calendar-editor__panel {
    position: static;
  }

  .calendar-editor__grid {
    grid-template-columns: repeat(7, minmax(62px, 1fr));
  }

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

  .calendar-month-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .hero-stats,
  .metric-grid,
  .card-grid-four,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid-three,
  .card-grid-two {
    grid-template-columns: 1fr;
  }

  .site-body .mission-grid,
  .site-body .schedule-layout,
  .site-body .form-layout {
    grid-template-columns: 1fr;
  }

  .site-body .bento-grid,
  .site-body .proposal-bento-grid,
  .site-body .gallery-grid,
  .site-body .download-grid,
  .site-body .issue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-body .proposal-feature-card,
  .site-body .proposal-feature-card--light {
    grid-template-columns: 1fr;
  }

  .site-body .proposal-feature-card--light .proposal-feature-card__media {
    order: 2;
  }

  .site-body .proposal-innovation-media {
    grid-column: auto;
  }

  .site-body .home-pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-body .home-values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-body .home-pillar--wide,
  .site-body .home-pillar--media {
    grid-column: auto;
  }

  .site-body .home-pillar--media {
    flex-direction: column;
  }

  .site-body .home-cta-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .theme2-popup-editor-preview {
    grid-template-columns: 1fr;
  }

  .proposal-field-with-style {
    grid-template-columns: 1fr;
  }

  .site-body .home-cta-form {
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
  }

  .site-body .home-cta-input {
    width: 100%;
    min-width: 0;
  }

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

  .admin-sidebar {
    position: relative;
    height: auto;
  }

  .editor-list,
  .editor-form,
  .editor-preview,
  .popup-list,
  .popup-editor,
  .popup-preview {
    min-height: auto;
  }

}

@media (max-width: 860px) {
  .site-header {
    padding: 12px 16px 14px;
  }

  .editor-page-menu {
    position: relative;
    top: auto;
    overflow-x: auto;
    flex-wrap: nowrap;
    scroll-snap-type: x proximity;
  }

  .editor-page-menu button {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .theme-editor-form .editor-section .form-grid,
  .editor-section .form-grid,
  .editor-repeat-grid,
  .editor-repeat-grid--wide,
  .enrollment-documents-editor__grid,
  .form-builder-field__grid {
    grid-template-columns: 1fr;
  }

  .student-photo-control-preview {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .student-photo-control-preview .btn {
    justify-self: stretch;
  }

  .form-builder__head,
  .form-builder-section__head {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-editor {
    padding: 14px;
  }

  .calendar-editor__grid {
    grid-template-columns: repeat(7, minmax(40px, 1fr));
    gap: 6px;
  }

  .calendar-editor__day {
    min-height: 68px;
    padding: 8px;
    border-radius: 12px;
  }

  .calendar-editor__day span {
    display: none;
  }

  .calendar-month-actions .btn {
    flex: 1 1 150px;
  }

  .public-popup {
    width: calc(100vw - 28px);
    min-height: 360px;
    max-height: calc(100dvh - 28px);
    padding: 22px;
    overflow-y: auto;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .floating-whatsapp svg {
    width: 30px;
    height: 30px;
  }

  .site-header-inner {
    grid-template-columns: 1fr auto;
    grid-auto-rows: auto;
    gap: 12px 10px;
    height: auto;
    min-height: 78px;
  }

  .site-header .brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 0;
  }

  .brand {
    grid-column: 1;
  }

  .site-actions {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .site-body .hero-cover__inner,
  .site-body .page-hero-cover__inner {
    width: min(var(--max-width), calc(100% - 32px));
    padding: 24px 0;
  }

  .site-body .hero-cover__copy h1,
  .site-body .page-hero-cover__copy h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .site-nav {
    display: grid;
    grid-column: 1 / -1;
    width: 100%;
    gap: 8px;
    justify-content: stretch;
    align-items: stretch;
    margin: 0;
    padding: 0 0 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(194, 198, 212, 0.72);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    transition:
      max-height 320ms ease,
      opacity 220ms ease,
      transform 320ms ease,
      padding 320ms ease;
    will-change: max-height, opacity, transform;
  }

  .site-nav.is-open {
    max-height: calc(100vh - 96px);
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    padding: 10px;
  }

  .theme-toolbar,
  .theme-selector {
    align-items: stretch;
  }

  .theme-selector label,
  .theme-selector select,
  .theme-selector input {
    min-width: 0;
    width: 100%;
  }

  .theme-card--gallery .theme-card__hero {
    grid-template-columns: 1fr;
  }

  .theme-card__hero-overlay {
    position: static;
  }

  .theme-card--gallery .theme-capture--inline {
    min-height: 82px;
  }

  .nav-item {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    text-align: left;
  }

  .nav-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown {
    position: static;
    min-width: 0;
    width: 100%;
    transform: translateY(-6px);
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    box-shadow: none;
    border-radius: 16px;
    display: grid;
    max-height: 0;
    margin-top: 0;
    padding: 0 0 0 10px;
    overflow: hidden;
    background: transparent;
    border: 0;
    transition:
      max-height 280ms ease,
      opacity 220ms ease,
      transform 280ms ease,
      margin-top 280ms ease,
      padding 280ms ease;
  }

  .nav-item.is-open .nav-dropdown {
    max-height: 280px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    margin-top: 8px;
    padding-top: 4px;
  }

  .nav-link,
  .nav-trigger {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.96);
    border: 1px solid rgba(194, 198, 212, 0.72);
  }

  .nav-link.is-active,
  .nav-trigger.is-active,
  .nav-item.is-open > .nav-trigger {
    border-bottom: 1px solid rgba(29, 78, 216, 0.18);
    background: rgba(29, 78, 216, 0.1);
  }

  .nav-item.is-open > .nav-trigger .material-symbols-outlined {
    transform: rotate(180deg);
  }

  .nav-dropdown-link {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.06);
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-stats,
  .metric-grid,
  .card-grid-four,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .site-body .bento-grid,
  .site-body .proposal-bento-grid,
  .site-body .gallery-grid,
  .site-body .download-grid,
  .site-body .issue-grid,
  .site-body .mission-grid,
  .site-body .schedule-layout,
  .site-body .form-layout {
    grid-template-columns: 1fr;
  }

  .site-body .proposal-innovation-media {
    grid-column: auto;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-social {
    margin-left: 0;
  }

  .site-body .timeline-grid {
    padding-left: 0;
  }

  .site-body .timeline-grid::before {
    left: 24px;
    transform: none;
  }

  .site-body .timeline-card,
  .site-body .timeline-card:nth-child(odd),
  .site-body .timeline-card:nth-child(even) {
    margin: 0 0 0 48px;
  }

  .site-body .timeline-card--with-media {
    grid-template-columns: 1fr;
  }

  .site-body .admission-photo-field {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-body .home-values-grid {
    grid-template-columns: 1fr;
  }

  .social-editor-card__fields {
    grid-template-columns: 1fr;
  }

  .callout-card,
  .table-toolbar,
  .toolbar-actions,
  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input {
    min-width: 0;
  }

  .site-main {
    width: min(100% - 24px, var(--max-width));
  }

  .site-footer .footer-grid,
  .site-footer .footer-bar {
    width: min(var(--max-width), calc(100% - 24px));
  }

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

/* Mobile navigation contrast for the editorial bento theme.  The generic
   mobile menu uses a light surface; bento keeps its dark archive header. */
@media (max-width: 860px) {
  .site-shell.theme-layout-bento .mobile-toggle {
    background: rgba(220, 233, 245, 0.08);
    color: var(--archive-white);
    border-color: rgba(220, 233, 245, 0.42);
    box-shadow: 0 8px 18px rgba(7, 26, 47, 0.18);
  }

  .site-shell.theme-layout-bento .mobile-toggle:hover,
  .site-shell.theme-layout-bento .mobile-toggle:focus-visible {
    background: rgba(220, 233, 245, 0.16);
    color: var(--archive-white);
  }

  .site-shell.theme-layout-bento .mobile-toggle.is-open {
    background: var(--archive-blue);
    border-color: rgba(220, 233, 245, 0.68);
  }

  .site-shell.theme-layout-bento .site-nav {
    background: var(--archive-navy);
    border-color: rgba(220, 233, 245, 0.24);
    box-shadow: 0 24px 52px rgba(7, 26, 47, 0.28);
  }

  .site-shell.theme-layout-bento .nav-link,
  .site-shell.theme-layout-bento .nav-trigger {
    color: var(--archive-white);
    background: rgba(220, 233, 245, 0.08);
    border-color: rgba(220, 233, 245, 0.24);
  }

  .site-shell.theme-layout-bento .nav-link:hover,
  .site-shell.theme-layout-bento .nav-link:focus-visible,
  .site-shell.theme-layout-bento .nav-trigger:hover,
  .site-shell.theme-layout-bento .nav-trigger:focus-visible {
    color: var(--archive-white);
    background: rgba(220, 233, 245, 0.16);
    border-color: rgba(220, 233, 245, 0.48);
  }

  .site-shell.theme-layout-bento .nav-link.is-active,
  .site-shell.theme-layout-bento .nav-trigger.is-active,
  .site-shell.theme-layout-bento .nav-item.is-open > .nav-trigger {
    color: var(--archive-white);
    background: rgba(47, 111, 180, 0.34);
    border-color: rgba(220, 233, 245, 0.54);
  }

  .site-shell.theme-layout-bento .nav-dropdown-link {
    color: var(--archive-ice);
    background: rgba(220, 233, 245, 0.06);
    border-color: rgba(220, 233, 245, 0.16);
  }

  .site-shell.theme-layout-bento .nav-dropdown-link:hover,
  .site-shell.theme-layout-bento .nav-dropdown-link:focus-visible,
  .site-shell.theme-layout-bento .nav-dropdown-link.is-active {
    color: var(--archive-white);
    background: var(--archive-blue);
    border-color: rgba(220, 233, 245, 0.34);
  }
}

/* ACSFT 2026 responsive and enterprise polish */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.site-body .hero-cover__badge,
.site-body .page-hero-cover__badge {
  background: var(--hero-badge-bg, rgba(255, 255, 255, 0.16));
}

.site-header .brand-mark {
  width: clamp(74px, 6vw, 92px);
  height: clamp(74px, 6vw, 92px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: var(--primary);
  overflow: hidden;
}

.site-header .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.18));
}

.site-body .hero-cover--carousel {
  position: relative;
  overflow: hidden;
}

.site-body .hero-cover__carousel,
.site-body .hero-cover__carousel-overlay {
  position: absolute;
  inset: 0;
}

.site-body .hero-cover__carousel {
  z-index: 0;
}

.site-body .hero-cover__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 900ms ease, transform 5200ms ease;
}

.site-body .hero-cover__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.site-body .hero-cover__carousel-overlay {
  z-index: 0;
  background: linear-gradient(90deg, rgba(0, 71, 141, 0.88) 0%, rgba(0, 71, 141, 0.56) 55%, rgba(0, 71, 141, 0.24) 100%);
}

.site-body .section-head--uses-config .section-head__config-title ~ h2,
.site-body .section-head--uses-config .section-head__config-description ~ p {
  display: none;
}

.site-body .contact-map-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.site-body .contact-map-card iframe {
  display: block;
  width: 100%;
  min-height: 320px;
}

.admin-shell {
  --admin-ink: #101828;
  --admin-muted: #667085;
  --admin-line: #d9dde7;
  --admin-surface: #ffffff;
  --admin-soft: #f5f7fb;
  --admin-blue: #0f5da8;
  background: #f4f6fa;
  color: var(--admin-ink);
  font-size: 14px;
}

.admin-shell .admin-sidebar,
.admin-shell .panel-card,
.admin-shell .stat-card,
.admin-shell .quick-content-card,
.admin-shell .quick-content-empty,
.admin-shell .mini-option,
.admin-shell .editor-section,
.admin-shell .social-editor-card,
.admin-shell .form-builder-section,
.admin-shell .form-builder-field,
.admin-shell .calendar-editor,
.admin-shell .callout-card {
  border-radius: 6px;
  border-color: var(--admin-line);
  box-shadow: none;
}

.admin-shell .admin-sidebar {
  background: #ffffff;
  border-right: 1px solid var(--admin-line);
}

.admin-shell .admin-content {
  background: linear-gradient(180deg, #f7f8fb 0%, #eef2f7 100%);
}

.admin-shell .admin-nav a,
.admin-shell .admin-nav-future a,
.admin-shell .btn,
.admin-shell .icon-button,
.admin-shell button,
.admin-shell input,
.admin-shell select,
.admin-shell textarea,
.admin-shell .upload-field,
.admin-shell .color-control,
.admin-shell .school-selector-panel select,
.admin-shell .editor-section-selector select {
  border-radius: 4px;
}

.admin-shell .btn,
.admin-shell button {
  min-height: 38px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.admin-shell .btn-primary {
  background: #0f5da8;
  border-color: #0f5da8;
}

.admin-shell .btn-secondary {
  background: #ffffff;
  border-color: #cfd6e3;
  color: #101828;
}

.admin-shell input,
.admin-shell select,
.admin-shell textarea {
  min-height: 40px;
  border: 1px solid #cfd6e3;
  background: #ffffff;
  color: #101828;
  font-size: 0.86rem;
  font-weight: 650;
}

.admin-shell textarea {
  line-height: 1.45;
}

.admin-shell input::placeholder,
.admin-shell textarea::placeholder {
  color: #98a2b3;
  font-weight: 500;
  opacity: 0.72;
}

.admin-shell label,
.admin-shell .upload-field > span,
.admin-shell .color-control > span,
.admin-shell .school-selector-panel label,
.admin-shell .editor-section-selector {
  color: #001b3d;
  font-size: 0.82rem;
  font-weight: 850;
}

.admin-shell .eyebrow {
  color: #0f5da8;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.admin-shell h2,
.admin-shell h3,
.admin-shell h4 {
  color: #101828;
}

.admin-shell .editor-callout {
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 380px) minmax(240px, 320px) auto;
  align-items: end;
  background: #ffffff;
}

.admin-shell .editor-section-selector {
  display: grid;
  gap: 8px;
}

.admin-shell .editor-layout.theme-editor-layout {
  display: block;
}

.admin-shell .editor-layout.theme-editor-layout > .editor-form {
  width: 100%;
}

.admin-shell .theme-editor-form {
  gap: 14px;
}

.admin-shell .editor-page-menu {
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  background: #ffffff;
}

.admin-shell .editor-page-menu button {
  background: #f5f7fb;
  border: 1px solid #e1e6ef;
  color: #344054;
}

.admin-shell .editor-page-menu button.is-active {
  background: #0f5da8;
  border-color: #0f5da8;
  color: #ffffff;
}

.admin-shell .theme-editor-form .editor-section .form-grid,
.admin-shell .editor-section .form-grid {
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 16px;
}

.admin-shell .page-visual-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  padding: 16px;
  background: #f7f9fc;
  border: 1px solid var(--admin-line);
}

.admin-shell .page-visual-fields h4,
.admin-shell .page-visual-fields .full {
  grid-column: 1 / -1;
}

.admin-shell .upload-field {
  align-content: start;
  gap: 8px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #d9dde7;
}

.admin-shell .upload-field__input {
  width: auto;
  max-width: 190px;
  min-height: 30px;
  padding: 4px 6px;
  font-size: 0.72rem;
}

.admin-shell .upload-field__preview,
.admin-shell .upload-field__placeholder {
  width: min(100%, 240px);
  min-height: 88px;
  max-height: 128px;
  border-radius: 4px;
}

.admin-shell .upload-field__preview img {
  border-radius: 4px;
  object-fit: contain;
}

.admin-shell .upload-field--gallery .upload-field__gallery-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-shell .upload-field--gallery .upload-field__gallery-preview img {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  object-fit: cover;
}

.admin-shell .upload-field--icon {
  max-width: 180px;
}

.admin-shell .upload-field--icon .upload-field__preview,
.admin-shell .upload-field--icon .upload-field__placeholder,
.admin-shell .upload-field--icon .upload-field__preview img {
  width: 64px;
  height: 64px;
  min-height: 64px;
  max-height: 64px;
}

.admin-shell .upload-field--logo .upload-field__preview,
.admin-shell .upload-field--logo .upload-field__placeholder,
.admin-shell .upload-field--logo .upload-field__preview img {
  width: 76px;
  height: 76px;
  min-height: 76px;
  max-height: 76px;
}

.admin-shell .color-control {
  padding: 12px;
  border: 1px solid #d9dde7;
  background: #ffffff;
}

.admin-shell .color-control__row {
  align-items: center;
  gap: 10px;
}

.admin-shell .color-control input[type="color"] {
  width: 58px;
  height: 38px;
  padding: 3px;
}

.admin-shell .carousel-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--admin-line);
  background: #f7f9fc;
}

.admin-shell .carousel-upload-grid h4 {
  grid-column: 1 / -1;
}

.admin-shell .editor-config-summary {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-shell .editor-hidden-identity {
  display: none !important;
}

@media (max-width: 900px) {
  .admin-shell .editor-callout {
    grid-template-columns: 1fr;
  }

  .admin-shell .theme-editor-form .editor-section .form-grid,
  .admin-shell .editor-section .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    width: calc(100% - 24px);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 86px;
  }

  .site-header .brand-mark {
    width: clamp(62px, 18vw, 72px);
    height: clamp(62px, 18vw, 72px);
    border-radius: 50%;
  }

  .brand-copy strong {
    font-size: clamp(0.98rem, 4.8vw, 1.18rem);
  }

  .brand-copy small {
    font-size: 0.78rem;
  }

  .site-body .hero-cover,
  .site-body .page-hero-cover {
    min-height: min(78dvh, 690px);
    border-radius: 0;
  }

  .site-body .hero-cover__inner,
  .site-body .page-hero-cover__inner {
    width: calc(100% - 24px);
    padding: 32px 0;
  }

  .site-body .hero-cover__copy h1,
  .site-body .page-hero-cover__copy h1 {
    max-width: 12ch;
    font-size: clamp(2.2rem, 12vw, 3.2rem);
    line-height: 1.04;
  }

  .site-body .hero-cover__copy p,
  .site-body .page-hero-cover__copy p {
    font-size: 0.98rem;
  }

  .site-body .hero-cover__actions {
    width: 100%;
  }

  .site-body .hero-cover__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .site-body .section-wrap {
    width: calc(100% - 24px);
    margin-inline: auto;
  }

  .site-body .home-pillars-grid,
  .site-body .home-values-grid,
  .site-body .browser-grid,
  .site-body .card-grid,
  .site-body .card-grid-two,
  .site-body .card-grid-three,
  .site-body .card-grid-four,
  .site-body .bento-grid,
  .site-body .proposal-bento-grid,
  .site-body .values-grid,
  .site-body .mission-grid,
  .site-body .download-grid,
  .site-body .gallery-grid,
  .site-body .issue-grid,
  .site-body .contact-grid,
  .site-body .form-layout,
  .site-body .schedule-layout,
  .site-body .section-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .site-body .proposal-innovation-media {
    grid-column: auto;
  }

  .site-body .home-pillar,
  .site-body .home-pillar--wide,
  .site-body .home-pillar--media {
    grid-column: auto;
    min-width: 0;
    min-height: auto;
    padding: 20px;
  }

  .site-body .home-pillar--media {
    flex-direction: column;
  }

  .site-body .home-pillar-carousel {
    width: 100%;
    padding: 8px;
    border-radius: 18px;
  }

  .site-body .home-pillar-carousel__viewport {
    height: clamp(310px, 60vw, 480px);
  }

  .site-body .home-pillar-carousel__slide {
    width: min(72%, 560px);
    height: 84%;
    border-radius: 4px;
  }

  .site-body .home-pillar-carousel__toolbar {
    gap: 10px;
    min-height: 58px;
  }

  .site-body .home-pillar-carousel__button {
    width: 40px;
    height: 40px;
  }

  .site-body .home-pillar-carousel__counter {
    min-width: 62px;
    gap: 5px;
    font-size: 0.82rem;
  }

  .site-body .home-value-card,
  .site-body .bento-card,
  .site-body .info-card,
  .site-body .mission-card,
  .site-body .step-card,
  .site-body .download-card,
  .site-body .issue-card,
  .site-body .gallery-card,
  .site-body .timeline-card,
  .site-body .surface-card,
  .site-body .contact-card,
  .site-body .form-card,
  .site-body .preview-card,
  .site-body .summary-card {
    width: 100%;
    min-width: 0;
    padding: 18px;
  }

  .site-body .form-grid,
  .site-body .admission-access-grid,
  .site-body .admission-sheet-section .form-grid,
  .site-body .admission-documents-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-body .admission-access-card--login {
    position: static;
  }

  .site-body .download-card__media,
  .site-body .issue-card__media,
  .site-body .gallery-card__thumb {
    min-height: 180px;
    aspect-ratio: 16 / 10;
  }

  .site-body .timeline-grid::before {
    display: none;
  }

  .site-body .timeline-card,
  .site-body .timeline-card:nth-child(odd),
  .site-body .timeline-card:nth-child(even) {
    margin: 0;
  }

  .site-body .calendar-card {
    overflow-x: auto;
  }

  .site-body .calendar-grid {
    min-width: 0;
    gap: 5px;
  }

  .site-body .calendar-day {
    min-height: 48px;
    padding: 6px 3px;
    font-size: 0.82rem;
  }

  .site-body .calendar-day small {
    display: none;
  }

  .site-body .event-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .site-body .home-cta-panel,
  .site-body .callout-panel {
    border-radius: 16px;
  }

  .site-body .home-cta-form,
  .site-body .home-cta-form .btn,
  .site-body .home-cta-input {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .site-header-inner {
    width: calc(100% - 18px);
  }

  .site-body .hero-cover__inner,
  .site-body .page-hero-cover__inner,
  .site-body .section-wrap {
    width: calc(100% - 18px);
  }

  .site-body .hero-cover__copy h1,
  .site-body .page-hero-cover__copy h1 {
    font-size: clamp(2rem, 13vw, 2.75rem);
  }

  .site-body .hero-cover__badge,
  .site-body .page-hero-cover__badge {
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
  }

  .site-body .home-pillar,
  .site-body .home-value-card,
  .site-body .bento-card,
  .site-body .info-card,
  .site-body .mission-card,
  .site-body .step-card,
  .site-body .download-card,
  .site-body .issue-card,
  .site-body .gallery-card,
  .site-body .timeline-card,
  .site-body .surface-card,
  .site-body .form-card,
  .site-body .summary-card {
    padding: 16px;
  }

  .site-body .calendar-grid {
    gap: 4px;
  }

  .site-body .calendar-day {
    min-height: 42px;
    border-radius: 8px;
    font-size: 0.78rem;
  }
}

/* Control Center dark enterprise refinements */
.admin-shell,
.admin-shell[data-panel-theme="light"],
.admin-shell[data-panel-theme="dark"] {
  --admin-ink: #f8fafc;
  --admin-muted: rgba(226, 232, 240, 0.72);
  --admin-line: rgba(148, 163, 184, 0.2);
  --admin-surface: #0b1220;
  --admin-soft: #111827;
  --admin-blue: #2f80ed;
  background: #05070d;
  color: var(--admin-ink);
}

.admin-shell .admin-content,
.admin-shell[data-panel-theme="light"] .admin-content,
.admin-shell[data-panel-theme="dark"] .admin-content {
  background:
    radial-gradient(circle at top right, rgba(47, 128, 237, 0.15), transparent 34%),
    linear-gradient(180deg, #05070d 0%, #080b12 48%, #05070d 100%);
  color: var(--admin-ink);
}

.admin-shell .admin-sidebar,
.admin-shell[data-panel-theme="light"] .admin-sidebar,
.admin-shell[data-panel-theme="dark"] .admin-sidebar,
.admin-shell .panel-card,
.admin-shell .stat-card,
.admin-shell .quick-content-card,
.admin-shell .quick-content-empty,
.admin-shell .mini-option,
.admin-shell .editor-section,
.admin-shell .social-editor-card,
.admin-shell .form-builder-section,
.admin-shell .form-builder-field,
.admin-shell .calendar-editor,
.admin-shell .callout-card {
  background: rgba(11, 18, 32, 0.96);
  border-color: rgba(148, 163, 184, 0.18);
  color: var(--admin-ink);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

.admin-shell .admin-sidebar {
  border-right: 1px solid rgba(148, 163, 184, 0.22);
}

.admin-shell .admin-brand strong,
.admin-shell h1,
.admin-shell h2,
.admin-shell h3,
.admin-shell h4,
.admin-shell .editor-panel-head h3,
.admin-shell .editor-section summary,
.admin-shell .quick-content-card h4,
.admin-shell .mini-option h3 {
  color: #f8fafc;
}

.admin-shell p,
.admin-shell small,
.admin-shell .muted,
.admin-shell .content-meta,
.admin-shell .admin-brand small,
.admin-shell .admin-user-card small {
  color: var(--admin-muted);
}

.admin-shell label,
.admin-shell .upload-field > span,
.admin-shell .color-control > span,
.admin-shell .school-selector-panel label,
.admin-shell .editor-section-selector {
  color: #e5eefc;
  font-weight: 650;
}

.admin-shell input,
.admin-shell select,
.admin-shell textarea,
.admin-shell .school-selector-panel select,
.admin-shell .editor-section-selector select {
  background: rgba(2, 6, 23, 0.86);
  border-color: rgba(148, 163, 184, 0.24);
  color: rgba(226, 232, 240, 0.78);
  font-weight: 400;
}

.admin-shell input:focus,
.admin-shell select:focus,
.admin-shell textarea:focus {
  border-color: rgba(96, 165, 250, 0.78);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
  outline: none;
}

.admin-shell input::placeholder,
.admin-shell textarea::placeholder {
  color: rgba(203, 213, 225, 0.34);
  font-weight: 300;
  opacity: 1;
}

.admin-shell .btn-secondary,
.admin-shell .editor-page-menu button,
.admin-shell .icon-button {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.24);
  color: #e5eefc;
}

.admin-shell .btn-primary,
.admin-shell .editor-page-menu button.is-active {
  background: #1d64d8;
  border-color: #1d64d8;
  color: #ffffff;
}

.admin-shell .admin-nav a,
.admin-shell[data-panel-theme="light"] .admin-nav a,
.admin-shell[data-panel-theme="dark"] .admin-nav a,
.admin-shell .admin-nav-future a,
.admin-shell[data-panel-theme="light"] .admin-nav-future a,
.admin-shell[data-panel-theme="dark"] .admin-nav-future a {
  color: rgba(226, 232, 240, 0.76);
}

.admin-shell .admin-nav a.is-active,
.admin-shell .admin-nav a:hover,
.admin-shell[data-panel-theme="light"] .admin-nav a.is-active,
.admin-shell[data-panel-theme="light"] .admin-nav a:hover,
.admin-shell[data-panel-theme="dark"] .admin-nav a.is-active,
.admin-shell[data-panel-theme="dark"] .admin-nav a:hover {
  background: rgba(37, 99, 235, 0.22);
  color: #ffffff;
}

.admin-shell .upload-field {
  background: rgba(2, 6, 23, 0.72);
  border-color: rgba(148, 163, 184, 0.18);
}

.admin-shell .upload-field__input {
  max-width: 100%;
  min-height: auto;
  padding: 0;
  color: rgba(203, 213, 225, 0.58);
  font-size: 0.74rem;
  font-weight: 400;
  line-height: 1.35;
}

.admin-shell .upload-field__input::file-selector-button {
  margin: 0 8px 0 0;
  padding: 7px 10px;
  border: 1px solid rgba(96, 165, 250, 0.55);
  border-radius: 4px;
  background: linear-gradient(180deg, #2563eb, #164dbb);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.admin-shell .upload-field__input:hover::file-selector-button {
  background: linear-gradient(180deg, #3b82f6, #1d64d8);
}

.admin-shell .upload-field__preview,
.admin-shell .upload-field__placeholder {
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(148, 163, 184, 0.16);
  color: rgba(226, 232, 240, 0.72);
}

.admin-shell .upload-field__placeholder strong {
  color: rgba(226, 232, 240, 0.82);
  font-weight: 500;
}

.admin-shell .upload-field__placeholder small {
  color: rgba(203, 213, 225, 0.44);
}

.admin-shell .upload-field--icon {
  max-width: 168px;
  padding: 10px;
}

.admin-shell .upload-field--icon .upload-field__input {
  width: 100%;
}

.admin-shell .upload-field--icon .upload-field__input::file-selector-button {
  width: 100%;
  margin: 0 0 6px;
}

.admin-shell .upload-field--icon .upload-field__preview,
.admin-shell .upload-field--icon .upload-field__placeholder,
.admin-shell .upload-field--icon .upload-field__preview img {
  width: 58px;
  height: 58px;
  min-height: 58px;
  max-height: 58px;
}

.admin-shell .color-control {
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-shell .color-control__row {
  padding: 0;
}

.admin-shell .color-control input[type="color"] {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.admin-shell .color-control__transparent span {
  color: rgba(226, 232, 240, 0.62);
  font-weight: 400;
}

.admin-shell .page-visual-fields,
.admin-shell .carousel-upload-grid,
.admin-shell .quick-content-subsection {
  background: rgba(2, 6, 23, 0.5);
  border-color: rgba(148, 163, 184, 0.16);
}

.admin-shell .proposal-editor-card__head {
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

.admin-shell .home-pillar-editor-card__head {
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

.admin-shell .home-pillar-carousel-editor {
  border-color: rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.72));
}

.admin-shell .home-pillar-carousel-editor h3 {
  color: #e5eefc;
}

.admin-shell .home-pillar-carousel-editor p {
  color: #94a3b8;
}

.admin-shell .proposal-field-style-controls {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.16);
}

.admin-shell .editor-page-menu,
.admin-shell[data-panel-theme="light"] .editor-page-menu,
.admin-shell[data-panel-theme="dark"] .editor-page-menu,
.admin-shell .editor-panel-head,
.admin-shell[data-panel-theme="light"] .editor-panel-head,
.admin-shell[data-panel-theme="dark"] .editor-panel-head,
.admin-shell .editor-page-panel,
.admin-shell[data-panel-theme="light"] .editor-page-panel,
.admin-shell[data-panel-theme="dark"] .editor-page-panel {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96)) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  color: #f8fafc !important;
}

.admin-shell .editor-page-menu {
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
}

.admin-shell .editor-panel-head p,
.admin-shell .editor-panel-head .eyebrow {
  color: rgba(226, 232, 240, 0.68) !important;
}

.admin-shell input,
.admin-shell select,
.admin-shell textarea,
.admin-shell option,
.admin-shell .school-selector-panel select,
.admin-shell .editor-section-selector select {
  color: rgba(226, 232, 240, 0.58) !important;
  font-weight: 300 !important;
}

.admin-shell input::placeholder,
.admin-shell textarea::placeholder {
  color: rgba(203, 213, 225, 0.28) !important;
  font-weight: 300 !important;
}

.admin-shell,
.admin-shell *,
.admin-shell *::before,
.admin-shell *::after {
  border-radius: 0 !important;
}

.admin-shell .brand-mark,
.admin-shell .admin-brand .brand-mark,
.admin-shell .auth-brand .brand-mark {
  border-radius: 0 !important;
}

.site-shell .btn,
.site-shell button,
.admin-shell .btn,
.admin-shell button,
.auth-shell .btn,
.auth-shell button {
  border-radius: 6px !important;
}

.admin-shell .color-control__transparent {
  gap: 6px !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
  min-height: auto !important;
}

.admin-shell .color-control__transparent input[type="checkbox"],
.admin-shell input[data-color-transparent][type="checkbox"] {
  width: 13px !important;
  min-width: 13px !important;
  max-width: 13px !important;
  height: 13px !important;
  min-height: 13px !important;
  max-height: 13px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(203, 213, 225, 0.55) !important;
  background: rgba(2, 6, 23, 0.9) !important;
  accent-color: #2563eb;
  flex: 0 0 13px !important;
}

.admin-shell .inline-toggle input[type="checkbox"],
.admin-shell input[type="checkbox"] {
  width: 13px !important;
  min-width: 13px !important;
  max-width: 13px !important;
  height: 13px !important;
  min-height: 13px !important;
  max-height: 13px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(203, 213, 225, 0.55) !important;
  background: rgba(2, 6, 23, 0.9) !important;
  accent-color: #2563eb;
  flex: 0 0 13px !important;
}

/* Control Center operations dashboard */
.admin-shell {
  --ops-bg: #0b0713;
  --ops-surface: rgba(18, 12, 29, 0.94);
  --ops-surface-strong: rgba(25, 16, 42, 0.98);
  --ops-line: rgba(196, 181, 253, 0.16);
  --ops-text: #f8f5ff;
  --ops-muted: rgba(233, 213, 255, 0.68);
  --ops-purple: #8b5cf6;
  --ops-purple-strong: #6d28d9;
  --ops-pink: #e879f9;
  --ops-danger: #fb7185;
  --ops-warning: #f59e0b;
  --ops-ok: #34d399;
  font-size: 0.92rem;
}

.admin-shell[data-panel-theme="dark"] {
  background: #090511;
  color: var(--ops-text);
}

.admin-shell[data-panel-theme="dark"] .admin-content {
  background:
    radial-gradient(circle at 82% 0%, rgba(139, 92, 246, 0.22), transparent 32%),
    radial-gradient(circle at 12% 18%, rgba(232, 121, 249, 0.11), transparent 26%),
    linear-gradient(180deg, #090511 0%, #0d0718 48%, #08050d 100%);
}

.admin-shell[data-panel-theme="dark"] .admin-sidebar,
.admin-shell[data-panel-theme="dark"] .panel-card,
.admin-shell[data-panel-theme="dark"] .stat-card,
.admin-shell[data-panel-theme="dark"] .quick-content-card,
.admin-shell[data-panel-theme="dark"] .quick-content-empty,
.admin-shell[data-panel-theme="dark"] .mini-option,
.admin-shell[data-panel-theme="dark"] .editor-section,
.admin-shell[data-panel-theme="dark"] .social-editor-card,
.admin-shell[data-panel-theme="dark"] .form-builder-section,
.admin-shell[data-panel-theme="dark"] .form-builder-field,
.admin-shell[data-panel-theme="dark"] .calendar-editor,
.admin-shell[data-panel-theme="dark"] .callout-card {
  background: rgba(18, 12, 29, 0.94);
  border-color: rgba(196, 181, 253, 0.16);
}

.admin-shell[data-panel-theme="dark"] .uniform-hotspot-editor-list {
  border-color: rgba(196, 181, 253, 0.16);
  background: rgba(196, 181, 253, 0.16);
}

.admin-shell[data-panel-theme="dark"] .uniform-hotspot-editor {
  background: rgba(18, 12, 29, 0.94);
}

.admin-shell[data-panel-theme="dark"] .uniform-hotspot-map {
  background:
    radial-gradient(circle at 12% 0%, rgba(139, 92, 246, 0.12), transparent 28%),
    rgba(18, 12, 29, 0.94);
  border-color: rgba(196, 181, 253, 0.16);
}

.admin-shell[data-panel-theme="dark"] .uniform-hotspot-map__stage {
  border-color: rgba(196, 181, 253, 0.2);
}

.admin-shell[data-panel-theme="dark"] .uniform-hotspot-map__head h4,
.admin-shell[data-panel-theme="dark"] .uniform-hotspot-map__placeholder strong {
  color: #f8f5ff;
}

.admin-shell[data-panel-theme="light"] {
  --ops-bg: #f7f2ff;
  --ops-surface: rgba(255, 255, 255, 0.94);
  --ops-surface-strong: #ffffff;
  --ops-line: rgba(109, 40, 217, 0.16);
  --ops-text: #1f1233;
  --ops-muted: rgba(67, 56, 92, 0.72);
  --ops-purple: #7c3aed;
  --ops-purple-strong: #5b21b6;
  --ops-pink: #c026d3;
  background: #f7f2ff !important;
  color: var(--ops-text) !important;
}

.admin-shell[data-panel-theme="light"] .admin-content {
  background:
    radial-gradient(circle at 82% 0%, rgba(124, 58, 237, 0.14), transparent 30%),
    linear-gradient(180deg, #faf7ff 0%, #f7f2ff 50%, #f3ecff 100%) !important;
  color: var(--ops-text) !important;
}

.admin-shell[data-panel-theme="light"] .admin-sidebar,
.admin-shell[data-panel-theme="light"] .panel-card,
.admin-shell[data-panel-theme="light"] .stat-card,
.admin-shell[data-panel-theme="light"] .quick-content-card,
.admin-shell[data-panel-theme="light"] .quick-content-empty,
.admin-shell[data-panel-theme="light"] .mini-option,
.admin-shell[data-panel-theme="light"] .editor-section,
.admin-shell[data-panel-theme="light"] .social-editor-card,
.admin-shell[data-panel-theme="light"] .form-builder-section,
.admin-shell[data-panel-theme="light"] .form-builder-field,
.admin-shell[data-panel-theme="light"] .calendar-editor,
.admin-shell[data-panel-theme="light"] .callout-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(109, 40, 217, 0.14) !important;
  color: var(--ops-text) !important;
  box-shadow: 0 18px 50px rgba(76, 29, 149, 0.08) !important;
}

.admin-shell[data-panel-theme="light"] .uniform-hotspot-editor-list {
  border-color: rgba(109, 40, 217, 0.14);
  background: rgba(109, 40, 217, 0.14);
}

.admin-shell[data-panel-theme="light"] .uniform-hotspot-editor {
  background: rgba(255, 255, 255, 0.95);
}

.admin-shell[data-panel-theme="light"] .uniform-hotspot-map {
  background:
    radial-gradient(circle at 12% 0%, rgba(124, 58, 237, 0.1), transparent 28%),
    rgba(255, 255, 255, 0.95);
  border-color: rgba(109, 40, 217, 0.14);
}

.admin-shell[data-panel-theme="light"] .uniform-hotspot-map__head h4,
.admin-shell[data-panel-theme="light"] .uniform-hotspot-map__placeholder strong {
  color: var(--ops-text);
}

.admin-shell[data-panel-theme="light"] .admin-brand strong,
.admin-shell[data-panel-theme="light"] h1,
.admin-shell[data-panel-theme="light"] h2,
.admin-shell[data-panel-theme="light"] h3,
.admin-shell[data-panel-theme="light"] h4,
.admin-shell[data-panel-theme="light"] .editor-panel-head h3,
.admin-shell[data-panel-theme="light"] .editor-section summary,
.admin-shell[data-panel-theme="light"] .quick-content-card h4,
.admin-shell[data-panel-theme="light"] .mini-option h3 {
  color: var(--ops-text) !important;
}

.admin-shell[data-panel-theme="light"] p,
.admin-shell[data-panel-theme="light"] small,
.admin-shell[data-panel-theme="light"] .muted,
.admin-shell[data-panel-theme="light"] .content-meta,
.admin-shell[data-panel-theme="light"] .admin-brand small,
.admin-shell[data-panel-theme="light"] .admin-user-card small {
  color: var(--ops-muted) !important;
}

.admin-shell[data-panel-theme="light"] input,
.admin-shell[data-panel-theme="light"] select,
.admin-shell[data-panel-theme="light"] textarea,
.admin-shell[data-panel-theme="light"] option,
.admin-shell[data-panel-theme="light"] .school-selector-panel select,
.admin-shell[data-panel-theme="light"] .editor-section-selector select {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(109, 40, 217, 0.18) !important;
  color: #27163d !important;
}

.admin-shell[data-panel-theme="dark"] .admissions-form-heading-editor,
.admin-shell[data-panel-theme="dark"] .admissions-access-editor {
  background:
    radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.18), transparent 32%),
    rgba(12, 8, 22, 0.98) !important;
  border-color: rgba(196, 181, 253, 0.2) !important;
  color: #f8f5ff !important;
}

.admin-shell[data-panel-theme="dark"] .admissions-button-editor-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(16, 10, 27, 0.98), rgba(28, 18, 46, 0.98)) !important;
  border-color: rgba(196, 181, 253, 0.22) !important;
  color: #f8f5ff !important;
  box-shadow: 0 24px 60px rgba(4, 1, 12, 0.42) !important;
}

.admin-shell[data-panel-theme="dark"] .admissions-button-editor-card h4,
.admin-shell[data-panel-theme="dark"] .admissions-button-editor-card label {
  color: #f8f5ff !important;
}

.admin-shell[data-panel-theme="dark"] .admissions-button-editor-card__head span {
  color: rgba(233, 213, 255, 0.72) !important;
}

.admin-shell[data-panel-theme="dark"] .admissions-button-editor-card__preview {
  border-color: rgba(233, 213, 255, 0.24) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.admin-shell[data-panel-theme="dark"] .admissions-button-editor-card input[type="text"],
.admin-shell[data-panel-theme="dark"] .admissions-button-editor-card input[type="color"] {
  background: rgba(8, 5, 14, 0.92) !important;
  border-color: rgba(233, 213, 255, 0.22) !important;
  color: #f8f5ff !important;
}

.admin-shell[data-panel-theme="light"] .admissions-form-heading-editor,
.admin-shell[data-panel-theme="light"] .admissions-access-editor {
  background: #ffffff !important;
  border-color: rgba(109, 40, 217, 0.16) !important;
  color: #1f1233 !important;
}

.admin-shell[data-panel-theme="light"] .admissions-button-editor-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.12), transparent 34%),
    #ffffff !important;
  border-color: rgba(109, 40, 217, 0.16) !important;
  color: #1f1233 !important;
  box-shadow: 0 20px 44px rgba(76, 29, 149, 0.1) !important;
}

.admin-shell[data-panel-theme="light"] .admissions-button-editor-card h4,
.admin-shell[data-panel-theme="light"] .admissions-button-editor-card label {
  color: #1f1233 !important;
}

.admin-shell[data-panel-theme="light"] .admissions-button-editor-card__head span {
  color: rgba(67, 56, 92, 0.72) !important;
}

.admin-shell[data-panel-theme="light"] .admissions-button-editor-card__preview {
  border-color: rgba(109, 40, 217, 0.18) !important;
}

.admin-shell[data-panel-theme="light"] .admissions-button-editor-card input[type="text"],
.admin-shell[data-panel-theme="light"] .admissions-button-editor-card input[type="color"] {
  background: #ffffff !important;
  border-color: rgba(109, 40, 217, 0.18) !important;
  color: #27163d !important;
}

.admin-shell .admin-topbar h1 {
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.admin-shell .admin-topbar .muted,
.admin-shell .admin-nav a,
.admin-shell label,
.admin-shell input,
.admin-shell select,
.admin-shell textarea {
  font-size: 0.88rem;
}

.admin-shell .btn-primary,
.admin-shell .editor-page-menu button.is-active {
  background: linear-gradient(135deg, var(--ops-purple), var(--ops-purple-strong)) !important;
  border-color: rgba(196, 181, 253, 0.18) !important;
}

.admin-shell .admin-nav a.is-active,
.admin-shell .admin-nav a:hover,
.admin-shell[data-panel-theme="light"] .admin-nav a.is-active,
.admin-shell[data-panel-theme="light"] .admin-nav a:hover,
.admin-shell[data-panel-theme="dark"] .admin-nav a.is-active,
.admin-shell[data-panel-theme="dark"] .admin-nav a:hover {
  background: rgba(139, 92, 246, 0.24) !important;
  color: #ffffff !important;
}

.ops-dashboard {
  display: grid;
  gap: 16px;
}

.ops-dashboard__hero,
.ops-panel,
.ops-metric-card {
  border: 1px solid var(--ops-line);
  border-radius: 14px !important;
  background: var(--ops-surface);
  color: var(--ops-text);
  box-shadow: 0 24px 70px rgba(10, 4, 22, 0.2);
}

.ops-dashboard__hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  background:
    radial-gradient(circle at 15% 0%, rgba(232, 121, 249, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(24, 16, 42, 0.98), rgba(88, 28, 135, 0.9));
}

.admin-shell[data-panel-theme="light"] .ops-dashboard__hero {
  background:
    radial-gradient(circle at 15% 0%, rgba(232, 121, 249, 0.26), transparent 28%),
    linear-gradient(135deg, #ffffff, #efe4ff);
}

.ops-dashboard__hero h2,
.ops-dashboard__hero p {
  margin: 0;
}

.ops-dashboard__hero h2 {
  margin-top: 6px;
  max-width: 760px;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.ops-dashboard__hero p {
  max-width: 680px;
  color: var(--ops-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.ops-kicker,
.ops-label {
  display: block;
  color: var(--ops-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ops-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.ops-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ops-metric-card {
  display: grid;
  gap: 9px;
  min-height: 142px;
  padding: 16px;
  overflow: hidden;
}

.ops-metric-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ops-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ops-metric-card__top .material-symbols-outlined {
  color: var(--ops-pink);
  font-size: 1.2rem;
}

.ops-metric-card > strong {
  color: var(--ops-text);
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.8vw, 2.05rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.ops-metric-card > small {
  min-height: 2.4em;
  color: var(--ops-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.ops-sparkline {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 28px;
}

.ops-sparkline span {
  flex: 1;
  min-width: 4px;
  border-radius: 999px !important;
  background: linear-gradient(180deg, var(--ops-pink), var(--ops-purple));
  opacity: 0.78;
}

.ops-grid {
  display: grid;
  gap: 12px;
}

.ops-grid--main {
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
}

.ops-grid--secondary,
.ops-grid--bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-panel {
  min-width: 0;
  max-width: 100%;
  padding: 16px;
  overflow: hidden;
}

.ops-panel--wide {
  min-height: 360px;
}

.ops-panel__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ops-panel__head h3 {
  margin: 4px 0 0;
  color: var(--ops-text);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.ops-panel__head a {
  color: var(--ops-pink);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.ops-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid var(--ops-line);
  border-radius: 999px !important;
  color: var(--ops-muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ops-pill.is-ok {
  color: var(--ops-ok);
  background: rgba(52, 211, 153, 0.1);
}

.ops-pill.is-warning {
  color: var(--ops-warning);
  background: rgba(245, 158, 11, 0.1);
}

.ops-pill.is-danger {
  color: var(--ops-danger);
  background: rgba(251, 113, 133, 0.1);
}

.ops-school-list,
.ops-alert-list,
.ops-activity-list,
.ops-distribution,
.ops-table-status {
  display: grid;
  gap: 10px;
}

.ops-school-list {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-color: rgba(232, 121, 249, 0.54) rgba(196, 181, 253, 0.1);
  scrollbar-width: thin;
}

.ops-school-list::-webkit-scrollbar {
  height: 8px;
}

.ops-school-list::-webkit-scrollbar-track {
  background: rgba(196, 181, 253, 0.1);
}

.ops-school-list::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--ops-purple), var(--ops-pink));
}

.ops-school-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 1fr) minmax(130px, 0.8fr) minmax(120px, 0.7fr) minmax(92px, 0.55fr);
  align-items: center;
  gap: 14px;
  min-width: 760px;
  max-width: 100%;
  padding: 12px;
  border: 1px solid var(--ops-line);
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.035);
}

.admin-shell[data-panel-theme="light"] .ops-school-row {
  background: rgba(109, 40, 217, 0.035);
}

.ops-school-row strong {
  display: block;
  color: var(--ops-text);
  font-size: 0.88rem;
  line-height: 1.25;
}

.ops-school-row small {
  display: block;
  margin-top: 3px;
  color: var(--ops-muted);
  font-size: 0.74rem;
}

.ops-school-row__main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ops-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px !important;
  background: var(--ops-warning);
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.1);
  flex: 0 0 auto;
}

.ops-status-dot.is-ok {
  background: var(--ops-ok);
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.12);
}

.ops-status-dot.is-danger {
  background: var(--ops-danger);
  box-shadow: 0 0 0 5px rgba(251, 113, 133, 0.12);
}

.ops-bar {
  height: 6px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px !important;
  background: rgba(196, 181, 253, 0.12);
}

.ops-bar span {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit !important;
  background: linear-gradient(90deg, var(--ops-purple), var(--ops-pink));
}

.ops-db-state {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 160px;
  margin-bottom: 12px;
  border: 1px solid var(--ops-line);
  border-radius: 12px !important;
  background:
    radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 58%),
    rgba(255, 255, 255, 0.03);
  text-align: center;
}

.ops-db-state .material-symbols-outlined {
  color: var(--ops-ok);
  font-size: 2.2rem;
}

.ops-db-state strong {
  color: var(--ops-text);
  font-size: 1.3rem;
}

.ops-db-state small {
  max-width: 260px;
  color: var(--ops-muted);
  font-size: 0.72rem;
}

.ops-db-storage {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--ops-line);
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.035);
}

.admin-shell[data-panel-theme="light"] .ops-db-storage {
  background: rgba(109, 40, 217, 0.035);
}

.ops-db-donut {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  width: 104px;
  height: 104px;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at center, var(--ops-surface-strong) 0 55%, transparent 56%),
    conic-gradient(var(--ops-pink) 0 var(--db-used), rgba(196, 181, 253, 0.14) var(--db-used) 100%);
  box-shadow: inset 0 0 0 1px rgba(196, 181, 253, 0.16), 0 12px 34px rgba(88, 28, 135, 0.2);
}

.admin-shell[data-panel-theme="light"] .ops-db-donut {
  background:
    radial-gradient(circle at center, #ffffff 0 55%, transparent 56%),
    conic-gradient(var(--ops-purple) 0 var(--db-used), rgba(109, 40, 217, 0.12) var(--db-used) 100%);
}

.ops-db-donut span {
  color: var(--ops-text);
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.ops-db-donut small {
  color: var(--ops-muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ops-db-storage__copy {
  min-width: 0;
}

.ops-db-storage__copy strong {
  display: block;
  margin-top: 5px;
  color: var(--ops-text);
  font-size: 0.96rem;
  line-height: 1.25;
}

.ops-db-storage__copy small {
  display: block;
  margin-top: 5px;
  color: var(--ops-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.ops-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ops-mini-grid span,
.ops-table-status div,
.ops-activity-list div,
.ops-alert,
.ops-distribution__row {
  border: 1px solid var(--ops-line);
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.035);
}

.ops-mini-grid span {
  display: grid;
  gap: 4px;
  padding: 10px;
  color: var(--ops-muted);
  font-size: 0.72rem;
}

.ops-mini-grid strong {
  color: var(--ops-text);
}

.ops-distribution__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
}

.ops-distribution__row span {
  color: var(--ops-muted);
  font-size: 0.78rem;
}

.ops-distribution__row strong {
  color: var(--ops-text);
  font-size: 0.95rem;
}

.ops-distribution__row .ops-bar {
  grid-column: 1 / -1;
}

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

.ops-table-status div {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.ops-table-status span,
.ops-table-status small {
  color: var(--ops-muted);
  font-size: 0.72rem;
}

.ops-table-status strong {
  color: var(--ops-text);
  font-size: 1.2rem;
}

.ops-alert {
  display: flex;
  gap: 10px;
  padding: 11px;
  color: inherit;
  text-decoration: none;
}

.ops-alert .material-symbols-outlined {
  color: var(--ops-warning);
  font-size: 1.25rem;
}

.ops-alert--ok .material-symbols-outlined,
.ops-alert--success .material-symbols-outlined {
  color: var(--ops-ok);
}

.ops-alert--danger .material-symbols-outlined,
.ops-alert--error .material-symbols-outlined {
  color: var(--ops-danger);
}

.ops-alert strong,
.ops-activity-list strong {
  display: block;
  color: var(--ops-text);
  font-size: 0.82rem;
  line-height: 1.32;
}

.ops-alert small,
.ops-activity-list small {
  display: block;
  margin-top: 3px;
  color: var(--ops-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.ops-activity-list div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 4px 10px;
  padding: 10px;
}

.ops-activity-list span {
  color: var(--ops-pink);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.72rem;
}

.ops-activity-list small {
  grid-column: 2;
}

.ops-panel--vps {
  background:
    radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.12), transparent 28%),
    var(--ops-surface);
}

.ops-panel--vps p {
  color: var(--ops-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.ops-empty {
  padding: 16px;
  border: 1px dashed var(--ops-line);
  border-radius: 12px !important;
  color: var(--ops-muted);
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 1500px) {
  .ops-grid--main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1220px) {
  .ops-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops-grid--secondary,
  .ops-grid--bottom {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .ops-dashboard__hero {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-hero-actions {
    justify-content: stretch;
  }

  .ops-hero-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .ops-metric-grid,
  .ops-school-row,
  .ops-db-storage,
  .ops-table-status,
  .ops-mini-grid {
    grid-template-columns: 1fr;
  }

  .ops-db-donut {
    justify-self: center;
  }

  .ops-activity-list div {
    grid-template-columns: 1fr;
  }

  .ops-activity-list small {
    grid-column: auto;
  }
}

.admin-shell .inline-toggle,
.admin-shell .inline-toggle--checkbox {
  gap: 7px !important;
  min-height: auto !important;
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}

.admin-shell .inline-toggle span {
  line-height: 1.15 !important;
}

.admin-shell .calendar-month-toolbar,
.admin-shell .calendar-editor,
.admin-shell .calendar-editor__panel {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: none !important;
}

.admin-shell .calendar-month-toolbar {
  border-bottom: 0 !important;
}

.admin-shell .calendar-month-toolbar h4,
.admin-shell .calendar-editor__panel h4,
.admin-shell .calendar-editor label,
.admin-shell .calendar-editor__day strong {
  color: #0f172a !important;
}

.admin-shell .calendar-month-toolbar .eyebrow,
.admin-shell .calendar-editor__panel .eyebrow,
.admin-shell .calendar-editor__day span,
.admin-shell .calendar-editor__name {
  color: #475569 !important;
}

.admin-shell .calendar-editor__grid {
  background: #ffffff !important;
}

.admin-shell .calendar-editor__name {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
}

.admin-shell .calendar-editor__day {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

.admin-shell .calendar-editor__day--empty {
  background: #f8fafc !important;
}

.admin-shell .calendar-editor__day.has-event {
  background: rgba(37, 99, 235, 0.08) !important;
  border-color: rgba(37, 99, 235, 0.28) !important;
}

.admin-shell .calendar-editor__day.is-selected {
  outline: 2px solid rgba(37, 99, 235, 0.22) !important;
  border-color: #2563eb !important;
}

.admin-shell .calendar-editor input,
.admin-shell .calendar-editor select,
.admin-shell .calendar-editor textarea {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
  color: #0f172a !important;
}

.admin-shell .calendar-editor input::placeholder,
.admin-shell .calendar-editor textarea::placeholder {
  color: rgba(71, 85, 105, 0.52) !important;
}

/* Control Center contrast guard: avoid pale cards with unreadable labels in editor panels. */
.admin-shell .theme-editor-form .quick-content-subsection,
.admin-shell .theme-editor-form .enrollment-document-editor-card,
.admin-shell .theme-editor-form .form-builder__head,
.admin-shell .theme-editor-form .form-builder-section,
.admin-shell .theme-editor-form .form-builder-field,
.admin-shell .theme-editor-form .student-photo-control-preview,
.admin-shell .theme-editor-form .home-pillar-carousel-editor,
.admin-shell .theme-editor-form .home-pillar-editor-card,
.admin-shell .theme-editor-form .home-pillar-carousel-editor-card,
.admin-shell .theme-editor-form .proposal-editor-card,
.admin-shell .theme-editor-form .proposal-field-style-controls,
.admin-shell .theme-editor-form .theme-capture,
.admin-shell .theme-editor-form .upload-field,
.admin-shell .theme-editor-form .color-control,
.admin-shell .theme-editor-form .social-editor-card,
.admin-shell .theme-editor-form .mini-option {
  background:
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(11, 18, 32, 0.98), rgba(17, 24, 39, 0.98)) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  color: #f8fafc !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28) !important;
}

.admin-shell .theme-editor-form .quick-content-subsection h4,
.admin-shell .theme-editor-form .enrollment-document-editor-card strong,
.admin-shell .theme-editor-form .enrollment-document-editor-card label,
.admin-shell .theme-editor-form .form-builder__head h4,
.admin-shell .theme-editor-form .form-builder-section h4,
.admin-shell .theme-editor-form .form-builder-section label,
.admin-shell .theme-editor-form .form-builder-field label,
.admin-shell .theme-editor-form .student-photo-control-preview h4,
.admin-shell .theme-editor-form .home-pillar-carousel-editor h3,
.admin-shell .theme-editor-form .home-pillar-editor-card h3,
.admin-shell .theme-editor-form .proposal-editor-card h3,
.admin-shell .theme-editor-form .theme-capture strong,
.admin-shell .theme-editor-form .upload-field > span,
.admin-shell .theme-editor-form .color-control > span,
.admin-shell .theme-editor-form .mini-option h3 {
  color: #f8fafc !important;
}

.admin-shell .theme-editor-form .quick-content-subsection p,
.admin-shell .theme-editor-form .enrollment-document-editor-card small,
.admin-shell .theme-editor-form .form-builder__head p,
.admin-shell .theme-editor-form .student-photo-control-preview p,
.admin-shell .theme-editor-form .student-photo-control-preview__filename,
.admin-shell .theme-editor-form .home-pillar-carousel-editor p,
.admin-shell .theme-editor-form .proposal-editor-card p,
.admin-shell .theme-editor-form .theme-capture small,
.admin-shell .theme-editor-form .theme-capture__url,
.admin-shell .theme-editor-form .upload-field small,
.admin-shell .theme-editor-form .mini-option p {
  color: rgba(226, 232, 240, 0.76) !important;
}

.admin-shell .theme-editor-form .quick-content-subsection input,
.admin-shell .theme-editor-form .quick-content-subsection select,
.admin-shell .theme-editor-form .quick-content-subsection textarea,
.admin-shell .theme-editor-form .enrollment-document-editor-card input,
.admin-shell .theme-editor-form .enrollment-document-editor-card select,
.admin-shell .theme-editor-form .enrollment-document-editor-card textarea,
.admin-shell .theme-editor-form .form-builder-section input,
.admin-shell .theme-editor-form .form-builder-section select,
.admin-shell .theme-editor-form .form-builder-section textarea,
.admin-shell .theme-editor-form .form-builder-field input,
.admin-shell .theme-editor-form .form-builder-field select,
.admin-shell .theme-editor-form .form-builder-field textarea,
.admin-shell .theme-editor-form .proposal-field-style-controls input,
.admin-shell .theme-editor-form .proposal-field-style-controls select,
.admin-shell .theme-editor-form .proposal-field-style-controls textarea,
.admin-shell .theme-editor-form .home-pillar-carousel-editor input,
.admin-shell .theme-editor-form .home-pillar-carousel-editor select,
.admin-shell .theme-editor-form .home-pillar-carousel-editor textarea,
.admin-shell .theme-editor-form .theme-capture input,
.admin-shell .theme-editor-form .theme-capture select,
.admin-shell .theme-editor-form .theme-capture textarea {
  background: rgba(15, 23, 42, 0.96) !important;
  border-color: rgba(203, 213, 225, 0.28) !important;
  color: #f8fafc !important;
}

.admin-shell .theme-editor-form .quick-content-subsection input::placeholder,
.admin-shell .theme-editor-form .quick-content-subsection textarea::placeholder,
.admin-shell .theme-editor-form .enrollment-document-editor-card input::placeholder,
.admin-shell .theme-editor-form .enrollment-document-editor-card textarea::placeholder,
.admin-shell .theme-editor-form .form-builder-section input::placeholder,
.admin-shell .theme-editor-form .form-builder-section textarea::placeholder,
.admin-shell .theme-editor-form .form-builder-field input::placeholder,
.admin-shell .theme-editor-form .form-builder-field textarea::placeholder {
  color: rgba(203, 213, 225, 0.56) !important;
}

.admin-shell .theme-editor-form .inline-toggle span,
.admin-shell .theme-editor-form .inline-toggle--checkbox span {
  color: #f8fafc !important;
}

.admin-shell .theme-editor-form .enrollment-document-editor-card__auto-name {
  border-color: rgba(203, 213, 225, 0.22) !important;
  background: rgba(2, 6, 23, 0.54) !important;
}

.admin-shell .theme-editor-form .enrollment-document-editor-card__auto-name span {
  color: rgba(203, 213, 225, 0.72) !important;
}

.admin-shell .theme-editor-form .enrollment-document-editor-card__auto-name strong {
  color: #f8fafc !important;
}

.admin-shell .theme-editor-form input[type="checkbox"] {
  background: rgba(15, 23, 42, 0.98) !important;
  border-color: rgba(226, 232, 240, 0.72) !important;
}

.admin-shell .theme-editor-form .rich-text-field {
  display: grid;
  gap: 10px;
}

.admin-shell .theme-editor-form .rich-text-toolbar {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(203, 213, 225, 0.22);
  background: rgba(2, 6, 23, 0.72);
}

.admin-shell .theme-editor-form .rich-text-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 32px;
  padding: 0 9px;
  border: 0;
  background: transparent;
  color: #f8fafc;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, transform 140ms cubic-bezier(0.23, 1, 0.32, 1);
}

.admin-shell .theme-editor-form .rich-text-toolbar button:hover,
.admin-shell .theme-editor-form .rich-text-toolbar button:focus-visible {
  background: rgba(96, 165, 250, 0.22);
  outline: none;
}

.admin-shell .theme-editor-form .rich-text-toolbar button:active {
  transform: scale(0.97);
}

.admin-shell .theme-editor-form .rich-text-toolbar .material-symbols-outlined {
  font-size: 18px;
}

.admin-shell[data-panel-theme="light"] .theme-editor-form .quick-content-subsection,
.admin-shell[data-panel-theme="light"] .theme-editor-form .enrollment-document-editor-card,
.admin-shell[data-panel-theme="light"] .theme-editor-form .form-builder__head,
.admin-shell[data-panel-theme="light"] .theme-editor-form .form-builder-section,
.admin-shell[data-panel-theme="light"] .theme-editor-form .form-builder-field,
.admin-shell[data-panel-theme="light"] .theme-editor-form .student-photo-control-preview,
.admin-shell[data-panel-theme="light"] .theme-editor-form .home-pillar-carousel-editor,
.admin-shell[data-panel-theme="light"] .theme-editor-form .home-pillar-editor-card,
.admin-shell[data-panel-theme="light"] .theme-editor-form .home-pillar-carousel-editor-card,
.admin-shell[data-panel-theme="light"] .theme-editor-form .proposal-editor-card,
.admin-shell[data-panel-theme="light"] .theme-editor-form .proposal-field-style-controls,
.admin-shell[data-panel-theme="light"] .theme-editor-form .theme-capture,
.admin-shell[data-panel-theme="light"] .theme-editor-form .upload-field,
.admin-shell[data-panel-theme="light"] .theme-editor-form .color-control,
.admin-shell[data-panel-theme="light"] .theme-editor-form .social-editor-card,
.admin-shell[data-panel-theme="light"] .theme-editor-form .mini-option {
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.08), transparent 34%),
    #ffffff !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  color: #101828 !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08) !important;
}

.admin-shell[data-panel-theme="light"] .theme-editor-form .quick-content-subsection h4,
.admin-shell[data-panel-theme="light"] .theme-editor-form .enrollment-document-editor-card strong,
.admin-shell[data-panel-theme="light"] .theme-editor-form .enrollment-document-editor-card label,
.admin-shell[data-panel-theme="light"] .theme-editor-form .form-builder__head h4,
.admin-shell[data-panel-theme="light"] .theme-editor-form .form-builder-section h4,
.admin-shell[data-panel-theme="light"] .theme-editor-form .form-builder-section label,
.admin-shell[data-panel-theme="light"] .theme-editor-form .form-builder-field label,
.admin-shell[data-panel-theme="light"] .theme-editor-form .student-photo-control-preview h4,
.admin-shell[data-panel-theme="light"] .theme-editor-form .home-pillar-carousel-editor h3,
.admin-shell[data-panel-theme="light"] .theme-editor-form .home-pillar-editor-card h3,
.admin-shell[data-panel-theme="light"] .theme-editor-form .proposal-editor-card h3,
.admin-shell[data-panel-theme="light"] .theme-editor-form .theme-capture strong,
.admin-shell[data-panel-theme="light"] .theme-editor-form .upload-field > span,
.admin-shell[data-panel-theme="light"] .theme-editor-form .color-control > span,
.admin-shell[data-panel-theme="light"] .theme-editor-form .inline-toggle span,
.admin-shell[data-panel-theme="light"] .theme-editor-form .mini-option h3 {
  color: #101828 !important;
}

.admin-shell[data-panel-theme="light"] .theme-editor-form .quick-content-subsection p,
.admin-shell[data-panel-theme="light"] .theme-editor-form .enrollment-document-editor-card small,
.admin-shell[data-panel-theme="light"] .theme-editor-form .form-builder__head p,
.admin-shell[data-panel-theme="light"] .theme-editor-form .student-photo-control-preview p,
.admin-shell[data-panel-theme="light"] .theme-editor-form .student-photo-control-preview__filename,
.admin-shell[data-panel-theme="light"] .theme-editor-form .home-pillar-carousel-editor p,
.admin-shell[data-panel-theme="light"] .theme-editor-form .proposal-editor-card p,
.admin-shell[data-panel-theme="light"] .theme-editor-form .theme-capture small,
.admin-shell[data-panel-theme="light"] .theme-editor-form .theme-capture__url,
.admin-shell[data-panel-theme="light"] .theme-editor-form .upload-field small,
.admin-shell[data-panel-theme="light"] .theme-editor-form .mini-option p {
  color: #475467 !important;
}

/* --------------------------------------------------------------------------
   TEMA 1 · ARCHIVO VIVO — LIBRO DE COMUNIDAD
   Institutional editorial system. Scoped to Tema 1 so Tema 2 remains intact.
   -------------------------------------------------------------------------- */

.site-shell.theme-layout-bento {
  --archive-navy: var(--primary-dark, #071a2f);
  --archive-blue: var(--primary, #123b6d);
  --archive-cobalt: var(--accent, #245ea8);
  --archive-steel: #6f94b8;
  --archive-ice: #dce9f5;
  --archive-paper: #f6f3ec;
  --archive-white: #fffdf8;
  --archive-ink: #17202a;
  --archive-muted: #52606d;
  --archive-rule: rgba(18, 59, 109, 0.2);
  --archive-serif: "Cormorant Garamond", Georgia, serif;
  color: var(--archive-ink);
  background: var(--archive-paper);
  overflow: clip;
}

.site-shell.theme-layout-bento ::selection {
  color: var(--archive-white);
  background: var(--archive-cobalt);
}

.site-shell.theme-layout-bento :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #8eb9e2;
  outline-offset: 4px;
}

.site-shell.theme-layout-bento .skip-link {
  position: fixed;
  inset: 0 auto auto 1rem;
  z-index: 1000;
  padding: 0.8rem 1rem;
  color: var(--archive-white);
  background: var(--archive-blue);
  transform: translateY(-130%);
}

.site-shell.theme-layout-bento .skip-link:focus {
  transform: translateY(1rem);
}

.site-shell.theme-layout-bento :where(h1, h2) {
  font-family: var(--archive-serif);
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.site-shell.theme-layout-bento :where(h3, h4, p, a, span, strong, small) {
  overflow-wrap: anywhere;
}

.site-shell.theme-layout-bento .site-header {
  position: relative;
  z-index: 80;
  color: var(--archive-white);
  background: var(--archive-navy);
  border-bottom: 1px solid rgba(220, 233, 245, 0.25);
  box-shadow: none;
  padding: 0;
}

.site-shell.theme-layout-bento .site-header-inner {
  width: min(100%, 1520px);
  min-height: 92px;
  padding: 0 3.5vw;
}

.site-shell.theme-layout-bento .brand {
  min-width: 0;
  color: var(--archive-white);
}

.site-shell.theme-layout-bento .brand-mark {
  width: clamp(74px, 5.8vw, 86px);
  height: clamp(74px, 5.8vw, 86px);
  color: var(--archive-navy);
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  overflow: hidden;
}

.site-shell.theme-layout-bento .brand-mark img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
}

.site-shell.theme-layout-bento .brand-copy strong {
  font-family: var(--archive-serif);
  font-size: clamp(1.18rem, 1.5vw, 1.55rem);
  font-weight: 600;
  line-height: 1;
}

.site-shell.theme-layout-bento .brand-copy small {
  margin-top: 0.35rem;
  color: var(--archive-ice);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-shell.theme-layout-bento .nav-link {
  min-height: 44px;
  color: rgba(255, 253, 248, 0.8);
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-shell.theme-layout-bento .nav-link::after {
  content: "";
  position: absolute;
  right: 0.65rem;
  bottom: 0.35rem;
  left: 0.65rem;
  height: 1px;
  background: var(--archive-ice);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-shell.theme-layout-bento .nav-link:is(.is-active, [aria-expanded="true"]) {
  color: var(--archive-white);
  background: rgba(220, 233, 245, 0.1);
}

.site-shell.theme-layout-bento .nav-link:is(.is-active, [aria-expanded="true"])::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-shell.theme-layout-bento .nav-dropdown {
  padding: 0.5rem;
  background: var(--archive-paper);
  border: 1px solid var(--archive-rule);
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(7, 26, 47, 0.22);
}

.site-shell.theme-layout-bento .nav-dropdown-link {
  color: var(--archive-ink);
  border-radius: 1px;
}

.site-shell.theme-layout-bento .nav-dropdown-link:is(:hover, :focus-visible, .is-active) {
  color: var(--archive-white);
  background: var(--archive-blue);
}

.site-shell.theme-layout-bento .mobile-toggle {
  color: var(--archive-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
}

.site-shell.theme-layout-bento .site-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(18, 59, 109, 0.035) 50%, transparent calc(50% + 0.5px)),
    var(--archive-paper);
}

.site-shell.theme-layout-bento .archive-home-hero {
  position: relative;
  background: var(--archive-navy);
  border-bottom: 1px solid rgba(220, 233, 245, 0.3);
}

.site-shell.theme-layout-bento .archive-home-hero__grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(520px, 1.22fr);
  grid-template-rows: minmax(610px, auto) auto;
  width: 100%;
  margin: 0 auto;
}

.site-shell.theme-layout-bento .archive-home-hero__media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 26, 47, 0.06), rgba(7, 26, 47, 0.35)),
    var(--archive-hero-image, linear-gradient(145deg, #245ea8, #071a2f));
  background-position: center;
  background-size: cover;
  border-left: 1px solid rgba(220, 233, 245, 0.3);
}

.site-shell.theme-layout-bento .archive-home-hero__media::after {
  content: "ARCHIVO / 01";
  position: absolute;
  right: -3.6rem;
  bottom: 6.2rem;
  z-index: 3;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  transform: rotate(-90deg);
}

.site-shell.theme-layout-bento .archive-home-hero__media .hero-cover__carousel,
.site-shell.theme-layout-bento .archive-home-hero__media .hero-cover__slide {
  position: absolute;
  inset: 0;
}

.site-shell.theme-layout-bento .archive-home-hero__media .hero-cover__slide {
  background-position: center;
  background-size: cover;
}

.site-shell.theme-layout-bento .archive-home-hero__media .hero-cover__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 26, 47, 0.05), rgba(7, 26, 47, 0.38));
}

.site-shell.theme-layout-bento .archive-home-hero__placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  color: rgba(220, 233, 245, 0.75);
  background:
    radial-gradient(circle at 24% 18%, rgba(220, 233, 245, 0.2), transparent 26%),
    linear-gradient(145deg, var(--archive-cobalt), var(--archive-navy));
}

.site-shell.theme-layout-bento .archive-home-hero__placeholder .material-symbols-outlined {
  font-size: clamp(4rem, 9vw, 8rem);
  font-variation-settings: "FILL" 0, "wght" 200;
}

.site-shell.theme-layout-bento .archive-registration {
  position: absolute;
  left: 1.5rem;
  z-index: 5;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.site-shell.theme-layout-bento .archive-registration--top { top: 1.5rem; }
.site-shell.theme-layout-bento .archive-registration--bottom { bottom: 1.5rem; }

.site-shell.theme-layout-bento .archive-home-hero__statement {
  display: flex;
  min-width: 0;
  padding: clamp(4.5rem, 7vw, 7.5rem) clamp(2.2rem, 5vw, 5.8rem);
  flex-direction: column;
  justify-content: center;
  color: var(--archive-white);
  background:
    radial-gradient(circle at 86% 14%, rgba(36, 94, 168, 0.24), transparent 34%),
    var(--archive-blue);
}

.site-shell.theme-layout-bento .archive-home-hero__badge,
.site-shell.theme-layout-bento .eyebrow,
.site-shell.theme-layout-bento .page-hero-cover__badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.65rem;
  color: var(--archive-blue);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-shell.theme-layout-bento .archive-home-hero__badge {
  color: var(--archive-ice);
}

.site-shell.theme-layout-bento .archive-home-hero__badge::before,
.site-shell.theme-layout-bento .eyebrow::before,
.site-shell.theme-layout-bento .page-hero-cover__badge::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: currentColor;
}

.site-shell.theme-layout-bento .archive-home-hero__statement h1 {
  max-width: 13ch;
  margin: 1.25rem 0 1.4rem;
  color: var(--archive-white);
  font-size: clamp(3.1rem, 5.3vw, 6.5rem);
  line-height: 0.96;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.site-shell.theme-layout-bento .archive-home-hero__statement > p {
  max-width: 54ch;
  margin: 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.75;
}

.site-shell.theme-layout-bento .archive-home-hero__actions,
.site-shell.theme-layout-bento .hero-cover__actions {
  display: flex;
  margin-top: 2.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-shell.theme-layout-bento .btn {
  min-height: 48px;
  padding: 0.78rem 1.2rem;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}

.site-shell.theme-layout-bento .btn:active,
.site-shell.theme-layout-bento :where(.home-pillar-carousel__button, .icon-button, .gallery-lightbox__close):active {
  transform: scale(0.97);
}

.site-shell.theme-layout-bento .btn-primary {
  color: var(--archive-blue);
  background: var(--archive-white);
  border-color: var(--archive-white);
}

.site-shell.theme-layout-bento .btn-secondary {
  color: var(--archive-white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.site-shell.theme-layout-bento .archive-home-ledger {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: var(--archive-white);
  background: var(--archive-navy);
}

.site-shell.theme-layout-bento .archive-home-ledger__item {
  display: grid;
  min-height: 25%;
  padding: 1.5rem clamp(1.3rem, 2.3vw, 2.4rem);
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  color: var(--archive-white);
  border-bottom: 1px solid rgba(220, 233, 245, 0.22);
  transition: color 180ms ease-out, background-color 180ms ease-out;
}

.site-shell.theme-layout-bento .archive-home-ledger__index {
  color: var(--archive-steel);
  font-family: var(--archive-serif);
  font-size: 1.25rem;
}

.site-shell.theme-layout-bento .archive-home-ledger__copy {
  display: grid;
  gap: 0.3rem;
}

.site-shell.theme-layout-bento .archive-home-ledger__copy strong {
  font-family: var(--archive-serif);
  font-size: clamp(1.2rem, 1.7vw, 1.65rem);
  font-weight: 600;
  line-height: 1.05;
}

.site-shell.theme-layout-bento .archive-home-ledger__copy small {
  color: var(--archive-steel);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-shell.theme-layout-bento .archive-home-hero__band {
  display: grid;
  min-height: 110px;
  padding: 1.35rem 3.5vw;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(180px, 0.55fr) minmax(280px, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.5rem);
  color: var(--archive-white);
  background: var(--archive-cobalt);
}

.site-shell.theme-layout-bento .archive-home-hero__band-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.site-shell.theme-layout-bento .archive-home-hero__band strong {
  font-family: var(--archive-serif);
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 600;
}

.site-shell.theme-layout-bento .archive-home-hero__band > span:not(.archive-home-hero__band-icon, .archive-home-hero__band-action) {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.site-shell.theme-layout-bento .archive-home-hero__band-action {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-shell.theme-layout-bento .section-wrap {
  width: min(calc(100% - clamp(2rem, 7vw, 7rem)), 1680px);
  margin-inline: auto;
  padding-block: clamp(5rem, 8vw, 9rem);
}

.site-shell.theme-layout-bento .section-head {
  margin-bottom: clamp(2.5rem, 4vw, 4.5rem);
}

.site-shell.theme-layout-bento .section-head.centered {
  text-align: left;
}

.site-shell.theme-layout-bento .section-head.centered > div {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(180px, 0.38fr) minmax(300px, 1fr) minmax(260px, 0.75fr);
  align-items: start;
  gap: 2rem;
}

.site-shell.theme-layout-bento .section-head.centered .eyebrow {
  margin-top: 0.75rem;
}

.site-shell.theme-layout-bento .section-head h2 {
  margin: 0;
  color: var(--archive-blue);
  font-size: clamp(2.8rem, 5vw, 5.8rem);
  line-height: 0.92;
}

.site-shell.theme-layout-bento .section-head p {
  max-width: 60ch;
  margin: 0.5rem 0 0;
  color: var(--archive-muted);
  line-height: 1.75;
}

/* Keep the schedule copy together in a wide second column, away from the label. */
.site-shell.theme-layout-bento .schedule-section > .section-head.centered > div {
  grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1fr);
  column-gap: clamp(2.5rem, 4vw, 5rem);
}

.site-shell.theme-layout-bento .schedule-section > .section-head.centered h2 {
  min-width: 0;
  text-wrap: balance;
}

.site-shell.theme-layout-bento .schedule-section > .section-head.centered p {
  grid-column: 2;
}

.site-shell.theme-layout-bento :where(.home-pillars-grid, .values-grid, .feature-grid, .content-grid, .gallery-grid, .downloads-grid) {
  gap: 0;
  border-top: 1px solid var(--archive-rule);
  border-left: 1px solid var(--archive-rule);
}

.site-shell.theme-layout-bento :where(.home-pillar, .home-value-card, .value-card, .feature-card, .content-card, .gallery-card, .download-card, .info-card) {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 3rem);
  color: var(--archive-ink);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--archive-rule);
  border-bottom: 1px solid var(--archive-rule);
  border-radius: 0;
  box-shadow: none;
}

.site-shell.theme-layout-bento :where(.home-pillar, .home-value-card, .value-card, .feature-card, .content-card, .gallery-card, .download-card, .info-card) h3 {
  color: var(--archive-blue);
  font-family: var(--archive-serif);
  font-size: clamp(1.55rem, 2.3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.05;
}

.site-shell.theme-layout-bento :where(.home-pillar, .home-value-card, .value-card, .feature-card, .content-card, .gallery-card, .download-card, .info-card) p {
  color: var(--archive-muted);
  line-height: 1.7;
}

.site-shell.theme-layout-bento :where(.home-pillar__icon, .home-value-card__icon, .card-icon, .gallery-icon) {
  color: var(--archive-cobalt);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.site-shell.theme-layout-bento .home-pillar {
  color: var(--pillar-text, var(--archive-ink));
  background: var(--pillar-bg, transparent);
}

.site-shell.theme-layout-bento .home-pillar :where(h3, p) { color: inherit; }
.site-shell.theme-layout-bento .home-pillar__icon { color: var(--pillar-icon, var(--archive-cobalt)); }

.site-shell.theme-layout-bento .home-value-card__number {
  color: var(--archive-steel);
  font-family: var(--archive-serif);
  font-size: 1.45rem;
}

.site-shell.theme-layout-bento .home-values-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-shell.theme-layout-bento .home-value-card h3 {
  max-width: 100%;
  font-size: clamp(1.55rem, 1.7vw, 2.15rem);
  line-height: 1.1;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.site-shell.theme-layout-bento .home-pillar-carousel {
  position: relative;
  margin-top: 2.5rem;
  padding: clamp(0.45rem, 1vw, 0.75rem);
  overflow: hidden;
  border: 1px solid rgba(220, 233, 245, 0.24);
  border-radius: 4px;
  background: var(--archive-navy);
  box-shadow: 0 30px 80px rgba(4, 20, 43, 0.22);
}

.site-shell.theme-layout-bento .home-pillar-carousel__viewport {
  position: relative;
  display: block;
}

.site-shell.theme-layout-bento .home-pillar-carousel__slide {
  width: min(62%, 620px);
  aspect-ratio: auto;
  border-radius: 2px;
}

.site-shell.theme-layout-bento .home-pillar-carousel__button {
  color: var(--archive-white);
  background: var(--archive-blue);
  border-color: var(--archive-blue);
  border-radius: 2px;
}

.site-shell.theme-layout-bento .home-pillar-carousel__counter {
  font-family: var(--archive-serif);
}

.site-shell.theme-layout-bento .home-pillar-carousel__dot.is-active {
  background: var(--archive-sky);
}

.site-shell.theme-layout-bento .home-cta-section {
  width: 100%;
  max-width: none;
  padding: 0;
}

.site-shell.theme-layout-bento .home-cta-panel {
  display: grid;
  padding: clamp(3rem, 7vw, 7rem) max(3.5vw, calc((100vw - 1420px) / 2));
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: clamp(2rem, 6vw, 7rem);
  color: var(--archive-white);
  background: var(--archive-blue);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.site-shell.theme-layout-bento .home-cta-panel :where(h2, p, .eyebrow) { color: var(--archive-white); }
.site-shell.theme-layout-bento .home-cta-panel h2 { font-size: clamp(2.8rem, 5vw, 5.5rem); line-height: 0.92; }

.site-shell.theme-layout-bento :where(input, select, textarea) {
  color: var(--archive-ink);
  background: var(--archive-white);
  border: 1px solid rgba(18, 59, 109, 0.35);
  border-radius: 2px;
}

.site-shell.theme-layout-bento :where(input, select, textarea):focus {
  border-color: var(--archive-cobalt);
  box-shadow: 0 0 0 3px rgba(36, 94, 168, 0.14);
}

.site-shell.theme-layout-bento .home-cta-form {
  align-self: center;
}

.site-shell.theme-layout-bento .home-cta-form .btn-secondary {
  color: var(--archive-blue) !important;
  background: var(--archive-white) !important;
  border-color: var(--archive-white) !important;
}

.site-shell.theme-layout-bento .page-hero-cover {
  position: relative;
  min-height: min(690px, 75vh);
  color: var(--archive-ink);
  background: var(--archive-paper) !important;
  border-bottom: 1px solid var(--archive-rule);
  isolation: isolate;
}

.site-shell.theme-layout-bento .page-hero-cover::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 52%;
  background:
    linear-gradient(90deg, rgba(7, 26, 47, 0.1), rgba(7, 26, 47, 0.02)),
    var(--archive-page-image, linear-gradient(145deg, var(--archive-cobalt), var(--archive-navy)));
  background-position: center;
  background-size: cover;
}

.site-shell.theme-layout-bento .page-hero-cover--no-media::after {
  background:
    radial-gradient(circle at 28% 24%, rgba(220, 233, 245, 0.22), transparent 28%),
    linear-gradient(145deg, var(--archive-cobalt), var(--archive-navy));
}

.site-shell.theme-layout-bento .page-hero-cover__inner {
  display: grid;
  width: min(100% - 7vw, 1420px);
  min-height: inherit;
  margin: 0 auto;
  grid-template-columns: minmax(0, 46%) 1fr;
  align-items: center;
}

.site-shell.theme-layout-bento .page-hero-cover__copy {
  padding: clamp(4rem, 7vw, 7rem) clamp(2rem, 6vw, 6rem) clamp(4rem, 7vw, 7rem) 0;
}

.site-shell.theme-layout-bento .page-hero-cover__copy h1,
.site-shell.theme-layout-bento .page-hero-cover--solid .page-hero-cover__copy h1 {
  max-width: 11ch;
  margin: 1.25rem 0 1.5rem;
  color: var(--archive-blue);
  font-size: clamp(3.6rem, 7vw, 7.7rem);
  line-height: 0.84;
}

.site-shell.theme-layout-bento .page-hero-cover__copy p {
  max-width: 56ch;
  color: var(--archive-muted);
  line-height: 1.75;
}

.site-shell.theme-layout-bento .page-hero-cover__copy .btn-primary {
  color: var(--archive-white);
  background: var(--archive-blue);
  border-color: var(--archive-blue);
}

.site-shell.theme-layout-bento .page-hero-cover__copy .btn-secondary {
  color: var(--archive-blue);
  border-color: rgba(18, 59, 109, 0.45);
}

.site-shell.theme-layout-bento .timeline-grid {
  position: relative;
  display: grid;
  gap: 0;
  padding-block: 1rem;
}

.site-shell.theme-layout-bento .timeline-grid::before {
  left: 50%;
  top: 1rem;
  bottom: 1rem;
  width: 1px;
  background: color-mix(in srgb, var(--archive-cobalt) 34%, var(--archive-rule));
  transform: translateX(-50%);
}

.site-shell.theme-layout-bento .timeline-card,
.site-shell.theme-layout-bento .timeline-card:nth-child(odd),
.site-shell.theme-layout-bento .timeline-card:nth-child(even) {
  position: relative;
  display: grid;
  width: 100%;
  min-height: clamp(220px, 22vw, 340px);
  margin: 0;
  padding: clamp(2.5rem, 4.5vw, 5rem) 0;
  grid-template-columns: minmax(0, 1fr) clamp(54px, 6vw, 88px) minmax(0, 1fr);
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.site-shell.theme-layout-bento .timeline-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 3px solid var(--archive-paper);
  border-radius: 3px;
  background: var(--archive-cobalt);
  box-shadow: 0 4px 12px rgba(7, 26, 47, 0.18);
  transform: translate(-50%, -50%);
}

.site-shell.theme-layout-bento .timeline-card__copy {
  display: grid;
  max-width: 52ch;
  gap: 0.55rem;
}

.site-shell.theme-layout-bento .timeline-card:nth-child(odd) .timeline-card__copy {
  grid-column: 1;
  justify-self: end;
  padding-right: clamp(1.5rem, 4vw, 4rem);
  text-align: right;
}

.site-shell.theme-layout-bento .timeline-card:nth-child(even) .timeline-card__copy {
  grid-column: 3;
  padding-left: clamp(1.5rem, 4vw, 4rem);
  text-align: left;
}

.site-shell.theme-layout-bento .timeline-card__year {
  margin: 0;
  color: var(--archive-cobalt);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.site-shell.theme-layout-bento .timeline-card h3 {
  margin: 0;
  color: var(--archive-blue);
  font-family: var(--archive-serif);
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  line-height: 1.05;
}

.site-shell.theme-layout-bento .timeline-card h3 a {
  color: inherit;
  text-decoration-color: transparent;
  text-underline-offset: 0.16em;
}

.site-shell.theme-layout-bento .timeline-card__copy > p:last-child {
  margin: 0;
  color: var(--archive-muted);
  line-height: 1.7;
}

.site-shell.theme-layout-bento .timeline-card__media {
  width: min(100%, 430px);
  min-height: 0;
  margin: 0;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--archive-rule);
  border-radius: 2px;
  background: var(--archive-white);
  box-shadow: 0 18px 46px rgba(7, 26, 47, 0.12);
}

.site-shell.theme-layout-bento .timeline-card:nth-child(odd) .timeline-card__media {
  grid-column: 3;
  justify-self: start;
  margin-left: clamp(1.5rem, 4vw, 4rem);
}

.site-shell.theme-layout-bento .timeline-card:nth-child(even) .timeline-card__media {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  margin-right: clamp(1.5rem, 4vw, 4rem);
}

.site-shell.theme-layout-bento .timeline-card__media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 5px;
  object-fit: cover;
}

.site-shell.theme-layout-bento .story-values-section > .section-head.centered > div {
  grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1fr);
  column-gap: clamp(2.5rem, 4vw, 5rem);
}

.site-shell.theme-layout-bento .story-values-section > .section-head.centered h2 {
  min-width: 0;
  text-wrap: balance;
}

.site-shell.theme-layout-bento .story-values-section > .section-head.centered p {
  grid-column: 2;
}

.site-shell.theme-layout-bento :where(.mission-panel, .vision-panel, .contact-panel, .form-panel, .admissions-form, .content-detail-shell, .schedule-calendar, .uniform-card) {
  color: var(--archive-ink);
  background: var(--archive-white);
  border: 1px solid var(--archive-rule);
  border-radius: 2px;
  box-shadow: 0 24px 70px rgba(7, 26, 47, 0.07);
}

.site-shell.theme-layout-bento :where(.mission-panel, .vision-panel, .contact-panel, .form-panel, .admissions-form, .content-detail-shell, .schedule-calendar, .uniform-card) h2,
.site-shell.theme-layout-bento :where(.mission-panel, .vision-panel, .contact-panel, .form-panel, .admissions-form, .content-detail-shell, .schedule-calendar, .uniform-card) h3 {
  color: var(--archive-blue);
  font-family: var(--archive-serif);
}

.site-shell.theme-layout-bento .uniform-grid { gap: 1px; background: var(--archive-rule); border: 1px solid var(--archive-rule); }
.site-shell.theme-layout-bento .uniform-card { padding: clamp(1.2rem, 2.5vw, 2.2rem); border: 0; box-shadow: none; }
.site-shell.theme-layout-bento .uniform-card__image-stage { border-radius: 1px; background: var(--archive-ice); }
.site-shell.theme-layout-bento .uniform-hotspot {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 4px;
}

.site-shell.theme-layout-bento .uniform-hotspot__dot {
  inset: auto;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(7, 26, 47, 0.72);
  border-radius: 2px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 3px 10px rgba(7, 26, 47, 0.2);
  animation: none;
  transform: translate(-50%, -50%) rotate(45deg);
  transition:
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.site-shell.theme-layout-bento .uniform-hotspot__dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 1px;
  background: var(--archive-blue);
}

.site-shell.theme-layout-bento .uniform-hotspot__tooltip {
  color: var(--archive-white);
  background: var(--archive-navy);
  border-color: rgba(220, 233, 245, 0.3);
  border-radius: 4px;
  box-shadow: 0 18px 42px rgba(7, 26, 47, 0.24);
  transform: translate(-50%, 4px) scale(0.98);
  transform-origin: 50% calc(100% + 10px);
  transition:
    opacity 160ms ease,
    transform 180ms cubic-bezier(0.23, 1, 0.32, 1),
    visibility 160ms ease;
}

.site-shell.theme-layout-bento .uniform-hotspot__tooltip::after {
  border-top-color: var(--archive-navy);
}

.site-shell.theme-layout-bento .uniform-hotspot:hover .uniform-hotspot__tooltip,
.site-shell.theme-layout-bento .uniform-hotspot:focus-visible .uniform-hotspot__tooltip,
.site-shell.theme-layout-bento .uniform-hotspot:focus .uniform-hotspot__tooltip {
  transform: translate(-50%, 0) scale(1);
}

.site-shell.theme-layout-bento .uniform-hotspot:focus-visible .uniform-hotspot__dot {
  border-color: var(--archive-cobalt);
  background: var(--archive-white);
  box-shadow: 0 5px 14px rgba(7, 26, 47, 0.24);
  transform: translate(-50%, -50%) rotate(45deg) scale(1.08);
}

.site-shell.theme-layout-bento .uniform-hotspot:active .uniform-hotspot__dot {
  transform: translate(-50%, -50%) rotate(45deg) scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .site-shell.theme-layout-bento .uniform-hotspot:hover .uniform-hotspot__dot {
    border-color: var(--archive-cobalt);
    background: var(--archive-white);
    box-shadow: 0 5px 14px rgba(7, 26, 47, 0.24);
    transform: translate(-50%, -50%) rotate(45deg) scale(1.08);
  }
}

.site-shell.theme-layout-bento .gallery-card__thumb,
.site-shell.theme-layout-bento .content-card__image,
.site-shell.theme-layout-bento .summary-gallery-strip img {
  border-radius: 0;
}

.site-shell.theme-layout-bento .gallery-lightbox__dialog {
  background: var(--archive-navy);
  border: 1px solid rgba(220, 233, 245, 0.35);
  border-radius: 2px;
}

.site-shell.theme-layout-bento .gallery-lightbox__media {
  display: grid;
  min-height: 12rem;
  place-items: center;
}

.site-shell.theme-layout-bento .floating-whatsapp {
  color: var(--archive-white);
  background: var(--archive-cobalt);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(7, 26, 47, 0.28);
}

.site-shell.theme-layout-bento .public-popup {
  color: var(--archive-white) !important;
  background: var(--archive-blue) !important;
  border: 1px solid rgba(220, 233, 245, 0.4);
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(7, 26, 47, 0.35);
  width: min(560px, calc(100vw - 2rem));
  min-height: 0;
  max-height: calc(100dvh - 2rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-shell.theme-layout-bento .public-popup .btn-popup {
  color: var(--archive-blue);
  background: var(--archive-white);
}

.site-shell.theme-layout-bento .public-popup__image {
  max-height: min(280px, 36dvh);
  object-fit: contain;
  background: rgba(220, 233, 245, 0.08);
  border-radius: 1px;
}

.site-shell.theme-layout-bento .public-popup__close {
  z-index: 2;
  color: var(--archive-white);
  background: rgba(7, 26, 47, 0.5);
  border-radius: 1px;
}

.site-shell.theme-layout-bento .site-footer {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  color: rgba(255, 253, 248, 0.72);
  background: var(--archive-navy);
  border-top: 1px solid rgba(220, 233, 245, 0.25);
}

.site-shell.theme-layout-bento .site-footer :where(h3, h4) { color: var(--archive-white); font-family: var(--archive-serif); }
.site-shell.theme-layout-bento .site-footer a { color: var(--archive-ice); }
.site-shell.theme-layout-bento .footer-grid { gap: clamp(2rem, 5vw, 5rem); }
.site-shell.theme-layout-bento .footer-bar { border-top-color: rgba(220, 233, 245, 0.2); }
.site-shell.theme-layout-bento .social-link { color: var(--archive-white); background: transparent; border: 1px solid rgba(220, 233, 245, 0.35); border-radius: 1px; }

/* Motion is progressive enhancement: everything remains visible without JS. */
.site-shell.theme-layout-bento.archive-motion-ready [data-archive-reveal] {
  opacity: 0;
  transform: translateY(26px);
}

.site-shell.theme-layout-bento.archive-motion-ready [data-archive-reveal].is-archive-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 480ms ease-out, transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--archive-delay, 0ms);
}

.site-shell.theme-layout-bento.archive-motion-ready [data-archive-hero] > * {
  opacity: 0;
  transform: translateY(18px);
}

.site-shell.theme-layout-bento.archive-motion-ready [data-archive-hero].is-archive-visible > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 550ms ease-out, transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .site-shell.theme-layout-bento .nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
  .site-shell.theme-layout-bento .archive-home-ledger__item:hover { color: var(--archive-navy); background: var(--archive-ice); }
  .site-shell.theme-layout-bento .archive-home-ledger__item:hover .archive-home-ledger__copy small,
  .site-shell.theme-layout-bento .archive-home-ledger__item:hover .archive-home-ledger__index { color: var(--archive-blue); }
  .site-shell.theme-layout-bento .archive-home-hero__band:hover { background: var(--archive-blue); }
  .site-shell.theme-layout-bento .btn:hover { transform: translateY(-2px); }
  .site-shell.theme-layout-bento .btn-primary:hover { color: var(--archive-white); background: var(--archive-cobalt); border-color: var(--archive-cobalt); }
  .site-shell.theme-layout-bento .floating-whatsapp:hover { background: var(--archive-blue); transform: translateY(-3px); }
}

@media (max-width: 1100px) {
  .site-shell.theme-layout-bento .archive-home-hero__grid {
    grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
    grid-template-rows: minmax(570px, auto) auto;
  }

  .site-shell.theme-layout-bento .archive-home-hero__band { grid-row: 2; }
  .site-shell.theme-layout-bento .home-values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-shell.theme-layout-bento .section-head.centered > div { grid-template-columns: minmax(160px, 0.3fr) 1fr; }
  .site-shell.theme-layout-bento .section-head.centered p { grid-column: 2; }
}

@media (max-width: 860px) {
  .site-shell.theme-layout-bento .site-header-inner { min-height: 78px; padding-inline: 1.25rem; }
  .site-shell.theme-layout-bento .site-nav { color: var(--archive-white); background: var(--archive-navy); border-top: 1px solid rgba(220, 233, 245, 0.2); }
  .site-shell.theme-layout-bento .nav-dropdown { background: rgba(220, 233, 245, 0.08); border-color: rgba(220, 233, 245, 0.2); box-shadow: none; }
  .site-shell.theme-layout-bento .nav-dropdown-link { color: var(--archive-white); }
  .site-shell.theme-layout-bento .archive-home-hero__grid { display: flex; flex-direction: column; }
  .site-shell.theme-layout-bento .archive-home-hero__media { min-height: 52vw; border-left: 0; border-top: 1px solid rgba(220, 233, 245, 0.3); }
  .site-shell.theme-layout-bento .archive-home-hero__statement { min-height: 460px; }
  .site-shell.theme-layout-bento .archive-home-hero__band { grid-template-columns: auto 1fr auto; }
  .site-shell.theme-layout-bento .archive-home-hero__band > span:not(.archive-home-hero__band-icon, .archive-home-hero__band-action) { display: none; }
  .site-shell.theme-layout-bento .section-wrap { width: min(100% - 2.5rem, 1420px); }
  .site-shell.theme-layout-bento .section-head.centered > div { display: block; }
  .site-shell.theme-layout-bento .section-head.centered .eyebrow { margin-bottom: 1rem; }
  .site-shell.theme-layout-bento .home-cta-panel { grid-template-columns: 1fr; }
  .site-shell.theme-layout-bento .page-hero-cover { min-height: auto; padding-top: min(54vw, 430px); }
  .site-shell.theme-layout-bento .page-hero-cover::after { inset: 0 0 auto; height: min(54vw, 430px); }
  .site-shell.theme-layout-bento .page-hero-cover__inner { display: block; width: min(100% - 2.5rem, 1420px); }
  .site-shell.theme-layout-bento .page-hero-cover__copy { padding: 3.5rem 0 4.5rem; }
  .site-shell.theme-layout-bento .timeline-grid::before {
    left: 18px;
    transform: none;
  }
  .site-shell.theme-layout-bento .timeline-card,
  .site-shell.theme-layout-bento .timeline-card:nth-child(odd),
  .site-shell.theme-layout-bento .timeline-card:nth-child(even) {
    min-height: 0;
    padding-block: 2.5rem;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
  }
  .site-shell.theme-layout-bento .timeline-card::before {
    left: 18px;
    top: 3.1rem;
  }
  .site-shell.theme-layout-bento .timeline-card:nth-child(odd) .timeline-card__copy,
  .site-shell.theme-layout-bento .timeline-card:nth-child(even) .timeline-card__copy {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    padding: 0 0 0 1.25rem;
    text-align: left;
  }
  .site-shell.theme-layout-bento .timeline-card:nth-child(odd) .timeline-card__media,
  .site-shell.theme-layout-bento .timeline-card:nth-child(even) .timeline-card__media {
    width: min(100% - 1.25rem, 520px);
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin: 1.5rem 0 0 1.25rem;
  }
}

@media (max-width: 640px) {
  .site-shell.theme-layout-bento .brand-mark { width: 62px; height: 62px; }
  .site-shell.theme-layout-bento .brand-copy strong { font-size: 1rem; }
  .site-shell.theme-layout-bento .brand-copy small { font-size: 0.58rem; }
  .site-shell.theme-layout-bento .public-popup { width: min(360px, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 1.35rem; gap: 0.85rem; }
  .site-shell.theme-layout-bento .public-popup__image { max-height: 32dvh; }
  .site-shell.theme-layout-bento .archive-home-hero__media { min-height: 72vw; }
  .site-shell.theme-layout-bento .archive-home-hero__statement { min-height: 0; padding: 4rem 1.4rem; }
  .site-shell.theme-layout-bento .archive-home-hero__statement h1 { font-size: clamp(2.75rem, 13vw, 4.6rem); line-height: 0.98; }
  .site-shell.theme-layout-bento .archive-home-hero__band { min-height: 96px; padding-inline: 1.25rem; grid-template-columns: auto 1fr; }
  .site-shell.theme-layout-bento .archive-home-hero__band-action { display: none; }
  .site-shell.theme-layout-bento .section-wrap { width: min(100% - 2rem, 1420px); padding-block: 4.5rem; }
  .site-shell.theme-layout-bento .section-head h2 { font-size: clamp(2.6rem, 14vw, 4.3rem); }
  .site-shell.theme-layout-bento :where(.home-pillars-grid, .home-values-grid, .values-grid, .feature-grid, .content-grid, .gallery-grid, .downloads-grid) { grid-template-columns: 1fr !important; }
  .site-shell.theme-layout-bento .home-pillar-carousel__slide { width: min(76%, 420px); height: 84%; }
  .site-shell.theme-layout-bento .home-pillar-carousel__slide img { padding: 8px; }
  .site-shell.theme-layout-bento .home-pillar-carousel__toolbar { grid-template-columns: auto 1fr auto; }
  .site-shell.theme-layout-bento .home-pillar-carousel__pagination { grid-column: 1 / -1; grid-row: 2; gap: 4px; }
  .site-shell.theme-layout-bento .home-pillar-carousel__dot { width: 14px; }
  .site-shell.theme-layout-bento .home-cta-panel { padding: 4rem 1rem; }
  .site-shell.theme-layout-bento .home-cta-form { display: grid; grid-template-columns: 1fr; }
  .site-shell.theme-layout-bento .page-hero-cover__inner { width: min(100% - 2rem, 1420px); }
  .site-shell.theme-layout-bento .page-hero-cover__copy h1,
  .site-shell.theme-layout-bento .page-hero-cover--solid .page-hero-cover__copy h1 { font-size: clamp(3.2rem, 17vw, 5.4rem); }
  .site-shell.theme-layout-bento .timeline-card,
  .site-shell.theme-layout-bento .timeline-card:nth-child(odd),
  .site-shell.theme-layout-bento .timeline-card:nth-child(even) { padding-block: 2rem; }
  .site-shell.theme-layout-bento .timeline-card::before { top: 2.6rem; }
  .site-shell.theme-layout-bento .timeline-card__media { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .site-shell.theme-layout-bento *,
  .site-shell.theme-layout-bento *::before,
  .site-shell.theme-layout-bento *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .site-shell.theme-layout-bento.archive-motion-ready [data-archive-reveal],
  .site-shell.theme-layout-bento.archive-motion-ready [data-archive-hero] > * {
    opacity: 1;
    transform: none;
  }
}
