/* ============================================================
   THE HOT SHEET — /trending/
   ------------------------------------------------------------
   Editorial chart of trending Pokémon by market price. Reads
   as a printed top-100 chart with sort-tab "chapter switches"
   and a live filter. White paper, navy ink, mono prices.
   ============================================================ */

.hotsheet {
  --paper: #ffffff;
  --paper-soft: #f7f7f9;
  --paper-edge: #f2f2f5;
  --ink: #0e1430;
  --ink-soft: rgba(14, 20, 48, 0.62);
  --ink-faint: rgba(14, 20, 48, 0.4);
  --rule: rgba(14, 20, 48, 0.1);
  --accent: #1F2258;
  --accent-warm: #C3401A;

  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 96px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body:has(.hotsheet) {
  background: #fff;
}

.hotsheet .mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-feature-settings: 'tnum' 1;
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.hotsheet-masthead {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}
.hotsheet-vol {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.hotsheet-title {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  color: var(--ink);
  max-width: 14ch;
}
.hotsheet-title em {
  font-family: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.hotsheet-lede {
  max-width: 56ch;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 40px;
}
.hotsheet-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.hotsheet-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hotsheet-stats .num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
  font-feature-settings: 'tnum' 1;
}
.hotsheet-stats .label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================================================
   CONTROLS — sort tabs + filter input
   ============================================================ */
.hotsheet-controls {
  position: sticky;
  top: 64px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 16px 0;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--rule);
}
.hotsheet-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.hotsheet-tab {
  appearance: none;
  border: 1px solid var(--rule);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.hotsheet-tab .mono {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.hotsheet-tab:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.hotsheet-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.hotsheet-tab.is-active .mono {
  color: rgba(255, 255, 255, 0.65);
}

.hotsheet-search {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-self: end;
  min-width: 220px;
}
.hotsheet-search > .mono {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hotsheet-search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1.5px solid var(--ink);
  transition: border-color 0.15s ease;
}
.hotsheet-search-input:focus-within { border-bottom-color: var(--accent-warm); }
.hotsheet-search-input svg { color: var(--ink-soft); flex-shrink: 0; }
.hotsheet-search-input input {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  width: 100%;
}
.hotsheet-search-input input::placeholder { color: var(--ink-faint); }

.hotsheet-meta {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

/* ============================================================
   CHART — ranked rows
   ============================================================ */
.hotsheet-chart {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.hotsheet-row {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--rule);
  position: relative;
}
.hotsheet-row[hidden] { display: none; }
.hotsheet-row:last-child { border-bottom: 1px solid var(--rule); }

.hotsheet-row-link {
  flex: 1;
  display: grid;
  grid-template-columns: 56px 88px 1fr 130px 140px;
  align-items: center;
  gap: 24px;
  padding: 20px 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}
.hotsheet-row-link:hover {
  background: var(--paper-soft);
}

.hotsheet-rank {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum' 1;
}

.hotsheet-row-main {
  min-width: 0;
}
.hotsheet-row-name {
  font-family: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.hotsheet-row-meta {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70ch;
}

.hotsheet-row-art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hotsheet-row-art img {
  max-width: 80px;
  max-height: 111px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(14, 20, 48, 0.12);
}

.hotsheet-row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.hotsheet-side-line {
  white-space: nowrap;
}

.hotsheet-share {
  margin-top: 28px;
}

.hotsheet-row-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}
.hotsheet-price {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  font-feature-settings: 'tnum' 1;
}
.hotsheet-price-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hotsheet-row-quicklink {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  border-left: 1px solid var(--rule);
  color: var(--ink-faint);
  text-decoration: none;
  font-size: 18px;
  transition: all 0.15s ease;
}
.hotsheet-row-quicklink:hover {
  color: var(--ink);
  background: var(--paper-soft);
}

.hotsheet-foot {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hotsheet-row-link {
    grid-template-columns: 48px 72px 1fr 110px;
    gap: 16px;
  }
  .hotsheet-row-side { display: none; }
}

@media (max-width: 720px) {
  .hotsheet { padding: 0 16px 64px; }
  .hotsheet-masthead { padding: 48px 0 32px; }
  .hotsheet-stats { gap: 24px; padding-top: 20px; }
  .hotsheet-controls {
    grid-template-columns: 1fr;
    gap: 16px;
    position: relative;
    top: auto;
  }
  .hotsheet-search { justify-self: stretch; min-width: 0; }
  .hotsheet-row-link {
    grid-template-columns: 40px 56px 1fr auto;
    gap: 12px;
    padding: 14px 8px;
  }
  .hotsheet-row-art img { max-width: 56px; max-height: 78px; }
  .hotsheet-row-name { font-size: 18px; }
  .hotsheet-rank { font-size: 16px; }
  .hotsheet-price { font-size: 16px; }
  .hotsheet-row-quicklink { display: none; }
}

@media (max-width: 540px) {
  .hotsheet-row-meta {
    max-width: none;
    white-space: normal;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
