
:root {
  color-scheme: light;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --text: #17191c;
  --muted: #687078;
  --line: #dfe2e6;
  --red: #c91c24;
  --red-dark: #a4141b;
  --green: #18794e;
  --green-bg: #e9f6ef;
  --amber: #9a6700;
  --amber-bg: #fff4d6;
  --blue: #175cd3;
  --blue-bg: #eaf2ff;
  --shadow: 0 1px 2px rgba(20, 24, 28, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--text); background: #fff; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.nav {
  max-width: 1180px;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 17px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  background: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0 11px;
  border-bottom: 2px solid transparent;
  color: #454b52;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}

.nav-search {
  min-width: 220px;
  margin-left: auto;
  display: flex;
}

.nav-search input,
.search-form input {
  min-width: 0;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #c8cdd2;
  border-radius: 5px 0 0 5px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.nav-search input:focus,
.search-form input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(201, 28, 36, 0.12);
}

.button {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--red);
  border-radius: 5px;
  color: #fff;
  background: var(--red);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--red-dark); }
.nav-search .button,
.search-form .button { border-radius: 0 5px 5px 0; }
.button.secondary {
  color: #30343a;
  border-color: #c8cdd2;
  background: #fff;
}
.button.secondary:hover { background: #f6f7f8; }

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 56px;
}

.page-head,
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.page-head { margin-bottom: 22px; }
.page-head h1,
.detail-title h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.page-head p,
.section-head p,
.empty p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.search-form {
  width: min(560px, 100%);
  display: flex;
}

.home-hero {
  position: relative;
  min-height: 248px;
  overflow: hidden;
  border: 1px solid #d8dde1;
  border-radius: 6px 6px 0 0;
  background: #f2f4f5;
}
.home-hero::before {
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--red);
  content: "";
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(690px, 62%);
  margin: 0;
  padding: 28px 42px 25px;
  text-align: left;
}
.hero-product {
  position: absolute;
  top: 20px;
  right: 24px;
  bottom: 18px;
  width: 43%;
  height: calc(100% - 38px);
  object-fit: contain;
  mix-blend-mode: multiply;
}
.hero-kicker {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}
.hero-copy h1 {
  margin: 6px 0 9px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
}
.hero-copy > p {
  max-width: 610px;
  margin: 0;
  color: #555d64;
  font-size: 14px;
  line-height: 1.5;
}
.hero-search {
  width: min(620px, 100%);
  margin: 15px 0 0;
  display: flex;
  box-shadow: 0 3px 14px rgba(20, 24, 28, 0.09);
}
.hero-search input {
  min-width: 0;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #b9c0c6;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  color: var(--text);
  background: #fff;
  outline: none;
}
.hero-search input:focus {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}
.hero-search .button {
  min-width: 118px;
  min-height: 46px;
  border-radius: 0 6px 6px 0;
}
.hero-example {
  margin-top: 9px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3d444a;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.hero-example:hover { color: var(--red); }
.market-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}
.market-stat {
  min-width: 0;
  min-height: 68px;
  padding: 12px 18px;
  display: grid;
  align-content: center;
  gap: 5px;
}
.market-stat + .market-stat { border-left: 1px solid var(--line); }
.market-stat span { color: var(--muted); font-size: 11px; }
.market-stat strong {
  overflow-wrap: anywhere;
  font-size: 21px;
  line-height: 1.1;
}

.home-themes { margin-top: 34px; }
.home-themes .section-head h2 { margin-top: 5px; font-size: 23px; }
.home-theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.home-theme-grid a {
  position: relative;
  min-width: 0;
  min-height: 76px;
  padding: 14px 38px 13px 15px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
}
.home-theme-grid a:hover { color: var(--red); background: #fafbfb; }
.home-theme-grid span {
  overflow: hidden;
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-theme-grid strong { color: var(--muted); font-size: 11px; font-weight: 600; }
.home-theme-grid b {
  position: absolute;
  top: 50%;
  right: 15px;
  color: var(--red);
  font-size: 16px;
  transform: translateY(-50%);
}

.market-dashboard {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.market-column { min-width: 0; padding: 22px 20px 18px; }
.market-column + .market-column { border-left: 1px solid var(--line); }
.market-column-head {
  min-height: 58px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.market-column-head h2 { margin: 0; font-size: 18px; }
.market-column-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.market-column-head > a { color: var(--red); font-size: 18px; font-weight: 750; text-decoration: none; }
.market-row-list { display: grid; }
.market-row {
  min-width: 0;
  min-height: 86px;
  display: grid;
  grid-template-columns: 18px 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #eceef0;
  text-decoration: none;
}
.market-row:hover .market-row-copy strong { color: var(--red); }
.market-rank { color: #9aa0a6; font-size: 11px; font-weight: 750; }
.market-row-image {
  position: relative;
  width: 62px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}
.market-row-image img {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  object-fit: contain;
}
.market-row-image .image-placeholder { font-size: 8px; }
.market-row-copy { min-width: 0; }
.market-row-copy small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.market-row-copy strong {
  margin-top: 4px;
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.market-row-metric { min-width: 64px; text-align: right; }
.market-row-metric strong { display: block; font-size: 13px; white-space: nowrap; }
.market-row-metric small { margin-top: 4px; display: block; color: var(--muted); font-size: 9px; white-space: nowrap; }
.market-row-metric small.positive { color: var(--green); }
.market-column-empty {
  min-height: 258px;
  padding: 22px 4px;
  display: grid;
  align-content: center;
  justify-items: start;
  border-top: 1px solid #eceef0;
}
.market-column-empty p { max-width: 280px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.market-column-empty a { margin-top: 13px; color: var(--red); font-size: 12px; font-weight: 750; text-decoration: none; }
.market-column-empty a span { margin-left: 5px; }

.home-discovery {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 3px solid var(--text);
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.home-set-ranking { min-width: 0; padding: 19px 20px 15px; border-bottom: 1px solid var(--line); }
.home-set-ranking + .home-set-ranking { border-left: 1px solid var(--line); }
.home-set-ranking h2 { margin: 0 0 10px; font-size: 17px; }
.home-set-ranking > div { display: grid; }
.home-set-ranking > div > a {
  min-height: 55px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #eceef0;
  text-decoration: none;
}
.home-set-ranking > div > a:hover > span:nth-child(2) strong { color: var(--red); }
.home-set-ranking > div > a > span:first-child { color: #9aa0a6; font-size: 10px; font-weight: 750; }
.home-set-ranking > div > a > span:nth-child(2) { min-width: 0; }
.home-set-ranking > div > a > span:nth-child(2) small,
.home-set-ranking > div > a > span:last-child small { display: block; color: var(--muted); font-size: 9px; }
.home-set-ranking > div > a > span:nth-child(2) strong {
  margin-top: 2px;
  display: block;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-set-ranking > div > a > span:last-child { text-align: right; }
.home-set-ranking > div > a > span:last-child strong { font-size: 12px; }
.home-ranking-empty { min-height: 150px; align-content: center; }
.home-ranking-empty p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.home-ranking-empty a { margin-top: 10px; color: var(--red); font-size: 12px; font-weight: 750; text-decoration: none; }
.home-market-links {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.home-market-links > * { min-width: 0; min-height: 88px; padding: 17px 18px; display: grid; align-content: center; }
.home-market-links > * + * { border-left: 1px solid var(--line); }
.home-market-links > div span { color: var(--muted); font-size: 9px; font-weight: 750; }
.home-market-links h2 { margin: 4px 0 0; font-size: 17px; }
.home-market-links a { position: relative; gap: 4px; padding-right: 34px; text-decoration: none; }
.home-market-links a:hover strong { color: var(--red); }
.home-market-links a strong { font-size: 13px; }
.home-market-links a span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.home-market-links a b { position: absolute; right: 14px; color: var(--red); }

.data-principles {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(210px, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.data-principles > div,
.data-principles > a {
  min-width: 0;
  min-height: 92px;
  padding: 17px 18px;
  display: grid;
  align-content: center;
  gap: 5px;
}
.data-principles > * + * { border-left: 1px solid var(--line); }
.data-principles strong { font-size: 13px; }
.data-principles span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.data-principles > a { color: var(--red); font-size: 12px; font-weight: 750; text-decoration: none; }
.data-principles > a span { color: var(--red); }

.featured-market {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(300px, 46%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9f9;
}
.featured-image {
  min-height: 360px;
  padding: 28px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  background: #fff;
}
.featured-image img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: contain;
}
.featured-copy {
  padding: 36px 40px 38px;
  align-self: center;
}
.featured-copy h2 {
  margin: 9px 0 12px;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: 0;
}
.featured-copy > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.featured-stats {
  margin: 25px 0 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #d9dde0;
  border-bottom: 1px solid #d9dde0;
}
.featured-stats div {
  min-width: 0;
  padding: 13px 10px 13px 0;
}
.featured-stats div + div {
  padding-left: 12px;
  border-left: 1px solid #d9dde0;
}
.featured-stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.featured-stats strong {
  margin-top: 4px;
  display: block;
  overflow-wrap: anywhere;
  font-size: 17px;
}
.positive { color: var(--green); }
.negative { color: var(--red); }

.price-chart {
  margin: 0;
  padding: 20px 20px 14px;
  background: #fff;
}
.featured-copy .price-chart {
  margin: -3px 0 22px;
  padding: 14px 14px 8px;
  border: 1px solid #d9dde0;
  border-radius: 6px;
}
.panel > .price-chart { border-bottom: 1px solid var(--line); }
.chart-head {
  margin-bottom: 8px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.chart-head > div { min-width: 0; }
.chart-head span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}
.chart-head strong {
  margin-top: 2px;
  display: block;
  font-size: 19px;
}
.chart-latest { text-align: right; }
.chart-latest small {
  margin-top: 2px;
  display: block;
  font-size: 10px;
  font-weight: 750;
}
.price-chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.chart-grid-line {
  stroke: #e3e6e8;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.chart-area { fill: #f7dfe0; }
.chart-line {
  fill: none;
  stroke: var(--red);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.chart-point {
  fill: #fff;
  stroke: var(--red);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.chart-axis-label {
  fill: #7a8188;
  font-family: inherit;
  font-size: 11px;
}
.chart-month { font-size: 10px; }

.catalog-section { margin-top: 46px; }
.catalog-section .section-head { align-items: end; }
.catalog-section .section-head h2 { margin-top: 5px; font-size: 24px; }

.dashboard-section + .dashboard-section { margin-top: 38px; }
.catalog-section + .dashboard-section,
.featured-market + .dashboard-section,
.section-head { margin-bottom: 14px; }
.section-head h2,
.panel h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0;
}
.section-link {
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }

.set-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.set-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.set-card:hover {
  border-color: #bfc4ca;
  box-shadow: 0 3px 10px rgba(20, 24, 28, 0.09);
}
.deal-list {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.deal-list-row {
  min-height: 142px;
  padding: 14px 0;
  display: grid;
  grid-template-columns: 150px minmax(220px, 1fr) minmax(260px, 0.8fr) 170px;
  align-items: center;
  gap: 20px;
}
.deal-list-row + .deal-list-row { border-top: 1px solid var(--line); }
.deal-list-image {
  position: relative;
  width: 150px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}
.deal-list-image img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
}
.deal-list-copy h2 { margin: 5px 0 12px; font-size: 17px; }
.deal-list-copy h2 a { text-decoration: none; }
.deal-list-copy h2 a:hover { color: var(--red); }
.deal-merchant { display: grid; gap: 2px; font-size: 13px; }
.deal-merchant span { color: var(--muted); }
.deal-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}
.deal-values div { min-width: 0; padding: 4px 12px; display: grid; gap: 4px; }
.deal-values span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.deal-values strong { font-size: 15px; }
.deal-action { display: grid; justify-items: stretch; gap: 10px; text-align: center; }
.deal-action .badge { justify-self: center; }
.deal-action .button { min-height: 42px; padding: 0 12px; }
.retirement-groups { display: grid; gap: 32px; }
.retirement-group { border-top: 3px solid var(--text); }
.retirement-group-head {
  padding: 15px 0 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.retirement-group-head span { color: var(--muted); font-size: 10px; font-weight: 750; }
.retirement-group-head h2 { margin: 3px 0 0; font-size: 23px; }
.retirement-group-head > strong { color: var(--amber); font-size: 13px; }
.retirement-row {
  min-height: 142px;
  padding: 14px 0;
  display: grid;
  grid-template-columns: 150px minmax(210px, 1fr) minmax(300px, 1fr) 170px;
  align-items: center;
  gap: 20px;
}
.retirement-row + .retirement-row { border-top: 1px solid var(--line); }
.retirement-image {
  position: relative;
  width: 150px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}
.retirement-image img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
}
.retirement-copy h3 { margin: 5px 0 8px; font-size: 17px; }
.retirement-copy h3 a { text-decoration: none; }
.retirement-copy h3 a:hover { color: var(--red); }
.retirement-copy > span { color: var(--muted); font-size: 12px; }
.retirement-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}
.retirement-values div { min-width: 0; padding: 4px 12px; display: grid; gap: 4px; }
.retirement-values span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.retirement-values strong { overflow-wrap: anywhere; font-size: 14px; }
.retirement-action { display: grid; justify-items: stretch; gap: 10px; text-align: center; }
.retirement-action .badge { justify-self: center; }
.retirement-action .button { min-height: 42px; padding: 0 12px; }
.gainer-list { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gainer-row {
  min-height: 132px;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 28px 120px minmax(190px, 1fr) minmax(330px, 1.35fr) 150px 24px;
  align-items: center;
  gap: 16px;
}
.gainer-row + .gainer-row { border-top: 1px solid var(--line); }
.gainer-rank { color: #9aa0a6; font-size: 13px; font-weight: 750; text-align: center; }
.gainer-image {
  position: relative;
  width: 120px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}
.gainer-image img {
  position: absolute;
  inset: 7px;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  object-fit: contain;
}
.gainer-copy h2 { margin: 5px 0 7px; font-size: 16px; }
.gainer-copy h2 a { text-decoration: none; }
.gainer-copy h2 a:hover { color: var(--red); }
.gainer-copy > span { color: var(--muted); font-size: 11px; }
.gainer-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.gainer-values div { min-width: 0; padding: 4px 10px; display: grid; gap: 4px; }
.gainer-values span,
.gainer-trend > span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.gainer-values strong { font-size: 13px; white-space: nowrap; }
.gainer-trend { display: grid; gap: 5px; }
.sparkline { width: 140px; height: 42px; overflow: visible; }
.sparkline polyline { fill: none; stroke: var(--green); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.sparkline-empty { min-height: 42px; display: flex; align-items: center; color: var(--muted); font-size: 11px; }
.gainer-open { color: var(--red); font-size: 20px; font-weight: 750; text-align: center; text-decoration: none; }
.card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid #eceef0;
  background: #fff;
  text-decoration: none;
}
.card-image img {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: contain;
}
.image-placeholder {
  color: #9aa0a6;
  font-size: 13px;
}
.card-body { padding: 13px 14px 15px; }
.eyebrow {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-title {
  height: 42px;
  margin: 5px 0 10px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0;
}
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--red); }
.card-stats {
  min-height: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.market-card-stats { min-height: 111px; display: grid; align-content: space-between; }
.card-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #eceef0;
  border-left: 1px solid #eceef0;
}
.card-price-grid > div {
  min-width: 0;
  padding: 7px 8px;
  display: grid;
  gap: 2px;
  border-right: 1px solid #eceef0;
  border-bottom: 1px solid #eceef0;
}
.card-price-grid span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.card-price-grid strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.card-status { width: max-content; margin-top: 8px; }
.card-action {
  min-height: 38px;
  margin-top: 12px;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #eceef0;
  color: #343a40;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.card-action span { color: var(--red); font-size: 16px; }
.card-action:hover { color: var(--red); }
.price { font-size: 17px; font-weight: 760; }
.price small { color: var(--muted); font-size: 11px; font-weight: 500; }
.badge {
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.badge.green { color: var(--green); background: var(--green-bg); }
.badge.amber { color: var(--amber); background: var(--amber-bg); }
.badge.blue { color: var(--blue); background: var(--blue-bg); }
.badge.gray { color: #535a61; background: #eff1f3; }

.empty {
  padding: 42px 20px;
  border: 1px dashed #c9ced3;
  border-radius: 7px;
  text-align: center;
  background: #fafbfb;
}
.empty h2 { margin: 0; font-size: 18px; }

.market-empty {
  min-height: 170px;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 3px solid #9aa1a8;
  border-bottom: 1px solid var(--line);
  background: #f7f8f9;
}
.market-empty h2 { margin: 6px 0 0; font-size: 22px; }
.market-empty p { max-width: 650px; margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.compact-section { margin-top: 34px; }

.catalog-toolbar {
  margin-bottom: 14px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f7f8f9;
}
.catalog-toolbar label { display: grid; gap: 5px; }
.catalog-toolbar label > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.catalog-toolbar select,
.catalog-toolbar input[type="number"] {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  border: 1px solid #c8cdd2;
  border-radius: 5px;
  color: var(--text);
  background: #fff;
  font: inherit;
}
.catalog-toolbar select { padding-right: 34px; }
.catalog-toolbar .catalog-check {
  height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #c8cdd2;
  border-radius: 5px;
  background: #fff;
}
.catalog-toolbar .catalog-check span { color: #343a40; font-size: 13px; }
.catalog-check input { width: 16px; height: 16px; accent-color: var(--red); }
.catalog-actions { min-height: 42px; display: flex; align-items: center; gap: 14px; }
.catalog-actions .button { min-width: 120px; }
.clear-filters {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.catalog-result-bar {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.catalog-result-bar strong { color: var(--text); font-size: 13px; }
.market-result-bar {
  margin-bottom: 14px;
  padding: 0 2px;
  border-bottom: 1px solid var(--line);
}

.theme-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.theme-index-item {
  position: relative;
  min-width: 0;
  min-height: 108px;
  padding: 20px 48px 18px 20px;
  display: grid;
  align-content: center;
  gap: 5px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
}
.theme-index-item:hover { background: #fafbfb; }
.theme-index-name {
  overflow: hidden;
  font-size: 16px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.theme-index-item strong { color: var(--red); font-size: 13px; }
.theme-index-item small { color: var(--muted); font-size: 11px; }
.theme-index-item b {
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--red);
  font-size: 18px;
  transform: translateY(-50%);
}
.theme-directory { display: grid; gap: 26px; }
.theme-family { border-top: 3px solid var(--text); border-bottom: 1px solid var(--line); }
.theme-family-head {
  min-height: 88px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 130px;
  align-items: center;
  gap: 20px;
  background: #f7f8f9;
}
.theme-family-head small { color: var(--muted); font-size: 9px; font-weight: 750; }
.theme-family-head h2 { margin: 3px 0 0; font-size: 20px; }
.theme-family-head > div:nth-child(2) { display: grid; gap: 3px; text-align: right; }
.theme-family-head > div:nth-child(2) strong { font-size: 14px; }
.theme-family-head > div:nth-child(2) span { color: var(--muted); font-size: 10px; }
.theme-family-head > a { color: var(--red); font-size: 12px; font-weight: 750; text-align: right; text-decoration: none; }
.theme-child-list { border-top: 1px solid var(--line); }
.theme-child-group + .theme-child-group { border-top: 1px solid #eceef0; }
.theme-child-row {
  min-height: 62px;
  padding: 9px 16px 9px 30px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 110px 100px 18px;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.theme-child-row:hover { background: #fafbfb; }
.theme-child-row.depth-2 { padding-left: 52px; }
.theme-child-row.depth-3 { padding-left: 74px; }
.theme-child-row > span:first-child { display: grid; gap: 2px; }
.theme-child-row small { color: var(--muted); font-size: 8px; font-weight: 750; }
.theme-child-row strong { font-size: 13px; }
.theme-child-row > span:not(:first-child) { color: var(--muted); font-size: 10px; text-align: right; }
.theme-child-row b { color: var(--red); text-align: right; }
.theme-page-head { margin-bottom: 18px; }
.theme-page-head .hero-kicker { margin-bottom: 7px; }
.theme-summary {
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.theme-summary div { min-width: 0; padding: 15px 18px; }
.theme-summary div + div { border-left: 1px solid var(--line); }
.theme-summary span { display: block; color: var(--muted); font-size: 11px; }
.theme-summary strong { margin-top: 5px; display: block; overflow-wrap: anywhere; font-size: 20px; }
.theme-market { margin: 34px 0; }
.theme-market .section-head { margin-bottom: 13px; }
.theme-market .section-head h2 { margin-top: 4px; }
.theme-market .section-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.theme-market-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: #f7f8f9; }
.theme-market-metrics div { min-width: 0; padding: 14px 18px; }
.theme-market-metrics div + div { border-left: 1px solid var(--line); }
.theme-market-metrics span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.theme-market-metrics strong { margin-top: 4px; display: block; overflow-wrap: anywhere; font-size: 18px; }
.theme-market-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.theme-market-grid > div { min-width: 0; padding: 18px; }
.theme-market-grid > div + div { border-left: 1px solid var(--line); }
.theme-market-grid h3 { margin: 0 0 12px; font-size: 14px; }
.theme-year-trend { display: grid; gap: 8px; }
.theme-year-trend > div { display: grid; grid-template-columns: 34px minmax(60px, 1fr) 44px 76px; align-items: center; gap: 7px; font-size: 9px; }
.theme-year-trend progress { width: 100%; height: 7px; accent-color: var(--red); }
.theme-year-trend strong { text-align: right; white-space: nowrap; }
.theme-year-trend small { color: var(--muted); text-align: right; white-space: nowrap; }
.theme-ranking { display: grid; align-content: start; }
.theme-ranking a { padding: 9px 0; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 3px 8px; border-top: 1px solid var(--line); text-decoration: none; }
.theme-ranking a:hover strong { color: var(--red); }
.theme-ranking a > span { grid-row: span 2; color: #9aa0a6; font-size: 10px; font-weight: 750; }
.theme-ranking strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.theme-ranking small { color: var(--muted); font-size: 9px; }
.theme-set-head { margin-bottom: 14px; }

.pagination {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.page-link {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c8cdd2;
  border-radius: 5px;
  background: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.page-link:hover { border-color: var(--red); color: var(--red); }
.page-link.current { color: #fff; border-color: var(--red); background: var(--red); }

.breadcrumbs {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumbs a { color: #3f464d; text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); text-decoration: underline; }

.detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) 280px;
  align-items: center;
  gap: 30px;
  margin-bottom: 22px;
}
.detail-gallery { min-width: 0; }
.detail-image {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.detail-image img {
  position: absolute;
  inset: 24px;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  object-fit: contain;
}
.detail-thumbnails {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.detail-thumbnails a {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}
.detail-thumbnails a:hover { border-color: var(--red); }
.detail-thumbnails img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: contain;
}
.detail-title { min-width: 0; }
.detail-kicker,
.panel-kicker,
.purchase-label {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}
.detail-kicker a { color: var(--red); text-decoration: none; }
.detail-kicker a:hover { text-decoration: underline; }
.detail-title h1 { font-size: 30px; }
.detail-summary {
  margin: 10px 0 0;
  color: #50575e;
  font-size: 13px;
  line-height: 1.55;
}
.detail-meta {
  margin: 14px 0 21px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-value-grid .detail-metric {
  padding: 12px 12px 12px 0;
}
.hero-value-grid .detail-metric:nth-child(even) {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.hero-value-grid .detail-metric:nth-child(n + 3) { border-top: 1px solid var(--line); }
.detail-metric span,
.detail-metric small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.detail-metric strong {
  margin-top: 4px;
  display: block;
  overflow-wrap: anywhere;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.2;
}
.detail-metric small { margin-top: 4px; line-height: 1.35; }
.detail-coverage { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.market-signals {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.market-signals span {
  padding: 5px 8px;
  border-radius: 4px;
  color: #4e555c;
  background: #eff1f3;
  font-size: 11px;
  font-weight: 750;
}
.market-signals .good { color: var(--green); background: var(--green-bg); }
.market-signals .watch { color: var(--amber); background: var(--amber-bg); }

.purchase-card {
  min-width: 0;
  padding: 19px;
  border: 1px solid #cfd3d7;
  border-top: 4px solid var(--red);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(20, 24, 28, 0.08);
}
.purchase-card.quiet { border-top-color: #8c939a; }
.purchase-label { display: block; }
.purchase-price {
  margin-top: 6px;
  display: block;
  font-size: 31px;
  line-height: 1.1;
}
.purchase-saving {
  margin-top: 7px;
  display: block;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}
.purchase-saving.neutral { color: var(--muted); }
.purchase-merchant {
  margin: 17px 0 14px;
  padding-top: 13px;
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.purchase-merchant small { color: var(--muted); font-size: 10px; font-weight: 500; }
.purchase-button { width: 100%; gap: 9px; }
.purchase-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.detail-anchor-nav {
  position: sticky;
  top: 64px;
  z-index: 8;
  min-height: 48px;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}
.detail-anchor-nav a {
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  color: #42484e;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.detail-anchor-nav a:first-child { padding-left: 0; }
.detail-anchor-nav a:hover { color: var(--red); }

.detail-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 18px;
}
.detail-layout > * { min-width: 0; }
.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 18px; }
.panel-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.panel-body { padding: 16px 18px; }
.detail-section { scroll-margin-top: 126px; }
.detail-panel-head {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.detail-panel-head h2 { margin-top: 3px; }
.detail-panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.panel-count {
  color: #555d64;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.history-range { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; }
.history-range a,
.history-range span { min-width: 48px; padding: 8px 10px; color: var(--muted); font-size: 11px; font-weight: 750; text-align: center; text-decoration: none; }
.history-range > * + * { border-left: 1px solid var(--line); }
.history-range a:hover { color: var(--red); background: #fafbfb; }
.history-range span { color: #fff; background: var(--text); }
.condition-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.condition-summary > div { min-width: 0; padding: 16px 20px; display: grid; gap: 4px; }
.condition-summary > div + div { border-left: 1px solid var(--line); }
.condition-summary span { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.condition-summary strong { overflow-wrap: anywhere; font-size: 17px; }
.condition-summary small { color: var(--muted); font-size: 10px; }
.activity-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.activity-metrics .detail-metric { min-width: 0; padding: 15px 16px; }
.activity-metrics .detail-metric + .detail-metric { border-left: 1px solid var(--line); }
.price-distribution { padding: 17px 20px 19px; display: grid; gap: 10px; }
.distribution-head { margin-bottom: 3px; display: flex; justify-content: space-between; gap: 16px; font-size: 12px; }
.distribution-head span { color: var(--muted); font-size: 10px; }
.distribution-row { display: grid; grid-template-columns: 72px minmax(100px, 1fr) 68px 68px 68px 58px; align-items: center; gap: 8px; font-size: 10px; }
.distribution-row > span:first-child { color: var(--muted); }
.distribution-row > span,
.distribution-row > strong { white-space: nowrap; text-align: right; }
.distribution-row small { color: var(--muted); text-align: right; }
.distribution-row meter { width: 100%; height: 9px; accent-color: var(--green); }

.history-metrics,
.outlook-grid {
  display: grid;
  border-bottom: 1px solid var(--line);
}
.price-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.price-guide-item {
  min-width: 0;
  min-height: 126px;
  padding: 22px 20px;
  display: grid;
  align-content: center;
  gap: 6px;
}
.price-guide-item + .price-guide-item { border-left: 1px solid var(--line); }
.price-guide-item span { color: var(--muted); font-size: 11px; font-weight: 700; }
.price-guide-item strong { overflow-wrap: anywhere; font-size: 25px; line-height: 1.15; }
.price-guide-item small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.price-guide-item.primary strong { color: var(--red); }
.history-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.history-metrics .detail-metric,
.outlook-grid .detail-metric { padding: 14px 18px; }
.history-metrics .detail-metric + .detail-metric,
.outlook-grid .detail-metric:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
.history-section > .price-chart { border-bottom: 0; }
.history-data { border-top: 1px solid var(--line); }
.history-data summary {
  min-height: 46px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  color: #343a40;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.history-data summary:hover { color: var(--red); background: #fafbfb; }
.history-data[open] summary { border-bottom: 1px solid var(--line); }

.offer-compare { display: grid; }
.offer-compare-row {
  min-width: 0;
  min-height: 70px;
  padding: 10px 18px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 82px 94px 92px;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.offer-compare-row + .offer-compare-row { border-top: 1px solid var(--line); }
.offer-compare-row:hover { background: #fafbfb; }
.offer-compare-row.link-only { grid-template-columns: 48px minmax(0, 1fr) auto; }
.offer-rank {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.offer-compare-row:first-child .offer-rank { color: var(--green); }
.offer-name { min-width: 0; font-size: 14px; font-weight: 700; }
.offer-name small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.offer-discount { color: var(--green); font-size: 11px; font-weight: 750; text-align: right; }
.offer-price { display: grid; gap: 2px; white-space: nowrap; }
.offer-price strong { font-size: 16px; font-weight: 750; }
.offer-price small { color: var(--muted); font-size: 10px; }
.offer-cta { color: var(--red); font-size: 12px; font-weight: 750; text-align: right; white-space: nowrap; }
.offer-cta b { margin-left: 3px; font-size: 15px; }
.panel-foot {
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fafbfb;
  font-size: 10px;
}

.outlook-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.outlook-grid .detail-metric:nth-child(n + 4) { border-top: 1px solid var(--line); }
.outlook-note {
  margin: 0;
  padding: 15px 18px;
  color: #42484e;
  font-size: 13px;
  line-height: 1.6;
}

.minifig-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.minifig-row {
  min-width: 0;
  min-height: 112px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #eceef0;
}
.minifig-row:nth-child(odd) { border-right: 1px solid #eceef0; }
.minifig-row:last-child,
.minifig-row:nth-child(odd):nth-last-child(2) { border-bottom: 0; }
.minifig-image {
  position: relative;
  width: 78px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fafbfb;
}
.minifig-image img {
  position: absolute;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  object-fit: contain;
}
.minifig-image .image-placeholder { font-size: 9px; }
.minifig-copy { min-width: 0; }
.minifig-copy span,
.minifig-copy small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.minifig-copy strong {
  margin: 4px 0;
  display: block;
  font-size: 13px;
  line-height: 1.3;
}
.minifig-value { font-size: 13px; white-space: nowrap; }

.detail-sidebar { min-width: 0; }
.sidebar-panel { scroll-margin-top: 126px; }
.fact-list { margin: 0; padding: 7px 18px; }
.fact-list div {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.fact-list div + div { border-top: 1px solid #eceef0; }
.fact-list dt { color: var(--muted); font-size: 12px; }
.fact-list dd {
  margin: 0;
  max-width: 62%;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}
.quality-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.quality-list div { padding: 15px 18px; }
.quality-list div + div { border-left: 1px solid var(--line); }
.quality-list strong { display: block; font-size: 21px; }
.quality-list span { margin-top: 3px; display: block; color: var(--muted); font-size: 10px; }
.quality-meta { padding: 7px 18px; }
.quality-meta p {
  margin: 0;
  padding: 10px 0;
  display: grid;
  gap: 4px;
}
.quality-meta p + p { border-top: 1px solid #eceef0; }
.quality-meta span { color: var(--muted); font-size: 10px; }
.quality-meta strong { font-size: 12px; overflow-wrap: anywhere; }
.quality-note {
  margin: 0;
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fafbfb;
  font-size: 10px;
  line-height: 1.45;
}
.catalog-note p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.muted { color: var(--muted); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td {
  padding: 10px 12px;
  border-bottom: 1px solid #eceef0;
  text-align: right;
  white-space: nowrap;
}
th:first-child,
td:first-child { text-align: left; }
th {
  color: var(--muted);
  background: #fafbfb;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
tbody tr:last-child td { border-bottom: 0; }

.coverage-head > strong {
  color: var(--green);
  font-size: 14px;
}
.coverage-grid {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.coverage-stat {
  min-width: 0;
  padding: 17px 18px;
  display: grid;
  gap: 7px;
}
.coverage-stat:not(:nth-child(4n + 1)) { border-left: 1px solid var(--line); }
.coverage-stat:nth-child(n + 5) { border-top: 1px solid var(--line); }
.coverage-stat span,
.coverage-stat small { color: var(--muted); font-size: 12px; }
.coverage-stat strong { font-size: 24px; line-height: 1; }
.coverage-stat progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  color: var(--green);
  background: #eceff1;
}
.coverage-stat progress::-webkit-progress-bar { background: #eceff1; }
.coverage-stat progress::-webkit-progress-value { background: var(--green); }
.coverage-stat progress::-moz-progress-bar { background: var(--green); }
.coverage-queue { margin-top: 0; }
.coverage-table th:nth-child(3),
.coverage-table td:nth-child(3) { text-align: left; }
.coverage-table td { vertical-align: top; }
.coverage-table td:first-child a {
  max-width: 310px;
  display: grid;
  gap: 3px;
  text-decoration: none;
  white-space: normal;
}
.coverage-table td:first-child a:hover strong { color: var(--red); }
.coverage-table td:first-child span { color: var(--muted); line-height: 1.35; }
.gap-list { max-width: 430px; display: flex; flex-wrap: wrap; gap: 5px; }
.gap-list span {
  padding: 3px 6px;
  border: 1px solid #eadfbe;
  border-radius: 4px;
  color: var(--amber);
  background: var(--amber-bg);
  font-size: 11px;
}
.crawl-state {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 4px;
  color: #535a61;
  background: #eff1f3;
  font-size: 11px;
  text-transform: capitalize;
}
.crawl-state.success { color: var(--green); background: var(--green-bg); }
.crawl-state.failed { color: var(--red); background: #fff0f0; }
.crawl-state.skipped { color: var(--amber); background: var(--amber-bg); }
.crawl-message {
  max-width: 210px;
  margin-top: 5px;
  display: block;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
}
.coverage-issues { margin-top: 18px; }
.issue-table td { vertical-align: top; }
.issue-table th:nth-child(2),
.issue-table td:nth-child(2),
.issue-table th:nth-child(4),
.issue-table td:nth-child(4) { text-align: left; }
.issue-table td:first-child a {
  max-width: 260px;
  display: grid;
  gap: 3px;
  text-decoration: none;
  white-space: normal;
}
.issue-table td:first-child a:hover strong { color: var(--red); }
.issue-table td:first-child span { color: var(--muted); line-height: 1.35; }
.issue-source { color: var(--muted); font-size: 12px; }
.issue-message {
  max-width: 420px;
  display: block;
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: normal;
}
.issue-table time { color: var(--muted); font-size: 12px; }

.related-section { margin-top: 34px; }

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}
.footer-inner > div { display: grid; gap: 4px; }
.footer-inner strong { color: var(--text); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--red); }

.information-page {
  width: min(760px, 100%);
  min-height: 55vh;
  margin: 30px auto 72px;
}
.information-page h1 { margin: 8px 0 24px; font-size: 36px; }
.information-copy { color: #3f454b; font-size: 16px; line-height: 1.75; }
.information-copy h2 { margin: 32px 0 8px; color: var(--text); font-size: 21px; }
.information-copy p { margin: 0 0 18px; }
.information-copy a { color: var(--red); }

@media (max-width: 940px) {
  .nav { gap: 12px; }
  .nav-search { display: none; }
  .hero-copy { width: 68%; padding-left: 34px; padding-right: 24px; }
  .hero-copy h1 { font-size: 35px; }
  .hero-product { right: 10px; width: 40%; }
  .home-theme-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .market-column { padding-right: 14px; padding-left: 14px; }
  .market-row { grid-template-columns: 16px 52px minmax(0, 1fr); }
  .market-row-image { width: 52px; }
  .market-row-metric { grid-column: 3; margin-top: -12px; text-align: left; }
  .market-row-metric strong,
  .market-row-metric small { display: inline; margin-right: 5px; }
  .data-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-principles > :nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .data-principles > :nth-child(4) { border-top: 1px solid var(--line); }
  .home-market-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-market-links > div { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .home-market-links > :nth-child(2),
  .home-market-links > :nth-child(4) { border-left: 0; }
  .home-market-links > :nth-child(n + 4) { border-top: 1px solid var(--line); }
  .set-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deal-list-row { grid-template-columns: 120px minmax(180px, 1fr) minmax(240px, 0.8fr); }
  .deal-list-image { width: 120px; }
  .deal-action { grid-column: 2 / -1; grid-template-columns: auto 170px; justify-content: end; align-items: center; }
  .retirement-row { grid-template-columns: 120px minmax(180px, 1fr) minmax(280px, 1fr); }
  .retirement-image { width: 120px; }
  .retirement-action { grid-column: 2 / -1; grid-template-columns: auto 170px; justify-content: end; align-items: center; }
  .gainer-row { grid-template-columns: 24px 100px minmax(180px, 1fr) minmax(300px, 1.2fr) 24px; }
  .gainer-image { width: 100px; }
  .gainer-trend { grid-column: 3 / 5; }
  .theme-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-family-head { grid-template-columns: minmax(180px, 1fr) 130px 110px; }
  .featured-market { grid-template-columns: minmax(280px, 42%) minmax(0, 1fr); }
  .featured-copy { padding: 30px; }
  .featured-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-stats div:nth-child(3) { border-left: 0; border-top: 1px solid #d9dde0; }
  .featured-stats div:nth-child(4) { border-top: 1px solid #d9dde0; }
  .catalog-toolbar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .detail-hero {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) 240px;
    gap: 18px;
  }
  .detail-title h1 { font-size: 26px; }
  .purchase-card { padding: 16px; }
  .purchase-price { font-size: 27px; }
  .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header { position: static; }
  .nav {
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
  }
  .nav-links {
    order: 3;
    width: 100%;
    min-height: 44px;
    overflow-x: auto;
  }
  .nav-link { padding: 0 10px; white-space: nowrap; }
  .nav-search { display: none; }
  .page {
    width: min(100% - 24px, 1180px);
    padding-top: 22px;
  }
  .home-hero { min-height: 0; }
  .hero-product { display: none; }
  .hero-copy {
    width: 100%;
    padding: 34px 24px 32px;
    text-align: center;
  }
  .hero-copy h1 { font-size: 32px; }
  .hero-copy > p { font-size: 15px; }
  .hero-copy > p { margin-right: auto; margin-left: auto; }
  .hero-search { margin-right: auto; margin-left: auto; }
  .market-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-stat:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .market-stat:nth-child(4) { border-top: 1px solid var(--line); }
  .home-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-dashboard { grid-template-columns: 1fr; }
  .market-column { padding: 22px 0 16px; }
  .market-column + .market-column { border-top: 1px solid var(--line); border-left: 0; }
  .market-row { grid-template-columns: 18px 66px minmax(0, 1fr) auto; }
  .market-row-image { width: 66px; }
  .market-row-metric { grid-column: auto; margin-top: 0; text-align: right; }
  .market-row-metric strong,
  .market-row-metric small { display: block; margin-right: 0; }
  .market-column-empty { min-height: 130px; }
  .home-discovery { grid-template-columns: 1fr; }
  .home-set-ranking + .home-set-ranking { border-left: 0; }
  .home-market-links { grid-column: auto; }
  .featured-market { grid-template-columns: 1fr; }
  .featured-image {
    min-height: 300px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .featured-copy { padding: 28px 24px 30px; }
  .featured-copy h2 { font-size: 24px; }
  .price-chart { padding: 16px 12px 10px; }
  .featured-copy .price-chart { margin-bottom: 20px; padding: 12px 9px 7px; }
  .chart-axis-label { font-size: 21px; }
  .chart-month { font-size: 18px; }
  .page-head { align-items: start; flex-direction: column; }
  .market-empty { align-items: flex-start; flex-direction: column; padding: 26px 22px; }
  .catalog-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .catalog-toolbar .catalog-check { align-self: end; }
  .set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deal-list-row { grid-template-columns: 100px minmax(0, 1fr); gap: 12px 16px; }
  .deal-list-image { width: 100px; }
  .deal-values { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; padding-top: 10px; }
  .deal-values div:first-child { padding-left: 0; }
  .deal-action { grid-column: 1 / -1; grid-template-columns: auto minmax(150px, 1fr); }
  .retirement-row { grid-template-columns: 100px minmax(0, 1fr); gap: 12px 16px; }
  .retirement-image { width: 100px; }
  .retirement-values { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; padding-top: 10px; }
  .retirement-values div:first-child { padding-left: 0; }
  .retirement-action { grid-column: 1 / -1; grid-template-columns: auto minmax(150px, 1fr); }
  .gainer-row { grid-template-columns: 22px 90px minmax(0, 1fr) 20px; gap: 12px; }
  .gainer-image { width: 90px; }
  .gainer-values { grid-column: 2 / -1; border-top: 1px solid var(--line); border-left: 0; padding-top: 10px; }
  .gainer-values div:first-child { padding-left: 0; }
  .gainer-trend { grid-column: 2 / -1; }
  .theme-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-summary div:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .theme-summary div:nth-child(4) { border-top: 1px solid var(--line); }
  .theme-family-head { grid-template-columns: minmax(0, 1fr) auto; }
  .theme-family-head > a { grid-column: 1 / -1; text-align: left; }
  .theme-child-row { grid-template-columns: minmax(0, 1fr) 90px 18px; }
  .theme-child-row > span:nth-child(3) { display: none; }
  .theme-market-grid { grid-template-columns: 1fr; }
  .theme-market-grid > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .detail-hero { grid-template-columns: 1fr; gap: 20px; }
  .detail-image { width: min(100%, 480px); justify-self: center; }
  .detail-title h1 { font-size: 27px; }
  .detail-anchor-nav { top: 0; }
  .history-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .condition-summary { grid-template-columns: 1fr; }
  .condition-summary > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .activity-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-metrics .detail-metric + .detail-metric { border-left: 0; }
  .activity-metrics .detail-metric:nth-child(even) { border-left: 1px solid var(--line); }
  .activity-metrics .detail-metric:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .distribution-row { grid-template-columns: 62px minmax(80px, 1fr) 60px 54px; }
  .distribution-row > :nth-child(3),
  .distribution-row > :nth-child(5) { display: none; }
  .price-guide-grid { grid-template-columns: 1fr; }
  .price-guide-item { min-height: 0; padding: 17px 18px; }
  .price-guide-item + .price-guide-item { border-top: 1px solid var(--line); border-left: 0; }
  .history-metrics .detail-metric:nth-child(3) { border-left: 0; }
  .history-metrics .detail-metric:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .outlook-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outlook-grid .detail-metric { border-top: 0; border-left: 0; }
  .outlook-grid .detail-metric:nth-child(even) { border-left: 1px solid var(--line); }
  .outlook-grid .detail-metric:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .minifig-grid { grid-template-columns: 1fr; }
  .minifig-row:nth-child(odd) { border-right: 0; }
  .minifig-row:nth-child(odd):nth-last-child(2) { border-bottom: 1px solid #eceef0; }
  .offer-compare-row { grid-template-columns: 42px minmax(0, 1fr) 86px 78px; }
  .offer-discount { display: none; }
  .coverage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coverage-stat:not(:nth-child(4n + 1)) { border-left: 0; }
  .coverage-stat:nth-child(even) { border-left: 1px solid var(--line); }
  .coverage-stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 430px) {
  .hero-copy { padding: 29px 18px 28px; }
  .hero-copy h1 { font-size: 28px; }
  .hero-search input { padding: 0 11px; }
  .hero-search .button { min-width: 102px; padding: 0 10px; }
  .market-stat { padding: 14px; }
  .market-stat strong { font-size: 18px; }
  .home-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-theme-grid a { min-height: 82px; padding-left: 12px; }
  .home-set-ranking { padding-right: 12px; padding-left: 12px; }
  .market-row { grid-template-columns: 16px 54px minmax(0, 1fr); }
  .market-row-image { width: 54px; }
  .market-row-metric { grid-column: 3; margin-top: -12px; text-align: left; }
  .market-row-metric strong,
  .market-row-metric small { display: inline; margin-right: 5px; }
  .data-principles { grid-template-columns: 1fr; }
  .data-principles > * + * { border-top: 1px solid var(--line); border-left: 0; }
  .catalog-toolbar { padding: 12px; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .catalog-toolbar label,
  .catalog-toolbar .catalog-check,
  .catalog-toolbar .button { width: 100%; }
  .catalog-actions { align-items: stretch; flex-direction: column; gap: 4px; }
  .clear-filters { justify-content: center; }
  .featured-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .deal-list-row { grid-template-columns: 82px minmax(0, 1fr); }
  .deal-list-image { width: 82px; }
  .deal-list-copy h2 { font-size: 15px; }
  .deal-merchant span { font-size: 11px; }
  .deal-values div { padding-right: 6px; padding-left: 6px; }
  .deal-values strong { font-size: 13px; }
  .deal-action { grid-template-columns: 1fr; }
  .deal-action .badge { display: none; }
  .retirement-group-head { align-items: start; flex-direction: column; gap: 5px; }
  .retirement-row { grid-template-columns: 82px minmax(0, 1fr); }
  .retirement-image { width: 82px; }
  .retirement-copy h3 { font-size: 15px; }
  .retirement-values div { padding-right: 6px; padding-left: 6px; }
  .retirement-values strong { font-size: 12px; }
  .retirement-action { grid-template-columns: 1fr; }
  .retirement-action .badge { display: none; }
  .gainer-row { grid-template-columns: 18px 76px minmax(0, 1fr) 18px; gap: 9px; }
  .gainer-image { width: 76px; }
  .gainer-copy h2 { font-size: 14px; }
  .gainer-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gainer-values div { padding: 6px; }
  .gainer-values div:nth-child(odd) { padding-left: 0; }
  .gainer-trend { display: none; }
  .price-distribution { padding-right: 12px; padding-left: 12px; }
  .distribution-row { grid-template-columns: 55px minmax(70px, 1fr) 58px; gap: 6px; }
  .distribution-row > :nth-child(6) { display: none; }
  .theme-index-grid { grid-template-columns: 1fr; }
  .theme-family-head { grid-template-columns: 1fr; gap: 8px; }
  .theme-family-head > div:nth-child(2),
  .theme-family-head > a { text-align: left; }
  .theme-family-head > a { grid-column: auto; }
  .theme-child-row,
  .theme-child-row.depth-2,
  .theme-child-row.depth-3 { padding-left: 14px; grid-template-columns: minmax(0, 1fr) 18px; }
  .theme-child-row > span:nth-child(2) { display: none; }
  .theme-market-metrics { grid-template-columns: 1fr; }
  .theme-market-metrics div + div { border-top: 1px solid var(--line); border-left: 0; }
  .theme-index-item { min-height: 92px; }
  .card-image { padding: 10px; }
  .card-image img {
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
  }
  .card-body { padding: 11px; }
  .card-title { height: 59px; min-height: 59px; font-size: 14px; }
  .card-stats { align-items: flex-start; flex-direction: column; }
  .card-action { margin-top: 9px; }
  .badge { font-size: 11px; }
  .breadcrumbs { overflow-x: auto; white-space: nowrap; }
  .detail-image { padding: 16px; }
  .detail-image img {
    inset: 16px;
    width: calc(100% - 32px);
    height: calc(100% - 32px);
  }
  .detail-thumbnails { gap: 4px; }
  .detail-thumbnails img {
    inset: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
  }
  .hero-value-grid .detail-metric { padding-top: 10px; padding-bottom: 10px; }
  .purchase-card { padding: 17px; }
  .detail-anchor-nav a { padding: 0 13px; }
  .detail-anchor-nav a:first-child { padding-left: 0; }
  .detail-panel-head { align-items: start; }
  .history-range,
  .panel-count { padding-top: 2px; }
  .history-metrics .detail-metric,
  .outlook-grid .detail-metric { padding: 12px; }
  .offer-compare-row,
  .offer-compare-row.link-only {
    padding: 13px 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
  }
  .offer-rank { display: none; }
  .offer-name { grid-column: 1; grid-row: 1 / span 2; }
  .offer-price { grid-column: 2; grid-row: 1; text-align: right; }
  .offer-discount { grid-column: 2; grid-row: 2; display: block; }
  .offer-cta {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 6px;
    padding-top: 9px;
    border-top: 1px solid #eceef0;
    text-align: left;
  }
  .coverage-grid { grid-template-columns: 1fr; }
  .coverage-stat:nth-child(even) { border-left: 0; }
  .coverage-stat:nth-child(n + 2) { border-top: 1px solid var(--line); }
  .offer-compare-row.link-only .offer-name { grid-column: 1; grid-row: 1; }
  .offer-compare-row.link-only .offer-cta {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 0;
    border: 0;
    text-align: right;
  }
  .minifig-row {
    min-height: 96px;
    padding: 10px 12px;
    grid-template-columns: 66px minmax(0, 1fr) auto;
    gap: 10px;
  }
  .minifig-image { width: 66px; }
  .footer-inner { align-items: start; flex-direction: column; justify-content: center; padding: 18px 0; }
  .footer-links { justify-content: flex-start; }
}
