/* ============================================================
   Cornhusker Bridge — Modern Redesign
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy:   #1b3a5c;
  --navy-dark: #122843;
  --gold:   #c8a951;
  --gold-light: #e8cc7a;
  --green:  #2c5f2e;
  --bg:     #f4f3ee;
  --white:  #ffffff;
  --text:   #2c2c2c;
  --muted:  #6b7280;
  --border: #e0ddd4;
  --card-shadow: 0 2px 12px rgba(27,58,92,0.08);
  --card-shadow-hover: 0 6px 24px rgba(27,58,92,0.15);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

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

/* ── Header / Nav ───────────────────────────────────────── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-logo .suit-icon {
  font-size: 1.5rem;
  color: var(--gold);
}

.site-nav {
  display: flex;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}

.site-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}

.site-nav a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--gold-light);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--green) 100%);
  color: var(--white);
  padding: 72px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '♠ ♥ ♦ ♣';
  position: absolute;
  font-size: 9rem;
  opacity: 0.04;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  letter-spacing: 2rem;
  pointer-events: none;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.hero h1 span { color: var(--gold); }

.hero .subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.8;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: 0 4px 14px rgba(200,169,81,0.35);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy-dark);
  box-shadow: 0 6px 20px rgba(200,169,81,0.45);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200,169,81,0.08);
}

/* ── Main Layout ────────────────────────────────────────── */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

/* ── Section headings ───────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  color: var(--navy);
  margin-bottom: 20px;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
  margin-bottom: 28px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.card:hover { box-shadow: var(--card-shadow-hover); }

/* ── Announcements flyers ───────────────────────────────── */
.flyer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.flyer-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.flyer-item:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}

.flyer-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Dates list ─────────────────────────────────────────── */
.dates-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dates-list li {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: start;
}

.date-badge {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  text-align: center;
  padding: 8px 4px;
  font-size: 0.75rem;
  line-height: 1.2;
}

.date-badge .month {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.date-badge .day {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

.date-info strong {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.date-info span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar .card { margin-bottom: 0; }

.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.link-list a:hover {
  background: rgba(27,58,92,0.07);
  color: var(--navy);
}

.link-list a .icon {
  font-size: 1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

/* ── NABC sponsorship box ───────────────────────────────── */
.sponsorship-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.tier-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.tier-item .amount {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}

.tier-item .label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Online bridge card ─────────────────────────────────── */
.online-card {
  background: linear-gradient(135deg, var(--navy), var(--green));
  color: var(--white);
  text-align: center;
}

.online-card .section-title { color: var(--white); }
.online-card p { opacity: 0.85; margin-bottom: 16px; font-size: 0.9rem; }

/* ── Facebook card ──────────────────────────────────────── */
.fb-card {
  background: #1877f2;
  color: var(--white);
  text-align: center;
  padding: 24px 28px;
}

.fb-card .section-title { color: var(--white); font-size: 1.1rem; margin-bottom: 8px; }
.fb-card p { opacity: 0.9; font-size: 0.85rem; margin-bottom: 14px; }

.btn-facebook {
  background: var(--white);
  color: #1877f2;
}

.btn-facebook:hover {
  background: #e8f0fe;
  color: #1877f2;
  transform: translateY(-2px);
}

/* ── Page hero variant (shorter) ───────────────────────── */
.hero--page {
  padding: 48px 24px 40px;
}

/* ── Wide layout (no sidebar squeeze) ──────────────────── */
.main-content--wide {
  grid-template-columns: 1fr 300px;
}

/* ── Results table ──────────────────────────────────────── */
.results-table {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.results-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.results-row:last-child,
.results-row--last {
  border-bottom: none;
}

.results-row--header {
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.results-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: background 0.15s, border-color 0.15s;
}

.results-link:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ── Active nav link ────────────────────────────────────── */
.site-nav a[aria-current="page"] {
  background: rgba(255,255,255,0.18);
  color: var(--gold-light);
}

/* ── Club cards ─────────────────────────────────────────── */
.club-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.club-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.club-header {
  background: var(--navy);
  color: var(--white);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.club-suit {
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
}

.club-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.club-body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.club-detail {
  font-size: 0.875rem;
  color: var(--text);
  margin: 0;
}

.club-detail-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  width: 58px;
}

.club-detail a { color: var(--navy); font-weight: 500; }
.club-detail a:hover { color: var(--gold); }

.club-actions {
  padding: 10px 18px 14px;
  display: flex;
  gap: 8px;
}

.club-btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--navy);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.club-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ── Library styles ──────────────────────────────────────── */
.library-group {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.library-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.library-period {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.library-period::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--gold);
  border-radius: 2px;
}

.library-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 16px;
}

.library-list li {
  font-size: 0.875rem;
  color: var(--text);
  padding: 3px 0 3px 14px;
  position: relative;
}

.library-list li::before {
  content: '♦';
  position: absolute;
  left: 0;
  font-size: 0.5rem;
  color: var(--gold);
  top: 6px;
}

/* ── Full-width layout (obituaries) ─────────────────────── */
.main-content--full {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Board member grid ───────────────────────────────────── */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.board-member {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.board-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.board-avatar--vol {
  background: var(--green);
}

.board-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.board-info strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.board-info span {
  font-size: 0.8rem;
  color: var(--text);
}

.board-info small {
  font-size: 0.72rem;
  color: var(--muted);
}

.board-info a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 2px;
}

/* ── Document columns (board minutes / financials) ───────── */
.doc-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  margin-top: 8px;
}

.doc-year {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 6px;
}

.doc-year:first-child { margin-top: 0; }

.doc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.doc-list a {
  display: block;
  font-size: 0.875rem;
  padding: 4px 8px;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}

.doc-list a:hover {
  background: rgba(27,58,92,0.07);
  color: var(--navy);
}

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

/* ── Rank achievements (members page) ───────────────────── */
.rank-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.rank-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.rank-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 5px;
  display: inline-block;
}

.rank-junior  { background: #e8f4e8; color: #2c5f2e; }
.rank-club    { background: #e8eef8; color: #1b3a5c; }
.rank-sectional { background: #f0ebe0; color: #6b4c1a; }
.rank-regional  { background: #fdf0d5; color: #8a5a00; }
.rank-nabc    { background: #f5e8f5; color: #6b2d6b; }
.rank-lm      { background: #fff3cd; color: #856404; }
.rank-gem     { background: #f8f0e3; color: #7a5c2e; }

.rank-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-entry {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
}

.rank-month {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--gold);
  padding: 2px 5px;
  border-radius: 4px;
}

.rank-bronze { background: #cd7f32; color: #fff; }
.rank-ruby   { background: #9b111e; color: #fff; }

/* ── Obituaries table ────────────────────────────────────── */
.obit-table {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 8px;
}

.obit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  gap: 16px;
}

.obit-row:last-child { border-bottom: none; }

.obit-row:nth-child(even) { background: var(--bg); }

.obit-row a {
  font-weight: 500;
  color: var(--navy);
  transition: color 0.15s;
}

.obit-row a:hover { color: var(--gold); }

.obit-row span:last-child {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.82rem;
}

.site-footer a { color: var(--gold); }
.site-footer a:hover { color: var(--gold-light); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 800px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  .sidebar { order: -1; }
}

@media (max-width: 600px) {
  .site-nav { display: none; }
  .header-inner { justify-content: center; }
  .hero { padding: 48px 20px 40px; }
  .sponsorship-tiers { grid-template-columns: 1fr 1fr; }
}
