.page-products {
  --pp-line: rgba(242, 239, 230, .14);
  --pp-line-soft: rgba(147, 167, 155, .22);
  --pp-card: #123024;
  --pp-soft: rgba(18, 48, 36, .72);
  --pp-body: #C4D0C8;
  color: var(--paper);
  padding-top: 28px;
  padding-bottom: 0;
  overflow-x: hidden;
}

.page-products .prod-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  padding-bottom: 14px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--pp-line);
}

.page-products .prod-top .axis-num {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  color: var(--mute);
}

/* ---------- layout ---------- */
.page-products .prod-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-products .prod-main {
  min-width: 0;
}

@media (min-width: 1024px) {
  .page-products .prod-layout {
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
}

/* ---------- left index ---------- */
.page-products .prod-index {
  display: none;
}

@media (min-width: 1024px) {
  .page-products .prod-index {
    display: block;
    position: sticky;
    top: calc(var(--head-h) + 24px);
    align-self: start;
    border-left: 2px solid var(--turf);
    padding-left: 16px;
  }
}

.page-products .index-title {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .18em;
  color: var(--turf-hi);
}

.page-products .prod-index-nav {
  display: flex;
  flex-direction: column;
}

.page-products .prod-index-nav .chapter-nav-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--mute);
  text-decoration: none;
  border-bottom: 1px dashed var(--pp-line-soft);
  transition: color var(--ease), padding-left var(--ease);
}

.page-products .prod-index-nav .chapter-nav-link:last-child {
  border-bottom: 0;
}

.page-products .prod-index-nav .chapter-nav-link:hover,
.page-products .prod-index-nav .chapter-nav-link:focus-visible {
  color: var(--paper);
  padding-left: 4px;
}

.page-products .prod-index-nav .chapter-nav-link.is-in,
.page-products .prod-index-nav .chapter-nav-link[aria-current] {
  color: var(--paper);
  padding-left: 4px;
}

.page-products .prod-index-nav .nav-code {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .08em;
  color: var(--turf-hi);
}

/* ---------- masthead ---------- */
.page-products .prod-masthead {
  max-width: 62ch;
  margin-bottom: 36px;
}

.page-products .prod-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .2em;
  color: var(--turf-hi);
}

.page-products .prod-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--turf-hi);
  flex: none;
}

.page-products .prod-h1 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(2.3rem, 7vw, 4.1rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--paper);
}

.page-products .prod-lede {
  margin: 0 0 18px;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--pp-body);
}

/* ---------- media ---------- */
.page-products .pp-media {
  margin: 0;
  border: 1px solid var(--pp-line);
  background: var(--ink-deep);
  box-shadow: var(--shadow-paper);
  overflow: hidden;
}

.page-products .pp-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .pp-media--hero img { aspect-ratio: 2 / 1; }
.page-products .pp-media--panel img { aspect-ratio: 4 / 3; }
.page-products .pp-media--review img { aspect-ratio: 3 / 2; }

.page-products .pp-media--square {
  max-width: 520px;
  margin: 32px 0 0;
}

.page-products .pp-media--square img { aspect-ratio: 1 / 1; }

.page-products .pp-cap {
  margin: 10px 0 0;
  font-size: .8125rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--mute);
}

.page-products .pp-media .pp-cap {
  margin: 0;
  padding: 12px 14px;
  border-top: 1px solid var(--pp-line);
}

.page-products .pp-endcap {
  margin: 72px 0 0;
  border-top: 4px solid var(--turf);
}

.page-products .pp-endcap img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 5;
  object-fit: cover;
}

.page-products .pp-endcap .pp-cap {
  margin-top: 14px;
  max-width: 60ch;
}

/* ---------- sections ---------- */
.page-products .prod-sec {
  scroll-margin-top: calc(var(--head-h) + 24px);
  margin-top: 56px;
}

.page-products .prod-sec + .prod-sec {
  margin-top: 64px;
}

@media (min-width: 768px) {
  .page-products .prod-sec + .prod-sec {
    margin-top: 96px;
  }
}

.page-products .pp-h3 {
  margin: 32px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--turf);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--paper);
}

.page-products .pp-h3--paper {
  color: var(--on-paper);
  border-left-color: var(--turf);
  margin-top: 28px;
}

.page-products .pp-h3--paper:first-child {
  margin-top: 0;
}

/* ---------- prose ---------- */
.page-products .pp-prose {
  max-width: 68ch;
  margin-top: 24px;
}

.page-products .pp-prose p {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--pp-body);
}

.page-products .pp-prose p:last-child {
  margin-bottom: 0;
}

.page-products .pp-link {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 169, 59, .45);
  transition: border-color var(--ease), color var(--ease);
}

.page-products .pp-link:hover,
.page-products .pp-link:focus-visible {
  color: #F0C46A;
  border-bottom-color: #F0C46A;
}

/* ---------- table ---------- */
.page-products .table-scroll {
  margin-top: 26px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--pp-line);
  background: rgba(18, 48, 36, .55);
}

.page-products .table-scroll:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.page-products .pp-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.page-products .pp-table th,
.page-products .pp-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  font-size: .875rem;
  line-height: 1.65;
  color: var(--pp-body);
  border-bottom: 1px solid var(--pp-line);
}

.page-products .pp-table thead th {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--mute);
  background: rgba(10, 28, 20, .78);
  white-space: nowrap;
}

.page-products .pp-table tbody th {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .9375rem;
  color: var(--paper);
  white-space: nowrap;
}

.page-products .pp-table tbody tr:nth-child(even) {
  background: rgba(242, 239, 230, .032);
}

.page-products .pp-table tbody tr:last-child th,
.page-products .pp-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-products .scroll-hint {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .04em;
  color: var(--mute);
}

@media (min-width: 800px) {
  .page-products .scroll-hint {
    display: none;
  }
}

/* ---------- split panels ---------- */
.page-products .split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 26px;
}

@media (min-width: 768px) {
  .page-products .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

.page-products .split-panel {
  position: relative;
  padding: 22px 20px 20px;
  border: 1px solid var(--pp-line);
  background: var(--pp-soft);
}

.page-products .split-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
}

.page-products .split-panel--path::before { background: var(--turf-hi); }
.page-products .split-panel--read::before { background: var(--amber); }

.page-products .panel-tag {
  display: inline-block;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  color: var(--mute);
}

.page-products .step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ppstep;
}

.page-products .step-list li {
  counter-increment: ppstep;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--pp-line-soft);
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--pp-body);
}

.page-products .step-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-products .step-list li::before {
  content: "0" counter(ppstep);
  font-family: var(--mono);
  font-size: .6875rem;
  color: var(--turf-hi);
  padding-top: 5px;
}

.page-products .field-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .field-list li {
  padding: 11px 0;
  border-bottom: 1px dashed var(--pp-line-soft);
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--pp-body);
}

.page-products .field-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-products .field-list b {
  display: inline-block;
  margin-right: 6px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: .875rem;
  color: var(--turf-hi);
}

.page-products .field-list--wide {
  margin-top: 4px;
}

/* ---------- filter + league cards ---------- */
.page-products .pp-filter-wrap {
  margin-top: 18px;
  border: 1px solid var(--pp-line);
  background: rgba(10, 28, 20, .55);
  padding: 18px;
}

.page-products .pp-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pp-line);
}

.page-products .pp-filter .filter-status {
  margin: 0 0 0 auto;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--mute);
}

.page-products .pp-copy {
  flex: none;
}

.page-products .league-cards {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.page-products .league-card {
  position: relative;
  padding: 16px 16px 14px;
  border: 1px solid var(--pp-line);
  background: var(--pp-soft);
  overflow: hidden;
}

.page-products .league-card[hidden] {
  display: none;
}

.page-products .league-card::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4px;
  height: 20px;
  background: var(--league, var(--turf));
}

.page-products .league-card.is-epl { --league: var(--epl); }
.page-products .league-card.is-laliga { --league: var(--laliga); }
.page-products .league-card.is-seriea { --league: var(--seriea); }
.page-products .league-card.is-bundesliga { --league: var(--bundesliga); }
.page-products .league-card.is-ligue1 { --league: var(--ligue1); }

.page-products .lg-band {
  display: block;
  width: 22px;
  height: 3px;
  margin-bottom: 12px;
  background: var(--league, var(--turf));
}

.page-products .lg-name {
  display: block;
  margin-bottom: 6px;
  font-size: .875rem;
  letter-spacing: .06em;
  color: var(--mute);
}

.page-products .lg-num {
  display: block;
  font-family: var(--mono);
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.page-products .lg-unit {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: .6875rem;
  color: var(--mute);
}

/* ---------- review ---------- */
.page-products .review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 26px;
}

@media (min-width: 900px) {
  .page-products .review-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 40px;
    align-items: start;
  }
}

.page-products .review-col {
  min-width: 0;
}

.page-products .review-col .pp-prose {
  margin-top: 0;
}

.page-products .caution {
  margin-top: 32px;
  padding: 18px 20px;
  border-left: 3px solid var(--amber);
  background: rgba(224, 169, 59, .07);
}

.page-products .caution-title {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .14em;
  color: var(--amber);
}

.page-products .caution ul {
  margin: 0;
  padding-left: 18px;
}

.page-products .caution li {
  margin-bottom: 10px;
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--pp-body);
}

.page-products .caution li:last-child {
  margin-bottom: 0;
}

/* ---------- field details ---------- */
.page-products .field-rows {
  margin-top: 28px;
  border-top: 1px solid var(--pp-line);
}

.page-products .field-row {
  border-bottom: 1px solid var(--pp-line);
}

.page-products .field-sum {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 15px 4px;
  cursor: pointer;
  list-style: none;
  transition: background var(--ease);
}

.page-products .field-sum::-webkit-details-marker {
  display: none;
}

.page-products .field-sum:hover {
  background: rgba(242, 239, 230, .035);
}

.page-products .field-sum::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-size: .875rem;
  color: var(--turf-hi);
}

.page-products .field-row[open] .field-sum::after {
  content: "–";
}

.page-products .field-name {
  font-family: var(--mono);
  font-size: .9375rem;
  letter-spacing: .01em;
  color: var(--paper);
}

.page-products .field-src {
  font-size: .8125rem;
  font-style: italic;
  color: var(--mute);
}

.page-products .field-def {
  padding: 0 4px 20px 18px;
  border-left: 2px solid var(--turf);
  margin-left: 2px;
}

.page-products .field-def p {
  margin: 0 0 10px;
  max-width: 68ch;
  font-size: .9375rem;
  line-height: 1.85;
  color: var(--pp-body);
}

.page-products .field-def p:last-child {
  margin-bottom: 0;
}

/* ---------- paper block ---------- */
.page-products .pp-paper {
  margin-top: 28px;
  padding: 26px 22px;
  background: var(--paper);
  color: var(--on-paper);
  border: 1px solid rgba(26, 43, 34, .16);
  box-shadow: var(--shadow-paper);
}

@media (min-width: 768px) {
  .page-products .pp-paper {
    padding: 40px;
  }
}

.page-products .limit-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .limit-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid rgba(26, 43, 34, .12);
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--on-paper);
}

.page-products .limit-list li:last-child {
  border-bottom: 0;
}

.page-products .limit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 10px;
  height: 2px;
  background: var(--turf);
}

.page-products .limit-note {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: .9375rem;
  line-height: 1.85;
  color: var(--on-paper);
}

.page-products .pp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-products .pp-paper .footnote,
.page-products .pp-paper .pp-cap {
  color: var(--mute-paper);
}

/* ---------- narrow-screen safety ---------- */
@media (max-width: 480px) {
  .page-products {
    padding-top: 18px;
  }

  .page-products .prod-h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .page-products .pp-filter {
    gap: 6px;
  }

  .page-products .pp-filter .filter-status {
    margin-left: 0;
    width: 100%;
  }

  .page-products .pp-media--square {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .prod-index-nav .chapter-nav-link,
  .page-products .field-sum,
  .page-products .pp-link {
    transition: none;
  }
}
