/* Pet Primer — shared styles */
:root {
  --ground: #F6F7F4;
  --surface: #FFFFFF;
  --ink: #1B2420;
  --ink-2: #3A4540;
  --ink-3: #4A5650;
  --line: #E1E5DF;
  --line-2: #DCE1DA;
  --field: #A9B3AD;
  --accent: #1F4D36;
  --accent-dark: #123323;
  --accent-soft: #D3E6D9;
  --amber-soft: #FBE9C8;
  --amber-ink: #6B3F0A;
  --danger: #8A2B2B;
  --radius: 14px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Public Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #2F7A55; outline-offset: 2px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 30%; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 20px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 2px 22px; flex: 1 1 320px; }
.main-nav a { text-decoration: none; font-weight: 500; padding: 10px 0; }
.main-nav a[aria-current="page"] { font-weight: 700; border-bottom: 2px solid var(--accent); }
.header-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; font: inherit; font-weight: 600; border-radius: 10px; border: 1.5px solid var(--accent); background: var(--accent); color: #fff; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.ghost { background: var(--surface); color: var(--accent); }
.btn.ghost:hover { background: #EEF4F0; color: var(--accent-dark); }
.btn.plain { background: transparent; border-color: transparent; color: var(--ink-3); font-weight: 500; }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.big { min-height: 56px; padding: 0 28px; font-size: 18px; border-radius: 12px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Pills and grades */
.pill { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #EEF0EC; color: var(--ink-2); }
.grade { min-width: 120px; justify-content: center; }
.grade-strong { background: var(--accent); color: #fff; }
.grade-moderate { background: var(--accent-soft); color: var(--accent); }
.grade-early { background: var(--amber-soft); color: var(--amber-ink); }
.grade-weak { background: #fff; border: 1.5px solid #7D8580; color: #3A403C; }
.grade-not-supported { background: #3A3F3C; color: #fff; }
.grade-pending { background: #fff; border: 1.5px dashed #7D8580; color: #3A403C; }
.type-okay { background: var(--amber-soft); color: var(--amber-ink); }
.type-show { background: var(--accent-soft); color: var(--accent); }
.type-question { background: #E4E1F0; color: #3E3266; }
.type-tip { background: #DCE8F3; color: #1E3F5E; }
.badge-vet { background: var(--accent); color: #fff; font-size: 12px; padding: 1px 8px; }
.badge-keeper { background: var(--accent-soft); color: var(--accent); font-size: 12px; padding: 1px 8px; }

/* Sections */
.section { padding: 72px 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 28px; }
.section-head h2 { font-size: 36px; }
.section-head p { color: var(--ink-2); font-size: 18px; margin-top: 8px; }
.eyebrow { font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 64px 0; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(40px, 6vw, 70px); line-height: 1.05; max-width: 15ch; }
.hero .lede { font-size: 20px; color: var(--ink-2); max-width: 46rem; }
.hero-img { flex: 1 1 360px; min-width: 0; max-width: 460px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 24px; }
.ticks { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; color: var(--ink-2); }

/* Search */
.search { position: relative; display: flex; flex-direction: column; gap: 10px; max-width: 46rem; }
.search-row { display: flex; flex-wrap: wrap; gap: 12px; }
.search input { flex: 1 1 300px; min-height: 52px; padding: 0 18px; font: inherit; border: 1.5px solid var(--field); border-radius: 10px; background: var(--surface); color: var(--ink); }
.search-results { background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 12px 32px rgba(27,36,32,.10); overflow: hidden; }
.search-results[hidden] { display: none; }
.search-results .summary { display: block; padding: 10px 16px; font-size: 13px; color: var(--ink-3); border-bottom: 1px solid #E8EBE6; }
.search-results a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-bottom: 1px solid #E8EBE6; text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results a:focus { background: #F3F6F2; }
.search-results .none { padding: 14px 16px; color: var(--ink-2); }
mark { background: #FFF0B8; color: inherit; padding: 0 1px; border-radius: 3px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--accent); color: var(--ink); }
.card img.cover { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; }
.card .meta { font-size: 14px; color: var(--ink-3); }
.card .title { font-weight: 600; font-size: 20px; line-height: 1.3; }
.pets { display: flex; flex-wrap: wrap; gap: 24px; }
.pet-card { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1.5px solid var(--accent); border-radius: 16px; text-decoration: none; color: var(--ink); background: var(--ground); }
.pet-card img { width: 100%; height: 240px; object-fit: cover; border-radius: 12px; }
.pet-card .name { font-family: var(--display); font-weight: 700; font-size: 28px; }
.pet-card .go { font-weight: 600; color: var(--accent); }

/* Grades explainer */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > * { flex: 1 1 380px; min-width: 0; }
.grade-list { display: flex; flex-direction: column; gap: 12px; margin: 8px 0; }
.grade-list div { display: flex; gap: 14px; align-items: center; }
.claim-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 8px 24px rgba(27,36,32,.06); }

/* FAQ */
details.faq { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 4px 26px 20px; max-width: 52rem; margin-bottom: 14px; }
details.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--display); font-weight: 700; font-size: 21px; }
details.faq .answer { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.65; }

/* Community block */
.community-cta { background: #E7ECE6; border-radius: 20px; padding: 44px 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.community-cta img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; flex: none; }
.community-cta .text { flex: 1 1 340px; display: flex; flex-direction: column; gap: 10px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.plan { padding: 32px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; display: flex; flex-direction: column; gap: 14px; }
.plan.featured { background: var(--accent); color: #fff; border-color: var(--accent); }
.plan .price { font-family: var(--display); font-size: 36px; font-weight: 700; }
.plan ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.plan .btn { margin-top: auto; }
.plan.featured .btn { background: #fff; color: var(--accent); border-color: #fff; }

/* Article (note pages) */
.article { padding: 48px 0 72px; }
.article .crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.article .crumbs a { color: var(--ink-3); }
.article h1 { font-size: clamp(34px, 5vw, 50px); margin-bottom: 14px; }
.article .byline { display: flex; align-items: center; gap: 12px; margin: 18px 0 28px; }
.article .byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 30%; }
.article .bottom-line { background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 18px 20px; font-size: 18px; margin-bottom: 28px; }
.prose { font-size: 18px; line-height: 1.75; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: 26px; margin-top: 12px; }
.prose ul { margin: 0; padding-left: 22px; }
.article .cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: 16px; margin-bottom: 28px; }
.claims { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.claims .claim-card .sources { font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; background: var(--amber-soft); color: #5A3408; border-radius: 12px; }

/* Community */
.board { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-bottom: 80px; }
.board aside { flex: 1 1 200px; max-width: 260px; display: flex; flex-direction: column; gap: 18px; }
.board main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.board .guide { flex: 1 1 240px; max-width: 300px; }
.filter { text-align: left; min-height: 44px; padding: 0 14px; font: inherit; font-weight: 500; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.composer textarea, .field, .composer select { font: inherit; padding: 12px 14px; border: 1.5px solid var(--field); border-radius: 10px; background: var(--surface); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 600; border-radius: 999px; border: 1.5px solid #C9D0CB; background: var(--surface); color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"] { border-color: currentColor; }
.post { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.post .who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; object-fit: cover; }
.post .photo { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; }
.post .actions { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.empty { padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; background: var(--surface); border: 1px dashed var(--field); border-radius: 16px; color: var(--ink-2); }

/* Thread */
.thread { max-width: 640px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; flex: 999 1 560px; min-width: 0; }
.chain { border-bottom: 1px solid var(--line); padding: 4px 0; }
.reply { display: flex; gap: 12px; padding: 12px 20px 0; }
.reply .rail { display: flex; flex-direction: column; align-items: center; width: 40px; flex: none; }
.reply .line { flex: 1; width: 2px; min-height: 16px; margin-top: 4px; background: #C9D0CB; }
.reply .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; }
.reply-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.reply-form input { flex: 1 1 200px; min-height: 44px; padding: 0 14px; font: inherit; border: 1.5px solid var(--field); border-radius: 999px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal .backdrop { position: absolute; inset: 0; background: rgba(20,28,24,.55); border: 0; cursor: pointer; }
.modal .box { position: relative; width: 100%; max-width: 440px; background: var(--surface); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 24px 60px rgba(20,28,24,.3); }
.social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.social-list a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 12px; text-decoration: none; color: var(--ink); }

/* Footer */
.site-footer { background: var(--ink); color: #E4E9E5; margin-top: 0; }
.site-footer .wrap { padding-top: 52px; padding-bottom: 52px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer a { color: #E4E9E5; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 28px 56px; }
.site-footer .cols div { display: flex; flex-direction: column; gap: 10px; }
.site-footer .head { font-weight: 600; color: #fff; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 60; }
.toast[hidden] { display: none; }

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 30px; }
  .community-cta { padding: 28px 22px; }
  .plan { padding: 24px; }
}
