/* Meteor-only paito parity.
   Geometry follows the legacy `/paito/:market` surface while every colour is
   resolved from the panel-selected Meteor theme. */
.meteor-paito-reference {
  color: var(--color-text);
  padding: 1.25rem 0 2.5rem;
  width: 100%;
}

.meteor-paito-reference a {
  color: var(--color-primary);
}

.meteor-paito-header {
  width: 100%;
}

.meteor-paito-result-link {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.meteor-paito-result-link a {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
  text-decoration: none;
}

.meteor-paito-market-row {
  align-items: flex-start;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.meteor-paito-market {
  min-width: 0;
}

.meteor-paito-market h1 {
  align-items: center;
  color: var(--color-text);
  display: flex;
  flex-wrap: wrap;
  font-size: 1.5rem;
  font-weight: 400;
  gap: 0.4rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.meteor-paito-badge,
.meteor-paito-days span,
.meteor-paito-times span {
  border-radius: 0.25rem;
  color: var(--color-ink-on-accent);
  display: inline-flex;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.meteor-paito-badge {
  font-size: 0.875rem;
  padding: 0.55rem 0.75rem;
}

.meteor-paito-badge-success,
.meteor-paito-days span {
  background: var(--color-accent-green);
}

.meteor-paito-badge-warning {
  background: var(--color-accent-orange);
}

.meteor-paito-badge-danger {
  background: var(--color-accent-red);
}

.meteor-paito-market-url {
  display: inline-block;
  font-size: 1rem;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.meteor-paito-schedule {
  align-items: flex-end;
  display: flex;
  flex: 0 1 54%;
  flex-direction: column;
  gap: 0.45rem;
}

.meteor-paito-days,
.meteor-paito-times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-end;
}

.meteor-paito-days span,
.meteor-paito-times span {
  font-size: 0.75rem;
  padding: 0.35rem 0.45rem;
}

.meteor-paito-times span {
  background: var(--color-result-digit);
}

.meteor-paito-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.meteor-paito-table-scroll:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.meteor-paito-table {
  border-collapse: collapse;
  color: var(--color-text);
  table-layout: fixed;
  width: 100%;
}

.meteor-paito-table th,
.meteor-paito-table td {
  background: transparent;
  border-bottom: 1px solid var(--color-border-card);
  color: inherit;
  font-variant-numeric: tabular-nums;
  text-align: left;
  width: calc(100% / 7);
}

.meteor-paito-table th {
  border-top: 1px solid var(--color-border-card);
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.85rem 0.75rem;
}

.meteor-paito-table td {
  font-size: 1.125rem;
  font-weight: 400;
  padding: 1rem 0.75rem;
}

.meteor-paito-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--color-bg-card) 30%, transparent);
}

.meteor-paito-table tbody tr:hover td {
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

.meteor-paito-state {
  color: var(--color-text-muted);
  padding: 3rem 1rem;
  text-align: center;
}

.meteor-paito-state-error {
  color: var(--color-accent-red);
}

@media (max-width: 575.98px) {
  .meteor-paito-reference {
    padding: 0.75rem 0 2rem;
  }

  .meteor-paito-result-link {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
  }

  .meteor-paito-market-row {
    display: block;
    margin-bottom: 1rem;
  }

  .meteor-paito-market h1 {
    align-items: flex-start;
    flex-direction: column;
    font-size: 1.25rem;
    gap: 0.55rem;
  }

  .meteor-paito-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
  }

  .meteor-paito-market-url {
    font-size: 0.8125rem;
  }

  .meteor-paito-schedule {
    align-items: flex-start;
    margin-top: 1.25rem;
  }

  .meteor-paito-days,
  .meteor-paito-times {
    justify-content: flex-start;
  }

  .meteor-paito-days span,
  .meteor-paito-times span {
    font-size: 0.625rem;
    padding: 0.3rem 0.35rem;
  }

  .meteor-paito-table {
    min-width: 31.8125rem;
  }

  .meteor-paito-table th {
    font-size: 0.8125rem;
    padding: 0.7rem 0.5rem;
  }

  .meteor-paito-table td {
    font-size: 1rem;
    padding: 0.75rem 0.5rem;
  }
}
