/* ===== BREED DETAIL PAGE ===== */
.breed-detail-hero {
  position: relative; height: 420px; overflow: hidden; background: #1a1a2e;
}
.breed-detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.breed-detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.3) 55%, transparent 100%);
  display: flex; align-items: flex-end; padding: 2.5rem;
}
.breed-detail-hero-info { color: #fff; max-width: 700px; }
.breed-detail-hero-info h1 { color: #fff; margin-bottom: .5rem; font-size: clamp(2rem,4vw,3.2rem); }
.breed-stat-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.breed-stat-pill {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: #fff; padding: .3rem .9rem; border-radius: 50px; font-size: .8rem; font-weight: 500;
}
.breed-detail-hero-shimmer {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 6rem;
}

/* Trait / rating bars */
.trait-bar { display:flex; align-items:center; gap:1rem; padding:.55rem 0; border-bottom:1px solid var(--border); }
.trait-bar:last-child { border-bottom: none; }
.trait-name { width:148px; font-size:.88rem; font-weight:500; color:var(--text-muted); flex-shrink:0; }
.trait-track { flex:1; height:8px; background:var(--bg2); border-radius:50px; overflow:hidden; }
.trait-fill { height:100%; background:var(--primary); border-radius:50px; width:0; transition: width 1s ease .2s; }
.trait-value { font-size:.82rem; color:var(--text-muted); width:28px; text-align:right; flex-shrink:0; }

/* Breed photo gallery */
.breed-photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:1rem; }
.breed-photo-item { border-radius:var(--radius-sm); overflow:hidden; aspect-ratio:1; cursor:pointer; background:var(--bg2); }
.breed-photo-item img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.breed-photo-item:hover img { transform:scale(1.06); }

/* Suitability tags */
.suitability-tag {
  display:inline-flex; align-items:center; gap:.4rem;
  background: linear-gradient(135deg, #fff8f0, var(--bg2)); border:1px solid var(--primary-light);
  color:var(--primary-dark); padding:.35rem .9rem; border-radius:50px; font-size:.83rem; font-weight:500;
}

/* Breadcrumb */
.breadcrumb { font-size:.85rem; color:var(--text-muted); margin-bottom:1.5rem; }
.breadcrumb a { color:var(--primary); }
.breadcrumb span { margin:0 .4rem; }

/* ===== PAGE HEROES ===== */
.page-hero {
  padding: 4.5rem 1.5rem 3rem;
  text-align: center; color: #fff;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
.page-hero-badge {
  display: inline-block; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.9);
  padding: .35rem 1.1rem; border-radius: 50px; font-size: .78rem;
  font-weight: 600; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 1rem;
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: .8rem; }
.page-hero p { color: rgba(255,255,255,.72); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.page-hero--feeding    { background: linear-gradient(135deg, #1e3d0f, #2e6e1f); }
.page-hero--ailments   { background: linear-gradient(135deg, #3d0f0f, #6e2020); }
.page-hero--behaviours { background: linear-gradient(135deg, #0f1e3d, #1f3570); }
.page-hero--caring     { background: linear-gradient(135deg, #3d0f2a, #6e1f4e); }
.page-hero--toys       { background: linear-gradient(135deg, #3d2a0f, #6e4a1f); }
.page-hero--breeds     { background: linear-gradient(135deg, #0f3d2a, #1f6e4a); }
.page-hero--gallery    { background: linear-gradient(135deg, #2a0f3d, #4a1f6e); }
.page-hero--cartoons   { background: linear-gradient(135deg, #3d0f2a, #6e1f4a); }
.page-hero--videos     { background: linear-gradient(135deg, #0a0a1a, #0f3460); }

/* ===== SHIMMER (breed image loading) ===== */
.shimmer {
  background: linear-gradient(90deg, var(--bg2) 25%, #ddd8ce 50%, var(--bg2) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ===== HOME PAGE SECTION CARDS ===== */
.section-nav-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem;
}
.section-nav-card {
  background: var(--card); border-radius: var(--radius); padding: 1.8rem 1.4rem;
  box-shadow: var(--shadow); border: 1px solid var(--border); transition: all .3s;
  text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: .6rem;
}
.section-nav-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--primary-light); color: var(--text); }
.section-nav-card .snc-icon { font-size: 2.4rem; }
.section-nav-card h3 { font-size: 1.05rem; margin: 0; }
.section-nav-card p { font-size: .85rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.section-nav-card .snc-arrow { margin-top: auto; font-size: .85rem; color: var(--primary); font-weight: 600; }

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

:root {
  --primary: #e8753a;
  --primary-light: #f9a87a;
  --primary-dark: #c45a20;
  --accent: #3d5a80;
  --accent-light: #6b8fb5;
  --bg: #faf8f5;
  --bg2: #f0ece4;
  --card: #ffffff;
  --text: #2c2c2c;
  --heading: #2d2016;   /* used by blog/detail headings; was referenced but never defined */
  --text-muted: #6b6b6b;
  --border: #e0d8cc;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 40px rgba(232,117,58,0.2);
  --radius: 16px;
  --radius-sm: 8px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 0.8rem; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* ===== HEADER & NAV ===== */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
#header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.1); }

.header-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 700;
  color: var(--primary); text-decoration: none;
}
.logo-icon { font-size: 1.8rem; }

nav { display: flex; align-items: center; gap: 0.2rem; }
nav a {
  padding: 0.4rem 0.7rem; border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 500; color: var(--text);
  transition: all 0.2s; white-space: nowrap;
}
nav a:hover, nav a.active { background: var(--primary); color: #fff; }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 0.4rem; color: var(--text); font-size: 1.4rem;
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #533483 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 1.5rem 3rem;
  position: relative; overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 1; max-width: 860px; }

.hero-badge {
  display: inline-block; background: rgba(232,117,58,0.2); border: 1px solid var(--primary-light);
  color: var(--primary-light); padding: 0.4rem 1.2rem; border-radius: 50px;
  font-size: 0.85rem; font-weight: 500; margin-bottom: 1.5rem; letter-spacing: 0.05em;
}

#hero h1 {
  color: #fff; margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto;
}

.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  padding: 0.85rem 2rem; border-radius: 50px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; border: none; transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,117,58,0.4); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; transform: translateY(-2px); }

.hero-stats {
  display: flex; gap: 2.5rem; justify-content: center; margin-top: 3rem;
  padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--primary-light); display: block; }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.08em; }

.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.4); font-size: 1.5rem; animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 1.5rem;
}
.section-alt { background: var(--bg2); }

.container { max-width: 1200px; margin: 0 auto; }
.container-wide { max-width: 1400px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 0.3rem 1rem; border-radius: 50px; font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.8rem;
}
.section-header h2 { color: var(--text); margin-bottom: 0.8rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ===== DAILY TICKER ===== */
.daily-ticker {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-light));
  color: #fff; padding: 0.7rem 0; overflow: hidden; white-space: nowrap;
}
.ticker-inner { display: flex; animation: ticker 30s linear infinite; }
.ticker-item { padding: 0 2rem; font-size: 0.85rem; font-weight: 500; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== CARDS ===== */
.card {
  background: var(--card); border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow); border: 1px solid var(--border); transition: all 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary-light); }

.card-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.6rem; color: var(--text); }
.card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.65; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }

/* ===== FEEDING SECTION ===== */
.recipe-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border); transition: all 0.3s;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.recipe-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 1.2rem 1.5rem; color: #fff;
}
.recipe-header h4 { font-family: var(--font-head); font-size: 1.1rem; }
.recipe-header .recipe-meta { font-size: 0.78rem; opacity: 0.85; margin-top: 0.3rem; }
.recipe-body { padding: 1.5rem; }
.recipe-body ul { list-style: none; }
.recipe-body ul li { padding: 0.3rem 0; font-size: 0.9rem; color: var(--text-muted); }
.recipe-body ul li::before { content: '• '; color: var(--primary); font-weight: bold; }

.warning-box {
  background: #fff8f0; border-left: 4px solid var(--primary);
  padding: 1.2rem 1.5rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 1rem;
}
.warning-box h4 { color: var(--primary-dark); margin-bottom: 0.5rem; }
.warning-box ul { list-style: none; }
.warning-box ul li { font-size: 0.9rem; color: var(--text-muted); padding: 0.2rem 0; }
.warning-box ul li::before { content: '⚠️ '; }

/* ===== AILMENTS ===== */
.ailment-card {
  background: var(--card); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border: 1px solid var(--border); transition: all 0.3s;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.ailment-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.ailment-severity {
  display: inline-block; padding: 0.2rem 0.7rem; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; width: fit-content;
}
.sev-high { background: #fde8e8; color: #c0392b; }
.sev-med { background: #fef3cd; color: #856404; }
.sev-low { background: #d4edda; color: #155724; }
.ailment-card h3 { font-size: 1.05rem; margin: 0; }
.ailment-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.symptoms-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.symptom-tag {
  background: var(--bg2); padding: 0.2rem 0.6rem; border-radius: 50px;
  font-size: 0.78rem; color: var(--text-muted); border: 1px solid var(--border);
}

/* ===== BEHAVIOURS ===== */
.behaviour-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border); transition: all 0.3s;
}
.behaviour-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.behaviour-icon-wrap {
  background: linear-gradient(135deg, var(--bg2), var(--bg));
  padding: 2rem; text-align: center; font-size: 3rem;
  border-bottom: 1px solid var(--border);
}
.behaviour-body { padding: 1.5rem; }
.behaviour-body h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.behaviour-body p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ===== CARING ===== */
.caring-timeline { position: relative; padding-left: 2.5rem; }
.caring-timeline::before {
  content: ''; position: absolute; left: 0.6rem; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--primary), var(--primary-light));
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot {
  position: absolute; left: -2.5rem; top: 0.2rem;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--primary); border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--primary-light);
}
.timeline-content {
  background: var(--card); border-radius: var(--radius); padding: 1.4rem;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.timeline-content h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.timeline-content p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ===== TOYS ===== */
.toy-card {
  background: var(--card); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border: 1px solid var(--border); transition: all 0.3s;
  text-align: center;
}
.toy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.toy-icon { font-size: 2.8rem; margin-bottom: 0.8rem; }
.toy-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.toy-card p { font-size: 0.85rem; color: var(--text-muted); }
.toy-rating { color: #f4b942; margin-top: 0.5rem; font-size: 0.85rem; }

/* ===== BREEDS ===== */
.breed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.breed-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border); transition: all 0.3s; cursor: pointer;
}
.breed-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(232,117,58,0.25); }
.breed-img-wrap { height: 200px; overflow: hidden; position: relative; background: var(--bg2); }
/* Overlaid on the card image when a breed with no photograph of its own shows
   a relative's instead — the card must never imply it is picturing the breed. */
.breed-img-note {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  background: rgba(0, 0, 0, .62); color: #fff;
  font-size: .68rem; line-height: 1.35; padding: .3rem .55rem;
  letter-spacing: .01em;
}
.breed-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.breed-card:hover .breed-img-wrap img { transform: scale(1.08); }
.breed-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; background: linear-gradient(135deg, var(--bg2), var(--bg));
}
.breed-info { padding: 1.4rem; }
.breed-info h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.breed-origin { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.breed-traits { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.trait-tag {
  background: var(--bg2); color: var(--text-muted);
  padding: 0.2rem 0.6rem; border-radius: 50px; font-size: 0.75rem;
}
.breed-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.breed-stat { text-align: center; background: var(--bg2); border-radius: var(--radius-sm); padding: 0.5rem; }
.breed-stat-val { font-weight: 700; color: var(--primary); font-size: 1rem; display: block; }
.breed-stat-label { font-size: 0.7rem; color: var(--text-muted); }

/* Breed filter */
.breed-filters {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; justify-content: center;
}
.filter-btn {
  padding: 0.45rem 1.1rem; border-radius: 50px; border: 2px solid var(--border);
  background: var(--card); color: var(--text-muted); font-size: 0.83rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== SOCIAL GALLERY ===== */
.gallery-tabs {
  display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; justify-content: center;
}
.tab-btn {
  padding: 0.55rem 1.3rem; border-radius: 50px; border: 2px solid var(--border);
  background: var(--card); font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; display: flex; align-items: center; gap: 0.4rem;
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem;
  min-height: 300px;
}
.gallery-item {
  border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1;
  position: relative; cursor: pointer; background: var(--bg2);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s; color: #fff; font-size: 1.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; background: linear-gradient(135deg, var(--bg2), var(--bg));
  min-height: 200px; border-radius: var(--radius);
  color: var(--text-muted); flex-direction: column; gap: 0.5rem; text-align: center; padding: 1rem;
}
.gallery-placeholder p { font-size: 0.85rem; }

.social-embeds { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.social-embed-box {
  background: var(--card); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.social-embed-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.social-icon { font-size: 1.4rem; }
.social-embed-header h4 { font-size: 1rem; }
.social-embed-header .social-handle { font-size: 0.8rem; color: var(--text-muted); }

/* ===== LOADING ===== */
.loading {
  display: flex; align-items: center; justify-content: center; padding: 3rem;
  flex-direction: column; gap: 1rem; color: var(--text-muted);
}
.spinner {
  width: 36px; height: 36px; border: 3px solid var(--bg2);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== CARTOONS ===== */
.cartoon-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem;
}
.cartoon-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border); transition: all 0.3s;
}
.cartoon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.cartoon-thumb {
  height: 180px; background: linear-gradient(135deg, #2d2d2d, #1a1a2e);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; position: relative; overflow: hidden;
}
.cartoon-thumb iframe { width: 100%; height: 100%; border: none; }
.cartoon-info { padding: 1.2rem; }
.cartoon-info h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.cartoon-info p { font-size: 0.83rem; color: var(--text-muted); margin: 0; }
.cartoon-tag {
  display: inline-block; background: var(--bg2); color: var(--text-muted);
  padding: 0.2rem 0.6rem; border-radius: 50px; font-size: 0.75rem; margin-top: 0.5rem;
}

/* ===== VIDEOS ===== */
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem;
}
.video-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border); transition: all 0.3s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.video-info { padding: 1.2rem; }
.video-info h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.video-info p { font-size: 0.83rem; color: var(--text-muted); margin: 0; }
.video-meta { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.5rem; }
.video-views { font-size: 0.78rem; color: var(--text-muted); }

/* ===== DAILY CAT FACT ===== */
.fact-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: var(--radius); padding: 2rem 2.5rem;
  text-align: center; margin: 2rem 0;
}
.fact-box .fact-emoji { font-size: 2.5rem; margin-bottom: 0.8rem; }
.fact-box h3 { font-size: 1rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.8rem; }
.fact-box p { font-size: 1.15rem; font-style: italic; font-family: var(--font-head); line-height: 1.5; margin: 0; }
.fact-refresh {
  background: rgba(255,255,255,0.2); border: none; color: #fff;
  padding: 0.5rem 1.2rem; border-radius: 50px; margin-top: 1.2rem;
  cursor: pointer; font-size: 0.85rem; transition: all 0.2s;
}
.fact-refresh:hover { background: rgba(255,255,255,0.3); }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 9999;
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(255,255,255,0.1);
  border: none; color: #fff; font-size: 1.5rem; padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* ===== FOOTER ===== */
footer {
  background: #1a1a2e; color: rgba(255,255,255,0.7); padding: 4rem 1.5rem 2rem;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { color: var(--primary-light); font-size: 1.3rem; display: flex; }
.footer-brand p { margin-top: 0.8rem; font-size: 0.88rem; line-height: 1.6; }
.footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: 0.82rem;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none; flex-direction: column; gap: 0.3rem;
  padding: 1rem 1.5rem; border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.98);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.6rem 0.8rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--text); transition: all 0.2s;
}
.mobile-nav a:hover { background: var(--primary); color: #fff; }

/* ===== BREADCRUMB ===== */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 500;
  background: var(--primary); color: #fff; border: none;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem;
  cursor: pointer; box-shadow: 0 4px 16px rgba(232,117,58,0.4);
  transition: all 0.3s; opacity: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== BLOG ===== */
.page-hero--blog { background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 100%); }

.blog-cat-tag {
  display: inline-block; padding: .2rem .7rem; border-radius: 50px;
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}
.blog-cat-behaviour { background: #e8f4fd; color: #1565c0; }
.blog-cat-feeding    { background: #e8f5e9; color: #2e7d32; }
.blog-cat-health     { background: #fce4ec; color: #c62828; }
.blog-cat-breeds     { background: #fff3e0; color: #e65100; }
.blog-cat-caring     { background: #f3e5f5; color: #6a1b9a; }
.blog-cat-toys       { background: #e0f7fa; color: #00695c; }
.blog-cat-general    { background: #f5f5f5; color: #424242; }

.blog-card { transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }

.blog-post-body { line-height: 1.8; font-size: 1.02rem; color: var(--text); }
.blog-post-body h2 { font-size: 1.35rem; margin: 2rem 0 .8rem; color: var(--heading); }
.blog-post-body p  { margin-bottom: 1.2rem; }
.blog-post-body ul, .blog-post-body ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.blog-post-body li { margin-bottom: .5rem; }
.blog-post-body strong { color: var(--heading); }
.blog-post-body figure { margin: 1.8rem 0; }
.blog-post-body figure img { width: 100%; border-radius: var(--radius-sm); display: block; }
.blog-post-body figcaption { font-size: .82rem; color: var(--text-muted); text-align: center; margin-top: .5rem; font-style: italic; }
.blog-post-body img { max-width: 100%; border-radius: var(--radius-sm); }
.blog-post-body .video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); margin: 1.8rem 0; background: #000; }
.blog-post-body .video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.blog-post-body .video-caption { font-size: .82rem; color: var(--text-muted); text-align: center; margin-top: -.8rem; margin-bottom: 1.8rem; font-style: italic; }
.blog-post-body .img-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.8rem 0; }
.blog-post-body .img-row figure { margin: 0; }

/* ===== RECIPE DETAIL PAGE ===== */
.recipe-steps-list { list-style: none; padding: 0; margin: 0; }
.recipe-step-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.recipe-step-num { flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; margin-top: .1rem; }
.recipe-step-text { line-height: 1.6; padding-top: .2rem; }

/* ===== FAMOUS CAT DETAIL PAGE ===== */
.cat-detail-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.cat-detail-gallery figure img:hover { opacity: .9; }

/* ===== FAMOUS CATS ===== */
.page-hero--famous { background: linear-gradient(135deg, #1a1a2e 0%, #3a2a0e 100%); }

.famous-card { margin-bottom: 2rem; padding: 0; overflow: hidden; }
.famous-card-inner {
  display: flex; align-items: stretch; gap: 0;
}
.famous-cover {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 220px; width: 220px; padding: 2rem 1.2rem; flex-shrink: 0;
  border-radius: 0; overflow: hidden; position: relative;
}
.famous-cover-img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.famous-emoji { font-size: 3.5rem; margin-bottom: .8rem; }
.famous-years { font-size: .75rem; color: rgba(255,255,255,.65); text-align: center; font-weight: 500; }
.famous-body { padding: 2rem; flex: 1; }
.famous-meta { display: flex; align-items: center; gap: .8rem; margin-bottom: .7rem; flex-wrap: wrap; }
.famous-owner { font-size: .8rem; color: var(--text-muted); }
.famous-name { font-size: 1.5rem; margin-bottom: .3rem; }
.famous-headline { font-size: .95rem; color: var(--primary); font-weight: 600; margin-bottom: 1rem; }
.famous-text { font-size: .9rem; line-height: 1.75; color: var(--text); margin-bottom: 1.2rem; }
.famous-fun-fact {
  background: linear-gradient(135deg, #fff8f0, var(--bg2));
  border-radius: var(--radius-sm); padding: .8rem 1rem;
  font-size: .85rem; line-height: 1.6;
}
.fun-fact-label { display: block; font-weight: 700; font-size: .75rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--primary); margin-bottom: .3rem; }

.famous-cat-tag {
  display: inline-block; padding: .2rem .7rem; border-radius: 50px;
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}
.famous-cat-celebrity  { background: #fce4ec; color: #880e4f; }
.famous-cat-political  { background: #e3f2fd; color: #0d47a1; }
.famous-cat-internet   { background: #f3e5f5; color: #4a148c; }
.famous-cat-historical { background: #efebe9; color: #3e2723; }
.famous-cat-community  { background: #e8f5e9; color: #1b5e20; }

@media (max-width: 640px) {
  .famous-card-inner { flex-direction: column !important; }
  .famous-cover { width: 100%; min-width: unset; min-height: 200px; flex-direction: row; gap: 1rem; padding: 1.2rem; border-radius: 0; }
  .famous-emoji { font-size: 2.5rem; margin-bottom: 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: block; }
  .hero-stats { gap: 1.5rem; }
  .section { padding: 3.5rem 1.2rem; }
  .caring-timeline { padding-left: 1.8rem; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   SPEC COMPLIANCE — skip link, consent, ads, content blocks,
   search, forms, legal/utility pages
   ============================================================ */

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 2000;
  background: var(--primary); color: #fff; padding: .6rem 1.1rem;
  border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 8px; color: #fff; outline: 3px solid #fff; }

/* ===== VISIBLE FOCUS STATE ===== */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px;
}

/* ===== COOKIE CONSENT BANNER ===== */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
  background: #1a1a2e; color: rgba(255,255,255,.9);
  padding: 1rem 1.5rem; display: flex; align-items: center;
  gap: 1.2rem; flex-wrap: wrap; justify-content: center;
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
}
.consent-banner[hidden] { display: none; }
.consent-text { margin: 0; font-size: .85rem; max-width: 720px; line-height: 1.6; }
.consent-text a { color: var(--primary-light); }
.consent-actions { display: flex; gap: .6rem; flex-shrink: 0; }
.btn-consent {
  padding: .55rem 1.4rem; border-radius: 50px; font-weight: 600;
  font-size: .85rem; cursor: pointer; border: none; transition: all .2s;
}
.btn-consent-accept { background: var(--primary); color: #fff; }
.btn-consent-accept:hover { background: var(--primary-dark); }
.btn-consent-decline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-consent-decline:hover { background: rgba(255,255,255,.12); }

/* ===== FOOTER DISCLOSURE ===== */
.footer-disclosure { font-size: .8rem; color: rgba(255,255,255,.45); }
.footer-disclosure a { color: rgba(255,255,255,.7); }

/* ===== AD SLOT PLACEHOLDERS ===== */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, var(--bg2), var(--bg2) 10px, #e8e2d6 10px, #e8e2d6 20px);
  border: 1px dashed var(--border); border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: .75rem; letter-spacing: .08em;
  text-transform: uppercase; margin: 2rem auto; text-align: center;
}
.ad-slot::before { content: 'Advertisement'; }
.ad-slot--leaderboard { width: 100%; max-width: 728px; height: 90px; }
.ad-slot--rectangle { width: 300px; height: 250px; max-width: 100%; }

/* ===== AFFILIATE DISCLOSURE ===== */
.affiliate-disclosure {
  background: #fff8f0; border: 1px solid #fdd8b8; border-radius: var(--radius-sm);
  padding: .8rem 1.1rem; font-size: .82rem; color: var(--text-muted);
  margin-bottom: 1.8rem; display: flex; align-items: flex-start; gap: .6rem;
}

/* ===== DIRECT-ANSWER BLOCK ===== */
.answer-box {
  background: linear-gradient(135deg, #fff8f0, var(--bg2));
  border-left: 4px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.3rem 1.6rem; margin: 0 0 2rem; font-size: 1.05rem; line-height: 1.7;
}
.answer-box p { margin: 0; }
.answer-box p + p { margin-top: .6rem; }

/* ===== HOW IT WORKS / CONTENT SECTIONS ===== */
.content-section { margin: 2.5rem 0; }
.content-section h2 { color: var(--text); margin-bottom: .9rem; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.content-section h3 { margin: 1.4rem 0 .5rem; }
.content-section p { color: var(--text); line-height: 1.75; }
.content-section ul, .content-section ol { padding-left: 1.4rem; margin-bottom: 1rem; color: var(--text); }
.content-section li { margin-bottom: .4rem; line-height: 1.7; }
.worked-example {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.8rem; box-shadow: var(--shadow);
}
.worked-example h3 { margin-top: 0; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: .8rem; }
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.1rem 1.3rem;
}
.faq-item h3 { font-size: 1.02rem; margin-bottom: .4rem; color: var(--text); }
.faq-item p { margin: 0; font-size: .92rem; color: var(--text-muted); line-height: 1.65; }

/* ===== RELATED LINKS ===== */
.related-links {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem; margin-top: 1.2rem;
}
.related-links a {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem;
  font-weight: 600; font-size: .9rem; transition: all .2s;
}
.related-links a:hover { border-color: var(--primary-light); box-shadow: var(--shadow); transform: translateY(-2px); }
.related-links a span { display: block; font-weight: 400; font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }

/* ===== PROSE (legal / about / utility pages) ===== */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 2.2rem 0 .8rem; color: var(--text); }
.prose h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.prose p, .prose li { line-height: 1.8; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose a { font-weight: 500; }
.page-meta { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* ===== FORMS ===== */
.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .95rem; font-family: var(--font-body);
  background: var(--card); color: var(--text);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--primary); outline: none; }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }
.form-error { font-size: .82rem; color: #c0392b; margin-top: .3rem; }
.form-note {
  background: var(--bg2); border-radius: var(--radius-sm); padding: 1rem 1.2rem;
  font-size: .85rem; color: var(--text-muted); margin-top: 1.2rem; line-height: 1.6;
}
.form-success {
  background: #d4edda; color: #155724; border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; font-size: .95rem; margin-bottom: 1.2rem;
}

/* ===== SEARCH PAGE ===== */
.search-form { display: flex; gap: .6rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.search-form input {
  flex: 1; min-width: 220px; padding: .85rem 1.1rem; font-size: 1rem;
  border: 1.5px solid var(--border); border-radius: 50px; font-family: var(--font-body);
}
.search-form input:focus { border-color: var(--primary); outline: none; }
.search-results { display: flex; flex-direction: column; gap: 1rem; }
.search-result {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; transition: all .2s;
}
.search-result:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.search-result h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.search-result .result-tag {
  display: inline-block; background: var(--bg2); color: var(--text-muted);
  font-size: .72rem; padding: .15rem .6rem; border-radius: 50px; margin-bottom: .4rem;
}
.search-result p { font-size: .88rem; color: var(--text-muted); margin: 0; }
.search-empty { text-align: center; color: var(--text-muted); padding: 2rem 0; }

/* ===== 404 PAGE ===== */
.error-hero { text-align: center; padding: 4rem 1.5rem 2rem; }
.error-hero .error-emoji { font-size: 5rem; margin-bottom: 1rem; }
.error-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: .6rem; }

/* ===== UTILITY ===== */
.sitemap-cols {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem;
}
.sitemap-cols h2 { font-size: 1.05rem; margin-bottom: .6rem; }
.sitemap-cols ul { list-style: none; }
.sitemap-cols li { margin-bottom: .4rem; font-size: .92rem; }

/* Full A–Z index on the sitemap page — a static, crawlable list of every
   detail page. Collapsible so ~900 links stay browsable for humans. */
.sitemap-group { border-top: 1px solid var(--border, #e6e0d8); padding: 1rem 0; }
.sitemap-group > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: .5rem;
}
.sitemap-group > summary::-webkit-details-marker { display: none; }
.sitemap-group > summary::before {
  content: "▸"; color: var(--primary); font-size: .9rem; transition: transform .15s ease;
}
.sitemap-group[open] > summary::before { transform: rotate(90deg); }
.sitemap-group > summary h3 { display: inline; font-size: 1.05rem; margin: 0; }
.sitemap-count {
  font-size: .75rem; font-weight: 600; color: var(--text-muted);
  background: var(--bg2, #f3efe9); border-radius: 999px; padding: .1rem .5rem; margin-left: .35rem;
}
.sitemap-group > p { margin: .5rem 0 .75rem; font-size: .9rem; }
.sitemap-index-list {
  list-style: none; display: grid; gap: .3rem .9rem;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.sitemap-index-list li { font-size: .88rem; line-height: 1.45; }

@media (max-width: 600px) {
  .consent-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .consent-actions { justify-content: center; }
}

/* ============================================================
   PRERENDERED DETAIL PAGES (/breeds/<slug>/ etc.)
   Static pages generated by tools/prerender.mjs. They reuse the site's
   existing card / answer-box / breadcrumb components; these rules cover
   the few structures unique to them.
   ============================================================ */

.pr-container { max-width: 820px; padding: 2.5rem 1.5rem 4rem; }

.pr-hero {
  background: linear-gradient(135deg, var(--bg2), #fff8f0);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.4rem;
  text-align: center;
}
.pr-hero-emoji { font-size: 3.4rem; line-height: 1; margin-bottom: .6rem; }

/* Lead photograph on a breed page. The Commons files vary from wide landscape
   to tall portrait, so the height is capped and the aspect ratio left alone:
   cropping every one to a fixed banner shape cut the cat's head off. */
.pr-hero-photo { margin: 0 auto 1.4rem; max-width: 560px; }
.pr-hero-photo img {
  max-width: 100%; max-height: 340px; width: auto; height: auto;
  margin: 0 auto; border-radius: var(--radius); background: var(--bg2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12); display: block;
}
.pr-hero-photo figcaption {
  font-size: .72rem; color: var(--text-muted); margin-top: .5rem; text-align: right;
}
.pr-hero-photo figcaption a { color: inherit; }
/* Names the breed actually pictured when a rare breed borrows a relative's
   photo. Left-aligned and emphasised — it is a correction, not a credit. */
.pr-photo-note { display: block; text-align: left; font-style: italic; margin-bottom: .2rem; }

.photo-note {
  font-size: .78rem; color: var(--text-muted); font-style: italic;
  margin: -.9rem 0 1rem; line-height: 1.5;
}
.pr-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1.15; margin: .3rem 0 0; text-wrap: balance;
}
.pr-eyebrow {
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; color: var(--primary); margin: 0;
}
.pr-hero-sub { color: var(--text-muted); font-size: 1rem; margin: .6rem 0 0; }

.pr-byline { color: var(--text-muted); font-size: .88rem; margin: 0 0 1.5rem; }
.pr-standfirst {
  font-size: 1.1rem; line-height: 1.7; color: var(--text-muted);
  border-left: 3px solid var(--primary); padding-left: 1.2rem; margin: 0 0 2rem;
}
.prerender-prose { font-size: 1rem; line-height: 1.75; color: var(--text-muted); margin: 0; }
.prerender-h2 {
  font-family: var(--font-head); font-size: 1.1rem;
  margin: 0 0 1rem; color: var(--text);
}
.pr-container .card { margin-bottom: 1.5rem; }

.pr-body { line-height: 1.8; margin-bottom: 2rem; }
.pr-body p { margin: 0 0 1.1rem; }
.pr-body h2, .pr-body h3 { font-family: var(--font-head); margin: 2rem 0 .8rem; }
.pr-body ul, .pr-body ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.pr-body li { margin-bottom: .45rem; }

/* fact grid */
.fact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; margin: 0 0 1.5rem;
}
.fact { background: var(--card); padding: .75rem .9rem; }
.fact dt {
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: .25rem;
}
.fact dd { margin: 0; font-size: .92rem; font-weight: 500; }

/* pills */
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  background: linear-gradient(135deg, #fff8f0, var(--bg2));
  border: 1px solid var(--primary-light); color: var(--primary-dark);
  padding: .3rem .8rem; border-radius: 50px; font-size: .84rem; font-weight: 500;
}
.pill-alt { background: var(--bg2); border-color: var(--border); color: var(--text-muted); }
.pill-warn { background: #fff4ed; border-color: #f3c9ae; color: #a04a1c; }

/* trait bars (static — no animation needed, the value is already known) */
.pr-traits { display: flex; flex-direction: column; }
.pr-trait {
  display: flex; align-items: center; gap: 1rem;
  padding: .5rem 0; border-bottom: 1px solid var(--border);
}
.pr-trait:last-child { border-bottom: 0; }
.pr-trait-name { width: 140px; font-size: .87rem; color: var(--text-muted); flex-shrink: 0; }
.pr-trait-bar { flex: 1; height: 8px; background: var(--bg2); border-radius: 50px; overflow: hidden; }
.pr-trait-fill { display: block; height: 100%; background: var(--primary); border-radius: 50px; }
.pr-trait-val { font-size: .8rem; color: var(--text-muted); width: 28px; text-align: right; flex-shrink: 0; }

/* lists */
.pr-list, .pr-steps { margin: 0; padding-left: 1.3rem; color: var(--text-muted); }
.pr-list li, .pr-steps li { margin-bottom: .55rem; line-height: 1.7; }
.pr-steps li { padding-left: .2rem; }
.pr-videos { list-style: none; margin: 0; padding: 0; }
.pr-videos li { margin-bottom: .5rem; font-size: .93rem; }

/* images */
.pr-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem; margin: 0 0 2rem;
}
.pr-gallery:empty { display: none; }
.pr-figure { margin: 0; }
.pr-figure img {
  width: 100%; height: auto; border-radius: var(--radius-sm);
  background: var(--bg2); display: block;
}
.pr-figure figcaption {
  font-size: .8rem; color: var(--text-muted); margin-top: .45rem; line-height: 1.5;
}
.pr-figure a { display: block; }
/* Gallery tiles do crop to a uniform grid, biased upwards so the crop keeps
   the cat's head rather than centring on its body. */
.pr-gallery .pr-figure img {
  aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%;
  transition: transform .3s;
}
.pr-gallery .pr-figure a:hover img { transform: scale(1.04); }
.pr-credit { font-size: .78rem; color: var(--text-muted); margin: .9rem 0 0; }
.pr-credit a { color: inherit; }

.answer-box-urgent { border-left-color: #c0533a; }

/* prev / next */
.pr-nav {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; margin: 2.5rem 0 0;
}
.pr-nav-link {
  display: block; padding: .9rem 1.1rem; text-decoration: none;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); transition: border-color .15s ease, transform .15s ease;
}
.pr-nav-link:hover { border-color: var(--primary); transform: translateY(-2px); }
.pr-nav-next { text-align: right; }
.pr-nav-label {
  display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: .25rem;
}
.pr-nav-name { display: block; font-weight: 600; font-size: .95rem; color: var(--text); }

.pr-related { margin-top: 2.5rem; }
.pr-related h2 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: .8rem; }
.pr-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.pr-related li a {
  display: inline-block; padding: .35rem .85rem; border-radius: 50px;
  border: 1px solid var(--border); background: var(--bg2);
  font-size: .87rem; text-decoration: none; color: var(--text);
}
.pr-related li a:hover { border-color: var(--primary); color: var(--primary-dark); }

.pr-backlink { margin-top: 2.5rem; font-size: .92rem; }
.pr-source { font-size: .88rem; color: var(--text-muted); margin-top: 1.5rem; }

@media (max-width: 560px) {
  .pr-trait-name { width: 110px; font-size: .82rem; }
  .pr-nav-next { text-align: left; }
}
