/* Dark theme tokens, backdrop layering, and structural utilities */
:root {
  color-scheme: dark;
  --bg-primary: #0b0c10;
  --bg-card: rgba(17, 24, 39, 0.8);
  --border-muted: #1f2937;
  --accent: #e8e6e3;
  --text-primary: #f8fafc;
  --text-muted: #9ca3af;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Slot cards: consistent sizing and hover treatment */
.slot-card {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(31, 41, 55, 0.7);
  background: rgba(17, 24, 39, 0.6);
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.slot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.45);
}

/* Payment logos: controlled sizing and tint for dark mode */
.pay-logo {
  height: 2.5rem;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid rgba(31, 41, 55, 0.6);
  background: rgba(17, 24, 39, 0.6);
  object-fit: contain;
  padding: 0.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pay-logo:hover {
  border-color: rgba(245, 158, 11, 0.6);
  transform: translateY(-2px);
}

/* Responsive table: desktop grid and mobile cards */
.responsive-table {
  width: 100%;
}

.responsive-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  overflow: hidden;
}

.responsive-table thead {
  background: rgba(31, 41, 55, 0.6);
}

.responsive-table th,
.responsive-table td {
  padding: 14px 16px;
  text-align: left;
}

.responsive-table th {
  color: var(--text-primary);
  font-weight: 700;
  border-bottom: 1px solid var(--border-muted);
}

.responsive-table td {
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-muted);
  word-break: break-word;
}

.responsive-table tr:last-child td {
  border-bottom: none;
}

/* Mobile adaptation: stack rows into cards with header labels */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100vw;
    overflow-x: hidden;
    overscroll-behavior: none;
  }

  .responsive-table table,
  .responsive-table thead,
  .responsive-table tbody,
  .responsive-table th,
  .responsive-table td,
  .responsive-table tr {
    display: block;
  }

  .responsive-table thead {
    height: 0;
    visibility: hidden;
  }

  .responsive-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--border-muted);
    border-radius: 10px;
    background: var(--bg-card);
    padding: 4px 6px;
  }

  .responsive-table td {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-muted);
  }

  .responsive-table td:last-child {
    border-bottom: none;
  }

  .responsive-table td::before {
    content: attr(data-label);
    min-width: 110px;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
  }
}

/* Mobile lock helper: restrict horizontal movement and bounce */
.mobile-locked {
  touch-action: manipulation;
}

/* Prose overrides to keep article text legible on dark background */
.article-content {
  color: var(--text-muted);
  line-height: 1.7;
  display: grid;
  gap: 14px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--text-primary);
  margin: 12px 0 6px;
}

.article-content h2 {
  font-size: 1.75rem;
}

.article-content h3 {
  font-size: 1.35rem;
}

.article-content h4 {
  font-size: 1.1rem;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
}

.article-content strong {
  color: var(--text-primary);
}

.article-content ul,
.article-content ol {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

