/* Page-specific styles for the Open Source Impact mock-up. Mirrors the inline
   component styles the live /tools/ page ships, plus a few new pieces. */

/* From /tools/: active state for filter tabs */
.catalog-tab[aria-current="true"] {
  background: var(--color-fill);
  color: var(--color-canvas);
  border-color: var(--color-fill);
}
.catalog-tab[aria-current="true"] span {
  color: color-mix(in srgb, var(--color-canvas) 75%, transparent);
}
.featured-track { scrollbar-width: none; }
.featured-track::-webkit-scrollbar { display: none; }

/* Logo wall filter, on the dark band */
.logo-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: var(--radius-chip);
  font-size: 13px;
  color: rgb(255 255 255 / 0.8);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.logo-tab span { font-family: var(--font-mono); font-size: 11px; color: rgb(255 255 255 / 0.5); }
.logo-tab:hover { border-color: rgb(255 255 255 / 0.6); color: #fff; }
.logo-tab[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--color-sidebar); }
.logo-tab[aria-pressed="true"] span { color: rgb(0 0 0 / 0.5); }

.ptp-marq-box { transition: opacity 0.3s ease, filter 0.3s ease; }
.ptp-marq-box.is-muted { opacity: 0.18; filter: grayscale(1); }

/* Sample-data flags (toggled from the mock-up note) */
html:not(.show-samples) [data-sample-chip] { display: none; }

.mock-note {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-chip);
  background: var(--color-surface);
  box-shadow: 0 8px 24px -12px rgb(0 0 0 / 0.35);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-ink);
}
.mock-note__dot { width: 6px; height: 6px; border-radius: 999px; background: var(--color-accent); }
.mock-note label { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--color-ink-muted); cursor: pointer; }
.mock-note input { accent-color: var(--color-accent); }

@media (max-width: 1023px) {
  .mock-note { bottom: 12px; right: 12px; }
}

/* Chart palette from the PtP dashboard, lifted to :root so type chips work page-wide */
:root {
  --viz-accepted: #268c40; --viz-submitted: #3380cc; --viz-waiting: #c6c8cd; --viz-daily: #3f7fd6;
  --viz-high: #c22417; --viz-medium: #e0740a; --viz-info: #b9bcc2; --viz-found: #5c5f66;
  --viz-cume: #17181a; --viz-star: #e0a020; --viz-booked: #e9c24a;
}
.dark {
  --viz-accepted: #3fb45f; --viz-submitted: #5b9ce0; --viz-waiting: #4d515b; --viz-daily: #5b9ce0;
  --viz-high: #ff4b40; --viz-medium: #f5953b; --viz-info: #5c6069; --viz-found: #9a9da3;
  --viz-cume: #ededee; --viz-star: #f5c451; --viz-booked: #cfa338;
}

/* Mock-up banner: always visible at the top of the content column */
.mock-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px dashed var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 8%, var(--color-canvas));
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-ink);
}
.mock-banner__tag {
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-chip);
  background: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}
.mock-note {
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.mock-note input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ---------- Option B: view switcher ---------- */
.view-switch {
  position: sticky;
  top: 0;
  z-index: 9;
  border-bottom: 1px solid var(--color-line-strong);
  background: var(--color-canvas);
}
.view-switch__inner {
  display: flex;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.view-switch__inner::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .view-switch__inner { padding: 0 3rem; } }
.view-switch__tab {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 0 0 auto;
  padding: 0.85rem 1.25rem 0.8rem 0;
  margin-right: 1.25rem;
  color: var(--color-ink-muted);
  transition: color 0.15s ease;
}
.view-switch__tab:hover { color: var(--color-ink); }
.view-switch__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 1.25rem;
  bottom: -1px;
  height: 2px;
  background: transparent;
}
.view-switch__tab[aria-selected="true"] { color: var(--color-ink); }
.view-switch__tab[aria-selected="true"]::after { background: var(--color-accent); }
.view-switch__tab:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.view-switch__label { display: flex; align-items: center; gap: 0.5rem; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.view-switch__desc { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-ink-soft); white-space: nowrap; }
.view-switch__tag {
  padding: 0.15rem 0.35rem;
  border: 1px dashed var(--color-accent);
  border-radius: var(--radius-chip);
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-strong);
}
@media (max-width: 767px) { .view-switch__desc { display: none; } }

/* ---------- 2025 concept: group colours ---------- */
:root {
  --g-supply: #268c40; --g-crypto: #3380cc; --g-lang: #e0740a;
  --g-re: #c59212; --g-chain: #c22417; --g-other: #8b8e95;
}
.dark {
  --g-supply: #3fb45f; --g-crypto: #5b9ce0; --g-lang: #f5953b;
  --g-re: #e3b341; --g-chain: #ff4b40; --g-other: #6b6f78;
}
.g-supply { --g: var(--g-supply); } .g-crypto { --g: var(--g-crypto); } .g-lang { --g: var(--g-lang); }
.g-re { --g: var(--g-re); } .g-chain { --g: var(--g-chain); } .g-other { --g: var(--g-other); }
.g-swatch { width: 10px; height: 10px; border-radius: 2px; background: var(--g); flex: none; }

/* Treemap */
.rc-treemap { position: relative; height: clamp(420px, 52vw, 620px); }
.rc-tile {
  position: absolute;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid var(--color-surface);
  background: color-mix(in srgb, var(--g) 22%, var(--color-surface));
  color: var(--color-ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.rc-tile:hover, .rc-tile:focus-visible { background: color-mix(in srgb, var(--g) 42%, var(--color-surface)); outline: none; }
.rc-tile__name { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.25; word-break: break-word; }
.rc-tile__n { font-family: var(--font-mono); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.rc-tile.is-small .rc-tile__name, .rc-tile.is-tiny .rc-tile__n { display: none; }
.rc-tile.is-tiny .rc-tile__name { display: none; }
.rc-tile.is-small .rc-tile__n { font-size: 12px; }
.rc-group-label {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  padding: 2px 6px;
  border-radius: 0 0 var(--radius-chip) 0;
  background: var(--g);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  white-space: nowrap;
}

/* One square per merged PR (used by the PR wall) */
.rc-unit {
  width: 12px; height: 12px;
  border-radius: 2px;
  background: var(--g);
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.15s ease;
}
.rc-unit:hover, .rc-unit:focus-visible { transform: scale(1.5); outline: none; box-shadow: 0 0 0 1.5px var(--color-ink); }
.rc-unit.is-open { opacity: 0.35; }

/* Detail drawer, modelled on the site's menu drawers */
.rc-panel-wrap { position: fixed; inset: 0; z-index: 70; }
.rc-panel-wrap[hidden] { display: none; }
.rc-panel-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / 0.45); }
.rc-panel {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: min(520px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-line);
  border-radius: 2px;
  background: var(--color-surface);
  box-shadow: 0 24px 64px -16px rgb(0 0 0 / 0.4);
}
.rc-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-line); }
.rc-panel__body { min-height: 0; flex: 1; overflow-y: auto; padding: 1rem 1.25rem 1.5rem; }
.rc-panel__close { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-control); color: var(--color-ink-muted); cursor: pointer; }
.rc-panel__close:hover { background: var(--color-hover); color: var(--color-ink); }
.rc-pr { display: grid; grid-template-columns: 4.2rem 1fr; gap: 0.75rem; padding: 0.65rem 0; border-top: 1px solid var(--color-line); }
.rc-pr.is-focus { background: color-mix(in srgb, var(--color-accent) 7%, transparent); }

/* ---------- Option C ---------- */
@media (max-width: 1023px) {
  .short-hero .ptp-marquee { height: 260px; }
}

/* PR wall: one square per merged PR, one column per month (rows on phones) */
.rc-wall {
  display: grid;
  grid-template-columns: repeat(var(--cols, 12), minmax(0, 1fr));
  gap: 0 clamp(6px, 1.2vw, 14px);
  align-items: end;
}
.rc-month { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; }
.rc-month__units { display: flex; flex-wrap: wrap-reverse; gap: 3px; padding-bottom: 4px; border-bottom: 1px solid var(--color-line-strong); }
.rc-month .rc-unit { width: calc((100% - 9px) / 4); height: auto; aspect-ratio: 1; border-radius: 2px; }
.rc-month__total {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
  text-align: center;
  cursor: pointer;
}
.rc-month__label {
  padding: 0.15rem 0;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-ink-soft);
  text-align: center;
  cursor: pointer;
}
.rc-month__total:hover, .rc-month__label:hover { color: var(--color-accent-strong); }

@media (max-width: 767px) {
  .rc-wall { grid-template-columns: 1fr; gap: 0; }
  .rc-month {
    display: grid;
    grid-template-columns: 2.6rem 1fr 2rem;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0;
    border-top: 1px solid var(--color-line);
  }
  .rc-month__units { flex-wrap: wrap; order: 2; padding-bottom: 0; border-bottom: 0; }
  .rc-month .rc-unit { width: 11px; height: 11px; aspect-ratio: auto; }
  .rc-month__total { order: 3; text-align: right; }
  .rc-month__label { order: 1; padding: 0; text-align: left; }
}



/* Wall filters: category chips, zoom controls and the by-day view */
.rc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-chip);
  background: var(--color-surface);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-ink-muted);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.rc-chip span[data-rc-count] { color: var(--color-ink-soft); font-variant-numeric: tabular-nums; }
.rc-chip:hover { border-color: var(--color-ink-muted); color: var(--color-ink); }
.rc-chip[aria-pressed="true"] { background: var(--color-fill); border-color: var(--color-fill); color: var(--color-canvas); }
.rc-chip[aria-pressed="true"] span[data-rc-count] { color: color-mix(in srgb, var(--color-canvas) 70%, transparent); }
.rc-chip[aria-pressed="true"] .g-swatch { box-shadow: 0 0 0 1.5px var(--color-canvas); }
.rc-back, .rc-list {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-ink);
  cursor: pointer;
}
.rc-back::before { content: "\2190"; }
.rc-back[data-rc-reset]::before { content: none; }
.rc-back:hover, .rc-list:hover:not(:disabled) { background: var(--color-hover); border-color: var(--color-ink-muted); }
.rc-list { background: var(--color-fill); border-color: var(--color-fill); color: var(--color-canvas); }
.rc-list:hover:not(:disabled) { background: var(--color-ink-hover); color: var(--color-canvas); }
.rc-list:disabled { opacity: 0.4; cursor: default; }
.rc-chip:focus-visible, .rc-back:focus-visible, .rc-list:focus-visible, .rc-month__total:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.rc-wall.is-days { gap: 0 clamp(2px, 0.4vw, 5px); }
.rc-wall.is-days .rc-month__units { justify-content: center; }
.rc-wall.is-days .rc-unit { width: min(100%, 22px); }
@media (min-width: 768px) { .rc-wall { min-height: 14rem; } }
.rc-wall.is-days .rc-month__label { font-size: 10px; letter-spacing: 0; }
.rc-wall.is-days .rc-month__total { font-size: 11px; min-height: 1.1em; }
.rc-wall.is-days .rc-month.is-empty .rc-month__label { opacity: 0.45; }
@media (max-width: 767px) {
  .rc-wall.is-days .rc-month.is-empty { display: none; }
  .rc-wall.is-days .rc-unit { width: 11px; }
  .rc-wall.is-days .rc-month__units { justify-content: flex-start; }
}

/* Option C story: milestone cards on a date rail with a progress slider */
.tl { --tl-card: min(330px, 80vw); --tl-gap: 2.75rem; --tl-rail: 36px; }
.tl__scroller {
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.tl__scroller::-webkit-scrollbar { display: none; }
.tl__track {
  position: relative;
  width: max-content;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--tl-card);
  gap: var(--tl-gap);
  padding-bottom: 0.5rem;
}
.tl__track::before, .tl__track::after {
  content: "";
  position: absolute;
  left: 0;
  top: var(--tl-rail);
  pointer-events: none;
}
.tl__track::before { right: 0; border-top: 1px dashed var(--color-line-strong); }
.tl__track::after { width: var(--tl-fill, 0px); height: 2px; margin-top: -0.5px; background: var(--color-accent); transition: width 0.35s ease; }
.tl__step { position: relative; display: flex; flex-direction: column; scroll-snap-align: start; cursor: pointer; }
.tl__date { height: 24px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-ink-soft); transition: color 0.2s ease; }
.tl__dot {
  position: absolute;
  z-index: 1;
  left: 0;
  top: calc(var(--tl-rail) - 6px);
  width: 13px;
  height: 13px;
  border: 2px solid var(--color-line-strong);
  border-radius: 999px;
  background: var(--color-canvas);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.tl__step::before {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(var(--tl-rail) + 7px);
  height: 22px;
  border-left: 1px dashed var(--color-line-strong);
}
.tl__gap {
  position: absolute;
  z-index: 1;
  left: calc(-0.5 * (var(--tl-card) + var(--tl-gap)) + 6px);
  top: var(--tl-rail);
  transform: translate(-50%, -50%);
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-chip);
  background: var(--color-canvas);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--color-ink-soft);
}
.tl__card {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 40px;
  padding: 1.25rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  opacity: 0.55;
  transition: opacity 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.tl__card:focus { outline: none; }
.tl__step:hover .tl__card { opacity: 0.85; }
.tl__note { margin-top: 1rem; padding: 0.75rem 0.9rem; border-left: 2px solid var(--color-accent); background: var(--color-surface-tint); }
.tl__step.is-past .tl__dot, .tl__step.is-active .tl__dot { border-color: var(--color-accent); background: var(--color-accent); }
.tl__step.is-active .tl__date { color: var(--color-ink); }
.tl__step.is-active .tl__card { opacity: 1; border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent), 0 18px 40px -24px rgb(0 0 0 / 0.35); }
.tl__step.is-active::before { border-left-color: var(--color-accent); }

.tl__controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.tl__btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-ink);
  cursor: pointer;
}
.tl__btn:hover:not(:disabled) { background: var(--color-hover); border-color: var(--color-ink-muted); }
.tl__btn:disabled { opacity: 0.35; cursor: default; }
.tl__btn:focus-visible, .tl__range:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.tl__range { flex: 1; min-width: 0; accent-color: var(--color-accent); cursor: pointer; }
.tl__status { flex: none; min-width: 10.5rem; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-ink-soft); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 639px) {
  .tl__controls { flex-wrap: wrap; }
  .tl__status { flex-basis: 100%; min-width: 0; text-align: left; order: 4; }
}
@media (prefers-reduced-motion: reduce) {
  .tl__track::after, .tl__card { transition: none; }
}
@media (max-width: 639px) {
  .tl { --tl-card: 74vw; --tl-gap: 1.75rem; }
}

/* ---------- Option C: section hover flip ----------
   Hovering a plain section wipes the opposite canvas colour up from the bottom
   and moves its content to the opposite theme's tokens. The tokens are
   registered so the colours cross-fade with the wipe instead of jumping. */
@property --color-canvas { syntax: "<color>"; inherits: true; initial-value: #fafafa; }
@property --color-surface { syntax: "<color>"; inherits: true; initial-value: #fff; }
@property --color-surface-muted { syntax: "<color>"; inherits: true; initial-value: #f2f2f2; }
@property --color-surface-tint { syntax: "<color>"; inherits: true; initial-value: #f1f2f2; }
@property --color-ink { syntax: "<color>"; inherits: true; initial-value: #181717; }
@property --color-ink-muted { syntax: "<color>"; inherits: true; initial-value: #4a4b4d; }
@property --color-ink-soft { syntax: "<color>"; inherits: true; initial-value: #4f4f4f; }
@property --color-line { syntax: "<color>"; inherits: true; initial-value: #ebebeb; }
@property --color-line-strong { syntax: "<color>"; inherits: true; initial-value: #dbdbdb; }
@property --color-accent { syntax: "<color>"; inherits: true; initial-value: #d00000; }
@property --color-accent-strong { syntax: "<color>"; inherits: true; initial-value: #a20000; }
@property --color-ink-hover { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --color-fill { syntax: "<color>"; inherits: true; initial-value: #181717; }
@property --color-hover { syntax: "<color>"; inherits: true; initial-value: #fafafa; }
@property --g-supply { syntax: "<color>"; inherits: true; initial-value: #268c40; }
@property --g-crypto { syntax: "<color>"; inherits: true; initial-value: #3380cc; }
@property --g-lang { syntax: "<color>"; inherits: true; initial-value: #e0740a; }
@property --g-re { syntax: "<color>"; inherits: true; initial-value: #c59212; }
@property --g-chain { syntax: "<color>"; inherits: true; initial-value: #c22417; }
@property --g-other { syntax: "<color>"; inherits: true; initial-value: #8b8e95; }

@media (hover: hover) and (min-width: 768px) {
  .flip { position: relative; isolation: isolate; --flip-bg: #0f1011; }
  .dark .flip { --flip-bg: #fafafa; }
  .flip::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--flip-bg);
    transform: scaleY(0);
    transform-origin: center bottom;
    transition: transform 0.3s ease-out;
    pointer-events: none;
  }
  .flip:hover::before { transform: scaleY(1); }
  .flip > * {
    transition-property: --color-canvas, --color-surface, --color-surface-muted, --color-surface-tint, --color-ink, --color-ink-muted, --color-ink-soft, --color-line, --color-line-strong, --color-accent, --color-accent-strong, --color-ink-hover, --color-fill, --color-hover, --g-supply, --g-crypto, --g-lang, --g-re, --g-chain, --g-other;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
  }
  /* Light page: the hovered section takes the dark tokens. */
  .flip:hover > * {
    --color-canvas: #0f1011; --color-surface: #1d1f23; --color-surface-muted: #282a30; --color-surface-tint: #16171a;
    --color-ink: #ededee; --color-ink-muted: #b4b6bb; --color-ink-soft: #9a9da3;
    --color-line: #3a3d45; --color-line-strong: #4d515b;
    --color-accent: #ff4b40; --color-accent-strong: #ff4b40; --color-ink-hover: #fff; --color-fill: #cbced3; --color-hover: #2c2e35;
    --g-supply: #3fb45f; --g-crypto: #5b9ce0; --g-lang: #f5953b; --g-re: #e3b341; --g-chain: #ff4b40; --g-other: #6b6f78;
  }
  /* Dark page: the hovered section takes the light tokens. */
  .dark .flip:hover > * {
    --color-canvas: #fafafa; --color-surface: #fff; --color-surface-muted: #f2f2f2; --color-surface-tint: #f1f2f2;
    --color-ink: #181717; --color-ink-muted: #4a4b4d; --color-ink-soft: #4f4f4f;
    --color-line: #ebebeb; --color-line-strong: #dbdbdb;
    --color-accent: #d00000; --color-accent-strong: #a20000; --color-ink-hover: #000; --color-fill: #181717; --color-hover: #fafafa;
    --g-supply: #268c40; --g-crypto: #3380cc; --g-lang: #e0740a; --g-re: #c59212; --g-chain: #c22417; --g-other: #8b8e95;
  }
}
@media (prefers-reduced-motion: reduce) {
  .flip::before, .flip > * { transition: none; }
}
