/*
===================================================
KALANIYOT WEBSITE - ULTRA-COMPACT PROFESSIONAL DESIGN
Maximum density, perfect flow, elegant simplicity
===================================================
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Dartmouth Green Palette */
  --green-900: #001f12;
  --green-800: #003d24;
  --green-700: #00512f;
  --green-600: #00693e;
  --green-500: #0a7d4a;
  --green-400: #2e9461;
  --green-300: #5eb080;
  --green-200: #a8d5bc;
  --green-100: #d4eadf;
  --green-50: #edf7f2;
  --green-25: #f7faf9;

  /* Functional Colors */
  --text-primary: #1a2e23;
  --text-secondary: #2d4a3a;
  --text-muted: #4a6356;
  --text-light: #6b8477;
  --bg-primary: #ffffff;
  --bg-secondary: #f8faf9;
  --bg-accent: var(--green-50);
  --border-light: #e8eeeb;
  --border-medium: #d0ddd6;

  /* Typography - tighter, more professional */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --line-height-tight: 1.35;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;

  /* Spacing Scale - ultra compact */
  --space-xs: 3px;
  --space-sm: 6px;
  --space-md: 12px;
  --space-lg: 20px;
  --space-xl: 32px;
  --space-2xl: 44px;

  /* Shadows - minimal */
  --shadow-xs: 0 1px 2px rgba(0, 57, 36, 0.03);
  --shadow-sm: 0 1px 3px rgba(0, 57, 36, 0.05);
  --shadow-md: 0 2px 6px rgba(0, 57, 36, 0.07);
  --shadow-lg: 0 4px 12px rgba(0, 57, 36, 0.09);

  /* Transitions */
  --transition-fast: 0.1s ease;
  --transition-normal: 0.15s ease;

  /* Border Radius - crisp */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* ============================================
   RESET AND BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--space-md) * -1);
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 var(--space-md);
}

/* ============================================
   HEADER - Minimal, elegant
   ============================================ */
.header {
  background: var(--bg-primary);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
}

.logo img {
  max-width: 160px;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: opacity var(--transition-fast);
}

.logo img:hover {
  opacity: 0.85;
}

/* ============================================
   NAVIGATION - Compact, clear
   ============================================ */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.navbar .container {
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-link {
  display: block;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.857rem;
  padding: 10px 14px;
  text-decoration: none;
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
  letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green-600);
  border-bottom-color: var(--green-600);
  background: var(--green-50);
}

/* ============================================
   HERO - Ultra-compact, impactful
   ============================================ */
.hero {
  background: linear-gradient(145deg, var(--green-600) 0%, var(--green-500) 100%);
  color: white;
  padding: var(--space-lg) 0;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/poppies.jpg') center/cover;
  opacity: 0.05;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.hero-icon {
  margin-bottom: var(--space-md);
}

.hero-icon img {
  width: 56px;
  height: auto;
  filter: brightness(1.05);
}

.hero-title {
  font-size: 1.35rem;
  font-weight: 400;
  line-height: var(--line-height-tight);
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  margin-top: var(--space-sm);
  opacity: 0.92;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--line-height-normal);
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro {
  background: var(--bg-secondary);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-light);
}

.intro-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.intro-text {
  font-size: 0.92rem;
  line-height: var(--line-height-normal);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.intro-text:last-child {
  margin-bottom: 0;
}

.intro-text a {
  color: var(--green-600);
  text-decoration: none;
  font-weight: 500;
}

.intro-text a:hover {
  text-decoration: underline;
}

/* ============================================
   SECTIONS - Ultra-tight, clean
   ============================================ */
.section {
  padding: var(--space-xl) 0;
}

.section:nth-child(even) {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-600);
  position: relative;
  display: inline-block;
  letter-spacing: -0.02em;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--green-500);
  border-radius: 1px;
}

/* ============================================
   CARDS - Ultra-compact, scannable
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.card {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green-600), var(--green-400));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.card:hover::before {
  opacity: 1;
}

.card h3,
.card h4 {
  color: var(--green-600);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-tight);
}

.card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-sm);
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.card li {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: var(--line-height-normal);
  margin-bottom: 4px;
  padding-left: var(--space-md);
  position: relative;
}

.card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  background: var(--green-500);
  border-radius: 50%;
}

.card a {
  color: var(--green-600);
  text-decoration: none;
  font-weight: 500;
}

.card a:hover {
  text-decoration: underline;
}

.card.full-width {
  grid-column: 1 / -1;
  text-align: center;
  max-width: 480px;
  margin: var(--space-sm) auto 0;
}

/* ============================================
   PROGRAM CARDS
   ============================================ */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  text-decoration: none;
}

.program-card {
  cursor: pointer;
  min-height: auto;
}

.card-footer {
  margin-top: auto;
  padding-top: var(--space-sm);
  text-align: right;
}

.learn-more {
  color: var(--green-600);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.learn-more::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.card-link:hover .learn-more::after {
  transform: translateX(2px);
}

/* ============================================
   DKS PROGRAMS LAYOUT
   ============================================ */
.dks-programs-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin: var(--space-md) 0;
  padding: 0 var(--space-lg);
}

.dks-programs-row-2 .card-link,
.dks-programs-row-2 .card-link + .card-link,
.dks-programs-row-3 .card-link,
.dks-programs-row-3 .card-link + .card-link,
.dks-programs-row-4 .card-link,
.dks-programs-row-4 .card-link + .card-link {
  display: flex;
  height: 100%;
  margin-left: 0; /* Override Bootstrap's .card-link+.card-link margin */
}

.dks-programs-row-2 .program-card,
.dks-programs-row-3 .program-card,
.dks-programs-row-4 .program-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.dks-programs-row-2 .program-card p,
.dks-programs-row-3 .program-card p,
.dks-programs-row-4 .program-card p {
  flex: 1;
}

.dks-programs-row-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 340px;
  margin: var(--space-md) auto;
}

.dks-programs-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 700px;
  margin: var(--space-md) auto;
}

.dks-programs-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-md) 0;
  padding: 0 var(--space-lg);
}

/* ============================================
   PROGRAM CATEGORIES
   ============================================ */
.program-category {
  margin-bottom: var(--space-lg);
}

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

.program-category h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  text-align: center;
}

/* ============================================
   DKS SECTION
   ============================================ */
.dks-section {
  background: var(--green-50);
  padding: var(--space-lg) var(--space-lg);
  margin: var(--space-lg) 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.dks-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-md);
}

.dks-header h3 {
  color: var(--green-600);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.dks-header p {
  font-size: 0.9rem;
  line-height: var(--line-height-normal);
  color: var(--text-muted);
}

.dks-header a {
  color: var(--green-600);
  text-decoration: none;
  font-weight: 500;
}

.dks-header a:hover {
  text-decoration: underline;
}

/* ============================================
   BYLAWS - Compact numbered list
   ============================================ */
.bylaws-content {
  max-width: 820px;
  margin: 0 auto;
}

.bylaws-list {
  padding: 0;
  list-style: none;
  counter-reset: bylaw-counter;
  display: grid;
  gap: var(--space-sm);
}

.bylaws-list li {
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-md) var(--space-md) 52px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
  position: relative;
  counter-increment: bylaw-counter;
  font-size: 0.9rem;
  line-height: var(--line-height-normal);
  color: var(--text-secondary);
}

.bylaws-list li::before {
  content: counter(bylaw-counter);
  position: absolute;
  left: var(--space-md);
  top: var(--space-md);
  background: var(--green-600);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
}

.bylaws-list li strong {
  color: var(--green-600);
  font-weight: 600;
}

/* ============================================
   BOARD - Dense grid
   ============================================ */
.board-content {
  max-width: 960px;
  margin: 0 auto;
}

.board-content > p {
  text-align: center;
  font-size: 0.933rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.board-member {
  background: var(--bg-primary);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all var(--transition-fast);
}

.board-member:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-medium);
}

.board-member a {
  color: var(--green-600);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.867rem;
  display: block;
  margin-bottom: 2px;
  line-height: var(--line-height-tight);
}

.board-member a:hover {
  text-decoration: underline;
}

.board-member .title {
  color: var(--text-light);
  font-size: 0.75rem;
  display: block;
  line-height: var(--line-height-tight);
}

.board-note {
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  margin: var(--space-md) 0 var(--space-sm);
  font-size: 0.8rem;
}

.dks-board {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-medium);
}

.dks-board h3 {
  color: var(--green-600);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  text-align: center;
}

.dks-board > p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
}

/* ============================================
   DONATE
   ============================================ */
.donate-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.donate-content p {
  font-size: 0.933rem;
  line-height: var(--line-height-relaxed);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.donate-content a {
  color: var(--green-600);
  text-decoration: none;
  font-weight: 500;
}

.donate-content a:hover {
  text-decoration: underline;
}

.address-box {
  background: var(--green-50);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: inline-block;
}

.address {
  font-size: 0.933rem;
  line-height: 1.7;
  color: var(--text-primary);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-content {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.contact-content p {
  font-size: 1rem;
  color: var(--text-muted);
}

.contact-content a {
  color: var(--green-600);
  text-decoration: none;
  font-weight: 600;
}

.contact-content a:hover {
  text-decoration: underline;
}

/* ============================================
   FOOTER - Minimal
   ============================================ */
.footer {
  background: linear-gradient(145deg, var(--green-800) 0%, var(--green-900) 100%);
  color: white;
  padding: var(--space-lg) 0;
  margin-top: var(--space-2xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content p {
  margin: 0;
  font-size: 0.833rem;
  opacity: 0.9;
}

.footer a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ============================================
   NEWS - Scrollable compact feed
   ============================================ */
.news-feed {
  display: grid;
  gap: var(--space-md);
  max-height: 500px;
  overflow-y: auto;
  padding-right: var(--space-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--green-500) var(--green-50);
}

.news-feed::-webkit-scrollbar {
  width: 6px;
}

.news-feed::-webkit-scrollbar-track {
  background: var(--green-50);
  border-radius: 3px;
}

.news-feed::-webkit-scrollbar-thumb {
  background: var(--green-500);
  border-radius: 3px;
}

.news-feed::-webkit-scrollbar-thumb:hover {
  background: var(--green-400);
}

.news-card {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  position: relative;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--green-500);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.news-card:hover::before {
  opacity: 1;
}

.news-card-with-image {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.news-image {
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.news-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.news-content h4 {
  color: var(--green-600);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-tight);
}

.news-content p {
  color: var(--text-muted);
  font-size: 0.867rem;
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-sm);
}

.news-content p:last-child {
  margin-bottom: 0;
}

.news-content ul {
  padding-left: 0;
  list-style: none;
  margin: var(--space-sm) 0;
}

.news-content li {
  color: var(--text-muted);
  font-size: 0.867rem;
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-xs);
  padding-left: var(--space-md);
  position: relative;
}

.news-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  background: var(--green-500);
  border-radius: 50%;
}

.news-content a {
  color: var(--green-600);
  text-decoration: none;
  font-weight: 500;
}

.news-content a:hover {
  text-decoration: underline;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-sm);
  color: var(--green-600);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-link:hover {
  text-decoration: none;
}

/* ============================================
   LUNCH AND LEARN
   ============================================ */
.lunch-learn-events {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

.lunch-learn-events h5 {
  color: var(--green-600);
  font-size: 0.867rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  margin-top: var(--space-md);
}

.lunch-learn-events h5:first-child {
  margin-top: 0;
}

.event-item {
  background: var(--green-50);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
  border-left: 2px solid var(--green-500);
}

.event-item:last-child {
  margin-bottom: 0;
}

.event-date {
  display: block;
  color: var(--green-600);
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.event-speaker {
  display: block;
  color: var(--text-primary);
  font-size: 0.8rem;
  line-height: var(--line-height-tight);
}

.event-title {
  display: block;
  color: var(--text-light);
  font-size: 0.8rem;
  font-style: italic;
}

.event-location {
  display: block;
  color: var(--text-light);
  font-size: 0.75rem;
  margin-top: 2px;
}

/* Next upcoming Lunch & Learn talk. The .event-next class is applied by
   js/lunch-learn.js, which re-sorts the list by date on every page load; the
   class is also baked into programs.html so the highlight survives without JS. */
.event-item.event-next {
  background: #fff;
  border: 1px solid var(--green-500);
  border-left: 4px solid var(--green-600);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
}

.lunch-learn-events h5[hidden] {
  display: none;
}

.ll-archive-link {
  margin-top: var(--space-md);
  margin-bottom: 0;
  font-size: 0.8rem;
}

/* ============================================
   POSTDOCTORAL FELLOW BIOS (postdoc-fellow-bios.html)
   ============================================ */
.fellow-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--green-600);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.fellow-card:last-child {
  margin-bottom: 0;
}

.fellow-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.fellow-photo {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green-200);
}

.fellow-name {
  margin: 0 0 var(--space-sm) 0;
  color: var(--green-700);
  font-size: 1.25rem;
  font-weight: 600;
}

.fellow-mentor {
  display: block;
  color: var(--green-600);
  font-size: 0.95rem;
  font-weight: 600;
}

.fellow-dept {
  display: block;
  color: var(--text-light);
  font-size: 0.875rem;
  margin-top: 2px;
}

.fellow-bio {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.fellow-bio:last-child {
  margin-bottom: 0;
}

@media (max-width: 576px) {
  .fellow-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .fellow-photo {
    width: 120px;
    height: 120px;
  }
}

/* ============================================
   CV WINNERS
   ============================================ */
.cv-round h5 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}

.cv-announcement {
  background: var(--green-50);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
  border-left: 2px solid var(--green-500);
}

.cv-winner-card {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.cv-winner-card:last-child {
  margin-bottom: 0;
}

.cv-winner-title {
  color: var(--green-600);
  font-size: 0.967rem;
  font-weight: 600;
  line-height: var(--line-height-tight);
}

.cv-winner-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin: var(--space-sm) 0;
  padding: var(--space-sm);
  background: var(--green-50);
  border-radius: var(--radius-sm);
}

.cv-pi-label {
  color: var(--green-600);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cv-pi-name {
  color: var(--text-primary);
  font-size: 0.833rem;
  line-height: var(--line-height-tight);
}

.cv-winner-description {
  color: var(--text-muted);
  font-size: 0.867rem;
  line-height: var(--line-height-normal);
  margin: 0;
}

/* CV Footnotes - matches .board-note styling */
.cv-footnotes {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
}

.cv-footnote {
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  margin: var(--space-md) 0 var(--space-sm);
  font-size: 0.8rem;
}

/* CV Winner Team Photos */
.cv-team-photos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-md) 0;
  padding: var(--space-md) 0;
}

.cv-team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
  overflow: hidden;
}

.cv-team-photo {
  width: 65px;
  height: 65px;
  min-width: 65px;
  min-height: 65px;
  max-width: 65px;
  max-height: 65px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  overflow: hidden;
  -webkit-clip-path: circle(50%);
  clip-path: circle(50%);
  -webkit-mask-image: radial-gradient(circle, #fff 100%, transparent 100%);
  mask-image: radial-gradient(circle, #fff 100%, transparent 100%);
  isolation: isolate;
  will-change: transform;
  contain: layout style paint;
}

.cv-team-photo:hover {
  border-color: var(--green-500);
  box-shadow: var(--shadow-md);
  -webkit-transform: scale(1.05) translateZ(0);
  transform: scale(1.05) translateZ(0);
}

.cv-team-name {
  color: var(--text-primary);
  font-size: 0.733rem;
  font-weight: 600;
  line-height: var(--line-height-tight);
}

.cv-team-department {
  display: block;
  color: var(--text-muted);
  font-size: 0.6rem;
  line-height: var(--line-height-tight);
  max-width: 140px;
}

.cv-team-affiliation {
  color: var(--green-600);
  font-size: 0.633rem;
  font-weight: 500;
  line-height: var(--line-height-tight);
  max-width: 140px;
  margin-top: 2px;
}

/* CV Winner Cards Grid - two columns */
.cv-round {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.cv-round h5 {
  grid-column: 1 / -1;
}

.cv-round .cv-announcement {
  grid-column: 1 / -1;
}

/* CV Winner Card with Team Photos - updated layout */
.cv-winner-card-with-photos .cv-winner-title {
  text-align: center;
  margin-bottom: var(--space-sm);
}

.cv-winner-card-with-photos .cv-team-photos {
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
}

.cv-winner-card-with-photos .cv-winner-description {
  text-align: left;
}

/* Responsive styles for CV team photos */
@media (max-width: 768px) {
  .cv-round {
    grid-template-columns: 1fr;
  }

  .cv-team-photos {
    gap: var(--space-sm);
  }

  .cv-team-photo {
    width: 55px;
    height: 55px;
    min-width: 55px;
    min-height: 55px;
    max-width: 55px;
    max-height: 55px;
  }

  .cv-team-name {
    font-size: 0.7rem;
    max-width: 120px;
  }

  .cv-team-department {
    font-size: 0.58rem;
    max-width: 120px;
  }

  .cv-team-affiliation {
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .cv-team-photos {
    gap: var(--space-xs);
  }

  .cv-team-photo {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
  }

  .cv-team-name {
    font-size: 0.667rem;
    max-width: 100px;
  }

  .cv-team-department {
    font-size: 0.55rem;
    max-width: 100px;
  }

  .cv-team-affiliation {
    max-width: 100px;
  }

  .cv-team-member {
    gap: 2px;
  }
}

/* ============================================
   INLINE IMAGE
   ============================================ */
.inline-image-frame {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: inline-block;
  margin: var(--space-md) 0;
}

.inline-image-frame img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}

.inline-image-caption {
  color: var(--text-light);
  font-size: 0.8rem;
  line-height: var(--line-height-tight);
  text-align: center;
  margin-top: var(--space-sm);
  font-style: italic;
}

/* ============================================
   SUBPAGE STYLES
   ============================================ */
/* Vertical only — a padding shorthand here would override the horizontal
   padding of .container on elements carrying both classes. */
.section-padding {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-2xl);
}

.content-section {
  margin-bottom: var(--space-lg);
}

.content-section h2 {
  color: var(--green-600);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border-light);
}

.content-section h3,
.tm-text-blue {
  color: var(--green-600);
  font-size: 1.067rem;
  font-weight: 600;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.content-section p {
  color: var(--text-muted);
  font-size: 0.933rem;
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-sm);
}

.content-section ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: var(--space-md);
}

.content-section li {
  color: var(--text-muted);
  font-size: 0.933rem;
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-xs);
  padding-left: var(--space-md);
  position: relative;
}

.content-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--green-500);
  border-radius: 50%;
}

.content-section li ul {
  margin-top: var(--space-sm);
}

.content-section li li {
  font-size: 0.9rem;
}

.content-section a {
  color: var(--green-600);
  text-decoration: none;
  font-weight: 500;
}

.content-section a:hover {
  text-decoration: underline;
}

/* Buttons */
/* Row of page-level call-to-action buttons (e.g. Programs page) */
.program-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.867rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary,
a.btn-primary {
  background: var(--green-600);
  color: white;
}

.btn-primary:hover {
  background: var(--green-700);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 105, 62, 0.25);
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--green-600);
  border: 1.5px solid var(--green-600);
}

.btn-secondary:hover {
  background: var(--green-600);
  color: white;
  text-decoration: none;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 0.933rem;
}

/* Alert */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
}

.alert-info {
  background: var(--green-50);
  border-left: 3px solid var(--green-500);
  color: var(--text-primary);
}

.alert-info a {
  color: var(--green-600);
  font-weight: 600;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--green-50) 0%, var(--green-100) 100%);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
  margin: var(--space-lg) 0;
  border: 1px solid var(--border-light);
}

.cta-box h4 {
  color: var(--green-600);
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
}

/* FAQ */
.faq-section {
  margin-bottom: var(--space-xl);
}

.faq-section h3 {
  color: var(--green-600);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border-light);
}

.faq-item {
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
}

.faq-question {
  color: var(--green-600);
  font-size: 0.933rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  line-height: var(--line-height-tight);
}

.faq-answer {
  color: var(--text-muted);
  font-size: 0.867rem;
  line-height: var(--line-height-normal);
  margin: 0;
}

.faq-answer a {
  color: var(--green-600);
  text-decoration: none;
  font-weight: 500;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Info Link Box */
.info-link-box {
  background: var(--green-50);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  border-left: 3px solid var(--green-500);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
}

.info-link-box i {
  color: var(--green-600);
  font-size: 16px;
}

.info-link-box a {
  color: var(--green-600);
  font-weight: 600;
  text-decoration: none;
}

.info-link-box a:hover {
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .board-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dks-programs-row-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .dks-programs-row-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .hero {
    padding: var(--space-lg) 0;
  }

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

  .hero-icon img {
    width: 60px;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

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

  .dks-programs-row-1,
  .dks-programs-row-2,
  .dks-programs-row-3,
  .dks-programs-row-4 {
    grid-template-columns: 1fr;
    max-width: none;
    padding: 0 var(--space-md);
  }

  .board-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    padding: var(--space-xs) 0;
  }

  .nav-link {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .news-card-with-image {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .news-image {
    max-width: 200px;
    margin: 0 auto;
  }

  .program-card {
    min-height: auto;
    padding-bottom: 48px;
  }
}

@media (max-width: 480px) {
  .logo img {
    max-width: 150px;
  }

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

  .hero-icon img {
    width: 50px;
  }

  .section-header h2 {
    font-size: 1.25rem;
  }

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

  .card {
    padding: var(--space-md);
  }

  .bylaws-list li {
    padding-left: 44px;
  }

  .bylaws-list li::before {
    left: var(--space-sm);
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }

  .cv-winner-details {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.nav-link:focus,
.card-link:focus,
.scroll-to-top:focus,
.btn:focus {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   NEWSLETTER BANNER (index.html)
   ============================================ */
.newsletter-banner {
  max-width: 700px;
  margin: 0 auto;
}

.newsletter-card {
  background: linear-gradient(135deg, var(--green-50) 0%, var(--green-100) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--green-200);
  box-shadow: var(--shadow-md);
}

.newsletter-preview {
  text-align: center;
}

.newsletter-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.newsletter-badge {
  background: var(--green-600);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.newsletter-date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.newsletter-preview h3 {
  color: var(--green-600);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.newsletter-summary {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 550px;
  margin: 0 auto var(--space-lg);
  line-height: 1.55;
}

.newsletter-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.newsletter-archive-link {
  text-align: center;
  margin-top: var(--space-lg);
}

.newsletter-archive-link a {
  color: var(--green-600);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
}

.newsletter-archive-link a:hover {
  text-decoration: underline;
}

.news-link-box {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

.news-link-box a {
  color: var(--green-600);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
}

.news-link-box a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .newsletter-card {
    padding: var(--space-lg);
  }
  
  .newsletter-meta {
    flex-direction: column;
    gap: var(--space-xs);
  }
  
  .newsletter-actions {
    flex-direction: column;
  }
  
  .newsletter-actions .btn {
    width: 100%;
  }
}

/* ============================================
   VISITORS GUIDE
   ============================================ */

/* Quick-jump table of contents */
.guide-toc {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.guide-toc h2 {
  color: var(--green-600);
  font-size: 1.067rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.guide-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-toc-grid li {
  margin: 0;
  padding: 0;
}

.guide-toc-grid li::before {
  display: none;
}

.guide-toc-grid a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  font-size: 0.867rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.guide-toc-grid a:hover {
  border-color: var(--green-400);
  background: var(--green-50);
  color: var(--green-700);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Section banner — CSS re-creation of the printed guide's header bands */
.guide-band {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 100%);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-2xl) 0 var(--space-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  /* Clear the 72px sticky navbar when jumped to from the contents list */
  scroll-margin-top: 88px;
}

/* Decorative translucent circles, echoing the source document's banners */
.guide-band::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -60px;
  width: 170px;
  height: 170px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.guide-band-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.guide-band-text {
  position: relative;
  z-index: 1;
}

.guide-band-text h2 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: var(--line-height-tight);
  margin: 0;
}

.guide-band-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.867rem;
  font-style: italic;
  line-height: var(--line-height-tight);
  margin: 2px 0 0;
}

/* Listing entries: name + description */
.guide-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
}

.guide-list li {
  color: var(--text-muted);
  font-size: 0.933rem;
  line-height: var(--line-height-relaxed);
  padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.guide-list li:last-child {
  border-bottom: none;
}

.guide-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 5px;
  height: 5px;
  background: var(--green-500);
  border-radius: 50%;
}

.guide-list .guide-name {
  color: var(--green-600);
  font-weight: 600;
  text-decoration: none;
}

.guide-list a.guide-name:hover {
  text-decoration: underline;
}

.guide-meta {
  display: block;
  color: var(--text-light);
  font-size: 0.833rem;
  margin-top: 1px;
}

/* Hike entries */
.guide-hike {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--green-500);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-xs);
}

.guide-hike h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  line-height: var(--line-height-tight);
}

.guide-hike h3 a {
  color: var(--green-600);
  text-decoration: none;
}

.guide-hike h3 a:hover {
  text-decoration: underline;
}

.guide-season {
  display: inline-block;
  background: var(--green-50);
  color: var(--green-700);
  border-radius: 20px;
  padding: 1px 9px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: var(--space-sm);
  vertical-align: middle;
  white-space: nowrap;
}

.guide-hike p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* Tables */
.guide-table-wrap {
  margin-bottom: var(--space-lg);
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.guide-table th {
  background: var(--green-600);
  color: #fff;
  font-weight: 600;
  font-size: 0.833rem;
  text-align: left;
  padding: var(--space-sm) var(--space-md);
}

.guide-table th:first-child {
  border-top-left-radius: var(--radius-sm);
}

.guide-table th:last-child {
  border-top-right-radius: var(--radius-sm);
}

.guide-table td {
  color: var(--text-muted);
  line-height: var(--line-height-normal);
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.guide-table tbody tr:nth-child(even) {
  background: var(--bg-secondary);
}

.guide-table a {
  color: var(--green-600);
  font-weight: 600;
  text-decoration: none;
}

.guide-table a:hover {
  text-decoration: underline;
}

.guide-table .guide-distance {
  white-space: nowrap;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Practical services card grid */
.guide-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.guide-service {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.guide-service:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-sm);
}

.guide-service-head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}

.guide-service-head i {
  color: var(--green-600);
  font-size: 15px;
  width: 18px;
  text-align: center;
}

.guide-service-head h3 {
  color: var(--green-600);
  font-size: 0.967rem;
  font-weight: 600;
  margin: 0;
}

.guide-service p {
  color: var(--text-muted);
  font-size: 0.867rem;
  line-height: var(--line-height-relaxed);
  margin: 0 0 var(--space-sm);
}

.guide-service ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-service li {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-sm);
}

.guide-service li:last-child {
  margin-bottom: 0;
}

.guide-service a {
  color: var(--green-600);
  font-weight: 600;
  text-decoration: none;
}

.guide-service a:hover {
  text-decoration: underline;
}

/* Emergency-tinted card for hospitals and urgent care */
.guide-service.is-urgent {
  background: var(--green-25);
  border-left: 3px solid var(--green-500);
}

/* Closing note */
.guide-outro {
  background: linear-gradient(135deg, var(--green-50) 0%, var(--green-100) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-2xl) 0 var(--space-lg);
  text-align: center;
}

.guide-outro p {
  color: var(--green-700);
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  margin: 0;
}

.guide-footnote {
  color: var(--text-light);
  font-size: 0.833rem;
  font-style: italic;
  margin-top: calc(var(--space-sm) * -1);
  margin-bottom: var(--space-lg);
}

/* Home page + FAQ promo card */
.guide-promo {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: linear-gradient(135deg, var(--green-50) 0%, var(--green-100) 100%);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--green-500);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}

.guide-promo-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

.guide-promo-body {
  flex: 1 1 auto;
  /* .intro-text centers its content; keep the card left-aligned with its icon */
  text-align: left;
}

.guide-promo-body h3 {
  color: var(--green-700);
  font-size: 1.067rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
}

.guide-promo-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: var(--line-height-relaxed);
  margin: 0 0 var(--space-md);
}

.guide-promo-body .btn {
  margin: 0;
}

@media (max-width: 768px) {
  .guide-band {
    padding: var(--space-md);
    gap: var(--space-sm);
    margin-top: var(--space-xl);
  }

  .guide-band-icon {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .guide-band-text h2 {
    font-size: 1.1rem;
  }

  .guide-band-text p {
    font-size: 0.8rem;
  }

  .guide-promo {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  /* Stack table rows into labelled cards */
  .guide-table,
  .guide-table tbody,
  .guide-table tr,
  .guide-table td {
    display: block;
    width: 100%;
  }

  .guide-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .guide-table tr {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
  }

  .guide-table tbody tr:nth-child(even) {
    background: var(--bg-primary);
  }

  .guide-table td {
    border-bottom: none;
    padding: var(--space-xs) 0;
  }

  .guide-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 1px;
  }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .navbar,
  .hero,
  .footer,
  .scroll-to-top {
    display: none;
  }

  .section {
    padding: var(--space-md) 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }

  body {
    color: #000;
    font-size: 12pt;
  }
}
