/* All Resets shares the Codex/Claude tracker foundation in tracker.css (including the 1.7 design pass).
   Only aggregate-specific controls, the five-tracker panel and evidence categories are added here. */

/* Calendar head and filters: centered; up to four filters and the (i) button in one row on wide screens. */
.bfar.bfcr-tracker .bfcr-calendar-heading.bfar-calendar-heading { align-items: center; align-content: flex-start; flex-wrap: nowrap; margin-top: clamp(36px, 5svh, 56px); }
.bfar.bfcr-tracker .bfar-calendar-heading > .bf-reset-head { flex: none; min-height: 0; }
.bfar.bfcr-tracker .bfar-calendar-heading > .bfar-toolbar { display: flex; grid-template-columns: none; flex: none; }
.bfar.bfcr-tracker .bfar-toolbar .bfcr-filter { flex: 0 1 200px; }
.bfar.bfcr-tracker .bfar-period-range { color: var(--bf-reset-muted); font-size: 14px; }
.bfar.bfcr-tracker .bfar-clear { display: block; margin: 0 auto 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--bf-reset-edge); border-radius: 999px; background: #fff; color: var(--bf-reset-ink); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.bfar.bfcr-tracker .bfar-clear[hidden] { display: none; }
.bfar.bfcr-tracker .bfar-empty { margin: 0 0 12px; color: var(--bf-reset-muted); font-size: 14px; text-align: center; }
.bfar.bfcr-tracker .bfcr-day-policy { background: #6b6b67; color: #fff; border-color: #6b6b67; }
.bfar.bfcr-tracker .bfcr-day-mixed { background: #111; color: #fff; border: 3px double #9a9a96; }
.bfar.bfcr-tracker .bfcr-day-observed { background: #fff; color: #111; border: 2px dotted #333; }
.bfar.bfcr-tracker .bfar-record > summary { font-weight: 700; padding-block: .25rem; }
.bfar.bfcr-tracker .bfar-record-type { margin-top: 6px; }
.bfar.bfcr-tracker .bfar-more { font-size: 14px; }
.bfar.bfcr-tracker .bfar-history { margin-top: 16px; }
.bfar.bfcr-tracker .bfar-history > summary { font-weight: 700; min-height: 44px; padding-block: .65rem; }
.bfar.bfcr-tracker .bfar-source { margin-block: 10px; }
.bfar.bfcr-tracker .bfar-source h4 { margin: 0 0 2px; }
.bfar.bfcr-tracker .bfar-source p { margin: 0; font-size: 14px; }
.bfar.bfcr-tracker .bf-reset-modal:not([open]) { display: none; }
.bfar.bfcr-tracker .bf-reset-modal .bfar-history > h4 { font-size: 16px; }
/* Mid widths: three filters stay in one row; four become two by two with the (i) button beside the title. */
@media (min-width: 701px) and (max-width: 960px) {
  .bfar.bfcr-tracker .bfar-calendar-heading > .bfar-toolbar:has(> .bfcr-filter[hidden]) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 44px; width: 100%; }
  .bfar.bfcr-tracker .bfar-calendar-heading > .bfar-toolbar:not(:has(> .bfcr-filter[hidden])) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; width: min(100%, 560px); }
  .bfar.bfcr-tracker .bfar-calendar-heading > .bfar-toolbar:not(:has(> .bfcr-filter[hidden])) .bfar-info { position: absolute; top: -6px; right: 0; }
}
/* Phones: two even columns of filters (an odd last one spans), the (i) button beside the title. */
@media (max-width: 700px) {
  .bfar.bfcr-tracker .bfar-calendar-heading > .bfar-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
  .bfar.bfcr-tracker .bfar-toolbar > .bfcr-filter:not([hidden]):nth-last-child(1 of .bfcr-filter:not([hidden])):nth-child(odd of .bfcr-filter:not([hidden])) { grid-column: 1 / -1; }
  .bfar.bfcr-tracker .bfar-calendar-heading .bfar-info { position: absolute; top: -6px; right: 0; }
  .bfar.bfcr-tracker .bfar-calendar-heading > .bf-reset-head { padding-inline: 48px; }
}

/* Latest reset for each of the five trackers, by product name, on the black panel. */
.bfar.bfcr-tracker .bfcr-hero.bfar-latest-companies { display: block; padding: clamp(18px, 2.4vw, 28px); }
.bfar.bfcr-tracker .bfar-panel-head { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 0 0 14px; }
.bfar.bfcr-tracker .bfar-panel-head .bfcr-eyebrow { margin: 0; padding: 0 52px; text-align: center; }
.bfar.bfcr-tracker .bfar-panel-head .bf-reset-refresh { top: 0; right: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; }
.bfar.bfcr-tracker .bfar-panel-head .bf-reset-refresh:hover { background: rgba(255, 255, 255, .18); }
.bfar.bfcr-tracker .bfar-products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.bfar.bfcr-tracker .bfar-product { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 16px 18px 12px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .08); color: #fff; }
.bfar.bfcr-tracker .bfar-product-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.bfar.bfcr-tracker .bfar-product .bfar-company-name { min-width: 0; margin: 0; padding: 0; font-size: 20px; line-height: 1.2; }
.bfar.bfcr-tracker.bfar .bfar-product .bfar-company-name a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; font-weight: 800; text-decoration: none; }
.bfar.bfcr-tracker.bfar .bfar-product .bfar-company-name a:hover span:not(.bfcr-visually-hidden) { text-decoration: underline; text-underline-offset: .2em; }
.bfar.bfcr-tracker .bfar-mark { display: block; flex: none; width: 26px; height: 26px; color: #fff; }
.bfar.bfcr-tracker .bfar-product-age { font-stretch: 70%; font-weight: 850; font-size: clamp(28px, 2.4vw, 36px); line-height: 1; letter-spacing: -.005em; text-transform: uppercase; }
.bfar.bfcr-tracker .bfar-product-type { font-size: 14px; font-weight: 700; line-height: 1.35; text-wrap: balance; }
.bfar.bfcr-tracker .bfar-product-date { font-size: 13px; opacity: .75; }
.bfar.bfcr-tracker .bfar-product-link { margin-top: auto; padding-top: 2px; }
.bfar.bfcr-tracker.bfar .bfar-product-link a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.bfar.bfcr-tracker .bfar-panel-note { margin: 14px 0 0; font-size: 13px; text-align: center; opacity: .75; }
.bfar.bfcr-tracker .bfar-latest-companies :is(a, button):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* Mid widths: three and two, with the second row filling the width evenly. */
@media (max-width: 1099px) {
  .bfar.bfcr-tracker .bfar-products { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bfar.bfcr-tracker .bfar-product { grid-column: span 2; }
  .bfar.bfcr-tracker .bfar-product:nth-child(n+4) { grid-column: span 3; }
}
@container (max-width: 700px) {
  .bfar.bfcr-tracker .bfar-products { grid-template-columns: 1fr; }
  .bfar.bfcr-tracker .bfar-product, .bfar.bfcr-tracker .bfar-product:nth-child(n+4) { grid-column: auto; }
}
@media (max-width: 700px) {
  .bfar.bfcr-tracker .bfar-products { grid-template-columns: 1fr; gap: 8px; }
  .bfar.bfcr-tracker .bfar-product, .bfar.bfcr-tracker .bfar-product:nth-child(n+4) { grid-column: auto; }
  /* Compact phone tiles: the date and the announcement link share the last row. */
  .bfar.bfcr-tracker .bfar-product { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 10px 16px 6px; }
  .bfar.bfcr-tracker .bfar-product > :is(.bfar-product-top, .bfar-product-age, .bfar-product-type) { grid-column: 1 / -1; }
  .bfar.bfcr-tracker .bfar-product-age { font-size: 28px; }
  .bfar.bfcr-tracker .bfar-product-link { margin: 0; padding: 0; }
}

/* Single tracker card (Gemini, Grok, GLM). */
.bfar.bfcr-tracker .bfar-hero .bfcr-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
