:root {
  --ink: #17202f;
  --muted: #5d697a;
  --line: #dbe3ee;
  --paper: #ffffff;
  --mist: #f4f8fb;
  --blue: #274b8e;
  --teal: #187c82;
  --gold: #d6962a;
  --rose: #b94d5e;
  --logo-purple: #83679E;
/*  --logo-purple: #7a4aa3;
*/  --logo-blue: #536899;
  --logo-green: #98bd42;
  --logo-gold: #cd9942;
  --cu-navy: #1B3150;
  --cu-navy-deep: #0f1e33;
  --cu-navy-mid: #2a4a6e;
  --cu-gold: #CFB87C;
  --cu-gold-light: #e8d9a8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: #f7fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: var(--blue); font-weight: 750; text-decoration: none; }
a:hover { color: var(--logo-green); text-decoration: underline; }
.wrap { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 22px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand img { width: 320px; max-width: 54vw; height: auto; display: block; margin-left: -31px; }
.navlinks { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.navlinks a {
  color: #293449;
  font-size: .92rem;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
}
.navlinks a:hover { background: var(--mist); text-decoration: none; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 44px;
  padding: 0 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 30px rgba(39,75,142,.2);
  font-weight: 800;
  white-space: nowrap;
}
.button i { position: absolute; left: 16px; }
.button:hover { background: #1c3e79; text-decoration: none; }
.button.secondary {
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}
.button.secondary:hover { background: #fff; color: var(--logo-green); }
.hero {
  padding: 64px 0 54px;
  background:
    linear-gradient(120deg, rgba(226,234,241,.9), rgba(238,243,248,.8)),
    url("../img/Penrose_Tiling.jpg") center/cover;
  border-bottom: 1px solid var(--line);
}

/* ── Home page variant: navy/blue Penrose-tiling header (news.html style) ── */
.hero-navy {
  padding: 64px 0 54px;
  background:
    linear-gradient(120deg, rgba(15,30,51,.93), rgba(27,49,80,.88) 55%, rgba(42,74,110,.85)),
    url("../img/Penrose_Tiling.jpg") center/cover;
  border-bottom: 6px solid var(--cu-gold);
}
.hero-navy h1 { color: #fff; }
.hero-navy .lead { color: rgba(255,255,255,.84); }
.hero-navy .page-label {
  display: block;
  margin-bottom: 10px;
  color: var(--cu-gold);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-navy .eyebrow {
  color: #fff;
  background: rgba(207,184,124,.18);
  border-color: rgba(207,184,124,.35);
}
.hero-navy .button {
  border: 2px solid var(--cu-gold);
}
.hero-navy .fact {
  background: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.9);
}
.hero-navy .fact strong { color: var(--cu-navy); }
.hero-navy .fact span { color: var(--muted); }
.hero-navy .feature-photo {
  border-color: rgba(255,255,255,.25);
  box-shadow: 0 24px 70px rgba(0,0,0,.4);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, .72fr);
  gap: 34px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  width: fit-content;
  gap: 8px;
  align-items: center;
  padding: 7px 11px;
  color: #163c3f;
  background: rgba(24,124,130,.12);
  border: 1px solid rgba(24,124,130,.22);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: uppercase;
}
h1 {
  margin: 12px 0 16px;
  max-width: 780px;
  font-size: 5.2rem;
  line-height: .98;
  letter-spacing: 0;
}
.lead {
  max-width: 670px;
  margin: 0 0 26px;
  color: #334155;
  font-size: 1.22rem;
}
.actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 670px;
  margin: 26px 0;
}
.actions .button { width: 100%; }
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 670px;
}
.fact {
  padding: 14px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(219,227,238,.9);
  border-radius: 8px;
}
.fact strong { display: block; color: var(--ink); font-size: 1.05rem; }
.fact span { color: var(--muted); font-size: .92rem; }
.feature-photo {
  margin: 1em 0 1em 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(23,32,47,.15);
}
.feature-photo-link { display: block; color: inherit; text-decoration: none; }
.feature-photo-link:hover { text-decoration: none; }
.feature-photo img { width: 100%; display: block; aspect-ratio: 730 / 342; object-fit: cover; }
.caption { padding: 13px 16px; color: var(--muted); font-size: .92rem; }
section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: 2.6rem; line-height: 1.08; }
.section-head p { margin: 0; max-width: 440px; color: var(--muted); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(23,32,47,.07);
}
.card h3 { margin: 0 0 12px; font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0 0 12px; }
.card .icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--logo-green);
}
.card:nth-child(2) .icon { background: var(--logo-gold); }
.card:nth-child(3) .icon { background: var(--logo-purple); }
.programs { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.program {
  padding: 24px;
  min-height: 270px;
}
.program + .program { border-left: 1px solid var(--line); }
.program h3 { margin: 0 0 8px; font-size: 1.45rem; }
.program small {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--teal);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.program ul { margin: 0; padding-left: 18px; color: #475569; }
.program li { margin: 9px 0; }
.split {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: start;
}
.news {
  border-left: 4px solid var(--logo-gold);
  padding: 3px 0 3px 20px;
}
.news h3 { margin: 0 0 8px; }
.news p { margin: 0 0 18px; color: var(--muted); }
.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.panel h2 { margin-top: 0; }
.footer {
  padding: 34px 0;
  color: #dce6f7;
  background: #17202f;
}
.footer a { color: #fff; }
.page-hero {
  padding: 56px 0 46px;
  background:
    linear-gradient(120deg, rgba(15,30,51,.90), rgba(27,49,80,.84) 55%, rgba(42,74,110,.80)),
    url("../img/Penrose_Tiling.jpg") center/cover;
  border-bottom: 6px solid var(--cu-gold);
}
.page-hero .page-label {
  display: block;
  margin-bottom: 10px;
  color: var(--cu-gold);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.page-hero h1 { margin: 0 0 10px; max-width: none; font-size: 3rem; line-height: 1.05; color: #fff; }
.page-hero .lead { margin: 0; color: rgba(255,255,255,.84); }

/* ── News page: year jump nav ── */
.year-nav-wrap {
  position: sticky;
  top: 88px;
  z-index: 9;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.year-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.year-nav::-webkit-scrollbar { display: none; }
.year-nav-label {
  margin-right: .5rem;
  padding: .85rem 0;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.year-btn {
  margin: .35rem 0;
  padding: .5rem .85rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}
.year-btn:hover { background: var(--line); color: var(--cu-navy); }
.year-btn.active { background: var(--cu-navy); color: #fff; }

/* ── News page: main layout ── */
.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 3.5rem;
  align-items: start;
  padding: 3rem 0 5rem;
}
.year-section { margin-bottom: 3.5rem; }
.year-section:last-child { margin-bottom: 0; }
.year-heading {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 1.75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--cu-gold);
  color: var(--cu-navy);
  font-size: 1.65rem;
  line-height: 1.2;
}
.year-heading-sub {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.team-photo-block {
  margin: 0 0 1.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--mist);
  overflow: hidden;
}
.team-photo-block img { width: 100%; display: block; }
.team-photo-caption {
  padding: .6rem 1rem;
  color: var(--muted);
  font-size: .8rem;
  font-style: italic;
  text-align: center;
  background: var(--mist);
}
.news-entry { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.news-entry:first-of-type { padding-top: 0; }
.news-entry:last-of-type { border-bottom: none; }
.news-date {
  margin-bottom: .4rem;
  color: var(--teal);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.news-body { color: #334155; font-size: 1rem; }
.news-body p { margin: 0 0 .75rem; }
.news-body p:last-child { margin-bottom: 0; }
.result-table {
  margin: .25rem 0 .75rem;
  border-collapse: collapse;
  font-size: .92rem;
}
.result-table td {
  padding: .3rem 1.25rem .3rem 0;
  text-align: left;
  vertical-align: top;
}
.result-table td:first-child { color: var(--cu-navy); font-weight: 750; white-space: nowrap; }
.result-table.twocol td:first-child { color: #334155; font-weight: 400; white-space: normal; }
.result-table.twocol td:nth-child(2) { color: var(--muted); font-style: italic; }

/* ── News page: sidebar ── */
.sidebar {
  position: sticky;
  top: calc(88px + 49px + 2rem);
  max-height: calc(100vh - (88px + 49px + 2rem) - 2rem);
  overflow-y: auto;
}
.sidebar-card {
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.sidebar-card-head {
  padding: .65rem 1rem;
  background: var(--cu-navy);
  color: #fff;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sidebar-card-body { padding: 1rem; }
.sidebar-desc { margin: 0 0 .75rem; color: var(--muted); font-size: .88rem; }
.sidebar-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--cu-navy);
  font-size: .9rem;
  font-weight: 800;
}
.sidebar-cta::before { content: "\203A"; color: var(--cu-gold); font-weight: 800; }
.sidebar-cta:hover { color: var(--cu-navy-mid); text-decoration: underline; }
.sidebar-link-list { margin: 0; padding: 0; list-style: none; }
.sidebar-link-list li { margin-bottom: .4rem; }
.sidebar-link-list a { display: flex; align-items: center; gap: .4rem; font-size: .9rem; }
.sidebar-link-list a::before { content: "\203A"; color: var(--cu-gold); font-weight: 800; }

/* ── Content pages (FAQ, About): shared prose column ── */
.page-content { color: #334155; font-size: 1rem; }
.page-content > p { margin: 0 0 1rem; }
.page-content h2 {
  margin: 2.25rem 0 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--cu-gold);
  color: var(--cu-navy);
  font-size: 1.65rem;
}
.page-content h2:first-child { margin-top: 0; }

/* ── FAQ ── */
.qa-item { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.qa-item:first-child { padding-top: 0; }
.qa-item:last-child { border-bottom: none; }
.qa-question {
  margin: 0 0 .5rem;
  color: var(--cu-navy);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}
.qa-answer p { margin: 0 0 .75rem; }
.qa-answer p:last-child { margin-bottom: 0; }

/* ── About: director bios ── */
.bio-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin: 0 0 1rem;
}
.bio-card img {
  width: 180px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
}
.bio-card .bio-body p { margin: 0; }
.bio-extra { margin: 0 0 1.5rem; }
@media (max-width: 560px) {
  .bio-card { flex-direction: column; }
  .bio-card img { width: 140px; }
}

/* ── Feature/press article pages ── */
.source-note {
  margin: 0 0 1.75rem;
  padding: .85rem 1.1rem;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: .88rem;
  color: var(--muted);
}
.source-note a { font-weight: 700; }

/* ── Content pages: secondary sub-heading (Forms, Support) ── */
.page-content h3 {
  margin: 1.75rem 0 .75rem;
  color: var(--cu-navy);
  font-size: 1.15rem;
  font-weight: 800;
}
.page-content h3:first-child { margin-top: 0; }

/* ── ARML: info card ── */
.info-card {
  max-width: 320px;
  margin: 1.5rem auto;
  padding: 20px 24px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.info-card img { max-width: 130px; display: block; margin: 0 auto 12px; }
.info-card p { margin: .65rem 0 0; color: var(--muted); font-size: .92rem; }
.info-card strong { color: var(--ink); }

/* ── Simple data tables: Calendar, ARML rosters, Members handouts ── */
.simple-table {
  width: 100%;
  margin: 1rem 0 1.5rem;
  border-collapse: collapse;
  font-size: .92rem;
}
.simple-table th, .simple-table td {
  padding: .55rem .85rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.simple-table thead th {
  background: var(--cu-navy);
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.simple-table tbody tr:nth-child(even) { background: var(--mist); }
.simple-table.center { max-width: 420px; margin: 1rem auto 1.5rem; }
.simple-table .month-row th {
  background: var(--line);
  color: var(--cu-navy);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ── ARML: roster tables ── */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: start;
  margin: 1rem 0 2rem;
}

/* ── Members: tab switcher ── */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.tab-btn {
  padding: .75rem 1.1rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: .92rem;
  font-weight: 750;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}
.tab-btn:hover { color: var(--cu-navy); }
.tab-btn.active { color: var(--cu-navy); border-bottom-color: var(--cu-gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Members: login form ── */
.login-form { margin: 1.25rem 0; }
.login-form label { display: block; margin-bottom: .4rem; font-weight: 750; color: var(--ink); }
.login-form input[type="password"] {
  width: 220px;
  padding: .55rem .7rem;
  margin-right: .6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 1rem;
}
.login-form input[type="submit"] {
  padding: .55rem 1.3rem;
  border: none;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.login-form input[type="submit"]:hover { background: #1c3e79; }

@media (max-width: 900px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .navlinks { justify-content: flex-start; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .actions { grid-template-columns: 1fr; max-width: 300px; }
  .cards, .program-grid, .facts { grid-template-columns: 1fr; }
  .program + .program { border-left: 0; border-top: 1px solid var(--line); }
  .section-head { display: block; }
  h1 { font-size: 3.55rem; }
  .lead { font-size: 1.16rem; }
  .section-head h2 { font-size: 2.1rem; }
  .content-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .sidebar { position: static; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 24px, 1120px); }
  .hero, .hero-navy { padding-top: 36px; }
  .navlinks a { padding: 8px 9px; }
  h1 { font-size: 2.55rem; }
}

/* ── ARML team photo gallery ── */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 1.5rem 0;
}
.photo-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.photo-card .photo-frame {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.photo-card .photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.photo-card .photo-caption {
  padding: .6rem .85rem;
  font-size: .88rem;
  font-weight: 750;
  color: var(--cu-navy);
  text-align: center;
  line-height: 1.3;
  height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 560px) {
  .photo-gallery { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}

/* ── Photo lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 51, .92);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 50px 24px;
}
.lightbox.active { display: flex; }
.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 90vh;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.lightbox-caption {
  color: #fff;
  margin-top: 16px;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  color: #fff;
  font-size: 2.3rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 6px;
}
.lightbox-close:hover { color: var(--cu-gold); }
@media (max-width: 560px) {
  .lightbox { padding: 30px 14px; }
  .lightbox-close { top: 10px; right: 14px; }
}
