/* Rigorloom overview, installation, and documentation.
   Openings and sections come from base.css (.sec, .sec-open, .sec-head); this file styles what sits right of the axis. */

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 24px;
}

/* Inline-block, not flex: a link may hold a Korean phrase in its own span and must keep its spaces. */
.product-link {
  display: inline-block;
  padding-block: 9px;
  font-weight: 500;
}

.product-intro > .product-link {
  margin-top: 12px;
}

.product-body {
  min-width: 0;
}

.product-body p {
  max-width: 39em;
  margin: 0;
}

.product-body p + p {
  margin-top: 12px;
}

.product-body > .product-link {
  margin-top: 12px;
}

.product-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.product-support {
  margin: 0;
}

.product-support-row {
  display: grid;
  grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr);
  gap: 8px 20px;
  padding-block: 16px;
  border-bottom: 1px solid var(--rule);
}

.product-support-row:first-child {
  padding-top: 0;
}

.product-support dt {
  font-weight: 600;
}

.product-support dd {
  margin: 0;
}

.product-loop {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.product-loop li {
  padding-bottom: 20px;
  counter-increment: step;
}

.product-loop li + li {
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.product-loop li:last-child {
  padding-bottom: 0;
}

.product-loop h3 {
  margin-bottom: 4px;
}

.product-loop h3::before {
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  width: 28px;
  color: var(--ink-2);
  font: 400 12px/1 var(--font-mono);
}

.product-checks,
.product-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.product-checks > div + div,
.product-status > div + div {
  padding-inline-start: 24px;
  border-inline-start: 1px solid var(--rule);
}

.product-checks .product-limit {
  margin-top: 12px;
  color: var(--ink-2);
}

/* What each part produces: vendored excerpts and rule rows, set small so a line stays whole. */
.product-loop .cmd,
.product-checks .cmd {
  margin-top: 12px;
}

.product-loop .cmd pre,
.product-checks .cmd pre {
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.55;
}

.product-loop .cmd-head,
.product-checks .cmd-head {
  min-block-size: 32px;
  padding-inline: 14px;
}

.product-rules {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.product-rules li {
  display: grid;
  gap: 2px;
  padding-block: 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.55;
}

.product-rule-id {
  font-size: 12.5px;
  font-weight: 500;
}

.product-rule-id i {
  margin-inline-start: 6px;
  font-style: normal;
  font-weight: 400;
  color: var(--flag);
}

.product-rule-try {
  color: var(--ink-2);
}

.product-rule-try::before {
  content: '\2192\00a0';
}

/* Workspace captures run the full twelve columns under the section. */
.product-wide {
  margin-top: 32px;
}


.product-tools {
  margin-top: 16px;
  border-block: 1px solid var(--rule);
}

.product-tools summary {
  padding-block: 10px;
  min-height: 44px;
  font-weight: 500;
  cursor: pointer;
}

.product-tools ul,
.product-status ul,
.product-jump ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-tools ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
  padding-block: 0 16px;
}

.product-tools code {
  padding: 0;
  background: none;
  overflow-wrap: anywhere;
}

.product-status li {
  padding-block: 9px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.55;
}

.product-status li:first-child {
  padding-top: 0;
}

.product-status-group {
  margin-top: 16px;
}

.product-status-group ul {
  margin-top: 8px;
}

.product-jump {
  margin-top: 16px;
}

.product-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.product-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
}

.product-body > .cmd {
  margin-block: 16px;
}

.product-body > .cmd + .cmd {
  margin-top: -4px;
}

.product-body > .cmd + .product-link {
  margin-top: 0;
}

.product-body > .cmd:last-child {
  margin-bottom: 0;
}

.product-availability p {
  margin-top: 12px;
}

.product-summary p + p {
  margin-top: 2px;
}

@media (max-width: 767px) {
  .product-wide {
    margin-top: 20px;
  }

  .shots .shot picture {
    display: block;
    max-width: 390px;
  }

  .product-tools ul {
    column-gap: 12px;
  }

  .product-checks,
  .product-status {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .product-checks > div + div,
  .product-status > div + div {
    padding: 20px 0 0;
    border-inline-start: 0;
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 520px) {
  .product-support-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .product-tools code {
    font-size: .75em;
  }
}
