:root {
  --navy: #1B3068;
  --navy-dark: #0F1E45;
  --navy-mid: #2C4A8A;
  --bronze: #9B6A2F;
  --bronze-mid: #C49A3C;
  --bronze-pale: #FBF3E3;
  --bronze-rule: #D4A84B;
  --off-white: #F8F7F4;
  --rule: #DDD9D0;
  --text: #1C1C2E;
  --text-mid: #4A4A62;
  --white: #FFFFFF;
  --highlight: #E8EDF8;
  --danger: #8B2E2E;
  --ok: #1F5C3A;
  --shadow: 0 18px 50px rgba(15, 30, 69, 0.12);
  --radius: 2px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--off-white);
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bronze); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

.site-header {
  background: var(--navy-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--bronze-rule);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 88px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}
.brand-logo img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.brand-aise {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}
.brand-aise img {
  display: block;
  width: 200px;
  height: auto;
  max-width: min(200px, 34vw);
  object-fit: contain;
}
.brand {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.brand__label {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
}
.brand__sub {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-mid);
  white-space: nowrap;
}
.inst-bar {
  background: transparent;
  border-top: 1px solid rgba(212, 168, 75, 0.35);
}
.inst-bar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: center;
}
.inst-logos {
  display: block;
  width: 270px;
  max-width: 100%;
  height: auto;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  padding: 0.45rem 0.75rem;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
}
.site-nav a[aria-current="page"],
.site-nav a:hover { color: var(--bronze-mid); }
.nav-user {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-left: 0.5rem;
}
.nav-ext {
  color: var(--bronze-mid) !important;
  border-bottom: 1px solid rgba(196, 154, 60, 0.45);
  padding-bottom: 1px;
}
.nav-logout {
  border: 1px solid rgba(255,255,255,0.28);
  padding: 0.35rem 0.7rem;
}
.hours-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 100%;
}
.hours-block h3 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--navy-dark);
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}
.hours-block .table-wrap,
.hours-block table.data {
  width: 100%;
  min-width: 0;
}
.site-footer a { color: var(--bronze-mid); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.site-footer__marks {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.site-footer__brand .footer-logo {
  display: inline-flex;
  width: 56px;
  line-height: 0;
}
.site-footer__brand .footer-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: 0.95;
}
.footer-project {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}
.footer-aise {
  display: inline-flex;
  line-height: 0;
}
.footer-aise img {
  width: 200px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.footer-project .inst-logos {
  width: 270px;
  max-width: 100%;
}
.site-footer__meta { text-align: right; }
.login-aside__marks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}
.login-aside__marks .inst-logos {
  width: 270px;
  max-width: 100%;
  margin-top: 0.15rem;
}
.login-aside__logo {
  display: inline-flex;
  background: transparent;
  padding: 0;
  text-decoration: none;
  line-height: 0;
}
.login-aside__logo img {
  width: 125px;
  height: 125px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}
.login-aside__logo--foot {
  margin-bottom: 0.35rem;
  opacity: 0.9;
}
.login-aside__aise {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
  background: transparent;
}
.login-aside__aise img {
  width: 300px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent;
}
.login-aside__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.login-aside__link { margin-top: 1.25rem; }
.login-aside__link a {
  color: var(--bronze-mid);
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 154, 60, 0.45);
}
.login-aside__link a:hover { color: var(--white); }

.hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, #243f78 100%);
  color: var(--white);
  padding: 3.5rem 1.25rem 3rem;
}
.hero__inner { max-width: var(--max); margin: 0 auto; }
.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-mid);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero__rule {
  width: 56px;
  height: 3px;
  background: var(--bronze-rule);
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}
.hero p {
  max-width: 42rem;
  color: rgba(255,255,255,0.72);
  font-weight: 300;
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.pill {
  display: inline-block;
  background: var(--bronze);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
}
.pill--ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.8);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.75rem 1.25rem;
}
.section + .section { padding-top: 0.5rem; }

.section__head {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.9rem;
}
.section__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.section h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: var(--navy-dark);
  margin: 0 0 0.4rem;
  line-height: 1.2;
}
.section__lead {
  color: var(--text-mid);
  margin: 0;
  max-width: 46rem;
}

.panel {
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.35rem 1.2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 1.1rem 1.15rem;
}
.stat__label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 600;
}
.stat__value {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  color: var(--navy-dark);
  line-height: 1.1;
  margin: 0.35rem 0;
}
.stat__note { color: var(--text-mid); font-size: 0.86rem; margin: 0; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--bronze-rule);
}
.timeline li {
  position: relative;
  padding: 0 0 1.4rem 1.25rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 3px var(--bronze-pale);
}
.timeline__date {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 600;
}
.timeline h3 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.05rem;
  color: var(--navy-dark);
}
.timeline p { margin: 0; color: var(--text-mid); }

.deliverable-group { margin-bottom: 1.5rem; }
.deliverable-group h3 {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}
.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.file-list li:last-child { border-bottom: 0; }
.file-list__label { color: var(--text); font-weight: 500; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--navy);
  color: var(--white);
  border: 0;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--navy-mid); color: var(--white); }
.btn--bronze { background: var(--bronze); }
.btn--bronze:hover { background: var(--bronze-mid); color: var(--white); }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
}
.btn--block { width: 100%; }

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--white); }
table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
table.data th,
table.data td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.data th {
  background: var(--navy-dark);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
table.data tr:nth-child(even) td { background: var(--highlight); }
table.data td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.note {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--bronze-pale);
  border-left: 3px solid var(--bronze);
  color: var(--text-mid);
  font-size: 0.9rem;
}

.site-footer {
  margin-top: 2rem;
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 1.5rem 1.25rem;
}
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.site-footer p { margin: 0; }
.site-footer__meta { color: rgba(255,255,255,0.4); }

/* Login */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--off-white);
}
.login-aside {
  background: linear-gradient(165deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.login-aside__rule {
  width: 56px;
  height: 3px;
  background: var(--bronze-rule);
  margin: 1.2rem 0 1.5rem;
}
.login-aside h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}
.login-aside p { color: rgba(255,255,255,0.7); max-width: 28rem; }
.login-aside__foot {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-mid);
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}
.login-card {
  width: min(100%, 420px);
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  padding: 2rem 1.6rem;
}
.login-card h2 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0 0 0.35rem;
  color: var(--navy-dark);
}
.login-card .lead {
  color: var(--text-mid);
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.field input {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--off-white);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--text);
}
.field input:focus {
  outline: 2px solid var(--navy-mid);
  outline-offset: 1px;
  background: var(--white);
}
.alert {
  background: #F8E8E8;
  border-left: 3px solid var(--danger);
  color: var(--danger);
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.login-help {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-mid);
}

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-aside { min-height: auto; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.75rem;
  }
  .site-header__inner { flex-wrap: wrap; }
  .site-nav.is-open { display: flex; }
  .file-list li { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .hero { padding: 2.4rem 1rem 2rem; }
  .section { padding: 2rem 1rem; }
  .panel { padding: 1rem; }
  .site-footer__inner { flex-direction: column; }
  .site-footer__meta { text-align: left; }
  .brand-lockup { gap: 0.6rem; }
  .brand-logo img { width: 40px; height: 40px; }
  .brand-aise img { width: min(160px, 42vw); }
  .brand__sub { display: none; }
  .login-aside__logo img {
    width: min(125px, 36vw);
    height: auto;
    aspect-ratio: 1;
  }
  .login-aside__aise img { width: min(300px, 100%); }
  .inst-logos,
  .login-aside__marks .inst-logos,
  .footer-project .inst-logos { width: min(270px, 100%); }
}
