/* StockMyTanks.com — Design System
   Warm, friendly, built by fishkeepers.
   Teal + coral + golden accents on clean white. */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #374151;
  background: #FDFCFA;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'DM Sans', 'Inter', sans-serif; font-weight: 700; line-height: 1.25; color: #1F2937; }
h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.45rem; margin-bottom: 0.75rem; letter-spacing: -0.015em; }
h3 { font-size: 1.1rem; }
h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; }

a { color: #0D9488; text-decoration: none; }
a:hover { color: #0F766E; text-decoration: underline; }

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

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* prose styling for about page etc */
.prose { max-width: 680px; line-height: 1.8; }
.prose p { margin-bottom: 1rem; }
.prose h2 { margin-top: 2rem; margin-bottom: 0.5rem; font-size: 1.25rem; }
.prose ul { margin: 0.5rem 0 1rem 1.25rem; }
.prose li { margin-bottom: 0.35rem; }

/* ---- Container ---- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- Navbar ---- */
.navbar {
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo-icon { font-size: 0; width: 0; overflow: hidden; }
.logo-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #0D9488;
  letter-spacing: -0.01em;
}
.logo::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0D9488;
  flex-shrink: 0;
}
.nav-links { display: flex; list-style: none; gap: 0.15rem; }
.nav-links a {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-icon { width: 20px; height: 20px; vertical-align: middle; display: inline-block; margin-right: 2px; }
.nav-links a:hover { background: #F0FDFA; color: #0D9488; text-decoration: none; }
.nav-links a.active { color: #0D9488; background: #CCFBF1; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #6B7280; margin: 5px 0; border-radius: 2px; transition: 0.2s; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, #0D9488 0%, #14B8A6 50%, #2DD4BF 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.hero h1 { font-size: 2.25rem; margin-bottom: 0.6rem; letter-spacing: -0.025em; color: #fff; }
.hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto; line-height: 1.6; }

/* ---- Page Header ---- */
.page-header {
  background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
  color: #fff;
  padding: 2rem 0 1.75rem;
  text-align: center;
}
.page-header h1 { color: #fff; }
.page-header p { color: rgba(255,255,255,0.85); margin-top: 0.35rem; font-size: 0.95rem; }

.page-content { padding-top: 2rem; }

/* ---- Breadcrumb ---- */
.breadcrumb { font-size: 0.8rem; color: #9CA3AF; margin-bottom: 1.75rem; }
.breadcrumb a { color: #0D9488; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px; border: none;
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
  text-decoration: none;
}
.btn-primary { background: #0D9488; color: #fff; }
.btn-primary:hover { background: #0F766E; color: #fff; text-decoration: none; }
.btn-secondary { background: #F3F4F6; color: #374151; }
.btn-secondary:hover { background: #E5E7EB; }
.btn-ghost { background: transparent; color: #6B7280; border: 1px solid #E5E7EB; }
.btn-ghost:hover { background: #F9FAFB; color: #374151; }

/* ---- Cards ---- */
.card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ---- Tags ---- */
.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #F3F4F6;
  color: #6B7280;
  letter-spacing: 0.01em;
}
.tag-sm { font-size: 0.68rem; padding: 0.1rem 0.4rem; }
.tag-peaceful { background: #D1FAE5; color: #065F46; }
.tag-semi-aggressive { background: #FEF3C7; color: #92400E; }
.tag-aggressive { background: #FEE2E2; color: #991B1B; }
.tag-care-easy { background: #D1FAE5; color: #065F46; }
.tag-care-moderate { background: #FEF3C7; color: #92400E; }
.tag-care-advanced { background: #FEE2E2; color: #991B1B; }
.tag-schooling { background: #CCFBF1; color: #0F766E; }
.tag-reef-safe { background: #D1FAE5; color: #065F46; }
.tag-reef-caution { background: #FEF3C7; color: #92400E; }
.tag-reef-unsafe { background: #FEE2E2; color: #991B1B; }

/* ---- Water Type Filter ---- */
.water-type-filter {
  display: flex; gap: 0.5rem; margin-bottom: 1rem;
}
.water-type-btn {
  padding: 0.4rem 1rem;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #fff;
  color: #6B7280;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.water-type-btn:hover { border-color: #0D9488; color: #0D9488; }
.water-type-btn.active { background: #0D9488; color: #fff; border-color: #0D9488; }

/* ---- Checker Section ---- */
.checker-section { padding: 2.5rem 0 1.5rem; }
.checker-panel {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.checker-title { font-size: 1.25rem; margin-bottom: 0.25rem; }
.checker-desc { color: #9CA3AF; margin-bottom: 1.25rem; font-size: 0.9rem; }

/* ---- Search ---- */
.search-wrapper { position: relative; margin-bottom: 1rem; }
.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
  color: #374151;
}
.search-input::placeholder { color: #9CA3AF; }
.search-input:focus { outline: none; border-color: #0D9488; box-shadow: 0 0 0 3px rgba(13,148,136,0.1); }
.search-results {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 50;
  max-height: 360px;
  overflow-y: auto;
  display: none;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background 0.1s;
  border-bottom: 1px solid #F3F4F6;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover, .search-result-highlighted { background: #F0FDFA; }
.search-result-added { opacity: 0.5; cursor: default; }
.search-result-img { width: 40px; height: 28px; border-radius: 4px; object-fit: cover; background: #F3F4F6; flex-shrink: 0; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-name { display: block; font-weight: 600; font-size: 0.875rem; }
.search-result-sci { display: block; font-size: 0.72rem; color: #9CA3AF; font-style: italic; }
.search-result-meta { font-size: 0.72rem; color: #9CA3AF; white-space: nowrap; }
.search-no-results { padding: 1rem; text-align: center; color: #9CA3AF; font-size: 0.9rem; }

/* ---- Tank Fish ---- */
.tank-fish { display: flex; flex-wrap: wrap; gap: 0.75rem; min-height: 60px; }
.tank-empty { text-align: center; color: #9CA3AF; padding: 1.5rem; width: 100%; font-size: 0.9rem; }

/* ---- Fish Cards ---- */
.fish-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 0.75rem;
  position: relative;
  transition: box-shadow 0.15s, transform 0.15s;
}
.fish-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-1px); }
.fish-card-compact { padding: 0.5rem 0.75rem; }
.fish-card-img { flex-shrink: 0; }
.fish-card-img img { width: 60px; height: 40px; border-radius: 6px; object-fit: cover; background: #F3F4F6; }
.fish-card-compact .fish-card-img img { width: 48px; height: 32px; }
.fish-card-info { flex: 1; min-width: 0; }
.fish-card-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 0; }
.fish-card-scientific { font-size: 0.72rem; color: #9CA3AF; font-style: italic; margin: 0; }
.fish-card-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.35rem; }
.fish-card-stats { display: flex; gap: 0.75rem; margin-top: 0.35rem; font-size: 0.72rem; color: #9CA3AF; }
.fish-card-remove {
  position: absolute; top: 4px; right: 4px;
  width: 24px; height: 24px;
  border: none; background: none;
  color: #D1D5DB; font-size: 1.1rem;
  cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.fish-card-remove:hover { background: #FEE2E2; color: #EF4444; }

/* ---- Compat Results ---- */
.compat-results { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 2px solid #F3F4F6; }
.compat-results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.compat-summary { margin-bottom: 1rem; }

/* ---- Compat Badges ---- */
.compat-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.compat-badge-sm { font-size: 0.72rem; padding: 0.2rem 0.5rem; }
.compat-compatible { background: #D1FAE5; color: #065F46; }
.compat-caution { background: #FEF3C7; color: #92400E; }
.compat-incompatible { background: #FEE2E2; color: #991B1B; }

/* ---- Compat Pairs ---- */
.compat-pair {
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}
.compat-pair-compatible { border-left: 4px solid #10B981; }
.compat-pair-caution { border-left: 4px solid #F59E0B; }
.compat-pair-incompatible { border-left: 4px solid #EF4444; }
.compat-pair-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.compat-pair-names { font-weight: 600; font-size: 0.9rem; }

.compat-factor-list { list-style: none; padding: 0; }
.compat-factor { padding: 0.3rem 0; font-size: 0.85rem; }
.compat-factor-compatible { color: #065F46; }
.compat-factor-caution { color: #92400E; }
.compat-factor-incompatible { color: #991B1B; }
.compat-factor-ok { font-size: 0.85rem; color: #065F46; }

.compat-warnings, .compat-tips { margin-top: 1rem; }
.warning-list { list-style: none; padding: 0; }
.warning-list li { padding: 0.4rem 0; font-size: 0.85rem; color: #92400E; }
.warning-list li::before { content: "⚠ "; }

.checker-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }

/* ---- Popular Checks ---- */
.popular-section { padding: 2.5rem 0 1.5rem; }
.popular-section h2 { margin-bottom: 1rem; }
.popular-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; }
.popular-card {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
}
.popular-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-1px); text-decoration: none; }
.popular-card-names { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; font-weight: 500; color: #374151; }
.popular-card-vs { color: #D1D5DB; font-weight: 400; }

/* ---- Browse Categories ---- */
.browse-section { padding: 2.5rem 0 1.5rem; }
.browse-section h2 { margin-bottom: 1rem; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.category-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 1.25rem 1.15rem;
  text-decoration: none;
  color: #374151;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.category-card:hover { box-shadow: 0 6px 20px rgba(13,148,136,0.12); transform: translateY(-2px); text-decoration: none; color: #374151; }
.category-icon { display: none; }
.category-card h3 { font-size: 0.95rem; margin-bottom: 0.3rem; color: #0D9488; }
.category-card p { font-size: 0.8rem; color: #6B7280; line-height: 1.5; }

/* ---- How It Works ---- */
.how-it-works { padding: 2.5rem 0 1.5rem; border-top: 1px solid #E5E7EB; margin-top: 1rem; }
.how-it-works h2 { margin-bottom: 1.25rem; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.step { text-align: left; }
.step-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #14B8A6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.step h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.step p { font-size: 0.875rem; color: #6B7280; line-height: 1.6; }

/* ---- Signup ---- */
.signup-section { padding: 2.5rem 0 3rem; }
.signup-card {
  background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
  color: #fff;
  border-radius: 14px;
  padding: 2.5rem 2rem;
  text-align: center;
}
.signup-card h2 { color: #fff; font-size: 1.35rem; }
.signup-card p { color: rgba(255,255,255,0.9); margin-bottom: 1.25rem; font-size: 0.95rem; }
.signup-form { display: flex; gap: 0.5rem; max-width: 400px; margin: 0 auto; }
.signup-form input[type="email"] {
  flex: 1;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
}
.signup-form input[type="email"]:focus { outline: 2px solid #F59E0B; }
.signup-form .btn-primary { background: #F59E0B; color: #1F2937; font-weight: 700; }
.signup-form .btn-primary:hover { background: #D97706; }
.signup-note { font-size: 0.78rem; color: rgba(255,255,255,0.7); margin-top: 0.75rem; }

/* ---- Footer ---- */
.footer { background: #134E4A; color: #A7F3D0; padding: 2.5rem 0; margin-top: 2rem; }
.footer-content { }
.footer-main { margin-bottom: 1.5rem; }
.footer-logo { color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; }
.footer-logo:hover { color: #fff; text-decoration: none; }
.footer-main p { font-size: 0.82rem; margin-top: 0.4rem; color: #6EE7B7; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-col h4 { color: #fff; font-size: 0.75rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col ul { list-style: none; }
.footer-col a { color: #6EE7B7; font-size: 0.82rem; transition: color 0.15s; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-col li { margin-bottom: 0.3rem; }
.footer-bottom { border-top: 1px solid #065F46; padding-top: 1rem; font-size: 0.78rem; color: #34D399; }

/* ---- Text Utilities ---- */
.text-danger { color: #EF4444; }
.text-warning { color: #F59E0B; }
.text-success { color: #10B981; }
.text-muted { color: #9CA3AF; }

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-info { background: #1F2937; color: #fff; }
.toast-success { background: #10B981; color: #fff; }
.toast-error { background: #EF4444; color: #fff; }

/* ---- Stocking Calculator ---- */
.calc-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; padding: 1.5rem 0; }
.calc-main { min-width: 0; }
.calc-sidebar { }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-group { flex: 1; min-width: 120px; margin-bottom: 0.75rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: #374151; margin-bottom: 0.25rem; }
.form-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  background: #fff;
}
.form-input:focus { outline: none; border-color: #0D9488; box-shadow: 0 0 0 3px rgba(13,148,136,0.1); }
.calc-fish-list { margin-top: 0.75rem; }

.stocking-meter-card { position: sticky; top: 76px; }
.meter-bar { height: 20px; background: #E5E7EB; border-radius: 10px; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 10px; transition: width 0.4s, background 0.4s; background: #10B981; }
.meter-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: #9CA3AF; margin-top: 0.25rem; }
.meter-value { text-align: center; font-size: 1.5rem; font-weight: 700; margin: 0.5rem 0 0.25rem; color: #1F2937; }
.meter-status { text-align: center; font-size: 0.85rem; color: #6B7280; }
.stocking-stats { margin-top: 1rem; }
.stat-row { display: flex; justify-content: space-between; padding: 0.35rem 0; font-size: 0.85rem; border-bottom: 1px solid #F3F4F6; color: #6B7280; }
.stat-row:last-child { border: none; }

/* ---- Fish Profile Page ---- */
.fish-profile { max-width: 860px; }
.fish-profile-header { display: flex; gap: 1.5rem; margin-bottom: 1.75rem; }
.fish-profile-img { flex-shrink: 0; }
.fish-profile-img img { width: 280px; height: 180px; border-radius: 10px; object-fit: cover; background: #F3F4F6; }
.fish-profile-info { flex: 1; }
.fish-scientific { font-style: italic; color: #9CA3AF; margin: 0.25rem 0 0.5rem; }
.fish-aliases { font-size: 0.85rem; color: #9CA3AF; margin-bottom: 0.5rem; }
.fish-profile-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.fish-description { font-size: 0.95rem; line-height: 1.75; margin-bottom: 1.75rem; color: #6B7280; }

.fish-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; margin-bottom: 1.75rem; }
.stat-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
}
.stat-card h3 { font-size: 0.7rem; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; }
.stat-value { font-size: 1.2rem; font-weight: 700; color: #1F2937; }
.stat-label { font-size: 0.72rem; color: #D1D5DB; }

.fish-section { margin-bottom: 1.75rem; }
.fish-section h2 { font-size: 1.15rem; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid #CCFBF1; }

.compat-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem; }
.compat-list-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  font-size: 0.85rem;
  transition: background 0.1s, transform 0.1s;
}
.compat-list-item:hover { background: #F0FDFA; text-decoration: none; transform: translateY(-1px); }
.compat-list-compatible { border-left: 3px solid #10B981; }
.compat-list-caution { border-left: 3px solid #F59E0B; }
.compat-list-incompatible { border-left: 3px solid #EF4444; }
.compat-list-name { font-weight: 500; }
.compat-list-size { color: #9CA3AF; font-size: 0.78rem; }

/* ---- Fish Index Page ---- */
.fish-index-filter { margin: 1.5rem 0; }
.fish-index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0.75rem; padding-bottom: 2rem; }
.fish-index-card {
  display: flex; align-items: center; gap: 0.75rem;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 0.75rem;
  text-decoration: none;
  color: #374151;
  transition: box-shadow 0.15s, transform 0.15s;
}
.fish-index-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); text-decoration: none; transform: translateY(-1px); }
.fish-index-card img { width: 80px; height: 53px; border-radius: 6px; object-fit: cover; background: #F3F4F6; flex-shrink: 0; }
.fish-index-info { flex: 1; min-width: 0; }
.fish-index-info h3 { font-size: 0.9rem; margin-bottom: 0.1rem; }
.fish-index-info p { font-size: 0.72rem; color: #9CA3AF; font-style: italic; margin: 0; }
.fish-index-meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.35rem; font-size: 0.72rem; color: #9CA3AF; }

/* ---- Compatibility Page ---- */
.compat-page { max-width: 780px; }
.compat-page-header { margin-bottom: 2rem; }
.compat-page-fish { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.compat-page-fish-card { text-align: center; text-decoration: none; color: #374151; }
.compat-page-fish-card:hover { text-decoration: none; color: #0D9488; }
.compat-page-fish-card img { width: 120px; height: 80px; border-radius: 10px; object-fit: cover; background: #F3F4F6; margin: 0 auto 0.5rem; }
.compat-page-fish-card h2 { font-size: 1.05rem; }
.compat-page-fish-card p { font-size: 0.78rem; color: #9CA3AF; font-style: italic; }
.compat-page-vs { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.compat-page-badge {
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1rem;
}
.compat-page-badge-compatible { background: #D1FAE5; color: #065F46; }
.compat-page-badge-caution { background: #FEF3C7; color: #92400E; }
.compat-page-badge-incompatible { background: #FEE2E2; color: #991B1B; }

.compat-page-summary { margin-bottom: 1.75rem; }
.compat-page-summary h2 { font-size: 1.25rem; }
.compat-page-answer { font-size: 0.95rem; line-height: 1.7; color: #6B7280; }

.compat-page-factors { margin-bottom: 1.75rem; }
.compat-factor-row { padding: 0.75rem; border: 1px solid #E5E7EB; border-radius: 8px; margin-bottom: 0.5rem; }
.compat-factor-row .factor-name { font-weight: 600; font-size: 0.9rem; }
.factor-badge {
  display: inline-block;
  padding: 0.15rem: 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-left: 0.5rem;
}
.factor-badge-compatible { background: #D1FAE5; color: #065F46; }
.factor-badge-caution { background: #FEF3C7; color: #92400E; }
.factor-badge-incompatible { background: #FEE2E2; color: #991B1B; }
.factor-detail { font-size: 0.85rem; color: #9CA3AF; margin-top: 0.25rem; }

.compat-page-warnings { margin-bottom: 1.75rem; }
.compat-page-tank { margin-bottom: 1.75rem; }
.param-table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; font-size: 0.85rem; }
.param-table th, .param-table td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid #E5E7EB; }
.param-table th { background: #F0FDFA; font-weight: 600; color: #374151; font-size: 0.8rem; }
.compat-page-cta { background: #F0FDFA; border: 1px solid #CCFBF1; border-radius: 10px; padding: 1.25rem; }

/* ---- Mobile Responsive ---- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
    flex-direction: column;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }

  .hero h1 { font-size: 1.75rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }

  .calc-layout { grid-template-columns: 1fr; }
  .stocking-meter-card { position: static; }

  .fish-profile-header { flex-direction: column; }
  .fish-profile-img img { width: 100%; max-width: 300px; }

  .compat-page-fish { flex-direction: column; }

  .signup-form { flex-direction: column; }

  .fish-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .popular-grid { grid-template-columns: 1fr; }
  .fish-index-grid { grid-template-columns: 1fr; }
  .compat-list-grid { grid-template-columns: 1fr; }

  .footer-links { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 0.75rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: 1.5rem; }
  .fish-stats-grid { grid-template-columns: 1fr 1fr; }
  .checker-panel { padding: 1.25rem; }
  .water-type-filter { flex-wrap: wrap; }
}
