@font-face {
  font-family: BarlowCondensed;
  src: url('/assets/site/fonts/barlow-semi-condensed/BarlowSemiCondensed-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
#history-view[hidden],#history-link[hidden]{display:none!important}
.spotlight-history{min-height:360px;color:#202020}
.spotlight-history h1,.spotlight-history h2{color:#202020;font-family:'Spotlight Bangers',Impact,sans-serif;font-weight:400;letter-spacing:.6px}
.spotlight-history h1{margin:5px 0 8px;font-size:32px;line-height:1}
.spotlight-history h2{margin:26px 0 8px;font-size:23px;line-height:1.1}
.spotlight-history p{margin:8px 0;color:#55451f;font-size:12px;line-height:1.45}
.history-table-wrap{max-width:100%;overflow-x:auto;border:2px solid #202020;box-shadow:3px 3px 0 #202020}
.spotlight-history table{width:100%;border-collapse:collapse;background:#fff9df;color:#202020;text-align:left;font-size:12px;line-height:1.4}
.spotlight-history th,.spotlight-history td{padding:9px 11px;border-bottom:1px solid #d5c57e;vertical-align:top;overflow-wrap:anywhere}
.spotlight-history thead th{background:#c5e6e1;border-bottom:2px solid #202020;font:600 13px/1.2 BarlowCondensed,Arial,sans-serif}
.spotlight-history tbody tr:last-child th,.spotlight-history tbody tr:last-child td{border-bottom:0}
.spotlight-history tbody th{white-space:nowrap;font-weight:700}
.history-note{display:block;margin-top:3px;color:#66572d;font-size:11px;font-weight:400}
.history-number{text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:600px){.spotlight-history table{min-width:600px}.spotlight-history h1{font-size:27px}}

/* Voting history is laid out like an inked comic ledger. */
.bb-history-header{position:relative;overflow:hidden;margin:0 0 18px;padding:17px 20px;border:3px solid #202020;background:#f6c940 radial-gradient(circle,#c39829 1px,transparent 1.6px) 0 0/10px 10px;box-shadow:4px 4px 0 #202020}
.bb-history-header .eyebrow{display:inline-block;padding:4px 7px;border:2px solid #202020;background:#fff9df;color:#202020;font:900 italic 10px/1 BarlowCondensed,Arial,sans-serif;letter-spacing:1px}
.spotlight-history .bb-history-header h1{margin:8px 0 5px;font-size:clamp(31px,4vw,43px);letter-spacing:1px}
.spotlight-history .bb-history-header p{max-width:700px;margin:0;color:#332a18;font-size:13px;font-weight:700}
.bb-history-scroll{max-width:100%;overflow-x:auto;border:3px solid #202020;background:#fff9df;box-shadow:4px 4px 0 #202020;overscroll-behavior-x:contain}
.spotlight-history .bb-history-table{width:100%;min-width:max-content;border-collapse:separate;border-spacing:0;background:#fff9df;color:#202020;text-align:center;line-height:1.25}
.spotlight-history .bb-history-table th,.spotlight-history .bb-history-table td{min-width:112px;padding:10px 9px;border:0;border-right:1px solid #9b8b60;border-bottom:1px solid #9b8b60;vertical-align:middle;overflow-wrap:anywhere}
.spotlight-history .bb-history-table tr>*:last-child{border-right:0}
.spotlight-history .bb-history-table tbody tr:last-child>*{border-bottom:0}
.spotlight-history .bb-history-table thead th{background:#65bdd0;border-bottom:3px solid #202020;color:#202020;font:900 italic 14px/1.1 BarlowCondensed,Arial,sans-serif;text-transform:uppercase}
.spotlight-history .bb-history-table thead th:first-child,.spotlight-history .bb-history-table tbody th[scope="row"]{position:sticky;left:0;z-index:1;min-width:155px;max-width:190px;border-right:3px solid #202020;text-align:left;white-space:normal}
.spotlight-history .bb-history-table thead th:first-child{z-index:2;background:#ffe047}
.spotlight-history .bb-history-table tbody th[scope="row"]{background:#f4e6b9;font:900 italic 13px/1.15 BarlowCondensed,Arial,sans-serif;text-transform:uppercase}
.spotlight-history .bb-history-table .bb-history-top th[scope="row"]{background:#f6c940}
.spotlight-history .bb-history-table .bb-history-bottom th[scope="row"]{background:#65bdd0}
.spotlight-history .bb-history-table .bb-history-players th[scope="row"]{background:#fff2cc;font-style:normal;text-transform:none}
.spotlight-history .bb-history-table .bb-history-players td{background:#fffdf1}
.spotlight-history .bb-history-table .bb-history-bottom:first-of-type>*{border-top:3px solid #202020}
.spotlight-history .bb-history-table .is-hoh{background:#35bde8;font-weight:700}
.spotlight-history .bb-history-table .is-nominee{background:#f7aaa3;font-weight:700}
.spotlight-history .bb-history-table .is-audience{background:#c8e9e8;font-weight:700}
.spotlight-history .bb-history-table .is-care{background:#ffe58e;font-weight:700}
.spotlight-history .bb-history-table .is-evicted{background:#e96660;color:#171717;font-weight:700}
.spotlight-history .bb-history-table .is-vote{background:#fff4c5}
.spotlight-history .bb-history-table .is-empty{color:#887b5c}
@media(max-width:600px){
  .bb-history-header{padding:14px}
  .spotlight-history .bb-history-table{min-width:max-content}
  .spotlight-history .bb-history-table th,.spotlight-history .bb-history-table td{min-width:100px;padding:9px 7px}
  .spotlight-history .bb-history-table thead th:first-child,.spotlight-history .bb-history-table tbody th[scope="row"]{min-width:125px;max-width:145px}
}
.spotlight-history .bb-history-table .bb-history-players + .bb-history-bottom>*{border-top:3px solid #202020}
.spotlight-history .bb-history-table .bb-history-players td.is-hoh{background:#35bde8}
.spotlight-history .bb-history-table .bb-history-players td.is-nominee{background:#f7aaa3}
.spotlight-history .bb-history-table .bb-history-players td.is-evicted{background:#e96660}
.spotlight-history .bb-history-table .bb-history-players td.is-vote{background:#fff4c5}
.bb-history-table small{display:block;margin-top:4px;font-size:10px;line-height:1.2;font-weight:600;text-transform:none}
.bb-history-name{display:block}
.bb-history-name + .bb-history-name{margin-top:3px}
.bb-history-person{display:flex;flex-direction:column;align-items:center;gap:3px}
.bb-history-person + .bb-history-person{margin-top:8px}
.bb-history-person img,.bb-history-player img{width:42px;height:48px;object-fit:cover;object-position:top;border:2px solid #202020;background:#fff9df}
.bb-history-player{display:flex;align-items:center;gap:8px}
.bb-history-player img{flex:none;width:38px;height:44px}
.bb-history-player strong{display:block;overflow-wrap:anywhere}

/* Keep the entire ledger in the page, with a square portrait for each round. */
.bb-history-scroll{overflow:visible}
.spotlight-history .bb-history-table{min-width:0;table-layout:fixed}
.spotlight-history .bb-history-table th,.spotlight-history .bb-history-table td{min-width:0;padding:7px 4px;word-break:break-word}
.spotlight-history .bb-history-table thead th:first-child,.spotlight-history .bb-history-table tbody th[scope="row"]{position:static;min-width:0;max-width:none;width:14%;padding:7px}
.spotlight-history .bb-history-table td.has-portraits{padding:0}
.bb-history-portraits{display:flex;flex-direction:column;width:100%;aspect-ratio:1;overflow:hidden}
.bb-history-person,.bb-history-person + .bb-history-person{position:relative;display:block;flex:1;min-height:0;margin:0;overflow:hidden}
.bb-history-person img{display:block;width:100%;height:100%;border:0;object-fit:cover;object-position:top;background:#fff9df}
.bb-history-person > span{position:absolute;right:0;bottom:0;left:0;padding:2px 3px;background:rgba(255,249,223,.92);border-top:1px solid #202020;color:#202020;font-weight:800;font-size:clamp(9px,1vw,13px);line-height:1.1;overflow-wrap:anywhere}
.bb-history-player img{width:38px;height:44px}
@media(max-width:600px){
  .spotlight-history .bb-history-table{min-width:0}
  .spotlight-history .bb-history-table th,.spotlight-history .bb-history-table td{min-width:0;padding:5px 2px;font-size:10px}
  .spotlight-history .bb-history-table thead th:first-child,.spotlight-history .bb-history-table tbody th[scope="row"]{min-width:0;max-width:none;width:16%;padding:5px 3px;font-size:10px}
  .bb-history-player{display:block}
  .bb-history-player img{width:28px;height:32px}
  .bb-history-person > span{font-size:9px;padding:1px}
}
/* The care-package results below the ledger also stay within the page. */
.spotlight-history .history-table-wrap{overflow:visible}
.spotlight-history .history-table-wrap table{min-width:0;table-layout:fixed}
.spotlight-history .history-table-wrap th,.spotlight-history .history-table-wrap td{white-space:normal;overflow-wrap:anywhere}
@media(max-width:600px){.spotlight-history .history-table-wrap th,.spotlight-history .history-table-wrap td{padding:6px 3px;font-size:10px}}
/* Keep the houseguest rows compact as the season grows. */
.spotlight-history .bb-history-table .bb-history-players th[scope="row"]{padding:3px 5px}
.spotlight-history .bb-history-table .bb-history-players td{padding:3px 4px}
.bb-history-player{gap:6px}
.bb-history-player img{width:28px;height:30px}
.bb-history-player small{margin-top:1px}
@media(max-width:600px){
  .spotlight-history .bb-history-table .bb-history-players th[scope="row"]{padding:3px}
  .spotlight-history .bb-history-table .bb-history-players td{padding:3px 2px}
  .bb-history-player img{width:23px;height:25px}
}
/* Co-HoHs share the square with a vertical divider. */
.bb-history-portraits.has-multiple{flex-direction:row}
.bb-history-portraits.has-multiple .bb-history-person{width:50%;min-width:0}
.bb-history-top .bb-history-person > span{font-size:clamp(7px,.65vw,9px);padding:1px 2px;line-height:1.05}
.bb-history-person img{object-position:center 25%}
/* Reserve the vivid nominee color for the houseguest grid. */
.spotlight-history .bb-history-table .bb-history-top td.is-nominee,
.spotlight-history .bb-history-table .bb-history-top td.is-audience{background:#fff9df;color:#202020}
.spotlight-history .bb-history-table .bb-history-players td.is-nominee{background:#c92634;color:#fff}
.spotlight-history .bb-history-table .bb-history-players td:is(.is-no-vote,.is-nullified){background:#c9c9c9;color:#333}
.spotlight-history .bb-history-table .bb-history-players td.is-safe{background:#b5e2e6;color:#173f48}
.spotlight-history .bb-history-table .bb-history-players td.is-competition-won{background:#9ce6c9;color:#12372b}
.spotlight-history .bb-history-table .bb-history-players td.is-competition-lost{background:#8c2131;color:#fff}
.spotlight-history .bb-history-table .bb-history-players td.is-after-eviction{border:0;background:#fff9df;padding:0}
.spotlight-history .bb-history-table .bb-history-players td:is(.is-hoh,.is-nominee,.is-no-vote,.is-nullified,.is-competition-won,.is-competition-lost,.is-safe),
.spotlight-history .bb-history-table .bb-history-bottom td.is-competition-lost {
  font-family: BarlowCondensed, Arial, sans-serif;
  font-weight: 600;
  font-style: italic;
}
