@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-variable.woff2') format('woff2');
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ── Tokens ── */
:root {
  --bg: #09090b;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --text-muted: #a1a1aa;
  --accent: #fff;
  --accent-hover: #818cf8;
  --accent-light: rgba(56, 189, 248, 0.1);
  --radius: 16px;
  --radius-sm: 8px;
}

html.light {
  --bg: #ffffff;
  --surface: #f4f4f5;
  --surface-2: #e4e4e7;
  --border: #e4e4e7;
  --border-light: #d4d4d8;
  --text: #09090b;
  --text-muted: #71717a;
  --accent: #2563eb;
  --accent-hover: #4f46e5;
  --accent-light: rgba(37, 99, 235, 0.1);
}

/* ── Base ── */
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration: none;
  /* transition: color .15s; */
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* background: rgba(9, 9, 11, 0.7); */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
}

.header-right {
  display: flex;
}

.logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  /* removed overflow */
  flex: 1;
}

.site-nav a {
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color .15s;
}

.site-nav a:hover {
  color: var(--text);
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
  height: 28.5px;
  display: block;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: var(--radius);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s;
}

.nav-dropdown-toggle:hover {
  color: var(--text);
}

.nav-dropdown-toggle svg {
  transition: transform .2s;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  /* transition: opacity .15s, transform .15s, visibility .15s; */
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
}

.nav-dropdown-menu a:hover {
  background: var(--surface-2);
}

\n.header-right {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle,
.search-toggle {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color .15s, background .15s;
}

.theme-toggle:hover,
.search-toggle:hover {
  color: var(--text);
  background: var(--surface-2);
}

.theme-toggle svg {
  position: absolute;
}

/* Dark: show moon, hide sun */
.icon-sun {
  opacity: 0;
  transform: rotate(90deg);
}

.icon-moon {
  opacity: 1;
  transform: rotate(0);
}

/* Light: show sun, hide moon */
html.light .icon-sun {
  opacity: 1;
  transform: rotate(0);
}

html.light .icon-moon {
  opacity: 0;
  /* transform: rotate(-90deg); */
}

/* ── Search Modal ── */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.search-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

html.light .search-modal-backdrop {
  background: rgba(255, 255, 255, 0.6);
}

.search-modal-content {
  position: relative;
  width: 90%;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateY(-20px) scale(0.98);
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

html.light .search-modal-content {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

.search-modal[aria-hidden="false"] .search-modal-content {
  transform: translateY(0) scale(1);
}

.search-modal-header {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.search-modal-header svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  padding: 16px 0;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: grid;
  place-items: center;
  border-radius: 4px;
}

.search-close:hover {
  color: var(--text);
  background: var(--surface-2);
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text);
  transition: background .15s;
  border-bottom: 1px solid var(--border);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--surface-2);
}

.search-result-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
}

.search-result-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-result-title {
  font-weight: 600;
  font-size: .95rem;
}

.search-result-cat {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.search-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
}

/* ── Layout ── */
main {
  min-height: calc(100dvh - 120px);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Home hero ── */
.home-hero {
  text-align: center;
  padding: 60px 0;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.home-hero h1 {
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
  /* max-width: 900px; */
}

.hero-accent {
  /* color: var(--accent); */
}

.home-hero>p {
  color: var(--text-muted);
  font-size: 1.15rem;
  /* max-width: 540px; */
}

/* ── Page hero ── */
.page-hero {
  padding: 40px 0 28px;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: .95rem;
  /* max-width: 520px; */
}

/* ── Filter bar ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--border-light);
  background: var(--surface-2);
  color: var(--text);
  transform: translateY(-1px);
}

.filter-btn.active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--text);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.filter-count {
  font-size: .75rem;
  opacity: .7;
}

/* ── Kitty grid ── */
.kitty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding-bottom: 48px;
}

.kitty-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.kitty-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  color: var(--text);
}

.kitty-card--deceased {
  opacity: .7;
}

.kitty-card-image {
  aspect-ratio: 1;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}

.kitty-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kitty-card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 3rem;
  color: var(--text-muted);
}

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.badge--deceased {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.kitty-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.kitty-card-body h3 {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.kitty-card-body p {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── Meme Grid ── */
.meme-grid {
  column-count: 1;
  column-gap: 16px;
  padding-bottom: 48px;
}

@media (min-width: 600px) {
  .meme-grid {
    column-count: 2;
  }
}

@media (min-width: 900px) {
  .meme-grid {
    column-count: 3;
  }
}

.meme-card {
  break-inside: avoid;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.meme-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  color: var(--text);
}

.meme-card-image {
  background: var(--surface-2);
  display: block;
}

.meme-card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.meme-card-body {
  padding: 12px 14px;
}

.meme-card-body h3 {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.meme-card-body p {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 4px;
}

/* ── Breeds Page ── */

.breed-description {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
  margin: 16px 0 32px;
}

.breed-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  text-align: left;
}

@media (min-width: 600px) {
  .breed-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.breed-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.breed-stat .stat-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.breed-stat .stat-value {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.breed-count-badge {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  padding: 6px 12px;
  border-radius: 20px;
  margin: 0;
}

.empty-breed-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin-top: 24px;
}

.empty-breed-state h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.empty-breed-state p {
  color: var(--text-muted);
}

.kitty-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.meta-followers,
.meta-country {
  font-size: .73rem;
  color: var(--text-muted);
}

.meta-followers {
  color: var(--accent);
}

.meta-flag {
  width: 16px !important;
  height: 16px !important;
  border-radius: 2px;
  flex-shrink: 0;
  margin-left: auto;
}

/* ── Share Dropdown ── */
.share-dropdown {
  position: relative;
  display: inline-block;
}

.share-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 100;
}

html.light .share-menu {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.share-dropdown.open .share-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.share-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}

.share-item:hover {
  background: var(--surface-2);
}



/* ── Single kitty ── */
.single-kitty {
  /* max-width: 820px; */
  padding-bottom: 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: .8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--text-muted);
}

.kitty-profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding: 28px 0 36px;
  align-items: start;
}

.kitty-profile-image img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.deceased-notice {
  margin-top: 10px;
  padding: 8px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  color: var(--text-muted);
  text-align: center;
}

.kitty-profile-info h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 6px;
}

.kitty-tagline {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.kitty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
}

a.tag:hover {
  border-color: var(--accent);
  color: var(--text);
}

.kitty-stats {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 7px 16px;
  margin-bottom: 20px;
  font-size: .85rem;
}

.kitty-stats dt {
  color: var(--text-muted);
  font-weight: 500;
}

.kitty-stats dd {
  color: var(--text);
  font-weight: 500;
}

.kitty-stats dd a {
  color: var(--accent);
}

.kitty-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  transition: border-color .15s, color .15s;
  cursor: pointer;
}

.social-btn:hover {
  border-color: var(--accent-hover);
  /* color: var(--accent); */
}

.kitty-content {
  border-top: 1px solid var(--border);
  padding-top: 36px;
  margin-bottom: 28px;
}

/* ── Prose ── */
.prose {
  max-width: 100%;
}

.prose p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: .92rem;
}

.prose h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text);
}

.prose img {
  border-radius: var(--radius-sm);
  margin: 16px 0;
  border: 1px solid var(--border);
}

.prose figure {
  margin: 0 auto;
  text-align: center;
}

.prose figure img {
  display: inline-block;
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li>ul,
.prose li>ol {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.prose .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.prose .wp-block-gallery figure {
  margin: 0;
}

.prose .wp-block-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ── Video embeds (YouTube / TikTok) ── */
.prose .video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 */
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.prose .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.prose .video-embed--tiktok {
  padding-bottom: 56.25%;
  /* 16:9 landscape */
  height: auto;
  max-width: none;
}

/* ── RankMath TOC ── */
.prose .wp-block-rank-math-toc-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px !important;
  margin: 32px 0;
}

.prose .wp-block-rank-math-toc-block::before {
  content: "Table of Contents";
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.prose .wp-block-rank-math-toc-block nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prose .wp-block-rank-math-toc-block nav ul li {
  counter-increment: toc;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  row-gap: 6px;
  column-gap: 8px;
  font-size: .84rem;
}

.prose .wp-block-rank-math-toc-block nav ul li::before {
  content: counter(toc) ".";
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  counter-reset: none;
}

.prose .wp-block-rank-math-toc-block nav ul li>ul {
  grid-column: 2;
  margin-top: 2px;
}

.prose .wp-block-rank-math-toc-block nav ul {
  counter-reset: toc;
}

.prose .wp-block-rank-math-toc-block nav a {
  color: var(--accent);
  font-weight: 500;
  line-height: 1.4;
}

.prose .wp-block-rank-math-toc-block nav a:hover {
  text-decoration: underline;
}

/* ── RankMath FAQ ── */
.prose .wp-block-rank-math-faq-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.prose .rank-math-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
}

.prose .rank-math-faq-item:last-child {
  border-bottom: none;
}

.prose .rank-math-question {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.4;
}

.prose .rank-math-answer {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.prose .rank-math-answer p {
  margin: 0;
  font-size: .84rem;
}

/* ── Kitty CTA ── */
.kitty-cta {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin: 40px 0;
}

.kitty-cta p {
  margin: 0;
  font-size: .95rem;
  color: var(--text);
  line-height: 1.5;
}

.kitty-cta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color .2s;
}

.kitty-cta a:hover {
  text-decoration-color: var(--accent);
}

/* ── Related Kitties ── */
.related-kitties {
  margin: 48px 0;
}

.related-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}

/* ── Kitty prev/next nav ── */
.kitty-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 12px;
  /* border-top: 1px solid var(--border); */
  /* padding-top: 28px; */
  margin-top: 8px;
  padding-bottom: 56px;
}

.kitty-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: border-color .15s, color .15s;
  min-width: 0;
}

.kitty-nav-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.kitty-nav-prev {
  justify-content: flex-start;
}

.kitty-nav-next {
  justify-content: flex-end;
}

.kitty-nav-disabled {
  opacity: .3;
  pointer-events: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 56px;
}

.kitty-nav-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.kitty-nav-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.kitty-nav-direction {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.kitty-nav-name {
  font-size: .84rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.kitty-nav-back {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  transition: color .15s;
}

.kitty-nav-back:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .kitty-nav {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .kitty-nav-back {
    grid-column: 1 / -1;
    order: -1;
    padding-bottom: 8px;
  }

  .kitty-nav-name {
    max-width: 120px;
  }
}

/* ── Submit page ── */
.submit-page {
  padding-bottom: 80px;
  max-width: 580px;
}

.submit-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.submit-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--text);
}

.submit-form input,
.submit-form textarea {
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .88rem;
  outline: none;
  transition: border-color .15s;
  width: 100%;
}

.submit-form input:focus,
.submit-form textarea:focus {
  border-color: var(--accent);
}

.submit-form input::placeholder,
.submit-form textarea::placeholder {
  color: var(--text-muted);
}

.submit-form textarea {
  min-height: 110px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.submit-success,
.form-error {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: .88rem;
}

.submit-success {
  background: var(--accent-light);
  border: 1px solid var(--accent);
  color: var(--text);
}

.form-error {
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .3);
  color: #ef4444;
}

/* ── Button ── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--accent);
  color: #000;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-hover);
  color: #000;
}

/* ── 404 ── */
.not-found {
  text-align: center;
  padding: 120px 24px;
}

.not-found-emoji {
  font-size: 4rem;
  margin-bottom: 16px;
}

.not-found h1 {
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}

.not-found p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── Empty state ── */
.empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: 48px 0;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 28px 0 48px;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 600;
  transition: border-color .15s, color .15s;
  text-decoration: none;
}

a.pagination-btn:hover {
  border-color: var(--border-light);
  color: var(--text);
}

.pagination-btn.current {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination-btn.disabled {
  opacity: .3;
  cursor: default;
}

/* ── FAQ ── */
.site-faq {
  /* border-top: 1px solid var(--border); */
  padding: 0 0 56px;
}

.site-faq h2,
.browse-section-header h2 {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  /* max-width: 680px; */
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: 14px;
}

.faq-answer p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.faq-answer a {
  color: var(--accent);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: .83rem;
  color: var(--text-muted);
  max-width: 240px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: .83rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ── About page ── */
.about-page {
  max-width: 680px;
  padding-bottom: 80px;
}

.about-content {
  margin-top: 8px;
}

.about-content p {
  margin-bottom: 16px;
}

/* ── Responsive ── */
@media (max-width: 800px) {
  .kitty-profile {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .kitty-profile-image {
    max-width: 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-links {
    gap: 32px;
  }
}

/* ── Mobile menu ── */
.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  place-items: center;
  background: none;
  border: none;
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: color .15s;
}

.menu-toggle:hover {
  color: var(--text);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, .5);
  display: none;
}

.menu-overlay.open {
  display: block;
}

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 201;
  transform: translateX(100%);
  transition: transform .25s ease;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.menu-overlay.open .menu-panel {
  transform: translateX(0);
}

.menu-close {
  align-self: flex-end;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 16px;
  transition: color .15s;
}

.menu-close:hover {
  color: var(--text);
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-links a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color .15s, background .15s;
}

.menu-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .page-hero {
    padding: 28px 0 18px;
  }

  .kitty-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 10px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .prose .wp-block-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Lightbox ── */
.lightbox-trigger {
  display: block;
  cursor: zoom-in;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}

.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-content img {
  max-width: 100%;
  max-height: calc(90vh - 60px);
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .6);
  display: block;
}

.lightbox-caption {
  font-size: .82rem;
  color: rgba(255, 255, 255, .7);
  margin: 0;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  transition: background .15s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, .2);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  z-index: 301;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, .25);
}

.lightbox-prev[hidden],
.lightbox-next[hidden] {
  display: none;
}

/* ── Extracted Inline Styles ── */
.nav-dropdown-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}

.menu-link-divider {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.honeypot-field {
  display: none;
}

.single-post-prose {
  max-width: 800px;
  margin: 0 auto 40px;
}

.single-post-header {
  margin-bottom: 30px;
  text-align: center;
}

.single-post-title {
  margin-bottom: 10px;
}

.single-post-meta {
  color: var(--text-muted);
}

.single-post-content {
  font-size: 1.1rem;
  line-height: 1.7;
}

.tag-flag {
  margin-right: 5px;
  border-radius: 2px;
}

.filter-btn .tag-flag {
  margin-right: 6px;
}

.kitty-structured-content {
  margin-top: 40px;
}

.geo-summary-box {
  background: var(--surface-2);
  padding: 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  margin-bottom: 40px;
}

.geo-summary-box p {
  margin: 0;
  line-height: 1.6;
  color: var(--text);
}

.prose-heading {
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 20px;
}

.prose-section {
  margin-top: 48px;
}

.key-facts-list {
  list-style-type: none !important;
  padding-left: 0 !important;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.key-facts-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: baseline;
  gap: 8px 16px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  line-height: 1.5;
}

.key-facts-list li:last-child {
  border-bottom: none;
}

.key-facts-list li strong {
  color: var(--text);
  font-weight: 700;
  font-size: .84rem;
}

.key-facts-list li span,
.key-facts-list li :not(strong) {
  color: var(--text-muted);
  font-size: .84rem;
}

.filter-bar-spaced {
  margin-bottom: 40px;
}

.kitty-grid-spaced {
  margin-bottom: 40px;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.submit-breed-btn {
  margin-top: 20px;
  display: inline-block;
}

.blog-date {
  color: var(--text-muted);
  font-size: 0.9em;
  margin-bottom: 8px;
}

/* Browse sections (homepage) */
.browse-section {
  margin: 48px 0;
}

.browse-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.browse-section-header h2 {
  /* font-size: 1.25rem; */
  /* font-weight: 600; */
  /* color: var(--text); */
}

.browse-view-all {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

.browse-view-all:hover {
  color: var(--accent-hover);
}

.browse-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.browse-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}

.browse-pill:hover {
  background: var(--surface-2);
  border-color: var(--border-light);
  color: var(--text);
}

.browse-pill-flag {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}

.browse-pill-name {
  font-weight: 500;
}

.browse-pill-count {
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 500;
}