/* ==========================================================================
   bp.css - the public Transparency Portal.

   One page, six tabs. The first tab follows the layout of the Bids and Awards
   Committee page on cspc.edu.ph (GOODS or INFRA x PUBLIC BIDDING or
   NON-BIDDING, a list of projects, the signed files of each) in the
   colours and shapes of IGREP.
   ========================================================================== */

:root {
    --bp-navy: #0a192f;
    --bp-navy-2: #12294a;
    --bp-navy-3: #1c3a63;
    --bp-gold: #e5a823;
    --bp-gold-soft: #fff4d6;
    --bp-gold-ink: #7a5300;
    --bp-teal: #0f766e;
    --bp-teal-soft: #e6f6f4;
    --bp-rose: #be123c;
    --bp-ink: #172033;
    --bp-muted: #5b6b7f;
    --bp-line: #dde3ec;
    --bp-surface: #ffffff;
    --bp-canvas: #f3f6fb;
}

.bp-body { background: var(--bp-canvas); color: var(--bp-ink); }
.bp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.bp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- hero ---------- */
.bp-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 52px 0 46px;
    background:
        radial-gradient(900px 340px at 88% -10%, rgba(229, 168, 35, .28), transparent 62%),
        radial-gradient(700px 300px at -6% 110%, rgba(28, 58, 99, .9), transparent 60%),
        linear-gradient(160deg, #0a192f 0%, #12294a 100%);
}
.bp-eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(229, 168, 35, .14);
    border: 1px solid rgba(229, 168, 35, .45);
    color: var(--bp-gold);
    font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.bp-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4.2vw, 3rem);
    line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: #fff;
}
.bp-lede { max-width: 760px; margin: 0 0 26px; color: #cbd8ea; font-size: 1.04rem; line-height: 1.65; }

.bp-search {
    display: flex; gap: 8px; max-width: 760px;
    padding: 6px; border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(6px);
}
.bp-search input {
    flex: 1; min-width: 0; padding: 13px 16px; border: 0; border-radius: 10px;
    background: #fff; color: var(--bp-ink); font-size: .98rem;
}
.bp-search input:focus-visible { outline: 3px solid var(--bp-gold); outline-offset: 1px; }
.bp-search button {
    padding: 0 24px; border: 0; border-radius: 10px; cursor: pointer;
    background: var(--bp-gold); color: var(--bp-navy); font-weight: 800; font-size: .95rem;
}
.bp-search button:hover { background: #f0b83a; }

.bp-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; padding: 0; }
.bp-facts li {
    min-width: 150px; padding: 12px 18px; border-radius: 12px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
}
.bp-facts b { display: block; font-size: 1.55rem; line-height: 1.15; color: #fff; font-weight: 800; }
.bp-facts span { font-size: .78rem; color: #aebfd6; text-transform: uppercase; letter-spacing: .06em; }

.bp-hero h1 .bp-gold { color: var(--bp-gold); }

/* buttons in a hero (the base button is defined with the cards, below) */
.bp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.bp-cta .bp-btn { padding: 13px 24px; font-size: .95rem; }
.bp-btn:focus-visible { outline: 3px solid var(--bp-gold); outline-offset: 2px; }
.bp-btn.bp-btn-ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); color: #fff; }
.bp-btn.bp-btn-ghost:hover { background: rgba(255, 255, 255, .22); }

/* ---------- tab bar ---------- */
.bp-tabbar-wrap { background: var(--bp-surface); border-bottom: 1px solid var(--bp-line); box-shadow: 0 4px 14px -10px rgba(10, 25, 47, .35); }
.bp-tabbar {
    display: flex; gap: 4px; overflow-x: auto; padding: 10px 0;
    scrollbar-width: thin; scroll-snap-type: x proximity;
}
.bp-tab {
    flex: 0 0 auto; scroll-snap-align: start;
    padding: 11px 18px; border: 0; border-radius: 10px; cursor: pointer;
    background: transparent; color: var(--bp-muted); font-weight: 700; font-size: .93rem; white-space: nowrap;
    transition: background .15s, color .15s;
}
.bp-tab:hover { background: var(--bp-canvas); color: var(--bp-navy); }
.bp-tab[aria-selected="true"] { background: var(--bp-navy); color: #fff; box-shadow: inset 0 -3px 0 var(--bp-gold); }
.bp-tab:focus-visible { outline: 3px solid var(--bp-gold); outline-offset: 2px; }
a.bp-tab { display: inline-block; text-decoration: none; }

/* ---------- panel ---------- */
.bp-main { padding: 26px 0 48px; }
.bp-panel[hidden] { display: none; }
.bp-panel:focus { outline: none; }
.bp-panel-head {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap;
    margin-bottom: 16px;
}
.bp-panel-head h2 { margin: 0 0 4px; font-size: 1.45rem; color: var(--bp-navy); font-weight: 800; letter-spacing: -.01em; }
.bp-panel-head p { margin: 0; max-width: 720px; color: var(--bp-muted); line-height: 1.55; font-size: .92rem; }

.bp-field { display: flex; flex-direction: column; gap: 4px; }
.bp-field label { font-size: .74rem; font-weight: 700; color: var(--bp-muted); text-transform: uppercase; letter-spacing: .06em; }
.bp-field select, .bp-toolbar select, .bp-toolbar input[type="search"] {
    padding: 8px 12px; border: 1px solid var(--bp-line); border-radius: 9px;
    background: #fff; color: var(--bp-ink); font-size: .88rem;
}
.bp-field-year select { min-width: 130px; }
/* Year and Month side by side (2026-11-30); they wrap under each other on a narrow screen */
.bp-field-pair { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.bp-field-pair .bp-field-year select.bp-month { min-width: 150px; }

.bp-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.bp-toolbar input[type="search"] { flex: 1 1 320px; min-width: 220px; }
.bp-toolbar select { flex: 0 0 auto; }

.bp-seg { display: inline-flex; padding: 4px; border-radius: 10px; background: #e6ecf5; }
.bp-seg-btn { padding: 6px 13px; border: 0; border-radius: 7px; background: transparent; color: var(--bp-muted); font-weight: 700; font-size: .84rem; cursor: pointer; }
.bp-seg-btn.is-on { background: #fff; color: var(--bp-navy); box-shadow: 0 1px 3px rgba(10, 25, 47, .15); }

/* ---------- the four tabs of the Bids and Awards board ---------- */
.bp-four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.bp-four-btn {
    position: relative; text-align: left; cursor: pointer;
    padding: 11px 14px 11px 16px; border-radius: 12px;
    background: var(--bp-surface); border: 1px solid var(--bp-line);
    display: grid; grid-template-columns: 1fr auto; column-gap: 8px;
    transition: transform .12s, box-shadow .12s, border-color .12s;
}
.bp-four-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(10, 25, 47, .4); border-color: #b9c6d9; }
.bp-four-cat { grid-column: 1; font-weight: 800; color: var(--bp-navy); font-size: .96rem; }
.bp-four-mode { grid-column: 1; font-size: .78rem; color: var(--bp-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.bp-four-n {
    grid-column: 2; grid-row: 1 / span 2; align-self: center;
    min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #e9eef6; color: var(--bp-navy); font-size: .9rem;
}
.bp-four-btn[aria-selected="true"] { background: var(--bp-navy); border-color: var(--bp-navy); box-shadow: inset 4px 0 0 var(--bp-gold); }
.bp-four-btn[aria-selected="true"] .bp-four-cat { color: #fff; }
.bp-four-btn[aria-selected="true"] .bp-four-mode { color: #b9cae2; }
.bp-four-btn[aria-selected="true"] .bp-four-n { background: var(--bp-gold); color: var(--bp-navy); }
.bp-four-btn:focus-visible { outline: 3px solid var(--bp-gold); outline-offset: 2px; }

/* ---------- the board: project list and its files ---------- */
.bp-board {
    display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; align-items: stretch;
    background: var(--bp-surface); border: 1px solid var(--bp-line); border-radius: 14px;
    overflow: hidden; overflow: clip;      /* clip keeps the rounded corners without making a scroll box, so the list below can stick */
    min-height: 0;
}
/* The column of projects is always as tall as the files beside it, however many files there are (it used to stop at
   640px and leave a gap). Only the list inside it follows the page while you scroll, and it scrolls by itself when
   there are more projects than fit the screen. */
.bp-rail { background: #f6f8fc; border-right: 1px solid var(--bp-line); min-width: 0; }
.bp-rail-list { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow-y: auto; }
.bp-rail-item {
    display: block; width: 100%; text-align: left; cursor: pointer;
    padding: 10px 16px; border: 0; border-bottom: 1px solid var(--bp-line); background: transparent;
    border-left: 4px solid transparent;
}
.bp-rail-item:hover { background: #fff; }
.bp-rail-item[aria-selected="true"] { background: #fff; border-left-color: var(--bp-gold); box-shadow: inset -1px 0 0 #fff; }
.bp-ref {
    display: inline-block; padding: 2px 9px; border-radius: 6px;
    background: var(--bp-navy); color: var(--bp-gold);
    font: 700 .78rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em;
}
.bp-rail-title { display: block; margin-top: 6px; font-size: .85rem; line-height: 1.4; color: var(--bp-ink); font-weight: 600;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.bp-detail { padding: 20px 24px; min-width: 0; }
.bp-detail h3 { margin: 8px 0 2px; font-size: 1.12rem; line-height: 1.35; color: var(--bp-navy); font-weight: 800; }
.bp-detail-meta { margin: 0 0 14px; color: var(--bp-muted); font-size: .82rem; }

.bp-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bp-file {
    display: flex; align-items: center; gap: 12px; padding: 7px 14px; border-radius: 10px;
    border: 1px solid var(--bp-line); background: #fff; color: var(--bp-ink); text-decoration: none;
    transition: border-color .12s, box-shadow .12s, transform .12s;
}
.bp-file:hover { border-color: var(--bp-gold); box-shadow: 0 8px 18px -12px rgba(10, 25, 47, .5); transform: translateX(2px); }
.bp-file:focus-visible { outline: 3px solid var(--bp-gold); outline-offset: 2px; }
.bp-ico {
    flex: 0 0 auto; width: 40px; height: 46px; border-radius: 8px;
    display: inline-flex; align-items: flex-end; justify-content: center; padding-bottom: 6px;
    font: 800 .62rem/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .06em; color: #fff;
    background: linear-gradient(160deg, #e0486a, #be123c);
    clip-path: polygon(0 0, 72% 0, 100% 24%, 100% 100%, 0 100%);
}
.bp-ico.is-doc { background: linear-gradient(160deg, #3b82f6, #1d4ed8); }
.bp-ico.is-img { background: linear-gradient(160deg, #14b8a6, #0f766e); }
/* a Google Drive link posted in place of a file */
.bp-ico.is-drive { background: linear-gradient(160deg, #22a35a, #15803d); letter-spacing: .02em; }
.bp-files .bp-ico { width: 28px; height: 33px; padding-bottom: 4px; font-size: .5rem; border-radius: 6px; }
/* a very long name is cut at three lines; the whole name is in the tooltip and in the file itself */
.bp-file-name { flex: 1; min-width: 0; font-weight: 700; font-size: .94rem; line-height: 1.35; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* a project with many files: a box to find one, and the rest on request */
.bp-files-wrap { display: grid; gap: 10px; min-width: 0; }
.bp-files-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.bp-files-tools input[type="search"] { flex: 1 1 240px; min-width: 0; padding: 9px 12px; border: 1px solid var(--bp-line); border-radius: 10px; background: #fff; font: inherit; font-size: .9rem; color: var(--bp-ink); }
.bp-files-tools input[type="search"]:focus-visible { outline: 3px solid var(--bp-gold); outline-offset: 1px; }
.bp-files-count { font-size: .82rem; font-weight: 700; color: var(--bp-muted); white-space: nowrap; }
.bp-files-none { padding: 14px; border: 1px dashed var(--bp-line); border-radius: 10px; color: var(--bp-muted); font-size: .9rem; text-align: center; }
.bp-files-more { justify-self: center; }
.bp-files-more[hidden] { display: none; }
.bp-file-go { flex: 0 0 auto; color: var(--bp-muted); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.bp-file:hover .bp-file-go { color: var(--bp-gold-ink); }

/* the pop-up that shows a calendar poster large (public/js/shared/picture-viewer.js) */
.bp-lightbox { margin: auto; border: 0; padding: 0; border-radius: 16px; background: #fff; width: min(92vw, 880px); max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px -20px rgba(10, 25, 47, .6); }
.bp-lightbox::backdrop { background: rgba(10, 25, 47, .72); }
.bp-lightbox-body { padding: 16px; display: grid; gap: 12px; }
.bp-lightbox img { display: block; max-width: 100%; max-height: 66vh; margin: 0 auto; object-fit: contain; border-radius: 8px; background: #f6f8fc; }
.bp-lightbox-cap { margin: 0; font-weight: 800; color: var(--bp-navy); line-height: 1.35; overflow-wrap: anywhere; }
.bp-lightbox-details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: .92rem; }
.bp-lightbox-details[hidden] { display: none; }
.bp-lightbox-details dt { color: var(--bp-muted); font-weight: 700; }
.bp-lightbox-details dd { margin: 0; color: var(--bp-ink); overflow-wrap: anywhere; }
.bp-lightbox-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.bp-lb-btn { padding: 9px 16px; border-radius: 10px; border: 1px solid var(--bp-line); background: #fff; color: var(--bp-navy); font: 700 .9rem/1.2 inherit; text-decoration: none; cursor: pointer; }
.bp-lb-btn.is-primary { background: var(--bp-navy); border-color: var(--bp-navy); color: #fff; }
.bp-lb-btn:focus-visible { outline: 3px solid var(--bp-gold); outline-offset: 2px; }


.bp-empty { grid-column: 1 / -1; padding: 56px 24px; text-align: center; color: var(--bp-muted); }
.bp-empty b { display: block; margin-bottom: 6px; font-size: 1.05rem; color: var(--bp-navy); }
.bp-loading { padding: 40px 24px; text-align: center; color: var(--bp-muted); grid-column: 1 / -1; }
.bp-note { margin: 14px 2px 0; font-size: .84rem; color: var(--bp-muted); }
.bp-note a { color: var(--bp-navy-3); font-weight: 700; }

/* ---------- active bids ---------- */
.bp-cards { display: grid; gap: 8px; }
.bp-card {
    display: grid; grid-template-columns: 6px 1fr auto; gap: 0; border-radius: 12px; overflow: hidden;
    background: #fff; border: 1px solid var(--bp-line);
    transition: box-shadow .15s, border-color .15s;
}
.bp-card-bar { background: #94a3b8; }
.bp-card.is-open .bp-card-bar { background: var(--bp-teal); }
.bp-card:hover { box-shadow: 0 8px 18px -12px rgba(10, 25, 47, .4); border-color: #c9d3e2; }
.bp-card-body { padding: 11px 16px; min-width: 0; }
.bp-card-top { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 6px; }
.bp-chip {
    display: inline-block; padding: 2px 9px; border-radius: 999px; background: #e9eef6; color: var(--bp-navy-3);
    font-size: .72rem; font-weight: 700;
}
.bp-chip.is-open { background: var(--bp-teal-soft); color: var(--bp-teal); }
.bp-chip.is-closed { background: #f1f5f9; color: #64748b; }
.bp-card h3 { margin: 0 0 5px; font-size: .96rem; line-height: 1.35; color: var(--bp-navy); font-weight: 800; }
.bp-card-facts { display: flex; flex-wrap: wrap; gap: 3px 20px; margin: 0; padding: 0; list-style: none; font-size: .83rem; color: var(--bp-muted); }
.bp-card-facts b { color: var(--bp-ink); }
.bp-card-act { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 11px 16px 11px 0; }
.bp-card-act .bp-btn { padding: 7px 16px; font-size: .82rem; }

.bp-btn, .bp-btn-quiet, .bp-btn-gold {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border-radius: 10px; font-weight: 800; font-size: .88rem; cursor: pointer; text-decoration: none; border: 1px solid transparent;
    white-space: nowrap;
}
/* A label longer than the screen wraps instead of running off it: at "Largest" text on a phone, "Open the Transparency
   Portal" and the Contact page's buttons were wider than the screen (2026-11-29 dry run, U-11). */
.bp-btn, .bp-btn-quiet, .bp-btn-gold { max-width: 100%; }
@media (max-width: 600px) {
    .bp-btn, .bp-btn-quiet, .bp-btn-gold { white-space: normal; text-align: center; }
}
.bp-btn { background: var(--bp-navy); color: #fff; }
.bp-btn:hover { background: var(--bp-navy-3); }
.bp-btn-quiet { background: #fff; color: var(--bp-navy); border-color: var(--bp-line); }
.bp-btn-quiet:hover { border-color: var(--bp-navy); }
.bp-btn-gold { background: var(--bp-gold); color: var(--bp-navy); }
.bp-btn-gold:hover { background: #f0b83a; }
.bp-more { text-align: center; margin-top: 16px; }

.bp-callout {
    display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 16px;
    padding: 12px 18px; border-radius: 12px; background: var(--bp-gold-soft); border: 1px solid #f1d38a; color: #5b4300;
}
.bp-callout b { color: var(--bp-navy); font-size: .95rem; }
.bp-callout span { flex: 1 1 320px; line-height: 1.5; font-size: .88rem; }

/* the PhilGEPS notice shown inside a dialog */
/* the "View notice" pop-up: the details on the left, the notice as PhilGEPS published it on the right */
.bp-notice { display: grid; gap: 22px; align-items: start; }
.bp-notice.has-embed { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); }
.bp-notice-facts { margin: 0; display: grid; border: 1px solid var(--bp-line); border-radius: 12px; overflow: hidden; }
.bp-notice-facts > div { padding: 12px 16px; border-bottom: 1px solid var(--bp-line); }
.bp-notice-facts > div:last-child { border-bottom: 0; }
.bp-notice-facts dt { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bp-muted); }
.bp-notice-facts dd { margin: 3px 0 0; font-size: .96rem; font-weight: 600; color: var(--bp-ink); line-height: 1.45; overflow-wrap: anywhere; }
.bp-notice .bp-embed { margin-top: 0; }
.bp-notice .bp-embed iframe { height: 620px; }
@media (max-width: 900px) {
    .bp-notice.has-embed { grid-template-columns: 1fr; }
    .bp-notice .bp-embed iframe { height: 460px; }
}
.bp-embed { border: 1px solid var(--bp-line); border-radius: 12px; overflow: hidden; margin-top: 14px; }
.bp-embed-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: var(--bp-navy); color: #fff; font-size: .86rem; }
.bp-embed-head a { color: var(--bp-gold); font-weight: 700; }
.bp-embed iframe { display: block; width: 100%; height: 460px; border: 0; background: #fff; }
/* non-bidding: one card per item */
/* one card fills the row, two share it; a card is as tall as its own files, not as tall as its neighbour's */
.bp-flat { padding: 22px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; align-content: start; }
.bp-item { padding: 18px 18px 14px; border: 1px solid var(--bp-line); border-radius: 14px; background: #fff; min-width: 0; }
.bp-item h3 { margin: 0 0 12px; font-size: 1rem; line-height: 1.4; color: var(--bp-navy); font-weight: 800; }
/* non-bidding, as the College's website lists it: one line per item, the title is the link to its paper */

.bp-embed p { margin: 0; padding: 8px 14px; background: #f6f8fc; color: var(--bp-muted); font-size: .78rem; }

/* ---------- plan, reports and issuances ---------- */
.bp-docs-list { display: grid; gap: 6px; }
.bp-doc {
    display: flex; align-items: center; gap: 12px; padding: 7px 14px; border-radius: 10px;
    background: #fff; border: 1px solid var(--bp-line); color: var(--bp-ink); text-decoration: none;
}
.bp-doc:hover { border-color: var(--bp-gold); box-shadow: 0 8px 18px -12px rgba(10, 25, 47, .5); }
.bp-doc:focus-visible { outline: 3px solid var(--bp-gold); outline-offset: 2px; }
.bp-doc-main { flex: 1; min-width: 0; }
.bp-doc .bp-ico { width: 28px; height: 33px; padding-bottom: 4px; font-size: .5rem; border-radius: 6px; }
.bp-doc-title { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; font-size: .94rem; color: var(--bp-navy); line-height: 1.35; overflow-wrap: anywhere; }
.bp-doc-meta { display: block; margin-top: 1px; font-size: .76rem; color: var(--bp-muted); }
.bp-pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.bp-pager button {
    min-width: 40px; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--bp-line); background: #fff; color: var(--bp-navy); font-weight: 700; cursor: pointer;
}
.bp-pager button[disabled] { opacity: .45; cursor: default; }
.bp-pager button.is-on { background: var(--bp-navy); color: #fff; border-color: var(--bp-navy); }

/* ---------- inclusion ---------- */
.bp-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.bp-why article { padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--bp-line); }
.bp-why h3 { margin: 0 0 5px; font-size: .96rem; color: var(--bp-navy); font-weight: 800; }
.bp-why p { margin: 0; color: var(--bp-muted); line-height: 1.55; font-size: .85rem; }

.bp-figs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.bp-fig { padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--bp-line); }
.bp-fig h3 { margin: 0 0 3px; font-size: .96rem; color: var(--bp-navy); font-weight: 800; }
.bp-fig > p { margin: 0 0 10px; font-size: .78rem; color: var(--bp-muted); line-height: 1.45; }
.bp-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bp-bar-row { display: grid; grid-template-columns: minmax(150px, 1.5fr) 1.2fr auto 82px; gap: 8px; align-items: center; font-size: .82rem; }
.bp-bar-rate { font-size: .74rem; font-weight: 700; color: var(--bp-muted); text-align: right; white-space: nowrap; }
.bp-bar-track { height: 8px; border-radius: 999px; background: #e9eef6; overflow: hidden; }
.bp-bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--bp-gold), #f3c75a); }
.bp-bar-n { font-weight: 800; color: var(--bp-navy); min-width: 40px; text-align: right; }
.bp-bar-n.is-withheld { font-weight: 600; color: var(--bp-muted); font-size: .76rem; }
.bp-big { font-size: 1.8rem; line-height: 1; font-weight: 800; color: var(--bp-navy); }
.bp-big small { display: block; margin-top: 6px; font-size: .8rem; font-weight: 600; color: var(--bp-muted); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
    .bp-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-board { grid-template-columns: 1fr; }
    .bp-rail { border-right: 0; border-bottom: 1px solid var(--bp-line); max-height: 260px; overflow-y: auto; }
    .bp-rail-list { position: static; max-height: none; overflow: visible; }
    .bp-why { grid-template-columns: 1fr; }
    .bp-card { grid-template-columns: 6px 1fr; }
    .bp-card-act { grid-column: 2; flex-direction: row; padding: 0 20px 16px; }
}
@media (max-width: 560px) {
    .bp-wrap { padding: 0 16px; }
    .bp-four-btn { padding: 12px 12px 12px 14px; column-gap: 6px; }
    .bp-four-cat { font-size: .9rem; overflow-wrap: anywhere; }
    .bp-four-mode { font-size: .66rem; letter-spacing: .03em; }
    .bp-four-n { min-width: 26px; height: 26px; font-size: .78rem; padding: 0 6px; }
    .bp-facts li { min-width: 0; flex: 1 1 140px; }
    .bp-hero { padding: 36px 0 32px; }
    .bp-search { flex-direction: column; }
    .bp-search button { padding: 12px; }
    .bp-detail { padding: 20px 16px; }
    .bp-flat { grid-template-columns: 1fr; padding: 14px; }
    .bp-file-go { display: none; }
    .bp-bar-row { grid-template-columns: 1fr auto; }
    .bp-bar-track { grid-column: 1 / -1; grid-row: 2; }
    .bp-bar-rate { grid-column: 1 / -1; grid-row: 3; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    .bp-four-btn, .bp-file { transition: none; }
    .bp-four-btn:hover, .bp-file:hover { transform: none; }
}

/* Active Bids: the kinds of notice are kept apart, each under its own heading */
.bp-chip.is-kind { background: #e8eef9; color: #1e3a8a; }
.bp-seg-n { font-weight: 600; opacity: .7; }
