html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  background: #bf5700;
  color: #ffffff;
  padding: 0.7rem 1rem;
  border-radius: 0 0 8px 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 0;
}

/* ── UT INSTITUTIONAL BAR ── */
.ut-institutional-bar {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  padding: 0.45rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ut-institutional-bar > a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.ut-institutional-bar img {
  height: 30px;
  width: auto;
  display: block;
}

.system-bar {
  background: #0d0d0d;
  padding: 0.28rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  border-bottom: 1px solid #1e1e1e;
}

.sb-brand {
  color: rgba(255, 255, 255, 0.60);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.sb-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.sb-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #4ade80;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sb-spark {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(191, 87, 0, 0.08);
  border: 1px solid rgba(191, 87, 0, 0.25);
  color: #bf5700;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sb-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
}

.sb-spark-icon {
  font-size: 0.62rem;
  line-height: 1;
  color: #ffb36c;
}

.sb-link {
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
  transition: color 0.15s;
}

.sb-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

.sb-spark:hover {
  background: rgba(191, 87, 0, 0.15);
  border-color: rgba(191, 87, 0, 0.4);
  color: #9b4500;
}

nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  border-bottom: 3px solid #bf5700;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.nav-brand-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: min(360px, 32vw);
  object-fit: contain;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
  z-index: 501;
}

.nav-item-group {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-link {
  display: block;
  padding: 0.4rem 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.15s;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-link.active {
  color: #d06b00;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.nav-open .dropdown {
  display: block;
}

.nav-disclosure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.nav-disclosure:hover,
.nav-disclosure:focus-visible,
.nav-item.nav-open .nav-disclosure {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-disclosure-icon {
  display: inline-block;
  font-size: 0.7rem;
  transition: transform 0.15s ease;
}

.nav-disclosure[aria-expanded="true"] .nav-disclosure-icon {
  transform: rotate(180deg);
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 520;
  background: #111111;
  border: 1px solid #333333;
  border-top: 2px solid #bf5700;
  border-radius: 0 0 6px 6px;
  padding: 0.5rem 0;
  min-width: 210px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.dropdown-hybrid {
  left: 50%;
  transform: translateX(-34%);
  width: min(820px, calc(100vw - 3rem));
  padding: 0;
  overflow: hidden;
}

.dropdown-hybrid-services {
  width: min(820px, calc(100vw - 3rem));
}

.dropdown-hybrid-about {
  transform: translateX(-30%);
  width: min(280px, calc(100vw - 3rem));
}

.dropdown-hybrid-top,
.dropdown-hybrid-footer {
  padding: 0.65rem 0.8rem;
  background: rgba(255, 255, 255, 0.02);
}

.dropdown-hybrid-top {
  border-bottom: 1px solid #2d2d2d;
}

.dropdown-hybrid-footer {
  border-top: 1px solid #2d2d2d;
}

.dropdown-hybrid-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.dropdown-hybrid-about .dropdown-hybrid-grid {
  grid-template-columns: 1fr;
}

.dd-section {
  padding: 0.6rem 0;
  border-right: 1px solid #2d2d2d;
}

.dd-section:nth-child(3n) {
  border-right: none;
}

.dropdown-hybrid-about .dd-section {
  border-right: none;
}

.dd-section-title {
  display: block;
  padding: 0.08rem 1rem 0.35rem;
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dd-link {
  display: block;
  padding: 0.42rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.79rem;
  line-height: 1.35;
  text-decoration: none;
  transition: all 0.15s;
}

.dd-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.dd-link.dd-active {
  color: #bf5700;
}

.dd-link-footer {
  font-weight: 700;
}

.nav-link:focus-visible,
.nav-disclosure:focus-visible,
.dd-link:focus-visible,
.sb-link:focus-visible,
.sb-status:focus-visible,
.sb-spark:focus-visible,
.breadcrumb a:focus-visible,
.breadcrumb-nav a:focus-visible,
.breadcrumb-inner a:focus-visible,
.bc-item:focus-visible,
.footer-links a:focus-visible,
.footer-bottom a:focus-visible,
.footer-bottom-links a:focus-visible {
  outline: 2px solid #bf5700;
  outline-offset: 2px;
}

.dd-divider {
  border: none;
  border-top: 1px solid #333333;
  margin: 0.35rem 0;
}

.dd-label {
  display: block;
  padding: 0.3rem 1.25rem 0.1rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-cta {
  background: #bf5700;
  color: #ffffff !important;
  padding: 0.4rem 1rem !important;
  border-radius: 4px;
}

.nav-cta:hover {
  background: #d4600a !important;
}

.nav-cta-secondary {
  background: #005f86;
  color: #ffffff !important;
  padding: 0.4rem 1rem !important;
  border-radius: 4px;
}

.nav-cta-secondary:hover,
.nav-cta-secondary.active {
  background: #0a78a6 !important;
}

.breadcrumb,
.breadcrumb-band {
  background: #faf9f7;
  border-bottom: 1px solid #e2ddd8;
}

.breadcrumb {
  position: static;
  height: auto;
  box-shadow: none;
  padding: 0.6rem 2rem;
  color: #6b6560;
  font-size: 0.8rem;
}

.breadcrumb a,
.breadcrumb-nav a,
.breadcrumb-inner a,
.bc-item {
  color: #b35000;
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb-nav a:hover,
.breadcrumb-inner a:hover,
.bc-item:hover {
  text-decoration: underline;
}

.breadcrumb-sep,
.bc-sep {
  margin: 0 0.4rem;
  color: #7d7774;
}

.breadcrumb-inner,
.breadcrumb-nav {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-current,
.bc-current,
.breadcrumb span.breadcrumb-current {
  color: #595250;
  font-weight: 500;
}

footer,
.site-footer {
  background: #111111;
  color: rgba(255, 255, 255, 0.62);
  padding: 4rem 2rem 2rem;
  font-size: 0.82rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top,
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-brand-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.60);
}

.footer-brand-desc,
.footer-tagline {
  font-size: 0.83rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.60);
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
  margin-bottom: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a,
.footer-col ul li a,
.footer-bottom a,
.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.15s;
}

/* Inline body copy links — underline ensures non-color distinction per WCAG 1.4.1 */
main a:not([class]) {
  text-decoration: underline;
}

.footer-links a:hover,
.footer-col ul li a:hover,
.footer-bottom a:hover,
.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-copy {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
}

.page-ai-assisted {
  width: min(1120px, calc(100% - 2rem));
  margin: 3rem auto 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(191, 87, 0, 0.18);
  background: linear-gradient(135deg, rgba(191, 87, 0, 0.06), rgba(191, 87, 0, 0.02));
}

.page-ai-assisted-icon {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(191, 87, 0, 0.1);
  color: var(--ut-burntorange, #bf5700);
  font-size: 0.95rem;
  font-weight: 700;
}

.page-ai-assisted-label {
  color: #5b2c00;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-ai-assisted-copy p {
  margin: 0.25rem 0 0;
  color: #6e6258;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

@media (max-width: 1100px) {
  nav,
  .system-bar,
  .ut-institutional-bar {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-links {
    gap: 0;
  }

  .nav-brand-logo {
    height: 24px;
    max-width: 240px;
  }

  .dropdown-hybrid {
    left: 0;
    transform: none;
    width: min(720px, calc(100vw - 2rem));
  }

  .dropdown-hybrid-services .dropdown-hybrid-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dropdown-hybrid-about {
    width: min(280px, calc(100vw - 2rem));
  }
}

@media (max-width: 700px) {
  .dropdown-hybrid {
    width: min(520px, calc(100vw - 1.25rem));
  }

  .dropdown-hybrid-grid {
    grid-template-columns: 1fr;
  }

  .dd-section {
    border-right: none;
    border-bottom: 1px solid #2d2d2d;
  }

  .dd-section:last-child {
    border-bottom: none;
  }


  .footer-top,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .page-ai-assisted {
    width: min(100%, calc(100% - 1.5rem));
    grid-template-columns: 1fr;
  }
}

/* ── Hamburger button (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.nav-hamburger-icon,
.nav-hamburger-icon::before,
.nav-hamburger-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-hamburger-icon {
  position: relative;
}

.nav-hamburger-icon::before,
.nav-hamburger-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-hamburger-icon::before { top: -7px; }
.nav-hamburger-icon::after  { top:  7px; }

nav.nav-mobile-open .nav-hamburger-icon {
  background: transparent;
}
nav.nav-mobile-open .nav-hamburger-icon::before {
  transform: translateY(7px) rotate(45deg);
}
nav.nav-mobile-open .nav-hamburger-icon::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-brand-logo {
    max-width: 220px;
  }
}

@media (max-width: 1024px) {
  .system-bar {
    padding: 0.28rem 1rem;
  }

  .sb-brand {
    display: none;
  }

  nav {
    position: relative;
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    padding: 0.5rem 1rem;
    align-items: center;
  }

  .nav-brand {
    flex: 1;
    flex-shrink: 1;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0.5rem 0 1rem;
    gap: 0;
    order: 3;
  }

  nav.nav-mobile-open .nav-links {
    display: flex;
  }

  .nav-item,
  .nav-item-group {
    width: 100%;
  }

  .nav-link {
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    white-space: normal;
  }

  .nav-link.nav-cta,
  .nav-link.nav-cta-secondary {
    margin-top: 0.5rem;
    text-align: center;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border: 1px solid #2d2d2d;
    border-radius: 6px;
    margin: 0.25rem 0.75rem;
  }

  .dropdown-hybrid-services .dropdown-hybrid-grid,
  .dropdown-hybrid-about .dropdown-hybrid-grid {
    grid-template-columns: 1fr;
  }
}
