/* 3DPrintCAD guides: plain, fast, readable pages (no scripts) */
:root {
  --bg: #f7f8fa; --panel: #ffffff; --line: #e3e7ee; --text: #1d2433; --muted: #5d6779; --accent: #2f6fed; --accent-soft: #e8f0ff; --orange: #ff7a1a; --tip: #fff7ec; --tip-line: #ffd9b0;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14171d; --panel: #1d2129; --line: #2f3542; --text: #e4e8ef; --muted: #a3acbb; --accent: #5b90f8; --accent-soft: #22324f; --tip: #2a2216; --tip-line: #5a4320; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1060px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.top nav { display: flex; gap: 16px; flex: 1; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 8px rgba(47,111,237,.25); }
.btn:hover { filter: brightness(1.06); }
.btn.big { padding: 13px 22px; font-size: 16.5px; }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
main { max-width: 800px; margin: 0 auto; padding: 22px 20px 60px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 6px 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
h1 { font-size: clamp(30px, 4.6vw, 42px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; }
h2 { font-size: 27px; line-height: 1.25; margin: 52px 0 12px; letter-spacing: -.01em; scroll-margin-top: 70px; }
h2 .n { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 18px; vertical-align: 3px; }
h3 { font-size: 20px; margin: 28px 0 8px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 22px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 0 0 26px; }
.cta small { color: var(--muted); font-size: 14px; }
figure { margin: 22px 0; }
figure img { border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
figure.panel img { max-width: 360px; }
figure.hero img { border: 0; box-shadow: 0 14px 40px rgba(16,24,40,.12); }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 22px; margin: 26px 0; }
.toc b { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc ol { margin: 8px 0 0; padding-left: 22px; columns: 2; column-gap: 30px; }
.toc li { margin: 3px 0; break-inside: avoid; }
.tip { background: var(--tip); border: 1px solid var(--tip-line); border-radius: 12px; padding: 12px 16px; margin: 18px 0; font-size: 16px; }
.tip b:first-child { color: #c25a00; }
@media (prefers-color-scheme: dark) { .tip b:first-child { color: #ffb066; } }
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15.5px; background: var(--panel); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--accent-soft); font-size: 14px; }
tr:last-child td { border-bottom: 0; }
ul, ol { padding-left: 24px; }
li { margin: 4px 0; }
.kbd { font: 600 13px ui-monospace, Menlo, monospace; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--panel); }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 8px 0 2px; }
.end { margin: 50px 0 0; padding: 28px; border-radius: 16px; background: linear-gradient(135deg, #2f6fed, #5b4cf0); color: #fff; text-align: center; }
.end h2 { margin: 0 0 8px; color: #fff; }
.end p { margin: 0 0 18px; opacity: .9; }
.end .btn { background: #fff; color: #2f6fed; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 24px 0; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .12s, box-shadow .12s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16,24,40,.12); }
.card img { aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 1px solid var(--line); }
.card div { padding: 14px 16px 18px; }
.card b { font-size: 18px; }
.card p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 22px 20px; text-align: center; font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); }
@media (max-width: 640px) { .top nav { display: none; } .toc ol { columns: 1; } h2 { font-size: 23px; } body { font-size: 16px; } }
