/*
Theme Name: Pet Ownership Guides
Theme URI: https://www.petrulesusa.com
Author: Content Factory
Description: Clean editorial theme for practical pet ownership guides.
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: pet-ownership-guides
*/

:root {
  --pog-bg: #f5f7f2;
  --pog-surface: #ffffff;
  --pog-surface-soft: #eef3ea;
  --pog-text: #1f2823;
  --pog-muted: #68756d;
  --pog-border: #dce4d7;
  --pog-accent: #2f7666;
  --pog-accent-strong: #225c50;
  --pog-warm: #f2a154;
  --pog-warm-soft: #fff2df;
  --pog-radius: 8px;
  --pog-shadow: 0 18px 40px rgba(31, 40, 35, 0.08);
  --pog-shadow-soft: 0 8px 22px rgba(31, 40, 35, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--pog-bg);
  color: var(--pog-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a {
  color: var(--pog-accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--pog-accent-strong);
}

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

.site-header {
  border-bottom: 1px solid var(--pog-border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 24px;
}

.site-header__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

.site-brand {
  align-items: center;
  color: var(--pog-text);
  display: inline-flex;
  flex: 0 0 auto;
  text-decoration: none;
}

.site-brand__logo {
  border-radius: var(--pog-radius);
  height: 40px;
  width: 140px;
}

.site-header__tools {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  min-width: 0;
  width: 100%;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
  margin-left: auto;
}

.site-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--pog-muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--pog-text);
}

.site-search {
  align-items: center;
  background: var(--pog-surface-soft);
  border: 1px solid var(--pog-border);
  border-radius: var(--pog-radius);
  display: flex;
  height: 36px;
  min-width: 174px;
  overflow: hidden;
}

.site-search input {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--pog-text);
  flex: 1;
  font: inherit;
  font-size: 14px;
  min-width: 0;
  outline: 0;
  padding: 0 10px;
}

.site-search input::placeholder {
  color: var(--pog-muted);
}

.site-search button {
  align-items: center;
  background: var(--pog-accent);
  border: 0;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 40px;
}

.site-search button:hover {
  background: var(--pog-accent-strong);
}

.hero {
  background:
    linear-gradient(115deg, rgba(47, 118, 102, 0.92), rgba(31, 40, 35, 0.76)),
    linear-gradient(135deg, #6a927b, #213a35);
  color: #fff;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  min-height: 430px;
  padding-bottom: 72px;
  padding-top: 74px;
}

.hero__eyebrow {
  color: #ffe0b5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 72px);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
  max-width: 780px;
}

.hero__lead {
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.65;
  margin: 22px 0 0;
  max-width: 690px;
}

.hero__panel {
  align-self: end;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--pog-radius);
  padding: 22px;
  box-shadow: 0 24px 48px rgba(17, 30, 26, 0.18);
}

.hero__panel-title {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 12px;
}

.hero__list {
  color: rgba(255, 255, 255, 0.82);
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero__list li {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 10px;
}

.content-area {
  padding: 46px 0 64px;
}

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

.section-heading h2 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0;
}

.section-heading p {
  color: var(--pog-muted);
  margin: 0;
  max-width: 560px;
}

.post-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.topic-card {
  background: var(--pog-surface);
  border: 1px solid var(--pog-border);
  border-radius: var(--pog-radius);
  color: var(--pog-text);
  min-height: 128px;
  padding: 18px;
  text-decoration: none;
}

.topic-card:hover {
  border-color: var(--pog-accent);
}

.topic-card__label {
  color: var(--pog-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topic-card h3 {
  font-size: 19px;
  line-height: 1.25;
  margin: 16px 0 0;
}

.post-card {
  background: var(--pog-surface);
  border: 1px solid var(--pog-border);
  border-radius: var(--pog-radius);
  box-shadow: var(--pog-shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 140ms ease, transform 140ms ease;
}

.post-card:hover {
  border-color: rgba(47, 118, 102, 0.42);
  transform: translateY(-2px);
}

.post-card__media {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--pog-surface-soft), #fff7eb);
  color: var(--pog-accent);
  display: flex;
  font-size: 42px;
  justify-content: center;
  overflow: hidden;
}

.post-card__media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.post-card__body {
  padding: 20px;
}

.post-card__meta,
.entry-meta {
  color: var(--pog-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.entry-meta a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.16em;
}

.entry-meta a:hover {
  color: var(--pog-accent-strong);
}

.breadcrumbs {
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.post-card h2,
.post-card h3 {
  color: var(--pog-text);
  font-size: 21px;
  line-height: 1.25;
  margin: 10px 0 0;
}

.post-card p {
  color: var(--pog-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 12px 0 0;
}

.entry-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  margin: 0 auto;
  max-width: 1040px;
}

.entry-main {
  background: var(--pog-surface);
  border: 1px solid var(--pog-border);
  border-radius: var(--pog-radius);
  box-shadow: var(--pog-shadow);
  overflow: hidden;
}

.entry-hero {
  background:
    linear-gradient(135deg, rgba(47, 118, 102, 0.95), rgba(31, 40, 35, 0.82)),
    radial-gradient(circle at 90% 18%, rgba(242, 161, 84, 0.42), transparent 26%);
  color: #fff;
  padding: 42px 42px 36px;
}

.entry-hero .entry-meta {
  color: rgba(255, 255, 255, 0.78);
}

.entry-hero .entry-meta a {
  color: rgba(255, 255, 255, 0.9);
}

.entry-hero .entry-meta a:hover {
  color: #fff;
}

.entry-title {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
  margin: 12px 0 0;
}

.entry-featured-image {
  background: var(--pog-surface-soft);
  border-bottom: 1px solid var(--pog-border);
  margin: 0;
  padding: 28px 42px;
}

.entry-featured-image img {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--pog-border);
  border-radius: var(--pog-radius);
  box-shadow: 0 16px 34px rgba(31, 40, 35, 0.12);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.entry-content {
  padding: 40px 52px 48px;
}

.author-card {
  align-items: center;
  background: var(--pog-surface-soft);
  border-top: 1px solid var(--pog-border);
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 28px 52px;
}

.author-card__mark {
  align-items: center;
  background: var(--pog-accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 17px;
  font-weight: 800;
  height: 52px;
  justify-content: center;
  letter-spacing: 0;
  text-decoration: none;
  width: 52px;
}

.author-card__mark:hover {
  background: var(--pog-accent-strong);
  color: #fff;
}

.author-card__label {
  color: var(--pog-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.author-card h2 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
}

.author-card h2 a {
  color: var(--pog-text);
  text-decoration: none;
}

.author-card h2 a:hover {
  color: var(--pog-accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.author-card p:last-child {
  color: var(--pog-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 6px 0 0;
}

.related-guides {
  border-top: 1px solid var(--pog-border);
  padding: 28px 52px 34px;
}

.related-guides h2 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 14px;
}

.related-guides__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-guide {
  background: var(--pog-surface-soft);
  border: 1px solid var(--pog-border);
  border-radius: var(--pog-radius);
  color: var(--pog-text);
  padding: 14px;
  text-decoration: none;
}

.related-guide:hover {
  border-color: var(--pog-accent);
}

.related-guide span {
  color: var(--pog-muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.related-guide strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--pog-text);
  line-height: 1.25;
  margin: 34px 0 12px;
}

.entry-content h2 {
  font-size: 30px;
}

.entry-content h3 {
  font-size: 23px;
}

.entry-content p,
.entry-content li {
  color: #354139;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.35em;
}

.entry-content blockquote {
  background: var(--pog-warm-soft);
  border-left: 4px solid var(--pog-warm);
  border-radius: 0 var(--pog-radius) var(--pog-radius) 0;
  margin: 28px 0;
  padding: 18px 22px;
}

.entry-content figure {
  margin: 30px 0;
}

.entry-content figcaption {
  color: var(--pog-muted);
  font-size: 13px;
  margin-top: 8px;
}

.entry-content table {
  border-collapse: collapse;
  border: 1px solid var(--pog-border);
  border-radius: var(--pog-radius);
  font-size: 14px;
  line-height: 1.5;
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--pog-border);
  overflow-wrap: anywhere;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  word-break: normal;
}

.entry-content th {
  background: var(--pog-surface-soft);
  color: var(--pog-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.wp-block-table {
  border: 1px solid var(--pog-border);
  border-radius: var(--pog-radius);
  overflow: hidden;
}

.wp-block-table table {
  margin: 0;
}

.pog-table-cards {
  display: none;
}

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

.sidebar-card {
  background: var(--pog-surface);
  border: 1px solid var(--pog-border);
  border-radius: var(--pog-radius);
  padding: 22px;
  box-shadow: var(--pog-shadow-soft);
}

.sidebar-card--notice {
  background: #fff8ee;
  border-color: #efd4ad;
}

.sidebar-card h2,
.sidebar-card h3 {
  font-size: 16px;
  margin: 0 0 10px;
}

.sidebar-card p,
.sidebar-card li {
  color: var(--pog-muted);
  font-size: 14px;
  line-height: 1.6;
}

.sidebar-card__link,
.sidebar-link-list a {
  color: var(--pog-accent);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.sidebar-link-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer {
  border-top: 1px solid var(--pog-border);
  color: var(--pog-muted);
  background: #eef3ea;
  padding: 34px 0;
}

.site-footer__inner {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr) auto;
}

.site-footer__brand strong {
  color: var(--pog-text);
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}

.site-footer__brand p,
.site-footer__meta {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.site-footer__brand p + p {
  margin-top: 6px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.trust-panel {
  align-items: center;
  background: var(--pog-surface);
  border: 1px solid var(--pog-border);
  border-radius: var(--pog-radius);
  box-shadow: var(--pog-shadow-soft);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 28px;
  padding: 26px;
}

.home-seo-content {
  align-items: start;
  background: var(--pog-surface);
  border: 1px solid var(--pog-border);
  border-radius: var(--pog-radius);
  box-shadow: var(--pog-shadow-soft);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.34fr);
  margin-top: 28px;
  padding: 30px;
}

.home-seo-content__eyebrow {
  color: var(--pog-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.home-seo-content h2 {
  font-size: 28px;
  line-height: 1.18;
  margin: 0 0 14px;
  max-width: 760px;
}

.home-seo-content p {
  color: #354139;
  margin: 0;
  max-width: 840px;
}

.home-seo-content p + p {
  margin-top: 14px;
}

.home-seo-content__aside {
  background: var(--pog-surface-soft);
  border: 1px solid var(--pog-border);
  border-radius: var(--pog-radius);
  padding: 18px;
}

.home-seo-content__aside h3 {
  font-size: 16px;
  line-height: 1.25;
  margin: 0 0 12px;
}

.home-topic-links {
  display: grid;
  gap: 8px;
}

.home-topic-links a {
  background: #fff;
  border: 1px solid var(--pog-border);
  border-radius: var(--pog-radius);
  color: var(--pog-text);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
  text-decoration: none;
}

.home-topic-links a:hover {
  border-color: var(--pog-accent);
  color: var(--pog-accent-strong);
}

.trust-panel__eyebrow {
  color: var(--pog-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.trust-panel h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
}

.trust-panel p:last-child {
  color: var(--pog-muted);
  margin: 8px 0 0;
  max-width: 720px;
}

.trust-panel__links {
  display: grid;
  gap: 8px;
  min-width: 190px;
}

.trust-panel__links a {
  background: var(--pog-surface-soft);
  border: 1px solid var(--pog-border);
  border-radius: var(--pog-radius);
  color: var(--pog-text);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
  text-decoration: none;
}

.trust-panel__links a:hover {
  border-color: var(--pog-accent);
  color: var(--pog-accent-strong);
}

.site-footer__links a {
  color: var(--pog-muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--pog-accent);
}

.site-footer__meta {
  text-align: right;
}

@media (max-width: 980px) {
  .hero__inner,
  .entry-layout,
  .home-seo-content,
  .trust-panel {
    grid-template-columns: 1fr;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-sidebar {
    grid-template-columns: 1fr;
  }

  .related-guides__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .site-shell {
    padding: 0 16px;
  }

  .site-header__inner,
  .site-footer__inner,
  .section-heading {
    align-items: flex-start;
  }

  .site-header__inner,
  .section-heading {
    flex-direction: column;
  }

  .site-brand {
    min-width: 0;
  }

  .site-brand__logo {
    height: 38px;
    width: 133px;
  }

  .site-header__tools {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__meta {
    text-align: left;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .site-search {
    width: 100%;
  }

  .hero__inner {
    min-height: auto;
    padding-bottom: 44px;
    padding-top: 44px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .entry-hero,
  .entry-content,
  .author-card,
  .related-guides,
  .home-seo-content {
    padding: 28px 22px;
  }

  .author-card {
    align-items: start;
  }

  .entry-content table,
  .entry-content thead,
  .entry-content tbody,
  .entry-content tr,
  .entry-content th,
  .entry-content td {
    max-width: 100%;
    min-width: 0;
  }

  .entry-content table {
    border: 0;
    display: grid;
    max-width: 100%;
    min-width: 0;
    table-layout: auto;
    width: 100%;
  }

  .entry-content thead {
    display: none;
  }

  .entry-content tbody {
    display: grid;
    gap: 12px;
    width: 100%;
  }

  .entry-content tr {
    background: #fff;
    border: 1px solid var(--pog-border);
    border-radius: var(--pog-radius);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    width: 100%;
  }

  .entry-content td {
    border: 0;
    border-top: 1px solid var(--pog-border);
    display: block;
    padding: 11px 14px 13px;
    width: auto;
  }

  .entry-content td:first-child {
    border-top: 0;
  }

  .entry-content td::before {
    color: var(--pog-muted);
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.3;
    margin-bottom: 4px;
    text-transform: uppercase;
  }

  .wp-block-table {
    border: 0;
    overflow: visible;
  }

  .entry-content .wp-block-table table {
    display: none !important;
  }

  .pog-table-cards {
    display: grid;
    gap: 12px;
  }

  .pog-table-card {
    background: #fff;
    border: 1px solid var(--pog-border);
    border-radius: var(--pog-radius);
    overflow: hidden;
  }

  .pog-table-card__item {
    border-top: 1px solid var(--pog-border);
    padding: 12px 14px;
  }

  .pog-table-card__item:first-child {
    border-top: 0;
  }

  .pog-table-card__label {
    color: var(--pog-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.3;
    margin-bottom: 4px;
    text-transform: uppercase;
  }

  .pog-table-card__value {
    color: #354139;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
}
