@import url("../assets/css/site.css?h=f8caa40e43");

:root {
  --cols: 4;
  --margin: calc(16px + 24 * (100vw - 375px) / 1065);
  --gap: calc(12px + 12 * (100vw - 375px) / 1065);
  --top-h: 64px;

  --section: clamp(calc(var(--space-48) + var(--space-32)), 10vw, calc(var(--space-96) + var(--space-64)));
  --card-gap: clamp(8px, calc(8px + 12 * (100vw - 375px) / 1545), 20px);

  --radius-0: 0;
  --radius-xs: 8px;
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --icon-xs: 12px;
  --icon-s: 14px;
  --icon-m: 16px;
  --icon-l: 18px;
  --icon-xl: 20px;
  --icon-box-s: 24px;
  --icon-box-m: 32px;

  --control-s: 28px;
  --control-m: 36px;
  --control-l: 40px;

  --surface-1: #F9F8F8;
  --surface-2: #F4F4F2;
  --surface-3: #E8E8E8;
  --surface-4: #D9D9D7;
  --surface-dark-1: #141414;
  --surface-dark-2: #2B2B2B;


  --shadow-chip: 0 1px 2px var(--black-a08);
  --shadow-pop: 0 14px 40px var(--black-a12);
  --shadow-lift: 0 6px 14px var(--black-a25);
  --shadow-drag: 0 14px 28px var(--black-a35);
  --cta-min-h: 560px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-150: 150ms;
  --dur-200: 200ms;
  --dur-300: 300ms;
  --dur-400: 400ms;
  --dur-450: 450ms;
  --dur-500: 500ms;
  --dur-600: 600ms;
  --dur-900: 900ms;

  --bar-off: 0px;
  --head-h: 0px;
  --head-shift: calc(var(--head-h) + max(0px, var(--card-gap) - var(--space-12)));
  --mnav-h: 72px;
  --mnav-bar-h: calc(4 * var(--space-6) + var(--icon-l) + var(--space-2) + var(--fs-text-s) * var(--lh-ui));
}
/* No page scrolls sideways, so a trackpad scroll that drifts sideways only rubber-bands the page and peeks at the back/forward swipe.
   On the root scroller (it has no effect elsewhere); it also turns off two-finger swipe navigation in Chrome. */
html { overscroll-behavior-x: none; }

@media (max-width: 374.98px) { :root { --margin: 16px; --gap: 12px; } }
@media (min-width: 768px)    { :root { --cols: 8; } }
@media (min-width: 1024px)   { :root { --cols: 12; } }
@media (max-width: 1023.98px) { :root { --bar-off: var(--bar-h); } }
@media (min-width: 1440px) {
  :root {
    --margin: calc(40px + 16 * (100vw - 1440px) / 480);
    --gap: calc(24px + 8 * (100vw - 1440px) / 480);
  }
}
@media (min-width: 1920px) { :root { --margin: 56px; --gap: 32px; } }

.app { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
.app > main { min-width: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gap);
  padding-inline: var(--margin);
}

@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: var(--dur-200); }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

.ico { width: var(--icon-l); height: var(--icon-l); flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 1024px) { .app--tools > main { display: flex; flex-direction: column; min-height: 100svh; } }

.top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  height: var(--top-h);
  padding: 0 var(--margin);
  border-bottom: 1px solid var(--black);
}
.top__index {
  font-family: var(--font-sans); font-variant-numeric: tabular-nums;
  font-size: var(--fs-text-s);
  letter-spacing: var(--tracking-caps-s);
  color: var(--grey-2);
  text-transform: uppercase;
}
.top__index b { font-weight: 400; color: var(--accent); }
.top__title { display: flex; align-items: baseline; gap: var(--space-16); min-width: 0; }
.top__title h1 { font-family: var(--font-display-text); font-weight: 400; font-size: var(--fs-h4); line-height: var(--lh-solid); letter-spacing: var(--tracking-tight); }
.top__title p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-text-m); color: var(--grey-2); }
@media (max-width: 767.98px) { .top__title p { display: none; } }
@media (max-width: 1023.98px) { .top { height: 48px; } .top .btn { display: none; } }

.app--tools main > .top {
  height: auto; padding-block: var(--margin) 0; border-bottom: 0;
  position: sticky; top: var(--bar-off); z-index: 19; background: var(--white); transition: transform var(--dur-300) var(--ease);
}
.app--tools main > .top > * { transition: opacity var(--dur-300) var(--ease); }
.head-hide .app--tools main > .top > * { opacity: 0; }
.head-hide .app--tools main > .top, .head-hide .page-tools { transform: translateY(calc(-1 * var(--head-shift))); }
.page-tools {
  grid-column: 1 / -1; display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: var(--space-16);
  position: sticky; top: calc(var(--bar-off) + var(--head-h)); z-index: 18; transition: transform var(--dur-300) var(--ease);
  --tools-pt: var(--margin);
  margin-inline: calc(-1 * var(--margin)); padding: var(--tools-pt) var(--margin) min(var(--space-12), var(--margin)); background: var(--white);
}
.page-tools > .chips { flex: 0 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }

.app ~ .foot { margin-inline: 0; }

.pop {
  position: absolute; right: 0; top: calc(100% + var(--space-8)); z-index: 25; display: grid; padding: var(--space-16);
  border-radius: var(--radius-xl); background: var(--white); box-shadow: var(--shadow-pop);
}
.pop__label { margin: 0; font-size: var(--fs-text-s); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--grey-2); }

.sec { padding-block: var(--section) 0; }
.sec__head { grid-column: 1 / -1; display: flex; align-items: last baseline; justify-content: space-between; gap: var(--space-24); margin-bottom: var(--space-32); }
@media (max-width: 767.98px) { .sec__head { flex-direction: column; align-items: flex-start; gap: var(--space-12); margin-bottom: var(--space-24); } }
.sec__head h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h2); line-height: var(--lh-solid); letter-spacing: var(--tracking-tight); font-optical-sizing: auto; }

.overline { font-size: var(--fs-text-m); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--grey-2); }

.btn {
  --h: calc(var(--fs-text-m) * var(--lh-ui) + 2 * var(--space-12));
  position: relative;
  isolation: isolate;
  overflow: clip;
  overflow-clip-margin: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--h);
  padding: 0 var(--space-24);
  border: 1px solid var(--black);
  border-radius: var(--radius-pill);
  background: var(--black);
  color: var(--white);
  font: inherit;
  font-size: var(--fs-text-m);
  letter-spacing: var(--tracking-text-s);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--dur-300), color 0s;
}
.btn--line { background: transparent; color: var(--black); }
.btn--sm { --h: var(--control-m); padding: 0 var(--space-16); }
.btn--icon { --h: var(--control-l); width: var(--h); padding: 0; }
.btn--light { border-color: var(--white); background: var(--white); color: var(--black); }

.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: calc(100% + var(--h));
  aspect-ratio: 1;
  border-radius: var(--radius-pill);
  background: var(--accent);
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--dur-450) var(--ease);
}
.btn__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  filter: drop-shadow(0 var(--h) 0 var(--white));
  transition: transform var(--dur-400) var(--ease);
}
.btn:focus-visible { border-color: var(--accent); color: inherit; }
.btn:focus-visible::before { transform: translate(-50%, -50%) scale(1); }
.btn:focus-visible .btn__label { transform: translateY(calc(-1 * var(--h))); }
@media (hover: hover) {
  .btn:hover { border-color: var(--accent); color: inherit; }
  .btn:hover::before { transform: translate(-50%, -50%) scale(1); }
  .btn:hover .btn__label { transform: translateY(calc(-1 * var(--h))); }
}
@media (hover: none) {
  .btn:active { border-color: var(--accent); color: inherit; }
  .btn:active::before { transform: translate(-50%, -50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .btn::before, .btn__label { transition: none; }
}

.link-arrow { display: inline-flex; gap: .4em; font-size: var(--fs-text-m); text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: "→"; transition: transform var(--dur-200) var(--ease); }
@media (hover: hover) { .link-arrow:hover::after { transform: translateX(3px); } }

.chips {
  display: inline-flex; flex-wrap: wrap; gap: var(--space-2); max-width: 100%;
  margin: 0; padding: var(--space-4); list-style: none;
  border-radius: var(--radius-m); background: var(--surface-2);
}
.chips > li { display: flex; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  height: var(--control-m);
  padding: 0 var(--space-12);
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--grey-3);
  font: inherit;
  font-size: var(--fs-text-s);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-150), color var(--dur-150);
}
@media (hover: hover) { .chip:hover { background: var(--white-a60); color: var(--black); } }
.chip[aria-pressed="true"] { background: var(--white); color: var(--black); box-shadow: var(--shadow-chip); }
.chip small { display: inline-block; width: 14px; font-weight: 400; font-variant-numeric: tabular-nums; font-size: var(--fs-text-xs); letter-spacing: 0; color: var(--grey-2); }
.chip:not([aria-pressed="true"]) { padding: 0 var(--space-24); }
.chip:not([aria-pressed="true"]) small { display: none; }
@media (max-width: 767.98px) {
  .chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
}

.works { grid-column: 1 / -1; display: block; columns: 2; column-gap: var(--card-gap); }

.work { display: block; text-decoration: none; color: inherit; break-inside: avoid; margin-bottom: var(--card-gap); }
.work:hover { color: inherit; }
.work__media {
  position: relative;
  aspect-ratio: var(--ar, 1);
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--surface-2);
}
.work__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-500) var(--ease); }
.motion { position: absolute; inset: 0; background-repeat: no-repeat; pointer-events: none; }
@media (min-width: 768px) { .works { columns: 3; } }
@media (min-width: 1024px) { .works { columns: var(--per-row, 4); } }
@media (hover: hover) {
  .work:hover .work__media .motion { transform: scale(1.03); transition: transform var(--dur-500) var(--ease); }
  .work:hover .work__media img { transform: scale(1.03); }
}
[data-view="framed"] .works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); columns: auto; }
@media (min-width: 768px) { [data-view="framed"] .works { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { [data-view="framed"] .works { grid-template-columns: repeat(var(--per-row, 4), minmax(0, 1fr)); } }
[data-view="framed"] .work { margin: 0; }
[data-view="framed"] .work__media { aspect-ratio: 9 / 10; background: var(--surface-2); }
[data-view="framed"] .work__media img { position: absolute; left: 14%; top: 14%; width: 72%; height: 72%; object-fit: contain; }
[data-view="framed"] .work__media .motion { inset: 14%; --fit: contain; }
.no-motion .motion { display: none; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 var(--space-8);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xs);
  font-size: var(--fs-text-s);
  letter-spacing: var(--tracking-fine);
  color: var(--grey-1);
  white-space: nowrap;
}
.work__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity var(--dur-200);
}
.work__tag, .work__more, .work__title { position: absolute; z-index: 2; opacity: 0; transition: opacity var(--dur-200), transform .25s var(--ease); }
.work__tag, .work__more {
  top: var(--space-12);
  display: inline-flex; align-items: center; height: 24px; padding: 0 var(--space-12);
  border-radius: var(--radius-pill); background: var(--white); color: var(--black);
  font-size: var(--fs-text-s); white-space: nowrap; transform: translateY(-4px);
}
.work__tag { left: var(--space-12); }
.work__more { right: var(--space-12); }
.work__title {
  left: var(--space-12); right: var(--space-12); bottom: var(--space-12);
  color: var(--white); font-size: var(--fs-text-l); line-height: var(--lh-ui); transform: translateY(4px);
}
.work:focus-visible .work__media::before { opacity: 1; }
.work:focus-visible :is(.work__tag, .work__more, .work__title) { opacity: 1; transform: none; }
@media (hover: hover) {
  .work:hover .work__media::before { opacity: 1; }
  .work:hover :is(.work__tag, .work__more, .work__title) { opacity: 1; transform: none; }
}
@media (hover: none) {
  .work__media::before, .work__tag, .work__more, .work__title { opacity: 1; transform: none; }
}

.chart-card {
  grid-column: 1 / -1;
  padding: var(--space-24);
  background: var(--white) radial-gradient(circle, var(--black-a08) 1px, transparent 1px) 0 0 / 16px 16px;
  border: 1px solid var(--black-a12);
}
.chart-card__head, .chart-card__foot {
  display: flex;
  justify-content: space-between;
  gap: var(--space-16);
  font-family: var(--font-sans); font-variant-numeric: tabular-nums;
  font-size: var(--fs-text-s);
  letter-spacing: var(--tracking-caps-s);
  color: var(--grey-2);
}
.chart-card__head b { font-weight: 400; color: var(--black); letter-spacing: 0; font-family: var(--font-sans); font-size: var(--fs-text-m); }
.chart-card__foot { margin-top: var(--space-16); }
.chart-card__foot span { line-height: var(--lh-text); white-space: nowrap; }

.vchart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr));
  gap: var(--gap);
  height: clamp(300px, 32vw, 520px);
  margin-top: var(--space-64);
  padding-right: var(--space-64);
}
.vchart::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; border-top: 1px solid var(--black); z-index: 3; pointer-events: none; }
.vchart__ref { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--surface-4); z-index: 1; }
.vchart__ref span { position: absolute; right: 0; bottom: var(--space-4); font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: var(--fs-text-s); color: var(--grey-2); white-space: nowrap; }
.vchart__col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; cursor: default; outline: none; }
.vchart__bar {
  width: 100%;
  height: calc(var(--v) * 1%);
  border: 1px solid var(--black);
  border-bottom: 0;
  margin-bottom: -1px;
  background: var(--black);
  transform-origin: bottom;
  animation: col-in var(--dur-900) var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.vchart__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: var(--icon-box-m);
  height: var(--icon-box-m);
  margin-bottom: var(--space-4);
  border: 1px solid var(--black);
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: 0 1px 0 var(--black-a08);
  font-family: var(--font-sans);
  font-size: var(--fs-text-l);
  color: var(--black);
  z-index: 2;
}
.vchart__logo img { display: block; width: var(--icon-l); height: var(--icon-l); object-fit: contain; }
.vchart__names { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: var(--gap); padding: var(--space-12) var(--space-64) 0 0; margin: 0; list-style: none; }
.vchart__names li { text-align: center; font-size: var(--fs-text-s); line-height: var(--lh-ui); color: var(--grey-2); letter-spacing: var(--tracking-fine); }
.vchart__bar, .vchart__logo, .vchart__names li { transition: opacity var(--dur-200); }
.vchart__names li.is-active { color: var(--black); }
.vchart__col.is-active .vchart__bar { border-width: 2px 2px 0; }
.vchart__col:focus-visible .vchart__logo { box-shadow: 0 0 0 2px var(--black); }

@keyframes col-in { from { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) { .vchart__bar { animation: none; } }
@media (max-width: 767.98px) {
  .chart-card { padding: var(--space-16); }
  .vchart, .vchart__names { gap: var(--space-6); padding-right: 0; }
  .vchart__logo { width: var(--icon-box-s); height: var(--icon-box-s); font-size: var(--fs-text-s); }
  .vchart__logo img { width: var(--icon-s); height: var(--icon-s); }
  .vchart__names li { font-size: var(--fs-text-s); }
}

.score-chart .chart-card { padding-bottom: var(--space-32); border: 1px solid var(--black-a08); border-radius: var(--radius-l); overflow: hidden; background: var(--surface-1); }
.score-chart .vchart::after { display: none; }
.score-chart .chart-card__head b { font-family: var(--font-sans); font-size: var(--fs-text-m); color: var(--grey-3); }
.chart-card__makers { display: none; }
.score-chart .chart-card__makers { display: inline; margin-right: var(--space-16); padding-left: calc(var(--icon-s) + var(--space-8)); background: url("../home/contra-labs.svg?h=494a46eb9b") left center / var(--icon-s) var(--icon-s) no-repeat; color: var(--black); }
.chart-card__makers a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) { .chart-card__makers a:hover { color: var(--accent); } }
.score-chart .vchart__bar { position: relative; overflow: hidden; border: 0; margin-bottom: 0; border-radius: var(--radius-xs) var(--radius-xs) var(--radius-0) var(--radius-0); background: var(--surface-4); }
.score-chart :is(.vchart__code, .vchart__pic) { position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-300) var(--ease); pointer-events: none; }
.score-chart .vchart__code { padding: var(--space-4); overflow: hidden; font-family: var(--font-mono); font-size: var(--fs-text-2xs); line-height: var(--lh-ui); letter-spacing: calc(var(--tracking-label) * 1.6); white-space: pre; color: var(--grey-3); transition: none; }
.score-chart .vchart__pic { background: url("../home/specimen-bouquet.webp?h=d1c36717b7") var(--bx, 0) 0 / auto 152% no-repeat; z-index: 1; }
.score-chart .vchart__col.is-active :is(.vchart__code, .vchart__pic) { opacity: 1; }
.score-chart .vchart__col::before { content: attr(data-score); position: absolute; left: 0; right: 0; bottom: calc(var(--ps) * 1% + var(--space-12)); text-align: center; font-family: var(--font-mono); font-size: var(--fs-text-s); color: var(--black); z-index: 2; transition: opacity var(--dur-200); }
.score-chart .vchart__logo { font-family: var(--font-display-text); bottom: calc(var(--ps) * 1% + var(--space-48)) !important; border-color: var(--divider); }
.score-chart .vchart__col.is-active .vchart__logo { border-color: var(--accent); background: var(--accent); color: var(--white); }
.score-chart .vchart__col.is-active .vchart__logo img { filter: brightness(0) invert(1); }
.score-chart .vchart .vchart__col.is-active .vchart__bar { outline: 1px solid var(--accent); outline-offset: -1px; background: var(--white); }
.score-chart .vchart__col.is-active .vchart__bar::after { content: attr(data-tag); position: absolute; z-index: 2; left: 0; top: 0; padding: var(--space-2) var(--space-4); background: var(--accent); font-family: var(--font-mono); font-size: var(--fs-text-2xs); line-height: var(--lh-ui); white-space: pre; color: var(--white); }
.score-chart .vtip { position: absolute; z-index: 5; left: 50%; bottom: calc(var(--ps) * .5%); display: grid; gap: var(--space-4); padding: var(--space-12) var(--space-16); border: 1px solid var(--black-a08); border-radius: var(--radius-s); background: var(--white); box-shadow: var(--shadow-pop); font-family: var(--font-mono); font-size: var(--fs-text-xs); line-height: var(--lh-ui); white-space: pre; color: var(--black); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--dur-200), visibility var(--dur-200); }
.score-chart .vchart__col:nth-last-child(-n + 2) .vtip { left: auto; right: 50%; }
.score-chart .vchart__col.is-active .vtip { opacity: 1; visibility: visible; }
.score-chart .vchart .vchart__col:not(.is-active) > .vtip { opacity: 0; visibility: hidden; transition: none; }
.score-chart .vtip__name { display: flex; align-items: center; gap: var(--space-8); margin-bottom: var(--space-4); font-family: var(--font-sans); font-size: var(--fs-text-s); white-space: nowrap; color: var(--grey-1); }
.score-chart .vtip__name i { display: grid; place-items: center; width: var(--icon-box-s); height: var(--icon-box-s); border: 1px solid var(--divider); border-radius: var(--radius-pill); background: var(--white); font-family: var(--font-display-text); font-style: normal; font-size: var(--fs-text-s); }
.score-chart .vtip__name img { width: var(--icon-m); height: var(--icon-m); }
.score-chart .vtip__dim { color: var(--grey-3); }
.score-chart .vtip__render { font-size: var(--fs-text-xs); color: var(--accent); }
.chart-card__head--tabs { align-items: center; }
.chart-card__head--tabs b { margin-left: auto; }
.chart-card__head .chart-card__sub { margin-top: 0; font-size: var(--fs-text-m); letter-spacing: 0; color: var(--grey-2); }
.mtabs { flex: 0 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: var(--radius-pill); background: var(--surface-3); }
.mtabs::-webkit-scrollbar { display: none; }
.mtabs--above { display: flex; width: max-content; margin-bottom: var(--space-16); }
.mtabs__short, .chart-card__avg { display: none; }
.chart-card__sub { margin-top: var(--space-16); font-family: var(--font-sans); font-size: var(--fs-text-s); letter-spacing: var(--tracking-caps-s); color: var(--grey-2); }
@media (max-width: 767.98px) {
  .score-chart .chart-card { padding-bottom: var(--space-16); }
  .score-chart .chart-card__head b { display: none; }
  .score-chart .chart-card__head span { flex: 1 1 auto; max-width: none; }
  .score-chart .vchart__col:nth-last-child(-n + 3) .vtip { left: auto; right: 50%; }
  .score-chart .vchart__col:nth-last-child(4) .vtip { transform: translateX(-50%); }
  .score-chart .vchart__col.is-active .vchart__bar::after { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  .score-chart .vchart .vchart__col .vtip { left: var(--tx, 50%); right: auto; top: var(--ty, 0); bottom: auto; transform: none; }
}

.bars { list-style: none; margin: 0; padding: 0; }
.bar {
  display: grid;
  grid-template-columns: 3ch minmax(7em, 12em) minmax(0, 1fr) 6ch;
  align-items: center;
  gap: var(--space-16);
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--divider);
  font-size: var(--fs-text-l);
}
.bar__rank { font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: var(--fs-text-s); color: var(--grey-2); }
.bar__name small { display: block; font-size: var(--fs-text-m); color: var(--grey-2); }
.bar__track { position: relative; height: 12px; background: var(--black-a08); }
.bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) * 1%);
  background: var(--surface-4);
  transform-origin: left;
  animation: bar-in var(--dur-900) var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.bar__val { font-family: var(--font-sans); font-size: var(--fs-text-s); text-align: right; color: var(--grey-2); font-variant-numeric: tabular-nums; }
@keyframes bar-in { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .bar__fill { animation: none; } }
@media (max-width: 767.98px) {
  .bar { grid-template-columns: 3ch minmax(0, 1fr) 6ch; row-gap: var(--space-8); }
  .bar__track { grid-column: 2 / -1; grid-row: 2; }
}

.hero-slot {
  position: relative;
  min-height: 560px;
  border-bottom: 1px solid var(--black);
  background: var(--white);
}
.hero-slot iframe { display: block; width: 100%; height: 100%; border: 0; }
.hero-slot__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(var(--divider) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, var(--divider) 1px, transparent 1px) 0 0 / 80px 80px;
  color: var(--grey-2);
  text-align: center;
}
.hero-slot__empty p { margin: var(--space-12) 0 0; font-size: var(--fs-text-m); }
.hero-slot__empty b { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h3); color: var(--black); }

.foot {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  margin-top: var(--margin);
  padding-top: var(--space-64);
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.foot a { color: var(--white); text-decoration: none; }
@media (hover: hover) { .foot a:hover { color: var(--accent); } }
@media (hover: none) { .foot a:active { color: var(--accent); } }
.foot__nav { flex: none; padding-bottom: var(--space-32); }
.foot__partner p { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--space-8); margin: 0 0 var(--space-48); font-size: var(--fs-text-m); }
.foot__partner img { width: 18px; height: 18px; }
.foot__partner a, .chead__drop p a, .mnav__panel p a, .hero-meta a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.foot__cols { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-32) var(--gap); font-size: var(--fs-text-m); }
@media (min-width: 1024px) { .foot__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.foot__cols h3 { font-weight: 400; font-size: var(--fs-text-m); color: var(--grey-3); margin-bottom: var(--space-12); }
.foot__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
/* Each link is a 24px target (WCAG 2.5.8); its height takes the place of the list's old 6px gap, so the rhythm is unchanged. */
.foot__cols li a { display: inline-flex; align-items: center; min-height: 24px; }
.foot__end { flex: none; }
.foot__base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-8) var(--space-16); padding: var(--space-16) 0; border-top: 1px solid var(--white-a20); font-size: var(--fs-text-s); color: var(--grey-3); }
.foot__right { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-16); }
.foot .foot__credit { color: var(--grey-3); transition: color var(--dur-200); }
@media (hover: hover) { .foot .foot__credit:hover { color: var(--white); } }
@media (hover: none) { .foot .foot__credit:active { color: var(--white); } }
.foot__flight { position: relative; flex: 1; min-height: 240px; }
.foot__flight iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.foot__word {
  position: absolute;
  left: var(--margin);
  bottom: var(--space-24);
  z-index: 1;
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: min(calc(var(--fs-h6) * 1.25), 11vw);
  line-height: .92;
  letter-spacing: -.03em;
  color: var(--white);
}
.foot .foot__word:hover { color: var(--white); }

.spec { position: relative; display: block; aspect-ratio: 445 / 500; overflow: hidden; border-radius: var(--radius-l); background: var(--surface-2); color: var(--black); text-decoration: none; }
.spec:hover { color: var(--black); }
.spec__media { position: absolute; left: 16.6%; right: 16.6%; top: 15%; bottom: 19%; }
.spec__media img { width: 100%; height: 100%; object-fit: contain; transition: transform var(--dur-600) var(--ease); }
.spec__media .motion { --fit: contain; }
@media (hover: hover) { .spec:hover .spec__media img { transform: scale(1.02); } }
.spec__tag, .spec__more { position: absolute; top: var(--space-16); padding: var(--space-4) var(--space-8); border-radius: var(--radius-pill); background: var(--white); font-size: var(--fs-text-s); line-height: var(--lh-ui); }
.spec__tag { left: var(--space-16); }
.spec__more { right: var(--space-16); }
.spec__foot { position: absolute; left: var(--space-16); right: var(--space-48); bottom: var(--space-16); display: grid; gap: var(--space-8); }
.spec__title { overflow: hidden; font-size: var(--fs-text-m); line-height: var(--lh-ui); white-space: nowrap; text-overflow: ellipsis; }
.spec__ref { font-family: var(--font-mono); font-size: var(--fs-text-xs); line-height: var(--lh-ui); letter-spacing: var(--tracking-figures); text-transform: uppercase; color: var(--grey-3); }
.spec__go { position: absolute; right: var(--space-16); bottom: var(--space-24); font-family: var(--font-mono); font-size: var(--fs-text-m); line-height: var(--lh-ui); transition: transform var(--dur-300) var(--ease); }
@media (hover: hover) { .spec:hover .spec__go { transform: translate(var(--space-2), calc(-1 * var(--space-2))); } }
.specs { display: grid; grid-template-columns: repeat(var(--per-row, 3), minmax(0, 1fr)); gap: var(--space-12); }
@media (max-width: 1023.98px) { .specs { --per-row: 2; } }
@media (max-width: 559.98px) { .specs { --per-row: 1; } }
@media (prefers-reduced-motion: reduce) { .spec__media img, .spec__go { transition: none; } }

.chead {
  position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-24);
  /* Ours: 6px more padding than the design's 24, so Contra Labs' ribbon (89px) ends 12px above the bar's bottom edge. */
  --chead-pad: calc(var(--space-24) + var(--space-6));
  padding: var(--chead-pad) var(--margin); transition: z-index 0s var(--dur-300);
}
.chead:has(.chead__drop:not([hidden])) { z-index: 22; transition: none; }
.head-hide .chead { pointer-events: none; }
.head-hide .chead > * { pointer-events: auto; }
@media (min-width: 768px) {
  /* Ours: the bar has a background on every page, the home's too: white, a little see-through and blurred, so the hero's canvas and
     the page show through faintly, with no line under it. (The page's backdrop figure sits above the bar, so it is never covered.) */
  .chead { --chead-bg: rgb(255 255 255 / .82); background: var(--chead-bg);
    -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
  .head-hide .chead { background: linear-gradient(var(--chead-bg), var(--chead-bg)) 0 0 / 100% calc(100% - var(--space-24) + var(--space-16)) no-repeat; box-shadow: none; }
}
.chead__brand { justify-self: start; align-self: stretch; display: flex; align-items: center; gap: var(--space-16); }
/* Ours: the bar stays whole as the page scrolls on every page: its Contra Labs mark, name and buttons never tuck away.
   The Contra Labs mark, as on contralabs.com: the ribbon hangs from the top of the screen (--labs-pad, the bar's top padding, above
   the link) and is --ribbon-h tall: on the desktop bar, the bar's content row plus 24px above and below it, which stops short of the
   bar's bottom edge. "contra LABS" stands apart from it on the bar's middle line, level with the benchmark's name. Neither changes the
   bar's height. */
.labs-lockup { position: relative; display: flex; flex: none; align-self: stretch; align-items: center; line-height: 0; text-decoration: none;
  padding-left: calc(var(--ribbon-h) * 111 / 233 + var(--labs-gap)); }
.labs-lockup__ribbon { position: absolute; left: 0; top: calc(-1 * var(--labs-pad)); display: block; width: auto; height: var(--ribbon-h); }
.labs-lockup__word { display: block; width: auto; height: var(--word-h); }
.chead .labs-lockup { --labs-pad: var(--chead-pad); --ribbon-h: calc(var(--control-l) + 2 * var(--space-24)); --labs-gap: var(--space-24); --word-h: 15px; }
.chead__sep { width: 1px; height: var(--space-24); background: var(--surface-4); }
.chead__fdb { font-size: var(--fs-text-m); line-height: var(--lh-solid); letter-spacing: var(--tracking-tight); text-decoration: none; color: var(--black); }
.chead__fdb:hover { color: var(--black); }
.chead__capsule { position: relative; display: flex; align-items: center; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-pill); background: var(--black); color: var(--white); font-size: var(--fs-text-m); line-height: var(--lh-ui); letter-spacing: var(--tracking-text-s); }
.chead__menu { display: inline-flex; align-items: center; gap: var(--space-8); padding: var(--space-6) var(--space-12); border: 0; border-radius: var(--radius-pill); background: none; color: var(--white); font: inherit; letter-spacing: inherit; cursor: pointer; transition: background-color var(--dur-200); }
.chead__menu[aria-expanded="true"] { background: var(--white-a08); }
@media (hover: hover) {
  .chead__menu:hover, .chead__back:hover { background: var(--white-a08); color: var(--white); }
  .chead__drop li a:hover, .mnav__links a:hover { color: var(--white); }
}
.chead__menu span { display: contents; font-family: var(--font-ui); font-size: var(--fs-text-m); letter-spacing: normal; }
.chead__menu i { display: block; box-sizing: content-box; width: var(--icon-m); height: var(--space-4); border-block: 1.4px solid currentColor; }
.chead__rule { width: 1px; height: var(--space-16); background: var(--surface-dark-2); }
.chead__title { padding: 0 var(--space-16); color: var(--white); cursor: default; user-select: none; }
.chead__back { display: flex; align-self: stretch; align-items: center; gap: var(--space-4); padding: 0 var(--space-2) 0 0; border-radius: var(--radius-pill); color: var(--white); text-decoration: none; transition: background-color var(--dur-200); }
.chead__back .chead__title { cursor: inherit; }
.chead__drop a[aria-current="page"]::before { content: ""; width: var(--space-6); height: var(--space-6); border-radius: var(--radius-pill); background: var(--accent); }
.chead__drop { position: absolute; top: calc(100% + var(--space-8)); left: 0; right: 0; z-index: 1; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-16); border-radius: var(--radius-xl); background: var(--surface-dark-1); font-size: var(--fs-text-m); line-height: var(--lh-ui); letter-spacing: var(--tracking-text-s); }
.chead__drop { transition: opacity var(--dur-200) var(--ease), transform var(--dur-300) var(--ease), display var(--dur-300) allow-discrete; }
.chead__drop[hidden] { display: none; opacity: 0; transform: translateY(calc(-1 * var(--space-8))); }
@starting-style { .chead__drop:not([hidden]) { opacity: 0; transform: translateY(calc(-1 * var(--space-8))); } }
@media (prefers-reduced-motion: reduce) { .chead__drop { transition: none; } }
.chead__drop ul { display: flex; flex-direction: column; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.chead__drop ul + ul, .chead__drop p { padding-top: var(--space-4); border-top: 1px solid var(--surface-dark-2); }
.chead__drop li a { display: flex; align-items: center; gap: var(--space-8); padding: var(--space-6) 0; color: var(--grey-3); text-decoration: none; }
.chead__drop a[aria-current="page"] { color: var(--white); }
.chead__drop em { margin-left: auto; font-family: var(--font-mono); font-style: normal; font-size: var(--fs-text-xs); line-height: normal; letter-spacing: normal; }
.chead__drop em.chead__ext { font-size: var(--fs-text-m); line-height: var(--lh-solid); }
.chead__drop p { margin: 0; font-size: var(--fs-text-xs); line-height: var(--lh-text); color: var(--grey-3); }
.chead__end { justify-self: end; display: flex; align-items: center; gap: var(--space-8); }
@media (max-width: 767.98px) {
  .chead { position: static; display: block; height: var(--bar-h); padding: 0; background: none; pointer-events: none; transform: none !important; }
  .chead > * { display: none !important; }
}

.mhead, .mnav { display: none; }
@media (max-width: 767.98px) {
  .mhead-off { --bar-off: 0px; }
  .app--tools main > .top, .page-tools { transition: transform var(--dur-300) var(--ease), top var(--dur-300) var(--ease); }
  .foot { height: 123vh; height: 123svh; }
  .foot__word { bottom: var(--space-16); }
  .foot__base { padding: var(--space-8) 0; }
  .foot__end { padding-bottom: var(--mnav-h); }

  .mhead {
    position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: var(--space-24);
    height: var(--bar-h); padding: 0 var(--margin); border-bottom: 1px solid transparent;
    transition: background var(--dur-300), border-color var(--dur-300), transform var(--dur-300) var(--ease);
  }
  /* Ours: the phone's bar has the desktop bar's background from the top too; scrolled past the page's top it turns solid, as before.
     As on the desktop, no line under it. */
  .mhead:not(.is-past) { background: rgb(255 255 255 / .82); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
  .mhead.is-past { background: var(--white); }
  .mhead-off .mhead { transform: translateY(-100%); }
  .mhead.is-pushed { transition: none; }
  .mhead { gap: var(--space-12); }
  .mhead__brand { align-self: stretch; display: flex; align-items: center; gap: var(--space-8); }
  /* On a phone the bar has room for the ribbon alone (the Contra star), down the bar's height; "Contra Labs" stays its alt text. */
  .mhead .labs-lockup { --ribbon-h: var(--bar-h); --labs-pad: 0px; --labs-gap: 0px; }
  .mhead .labs-lockup__word { display: none; }
  .mhead__fdb { font-family: var(--font-sans); font-size: var(--fs-text-s); line-height: var(--lh-solid); letter-spacing: var(--tracking-tight); text-decoration: none; white-space: nowrap; }
  .mhead__fdb:hover { color: inherit; }

  .mnav { display: contents; }
  .mnav-lock, .mnav-lock body { overflow: hidden; }
  .mnav__bar {
    position: fixed; left: var(--space-8); right: var(--space-8); bottom: var(--space-8); z-index: 32; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--space-2);
    margin: 0; padding: var(--space-6); list-style: none; border-radius: var(--radius-xl); background: var(--black); box-shadow: var(--shadow-pop);
  }
  .mnav__bar a { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-6) 0; border-radius: var(--radius-m); font-size: var(--fs-text-s); color: var(--grey-3); text-decoration: none; }
  .mnav__bar a[aria-current="page"] { background: var(--surface-dark-2); color: var(--white); }
  .mnav__bar em { display: none; }
  .mnav__toggle {
    position: fixed; right: calc(var(--space-8) + var(--space-6)); bottom: calc(var(--space-8) + var(--space-6)); z-index: 32; display: grid; justify-items: center; align-content: center; gap: var(--space-2);
    width: calc((100% - 2 * var(--space-8) - 2 * var(--space-6) - 3 * var(--space-2)) / 4); padding: var(--space-6) 0; border: 0; border-radius: var(--radius-m);
    background: none; color: var(--grey-3); font: inherit; font-size: var(--fs-text-s); cursor: pointer; transition: color var(--dur-300), background-color var(--dur-300);
  }
  .mnav__toggle i { display: block; box-sizing: content-box; width: var(--icon-m); height: var(--space-4); margin: var(--space-6) 0; border-block: 1.4px solid currentColor; }
  .mnav.is-open .mnav__toggle { background: var(--surface-dark-2); color: var(--white); }
  .mnav__scrim { position: fixed; inset: 0; z-index: 30; background: var(--black-a35); opacity: 0; visibility: hidden; transition: opacity var(--dur-450) var(--ease), visibility 0s var(--dur-450); }
  .mnav.is-open .mnav__scrim { opacity: 1; visibility: visible; transition: opacity var(--dur-450) var(--ease); }
  .mnav__panel {
    position: fixed; left: var(--space-8); right: var(--space-8); bottom: calc(2 * var(--space-8) + var(--mnav-bar-h)); z-index: 31; display: flex; flex-direction: column; gap: var(--space-4);
    padding: var(--space-16); border-radius: var(--radius-xl); background: var(--surface-dark-1); box-shadow: var(--shadow-pop);
    font-size: var(--fs-text-m); line-height: var(--lh-ui); letter-spacing: var(--tracking-text-s);
    opacity: 0; transform: translateY(var(--space-16)); visibility: hidden;
    transition: transform var(--dur-600) var(--ease), opacity var(--dur-450) var(--ease), visibility 0s var(--dur-600);
  }
  .mnav.is-open .mnav__panel { opacity: 1; transform: none; visibility: visible; transition: transform var(--dur-600) var(--ease), opacity var(--dur-450) var(--ease); }
  .mnav__links { display: flex; flex-direction: column; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
  .mnav__links a { display: flex; align-items: center; gap: var(--space-8); padding: var(--space-6) 0; color: var(--grey-3); text-decoration: none; }
  .mnav__links em { margin-left: auto; font-family: var(--font-mono); font-style: normal; font-size: var(--fs-text-xs); line-height: normal; letter-spacing: normal; }
  .mnav__links em.mnav__ext { font-size: var(--fs-text-m); line-height: var(--lh-solid); }
  .mnav__panel p { margin: 0; padding-top: var(--space-4); border-top: 1px solid var(--surface-dark-2); font-size: var(--fs-text-xs); line-height: var(--lh-text); color: var(--grey-3); }
  .mnav__signin { width: 100%; margin: var(--space-12) 0; }
}
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  .mhead, .mnav__panel, .mnav__scrim, .mnav__toggle { transition: none !important; }
}

.catsel, .msheet-scrim { display: none; }
.top__title h1 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: var(--lh-heading); }
#chips { border-radius: var(--radius-pill); }
#chips::-webkit-scrollbar { display: none; }
:is(#chips, .mtabs) .chip, :is(#chips, .mtabs) .chip:not([aria-pressed="true"]) { gap: var(--space-6); height: var(--control-s); padding: 0 var(--space-12); border-radius: var(--radius-pill); line-height: var(--control-s); }
#chips .chip:not([aria-pressed="true"]) { color: var(--grey-3); }
.mtabs .chip:not([aria-pressed="true"]) { color: var(--grey-2); }
:is(#chips, .mtabs) .chip[aria-pressed="true"] { background: var(--white); color: var(--black); box-shadow: none; }
/* Every tab keeps room for the dot and its count, shown only on the chosen one: choosing a tab does not change any tab's width, so the row stays put. */
:is(#chips, .mtabs) .chip::before { content: ""; flex: none; width: var(--space-6); height: var(--space-6); border-radius: var(--radius-pill); background: transparent; }
:is(#chips, .mtabs) .chip[aria-pressed="true"]::before { background: var(--accent); }
:is(#chips, .mtabs) .chip:not([aria-pressed="true"]) small { display: inline-block; visibility: hidden; }
:is(#chips, .mtabs) .chip:not(:hover) { transition: none; }
@media (min-width: 768px) {
  :root { --bar-off: var(--chead-h, 0px); }
  /* Ours: scrolled, the page's tools rise into the bar's band under the bar (its z-index is 20), so they never cover Contra Labs'
     ribbon. Only the tools' top padding reaches under it; their row stays below the bar's background. */
  .head-hide .page-tools {
    z-index: 19; pointer-events: none;
    transform: translateY(calc(var(--space-16) - var(--space-24) - var(--head-h) - var(--tools-pt)));
    background: linear-gradient(transparent calc(var(--tools-pt) - var(--space-16)), var(--white) 0);
  }
  .head-hide .page-tools > * { pointer-events: auto; }
}
@media (min-width: 1024px) {
  .app--tools main > .top { padding-top: var(--space-16); }
  .page-tools { --tools-pt: var(--space-24); }
}
@media (max-width: 767.98px) {
  .page-tools .pop {
    position: fixed; left: var(--space-12); right: var(--space-12); bottom: var(--space-12); top: auto; z-index: 40;
    width: auto; max-height: 80vh; overflow-y: auto; padding: var(--space-16); background: var(--surface-2);
    box-shadow: 0 0 0 100vmax var(--black-a35);
  }
  .msheet-scrim { position: fixed; inset: 0; z-index: 39; }
  html:has(.page-tools .pop:not([hidden])) .msheet-scrim { display: block; }
  html:has(.page-tools .pop:not([hidden])) .page-tools { z-index: 41; transform: none; transition: none; }
  .head-hide .page-tools {
    transform: translateY(calc(var(--space-8) - var(--margin) - var(--head-shift)));
    background: linear-gradient(var(--white) calc(100% - var(--space-12) + var(--space-8)), transparent 0);
  }
  html.head-hide:has(.page-tools .pop:not([hidden])) .page-tools { top: calc(var(--bar-off) + var(--head-h) + var(--space-8) - var(--margin) - var(--head-shift)); }
  #chips { display: none; }
  .catsel { display: block; flex: 1; min-width: 0; }
  .catsel__btn {
    display: flex; align-items: center; gap: var(--space-8); width: 100%; height: var(--control-m); padding: 0 var(--space-16);
    border: 0; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--black);
    font: inherit; font-size: var(--fs-text-s); font-weight: 500; letter-spacing: var(--tracking-caps); text-transform: uppercase; cursor: pointer;
  }
  .catsel__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .catsel__chev { width: var(--icon-m); height: var(--icon-m); margin-left: auto; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-200) var(--ease); }
  .catsel__btn[aria-expanded="true"] .catsel__chev { transform: rotate(180deg); }
  .catsel__menu { gap: var(--space-8); }
  .catsel__list { display: grid; gap: var(--space-2); }
  .catsel__list button {
    display: flex; align-items: center; gap: var(--space-8); height: 44px; padding: 0 var(--space-16);
    border: 0; border-radius: var(--radius-s); background: transparent; color: var(--black); font: inherit; font-size: var(--fs-text-m); text-align: left; cursor: pointer;
  }
  .catsel__list button[aria-pressed="true"] { background: var(--white); box-shadow: var(--shadow-chip); }
  .catsel__list button[aria-pressed="true"]::before { content: ""; flex: none; width: var(--space-6); height: var(--space-6); border-radius: var(--radius-pill); background: var(--accent); }
}

.tagbox { --tagbox-tint: color-mix(in srgb, var(--accent) 8%, var(--white)); position: relative; border: 1px solid var(--accent); border-radius: var(--radius-0); color: var(--black); font: inherit; text-align: left; }
.tagbox:focus-visible { outline: 1px solid var(--accent); outline-offset: var(--space-2); }
.tagbox__tag { position: absolute; left: -1px; bottom: 100%; padding: var(--space-2) var(--space-4); background: var(--accent); font-family: var(--font-mono); font-size: var(--fs-text-2xs); font-weight: 400; line-height: var(--lh-ui); text-transform: uppercase; white-space: nowrap; color: var(--white); }

[data-s="pass"] { --tone: var(--green-bright); }
[data-s="minor"] { --tone: var(--grey-3); }
[data-s="major"] { --tone: var(--red-bright); }
.status-fill[data-s="minor"], .rb-wheel--status [data-s="minor"] { --tone: var(--surface-4); }
.status-fill { background: var(--tone); }
.rb-wheel--status .rb-seg--aspect > path { fill: var(--tone); }
.status-dot, .status-label::before { flex: none; width: var(--space-6); height: var(--space-6); border-radius: var(--radius-pill); background: var(--tone); }
.status-label { display: inline-flex; align-items: center; gap: var(--space-6); }
.status-label::before { content: ""; }
.status-pill { flex: none; padding: var(--space-2) var(--space-6); border: 1px solid var(--divider); border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: var(--fs-text-2xs); line-height: var(--lh-ui); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--grey-2); }
.status-good { color: var(--green); }
.status-bad { color: var(--red); }
.tag[data-s="major"] { border-color: var(--red); color: var(--red); }

[hidden] { display: none !important; }
.span-all { grid-column: 1 / -1; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }

/* Get in touch: the header's main button, sign-in beside it (outlined). On a phone both sit at the right of the top bar. */
.mhead__end { display: flex; align-items: center; gap: var(--space-6); }
.top__actions { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.top .btn.top__contact { border-color: var(--black); background: var(--black); color: var(--white); }
@media (max-width: 359.98px) { .mhead__end [data-auth="in"] { display: none; } }
