.student-handbook-page {
  --handbook-brand: #2f707d;
  --handbook-brand-dark: #1d535e;
  --handbook-brand-soft: #f1f8f9;
  --handbook-gold: #b58a4a;
  --handbook-ink: #263a3e;
  --handbook-muted: #607478;
  --handbook-border: #d5e3e6;
  --handbook-surface: #ffffff;
  --handbook-shadow: 0 14px 36px rgba(38, 75, 82, .08);
  padding-bottom: 3rem;
}

.student-handbook-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin: 1.5rem 0 1.75rem;
  padding: 2rem 2.25rem;
  border: 1px solid var(--handbook-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 15%, rgba(181, 138, 74, .11), transparent 30%),
    linear-gradient(135deg, #f8fcfc 0%, var(--handbook-brand-soft) 100%);
}

.student-handbook-kicker {
  margin-bottom: .45rem;
  color: var(--handbook-gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.student-handbook-hero h1 {
  margin: 0;
  color: var(--handbook-brand-dark);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
}

.student-handbook-hero p {
  max-width: 680px;
  margin: .75rem 0 0;
  color: var(--handbook-muted);
  font-size: 1.08rem;
}

.student-handbook-edit {
  flex: 0 0 auto;
  border-color: var(--handbook-brand) !important;
  background: transparent !important;
  color: var(--handbook-brand-dark) !important;
}

.student-handbook-edit:hover,
.student-handbook-edit:focus {
  background: var(--handbook-brand) !important;
  color: #ffffff !important;
}

.student-handbook-layout {
  align-items: flex-start;
}

.student-handbook-menu,
.student-handbook-article {
  border: 1px solid var(--handbook-border);
  border-radius: 14px;
  background: var(--handbook-surface);
  box-shadow: var(--handbook-shadow);
}

.student-handbook-menu {
  padding: 1.3rem;
}

.student-handbook-menu-title {
  margin: 0 0 1rem;
  color: var(--handbook-brand-dark);
  font-size: 1.2rem;
  font-weight: 750;
}

.student-handbook-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .2rem 0;
  border: 0;
  background: transparent;
  color: var(--handbook-brand-dark);
  font-size: 1.05rem;
  font-weight: 750;
  text-align: left;
}

.student-handbook-menu-toggle span {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.student-handbook-search {
  margin-bottom: 1.25rem;
}

.student-handbook-search label {
  display: block;
  margin-bottom: .4rem;
  color: var(--handbook-muted);
  font-size: .8rem;
  font-weight: 700;
}

.student-handbook-search-field {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .68rem .8rem;
  border: 1px solid var(--handbook-border);
  border-radius: 10px;
  background: #fbfdfd;
}

.student-handbook-search-field:focus-within {
  border-color: var(--handbook-brand);
  box-shadow: 0 0 0 3px rgba(47, 112, 125, .12);
}

.student-handbook-search-field span {
  color: var(--handbook-brand);
  font-size: 1.2rem;
  line-height: 1;
}

.student-handbook-search-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--handbook-ink);
}

.student-handbook-search-field input::placeholder {
  color: #849397;
}

.student-handbook-category {
  margin-bottom: .75rem;
  overflow: hidden;
  border: 1px solid #dce8ea;
  border-radius: 10px;
  background: #ffffff;
}

.student-handbook-category[open] {
  border-color: #c7dde1;
  box-shadow: 0 4px 14px rgba(47, 112, 125, .06);
}

.student-handbook-category:last-child {
  margin-bottom: 0;
}

.student-handbook-category-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: .9rem 1rem;
  background: #f5f9fa;
  color: var(--handbook-brand-dark);
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.student-handbook-category-title::-webkit-details-marker {
  display: none;
}

.student-handbook-category-title:hover,
.student-handbook-category-title:focus-visible {
  background: #edf5f6;
}

.student-handbook-category-title:focus-visible {
  outline: 2px solid var(--handbook-brand);
  outline-offset: -2px;
}

.student-handbook-category-arrow {
  flex: 0 0 auto;
  width: .55rem;
  height: .55rem;
  border-right: 2px solid var(--handbook-gold);
  border-bottom: 2px solid var(--handbook-gold);
  transform: rotate(-45deg);
  transition: transform 160ms ease;
}

.student-handbook-category[open] .student-handbook-category-arrow {
  transform: rotate(45deg);
}

.student-handbook-category-body {
  padding: .9rem .85rem 1rem;
  border-top: 1px solid #e4edef;
}

.student-handbook-subcategory {
  margin-top: 1.1rem;
  padding-left: .95rem;
  border-left: 2px solid #d7e5e8;
}

.student-handbook-subcategory:first-child {
  margin-top: 0;
}

.student-handbook-subcategory-title {
  margin: 0 0 .3rem;
  color: #64777b;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.student-handbook-links {
  margin: 0;
  padding: 0;
  border: 0;
}

.student-handbook-menu-link,
.student-handbook-menu-current {
  position: relative;
  display: block;
  margin: .08rem 0;
  padding: .5rem .7rem;
  border-radius: 8px;
  color: #355b63;
  font-size: .94rem;
  line-height: 1.3;
  text-decoration: none;
}

.student-handbook-menu-link:hover,
.student-handbook-menu-link:focus {
  background: var(--handbook-brand-soft);
  color: var(--handbook-brand-dark);
  text-decoration: none;
}

.student-handbook-menu-current {
  padding-left: 1.55rem;
  background: #e7f2f4;
  color: var(--handbook-brand-dark);
  font-weight: 750;
}

.student-handbook-menu-current::before {
  position: absolute;
  top: .58rem;
  left: .7rem;
  color: var(--handbook-gold);
  content: "›";
  font-size: 1.1rem;
  line-height: 1;
}

.student-handbook-no-results {
  margin: .5rem 0 0;
  padding: .85rem;
  border-radius: 8px;
  background: var(--handbook-brand-soft);
  color: var(--handbook-muted);
  font-size: .92rem;
}

.student-handbook-article {
  min-height: 520px;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.student-handbook-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 0 .65rem;
  color: var(--handbook-gold);
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .035em;
}

.student-handbook-breadcrumb span {
  color: #a9b4b6;
}

.student-handbook-article-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.student-handbook-article-heading h2 {
  max-width: 760px;
  margin: 0 0 1.35rem;
  color: var(--handbook-brand-dark);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.12;
}

.student-handbook-direct-edit {
  flex: 0 0 auto;
  margin-top: .1rem;
  padding: .48rem .7rem;
  border: 1px solid var(--handbook-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--handbook-brand-dark);
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}

.student-handbook-direct-edit:hover,
.student-handbook-direct-edit:focus {
  border-color: var(--handbook-brand);
  background: var(--handbook-brand-soft);
  color: var(--handbook-brand-dark);
  text-decoration: none;
}

.student-handbook-audience {
  margin-bottom: 1.35rem;
  padding: .85rem 1rem;
  border-left: 3px solid var(--handbook-gold);
  background: #fbf8f2;
  color: #66553b;
}

.student-handbook-summary {
  max-width: 760px;
  margin-bottom: 1.5rem;
  color: #455e63;
  font-size: 1.12rem;
  line-height: 1.65;
}

.student-handbook-body {
  max-width: 780px;
  color: var(--handbook-ink);
  font-size: 1.02rem;
  line-height: 1.75;
}

.student-handbook-body p {
  margin-bottom: 1.15rem;
}

.student-handbook-body h2,
.student-handbook-body h3,
.student-handbook-body h4,
.student-handbook-body h5 {
  color: var(--handbook-brand-dark);
}

.student-handbook-body h2,
.student-handbook-body h3,
.student-handbook-body h4 {
  margin: 2rem 0 .8rem;
  line-height: 1.25;
}

.student-handbook-body ul,
.student-handbook-body ol {
  margin: 0 0 1.35rem;
  padding-left: 1.3rem;
}

.student-handbook-body li {
  margin-bottom: .48rem;
  padding-left: .2rem;
}

.student-handbook-body a {
  color: var(--handbook-brand-dark);
  font-weight: 650;
  text-underline-offset: 3px;
}

.student-handbook-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--handbook-gold);
  background: #fbf8f2;
}

.student-handbook-body img,
.student-handbook-body iframe,
.student-handbook-body video {
  max-width: 100%;
}

.student-handbook-body table {
  width: 100%;
  margin-bottom: 1.5rem;
}

.student-handbook-studentbevis-subjects {
  max-width: 780px;
  margin-top: 2rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--handbook-border);
  color: var(--handbook-ink);
}

.student-handbook-studentbevis-subjects h3 {
  margin: 0 0 .65rem;
  color: var(--handbook-brand-dark);
  font-size: 1.2rem;
  line-height: 1.3;
}

.student-handbook-studentbevis-subjects p {
  margin: 0;
  color: var(--handbook-muted);
}

.student-handbook-studentbevis-subjects ul {
  margin: 0;
  padding-left: 1.25rem;
}

.student-handbook-studentbevis-subjects li {
  margin-bottom: .35rem;
}

.student-handbook-body th,
.student-handbook-body td {
  padding: .7rem;
  border: 1px solid var(--handbook-border);
  vertical-align: top;
}

[hidden] {
  display: none !important;
}

@media (min-width: 992px) {
  .student-handbook-menu {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}

@media (max-width: 991.98px) {
  .student-handbook-hero {
    align-items: flex-start;
    margin-top: 1rem;
    padding: 1.45rem;
  }

  .student-handbook-menu {
    padding: 1rem 1.15rem;
    box-shadow: none;
  }

  .student-handbook-menu .collapse {
    padding-top: 1rem;
  }

  .student-handbook-menu-title {
    display: none;
  }

  .student-handbook-article {
    min-height: 0;
  }
}

@media (max-width: 575.98px) {
  .student-handbook-hero {
    display: block;
  }

  .student-handbook-edit {
    margin-top: 1rem;
  }

  .student-handbook-article {
    padding: 1.25rem;
  }

  .student-handbook-article-heading {
    display: block;
  }

  .student-handbook-direct-edit {
    display: inline-block;
    margin: 0 0 1.25rem;
  }
}

@media print {
  .student-handbook-hero,
  .student-handbook-layout aside,
  .navbar,
  footer {
    display: none !important;
  }

  .student-handbook-article {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .student-handbook-layout main {
    width: 100%;
  }
}
