/* Content pages (home, prices, surface, guide, examples, compare, material, process, questions).
   Components: hero + drawing title block, rate cards, worked price table, example cards, comparison tables, the
   "what to expect" articles, drawings (process, hollow, fits). */

/* hero */
.hero { padding: var(--s12) 0 var(--s8); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s12); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); letter-spacing: -0.03em; max-width: 13ch; }
.hero .lede { font-size: var(--t-lg); color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; gap: var(--s3); flex-wrap: wrap; margin: var(--s6) 0 var(--s8); }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.hero-points li { padding: var(--s3) var(--s4) var(--s3) 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.hero-points li:nth-child(odd) { border-right: 1px solid var(--line); }
.hero-points li:nth-child(even) { padding-left: var(--s4); }
.hero-points b { font: 600 var(--t-xl)/1.1 var(--mono); letter-spacing: -0.02em; }
.hero-points li > span { font-size: var(--t-sm); color: var(--muted); }
.hero-fig { margin: 0; border: 1px solid var(--line-strong); background: radial-gradient(90% 80% at 50% 40%, var(--surface) 0%, var(--bg) 100%); }
.hero-fig img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; padding: var(--s4); }
.titleblock { border-top: 1px solid var(--line-strong); background: var(--surface); }
.titleblock dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.titleblock dl > div { padding: var(--s2) var(--s3); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.titleblock dl > div:first-child { grid-column: span 2; }
.titleblock dl > div:nth-child(2), .titleblock dl > div:nth-child(5) { border-right: 0; }
.titleblock dt { font: 600 10px/1.4 var(--font); font-stretch: 125%; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.titleblock dd { margin: 2px 0 0; font-size: var(--t-sm); }
.titleblock .tb-price dd { font-size: var(--t-lg); font-weight: 600; color: var(--laser-ink); }
.titleblock p { font-size: var(--t-xs); color: var(--muted); margin: 0; padding: var(--s2) var(--s3); max-width: none; }
.queue-strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s6); margin: var(--s8) 0 0; padding: var(--s3) var(--s4); border: 1px solid var(--line); background: var(--surface); font-size: var(--t-sm); max-width: none; }
.queue-strip .dot { margin-right: calc(var(--s6) * -1 + var(--s2)); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s8); } }

/* section heads: heading left, explanation right */
.block-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
@media (max-width: 860px) { .block-head { grid-template-columns: minmax(0, 1fr); gap: var(--s4); } }
.block-head h2 { margin: 0; }
.block-head p { margin: 0; }
h3.sub { margin: var(--s12) 0 var(--s4); font-size: var(--t-lg); }
.aside { margin-top: var(--s4); max-width: 90ch; }
.more { display: flex; flex-wrap: wrap; gap: var(--s6); margin: var(--s6) 0 0; font-weight: 600; font-size: var(--t-sm); max-width: none; }
.more a { text-decoration-color: var(--laser); text-decoration-thickness: 2px; }

/* rate cards */
.rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-strong); background: var(--surface); }
.rate { padding: var(--s6); border-right: 1px solid var(--line); }
.rate:last-child { border-right: 0; }
.rate-n { font: 600 clamp(1.8rem, 3.4vw, 2.6rem)/1 var(--mono); letter-spacing: -0.03em; margin: 0 0 var(--s4); display: flex; align-items: baseline; gap: var(--s2); }
.rate-n small { font: 400 var(--t-sm) var(--font); color: var(--muted); letter-spacing: 0; }
.rate h3 { margin-bottom: var(--s2); }
.rate p:last-child { color: var(--muted); font-size: var(--t-sm); margin: 0; }
@media (max-width: 860px) { .rates { grid-template-columns: 1fr; } .rate { border-right: 0; border-bottom: 1px solid var(--line); } }

/* worked example */
.worked { display: grid; grid-template-columns: 240px minmax(0, 1fr); border: 1px solid var(--line-strong); background: var(--surface); }
.worked-pic { margin: 0; border-right: 1px solid var(--line); padding: var(--s4); display: grid; align-content: center; gap: var(--s2); }
.worked-pic img { width: 100%; height: auto; }
.worked-pic figcaption { font-size: var(--t-xs); color: var(--muted); text-align: center; font-family: var(--mono); }
.worked-table { border: 0; }
.worked-table th { background: none; font: 600 var(--t-sm) var(--font); text-transform: none; letter-spacing: 0; color: var(--ink); white-space: nowrap; width: 1%; }
.worked-table td { color: var(--muted); }
.worked-table td.num { color: var(--ink); white-space: nowrap; width: 1%; font-size: var(--t-base); }
.worked-table tr.sum th, .worked-table tr.sum td { border-top: 1.5px solid var(--ink); }
.worked-table tr.sum td.num { font-weight: 600; color: var(--laser-ink); }
@media (max-width: 760px) { .worked { grid-template-columns: 1fr; } .worked-pic { border-right: 0; border-bottom: 1px solid var(--line); } .worked-pic img { max-width: 220px; margin: 0 auto; } .worked-table th { white-space: normal; } }

/* example cards */
.ex-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ex-card { background: var(--surface); display: grid; grid-template-rows: auto 1fr; scroll-margin-top: 80px; }
.ex-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; padding: var(--s3); background: radial-gradient(80% 70% at 50% 45%, var(--surface) 0%, var(--surface-2) 100%); }
.ex-body { padding: var(--s4); display: grid; align-content: start; gap: var(--s2); border-top: 1px solid var(--line); }
.ex-body h3 { margin: 0; font-size: var(--t-base); }
.ex-body > p { font-size: var(--t-sm); color: var(--muted); margin: 0; }
.ex-facts { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s3); margin: var(--s2) 0 0; font-size: var(--t-xs); }
.ex-facts dt { color: var(--muted); } .ex-facts dd { margin: 0; text-align: right; font-family: var(--mono); }
.ex-price { margin: var(--s2) 0 0; display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); border-top: 1px solid var(--line); padding-top: var(--s2); }
.ex-price > span { font: 600 var(--t-xl) var(--mono); color: var(--laser-ink); letter-spacing: -0.02em; }
.ex-price small { font-size: var(--t-xs); color: var(--muted); font-family: var(--mono); }

/* tables */
table.compare th[scope=row], table.services th[scope=row], table.ex-table th[scope=row] { background: none; font: 600 var(--t-sm) var(--font); letter-spacing: 0; text-transform: none; color: var(--ink); }
table.compare th[scope=row] .muted, table.services th[scope=row] .muted { font-weight: 400; font-size: var(--t-xs); }
table.compare thead th .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
table.compare td:last-child { font-size: var(--t-xs); color: var(--muted); min-width: 240px; }
table.compare tr.us td.num, table.ex-table td.here { color: var(--laser-ink); font-weight: 600; }
table.services td { font-size: var(--t-sm); }
table.services tr:target td, table.services tr:target th { background: var(--laser-soft); }

/* what to expect */
.expect { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin-bottom: var(--s12); }
.expect article { padding: var(--s6) var(--s6) var(--s6) 0; border-right: 1px solid var(--line); }
.expect article + article { padding-left: var(--s6); }
.expect article:last-child { border-right: 0; }
.expect h3 { font-size: var(--t-base); }
.expect p { font-size: var(--t-sm); color: var(--muted); }
.expect .linklike { color: var(--laser-ink); text-decoration-thickness: 1px; font-size: var(--t-sm); display: inline; text-align: left; }
.mini { width: 100%; max-width: 240px; height: auto; margin-top: var(--s3); }
@media (max-width: 980px) { .expect { grid-template-columns: 1fr 1fr; } .expect article { padding: var(--s6) var(--s4) !important; border-bottom: 1px solid var(--line); } .expect article:nth-child(2n) { border-right: 0; } }
@media (max-width: 560px) { .expect { grid-template-columns: 1fr; } .expect article { border-right: 0 !important; padding-inline: 0 !important; } }

/* fits: gap, thread, hollow */
.fit { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s8); padding: var(--s8) 0; border-top: 1px solid var(--line); align-items: center; }
.fit-text h3 { font-size: var(--t-lg); }
.fit-text > p { color: var(--muted); font-size: var(--t-sm); }
.fit-range { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s3); color: var(--ink); font-weight: 600; margin: var(--s4) 0; }
.fit-range input { accent-color: var(--laser-ink); width: 100%; }
.fit-range output { font: 600 var(--t-lg) var(--mono); min-width: 6ch; text-align: right; }
.fit-verdict { display: grid; gap: var(--s1); padding: var(--s3) var(--s4); border-left: 4px solid var(--warn); background: var(--warn-soft); font-size: var(--t-sm); }
.fit[data-verdict=good] .fit-verdict { border-color: var(--ok); background: color-mix(in oklch, var(--ok) 12%, var(--surface)); }
.fit[data-verdict=bad] .fit-verdict { border-color: var(--err); background: var(--err-soft); }
.fit-fig { margin: 0; border: 1px solid var(--line-strong); background: var(--surface); }
.fit-fig svg { display: block; width: 100%; height: auto; }
.fit-fig figcaption { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); padding: var(--s2) var(--s3); border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--muted); }
.key { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -2px; border: 1px solid var(--line-strong); }
.k-steel { background: var(--steel-fill); } .k-stick { background: var(--stick-fill); } .k-loose { background: var(--surface-2); }
.k-ideal { border: 0; border-top: 2px dashed var(--laser-ink); height: 0; width: 16px; vertical-align: 3px; }
.fit .seg { margin: var(--s4) 0; flex-wrap: wrap; }
.hollow-row .diagram { margin: 0; }
@media (max-width: 860px) { .fit { grid-template-columns: 1fr; } }

/* drawings: shared ink */
:root { --steel-fill: oklch(76% 0.008 245); --stick-fill: oklch(66% 0.03 75); --steel-edge: oklch(45% 0.015 250); }
@media (prefers-color-scheme: dark) { :root { --steel-fill: oklch(62% 0.01 245); --stick-fill: oklch(52% 0.04 75); --steel-edge: oklch(85% 0.01 245); } }
.g-steel { fill: var(--steel-fill); stroke: var(--steel-edge); stroke-width: 1; }
.g-grain { fill: var(--steel-fill); stroke: var(--steel-edge); stroke-width: .6; }
.g-stick { fill: var(--stick-fill); opacity: .55; }
.g-weld { fill: var(--err); }
.g-loose circle { fill: none; stroke: var(--line-strong); stroke-width: .7; }
.g-dim { stroke: var(--laser-ink); stroke-width: 1.2; }
.g-label { font: 600 13px var(--mono); fill: var(--laser-ink); text-anchor: middle; }
.g-scale { stroke: var(--ink); stroke-width: 2; }
.g-scale-t { font: 500 11px var(--mono); fill: var(--ink); }
.t-core { fill: var(--steel-fill); }
.t-steel { fill: var(--steel-fill); stroke: var(--steel-edge); stroke-width: 1; }
.t-ideal { fill: none; stroke: var(--laser-ink); stroke-width: 1.6; stroke-dasharray: 5 4; }
.t-band { fill: none; stroke: var(--err); opacity: .28; stroke-linejoin: round; }
.t-ext { stroke: var(--muted); stroke-width: .8; }
.t-dimline { stroke: var(--laser-ink); stroke-width: 1.4; }
.t-errbar { fill: var(--err); opacity: .6; }
.t-label { font: 500 11px var(--mono); fill: var(--ink); }
.t-errt { fill: var(--err); }
.k-band { background: color-mix(in oklch, var(--err) 30%, transparent); border-color: transparent; }
.diagram { margin: 0; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption { font-size: var(--t-sm); color: var(--muted); margin-top: var(--s3); max-width: 80ch; }
.lpbf { border: 1px solid var(--line-strong); background: var(--surface); padding: var(--s4); }
.d-chamber { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 6 4; }
.d-powder { fill: var(--muted); opacity: .55; }
.d-bed { stroke: var(--line-strong); stroke-width: 1; }
.d-plate { fill: var(--ink); opacity: .75; }
.d-part { fill: var(--steel-fill); stroke: var(--steel-edge); stroke-width: 1.2; }
.d-support { stroke: var(--steel-edge); stroke-width: 1; }
.d-melt { fill: oklch(80% 0.15 70); }
.d-blade { fill: var(--ink); }
.d-scanner { fill: var(--surface-2); stroke: var(--ink); stroke-width: 1.2; }
.d-beam { stroke: oklch(70% 0.18 40); stroke-width: 2.5; }
.d-glow { fill: oklch(85% 0.16 85); opacity: .9; }
.d-ink { stroke: var(--ink); stroke-width: 1.4; fill: none; }
.d-ink-fill { fill: var(--ink); }
.d-lead line { stroke: var(--muted); stroke-width: .8; }
.d-label { font: 500 12.5px var(--font); fill: var(--ink); }
.d-note { font: 500 11.5px var(--mono); fill: var(--muted); }
.d-fall circle { fill: var(--muted); }
.d-ideal { fill: none; stroke: var(--laser-ink); stroke-width: 1.5; stroke-dasharray: 4 3; }
.d-rough { fill: none; stroke: var(--steel-edge); stroke-width: 3; stroke-linejoin: round; }

/* after printing */
.after { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s8); margin-top: var(--s8); }
.after h3 { font-size: var(--t-base); } .after p { font-size: var(--t-sm); color: var(--muted); }
@media (max-width: 860px) { .after { grid-template-columns: 1fr; gap: var(--s4); } }

/* key numbers (design rules) */
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.numbers > div { padding: var(--s6) var(--s6) var(--s6) 0; border-bottom: 1px solid var(--line); display: grid; gap: var(--s2); align-content: start; }
.numbers > div:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.numbers > div:not(:nth-child(3n+1)) { padding-left: var(--s6); }
.numbers b { font: 600 var(--t-2xl)/1 var(--mono); letter-spacing: -0.03em; }
.numbers span { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 760px) { .numbers { grid-template-columns: 1fr 1fr; } .numbers > div { padding: var(--s4) !important; border-right: 0 !important; } }

/* rule articles */
.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s8) var(--s12); }
.rules article { border-top: 1px solid var(--ink); padding-top: var(--s4); }
.rules h3 { font-size: var(--t-base); }
.rules p { font-size: var(--t-sm); color: var(--muted); }
.rules .diagram svg { margin-top: var(--s3); }

/* findings, steps */
.findings { margin: 0; padding: 0 0 0 1.4em; display: grid; gap: var(--s4); max-width: 90ch; }
.findings li { padding-left: var(--s2); }
.findings li::marker { font: 600 var(--t-sm) var(--mono); color: var(--laser-ink); }
.timeline-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.timeline-steps li { padding: var(--s6) var(--s6) var(--s6) 0; border-bottom: 1px solid var(--line); }
.timeline-steps li:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.timeline-steps li:not(:nth-child(3n+1)) { padding-left: var(--s6); }
.timeline-steps h3 { font-size: var(--t-base); }
.timeline-steps p { font-size: var(--t-sm); color: var(--muted); }
@media (max-width: 860px) { .timeline-steps { grid-template-columns: 1fr; } .timeline-steps li { padding: var(--s4) 0 !important; border-right: 0 !important; } }

/* tables on article pages */
table.props th[scope=row], table.finishes th[scope=row] { background: none; font: 600 var(--t-sm) var(--font); text-transform: none; letter-spacing: 0; color: var(--ink); white-space: nowrap; }
table.props td:last-child, table.finishes td:last-child { color: var(--muted); }
table.compare tr.span td[colspan] { font-size: var(--t-sm); color: var(--ink); }
.narrow-table { max-width: 720px; }
.after-head { margin-top: var(--s16); }
.formula { background: var(--surface); border: 1px solid var(--line-strong); padding: var(--s3) var(--s4); font-size: var(--t-sm); overflow-x: auto; }
section.block, .ex-card, [id] { scroll-margin-top: 80px; }

/* phones: grid children may shrink below their content's natural width */
.hero-grid > *, .worked > *, .fit > *, .rates > *, .expect > *, .after > *, .rules > *, .numbers > *, .block-head > * { min-width: 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .fit, .rates, .after { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .worked { grid-template-columns: minmax(0, 1fr); } .worked-table td:not(.num) { font-size: var(--t-xs); } .hero-points b { font-size: var(--t-lg); } }

/* article pages */
.page-head { padding: var(--s12) 0 var(--s8); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 20ch; }
.page-head .lede { font-size: var(--t-lg); color: var(--muted); max-width: 62ch; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--s12); }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--s2); }
.kvtable td:first-child { width: 40%; color: var(--muted); }
