/* Pet comparisons follow Fellfolio's shared colour and typography tokens. */
.pc-tool { margin: 2.5rem 0; }
.pc-head { max-width: 880px; }
.pc-category { display: grid; grid-template-columns: minmax(13rem, 1fr) minmax(13rem, 1fr); align-items: center; gap: .7rem 2rem; padding: 1.5rem 1.8rem; border: 1px solid var(--line); border-radius: 20px; background: var(--pl-soft); }
.pc-category label { font-size: 1.12rem; font-weight: 650; }
.pc-category p { grid-column: 1/-1; margin: 0; color: var(--muted); font-size: .9rem; }
.pc-tool select { width: 100%; min-height: 52px; padding: .85rem 2.1rem .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background-color: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.pc-tool select:disabled, .pc-swap:disabled { cursor: default; }
.pc-tool :is(select,button,a,summary):focus-visible, .pc-method summary:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
.pc-panel { margin-top: 3rem; scroll-margin-top: 110px; }
.pc-print-credit { display: none; }
.pc-panel[hidden] { display: none; }
.pc-panel-intro { max-width: 820px; margin-bottom: 1.8rem; }
.pc-panel-intro h2 { font: 500 clamp(1.9rem, 4vw, 2.8rem)/1.12 var(--serif); margin: 0 0 .7rem; }
.pc-panel-intro p { color: var(--muted); line-height: 1.7; }
.pc-selectors { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: end; gap: 1rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: 20px; background: var(--pl-soft); }
.pc-selectors label { display: block; font-size: .88rem; margin-bottom: .4rem; }
.pc-swap { min-height: 52px; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; white-space: nowrap; }
.pc-swap span { margin-right: .25em; }
.pc-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; margin: 1.2rem 0 2rem; }
.pc-cards > div { min-width: 0; }
.pc-animal-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--pl-card); }
.pc-photo { height: clamp(160px, 26vw, 290px); padding: 12px; background: var(--pl-soft); }
.pc-photo img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 9px; }
.pc-animal-copy { padding: 1.3rem 1.5rem; }
.pc-animal-copy h3 { font: 500 clamp(1.4rem, 2.8vw, 2rem)/1.15 var(--serif); margin: 0 0 .7rem; overflow-wrap: anywhere; }
.pc-animal-copy p { color: var(--muted); font-size: 1rem; line-height: 1.6; margin: .7rem 0 1rem; }
.pc-animal-copy > a { font-size: .95rem; }
.pc-credit { margin-top: 1rem; font-size: .8rem; color: var(--muted); }
.pc-credit summary { cursor: pointer; }
.pc-credit .pl-photo-credit { font-size: .76rem; line-height: 1.55; overflow-wrap: anywhere; }
.pc-rows { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.pc-row { padding: 1.3rem 1.5rem 1.6rem; border-bottom: 1px solid var(--line); }
.pc-row:last-child { border-bottom: 0; }
.pc-row:nth-child(odd) { background: var(--pl-card); }
.pc-row > h3 { font-size: 1rem; font-weight: 650; margin: 0 0 1rem; color: var(--ink); }
.pc-cells { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem; }
.pc-cells > div { min-width: 0; }
.pc-cells > div + div { border-left: 1px solid var(--line); padding-left: 2rem; }
.pc-cell-name { font: 600 .78rem/1.4 var(--sans); color: var(--muted); margin: 0 0 .45rem; }
.pc-fact > p { margin: 0; font-size: 1rem; line-height: 1.7; }
.pc-evidence { margin-top: .65rem; font-size: .8rem; }
.pc-evidence a { text-underline-offset: .2em; }
.pc-context { padding: 1.2rem 1.5rem; border-left: 3px solid var(--clay); margin-top: 1.6rem; color: var(--muted); background: var(--pl-soft); border-radius: 0 12px 12px 0; }
.pc-context p { margin: 0; font-size: .92rem; line-height: 1.65; }
.pc-method { margin: 2rem 0; border-bottom: 1px solid var(--line); padding: 0 0 1.5rem; }
.pc-method summary { cursor: pointer; font-weight: 600; }
.pc-method p { max-width: 78ch; color: var(--muted); line-height: 1.7; }
.pc-next { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2.5rem; align-items: center; padding: clamp(1.5rem,4vw,3rem); border-radius: 22px; background: var(--pl-soft); margin: 3rem 0; }
.pc-next h2 { font: 500 clamp(1.7rem,3vw,2.4rem)/1.18 var(--serif); margin: .5rem 0 1rem; }
.pc-next p { max-width: 60ch; color: var(--muted); line-height: 1.7; }
.pc-next-links { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.pc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
 .pc-selectors { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .pc-swap { grid-column: 1/-1; justify-self: end; min-height: 44px; }
 .pc-next { grid-template-columns: 1fr; gap: 1rem; }
 .pc-category { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
 .pc-category, .pc-selectors { padding: 1rem; }
 .pc-tool select { font-size: .94rem; padding-left: .6rem; }
 .pc-selectors { gap: .7rem; }
 .pc-cards { gap: .7rem; }
 .pc-photo { height: 140px; padding: 6px; }
 .pc-animal-copy { padding: .85rem; }
 .pc-animal-copy h3 { font-size: 1.35rem; }
 .pc-animal-copy p, .pc-animal-copy > a { font-size: .88rem; }
 .pc-row { padding: 1.15rem .9rem; }
 .pc-cells { gap: .85rem; }
 .pc-cells > div + div { padding-left: .85rem; }
 .pc-fact > p { font-size: .9rem; line-height: 1.65; hyphens: auto; overflow-wrap: break-word; }
 .pc-cell-name { font-size: .73rem; overflow-wrap: anywhere; }
}
@media print {
 .pc-category, .pc-selectors, .pc-next, .pc-method, .pc-credit, .pc-tool noscript { display: none !important; }
 .pc-print-credit { display: block; }
 .pc-print-credit p { font-size: 7pt; }
 .pc-tool { margin: 0; }
 .pc-panel { margin-top: 1rem; }
 .pc-panel[hidden] { display: none !important; }
 .pc-photo { height: 135px; }
 .pc-cards { gap: 1rem; margin-bottom: 1rem; }
 .pc-animal-copy { padding: .6rem; }
 .pc-cards, .pc-row { break-inside: avoid; }
 .pc-row { padding: .6rem; }
 .pc-rows { overflow: visible; }
 .pc-fact > p, .pc-context p { font-size: 10pt; line-height: 1.4; }
 .pc-evidence { font-size: 8pt; }
}
