.page-products {
  --p-narrow: 720px;
  --p-toc: 244px;
  background: var(--paper);
  color: var(--ink);
  padding-bottom: clamp(40px, 8vw, 88px);
}

.page-products .p-intro {
  padding: clamp(20px, 4vw, 36px) 0 clamp(24px, 4vw, 40px);
}

.page-products .p-intro__kicker {
  margin: 18px 0 14px;
  padding-left: 10px;
  border-left: 3px solid var(--red);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--red);
}

.page-products h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 5.4vw, 40px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.01em;
  max-width: 24ch;
}

.page-products .lede {
  margin-top: 14px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
}

.page-products .p-intro__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 22px 0 0;
  padding: 14px 0;
  list-style: none;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.page-products .p-intro__facts .mono {
  font-size: 17px;
  color: var(--red);
  margin-right: 6px;
}

.page-products .p-index {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 26px;
}

.page-products .p-index__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--hard-sm);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.page-products .p-index__card:hover,
.page-products .p-index__card:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.page-products .p-index__card--lead {
  background: var(--green);
  border-color: var(--green-deep);
  box-shadow: 6px 6px 0 var(--green-deep);
  color: var(--paper);
}

.page-products .p-index__no {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.page-products .p-index__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.page-products .p-index__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.page-products .p-index__card--lead .p-index__desc {
  color: var(--paper-2);
}

.page-products .p-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.page-products .p-toc {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--hard-sm);
  padding: 14px;
}

.page-products .p-toc__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 10px;
}

.page-products .p-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.page-products .p-toc__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
  color: var(--green);
  text-decoration: none;
  transition: color 120ms ease, background-color 120ms ease;
}

.page-products .p-toc__link .mono {
  font-size: 12px;
  color: var(--gold);
}

.page-products .p-toc__link[data-active] {
  background: var(--green);
  border-color: var(--green-deep);
  color: var(--paper);
  font-weight: 600;
}

.page-products .p-toc__link[data-active] .mono {
  color: var(--gold);
}

.page-products .p-flow {
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 7vw, 80px);
  min-width: 0;
}

.page-products .p-block {
  max-width: var(--p-narrow);
  min-width: 0;
}

.page-products .p-block--wide {
  max-width: none;
}

.page-products .p-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}

.page-products .p-head__no {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-products .p-head h2 {
  font-family: var(--font-display);
  font-size: clamp(21px, 3.2vw, 30px);
  font-weight: 600;
  line-height: 1.3;
}

.page-products .p-head__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.page-products .p-lead {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.page-products .p-footnote {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.page-products .p-sub {
  margin: 26px 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.page-products .p-block > p {
  font-size: 16px;
  line-height: 1.75;
}

.page-products .p-table-wrap {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--hard);
}

.page-products .p-table-wrap::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  width: 24px;
  background: linear-gradient(to left, rgba(15, 26, 22, 0.16), rgba(15, 26, 22, 0));
  pointer-events: none;
}

.page-products .p-table-wrap .scroller {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-products .p-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-products .p-table__cap {
  caption-side: top;
  text-align: left;
  padding: 12px 14px 0;
  font-size: 13px;
  color: var(--muted);
}

.page-products .p-table th,
.page-products .p-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}

.page-products .p-table thead th {
  background: var(--green);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  border-bottom: 2px solid var(--green-deep);
}

.page-products .p-table tbody tr:nth-child(even) {
  background: var(--paper-2);
}

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

.page-products .p-table .num {
  font-family: var(--font-mono);
  text-align: right;
  white-space: nowrap;
  color: var(--red);
}

.page-products .p-table__key {
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}

.page-products .p-table th:first-child,
.page-products .p-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--paper);
  box-shadow: 1px 0 0 var(--line);
}

.page-products .p-table thead th:first-child {
  background: var(--green-deep);
  z-index: 2;
}

.page-products .p-table tbody tr:nth-child(even) td:first-child {
  background: var(--paper-2);
}

.page-products .p-media {
  margin: 0 0 22px;
}

.page-products .p-media img,
.page-products .p-fig-wrap img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--hard);
  background: var(--paper-2);
  object-fit: cover;
}

.page-products .p-media__cap,
.page-products .p-fig-cap {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.page-products .p-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-products .p-field {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--hard-sm);
  padding: 14px 16px 16px;
}

.page-products .p-field__key {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 7px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--green);
}

.page-products .p-field__idx {
  font-size: 12px;
  font-weight: 400;
  color: var(--gold);
}

.page-products .p-field p {
  font-size: 14px;
  line-height: 1.72;
}

.page-products .rail {
  display: flex;
  gap: 6px;
  margin: 26px 0 6px;
}

.page-products .rail__seg {
  flex: 1 1 0;
  height: 8px;
  border-radius: 2px;
  background: var(--line);
}

.page-products .rail__seg[data-state="up"] {
  background: var(--up);
}

.page-products .rail__seg[data-state="pending"] {
  background: var(--amber);
}

.page-products .rail__seg[data-state="out"] {
  background: var(--out);
}

.page-products .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.page-products .legend__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-products .legend__dot {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  border: 1px solid var(--ink);
  background: var(--line);
  display: inline-block;
}

.page-products .legend__dot[data-state="up"] {
  background: var(--up);
}

.page-products .legend__dot[data-state="pending"] {
  background: var(--amber);
}

.page-products .legend__dot[data-state="out"] {
  background: var(--out);
}

.page-products .p-figs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.page-products .p-fig-wrap {
  margin: 0;
}

.page-products .p-calib {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-products .p-calib__item {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--hard-sm);
  padding: 16px 16px 18px;
}

.page-products .p-calib__item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
}

.page-products .p-calib__item > p {
  font-size: 15px;
  line-height: 1.75;
}

.page-products .p-mini {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 16px 0 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-products .p-details {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.page-products .p-details summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  list-style: none;
}

.page-products .p-details summary::-webkit-details-marker {
  display: none;
}

.page-products .p-details summary::before {
  content: "＋ ";
  font-family: var(--font-mono);
  color: var(--gold);
}

.page-products .p-details[open] summary::before {
  content: "－ ";
}

.page-products .p-details p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink);
}

.page-products .p-callout {
  margin-top: 24px;
  padding: 14px 18px 16px;
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--paper-2);
}

.page-products .p-callout__tag {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--red);
}

.page-products .p-callout p {
  font-size: 15px;
  line-height: 1.75;
}

.page-products .p-callout a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-products .p-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.page-products .p-stat {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--green);
  padding: 14px;
  box-shadow: var(--hard-sm);
}

.page-products .p-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1.2;
  color: var(--gold);
}

.page-products .p-stat__lab {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--paper-2);
}

.page-products .p-mx {
  display: grid;
  grid-template-columns: 68px repeat(6, minmax(44px, 1fr));
  gap: 5px;
  min-width: 460px;
  padding: 14px;
}

.page-products .p-mx__corner,
.page-products .p-mx__col,
.page-products .p-mx__row {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  display: flex;
  align-items: center;
}

.page-products .p-mx__col {
  justify-content: center;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.page-products .p-mx__cell {
  display: block;
  height: 20px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--line);
}

.page-products .p-mx__cell[data-st="up"] {
  background: var(--up);
}

.page-products .p-mx__cell[data-st="pending"] {
  background: var(--amber);
}

.page-products .p-mx__cell[data-st="out"] {
  background: var(--out);
}

.page-products .p-matrix-hint {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  background: var(--paper-2);
}

.page-products .p-combos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: none;
}

.page-products .p-combo {
  position: relative;
  padding: 16px 16px 18px 52px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--hard-sm);
}

.page-products .p-combo__no {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 15px;
  color: var(--red);
}

.page-products .p-combo h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 8px;
}

.page-products .p-combo p {
  font-size: 15px;
  line-height: 1.75;
}

.page-products .p-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.page-products .p-btn {
  display: inline-block;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--hard-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.page-products .p-btn--green {
  background: var(--green);
  border-color: var(--green-deep);
  color: var(--paper);
  box-shadow: 6px 6px 0 var(--green-deep);
}

.page-products .p-btn:hover,
.page-products .p-btn:focus-visible {
  transform: translate(-2px, -2px);
}

@media (min-width: 640px) {
  .page-products .p-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 16px;
  }

  .page-products .p-head__meta {
    text-align: right;
    max-width: 30ch;
  }

  .page-products .p-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .p-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .page-products .p-index {
    grid-template-columns: 1.3fr 1fr 1fr 0.95fr;
    align-items: end;
  }

  .page-products .p-index__card--lead {
    padding-bottom: 26px;
  }

  .page-products .p-figs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .p-calib {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .page-products .p-toc {
    position: sticky;
    top: 92px;
    padding: 16px;
  }

  .page-products .p-toc__list {
    flex-direction: column;
    gap: 0;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-products .p-toc__link {
    border: 0;
    border-radius: 0;
    padding: 9px 2px;
    width: 100%;
  }

  .page-products .p-toc__list li + li {
    border-top: 1px dashed var(--line);
  }

  .page-products .p-toc__link[data-active] {
    background: transparent;
    color: var(--red);
  }

  .page-products .p-toc__link[data-active] .mono {
    color: var(--red);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .p-index__card,
  .page-products .p-btn,
  .page-products .p-toc__link {
    transition: none;
  }

  .page-products .p-index__card:hover,
  .page-products .p-btn:hover {
    transform: none;
  }
}
</main>
