/* Korpora public page — the sections between the hero and the prices. */

/* sections */
.band {
  padding-block: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--rule);
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
/* a link straight to a section (/#faq): the bands above it render in full, so the jump lands on the heading */
.band:has(~ .band:target) {
  content-visibility: visible;
}
.band h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  letter-spacing: -0.03em;
  font-weight: 720;
  font-variation-settings: 'SHRP' 60;
  max-width: 22ch;
  margin-bottom: 18px;
}
.band-lead {
  max-width: var(--measure);
  font-size: 1.08rem;
  color: var(--ink-2);
  margin-bottom: 34px;
}

.outputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 34px;
  align-items: start;
}
/* side by side only where the cut list's seven columns fit their 648 px whole; narrower, the table takes the full width
   instead of a sideways scroll */
@media (min-width: 1200px) {
  .outputs {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
}
.output {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
}
.output figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--rule);
  font-size: 0.86rem;
  color: var(--ink-2);
}
.output .table-wrap {
  border: 0;
  border-radius: 0;
}
/* the scrollable cut list and G-code sit flush in the figure, which clips: the focus ring goes inside them */
.output .table-wrap:focus-visible,
.output pre:focus-visible {
  outline-offset: -3px;
}
.output table {
  font-size: 0.86rem;
}
.output th {
  white-space: nowrap;
}
/* seven columns in the 648 px of the wide layout: a header stays on one line and the table still fits without a scroll
   in all three languages (BG is the longest) */
.output th,
.output td {
  padding-inline: 10px;
}
/* a sideways scroll says so: a soft shade on the edge that still has more behind it (no script — the cover gradients
   scroll with the content, the shades stay) */
.output .table-wrap {
  background:
    linear-gradient(to right, var(--panel) 30%, transparent) 0 0 / 36px 100% local no-repeat,
    linear-gradient(to left, var(--panel) 30%, transparent) 100% 0 / 36px 100% local no-repeat,
    radial-gradient(farthest-side at 0 50%, var(--rule-strong), transparent) 0 0 / 14px 100% scroll
      no-repeat,
    radial-gradient(farthest-side at 100% 50%, var(--rule-strong), transparent) 100% 0 / 14px 100%
      scroll no-repeat;
}
.output pre {
  margin: 0;
  padding: 14px 16px;
  font: 400 0.8rem/1.6 var(--f-mono);
  overflow-x: auto;
  background: var(--panel-2);
  color: var(--ink);
  max-height: 27.5rem;
}
.output pre code {
  font: inherit;
  background: none;
  padding: 0;
}

/* drilling */
.drill-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
@media (min-width: 980px) {
  .drill-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
  }
}
.facts {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 14px;
}
.facts li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
}
.facts .i {
  color: var(--green);
  margin-top: 3px;
}
.facts li:last-child .i {
  color: var(--gold-ink);
}
.sheet-paper {
  margin: 0;
  background: var(--drawing-paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 6px;
}
.sheet-paper img {
  display: block;
  width: 100%;
  height: auto;
}
/* the door at 1:5 and the hinge cup at 1:1, cut from the same drawing */
.drill-views {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}
@media (max-width: 560px) {
  .drill-views {
    grid-template-columns: minmax(0, 1fr);
  }
  .drill-views img + img {
    max-width: 260px;
  }
}
.sheet-paper figcaption {
  padding: 8px 8px 4px;
  font-size: 0.86rem;
  color: #4f4a45;
}
.sheet-paper figcaption a {
  color: #2c6a10;
}
/* the paper stays light in the dark theme too, where the light --focus would vanish on it */
.sheet-paper :focus-visible {
  outline-color: #2c6a10;
}

/* machine */
.formats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0 40px;
}
.formats dl {
  margin: 0;
}
.formats div {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.formats dt {
  font-weight: 650;
  margin-bottom: 4px;
}
.formats dd {
  margin: 0;
  color: var(--ink-2);
}
.layers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.layers code {
  font-size: 0.78rem;
  padding: 2px 6px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
}
.caution {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 14px 18px;
  border-left: 4px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 8px 8px 0;
  max-width: var(--measure);
}
.caution .i {
  flex: none;
  margin-top: 3px;
  color: var(--gold-ink);
}
