/* Styles are scoped to the independent market-card component. */
.mc-root {
  --mc-lime: var(--lime, #dcff50);
  --mc-orange: var(--orange, #ff6535);
  --mc-paper: var(--paper, #f4f4ef);
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: clamp(12px, 4cqw, 22px);
  color: var(--mc-paper);
  container-type: inline-size;
}
.mc-tabs {
  display: grid;
  grid-template-columns: .8fr 1.4fr .9fr;
  gap: 2px;
  flex: 0 0 auto;
  border-bottom: 1px solid #ffffff42;
}
.mc-tab {
  min-height: 44px;
  padding: 9px 0;
  background: transparent;
  color: #c5c6bf;
  border: 0;
  border-bottom: 3px solid transparent;
  font: 700 14px/1.2 DM, Arial, sans-serif;
  letter-spacing: .02em;
}
.mc-tab[aria-pressed="true"] {
  color: var(--mc-lime);
  border-bottom-color: var(--mc-lime);
}
.mc-tab:hover { color: var(--mc-paper); }
.mc-root .mc-tab:focus-visible,
.mc-root .mc-source:focus-visible,
.mc-root .mc-viewport:focus-visible {
  outline: 2px solid var(--mc-orange);
  outline-offset: -2px;
}
.mc-viewport {
  position: relative;
  display: flex;
  gap: 16px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  /* Native direction locking leaves vertical gestures to the outer deck. */
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}
.mc-viewport::-webkit-scrollbar { display: none; }
.mc-card {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.mc-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  min-height: 100px;
  max-height: 280px;
  margin: 3px 0 8px;
}
.mc-number {
  position: relative;
  z-index: 1;
  font: 800 clamp(76px, 34cqw, 148px)/.9 Barlow, Impact, 'Arial Narrow', sans-serif;
  letter-spacing: -.035em;
  color: var(--mc-lime);
  font-variant-numeric: lining-nums tabular-nums;
}
.mc-ring {
  position: absolute;
  inset: 12% 4%;
  border: 1px solid #ffffff48;
  border-radius: 50%;
  transform: rotate(-17deg);
  pointer-events: none;
}
.mc-ring--inner { inset: 6% 22%; transform: rotate(29deg); }
.mc-ball {
  position: absolute;
  z-index: 2;
  top: 15%;
  right: 14%;
  width: clamp(11px, 4cqw, 18px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mc-orange);
  box-shadow: 0 0 0 4px #ff65351a;
}
.mc-card--connection .mc-ring--outer { transform: rotate(14deg); }
.mc-card--connection .mc-ball { top: auto; bottom: 17%; right: 17%; }
.mc-card--brands .mc-number { color: var(--mc-orange); }
.mc-number-suffix { color: var(--mc-orange); }
.mc-card--brands .mc-ball { background: var(--mc-lime); right: auto; left: 11%; }
.mc-root .mc-copy {
  margin: 0;
  font: 500 clamp(16px, 5cqw, 21px)/1.3 DM, Arial, sans-serif;
  color: var(--mc-paper);
}
.mc-root .mc-scope {
  margin: 0;
  font: 400 14px/1.35 DM, Arial, sans-serif;
  color: #bfc0b9;
}
.mc-source {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  flex: 0 0 auto;
  font: 500 14px/1.3 DM, Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--mc-paper);
}
.mc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 25px;
  flex: 0 0 auto;
}
.mc-hint { font: 400 13px/1.3 DM, Arial, sans-serif; color: #bfc0b9; }
.mc-dots { display: flex; gap: 6px; }
.mc-dot { width: 18px; height: 3px; background: #ffffff45; }
.mc-dot--active { background: var(--mc-lime); }
.mc-root .mc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-height: 690px) {
  .mc-root { gap: 6px; margin-top: 10px; }
  .mc-card { gap: 7px; }
  .mc-art { min-height: 82px; margin-bottom: 4px; }
  .mc-root .mc-copy { font-size: 16px; line-height: 1.25; }
  .mc-footer { min-height: 20px; }
}
@media (max-width: 380px) and (max-height: 600px) {
  .mc-art { min-height: 68px; margin: 0; }
  .mc-number { font-size: 72px; }
  .mc-card { gap: 6px; }
  .mc-root .mc-scope { line-height: 1.25; }
  .mc-source { min-height: 28px; }
}
@media print {
  .mc-tabs, .mc-footer { display: none; }
  .mc-viewport { display: grid; overflow: visible; gap: 20px; }
  .mc-card { break-inside: avoid; color: #151515; }
  .mc-art { min-height: 90px; }
  .mc-root .mc-copy, .mc-root .mc-scope, .mc-source { color: #151515; }
}
