/* Club Homepage Stylesheet - Toastmasters Theme */
/* =========================================================================
   Design Principles Applied:
   - Concentric border radius (outer = inner + padding)
   - Layered box-shadows over hard borders
   - Font smoothing (antialiased)
   - Tabular numbers for dynamic counters
   - text-wrap: balance on headings, pretty on body
   - Specific transition properties (never transition: all)
   - Scale-on-press for CTA buttons (0.96)
   - Interruptible CSS transitions
   - Subtle image outlines
   - Minimum 40×40px hit areas
   ========================================================================= */

.club-home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 40px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #1e293b;
}

/* Force info boxes visible on this page */
#member-resources-info {
  display: flex !important;
}

/* ===== Mode Switcher Bar ===== */
.view-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 10px 20px;
  /* Concentric radius: outer 14px = inner pill 30px not applicable;
     standalone surface, use consistent 10px */
  border-radius: 10px;
  /* Layered shadows instead of border */
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

.view-mode-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  color: #772432;
  text-wrap: balance;
}

.view-mode-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 30px;
  gap: 4px;
}

.view-tab-btn {
  border: none;
  background: transparent;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  /* Concentric: inner btn 25px sits inside 30px pill with 4px pad → correct */
  border-radius: 25px;
  color: #64748b;
  cursor: pointer;
  /* Specific transition properties — never "all" */
  transition-property: background-color, color, box-shadow, transform;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
  display: flex;
  align-items: center;
  gap: 6px;
  /* Minimum hit area */
  min-height: 40px;
  white-space: nowrap;
}

.view-tab-btn:hover {
  color: #772432;
}

.view-tab-btn:active {
  transform: scale(0.96);
}

.view-tab-btn.active {
  background: #772432;
  color: #ffffff;
  box-shadow:
    0 1px 3px rgba(119, 36, 50, 0.25),
    0 4px 8px rgba(119, 36, 50, 0.15);
}

/* ===== Public Showcase Hero Section ===== */
.public-hero {
  position: relative;
  background: linear-gradient(135deg, #772432 0%, #581a24 60%, #004165 100%);
  color: #ffffff;
  /* Outer surface, standalone — 16px */
  border-radius: 16px;
  padding: 40px 36px;
  margin-bottom: 28px;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.public-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(242, 169, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 680px;
  z-index: 1;
}

.hero-badge-group {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px 0;
  color: #ffffff;
  text-wrap: balance;
}

.hero-slogan {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 24px;
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-cta-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: #f2a900;
  color: #1e293b;
  font-weight: 700;
  padding: 12px 24px;
  /* Inner element inside hero (16px pad, 36px padding).
     Concentric: hero 16px, btn = 16 - ~8 context = 8px */
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow:
    0 2px 4px rgba(242, 169, 0, 0.2),
    0 6px 16px rgba(242, 169, 0, 0.25);
  /* Specific properties */
  transition-property: transform, box-shadow;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
  /* Minimum hit area */
  min-height: 44px;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 8px rgba(242, 169, 0, 0.25),
    0 10px 20px rgba(242, 169, 0, 0.3);
  color: #0f172a;
}

.btn-cta-primary:active {
  transform: scale(0.96);
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition-property: background-color, transform;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
  min-height: 44px;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.btn-cta-secondary:active {
  transform: scale(0.96);
}

.hero-logo-box {
  z-index: 1;
  text-align: center;
  flex-shrink: 0;
}

.hero-club-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  background: #ffffff;
  padding: 12px;
  border-radius: 50%;
  /* Layered shadow for natural depth */
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.15);
  /* Subtle image outline — pure black at low opacity */
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

/* ===== Card Sections ===== */
.club-home-container .section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #772432;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-wrap: balance;
}

.club-home-container .section-title i {
  font-size: 1.1rem;
  color: #772432;
  /* Optical alignment: icons often sit slightly high */
  position: relative;
  top: 0.5px;
}

.card-box {
  background: #ffffff;
  /* Outer card surface — 12px radius */
  border-radius: 12px;
  /* Layered shadows instead of hard border */
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 24px;
  margin-bottom: 24px;
  transition-property: box-shadow;
  transition-duration: 0.25s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.card-box:hover {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 6px 16px rgba(119, 36, 50, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* ===== ExComm Marquee Carousel ===== */
.excomm-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 4px 0 6px;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 16px,
    #000 calc(100% - 16px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 16px,
    #000 calc(100% - 16px),
    transparent 100%
  );
}

.excomm-marquee-track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  width: max-content;
  animation: excommMarquee 32s linear infinite;
  will-change: transform;
}

.excomm-marquee-wrapper:hover .excomm-marquee-track {
  animation-play-state: paused;
}

@keyframes excommMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 6px));
  }
}

.officer-card {
  width: 118px;
  min-width: 118px;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Compact variant — full-width top row on the visitor overview */
.excomm-panel {
  margin-bottom: 24px;
  padding: 20px 24px;
}

.excomm-title {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.excomm-grid--compact .officer-card {
  padding: 12px 10px;
}

.excomm-grid--compact .officer-avatar {
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.excomm-grid--compact .officer-role {
  font-size: 0.72rem;
  margin-bottom: 3px;
}

.excomm-grid--compact .officer-name {
  font-size: 0.84rem;
}

/* ===== Visitor Right Column (calendar + FAQ) ===== */
.visitor-right-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.visitor-right-col .card-box {
  margin-bottom: 0;
}

.officer-card {
  background: #ffffff;
  /* Concentric: inside card-box 12px with 24px pad → 8px */
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
  /* Layered shadow instead of border */
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  transition-property: transform, box-shadow;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.officer-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(119, 36, 50, 0.08),
    0 0 0 1px rgba(119, 36, 50, 0.15);
}

.officer-card.is-clickable {
  cursor: pointer;
  position: relative;
}

.officer-card.is-clickable:hover {
  transform: translateY(-3px);
  box-shadow:
    0 6px 16px rgba(119, 36, 50, 0.12),
    0 0 0 1px rgba(119, 36, 50, 0.25);
}

.officer-msg-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(119, 36, 50, 0.08);
  color: #772432;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.officer-card.is-clickable:hover .officer-msg-badge {
  opacity: 1;
}

.officer-card.is-clickable .officer-msg-badge:hover {
  background: #772432;
  color: #ffffff;
}

.officer-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #772432;
  /* Layered shadow ring instead of solid border */
  box-shadow:
    0 0 0 2px #772432,
    0 2px 6px rgba(119, 36, 50, 0.15);
  /* Subtle outline for image avatars */
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

.officer-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: #772432;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.officer-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  text-wrap: balance;
}

/* ===== Member Dashboard (View B) ===== */
.member-dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.dash-summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-pill-card {
  background: #ffffff;
  /* Standalone pill — 10px */
  border-radius: 10px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  /* Layered shadow instead of border */
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.03),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  transition-property: box-shadow;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.stat-pill-card:hover {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 6px 16px rgba(119, 36, 50, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

.stat-icon {
  width: 48px;
  height: 48px;
  /* Concentric: pill 10px with 18px pad → inner = 10 - ~4 = 8px */
  border-radius: 10px;
  background: rgba(119, 36, 50, 0.08);
  color: #772432;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-content label {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  display: block;
  margin-bottom: 1px;
}

.stat-content .stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1e293b;
  /* Tabular numbers to prevent layout shift */
  font-variant-numeric: tabular-nums;
}

/* Text variant — smaller, colored, no tabular-nums */
.stat-content .stat-number--text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #772432;
  font-variant-numeric: normal;
}

/* ===== Role List ===== */
.my-roles-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Empty state for "My Upcoming Assignments" — the hint and the
   tm-action CTA sit on the same row, centered. The hint text is
   slightly smaller than the body so the icon button reads as the
   focal action. */
.my-roles-empty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.my-roles-empty-cta {
  flex-shrink: 0;
}

.my-role-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  /* Subtle separator — shadow instead of border */
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition-property: background-color;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}

.my-role-item:last-child {
  box-shadow: none;
}

.my-role-item:hover {
  background-color: #faf0f1;
}

.my-role-item strong {
  font-variant-numeric: tabular-nums;
}

.role-badge {
  background: #772432;
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  /* Concentric: row hover = #faf0f1 (banner 8px) → badge 6px sits inside with 4px visual gap */
  box-shadow:
    0 1px 2px rgba(119, 36, 50, 0.18),
    0 0 0 1px rgba(119, 36, 50, 0.1);
  transition-property: transform, box-shadow;
  transition-duration: 0.15s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.my-role-item:hover .role-badge {
  box-shadow:
    0 2px 4px rgba(119, 36, 50, 0.22),
    0 0 0 1px rgba(119, 36, 50, 0.18);
}

/* ===== Upcoming Meetings List (Visitor view) ===== */
.upcoming-meetings-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.upcoming-meeting-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  /* Concentric: sits inside card-box 12px — flush edge; row uses
     subtle box-shadow separator so radii don't conflict. */
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition-property: background-color, box-shadow;
  transition-duration: 0.18s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
  /* Minimum hit-area */
  min-height: 56px;
}

.upcoming-meetings-list li:last-child .upcoming-meeting-row {
  box-shadow: none;
}

.upcoming-meeting-row:hover {
  background-color: #faf0f1;
  color: inherit;
  text-decoration: none;
}

.umr-poster {
  flex-shrink: 0;
  width: 56px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  /* Subtle image outline + layered shadow */
  outline: 1px solid rgba(0, 0, 0, 0.08);
  outline-offset: -1px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition-property: box-shadow, transform;
  transition-duration: 0.18s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.upcoming-meeting-row:hover .umr-poster {
  box-shadow: 0 3px 8px rgba(119, 36, 50, 0.2);
  transform: translateY(-1px);
}

.umr-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
  flex-shrink: 0;
  text-align: center;
  line-height: 1.05;
}

.umr-weekday {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
}

.umr-day {
  font-size: 1.6rem;
  font-weight: 800;
  color: #772432;
  /* Tabular-nums keeps day column width stable across two-digit dates */
  font-variant-numeric: tabular-nums;
  /* Optical alignment: the large numeral sits slightly above the baseline */
  position: relative;
  top: 1px;
}

.umr-month {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.umr-meta {
  flex: 1;
  min-width: 0;
}

.umr-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
  /* Reserve two lines max so long titles don't push the row taller than 56px */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
  transition-property: color;
  transition-duration: 0.18s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.upcoming-meeting-row:hover .umr-title {
  color: #772432;
}

.umr-time {
  font-size: 0.78rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.umr-time i {
  font-size: 0.7rem;
}

.umr-status {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  /* Concentric: pill 999 — single value, no nested children */
}

.umr-status.status-not-started {
  background: #f1f5f9;
  color: #475569;
}

.umr-status.status-running {
  background: #fef3c7;
  color: #92400e;
}

.umr-status.status-finished {
  background: #f1f5f9;
  color: #94a3b8;
}

.umr-status.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.upcoming-meeting-row.is-cancelled .umr-title {
  text-decoration: line-through;
  opacity: 0.6;
}

.umr-arrow {
  flex-shrink: 0;
  font-size: 0.9rem;
  color: #94a3b8;
  transition-property: transform, color;
  transition-duration: 0.18s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.upcoming-meeting-row:hover .umr-arrow {
  color: #772432;
  transform: translateX(3px);
}

.umr-footer {
  padding-top: 14px;
  text-align: right;
}

.umr-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #772432;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.88rem;
  transition-property: transform, color;
  transition-duration: 0.18s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.umr-view-all i {
  font-size: 0.8rem;
  transition-property: transform;
  transition-duration: 0.18s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.umr-view-all:hover {
  text-decoration: none;
  color: #581a24;
}

.umr-view-all:hover i {
  transform: translateX(3px);
}

/* Responsive: grid layout for upcoming meeting row on mobile screens
   so poster/date sit on the left while title, time, and status pill have full width on the right. */
@media (max-width: 768px) {
  .upcoming-meeting-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "poster date meta arrow"
      "poster date status arrow";
    gap: 4px 10px;
    align-items: center;
    padding: 10px;
    min-height: 56px;
  }

  .umr-poster {
    grid-area: poster;
    width: 42px;
    height: 54px;
    border-radius: 6px;
  }

  .umr-date {
    grid-area: date;
    width: 42px;
    text-align: center;
  }

  .umr-weekday {
    display: none;
  }

  .umr-day {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    position: static;
  }

  .umr-month {
    font-size: 0.72rem;
  }

  .umr-meta {
    grid-area: meta;
    width: 100%;
    min-width: 0;
  }

  .umr-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
    line-height: 1.3;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .umr-time {
    font-size: 0.74rem;
    color: #64748b;
    display: block;
    white-space: nowrap;
  }

  .umr-status {
    grid-area: status;
    justify-self: start;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 999px;
  }

  .umr-arrow {
    grid-area: arrow;
    align-self: center;
    justify-self: end;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-left: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


/* ===== Quick Actions Grid ===== */
.quick-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-action-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.9rem;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(119, 36, 50, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.04);
  transition-property: background-color, box-shadow, transform;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
  min-height: 44px;
}

.quick-action-link i {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(119, 36, 50, 0.08);
  color: #772432;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.quick-action-link span {
  color: #1e293b;
}

.quick-action-link:hover {
  background: #faf0f1;
  box-shadow:
    0 0 0 1px rgba(119, 36, 50, 0.2),
    0 2px 6px rgba(119, 36, 50, 0.08);
  color: #772432;
  text-decoration: none;
}

.quick-action-link:hover span {
  color: #772432;
}

.quick-action-link:active {
  transform: scale(0.96);
}

/* ===== Role Arrow Link Button ===== */
.role-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  border-radius: 10px;
  background: rgba(119, 36, 50, 0.1);
  color: #772432;
  box-shadow: 0 0 0 1px rgba(119, 36, 50, 0.2);
  text-decoration: none;
  font-size: 0.9rem;
  transition-property: background-color, color, box-shadow, transform;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.role-link-btn:hover {
  background: #772432;
  color: #ffffff;
  box-shadow:
    0 2px 6px rgba(119, 36, 50, 0.22),
    0 0 0 1px rgba(119, 36, 50, 0.25);
  text-decoration: none;
}

.role-link-btn:active {
  transform: scale(0.96);
}

/* ===== Meetings Table — icon-only action buttons =====
   Row actions use the shared tm-action-btn system (defined in
   css/components/tm-action-btn.css). The --primary variant is the
   maroon brand action; the default variant is the neutral secondary.

   The buttons container is inline-flex so it sizes to its content; the
   .text-end on the cell pushes it flush right. The 1px width on the
   column forces the table to shrink the action column to its content
   width — without it, the column expands to absorb spare table width
   and leaves an empty band between the theme text and the icons. */
.meetings-table .tm-action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.meetings-table .meetings-action-col,
.meetings-table .meetings-action-cell {
  width: 1px;
  white-space: nowrap;
}

/* The Theme cell — vertical stack with the title on top and the
   # + date as a small muted secondary line. Works on every viewport. */
.meetings-theme-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.3;
}

.meetings-theme-stack__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  text-wrap: balance;
}

.meetings-theme-stack__meta {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.78rem;
  color: #64748b;
  white-space: nowrap;
}

.meetings-theme-stack__meta strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.meetings-theme-stack__date {
  font-variant-numeric: tabular-nums;
}

/* ===== FAQ Link Card ===== */
.card-box-sub {
  font-size: 0.9rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.faq-link-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.faq-link-list li {
  margin-bottom: 8px;
}

.faq-link-list li:last-child {
  margin-bottom: 0;
}

.faq-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #1e293b;
  background: #ffffff;
  text-decoration: none;
  /* Concentric radius: card 10px = inner text row with shorter radius */
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  transition-property: color, background-color, box-shadow;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.faq-link-list a:hover {
  color: #772432;
  background-color: #faf0f1;
  box-shadow: 0 0 0 1px rgba(119, 36, 50, 0.2);
  text-decoration: none;
}

.faq-link-list a::after {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #772432;
  flex-shrink: 0;
}

.faq-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #772432;
  text-decoration: none;
}

.faq-view-all i {
  font-size: 0.8rem;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.faq-view-all:hover {
  color: #5a1b26;
  text-decoration: none;
}

.faq-view-all:hover i {
  transform: translateX(3px);
}

/* ===== Mini Club Calendar (Visitor view) ===== */
.visitor-meetings-grid {
  display: grid;
  /* 2:1 — upcoming list gets the wider column, calendar is the compact side */
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.visitor-meetings-grid .card-box {
  margin-bottom: 0;
}

.mini-calendar-month + .mini-calendar-month {
  margin-top: 20px;
  padding-top: 20px;
  /* Subtle separator — shadow instead of border */
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.mini-calendar-month-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #772432;
  margin-bottom: 12px;
  text-wrap: balance;
}

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

.mini-calendar-wd {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 0;
}

.mini-calendar-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-calendar-cell.is-empty {
  visibility: hidden;
}

.mini-calendar-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  max-width: 46px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  text-decoration: none;
  color: #1e293b;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0);
  transition-property: background-color, color, box-shadow, transform;
  transition-duration: 0.18s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
  /* Minimum hit area */
  min-height: 40px;
  min-width: 40px;
}

.mini-calendar-day-num {
  font-size: 0.88rem;
  font-weight: 700;
  /* Tabular numbers to prevent layout shift */
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.mini-calendar-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #772432;
  flex-shrink: 0;
}

.mini-calendar-dot--multi {
  width: 12px;
  height: 5px;
  border-radius: 3px;
}

/* Meeting days */
.mini-calendar-cell.has-meetings .mini-calendar-day {
  color: #772432;
  background: rgba(119, 36, 50, 0.06);
  box-shadow: 0 0 0 1px rgba(119, 36, 50, 0.12);
}

.mini-calendar-cell.has-meetings .mini-calendar-day:hover {
  background: #772432;
  color: #ffffff;
  box-shadow:
    0 2px 6px rgba(119, 36, 50, 0.22),
    0 0 0 1px rgba(119, 36, 50, 0.25);
  transform: translateY(-1px);
}

.mini-calendar-cell.has-meetings .mini-calendar-day:hover .mini-calendar-dot {
  background: #ffffff;
}

/* Today — maroon ring highlight */
.mini-calendar-cell.is-today .mini-calendar-day {
  box-shadow: 0 0 0 2px #772432;
}

/* Next meeting — solid maroon fill */
.mini-calendar-day.is-next {
  background: #772432;
  color: #ffffff;
  box-shadow:
    0 1px 2px rgba(119, 36, 50, 0.18),
    0 0 0 1px rgba(119, 36, 50, 0.1);
}

.mini-calendar-day.is-next .mini-calendar-dot {
  background: #ffffff;
}

/* Cancelled meeting day — muted + strikethrough */
.mini-calendar-day.is-cancelled {
  color: #94a3b8;
  background: #f1f5f9;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
  text-decoration: line-through;
  opacity: 0.85;
}

.mini-calendar-day.is-cancelled .mini-calendar-dot {
  background: #94a3b8;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .visitor-meetings-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .member-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .club-home-container {
    padding: 12px 14px 32px;
  }

  /* --- View Mode Switcher --- */
  .view-mode-bar {
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px 12px;
    margin-bottom: 14px;
    border-radius: 12px;
    box-shadow: none;
  }

  .view-mode-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    justify-content: center;
    width: 100%;
    gap: 8px;
    color: #581a24;
    line-height: 1.25;
  }

  /* Compact sliding segmented toggle */
  .view-mode-tabs {
    position: relative;
    align-self: center;
    display: inline-flex;
    width: 200px;
    height: 30px;
    padding: 3px;
    border-radius: 16px;
    background: #f1f5f9;
    gap: 0;
    overflow: hidden;
  }

  .view-mode-tabs::before {
    content: '';
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    background: #772432;
    border-radius: 13px;
    box-shadow:
      0 1px 2px rgba(119, 36, 50, 0.25),
      0 2px 6px rgba(119, 36, 50, 0.18);
    transition-property: transform;
    transition-duration: 0.22s;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
    z-index: 0;
  }

  .view-mode-tabs[data-active="member"]::before {
    transform: translateX(100%);
  }

  .view-tab-btn {
    flex: 1 1 0;
    min-width: 0 !important;
    justify-content: center;
    padding: 0 4px !important;
    font-size: 0.68rem !important;
    font-weight: 500;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 13px;
    gap: 4px;
    color: #94a3b8;
    z-index: 1;
    background: transparent !important;
    box-shadow: none !important;
  }

  .view-tab-btn i {
    display: none;
  }

  .view-tab-btn.active {
    color: #ffffff;
    font-weight: 600;
  }

  /* --- Hero Showcase --- */
  .public-hero {
    flex-direction: column;
    text-align: center;
    padding: 22px 16px;
    margin-bottom: 20px;
    gap: 16px;
    border-radius: 14px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-logo-box {
    order: -1;
    margin-bottom: 2px;
  }

  .hero-club-logo {
    width: 80px;
    height: 80px;
    padding: 8px;
  }

  .hero-badge-group {
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 16px;
  }

  .hero-title {
    font-size: 1.45rem;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .hero-slogan {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 18px;
    opacity: 0.95;
  }

  .hero-cta-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 10px 6px;
    font-size: 0.82rem;
    white-space: nowrap;
    min-height: 42px;
    border-radius: 8px;
    box-sizing: border-box;
    text-align: center;
  }

  /* --- Cards & Titles --- */
  .card-box {
    padding: 16px 14px;
    margin-bottom: 16px;
    border-radius: 12px;
  }

  .club-home-container .section-title {
    font-size: 1.05rem;
    margin-bottom: 12px;
    gap: 8px;
  }

  .club-home-container .section-title i {
    font-size: 0.95rem;
  }

  /* --- ExComm Officers Grid --- */
  .excomm-panel {
    padding: 16px 14px;
    margin-bottom: 16px;
  }

  .excomm-title {
    font-size: 1.05rem;
    margin-bottom: 12px;
  }

  .excomm-marquee-track {
    gap: 8px;
    animation-duration: 26s;
  }

  .officer-card {
    width: 95px;
    min-width: 95px;
    padding: 10px 6px;
    border-radius: 8px;
  }

  .officer-avatar,
  .excomm-grid--compact .officer-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .officer-role,
  .excomm-grid--compact .officer-role {
    font-size: 0.68rem;
    letter-spacing: 0.2px;
    margin-bottom: 2px;
  }

  .officer-name,
  .excomm-grid--compact .officer-name {
    font-size: 0.78rem;
    line-height: 1.25;
    word-break: break-word;
  }

  /* --- Summary Pills Bar --- */
  .dash-summary-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }

  .stat-pill-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 6px;
    gap: 4px;
    border-radius: 10px;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
    font-size: 0.92rem;
    border-radius: 8px;
  }

  .stat-content {
    width: 100%;
  }

  .stat-content label {
    font-size: 0.68rem;
    font-weight: 600;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .stat-content .stat-number {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
  }

  .stat-content .stat-number--text {
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* --- My Roles & Meetings --- */
  .my-role-item {
    padding: 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-direction: row;
  }

  .my-role-item > div:first-child {
    font-size: 0.85rem;
    line-height: 1.3;
    min-width: 0;
    flex: 1;
  }

  .my-role-item > div:first-child .text-muted {
    display: inline-block;
    font-size: 0.75rem;
  }

  /* Empty state hint — match the meetings table's theme cells (0.82rem)
     so the two empty/inhabited states read at the same density. */
  .my-roles-empty__hint {
    font-size: 0.82rem;
  }

  .my-role-item > div:last-child {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .my-role-item .role-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 6px;
  }

  .my-role-item .role-link-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    margin-left: 6px;
    border-radius: 8px;
  }

  /* --- Booking Table --- */
  .table-responsive .table {
    font-size: 0.82rem;
  }

  .table-responsive .table th,
  .table-responsive .table td {
    padding: 8px 6px;
  }

  /* Tighter action cell on mobile — only the 28px icon buttons need to fit. */
  .meetings-table .meetings-action-cell {
    padding-left: 0;
  }

  /* On mobile the theme title is the same size; the meta line can come
     down a touch to give the title more breathing room. */
  .meetings-theme-stack__title {
    font-size: 0.88rem;
  }

  .meetings-theme-stack__meta {
    font-size: 0.72rem;
  }

  .meetings-table .tm-action-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  /* --- Quick Actions --- */
  .quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .quick-action-link {
    padding: 10px 8px;
    font-size: 0.8rem;
    min-height: 42px;
    gap: 8px;
    border-radius: 8px;
  }

  .quick-action-link i {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .quick-action-link span {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  /* --- Calendar & FAQ --- */
  .mini-calendar-month-label {
    font-size: 0.88rem;
    margin-bottom: 8px;
  }

  .mini-calendar-grid {
    gap: 2px;
  }

  .mini-calendar-wd {
    font-size: 0.65rem;
    padding: 2px 0;
  }

  .mini-calendar-day {
    min-height: 34px;
    min-width: 34px;
    max-width: 38px;
    border-radius: 6px;
    gap: 2px;
  }

  .mini-calendar-day-num {
    font-size: 0.78rem;
  }

  .mini-calendar-dot {
    width: 4px;
    height: 4px;
  }

  .faq-link-list {
    margin-bottom: 12px;
  }

  .faq-link-list li {
    margin-bottom: 6px;
  }

  .faq-link-list a {
    padding: 9px 10px;
    font-size: 0.82rem;
    border-radius: 8px;
  }

  .card-box-sub {
    font-size: 0.82rem;
    margin-bottom: 10px !important;
  }

  .faq-view-all,
  .umr-view-all {
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .club-home-container {
    padding: 10px 10px 24px;
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .hero-slogan {
    font-size: 0.85rem;
  }

  .excomm-marquee-track {
    gap: 6px;
  }

  .officer-card {
    width: 86px;
    min-width: 86px;
  }

  .hero-cta-buttons {
    gap: 6px;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    padding: 10px 4px;
    font-size: 0.78rem;
    gap: 4px;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .view-mode-title {
    font-size: 1.08rem;
  }

  .view-mode-tabs {
    width: 188px;
    height: 28px;
  }
}

/* =========================================================================
   THE LECTERN — mobile-only signature card
   Surfaces the same maroon→navy gradient as the public-hero, so the
   same visual language introduces the club to visitors and the next
   meeting to members. Hidden above 768px; the dashboard grid still
   carries the desktop work.
   ========================================================================= */

.lectern-card {
  display: none;
}

.lectern-card a,
.lectern-card a:hover,
.lectern-card a:focus {
  text-decoration: none;
}

@keyframes lectern-rise {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {

  /* Page returns to the global cool gray. The Lectern gradient is now
     the only deliberate departure on the page. */
  .club-home-container {
    padding: 12px 14px 32px;
  }

  /* --- The view-mode-bar is now just a centered toggle --- */
  .view-mode-bar {
    flex-direction: row;
    justify-content: center;
    padding: 0;
    margin: 0 0 14px;
    background: transparent;
    box-shadow: none;
  }

  /* The page-title is redundant with the Lectern's eyebrow — hide it. */
  .view-mode-title {
    display: none;
  }

  .view-mode-tabs {
    width: 188px;
    height: 28px;
  }

  /* ====================================================
     THE LECTERN — same gradient as the public-hero
     ==================================================== */
  .lectern-card {
    display: block;
    position: relative;
    /* Same gradient as .public-hero (line 106) — visual continuity
       between the visitor landing and the member's next meeting. */
    background: linear-gradient(135deg, #772432 0%, #581a24 60%, #004165 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 18px 18px 16px;
    margin: 0 0 18px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 2px 6px rgba(15, 23, 42, 0.1),
      0 12px 32px rgba(119, 36, 50, 0.25);
    overflow: hidden;
    animation: lectern-rise 400ms cubic-bezier(0.2, 0, 0, 1) both;
  }

  /* Soft marigold corner wash — same idea as the public-hero ::before,
     kept subtle so the gradient still reads first. */
  .lectern-card::after {
    content: '';
    position: absolute;
    top: -60%;
    right: -25%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(242, 169, 0, 0.18) 0%, rgba(242, 169, 0, 0) 65%);
    pointer-events: none;
  }

  .lectern-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    position: relative;
    z-index: 1;
  }

  .lectern-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
  }

  .lectern-card--role .lectern-eyebrow-dot {
    background: #F2A900;
    box-shadow: 0 0 0 4px rgba(242, 169, 0, 0.28);
  }

  .lectern-card--empty .lectern-eyebrow-dot {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
  }

  .lectern-date {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 12px 0 12px;
    position: relative;
    z-index: 1;
  }

  /* Display numeral — Montserrat 800 to match the site's heading face.
     Tightened letter-spacing compensates for the heavy weight at size. */
  .lectern-numeral {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 5.2rem;
    line-height: 0.9;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
  }

  .lectern-numeral--empty {
    color: rgba(255, 255, 255, 0.32);
    font-size: 4rem;
  }

  .lectern-weekday {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.78);
    transform: translateY(-6px);
  }

  /* The thin marigold rule under the date — the one hot pixel in the card. */
  .lectern-rule {
    height: 1px;
    width: 56px;
    background: #F2A900;
    border: 0;
    margin: 0 0 14px;
    position: relative;
    z-index: 1;
  }

  .lectern-card--empty .lectern-rule {
    background: rgba(255, 255, 255, 0.25);
    width: 36px;
  }

  .lectern-body {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
  }

  .lectern-headline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 4px;
    text-wrap: balance;
  }

  .lectern-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.4;
  }

  /* Gold pill CTA — same gold the public-hero uses (line 184), so the
     two surfaces read as the same brand even at different sizes. */
  .lectern-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #F2A900;
    color: #1A1A1A;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 11px 18px;
    border-radius: 999px;
    min-height: 44px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      0 2px 6px rgba(242, 169, 0, 0.3);
    transition-property: transform, box-shadow, background-color;
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
    position: relative;
    z-index: 1;
  }

  .lectern-cta:hover {
    color: #1A1A1A;
    transform: translateY(-1px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      0 6px 14px rgba(242, 169, 0, 0.4);
  }

  /* Focus ring — white reads on the gold pill, on the maroon bg, and on
     any screen behind. The brand color is not always a good focus color. */
  .lectern-cta:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      0 2px 6px rgba(242, 169, 0, 0.3);
  }

  .lectern-cta:active {
    transform: scale(0.96);
  }

  .lectern-cta i {
    font-size: 0.78rem;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
  }

  .lectern-cta:hover i {
    transform: translateX(2px);
  }

  .lectern-card--empty .lectern-cta {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  }

  .lectern-card--empty .lectern-cta:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
  }

  /* The cards under the Lectern — softer radius so the Lectern reads as
     the heavier element. */
  #member-view > .card-box {
    border-radius: 14px;
  }

  @media (prefers-reduced-motion: reduce) {
    .lectern-card {
      animation: none;
    }
  }
}

/* Small-phone tuning — the 5.2rem numeral is comfortable above 360px,
   but cramps below. Dial back, tighten padding. */
@media (max-width: 380px) {
  .lectern-card {
    padding: 16px 16px 14px;
    border-radius: 14px;
  }
  .lectern-numeral {
    font-size: 4.4rem;
  }
  .lectern-headline {
    font-size: 1rem;
  }
  .lectern-cta {
    font-size: 0.84rem;
    padding: 10px 16px;
  }
}


