/* =============================================================
   Stallion Directory v2  —  2026 design system
   Tokens match /css/sales-results-2026.css
   ============================================================= */

:root {
    --dir-navy:         #274E76;
    --dir-navy-mid:     #34679C;
    --dir-navy-light:   #2b4d6f;
    --dir-gold:         #b8901a;
    --dir-silver:       #7b8fa1;
    --dir-row-even:     #f7f9fb;
    --dir-row-hover:    #eaf3fb;
    --dir-border:       #d6dfe8;
    --dir-summary-bg:   #e4eaf1;
    --dir-text:         #0f2137;
    --dir-text-muted:   #6b7a8d;
    --dir-blue-light:   #dbeafe;
    --dir-blue-border:  #bfdbfe;
    --dir-font-body:    'DM Sans', sans-serif;
    --dir-font-mono:    'DM Mono', monospace;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.dir-breadcrumb {
    padding: 7px 20px;
    background: var(--dir-row-even);
    border-bottom: 1px solid var(--dir-border);
    font-family: var(--dir-font-body);
    font-size: 12px;
    color: var(--dir-text-muted);
}

.dir-breadcrumb a,
.dir-breadcrumb .breadcrumbs a {
    color: var(--dir-navy-mid);
    text-decoration: none;
}

.dir-breadcrumb a:hover,
.dir-breadcrumb .breadcrumbs a:hover {
    color: var(--dir-gold);
    text-decoration: underline;
}

/* ── Page header ────────────────────────────────────────────── */
.dir-page-header {
    background: var(--dir-navy);
    padding: 28px 24px 24px;
    text-align: center;
    border-bottom: 3px solid var(--dir-gold);
}

.dir-header-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.dir-header-eyebrow {
    font-family: var(--dir-font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.25em;
    color: var(--dir-silver);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.dir-header-title {
    font-family: var(--dir-font-body);
    font-size: clamp(22px, 4vw, 38px);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin: 0;
}

.dir-header-title span {
    color: var(--dir-gold);
}

.dir-header-sub {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 400;
    color: var(--dir-silver);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: var(--dir-font-body);
}

/* ── Section wrapper ────────────────────────────────────────── */
.dir-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px;
}

.dir-table-section {
    padding-top: 0;
}

/* ── Premium cards ──────────────────────────────────────────── */
.dir-premium-grid .col-lg-3,
.dir-premium-grid .col-md-4,
.dir-premium-grid .col-sm-6,
.dir-premium-grid .col-12 {
    padding: 6px;
}

.dir-premium-grid .premium-card {
    border: 1px solid var(--dir-border) !important;
    border-radius: 6px !important;
    overflow: hidden;
    box-shadow: none !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.dir-premium-grid .premium-card:hover {
    box-shadow: 0 4px 18px rgba(39, 78, 118, 0.18) !important;
    border-color: var(--dir-navy-mid) !important;
}

.dir-premium-grid .premium-card-img {
    min-height: 190px;
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

.dir-premium-grid .card-body {
    padding: 10px 12px !important;
    background: #fff;
    border-top: 2px solid var(--dir-gold);
}

.dir-premium-grid .card-title {
    font-family: var(--dir-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--dir-navy);
    margin-bottom: 5px;
}

.dir-premium-grid .card-text {
    font-size: 12px;
    color: var(--dir-text-muted);
    line-height: 1.55;
}

.dir-premium-grid a {
    color: inherit;
    text-decoration: none;
}

.dir-premium-footer {
    text-align: right;
    margin-top: 4px;
    padding-right: 6px;
}

.dir-btn-premium {
    display: inline-block;
    padding: 8px 18px;
    background: var(--dir-navy);
    color: #fff;
    font-family: var(--dir-font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid var(--dir-navy);
    transition: background 0.2s, border-color 0.2s;
}

.dir-btn-premium:hover {
    background: var(--dir-gold);
    border-color: var(--dir-gold);
    color: #fff;
    text-decoration: none;
}

/* ── DataTables wrapper ─────────────────────────────────────── */
#SiresTable_wrapper {
    font-family: var(--dir-font-body);
    color: var(--dir-text);
}

#SiresTable_wrapper .dataTables_length,
#SiresTable_wrapper .dataTables_filter {
    font-size: 13px;
    color: var(--dir-text-muted);
    padding: 10px 0;
}

#SiresTable_wrapper .dataTables_filter input {
    border: 1px solid var(--dir-border);
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 13px;
    font-family: var(--dir-font-body);
    color: var(--dir-text);
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

#SiresTable_wrapper .dataTables_filter input:focus {
    border-color: var(--dir-navy-mid);
    box-shadow: 0 0 0 3px rgba(52, 103, 156, 0.12);
}

/* ── Table header ───────────────────────────────────────────── */
table.dataTable thead tr {
    background: var(--dir-navy) !important;
}

table.dataTable thead th {
    background: var(--dir-navy) !important;
    color: #fff !important;
    font-family: var(--dir-font-body);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 12px 14px;
    border-bottom: 2px solid var(--dir-gold) !important;
    border-right: 1px solid var(--dir-navy-light) !important;
    white-space: nowrap;
}

/* Sort indicator tint */
table.dataTable thead th.sorting::after,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::after {
    opacity: 0.7;
    color: var(--dir-gold);
}

/* ── Table body rows ────────────────────────────────────────── */
table.dataTable tbody tr {
    background-color: #fff;
    transition: background-color 0.1s;
}

table.dataTable.table-striped tbody tr:nth-child(odd) {
    background-color: var(--dir-row-even) !important;
}

table.dataTable tbody tr:hover {
    background-color: var(--dir-row-hover) !important;
}

table.dataTable tbody td {
    padding: 9px 14px;
    font-size: 13px;
    color: var(--dir-text);
    border-color: var(--dir-border) !important;
    vertical-align: middle;
}

table.dataTable tbody td a {
    color: var(--dir-navy-mid);
    text-decoration: none;
    font-weight: 600;
}

table.dataTable tbody td a:hover {
    color: var(--dir-gold);
    text-decoration: underline;
}

/* ── Premium rows ───────────────────────────────────────────── */
tr.newbackground td {
    background-color: var(--dir-blue-light) !important;
    background-image: none !important;
    border-left: 3px solid var(--dir-navy-mid) !important;
}

tr.newbackground:hover td {
    background-color: #c3d9f5 !important;
}

/* ── Premium badge ──────────────────────────────────────────── */
.premiumbadge {
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
    background-color: var(--dir-gold);
    color: #fff;
    font-size: 0.72em;
    letter-spacing: 0.04em;
    float: right;
}

/* ── Pagination ─────────────────────────────────────────────── */
#SiresTable_wrapper .dataTables_paginate .paginate_button {
    border-radius: 4px !important;
    font-size: 13px;
    font-family: var(--dir-font-body);
    color: var(--dir-navy-mid) !important;
    border: 1px solid transparent !important;
    padding: 4px 10px !important;
    transition: background 0.15s;
}

#SiresTable_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--dir-row-hover) !important;
    border-color: var(--dir-border) !important;
    color: var(--dir-navy) !important;
}

#SiresTable_wrapper .dataTables_paginate .paginate_button.current,
#SiresTable_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--dir-navy) !important;
    border-color: var(--dir-navy) !important;
    color: #fff !important;
}

#SiresTable_wrapper .dataTables_paginate .paginate_button.disabled,
#SiresTable_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    color: var(--dir-text-muted) !important;
    background: transparent !important;
}

/* ── Info text ──────────────────────────────────────────────── */
#SiresTable_info {
    font-size: 12px;
    color: var(--dir-text-muted);
    padding-top: 10px;
    font-family: var(--dir-font-body);
}

/* ── Responsive expand button ───────────────────────────────── */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before {
    background-color: var(--dir-navy-mid);
    box-shadow: 0 0 0 2px var(--dir-navy-mid);
}

/* ── Tablet ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .dir-page-header {
        padding: 22px 16px 18px;
    }

    .dir-header-sub {
        font-size: 10px;
        letter-spacing: 0.14em;
    }

    .dir-section {
        padding: 14px 10px;
    }

    table.dataTable thead th {
        font-size: 10px;
        padding: 10px 10px;
    }

    table.dataTable tbody td {
        font-size: 12px;
        padding: 8px 10px;
    }
}

/* ── Featured label (mobile only) ──────────────────────────── */
.dir-featured-label {
    display: none;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 575px) {
    .dir-header-title {
        font-size: 20px;
    }

    /* Show "Featured" label, hide all cards after the first */
    .dir-featured-label {
        display: block;
        font-family: var(--dir-font-body);
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--dir-silver);
        margin-bottom: 8px;
    }

    .dir-premium-grid > div:nth-child(n+2) {
        display: none;
    }

    .dir-premium-grid .premium-card-img {
        min-height: 150px;
    }

    #SiresTable_wrapper .dataTables_filter input {
        width: 130px;
    }

    #SiresTable_wrapper .dataTables_length select {
        width: 70px;
    }

    .dir-btn-premium {
        font-size: 11px;
        padding: 7px 14px;
    }
}
