/* stlcheck.com — single stylesheet, no external assets, no web fonts. */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #14181f;
  --ink-soft: #4b5563;
  --ink-faint: #6b7280;
  --line: #e2e6ec;
  --line-strong: #cbd3dd;
  --accent: #0f766e;
  --accent-ink: #0b5751;
  --accent-soft: #e6f4f1;
  --warn: #b45309;
  --warn-soft: #fdf3e3;
  --bad: #b42318;
  --bad-soft: #fdeceb;
  --good: #067647;
  --good-soft: #e8f6ee;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --maxw: 1040px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; margin-top: 1.6em; }
h3 { font-size: 1.05rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin: .25em 0; }
small, .small { font-size: .82rem; color: var(--ink-soft); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 26px; height: 26px;
  display: inline-grid; place-items: center;
  background: var(--accent); color: #fff;
  border-radius: 7px;
  font-size: 13px; font-weight: 800;
}
.brand small { font-weight: 500; color: var(--ink-faint); font-size: .72rem; letter-spacing: 0; }
.site-nav { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .86rem;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.site-nav a:hover { background: var(--bg); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }

@media (max-width: 719px) {
  .site-header .wrap { flex-wrap: wrap; padding-top: 8px; padding-bottom: 2px; gap: 2px; }
  .brand { font-size: 1rem; }
  .site-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 6px;
    margin: 0 -4px;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: 0 0 auto; }
}

/* ---------- layout blocks ---------- */
main { display: block; padding: 28px 0 56px; }

.hero { padding: 8px 0 4px; }
.hero h1 { font-size: 1.9rem; margin-bottom: .35em; }
.hero .lede { font-size: 1.05rem; color: var(--ink-soft); max-width: 46em; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent-ink);
  margin: 0 0 .6em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card + .card { margin-top: 16px; }

.grid { display: grid; gap: 14px; }
@media (min-width: 720px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 2.15rem; }
  .hero h1 { font-size: 2.4rem; }
  .card { padding: 22px; }
}

.tool-grid { display: grid; gap: 14px; margin-top: 22px; }
@media (min-width: 720px) {
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
}
.tool-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease;
}
.tool-card:hover { border-color: var(--accent); transform: translateY(-1px); color: var(--ink); }
.tool-card h3 { margin: 0 0 .3em; font-size: 1.05rem; }
.tool-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.tool-card .tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 8px;
  margin-bottom: 10px;
}

/* ---------- calculator shell ---------- */
.calc {
  display: grid;
  gap: 16px;
  align-items: start;
}
@media (min-width: 900px) {
  .calc { grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); }
}
.calc-form { margin: 0; }
.calc-side { position: static; }
@media (min-width: 900px) {
  .calc-side { position: sticky; top: 72px; }
}

.field { margin: 0 0 14px; }
.field:last-child { margin-bottom: 0; }
.field > label, .field > .label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}
.field .hint { font-size: .76rem; color: var(--ink-faint); margin-top: 4px; line-height: 1.4; }

input[type="number"], input[type="text"], select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%), linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
input:focus, select:focus, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
input[aria-invalid="true"] { border-color: var(--bad); }

.row { display: flex; gap: 8px; }
.row > * { flex: 1 1 0; }

.segmented { display: flex; gap: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.segmented label {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  background: #fff;
}
.segmented label + label { border-left: 1px solid var(--line-strong); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented input:checked + span { color: var(--accent-ink); }
.segmented label:has(input:checked) { background: var(--accent-soft); color: var(--accent-ink); }

.advanced { margin-top: 14px; border-top: 1px dashed var(--line-strong); padding-top: 12px; }
.advanced summary { cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--ink-soft); }

/* ---------- results ---------- */
.results { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.results-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.results-body { padding: 14px 18px; }
.results dl { margin: 0; }
.line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dotted var(--line);
}
.line:last-of-type { border-bottom: 0; }
.line dt { color: var(--ink-soft); font-size: .88rem; margin: 0; }
.line dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; font-size: .95rem; text-align: right; }
.line.sub dd, .line.sub dt { color: var(--ink-soft); }
.line.total {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 0;
}
.line.total dt { font-weight: 700; color: var(--ink); font-size: .92rem; }
.line.total dd { font-size: 1.35rem; font-weight: 800; color: var(--accent-ink); letter-spacing: -.02em; }
.line.price dd { font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.line.emphasis dd { color: var(--accent-ink); }
.result-note { padding: 10px 18px 14px; font-size: .76rem; color: var(--ink-faint); line-height: 1.45; }

.big-stat { display: flex; flex-wrap: wrap; gap: 10px; }
.big-stat > div {
  flex: 1 1 120px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.big-stat .k { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); font-weight: 700; }
.big-stat .v { font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- notices ---------- */
.notice {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .86rem;
  border: 1px solid var(--line);
  background: var(--surface);
  margin: 0 0 16px;
}
.notice strong { font-weight: 700; }
.notice.info { background: var(--accent-soft); border-color: #bfe3dc; color: #0b4f49; }
.notice.warn { background: var(--warn-soft); border-color: #f0dcbb; color: #7a4a06; }
.notice.bad { background: var(--bad-soft); border-color: #f3c9c5; color: #7a1c14; }
.notice.good { background: var(--good-soft); border-color: #bfe6ce; color: #05613c; }
.notice p:last-child { margin-bottom: 0; }

.badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
}
.badge.sample { background: var(--warn-soft); color: #7a4a06; border: 1px solid #f0dcbb; }
.badge.ok { background: var(--good-soft); color: #05613c; border: 1px solid #bfe6ce; }
.badge.err { background: var(--bad-soft); color: #7a1c14; border: 1px solid #f3c9c5; }

/* ---------- source / provenance ---------- */
.source-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: .78rem;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  margin: 0 0 16px;
}
.source-bar .dot { color: var(--line-strong); }
.source-bar strong { font-weight: 700; color: var(--ink); }
.sources { margin-top: 8px; }
.sources summary { cursor: pointer; font-size: .8rem; color: var(--accent-ink); font-weight: 600; }
.sources ul { margin: 8px 0 0; padding-left: 1.1em; font-size: .78rem; color: var(--ink-soft); }
.sources li { margin: 4px 0; }
.sources a { word-break: break-word; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
caption { text-align: left; padding: 12px 14px; font-size: .8rem; color: var(--ink-faint); }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: normal; vertical-align: top; }
td.num, th.num { white-space: nowrap; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); background: #fbfcfd; position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfd; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]:hover { color: var(--accent-ink); }
th[aria-sort="ascending"]::after { content: " \25B2"; font-size: .65em; }
th[aria-sort="descending"]::after { content: " \25BC"; font-size: .65em; }

/* ---------- forms / buttons ---------- */
button, .button {
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover, .button:hover { border-color: var(--accent); color: var(--accent-ink); }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover, .button.primary:hover { background: var(--accent-ink); color: #fff; }
button:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }

/* ---------- STL drop zone ---------- */
.drop {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px 18px;
  text-align: center;
  transition: border-color .15s ease, background .15s ease;
}
.drop.dragover { border-color: var(--accent); background: var(--accent-soft); }
.drop h2 { margin-top: 0; font-size: 1.05rem; }
.drop p { color: var(--ink-soft); font-size: .88rem; }
.drop input[type="file"] { display: block; margin: 12px auto 0; font-size: .86rem; max-width: 100%; }

.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 12px; display: none; }
.progress.on { display: block; }
.progress > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s linear; }

.verdict { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.verdict h2 { margin: 0; font-size: 1.15rem; }

/* ---------- misc ---------- */
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: .9rem; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.faq { margin-top: 8px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: .95rem; }
.faq summary::marker { color: var(--accent); }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); font-size: .92rem; }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 30px; margin: 0 0 10px; font-size: .92rem; color: var(--ink-soft); }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
  border-radius: 50%;
  font-size: .72rem; font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 26px 0 40px;
  font-size: .84rem;
  color: var(--ink-soft);
}
.site-footer .cols { display: grid; gap: 18px; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); margin: 0 0 .5em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 3px 0; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent-ink); text-decoration: underline; }
.footer-note { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-faint); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.noscript-only { display: none; }
html.no-js .noscript-only { display: block; }
html.no-js .requires-js { display: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- content-page extras: guide list, download row ---------- */

.related-guides { margin-top: 30px; padding-top: 8px; border-top: 1px solid var(--line); }
.related-guides h2 { font-size: 1rem; }
.guide-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.guide-list a { color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid transparent; }
.guide-list a:hover { border-bottom-color: var(--accent); }
.steps li { margin-bottom: .5em; }

/* ---------- affiliate slots (content batch 2) ---------- */

.product-section { margin-top: 2rem; }
.product-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.product-head h3 { font-size: .95rem; margin: 0; }
.product-head .badge { flex: 0 0 auto; white-space: nowrap; }
.product-spec { margin: 0 0 10px; font-size: .85rem; }
.product-spec dt {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-faint);
  margin-top: 8px;
}
.product-spec dt:first-child { margin-top: 0; }
.product-spec dd { margin: 2px 0 0; color: var(--ink-soft); }
.product-card .button { margin-top: auto; align-self: flex-start; }
.product-card button:disabled { background: #f3f4f6; border-style: dashed; }
.product-note { font-size: .78rem; color: var(--warn); background: var(--warn-soft);
  border: 1px solid #f0dcbb; border-radius: var(--radius-sm); padding: 7px 9px; margin: 0 0 10px; }
.disclosure {
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--ink-faint);
}

/* ---------- quote sheet (printable) ---------- */

.quote-work { margin-top: 22px; }
.quote-sheet {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 18px;
}
.quote-head { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: flex-start; }
.quote-head h2 { margin: 0 0 4px; font-size: 1.1rem; }
.quote-head .eyebrow { margin: 0 0 4px; }
.quote-to { text-align: right; }
.quote-to p { margin: 0; }
.quote-sheet table { margin-top: 14px; }
.quote-terms { display: grid; gap: 12px; margin-top: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .quote-terms { grid-template-columns: repeat(3, 1fr); } }
.quote-terms h3 { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin: 0 0 2px; }
.quote-terms p { margin: 0; font-size: .9rem; }
.quote-total { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.quote-actions { margin-top: 14px; }

/* ---------- STL checker: grams · hours · quote ---------- */
.quote-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.quote-hero .qh { font-size: 1.6rem; font-weight: 800; color: var(--ink); line-height: 1.15; }
.quote-hero .qh-price { color: var(--accent-ink); }
.quote-hero .qh-sep { color: var(--line-strong); font-size: 1.3rem; font-weight: 700; }
@media (min-width: 720px) { .quote-hero .qh { font-size: 1.9rem; } }
/* Narrow screens wrap the headline; a separator left dangling at the end of a
   line reads as a typo, so drop them and rely on the gap instead. */
@media (max-width: 560px) {
  .quote-hero { gap: 2px 10px; }
  .quote-hero .qh { font-size: 1.45rem; }
  .quote-hero .qh-sep { display: none; }
}

.quote-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: .8rem;
  color: var(--ink-soft);
  margin: 0 0 4px;
}
.quote-note .q-sep { color: var(--line-strong); }
.q-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; color: var(--ink); }
.q-toggle input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }

.quote-caveat {
  font-size: .8rem;
  color: var(--ink-faint);
  line-height: 1.45;
  margin: 0 0 12px;
  max-width: 62em;
}

.q-more, .q-settings { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.q-more > summary, .q-settings > summary {
  cursor: pointer;
  font-size: .84rem;
  font-weight: 700;
  color: var(--accent-ink);
}
.q-more[open] > summary, .q-settings[open] > summary { margin-bottom: 10px; }
.q-more-body h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin: 14px 0 2px; }
.q-more-body h3:first-child { margin-top: 0; }
.q-fields { margin-bottom: 10px; }
.q-fields .field { margin-bottom: 0; }

@media print {
  .site-header, .site-footer, .calc-form, .quote-actions, .quote-work,
  .related-guides, .disclosure, .notice, .product-section, .sources-block,
  .site-nav, .hero .eyebrow { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .wrap { max-width: none; padding: 0; }
  .quote-sheet { border: 0; padding: 0; margin: 0; }
  main > .wrap > * { display: none !important; }
  main > .wrap > .quote-sheet { display: block !important; }
  .quote-sheet a { color: inherit; text-decoration: none; }
}

