.page-header {
  margin-top: 2.5rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}
.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.page-subtitle {
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 640px;
  line-height: 1.7;
}
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0 0 5rem;
}

.v2-notice {
  border: 1px solid var(--gold-dim);
  background: var(--gold-glow);
  color: var(--text-primary);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 3.5rem;
}
.score-box {
  background: var(--bg-card);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.score-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.score-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}
.score-value.muted { color: var(--text-secondary); }
.score-note {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.score-link {
  background: var(--bg-card);
  display: flex;
  align-items: center;
  padding: 1.4rem 1.5rem;
  color: var(--gold);
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}
.score-link:hover { background: var(--bg-card-hover); }

.mkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.mkt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.5rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.mkt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: -0.6rem;
}
.mkt-name {
  margin: 0;
  line-height: 1.2;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--text-primary);
}
.mkt-cat {
  font-family: 'DM Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.trend-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border: 1px solid var(--border-mid);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: help;
}
.mkt-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.mkt-value {
  font-family: 'DM Mono', monospace;
  font-size: 1.6rem;
  color: var(--text-primary);
}
.mkt-unit {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.mkt-range {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.mkt-range-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mkt-range-value {
  font-family: 'DM Mono', monospace;
  font-size: 1.15rem;
  color: var(--gold);
}
.mkt-range-pct {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.mkt-chart {
  position: relative;
  height: 130px;
}
.mkt-foot {
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.8rem;
}

.tr-explain {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}
.tr-explain h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.tr-explain p {
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.75;
  font-size: 0.92rem;
}
.tr-filters {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.tr-filters label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.tr-filters select {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-family: 'Outfit', sans-serif;
}

.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.tbl th {
  text-align: left;
  font-family: 'DM Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.tbl td {
  padding: 0.65rem 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl td.warn { color: var(--bearish-text); }
.tbl td.good { color: var(--bullish-text); }
.tbl code {
  font-family: 'DM Mono', monospace;
  color: var(--gold);
}
.pill {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
}
.pill.hit { color: var(--bullish-text); border-color: var(--bullish); }
.pill.miss { color: var(--bearish-text); border-color: var(--bearish); }
.pill.pending { color: var(--text-muted); }
.pill.live { color: var(--gold); border-color: var(--gold-dim); }

.method-list {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.8;
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}
.method-list li { margin-bottom: 0.6rem; }
.method-section a { color: var(--gold); }

.section-header h2 {
  margin: 0;
  padding: 0;
  border: 0;
}
.section-header {
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.more-btn {
  display: block;
  margin: 0 auto 1.5rem;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.4rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.more-btn:hover { background: var(--gold-glow); }
.more-btn[hidden] { display: none; }
footer { text-align: left; }
.footer-bottom { text-align: left; }

@media (max-width: 900px) {
  .score-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-link { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .mkt-grid > .mkt-card:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 2.5rem;
    row-gap: 1rem;
    align-content: start;
  }
  .mkt-grid > .mkt-card:last-child:nth-child(3n + 1) > * { grid-column: 1; }
  .mkt-grid > .mkt-card:last-child:nth-child(3n + 1) > .mkt-chart {
    grid-column: 2;
    grid-row: 1 / span 5;
    height: auto;
    min-height: 200px;
  }
}
@media (max-width: 768px) {
  nav .container { flex-direction: column; align-items: stretch; gap: 0.4rem; padding: 0.8rem 16px 0.4rem; }
  nav ul { flex-wrap: nowrap; justify-content: space-between; }
  nav a { white-space: nowrap; padding: 0.45rem 2px; font-size: 0.64rem; letter-spacing: 0.06em; }
  main { padding: 2.5rem 0; }
  section { margin-bottom: 3.5rem; }
}
@media (max-width: 700px) {
  .tr-explain { grid-template-columns: 1fr; gap: 1.5rem; }
  .mkt-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .mkt-card { padding: 1.1rem 1.1rem 0.9rem; gap: 0.7rem; }
  .mkt-name { font-size: 1.25rem; }
  .mkt-value { font-size: 1.35rem; }
  .mkt-range { padding: 0.6rem 0.8rem; }
  .mkt-chart { height: 90px; }
  .mkt-foot { font-size: 0.68rem; padding-top: 0.6rem; }
  .score-box { padding: 1rem 1.1rem; }
  .score-value { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .score-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .score-box { padding: 0.85rem 0.7rem; gap: 0.25rem; }
  .score-label { font-size: 0.56rem; letter-spacing: 0.06em; }
  .score-value { font-size: 1.45rem; }
  .score-note { font-size: 0.66rem; line-height: 1.35; }
  .score-link { padding: 0.8rem 0.9rem; justify-content: center; }
}
