/* Finder styles inherit the Fellfolio palette in both color schemes. */
.pf-layout [hidden], .pf-layout [hidden] * { display: none !important; }
.pf-head { max-width: 760px; margin-inline: auto; padding: .8rem 0 1.3rem; }
.pf-head h1 { max-width: none; margin: .3rem 0 .7rem; font-size: clamp(2.7rem, 4vw, 3.5rem); letter-spacing: -.035em; line-height: 1.08; }
.pf-head > p { max-width: 68ch; margin: .55rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.pf-head .pf-scope { font-size: .83rem; }
.pf-layout { display: block; }
.pf-form, .pf-results { border: 1px solid var(--line); border-radius: 22px; background: var(--pl-card); padding: clamp(1.1rem, 2.7vw, 2rem); }
.pf-form { max-width: 760px; margin-inline: auto; }
.pf-progress { margin: 0 0 1rem; color: var(--muted); font-size: .85rem; font-weight: 700; }
.pf-questions { display: block; }
.pf-question { min-width: 0; border: 0; margin: 0; padding: 0; }
.pf-question legend { font-size: clamp(1.35rem, 2.5vw, 1.65rem); font-weight: 700; line-height: 1.35; padding: 0; margin-bottom: .85rem; scroll-margin-top: 7rem; }
.pf-question legend:focus { outline: none; }
.pf-question-help { color: var(--muted); font-size: .86rem; line-height: 1.5; margin: -.35rem 0 .5rem; }
.pf-answers { display: grid; grid-template-columns: 1fr; gap: .45rem; }
.pf-form[data-pet-finder="all"] .pf-question:first-child .pf-answers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pf-answers label { display: flex; gap: .7rem; align-items: center; min-height: 58px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); padding: .8rem .9rem; cursor: pointer; font-size: 1rem; line-height: 1.35; }
.pf-answers label:has(input:checked) { background: var(--pl-soft); border-color: var(--green); }
.pf-answers input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--green); }
.pf-answers input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 2px; }
.pf-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .7rem; margin-top: 1.4rem; }
.pf-actions button { min-height: 46px; font: inherit; font-weight: 700; }
.pf-actions [data-pf-back] { border: 0; background: transparent; color: var(--ink); padding: .6rem .3rem; cursor: pointer; }
.pf-actions .button { min-width: 190px; border: 1px solid transparent; }
.pf-actions button:disabled { opacity: .55; cursor: default; }
.pf-actions button:focus-visible, .pf-summary button:focus-visible, .pf-result-head button:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
.pf-summary h2 { margin: 0 0 1.1rem; font-size: clamp(1.5rem, 3vw, 1.8rem); letter-spacing: -.02em; line-height: 1.25; scroll-margin-top: 7rem; }
.pf-summary dl { margin: 0; }
.pf-summary-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; border-top: 1px solid var(--line); padding: .7rem 0; }
.pf-summary-row dt { font-size: .83rem; color: var(--muted); }
.pf-summary-row dd { grid-column: 1; margin: 0; font-weight: 700; }
.pf-summary-row .pf-summary-edit { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.pf-summary-row button { border: 0; background: transparent; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pf-results { margin-top: 1.5rem; }
.pf-results h2 { margin: 0 0 .8rem; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.02em; line-height: 1.2; }
.pf-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.pf-result-head button { border: 0; background: transparent; color: var(--ink); padding: .35rem 0; font: inherit; font-size: .88rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.pf-results [data-pf-status]:empty { display: none; }
.pf-results [data-pf-messages] p, .pf-results [data-pf-messages-after] p { background: var(--pl-soft); border-left: 3px solid var(--clay); padding: .8rem 1rem; line-height: 1.55; }
.pf-results [data-pf-messages-after]:not(:empty) { margin-top: 1rem; }
.pf-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pf-card { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.pf-card-photo { aspect-ratio: 16 / 10; background: var(--pl-soft); }
.pf-card-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pf-card-photo img[data-photo-framing="whole"] { object-fit: contain; }
.pf-card-content { padding: 1rem; }
.pf-card h3 { font: 1.35rem/1.22 var(--serif); letter-spacing: -.02em; margin: 0 0 .55rem; }
.pf-card p { margin: .35rem 0 .75rem; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.pf-card-links { display: flex; flex-wrap: wrap; gap: .45rem .85rem; font-size: .83rem; font-weight: 700; }
.pf-card-links a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 4px; }
.pf-prep-note { border-top: 1px solid var(--line); padding-top: .65rem; }
.pf-credit { border-top: 1px solid var(--line); margin-top: .85rem; padding-top: .55rem; font-size: .75rem; }
.pf-credit summary { cursor: pointer; color: var(--muted); }
.pf-credit .pl-photo-credit { overflow-wrap: anywhere; }
.pf-evidence { margin: .75rem 0 0; font-size: .78rem; }
.pf-evidence summary { cursor: pointer; font-weight: 700; }
.pf-evidence ul { margin: .5rem 0; padding-left: 1.1rem; }
.pf-evidence li { margin: .25rem 0; line-height: 1.4; }
.pf-evidence a { text-decoration: underline; text-underline-offset: 3px; }
.pf-horse-context { border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: .8rem; }
.pf-horse-context summary { cursor: pointer; font-weight: 700; }
.pf-horse-context p { color: var(--muted); max-width: 78ch; line-height: 1.6; margin: .7rem 0; }
.pf-more { display: inline-flex; margin-top: 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--pl-soft); color: var(--ink); padding: .7rem 1rem; font: inherit; font-size: .87rem; font-weight: 700; cursor: pointer; }
.pf-more:hover { border-color: var(--clay); }
.pf-more:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
.pf-result-note, .pf-privacy, .pf-noscript { color: var(--muted); line-height: 1.55; }
.pf-result-note { margin: 1.25rem 0 0; }
.pf-privacy { max-width: 760px; margin: 1.1rem auto 2rem; }
.pf-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 2rem 0; }
.pf-next section { border: 1px solid var(--line); background: var(--pl-soft); border-radius: 16px; padding: 1.15rem; }
.pf-next h2 { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.25; margin: 0 0 .5rem; }
.pf-next p { margin: 0 0 .8rem; color: var(--muted); line-height: 1.5; }
.pf-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.pf-links a { font-weight: 700; text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 4px; }
.pf-sources { margin: 2rem 0 3rem; }
.pf-sources summary { cursor: pointer; font-weight: 700; }
.pf-sources ul { display: grid; gap: .4rem; padding-left: 1.2rem; }
.pf-sources li { line-height: 1.4; }
@media (max-width: 900px) { .pf-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .pf-result-grid { grid-template-columns: 1fr; } .pf-form[data-pet-finder="all"] .pf-question:first-child .pf-answers { grid-template-columns: 1fr; } .pf-result-head { flex-direction: column; gap: 0; } .pf-head { padding-top: .6rem; } }
@media print { .pf-form, .pf-privacy, .pf-next, .pf-sources, .pf-card-links, .pf-credit, .pf-more, .pf-result-head button, [data-pf-remaining] { display: none !important; } .pf-result-grid { display: block; } .pf-card { break-inside: avoid; margin-bottom: .75rem; } }
