@charset "UTF-8";
/*
 * EPI-CAL site styles — one shared, phone-first design system.
 * Base rules target small screens; min-width media queries add space for larger ones.
 * Loaded after Bootstrap 5, so it overrides Bootstrap where needed.
 */

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */
:root {
  --navy: #022851;         /* UC Davis Aggie blue: header, footer, headings */
  --navy-2: #0b4a82;       /* lighter navy for hover and secondary fills */
  --blue: #1a5fc9;         /* links and buttons (≥ 4.5:1 on white) */
  --gold: #ffbf00;         /* accent */
  --gold-soft: #fff5d6;    /* callout background */
  --tint: #eef3f9;         /* alternating section background */
  --ink: #1b2330;          /* body text */
  --muted: #4a5566;        /* secondary text */
  --line: #d9e1ea;         /* borders */
  --white: #ffffff;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(2, 40, 81, .08), 0 4px 16px rgba(2, 40, 81, .06);

  --wrap: 72rem;           /* wide content (grids) */
  --prose: 44rem;          /* reading width */
  --gutter: 1rem;          /* side padding on phones */
  --band-y: 2.5rem;        /* vertical section padding on phones */

  --font: source-sans-pro, "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Legacy names still used by SmartTools */
  --primaryOne: var(--navy);
  --primaryTwo: var(--gold);
  --textLight: #ffffff;
  --textDark: #000000;
}

@media (min-width: 768px) {
  :root {
    --gutter: 1.5rem;
    --band-y: 4rem;
  }
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem; /* keep in-page anchors clear of the sticky header */
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-align: left;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body { font-size: 1.125rem; }
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;

}

h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.125rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .5em; }
li > ul, li > ol { margin-top: .5em; }

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: .15em;
}
a:hover { color: var(--navy); }

img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 100000;
  padding: .75rem 1rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}
.skip-link:focus { top: 0; color: var(--white); }

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

/* SmartTools adds margin/padding to every <section>; the layout below owns spacing. */
section { margin: 0; padding: 0; }

/* ------------------------------------------------------------------ */
/* Crisis bar                                                          */
/* ------------------------------------------------------------------ */
.crisis-bar {
  background: var(--gold);
  color: var(--navy);
  font-size: .9375rem;
  line-height: 1.35;
  padding: .5rem var(--gutter);
  text-align: center;
}
.crisis-bar p { margin: 0; }
.crisis-bar a {
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Header / navigation                                                 */
/* ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header .navbar {
  padding: .5rem 0;
}

.site-header .container-xl {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--navy);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--navy); }
.brand img { width: 44px; height: 44px; }
.brand-name {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .02em;
  line-height: 1;
}
.brand-tag {
  display: none;
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.2;
  margin-top: .2rem;
}
@media (min-width: 400px) {
  .brand-tag { display: block; }
}
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .brand-tag { display: none; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .4rem .8rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: .5rem .25rem;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
}
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] {
  color: var(--blue);
  box-shadow: inset 4px 0 0 var(--gold);
  padding-left: .9rem;
}

.translate {
  padding: .75rem .25rem .25rem;
  min-height: 2.5rem;
}
.translate select { max-width: 100%; }

@media (min-width: 1200px) {
  .brand { flex: none; }
  .site-nav abbr { text-decoration: none; cursor: inherit; }
  .site-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin: 0 0 0 1rem;
  }
  .site-nav a {
    min-height: 44px;
    padding: .25rem .55rem;
    white-space: nowrap;
    border-bottom: 0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }
  .site-nav a:hover { background: var(--tint); }
  .site-nav a[aria-current="page"] {
    padding-left: .6rem;
    box-shadow: inset 0 -3px 0 var(--gold);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }
  .crisis-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .25rem;
    padding-bottom: .25rem;
    /* line up with the .container-xl edges below */
    padding-left: calc((100% - 1140px) / 2 + var(--gutter));
    padding-right: calc((100% - 1140px) / 2 + var(--gutter));
  }
  .translate {
    padding: 0;
    min-height: 0;
  }
  .translate .goog-te-gadget { display: flex; align-items: center; gap: .5rem; color: var(--navy) !important; }
  .translate .goog-te-gadget select { margin: 0; padding: .15rem .35rem; }
}

@media (min-width: 1400px) {
  .crisis-bar {
    padding-left: calc((100% - 1320px) / 2 + var(--gutter));
    padding-right: calc((100% - 1320px) / 2 + var(--gutter));
  }
}

/* Google Translate injects a top banner that shifts the page; keep it tidy. */
.goog-te-gadget { font-size: .75rem !important; color: var(--muted) !important; }
.goog-te-gadget select { padding: .35rem; border: 1px solid var(--line); border-radius: 6px; font-size: .9375rem; }

/* ------------------------------------------------------------------ */
/* Layout primitives                                                   */
/* ------------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.prose {
  max-width: calc(var(--prose) + 2 * var(--gutter));
}

.band {
  padding: var(--band-y) 0;
}
.band--tint { background: var(--tint); }
.band--cream { background: #fffbef; }
.band--navy {
  background: var(--navy);
  color: #e8eef6;
}
.band--navy h2,
.band--navy h3,
.band--navy h4 { color: var(--white); }
.band--navy a:not(.btn-epi) { color: var(--gold); }
.band--navy a:not(.btn-epi):hover { color: var(--white); }

.band > .wrap > :last-child,
.band .prose > :last-child { margin-bottom: 0; }

.section-intro {
  color: var(--muted);
  font-size: 1.0625em;
  margin-bottom: 1.5rem;
}

.lead-text {
  font-size: 1.15em;
  line-height: 1.55;
}

.stack > * + * { margin-top: 1.5rem; }

.figure {
  margin: 1.5rem 0;
}
.figure img {
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}
.figure figcaption {
  margin-top: .5rem;
  color: var(--muted);
  font-size: .9375rem;
}

/* ------------------------------------------------------------------ */
/* Page hero                                                           */
/* ------------------------------------------------------------------ */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 13rem;
  padding: 2.5rem 0 1.75rem;
  background-color: var(--navy);
  background-image:
    linear-gradient(180deg, rgba(2, 40, 81, .15) 0%, rgba(2, 40, 81, .85) 100%),
    var(--hero-img, none);
  background-size: cover;
  background-position: var(--hero-pos, center);
  color: var(--white);
}
.page-hero h1 {
  color: var(--white);
  margin-bottom: .35rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.page-hero p {
  margin: 0;
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.45;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.page-hero .eyebrow {
  display: inline-block;
  margin-bottom: .5rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8125rem;
}
@media (min-width: 768px) {
  .page-hero {
    min-height: 20rem;
    padding: 4rem 0 2.5rem;
  }
  .page-hero p { font-size: 1.25rem; }
}

/* ------------------------------------------------------------------ */
/* Components                                                          */
/* ------------------------------------------------------------------ */

/* Buttons */
.btn-epi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .6rem 1.25rem;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.btn-epi:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-epi--outline { background: transparent; color: var(--blue); }
.btn-epi--outline:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-epi--gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-epi--gold:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

.btn-row {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
@media (min-width: 576px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
}
/* Always one button per line, equal widths (for a primary action followed by alternatives) */
.btn-row.btn-row--stack {
  flex-direction: column;
  max-width: 24rem;
}

/* Callout */
.callout {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-left: 5px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  color: var(--ink);
}
.callout h2,
.callout h3 { color: var(--navy); margin-bottom: .4em; }
.callout a:not(.btn-epi) { color: var(--blue); }
.callout > :last-child { margin-bottom: 0; }
@media (min-width: 768px) {
  .callout { padding: 1.5rem 1.75rem; }
}

/* Contact block (used on several pages) */
.contact-card {
  margin: 1.5rem 0 0;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.contact-card > :last-child { margin-bottom: 0; }
.contact-card dt { font-weight: 700; color: var(--navy); }
.contact-card dd { margin: 0 0 .5rem; overflow-wrap: anywhere; }

/* Big tappable list of links (reports, resources) */
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.link-list li { margin: 0; border-bottom: 1px solid var(--line); }
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: .75rem .25rem;
  font-weight: 600;
  text-decoration: none;
}
.link-list a::after {
  content: "\2192";
  flex: none;
  color: var(--muted);
}
.link-list a:hover { background: var(--tint); }
.link-list .meta {
  display: block;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 400;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card-grid > li { margin: 0; }
@media (min-width: 576px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 992px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease;
}
a.tile:hover {
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.tile-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--tint);
}
.tile-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.tile-media--contain img { object-fit: contain; padding: .75rem; }
.tile-body {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
  padding: 1rem 1.1rem 1.1rem;
}
.tile-title {
  margin: 0;
  color: var(--navy);
  font-size: 1.0625rem;
  line-height: 1.35;
}
.tile-meta {
  margin: 0;
  margin-top: auto;
  color: var(--muted);
  font-size: .875rem;
}
.tile audio { width: 100%; margin-top: .5rem; }

/* Responsive video embed */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 1rem 0 1.5rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #000;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Map embed */
.map-embed {
  width: 100%;
  height: 18rem;
  border: 0;
  border-radius: var(--radius);
}
@media (min-width: 768px) {
  .map-embed { height: 24rem; }
}

/* Two-column split on wider screens */
.split {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2.5rem; align-items: start; }
}

/* FAQ-style blocks */
.qa + .qa {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* On-this-page jump links (COE) */
.jump-nav {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  margin: 0;
  padding: .75rem var(--gutter);
  list-style: none;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.jump-nav li { margin: 0; flex: none; }
.jump-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .25rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.jump-nav a:hover { border-color: var(--blue); color: var(--blue); }
@media (min-width: 992px) {
  .jump-nav { justify-content: center; flex-wrap: wrap; }
}

/* ------------------------------------------------------------------ */
/* People                                                              */
/* ------------------------------------------------------------------ */
.people-tools {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.people-tools label { font-weight: 700; color: var(--navy); }
.people-tools input,
.people-tools select {
  width: 100%;
  min-height: 48px;
  padding: .5rem .9rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: var(--white);
}
.people-tools input:focus,
.people-tools select:focus { border-color: var(--blue); outline: none; }
@media (min-width: 768px) {
  .people-tools { flex-direction: row; align-items: flex-end; }
  .people-tools > div { flex: 1; }
}
.people-count { color: var(--muted); font-size: .9375rem; margin-bottom: 1rem; }

.people-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 576px) {
  .people-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (min-width: 992px) {
  .people-grid { grid-template-columns: repeat(3, 1fr); }
}
.people-grid > li { margin: 0; }

.person-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.person-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.person-card img {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--tint);
}
.person-card .person-name {
  display: block;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}
.person-card .person-title {
  display: block;
  margin-top: .2rem;
  color: var(--ink);
  font-size: .9375rem;
  line-height: 1.35;
}
.person-card .person-org {
  display: block;
  margin-top: .2rem;
  color: var(--muted);
  font-size: .875rem;
}

/* Round team photos (LEI) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 1.5rem 1rem;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.team-grid > li { margin: 0; }
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.team-member img,
.team-member .initials {
  width: 8.5rem;
  height: 8.5rem;
  border: 4px solid var(--gold);
  border-radius: 50%;
  object-fit: cover;
}
.team-member .initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint);
  color: var(--navy);
  font-size: 2.5rem;
}
.team-member:hover span:last-child { text-decoration: underline; }

/* Person detail modal (content loaded from person.php) */
#modal {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: auto;
  padding: 1rem var(--gutter) 3rem;
  background: var(--white);
}
#modal > div {
  width: 100%;
  max-width: var(--prose);
  margin: 0 auto;
}
.modal-close {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  align-self: flex-end;
  min-height: 44px;
  padding: .4rem .9rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.modal-close:hover { background: var(--navy); color: var(--white); }
.modal-close > i { font-size: 1.1rem; }
.ST-Person-Image {
  display: block;
  width: 10rem;
  height: 10rem;
  max-width: none;
  margin: 1rem auto 1.25rem;
  border-radius: 50%;
  object-fit: cover;
}
#modal h2 { text-align: center; margin-bottom: .25rem; }
#modal .person-modal-title { text-align: center; color: var(--muted); font-size: 1.0625rem; margin-bottom: 1.5rem; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.site-footer {
  background: var(--navy);
  color: #d5deea;
  padding: 2.5rem 0 1.5rem;
  font-size: 1rem;
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--gold); }
.site-footer h2 {
  color: var(--gold);
  font-size: .875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .9rem;
}
.footer-brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  padding: 2px;
}
.footer-brand strong { display: block; color: var(--white); font-size: 1.125rem; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 1.5rem;
}
.footer-links li { margin: 0; break-inside: avoid; }
.footer-links a {
  display: inline-block;
  padding: .35rem 0;
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.footer-contact p { margin-bottom: .5rem; overflow-wrap: anywhere; }
.footer-legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .875rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Balanced line breaks for page and section headings only */
h1, h2, .tile-title { text-wrap: balance; }
