/* All breeds index (library + group page). Parts come from /kit/vyp.css.
   Everything here is prefixed bx- so it cannot clash with the kit or other pages. */

/* ---------- shared section rhythm ---------- */
.bx-sec { padding: 88px 0; }
.bx-sec.tint { background: var(--cream-3); }
.bx-sec.tint2 { background: var(--cream-2); }
.bx-sec .t-h2 { font-size: 40px; }
.bx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.bx-head .t-lead { margin-top: 11px; max-width: 560px; }
.bx-head .t-eyebrow { margin-bottom: 6px; }
.bx-head .ctl { display: flex; gap: 20px; flex: none; }
.bx-src { margin-top: 20px; }
.bx-sec p.source, .bx-hero .source { font-size: 12px; line-height: 18px; color: var(--muted); }
.bx-sec, .bx-anchor { scroll-margin-top: 140px; }

/* ---------- hero ---------- */
.bx-hero { position: relative; background: var(--cream-2); overflow: hidden; padding: 28px 0 48px; }
.bx-hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 772px; background: url(/img/pattern.webp) center bottom / 1921px 772px no-repeat; opacity: .7; pointer-events: none; }
.bx-hero .wrap { position: relative; }
.bx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--ui); font-size: 14px; color: var(--muted); }
@media (hover:hover) and (pointer:fine){.bx-crumbs a:hover{ color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }}
.bx-crumbs .chev { width: 12px; height: 12px; color: var(--muted-3); }
.bx-crumbs [aria-current] { color: var(--navy); }
.bx-hero .copy { margin-top: 28px; max-width: 760px; }
.bx-hero h1 { margin-top: 14px; font-size: 56px; line-height: 1.1; letter-spacing: -1.8px; }
.bx-hero .bx-lead { margin-top: 22px; max-width: 620px; font-family: var(--ui); font-size: 18px; line-height: 28px; color: var(--body); }
.bx-hero .bx-lead-src { margin-top: 10px; }

/* breed search pill */
.bx-search { display: flex; align-items: center; gap: 14px; width: 620px; max-width: 100%; height: 64px; margin-top: 32px; padding: 0 8px 0 24px; border-radius: var(--pill); background: var(--white); box-shadow: 0 0 0 8px rgba(113, 113, 113, .08); font-family: var(--ui); }
.bx-search .ico { width: 20px; height: 20px; color: var(--muted-2); flex: none; }
.bx-search input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; font-size: 16px; color: var(--ink); }
.bx-search input::placeholder { color: var(--muted-2); }
.bx-search .btn { height: 48px; }

/* filter chips */
.bx-filters { display: grid; gap: 12px; margin-top: 34px; }
.bx-fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bx-fgroup > small { flex: none; width: 56px; font-family: var(--ui); font-weight: 500; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.bx-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--white); font-family: var(--ui); font-weight: 500; font-size: 14px; color: var(--navy); white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .15s; }
@media (hover:hover) and (pointer:fine){.bx-chip:hover{ border-color: var(--navy-2); transform: translateY(-1px); }}
.bx-chip .ico { width: 16px; height: 16px; }
.bx-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.bx-chip.clear { border-style: dashed; color: var(--muted); display: none; }
.bx-chip.clear.show { display: inline-flex; }
.bx-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 22px; font-family: var(--ui); font-size: 14px; color: var(--body); }
.bx-count b { font-weight: 500; color: var(--ink); }
.bx-count .source { margin: 0; }

/* A to Z bar */
.bx-azband { position: sticky; top: 72px; z-index: 20; background: rgba(245, 243, 239, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid rgba(25, 42, 79, .08); border-bottom: 1px solid rgba(25, 42, 79, .08); }
.bx-az { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 0; }
.bx-az a, .bx-az span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-family: var(--ui); font-weight: 500; font-size: 14px; color: var(--navy); transition: background .15s, color .15s; }
@media (hover:hover) and (pointer:fine){.bx-az a:hover{ background: var(--white); box-shadow: 0 0 0 1px var(--line); }}
.bx-az a.on { background: var(--navy); color: var(--white); }
.bx-az span { color: var(--muted-3); }

/* ---------- most searched rail ---------- */
.bx-rail .rail { padding: 4px 0 36px; margin-bottom: -20px; gap: 20px; }
.bx-rail .card-breed .pos { position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .92); font-family: var(--ui); font-weight: 600; font-size: 13px; color: var(--navy); }
.bx-rail .card-breed { position: relative; }
.bx-rail .card-breed img { background: var(--cream); }

/* ---------- letter sections + compact grid card ---------- */
.bx-letter { padding: 48px 0; border-top: 1px solid #EAF1F9; }
.bx-head + .bx-letter { border-top: 0; padding-top: 0; }
.bx-letter.is-empty { display: none; }
.bx-letter .lh { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.bx-letter .lh h2 { font-family: var(--display); font-weight: 600; font-size: 36px; line-height: 1; letter-spacing: -1px; color: var(--navy); }
.bx-letter .lh small { font-family: var(--ui); font-size: 14px; color: var(--muted); }
.bx-letter .lh .top { margin-left: auto; font-family: var(--ui); font-size: 13px; color: var(--blue); }
.bx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.bx-card { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--white); border: 1px solid #EAF1F9; transition: transform .2s, box-shadow .2s, border-color .2s; }
@media (hover:hover) and (pointer:fine){.bx-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: transparent; }}
.bx-card.is-hidden { display: none; }
.bx-card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.bx-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.bx-card .txt { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 16px; }
.bx-card h3 { font-weight: 500; font-size: 16px; line-height: 24px; color: var(--ink); }
.bx-card .meta { margin-top: 2px; font-family: var(--ui); font-size: 12px; line-height: 18px; color: var(--muted); }
.bx-card .traits { margin-top: 8px; font-size: 13px; line-height: 19px; color: var(--body); }
.bx-card .nums { margin-top: auto; padding-top: 12px; border-top: 1px solid #EAF1F9; margin-top: 14px; }
.bx-card .nums b { display: block; font-family: var(--ui); font-weight: 500; font-size: 13px; line-height: 18px; color: var(--navy-2); }
.bx-card .nums .source { margin-top: 2px; font-size: 11px; line-height: 16px; }
.bx-card .flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.bx-card .flags span { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--pill); background: var(--sky-3); font-family: var(--ui); font-weight: 500; font-size: 11px; color: #1447E6; }
.bx-card .flags span.shed { background: var(--mint); color: #1F7A4D; }
.bx-card .flags span.apt { background: var(--lilac); color: #6B4FA8; }
.bx-none { display: none; }
.bx-none.show { display: grid; }

/* ---------- "not sure" band ---------- */
.bx-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bx-tool { position: relative; display: grid; align-content: start; gap: 12px; padding: 32px 30px 30px; border-radius: var(--r); background: var(--bg, var(--sand)); min-height: 220px; transition: transform .2s; }
@media (hover:hover) and (pointer:fine){.bx-tool:hover{ transform: translateY(-3px); }}
.bx-tool:nth-child(2) { --bg: var(--sky); --c: var(--blue-2); }
.bx-tool { --c: var(--coral); }
.bx-tool i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--white); color: var(--c); }
.bx-tool i .ico { width: 24px; height: 24px; }
.bx-tool h3 { font-family: var(--ui); font-weight: 500; font-size: 22px; letter-spacing: -.01em; color: var(--ink-3); }
.bx-tool p { font-size: 14px; line-height: 22px; color: var(--body-2); max-width: 400px; }
.bx-tool .soon { position: absolute; right: 20px; top: 20px; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--pill); background: var(--white); font-family: var(--ui); font-weight: 500; font-size: 11px; letter-spacing: .02em; color: var(--muted); }
.bx-tool .btn-text { margin-top: 4px; }
.bx-ask { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 20px; padding: 24px 28px; border-radius: var(--r); background: var(--white); border: 1px solid #EAF1F9; }
.bx-ask img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; }
.bx-ask h3 { font-family: var(--ui); font-weight: 500; font-size: 18px; line-height: 26px; color: var(--ink); }
.bx-ask p { margin-top: 4px; font-size: 14px; line-height: 22px; color: var(--body); }
.bx-ask .source { margin-top: 6px; }

/* ---------- FAQ ---------- */
.bx-faq { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 80px; align-items: start; }
.bx-faq .side p { margin-top: 14px; }
.bx-faq .side .btn { margin-top: 26px; }
.bx-acc { display: grid; }
.bx-acc details { border-top: 1px solid var(--line); }
.bx-acc details:last-child { border-bottom: 1px solid var(--line); }
.bx-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font-family: var(--ui); font-weight: 500; font-size: 18px; line-height: 26px; color: var(--ink); }
.bx-acc summary::-webkit-details-marker { display: none; }
.bx-acc summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%23192A4F' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .2s, background-color .2s; }
.bx-acc details[open] summary::after { transform: rotate(45deg); background-color: var(--sand); }
.bx-acc details > div { padding: 0 52px 26px 0; font-size: 15px; line-height: 26px; color: var(--body); }
.bx-acc details .source { margin-top: 10px; }

/* ---------- how this library is made ---------- */
.bx-method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 44px 48px; border-radius: var(--r-lg); background: var(--white); box-shadow: 0 0 0 1px #EAF1F9; }
.bx-method h3 { font-family: var(--head); font-weight: 500; font-size: 24px; line-height: 1.3; color: var(--navy); }
.bx-method p { margin-top: 12px; font-size: 14px; line-height: 23px; color: var(--body); }
.bx-reviewer { display: flex; gap: 18px; align-items: center; margin-top: 24px; padding: 22px 26px; border-radius: var(--r); background: var(--cream); }
.bx-reviewer img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.bx-reviewer b { display: block; font-family: var(--ui); font-weight: 500; font-size: 16px; color: var(--ink); }
.bx-reviewer p { margin-top: 3px; font-size: 14px; line-height: 21px; color: var(--body); }
.bx-reviewer .paid { margin-left: 6px; padding: 2px 8px; border-radius: var(--pill); background: #F2F4F7; font-family: var(--ui); font-weight: 500; font-size: 11px; color: var(--body); vertical-align: 2px; }
.bx-method ol { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; }
.bx-method ol li { counter-increment: s; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid #EAF1F9; font-size: 14px; line-height: 22px; color: var(--ink); }
.bx-method ol li::before { content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sky-2); font-family: var(--ui); font-weight: 500; font-size: 12px; color: var(--blue); }
.bx-method ol small { display: block; color: var(--muted); font-size: 12px; }
.bx-method ol a { text-decoration: underline; text-underline-offset: 2px; }
.bx-updated { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--ui); font-size: 13px; color: var(--muted); }

/* ---------- breeder CTA card (same as the homepage one) ---------- */
.bx-ctawrap { padding: 0 0 0; }
.bx-cta { position: relative; z-index: 2; height: 362px; border-radius: var(--r-lg); background: var(--blue); isolation: isolate; overflow: hidden; }
.bx-cta .blob { position: absolute; left: 609px; top: 30px; width: 501px; height: 302px; border-radius: 1000px; background: linear-gradient(#556EB9, #4962AA); z-index: -1; }
.bx-cta .who { position: absolute; left: 636px; bottom: 0; width: 446px; height: 400px; object-fit: contain; object-position: bottom; }
.bx-cta .txt { position: absolute; left: 71px; top: 75px; width: 488px; color: var(--white); }
.bx-cta h2 { font-weight: 500; font-size: 36px; line-height: 50.4px; }
.bx-cta p { margin-top: 20px; font-size: 16px; line-height: 28px; }
.bx-cta .btns { display: flex; gap: 16px; margin-top: 30px; }

/* ---------- group page: at a glance + copy + other groups ---------- */
.bx-glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 36px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
.bx-fact { display: grid; align-content: start; gap: 2px; padding: 24px 28px; }
.bx-fact + .bx-fact { border-left: 1px solid #EAF1F9; }
.bx-fact small { font-family: var(--ui); font-size: 13px; color: var(--muted); }
.bx-fact b { font-family: var(--ui); font-weight: 500; font-size: 22px; line-height: 28px; letter-spacing: -.01em; color: var(--ink); }
.bx-fact b em { font-style: normal; font-weight: 400; font-size: 14px; color: var(--body); }
.bx-fact .source { margin-top: 6px; }
.bx-hero .bx-groupnav { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(25, 42, 79, .1); }
.bx-copy { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 80px; align-items: start; }
.bx-copy .t-h2 { margin-bottom: 24px; }
.bx-copy p { font-size: 16px; line-height: 28px; color: var(--body); }
.bx-copy p + p { margin-top: 18px; }
.bx-copy .source { margin-top: 20px; }
.bx-copy .pic { border-radius: var(--r); overflow: hidden; aspect-ratio: 420 / 480; }
.bx-copy .pic img { width: 100%; height: 100%; object-fit: cover; }
.bx-groups { display: flex; flex-wrap: wrap; gap: 8px; }
.bx-groups a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--white); font-family: var(--ui); font-weight: 500; font-size: 14px; color: var(--navy); transition: border-color .15s, transform .15s; }
@media (hover:hover) and (pointer:fine){.bx-groups a:hover{ border-color: var(--navy-2); transform: translateY(-1px); }}
.bx-groups a small { font-weight: 400; color: var(--muted); }
.bx-groups a[aria-current] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.bx-groups a[aria-current] small { color: rgba(255, 255, 255, .7); }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1240px) {
  .bx-cta .blob { display: none; }
  .bx-cta .who { left: auto; right: 10px; width: 380px; }
}
@media (max-width: 1100px) {
  .bx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bx-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-fact:nth-child(3) { border-left: 0; }
  .bx-fact:nth-child(n+3) { border-top: 1px solid #EAF1F9; }
  .bx-copy { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
  .bx-faq { grid-template-columns: 1fr; gap: 32px; }
  .bx-cta { height: auto; padding: 56px 48px 340px; }
  .bx-cta .txt { position: static; width: auto; max-width: 520px; }
  .bx-cta .who { right: 50%; transform: translateX(50%); width: 340px; height: 320px; }
}
@media (max-width: 900px) {
  .bx-sec { padding: 64px 0; }
  .bx-sec .t-h2 { font-size: 30px; }
  .bx-head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
  .bx-head .ctl { display: none; }
  .bx-hero h1 { font-size: 40px; letter-spacing: -1.2px; }
  .bx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .bx-band { grid-template-columns: 1fr; }
  .bx-ask { grid-template-columns: 72px minmax(0, 1fr); }
  .bx-ask img { width: 72px; height: 72px; }
  .bx-ask .btn { grid-column: 1 / -1; }
  .bx-copy { grid-template-columns: 1fr; gap: 32px; }
  .bx-copy .pic { aspect-ratio: 16 / 10; }
  .bx-method { grid-template-columns: 1fr; gap: 36px; padding: 32px 28px; }
  .bx-letter { padding: 36px 0; }
}
@media (max-width: 640px) {
  .bx-hero { padding: 16px 0 36px; }
  .bx-hero .copy { margin-top: 18px; }
  .bx-hero h1 { margin-top: 10px; font-size: 36px; }
  .bx-hero .bx-lead { margin-top: 14px; font-size: 16px; line-height: 25px; }
  .bx-search { height: 56px; margin-top: 24px; padding: 0 6px 0 18px; gap: 10px; box-shadow: 0 0 0 6px rgba(113, 113, 113, .08); }
  .bx-search .btn { height: 44px; padding: 0 18px; }
  .bx-filters { gap: 10px; margin-top: 28px; }
  .bx-fgroup { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; scrollbar-width: none; }
  .bx-fgroup::-webkit-scrollbar { display: none; }
  .bx-fgroup > small { width: auto; }
  .bx-chip { height: 36px; padding: 0 14px; font-size: 13px; }
  .bx-azband { top: 60px; }
  .bx-az { gap: 2px; padding: 8px 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .bx-az::-webkit-scrollbar { display: none; }
  .bx-az a, .bx-az span { flex: none; }
  .bx-az a, .bx-az span { width: 30px; height: 30px; font-size: 13px; border-radius: 8px; }
  .bx-rail .rail { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .bx-rail .card-breed { width: 220px; }
  .bx-rail .card-breed .txt { padding: 16px 20px 18px; }
  .bx-grid { grid-template-columns: 1fr; }
  .bx-card .ph { aspect-ratio: 16 / 10; }
  .bx-letter .lh h2 { font-size: 30px; }
  .bx-tool { padding: 24px 22px 22px; min-height: 0; }
  .bx-tool .soon { position: static; justify-self: start; order: -1; }
  .bx-ask { padding: 20px; gap: 16px; }
  .bx-glance { grid-template-columns: 1fr; margin-top: 28px; }
  .bx-fact { padding: 18px 20px; }
  .bx-fact + .bx-fact { border-left: 0; border-top: 1px solid #EAF1F9; }
  .bx-fact b { font-size: 18px; line-height: 24px; }
  .bx-acc summary { font-size: 16px; padding: 20px 0; }
  .bx-acc details > div { padding-right: 0; }
  .bx-method { padding: 28px 22px; }
  .bx-reviewer { padding: 18px; gap: 14px; align-items: flex-start; }
  .bx-reviewer img { width: 52px; height: 52px; }
  .bx-cta { padding: 36px 24px 300px; border-radius: 20px; }
  .bx-cta h2 { font-size: 28px; line-height: 36px; }
  .bx-cta p { font-size: 15px; line-height: 24px; margin-top: 14px; }
  .bx-cta .btns { flex-direction: column; gap: 12px; margin-top: 24px; }
  .bx-cta .btns .btn { width: 100%; height: 52px; }
  .bx-cta .who { width: 300px; height: 280px; }
}
/* D:search-focus */
.bx-search:has(input:focus-visible) { outline: 2px solid var(--blue-2); outline-offset: 2px; }
/* /D:search-focus */
/* D:review-bar-room */
@media (max-width: 1023px) { body:has(> .review-bar) .vyp-footer { padding-bottom: 84px; } }
/* /D:review-bar-room */
/* night-audit r1 r1-known-09: grow /breeds/ hub sort buttons to >=44px tap height; hit-area only */
@media (max-width: 700px) {
  .hx-sort button { min-height: 44px; }
}
