/* Photo finder and stylist pages. Uses the site's colour variables. */
.fd, .st { padding: 8px 0 32px; }
.fd-intro, .st-intro { max-width: 780px; line-height: 1.6; color: var(--text); margin: 0 0 10px; }
.fd-cta a, .st-cta a { display: inline-block; padding: 9px 16px; border-radius: 8px; background: var(--pink-ink); color: #fff; text-decoration: none; font-weight: 600; }
.fd-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 12px; }
.fd-filters { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; padding-right: 4px; }
.fd-q { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; margin-bottom: 10px; }
.fd-group { border-bottom: 1px solid var(--line); padding: 8px 0; }
.fd-group summary { cursor: pointer; font: 600 15px var(--sans); color: var(--ink); }
.fd-vals { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.chip { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font: 13px var(--sans); color: var(--ink); cursor: pointer; }
.chip small { color: var(--muted); margin-left: 2px; }
.chip[aria-pressed="true"] { background: var(--pink-ink); border-color: var(--pink-ink); color: #fff; }
.chip[aria-pressed="true"] small { color: #fde; }
.chip.zero { opacity: .45; }
.fd-clear { margin-top: 10px; background: none; border: 0; color: var(--pink-ink); cursor: pointer; font: 600 14px var(--sans); padding: 4px 0; }
.fd-count { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.fd-count .n { color: var(--ink); font-weight: 700; }
.fd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.fd-item { display: block; text-decoration: none; color: var(--ink); border-radius: 8px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.fd-item img { display: block; width: 100%; height: 220px; object-fit: cover; object-position: top; background: var(--line); }
.fd-item span { display: block; padding: 7px 9px 9px; font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fd-item:hover { border-color: var(--pink); }
.fd-empty { grid-column: 1 / -1; color: var(--muted); }
.fd-more { display: block; margin: 16px auto; padding: 10px 22px; border: 1px solid var(--pink-ink); background: var(--bg); color: var(--pink-ink); border-radius: 8px; font: 600 14px var(--sans); cursor: pointer; }
.fd-related h2, .fd-browse h2 { font: 600 17px var(--serif); margin: 20px 0 8px; color: var(--ink); }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pills a { display: inline-block; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 13.5px; }
.pills a:hover { border-color: var(--pink-ink); color: var(--pink-ink); }
.pills small { color: var(--muted); }
.fd-note, .st-note { margin-top: 22px; font-size: 13px; color: var(--muted); }
/* stylist */
.st-form { display: grid; gap: 16px; max-width: 860px; margin: 14px 0; }
.st-q h2 { font: 600 17px var(--serif); margin: 0 0 8px; color: var(--ink); }
.st-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.st-opts .chip { font-size: 14px; padding: 7px 13px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.15); }
.st-go { justify-self: start; padding: 11px 22px; border: 0; border-radius: 8px; background: var(--pink-ink); color: #fff; font: 600 15px var(--sans); cursor: pointer; }
.st-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 10px; }
.st-pick { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.st-pick img { display: block; width: 100%; height: 320px; object-fit: cover; object-position: top; }
.st-pick div { padding: 10px 12px 12px; }
.st-pick h3 { font: 600 15px var(--serif); margin: 0 0 6px; }
.st-pick h3 a { color: var(--ink); text-decoration: none; }
.st-pick p { margin: 0; font-size: 13.5px; color: var(--text); line-height: 1.5; }
@media (max-width: 899px) {
  .fd-layout { grid-template-columns: 1fr; }
  .fd-filters { position: static; max-height: none; }
  .fd-group:nth-of-type(n+3) { }
  .fd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd-item img { height: 200px; }
}
.st-reset { padding: 11px 6px; border: 0; background: none; color: var(--pink-ink); font: 600 14px var(--sans); cursor: pointer; }
/* filters in use, always shown above the photos */
.fd-applied { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0 10px; margin: 0 0 6px; background: var(--bg); border-bottom: 1px solid var(--line); }
.fd-applied[hidden] { display: none; }
.fd-applied-l { font: 600 13px var(--sans); color: var(--muted); }
.fd-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--pink-ink); background: var(--pink-ink); color: #fff; font: 13px var(--sans); cursor: pointer; }
.fd-tag b { font-weight: 700; font-size: 15px; line-height: 1; opacity: .85; }
.fd-tag:hover b { opacity: 1; }
.fd-clear-all { background: none; border: 0; color: var(--pink-ink); font: 600 13.5px var(--sans); cursor: pointer; padding: 5px 4px; text-decoration: underline; }
/* search across the top, above filters and photos (Div, 6 Nov 2026) */
.fd-top { margin: 14px 0 4px; }
.fd-top .fd-q { width: 100%; max-width: none; margin: 0; padding: 12px 14px; font-size: 16px; border-radius: 10px; }
