/* ═══════════════════════════════════════════════════════════════════
   Breed detail page (.bp-*)
   ═══════════════════════════════════════════════════════════════════ */

.bp {
    max-width: 52rem;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}
.bp ~ .ssr-footer-wrap { max-width: 52rem; }
.bh ~ .ssr-footer-wrap { max-width: 60rem; }

/* ── Breadcrumb ──────────────────── */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}
.breadcrumb a,
.breadcrumb span {
    unicode-bidi: isolate;
}
.breadcrumb a {
    color: var(--link);
    text-decoration: none;
}
@media (hover: hover) {
    .breadcrumb a:hover {
        text-decoration: underline;
    }
}
.bc-sep {
    color: #9ca3af;
}

/* ── Hero ─────────────────────────── */
.bp-hero {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.75rem 1.75rem 1rem 1.75rem;
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.bp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--border);
    border-radius: 1rem;
    pointer-events: none;
}
.bp-site-logo {
    height: 2.75rem;
    width: auto;
}
.bp-site-logo-link {
    position: absolute;
    width: 4.6rem;
    height: 4.6rem;
    top: -0.55rem;
    left: -0.55rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bp-hero-visual-wrap { position: relative; z-index: 1; margin-bottom: 1.25rem; }
.bp-hero-visual { height: 16rem; position: relative; display: flex; align-items: flex-end; justify-content: center; background: #fff; border-radius: 0.75rem; overflow: hidden; -webkit-mask: radial-gradient(circle 5rem at 0 0, transparent 0 99%, #000 100%); mask: radial-gradient(circle 5rem at 0 0, transparent 0 99%, #000 100%); }
.bp-hero-visual > * { position: relative; }
.bp-hero-avatar { width: 18.9rem; height: 18.9rem; display: flex; align-items: flex-end; justify-content: center; margin-bottom: -0.5rem; flex-shrink: 0; }
@media (max-width: 600px) { .bp-hero-avatar { width: 14rem; height: 14rem; } }
.bp-hero-img { width: 80%; max-height: 90%; object-fit: contain; }
.bp-hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-bright);
    margin: 0 0 0.25rem;
}
.bp-hero-subtitle {
    font-size: 1rem;
    color: #9ca3af;
    margin: 0 0 1.25rem;
}
.bp-hero-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.6rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    font-size: 0.8rem;
    color: #cbd5e1;
}
.bp-hero-updated {
    display: block;
    margin: -0.9rem 0 1.1rem;
    font-size: 0.8rem;
    color: #6b7280;
}
.bp-hero-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    direction: ltr;
    position: relative;
}
.bp-rating-icon {
    width: 1.4em;
    height: 1.4em;
    flex-shrink: 0;
    border-radius: 2px;
}
.bp-info-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
@media (hover: hover) {
    .bp-info-btn:hover {
        color: var(--accent);
    }
}
.bp-hero-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 16rem;
    font-size: 0.75rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    line-height: 1.45;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 10;
}
.bp-hero-tooltip::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--border);
}
.bp-hero-tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: var(--surface);
}
.bp-hero-tooltip.visible {
    display: block;
}

/* ── Quick stats ─────────────────── */
.bp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.bp-stat {
    background: var(--bg);
    border-radius: 0.75rem;
    padding: 0.75rem;
    text-align: center;
    border: 1px solid var(--border);
}
.bp-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-bright);
}
.bp-stat-label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.15rem;
}

/* ── Ratings ─────────────────────── */
.bp-ratings {
    display: flex;
    gap: 1.4rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 2rem;
}
.bp-rating-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    width: 2.5rem;
}
.bp-rating-label {
    font-size: 0.72rem;
    color: #9ca3af;
    text-align: center;
    width: 100%;
    overflow-wrap: break-word;
    line-height: 1.25;
    min-height: 2.4em;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.bp-trait-bar {
    width: 2rem;
    height: 7rem;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
}
.bp-trait-fill {
    width: 100%;
    background: rgba(167, 139, 250, 0.85);
    border-radius: 999px;
    transition: height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 0;
}
.bp-rating-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-bright);
}

/* ── Badges ──────────────────────── */
.bp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    justify-content: center;
}
.bp-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-weight: 600;
}
.bp-badge--yes {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.bp-badge--no {
    background: rgba(239, 68, 68, 0.08);
    color: #9ca3af;
    border: 1px solid var(--border);
}

/* ── Sections ────────────────────── */
.bp-section {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}
/* Campaign banner (breeds.page.nutrition_banner): single creative inside the nutrition card,
   sized by the shared band in campaign.css. */
.bp-nutrition-campaign { margin: 1.25rem 0; }

/* ── Gallery ─────────────────────── */
.bp-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
    height: 320px;
}
.bp-gallery-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
}
.bp-gallery-col:nth-child(1) img:first-child {
    flex: 3;
}
.bp-gallery-col:nth-child(1) img:last-child {
    flex: 2;
}
.bp-gallery-col:nth-child(2) img:first-child {
    flex: 2;
}
.bp-gallery-col:nth-child(2) img:last-child {
    flex: 3;
}
.bp-gallery-col:nth-child(3) img:first-child {
    flex: 3;
}
.bp-gallery-col:nth-child(3) img:last-child {
    flex: 2;
}
.bp-gallery img {
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
    min-height: 0;
    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}
@media (hover: hover) {
    .bp-gallery-col > img:hover {
        transform: scale(1.03);
        filter: brightness(1.05);
    }
}
@media (max-width: 600px) {
    .bp-gallery {
        grid-template-columns: repeat(2, 1fr);
        height: 240px;
    }
    .bp-gallery-col:nth-child(3) {
        display: none;
    }
}

/* ── Adoption teaser ─────────────── */
.bp-adoption-teaser {
    text-align: center;
}
/* Gallery links - flex container so inner img stretches to fill */
.bp-gallery-link {
    position: relative;
    display: flex;
    border-radius: 0.5rem;
    overflow: hidden;
    min-height: 0;
    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}
/* Pet name overlay - sits above the image at the bottom */
.bp-gallery-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0.35rem 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    pointer-events: none;
}
.bp-gallery-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 0;
    min-height: 0;
}
/* Flex ratios mirror .bp-gallery img rules exactly */
.bp-gallery-col:nth-child(1) .bp-gallery-link:first-of-type { flex: 3; }
.bp-gallery-col:nth-child(1) .bp-gallery-link:last-of-type  { flex: 2; }
.bp-gallery-col:nth-child(2) .bp-gallery-link:first-of-type { flex: 2; }
.bp-gallery-col:nth-child(2) .bp-gallery-link:last-of-type  { flex: 3; }
.bp-gallery-col:nth-child(3) .bp-gallery-link:first-of-type { flex: 3; }
.bp-gallery-col:nth-child(3) .bp-gallery-link:last-of-type  { flex: 2; }
@media (hover: hover) {
    .bp-gallery-link:hover {
        transform: scale(1.03);
        filter: brightness(1.05);
    }
}

.bp-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-bright);
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.bp-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 1rem;
    flex-shrink: 0;
}
.bp-section-icon--food {
    background: rgba(249, 166, 29, 0.12);
}
.bp-section-icon--health {
    background: rgba(239, 68, 68, 0.12);
}
.bp-section-icon--groom {
    background: rgba(99, 102, 241, 0.12);
}
.bp-section-icon--train {
    background: rgba(34, 197, 94, 0.12);
}
.bp-section-icon--faq {
    background: rgba(168, 85, 247, 0.12);
}
#faq {
    margin-top: 1.5rem;
}
.bp-section p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 0.5rem;
}
.bp-section ul {
    margin: 0.5rem 0;
    padding-right: 1.5rem;
}
.bp-section li {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 0.25rem;
}

/* ── Expert tip ───────────────────── */
.bp-tip {
    background: rgba(249, 166, 29, 0.08);
    border: 1px solid rgba(249, 166, 29, 0.2);
    border-radius: 0.6rem;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.6;
    margin-top: 0.75rem;
}

/* ── Provider take ───────────────── */
.bp-take {
    display: block;
    position: relative;
    background: rgba(167, 139, 250, 0.06);
    border: 1px solid rgba(167, 139, 250, 0.15);
    border-radius: 0.75rem;
    padding: 0.75rem 0.75rem 0.6rem 0.5rem;
    margin-top: 1rem;
    text-decoration: none;
    color: inherit;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    cursor: pointer;
}
@media (hover: hover) {
    .bp-take:hover {
        border-color: rgba(167, 139, 250, 0.35);
        box-shadow: 0 2px 8px rgba(167, 139, 250, 0.1);
    }
}
.bp-take::before {
    content: "❝";
    position: absolute;
    top: 0.6rem;
    left: 1rem;
    font-size: 3rem;
    line-height: 1;
    color: rgba(167, 139, 250, 0.12);
    font-family: Georgia, serif;
    pointer-events: none;
}
.bp-take-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}
.bp-take-avatar {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(167, 139, 250, 0.35);
    flex-shrink: 0;
}
.bp-take-who {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    align-self: flex-start;
}
.bp-take-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.bp-take-role {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(167, 139, 250, 0.9);
}
.bp-take-body {
    margin: 0;
    font-size: 0.9rem;
    padding-right: 0.5rem;
    line-height: 1.75;
    color: var(--text);
    font-style: italic;
    white-space: pre-line;
}

/* ── Health cards ─────────────────── */
.bp-health-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(140px, 45%), 1fr));
    gap: 0.65rem;
    margin: 0.5rem 0;
}
.bp-health-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.85rem 0.65rem;
    min-height: 80px;
}
.bp-health-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.bp-health-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-bright);
}
.bp-health-detail {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.1rem;
}

/* ── Fun fact ────────────────────── */
.bp-funfact {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0 0.25rem;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.65;
    margin-top: 1.25rem;
    margin-bottom: 0;
}

/* ── Tables ──────────────────────── */
.bp-feed-table,
.bp-cost-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}
.bp-feed-table th,
.bp-cost-table th {
    background: var(--bg);
    color: #9ca3af;
    font-weight: 600;
    text-align: right;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
}
.bp-feed-table td,
.bp-cost-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.bp-cost-low {
    background: rgba(34, 197, 94, 0.06);
}
.bp-cost-mid {
    background: rgba(249, 166, 29, 0.06);
}
.bp-cost-high {
    background: rgba(239, 68, 68, 0.06);
}
.bp-sub-heading {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-bright);
    margin: 1rem 0 0.25rem;
}

/* ── Video ────────────────────────── */
.bp-video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 0.75rem;
    overflow: hidden;
}
.bp-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.bp-section-video {
    margin-top: 0.75rem;
}

/* ── Section CTA ──────────────────── */
.bp-section-cta { margin: 1rem auto 0; }
.bp-section-cta::before { display: none; }
.bp-hero .bp-section-cta { margin-bottom: 1.5rem; }

/* ── Back to top ─────────────────── */
.bp-back-top {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.82rem;
    color: #6b7280;
    text-decoration: none;
}
@media (hover: hover) {
    .bp-back-top:hover {
        color: var(--link);
    }
}

/* ── TOC nav ─────────────────────── */
.bp-toc {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.75rem 1.25rem 0.4rem;
    margin-bottom: 1.25rem;
}
.bp-toc a {
    font-size: 0.78rem;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: none;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    transition:
        background 0.15s,
        color 0.15s;
    white-space: nowrap;
}
@media (hover: hover) {
    .bp-toc a:hover {
        background: var(--accent, #f9a61d);
        color: #000;
    }
}
.bp-toc a.is-active {
    background: var(--accent, #f9a61d);
    color: #000;
}

/* ── Similar breeds ──────────────── */
.bp-similar {
    margin-top: 1.5rem;
}
.bp-similar h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin: 0 0 0.75rem;
    text-align: center;
}
.bp-similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.75rem;
}
.bp-similar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem 0.75rem 0;
    transition:
        border-color 0.2s,
        transform 0.15s;
    overflow: hidden;
    text-align: center;
    position: relative;
    min-height: 15.5rem;
}
@media (hover: hover) {
    .bp-similar-card:hover {
        border-color: var(--accent);
        transform: translateY(-2px);
    }
}
.bp-similar-flag {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    font-size: 1.4rem;
    line-height: 1;
    z-index: 2;
}
.bp-similar-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 0.1rem;
    min-height: 1.4em;
}
.bp-similar-en {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    min-height: 1em;
}
.bp-similar-avatar {
    width: 8.4rem;
    height: 8.4rem;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: auto auto 0;
    border: 2px solid var(--border);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.bp-similar-avatar img {
    width: 80%;
    max-height: 90%;
    object-fit: contain;
}
.bp-similar-gradient {
    width: calc(100% + 1.5rem);
    height: 2.5rem;
    margin-top: -1.5rem;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    background: linear-gradient(to bottom, transparent, rgba(249, 166, 29, 0.08));
    border-radius: 0 0 0.75rem 0.75rem;
    flex-shrink: 0;
}

/* ── Pros / Cons ────────────────── */
.bp-proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.bp-proscons-col {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
}
.bp-proscons-col h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin: 0 0 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.bp-proscons-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.bp-proscons-col li {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text);
    padding: 0.2rem 0;
    padding-right: 1.1rem;
    position: relative;
}
.bp-proscons-col li::before {
    position: absolute;
    right: 0;
}
.bp-pros li::before {
    content: "✓";
    color: #22c55e;
    font-weight: 700;
}
.bp-cons li::before {
    content: "✗";
    color: #ef4444;
    font-weight: 700;
}
@media (max-width: 600px) {
    .bp-proscons {
        grid-template-columns: 1fr;
    }
}

/* ── Expert attribution ─────────── */
.bp-attribution {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
}
.bp-attribution-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    flex-shrink: 0;
}
.bp-attribution strong {
    color: var(--text-bright);
}

/* ── Sticky mobile CTA ────────────── */
.bp-sticky-cta {
    display: none;
}
@media (max-width: 600px) {
    .bp-sticky-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: var(--surface);
        border-top: 1px solid var(--border);
        padding: 0.6rem 1rem;
        justify-content: center;
        gap: 0.5rem;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .bp-sticky-cta a {
        flex: 1;
        text-align: center;
        font-size: 0.85rem;
        font-weight: 700;
        padding: 0.55rem 0.5rem;
        border-radius: 0.5rem;
        text-decoration: none;
        font-family: var(--font);
    }
    .bp-sticky-primary {
        background: var(--accent, #f9a61d);
        color: #000;
    }
    .bp-sticky-secondary {
        background: transparent;
        border: 1px solid var(--border);
        color: var(--text-bright);
    }
    .bp {
        padding-bottom: 5rem;
    }
}

/* ── Print styles ────────────────── */
@media print {
    .bp-toc,
    .share-panel,
    .bp-back-top,
    .bp-site-logo-link {
        display: none !important;
    }
    .bp-section {
        break-inside: avoid;
        border: none;
        box-shadow: none;
    }
    .bp {
        padding: 0;
        max-width: 100%;
    }
    .bp-hero {
        border: none;
    }
}

/* ── Footer ──────────────────────── */
.bp-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.82rem;
    color: #6b7280;
}
.bp-footer a {
    color: var(--link);
    text-decoration: none;
}

/* ── Mobile ───────────────────────── */
@media (max-width: 600px) {
    .bp-hero-visual {
        height: 12rem;
    }
    .bp-hero {
        padding: 1.25rem 1rem;
    }
    .bp-stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .bp-stat {
        flex: 0 0 calc(50% - 0.375rem);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Breed directory page (.bd-*)
   ═══════════════════════════════════════════════════════════════════ */

.bd {
    max-width: 60rem;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}
.bd ~ .ssr-footer-wrap { max-width: 60rem; }

/* ── Hero ─────────────────────────── */
.bd-hero {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.25rem 1.25rem 1.25rem 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(18rem, 0.9fr) minmax(20rem, 1.1fr);
    gap: 2.5rem;
    align-items: stretch;
}
.bd-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--border);
    border-radius: 1rem;
    pointer-events: none;
}
/* ── Visual area ── */
.bd-hero-visual-wrap { position: relative; z-index: 1; }
.bd-hero-visual { height: 100%; min-height: 14rem; position: relative; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 0.75rem; overflow: hidden; -webkit-mask: radial-gradient(circle 5rem at 0 0, transparent 0 99%, #000 100%); mask: radial-gradient(circle 5rem at 0 0, transparent 0 99%, #000 100%); }
.bd-hero-visual > * { position: relative; }
.bd-site-logo {
    height: 2.75rem;
    width: auto;
}
.bd-site-logo-link {
    position: absolute;
    width: 4.6rem;
    height: 4.6rem;
    top: -0.55rem;
    left: -0.55rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ── Mosaic ── */
.bd-mosaic { width: 100%; height: 100%; min-height: 12rem; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 0.45rem; padding: 1rem 0.75rem 0.75rem; box-sizing: border-box; margin-left: 5rem; width: calc(100% - 5rem); direction: rtl; }
.bd-mosaic-row { display: flex; align-items: center; justify-content: space-evenly; gap: 0.9rem; min-width: 0; }
.bd-mosaic-row:last-child { width: calc(100% + 5.75rem + 0.75rem); margin-left: -5.75rem; margin-right: -0.75rem; padding: 0 0.75rem; box-sizing: border-box; }
.bd-mosaic-badge { width: 4.1rem; height: 4.1rem; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: #fff; display: flex; align-items: flex-end; justify-content: center; }
.bd-mosaic-img { width: 80%; max-height: 90%; object-fit: contain; }
/* ── Content area ── */
.bd-hero-content { min-width: 0; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.bd-hero-meta { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; direction: rtl; }
.bd-hero-category { color: var(--accent); font-size: 0.78rem; font-weight: 700; }
.bd-hero h1 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 800;
    color: var(--text-bright);
    margin: 0.35rem 0 0;
}
@media (min-width: 601px) { .bd-hero h1 { font-size: 30px !important; } }
.bd-hero-desc { font-size: 0.85rem; color: #9ca3af; line-height: 1.55; margin: 0.75rem 0 0; max-width: 32rem; }
.bd-hero p {
    font-size: 0.92rem;
    color: #9ca3af;
    margin: 0;
}
.bd-hero-stats { width: 100%; display: flex; align-items: baseline; justify-content: flex-end; gap: 0.65rem; margin: auto 0; margin-top: 4rem; text-align: center; }
/* ── Grid ─────────────────────────── */
.bd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.75rem;
}
/* Campaign banner (breeds.list.grid_banner): repeats every 3 rows, spanning the full row
   (`.bd-banner`); the creative is sized by the shared band in campaign.css. */
.bd-banner { grid-column: 1 / -1; }
/* Copies whose fallback row is past the last breed wait here for breedDirectory.client.ts. */
.bd-banner-pool { display: none; }
.bd-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 1rem 0.75rem 0;
    border: 1px solid var(--border);
    text-decoration: none;
    transition:
        border-color 0.2s,
        transform 0.15s;
    overflow: hidden;
    text-align: center;
    position: relative;
    min-height: 17rem;
}
@media (hover: hover) {
    .bd-card:hover {
        border-color: var(--accent);
        transform: translateY(-2px);
    }
}
.bd-card:active { border-color: var(--accent); transform: scale(0.98); }
.bd-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 0.1rem;
    min-height: 1.4em;
}
.bd-card-en {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    min-height: 1em;
}
.bd-card-rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.75rem;
    margin-bottom: 0.35rem;
    direction: ltr;
}
.bd-card-rating-icon {
    width: 1.3em;
    height: 1.3em;
    flex-shrink: 0;
    border-radius: 2px;
}
.bd-card-rating-value {
    font-weight: 600;
    color: var(--text-bright);
}
.bd-avatar {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: #fff;
    margin: auto auto 1rem;
    border: 2px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.bd-avatar img {
    width: 80%;
    max-height: 90%;
    object-fit: contain;
}
/* ── Card flag ───────────────────── */
.bd-card-flag {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    font-size: 1.4rem;
    line-height: 1;
    z-index: 2;
}

/* ── Filters ─────────────────────── */
.bd-filter {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: right;
}
.bd-filter-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}
.bd-filter-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin: 0;
}
.bd-filter-count {
    font-size: 0.82rem;
    color: #9ca3af;
}
.bd-filter-search {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-bright);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.15s;
}
.bd-filter-search:focus {
    border-color: var(--accent);
}
.bd-filter-search::placeholder {
    color: #6b7280;
}
.bd-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    margin-top: 0.65rem;
}
.bd-filter-label {
    display: block;
    font-size: 0.82rem;
    color: #9ca3af;
    font-weight: 600;
}
.bd-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.bd-filter-pill {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-bright);
    font-size: 0.8rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font);
    transition:
        background 0.15s,
        border-color 0.15s,
        color 0.15s;
}
@media (hover: hover) {
    .bd-filter-pill:hover {
        border-color: var(--accent);
    }
}
.bd-filter-pill.is-active {
    background: var(--accent, #f9a61d);
    color: #000;
    font-weight: 700;
    border-color: var(--accent, #f9a61d);
}
.bd-filter-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0.25rem;
}
.bd-filter-advanced {
    display: none;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}
.bd-filter-advanced.is-open {
    display: flex;
}
.bd-filter-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--accent, #f9a61d);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font);
    transition:
        background 0.15s,
        border-color 0.15s;
}
@media (hover: hover) {
    .bd-filter-toggle:hover {
        border-color: var(--accent);
        background: rgba(249, 166, 29, 0.08);
    }
}
.bd-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
    font-size: 0.95rem;
    display: none;
}

/* ── Adoption CTA ────────────────── */
.bd-adoption-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-top: 1.25rem;
}
.bd-adoption-emoji {
    font-size: 1.6rem;
    flex-shrink: 0;
}
.bd-adoption-text {
    font-size: 0.88rem;
    color: #9ca3af;
    flex: 1;
}
.bd-adoption-text strong {
    color: var(--text-bright);
}
.bd-adoption-link {
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent, #f9a61d);
    text-decoration: none;
    transition: opacity 0.15s;
}
@media (hover: hover) {
    .bd-adoption-link:hover {
        opacity: 0.8;
    }
}

/* ── Footer ──────────────────────── */
.bd-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.82rem;
    color: #6b7280;
}
.bd-footer a {
    color: var(--link);
    text-decoration: none;
}

/* ── Mobile ───────────────────────── */
@media (max-width: 600px) {
    .bd-hero {
        grid-template-columns: 1fr;
        padding: 1rem 1rem 0.75rem;
        gap: 1.25rem;
        text-align: center;
    }
    .bd-hero::before { border-radius: 0.75rem; }
    .bd-hero-visual { min-height: 0; aspect-ratio: 3 / 2; height: auto; }
    .bd-mosaic { gap: 0.2rem; width: calc(100% - 3.75rem); margin-left: 3.75rem; padding: 0.75rem 0.35rem 0.5rem; }
    .bd-mosaic-row { gap: 0.2rem; }
    .bd-mosaic-row:last-child { width: calc(100% + 4.1rem + 0.35rem); margin-left: -4.1rem; margin-right: -0.35rem; padding: 0 0.35rem; }
    .bd-mosaic-badge { width: 3.4rem; height: 3.4rem; }
    .bd-hero-content { padding: 0 0.35rem 1rem; align-items: flex-end; }
    .bd-hero h1 {
        font-size: 1.395rem;
        text-align: right;
        align-self: stretch;
    }
    .bd-hero-stats { margin: 1rem auto 0; }
    .bd-grid {
        grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    }
    .bd-avatar {
        width: 8rem;
        height: 8rem;
    }
    .bd-filter {
        padding-top: 0.75rem;
        gap: 0.5rem;
    }
    .bp-similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Breeds hub page (.bh-*)
   ═══════════════════════════════════════════════════════════════════ */

.bh {
    max-width: 60rem;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

/* ── Hero (two-column grid) ───────────────────────── */
.bh-hero {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.25rem 1.25rem 1.25rem 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    text-align: start;
    display: grid;
    grid-template-columns: minmax(18rem, 0.9fr) minmax(20rem, 1.1fr);
    gap: 2.5rem;
    align-items: stretch;
}
.bh-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--border);
    border-radius: 1rem;
    pointer-events: none;
}
.bh-hero-visual-wrap { position: relative; z-index: 1; }
.bh-hero-visual { height: 100%; min-height: 14rem; position: relative; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 0.75rem; overflow: hidden; -webkit-mask: radial-gradient(circle 5rem at 0 0, transparent 0 99%, #000 100%); mask: radial-gradient(circle 5rem at 0 0, transparent 0 99%, #000 100%); }
.bh-hero-visual > * { position: relative; }
.bh-site-logo {
    height: 2.75rem;
    width: auto;
}
.bh-site-logo-link {
    position: absolute;
    width: 4.6rem;
    height: 4.6rem;
    top: -0.55rem;
    left: -0.55rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ── Source logo mosaic ── */
.bh-logo-visual { width: 100%; height: 100%; min-height: 12rem; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 0.45rem; padding: 1rem 0.75rem 0.75rem; box-sizing: border-box; margin-left: 5rem; width: calc(100% - 5rem); direction: rtl; }
.bh-source-hero-row { display: flex; align-items: center; justify-content: space-evenly; gap: 0.9rem; min-width: 0; }
.bh-source-hero-row:last-child { width: calc(100% + 5.75rem + 0.75rem); margin-left: -5.75rem; margin-right: -0.75rem; padding: 0 0.75rem; box-sizing: border-box; }
.bh-source-hero-link { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.15s ease; }
@media (hover: hover) { .bh-source-hero-link:hover { transform: translateY(-2px); } }
.bh-source-hero-badge { width: 4.1rem; height: 4.1rem; flex-shrink: 0; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.bh-source-hero-logo { width: 2.95rem; height: 2.95rem; object-fit: contain; border-radius: 0.25rem; }
/* breed-photo mosaic: match listing card avatar style */
.bh--breeds .bh-source-hero-badge { align-items: flex-end; }
.bh--breeds .bh-source-hero-logo { width: 80%; height: auto; max-height: 90%; object-fit: contain; border-radius: 0; }
/* ── Hero content ── */
.bh-hero-content { min-width: 0; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.bh-hero-meta { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; direction: rtl; }
.bh-hero-category { color: var(--accent); font-size: 0.78rem; font-weight: 700; }
.bh-hero h1 {
    width: 100%;
    margin: 0.7rem 0 0;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    color: var(--text-bright);
    line-height: 1.18;
    text-align: right;
}
@media (min-width: 601px) { .bh-hero h1 { font-size: 30px !important; } }
.bh-hero-desc { font-size: 0.85rem; color: #9ca3af; line-height: 1.55; margin: 0.75rem 0 0; max-width: 32rem; }
.bh-hero-stats { width: 100%; display: flex; align-items: baseline; justify-content: flex-end; gap: 0.65rem; margin: auto 0; margin-top: 4rem; text-align: center; }
/* ── Hero stats (count-up, shared with product page) ── */
.cp-stats { display: inline-flex; align-items: baseline; justify-content: center; gap: 0.65rem; flex-wrap: nowrap; margin: 0.5rem 0 0.25rem; }
.cp-stat { display: inline-flex; align-items: baseline; gap: 0.35rem; font-size: 0.9rem; font-weight: 500; color: var(--text-bright); }
.cp-stat-num { font-size: 1.3rem; font-weight: 800; color: var(--accent); line-height: 1; direction: ltr; }
.cp-stat-sep { align-self: center; width: 1px; height: 0.9em; background: var(--border); border-radius: 1px; flex-shrink: 0; }

/* ── Two-card grid ────────────────── */
.bh-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.bh-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.75rem 1rem 1.5rem;
    transition:
        border-color 0.2s,
        transform 0.15s,
        box-shadow 0.2s;
    overflow: hidden;
    text-align: center;
    position: relative;
}
@media (hover: hover) {
    .bh-card:hover {
        border-color: var(--accent);
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(167, 139, 250, 0.12);
    }
}
.bh-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-top: 0.2rem;
    margin-bottom: 0.15rem;
}
.bh-card-count {
    font-size: 0.8rem;
    color: #9ca3af;
}
.bh-avatar {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border: 3px solid var(--border);
    transition: border-color 0.2s;
    flex-shrink: 0;
}
@media (hover: hover) {
    .bh-card:hover .bh-avatar {
        border-color: var(--accent);
    }
}
.bh-avatar img {
    width: 80%;
    max-height: 90%;
    object-fit: contain;
}

/* ── Staggered image gallery (adoption hub cards) ── */
.bh-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.35rem;
    width: 11rem;
    height: 11rem;
    margin: 0 auto 0.15rem;
    padding: 0.5rem;
}
.bh-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0.5rem;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
}
.bh-gallery-img--0 { transform: rotate(-3deg) translateY(2px); }
.bh-gallery-img--1 { transform: rotate(2deg) translateY(-1px); }
.bh-gallery-img--2 { transform: rotate(-1deg) translateY(-3px); }
.bh-gallery-img--3 { transform: rotate(3deg) translateY(1px); }
@media (hover: hover) {
    .bh-card:hover .bh-gallery-img {
        box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    }
    .bh-card:hover .bh-gallery-img--0 { transform: rotate(-1deg) translateY(0); }
    .bh-card:hover .bh-gallery-img--1 { transform: rotate(0deg) translateY(0); }
    .bh-card:hover .bh-gallery-img--2 { transform: rotate(1deg) translateY(0); }
    .bh-card:hover .bh-gallery-img--3 { transform: rotate(-2deg) translateY(0); }
}

/* ── Mobile ───────────────────────── */
@media (max-width: 600px) {
    .bh-hero {
        grid-template-columns: 1fr;
        padding: 1rem 1rem 0.75rem;
        gap: 1.25rem;
        text-align: center;
    }
    .bh-hero-visual { min-height: 0; aspect-ratio: 3 / 2; height: auto; }
    .bh-logo-visual { gap: 0.2rem; width: calc(100% - 3.75rem); margin-left: 3.75rem; padding: 0.75rem 0.35rem 0.5rem; }
    .bh-source-hero-row { gap: 0.2rem; }
    .bh-source-hero-row:last-child { width: calc(100% + 4.1rem + 0.35rem); margin-left: -4.1rem; margin-right: -0.35rem; padding: 0 0.35rem; }
    .bh-source-hero-badge { width: 3.4rem; height: 3.4rem; }
    .bh-source-hero-logo { width: 2.4rem; height: 2.4rem; }
    .bh-hero-content { padding: 0 0.35rem 1rem; align-items: flex-end; }
    .bh-hero h1 {
        font-size: 1.395rem;
        text-align: right;
        align-self: stretch;
    }
    .bh-hero-stats { margin: 1rem auto 0; }
    .bh-avatar {
        width: 6rem;
        height: 6rem;
    }
    .bh-gallery {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
    .bh-card {
        padding: 1rem 0.4rem 0.75rem;
    }
    .bh-card-title {
        font-size: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Logo marquee (shared across hub pages)
   ═══════════════════════════════════════════════════════════════════ */

@keyframes stores-scroll { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(50%, 0, 0); } }
.cp-stores-marquee { margin-top: 1rem; overflow: hidden; padding: 0.5rem 0; width: 100%; mask-image: linear-gradient(to left, transparent, #000 3%, #000 97%, transparent); -webkit-mask-image: linear-gradient(to left, transparent, #000 3%, #000 97%, transparent); pointer-events: none; margin-inline: -0.75rem; width: calc(100% + 1.5rem); }
.cp-stores-marquee.is-static { mask-image: none; -webkit-mask-image: none; margin-inline: 0; width: 100%; }
.cp-stores-track { display: flex; gap: 1rem; width: max-content; animation: stores-scroll 120s linear infinite; animation-delay: 0.8s; will-change: transform; padding-inline-end: 4rem; }
.cp-stores-track.is-static { animation: none; justify-content: center; width: 100%; }
.cp-store-logo-item { flex-shrink: 0; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; padding: 0.45rem; border: 1px solid rgba(109, 40, 217, 0.5); box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.15s, border-color 0.15s; text-decoration: none; pointer-events: auto; }
@media (hover: hover) { .cp-store-logo-item:hover { transform: scale(1.1); border-color: rgba(109, 40, 217, 0.9); } }
.cp-store-logo-item img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 50%; }
@media (max-width: 600px) { .cp-stores-marquee { margin-top: 1rem; } }

/* ═══════════════════════════════════════════════════════════════════
   Share panel, disclaimer, back-to-top (shared)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Share Panel ─────────────────── */
.share-panel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.share-panel-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-bright);
}
.share-panel-buttons {
    display: flex;
    gap: 0.6rem;
}
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    transition:
        border-color 0.2s,
        transform 0.15s;
}
@media (hover: hover) {
    .share-btn:hover {
        border-color: var(--accent);
        transform: scale(1.1);
    }
}
.share-btn:active {
    border-color: var(--accent);
    transform: scale(0.95);
}
.share-btn img {
    width: 1.3rem;
    height: 1.3rem;
}
.share-btn img[src*="facebook"],
.share-btn img[src*="telegram"] {
    background: #fff;
    border-radius: 50%;
}

/* ── Back to top ────────────────── */
.back-to-top {
    display: block;
    text-align: center;
    color: #9ca3af;
    font-size: 0.8rem;
    margin-top: 1.25rem;
    text-decoration: none;
}
@media (hover: hover) {
    .back-to-top:hover {
        color: var(--accent);
    }
}

/* ── Disclaimer ────────────────── */
.disclaimer {
    margin-top: 1.25rem;
    padding: 1.25rem 1.5rem 0 1.5rem;
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.6;
}
.disclaimer strong {
    color: #9ca3af;
}

/* ── Recommended food cards (nutrition section, breedFoodCards.tsx) ──
   Single-column horizontal commerce card: padded white image tile | brand eyebrow + 2-line name
   + middot-separated facts | hairline-separated price + solid accent CTA.
   The name link stretches over the card (::after) so the whole card is one tap target;
   the CTA sits above the overlay as its own link. Phones (<=600px) keep the horizontal top row
   with a tighter 84px image tile and place price + CTA in a footer row under a hairline.
   Articles keep their own .product-row. */
.bp-food-list,
.bp-section .bp-food-list {
    list-style: none;
    margin: 0.85rem 0 1.35rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.bp-food-item,
.bp-section .bp-food-item {
    margin: 0;
    padding: 0;
    list-style: none;
}
.bp-food-card {
    position: relative;
    display: grid;
    grid-template-columns: 5.2rem minmax(0, 1fr) auto;
    grid-template-areas: "media body foot";
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.bp-food-card:focus-within {
    border-color: var(--accent);
}
@media (hover: hover) {
    .bp-food-card:hover {
        border-color: var(--accent);
        background-color: #191f2a;
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    }
    .bp-food-card:hover .bp-food-name {
        color: var(--accent);
    }
    .bp-food-card:hover .bp-food-cta {
        background: #ffb436;
        box-shadow: 0 4px 14px rgba(249, 166, 29, 0.3);
    }
    .bp-food-card:hover .bp-food-cta-arrow {
        transform: translateX(2px);
    }
}
.bp-food-card:active {
    border-color: var(--accent);
    transform: translateY(0);
}
.bp-food-media {
    grid-area: media;
    width: 5.2rem;
    height: 5.2rem;
    background: #fff;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.bp-food-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.bp-food-img--empty {
    background: #e5e7eb;
    border-radius: 0.35rem;
}
.bp-food-body {
    grid-area: body;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.bp-food-brand {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.25;
    letter-spacing: 0.01em;
}
.bp-food-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-bright);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.bp-food-link {
    color: inherit;
    text-decoration: none;
}
.bp-food-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 0.85rem;
}
.bp-food-link:focus-visible {
    outline: none;
}
.bp-food-card:has(.bp-food-link:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.bp-food-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #9ca3af;
}
.bp-food-fact {
    white-space: nowrap;
}
.bp-food-fact--stores {
    color: var(--text);
    font-weight: 600;
}
.bp-food-sep {
    color: #6b7280;
    user-select: none;
}
.bp-food-foot {
    grid-area: foot;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.55rem;
    padding-inline-start: 1.15rem;
    border-inline-start: 1px solid var(--border);
    flex-shrink: 0;
}
.bp-food-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    color: var(--accent);
    line-height: 1.15;
    white-space: nowrap;
}
.bp-food-price-prefix {
    font-size: 0.78rem;
    font-weight: 500;
    color: #9ca3af;
}
.bp-food-price-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
}
.bp-food-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.15rem;
    padding: 0.4rem 0.95rem;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    color: #141415;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 0.6rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.bp-food-cta-arrow {
    font-size: 1.1em;
    line-height: 1;
    transition: transform 0.15s ease;
}
.bp-food-cta:focus-visible {
    outline: 2px solid var(--text-bright);
    outline-offset: 2px;
    background: #ffb436;
}
@media (max-width: 600px) {
    .bp-food-card {
        grid-template-columns: 5.5rem minmax(0, 1fr);
        grid-template-areas:
            "media body"
            "foot foot";
        align-items: center;
        gap: 0.75rem 0.85rem;
        padding: 0.85rem;
    }
    .bp-food-media {
        width: 5.5rem;
        height: 5.5rem;
        padding: 0.35rem;
    }
    .bp-food-name {
        font-size: 0.96rem;
    }
    .bp-food-facts {
        font-size: 0.8rem;
        gap: 0.35rem;
    }
    .bp-food-foot {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-inline-start: 0;
        border-inline-start: none;
        padding-top: 0.7rem;
        border-top: 1px solid var(--border);
    }
    .bp-food-price-amount {
        font-size: 1.25rem;
    }
    .bp-food-cta {
        min-height: 2.4rem;
        padding: 0.45rem 0.95rem;
        font-size: 0.84rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Fish (aquarium species) - shared breed layouts
   ═══════════════════════════════════════════════════════════════════ */

.fish-avatar-fallback,
.fish-hero-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: 700;
    color: #475569;
    background: linear-gradient(140deg, rgba(56, 189, 248, 0.22), rgba(14, 116, 144, 0.1));
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fish-avatar-fallback {
    font-size: 1.6rem;
    align-items: center;
    height: 100%;
}

.fish-hero-fallback {
    font-size: 3rem;
    border-radius: 50%;
}

.fish-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: #9ca3af;
}

.fish-card-meta-sep {
    color: #cbd5e1;
}

/* Hero mosaic badge showing a species name (used until fish photos exist) */
.fish-mosaic-badge {
    width: auto;
    height: auto;
    min-width: 4.1rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: visible;
}

/* Fish hub: three water-type cards */
.bh-grid--three {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .bh-grid--three {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .bh-grid--three {
        grid-template-columns: 1fr;
    }
}

.fish-group-count {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    direction: ltr;
}

.fish-group-count-label {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 0.1rem;
    margin-bottom: 0.6rem;
}

.fish-group-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.9rem;
}

.fish-group-chips span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.3rem 0.6rem;
    white-space: nowrap;
}

/* Water-type page: heading above the fish-group cards */
.fish-subcats-title {
    margin: 1.75rem 0 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-bright);
    text-align: center;
}
/* ── Related articles ────────────── */
.bp-related-articles { margin-top: 1rem; }
.bp-related-header { display: flex; align-items: center; justify-content: space-between; margin: 0 0 0.5rem; }
.bp-related-header h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-bright); margin: 0; }
.bp-related-see-all { color: var(--accent); font-size: 0.85rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: opacity 0.2s; }
.bp-related-see-all:hover { opacity: 0.8; }
.bp-related-row { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 9rem; gap: 0.65rem; }
.bp-related-card { position: relative; border-radius: 0.75rem; overflow: hidden; cursor: pointer; text-decoration: none; border: 1px solid #374151; }
.bp-related-card:first-child { grid-row: span 2; }
.bp-related-card > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s ease; }
.bp-related-card:hover > img { transform: scale(1.09); }
.bp-related-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.5rem 0.75rem 0.6rem; background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.5) 65%, rgba(0,0,0,0.15) 80%, transparent 100%); }
.bp-related-title { font-size: 0.82rem; font-weight: 700; color: #f9fafb; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-related-card:first-child .bp-related-title { font-size: 1rem; font-weight: 800; -webkit-line-clamp: 3; }

/* Category + stats chips, mirroring the /blog listing cards: the category chip top-RIGHT
   (`.bc-tags-row`), the stats chips top-LEFT (`.bc-meta-left`). The title sits in the bottom
   overlay, so both stay in the top band. */
.bp-related-tag { position: absolute; top: 0.45rem; right: 0.45rem; z-index: 2; max-width: 45%; background: rgba(249, 166, 29, 0.9); color: #141415; padding: 0.1rem 0.45rem; border-radius: 1rem; font-size: 0.62rem; font-weight: 700; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.bp-related-stats { position: absolute; top: 0.45rem; left: 0.45rem; z-index: 2; display: flex; align-items: center; gap: 0.25rem; pointer-events: none; }
.bp-related-stat { background: rgba(0, 0, 0, 0.65); color: #e5e7eb; padding: 0.1rem 0.4rem; border-radius: 1rem; font-size: 0.58rem; font-weight: 600; line-height: 1.4; display: inline-flex; align-items: center; gap: 0.2rem; white-space: nowrap; }
.bp-related-stat svg { width: 0.62rem; height: 0.62rem; flex-shrink: 0; }
@media (max-width: 600px) {
    /* Half-width cards on phones: no room for three chips, keep category + views. */
    .bp-related-card:not(:first-child) .bp-related-stat + .bp-related-stat { display: none; }
}
@media (max-width: 600px) {
    .bp-related-row { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 8rem; }
    .bp-related-card:first-child { grid-column: span 2; grid-row: span 1; }
}
.bp-related-card .bc-reviewer { margin-bottom: 0; margin-top: 0.3rem; }
.bp-related-card .bc-reviewer-pic { width: 18px !important; height: 18px !important; max-width: 18px; max-height: 18px; min-width: 18px; min-height: 18px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--accent); margin-left: 0.3rem; flex-shrink: 0; }
.bc-reviewer { display: flex; align-items: center; flex-wrap: wrap; row-gap: 0.15rem; column-gap: 0; margin-bottom: 0.4rem; margin-top: 0.5rem; font-size: 0.78rem; color: #9ca3af; line-height: 1.4; }
.bc-reviewer-pic { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--accent); margin-left: 0.3rem; }
.bc-reviewer-label { color: var(--accent); font-weight: 700; margin-left: 0.25rem; }
.bc-reviewer-name { font-weight: 700; color: var(--text); }
.bc-reviewer-title { font-weight: bold; }

/* Podcast badge: marks a card whose article carries a podcast episode. Bottom-left, like the big blog
   cards (the top band holds the chips). The title overlay reserves the badge's width on its left
   edge (`.bc-podcast-badge ~ .bp-related-overlay`), so the badge never covers title text. */
.bc-podcast-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Smaller than the big card badge (2.4rem, see blog-page.css): these cards are compact. */
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--accent);
    color: #141415;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}
.bc-podcast-badge svg { width: 0.95rem; height: 0.95rem; }
.bc-podcast-badge ~ .bp-related-overlay { padding-left: 2.9rem; }

/* Phones: the related cards are ~half the width, so the badge shrinks with them. */
@media (max-width: 600px) {
    .bc-podcast-badge {
        width: 1.6rem;
        height: 1.6rem;
        bottom: 0.4rem;
        left: 0.4rem;
    }
    .bc-podcast-badge svg { width: 0.8rem; height: 0.8rem; }
    .bc-podcast-badge ~ .bp-related-overlay { padding-left: 2.35rem; }
}
.show-more-btn { display: block; width: fit-content; margin: 1.25rem auto 0; background: var(--surface); border: 1.5px solid var(--border); color: var(--accent, #f9a61d); font-weight: 700; font-size: 0.9rem; padding: 0.6rem 2rem; border-radius: 0.6rem; cursor: pointer; font-family: var(--font); transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.15s; box-shadow: 0 2px 8px rgba(0,0,0,0.06); touch-action: manipulation; }
@media (hover: hover) {
  .show-more-btn:hover { border-color: var(--accent); background: rgba(249,166,29,0.06); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(249,166,29,0.15); }
}
.show-more-btn:active { transform: translateY(0); }
/* ── Menu toggle button (matches .menu-icon-btn from React) ── */
.menu-toggle {
    background: transparent;
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 3.5vw, 16px);
    width: 2.34em;
    height: 2.34em;
    -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .menu-toggle:hover { background: #222325; }
}
.menu-toggle:active { background: #292c31; }
.menu-toggle-bars {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}
.menu-toggle .bar {
    width: 1.25em;
    height: 0.125em;
    background-color: #f9fafb;
    border-radius: 1px;
}

/* ── Side menu panel ───────────────── */
/* em units used inside panel so sizes are relative to this
   element's font-size (matching React's rem-based layout). */
.side-menu {
    position: fixed;
    top: 0;
    right: -21em;
    width: 21em;
    height: 100dvh;
    background-color: #1f2937;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease-in-out;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 1em 1.25em 0;
    font-size: clamp(14px, 3.5vw, 16px);
    line-height: normal;
    direction: ltr;
}
.side-menu.open { right: 0; }

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #374151;
    padding-bottom: 0.375em;
}
.side-menu-title {
    margin: 0;
    text-align: right;
    font-weight: 800;
    color: #f9fafb;
    font-size: 1.25em;
}
.menu-close-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .menu-close-btn:hover { background: #374151; }
}
.menu-close-btn:active { background: #292c31; }

.side-menu-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5em;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.side-menu-body::-webkit-scrollbar { display: none; }

.side-menu-item {
    background: none;
    border: none;
    padding: 0.57em 0.715em;
    text-align: right;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 700;
    transition: background-color 0.2s ease;
    color: #f9a61d;
    text-decoration: none;
    display: block;
    font-family: inherit;
}
.side-menu-item:hover { background-color: #374151; }

.side-menu-group {
    display: flex;
    flex-direction: column;
}
.side-menu-group-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45em;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
}
.side-menu-group-arrow {
    flex-shrink: 0;
    color: #9ca3af;
    transition: transform 0.2s ease, color 0.2s ease;
}
.side-menu-group-toggle:hover .side-menu-group-arrow,
.side-menu-group.expanded .side-menu-group-arrow {
    color: #f9a61d;
}
.side-menu-group.expanded .side-menu-group-arrow {
    transform: rotate(180deg);
}
.side-menu-subitems {
    display: none;
    flex-direction: column;
    padding-right: 0.9em;
    margin-right: 0.715em;
    border-right: 1px solid #374151;
}
.side-menu-group.expanded .side-menu-subitems {
    display: flex;
}
.side-menu-subitem {
    font-size: 0.95em;
    font-weight: 600;
    padding: 0.45em 0.6em;
    color: #fbbf24;
}

.side-menu-divider {
    border-top: 1px solid #374151;
    margin: 0.667em 0.715em 0;
    width: 50%;
    align-self: flex-end;
}
.side-menu-section-title {
    font-size: 1.05em;
    font-weight: 700;
    color: #d1d5db;
    padding: 0.475em 0.715em 0.285em;
    margin-top: 0.38em;
    text-align: right;
    letter-spacing: 0.03em;
}

.side-menu-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15em;
    padding: 0.5em 0.75em;
    border-top: 1px solid #374151;
}
.side-menu-footer-row {
    display: flex;
    align-items: center;
    gap: 0.4em;
}
.side-menu-footer-item {
    background: none;
    border: none;
    padding: 0.2em 0;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 400;
    transition: color 0.2s ease;
    color: #9ca3af;
    text-decoration: none;
    font-family: inherit;
}
.side-menu-footer-item:hover { color: #f9fafb; }
.side-menu-footer-sep { color: #4b5563; }

.side-menu-promo {
    display: block;
    margin: 0.5em 0.715em;
    padding: 0.6em 0.715em;
    background: rgba(167,139,250,0.08);
    border: 1px dashed rgba(167,139,250,0.5);
    border-radius: 8px;
    font-size: 0.9em;
    color: #d1d5db;
    text-align: center;
    text-decoration: none;
}
.side-menu-promo span { color: #f9a61d; font-weight: 700; }
.side-menu-promo:hover { background: rgba(167,139,250,0.14); }

/* ── Overlay ───────────────────────── */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}
.side-menu-overlay.open { display: block; }
/* ── Toolbar ──────────────────────── */
.toolbar {
    margin-top: -1.2rem;
    margin-bottom: 0;
    margin-right: -0.1em;
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
}
.toolbar-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.toolbar .breadcrumb {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.toolbar .breadcrumb a, .toolbar .breadcrumb span { unicode-bidi: isolate; }
.toolbar .breadcrumb a { color: var(--link); text-decoration: none; }
.toolbar .breadcrumb a:hover { text-decoration: underline; }
.toolbar .breadcrumb .bc-sep { color: #9ca3af; margin: 0 0.2rem; }
.hero-updated {
    display: block;
    font-size: 0.75rem;
    color: #a1aabd;
    background: rgba(107,114,128,0.1);
    padding: 0.15rem 0.55rem;
    border-radius: 0.3rem;
    white-space: nowrap;
    text-align: end;
    margin-top: 0;
    width: fit-content;
    align-self: flex-end;
}
.star-rating { display: inline-flex; align-items: center; direction: ltr; }
.star-rating svg { width: 1em; height: 1em; }
.star-rating-lg svg { width: 1.1em; height: 1.1em; }
.star-rating-sm svg { width: 0.9em; height: 0.9em; }
/* ── Share Panel ─────────────────────────── */

.share-panel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.share-panel-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-bright);
}

.share-panel-buttons {
    display: flex;
    gap: 0.6rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    transition:
        border-color 0.2s,
        transform 0.15s;
}

@media (hover: hover) {
    .share-btn:hover {
        border-color: var(--accent);
        transform: scale(1.1);
    }
}

.share-btn:active {
    border-color: var(--accent);
    transform: scale(0.95);
}

.share-btn img {
    width: 1.3rem;
    height: 1.3rem;
}

.share-btn img[src*="facebook"],
.share-btn img[src*="telegram"] {
    background: #fff;
    border-radius: 50%;
}
/* ═══════════════════════════════════════════════════════════════════
   SSR Common - Shared styles across all SSR pages
   ═══════════════════════════════════════════════════════════════════ */

/* ── SSR palette ──────────────────────────────────────────────────────
   SSR pages link the shared /static/base.css for the base palette
   (routes/ssr/styles/base.css). This file is bundled into every SSR page's
   cssPath, which the shell links AFTER base.css, so these tokens win on every
   SSR page. Blog ARTICLES do not load this override (they link ssr-common.css
   BEFORE base.css), so they use base.css's values. */
:root {
    --surface: #242d3d;
}

/* ── CTA Button (soft blob) ─────────────────── */
.ssr-cta {
    position: relative;
    z-index: 1;
    isolation: isolate;
    display: block;
    margin-inline: auto;
    width: fit-content;
    background: transparent;
    border: none;
    color: #fffbe6;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1.65rem;
    border-radius: 1.5rem 0.6rem 1.5rem 0.6rem;
    text-decoration: none;
    font-family: var(--font);
    transition: transform 0.25s, border-radius 0.4s, box-shadow 0.25s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.ssr-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(
        110deg,
        #c4b8f0,
        #b4a4e8,
        #a490e0,
        #bca8ec,
        #ccbcf4,
        #bca8ec,
        #a490e0,
        #b8a8e4,
        #c0b0ec,
        #b4a4e8,
        #c4b8f0
    );
    background-size: 300% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.72;
    animation: cp-ai-border-flow 12s linear infinite;
    pointer-events: none;
}
.ssr-cta::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: calc(1.5rem - 1px) calc(0.6rem - 1px) calc(1.5rem - 1px) calc(0.6rem - 1px);
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.92), rgba(147, 121, 240, 0.75), rgba(127, 109, 230, 0.72), rgba(167, 139, 250, 0.92));
    background-size: 300% 300%;
    animation: cp-ai-bg-shift 14s linear infinite;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    pointer-events: none;
    transition: border-radius 0.4s, background 0.25s;
}
@media (hover: hover) {
    .ssr-cta:hover {
        border-radius: 0.6rem 1.5rem 0.6rem 1.5rem;
        transform: translateY(-2px);
        background: transparent;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    }
    .ssr-cta:hover::after {
        border-radius: calc(0.6rem - 1px) calc(1.5rem - 1px) calc(0.6rem - 1px) calc(1.5rem - 1px);
        background: linear-gradient(135deg, rgba(167, 139, 250, 0.95), rgba(147, 121, 240, 0.8), rgba(127, 109, 230, 0.78), rgba(167, 139, 250, 0.95));
        background-size: 300% 300%;
        animation: cp-ai-bg-shift 14s linear infinite;
    }
}

@keyframes cp-ai-border-flow {
    to { background-position: 250% 0; }
}
@keyframes cp-ai-bg-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Sticky bottom CTA ──────────────── */
.cp-sticky-cta-wrap {
    position: sticky;
    bottom: 0.5rem;
    z-index: 10;
    margin: 1.5rem -0.625rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% + 1.25rem);
}
.cp-sticky-cta-wrap .ssr-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    margin-bottom: 0.25rem;
    padding: 0.35rem 2rem;
    text-shadow: none;
}
.cp-ai-cta-label {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.cp-sticky-cta-wrap .ssr-cta:focus-visible {
    outline: 3px solid rgba(96, 165, 250, 0.5);
    outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
    .cp-sticky-cta-wrap .ssr-cta::before,
    .cp-sticky-cta-wrap .ssr-cta::after {
        animation: none;
    }
}

/* ── Animatable custom properties for hero caustics ── */
@property --ray-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@property --ray-a {
    syntax: '<number>';
    initial-value: 0.7;
    inherits: false;
}
@property --ray-shift-1 {
    syntax: '<percentage>';
    initial-value: 0%;
    inherits: false;
}
@property --ray-shift-2 {
    syntax: '<percentage>';
    initial-value: 0%;
    inherits: false;
}
@property --ray-shift-3 {
    syntax: '<percentage>';
    initial-value: 0%;
    inherits: false;
}

/* ── Hero purple caustics glow ── */
/* Desktop: 3 PARALLEL light beams drawn as bands of a single linear-gradient (a conic
   fan can never be parallel); each beam slides on its own slow desynced sway
   (--ray-shift-1/2/3) like light through a shifting water surface. All purple-family.
   Mobile (<600px): same 3-beam background with its own mask + tilt cycle (below).
   NOTE: ::before is reserved for page-specific border overlays (e.g. .bp-hero::before).
   The animated caustics layer lives in ::after. */
/* ── Shared hero padding (providers + insurance) ── */
.ssr-hero-pad { padding: 1.25rem 1.25rem 1.25rem 2rem; }

.ssr-hero-glow {
    /* static base: faint radial wash from outside top-right + dark tint */
    background-image:
        radial-gradient(
            ellipse 140% 140% at 110% -8%,
            rgba(167, 139, 250, 0.18) 0%,
            rgba(139, 92, 246, 0.075) 40%,
            transparent 70%
        ),
        linear-gradient(
            rgba(0, 0, 0, 0.14),
            rgba(0, 0, 0, 0.14)
        );
}

/* animated caustics: 3 parallel beams (desktop) - mobile overrides with its own fan below */
.ssr-hero-glow::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    /* 3 parallel beams - soft-domed, each with its own slow sway offset.
       Layering trick: left/right beams are the separate TOP layer, the middle beam is
       the BOTTOM layer, and the water-depth fade sits BETWEEN them with
       "background-blend-mode: multiply" - so the fade can only darken the middle beam
       (light attenuating the deeper it travels into the card), never the left/right. */
    background:
        /* right beam only - the left ray is hidden on desktop (its band stops are removed;
           it stays active on mobile, see the mobile block below). */
        linear-gradient(
            calc(142deg + var(--ray-angle) * 1.5),
            transparent 0%,
            transparent calc(78.7% + var(--ray-shift-3)),
            rgba(167, 139, 250, 0.11) calc(82.6% + var(--ray-shift-3)),
            rgba(167, 139, 250, 0.20) calc(86.5% + var(--ray-shift-3)),
            rgba(167, 139, 250, 0.11) calc(90.4% + var(--ray-shift-3)),
            transparent calc(94.3% + var(--ray-shift-3))
        ),
        /* water-depth fade - multiplies ONLY the middle beam layer below it */
        linear-gradient(
            calc(232deg + var(--ray-angle) * 1.5),
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.08) 25%,
            rgba(0, 0, 0, 0.30) 55%,
            rgba(0, 0, 0, 0.65) 80%,
            rgba(0, 0, 0, 0.90) 100%
        ),
        /* middle beam - the only layer the depth fade touches */
        linear-gradient(
            calc(142deg + var(--ray-angle) * 1.5),
            transparent 0%,
            transparent calc(36.3% + var(--ray-shift-2)),
            rgba(139, 92, 246, 0.08) calc(41.4% + var(--ray-shift-2)),
            rgba(139, 92, 246, 0.28) calc(46.5% + var(--ray-shift-2)),
            rgba(139, 92, 246, 0.08) calc(51.6% + var(--ray-shift-2)),
            transparent calc(56.8% + var(--ray-shift-2))
        );
    background-blend-mode: normal, multiply, normal;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: var(--ray-a);
    /* fade rays as they spread away from origin - keeps them tight like real underwater caustics */
    -webkit-mask-image: radial-gradient(ellipse 320% 280% at 118% -12%, white 0%, rgba(255,255,255,0.85) 30%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0.25) 70%, transparent 90%);
    mask-image: radial-gradient(ellipse 320% 280% at 118% -12%, white 0%, rgba(255,255,255,0.85) 30%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0.25) 70%, transparent 90%);
    animation: hero-caustics 30s ease-in-out infinite;
}

@keyframes hero-caustics {
    0%   { --ray-angle: 0deg;   --ray-a: 0.32; }
    20%  { --ray-angle: 1.5deg; --ray-a: 0.38; }
    40%  { --ray-angle: -1deg;  --ray-a: 0.28; }
    60%  { --ray-angle: 2deg;   --ray-a: 0.37; }
    80%  { --ray-angle: -0.5deg;--ray-a: 0.30; }
    100% { --ray-angle: 0deg;   --ray-a: 0.32; }
}

/* Sway cycles for the 3 desktop beams - irregular keyframes + different periods/amplitudes
   so each ray drifts on its own rhythm (moving water surface), not a synchronized sweep. */
@keyframes hero-beam-sway-1 {
    0%   { --ray-shift-1: 2.6%; }
    18%  { --ray-shift-1: -0.8%; }
    41%  { --ray-shift-1: -3.6%; }
    63%  { --ray-shift-1: 0.4%; }
    82%  { --ray-shift-1: 3.2%; }
    100% { --ray-shift-1: 2.6%; }
}
@keyframes hero-beam-sway-2 {
    0%   { --ray-shift-2: -3.4%; }
    24%  { --ray-shift-2: 0.8%; }
    49%  { --ray-shift-2: 3.8%; }
    73%  { --ray-shift-2: -1.2%; }
    100% { --ray-shift-2: -3.4%; }
}
@keyframes hero-beam-sway-3 {
    0%   { --ray-shift-3: 1.2%; }
    21%  { --ray-shift-3: 3.8%; }
    46%  { --ray-shift-3: -0.6%; }
    68%  { --ray-shift-3: -4%; }
    100% { --ray-shift-3: 1.2%; }
}

/* Desktop motion: slow tilt/breathe (90s) + the desynced beam sways.
   hero-beam-sway-1 is intentionally NOT applied: the left ray is pinned (no sway).
   Mobile keeps its conic fan + hero-caustics-mobile at the base 30s. */
@media (min-width: 601px) {
    .ssr-hero-glow::after {
        animation: hero-caustics 90s ease-in-out infinite,
            hero-beam-sway-2 40s ease-in-out infinite,
            hero-beam-sway-3 29s ease-in-out infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ssr-hero-glow::after {
        animation: none;
        --ray-angle: 2deg;
        --ray-a: 0.34;
    }
}

/* ── Mobile: origin further outside for portrait layout ── */
@media (max-width: 600px) {
    .ssr-hero-pad { padding: 1rem 1rem 0.75rem; }
    .ssr-hero-glow {
        background-image:
            radial-gradient(
                ellipse 180% 160% at 110% -5%,
                rgba(167, 139, 250, 0.21) 0%,
                rgba(139, 92, 246, 0.09) 40%,
                transparent 70%
            ),
            linear-gradient(
                rgba(0, 0, 0, 0.14),
                rgba(0, 0, 0, 0.14)
            );
    }
    .ssr-hero-glow::after {
        /* same 3 parallel beams as desktop, on the portrait layout.
           Beam 1 sits higher (8.5%) so it runs through the card's top-left cutout area
           around the VETTED logo instead of being hidden behind the white brand panel.
           Depth fade applies to the middle beam only (same layering as desktop). */
        background:
            /* left + right beams - no depth fade */
            linear-gradient(
                calc(142deg + var(--ray-angle) * 1.5),
                transparent 0%,
                transparent calc(3.1% + var(--ray-shift-1)),
                rgba(139, 92, 246, 0.34) calc(5.8% + var(--ray-shift-1)),
                rgba(139, 92, 246, 0.45) calc(8.5% + var(--ray-shift-1)),
                rgba(139, 92, 246, 0.34) calc(11.2% + var(--ray-shift-1)),
                transparent calc(13.9% + var(--ray-shift-1)),
                transparent calc(78.7% + var(--ray-shift-3)),
                rgba(167, 139, 250, 0.10) calc(82.6% + var(--ray-shift-3)),
                rgba(167, 139, 250, 0.19) calc(86.5% + var(--ray-shift-3)),
                rgba(167, 139, 250, 0.10) calc(90.4% + var(--ray-shift-3)),
                transparent calc(94.3% + var(--ray-shift-3))
            ),
            /* water-depth fade - multiplies ONLY the middle beam layer below it
               (mobile variant: dimming now starts earlier and ends darker, so the
               beam visibly sinks as it travels deeper into the card) */
            linear-gradient(
                calc(232deg + var(--ray-angle) * 1.5),
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 0.07) 40%,
                rgba(0, 0, 0, 0.18) 65%,
                rgba(0, 0, 0, 0.34) 86%,
                rgba(0, 0, 0, 0.55) 100%
            ),
            /* middle beam - the only layer the depth fade touches */
            linear-gradient(
                calc(142deg + var(--ray-angle) * 1.5),
                transparent 0%,
                transparent calc(45.3% + var(--ray-shift-2)),
                rgba(139, 92, 246, 0.045) calc(50.4% + var(--ray-shift-2)),
                rgba(139, 92, 246, 0.285) calc(55.5% + var(--ray-shift-2)),
                rgba(139, 92, 246, 0.045) calc(60.6% + var(--ray-shift-2)),
                transparent calc(65.8% + var(--ray-shift-2))
            );
        background-blend-mode: normal, multiply, normal;
        -webkit-mask-image: radial-gradient(ellipse 240% 300% at 112% -5%, white 0%, rgba(255,255,255,0.85) 30%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0.25) 70%, transparent 90%);
        mask-image: radial-gradient(ellipse 240% 300% at 112% -5%, white 0%, rgba(255,255,255,0.85) 30%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0.25) 70%, transparent 90%);
        animation: hero-caustics-mobile 90s ease-in-out infinite,
            hero-beam-sway-2 40s ease-in-out infinite,
            hero-beam-sway-3 29s ease-in-out infinite;
    }
}

@keyframes hero-caustics-mobile {
    0%   { --ray-angle: 0deg;   --ray-a: 0.28; }
    20%  { --ray-angle: 5deg;   --ray-a: 0.32; }
    40%  { --ray-angle: -3deg;  --ray-a: 0.23; }
    60%  { --ray-angle: 7deg;   --ray-a: 0.30; }
    80%  { --ray-angle: -2deg;  --ray-a: 0.24; }
    100% { --ray-angle: 0deg;   --ray-a: 0.28; }
}

@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
    .ssr-hero-glow::after {
        animation: none;
        --ray-angle: 2deg;
        --ray-a: 0.28;
    }
}

/* ── Shared card glow (all SSR cards) ──
   Every SSR card carries the same purple light. It reads like a beam: the pool is
   anchored just outside the card's BOTTOM-LEFT corner, with one slim parallel beam
   at 322deg (the vertical mirror of the hero's 142deg family) leaving that corner.
   Tuned to read as LIGHT rather than a wash: steep pool falloff, a 5-stop beam dome
   with soft shoulders, and an asymmetric edge highlight (bottom edge catches the
   light, left edge only grazes it). Static, no animation.

   WHERE it goes: on the CONTENT box of cards that have a light image/logo header
   (the light would be invisible over white), or on the card itself when the card is
   dark all over. `.ssr-card-glow` remains for ad-hoc opt-in on anything not listed.

   Painted on ::after because page CSS is concatenated AFTER this file, so a
   page-level `background` shorthand would wipe anything painted on the element
   itself. None of the elements below use ::after for anything else (only tooltips,
   the hero glow layers and `.faq-item summary` do).
   NOTE: never add elements that are absolutely positioned by their own component CSS
   (e.g. `.bp-related-overlay`, which pins the related-articles text over the photo) -
   the `position: relative` below would win the cascade and break their layout. */
.ssr-card-glow,
.pc-body,
.bc-body,
.sc-header,
.ic-body,
.ac-body,
.cc-header,
.calc-card-body,
.filters,
.cp-filter,
.bp-filter,
.wp-filter,
.ap-filter,
.product-section,
.bp-bottom-card,
.sd-cat,
.wp-card,
.wp-term-def,
.bh-card,
.bd-card,
.bd-filter,
.bd-adoption-cta,
.bp-section,
.bp-toc,
.bp-similar-card,
.bp-proscons-col,
.bp-attribution,
.plan-card,
.detail-card,
.spec-item,
.calc-result,
.calc-step-card,
.cb-card,
.cp-related-card {
    position: relative;
    isolation: isolate;
}
.ssr-card-glow::after,
.pc-body::after,
.bc-body::after,
.sc-header::after,
.ic-body::after,
.ac-body::after,
.cc-header::after,
.calc-card-body::after,
.filters::after,
.cp-filter::after,
.bp-filter::after,
.wp-filter::after,
.ap-filter::after,
.product-section::after,
.bp-bottom-card::after,
.sd-cat::after,
.wp-card::after,
.wp-term-def::after,
.bh-card::after,
.bd-card::after,
.bd-filter::after,
.bd-adoption-cta::after,
.bp-section::after,
.bp-toc::after,
.bp-similar-card::after,
.bp-proscons-col::after,
.bp-attribution::after,
.plan-card::after,
.detail-card::after,
.spec-item::after,
.calc-result::after,
.calc-step-card::after,
.cb-card::after,
.cp-related-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        /* light pool: anchored outside the bottom-left corner, steep falloff */
        radial-gradient(
            ellipse 95% 125% at -10% 122%,
            rgba(167, 139, 250, 0.145) 0%,
            rgba(139, 92, 246, 0.035) 35%,
            rgba(139, 92, 246, 0) 72%
        ),
        /* slim beam with soft shoulders (dome, not a flat ramp). Band centred so its
           isoline passes just inside the bottom-left corner: the beam then reads as a
           diagonal sweep leaving the light pool instead of a stray streak. */
        linear-gradient(
            322deg,
            rgba(139, 92, 246, 0) 10%,
            rgba(139, 92, 246, 0.014) 30%,
            rgba(139, 92, 246, 0.03) 58%,
            rgba(139, 92, 246, 0.014) 86%,
            rgba(139, 92, 246, 0) 100%
        );
    /* edge highlight: bottom edge catches the light, left edge only grazes it */
    box-shadow:
        inset 0 -1px 0 rgba(167, 139, 250, 0.11),
        inset 1px 0 0 rgba(167, 139, 250, 0.06);
}

/* ── Back to top link ──────────────── */
.back-to-top { display: block; text-align: center; color: #9ca3af; font-size: 0.8rem; margin-top: 1.25rem; text-decoration: none; }
.back-to-top:hover { color: var(--accent); }

/* ── Shared SSR footer wrap (injected by createSSRPage via the `footer` option) ── */
/* Negative top margin compensates the page wrapper's bottom padding (all SSR page wrappers use `padding: ... 4rem`), which used to come AFTER the footer when it was rendered inside the wrapper. The footer's own first-child margins (related articles 1rem / share panel 2.5rem) now provide the visual gap. */
/* Default width matches the most common page wrapper (56rem); pages with other wrapper widths override via `~` sibling selectors in their own CSS (e.g. `.wp-page ~ .ssr-footer-wrap { max-width: 72rem }`, `.pp-page ~ .ssr-footer-wrap { max-width: 60rem }`). NOTE: rem scales with the root font (clamp up to 20px on desktop), so a fixed-rem footer can exceed the viewport on narrow windows - sibling overrides keep it aligned with the content column. */
.ssr-footer-wrap { max-width: 56rem; margin: -4rem auto 0; padding: 0 1.5rem 3rem; }
/* ── AI disclaimer (unified boxed look for ALL footer disclaimers) ── */
.ai-disclaimer {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.6;
    text-align: center;
}
.ai-disclaimer a { color: var(--link); text-decoration: none; }
@media (hover: hover) { .ai-disclaimer a:hover { text-decoration: underline; } }
@media (max-width: 600px) {
    /* blog/podcast/wiki wrappers drop to 3rem bottom padding on mobile */
    .ssr-footer-wrap { margin-top: -3rem; padding: 0 1rem 2rem; }
}

/* ── Insurance compare banner (internal link to /insurance) ── */
.ap-insurance-banner { position: relative; overflow: hidden; background: linear-gradient(135deg, #1a1708 0%, #2a2210 50%, #1f2937 100%); border: 1.5px solid var(--accent); border-radius: 1rem; padding: 1.5rem 1.75rem; margin-bottom: 1rem; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem 1.25rem; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; box-shadow: 0 4px 20px rgba(249, 166, 29, 0.08); }
.ap-insurance-banner::before { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(from 0deg, transparent 0%, rgba(249, 166, 29, 0.04) 10%, transparent 20%); animation: ap-banner-rotate 8s linear infinite; pointer-events: none; }
@keyframes ap-banner-rotate { to { transform: rotate(360deg); } }
.ap-insurance-banner:hover { border-color: #fbbf24; }
.ap-insurance-banner-icon { width: 2.5rem; height: 2.5rem; flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(249, 166, 29, 0.4)); }
.ap-insurance-banner-body { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; min-width: 0; position: relative; z-index: 1; }
.ap-insurance-banner-footer { display: flex; align-items: center; gap: 1rem; width: 100%; position: relative; z-index: 1; margin-top: 1rem; padding-right: 3.75rem; }
.ap-insurance-banner-title { color: #fff; font-size: 1.3rem; font-weight: 800; line-height: 1.5; }
.ap-insurance-banner-desc { color: #d1d5db; font-size: 0.9rem; line-height: 1.5; }
.ap-insurance-banner-btn { display: inline-flex; align-items: center; gap: 0.4rem; background: linear-gradient(135deg, #f9a61d 0%, #e8950a 100%); color: #1a1708; font-size: 0.85rem; font-weight: 800; padding: 0.5rem 1.1rem; border-radius: 2rem; width: fit-content; transition: background 0.2s, transform 0.15s; box-shadow: 0 2px 10px rgba(249, 166, 29, 0.25); white-space: nowrap; flex-shrink: 0; text-decoration: none; }
.ap-insurance-banner-btn:hover { background: linear-gradient(135deg, #fbbf24 0%, #f9a61d 100%); transform: scale(1.03); }
.ap-insurance-banner-providers { display: flex; gap: 0.5rem; align-items: center; flex: 1; padding-right: 0rem; padding-bottom: 0.5rem; }
.ap-insurance-banner-providers .ap-insurance-circle { height: 2rem; width: 2rem; border-radius: 50%; scale: 1.6; background: #fff; border: 1px solid var(--border); overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ap-insurance-banner-providers .ap-insurance-circle img { width: 150%; height: 150%; object-fit: contain; transform: translateY(16%); }
.ap-dryfood-banner .ap-insurance-circle img { transform: scale(0.5); }
@media (max-width: 600px) {
    .ap-insurance-banner { flex-direction: row; flex-wrap: wrap; text-align: right; align-items: flex-start; padding: 1rem; gap: 0.6rem 0.6rem; }
    .ap-insurance-banner-icon { width: 1.6rem; height: 1.6rem; filter: none; align-self: flex-start; margin-top: 0.15rem; }
    .ap-insurance-banner-body { width: 100%; }
    .ap-insurance-banner-footer { width: 100%; gap: 0.6rem; padding-right: 0; margin-top: 1.7rem; }
    .ap-insurance-banner-btn { font-size: 0.8rem; padding: 0.4rem 0.9rem; }
    .ap-insurance-banner-providers { justify-content: flex-start; padding-right: 1rem;}
    .ap-insurance-banner-desc { font-size: 0.8rem; }
}

/* ── Product rows (articles + breed pages) ──
   Horizontal image + text cards. Both bundles load this file, so the breed
   recommendation row reuses the article card instead of a near-copy. */

.product-row-list {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.product-row {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    padding: 1rem;
}

.product-row-image-link {
    display: block;
}

.product-row-image {
    width: 100%;
    height: 9.5rem;
    object-fit: contain;
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.65rem;
}

.product-row-body h3 {
    margin: 0;
    font-size: 1.08rem;
}

.product-row-body p {
    margin: 0;
}

.product-row-meta {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.product-row-price {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.35rem 0 0.65rem;
    flex-wrap: wrap;
}

.product-row-price-value {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.product-row-size {
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 400;
}

@media (max-width: 720px) {
    .product-row {
        grid-template-columns: 1fr;
    }

    .product-row-image {
        max-width: 14rem;
        margin: 0 auto;
    }
}
/* ═══════════════════════════════════════════════════════════════════
   Campaign slots - banner / card / generic renderers
   ═══════════════════════════════════════════════════════════════════

   Served from /campaigns/campaign.css (campaignCssController). Page CSS files
   aggregate this via routes/ssr/campaignStyles.ts when a page wires a campaign
   placement.

   Class-name contract (do not break):
   - Campaign markup must NOT reuse `.pc`, `.bc`, `.ap-insurance-banner`,
     `.ap-dryfood-banner`, `promo-banner--link`, or any class ending in `-cta`.
     Those selectors belong to existing SSR impression/click observers and would
     double-fire their events (see docs/analytics/event-tracking.md).
   - Keep the `data-campaign-*` attributes on the OUTER element: campaignTracking
     observes it for impressions and resolves clicks from it. */

/* ── Shared ─────────────────────────────────────────────────────────── */
.campaign-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(249, 166, 29, 0.16);
    border: 1px solid rgba(249, 166, 29, 0.55);
    color: #fbbf24;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    line-height: 1.6;
    white-space: nowrap;
}

.campaign-badge--overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.65);
}

.campaign-disclaimer {
    display: block;
    font-size: 0.7rem;
    color: #9ca3af;
    line-height: 1.5;
}

/* ── Banner ─────────────────────────────────────────────────────────── */
.campaign-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #1a1708 0%, #2a2210 50%, #1f2937 100%);
    border: 1.5px solid rgba(249, 166, 29, 0.5);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(249, 166, 29, 0.08);
}

.campaign-banner:hover {
    border-color: #fbbf24;
}

.campaign-banner-img {
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

/* Image-only banner (`bannerImage`): the artwork fills the box and the whole box is the link. */
.campaign-image-banner {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1.5px solid rgba(249, 166, 29, 0.5);
    line-height: 0;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.campaign-image-banner:hover {
    border-color: #fbbf24;
}

.campaign-image-banner:active {
    transform: scale(0.995);
}

/* Responsive creative wrapper: transparent to layout, the inner <img> keeps its own rules. */
.campaign-media {
    display: block;
    width: 100%;
    height: 100%;
}

/* ── The band: ONE size for EVERY banner slot ──────────────────────────
   14rem (280px at the app's 20px root size) on desktop, a 3:2 block under 600px, `object-fit:
   cover` so the middle of the 1200x400 artwork survives both crops. This is the only place a slot's
   height is declared: a page bundle must NOT add its own band rule, it only spans the row
   (`grid-column: 1 / -1`) or adds a margin. Changing the band here changes every campaign slot at
   once, including the blog-article copies (this file is inlined into the article head by
   `campaigns/articleCampaign.ts`). See `docs/architecture/campaign-slots.md` invariant 3. */
.campaign-image-banner-img {
    display: block;
    width: 100%;
    height: 14rem;
    object-fit: cover;
}

@media (max-width: 600px) {
    .campaign-image-banner-img {
        height: auto;
        aspect-ratio: 3 / 2;
    }
}

/* The blog-ARTICLE copies get a SHORTER band than every other slot: the ~840px reading column makes
   the common 14rem band read as a very tall slab, so an article keeps the original 12rem (240px)
   height. The fit stays the shared centre crop (`cover`) and DESKTOP ONLY is overridden - on mobile
   the base `height: auto; aspect-ratio: 3 / 2` block applies unchanged. Scoped by the article-only
   wrapper class `.ba-campaign-banner` (it exists nowhere else). */
@media (min-width: 601px) {
    .ba-campaign-banner .campaign-image-banner-img {
        height: 12rem;
    }
}

.campaign-banner-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1 1 14rem;
    min-width: 0;
}

.campaign-banner-title {
    color: #fffbe6;
    font-weight: 700;
    font-size: 1.05rem;
}

.campaign-banner-subtitle {
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.9rem;
}

.campaign-banner-desc {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.6;
}

.campaign-banner-btn {
    flex-shrink: 0;
    background: var(--accent, #f9a61d);
    color: #1a1708;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1.4rem;
    border-radius: 1.5rem 0.6rem 1.5rem 0.6rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.campaign-banner-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(249, 166, 29, 0.28);
}

/* ── Card ───────────────────────────────────────────────────────────── */
.campaign-card {
    position: relative;
    background: var(--surface, #242d3d);
    border: 1.5px solid rgba(249, 166, 29, 0.35);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.campaign-card:hover {
    transform: translateY(-2px);
    border-color: #fbbf24;
}

.campaign-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.campaign-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #1a1708;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.campaign-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campaign-card-initial {
    color: #fbbf24;
    font-size: 2.5rem;
    font-weight: 700;
}

.campaign-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0.85rem 0.9rem;
    flex: 1;
}

.campaign-card-title {
    color: #fffbe6;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.4;
}

.campaign-card-subtitle {
    color: #d1d5db;
    font-size: 0.85rem;
    line-height: 1.5;
}

.campaign-card-btn {
    margin-top: auto;
    align-self: flex-start;
    background: rgba(249, 166, 29, 0.14);
    border: 1px solid rgba(249, 166, 29, 0.5);
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
}

/* ── Generic fallback ───────────────────────────────────────────────── */
.campaign-generic {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(167, 139, 250, 0.06);
    border: 1px dashed rgba(167, 139, 250, 0.45);
    border-radius: 0.85rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.campaign-generic-img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
    border-radius: 0.6rem;
    flex-shrink: 0;
}

.campaign-generic-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.campaign-generic-title {
    color: #fffbe6;
    font-weight: 700;
    font-size: 0.95rem;
}

.campaign-generic-subtitle {
    color: #c4b5fd;
    font-size: 0.85rem;
}

.campaign-generic-desc {
    color: #d1d5db;
    font-size: 0.85rem;
    line-height: 1.55;
}

.campaign-generic-btn {
    flex-shrink: 0;
    background: var(--accent, #f9a61d);
    color: #1a1708;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
}
