/* PetWorldly — single stylesheet (no framework) */
:root {
  --brand: #0b6b58;
  --brand-2: #0e8a72;
  --ink: #1a2421;
  --muted: #5b6b67;
  --bg: #ffffff;
  --soft: #f4f7f6;
  --line: #e3ebe8;
  --accent: #f7a73c;
  --shadow: 0 6px 24px rgba(11, 107, 88, 0.08);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; border-radius: 10px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark { font-size: 22px; }
.brand-name { letter-spacing: -0.3px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav-toggle {
  display: none;
  background: transparent; border: 0; font-size: 24px; cursor: pointer; color: var(--ink);
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: 0.2s;
  }
  .nav a { padding: 14px 20px; border-bottom: 1px solid var(--line); }
  body.nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #e9f6f1 0%, #fff8eb 100%);
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.5px;
  margin: 0 0 14px;
}
.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 700px;
  margin: 0 0 26px;
}
.hero-cats { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-pill {
  background: #fff; border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 999px;
  font-weight: 600; color: var(--ink); font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow);
}
.cat-pill:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* SECTIONS */
.section-title {
  font-size: 24px; margin: 50px 0 20px; letter-spacing: -0.3px;
}
.cat-section { margin: 50px 0; }
.cat-head {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px;
}
.cat-head h2 { font-size: 22px; margin: 0; }
.more-link { font-weight: 600; font-size: 14px; }

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: block;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
  text-decoration: none;
}
.card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.card-body { padding: 16px 18px 20px; }
.card-cat {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--brand); margin-bottom: 6px;
}
.card-body h3 { font-size: 16px; margin: 0; line-height: 1.35; }

/* ARTICLE */
.article {
  max-width: 760px;
  padding-top: 30px;
  padding-bottom: 60px;
}
.breadcrumbs {
  font-size: 13px; color: var(--muted); margin: 0 0 18px;
}
.breadcrumbs a { color: var(--muted); }
.article h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin: 0 0 12px;
}
.article .meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.article-body { font-size: 17px; }
.article-body h2 {
  margin: 36px 0 12px;
  font-size: 24px;
  letter-spacing: -0.3px;
}
.article-body h3 {
  margin: 26px 0 10px;
  font-size: 19px;
}
.article-body p { margin: 0 0 14px; }
.article-body figure { margin: 22px 0; }
.article-body img { margin: 16px 0; }
.article-featured-image img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius);
}
.article-summary {
  background: var(--soft);
  border-left: 4px solid var(--brand);
  padding: 18px 22px;
  border-radius: 10px;
  margin: 20px 0 28px;
}
.article-summary p { margin: 0; font-size: 16px; }
.quick-answer {
  background: #fff8eb;
  border: 1px solid #f7d28b;
  border-radius: 12px;
  padding: 22px;
  margin: 28px 0;
}
.quick-answer h2 { margin-top: 0; font-size: 20px; }
.pro-tip {
  background: #f0faf6;
  border-left: 4px solid var(--brand-2);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 22px 0;
  font-size: 15.5px;
}
blockquote.pro-tip { font-style: normal; }
.troubleshooting-matrix {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 15px;
}
.troubleshooting-matrix th, .troubleshooting-matrix td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.troubleshooting-matrix thead th {
  background: var(--soft);
  font-weight: 700;
}
.cta-box {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  padding: 22px;
  border-radius: 12px;
  margin: 30px 0;
  font-size: 16px;
}
.cta-box a { color: #fff; text-decoration: underline; }
.cta-button {
  display: inline-block; margin-top: 10px;
  background: var(--accent); color: #1a2421 !important;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 700; text-decoration: none !important;
}
.related-guides {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.related-guides h2 { font-size: 20px; }
.related-guides ul { padding-left: 20px; }
.related-guides li { margin: 4px 0; }

/* TOC */
.toc-host { display: none; }
.toc-built {
  display: block;
  background: var(--soft);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 16px 0 28px;
  font-size: 15px;
}
.toc-built h4 { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.toc-built ol { margin: 0; padding-left: 22px; }
.toc-built li { margin: 4px 0; }

/* RELATED CARDS */
.related { margin-top: 50px; }
.related h2 { font-size: 22px; margin-bottom: 16px; }

/* CATEGORY PAGE */
.cat-page h1 { font-size: 32px; letter-spacing: -0.3px; margin: 16px 0 8px; }
.cat-page .lead { color: var(--muted); font-size: 17px; max-width: 700px; margin: 0 0 30px; }
.pager {
  display: flex; justify-content: space-between; align-items: center;
  padding: 30px 0; gap: 12px; font-weight: 600;
}

/* AD SLOTS */
.ad-slot {
  display: block;
  margin: 26px 0;
  min-height: 100px;
  background: repeating-linear-gradient(45deg, #fafafa, #fafafa 10px, #f3f3f3 10px, #f3f3f3 20px);
  border: 1px dashed #d8d8d8;
  border-radius: 10px;
  text-align: center;
  position: relative;
}
.ad-slot::before {
  content: "Advertisement";
  position: absolute; top: 4px; left: 12px;
  font-size: 10px; color: #888; letter-spacing: 0.6px; text-transform: uppercase;
}
.ad-top, .ad-home-top, .ad-cat-top { min-height: 90px; margin-top: 12px; }
.ad-bottom { min-height: 250px; }
.ad-in-article-1, .ad-in-article-2 { min-height: 200px; }

/* STATIC PAGES */
.static-page { max-width: 1000px; padding-top: 24px; padding-bottom: 60px; }
.static-page h1 { font-size: 32px; margin: 8px 0 16px; }
.static-page h2 { font-size: 22px; margin: 28px 0 10px; }

/* HTML SITEMAP PAGE */
.sitemap-cat { margin: 28px 0; }
.sitemap-cat h2 { font-size: 22px; margin: 0 0 10px; }
.sitemap-cat h2 small { font-size: 14px; color: var(--muted); font-weight: 400; }
.sitemap-cat h2 a { color: var(--ink); }
.sitemap-list {
  columns: 2;
  column-gap: 32px;
  padding: 0; margin: 0;
  list-style: none;
  font-size: 14.5px;
}
.sitemap-list li { padding: 3px 0; break-inside: avoid; }
@media (max-width: 720px) { .sitemap-list { columns: 1; } }

/* FOOTER */
.site-footer {
  background: var(--ink);
  color: #cdd6d3;
  padding: 50px 0 30px;
  margin-top: 60px;
}
.site-footer a { color: #cdd6d3; }
.site-footer a:hover { color: #fff; }
.site-footer h3 { color: #fff; margin: 0 0 10px; font-size: 18px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 14px; letter-spacing: 0.4px; text-transform: uppercase; }
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #2a3936;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; font-size: 14px; }
.copy { font-size: 13px; color: #8a9591; margin-top: 24px; text-align: center; }

@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 40px 0 36px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
}
