/* Shared Faculty Hub visual layer — applies to staff-facing pages without changing page workflows. */
:root {
  --faculty-forest: #063c24;
  --faculty-green: #08733f;
  --faculty-green-mid: #2e7d32;
  --faculty-paper: #fffdf8;
  --faculty-ink: #172019;
  --faculty-line: rgba(8, 115, 63, 0.18);
}

html { scroll-padding-top: 102px; }

body { background: #f4f6f4 !important; color: var(--faculty-ink); }

.site-header,
body > header {
  position: sticky !important;
  top: 0;
  z-index: 300;
  isolation: isolate;
  overflow: hidden;
  min-height: 64px;
  background: linear-gradient(112deg, var(--faculty-forest) 0%, var(--faculty-green) 54%, var(--faculty-green-mid) 100%) !important;
  box-shadow: 0 4px 14px rgba(8, 52, 31, 0.24) !important;
}

.site-header::before,
body > header::before {
  content: '';
  position: absolute;
  right: 22px;
  bottom: -38px;
  width: 144px;
  height: 144px;
  background: url('images/hvs-school-logo-transparent.png') center / contain no-repeat;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.15;
  transform: rotate(7deg);
  pointer-events: none;
  z-index: -1;
}

.site-header::after,
body > header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 52%, rgba(255,255,255,0.10) 100%);
  pointer-events: none;
  z-index: -2;
}

.site-header > *,
body > header > * { position: relative; z-index: 1; }

.site-header .hdr-logo,
body > header .hdr-logo {
  width: 48px !important;
  height: 48px !important;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.faculty-header-badge {
  position: absolute;
  left: 57px;
  bottom: 4px;
  z-index: 2 !important;
  width: 34px;
  height: 34px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  object-fit: contain;
  box-shadow: 0 4px 11px rgba(0,0,0,0.20);
}

.site-header .hdr-title-block,
.site-header .hdr-text,
body > header .hdr-title-block,
body > header .hdr-text,
body > header > div:not(.hdr-right):not(.header-right):not(.header-actions) { margin-left: 18px; }

.site-header .hdr-page-name,
body > header .hdr-page-name { font-weight: 850 !important; letter-spacing: -0.02em; }

.site-header .hdr-school,
.site-header .hdr-faculty,
body > header .hdr-school,
body > header .hdr-faculty { color: rgba(255,255,255,0.90) !important; }

.site-header .hdr-right,
.site-header .header-right,
body > header .hdr-right,
body > header .header-right { margin-left: auto; }

.site-header .hub-home-btn,
.site-header .hdr-home,
body > header .hub-home-btn,
body > header .hdr-home {
  background: #fff !important;
  color: var(--faculty-green) !important;
  border-color: #fff !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 7px rgba(0,0,0,0.14) !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap;
}

.site-header .hdr-btn.hdr-home,
body > header .hdr-btn.hdr-home {
  background: #fff !important;
  color: var(--faculty-green) !important;
  border-color: #fff !important;
  border-radius: 999px !important;
  text-decoration: none !important;
}

.site-header .hdr-btn,
body > header .hdr-btn {
  background: rgba(255,255,255,0.20) !important;
  border-color: rgba(255,255,255,0.54) !important;
  border-radius: 999px !important;
  backdrop-filter: blur(6px);
}

button,
input,
select,
textarea { transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #111;
  outline-offset: 2px;
}

button:active,
.hub-home-btn:active { transform: scale(0.98); }

@media (hover: hover) and (pointer: fine) {
  .site-header .hub-home-btn:hover,
  .site-header .hdr-home:hover,
  body > header .hub-home-btn:hover,
  body > header .hdr-home:hover {
    background: #edf7ef !important;
    border-color: #edf7ef !important;
    transform: translateY(-1px);
  }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 88px; }

  .site-header,
  body > header { min-height: 56px; }

  .site-header::before,
  body > header::before {
    right: -10px;
    bottom: -33px;
    width: 112px;
    height: 112px;
    opacity: 0.12;
  }

  .site-header .hdr-logo,
  body > header .hdr-logo { width: 39px !important; height: 39px !important; }

  .faculty-header-badge {
    left: 45px;
    bottom: 3px;
    width: 28px;
    height: 28px;
  }

  .site-header .hdr-title-block,
  .site-header .hdr-text,
  body > header .hdr-title-block,
  body > header .hdr-text,
  body > header > div:not(.hdr-right):not(.header-right):not(.header-actions) { margin-left: 13px; }
}

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