:root {
  --maroon: #75142a;
  --maroon-dark: #4d0c1b;
  --gold: #d4a72c;
  --cream: #fffaf0;
}

body {
  color: #27303a;
  background: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  border: 2px solid var(--gold);
}

.logo-frame--dark {
  background: transparent;
  border-radius: 50%;
  padding: 5px;
  box-shadow:
    0 0 0 1px rgba(212, 167, 44, 0.45),
    0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo-frame--light {
  background: transparent;
  border-radius: 50%;
  padding: 8px;
  box-shadow:
    0 0 0 1px rgba(117, 20, 42, 0.15),
    0 4px 14px rgba(82, 17, 38, 0.1);
}

.logo-frame--hero {
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow:
    0 0 0 1px rgba(212, 167, 44, 0.55),
    0 8px 28px rgba(0, 0, 0, 0.25),
    inset 0 1px 12px rgba(255, 255, 255, 0.08);
}

.logo-frame--hero .logo-frame__img {
  max-width: min(168px, 65vw);
  width: auto;
  height: auto;
}

.logo-frame__img {
  display: block;
  object-fit: contain;
}

.dashboard-sidebar .logo-frame-link {
  display: block;
  text-align: center;
  text-decoration: none;
}

.dashboard-sidebar .logo-frame-link:hover .logo-frame {
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px var(--gold),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

.campus-nav {
  background: linear-gradient(115deg, var(--maroon-dark), var(--maroon));
  box-shadow: 0 2px 12px #0003;
}

.navbar-brand small {
  display: block;
  font-size: 0.63rem;
  font-weight: 400;
  letter-spacing: 0.12rem;
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #3d2910;
}

.btn-gold:hover {
  background: #e5bd4c;
}

.hero {
  background: linear-gradient(120deg, #4d0c1bdd, #75142add), url("../img/hero.svg") center/cover;
  color: #fff;
  padding: 6rem 0;
}

.hero .lead {
  max-width: 650px;
}

.section-title {
  color: var(--maroon);
  font-family: Georgia, serif;
}

.text-maroon {
  color: var(--maroon);
}

.article-card {
  border: 0;
  border-top: 4px solid var(--gold);
  box-shadow: 0 7px 25px #52112612;
  height: 100%;
  transition: 0.2s;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px #52112626;
}

.article-card h3 {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  color: var(--maroon);
}

.meta-badges .badge {
  font-weight: 500;
}

.campus-footer {
  background: var(--maroon-dark);
  color: #f6e9d1;
}

.campus-footer a {
  color: #f2c95d;
  text-decoration: none;
}

.footer-bottom {
  background: #370713;
  color: #d4bd8b;
  font-size: 0.85rem;
}

.dashboard-sidebar {
  background: var(--maroon-dark);
  min-height: 100vh;
}

.dashboard-sidebar a {
  color: #f6e9d1;
  text-decoration: none;
  display: block;
  padding: 0.7rem 1rem;
  border-radius: 0.4rem;
}

.dashboard-sidebar a:hover,
.dashboard-sidebar a.active {
  background: #ffffff1d;
}

.dashboard-main {
  background: #f8f9fa;
  min-height: 100vh;
}

.stat-card {
  border: 0;
  border-left: 5px solid var(--gold);
  box-shadow: 0 3px 12px #0000000d;
}

.editor-shell {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  background: #fff;
  margin-bottom: 0.25rem;
}

.editor-toolbar {
  position: sticky;
  top: 56px;
  z-index: 1020;
  border-bottom: 1px solid #dee2e6;
}

.editor-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2rem;
  padding-inline: 0.5rem;
  line-height: 1;
}

.editor-toolbar-btn .bi {
  font-size: 1.05rem;
}

.editor-toolbar-sep {
  display: inline-block;
  width: 1px;
  height: 1.5rem;
  margin-inline: 0.15rem;
  background: #ced4da;
  align-self: center;
}

.editor-btn-h4 {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.05rem;
  font-size: 1.05rem;
}

.editor-btn-h4 sub {
  font-size: 0.65rem;
  line-height: 1;
  bottom: 0;
}

.editor-field-hint kbd {
  font-size: 0.75em;
  padding: 0.1em 0.35em;
}

.editor-pane {
  padding: 1rem 1.15rem;
  min-height: min(70vh, 720px);
  outline: none;
  overflow-y: auto;
  background: #fff;
  border-radius: 0 0 0.375rem 0.375rem;
}

.editor-pane:focus {
  box-shadow: inset 0 0 0 2px rgba(117, 20, 42, 0.12);
}

.article-content {
  font-family: Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.85;
}

.article-content h3 {
  color: var(--maroon);
  margin-top: 2rem;
  font-weight: 700;
}

.article-content h4 {
  color: #5c2030;
  margin-top: 1.25rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.editor-pane p:has(> em:only-child) {
  color: #6c757d;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.table td,
.table th {
  vertical-align: middle;
}

@media (max-width: 991px) {
  .dashboard-sidebar {
    min-height: auto;
  }

  .hero {
    padding: 4rem 0;
  }
}
