/* Breed Guide — page-specific presentation */
/* ── Hero ────────────────────────────────────────────── */
    .breeds-hero {
        background: var(--charcoal2);
        padding: 4rem var(--gap-lg) 3rem;
        text-align: center;
        border-bottom: 1px solid var(--border);
        width: 100%;
        box-sizing: border-box;
    }
    .breeds-hero-label {
        font-size: .63rem;
        font-weight: 500;
        letter-spacing: .18em;
        text-transform: uppercase;
        color: var(--sage-lt);
        margin-bottom: .75rem;
    }
    .breeds-hero-title {
        font-family: 'Cormorant Garamond', serif;
        font-size: 3rem;
        font-weight: 300;
        color: var(--cream);
        margin-bottom: 1rem;
        line-height: 1.1;
    }
    .breeds-hero-title em { font-style: italic; color: var(--terra-lt); }
    .breeds-hero-sub {
        font-size: .9rem;
        color: var(--sage-lt);
        max-width: 520px;
        margin: 0 auto;
        line-height: 1.7;
    }

    /* ── Toolbar ─────────────────────────────────────────── */
    .breeds-toolbar {
        display: flex;
        gap: .65rem;
        flex-wrap: wrap;
        align-items: center;
        margin-bottom: var(--gap-md, 1.25rem);
        padding: .85rem 1rem;
        background: var(--cream);
        border: 1px solid var(--border-dark);
        border-radius: var(--radius);
    }
    .breeds-toolbar select,
    .breeds-toolbar input[type="text"] {
        font-size: .82rem;
        padding: .4rem .65rem;
    }
    .breeds-toolbar input[type="text"] { min-width: 180px; flex: 1; }
    .breeds-toolbar select             { min-width: 140px; }
    .filter-label {
        font-size: .65rem;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--charcoal-60, #888);
        white-space: nowrap;
    }
    .view-toggle {
        display: flex;
        gap: 2px;
        margin-left: auto;
        background: var(--parchment);
        border: 1px solid var(--border-dark);
        border-radius: var(--radius);
        padding: 2px;
    }
    .view-btn {
        background: none;
        border: none;
        border-radius: calc(var(--radius) - 2px);
        padding: .3rem .6rem;
        cursor: pointer;
        color: var(--charcoal-60);
        font-size: .85rem;
        transition: all .15s;
        line-height: 1;
    }
    .view-btn.active {
        background: var(--cream);
        color: var(--charcoal);
        box-shadow: 0 1px 3px rgba(0,0,0,.1);
    }
    .view-btn:hover:not(.active) { color: var(--charcoal); }

    /* ── Count ───────────────────────────────────────────── */
    .breeds-count {
        font-size: .75rem;
        color: var(--charcoal-60, #888);
        margin-bottom: .65rem;
    }

    /* ── Table view ──────────────────────────────────────── */
    .breeds-table-wrap {
        overflow-x: auto;
        border: 1px solid var(--border-dark);
        border-radius: var(--radius);
        background: var(--cream);
    }
    .breeds-table {
        width: 100%;
        border-collapse: collapse;
        font-size: .82rem;
    }
    .breeds-table thead th {
        background: var(--parchment);
        font-size: .65rem;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--charcoal-60);
        padding: .65rem .85rem;
        text-align: left;
        border-bottom: 1px solid var(--border-dark);
        white-space: nowrap;
        cursor: pointer;
        user-select: none;
    }
    .breeds-table thead th:hover { color: var(--charcoal); }
    .breeds-table thead th.no-sort { cursor: default; }
    .breeds-table thead th.sorted-asc::after  { content: ' ↑'; color: var(--terra); }
    .breeds-table thead th.sorted-desc::after { content: ' ↓'; color: var(--terra); }
    .breeds-table tbody tr.breed-row {
        border-bottom: 1px solid var(--border-light, rgba(0,0,0,.06));
        cursor: pointer;
        transition: background .1s;
    }
    .breeds-table tbody tr.breed-row:hover { background: var(--parchment); }
    .breeds-table tbody tr.breed-row.expanded { background: var(--parchment); }
    .breeds-table tbody td {
        padding: .7rem .85rem;
        vertical-align: middle;
        color: var(--charcoal);
    }
    .breeds-table tbody tr.expand-row td {
        padding: 0;
        border-bottom: 1px solid var(--border-dark);
    }
    .expand-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 1rem 1.25rem 1.25rem;
        background: var(--parchment);
        border-top: 1px solid var(--border-dark);
    }
    .expand-desc {
        grid-column: 1 / -1;
        font-size: .84rem;
        line-height: 1.7;
        color: var(--charcoal);
    }
    .expand-meta { font-size: .78rem; color: var(--charcoal-60); }
    .expand-meta strong { color: var(--charcoal); font-weight: 600; display: block; margin-bottom: 2px; font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; }
    .expand-chevron {
        font-size: .7rem;
        color: var(--charcoal-60);
        margin-left: .35rem;
        transition: transform .2s;
        display: inline-block;
    }
    .breed-row.expanded .expand-chevron { transform: rotate(180deg); }

    /* ── Breed name cell ─────────────────────────────────── */
    .breed-name  { font-weight: 600; }
    .breed-cross { font-size: .72rem; color: var(--charcoal-60); margin-top: 2px; }

    /* ── Badges ──────────────────────────────────────────── */
    .badge { display: inline-block; font-size: .62rem; font-weight: 700; padding: 2px 7px; border-radius: 20px; white-space: nowrap; }
    .badge-common { background: var(--sage-pale, #eaf1ea); color: var(--sage, #5a7a5a); border: 1px solid var(--sage); }
    .badge-rare   { background: #fdf0ee; color: var(--terra); border: 1px solid var(--terra); }
    .badge-absent { background: var(--charcoal-10, #f0eeea); color: var(--charcoal-60); border: 1px solid var(--border-dark); }
    .cat-badge { display: inline-block; font-size: .65rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: var(--parchment); border: 1px solid var(--border-dark); color: var(--charcoal-60); }

    /* ── Discipline pills ────────────────────────────────── */
    .disc-list  { display: flex; flex-wrap: wrap; gap: 3px; }
    .disc-pill  { font-size: .62rem; padding: 1px 6px; border-radius: 3px; background: var(--parchment); border: 1px solid var(--border-dark); color: var(--charcoal); white-space: nowrap; }
    .coat-text  { font-size: .78rem; color: var(--charcoal-60); font-style: italic; }

    /* ── Card view ───────────────────────────────────────── */
    .breeds-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
    .breed-card {
        background: var(--cream);
        border: 1px solid var(--border-dark);
        border-radius: var(--radius);
        padding: 1.25rem;
        display: flex;
        flex-direction: column;
        gap: .65rem;
        transition: box-shadow .15s, border-color .15s;
        cursor: default;
    }
    .breed-card:hover {
        border-color: var(--sage);
        box-shadow: 0 3px 12px rgba(0,0,0,.08);
    }
    .breed-card[hidden] { display: none; }
    .card-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: .5rem;
    }
    .card-name {
        font-family: 'Cormorant Garamond', serif;
        font-size: 1.35rem;
        font-weight: 500;
        color: var(--charcoal);
        line-height: 1.15;
    }
    .card-cross { font-size: .72rem; color: var(--charcoal-60); margin-top: 2px; }
    .card-meta-row {
        display: flex;
        gap: .65rem;
        flex-wrap: wrap;
        font-size: .75rem;
        color: var(--charcoal-60);
    }
    .card-meta-item { display: flex; align-items: center; gap: .3rem; }
    .card-meta-item i { font-size: .7rem; opacity: .6; }
    .card-desc {
        font-size: .8rem;
        line-height: 1.65;
        color: var(--charcoal);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .card-temperament {
        font-size: .75rem;
        color: var(--charcoal-60);
        font-style: italic;
        border-top: 1px solid var(--border-light, rgba(0,0,0,.06));
        padding-top: .5rem;
    }
    .card-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: .4rem;
        margin-top: auto;
        padding-top: .5rem;
        border-top: 1px solid var(--border-light, rgba(0,0,0,.06));
    }

    /* ── Empty / utility ─────────────────────────────────── */
    .breeds-empty {
        text-align: center;
        padding: 2.5rem;
        color: var(--charcoal-60);
        font-size: .875rem;
    }
    #breeds-empty-cards {
        grid-column: 1 / -1;
        text-align: center;
        padding: 2.5rem;
        color: var(--charcoal-60);
        font-size: .875rem;
    }

    @media (max-width: 640px) {
        .breeds-hero          { padding: 2rem 1rem 1.75rem; }
        .breeds-hero-title    { font-size: 2rem; }
        .breeds-toolbar       { flex-direction: column; align-items: stretch; }
        .breeds-toolbar select,
        .breeds-toolbar input[type="text"] { min-width: 0; width: 100%; }
        .view-toggle          { margin-left: 0; width: 100%; justify-content: center; }
        .expand-inner         { grid-template-columns: 1fr; }
    }
