/* =========================
   WSWGA Theme (Shared)
   File: /assets/css/theme.css
   ========================= */

/* ---- CSS Variables (Brand) ---- */
:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;

  --brand: #0b1f3a; /* navy */
  --brand-2: #0ea5a4; /* teal accent */
  --accent: #2563eb; /* bright action blue */
  --accent-2: #dbeafe; /* pale blue */

  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1100px;
  --focus: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

/* ---- Reset / Base ---- */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--brand-2);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
small {
  color: var(--muted);
}

.container {
  width: min(var(--container), 100% - 32px);
  margin-inline: auto;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(30px, 4vw, 44px);
}
h2 {
  font-size: clamp(22px, 2.6vw, 30px);
}
h3 {
  font-size: 20px;
}

p {
  margin: 0 0 14px;
  color: var(--text);
}
.lead {
  font-size: 18px;
  color: var(--muted);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.08s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  user-select: none;
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: #081a30;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: rgba(11, 31, 58, 0.25);
}
.btn-outline:hover {
  border-color: rgba(11, 31, 58, 0.45);
  background: rgba(11, 31, 58, 0.06);
  text-decoration: none;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: #1d4ed8;
  text-decoration: none;
}

.btn-sm {
  padding: 10px 14px;
  font-size: 14px;
}
.btn-block {
  width: 100%;
}

/* ---- Forms ---- */
label {
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}
.input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 12px;
  background: #fff;
  font: inherit;
  outline: none;
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.input:focus,
select:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: var(--focus);
}
.form-row {
  display: grid;
  gap: 14px;
}
@media (min-width: 720px) {
  .form-row.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
  .form-row.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.help {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* ---- Cards / Sections ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card .card-body {
  padding: 18px;
}

.section {
  padding: 36px 0;
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 31, 58, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.site-header .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.site-header .brand img {
  background: transparent;
  padding: 0;

  border-radius: 10px; /* keeps soft rounded corners */
  box-shadow: none;

  height: 60px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}
.brand img {
  width: auto;
  height: 60px;
  max-width: 220px;
  border-radius: 0px;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
}
.nav-links a:hover {
  background: rgba(14, 165, 164, 0.18); /* teal tint */
  color: #fff;
}

/* ===============================
   Header Dropdown Navigation
   =============================== */

.nav-dd {
  position: relative;
}

.nav-dd > summary {
  list-style: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  user-select: none;
}

.nav-dd > summary::-webkit-details-marker {
  display: none;
}

.nav-dd > summary:hover {
  background: rgba(14, 165, 164, 0.18);
  color: #fff;
}

.nav-dd[open] > summary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 10px;
  background: rgba(11, 31, 58, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 6px;
  z-index: 100;
}

.nav-menu a {
  padding: 10px 10px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.92);
}

.nav-menu a:hover {
  background: rgba(14, 165, 164, 0.18);
  color: #fff;
}

/* ---- Hero ---- */
.hero {
  padding: 46px 0 26px;
}
.hero-inner {
  display: grid;
  gap: 18px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(11, 31, 58, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-weight: 700;
  color: var(--brand);
  width: fit-content;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.hero-panel {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-panel img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 26px;
  }
  .hero-panel img {
    height: 360px;
  }
}

/* ---- Grid helpers ---- */
.grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 840px) {
  .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- List items (documents/results) ---- */
.list {
  display: grid;
  gap: 12px;
}
.list-item {
  padding: 14px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.list-item .meta {
  display: grid;
  gap: 2px;
}
.list-item .meta .title {
  font-weight: 800;
}
.list-item .meta .sub {
  color: var(--muted);
  font-size: 13px;
}

/* ---- Footer ---- */
.site-footer {
  padding: 34px 0;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  margin-top: 30px;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.footer-row a {
  font-weight: 600;
}

/* ---- Focus ---- */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
}
button:focus-visible,
a:focus-visible {
  box-shadow: var(--focus);
  border-radius: 999px;
}

.club-logo {
  width: 110px;
  height: 52px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px;
}
@media (max-width: 520px) {
  .club-logo {
    width: 92px;
    height: 46px;
  }
}

.year-actions {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Not held cards */
.year-card.not-held {
  background: #f8f9fa;
  border: 2px dashed #c0392b;
}

.not-held-label {
  font-weight: bold;
  color: #c0392b;
  margin-bottom: 8px;
  text-align: center;
}

.not-held-reason {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
  text-align: center;
  padding: 6px;
}
/* Award columns */
.award-group {
  margin-bottom: 28px;
}

.award-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px 20px;
}

/* Individual award item */
.award-item {
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.award-item .place {
  font-weight: 600;
}

.award-item .winner {
  margin-top: 2px;
}

.award-item .score {
  color: #666;
  font-size: 0.9em;
}
/* Flight cards: 2–3 across depending on space */
.flight-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  align-items: start;
}

/* inside a flight card, group Gross/Net */
.flight-groups {
  display: grid;
  gap: 12px;
}

.flight-group {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(255, 255, 255, 0.55);
}

.flight-group h3 {
  margin: 0 0 10px 0;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* mini result table */
.mini-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.mini-table th,
.mini-table td {
  padding: 10px 10px;
  vertical-align: top;
}
.mini-table thead th {
  font-size: 12px;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.mini-table td small {
  display: block;
  line-height: 1.35;
}
/* Digital Archive / Museum styling */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.archive-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.archive-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.archive-caption {
  padding: 12px;
}

.archive-caption .title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
}

.archive-caption .meta {
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.8;
}

.archive-caption .desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
}
/* Album lightbox */
.photo-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;

  /* NEW: prevent the default blue focus ring / tap highlight */
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* NEW: remove default focus/active styles */
.photo-thumb:focus,
.photo-thumb:active {
  outline: none;
  box-shadow: none;
}

/* Make photo thumbs inherit card rounding */
.photo-card {
  overflow: hidden; /* clip children */
  border-radius: 14px; /* same as cards */
}

/* Ensure thumb respects rounding */
.photo-card .photo-thumb {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  overflow: hidden;
}

/* NEW: keep keyboard accessibility but use a subtle style */
.photo-thumb:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
  border-radius: 14px;
}

/* Optional: subtle hover/focus motion so it still feels interactive */
.photo-thumb:hover img,
.photo-thumb:focus-visible img {
  transform: scale(1.02);
  transition: transform 0.15s ease;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;

  /* optional but helps letterboxing look intentional */
  background: #fff;

  display: block;
  transition: transform 0.15s ease;
}

.photo-card {
  overflow: hidden;
  border-radius: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}
.lightbox.open {
  display: flex;
}
.lightbox-inner {
  width: min(1200px, 96vw);
  height: min(86vh, 900px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
}
.lightbox-toolbar .group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.lightbox-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.lightbox-stage {
  flex: 1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  /* NEW: allow the stage to actually constrain children in flex layouts */
  min-height: 0;
  min-width: 0;
}

.lightbox-stage img {
  /* NEW: force image box to never exceed the stage box */
  width: 100%;
  height: 100%;

  /* IMPORTANT: never crop in viewer */
  object-fit: contain;

  display: block;

  transform: scale(var(--zoom, 1));
  transform-origin: center center;

  /* NEW: prevent “flex overflow” issues */
  max-width: 100%;
  max-height: 100%;
}

.lightbox-hint {
  font-size: 13px;
  opacity: 0.85;
  color: #fff;
}
/* Past Presidents Table */

.history-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 12px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  overflow: hidden;
}

.history-table thead th {
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.history-table tbody td {
  padding: 12px 14px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Alternate row shading */
.history-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.04);
}

/* Hover highlight */
.history-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Year column */
.history-table td.year {
  font-weight: 700;
  white-space: nowrap;
  color: var(--accent, #fff);
}

/* No-event rows */
.history-table .note-row td {
  text-align: center;
  font-style: italic;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

/* Mobile: stack rows */
@media (max-width: 700px) {
  .history-table thead {
    display: none;
  }

  .history-table tr {
    display: block;
    padding: 10px 0;
  }

  .history-table td {
    display: block;
    padding: 6px 14px;
    border: none;
  }

  .history-table td::before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    opacity: 0.7;
    font-size: 13px;
  }

  .history-table td.year::before {
    content: 'Year';
  }
}
/* ===============================
   Modern Header Nav (Dropdown + Mobile)
   =============================== */

/* Show active top-level links */
.nav-links a[aria-current='page'] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* --- Hamburger button (hidden on desktop) --- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: 10px 10px;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
}
.nav-toggle span + span {
  margin-top: 6px;
}

/* --- Dropdown containers --- */
.nav-dd {
  position: relative;
}

/* clickable summary styled like links */
.nav-dd > summary {
  list-style: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-dd > summary::-webkit-details-marker {
  display: none;
}

/* caret arrow (visible!) */
.nav-dd > summary::after {
  content: '▾';
  font-size: 12px;
  line-height: 1;
  opacity: 0.9;
  transform: translateY(-1px);
  transition: transform 0.12s ease;
}
.nav-dd[open] > summary::after {
  transform: rotate(180deg);
}

/* hover + active section highlight */
.nav-dd > summary:hover {
  background: rgba(14, 165, 164, 0.18);
  color: #fff;
}
.nav-dd > summary.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* dropdown panel */
.nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 240px;
  padding: 10px;
  background: rgba(11, 31, 58, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 6px;
  z-index: 100;
}
.nav-menu a {
  padding: 10px 10px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.92);
}
.nav-menu a:hover {
  background: rgba(14, 165, 164, 0.18);
  color: #fff;
}

/* highlight current item inside dropdown */
.nav-menu a[aria-current='page'] {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* --- Mobile behavior --- */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* the nav becomes a dropdown panel under header */
  .nav-links {
    position: absolute;
    right: 16px;
    top: 72px;
    width: min(92vw, 420px);
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(11, 31, 58, 0.98);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
    display: none; /* closed by default */
    flex-direction: column;
    gap: 8px;
  }

  .navbar {
    position: relative;
  } /* anchors absolute nav */

  /* open/close controlled by data-open */
  .nav-links[data-open='1'] {
    display: flex;
  }

  .nav-links a,
  .nav-dd > summary {
    width: 100%;
    justify-content: space-between;
    padding: 10px 12px;
  }

  /* dropdown menu becomes inline on mobile */
  .nav-menu {
    position: static;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    margin-top: 6px;
  }
}
.exec-photo-placeholder {
  height: 220px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;

  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.12));

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 12px;
}
.exec-initials {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 31, 58, 0.18);
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.08em;
}
.exec-name {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Past Executive Secretaries - profile cards */
.profile-list {
  display: grid;
  gap: 14px;
}

.profile-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.profile-media {
  display: flex;
  align-items: stretch;
}

.profile-photo {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Use the same placeholder container but fit it into the photo slot */
.profile-photo.exec-photo-placeholder {
  height: 220px;
  border-radius: 14px;
}

.profile-body {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-right: 4px;
}

.profile-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
}

.profile-name {
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
}

.profile-years {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.profile-sub {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 700;
  opacity: 0.95;
}

.profile-bio {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.95;
}

/* Mobile */
@media (max-width: 720px) {
  .profile-card {
    grid-template-columns: 1fr;
  }
  .profile-photo,
  .profile-photo.exec-photo-placeholder {
    height: 240px;
  }
}
/* =========================
   Tables (Public)
   ========================= */
.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.55);
}

.table-wrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.table-wrap thead th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
  background: rgba(11, 31, 58, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px 14px;
  white-space: nowrap;
}

.table-wrap tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: top;
}

.table-wrap tbody tr:hover {
  background: linear-gradient(to right, rgba(11, 31, 58, 0.04), rgba(11, 31, 58, 0.02));
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

td.actions {
  white-space: nowrap;
}

/* =========================
   Resources header + tabs
   ========================= */
.resources-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.resources-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.resources-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.resources-tabs .tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(11, 31, 58, 0.18);
  color: var(--brand);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.6);
}

.resources-tabs .tab:hover {
  background: rgba(14, 165, 164, 0.08);
  text-decoration: none;
}

.resources-tabs .tab[aria-current='page'] {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}

/* Course photo preview (admin club edit) */
.club-photo-preview {
  width: 100%;
  max-width: 420px;
  height: 220px;

  object-fit: cover; /* fills nicely like a real photo */
  border-radius: 14px;

  border: 1px solid var(--border);
  background: #f8f9fb;

  display: block;
  margin-top: 8px;
}
.course-media {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 860px) {
  .course-media {
    grid-template-columns: 1fr;
  }
}

.course-media .panel {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.03);
  min-height: 240px;
}

.course-media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.media-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.photo-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
}
.panel.is-photo {
  position: relative;
}

.course-media .panel {
  min-height: 320px; /* match your hero-panel feel */
}

.course-media .panel iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

.course-media .panel.is-photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

/* Optional: slightly shorter on phones */
@media (max-width: 860px) {
  .course-media .panel {
    min-height: 240px;
  }
  .course-media .panel iframe,
  .course-media .panel.is-photo img {
    min-height: 240px;
  }
}
.doc-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.doc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
}
.doc-row .left {
  min-width: 0;
}
.doc-row .right {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.doc-row .name {
  font-weight: 800;
  line-height: 1.25;
}
.doc-row .meta {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
}
/* Taller photo + map panels */
.course-media .panel {
  min-height: 420px; /* was ~320 */
}

/* Make image fill the taller panel */
.course-media .panel.is-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

/* Make map match height */
.course-media .panel iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

/* Mobile: slightly shorter */
@media (max-width: 860px) {
  .course-media .panel {
    min-height: 280px;
  }

  .course-media .panel.is-photo img,
  .course-media .panel iframe {
    min-height: 280px;
  }
}
/* Remove focus ring from layout containers */
.container:focus,
.card:focus,
.table-wrap:focus,
.actions:focus {
  outline: none;
}
