/* ============================================================
   IRONMAN — Perelman School of Medicine Athletics
   LIGHT THEME · Official Penn palette (Penn Blue + Penn Red)
   ============================================================ */

:root {
  /* Official University of Pennsylvania colors */
  --penn-blue: #011f5b;
  --penn-red:  #990000;
  --red:       #990000;
  --red-deep:  #7a0000;
  --blue-2:    #17357e;   /* lighter navy for accents */

  /* light surfaces */
  --bg:        #f4f6fb;
  --surface:   #ffffff;
  --surface-2: #eef2f9;
  --line:      rgba(1,31,91,.12);
  --line-2:    rgba(1,31,91,.07);

  /* text */
  --ink:   #0c1a3d;   /* headings (near navy) */
  --body:  #38445f;   /* body copy */
  --muted: #6b7796;

  /* podium */
  --gold:   #c69a35;
  --silver: #9aa6bb;
  --bronze: #b06a33;

  --shadow:    0 10px 30px rgba(1,31,91,.08);
  --shadow-lg: 0 18px 46px rgba(1,31,91,.14);

  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--body);
  background:
    radial-gradient(1100px 500px at 88% -12%, rgba(153,0,0,.06), transparent 60%),
    radial-gradient(950px 620px at -6% 0%, rgba(1,31,91,.09), transparent 55%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: "Oswald", "Inter", sans-serif;
  letter-spacing: .02em; line-height: 1; color: var(--ink);
}
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: "Oswald", sans-serif; text-transform: uppercase;
  letter-spacing: .28em; font-size: .74rem; color: var(--muted);
  border-left: 3px solid var(--red); padding-left: .7rem;
}

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1.25rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__chip {
  background: var(--penn-blue); border-radius: 8px; padding: 7px 12px;
  display: flex; align-items: center; box-shadow: 0 4px 14px rgba(1,31,91,.18);
}
.brand__logo { height: 30px; width: auto; display: block; }
.brand__athletes {
  font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; color: var(--penn-blue); font-size: 1.02rem;
}
.nav__menu { display: flex; gap: .35rem; }
.nav__link {
  font-family: "Oswald", sans-serif; text-transform: uppercase;
  letter-spacing: .12em; font-size: .92rem; font-weight: 600;
  color: var(--muted); padding: .5rem .9rem; border-radius: 6px;
  position: relative; transition: color .2s var(--ease);
}
.nav__link:hover { color: var(--penn-blue); }
.nav__link--active { color: var(--penn-blue); }
.nav__link--active::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .26rem;
  height: 3px; background: var(--red); border-radius: 2px;
}
.nav__toggle { display: none; background: none; border: 0; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--penn-blue); display: block; transition: .2s; }

/* ===================== NEWS BANNER ===================== */
.news { max-width: var(--maxw); margin: 2rem auto 0; padding: 1.2rem 1.25rem 0; }
.news__head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem;
}
.news__label {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.15rem; text-transform: uppercase; letter-spacing: .12em; color: var(--penn-blue);
}
.tick {
  width: 10px; height: 10px; background: var(--red); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(153,0,0,.5); animation: pulse 1.9s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(153,0,0,.45); }
  70% { box-shadow: 0 0 0 9px rgba(153,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(153,0,0,0); }
}

/* auto-scrolling marquee */
.news__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.news__track {
  display: flex; gap: 1rem; width: max-content;
  padding: .3rem 0 .8rem;
  animation: marquee var(--marquee-duration, 40s) linear infinite;
}
.news__track:hover { animation-play-state: paused; }
.news__group { display: flex; gap: 1rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 0.5rem)); }
}
@media (prefers-reduced-motion: reduce) {
  .news__track { animation: none; }
  .news__viewport { overflow-x: auto; }
}

.news-card {
  flex: 0 0 320px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 1.2rem 1.25rem; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.news-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(153,0,0,.35); }
.news-card__meta { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.news-card__tag {
  font-family: "Oswald", sans-serif; font-size: .64rem; font-weight: 600;
  letter-spacing: .16em; color: #fff; background: var(--red);
  padding: .2rem .5rem; border-radius: 3px;
}
.news-card__date { font-size: .72rem; color: var(--muted); letter-spacing: .05em; }
.news-card__title {
  font-family: "Inter", sans-serif; font-weight: 700; font-size: 1.05rem;
  line-height: 1.25; margin-bottom: .45rem; color: var(--ink);
}
.news-card__blurb { font-size: .86rem; color: var(--muted); line-height: 1.45; }

/* ===================== THE TEAM ===================== */
.team, .races { max-width: var(--maxw); margin: 0 auto; padding: 2.8rem 1.25rem 4rem; }
.team__intro, .races__intro { margin-bottom: 2.2rem; }
.team__title {
  font-weight: 700; font-size: clamp(3.2rem, 11vw, 7rem);
  text-transform: uppercase; margin: .5rem 0 .4rem; color: var(--penn-blue);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem;
}
.team__title span { color: var(--red); }
.team__sub { color: var(--muted); max-width: 46ch; font-size: 1.02rem; }

.team__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem;
}
.athlete {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; position: relative; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  animation: rise .5s var(--ease) backwards; animation-delay: calc(var(--i) * 60ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.athlete:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(153,0,0,.4); }
.athlete__media {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: radial-gradient(130% 120% at 70% 0%, var(--blue-2), var(--penn-blue) 55%, #01123a);
}
.athlete__img { width: 100%; height: 100%; object-fit: cover; }
.athlete__num {
  position: absolute; top: .7rem; right: .8rem;
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.05rem;
  color: rgba(255,255,255,.9);
  background: rgba(1,18,58,.4); border: 1px solid rgba(255,255,255,.22);
  padding: .1rem .5rem; border-radius: 5px; backdrop-filter: blur(4px);
}
/* auto avatar */
.avatar {
  width: 100%; height: 100%; display: grid; place-items: center; position: relative;
  background:
    linear-gradient(135deg, rgba(153,0,0,.4), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 10px, transparent 10px 20px);
}
.avatar__initials {
  font-family: "Oswald", sans-serif; font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 3.4rem); color: rgba(255,255,255,.95); letter-spacing: .04em;
}
.avatar__bib {
  position: absolute; bottom: -6px; right: 10px;
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 3.6rem; color: rgba(255,255,255,.08);
}
.athlete__body { padding: 1rem 1.1rem 1.2rem; position: relative; }
.athlete__body::before {
  content: ""; position: absolute; left: 0; top: 0; width: 46px; height: 4px; background: var(--red);
}
.athlete__role {
  font-family: "Oswald", sans-serif; text-transform: uppercase;
  font-size: .7rem; letter-spacing: .2em; color: var(--red);
}
.athlete__name {
  font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: 1.5rem; margin: .25rem 0 .15rem; color: var(--penn-blue);
}
.athlete__events { color: var(--muted); font-size: .88rem; margin-bottom: .9rem; }
.athlete__stats { display: flex; gap: 1.6rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.athlete__stats div { display: flex; flex-direction: column; }
.athlete__stats b { font-family: "Oswald", sans-serif; font-size: 1.3rem; color: var(--penn-blue); }
.athlete__stats span { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ===================== RACES ===================== */
.races__filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.chip {
  font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .1em;
  font-size: .82rem; font-weight: 500; cursor: pointer;
  color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem;
  transition: .2s var(--ease);
}
.chip:hover { color: var(--penn-blue); border-color: rgba(153,0,0,.45); }
.chip--active { color: #fff; background: var(--red); border-color: var(--red); }

.races__list { display: flex; flex-direction: column; gap: 1.6rem; }
.race {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow);
}
.race__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(1,31,91,.05), transparent 45%);
}
.race__type {
  font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: .68rem;
  letter-spacing: .2em; color: #fff; background: var(--penn-blue);
  padding: .22rem .55rem; border-radius: 4px;
}
.race__name {
  font-weight: 700; text-transform: uppercase; font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin: .5rem 0 .3rem; color: var(--penn-blue);
}
.race__meta { color: var(--muted); font-size: .86rem; }
.race__count {
  font-family: "Oswald", sans-serif; font-size: .8rem; letter-spacing: .1em;
  color: var(--muted); white-space: nowrap; padding-top: .3rem;
}
.race__tablewrap { overflow-x: auto; }
.race__table { width: 100%; border-collapse: collapse; min-width: 480px; }
.race__table thead th {
  text-align: left; font-family: "Oswald", sans-serif; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
  color: var(--muted); padding: .8rem 1.4rem; border-bottom: 1px solid var(--line);
}
.race__table tbody td { padding: .85rem 1.4rem; border-bottom: 1px solid var(--line-2); font-size: .95rem; color: var(--body); }
.race__table tbody tr:last-child td { border-bottom: 0; }
.race__place span {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  font-family: "Oswald", sans-serif; font-weight: 700; border-radius: 7px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--penn-blue);
}
.race__athlete { font-weight: 600; color: var(--ink); }
.race__time { font-family: "Oswald", sans-serif; letter-spacing: .04em; font-size: 1.02rem; color: var(--penn-blue); }
.race__note { color: var(--muted); font-size: .84rem; }

.podium td { background: rgba(1,31,91,.03); }
.podium--gold   .race__place span { background: linear-gradient(160deg,#e9c765,#b98f2c); color:#3a2c05; border-color: transparent; }
.podium--silver .race__place span { background: linear-gradient(160deg,#eef1f6,#a7b1c3); color:#1f2735; border-color: transparent; }
.podium--bronze .race__place span { background: linear-gradient(160deg,#e0a06a,#a6612f); color:#2a1607; border-color: transparent; }

/* ===================== FOOTER ===================== */
.footer { border-top: 1px solid var(--line); margin-top: 3rem; background: var(--surface); }
.footer__partners { max-width: var(--maxw); margin: 0 auto; padding: 2.4rem 1.25rem 2rem; }
.footer__partners-title {
  font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .2em;
  font-size: .82rem; color: var(--muted); text-align: center; margin-bottom: 1.3rem;
}
.partners {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch;
}
.partner {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-height: 92px;
  display: grid; place-items: center; padding: 1rem 1.1rem; text-align: center; overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(153,0,0,.35); }
.partner img { max-width: 100%; max-height: 58px; width: auto; object-fit: contain; }
.partner--dark { background: var(--penn-blue); border-color: var(--penn-blue); }
.partner--dark img { max-height: 48px; }
.partner__name {
  font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; font-size: .82rem; line-height: 1.25; color: var(--penn-blue);
}
.footer__bar { border-top: 1px solid var(--line); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 1.3rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer__brand { font-family: "Oswald", sans-serif; letter-spacing: .14em; font-size: .9rem; color: var(--penn-blue); }
.footer__meta { color: var(--muted); font-size: .82rem; }

/* ===================== NEWS "full list" LINK + HINT ===================== */
.news__more { display: flex; justify-content: flex-end; margin-top: .2rem; }
.news__morelink {
  font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .12em;
  font-size: .82rem; font-weight: 600; color: var(--red);
  padding: .3rem 0; border-bottom: 2px solid transparent; transition: .2s var(--ease);
}
.news__morelink:hover { border-bottom-color: var(--red); }
.team__hint {
  margin-top: .8rem; color: var(--body); max-width: 60ch; font-size: .95rem; line-height: 1.5;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: 8px; padding: .8rem 1rem;
}

/* make athlete cards behave as buttons */
.athlete {
  display: block; width: 100%; text-align: left; font: inherit; color: inherit;
  cursor: pointer; padding: 0;
}
.athlete__cta {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem;
  font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .08em;
  font-size: .8rem; font-weight: 600; color: #fff; background: var(--red);
  padding: .55rem .95rem; border-radius: 8px; transition: background .2s var(--ease);
}
.athlete:hover .athlete__cta { background: var(--red-deep); }
.athlete__cta-arrow { transition: transform .2s var(--ease); }
.athlete:hover .athlete__cta-arrow { transform: translateX(3px); }

/* ===================== ATHLETE MODAL ===================== */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(6,16,40,.55); backdrop-filter: blur(3px);
  padding: 1.2rem; overflow-y: auto;
}
.modal.open { display: grid; place-items: start center; }
.modal__panel {
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  width: min(720px, 100%); margin: 3vh 0; position: relative; box-shadow: var(--shadow-lg);
  animation: rise .3s var(--ease);
}
.modal__close {
  position: absolute; top: .8rem; right: .9rem; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--penn-blue); font-size: 1.4rem; line-height: 1;
  cursor: pointer; transition: .2s var(--ease);
}
.modal__close:hover { background: var(--red); color: #fff; border-color: var(--red); }
.modal__content { padding: 1.6rem; }
.modal__hero { display: flex; gap: 1.3rem; align-items: stretch; }
.modal__media {
  flex: 0 0 150px; border-radius: 12px; overflow: hidden;
  background: radial-gradient(130% 120% at 70% 0%, var(--blue-2), var(--penn-blue) 55%, #01123a);
  aspect-ratio: 3/4;
}
.modal__name {
  font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: 2rem; color: var(--penn-blue); margin: .2rem 0 .2rem;
}
.modal__events { color: var(--muted); font-size: .92rem; margin-bottom: .6rem; }
.modal__bio { color: var(--body); font-size: .92rem; line-height: 1.5; margin-bottom: .9rem; }
.modal__stats { display: flex; gap: 1.6rem; }
.modal__stats div { display: flex; flex-direction: column; }
.modal__stats b { font-family: "Oswald", sans-serif; font-size: 1.4rem; color: var(--penn-blue); }
.modal__stats span { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.modal__section { margin-top: 1.6rem; }
.modal__h {
  font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .12em;
  font-size: .92rem; color: var(--penn-blue); margin-bottom: .7rem;
  padding-bottom: .4rem; border-bottom: 2px solid var(--line);
}
.modal__empty { color: var(--muted); text-align: center; padding: 1rem; }
.modal__section .race__table { min-width: 380px; }
.modal__section .race__tablewrap {
  border: 1px solid var(--line); border-radius: 10px; overflow: auto; background: var(--surface);
}
.fund-callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: 10px; padding: 1.1rem 1.2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.fund-callout__org { font-family: "Oswald", sans-serif; font-size: 1.15rem; color: var(--penn-blue); text-transform: uppercase; letter-spacing: .04em; }
.fund-callout__links { display: flex; gap: .6rem; flex-wrap: wrap; }

/* buttons */
.btn {
  font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .1em;
  font-size: .82rem; font-weight: 600; padding: .6rem 1.1rem; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer; transition: .2s var(--ease); white-space: nowrap;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); }
.btn--ghost { background: transparent; color: var(--penn-blue); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--penn-blue); }

/* ===================== FULL NEWS LIST (news.html) ===================== */
.news-page, .fund-page { max-width: var(--maxw); margin: 0 auto; padding: 2.8rem 1.25rem 4rem; }
.newslist { display: flex; flex-direction: column; gap: 1rem; }
.newsitem {
  display: flex; gap: 1.4rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.3rem 1.4rem; box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.newsitem:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.newsitem__date {
  flex: 0 0 120px; font-family: "Oswald", sans-serif; font-weight: 600;
  color: var(--penn-blue); letter-spacing: .04em; padding-top: .15rem;
}
.newsitem__tag {
  display: inline-block; font-family: "Oswald", sans-serif; font-size: .62rem; font-weight: 600;
  letter-spacing: .16em; color: #fff; background: var(--red); padding: .18rem .5rem;
  border-radius: 3px; margin-bottom: .5rem;
}
.newsitem__title { font-family: "Inter", sans-serif; font-weight: 700; font-size: 1.12rem; color: var(--ink); margin-bottom: .35rem; }
.newsitem__blurb { color: var(--muted); font-size: .92rem; line-height: 1.5; }

/* ===================== RACE LOG TABLE ===================== */
.racelog { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.rl-table { min-width: 720px; }
.rl-table .race__time .unit { font-family: "Inter", sans-serif; font-size: .7rem; color: var(--muted); margin-left: .15rem; letter-spacing: 0; }
.rl-date { white-space: nowrap; font-family: "Oswald", sans-serif; color: var(--penn-blue); }
.rl-event { font-weight: 600; color: var(--ink); }
.rl-badges { display: block; margin-top: .3rem; }
.rl-cat {
  display: inline-block; font-family: "Oswald", sans-serif; font-size: .6rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--penn-blue);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px;
  padding: .1rem .4rem; margin-right: .5rem; vertical-align: middle;
}
.rl-note { display: block; margin-top: .25rem; color: var(--muted); font-size: .78rem; font-weight: 400; line-height: 1.4; }
.rl-div { color: var(--muted); font-size: .85rem; white-space: nowrap; }

/* ===================== FUNDRAISING LIST (fundraising.html) ===================== */
.fundlist { display: flex; flex-direction: column; gap: 1rem; }
.fundrow {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.1rem 1.3rem; box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.fundrow:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(153,0,0,.4); }
.fundrow__athlete { display: flex; align-items: center; gap: 1rem; }
.fundrow__avatar {
  width: 58px; height: 58px; border-radius: 10px; overflow: hidden; flex: none;
  background: radial-gradient(130% 120% at 70% 0%, var(--blue-2), var(--penn-blue) 55%, #01123a);
}
.fundrow__avatar .avatar__initials { font-size: 1.4rem; }
.fundrow__avatar .avatar__bib { display: none; }
.fundrow__avatar .athlete__img { width: 100%; height: 100%; object-fit: cover; }
.fundrow__name { font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase; font-size: 1.25rem; color: var(--penn-blue); }
.fundrow__org { color: var(--muted); font-size: .9rem; }
.fundrow__org b { color: var(--body); }
.fundrow__cta { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 600; color: var(--red); white-space: nowrap; }

/* fundraising panel (modal) — list of causes */
.fundmodal__list { display: flex; flex-direction: column; gap: .7rem; }
.fundmodal__item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: 10px; padding: 1rem 1.2rem; transition: .2s var(--ease);
}
.fundmodal__item:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateX(3px); }
.fundmodal__org { font-family: "Oswald", sans-serif; font-size: 1.05rem; color: var(--penn-blue); text-transform: uppercase; letter-spacing: .03em; }
.fundmodal__go { font-family: "Oswald", sans-serif; font-weight: 600; letter-spacing: .08em; color: var(--red); white-space: nowrap; }
.modal__media--sm { flex: 0 0 96px; aspect-ratio: 1; }

/* ===================== TEAM HERO (photo background) ===================== */
.team-hero {
  position: relative; border-radius: 16px; overflow: hidden;
  min-height: clamp(320px, 44vw, 520px);
  display: flex; align-items: flex-end;
  background: #05091c url("../assets/teamphoto.jpg") center 26% / cover no-repeat;
  margin-bottom: 1.3rem; box-shadow: var(--shadow-lg);
}
.team-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(1,31,91,.10) 0%, rgba(1,31,91,.38) 42%, rgba(4,8,28,.84) 100%);
}
.team-hero__content { position: relative; z-index: 1; padding: 2rem 2rem 2.1rem; max-width: 760px; }
.eyebrow--light { color: rgba(255,255,255,.82); border-left-color: var(--red); }
.team__title--light { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.team-hero__bar { display: block; width: 74px; height: 6px; background: var(--red); border-radius: 3px; margin: .8rem 0 1rem; box-shadow: 0 2px 12px rgba(153,0,0,.5); }
.team__sub--light { color: rgba(255,255,255,.92); text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.team__hint-heart { color: var(--red); }

/* ===================== ATHLETE FUNDRAISING AFFORDANCE ===================== */
.athlete__ribbon {
  position: absolute; top: .8rem; left: 0; z-index: 2;
  background: var(--red); color: #fff;
  font-family: "Oswald", sans-serif; font-weight: 600; font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .7rem .3rem .85rem; border-radius: 0 6px 6px 0;
  box-shadow: 0 3px 12px rgba(153,0,0,.4);
}

/* ===================== FEATURED ARTICLE BANNER (fundraising) ===================== */
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch;
  border-radius: 16px; overflow: hidden; margin-bottom: 2rem; min-height: 300px;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 26px 64px rgba(1,31,91,.22); }
.feature__photo { background-size: cover; background-position: center 28%; min-height: 240px; }
.feature__panel {
  background: linear-gradient(160deg, #012f7a 0%, var(--penn-blue) 100%);
  border-left: 5px solid var(--red);
  color: #fff; padding: 2rem 2.2rem; display: flex; flex-direction: column; justify-content: center;
}
.feature__eyebrow {
  font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .18em;
  font-size: .72rem; color: rgba(255,255,255,.82); margin-bottom: .7rem;
}
.feature__title {
  font-family: "Oswald", sans-serif; font-weight: 700; line-height: 1.08;
  font-size: clamp(1.4rem, 2.8vw, 2rem); color: #fff; margin-bottom: .7rem;
}
.feature__sub { font-size: .95rem; line-height: 1.5; color: rgba(255,255,255,.92); margin-bottom: 1.1rem; }
.feature__cta {
  font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .08em;
  font-size: .82rem; font-weight: 600; color: #fff; align-self: flex-start;
  border-bottom: 2px solid rgba(255,255,255,.55); padding-bottom: .2rem;
}
.feature:hover .feature__cta { border-bottom-color: #fff; }

/* home hero title on one line */
.team__title--home { font-size: clamp(1.35rem, 5.6vw, 3.6rem); flex-wrap: nowrap; white-space: nowrap; }

/* ===================== FUNDRAISING BOARD (fundraising.html) ===================== */
.fundboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.fundcard {
  display: flex; flex-direction: column; text-align: left; width: 100%; font: inherit; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.fundcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(153,0,0,.4); }
.fundcard:hover .athlete__cta { background: var(--red-deep); }
.fundcard:hover .athlete__cta-arrow { transform: translateX(3px); }
.fundcard__media { aspect-ratio: 16/10; overflow: hidden; background: radial-gradient(130% 120% at 70% 0%, var(--blue-2), var(--penn-blue) 55%, #01123a); }
.fundcard__media .athlete__img { width: 100%; height: 100%; object-fit: cover; }
.fundcard__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 1rem; }
.fundcard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.fundcard__name { font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase; font-size: 1.4rem; color: var(--penn-blue); margin-top: .15rem; }
.fundcard__raised { text-align: right; flex: none; }
.fundcard__raised b { display: block; font-family: "Oswald", sans-serif; font-size: 1.55rem; color: var(--red); line-height: 1; }
.fundcard__raised span { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fundcard__orgs { display: flex; flex-wrap: wrap; gap: .6rem; }
.orgchip {
  background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: .5rem .75rem; height: 54px;
  display: inline-flex; align-items: center; justify-content: center;
}
.orgchip img { max-height: 34px; max-width: 130px; width: auto; object-fit: contain; display: block; }
.orgchip--text { font-family: "Oswald", sans-serif; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--penn-blue); }
.fundcard__soon { color: var(--muted); font-size: .9rem; }
.fundcard .athlete__cta { align-self: flex-start; }

/* ===================== RACE ROWS (races.html) ===================== */
.races__rows { display: flex; flex-direction: column; gap: .8rem; }
.racerow {
  display: flex; align-items: center; gap: 1.3rem; width: 100%; text-align: left; font: inherit;
  cursor: pointer; position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.1rem 1.3rem 1.1rem 1.5rem; box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.racerow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--red); }
.racerow:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); border-color: rgba(153,0,0,.4); }
.racerow__date {
  flex: 0 0 118px; font-family: "Oswald", sans-serif; font-weight: 600;
  color: var(--penn-blue); letter-spacing: .03em; white-space: nowrap;
}
.racerow__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.racerow__name {
  font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: 1.2rem; line-height: 1.15; color: var(--ink);
}
.racerow__meta { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .84rem; }
.racerow__cta {
  flex: none; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .08em;
  font-size: .78rem; font-weight: 600; color: var(--red);
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
}
.racerow:hover .athlete__cta-arrow { transform: translateX(3px); }
.racehead { padding-right: 2.5rem; margin-bottom: .4rem; }
.racehead .race__type { display: inline-block; margin-bottom: .6rem; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 760px) {
  .partners { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .feature__photo { min-height: 200px; aspect-ratio: 16 / 9; }
  .team-hero__content { padding: 1.5rem 1.3rem 1.6rem; }
}
@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: .5rem 1rem 1rem;
    background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
  .nav__menu.open { max-height: 340px; }
  .nav__link { padding: .8rem .6rem; }
  .nav__link--active::after { display: none; }
  .race__head { flex-direction: column; }
  .race__count { padding-top: 0; }
  .modal__hero { flex-direction: column; }
  .modal__media { flex-basis: auto; width: 160px; aspect-ratio: 4/3; }
  .newsitem { flex-direction: column; gap: .5rem; }
  .newsitem__date { flex-basis: auto; }
  .racerow { flex-wrap: wrap; gap: .45rem 1rem; padding: 1rem 1.2rem; }
  .racerow__date { flex-basis: 100%; order: -1; }
  .racerow__cta { margin-left: auto; }
}
@media (max-width: 480px) {
  .brand__athletes { display: none; }
}
