:root {
  --focus-ring: #f0c864;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  gap: 0;
  padding: 0;
  border-radius: 50%;
}

.theme-toggle-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  left: 14px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-180%);
  background: #fffdf8;
  color: #082a23;
  border: 2px solid #c8993e;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.links a[aria-current="page"] {
  color: #efd58e;
  opacity: 1;
  border-bottom: 1px solid currentColor;
}

.site-mobile-menu {
  display: none;
  position: relative;
}

.site-mobile-menu summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid #d8b864;
  border-radius: 2px;
  color: #f4dfaa;
  padding: 9px 14px;
  font-weight: 700;
}

.site-mobile-menu summary::-webkit-details-marker {
  display: none;
}

.site-mobile-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 100;
  width: min(310px, calc(100vw - 28px));
  max-height: min(70vh, 560px);
  overflow-y: auto;
  background: #082a23;
  border: 1px solid #d8b864;
  box-shadow: 0 18px 45px #03140fc2;
  padding: 8px;
}

.site-mobile-menu nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 12px 14px;
  border-bottom: 1px solid #ffffff1c;
}

.site-mobile-menu nav a:last-child {
  border-bottom: 0;
}

.site-mobile-menu nav a:hover,
.site-mobile-menu nav a:focus-visible,
.site-mobile-menu nav a[aria-current="page"] {
  background: #ffffff12;
  color: #f2d88e;
}

.eyebrow,
.scope,
.status-note,
.visitor-stat span,
.visitor-group h3 {
  font-size: max(.78rem, 12.5px) !important;
}

html[data-theme="dark"] .eyebrow[style],
html[data-theme="dark"] .scope,
html[data-theme="dark"] .status-note {
  color: #f0d88f !important;
}

html[data-theme="dark"] .button,
html[data-theme="dark"] .scholarship-link,
html[data-theme="dark"] .notice {
  color: #082a23 !important;
}

@media (max-width: 820px) {
  header .nav > .links {
    display: none !important;
  }

  .site-mobile-menu {
    display: block;
    margin-left: auto;
  }

  .nav {
    align-items: center !important;
  }

  .theme-toggle {
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 420px) {
  .theme-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
