/* ══════════════════════════════════════════════════════════════
   cases-guide.css  –  load after brand-overrides.css
   Cases list + overview card, Guiding information
══════════════════════════════════════════════════════════════ */

/* ── CASES: search + docket list ─────────────────────────────── */
.case-tools {
    position: relative;
    margin-bottom: .75rem;
}

.case-tools i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tm);
    pointer-events: none;
}

.case-tools input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    font: inherit;
    font-size: 14px;
    color: var(--tp);
    background: var(--white);
    border: 1px solid var(--bm);
    border-radius: var(--radius-sm);
}

.case-tools input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(36, 54, 122, .12);
}

.case-list {
    background: var(--white);
    border: 1px solid var(--bl);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.case-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto 3rem 1.25rem;
    grid-template-areas: "ref parties status year go";
    align-items: center;
    gap: .25rem 1rem;
    padding: .85rem 1.15rem;
    color: inherit;
    border-top: 1px solid var(--bl);
    transition: background-color .15s ease;
}

.case-row:first-child {
    border-top: 0;
}

.case-row[hidden],
.case-none[hidden] {
    display: none;
}

.case-row:hover,
.case-row:focus-visible {
    background: var(--teal-xlight);
}

.case-row:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: -3px;
}

.case-ref {
    grid-area: ref;
    font: 600 .82rem/1.3 Newsreader, Georgia, serif;
    color: var(--teal);
    overflow-wrap: anywhere;
}

.case-parties {
    grid-area: parties;
    display: grid;
    gap: 1px;
    min-width: 0;
}

.case-a {
    font-weight: 600;
    font-size: 14.5px;
    color: var(--tp);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-b {
    font-size: 13.5px;
    color: var(--ts);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-b i {
    font-family: Newsreader, Georgia, serif;
    color: var(--tm);
    margin-right: 2px;
}

.case-status {
    grid-area: status;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 3px 11px;
    border-radius: 2rem;
    white-space: nowrap;
}

.case-status.is-done {
    background: var(--teal-light);
    color: var(--teal);
}

.case-status.is-open {
    background: var(--gold-light);
    color: var(--gold-ink);
}

.case-year {
    grid-area: year;
    font-size: 13px;
    color: var(--tm);
    text-align: right;
}

.case-go {
    grid-area: go;
    color: var(--teal);
    opacity: .4;
    transition: opacity .15s;
}

.case-row:hover .case-go,
.case-row:focus-visible .case-go {
    opacity: 1;
}

.case-none {
    margin: 0;
    padding: 1.25rem;
    color: var(--ts);
    font-size: 14px;
}

@media (max-width: 767.98px) {
    .case-row {
        grid-template-columns: minmax(0, 1fr) auto 1.25rem;
        grid-template-areas:
            "parties parties go"
            "ref     status  year";
        padding: .8rem 1rem;
    }

    .case-year {
        text-align: left;
    }

    .case-ref {
        font-size: .78rem;
    }
}

@media (max-width: 479.98px) {
    .case-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "parties go" "ref status" "year year";
    }

    .case-year {
        grid-column: 1 / -1;
    }
}

/* ── CASES: overview card ────────────────────────────────────── */
.case-overview {
    background: linear-gradient(160deg, var(--navy), var(--navy-mid));
    color: #fff;
    border-radius: var(--radius-md);
    padding: 1.4rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.case-overview::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 190px;
    height: 190px;
    border: 22px solid rgba(201, 161, 59, .12);
    border-radius: 50%;
    pointer-events: none;
}

.co-title {
    font-size: 10.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, .55);
    margin: 0 0 1rem;
}

.co-nums {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    margin: 0 0 1rem;
    position: relative;
    z-index: 1;
}

.co-nums dd {
    margin: 0;
    font: 600 2.1rem/1 Newsreader, Georgia, serif;
    color: #fff;
}

.co-nums dt {
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
    margin-top: 4px;
    font-weight: 400;
}

.co-bar {
    height: 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .16);
    overflow: hidden;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.co-bar span {
    display: block;
    height: 100%;
    background: var(--gold);
    border-radius: 4px;
}

.co-actions {
    margin-top: auto;
    display: grid;
    gap: .75rem;
    justify-items: start;
    position: relative;
    z-index: 1;
}

.co-actions .cb-btn {
    padding: 10px 20px;
}

.co-link {
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .85);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap .15s, color .15s;
}

.co-link:hover {
    color: #fff;
    gap: 10px;
}

/* ── GUIDING INFORMATION ─────────────────────────────────────── */
.guide-h {
    font: 600 .78rem/1 "Public Sans", system-ui, sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--tm);
    margin: 0 0 .7rem;
}

.doc-list {
    background: var(--white);
    border: 1px solid var(--bl);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.doc-empty {
    margin: 0;
    padding: 1.1rem 1.2rem;
    font-size: 14px;
    color: var(--ts);
}

.doc-row {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .8rem 1.1rem;
    border-top: 1px solid var(--bl);
}

.doc-list> :first-child {
    border-top: 0;
}

.doc-ic {
    flex: none;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--teal-light);
    color: var(--teal);
    font-size: 18px;
}

.doc-ic.is-step {
    background: var(--navy);
    color: #fff;
    border-radius: 50%;
    font: 600 1rem/1 Newsreader, Georgia, serif;
}

.doc-main {
    flex: 1;
    min-width: 0;
}

.doc-title {
    margin: 0;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--tp);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.doc-meta {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--tm);
    display: flex;
    flex-wrap: wrap;
    gap: .1rem .6rem;
    align-items: center;
}

.doc-tag {
    font-weight: 600;
    color: var(--gold-ink);
}

.doc-dl {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--teal);
    padding: 7px 14px;
    border: 1px solid rgba(36, 54, 122, .25);
    border-radius: 2rem;
    transition: background-color .15s, border-color .15s;
}

.doc-dl:hover {
    background: var(--teal-light);
    border-color: var(--teal);
}

/* Announcements feed */
.ann-row {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .8rem 1.1rem;
    border-top: 1px solid var(--bl);
    color: inherit;
    transition: background-color .15s;
}

.doc-list>.ann-row:first-child {
    border-top: 0;
}

.ann-row:hover,
.ann-row:focus-visible {
    background: var(--teal-xlight);
}

.ann-row:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: -3px;
}

.ann-date {
    flex: none;
    width: 44px;
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gold-light);
    color: var(--gold-ink);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.1;
}

.ann-date b {
    font: 600 1.15rem/1 Newsreader, Georgia, serif;
}

.ann-date i {
    font-size: 18px;
}

.ann-title {
    flex: 1;
    min-width: 0;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--tp);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ann-go {
    flex: none;
    color: var(--teal);
    opacity: .4;
    transition: opacity .15s, transform .15s;
}

.ann-row:hover .ann-go {
    opacity: 1;
    transform: translateX(3px);
}

@media (max-width: 575.98px) {
    .doc-row {
        padding: .75rem .9rem;
        gap: .7rem;
    }

    .doc-dl {
        padding: 8px 11px;
    }

    .doc-dl-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    /* icon-only on phones; label kept for screen readers */
    .case-overview {
        padding: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .case-row,
    .ann-row,
    .doc-dl,
    .ann-go,
    .co-link {
        transition: none;
    }
}

/* cases-stats.css – REPLACES the previous version. Restores the original light "stats-card" look
   (label + number, thin bar underneath) and adds the Rejected row. Add after cases-guide.css. */

.stats-card {
    display: flex;
    flex-direction: column;
}

.stat-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: .25rem;
    font-size: 13.5px;
    color: var(--ts);
}

.stat-line strong {
    font-weight: 600;
}

.n-open {
    color: var(--teal);
}

.n-closed {
    color: var(--ts);
}

.n-rejected {
    color: var(--gold-ink);
}

.n-total {
    color: var(--navy);
}

.stat-track {
    background: var(--surf2);
    overflow: hidden;
}

.stat-fill {
    height: 6px;
    border-radius: 3px;
    transition: width .6s ease;
}

.f-open {
    background: var(--teal);
}

.f-closed {
    background: #94a3b8;
}

.f-rejected {
    background: var(--gold);
}

.f-total {
    background: var(--navy);
    opacity: .25;
}

/* optional footer inside the card */
.stats-links {
    margin-top: auto;
    padding-top: 1.1rem;
    border-top: 1px solid var(--bl);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.25rem;
}

.stats-card .d-flex.flex-column {
    margin-bottom: 1.25rem;
}

.stats-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--teal);
    transition: gap .15s ease;
}

.stats-link:hover {
    gap: 10px;
    color: var(--navy);
}

/* status pill for rejected rows in the list */
.case-status.is-rejected {
    background: var(--surf2);
    color: var(--ts);
}

@media (prefers-reduced-motion: reduce) {

    .stat-fill,
    .stats-link {
        transition: none;
    }
}