/* nfsw-cars-20261129.css - /needforspeed/cars/list/, best/, police/ (2026-11-29). Loaded after nfsw-pages-20261128.css,
   uses its tokens (--sp-*, --nf-*). Data tables: class badges, rating bars, sticky car column, filter bar. ASCII only. */

[hidden] { display: none !important; }   /* the filter form, empty state and filtered rows rely on it (author display rules lose otherwise) */
.nf-nav a[aria-current="true"] { color: var(--sp-hot); background: rgba(39, 198, 255, .12); box-shadow: inset 0 -2px 0 var(--sp-accent); }

/* sub-nav under the hero: overview / list / best / police */
.cr-sub { border-bottom: 1px solid var(--sp-line); background: rgba(11, 14, 19, .6); }
.cr-sub .sp-wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cr-sub .sp-wrap::-webkit-scrollbar { display: none; }
.cr-sub a { flex: none; padding: 15px 14px 13px; border-bottom: 2px solid transparent; font: 600 13px/1 var(--nf-head); letter-spacing: .12em; text-transform: uppercase;
  color: var(--sp-mute); text-decoration: none; transition: color .15s ease, border-color .15s ease; }
.cr-sub a:hover { color: var(--sp-hot); }
.cr-sub a[aria-current="page"] { color: var(--sp-hot); border-bottom-color: var(--sp-accent); }

/* class badge */
.cr-c { display: inline-grid; place-items: center; width: 26px; height: 22px; border-radius: 5px; font: 700 13px/1 var(--nf-head); font-style: italic;
  color: #071018; background: var(--cr-k, #8796A8); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22); }
.cr-c--S { --cr-k: #FF5A64; } .cr-c--A { --cr-k: #FF9A3D; } .cr-c--B { --cr-k: #FFD24A; }
.cr-c--C { --cr-k: #46D6A0; } .cr-c--D { --cr-k: #27C6FF; } .cr-c--E { --cr-k: #A9B6C6; }

/* class jump row (no-JS) */
.cr-jump { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.cr-jump a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--sp-line); border-radius: 7px; background: rgba(234, 240, 247, .025);
  color: var(--sp-text); text-decoration: none; transition: border-color .15s ease; }
.cr-jump a:hover { border-color: rgba(39, 198, 255, .45); }
.cr-jump span { display: grid; gap: 3px; font: 600 14px/1.1 var(--sp-sans); }
.cr-jump small { font: 500 11px/1 var(--sp-mono); color: var(--sp-mute); }

/* filter bar */
.cr-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; margin: 0 0 14px; padding: 16px; border: 1px solid var(--sp-line); border-radius: 8px;
  background: linear-gradient(180deg, var(--sp-panel-2), var(--sp-panel)); }
.cr-f { display: grid; gap: 6px; }
.cr-f label { font: 600 11px/1 var(--nf-head); letter-spacing: .14em; text-transform: uppercase; color: var(--sp-mute); }
.cr-f input, .cr-f select { height: 40px; padding: 0 12px; border: 1px solid var(--sp-line-2); border-radius: 7px; background: #0B0F16; color: var(--sp-text);
  font: 500 15px/1 var(--sp-sans); }
.cr-f input:focus-visible, .cr-f select:focus-visible { outline: 2px solid var(--sp-accent); outline-offset: 1px; }
.cr-f--q { flex: 1 1 220px; }
.cr-f--q input { width: 100%; }
.cr-f--lv input { width: 92px; }
.cr-f--cls { display: flex; gap: 6px; align-self: flex-end; }
.cr-f--cls button { padding: 7px; border: 1px solid var(--sp-line-2); border-radius: 7px; background: transparent; cursor: pointer; opacity: .55; transition: opacity .15s ease, border-color .15s ease; }
.cr-f--cls button:hover { opacity: .85; }
.cr-f--cls button[aria-pressed="true"] { opacity: 1; border-color: var(--sp-accent); background: rgba(39, 198, 255, .1); }
.cr-reset { height: 40px; padding: 0 14px; border: 1px solid var(--sp-line-2); border-radius: 7px; background: transparent; color: var(--sp-body); font: 600 13px/1 var(--nf-head);
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.cr-reset:hover { color: var(--sp-hot); border-color: rgba(39, 198, 255, .5); }
.cr-count { margin: 0 0 10px; font: 500 13px/1 var(--sp-mono); color: var(--sp-accent-2); }
.cr-empty { margin: 14px 0 0; color: var(--sp-body); }
.cr-empty button { margin-left: 8px; padding: 6px 10px; border: 1px solid var(--sp-line-2); border-radius: 7px; background: transparent; color: var(--sp-accent-2); cursor: pointer; }

/* tables */
.cr-scroll { overflow-x: auto; border: 1px solid var(--sp-line); border-radius: 8px; background: linear-gradient(180deg, var(--sp-panel-2), var(--sp-panel));
  -webkit-overflow-scrolling: touch; }
.cr-scroll:focus-visible { outline: 2px solid var(--sp-accent); outline-offset: 2px; }
.cr-scroll--big { max-height: 78vh; overflow-y: auto; overscroll-behavior: contain; }
.cr-table { width: 100%; border-collapse: separate; border-spacing: 0; font: 400 15px/1.3 var(--sp-sans); color: var(--sp-body); }
.cr-table caption { padding: 14px 16px 10px; text-align: left; font: 500 12.5px/1.4 var(--sp-mono); color: var(--sp-mute); caption-side: top; }
.cr-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cr-table th, .cr-table td { padding: 9px 14px; border-bottom: 1px solid var(--sp-line); text-align: left; vertical-align: middle; white-space: nowrap; }
.cr-table thead th { position: sticky; top: 0; z-index: 2; background: #151B26; font: 600 11.5px/1.2 var(--nf-head); letter-spacing: .13em; text-transform: uppercase; color: var(--sp-mute);
  border-bottom-color: var(--sp-line-2); }
.cr-table tbody tr:last-child > * { border-bottom: 0; }
.cr-table tbody tr:hover > * { background-color: rgba(39, 198, 255, .045); }
.cr-table tbody th { position: sticky; left: 0; z-index: 1; background: #131924; font-weight: 600; color: var(--sp-text); }
.cr-table thead th:first-child { left: 0; z-index: 3; }
.cr-car { display: grid; gap: 2px; }
.cr-car small { font: 600 10.5px/1 var(--nf-head); letter-spacing: .14em; text-transform: uppercase; color: var(--sp-mute); }
.cr-table .cr-num { text-align: right; font: 500 14px/1 var(--sp-mono); font-variant-numeric: tabular-nums; color: var(--sp-text); }
.cr-table thead .cr-num { font: 600 11.5px/1.2 var(--nf-head); }
.cr-st i { margin: 0 4px; font-style: normal; color: var(--sp-mute); }
.cr-rt { min-width: 120px; }
.cr-rt b { display: inline-block; min-width: 3ch; font-weight: 700; color: var(--sp-hot); }
.cr-bar { position: relative; display: inline-block; width: 64px; height: 4px; margin: 0 10px 0 0; vertical-align: middle; border-radius: 4px; background: rgba(234, 240, 247, .08); }
.cr-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); border-radius: inherit; background: var(--cr-k); opacity: .85; }
.cr-bar--S { --cr-k: #FF5A64; } .cr-bar--A { --cr-k: #FF9A3D; } .cr-bar--B { --cr-k: #FFD24A; }
.cr-bar--C { --cr-k: #46D6A0; } .cr-bar--D { --cr-k: #27C6FF; } .cr-bar--E { --cr-k: #A9B6C6; }
.cr-star { margin-left: 2px; color: var(--nf-boost-2); font-size: 11px; }
.cr-tag { display: inline-block; margin-right: 5px; padding: 4px 7px; border-radius: 999px; border: 1px solid var(--sp-line-2); font: 600 10.5px/1 var(--nf-head);
  letter-spacing: .1em; text-transform: uppercase; color: var(--sp-body); }
.cr-tag--cop, .cr-tag--police { color: #FFB3B8; border-color: rgba(232, 65, 77, .45); }
.cr-tag--starter { color: var(--nf-good); border-color: rgba(70, 214, 160, .4); }
.cr-tag--treasure { color: var(--nf-gold); border-color: rgba(255, 210, 74, .4); }
.cr-tag--drag { color: var(--nf-boost-2); border-color: rgba(255, 138, 31, .4); }

/* sort buttons (added by JS inside each th) */
.cr-sort { all: unset; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.cr-sort::after { content: ""; width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px; opacity: .3; }
.cr-sort:hover { color: var(--sp-hot); }
.cr-sort:focus-visible { outline: 2px solid var(--sp-accent); outline-offset: 3px; border-radius: 3px; }
th[aria-sort] .cr-sort { color: var(--sp-accent-2); }
th[aria-sort="descending"] .cr-sort::after { opacity: 1; }
th[aria-sort="ascending"] .cr-sort::after { opacity: 1; border-top-color: transparent; border-bottom-color: currentColor; margin: 0 0 4px; }
.cr-num .cr-sort { flex-direction: row-reverse; }

/* notes, prose, lists */
.cr-notes { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 14.5px; line-height: 1.55; color: var(--sp-body); max-width: 92ch; }
.cr-notes b { color: var(--sp-text); }
.cr-more { margin: 20px 0 0; color: var(--sp-body); }
.cr-more a, .cr-p a { color: var(--sp-accent-2); }
.cr-p { margin: 16px 0 0; max-width: 80ch; color: var(--sp-body); }
.cr-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: crt; }
.cr-toc li { counter-increment: crt; }
.cr-toc a { display: inline-flex; gap: 8px; padding: 9px 13px; border: 1px solid var(--sp-line); border-radius: 7px; color: var(--sp-text); text-decoration: none; font-weight: 500; }
.cr-toc a::before { content: counter(crt, decimal-leading-zero); font: 500 12px/1.4 var(--sp-mono); color: var(--sp-accent-2); }
.cr-toc a:hover { border-color: rgba(39, 198, 255, .45); }
.cr-verdict { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.cr-verdict li { padding: 13px 16px; border: 1px solid var(--sp-line); border-left: 3px solid var(--sp-accent); border-radius: 7px; background: rgba(234, 240, 247, .025); color: var(--sp-body); }
.cr-verdict b { color: var(--sp-hot); }
.cr-class { margin: 0 0 30px; }
.cr-class__h { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; margin: 0 0 12px; }
.cr-class__h h3 { margin: 0; font: 700 21px/1.1 var(--nf-head); color: var(--sp-hot); }
.cr-class__h p { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--sp-body); }
.cr-classes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.cr-classes li { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--sp-line); border-radius: 7px; background: rgba(234, 240, 247, .025); }
.cr-classes b { font: 600 14px/1 var(--sp-mono); color: var(--sp-text); }
.cr-classes span { grid-column: 2; font-size: 13.5px; color: var(--sp-mute); }

.cr-table--mini tbody th, .cr-table--mini thead th:first-child { width: 30%; }

@media (max-width: 900px) {
  .cr-jump { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cr-classes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .cr-bar { width: 36px; margin-right: 8px; }
  .cr-rt { min-width: 88px; }
  .cr-table { font-size: 14px; }
  .cr-table th, .cr-table td { padding: 8px 10px; }
  .cr-f--q, .cr-f--cls { flex: 1 1 100%; }
  .cr-f--cls { justify-content: space-between; }
  .cr-table caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cr-f:not(.cr-f--q):not(.cr-f--cls) { flex: 1 1 40%; }
  .cr-f input, .cr-f select { width: 100%; }
  .cr-classes { grid-template-columns: minmax(0, 1fr); }
  .cr-scroll--big { max-height: 70vh; }
}
