/* ============================================================
   EEES Alumni Academy — site stylesheet
   One file for every page (index, join, login). No framework.
   Look: the original Alumni Academy design (Clemson purple nav,
   gradient photo banners, white cards with orange accent bars,
   Inter), rebuilt without the Tailwind CDN.
   ============================================================ */

:root {
  --bg:       #F5F5F5;
  --paper:    #FFFFFF;
  --mist:     #F7F3FC;   /* light purple tint */
  --rule:     #ECECEC;
  --ink:      #1F2937;   /* gray-800 */
  --ink-2:    #4B5563;   /* gray-600 */
  --ink-3:    #6B7280;   /* gray-500 */
  --purple:   #522D80;
  --purple-d: #3D2060;
  --purple-x: #1A0D38;
  --orange:   #F66733;
  --orange-d: #D95720;
  --orange-t: #C2491B;   /* orange that passes as small text */
  --green-t:  #15803D;

  --display: 'Inter', system-ui, -apple-system, sans-serif;
  --body:    'Inter', system-ui, -apple-system, sans-serif;
  --mono:    'Inter', system-ui, sans-serif;

  --wrap: 72rem;
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-lift: 0 10px 28px rgba(0, 0, 0, .13);
  --banner-grad: linear-gradient(135deg, rgba(82, 45, 128, .9) 0%, rgba(61, 32, 96, .86) 45%, rgba(26, 13, 56, .93) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--body);
}
img { max-width: 100%; }
a { color: var(--purple); text-underline-offset: 2px; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.15; color: var(--purple); letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.mono, .num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.hidden { display: none !important; }

/* ── Navbar ───────────────────────────────────────────────── */
.masthead { position: sticky; top: 0; z-index: 40; background: var(--purple); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .3); }
.masthead .wrap { display: flex; align-items: center; gap: 1rem; min-height: 3.5rem; padding: 0 1rem; }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; flex-shrink: 0; }
.brand .paw { width: 1.75rem; height: 1.75rem; color: var(--orange); flex-shrink: 0; }
.brand-name { font: 900 1rem/1.1 var(--display); color: #fff; letter-spacing: -.01em; }
.brand-name span { color: var(--orange); }
.brand-sub { display: none; }
.nav { display: flex; gap: .125rem; overflow-x: auto; flex: 1; margin-left: .5rem; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-link { font: 600 .875rem/1 var(--body); color: #fff; text-decoration: none; padding: .55rem .875rem; border-radius: 6px; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--orange); background: rgba(255, 255, 255, .08); }
.nav-link-active { color: var(--orange); border-bottom-color: var(--orange); border-radius: 0; }
.nav-link-active:hover { background: none; }
.nav-auth { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; font-size: .875rem; }
.nav-auth a:not(.btn) { color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 600; padding: .35rem .6rem; border-radius: 6px; }
.nav-auth a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav-user { display: flex; align-items: center; gap: .6rem; color: rgba(255, 255, 255, .85); }
.dept-badge { display: flex; align-items: center; gap: .375rem; background: rgba(255, 255, 255, .15); border-radius: 999px; padding: .25rem .75rem; flex-shrink: 0; }
.dept-badge span { color: #fff; font-size: .75rem; font-weight: 600; }
.dept-dot { width: .375rem; height: .375rem; background: var(--orange); border-radius: 50%; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 .9375rem/1 var(--body); padding: .75rem 1.5rem; border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer; border: 2px solid var(--purple);
  background: var(--purple); color: #fff !important; transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--purple-d); border-color: var(--purple-d); }
.btn-orange { background: var(--orange); border-color: var(--orange); }
.btn-orange:hover { background: var(--orange-d); border-color: var(--orange-d); }
.btn-ghost { background: #fff; color: var(--orange) !important; border: 1.5px solid var(--orange); border-left-width: 4px; }
.btn-ghost:hover { background: #FFF5F0; border-color: var(--orange); }
.btn-white { background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .5); }
.btn-white:hover { background: rgba(255, 255, 255, .22); border-color: #fff; }
.btn-sm { font-size: .875rem; padding: .5rem 1rem; }
.nav-auth .btn-sm { padding: .4rem .8rem; font-weight: 700; }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.textlink { font-weight: 600; color: var(--orange-t); }
.linkbtn { background: none; border: 0; padding: .25rem .4rem; color: var(--orange-t); font-size: .8125rem; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }

/* ── Photo banners (hero + every subpage header) ──────────── */
.page-head, .hero {
  position: relative; color: #fff; text-align: center;
  background-color: var(--purple-d);
  background-image: var(--banner-grad), var(--photo, none);
  background-size: cover; background-position: center 40%;
}
.page-head { padding: 3.5rem 0; }
.page-head .eyebrow { display: none; }
.page-head h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 900; color: #fff; }
.page-head .lede { margin: .5rem auto 0; max-width: 40rem; color: rgba(255, 255, 255, .85); }
.page-body { padding-top: 2.5rem; padding-bottom: 3.5rem; }
.page-body.narrow > * { max-width: 56rem; margin-left: auto; margin-right: auto; }

body[data-page="home"]      .hero      { --photo: url('https://images.unsplash.com/photo-1501854140801-50d01698950b?auto=format&fit=crop&w=1920&q=70'); }
body[data-page="alumni"]    .page-head { --photo: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1920&q=70'); }
body[data-page="projects"]  .page-head { --photo: url('https://images.unsplash.com/photo-1532094349884-543559873a20?auto=format&fit=crop&w=1920&q=70'); }
body[data-page="companies"] .page-head { --photo: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=70'); }
body[data-page="events"]    .page-head { --photo: url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?auto=format&fit=crop&w=1920&q=70'); }
body[data-page="jobs"]      .page-head { --photo: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1920&q=70'); }
body[data-page="resources"] .page-head { --photo: url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?auto=format&fit=crop&w=1920&q=70'); }

/* ── Home hero ────────────────────────────────────────────── */
.hero { padding: 5rem 0; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(246, 103, 51, .15) 0%, transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; max-width: 48rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255, 255, 255, .18); border-radius: 999px; padding: .375rem 1rem; margin-bottom: 1.25rem; font-size: .875rem; font-weight: 600; color: #fff; }
.hero-badge i { width: .5rem; height: .5rem; background: var(--orange); border-radius: 50%; display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .hero-badge i { animation: pulse 2.2s ease infinite; }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
}
.hero h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 900; line-height: 1.1; color: #fff; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lede { margin: 1rem auto 2rem; font-size: 1.125rem; line-height: 1.65; color: rgba(255, 255, 255, .9); max-width: 36rem; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* ── Stats bar ────────────────────────────────────────────── */
.stats-bar { background: var(--paper); border-bottom: 1px solid var(--rule); }
.stats-bar .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.stat { text-align: center; padding: .75rem; }
.stat-icon { width: 3rem; height: 3rem; margin: 0 auto .5rem; display: grid; place-items: center; border-radius: var(--r); background: rgba(82, 45, 128, .1); color: var(--purple); }
.stat-icon svg { width: 1.5rem; height: 1.5rem; }
.stat-value { font-size: 1.75rem; font-weight: 900; color: var(--purple); font-variant-numeric: tabular-nums; }
.stat-label { font-size: .75rem; color: var(--ink-3); margin-top: .125rem; }

/* ── Sections ─────────────────────────────────────────────── */
.sec { padding: 3rem 0; }
.sec.tint { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.sec-head > div, .sec-head h2 { border-left: 4px solid var(--orange); padding-left: .75rem; }
.sec-head > div h2 { border: 0; padding: 0; }
.sec-head h2 { font-size: 1.5rem; font-weight: 900; color: var(--purple); }
.sec-head p { font-size: .875rem; color: var(--ink-3); margin-top: .15rem; }
.sec-head > a { color: var(--orange); font-size: .875rem; font-weight: 600; text-decoration: none; }
.sec-head > a:hover { text-decoration: underline; }
.sec-head > a::after { content: ' \2192'; }

/* ── Class-year chart (formerly the gauge) ────────────────── */
.gauge-fig { margin: 0; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid #F0F0F0; padding: 1.25rem 1.5rem; }
.gauge { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .3rem; }
.g-row { display: contents; }
.g-plate { display: none; }
.g-year { font-size: .8125rem; line-height: 1.375rem; font-weight: 600; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.g-row.has .g-year { color: var(--purple); }
.g-dots { display: flex; align-items: center; gap: 3px; min-height: 1.375rem; flex-wrap: wrap; }
.g-dot { width: .875rem; height: .875rem; border-radius: 50%; background: var(--purple); }
.g-dot:nth-child(3n+2) { background: var(--orange); }
.g-count { font-size: .75rem; font-weight: 700; color: var(--ink-3); margin-left: .35rem; }
.gauge-cap { margin-top: .9rem; font-size: .8125rem; color: var(--ink-3); }
.gauge-cap b { color: var(--purple); }
.class-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }

/* ── Spotlights ───────────────────────────────────────────── */
.spots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.spot { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid #F0F0F0; padding: 1.25rem; display: flex; flex-direction: column; gap: .9rem; transition: box-shadow .18s, transform .18s; }
.spot:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.spot-head { display: flex; gap: .8rem; align-items: center; }
.spot h3 { font-size: 1.0625rem; font-weight: 700; }
.spot .who-meta { font-size: .8125rem; color: var(--ink-3); }
.spot blockquote { margin: 0; border-left: 4px solid var(--orange); padding-left: .75rem; font-size: .9375rem; color: var(--ink-2); line-height: 1.6; }
.spot-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-size: .8125rem; color: var(--ink-3); }
.invite { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 1.5rem; align-items: center; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid #F0F0F0; border-left: 4px solid var(--orange); padding: 1.5rem; }
.invite .faces { display: flex; }
.invite .faces .initials { width: 2.75rem; height: 2.75rem; margin-left: -.5rem; box-shadow: 0 0 0 3px #fff; }
.invite .faces .initials:first-child { margin-left: 0; }
.invite h3 { font-size: 1.125rem; font-weight: 800; }
.invite p { color: var(--ink-2); font-size: .9375rem; margin-top: .25rem; max-width: 36rem; }

/* ── Where they work ──────────────────────────────────────── */
.leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.25rem; }
.leaders li { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem; background: var(--paper); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.leaders .who { font-weight: 600; flex: 1; min-width: 0; color: var(--ink); }
.leaders .dots { display: none; }
.leaders .n { font-size: .8125rem; font-weight: 700; color: #fff; background: var(--purple); border-radius: 999px; padding: .2rem .6rem; font-variant-numeric: tabular-nums; }
.note { margin-top: 1rem; font-size: .8125rem; color: var(--ink-3); }

/* ── Give back ────────────────────────────────────────────── */
.helpers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.helpers a { display: block; padding: 1.1rem 1.25rem; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); border: 1px solid #F0F0F0; text-decoration: none; color: var(--ink); transition: box-shadow .18s, transform .18s; }
.helpers a:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); color: var(--ink); }
.helpers .n { display: block; font-size: 1.75rem; font-weight: 900; color: var(--purple); font-variant-numeric: tabular-nums; }
.helpers .w { display: block; margin-top: .2rem; font-weight: 700; }
.helpers .s { display: block; font-size: .8125rem; color: var(--ink-3); }

/* ── Quick links (purple band) ────────────────────────────── */
.quick { background: var(--purple); padding: 3rem 0; }
.quick-head { text-align: center; margin-bottom: 2rem; }
.quick-head h2 { color: #fff; font-size: 1.5rem; font-weight: 900; }
.quick-head p { color: rgba(255, 255, 255, .8); margin-top: .5rem; }
.quick-grid { max-width: 56rem; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.quick-card { display: block; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r); padding: 1rem; color: #fff; text-decoration: none; transition: background-color .15s; }
.quick-card:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.quick-card svg { width: 1.5rem; height: 1.5rem; color: var(--orange); margin-bottom: .5rem; }
.quick-card b { display: block; font-size: .875rem; }
.quick-card span { display: block; font-size: .75rem; color: rgba(255, 255, 255, .75); margin-top: .125rem; }

/* ── Project cards ────────────────────────────────────────── */
.sheet { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid #F0F0F0; padding: 1.25rem; display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s; }
.sheet:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.sheet::before { content: ''; display: block; height: 120px; margin-bottom: 1rem; border-radius: var(--r-sm); background: linear-gradient(135deg, var(--purple), var(--orange)); }
.sheet-head { border-left: 4px solid var(--orange); padding-left: .75rem; margin-bottom: .9rem; }
.sheet-meta { display: flex; flex-wrap: wrap; gap: .3rem .75rem; font-size: .75rem; color: var(--ink-3); margin-bottom: .3rem; }
.sheet-meta .kind { color: #fff; background: var(--purple); border-radius: 999px; padding: .1rem .55rem; font-weight: 600; }
.sheet h3 { font-size: 1rem; font-weight: 700; line-height: 1.35; }
.sheet .sub { font-size: .75rem; color: var(--ink-3); margin-top: .15rem; }
.sheet-body { display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.sheet-body > div > p:first-child, .sheet-body > p { font-size: .875rem; color: var(--ink-2); line-height: 1.65; }
.kv { width: 100%; border-collapse: collapse; font-size: .875rem; }
.kv td { padding: .35rem 0; vertical-align: top; color: var(--ink-2); }
.kv td:first-child::before { content: '\25CF'; color: var(--orange); margin-right: .5rem; font-size: .7rem; }
.kv td.v { font-weight: 600; color: var(--ink); text-align: right; padding-left: .75rem; }
.facts td:first-child::before { content: none; }
.facts td { border-top: 1px solid #F0F0F0; }
.label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); margin-bottom: .5rem; }
.sheet-foot { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .25rem; }
.sheet-foot .muted { font-size: .75rem; align-self: center; }
.sheet.wide { flex-direction: row; gap: 1.5rem; }
.sheet.wide::before { width: 30%; height: auto; min-height: 200px; margin: 0; flex-shrink: 0; }
.sheet.wide > :not(:first-child) { }
.sheet.wide .sheet-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1rem 2rem; }
.sheet.wide .sheet-foot { grid-column: 1 / -1; }
.sheet.wide { display: grid; grid-template-columns: 30% 1fr; }
.sheet.wide::before { grid-row: 1 / span 2; }

/* ── Tags ─────────────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: .375rem; }
.tag { font-size: .75rem; font-weight: 500; padding: .25rem .75rem; border-radius: 999px; color: #374151; background: #F3F4F6; border: 1px solid #E5E7EB; }
.tag-help { background: #FFF5F0; color: var(--orange-t); border-color: #FED7C3; font-weight: 600; }
.tag-more { cursor: pointer; color: var(--orange); border: 1px solid var(--orange); background: none; font-weight: 600; }
.tag-more:hover { background: #FFF5F0; }

/* ── Cards (companies) ────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.card { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid #F0F0F0; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; transition: box-shadow .18s, transform .18s; }
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.card > div:nth-child(2) { border-left: 4px solid var(--orange); padding-left: .75rem; }
.card h3 { font-size: 1.125rem; font-weight: 700; }
.card .sub { color: var(--ink-3); font-size: .75rem; margin-top: .15rem; }
.card > p { font-size: .875rem; color: var(--ink-2) !important; line-height: 1.65; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.logo { height: 3.25rem; display: flex; align-items: center; }
.logo img { height: 3.25rem; width: auto; max-width: 10rem; object-fit: contain; object-position: left center; }
.mark { width: 4rem; height: 4rem; display: grid; place-items: center; background: rgba(82, 45, 128, .1); color: var(--purple); font-size: 1.5rem; font-weight: 900; border-radius: var(--r); }
.status { font-size: .75rem; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; padding: .15rem .55rem; border-radius: 999px; }
.status::before { content: ''; width: .375rem; height: .375rem; border-radius: 50%; background: currentColor; }
.status-open { color: var(--green-t); background: #DCFCE7; }
.status-closed { color: var(--ink-3); background: #F3F4F6; }
.status-feat { color: var(--orange-t); background: #FFEDE4; }
.status-feat::before { display: none; }
.people { display: flex; flex-wrap: wrap; gap: .4rem; }
.person-chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; padding: .2rem .6rem .2rem .2rem; border: 1px solid #E5E7EB; border-radius: 999px; background: #fff; cursor: pointer; color: var(--ink); }
.person-chip:hover { border-color: var(--purple); }
.card-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }

/* ── Initials avatars (Clemson purple circle) ─────────────── */
.initials { display: inline-grid; place-items: center; border-radius: 50%; background: var(--purple); color: #fff; font-size: .75rem; font-weight: 700; flex-shrink: 0; user-select: none; }
.initials.sm { width: 2rem; height: 2rem; }
.initials.md { width: 3rem; height: 3rem; font-size: 1rem; }
.initials.lg { width: 6rem; height: 6rem; font-size: 1.875rem; }
.invite .faces .initials:nth-child(2) { background: var(--orange); }
.invite .faces .initials:nth-child(3) { background: var(--purple-d); }

/* ── Line items (events, jobs, resources) ─────────────────── */
.items { display: flex; flex-direction: column; gap: 1rem; }
.item { display: grid; grid-template-columns: 3.75rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 1.25rem; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid #F0F0F0; transition: box-shadow .18s, transform .18s; }
.item:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.item-date { text-align: center; border-radius: var(--r-sm); overflow: hidden; align-self: start; }
.item-date .m { display: block; background: var(--purple); color: rgba(255, 255, 255, .85); font-size: .75rem; font-weight: 600; padding: .3rem 0 .15rem; text-transform: uppercase; }
.item-date .d { display: block; background: rgba(82, 45, 128, .1); font-size: 1.5rem; font-weight: 900; color: var(--purple); padding: .2rem 0 .35rem; line-height: 1.1; }
.item-date .y { display: none; }
.item h3 { font-size: 1rem; font-weight: 700; color: var(--purple); }
.item .where { font-size: .8125rem; color: var(--ink-3); margin: .2rem 0 .45rem; }
.item p.desc { font-size: .875rem; color: var(--ink-2); line-height: 1.65; }
.item .links { display: flex; gap: 1rem; margin-top: .5rem; font-size: .8125rem; font-weight: 600; }
.item .links a { color: var(--orange); }
.item.past { opacity: .6; }
.item-type { display: inline-block; font-size: .7rem; font-weight: 600; text-transform: capitalize; color: #fff; background: var(--orange); border-radius: 999px; padding: .1rem .55rem; }
.item-kind { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.item-kind span { font-size: .7rem; font-weight: 600; padding: .15rem .5rem; border-radius: 999px; background: #DBEAFE; color: #1E40AF; white-space: nowrap; }
.item-kind span + span { background: #F3F4F6; color: #374151; }
.reqs { margin: .5rem 0; }
.reqs li { position: relative; padding-left: 1rem; color: var(--ink-2); font-size: .875rem; }
.reqs li::before { content: '\203A'; position: absolute; left: .1rem; color: var(--orange); font-weight: 700; }
.item-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; align-items: center; margin-top: .75rem; }
.item-foot .muted { font-size: .75rem; }
.sub-h { font-size: 1.125rem; font-weight: 800; color: var(--purple); margin: 2rem 0 .9rem; border-left: 4px solid var(--orange); padding-left: .75rem; }

/* ── Home two-up lists ────────────────────────────────────── */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.mini { display: flex; flex-direction: column; gap: .75rem; }
.mini li { display: grid; grid-template-columns: 4.5rem 1fr; gap: .9rem; padding: .9rem 1rem; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); }
.mini .k { font-size: .75rem; font-weight: 800; color: var(--orange); text-transform: uppercase; }
.mini .t { font-weight: 700; color: var(--ink); font-size: .9375rem; }
.mini .s { font-size: .8125rem; color: var(--ink-3); }
.empty { padding: 1.25rem; color: var(--ink-3); background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); text-align: center; }

/* ── Callouts ─────────────────────────────────────────────── */
.callout { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; padding: 1rem 1.25rem; background: #FAF5FF; border: 1px solid #F3E8FF; border-radius: var(--r); margin-bottom: 1.5rem; }
.callout p { color: #6B21A8; font-size: .875rem; max-width: 42rem; }
.callout strong { color: #581C87; }

.join-band { background: var(--purple); padding: 3rem 0; }
.join-band .panel { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; flex-wrap: wrap; }
.join-band h2 { color: #fff; font-size: 1.75rem; font-weight: 900; }
.join-band p { color: rgba(255, 255, 255, .8); margin-top: .4rem; max-width: 36rem; }

/* ── Filter bar ───────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.25rem; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid #F3F4F6; padding: 1rem; }
.field-search { position: relative; flex: 1 1 14rem; }
.field-search input[type=text] { width: 100%; padding: .55rem 1rem .55rem 2.5rem; }
.field-search svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: #9CA3AF; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=tel], select, textarea {
  font: 400 .9375rem/1.4 var(--body); color: #111827; background: #fff;
  border: 1.5px solid #E5E7EB; border-radius: var(--r-sm); padding: .6rem .875rem;
}
.filters select { font-size: .875rem; padding: .5rem .75rem; border-width: 1px; color: #374151; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(82, 45, 128, .15); }
select { cursor: pointer; }
.seg { display: inline-flex; border: 1px solid #E5E7EB; border-radius: var(--r-sm); overflow: hidden; }
.seg button { border: 0; background: #fff; padding: .5rem .75rem; cursor: pointer; color: var(--ink-2); font-size: .875rem; }
.seg button:hover { background: #F9FAFB; }
.seg button[aria-pressed="true"] { background: var(--purple); color: #fff; }
.count-line { font-size: .75rem; color: #9CA3AF; margin-bottom: .6rem; }

/* ── Directory table ──────────────────────────────────────── */
.dir { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .875rem; background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); border: 1px solid #F3F4F6; }
.dir th { text-align: left; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: rgba(255, 255, 255, .75); padding: .8rem 1rem; background: var(--purple); white-space: nowrap; }
.dir th button { all: unset; cursor: pointer; }
.dir th button:hover, .dir th button:focus-visible { color: #fff; }
.dir th[aria-sort="ascending"], .dir th[aria-sort="descending"] { color: #fff; }
.dir td { padding: .75rem 1rem; border-top: 1px solid #F3F4F6; vertical-align: middle; color: #374151; }
.dir tbody tr { cursor: pointer; transition: background-color .15s; }
.dir tbody tr:nth-child(even) td { background: #FAFAFA; }
.dir tbody tr:hover td { background: #FFF7F3; }
.dir .nm { display: flex; align-items: center; gap: .75rem; font-weight: 600; color: var(--purple); }
.dir .yr { text-align: center; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dir .emp { font-weight: 600; }
.dir td.c2 { color: var(--ink-2); }
.emp-cell { display: flex; align-items: center; gap: .6rem; }
.elogo { height: 1.125rem; width: 4.5rem; object-fit: contain; object-position: left center; flex-shrink: 0; }
.leaders .elogo { width: 5rem; height: 1.5rem; }

/* ── Modal / profile ──────────────────────────────────────── */
#modal-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 1rem; }
#modal-overlay.hidden { display: none; }
#modal-panel { position: relative; background: #fff; border-radius: 1rem; width: 100%; max-width: 40rem; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 60px rgba(0, 0, 0, .25); }
#modal-close { position: absolute; top: 1rem; right: 1rem; width: 2rem; height: 2rem; border: 1px solid #F0F0F0; background: #fff; border-radius: 50%; cursor: pointer; font-size: 1.4rem; line-height: 1; color: #9CA3AF; }
#modal-close:hover { color: #374151; }
.profile { padding: 2rem; }
.profile-head { display: flex; gap: 1rem; align-items: center; padding-right: 2.5rem; }
.profile h2 { font-size: 1.5rem; font-weight: 700; }
.profile .role { color: var(--ink-3); font-size: .875rem; margin-top: .15rem; }
.plogo { display: block; height: 1.75rem; width: 8rem; object-fit: contain; object-position: left center; margin-top: .5rem; }
.profile .facts { margin-top: 1.25rem; }
.profile .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.profile .gate { margin-top: 1.25rem; padding: 1rem 1.25rem; background: #FAF5FF; border: 1px solid #F3E8FF; border-radius: var(--r); color: #6B21A8; font-size: .875rem; text-align: center; }
.profile .gate-actions { display: flex; flex-direction: column; gap: .75rem; align-items: center; margin-top: 1.25rem; }
.profile .gate-actions .btn { width: 100%; }
.bio { margin-top: 1.25rem; border-left: 4px solid var(--orange); padding-left: .75rem; color: var(--ink-2); font-size: .9375rem; }

/* ── Footer (readable this time) ──────────────────────────── */
.site-foot { margin-top: auto; background: var(--purple); color: rgba(255, 255, 255, .85); padding: 2rem 0; font-size: .875rem; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { color: var(--orange); }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.foot-name { font-size: 1.125rem; font-weight: 900; color: #fff; }
.foot-h { font-size: .875rem; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }
.site-foot li + li { margin-top: .25rem; }
.foot-base { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .2); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .75rem; color: rgba(255, 255, 255, .7); }

/* ── Loading ──────────────────────────────────────────────── */
.loading { padding: 6rem 0; text-align: center; font-size: .875rem; color: var(--ink-3); }

/* ── Forms (join / login) ─────────────────────────────────── */
.form-wrap { max-width: 36rem; margin: 0 auto; }
.form-sec { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid #F0F0F0; padding: 1.5rem; margin-bottom: 1.25rem; }
.form-sec h2 { font-size: 1.25rem; font-weight: 900; margin-bottom: 1rem; }
.fld { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.fld label { font-size: .8125rem; font-weight: 600; color: #374151; }
.fld .hint { font-size: .75rem; color: #9CA3AF; }
.fld input:not([type=checkbox]):not([type=radio]) { width: 100%; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .875rem; color: var(--ink-2); margin-bottom: .55rem; cursor: pointer; }
.check input { margin-top: .2rem; width: 1rem; height: 1rem; accent-color: var(--purple); flex-shrink: 0; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 1.25rem; }
textarea { width: 100%; resize: vertical; }
.req { color: #EF4444; }
.steps { display: flex; justify-content: space-between; margin: 0 0 1.25rem; padding: 0; list-style: none; position: relative; }
.steps::before { content: ''; position: absolute; left: 1rem; right: 1rem; top: 1rem; height: 2px; background: #E5E7EB; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; font-size: .75rem; color: var(--ink-3); background: var(--bg); padding: 0 .4rem; }
.step-dot { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: #E5E7EB; color: #9CA3AF; font-size: .8125rem; font-weight: 700; }
.step-dot.active { background: var(--purple); color: #fff; }
.step-dot.done { background: var(--orange); color: #fff; }
.vis-option { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem; border: 2px solid #E5E7EB; border-radius: var(--r); cursor: pointer; margin-bottom: .75rem; transition: border-color .15s, background-color .15s; }
.vis-option:hover, .vis-option.selected { border-color: var(--purple); background: #FAF5FF; }
.vis-option input { margin-top: .2rem; accent-color: var(--purple); }
.vis-option b { display: block; font-size: .875rem; font-weight: 600; color: #111827; }
.vis-option span { font-size: .75rem; color: var(--ink-3); }
.form-err { color: #EF4444; font-size: .875rem; margin-bottom: .75rem; }
.form-actions { display: flex; flex-direction: column; gap: .5rem; align-items: stretch; }
.form-actions .btn { width: 100%; }
.form-actions .muted, .form-actions .linkbtn { text-align: center; }
.done-panel { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 2rem; text-align: center; }
.done-panel h2 { font-size: 1.5rem; font-weight: 900; }
.done-panel p { margin: .75rem auto 1.5rem; color: var(--ink-2); font-size: .875rem; max-width: 30rem; }
.auth-wrap { max-width: 24rem; margin: 0 auto; padding: 3rem 1rem 4rem; }
.auth-wrap .eyebrow { display: none; }
.auth-wrap h1 { font-size: 1.25rem; font-weight: 900; text-align: center; }
.auth-wrap .lede { color: var(--ink-3); text-align: center; font-size: .875rem; margin: .25rem 0 1.5rem; }
.auth-wrap form { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid #F3F4F6; padding: 1.5rem; }
.auth-wrap .note { text-align: center; }
.alert { padding: .9rem 1rem; border-radius: var(--r); margin-bottom: 1rem; font-size: .875rem; border: 1px solid; }
.alert-err { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
.alert-ok { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1040px) {
  .dept-badge { display: none; }
  .spots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .class-split { grid-template-columns: 1fr; }
  .grid-3, .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet.wide { grid-template-columns: 1fr; }
  .sheet.wide::before { grid-row: auto; width: auto; min-height: 120px; }
  .sheet.wide .sheet-body { grid-template-columns: 1fr; }
  .invite { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .masthead .wrap { flex-wrap: wrap; gap: 0 .75rem; padding: .5rem 1rem 0; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -.5rem; flex-wrap: wrap; overflow: visible; }
  .nav-link { padding: .5rem .6rem; }
  .nav-auth { margin-left: auto; }
  .stats-bar .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-3, .two-up, .fld-row, .check-grid, .spots, .leaders, .foot-grid { grid-template-columns: 1fr; }
  .helpers { grid-template-columns: 1fr 1fr; }
  .item-kind { flex-direction: row; }
  .kv td.v { white-space: normal; }
  .sheet-body > * { min-width: 0; }
  .hero { padding: 3.5rem 0; }
  /* Directory collapses to stacked rows */
  .dir { border-radius: var(--r); }
  .dir thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dir, .dir tbody, .dir tr, .dir td { display: block; }
  .dir tr { padding: .8rem 1rem; border-top: 1px solid #F3F4F6; }
  .dir td { border: 0; padding: .1rem 0; background: none !important; }
  .dir td.c-emph, .dir td.c-loc { display: none; }
  .dir .yr { text-align: left; }
  .dir td.yr::before { content: 'Class of '; color: var(--ink-3); }
  .profile { padding: 1.5rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .card:hover, .sheet:hover, .item:hover, .spot:hover, .helpers a:hover { transform: none; }
}
.class-split .leaders { grid-template-columns: 1fr; }

/* ── EEES department lockup (official, from clemson.edu/cecas/departments/eees) ── */
.brand { gap: .75rem; }
.brand-lockup { height: 2.25rem; width: auto; display: block; }
.brand .brand-name { padding-left: .75rem; border-left: 1px solid rgba(255, 255, 255, .35); color: var(--orange); font-weight: 800; font-size: .9375rem; white-space: nowrap; }
.foot-lockup { height: 3rem; width: auto; display: block; margin-bottom: .9rem; }
.hero-lockup { display: block; height: 3.75rem; width: auto; margin: 0 auto 1.5rem; }
@media (max-width: 720px) {
  .brand-lockup { height: 1.9rem; }
  .brand .brand-name { font-size: .8125rem; padding-left: .55rem; }
  .hero-lockup { height: 2.75rem; }
}
@media (max-width: 400px) {
  .brand .brand-name { display: none; }
}
@media (min-width: 721px) and (max-width: 1180px) {
  .masthead .wrap { flex-wrap: wrap; padding-top: .45rem; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -.5rem; }
  .nav-auth { margin-left: auto; }
}
