/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #ffffff;
  --color-text: #1d1d1f;
  --color-text-muted: #6e6e73;
  --color-link: #0066cc;
  --color-link-hover: #0040dd;
  --color-border: #d2d2d7;
  --color-surface: #f5f5f7;
  --color-group-header: #f0f0f3;
  --radius: 8px;
  --max-width: 1440px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #111111;
    --color-text: #f5f5f7;
    --color-text-muted: #a1a1a6;
    --color-link: #2997ff;
    --color-link-hover: #66b3ff;
    --color-border: #3a3a3c;
    --color-surface: #1c1c1e;
    --color-group-header: #252527;
  }
}

html {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== Navigation ===== */
header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-home {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--color-text);
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition:
    color 0.15s,
    background 0.15s;
}

.nav-links a:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

/* ===== Nav Dropdowns ===== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  transition:
    color 0.15s,
    background 0.15s;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"] {
  color: var(--color-text);
  background: var(--color-surface);
}

.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 200;
  min-width: max-content;
}

.nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown-panel {
  display: grid;
}

.nav-dropdown-2col {
  grid-template-columns: 1fr 1fr;
}

.nav-dropdown-3col {
  grid-template-columns: 1fr 1fr 1fr;
}

.nav-dropdown-panel a {
  text-decoration: none;
  color: var(--color-text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  white-space: nowrap;
  transition:
    color 0.15s,
    background 0.15s;
}

.nav-dropdown-panel a:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.nav-dropdown-all {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.15rem;
  padding-bottom: 0.45rem !important;
  font-size: 0.8rem !important;
}

.nav-dropdown-section {
  grid-column: 1 / -1;
  padding: 0.35rem 0.75rem 0.1rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  opacity: 0.6;
}

.nav-divider {
  width: 1px;
  align-self: stretch;
  background: var(--color-border);
  margin: 0.15rem 0.25rem;
}

/* Comparison nav highlights */
.nav-links a.nav-hl-custom {
  color: #0071e3;
}
.nav-links a.nav-hl-video {
  color: #9b59b6;
}
.nav-links a.nav-hl-mlai {
  color: #e67e22;
}
.nav-links a.nav-hl-gaming {
  color: #27ae60;
}

.nav-links a.nav-hl-custom:hover {
  color: #0077ed;
}
.nav-links a.nav-hl-video:hover {
  color: #a96bc8;
}
.nav-links a.nav-hl-mlai:hover {
  color: #f39c12;
}
.nav-links a.nav-hl-gaming:hover {
  color: #2ecc71;
}

@media (prefers-color-scheme: dark) {
  .nav-links a.nav-hl-custom {
    color: #2997ff;
  }
  .nav-links a.nav-hl-video {
    color: #bf7ddc;
  }
  .nav-links a.nav-hl-mlai {
    color: #f0a94e;
  }
  .nav-links a.nav-hl-gaming {
    color: #5de89d;
  }

  .nav-links a.nav-hl-custom:hover {
    color: #66b3ff;
  }
  .nav-links a.nav-hl-video:hover {
    color: #d4a3ec;
  }
  .nav-links a.nav-hl-mlai:hover {
    color: #f7c77e;
  }
  .nav-links a.nav-hl-gaming:hover {
    color: #88f0ba;
  }
}

/* Items that collapse into dropdowns on narrow screens */
.nav-collapse {
  display: list-item;
}

.nav-show-narrow {
  display: none;
}

/* ===== Search ===== */
.search-wrapper {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}

#site-search {
  width: 220px;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.85rem;
  outline: none;
  transition:
    border-color 0.15s,
    width 0.2s;
}

#site-search:focus {
  border-color: var(--color-link);
}

#site-search::placeholder {
  color: var(--color-text-muted);
}

.search-results {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 360px;
  max-height: 420px;
  overflow-y: auto;
  margin-top: 0.35rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 200;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}

.search-result:hover,
.search-result--active {
  background: var(--color-surface);
}

.search-result-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.search-result-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-result-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-detail {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Main Content ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
  flex: 1;
}

/* ===== Typography ===== */
h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

a {
  color: var(--color-link);
}

a:hover {
  color: var(--color-link-hover);
}

ul,
ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.35rem;
}

/* ===== Comparison Tables ===== */
.compare-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0 2rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  white-space: nowrap;
}

.compare-table th,
.compare-table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  background: var(--color-surface);
  font-weight: 600;
  position: sticky;
  top: 0;
}

.compare-table thead th .th-variant {
  font-weight: 400;
  font-size: 0.85em;
  display: block;
  text-align: right;
  color: var(--color-text-muted);
}

.compare-table .group-header td {
  background: var(--color-group-header);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  padding-top: 0.75rem;
}

.compare-table tbody tr:hover {
  background: var(--color-surface);
}

/* First column (spec labels) stays visible on scroll */
.compare-table th:first-child,
.compare-table td:first-child {
  position: sticky;
  left: 0;
  background: var(--color-bg);
  z-index: 1;
  font-weight: 500;
}

.compare-table .group-header td:first-child {
  background: var(--color-group-header);
}

/* ===== Table Sorting & Highlighting ===== */

/* Best / worst value cells */
.cell-best {
  background: color-mix(in srgb, #22c55e 12%, transparent);
}

.cell-worst {
  background: color-mix(in srgb, #ef4444 8%, transparent);
}

@media (prefers-color-scheme: dark) {
  .cell-best {
    background: color-mix(in srgb, #22c55e 15%, transparent);
  }

  .cell-worst {
    background: color-mix(in srgb, #ef4444 10%, transparent);
  }
}

/* Sortable row labels */
.sortable-label {
  cursor: pointer;
  user-select: none;
}

.sortable-label:hover {
  color: var(--color-accent, #0071e3);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

/* Sort direction indicator */
.sort-active {
  font-weight: 700;
}

.sort-asc::after {
  content: " ▲";
  font-size: 0.7em;
  opacity: 0.7;
}

.sort-desc::after {
  content: " ▼";
  font-size: 0.7em;
  opacity: 0.7;
}

/* ===== Device Carousel ===== */
.device-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}

.device-card {
  flex: 0 0 auto;
  min-width: 160px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: background 0.15s;
}

.device-card:hover {
  background: var(--color-surface);
}

.device-card-name {
  font-weight: 600;
  color: var(--color-text);
}

.device-card-category {
  font-size: 0.85em;
  color: var(--color-text-muted);
}

/* ===== Device Grid (category listing) ===== */
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.device-grid-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.device-grid-card:hover {
  background: var(--color-surface);
}

.device-grid-card--empty {
  opacity: 0.5;
  pointer-events: none;
}

.device-grid-card--deprecated {
  opacity: 0.6;
}

.device-grid-discontinued {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.device-grid-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
}

.device-grid-chips {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.device-grid-range {
  font-size: 0.8rem;
  color: var(--color-link);
}

/* ===== Home Page Grid ===== */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.home-grid--featured {
  grid-template-columns: repeat(4, 1fr);
}

.home-grid--wide {
  grid-template-columns: repeat(2, 1fr);
}

.home-grid--faded {
  opacity: 0.55;
  transition: opacity 0.2s;
}

.home-grid--faded:hover {
  opacity: 1;
}

@media (max-width: 720px) {
  .home-grid--featured {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-grid--wide {
    grid-template-columns: 1fr;
  }
}

.home-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.home-card:hover {
  background: var(--color-surface);
}

.home-card-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
}

.home-card-name svg {
  max-height: 1.5rem;
  vertical-align: text-bottom;
  fill: var(--color-text);
}

.home-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Featured card variants */
.home-grid--featured .home-card,
.home-grid--wide .home-card {
  padding: 2rem;
  min-height: 180px;
}

.home-grid--featured .home-card-name,
.home-grid--wide .home-card-name {
  font-size: 1.25rem;
}

.home-grid--featured .home-card-desc,
.home-grid--wide .home-card-desc {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Compare card color tints */
.home-card--custom {
  border-color: #0071e3;
  background: rgba(0, 113, 227, 0.06);
}
.home-card--custom:hover {
  background: rgba(0, 113, 227, 0.12);
}
.home-card--custom .home-card-name {
  color: #0071e3;
}
.home-card--custom .home-card-name svg {
  fill: #0071e3;
}

.home-card--video {
  border-color: #9b59b6;
  background: rgba(155, 89, 182, 0.06);
}
.home-card--video:hover {
  background: rgba(155, 89, 182, 0.12);
}
.home-card--video .home-card-name {
  color: #9b59b6;
}
.home-card--video .home-card-name svg {
  fill: #9b59b6;
}

.home-card--mlai {
  border-color: #e67e22;
  background: rgba(230, 126, 34, 0.06);
}
.home-card--mlai:hover {
  background: rgba(230, 126, 34, 0.12);
}
.home-card--mlai .home-card-name {
  color: #e67e22;
}
.home-card--mlai .home-card-name svg {
  fill: #e67e22;
}

.home-card--gaming {
  border-color: #27ae60;
  background: rgba(39, 174, 96, 0.06);
}
.home-card--gaming:hover {
  background: rgba(39, 174, 96, 0.12);
}
.home-card--gaming .home-card-name {
  color: #27ae60;
}
.home-card--gaming .home-card-name svg {
  fill: #27ae60;
}

@media (prefers-color-scheme: dark) {
  .home-card--custom {
    border-color: #2997ff;
    background: rgba(41, 151, 255, 0.1);
  }
  .home-card--custom:hover {
    background: rgba(41, 151, 255, 0.18);
  }
  .home-card--custom .home-card-name {
    color: #2997ff;
  }
  .home-card--custom .home-card-name svg {
    fill: #2997ff;
  }

  .home-card--video {
    border-color: #bf7ddc;
    background: rgba(191, 125, 220, 0.1);
  }
  .home-card--video:hover {
    background: rgba(191, 125, 220, 0.18);
  }
  .home-card--video .home-card-name {
    color: #bf7ddc;
  }
  .home-card--video .home-card-name svg {
    fill: #bf7ddc;
  }

  .home-card--mlai {
    border-color: #f0a94e;
    background: rgba(240, 169, 78, 0.1);
  }
  .home-card--mlai:hover {
    background: rgba(240, 169, 78, 0.18);
  }
  .home-card--mlai .home-card-name {
    color: #f0a94e;
  }
  .home-card--mlai .home-card-name svg {
    fill: #f0a94e;
  }

  .home-card--gaming {
    border-color: #5de89d;
    background: rgba(93, 232, 157, 0.1);
  }
  .home-card--gaming:hover {
    background: rgba(93, 232, 157, 0.18);
  }
  .home-card--gaming .home-card-name {
    color: #5de89d;
  }
  .home-card--gaming .home-card-name svg {
    fill: #5de89d;
  }
}

/* ===== Current Generation Badge ===== */
.badge-current {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--color-link);
  color: #fff;
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  margin-bottom: 1rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--color-text-muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--color-border);
}

.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-link);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-text);
  font-weight: 500;
}

/* ===== Cross-generation Navigation ===== */
.gen-nav {
  margin-bottom: 1.5rem;
}

.gen-nav-prevnext {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.gen-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s;
  min-width: 0;
}

.gen-nav-link:hover {
  background: var(--color-surface);
}

.gen-nav-next {
  text-align: right;
  margin-left: auto;
}

.gen-nav-placeholder {
  border: none;
}

.gen-nav-dir {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.gen-nav-name {
  font-weight: 600;
  color: var(--color-link);
}

.gen-nav-siblings {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.gen-nav-siblings-label {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.gen-nav-sibling {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--color-link);
  font-size: 0.85rem;
  transition: background 0.15s;
}

.gen-nav-sibling:hover {
  background: var(--color-surface);
}

/* ===== Spec Summary Card ===== */
.spec-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.spec-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.75rem;
  background: var(--color-bg);
}

.spec-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.2;
}

.spec-card-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

.spec-card-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.1rem;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  nav {
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-home {
    text-align: center;
  }

  .nav-links {
    gap: 0;
    order: unset;
    width: 100%;
    justify-content: center;
  }

  .nav-collapse {
    display: none;
  }

  .nav-show-narrow {
    display: block;
  }

  main {
    padding: 1.5rem 1rem;
  }

  .compare-table {
    font-size: 0.8rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.4rem 0.5rem;
  }

  .search-wrapper {
    flex: 1;
    min-width: 0;
    margin-left: 0;
    display: flex;
    justify-content: center;
  }

  #site-search {
    width: 100%;
  }

  #site-search:focus {
    width: 100%;
  }

  .search-results {
    width: 100%;
    left: 0;
    right: 0;
  }
}

/* ===== Compare Page Controls ===== */
.compare-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.compare-controls select {
  flex: 1;
  max-width: 400px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.95rem;
}

.compare-controls button {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-link);
  border-radius: var(--radius);
  background: var(--color-link);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.compare-controls button:hover {
  background: var(--color-link-hover);
  border-color: var(--color-link-hover);
}

.compare-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.compare-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.3rem 0.5rem 0.3rem 0.75rem;
  font-size: 0.85rem;
}

.compare-pill-label {
  color: var(--color-text);
}

.compare-pill-remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
}

.compare-pill-remove:hover {
  color: var(--color-text);
}

.compare-empty {
  color: var(--color-text-muted);
  font-style: italic;
}

/* ===== Generational Gains Charts ===== */
.gen-gains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 640px) {
  .gen-gains-grid {
    grid-template-columns: 1fr;
  }
}

.gen-gains-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
}
