/* New Decisions page (new-decisions.php, inc/decisions.php). Own classes (.bnd-*); pills match the search page. */

.bnd {
    --bnd-ink: #1f2937;
    --bnd-muted: #4b5563;
    --bnd-line: #e5e7eb;
    --bnd-soft: #f3f4f6;
    --bnd-red: #751314;
    --bnd-gold: #dfbf8f;
    --bnd-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    max-width: 980px;
    margin: 0 auto 40px;
    color: var(--bnd-ink);
}

.bnd *,
.bnd *::before,
.bnd *::after {
    box-sizing: border-box;
}

.bnd a:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

.bnd-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.bnd-preview {
    margin: 12px 0 0;
    padding: 8px 12px;
    border: 1px dashed #b45309;
    background: #fff4e5;
    font-size: 14px;
    text-align: center;
}

.bnd-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 0 22px;
}

.bnd-kicker {
    max-width: 720px;
    margin: 0;
    text-align: center;
    font-size: 16px;
    color: var(--bnd-muted);
}

.bnd-crumbs {
    margin-top: 24px;
    font-size: 14px;
    color: var(--bnd-muted);
}

.bnd-crumbs a,
.bnd-pager a,
.bnd-month-head h2 a,
.bnd-month-head h3 a {
    color: var(--bnd-red);
}

/* ---------- search box ---------- */

.bnd-search {
    display: flex;
    width: 100%;
    max-width: 720px;
}

.bnd-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 50px;
    padding: 0 14px;
    border: 2px solid var(--bnd-ink);
    border-right: 0;
    border-radius: 6px 0 0 6px;
    background: #fff;
    font: 17px/1.3 var(--bnd-serif);
    color: var(--bnd-ink);
}

.bnd-search input[type="search"]:focus {
    outline: 3px solid #2563eb;
    outline-offset: 0;
}

.bnd-search button {
    flex: 0 0 auto;
    padding: 0 22px;
    border: 2px solid var(--bnd-red);
    border-radius: 0 6px 6px 0;
    background: var(--bnd-red);
    color: #fff;
    font-weight: 600;
}

.bnd-search button:hover {
    background: #5a0e0f;
    border-color: #5a0e0f;
}

/* ---------- chart ---------- */

.bnd-chart {
    margin: 8px 0 30px;
    padding: 14px 16px 10px;
    border: 1px solid var(--bnd-line);
    border-radius: 6px;
    background: #fff;
}

.bnd-chart figcaption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 18px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.bnd-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-weight: 400;
    color: var(--bnd-muted);
}

.bnd-legend .k {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bnd-legend i {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.bnd-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 150px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bnd-bars li {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    min-width: 0;
}

.bnd-bars a {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 3px 3px 0 0;
}

.bnd-bars a:hover {
    background: var(--bnd-soft);
}

.bnd-bars .stack {
    display: flex;
    flex-direction: column;
    min-height: 2px;
    overflow: hidden;
    border-radius: 2px 2px 0 0;
}

.bnd-bars .stack span {
    flex-basis: 0;
}

.bnd-bars .n {
    position: absolute;
    left: 0;
    right: 0;
    top: -2px;
    font-size: 11px;
    line-height: 1;
    text-align: center;
    color: var(--bnd-muted);
    transform: translateY(-100%);
    pointer-events: none;
}

.bnd-bars a:not(:hover) .n {
    visibility: hidden;
}

.bnd-bars .ys {
    display: none;
}

.bnd-bars .m {
    padding-top: 4px;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    color: var(--bnd-muted);
    white-space: nowrap;
}

.bnd .stack .lvl1, .bnd-legend .lvl1 { background: #1f2937; }
.bnd .stack .lvl2, .bnd-legend .lvl2 { background: #751314; }
.bnd .stack .lvl3, .bnd-legend .lvl3 { background: #c9a46a; }
.bnd .stack .lvl4, .bnd-legend .lvl4 { background: #9ca3af; }

/* ---------- a month ---------- */

.bnd-month {
    margin: 0 0 34px;
    padding-top: 6px;
    border-top: 2px solid var(--bnd-gold);
}

.bnd-month-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 18px;
    margin: 8px 0 12px;
}

.bnd-month-head h2,
.bnd-month-head h3 {
    margin: 0;
    font: 700 26px/1.25 var(--bnd-serif);
}

.bnd-tally {
    margin: 0;
    font-size: 15px;
    color: var(--bnd-muted);
}

.bnd-tally strong {
    color: var(--bnd-ink);
}

.bnd-digest {
    margin: 0 0 14px;
    padding: 12px 16px;
    border-left: 4px solid var(--bnd-gold);
    background: #fbf6ec;
}

.bnd-digest p {
    margin: 0;
    font: 17px/1.55 var(--bnd-serif);
}

.bnd-digest .bnd-fine {
    margin-top: 6px;
    font: 13px/1.4 system-ui, sans-serif;
    color: var(--bnd-muted);
}

.bnd-digest.draft {
    border-left-color: #b45309;
    background: #fff4e5;
}

.bnd-badge {
    margin-bottom: 6px !important;
    font: 600 12px/1.4 sans-serif !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7c2d12;
}

.bnd-issues {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 0 0 14px;
    font-size: 14px;
}

.bnd-issues > span {
    color: var(--bnd-muted);
}

.bnd-issues a {
    padding: 3px 10px;
    border: 1px solid #9ca3af;
    border-radius: 999px;
    background: #fff;
    color: var(--bnd-ink);
}

.bnd-issues a:hover {
    border-color: var(--bnd-red);
    background: #fdf2f2;
}

.bnd-issues .n {
    margin-left: 2px;
    font-weight: 600;
    color: var(--bnd-red);
}

.bnd-cards {
    display: grid;
    gap: 10px;
}

.bnd-card {
    padding: 12px 16px 14px;
    border: 1px solid var(--bnd-line);
    border-radius: 6px;
    background: #fff;
}

.bnd-card.major {
    border-left: 4px solid var(--bnd-red);
}

.bnd-card h3 {
    margin: 6px 0 6px;
    font: 700 19px/1.35 var(--bnd-serif);
}

.bnd-card h3 a {
    color: var(--bnd-red);
}

.bnd-card h3 a:hover {
    text-decoration: underline;
}

.bnd-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0;
    font-size: 14px;
    color: var(--bnd-muted);
}

.bnd-meta .cite {
    font-weight: 600;
    color: var(--bnd-ink);
}

.bnd-pill {
    display: inline-block;
    padding: 2px 9px;
    border: 1px solid #9ca3af;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--bnd-ink);
    white-space: nowrap;
}

.bnd-pill.lvl1 {
    background: var(--bnd-red);
    border-color: var(--bnd-red);
    color: #fff;
}

.bnd-pill.lvl2 {
    background: #fff;
    border-color: var(--bnd-red);
    color: var(--bnd-red);
}

.bnd-pill.lvl3 {
    background: var(--bnd-soft);
}

.bnd-pill.lvl4 {
    background: #fff;
}

.bnd-pill.won-provider {
    background: #e6f4ea;
    border-color: #2f7a46;
    color: #14532d;
}

.bnd-pill.won-insurer {
    background: #e8eefb;
    border-color: #3b5aa8;
    color: #1e3a8a;
}

.bnd-pill.won-split {
    background: #fdf3dc;
    border-color: #b7791f;
    color: #7a4b05;
}

.bnd-flag {
    margin: 0 0 8px;
    padding: 6px 10px;
    border-left: 4px solid #b91c1c;
    background: #fdecec;
    font-size: 14px;
}

.bnd-flag a {
    color: var(--bnd-red);
    text-decoration: underline;
}

.bnd-hn {
    margin: 0;
    font: 16px/1.55 var(--bnd-serif);
    color: var(--bnd-ink);
}

.bnd-compact {
    margin: 0;
    padding-left: 20px;
}

.bnd-compact li {
    margin: 4px 0;
}

.bnd-compact a {
    color: var(--bnd-red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bnd-compact span {
    font-size: 14px;
    color: var(--bnd-muted);
}

.bnd-empty {
    color: var(--bnd-muted);
}

.bnd-gap {
    margin: -14px 0 30px;
    padding: 8px 12px;
    border: 1px dashed var(--bnd-line);
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    color: var(--bnd-muted);
}

.bnd-pager {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 30px;
    font-weight: 600;
}

/* ---------- all months ---------- */

.bnd-archive h2 {
    margin: 10px 0 10px;
    font: 700 22px/1.3 var(--bnd-serif);
    color: var(--bnd-red);
}

.bnd-archive-scroll {
    overflow-x: auto;
}

.bnd-archive table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.bnd-archive th,
.bnd-archive td {
    padding: 5px 4px;
    border-bottom: 1px solid var(--bnd-line);
    text-align: center;
}

.bnd-archive thead th {
    font-weight: 600;
    color: var(--bnd-muted);
}

.bnd-archive tbody th {
    text-align: left;
}

.bnd-archive a {
    display: inline-block;
    min-width: 28px;
    color: var(--bnd-red);
    font-weight: 600;
}

.bnd-archive td span {
    color: #9ca3af;
}

.bnd-archive .tot {
    font-weight: 600;
}

.bnd-fine {
    margin: 26px 0 0;
    font-size: 14px;
    color: var(--bnd-muted);
}

@media (max-width: 640px) {
    .bnd-head {
        padding-top: 16px;
    }

    .bnd-bars {
        gap: 2px;
        height: 120px;
    }

    .bnd-bars .m {
        font-size: 9px;
    }

    .bnd-bars .yl {
        display: none;
    }

    .bnd-bars .ys {
        display: inline;
    }

    .bnd-issues a:nth-of-type(n+5) {
        display: none;
    }

    .bnd-month-head h2,
    .bnd-month-head h3 {
        font-size: 22px;
    }

    .bnd-card {
        padding: 10px 12px 12px;
    }

    .bnd-archive table {
        font-size: 13px;
    }
}
