/* Can Imagine Brand Ratings. Loaded after /style-v3/kit.css; every rule is scoped under .rt so nothing else on the site changes.
   Editorial floor, orange leads, sun is the second accent, no blue. Sports-stats density: tabular numerals, tight zebra rows,
   small muted rank numbers beside each value. */
.rt { --rt-head: 65px; --rt-zebra: #f1eee4; --rt-lead: #fde3d4; --rt-cell-y: 7px; }
.rt .tab { font-variant-numeric: tabular-nums; }

/* hero */
.rt-hero { padding-block: var(--s-6) var(--s-7); border-bottom: 1.5px solid var(--ink); }
.rt-hero__grid { display: grid; gap: var(--s-6); align-items: end; }
.rt-hero .h1 { font-size: clamp(2.75rem, 1.6rem + 4.4vw, 5.75rem); margin-top: var(--s-3); }
.rt-hero .lede { margin-top: var(--s-4); max-width: 60ch; }
.rt-meta { display: flex; flex-wrap: wrap; gap: 6px var(--s-4); margin-top: var(--s-4); font: 500 var(--t-xs)/1.4 var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); max-width: none; }
.rt-meta span + span::before { content: '/'; margin-right: var(--s-4); color: var(--line); }
.rt-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); margin-top: var(--s-3); }
@media (min-width: 960px) { .rt-hero__grid { grid-template-columns: minmax(0, 1fr) 340px; } }

/* leader card: white sheet, ink rule, 4 px offset shadow */
.rt-lead { background: var(--sheet); border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: var(--s-4) var(--s-5) var(--s-5); font-family: var(--f-mono); }
.rt-lead__head { display: flex; justify-content: space-between; gap: var(--s-3); padding-bottom: var(--s-2); border-bottom: 2px solid var(--ink); font: 500 0.75rem/1.2 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; max-width: none; }
.rt-lead__name { display: flex; align-items: baseline; gap: var(--s-3); margin-top: var(--s-3); font: 700 1.75rem/1.05 var(--f-display); letter-spacing: -0.02em; max-width: none; }
.rt-lead__name a { text-decoration: none; }
.rt-lead__num { display: flex; align-items: baseline; gap: var(--s-2); margin-top: var(--s-2); max-width: none; }
.rt-lead__num b { font: 800 3.5rem/0.9 var(--f-display); font-stretch: 80%; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rt-lead__num small { font: 500 0.75rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.rt-lead dl { display: grid; grid-template-columns: max-content 1fr; margin-top: var(--s-3); }
.rt-lead dt, .rt-lead dd { padding: 6px 0; border-top: 1px solid rgba(32, 35, 31, 0.18); font-size: 0.8125rem; }
.rt-lead dt { text-transform: uppercase; letter-spacing: 0.05em; padding-right: var(--s-4); color: var(--muted); }
.rt-lead dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.rt-seed { display: inline-grid; place-items: center; min-width: 2.25rem; height: 2.25rem; padding: 0 6px; background: var(--orange); color: var(--ink); font: 800 1.25rem/1 var(--f-display); font-stretch: 80%; }

/* toolbar: tabs, category chips, search */
.rt-board { padding-block: var(--s-6) var(--section); }
.rt-tools { display: grid; gap: var(--s-4); margin-bottom: var(--s-4); }
.rt-tabs { display: flex; gap: 0; border: 1.5px solid var(--ink); width: max-content; max-width: 100%; }
.rt-tabs button { min-height: 44px; padding: 8px 18px; border: 0; background: var(--sheet); color: var(--ink); font: 600 var(--t-base)/1 var(--f-body); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.rt-tabs button + button { border-left: 1.5px solid var(--ink); }
.rt-tabs button[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.rt-tabs button .c { font: 500 0.75rem/1 var(--f-mono); opacity: 0.75; }
.rt-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.rt-chip { min-height: 44px; padding: 6px 14px; border: 1.5px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: 500 0.75rem/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.rt-chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.rt-chip:active, .rt-tabs button:active { transform: scale(0.97); }
.rt-find { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: end; }
.rt-search { display: grid; gap: 6px; flex: 1 1 260px; max-width: 420px; }
.rt-search label { font: 500 0.75rem/1.2 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.rt-search input { min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 0; background: var(--sheet); color: var(--ink); width: 100%; }
.rt-count { font-size: var(--t-sm); color: var(--muted); min-height: 1.5em; }
.rt-dl { margin-left: auto; }
@media (hover: hover) and (pointer: fine) {
  .rt-chip:hover, .rt-tabs button:hover { background: var(--orange); color: var(--ink); }
  .rt-chip[aria-pressed="true"]:hover, .rt-tabs button[aria-selected="true"]:hover { background: var(--ink); color: var(--cream); }
}

/* the table */
.rt-panel + .rt-panel { margin-top: var(--s-8); }
.rt-panel__title { font: 600 var(--t-h3)/1.1 var(--f-display); letter-spacing: -0.015em; margin-bottom: var(--s-3); }
.js .rt-panel__title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rt-scroll { position: relative; overflow: auto; max-height: min(78vh, 760px); border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); background: var(--sheet); overscroll-behavior-x: contain; }
.rt-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 0.875rem; line-height: 1.25; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.rt-table caption { text-align: left; padding: 0; }
.rt-table thead { position: sticky; top: 0; z-index: 3; }
.rt-table thead th { background: var(--ink); color: var(--cream); font: 500 0.6875rem/1.15 var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; text-align: right; padding: 0; vertical-align: bottom; border-bottom: 2px solid var(--orange); }
.rt-table thead tr.rt-group th { font-size: 0.6875rem; padding: 6px 8px 2px; color: var(--glow-muted); border-bottom: 0; text-align: center; }
.rt-table thead tr.rt-group th.g { border-bottom: 1px solid rgba(246, 239, 230, 0.35); }
.rt-table thead th button { all: unset; box-sizing: border-box; display: flex; justify-content: flex-end; align-items: flex-end; gap: 4px; width: 100%; min-height: 44px; padding: 8px 8px 7px; cursor: pointer; }
.rt-table thead th button:focus-visible { outline: 3px solid var(--cream); outline-offset: -4px; box-shadow: none; }
.rt-table thead th[aria-sort] button { color: var(--orange); }
.rt-table thead th button::after { content: ''; width: 0; height: 0; border: 4px solid transparent; opacity: 0; margin-bottom: 2px; }
.rt-table thead th[aria-sort="descending"] button::after { border-top-color: currentColor; border-bottom-width: 0; opacity: 1; }
.rt-table thead th[aria-sort="ascending"] button::after { border-bottom-color: currentColor; border-top-width: 0; opacity: 1; }
.rt-table thead th.l, .rt-table td.l { text-align: left; }
.rt-table thead th.l button { justify-content: flex-start; }
.rt-table td { padding: var(--rt-cell-y) 8px; text-align: right; border-bottom: 1px solid rgba(32, 35, 31, 0.1); background: var(--sheet); }
.rt-table tbody tr.z td { background: var(--rt-zebra); }
.rt-table tbody tr.lead td { background: var(--rt-lead); }
.rt-table tbody tr.lead td.rk b { background: var(--orange); }
.rt-table td.rk { color: var(--ink); font-family: var(--f-mono); font-size: 0.8125rem; }
.rt-table td.rk b { display: inline-block; min-width: 1.75rem; padding: 2px 4px; text-align: center; font-weight: 500; }
.rt-table .tie { color: var(--muted); font-weight: 400; margin-right: 1px; }
.rt-table td.nm { font-weight: 600; }
.rt-table td.nm a { text-decoration: underline; text-decoration-color: rgba(32, 35, 31, 0.35); text-decoration-thickness: 1px; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 30px; }
.rt-table td.nm a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rt-table td.nm small { display: block; font: 400 0.75rem/1.2 var(--f-body); color: var(--muted); }
.rt-table td.cat { font: 500 0.6875rem/1.2 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.rt-table td.adj b { font: 700 1rem/1 var(--f-display); letter-spacing: -0.01em; }
.rt-table td.adj .iv { margin-left: 6px; font-size: 0.75rem; color: var(--muted); }
.rt-table .rk2 { display: inline-block; min-width: 1.4em; margin-left: 4px; font: 400 0.6875rem/1 var(--f-mono); color: #8a8b82; text-align: left; vertical-align: 1px; }
.rt-table td.na { color: #a3a49a; }
.rt-table td.sep, .rt-table th.sep { border-left: 1px solid rgba(32, 35, 31, 0.16); }
.rt-table thead th.sep { border-left-color: rgba(246, 239, 230, 0.25); }
.rt-table .pos { color: var(--ink); }
.rt-table .neg { color: var(--ink); }
.rt-table tfoot td { text-align: left; padding: var(--s-4); color: var(--muted); background: var(--sheet); white-space: normal; }
/* frozen rank + name columns */
.rt-table .fz1, .rt-table .fz2 { position: sticky; z-index: 1; }
.rt-table .fz1 { left: 0; width: 44px; min-width: 44px; max-width: 44px; }
.rt-table .fz2 { left: 44px; box-shadow: inset -1.5px 0 0 rgba(32, 35, 31, 0.22); }
.rt-table thead .fz1, .rt-table thead .fz2 { z-index: 4; }
.rt-table td.fz2 { min-width: 132px; max-width: 200px; white-space: normal; }
@media (max-width: 639px) {
  .rt { --rt-cell-y: 9px; }
  .rt-table td.fz2 { min-width: 118px; max-width: 132px; }
  .rt-table td.nm a { min-height: 44px; line-height: 1.2; }
  .rt-scroll { margin-right: 4px; }
  .rt-tabs { width: 100%; }
  .rt-tabs button { flex: 1 1 50%; justify-content: center; }
  .rt-dl { margin-left: 0; }
}
/* desktop: the brands table fits, so drop the inner scroll box and let the header stick under the site header */
@media (min-width: 1360px) {
  .rt-panel .rt-scroll { overflow: visible; max-height: none; }
  .rt-panel .rt-table thead { top: var(--rt-head); }
}
@media (hover: hover) and (pointer: fine) and (min-width: 640px) {
  .rt { --rt-cell-y: 6px; }
  .rt-table td.nm a { min-height: 0; }
}
/* row headers (brand page tables) */
.rt-table tbody th { text-align: left; font-weight: 600; padding: var(--rt-cell-y) 8px; border-bottom: 1px solid rgba(32, 35, 31, 0.1); background: var(--sheet); white-space: nowrap; }
.rt-table tbody tr.z th { background: var(--rt-zebra); }
.rt-table thead th > .h { display: block; padding: 8px 8px 7px; }
.rt-mini tbody th, .rt-mini thead th:first-child { position: sticky; left: 0; z-index: 1; box-shadow: inset -1.5px 0 0 rgba(32, 35, 31, 0.18); }
.rt-mini thead th:first-child { z-index: 4; }
.rt-legend { margin-top: var(--s-5); display: grid; gap: var(--s-2) var(--s-6); font-size: var(--t-sm); color: var(--muted); }
.rt-legend p { max-width: 72ch; }
.rt-legend b { color: var(--ink); font-weight: 600; }
@media (min-width: 960px) { .rt-legend { grid-template-columns: 1fr 1fr; } }

/* below the table */
.rt-notes { display: grid; gap: var(--s-6); margin-top: var(--s-8); }
@media (min-width: 960px) { .rt-notes { grid-template-columns: 1fr 1fr; } }
.rt-box { border-top: 2px solid var(--ink); padding-top: var(--s-4); }
.rt-box h2, .rt-box h3 { font: 600 var(--t-h3)/1.1 var(--f-display); letter-spacing: -0.015em; }
.rt-box p { margin-top: var(--s-3); }
.rt-box ul { margin: var(--s-3) 0 0; padding: 0; list-style: none; }
.rt-box li { display: flex; justify-content: space-between; gap: var(--s-4); padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--t-base); }
.rt-box li span:last-child { font: 500 var(--t-sm)/1.4 var(--f-mono); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.rt-box li a { font-weight: 600; text-underline-offset: 4px; }
.rt-moves .up { color: var(--ink); }
.rt-moves .down { color: var(--orange-ink); }

/* brand page */
.rt-bhero { padding-block: var(--s-6) var(--s-8); border-bottom: 1.5px solid var(--ink); }
.rt-bhero__grid { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 960px) { .rt-bhero__grid { grid-template-columns: minmax(0, 1fr) 380px; } }
.rt-bhero .h1 { font-size: clamp(3rem, 1.8rem + 5vw, 6.5rem); margin-top: var(--s-3); }
.rt-score { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-3) var(--s-6); margin-top: var(--s-5); }
.rt-score__num { display: flex; align-items: baseline; gap: var(--s-2); max-width: none; }
.rt-score__num b { font: 800 clamp(4.5rem, 3rem + 6vw, 8rem)/0.82 var(--f-display); font-stretch: 78%; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rt-score__num small { font: 500 0.8125rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.rt-score__facts { display: grid; gap: 4px; font-size: var(--t-base); max-width: 40ch; }
.rt-score__facts p { max-width: none; }
.rt-tieline { margin-top: var(--s-4); font-size: var(--t-base); max-width: 62ch; }
.rt-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-5); }
.rt-section { padding-block: var(--s-8) 0; }
.rt-section:last-of-type { padding-bottom: var(--section); }
.rt-section .h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.rt-section > .wrap > p.lede, .rt-section .rt-sub { margin-top: var(--s-3); }
.rt-sub { font-size: var(--t-base); color: var(--muted); max-width: 70ch; }
.rt-mini { margin-top: var(--s-5); }
.rt-mini .rt-scroll { max-height: none; }
.rt-mini .rt-table { font-size: 0.9375rem; }
.rt-mini .rt-table td { padding-block: 10px; }
.rt-mini .rt-table td.l { white-space: normal; min-width: 150px; }
.rt-mini .rt-table td .rk2 { margin-left: 0; }
.rt-bar { display: inline-block; vertical-align: middle; width: 80px; height: 8px; background: rgba(32, 35, 31, 0.1); margin-left: 8px; position: relative; }
.rt-bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.rt-bar.m i { background: var(--orange); }
.rt-drinks { display: grid; gap: var(--s-6); margin-top: var(--s-5); }
@media (min-width: 960px) { .rt-drinks { grid-template-columns: 1fr 1fr; } }
.rt-drinks h3 { font: 500 0.75rem/1.2 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: var(--s-2); border-bottom: 2px solid var(--ink); }
.rt-drinks ol { list-style: none; margin: 0; padding: 0; }
.rt-drinks li { display: grid; grid-template-columns: 4rem 1fr auto; gap: var(--s-3); align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rt-drinks li .p { font: 500 0.75rem/1 var(--f-mono); color: var(--muted); }
.rt-drinks li a { font-weight: 600; text-underline-offset: 4px; }
.rt-drinks li small { display: block; color: var(--muted); font-size: var(--t-sm); }
.rt-drinks li .s { font: 700 1.125rem/1 var(--f-display); font-variant-numeric: tabular-nums; text-align: right; }
.rt-drinks li .s small { font: 400 0.75rem/1.3 var(--f-mono); }
.rt-history[hidden] { display: none; }
.rt-actions { margin-top: var(--s-6); }
.rt-mini .rt-table td.l { min-width: 240px; }
@media (max-width: 639px) {
  .rt-mini tbody th { white-space: normal; min-width: 132px; max-width: 168px; line-height: 1.25; }
}
.rt-lead dl dt:first-of-type, .rt-lead dl dt:first-of-type + dd { border-top: 0; }
.rt-table td.br a { text-decoration-color: rgba(32, 35, 31, 0.35); text-underline-offset: 3px; }
@media (max-width: 639px) {
  .rt-chip { flex: none; }
}
/* One scroll axis below 1360 px, a swipe cue, the caveat line, the key, the next step and the trademark note. */
@media (max-width: 1359px) { .rt-panel .rt-scroll { max-height: none; } }
.rt-swipe { display: none; margin: var(--s-3) 0 var(--s-2); font: 500 0.75rem/1.3 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1359px) { .rt-swipe { display: block; } }
@media (min-width: 701px) { .rt-swipe--mini { display: none; } }
.rt-caveat { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--muted); max-width: 64ch; }
.rt-caveat a { color: var(--ink); }
.rt-key { margin: var(--s-3) 0 var(--s-2); font-size: var(--t-sm); color: var(--muted); max-width: 90ch; }
.rt-key b { color: var(--ink); font-weight: 600; }
.rt-note { margin-top: var(--s-3); font-size: var(--t-sm); }
.rt-next .rt-sub a { color: var(--ink); }
.rt-tm { padding: var(--s-5) 0; font-size: var(--t-xs); color: var(--muted); }

/* drink cell shows its brand on narrow screens, where the Brand column is scrolled out of view */
.rt-table td.nm .brs { display: none; }
@media (max-width: 719px) {
  .rt-table td.nm .brs { display: block; margin-top: 2px; font: 400 0.75rem/1.2 var(--f-body); color: var(--muted); }
}
/* brand page: definitions under the hero card (the Note column is off screen on phones) */
.rt-lead__defs { display: none; margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid rgba(32, 35, 31, 0.18); font: 400 0.75rem/1.45 var(--f-body); color: var(--muted); max-width: none; }
.rt-lead__defs b { color: var(--ink); font-weight: 600; }
@media (max-width: 700px) { .rt-lead__defs { display: block; } }
/* phone tap targets: at least 44 px in the short dimension */
@media (max-width: 639px) {
  .rt-lead__name a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .rt-table td.nm a { display: flex; width: 100%; min-width: 44px; }
  .rt-box li { align-items: center; padding-block: 0; }
  .rt-box li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
}
