/* WATCH UR PET — Pet Parent Guides, privacy and disclosure pages.
   Loaded after teaser.css, so it reuses the homepage's colors, fonts,
   header, footer, buttons and signup form. */

[hidden] { display: none !important; }

/* ---------- Page top ---------- */
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

.page-hero { padding: clamp(36px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 72px); }
.page-hero .lede { margin-top: 18px; }

.guide-hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.guide-hero-grid > * { min-width: 0; }
.guide-photo { margin: 0; }
.guide-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 28px; box-shadow: var(--shadow); background: var(--surface-2);
}
.guide-photo.is-wide img { aspect-ratio: 4 / 3; }
.guide-photo.focus-low img { object-position: 50% 80%; }  /* keeps a low-in-frame face in view when cropped */

/* ---------- Guide text ---------- */
.guide-body { padding: 0 0 clamp(40px, 6vw, 72px); }
.prose { max-width: 680px; }
.prose > * + * { margin-top: 16px; }
.prose h2 {
  font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1;
  margin-top: clamp(36px, 5vw, 52px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 8px; }
.prose li::marker { color: var(--brand); }
.prose strong { font-weight: 600; }
.prose .closing-line { margin-top: 40px; font-style: italic; color: var(--ink-2); }

.aff-disclosure {
  max-width: 680px; margin-bottom: 28px; padding: 12px 16px;
  background: var(--surface-2); border-radius: 12px;
  font-size: 14.5px; color: var(--ink-2);
}

/* Product names. Plain text until products.json has a link for them. */
.look-for { font-size: 15px; color: var(--ink-2); }
.look-label { font-weight: 600; color: var(--ink-3); margin-right: 4px; }
.prod { font-weight: 500; }
a.prod { color: var(--brand); text-underline-offset: 3px; }

/* Checklists shown on the page */
.ticks { list-style: none; padding-left: 0 !important; }
.tick { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.tick input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 22px; height: 22px; margin-top: 2px;
  border: 2px solid var(--ink-3); border-radius: 6px; background: var(--surface);
  display: inline-grid; place-content: center; cursor: pointer;
}
.tick input::after { content: "✓"; font: 700 15px/1 var(--sans); color: var(--brand-ink); opacity: 0; }
.tick input:checked { background: var(--brand); border-color: var(--brand); }
.tick input:checked::after { opacity: 1; }
.tick input:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

/* ---------- Fill-in sheets ---------- */
.sheet {
  margin-top: clamp(36px, 5vw, 52px);
  background: var(--surface-2); border-radius: 28px;
  padding: clamp(22px, 4vw, 44px) clamp(18px, 4vw, 44px);
  max-width: 820px;
}
.sheet .prose { max-width: none; }
.sheet-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
}
.sheet-controls .eyebrow { width: 100%; margin-bottom: 2px; }
.sheet-controls .fine { width: 100%; margin-top: 4px; }

.sheet-print-head { display: none; }
.sheet-print-foot { display: none; }

.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; }
.fields.one-col { grid-template-columns: 1fr; }
.fields.house { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .fields.house { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.fill { display: block; min-width: 0; }
.fill input {
  width: 100%; min-width: 0; font: 16px var(--sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; min-height: 46px;
}
.fill input::placeholder { color: var(--ink-3); }
.fill input:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 1px; }
.fill-print { display: none; }

/* Tables: a grid on wide screens, stacked cards on phones */
.fill-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.fill-table th, .fill-table td { text-align: left; vertical-align: middle; padding: 8px; }
.fill-table thead th {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.fill-table tbody th { font-weight: 600; font-size: 15.5px; width: 30%; }
.fill-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.fill-table .static { color: var(--ink); }
.cell-note { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }

@media (max-width: 640px) {
  .fill-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fill-table, .fill-table tbody, .fill-table tr, .fill-table th, .fill-table td { display: block; width: 100%; }
  .fill-table tbody tr {
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    padding: 12px 14px; margin-bottom: 12px;
  }
  .fill-table tbody tr + tr > * { border-top: 0; }
  .fill-table tbody th { width: 100%; padding: 0 0 6px; font-size: 16px; }
  .fill-table td { padding: 6px 0; }
  .fill-table td[data-label]::before {
    content: attr(data-label); display: block;
    font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px;
  }
}

/* Plain tables (Guide 4) */
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.data-table thead th { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.data-table tbody th { font-weight: 600; }
@media (max-width: 640px) {
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: 100%; }
  .data-table tbody tr {
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    padding: 14px 16px; margin-bottom: 12px;
  }
  .data-table th, .data-table td { border: 0; padding: 4px 0; }
  .data-table td[data-label]::before {
    content: attr(data-label); display: block;
    font-size: 13px; font-weight: 600; color: var(--ink-3);
  }
}

.callout {
  margin-top: 36px; padding: 20px 22px; border-radius: 20px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.callout h2 { margin-top: 0 !important; font-size: clamp(24px, 2.6vw, 30px); }
.callout p + p { margin-top: 10px; }
@media print { .callout { border: 1.5px solid #000; break-inside: avoid; } }

.sources { max-width: 680px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.sources h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.sources ul { padding-left: 1.2em; display: grid; gap: 4px; }
.sources a { color: var(--ink-2); text-underline-offset: 3px; }

/* ---------- Guides index ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: clamp(48px, 7vw, 96px); }
.guide-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.guide-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.guide-card img.focus-low { object-position: 50% 80%; }
.guide-card .card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.guide-card h2 { font-family: var(--sans); font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.guide-card p { margin-top: 0; }
.badge {
  align-self: flex-start; margin-top: auto; padding-top: 6px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand);
}
.guide-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 3px; }

/* Recommended list */
.rec-group + .rec-group { margin-top: 36px; }
.rec-group h2 { font-size: clamp(26px, 3vw, 34px); }
.rec-list { margin-top: 12px; }

/* Text pages (privacy, disclosure) */
.doc-page { padding-bottom: clamp(48px, 7vw, 96px); }
.doc-page .updated { color: var(--ink-3); font-size: 14.5px; }
.doc-page .summary { background: var(--surface-2); border-radius: 20px; padding: 20px 24px; }
.doc-page .summary h2 { margin-top: 0; font-size: clamp(24px, 2.6vw, 30px); }

/* Footer extras (also used on the homepage via teaser.css) */

@media (max-width: 860px) {
  .guide-hero-grid { grid-template-columns: 1fr; }
  .guide-photo { max-width: 520px; }
  .guide-photo img { aspect-ratio: 4 / 3; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .guide-grid { grid-template-columns: 1fr; }
  .sheet-controls .btn { width: 100%; }
  .sheet { border-radius: 22px; }
}

/* ---------- Print ---------- */
@media print {
  @page { margin: 12mm; }
  :root {
    --bg: #fff; --surface: #fff; --surface-2: #fff; --ink: #000; --ink-2: #000; --ink-3: #333;
    --line: #999; --brand: #000; --brand-ink: #fff; --brand-soft: #fff;
  }
  html, body { background: #fff !important; color: #000 !important; }
  body { font-size: 11pt; line-height: 1.4; }
  .nav, .announce, .footer, .skip, .closing, .crumbs, .sheet-controls, .aff-disclosure,
  form, .form-note, .no-print, .look-for, .prod-ref { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .card, .guide-photo img { box-shadow: none !important; }
  a { color: #000 !important; text-decoration: none !important; }
  .guide-photo img { max-height: 3in; width: auto; max-width: 100%; border-radius: 8px; }
  .page-hero { padding: 0 0 12pt; }
  .page-hero h1 { font-size: 26pt; }
  .prose h2 { font-size: 16pt; margin-top: 14pt; break-after: avoid; }
  .sheet { background: #fff; padding: 0; margin-top: 14pt; border-radius: 0; max-width: none; }
  .fill input { display: none; }
  .fill-print { display: block; min-height: 1.35em; border-bottom: 1px solid #000; white-space: pre-wrap; overflow-wrap: anywhere; }
  .fill-table tbody tr, .data-table tbody tr { break-inside: avoid; }
  .tick input { border-color: #000; background: #fff !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .tick input:checked::after { color: #000; }
  .sources { break-inside: avoid; }

  /* "Print the …" button: only the fill-in sheet goes on paper */
  body.print-sheet main > *, body.print-sheet .guide-body .wrap > *:not(.sheet) { display: none !important; }
  body.print-sheet main > .guide-body { display: block !important; padding: 0; }
  body.print-sheet .guide-body .wrap { padding: 0; max-width: none; }
  body.print-sheet .sheet { margin: 0; padding-bottom: 0.55in; font-size: 10pt; line-height: 1.3; }
  body.print-sheet .sheet .prose > * + * { margin-top: 5pt; }
  body.print-sheet .sheet .prose h2 { font-size: 13pt; margin-top: 10pt; }
  body.print-sheet .sheet .prose ul, body.print-sheet .sheet .prose ol { gap: 2pt; }
  body.print-sheet .sheet-print-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12pt;
    padding-bottom: 6pt; margin-bottom: 4pt; border-bottom: 2px solid #000;
  }
  body.print-sheet .sheet-print-head h2 { font-family: var(--serif); font-size: 22pt; line-height: 1.05; margin: 0; }
  body.print-sheet .sheet-print-foot {
    display: flex; align-items: center; justify-content: center; gap: 8pt;
    position: fixed; left: 0; right: 0; bottom: 0;
    font: 600 10pt var(--sans); letter-spacing: .04em; color: #000;
  }
  body.print-sheet .sheet-print-foot img { width: 22pt; height: 22pt; border-radius: 5pt; }
  body.print-sheet .fields { gap: 6pt 14pt; }
  body.print-sheet .field { gap: 1pt; }
  body.print-sheet .field-label { font-size: 9.5pt; color: #000; }
  body.print-sheet .fill-table th, body.print-sheet .fill-table td { padding: 3pt 4pt; }
  body.print-sheet .fill-table thead th { font-size: 8.5pt; color: #000; border-bottom: 1.5px solid #000; }
  body.print-sheet .fill-table tbody th { font-size: 9.5pt; }
  body.print-sheet .fill-table td { font-size: 9pt; line-height: 1.25; }
  body.print-sheet .fill-table .fill-print { min-height: 1.25em; }
  body.print-sheet .fill-table tbody th .fill-print { font-weight: 400; }
  body.print-sheet .fill-table tbody tr + tr > * { border-top: 1px solid #bbb; }
  body.print-sheet .cell-note { font-size: 8pt; color: #333; margin-bottom: 0; }
  body.print-sheet .tick { gap: 7pt; }
  body.print-sheet .tick input { width: 12pt; height: 12pt; border-width: 1.5px; border-radius: 3pt; margin-top: 0; }
  body.print-sheet .tick input::after { font-size: 9pt; }
  body.print-sheet .print-two-col { columns: 2; column-gap: 18pt; }
  body.print-sheet .print-two-col > li { break-inside: avoid; }
  /* Guide 1's checklist has room to breathe on paper */
  body.print-sheet .sheet.roomy { font-size: 14pt; line-height: 1.45; }
  body.print-sheet .sheet.roomy .field-label { font-size: 12pt; }
  body.print-sheet .sheet.roomy .tick input { width: 18pt; height: 18pt; }
  body.print-sheet .sheet.roomy .tick input::after { font-size: 13pt; }
  body.print-sheet .sheet.roomy .prose ul { gap: 10pt; }
  body.print-sheet .sheet.roomy .fields { gap: 14pt 18pt; margin-bottom: 14pt; }

  /* Stacked-card layout never applies on paper */
  .fill-table thead { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
  .fill-table { display: table; } .fill-table thead { display: table-header-group; } .fill-table tbody { display: table-row-group; }
  .fill-table tr { display: table-row; background: none; border: 0; padding: 0; margin: 0; }
  .fill-table th, .fill-table td { display: table-cell; width: auto; }
  .fill-table td[data-label]::before { content: none; }
  .data-table thead { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
  .data-table { display: table; } .data-table thead { display: table-header-group; } .data-table tbody { display: table-row-group; }
  .data-table tr { display: table-row; background: none; border: 0; padding: 0; margin: 0; }
  .data-table th, .data-table td { display: table-cell; width: auto; border-bottom: 1px solid #999; padding: 5pt 6pt; }
  .data-table td[data-label]::before { content: none; }
}
