/* TummyCats components. Tokens come from theme.json (--wp--preset--*, --wp--custom--*). */

:root {
  --tc-radius: var(--wp--custom--radius);
  --tc-gutter: var(--wp--custom--gutter);
  --tc-tap: var(--wp--custom--tap);
  --tc-control: var(--wp--custom--control);
  --bg: var(--wp--preset--color--bg);
  --surface: var(--wp--preset--color--surface);
  --surface-2: var(--wp--preset--color--surface-2);
  --sky: var(--wp--preset--color--sky);
  --line: var(--wp--preset--color--line);
  --line-strong: var(--wp--preset--color--line-strong);
  --text: var(--wp--preset--color--text);
  --muted: var(--wp--preset--color--muted);
  --coral: var(--wp--preset--color--coral);
  --mint: var(--wp--preset--color--mint);
  --moon: var(--wp--preset--color--moon);
  --safe: var(--wp--preset--color--safe);
  --caution: var(--wp--preset--color--caution);
  --toxic: var(--wp--preset--color--toxic);
  --unknown: var(--wp--preset--color--unknown);
  --casual: "CASL" 1;
  --linear: "CASL" 0;
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body { font-variation-settings: var(--linear); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-variation-settings: var(--casual); letter-spacing: -0.02em; text-wrap: balance; }
h1 { letter-spacing: -0.03em; }
p, li { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
.band :where(a, button, summary):focus-visible, .pin:focus-visible, .fact--big a:focus-visible { outline-color: var(--bg); }
.screen-reader-text, .visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 12px 16px; border-radius: 8px; background: var(--text); color: var(--bg); font-weight: 800; }
.skip-link:focus { left: 8px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.wrap { max-width: 1600px; margin-inline: auto; padding-inline: var(--tc-gutter); }
.measure { max-width: 46rem; }
.lede { font-size: var(--wp--preset--font-size--lede); color: var(--muted); max-width: 44ch; }
.small { font-size: var(--wp--preset--font-size--small); }
.muted { color: var(--muted); }
.section { padding-block: var(--wp--preset--spacing--80); }
.home .section { padding-block: 0 var(--wp--preset--spacing--80); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--wp--preset--spacing--60) clamp(24px, 5vw, 72px); align-items: start; }
.split h2 { margin-top: 0; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Verdict icons next to entry names: shape, colour and (for screen readers) the word. */
.dot { flex: none; width: 18px; height: 18px; stroke-width: 2.5; }
.dot--safe { color: var(--safe); }
.dot--caution { color: var(--caution); }
.dot--toxic { color: var(--toxic); }
.dot--unknown { color: var(--unknown); }

/* Header */
.pin { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; padding: 6px var(--tc-gutter); background: var(--coral); color: var(--bg); font-weight: 800; text-align: center; text-decoration: none; }
.pin .icon { width: 20px; height: 20px; }
.pin:hover span { text-decoration: underline; }
.site-header { position: relative; }
.site-header__inner { display: flex; align-items: center; gap: 8px 16px; min-height: 72px; }
.brand { --brand-bg: var(--bg); --brand-nose: var(--coral); display: inline-flex; align-items: center; gap: 10px; min-height: var(--tc-tap); margin-right: auto; color: var(--text); font: 900 1.5rem/1 var(--wp--preset--font-family--body); font-variation-settings: var(--casual); letter-spacing: -0.01em; text-decoration: none; }
.brand__mark { width: 46px; height: 35px; flex: none; }
.nav-desktop ul, .nav-mobile ul { margin: 0; padding: 0; list-style: none; }
.nav-desktop ul { display: flex; gap: 4px; }
.nav-desktop a { display: inline-flex; align-items: center; min-height: var(--tc-tap); padding: 0 14px; border-radius: 999px; color: var(--muted); font-weight: 700; text-decoration: none; }
.nav-desktop a:hover { color: var(--text); background: var(--surface); }
.nav-mobile { display: none; }
.nav-mobile summary { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tc-tap); padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 700; cursor: pointer; list-style: none; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--surface); }
.nav-mobile__panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; padding: 8px var(--tc-gutter) 16px; background: var(--surface); border-block: 1px solid var(--line); }
.nav-mobile__panel a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 1.125rem; font-weight: 700; text-decoration: none; }
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
}
@media (max-width: 400px) {
  .brand { gap: 8px; font-size: 1.25rem; }
  .brand__mark { width: 38px; height: 29px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--tc-control); padding: 0 24px; border: 2px solid transparent; border-radius: 12px; font: 800 1.0625rem/1.2 var(--wp--preset--font-family--body); text-decoration: none; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; }
.btn:hover { text-decoration: none; }
.btn .icon { width: 22px; height: 22px; }
.btn--primary { background: var(--coral); color: var(--bg); }
.btn--primary:hover { background: #FFA58F; }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--text); }
.btn--call { background: var(--toxic); color: var(--bg); font-size: 1.125rem; font-weight: 900; }
.btn--call:hover { background: #FFA39B; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.text-link { display: inline-flex; align-items: center; min-height: var(--tc-tap); font-weight: 800; }

/* Search console */
.search { position: relative; }
.search__form { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 10px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; }
.search__form:focus-within { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(143, 214, 189, 0.18); }
.search__icon { width: 24px; height: 24px; margin-left: 10px; color: var(--muted); }
.search__input { min-width: 0; min-height: 60px; padding: 0 10px; border: 0; background: transparent; color: var(--text); font: 600 1.25rem var(--wp--preset--font-family--body); }
.search__input::placeholder { color: #A99CB2; opacity: 1; font-weight: 400; }
.search__input:focus { outline: none; }
.search__input::-webkit-search-cancel-button { cursor: pointer; }
.search__submit { min-height: 56px; padding: 0 30px; border: 0; border-radius: 12px; background: var(--coral); color: var(--bg); font: 900 1.125rem var(--wp--preset--font-family--body); cursor: pointer; }
.search__submit:hover { background: #FFA58F; }
.search--error .search__form { border-color: var(--toxic); }
.search__error[hidden] { display: none; }
.search__error { display: flex; gap: 8px; align-items: center; margin: 10px 0 0; color: var(--toxic); font-weight: 700; }
.search__fallback { margin: 10px 0 0; font-weight: 700; }
@media (max-width: 520px) {
  .search__form { grid-template-columns: auto minmax(0, 1fr); }
  .search__submit { grid-column: 1 / -1; min-height: 52px; }
  .search__input { min-height: 52px; font-size: 1.0625rem; }
}

.results { margin: 8px 0 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--tc-radius); }
.results__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; cursor: pointer; }
.results__item:hover, .results__item[aria-selected="true"] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--mint); }
.results__name { display: block; font-weight: 700; }
.results__meta { display: block; font-size: var(--wp--preset--font-size--small); color: var(--muted); }
.results__label { margin: 4px 12px 6px; font-size: var(--wp--preset--font-size--small); color: var(--muted); }
[data-search-results] .not-checked { margin-top: 8px; }

.not-checked { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--tc-radius); }
.not-checked .icon { width: 28px; height: 28px; color: var(--unknown); grid-row: span 2; }
.not-checked p { margin: 0; }
.not-checked__title { font-weight: 800; }
.not-checked__actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; }
.not-checked__actions a { display: inline-flex; align-items: center; min-height: var(--tc-tap); font-weight: 700; }
.is-urgent { color: var(--toxic); }

/* Example chips and entry pills */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.chips__label { margin-right: 4px; color: var(--muted); font-weight: 600; }
.chips a, .room li a { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tc-tap); padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; text-decoration: none; }
.chips a:hover { border-color: var(--mint); }
.note { margin: 14px 0 0; color: var(--muted); font-size: 0.95rem; }

.urgent-link { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tc-tap); color: var(--toxic); font-weight: 800; text-decoration: none; }
.urgent-link .icon { width: 22px; height: 22px; }

/* Home hero */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(28px, 5vw, 72px) clamp(48px, 6vw, 96px); }
.hero__title { margin: 0 0 22px; font-size: var(--wp--preset--font-size--display); font-weight: 1000; line-height: 0.86; letter-spacing: -0.035em; }
.hero__tail { display: inline-block; width: 0.46em; height: 0.86em; margin-left: 0.02em; vertical-align: -0.04em; color: var(--coral); }
.hero .lede { margin: 0 0 28px; }
.scene { display: block; width: 100%; height: auto; }
/* The scene cat wakes up when you point at it (or tap it): eyes open, a hop, a tail swish, whiskers twitch. */
.scene-cat { cursor: default; }
.scene-cat__eyes { opacity: 0; transition: opacity 120ms ease; }
.scene-cat__sleep { transition: opacity 120ms ease; }
.scene-cat__tail, .scene-cat__body, .scene-cat__whiskers, .scene-cat__pupil { transform-box: view-box; }
.scene-cat__tail { transform-origin: 296px 420px; }
.scene-cat__body { transform-origin: 263px 424px; }
.scene-cat__whiskers { transform-origin: 263px 322px; }
.scene-cat__pupil { transform-box: fill-box; transform-origin: center; transition: transform 250ms ease; }
.scene-cat:is(:hover, :active) .scene-cat__eyes { opacity: 1; }
.scene-cat:is(:hover, :active) .scene-cat__sleep { opacity: 0; }
.scene-cat:is(:hover, :active) .scene-cat__pupil { transform: scaleX(2.4); }
@media (prefers-reduced-motion: no-preference) {
  .scene-cat:is(:hover, :active) .scene-cat__body { animation: cat-hop 700ms cubic-bezier(0.3, 0.7, 0.4, 1); }
  .scene-cat:is(:hover, :active) .scene-cat__tail { animation: cat-swish 1200ms ease-in-out 2; }
  .scene-cat:is(:hover, :active) .scene-cat__whiskers { animation: cat-whisker 180ms ease-in-out 4 alternate; }
}
@keyframes cat-hop { 0% { transform: translateY(0) scale(1, 1); } 20% { transform: translateY(2px) scale(1.04, 0.95); } 45% { transform: translateY(-14px) scale(0.97, 1.04); } 70% { transform: translateY(0) scale(1.03, 0.97); } 100% { transform: translateY(0) scale(1, 1); } }
@keyframes cat-swish { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-16deg); } 55% { transform: rotate(10deg); } 80% { transform: rotate(-6deg); } }
@keyframes cat-whisker { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }

/* Section heads */
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; margin: 0 0 22px; }
.section-title h2 { margin: 0; }
.section-title p { margin: 0; color: var(--muted); max-width: 42ch; }

/* Rooms: a 12-column bento */
.rooms { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.room { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 6px 20px; padding: clamp(20px, 2.4vw, 32px); border-radius: var(--tc-radius); }
.room--kitchen { grid-column: span 7; background: var(--surface); }
.room--sill { grid-column: span 5; background: var(--sky); }
.room--meds { grid-column: span 5; background: var(--surface-2); }
.room--sink { grid-column: span 7; background: var(--surface); }
.room h3 { margin: 0; font-size: var(--wp--preset--font-size--large); }
.room > p { grid-column: 1; margin: 0; color: var(--muted); }
.room__icon { grid-column: 2; grid-row: 1 / span 2; width: clamp(56px, 6vw, 96px); height: clamp(56px, 6vw, 96px); color: var(--coral); stroke-width: 1.4; }
.room--sill .room__icon { color: var(--mint); }
.room ul, .room .room__empty, .room__more { grid-column: 1 / -1; }
.room ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.room li a { background: rgba(23, 18, 29, 0.55); }
.room li a:hover { border-color: var(--text); }
.room__more { justify-self: start; display: inline-flex; align-items: center; min-height: var(--tc-tap); margin-top: 6px; font-weight: 800; }
.room__empty { margin: 14px 0 0; color: var(--muted); }
.room__empty a { color: var(--text); font-weight: 700; }

/* Worth knowing */
.facts { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; }
.fact { padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: var(--tc-radius); }
.fact p { margin: 0 0 10px; font: 800 1.375rem/1.3 var(--wp--preset--font-family--body); font-variation-settings: var(--casual); }
.fact small { display: block; font-size: 0.875rem; color: var(--muted); }
.fact small a { color: var(--text); }
.fact--big { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: space-between; gap: 16px 24px; min-height: 320px; border: 0; background: var(--moon); color: var(--bg); }
.fact--big p { grid-column: 1; margin: 0; font-size: clamp(1.75rem, 1rem + 2.6vw, 3rem); font-weight: 900; line-height: 1.12; letter-spacing: -0.02em; }
.fact--big small { grid-column: 1; color: var(--bg); }
.fact--big small a { color: var(--bg); font-weight: 800; }
.fact__art { grid-column: 2; grid-row: 1 / span 2; align-self: end; width: clamp(96px, 13vw, 190px); aspect-ratio: 200 / 260; height: auto; color: var(--bg); --art-fill: var(--moon); }
.fact-stack { display: grid; gap: 16px; }

/* Verdict key */
.key { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.key li { padding: 24px 24px 24px 0; }
.key li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.key b { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 900; }
.key .dot { width: 22px; height: 22px; }
.key p { margin: 8px 0 0; color: var(--muted); }

/* Coral help band */
.band { background: var(--coral); color: var(--bg); }
.band__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; padding-block: clamp(32px, 5vw, 64px); }
.band h2 { margin: 0; color: var(--bg); }
.band p { margin: 10px 0 0; font-weight: 600; max-width: 46ch; }
.band .text-link { color: var(--bg); }
.band .call-box { background: var(--bg); color: var(--text); }
.band .call-box p { color: var(--muted); font-weight: 400; max-width: none; }
.band .call-box .call-box__name { color: var(--text); font-weight: 800; }

/* Verdicts */
.badge { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px 4px 9px; border: 1px solid currentColor; border-radius: 999px; font-weight: 800; font-size: 0.95rem; line-height: 1.2; white-space: nowrap; }
.badge .icon { width: 18px; height: 18px; }
.badge--safe { color: var(--safe); }
.badge--caution { color: var(--caution); }
.badge--toxic { color: var(--toxic); }
.badge--unknown { color: var(--unknown); }

.verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 16px; padding: 18px 20px; border: 2px solid currentColor; border-radius: var(--tc-radius); background: var(--surface); }
.verdict .icon { width: 40px; height: 40px; grid-row: span 2; }
.verdict__word { margin: 0; font: 900 1.5rem/1.1 var(--wp--preset--font-family--body); letter-spacing: 0; }
.verdict__line { margin: 0; color: var(--text); }
.verdict--safe { color: var(--safe); }
.verdict--caution { color: var(--caution); }
.verdict--toxic { color: var(--toxic); }
.verdict--unknown { color: var(--unknown); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.crumbs .icon { width: 20px; height: 20px; color: var(--mint); }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--tc-tap); color: var(--text); }
.crumbs span[aria-hidden] { color: var(--line-strong); }
.category { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.category .icon { width: 20px; height: 20px; color: var(--mint); }

/* Page heads */
.page-head { margin-bottom: var(--wp--preset--spacing--60); max-width: 52rem; }
.page-head h1 { margin: 0 0 16px; }
.page-head .lede { margin: 0; }

/* Text pages: reading column and side panel */
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: var(--wp--preset--spacing--60) clamp(32px, 6vw, 112px); align-items: start; }
.page-layout__main { max-width: 46rem; }
.page-layout__main h1 { margin-top: 0; }
.page-layout__main h2 { margin: 40px 0 10px; font-size: var(--wp--preset--font-size--large); scroll-margin-top: 24px; }
.page-layout__main p, .page-layout__main li { max-width: 68ch; }
.page-aside { display: grid; gap: 16px; }
.page-aside__title { margin: 0 0 8px; font-weight: 900; font-size: 1.0625rem; font-variation-settings: var(--casual); }
.page-aside__contents ol { margin: 0; padding: 0; list-style: none; }
.page-aside__contents a { display: flex; align-items: center; min-height: 40px; padding: 4px 0; color: var(--muted); font-weight: 600; text-decoration: none; }
.page-aside__contents a:hover { color: var(--text); text-decoration: underline; }
.page-aside__help { padding: 20px; border: 2px solid var(--toxic); border-radius: var(--tc-radius); background: var(--surface); }
.page-aside__help p:not(.page-aside__title) { margin: 0 0 14px; color: var(--muted); }
.page-aside__browse { padding: 20px; border-radius: var(--tc-radius); background: var(--sky); }
.page-aside__browse ul { margin: 0; padding: 0; list-style: none; }
.page-aside__browse a { display: flex; align-items: center; gap: 10px; min-height: var(--tc-tap); font-weight: 700; text-decoration: none; }
.page-aside__browse a:hover { text-decoration: underline; }
.page-aside__browse .icon { color: var(--mint); }
@media (max-width: 1023px) {
  .page-layout { grid-template-columns: minmax(0, 1fr); }
  .page-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
  .page-aside__contents { display: none; }
}

/* Category pages */
.hub > h1 { margin: 0 0 16px; max-width: 18ch; }
.hub__content > .lede { margin: 0 0 var(--wp--preset--spacing--60); max-width: 60ch; }
.hub .search { max-width: 52rem; }
.hub-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 32px; align-items: start; margin: var(--wp--preset--spacing--60) 0 var(--wp--preset--spacing--50); padding: 20px 0; border-block: 1px solid var(--line); }
.hub-tally__total { margin: 0 0 10px; font-weight: 800; }
.hub-tally ul, .hub-jump ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.hub-tally li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.hub-tally strong { color: var(--text); }
.hub-jump ul { gap: 8px; }
.hub-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tc-tap); padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; text-decoration: none; }
.hub-jump a:hover { border-color: var(--mint); }
.hub-jump span { color: var(--muted); font-weight: 400; }
.hub-group { margin-top: var(--wp--preset--spacing--60); scroll-margin-top: 24px; }
.hub-group h2 { margin: 0 0 12px; font-size: var(--wp--preset--font-size--large); }
.results--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); column-gap: 32px; }
@media (max-width: 860px) { .hub-top { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1024px) {
  .hub { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
  .hub > h1 { grid-column: 1; }
  .hub__content { display: contents; }
  .hub__content > * { grid-column: 1 / -1; }
  .hub__content > .lede, .hub__content > .search { grid-column: 1; }
  .hub__content > .hub-top { grid-column: 2; grid-row: 1 / span 3; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--tc-radius); background: var(--surface); align-self: end; }
}

/* Entry */
.entry { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wp--preset--spacing--60); }
.entry-head h1 { margin: 12px 0 16px; }
.entry-head .verdict { margin-top: 8px; }
.aliases { margin: 0 0 20px; color: var(--muted); }
.answer { margin: 20px 0 0; max-width: 40ch; font-size: var(--wp--preset--font-size--lede); line-height: 1.5; }
.entry-body { display: grid; gap: var(--wp--preset--spacing--60); min-width: 0; }
.entry-section h2 { margin: 0 0 12px; font-size: var(--wp--preset--font-size--large); }
.entry-aside { display: grid; gap: 20px; align-content: start; min-width: 0; }
.entry--safe .entry-aside, .entry--caution .entry-aside { order: 3; }
.entry-foot { display: grid; gap: var(--wp--preset--spacing--60); min-width: 0; order: 4; }
.entry-foot .sources { columns: 2 24rem; column-gap: 48px; }
.entry-foot .sources li { break-inside: avoid; }
.entry-foot .related { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); column-gap: 32px; }
.entry-foot .reviewed { margin: 0; }
@media (min-width: 1024px) {
  .entry { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
  .entry-head, .entry-body { grid-column: 1; }
  .entry-foot { grid-column: 1 / -1; padding-top: var(--wp--preset--spacing--50); border-top: 1px solid var(--line); }
  .entry-aside { grid-column: 2; grid-row: 1 / span 2; }
  .entry--safe .entry-aside, .entry--caution .entry-aside { order: 0; }
}

.action-box { padding: 24px; background: var(--surface); border: 2px solid var(--toxic); border-radius: var(--tc-radius); }
.action-box__title { margin: 0 0 12px; font-size: 1.75rem; }
.action-box ol { margin: 0 0 20px; padding-left: 1.4em; }
.action-box li + li { margin-top: 6px; }
.action-box__when { margin: 0 0 16px; padding: 0; list-style: none; }
.action-box__helpline { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.action-box__helpline p { margin: 0; }
.action-box .small a { display: inline-flex; align-items: center; min-height: var(--tc-tap); }
.action-box .call-box { padding: 0; background: none; }

.help-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--tc-radius); }
.help-card__title { margin: 0 0 6px; font-weight: 800; }
.help-card p { margin: 0 0 8px; }

.checklist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); columns: 2 18rem; column-gap: 32px; }
.checklist li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); }
.exposure { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.exposure li { padding: 14px 0; border-top: 1px solid var(--line); }
.checklist li strong, .exposure li strong { display: block; }
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 1px solid var(--line); }

.disagree { padding: 16px 20px; border: 1px solid var(--caution); border-radius: var(--tc-radius); background: var(--surface); }
.disagree__title { margin: 0 0 6px; font-weight: 800; color: var(--caution); }
.disagree p:last-child { margin: 0; }

.sources { margin: 0; padding: 0; list-style: none; }
.sources li { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.sources a { font-weight: 700; }
.sources__meta { font-size: var(--wp--preset--font-size--small); color: var(--muted); }
.sources blockquote { margin: 4px 0 0; padding-left: 14px; font-size: 0.975rem; color: var(--muted); }

.src { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; margin-left: 4px; padding: 0 9px 0 7px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--mint); font: 700 0.8125rem/1 var(--wp--preset--font-family--body); vertical-align: 0.1em; white-space: nowrap; cursor: pointer; }
.src .icon { width: 14px; height: 14px; }
.src:hover { border-color: var(--mint); background: rgba(143, 214, 189, 0.08); }
.src-pops { display: contents; }
.src-pop { width: min(34rem, calc(100vw - 32px)); max-height: min(80vh, 40rem); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--line-strong); border-radius: var(--tc-radius); background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55); }
.src-pop::backdrop { background: rgba(10, 7, 13, 0.6); }
.src-pop__head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 14px 12px 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
.src-pop__title { margin: 0; font-weight: 900; font-size: 1.125rem; font-variation-settings: var(--casual); }
.src-pop__close { display: inline-grid; place-items: center; width: var(--tc-tap); height: var(--tc-tap); border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; }
.src-pop__close:hover { border-color: var(--text); }
.src-pop ul { margin: 0; padding: 6px 22px 18px; list-style: none; }
.src-pop li { padding: 14px 0; }
.src-pop li + li { border-top: 1px solid var(--line); }
.src-pop__pub { margin: 0 0 8px; font-weight: 800; }
.src-pop blockquote { margin: 0 0 10px; padding: 0 0 0 14px; border: 0; color: var(--text); font-size: 1rem; line-height: 1.5; quotes: "\201C" "\201D"; }
.src-pop blockquote::before { content: open-quote; margin-left: -0.45em; color: var(--mint); }
.src-pop blockquote::after { content: close-quote; color: var(--mint); }
.src-pop__link { margin: 0; }
.src-pop__link a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tc-tap); color: var(--mint); font-weight: 700; }
.src-pop__link .icon { width: 16px; height: 16px; }
.src-pop__date { margin: 0; color: var(--muted); font-size: var(--wp--preset--font-size--small); }

.reviewed { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 14px 0; border-block: 1px solid var(--line); font-size: 0.975rem; color: var(--muted); }
.reviewed strong { color: var(--text); }

.related { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.related a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 700; text-decoration: none; }
.related a:hover .related__name { text-decoration: underline; }

.worried { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 16px 20px; border: 1px solid var(--toxic); border-radius: var(--tc-radius); background: var(--surface); }
.worried .icon { width: 26px; height: 26px; color: var(--toxic); grid-row: span 2; }
.worried p { margin: 0; }
.worried a { display: inline-flex; align-items: center; min-height: var(--tc-tap); font-weight: 800; color: var(--toxic); }

/* Affiliate: only at the bottom of safe pages */
.affiliate { padding: 18px 20px; border: 1px dashed var(--line-strong); border-radius: var(--tc-radius); }
.affiliate__label { margin: 0 0 6px; font-size: var(--wp--preset--font-size--small); font-weight: 700; color: var(--muted); }
.affiliate p { margin: 0; }

/* Helplines and call boxes */
.call-box { display: grid; gap: 14px; padding: 20px; background: var(--surface); color: var(--text); border-radius: var(--tc-radius); }
.call-box__name { margin: 0; font-weight: 800; }
.call-box__note { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--muted); }
.call-box__note a { color: inherit; }
.helpline__panels { display: grid; gap: 18px; }
.helpline__region { display: grid; gap: 12px; }
.helpline__region-name { margin: 0; font-weight: 800; }
.helpline.is-ready .helpline__region { display: none; }
.helpline.is-ready .helpline__region.is-active { display: grid; }
.helpline.is-ready .helpline__region-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.helpline__line { display: grid; gap: 8px; }
.helpline__line + .helpline__line { padding-top: 12px; border-top: 1px solid var(--line); }
.helpline__fallback { margin: 0; font-weight: 700; }

.call-bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px var(--tc-gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 2px solid var(--toxic); }
.call-bar__text { flex: 1; min-width: 0; margin: 0; font-size: 0.95rem; line-height: 1.3; }
.call-bar .btn { min-height: 48px; padding: 0 18px; font-size: 1rem; }
@media (min-width: 861px) { .call-bar--mobile { display: none; } }

.steps-list { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps-list li { counter-increment: step; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.steps-list li::before { content: counter(step); font: 900 1.75rem/1 var(--wp--preset--font-family--body); color: var(--coral); }
.steps-list strong { display: block; }

/* Emergency page */
.emergency-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wp--preset--spacing--60); }
.emergency-help .call-box { border: 2px solid var(--toxic); }
.emergency-content { display: grid; gap: var(--wp--preset--spacing--70); }
.emergency-content .page-head { margin-bottom: 0; }
.emergency-content h2 { margin: 0 0 12px; font-size: var(--wp--preset--font-size--x-large); }
.emergency-after { margin: 16px 0 0; font-weight: 700; }
@media (min-width: 1024px) {
  .emergency-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
  .emergency-help { grid-column: 2; grid-row: 1; position: sticky; top: 24px; }
  .emergency-content { grid-column: 1; grid-row: 1; }
}

/* Checker */
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; margin: 20px 0 8px; padding: 16px 0; border-block: 1px solid var(--line); }
.filters .field { min-width: 180px; }
.filters .field + .field { margin-top: 0; }
.filters .btn { min-height: 48px; }
.results-count { margin: 20px 0 8px; font-weight: 800; }
.results--page { padding: 0; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; background: none; }
.results--page > li { border-bottom: 1px solid var(--line); }
.results--page .results__item { border-radius: 0; padding-inline: 4px; }
.az-jump { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 16px; }
.az-jump a { display: inline-grid; place-items: center; min-width: var(--tc-tap); min-height: var(--tc-tap); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 800; text-decoration: none; }
.az-jump a:hover { border-color: var(--mint); }
.az-group { margin-top: 28px; }
.az-group h2 { margin: 0 0 8px; font-size: var(--wp--preset--font-size--large); }
.checker .search { max-width: 52rem; }
@media (min-width: 1024px) {
  .checker { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 80px); align-items: end; }
  .checker > * { grid-column: 1 / -1; }
  .checker > .page-head { grid-column: 1; margin-bottom: 24px; }
  .checker > .search { grid-column: 1; grid-row: 2; }
  .checker > .filters { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--tc-radius); background: var(--surface); }
  .checker > .filters .field { flex: 1; }
}
.checker .az-group .results--page { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); column-gap: 32px; }

/* Forms */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 18px; }
.field__label { font-weight: 700; }
.field__hint { font-size: var(--wp--preset--font-size--small); color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); font: 400 1.0625rem/1.4 var(--wp--preset--font-family--body); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text); }
.field--error input, .field--error select, .field--error textarea { border: 2px solid var(--toxic); }
.field__error { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--toxic); font-weight: 700; font-size: 0.95rem; }
.field__error .icon { width: 18px; height: 18px; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--coral); }
.contact-form { max-width: 40rem; margin-top: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done, .form-errors { margin: 20px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--tc-radius); background: var(--surface); }
.form-done__title { margin: 0 0 6px; font-weight: 800; color: var(--safe); }
.form-done p:last-child, .form-errors p { margin: 0; }
.form-errors { border-color: var(--toxic); color: var(--toxic); }
.legal { max-width: 46rem; }
.legal h2 { margin: 32px 0 8px; font-size: var(--wp--preset--font-size--large); }
.measure a, .legal a { color: var(--mint); }

/* Footer */
/* Footer: night-blue band whose top edge is the skyline from the home-page window scene. */
.site-footer { position: relative; margin-top: 72px; background: var(--wp--preset--color--night); color: var(--muted); }
.site-footer__sky { position: absolute; bottom: 100%; left: 0; display: block; width: 100%; height: 72px; fill: var(--wp--preset--color--night); }
.site-footer__windows { fill: var(--moon); opacity: 0.8; }
.site-footer .brand { --brand-bg: var(--wp--preset--color--night); }
.site-footer__help { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; padding-block: 36px; border-bottom: 1px solid var(--wp--preset--color--night-line); }
.site-footer__help .site-footer__title { margin: 0; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-weight: 900; color: var(--text); font-variation-settings: var(--casual); letter-spacing: -0.02em; }
.site-footer__help p { margin: 6px 0 0; max-width: 52ch; }
.site-footer__help .btn { white-space: nowrap; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 32px; padding-block: 40px; }
.site-footer__about { margin: 12px 0 0; max-width: 34ch; }
.site-footer nav h2 { margin: 0 0 8px; font-size: 0.95rem; font-weight: 800; letter-spacing: 0; color: var(--text); font-variation-settings: var(--linear); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li a { display: inline-flex; align-items: center; min-height: var(--tc-tap); text-decoration: none; }
.site-footer li a:hover { color: var(--text); text-decoration: underline; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 12px 32px; padding-block: 20px 28px; border-top: 1px solid var(--wp--preset--color--night-line); font-size: var(--wp--preset--font-size--small); }
.site-footer__legal p { margin: 0; max-width: 70ch; }
.site-footer__meta { display: grid; gap: 4px; justify-items: end; text-align: right; }
.site-footer__meta p { margin: 0; }
.site-footer__count { color: var(--moon); font-weight: 700; }
.site-footer__credit a { display: inline-flex; align-items: center; min-height: 24px; font-weight: 700; }
@media (max-width: 640px) { .site-footer__meta { justify-items: start; text-align: left; } }

/* Tablet */
@media (max-width: 1023px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); }
  .rooms { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .room--kitchen, .room--sill, .room--meds, .room--sink { grid-column: span 1; }
  .key { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .key li:nth-child(3) { padding-left: 0; border-left: 0; }
  .key li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__help { grid-template-columns: minmax(0, 1fr); }
  .site-footer__help .btn { justify-self: start; }
}
@media (max-width: 860px) {
  .hero, .facts, .band__inner { grid-template-columns: minmax(0, 1fr); }
  .scene { order: -1; max-width: 360px; margin: 0 auto; }
  .section-title { flex-direction: column; align-items: start; }
}
/* Phone */
@media (max-width: 640px) {
  .hero { gap: 16px; padding-top: 12px; }
  .scene { max-width: 210px; }
  .rooms { grid-template-columns: minmax(0, 1fr); }
  .key { grid-template-columns: minmax(0, 1fr); }
  .key li, .key li + li { padding: 18px 0; border-left: 0; }
  .key li + li { border-top: 1px solid var(--line); }
  .fact--big { min-height: 0; }
  .pin .wide-only { display: none; }
  .room__icon { width: 48px; height: 48px; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__help .btn { justify-self: stretch; }
}

/* Links to other websites (sources, helpline pages) get their own colour, so it's clear when a link leaves TummyCats. */
a:is([href^="http://"], [href^="https://"]):not([href^="https://tummycats.com"], [href^="http://localhost"]) { color: var(--wp--preset--color--link-out); text-decoration-color: currentColor; }
.fact--big a:is([href^="http://"], [href^="https://"]):not([href^="https://tummycats.com"], [href^="http://localhost"]) { color: var(--wp--preset--color--link-out-on-light); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

@media print {
  :root { color-scheme: light; }
  body, html { background: #fff !important; color: #000 !important; }
  .print-button, .search, .skip-link, .helpline__choose, .pin, .call-bar, .site-footer__grid, .affiliate, .nav-mobile, .nav-desktop, .site-footer__sky, .site-footer__help { display: none !important; }
  .helpline .helpline__region { display: grid !important; }
  .call-box, .action-box, .verdict, .help-card { background: none !important; color: #000 !important; }
  .emergency-grid, .entry { display: block; }
  a[href^="tel:"]::after { content: " (" attr(href) ")"; }
}
