:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #1f2421;
  --muted: #646b65;
  --accent: #2c4c3e;
  --accent-light: #3d6855;
  --gold: #b89655;
  --border: #e5dfd5;
  --danger: #b91c1c;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  font-size: 1.35rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
}

.nav-links a, .nav-btn {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-links a:hover, .nav-btn:hover {
  color: var(--gold);
}

.btn-primary {
  background: var(--accent);
  color: #fff !important;
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  border: none;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--accent-light);
}

/* Hero & Marriage Counter */
.hero {
  max-width: 860px;
  margin: 3.5rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.monogram {
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-family: system-ui, sans-serif;
  font-weight: 600;
}

.hero h1 {
  font-size: 3rem;
  font-weight: normal;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  color: var(--muted);
  font-style: italic;
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

.counter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  margin-bottom: 2.5rem;
}

.counter-label {
  font-family: system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.counter-unit {
  padding: 1rem 0.5rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.counter-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.counter-name {
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* Auth Card / Modal */
.auth-section {
  max-width: 440px;
  margin: 0 auto 4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: left;
  font-family: system-ui, -apple-system, sans-serif;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.auth-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}

.status-msg {
  font-size: 0.88rem;
  margin-top: 0.75rem;
  color: var(--danger);
}

/* Album & Hub Layouts */
.container {
  max-width: 1140px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  flex: 1;
  width: 100%;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: system-ui, sans-serif;
}

.filter-btn {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
}

.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.photo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.photo-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.photo-caption {
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  color: var(--text);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 16, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  flex-direction: column;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: #fff;
  margin-top: 1rem;
  font-size: 1.1rem;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
}

/* Hub Cards */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  font-family: system-ui, sans-serif;
}

.hub-card h3 {
  font-family: 'Georgia', serif;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.note-item {
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: 2.2rem;
  }
}

/* Shortcut Links on Hub */
.shortcut-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s, transform 0.15s;
}

.shortcut-link:hover {
  border-color: var(--gold);
  transform: translateX(3px);
}

/* Family Forum */
.forum-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}

.forum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.forum-new-thread {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  font-family: system-ui, sans-serif;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
}

.thread-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.15s;
  font-family: system-ui, sans-serif;
}

.thread-row:hover {
  border-color: var(--accent);
  background: var(--bg);
}

.thread-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--accent);
  margin-right: 0.5rem;
}

.thread-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.reply-count-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.thread-detail-box {
  font-family: system-ui, sans-serif;
}

.thread-op {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.reply-card {
  border-left: 3px solid var(--gold);
  background: var(--bg);
  padding: 0.85rem 1.1rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 0.75rem;
}

/* Mobile-First Grocery List */
.grocery-container {
  max-width: 680px;
  font-family: system-ui, -apple-system, sans-serif;
}

.grocery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.grocery-add-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--surface);
  padding: 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.grocery-add-bar input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
  font-size: 1rem;
}

.grocery-add-bar select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.65rem;
  background: var(--bg);
  font-size: 0.9rem;
}

.grocery-cat-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
  margin: 1.15rem 0 0.45rem;
}

.grocery-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.45rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.grocery-item:active {
  background: var(--bg);
}

.grocery-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
}

.grocery-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-weight: bold;
  font-size: 0.85rem;
}

.grocery-item.checked .grocery-checkbox {
  background: var(--muted);
  border-color: var(--muted);
}

.grocery-item.checked .grocery-name {
  text-decoration: line-through;
  color: var(--muted);
}

.grocery-name {
  font-size: 1.02rem;
  font-weight: 500;
}

.checked-wrapper {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.checked-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.text-danger-btn {
  background: none;
  border: none;
  color: var(--danger);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .navbar {
    padding: 0.9rem 1.1rem;
  }
  .nav-links {
    gap: 0.85rem;
    font-size: 0.84rem;
  }
  .grocery-add-bar {
    flex-wrap: wrap;
  }
  .grocery-add-bar input {
    width: 100%;
    flex: 100%;
  }
  .grocery-add-bar select, .grocery-add-bar button {
    flex: 1;
  }
}

/* Active Navbar & Family Household Pill */
.nav-links a.nav-active {
  color: var(--gold);
  font-weight: 700;
}

.family-pill-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 0.2s;
}

.family-pill-btn:hover {
  border-color: var(--gold);
}

/* Redesigned Public Index Features & Compact Bottom Ticker */
.welcome-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.03);
}

.public-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  text-align: left;
  margin-bottom: 3rem;
}

.public-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.35rem;
}

.public-feature-card h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: normal;
}

.public-feature-card p {
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
}

.compact-ticker {
  max-width: 640px;
  margin: 1rem auto 2rem;
  padding: 1.35rem 1.5rem;
  background: rgba(255, 255, 255, 0.75);
}

.compact-ticker .counter-value {
  font-size: 1.75rem;
}

/* Cookbook Scope Toggle & Controls */
.scope-toggle {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.2rem;
  font-family: system-ui, sans-serif;
}

.scope-btn {
  background: none;
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.scope-btn.active {
  background: var(--accent);
  color: #fff;
}

.weekly-menu-strip {
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-family: system-ui, sans-serif;
}

.weekly-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  color: var(--accent);
}

.weekly-menu-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.weekly-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.88rem;
  color: var(--text);
}

.weekly-pill button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.recipe-controls {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.recipe-search {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.98rem;
  font-family: system-ui, sans-serif;
  background: var(--surface);
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.recipe-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s;
  font-family: system-ui, sans-serif;
}

.recipe-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.recipe-card-title {
  font-family: 'Georgia', serif;
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: normal;
  margin-bottom: 0.35rem;
}

.recipe-card-meta {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.recipe-card-notes {
  font-size: 0.86rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.recipe-card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 16, 0.75);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  font-family: system-ui, sans-serif;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.modal-large {
  max-width: 860px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.85rem;
  margin-bottom: 1.15rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.ingredients-editor-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.ing-editor-row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.ing-editor-row input, .ing-editor-row select {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  background: #fff;
}

.recipe-detail-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
}

.recipe-ing-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.15rem;
}

.ing-check-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  cursor: pointer;
}

.recipe-note-callout {
  background: var(--bg);
  border-left: 3px solid var(--gold);
  padding: 0.65rem 1rem;
  margin-bottom: 1.15rem;
  font-size: 0.9rem;
}

.empty-state-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 10px;
}

@media (max-width: 720px) {
  .recipe-detail-split {
    grid-template-columns: 1fr;
  }
}

/* Hub Top Split & Live Activity Feed */
.hub-top-split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.5rem;
}

.activity-feed-box {
  max-height: 290px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  transition: border-color 0.15s, transform 0.15s;
}

.activity-item:hover {
  border-color: var(--gold);
  transform: translateX(2px);
}

.activity-icon {
  font-size: 1.25rem;
}

/* Classic SMF-Style Forum Tables & Directory Table */
.smf-breadcrumbs {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.smf-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.smf-table {
  width: 100%;
  border-collapse: collapse;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
}

.smf-table thead th {
  background: var(--accent);
  color: #fff;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.smf-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

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

.smf-table tbody tr:hover {
  background: var(--bg);
}

.smf-table td {
  padding: 0.9rem 1rem;
  vertical-align: middle;
}

/* Mailing Address Box on Directory Cards */
.mailing-address-box {
  background: var(--bg);
  border-left: 3px solid var(--gold);
  padding: 0.65rem 0.85rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
  margin: 0.75rem 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .hub-top-split {
    grid-template-columns: 1fr;
  }
}

/* User Avatars */
.avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
  vertical-align: middle;
}

.avatar-large {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

/* Forum Polls */
.poll-box {
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}

.poll-option-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: system-ui, sans-serif;
  transition: border-color 0.15s;
}

.poll-option-btn:hover {
  border-color: var(--accent);
}

.poll-option-btn.voted {
  border-color: var(--gold);
  font-weight: 600;
}

.poll-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(44, 76, 62, 0.12);
  z-index: 0;
}

.poll-option-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
}

/* Quotes Cards */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-body {
  font-family: 'Georgia', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

/* Interactive Pedigree Tree */
.tree-canvas {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tree-gen-tier {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.tree-gen-label {
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.tree-gen-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.15rem;
}

.tree-node-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  width: 250px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: transform 0.15s, border-color 0.2s;
  font-family: system-ui, sans-serif;
}

.tree-node-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

@media print {
  #site-nav, .page-header button, .recipe-card-actions {
    display: none !important;
  }
}