@import url('https://fonts.googleapis.com/css2?family=Archivo+Narrow:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; }

html, body {
  min-height: 100vh;
  background: #008080;
  color: #111;
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 13px;
}

/* ── Layout ── */
.page {
  display: flex;
  justify-content: center;
  min-height: 100vh;
}
.page-inner {
  width: 100%;
  max-width: 620px;
  padding: 24px 16px 48px;
}

/* ── Card ── */
.card {
  background: rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
}

/* ── Typography ── */
.back-btn {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.back-btn:hover { color: white; }
.title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: white;
  padding-bottom: 1em;
}
.description {
  font-size: 12px;
  line-height: 1.6;
  opacity: 0.6;
}
.section-hdr {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  opacity: 0.4;
}
.step-text {
  font-size: 11px;
  line-height: 1.5;
  opacity: 0.6;
  margin-bottom: 10px;
}
.footnote {
  font-size: 10px;
  opacity: 0.35;
  text-align: center;
}
.sheet-count {
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
}

/* ── Slider ── */
.slider-group { margin-bottom: 16px; }
.slider-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}
.slider-label {
  cursor: help;
  border-bottom: 1px dotted rgba(0,0,0,0.3);
}
.slider-val {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: rgba(0,0,0,0.15);
  height: 2px;
  border-radius: 1px;
  outline: none;
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: 2px solid #111;
}
input[type=range]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: 2px solid #111;
}

/* ── Measurement Rows ── */
.measure-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 12px;
}
.measure-row .label { opacity: 0.6; }
.measure-row .value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ── SVG Diagrams ── */
.diagram {
  overflow-x: auto;
  text-align: center;
}
.diagram svg {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.diagram-centered svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ── PDF Button ── */
.btn-pdf {
  width: 100%;
  background: rgba(0,0,0,0.12);
  border: none;
  color: #111;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 0;
  border-radius: 4px;
  cursor: pointer;
}
.btn-pdf:hover { background: rgba(0,0,0,0.18); }

/* ── Print ── */
@media print {
  body, html {
    background: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .no-print, .print-hidden { display: none !important; }
  .page { background: white !important; color: #000 !important; padding: 0 !important; max-width: none !important; }
  .page-inner { max-width: none; padding: 0; }
  .title { color: #000 !important; }
  .card {
    background: white !important;
    border: 1px solid #000;
    padding: 12px;
    margin-bottom: 8px;
    page-break-inside: avoid;
    color: #000 !important;
  }
  .card * { color: #000 !important; opacity: 1 !important; }
  svg text { fill: #000 !important; }
  .diagram svg .sheet-base {
    fill: #fff !important;
    stroke: none !important;
  }
  .diagram svg .sheet-piece {
    fill: #fff !important;
    stroke: #888 !important;
    stroke-width: 0.35 !important;
  }
  .diagram svg .sheet-piece-scrap {
    fill: #f4f4f4 !important;
    stroke: #aaa !important;
    stroke-width: 0.3 !important;
  }
  .diagram svg .sheet-cut {
    stroke: #000 !important;
    stroke-width: 0.8 !important;
    stroke-dasharray: 4 3 !important;
  }
  .diagram svg .sheet-outline {
    fill: none !important;
    stroke: #000 !important;
    stroke-width: 1.1 !important;
  }
  .diagram svg .sheet-label,
  .diagram svg .sheet-dims,
  .diagram svg .sheet-axis {
    fill: #000 !important;
  }
  .diagram svg .sheet-label-scrap {
    fill: #777 !important;
  }
  .diagram-centered svg polygon {
    fill: #fff !important;
    stroke: #000 !important;
    stroke-width: 0.2 !important;
  }
  .diagram-centered svg line,
  .diagram-centered svg path,
  .diagram-centered svg polyline {
    stroke: #000 !important;
    stroke-width: 0.18 !important;
  }
  .diagram svg { width: auto; max-width: 5.5in; height: auto; }
  .diagram-centered svg { max-width: 360px; height: auto; }
}
@page { margin: 0.4in; size: letter portrait; }
