
:root {
  --primary: #223c4c;
  --accent: #f08a5d;
  --bg: #f8f3ea;
  --text: #17212b;
  --paper: #fffdf8;
  --mint: #b9eadf;
  --sky: #bddff7;
  --butter: #ffe99a;
  --rose: #ffd4c7;
  --soft: #e9f3ef;
  --muted: rgba(23, 33, 43, 0.67);
  --line: rgba(34, 60, 76, 0.18);
  --shadow: 0 16px 34px rgba(34, 60, 76, 0.11);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(185, 234, 223, 0.18) 0 1px, transparent 1px 80px),
    linear-gradient(180deg, rgba(255, 233, 154, 0.15) 0 1px, transparent 1px 80px),
    var(--bg);
  line-height: 1.62;
}

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

a {
  color: inherit;
}

.pet-header,
.pet-footer,
main {
  width: min(1280px, calc(100% - 34px));
  margin: 0 auto;
}

.pet-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 2px solid var(--primary);
}

.pet-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.pet-brand-mark {
  width: 62px;
  height: 62px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--butter);
}

.pet-brand-mark svg {
  width: 50px;
  height: 50px;
}

.pet-logo-head,
.pet-logo-ear {
  fill: var(--primary);
}

.pet-logo-eye {
  fill: #fffaf3;
}

.pet-logo-smile {
  fill: none;
  stroke: #fffaf3;
  stroke-width: 3;
  stroke-linecap: round;
}

.pet-logo-dot {
  fill: var(--accent);
}

.pet-brand strong,
.pet-brand small {
  display: block;
}

.pet-brand strong {
  font-size: 24px;
  line-height: 1.05;
}

.pet-brand small {
  max-width: 380px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.pet-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.pet-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  padding: 8px 11px;
  color: var(--primary);
  text-decoration: none;
}

.pet-nav a:hover,
.text-link:hover,
.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pet-kicker,
.eyebrow,
.kicker {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(46px, 8vw, 106px);
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 740px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.text-link,
.back-link {
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(34, 60, 76, 0.18);
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.secondary {
  background: var(--paper);
  color: var(--primary);
}

.pet-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.pet-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.18fr);
  gap: 22px;
  align-items: stretch;
  padding: 30px 0 18px;
}

.pet-hero-copy,
.pet-hero-board,
.pet-card,
.pet-category-tile,
.pet-context-box,
.takeaway-box,
.source-box,
.related-box,
.article-card,
.article-callout,
.table-scroll {
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.pet-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(255, 233, 154, 0.42), transparent 42%),
    var(--paper);
}

.pet-hero-board {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(250px, 0.78fr);
  gap: 12px;
  padding: 12px;
  background:
    linear-gradient(135deg, var(--mint), var(--paper) 54%, var(--rose));
}

.pet-hero-stack {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.section {
  padding: 42px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.pet-strip {
  margin: 16px 0 10px;
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  background: rgba(255, 253, 248, 0.68);
}

.pet-strip ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pet-strip li {
  min-height: 90px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
  padding: 16px 18px;
  font-weight: 860;
}

.pet-strip li:last-child {
  border-right: 0;
}

.pet-index-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 0 8px;
}

.pet-index-row a {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: var(--butter);
  padding: 14px;
  text-decoration: none;
}

.pet-index-row a:nth-child(2n) {
  background: var(--mint);
}

.pet-index-row a:nth-child(3n) {
  background: var(--sky);
}

.pet-index-row span,
.pet-category-tile span {
  display: block;
  color: var(--primary);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.pet-index-row strong {
  display: block;
  margin-top: 8px;
  line-height: 1.18;
}

.pet-card-grid,
.pet-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.pet-row-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pet-home-library {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: stretch;
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
}

.pet-library-copy {
  padding: 30px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 233, 154, 0.42), transparent 46%),
    var(--paper);
  box-shadow: var(--shadow);
}

.pet-library-copy h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 0.98;
}

.pet-library-copy p:not(.pet-kicker) {
  max-width: 600px;
  color: var(--muted);
  font-size: 18px;
}

.pet-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pet-library-link {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: var(--paper);
  padding: 16px;
  color: var(--primary);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.pet-library-link:nth-child(2n) {
  background: var(--mint);
}

.pet-library-link:nth-child(3n) {
  background: var(--sky);
}

.pet-library-link:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.pet-library-link span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.pet-library-link strong {
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.08;
}

.pet-card {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pet-card:hover,
.pet-category-tile:hover,
.pet-index-row a:hover,
.pet-library-link:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 0 rgba(34, 60, 76, 0.14);
}

.pet-card-image {
  background: var(--soft);
  border-bottom: 2px solid var(--primary);
}

.pet-card-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.pet-card.hero-feature {
  min-height: 100%;
}

.pet-card.hero-feature .pet-card-image img {
  aspect-ratio: 4 / 3.2;
}

.pet-card.hero-feature h3 {
  font-size: clamp(30px, 3.6vw, 46px);
}

.pet-card.hero-feature p {
  font-size: 16px;
  line-height: 1.55;
}

.pet-card.mini {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 0;
}

.pet-card.mini .pet-card-image {
  border-right: 2px solid var(--primary);
  border-bottom: 0;
}

.pet-card.mini .pet-card-image img {
  height: 100%;
  aspect-ratio: auto;
}

.pet-card.mini h3 {
  font-size: 18px;
}

.pet-card.mini p {
  display: none;
}

.pet-card.no-image {
  display: flex;
}

.pet-card.no-image .pet-card-copy {
  width: 100%;
}

.pet-card.row {
  display: grid;
  grid-template-columns: minmax(160px, 0.34fr) minmax(0, 1fr);
  min-height: 250px;
}

.pet-card.row.no-image {
  display: flex;
  min-height: 250px;
}

.pet-card.row .pet-card-image {
  border-right: 2px solid var(--primary);
  border-bottom: 0;
}

.pet-card.row .pet-card-image img {
  height: 100%;
  aspect-ratio: auto;
}

.pet-card.feature .pet-card-image img {
  aspect-ratio: 16 / 8;
}

.pet-card.feature h3 {
  font-size: clamp(34px, 4vw, 52px);
}

.pet-card-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.pet-card p {
  color: var(--muted);
  font-size: 17px;
}

.pet-card .text-link {
  margin-top: auto;
  padding-top: 12px;
}

.pet-category-band,
.pet-fresh-section {
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
}

.pet-category-tile {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  text-decoration: none;
  background:
    linear-gradient(140deg, rgba(185, 234, 223, 0.58), transparent 62%),
    var(--paper);
}

.pet-category-tile:nth-child(2n) {
  background:
    linear-gradient(140deg, rgba(189, 223, 247, 0.58), transparent 62%),
    var(--paper);
}

.pet-category-tile:nth-child(3n) {
  background:
    linear-gradient(140deg, rgba(255, 212, 199, 0.62), transparent 62%),
    var(--paper);
}

.pet-category-tile strong {
  display: block;
  margin-top: 16px;
  font-size: 30px;
  line-height: 1.04;
}

.pet-category-tile em {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-style: normal;
}

.pet-page-hero {
  max-width: 1040px;
  padding: 52px 0 28px;
}

.pet-page-hero h1,
.pet-article-header h1,
.policy-page h1 {
  max-width: 1040px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
}

.pet-topic-row,
.topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.pet-topic-row span,
.topic-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 8px 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 850;
}

.pet-category-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
  gap: 20px;
  align-items: start;
}

.pet-side-stack {
  display: grid;
  gap: 14px;
}

.pet-context-box {
  padding: 20px;
  background: var(--butter);
}

.pet-context-box h2 {
  font-size: 34px;
}

.page-image {
  margin: 24px 0 0;
  overflow: hidden;
  border: 2px solid var(--primary);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--paper);
}

.page-image img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.pet-inline-image {
  margin: 34px 0 10px;
  overflow: hidden;
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(34, 60, 76, 0.13);
}

.pet-inline-image img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.pet-article-layout {
  padding: 34px 0 54px;
}

.pet-article-header {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.byline,
.fine-print,
.empty-note {
  color: var(--muted);
  font-size: 14px;
}

.pet-article-shell {
  display: grid;
  grid-template-columns: minmax(0, 760px) 340px;
  gap: 36px;
  align-items: start;
  max-width: 1160px;
  margin: 34px auto 0;
}

.pet-article-aside {
  grid-column: 2;
  display: grid;
  gap: 14px;
}

.pet-copy {
  grid-column: 1;
  grid-row: 1;
}

.article-body {
  color: rgba(23, 33, 43, 0.94);
}

.article-body section {
  padding-top: 30px;
}

.article-body section:first-child {
  padding-top: 0;
}

.article-body h2 {
  font-size: 38px;
  line-height: 1.08;
}

.article-body p {
  font-size: 18px;
  line-height: 1.78;
}

.article-intro {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 24px;
}

.article-intro p:first-child {
  margin-top: 0;
  font-size: 21px;
  line-height: 1.62;
}

.disclaimer,
.affiliate-note {
  border-left: 6px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 212, 199, 0.45);
  padding: 16px 18px;
}

.takeaway-box,
.source-box,
.related-box,
.article-callout,
.article-card {
  padding: 20px;
}

.takeaway-box h2,
.source-box h2,
.related-box h2 {
  font-size: 20px;
}

.takeaway-box ul,
.source-box ul,
.related-box ul,
.article-list,
.article-checklist,
.check-list {
  margin: 14px 0 0;
  padding-left: 20px;
}

.takeaway-box li + li,
.source-box li + li,
.related-box li + li,
.article-list li + li,
.article-checklist li + li {
  margin-top: 8px;
}

.related-box a,
.source-box a {
  color: var(--primary);
  font-weight: 850;
  text-decoration: none;
}

.article-callout {
  margin: 22px 0;
  border-left: 6px solid var(--primary);
  background: rgba(185, 234, 223, 0.38);
}

.article-callout h3 {
  font-size: 20px;
}

.article-card-grid,
.inline-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.inline-related-link {
  display: block;
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: var(--paper);
  padding: 16px;
  color: var(--primary);
  text-decoration: none;
}

.inline-related-link span {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.inline-related-link strong {
  display: block;
  margin-top: 5px;
  line-height: 1.25;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin-top: 18px;
}

.content-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}

.content-table th,
.content-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
}

.content-table th {
  background: rgba(185, 234, 223, 0.44);
  color: var(--primary);
}

.content-table tr:last-child td {
  border-bottom: 0;
}

.policy-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 62px 0;
}

.policy-page h2 {
  margin-top: 32px;
  font-size: 34px;
}

.policy-page p,
.policy-page li {
  font-size: 18px;
  line-height: 1.76;
}

.pet-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.5fr) minmax(220px, 0.5fr);
  gap: 32px;
  margin-top: 30px;
  padding: 34px 0 48px;
  border-top: 2px solid var(--primary);
}

.footer-group {
  display: grid;
  gap: 9px;
}

.footer-group h2 {
  margin: 0;
  font-size: 16px;
}

.footer-group a {
  color: var(--primary);
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .pet-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .pet-nav {
    justify-content: flex-start;
  }

  .pet-hero,
  .pet-hero-board,
  .pet-home-library,
  .pet-category-lead,
  .pet-article-shell,
  .pet-footer {
    grid-template-columns: 1fr;
  }

  .pet-hero-copy,
  .pet-hero-board {
    min-height: 0;
  }

  .pet-article-aside,
  .pet-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .pet-card-grid,
  .pet-category-grid,
  .pet-library-grid,
  .pet-strip ul,
  .pet-index-row,
  .pet-row-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pet-strip li {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 700px) {
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .pet-card-grid,
  .pet-category-grid,
  .pet-library-grid,
  .pet-strip ul,
  .pet-index-row,
  .pet-row-grid {
    grid-template-columns: 1fr;
  }

  .pet-card.mini,
  .pet-card.row {
    grid-template-columns: 1fr;
  }

  .pet-card.mini .pet-card-image,
  .pet-card.row .pet-card-image {
    border-right: 0;
    border-bottom: 2px solid var(--primary);
  }

  .pet-card.mini .pet-card-image img,
  .pet-card.row .pet-card-image img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .article-card-grid,
  .inline-related-grid {
    grid-template-columns: 1fr;
  }
}
