body
{
  font-family: 'Source Sans 3', sans-serif;
  color: #3a3a3a;
  background-color: #f9f9f9;
  letter-spacing: 0;
  scroll-behavior: smooth;
}

.font-serif-display
{
  font-family: "Source Serif 4", Georgia, serif;
}

.btn-primary
{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.625rem;
  background-color: #606060;
  color: #f0f0f0;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 1px 4px 5px 0px hsl(0 0% 0% / 0.03);
}

.btn-primary:hover
{
  background-color: #4a4a4a;
  transform: translateY(-1px);
}

.btn-secondary
{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.625rem;
  background-color: #ffffff;
  border: 1px solid #747272;
  color: #3a3a3a;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-secondary:hover
{
  background-color: #e3e3e3;
}

.border-theme
{
  border-color: #747272;
}

.footer-link
{
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #505050;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover
{
  color: #5d4037;
  transform: translateX(3px);
}

.legal-modal[hidden]
{
  display: none;
}

.legal-modal
{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgb(0 0 0 / 0.55);
  backdrop-filter: blur(4px);
}

.legal-modal-panel
{
  width: min(100%, 52rem);
  max-height: min(90vh, 48rem);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #747272;
  border-radius: 0.625rem;
  box-shadow: 0 25px 60px -20px hsl(0 0% 0% / 0.35), 0 10px 25px -10px hsl(0 0% 0% / 0.15);
}

.legal-modal-content
{
  max-height: calc(min(90vh, 48rem) - 5rem);
  overflow-y: auto;
}

.footer-social
{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #747272;
  border-radius: 9999px;
  color: #505050;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-social:hover
{
  color: #5d4037;
  background-color: #f3eac8;
  border-color: #8c7b5a;
  transform: translateY(-3px);
}

.nav-link
{
  position: relative;
  color: #505050;
  transition: color 0.2s ease;
}

.nav-link::after
{
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  background-color: #8c7b5a;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover
{
  color: #5d4037;
}

.nav-link:hover::after
{
  transform: scaleX(1);
}

.card-hover
{
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card-hover:hover
{
  transform: translateY(-6px);
  border-color: #8c7b5a;
}

.card-hover > i,
.card-hover > div:first-child > i
{
  transition: transform 0.25s ease, color 0.25s ease;
}

.card-hover:hover > i,
.card-hover:hover > div:first-child > i
{
  transform: scale(1.12);
  color: #8c7b5a;
}

@media (prefers-reduced-motion: reduce)
{
  .card-hover,
  .card-hover > i,
  .card-hover > div:first-child > i
  {
    transition: none;
  }

  .card-hover:hover
  {
    transform: none;
  }
}

/* ===== Consultation Wizard ===== */
.wizard-progress-track
{
  position: relative;
  height: 4px;
  border-radius: 9999px;
  background-color: #e3e3e3;
  overflow: hidden;
}

.wizard-progress-fill
{
  height: 100%;
  border-radius: 9999px;
  background-color: #5d4037;
  transition: width 0.4s ease;
}

.wizard-step[hidden]
{
  display: none;
}

.wizard-step
{
  animation: wizard-step-in 0.35s ease;
}

@keyframes wizard-step-in
{
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.wizard-tile
{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid #747272;
  border-radius: 0.625rem;
  background-color: #ffffff;
  color: #3a3a3a;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.wizard-tile i
{
  transition: transform 0.2s ease, color 0.2s ease;
}

.wizard-tile:hover
{
  border-color: #8c7b5a;
  transform: translateY(-3px);
}

.wizard-tile:hover i
{
  transform: scale(1.1);
  color: #8c7b5a;
}

.wizard-tile:focus-visible
{
  outline: 2px solid #a0a0a0;
  outline-offset: 2px;
}

.wizard-tile[aria-checked="true"]
{
  border-color: #5d4037;
  background-color: #f3eac8;
  color: #5d4037;
}

.wizard-tile[aria-checked="true"] i
{
  color: #5d4037;
}

.wizard-back
{
  display: inline-flex;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #505050;
  transition: color 0.2s ease;
}

.wizard-back:hover
{
  color: #5d4037;
}

.wizard-error
{
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: #b3261e;
}

.wizard-error[hidden]
{
  display: none;
}

#consult-wizard input[aria-invalid="true"],
#consult-wizard textarea[aria-invalid="true"]
{
  border-color: #b3261e;
}

.wizard-review-list > div
{
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid #747272;
}

.wizard-review-list > div:first-child
{
  border-top: none;
}

@media (prefers-reduced-motion: reduce)
{
  .wizard-progress-fill,
  .wizard-step,
  .wizard-tile,
  .wizard-tile i
  {
    transition: none;
    animation: none;
  }
}

/* ===== Admissions Roadmap Slider ===== */
.roadmap-slider
{
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1.5rem;
  background: transparent;
  cursor: pointer;
}

.roadmap-slider::-webkit-slider-runnable-track
{
  height: 0.375rem;
  background: transparent;
}

.roadmap-slider::-moz-range-track,
.roadmap-slider::-moz-range-progress
{
  height: 0.375rem;
  background: transparent;
}

.roadmap-slider::-webkit-slider-thumb
{
  -webkit-appearance: none;
  appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -0.5625rem;
  border-radius: 9999px;
  background-color: #5d4037;
  border: 3px solid #f3eac8;
  box-shadow: 1px 4px 5px 0px hsl(0 0% 0% / 0.15);
  transition: transform 0.15s ease;
}

.roadmap-slider::-moz-range-thumb
{
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background-color: #5d4037;
  border: 3px solid #f3eac8;
  box-shadow: 1px 4px 5px 0px hsl(0 0% 0% / 0.15);
}

.roadmap-slider:hover::-webkit-slider-thumb
{
  transform: scale(1.1);
}

.roadmap-slider:focus-visible
{
  outline: none;
}

.roadmap-slider:focus-visible::-webkit-slider-thumb,
.roadmap-slider:focus-visible::-moz-range-thumb
{
  outline: 2px solid #a0a0a0;
  outline-offset: 3px;
}

.roadmap-track,
.roadmap-fill
{
  pointer-events: none;
}

.roadmap-fill
{
  transition: width 0.3s ease;
}

.roadmap-node-label
{
  padding: 0.35rem 0.5rem;
  border-radius: 0.375rem;
  color: #505050;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.roadmap-node-label:hover
{
  color: #5d4037;
}

.roadmap-node-label:focus-visible
{
  outline: 2px solid #a0a0a0;
  outline-offset: 2px;
}

.roadmap-node-label[aria-current="true"]
{
  color: #5d4037;
  background-color: #f3eac8;
}

.roadmap-panel
{
  transition: border-color 0.25s ease;
}

@media (prefers-reduced-motion: reduce)
{
  .roadmap-fill,
  .roadmap-slider::-webkit-slider-thumb
  {
    transition: none;
  }
}

/* ===== Acceptance Matrix ===== */
.matrix-tile
{
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid #747272;
  border-radius: 0.625rem;
  background-color: #ffffff;
  cursor: default;
}

.matrix-tile:focus-visible
{
  outline: 2px solid #a0a0a0;
  outline-offset: 2px;
}

.matrix-tile-face,
.matrix-tile-profile
{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  text-align: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.matrix-tile-face
{
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
}

.matrix-tile-face img
{
  z-index: 0;
}

.matrix-tile-face .matrix-tile-overlay
{
  z-index: 1;
}

.matrix-tile-face p
{
  position: relative;
  z-index: 2;
}

.matrix-tile-profile
{
  opacity: 0;
  transform: translateY(6px);
  background-color: #f3eac8;
  pointer-events: none;
}

.matrix-tile:hover .matrix-tile-face,
.matrix-tile:focus-within .matrix-tile-face
{
  opacity: 0;
  transform: translateY(-6px);
}

.matrix-tile:hover .matrix-tile-profile,
.matrix-tile:focus-within .matrix-tile-profile
{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce)
{
  .matrix-tile-face,
  .matrix-tile-profile
  {
    transition: none;
  }

  .matrix-tile:hover .matrix-tile-face,
  .matrix-tile:focus-within .matrix-tile-face,
  .matrix-tile-profile
  {
    transform: none;
  }
}
