/* ==========================================================================
   PQC — base styles
   Cream & maroon theme, sampled from the club logo (assets/pqc-logo.png)
   ========================================================================== */

:root {
  --cream: #fef5e2;
  --cream-dim: #f6e9cf;
  --cream-line: #e7d6b3;
  --maroon: #76090f;
  --maroon-dark: #500509;
  --maroon-darker: #340305;
  --maroon-light: #a3383d;
  --maroon-tint: #f1dede;
  --ink: #2a1210;
  --ink-soft: #5a3a38;
  --grey: #8d8d8d;
  --grey-light: #eeecec;
  --grey-dark: #4a4747;
  --chart-gold: #b8860b;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1120px;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(80, 5, 9, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--maroon-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a {
  color: var(--maroon);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-dim {
  background: var(--cream-dim);
}

.section-maroon {
  background: var(--maroon);
  color: var(--cream);
}

.section-maroon h1,
.section-maroon h2,
.section-maroon h3 {
  color: var(--cream);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--maroon);
}

.section-maroon .eyebrow {
  color: var(--cream-dim);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head p {
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--maroon);
  color: var(--cream);
}

.btn-primary:hover { background: var(--maroon-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--maroon);
  color: var(--maroon);
}

.btn-outline:hover { background: var(--maroon); color: var(--cream); }

.section-maroon .btn-outline {
  border-color: var(--cream);
  color: var(--cream);
}

.section-maroon .btn-outline:hover {
  background: var(--cream);
  color: var(--maroon-dark);
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--maroon-dark);
}

.brand:hover { text-decoration: none; }

.brand img {
  height: 42px;
  width: 42px;
}

.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  display: block;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.85rem;
  white-space: nowrap;
}

.nav-links a.nav-link-members {
  background: var(--maroon);
  color: var(--cream);
  border-radius: 6px;
  font-weight: 700;
}

.nav-links a.nav-link-members:hover,
.nav-links a.nav-link-members.active {
  background: var(--maroon-dark);
  color: var(--cream);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--maroon-tint);
  color: var(--maroon-dark);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--maroon-dark);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream-dim), var(--cream));
  padding: 80px 0 64px;
  text-align: center;
}

.hero-bg-logo {
  position: absolute;
  top: -320px;
  left: 50%;
  width: 130%;
  max-width: 1600px;
  transform: translateX(-50%);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.hero-bg-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero p.lede {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.hero .btn-row {
  justify-content: center;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.eboard-grid {
  grid-template-columns: repeat(4, minmax(0, 245px));
  justify-content: center;
}

.nav-guide-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--maroon-light) var(--cream-dim);
}

.nav-guide-scroll:active {
  cursor: grabbing;
}

.nav-guide-track {
  display: flex;
  gap: 24px;
  width: max-content;
}

.nav-guide-track .card {
  flex: 0 0 260px;
}

.card {
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 10px; }

.card p { color: var(--ink-soft); margin-bottom: 16px; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--maroon-tint);
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}

.card-icon-glyph {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ---------- Placeholder media ---------- */

.placeholder-photo {
  background: repeating-linear-gradient(
    135deg,
    var(--maroon-tint),
    var(--maroon-tint) 10px,
    var(--cream-dim) 10px,
    var(--cream-dim) 20px
  );
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--cream-line);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.gallery-grid .placeholder-photo {
  aspect-ratio: 4 / 3;
}

/* ---------- Team ---------- */

.member-card {
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.member-card .placeholder-photo {
  aspect-ratio: 1 / 1;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--cream-line);
}

.member-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--cream-line);
}

.member-card .member-info {
  padding: 18px 16px 22px;
}

.member-card h3 { margin-bottom: 2px; font-size: calc(1.05rem + 2pt); }

.member-role {
  color: var(--maroon);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.member-card p.bio {
  font-size: calc(0.9rem - 1pt);
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.member-email {
  font-size: 0.8rem;
  margin-top: -6px;
}

.member-email a {
  color: var(--maroon);
}

.member-photo-link,
.member-name-link {
  display: block;
  color: inherit;
}

.member-photo-link:hover .placeholder-photo {
  filter: brightness(0.96);
}

.member-name-link:hover h3 {
  text-decoration: underline;
}

/* Flip card */

.member-card.flip-card {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  perspective: 1200px;
}

.flip-card-inner {
  position: relative;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  backface-visibility: hidden;
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.flip-card-front {
  position: relative;
}

.flip-card-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 22px;
  text-align: center;
}

.flip-card:not(.flipped) .flip-card-back {
  pointer-events: none;
}

.flip-card.flipped .flip-card-front {
  pointer-events: none;
}

.flip-card-back .quote {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.flip-trigger {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--maroon-tint);
  color: var(--maroon);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.flip-trigger:hover {
  background: var(--maroon);
  color: var(--cream);
}

.team-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.team-tab-btn {
  background: transparent;
  border: 2px solid var(--maroon);
  color: var(--maroon);
  padding: 8px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

.team-tab-btn.active,
.team-tab-btn:hover {
  background: var(--maroon);
  color: var(--cream);
}

.team-panel { display: none; }
.team-panel.active { display: block; }

/* ---------- Opportunities ---------- */

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  justify-content: center;
}

.filter-btn {
  background: #fff;
  border: 1px solid var(--cream-line);
  color: var(--ink-soft);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--cream);
}

.job-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: var(--maroon-darker);
  border-radius: 999px;
  padding: 14px 20px;
  margin-bottom: 16px;
}

.job-filter-input,
.job-filter-select {
  flex: 1 1 170px;
  min-width: 150px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(254, 245, 226, 0.25);
  background: rgba(254, 245, 226, 0.08);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.88rem;
}

.job-filter-input::placeholder {
  color: rgba(254, 245, 226, 0.6);
}

.job-filter-input:focus,
.job-filter-select:focus {
  outline: none;
  border-color: var(--cream);
  background: rgba(254, 245, 226, 0.14);
}

.job-filter-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fef5e2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
  cursor: pointer;
}

.job-filter-select option {
  color: var(--ink);
  background: var(--cream);
}

.job-filter-clear {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  color: var(--cream-dim);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px 10px;
}

.job-filter-clear:hover {
  color: var(--cream);
}

.job-filters-count {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.job-tag-muted {
  background: var(--cream-dim);
  color: var(--ink-soft);
}

.job-tag-women {
  background: var(--maroon);
  color: var(--cream);
}

.job-tag-new-grad {
  background: transparent;
  color: var(--maroon);
  border: 1px solid var(--maroon);
  padding: 3px 9px;
}

.filter-btn-women {
  border-color: var(--maroon);
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.job-card {
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.job-card .job-main { flex: 1 1 380px; }

.job-tag {
  display: inline-block;
  background: var(--maroon-tint);
  color: var(--maroon-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-right: 8px;
  margin-bottom: 10px;
}

.job-meta {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.job-meta span:not(:last-child)::after {
  content: "\2022";
  margin: 0 8px;
  color: var(--cream-line);
}

.job-card .job-action {
  flex: 0 0 auto;
}

.job-preview-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.job-preview-link p {
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.job-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--maroon);
  font-weight: 600;
  font-size: 0.9rem;
}

.job-learn-more span {
  display: inline-block;
  transition: transform 0.15s ease;
}

.job-preview-link:hover .job-learn-more,
.job-preview-link:focus-visible .job-learn-more {
  text-decoration: underline;
}

.job-preview-link:hover .job-learn-more span,
.job-preview-link:focus-visible .job-learn-more span {
  transform: translateX(4px);
}

.job-posted {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--cream-line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Job detail page (jobs/<slug>.html) ---------- */

.job-detail-card h3 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.job-detail-card ul {
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--ink-soft);
}

.job-detail-card li {
  margin-bottom: 8px;
}

/* ---------- FAQ / accordion ---------- */

.accordion-item {
  border-bottom: 1px solid var(--cream-line);
}

.accordion-item:first-child { border-top: 1px solid var(--cream-line); }

.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 4px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--maroon-dark);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.accordion-trigger .icon {
  flex: 0 0 auto;
  font-size: 1.4rem;
  color: var(--maroon);
  transition: transform 0.2s ease;
}

.accordion-item.open .accordion-trigger .icon {
  transform: rotate(45deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.accordion-panel-inner {
  padding: 0 4px 20px;
  color: var(--ink-soft);
}

/* ---------- Interactive calendar (Events page) ---------- */

.event-calendar {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px 28px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.calendar-header h3 {
  font-size: 1.15rem;
  color: var(--maroon-dark);
}

.calendar-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--cream-line);
  background: var(--cream);
  color: var(--maroon);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.12s ease;
}

.calendar-nav:hover {
  background: var(--maroon-tint);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grey-dark);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--ink);
  background: transparent;
  border: none;
  cursor: default;
  position: relative;
  font-family: var(--font-body);
}

.calendar-day.is-empty {
  visibility: hidden;
}

.calendar-day.has-event {
  cursor: pointer;
  background: var(--maroon-tint);
  font-weight: 700;
  color: var(--maroon-dark);
  transition: background 0.12s ease, transform 0.12s ease;
}

.calendar-day.has-event:hover {
  background: var(--maroon-light);
  color: var(--cream);
  transform: scale(1.06);
}

.calendar-day.has-event.selected {
  background: var(--maroon);
  color: var(--cream);
}

.calendar-day-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  margin-top: 2px;
}

.calendar-details {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--cream-line);
}

.calendar-details-empty {
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
}

.calendar-details h4 {
  color: var(--maroon-dark);
  margin-bottom: 4px;
}

.calendar-details .job-meta {
  margin-bottom: 10px;
}

/* ---------- Timeline (Events / History) ---------- */

.timeline {
  border-left: 2px solid var(--maroon-tint);
  margin-left: 10px;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline-item { position: relative; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--maroon);
}

.timeline-date {
  color: var(--maroon);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item .card-icon { margin-bottom: 0; flex-shrink: 0; }

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 6px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--cream-line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--maroon-light);
  outline-offset: 1px;
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--cream-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  font-weight: 700;
  font-size: 0.85rem;
}

.social-row a:hover {
  background: var(--maroon);
  color: var(--cream);
  text-decoration: none;
}

/* ---------- Logo strip (alumni / partners placeholder) ---------- */

.logo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  align-items: center;
}

.logo-strip .placeholder-photo {
  aspect-ratio: 3 / 2;
  font-size: 0.7rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--maroon-darker) url("../assets/maroon_marble.jpg") center / cover no-repeat;
  color: var(--cream-dim);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: var(--cream);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li { margin-bottom: 10px; }

.footer-grid a {
  color: var(--cream-dim);
  opacity: 0.85;
}

.footer-grid a:hover { opacity: 1; color: var(--cream); }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--cream);
}

.footer-brand img { height: 36px; width: 36px; }

.footer-bottom {
  border-top: 1px solid rgba(254, 245, 226, 0.15);
  padding-top: 20px;
  font-size: 0.82rem;
  opacity: 0.75;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Firm & Role Directory ---------- */

.directory-jump-nav {
  background: var(--grey-light);
  border: 1px solid var(--grey);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 8px 0 56px;
}

.directory-jump-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--maroon-dark);
  font-size: 1rem;
  margin-bottom: 16px;
}

.directory-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.directory-jump-links .btn {
  padding: 9.6px 22.4px;
  font-size: 0.76rem;
}

.directory-category {
  scroll-margin-top: 96px;
  margin-bottom: 48px;
}

.directory-category:last-child {
  margin-bottom: 0;
}

.directory-category-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--maroon);
}

.directory-category-head h2 {
  color: var(--maroon-dark);
  font-size: 1.3rem;
}

.directory-category-head span {
  color: var(--grey);
  font-size: 0.85rem;
}

.directory-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.directory-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.92rem;
}

.directory-table th {
  background: var(--maroon-dark);
  color: var(--cream);
  text-align: left;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.directory-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--grey-light);
  color: var(--ink);
  vertical-align: top;
}

.directory-table tbody tr:nth-child(even) {
  background: var(--cream-dim);
}

.directory-table tbody tr:hover {
  background: var(--maroon-tint);
}

.directory-table tbody tr:last-child td {
  border-bottom: none;
}

.directory-tag {
  display: inline-block;
  padding: 3px 10px;
  margin: 0 4px 4px 0;
  border-radius: 999px;
  border: 1px solid var(--grey);
  color: var(--grey-dark);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.directory-note {
  background: var(--grey-light);
  border-left: 3px solid var(--maroon);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 40px;
}

/* ---------- Data visualization (About page) ---------- */

.stat-tiles {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 40px;
  padding: 8px 0 32px;
}

.stat-tile-hero {
  padding-right: 36px;
  border-right: 1px solid var(--cream-line);
}

.stat-tile-hero .stat-value {
  font-family: var(--font-head);
  font-size: 4.16rem;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1;
}

.stat-tile-hero .stat-label {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 1.235rem;
  max-width: 220px;
}

.stat-tile {
  min-width: 140px;
}

.stat-tile .stat-label {
  color: var(--ink-soft);
  font-size: 1.066rem;
  margin-bottom: 4px;
}

.stat-tile .stat-value {
  font-family: var(--font-head);
  font-size: 2.21rem;
  font-weight: 700;
  color: var(--ink);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.chart-legend-swatch.women { background: var(--maroon-light); }
.chart-legend-swatch.senior { background: var(--chart-gold); }

.chart-legend-note {
  color: var(--grey);
  font-size: 0.8rem;
}

.hbar-group {
  margin-bottom: 30px;
}

.hbar-group:last-child { margin-bottom: 0; }

.hbar-group-title {
  color: var(--grey-dark);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.hbar-row {
  display: grid;
  grid-template-columns: 210px 1fr 56px;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.hbar-row:last-child { margin-bottom: 0; }

.hbar-row-label {
  font-size: 0.86rem;
  color: var(--ink);
  text-align: right;
}

.hbar-track {
  position: relative;
  height: 14px;
  background: var(--grey-light);
  border-radius: 4px;
}

.hbar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 4px;
  min-width: 4px;
}

.hbar-fill.women { background: var(--maroon-light); }
.hbar-fill.senior { background: var(--chart-gold); }

.hbar-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.hbar-row {
  border-radius: 6px;
  padding: 4px 6px;
  margin-left: -6px;
  margin-right: -6px;
  cursor: default;
  transition: background 0.12s ease;
}

.hbar-row:hover {
  background: var(--maroon-tint);
}

.hbar-row:hover .hbar-row-label {
  color: var(--maroon-dark);
  font-weight: 600;
}

/* ---------- Interactive tooltip (why-it-matters.html) ---------- */

.viz-tooltip {
  position: fixed;
  pointer-events: none;
  background: var(--ink);
  color: var(--cream);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  z-index: 999;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  max-width: 240px;
}

.viz-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Line charts ---------- */

.viz-chart-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.line-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.viz-axis-line {
  stroke: var(--grey-light);
  stroke-width: 1;
}

.viz-line {
  fill: none;
  stroke: var(--maroon);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.viz-point {
  fill: var(--maroon);
  stroke: var(--cream);
  stroke-width: 2;
  cursor: pointer;
  transition: r 0.12s ease;
}

.viz-point:hover {
  r: 8;
  fill: var(--maroon-dark);
}

.viz-point-label {
  fill: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
}

.viz-axis-label {
  fill: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 11px;
}

/* ---------- Donut charts ---------- */

.donut-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 56px;
}

.donut-card {
  text-align: center;
}

.donut-chart {
  width: 140px;
  height: 140px;
}

.donut-track,
.donut-arc {
  fill: none;
  stroke-width: 16;
  cursor: pointer;
}

.donut-track.male {
  stroke: var(--chart-gold);
}

.donut-arc.female {
  stroke: var(--maroon-light);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 70px 70px;
  transition: stroke-width 0.12s ease;
}

.donut-arc.female:hover,
.donut-track.male:hover {
  stroke-width: 19;
}

.donut-center-label {
  fill: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
}

.donut-caption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Heatmap ---------- */

.heatmap-row {
  display: flex;
  gap: 4px;
  max-width: 640px;
  margin: 0 auto;
}

.heatmap-cell {
  flex: 1;
  aspect-ratio: 1.6 / 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.heatmap-cell:hover {
  transform: scale(1.04);
}

.heatmap-cell .heatmap-value {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.heatmap-cell-dark .heatmap-value {
  color: var(--cream);
}

.heatmap-labels {
  display: flex;
  gap: 4px;
  max-width: 640px;
  margin: 10px auto 0;
}

.heatmap-labels span {
  flex: 1;
  text-align: center;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--grey-dark);
}

.heatmap-gradient {
  width: 120px;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #f6e2e2, #76090f);
}

.vbar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
  padding: 0 8px;
}

.vbar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
}

.vbar-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 52px;
  height: 160px;
}

.vbar-gap {
  width: 100%;
  height: 2px;
  background: var(--cream-dim);
}

.vbar-fill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vbar-fill.male {
  background: var(--chart-gold);
  border-radius: 4px 4px 0 0;
}

.vbar-fill.female {
  background: var(--maroon-light);
}

.vbar-seg-label {
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.vbar-year {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- Page header (interior pages) ---------- */

.page-hero {
  background: var(--maroon);
  color: var(--cream);
  padding: 64px 0 48px;
  text-align: center;
}

.page-hero .eyebrow { color: var(--cream-dim); }
.page-hero h1 { color: var(--cream); }
.page-hero p { color: var(--cream-dim); max-width: 560px; margin: 0 auto; }

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    border-bottom: 1px solid var(--cream-line);
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links a { padding: 12px 8px; }

  .nav-toggle { display: block; }

  .footer-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .two-col { grid-template-columns: 1fr; }

  .eboard-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

  .hbar-row {
    grid-template-columns: 1fr;
    row-gap: 6px;
    text-align: left;
    margin-bottom: 16px;
  }

  .hbar-row-label { text-align: left; }

  .hbar-value { text-align: left; }

  .stat-tile-hero {
    border-right: none;
    padding-right: 0;
  }

  .vbar-chart { gap: 12px; }

  .vbar-col { width: 40px; }
}

/* ---------- Members area ---------- */

.password-gate {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.password-gate .card-icon {
  margin: 0 auto 16px;
}

.password-gate input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--cream-line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.password-gate input[type="password"]:focus {
  outline: none;
  border-color: var(--maroon);
}

.password-gate-error {
  color: var(--maroon);
  font-size: 0.88rem;
  min-height: 1.4em;
  margin-bottom: 12px;
}

.password-gate-attempts {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-top: 16px;
}

/* Inverted theme applied to the gated members-only page. Because nearly
   every component below is built on these custom properties, redefining
   them here re-themes the whole page (header, buttons, cards) without
   touching each component's own rules. */
body.members-theme {
  --cream: #1c0304;
  --cream-dim: #2a0608;
  --cream-line: #4a1518;
  --maroon: #f6e9cf;
  --maroon-dark: #ffffff;
  --maroon-darker: #000000;
  --maroon-light: #e7d6b3;
  --maroon-tint: #3d1216;
  --ink: #fef5e2;
  --ink-soft: #cbb08e;
}

body.members-theme .card,
body.members-theme .member-card {
  background: var(--cream-dim);
}

body.members-theme .page-hero {
  background: var(--cream-dim);
  border-bottom: 1px solid var(--cream-line);
}

body.members-theme .page-hero h1,
body.members-theme .page-hero .eyebrow,
body.members-theme .page-hero p {
  color: var(--ink);
}

/* The rest of the site's footer uses a dark maroon marble image with
   light text; on the inverted members page that pairing goes dark-on-dark
   and disappears, so swap in a light marble to go with the (already
   inverted-dark) footer text. */
body.members-theme .site-footer {
  background: #f5f0eb url("../assets/white-marble.jpg") center / cover no-repeat;
}

.members-logout {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
}
