/* EpiPaws blog — layered on ../site.css (Nov 2026). Blog-only components. */

/* Diagram palette: inline SVGs use these classes so they follow light/dark mode */
.d-ink { fill: var(--ink); } .d-ink2 { fill: var(--ink2); } .d-ink3 { fill: var(--ink3); }
.d-surf { fill: var(--surf); } .d-surf2 { fill: var(--surf2); } .d-surf3 { fill: var(--surf3); } .d-paper { fill: var(--paper); }
.d-teal { fill: var(--teal); } .d-teal-soft { fill: var(--teal-soft); }
.d-amber { fill: var(--amber); } .d-amber-soft { fill: var(--amber-soft); }
.d-rose { fill: var(--rose); } .d-rose-soft { fill: var(--rose-soft); }
.d-sage { fill: var(--sage); } .d-sage-soft { fill: var(--sage-soft); }
.d-mauve { fill: var(--mauve); } .d-mauve-soft { fill: var(--mauve-soft); }
.d-sky { fill: var(--sky); } .d-sky-soft { fill: var(--sky-soft); }
.d-ember { fill: var(--ember); }
.s-line { stroke: var(--line3); } .s-ink3 { stroke: var(--ink3); } .s-teal { stroke: var(--teal); } .s-rose { stroke: var(--rose); } .s-amber { stroke: var(--amber); } .s-sage { stroke: var(--sage); } .s-mauve { stroke: var(--mauve); }
svg text { font-family: var(--sans); }
svg .t-mono { font-family: var(--mono); letter-spacing: 0.06em; }

/* ── Post layout ───────────────────────────────────────── */
.post { padding-bottom: 40px; }
.col { max-width: 708px; margin: 0 auto; padding: 0 20px; }
.post-head { padding: 40px 0 8px; position: relative; overflow: hidden; }
.post-head::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; background: radial-gradient(closest-side, var(--teal-soft), transparent 70%); pointer-events: none; }
.post-head .col { position: relative; }
.crumbs { font-size: 14px; color: var(--ink3); margin-bottom: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--line3); }
.crumbs a { color: var(--ink2); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.crumbs [aria-current] { color: var(--ink3); overflow-wrap: anywhere; }
.post-head h1 { font-size: clamp(34px, 5.4vw, 54px); line-height: 1.06; margin-bottom: 16px; overflow-wrap: break-word; }
.dek { font-size: clamp(17px, 2vw, 20px); color: var(--ink2); line-height: 1.5; margin-bottom: 22px; }
.byline { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; flex: none; }
.byline .who { font-size: 15px; line-height: 1.4; }
.byline .who strong { font-weight: 600; }
.byline .who span { color: var(--ink2); }
.post-meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink3); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }

/* Quick answer + takeaways */
.quick { margin: 28px 0 18px; background: var(--teal-soft); border-radius: var(--r-card); padding: 22px 24px; border: 1px solid rgba(47,143,130,0.18); }
.quick .label, .takeaways .label, .toc .label, .note .label { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.quick .label { color: var(--teal); }
.quick p { font-size: 18px; line-height: 1.55; color: var(--ink); }
.takeaways { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.takeaways .label { color: var(--amber); }
.takeaways .list { margin-top: 6px; }
.takeaways .list li { font-size: 16px; color: var(--ink); }
.toc { border: 1px solid var(--line2); border-radius: var(--r-card); padding: 4px 24px; margin-bottom: 8px; }
.toc summary { cursor: pointer; list-style: none; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .label { margin: 0; color: var(--ink2); }
.toc summary::after { content: "+"; font-family: var(--mono); color: var(--ink3); font-size: 20px; line-height: 1; }
.toc[open] summary::after { content: "–"; }
.toc ol { margin: 0 0 18px 20px; display: grid; gap: 7px; }
.toc a { color: var(--ink2); text-decoration: none; font-size: 15px; }
.toc a:hover { color: var(--teal); text-decoration: underline; }

/* Body copy */
.post-body { padding-top: 12px; }
.post-body > h2 { font-size: clamp(27px, 3.4vw, 34px); line-height: 1.15; margin: 52px 0 14px; scroll-margin-top: 90px; }
.post-body > h3, .post-body .step h3 { font-family: var(--serif); font-size: 21px; margin: 28px 0 8px; }
.post-body p, .post-body li { font-size: 17px; line-height: 1.68; color: var(--ink); }
.post-body p { margin-bottom: 16px; }
.post-body ul, .post-body ol { margin: 0 0 18px 22px; }
.post-body li { margin-bottom: 8px; }
.post-body li::marker { color: var(--ink3); }
.post-body a { color: var(--teal); text-underline-offset: 2px; }
.post-body a:hover { text-decoration-thickness: 2px; }
.post-body strong { font-weight: 600; }
.post-body .def { border-left: 3px solid var(--teal); padding: 2px 0 2px 16px; margin: 0 0 18px; }
.post-body .def p { margin-bottom: 6px; }
.post-body .def p:last-child { margin-bottom: 0; }
.post-body .list li { font-size: 17px; color: var(--ink); margin-bottom: 0; }
.post-body ul.list { margin-left: 0; }

/* Steps */
.steps { list-style: none; margin: 18px 0 22px !important; counter-reset: step; display: grid; gap: 12px; }
.steps > li { counter-increment: step; position: relative; padding: 18px 20px 18px 64px; background: var(--surf); border: 1px solid var(--line); border-radius: 16px; margin: 0 !important; }
.steps > li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-family: var(--mono); font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.steps > li strong:first-child { display: block; font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.25; margin-bottom: 4px; }
.steps > li p { margin: 0; color: var(--ink2); font-size: 16px; }

/* Callouts */
.note { border-radius: 16px; padding: 18px 20px; margin: 22px 0; border: 1px solid transparent; }
.note p, .note li { font-size: 16px; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note ul { margin-left: 20px; }
.note.info { background: var(--teal-soft); border-color: rgba(47,143,130,0.18); }
.note.info .label { color: var(--teal); }
.note.tip { background: var(--amber-soft); border-color: rgba(217,142,31,0.22); }
.note.tip .label { color: var(--amber); }
.note.alert { background: var(--rose-soft); border-color: var(--rose); border-left-width: 4px; }
.note.alert .label { color: var(--rose); }
.note.alert strong { color: var(--ink); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px 0 24px; border: 1px solid var(--line2); border-radius: 16px; background: var(--surf); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-wrap.fit table { min-width: 0; }
.table-wrap caption { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink3); padding: 14px 16px 0; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line2); line-height: 1.45; }
.table-wrap thead th { font-size: 13px; font-weight: 600; color: var(--ink2); background: var(--surf2); }
.table-wrap tbody th { font-weight: 600; }
.table-wrap td { color: var(--ink2); }
.table-wrap tr:last-child td, .table-wrap tr:last-child th { border-bottom: 0; }
.table-wrap .em-rose { color: var(--rose); font-weight: 600; }
.table-wrap .em-amber { color: var(--amber); font-weight: 600; }
.table-wrap .em-sage { color: var(--sage); font-weight: 600; }
.table-wrap table { min-width: 0; }
@media (max-width: 600px) {
  .table-wrap { overflow: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td, .table-wrap caption { display: block; width: auto; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap caption { padding: 14px 16px 4px; }
  .table-wrap tr { padding: 12px 16px; border-bottom: 1px solid var(--line2); }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap th, .table-wrap td { border: 0; padding: 3px 0; }
  .table-wrap tbody th { font-size: 16px; padding-bottom: 6px; color: var(--ink); }
  .table-wrap td[data-label]::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink3); margin-top: 4px; }
}

/* Figures */
.fig { margin: 26px 0; }
.fig figcaption { font-size: 14px; color: var(--ink3); margin-top: 10px; line-height: 1.5; }
.fig.diagram { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow); }
.fig.diagram svg { width: 100%; height: auto; display: block; }
.fig.shot { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; background: var(--paper2); border-radius: var(--r-card); padding: 24px; }
.fig.shot .phone { width: 100%; max-width: 220px; }
.fig.shot .phone img { aspect-ratio: auto; height: auto; }
.fig.shot figcaption { margin: 0; font-size: 15px; color: var(--ink2); }
.fig.shot figcaption strong { display: block; color: var(--ink); font-family: var(--serif); font-weight: 500; font-size: 20px; margin-bottom: 6px; }
.fig.shot.two { grid-template-columns: 1fr 1fr; }
.fig.shot.two figcaption { grid-column: 1 / -1; }
.fig.shot.two .phone { margin: 0 auto; }
@media (max-width: 560px) {
  .fig.shot { grid-template-columns: 1fr; padding: 20px; }
  .fig.shot .phone { max-width: 210px; margin: 0 auto; }
  .fig.shot.two { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fig.shot.two .phone { padding: 5px; border-radius: 26px; }
  .fig.shot.two .phone img { border-radius: 21px; }
  .fig.diagram { padding: 14px; }
}

/* Inline app panel */
.app-note { display: flex; gap: 14px; align-items: flex-start; background: var(--surf2); border-radius: 16px; padding: 16px 18px; margin: 20px 0; }
.app-note .ico { margin: 0; flex: none; width: 38px; height: 38px; border-radius: 12px; }
.app-note p { margin: 0; font-size: 16px; color: var(--ink2); }
.app-note p strong { color: var(--ink); }

/* FAQ, CTA, notes */
.post-faq { margin-top: 56px; }
.post-faq h2 { font-size: clamp(27px, 3.4vw, 34px); margin-bottom: 6px; scroll-margin-top: 90px; }
.post-faq summary { font-size: 17px; }
.post-faq details > div { font-size: 16px; line-height: 1.65; }
.post-cta { margin: 48px 0 24px; background: var(--vet); color: var(--on-vet); border-radius: var(--r-big); padding: 30px; position: relative; overflow: hidden; }
.post-cta .kicker { color: #8FD3C8; margin-bottom: 10px; }
.post-cta h2 { font-size: clamp(26px, 3.4vw, 32px); line-height: 1.15; margin-bottom: 10px; }
.post-cta h2 em { color: #F2B45A; font-style: italic; }
.post-cta p { color: var(--on-vet2); margin-bottom: 20px; font-size: 16px; }
.post-cta .actions { gap: 12px 18px; }
.post-cta .more { color: var(--on-vet); font-size: 15px; text-underline-offset: 3px; }
.post-cta .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.post-cta .tag.free { background: rgba(143,185,136,0.22); color: #CDE6C7; }
.post-cta .tag.premium { background: rgba(242,180,90,0.2); color: #F6CF92; }
.author-box { display: flex; gap: 16px; align-items: flex-start; border-top: 1px solid var(--line2); padding-top: 24px; margin-top: 8px; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; flex: none; }
.author-box p { font-size: 15px; color: var(--ink2); margin: 0; }
.author-box strong { color: var(--ink); }
.vet-note { margin-top: 20px; font-size: 14px; color: var(--ink2); background: var(--surf2); border-radius: 14px; padding: 14px 18px; }
.vet-note strong { color: var(--ink); }
.sources { margin-top: 28px; }
.sources h2 { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink3); margin-bottom: 10px; }
.sources ol { margin-left: 20px; display: grid; gap: 6px; }
.sources li { font-size: 14px; color: var(--ink2); line-height: 1.5; overflow-wrap: anywhere; }
.sources a { color: var(--teal); }

/* Related posts + cards (shared with the index) */
.related { padding: 64px 0 24px; }
.related h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 22px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 920px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; text-decoration: none; background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s ease, border-color .15s ease; }
.post-card:hover { transform: translateY(-2px); border-color: var(--line3); }
.post-card[hidden] { display: none; }
.thumb { aspect-ratio: 16 / 9; background: var(--paper2); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.thumb svg { width: 100%; height: 100%; display: block; }
.thumb .mini-phone { width: 46%; position: absolute; top: 14%; left: 27%; background: #1E1A12; padding: 5px; border-radius: 22px; box-shadow: var(--shadow-phone); }
.thumb .mini-phone img { border-radius: 18px; width: 100%; height: auto; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body .topic { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.topic.t-emergencies { color: var(--rose); } .topic.t-treatment { color: var(--amber); } .topic.t-living { color: var(--sage); } .topic.t-cats { color: var(--mauve); } .topic.t-tracking { color: var(--teal); }
.card-body h3 { font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.card-body p { color: var(--ink2); font-size: 15px; line-height: 1.5; margin-bottom: 14px; }
.card-body .card-meta { margin-top: auto; font-family: var(--mono); font-size: 12px; color: var(--ink3); letter-spacing: 0.04em; }

/* ── Blog index ────────────────────────────────────────── */
.blog-hero { padding: 64px 0 28px; position: relative; overflow: hidden; }
.blog-hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 860px; max-height: 860px; background: radial-gradient(closest-side, var(--teal-soft), transparent 70%); pointer-events: none; }
.blog-hero::after { content: ""; position: absolute; inset: auto auto -50% -20%; width: 50vw; height: 50vw; max-width: 640px; max-height: 640px; background: radial-gradient(closest-side, var(--amber-soft), transparent 70%); pointer-events: none; }
.blog-hero .wrap { position: relative; z-index: 1; }
.blog-hero h1 { font-size: clamp(40px, 6vw, 68px); max-width: 820px; margin-bottom: 18px; }
.blog-hero .lede { max-width: 640px; }
.blog-hero .hero-note { margin-top: 16px; font-size: 14px; color: var(--ink3); max-width: 640px; }
.featured { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-big); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; margin: 28px 0 8px; transition: transform .15s ease; }
.featured:hover { transform: translateY(-2px); }
.featured .f-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.featured .f-body h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; margin-bottom: 12px; }
.featured .f-body p { color: var(--ink2); margin-bottom: 18px; }
.featured .f-art { background: var(--rose-soft); display: flex; align-items: center; justify-content: center; padding: 28px; }
.featured .f-art svg { width: 100%; max-width: 420px; height: auto; }
.featured .read { font-weight: 600; color: var(--teal); }
@media (max-width: 820px) { .featured { grid-template-columns: 1fr; } .featured .f-art { order: -1; padding: 20px; } .featured .f-body { padding: 24px; } }
.blog-list { padding: 40px 0 72px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.chip { font-family: var(--sans); font-size: 14px; font-weight: 500; padding: 8px 15px; border-radius: var(--r-pill); border: 1px solid var(--line3); background: transparent; color: var(--ink2); cursor: pointer; }
.chip:hover { background: var(--surf2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 16px; }
.list-head h2 { font-size: clamp(28px, 3.6vw, 38px); }
.blog-cta { text-align: center; padding: 80px 0; }
.blog-cta h2 { margin-bottom: 14px; }
.blog-cta .lede { max-width: 560px; margin: 0 auto 26px; }
.blog-cta .actions { justify-content: center; }
.about-blog { max-width: 760px; margin: 0 auto; display: flex; gap: 20px; align-items: center; background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 24px; box-shadow: var(--shadow); }
.about-blog img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; flex: none; }
.about-blog p { color: var(--ink2); font-size: 15px; }
.about-blog strong { color: var(--ink); }
@media (max-width: 520px) { .about-blog { flex-direction: column; align-items: flex-start; } .post-cta { padding: 24px; } .quick, .takeaways { padding: 18px 18px; } .toc { padding: 2px 18px; } .steps > li { padding: 16px 16px 16px 58px; } .steps > li::before { left: 14px; } }

/* The home page pulls .shot phones down into their card; blog figures must not overlap the text after them. */
.fig.shot .phone, .fig.shot.two .phone { margin-bottom: 0; }
.fig.shot { overflow: hidden; }

/* Phones: tighter spacing */
@media (max-width: 720px) {
  .blog-hero { padding: 40px 0 20px; }
  .blog-list { padding: 24px 0 48px; }
  .blog-cta { padding: 48px 0; }
  .related { padding: 40px 0 16px; }
}
