/* PrintCents — public site styles. No framework: one file, small and fast.
   Font: Inter (SIL Open Font License), self-hosted in /fonts. */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #ffffff;
    --bg-soft: #f6f6f3;
    --bg-tint: #fff5ee;
    --ink: #121316;
    --ink-2: #3a3d44;
    --muted: #686d78;
    --line: #e8e8eb;
    --line-2: #d5d6db;
    --brand: #f26419;          /* filament orange: decoration, icons, big numbers */
    --brand-ink: #c2410c;      /* orange for text and links on white (AA) */
    --brand-soft: #ffe7d8;
    --good: #0e8a4e;
    --good-soft: #e2f5eb;
    --warn: #b45309;
    --warn-soft: #fef3c7;
    --bad: #c0362c;
    --bad-soft: #fde8e6;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(18, 19, 22, .06);
    --shadow: 0 1px 2px rgba(18, 19, 22, .05), 0 10px 28px -12px rgba(18, 19, 22, .16);
    --shadow-lg: 0 2px 6px rgba(18, 19, 22, .05), 0 28px 56px -20px rgba(18, 19, 22, .28);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --wrap: 76rem;
    --header-h: 4.25rem;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font: 17px/1.65 var(--font); font-feature-settings: "cv11", "ss03";
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .55em; font-weight: 750; letter-spacing: -.025em; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.25rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); }
h3 { font-size: 1.15rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-soft); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 760px) { .wrap { padding: 0 2rem; } }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: calc(50vw - 50%); padding-right: calc(50vw - 50%); }

.skip-link { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { left: .5rem; color: #fff; }

/* ---------- Buttons ---------- */

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 3rem; padding: .55rem 1.4rem; border-radius: 999px; border: 1px solid var(--ink);
    background: var(--ink); color: #fff; font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
    text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s, border-color .15s;
}
.button:hover { background: #2b2d33; border-color: #2b2d33; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.button--brand { background: var(--brand); border-color: var(--brand); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .12); }
.button--brand:hover { background: #dd5510; border-color: #dd5510; }
.button--ghost { background: var(--bg); color: var(--ink); border-color: var(--line-2); }
.button--ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--ink); }
.button--small { min-height: 2.4rem; padding: .4rem 1rem; font-size: .92rem; }
.button svg { width: 1.1em; height: 1.1em; }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem 1.5rem; min-height: var(--header-h); flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; }
.logo:hover { color: var(--ink); }
.logo b { color: var(--brand-ink); font-weight: 800; }
.logo__mark { flex: none; }
.logo__mark rect:nth-child(1) { fill: #f26419; }
.logo__mark rect:nth-child(2) { fill: #f79052; }
.logo__mark rect:nth-child(3) { fill: #fbb98c; }
.logo__mark path { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }

.site-nav { display: flex; gap: .15rem; margin-left: auto; }
.site-nav a { color: var(--ink-2); text-decoration: none; padding: .45rem .85rem; border-radius: 999px; font-weight: 550; font-size: .97rem; white-space: nowrap; }
.site-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); }
.site-header .button { margin-left: .25rem; }

@media (max-width: 859px) {
    .site-header__inner { padding-top: .6rem; padding-bottom: 0; min-height: 0; }
    .site-header .button { margin-left: auto; }
    .site-nav { order: 3; width: 100%; margin: 0 -1.25rem; padding: .35rem 1.25rem .5rem; overflow-x: auto; scrollbar-width: none; }
    .site-nav::-webkit-scrollbar { display: none; }
}

/* ---------- Layout blocks ---------- */

.site-main { padding-bottom: 5rem; min-height: 60vh; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--line-2); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

.page-head { padding: 1.75rem 0 2rem; max-width: 50rem; }
.page-head h1 { margin-bottom: .35em; }
.page-head--icon { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 1.25rem; align-items: start; max-width: 56rem; }
.page-head--icon .icon-tile { width: 3.75rem; height: 3.75rem; border-radius: 16px; margin-top: .35rem; }
.page-head--icon .icon-tile svg { width: 30px; height: 30px; }
@media (max-width: 599px) { .page-head--icon { grid-template-columns: minmax(0, 1fr); } .page-head--icon .icon-tile { margin-bottom: 1rem; } }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--muted); max-width: 46rem; }
.lead p { margin: 0 0 .6em; }
.lead p:last-child { margin-bottom: 0; }

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
.eyebrow::before { content: ""; width: .5rem; height: .5rem; border-radius: 2px; background: var(--brand); }

.section { margin-top: 4.5rem; }
.section > h2:first-child { margin-top: 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.5rem; }
.section__head h2 { margin: 0; }
.section__head p { margin: .5rem 0 0; color: var(--muted); max-width: 40rem; }
.section__head > a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.section__head > a:hover { text-decoration: underline; }

/* ---------- Home: hero ---------- */

.hero-band {
    position: relative; isolation: isolate; padding-top: 3.5rem; padding-bottom: 4rem; border-bottom: 1px solid var(--line);
    background:
        radial-gradient(42rem 26rem at 88% 8%, rgba(242, 100, 25, .16), transparent 70%),
        radial-gradient(30rem 20rem at 0% 100%, rgba(242, 100, 25, .07), transparent 70%),
        var(--bg);
}
.hero-band::before { /* build-plate grid */
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 40px 40px; background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 30%, transparent 75%);
    opacity: .7;
}
.hero { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1000px) { .hero { grid-template-columns: minmax(0, 1.25fr) minmax(22rem, 1fr); gap: 4rem; } .hero-band { padding-top: 5rem; padding-bottom: 5.5rem; } }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 4.6rem); line-height: 1; letter-spacing: -.045em; margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 36rem; margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1.75rem; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.checks li { display: inline-flex; align-items: center; gap: .4rem; }
.checks li::before {
    content: ""; width: 1.15rem; height: 1.15rem; border-radius: 50%; flex: none;
    background: var(--good-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e8a4e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Price breakdown card */
.breakdown { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 1.6rem 1.6rem 1.25rem; position: relative; }
.breakdown__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.breakdown__title { font-size: .92rem; font-weight: 650; color: var(--ink-2); }
.tag { display: inline-flex; align-items: center; padding: .2rem .6rem; border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-size: .75rem; font-weight: 650; letter-spacing: .02em; border: 1px solid var(--line); white-space: nowrap; }
.breakdown__price { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.breakdown__price strong { font-size: 3.4rem; line-height: 1; font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.breakdown__price span { color: var(--muted); font-size: .92rem; }
.stack { display: flex; height: .85rem; border-radius: 999px; overflow: hidden; gap: 2px; margin-bottom: 1.1rem; background: var(--bg-soft); }
.stack span { display: block; height: 100%; }
.breakdown__lines { margin: 0; display: grid; gap: .1rem; }
.breakdown__lines div { display: flex; align-items: center; gap: .65rem; padding: .38rem 0; font-size: .94rem; border-bottom: 1px dashed var(--line); }
.breakdown__lines div:last-child { border-bottom: 0; }
.breakdown__lines dt { color: var(--ink-2); flex: 1; display: flex; align-items: center; gap: .6rem; }
.breakdown__lines dt i { width: .7rem; height: .7rem; border-radius: 3px; flex: none; }
.breakdown__lines dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.breakdown__lines .is-profit dt, .breakdown__lines .is-profit dd { color: var(--good); font-weight: 700; }
.breakdown__note { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem -1.6rem -1.25rem; padding: .9rem 1.6rem; background: var(--bg-soft); border-top: 1px solid var(--line); border-radius: 0 0 22px 22px; font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.breakdown__note svg { flex: none; width: 1.1rem; height: 1.1rem; color: var(--bad); margin-top: .1rem; }
.breakdown__note a { font-weight: 600; white-space: nowrap; }

/* Stats strip */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats li { background: var(--bg); padding: 1.3rem 1.4rem; }
.stats strong { display: block; font-size: 2rem; line-height: 1.1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .92rem; }

/* ---------- Icon tiles (calculators) ---------- */

.icon-tile { display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 12px; flex: none; background: var(--brand-soft); color: var(--brand-ink); }
.icon-tile svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
[data-tone="orange"] .icon-tile, .icon-tile[data-tone="orange"] { background: #ffeadc; color: #c2410c; }
[data-tone="green"] .icon-tile, .icon-tile[data-tone="green"] { background: #ddf5e8; color: #0b7a44; }
[data-tone="rose"] .icon-tile, .icon-tile[data-tone="rose"] { background: #fde4ea; color: #be1d4b; }
[data-tone="amber"] .icon-tile, .icon-tile[data-tone="amber"] { background: #fdf0c9; color: #a15c07; }
[data-tone="blue"] .icon-tile, .icon-tile[data-tone="blue"] { background: #e0ecfd; color: #1d5fc2; }
[data-tone="teal"] .icon-tile, .icon-tile[data-tone="teal"] { background: #d9f3f1; color: #0d7a72; }
[data-tone="violet"] .icon-tile, .icon-tile[data-tone="violet"] { background: #ece6fd; color: #6234c9; }

/* ---------- Cards (calculators) ---------- */

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.card__link {
    display: flex; flex-direction: column; gap: .55rem; height: 100%; padding: 1.4rem 1.4rem 1.2rem;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card__link:hover { color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card__link .icon-tile { margin-bottom: .45rem; }
.card__title { font-weight: 700; font-size: 1.1rem; letter-spacing: -.015em; line-height: 1.3; }
.card__text { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.card__more { margin-top: auto; padding-top: .5rem; font-size: .9rem; font-weight: 650; color: var(--brand-ink); }
.card__more::after { content: " →"; transition: margin .15s; }
.card__link:hover .card__more::after { margin-left: .2rem; }

/* ---------- Promo band (printers) ---------- */

.promo {
    display: grid; gap: 2rem; align-items: center; padding: 2.25rem; border-radius: 24px; color: #d9dbe0;
    background: radial-gradient(30rem 18rem at 100% 0%, rgba(242, 100, 25, .28), transparent 70%), var(--ink);
    position: relative; overflow: hidden;
}
@media (min-width: 900px) { .promo { grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem); padding: 3rem; gap: 3rem; } }
.promo h2 { color: #fff; margin-bottom: .5rem; }
.promo p { margin: 0 0 1.5rem; max-width: 34rem; }
.promo .eyebrow { color: #fdba8c; }
.promo .button { background: #fff; color: var(--ink); border-color: #fff; }
.promo .button:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.mini-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; overflow: hidden; }
.mini-table caption { text-align: left; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9ea2ab; padding-bottom: .6rem; }
.mini-table th, .mini-table td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mini-table tr:last-child th, .mini-table tr:last-child td { border-bottom: 0; }
.mini-table th { font-weight: 550; color: #fff; }
.mini-table td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; color: #fdba8c; }

/* ---------- Guide cards ---------- */

.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.post__link {
    display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); text-decoration: none;
    border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.post__link:hover { color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.post__cover {
    position: relative; display: grid; place-items: center; aspect-ratio: 2 / 1; overflow: hidden;
    background: var(--tone-soft, var(--brand-soft)); color: var(--tone, var(--brand-ink)); border-bottom: 1px solid var(--line);
}
.post__cover::before { /* build-plate grid */
    content: ""; position: absolute; inset: 0; opacity: .14;
    background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px);
    background-size: 22px 22px; background-position: center;
}
.post__cover::after { /* layer lines */
    content: ""; position: absolute; left: 50%; bottom: -1px; width: 62%; height: 28%; transform: translateX(-50%); opacity: .22;
    background: repeating-linear-gradient(currentColor 0 4px, transparent 4px 9px); border-radius: 8px 8px 0 0;
}
.post__cover-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 18px; background: var(--bg); box-shadow: var(--shadow); transition: transform .2s; }
.post__cover-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.post__link:hover .post__cover-icon { transform: translateY(-3px) rotate(-3deg); }
[data-tone="orange"] { --tone: #c2410c; --tone-soft: #ffeadc; }
[data-tone="green"] { --tone: #0b7a44; --tone-soft: #ddf5e8; }
[data-tone="rose"] { --tone: #be1d4b; --tone-soft: #fde4ea; }
[data-tone="amber"] { --tone: #a15c07; --tone-soft: #fdf0c9; }
[data-tone="blue"] { --tone: #1d5fc2; --tone-soft: #e0ecfd; }
[data-tone="teal"] { --tone: #0d7a72; --tone-soft: #d9f3f1; }
[data-tone="violet"] { --tone: #6234c9; --tone-soft: #ece6fd; }
.post__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.15rem 1.25rem 1.2rem; flex: 1; }
.post__title { font-weight: 700; font-size: 1.1rem; line-height: 1.3; letter-spacing: -.015em; }
.post__text { color: var(--muted); font-size: .94rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post__meta { margin-top: auto; padding-top: .35rem; font-size: .84rem; color: var(--muted); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { display: inline-flex; align-items: center; padding: .5rem 1rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; }
.chips a:hover { border-color: var(--ink); }

/* Pager (yii\widgets\LinkPager) */
.pager { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.pager__item a, .pager__item span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .9rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 600; }
.pager__item a:hover { border-color: var(--ink); }
.pager__item--active a { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager__item--disabled span { color: var(--line-2); }

/* ---------- Article text ---------- */

.prose { max-width: 46rem; font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.2em 0 .6em; font-size: clamp(1.45rem, 1.25rem + .8vw, 1.85rem); }
.prose h3 { margin: 1.8em 0 .5em; }
.prose h2, .prose h3 { scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { font-weight: 500; }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 1.5em 0; padding: .9rem 1.2rem; border-left: 3px solid var(--brand); background: var(--bg-tint); border-radius: 0 12px 12px 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; background: var(--bg-soft); border: 1px solid var(--line); padding: .1em .35em; border-radius: 6px; }
.prose pre { overflow-x: auto; background: var(--ink); color: #f1f1ec; padding: 1rem 1.2rem; border-radius: 12px; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose .calc { max-width: none; margin: 2rem 0; font-size: 1rem; line-height: 1.6; }
.prose .summary {
    position: relative; padding: 1.15rem 1.35rem; margin-bottom: 1.6em; color: var(--ink);
    background: var(--bg-tint); border: 1px solid #fbd9c3; border-radius: 14px; font-size: 1.08rem; line-height: 1.65;
}
.prose .summary strong:first-child { display: block; color: var(--brand-ink); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .25rem; }

/* Tables (Markdown and data) */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.prose .table-wrap { margin: 0 0 1.5em; }
.prose table, .data-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.prose th, .prose td, .data-table th, .data-table td { padding: .7rem .95rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose td, .prose th { min-width: 6.5rem; }
.prose thead th, .data-table thead th { background: var(--bg-soft); color: var(--ink); font-weight: 650; font-size: .88rem; }
.prose tbody tr:last-child td, .prose tbody tr:last-child th, .data-table tbody tr:last-child td, .data-table tbody tr:last-child th { border-bottom: 0; }
.prose td { font-variant-numeric: tabular-nums; }
.prose tr td:first-child { color: var(--ink); }

/* ---------- Article page ---------- */

.article__head { padding-bottom: 2.25rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); max-width: 52rem; }
.article__head h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); }
.article__head .lead { margin: 0 0 1.4rem; }
.byline { display: flex; align-items: center; gap: .75rem; font-size: .92rem; color: var(--muted); }
.byline__avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.byline__avatar svg { width: 1.4rem; height: 1.4rem; }
.byline strong { color: var(--ink); font-weight: 650; }
.byline a { color: inherit; text-decoration: none; }
.byline a:hover { text-decoration: underline; }
.byline__meta { display: flex; flex-wrap: wrap; gap: 0 .6rem; }
.byline__meta span + span::before { content: "·"; margin-right: .6rem; }

.article__layout { display: grid; gap: 2rem; }
@media (min-width: 1100px) {
    .article__layout--toc { grid-template-columns: minmax(0, 46rem) 15.5rem; gap: 4.5rem; }
    .article__layout--toc .toc { grid-column: 2; grid-row: 1; }
    .article__layout--toc .article__body { grid-column: 1; grid-row: 1; }
    .toc__box { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.article__body { min-width: 0; }
.toc__box { border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.15rem; font-size: .92rem; background: var(--bg); }
.toc__box summary { cursor: pointer; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); list-style: none; display: flex; justify-content: space-between; }
.toc__box summary::-webkit-details-marker { display: none; }
.toc__box summary::after { content: "+"; font-size: 1.1rem; line-height: 1; color: var(--muted); }
.toc__box[open] summary::after { content: "–"; }
.toc__box ol { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .15rem; counter-reset: toc; }
.toc__box li { counter-increment: toc; }
.toc__box a { display: flex; gap: .55rem; padding: .3rem .4rem; margin: 0 -.4rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.toc__box a::before { content: counter(toc, decimal-leading-zero); color: var(--line-2); font-weight: 650; font-variant-numeric: tabular-nums; }
.toc__box a:hover { background: var(--bg-soft); color: var(--ink); }

.note-box { margin-top: 3rem; padding: 1.35rem 1.5rem; background: var(--bg-soft); border-radius: var(--radius); max-width: 46rem; font-size: .96rem; color: var(--ink-2); }
.note-box__title { font-size: 1.02rem; margin: 0 0 .4rem; }
.note-box p { margin: 0 0 .5rem; }
.note-box p:last-child { margin-bottom: 0; }

/* ---------- Calculator page ---------- */

.calc-page__layout { display: grid; gap: 3rem; margin-top: 3.5rem; }
@media (min-width: 1100px) { .calc-page__layout { grid-template-columns: minmax(0, 46rem) minmax(0, 1fr); gap: 4.5rem; } }
.calc-guide { margin-top: 0; }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.aside-box + .aside-box { margin-top: 1rem; }
.aside-box h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }
.aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.aside-list a { display: flex; align-items: center; gap: .75rem; padding: .5rem; margin: 0 -.5rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; line-height: 1.35; }
.aside-list a:hover { background: var(--bg-soft); }
.aside-list .icon-tile { width: 2.2rem; height: 2.2rem; border-radius: 9px; }
.aside-list .icon-tile svg { width: 18px; height: 18px; }
@media (min-width: 1100px) { .calc-page__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; } }

/* ---------- Calculator ---------- */

.calc {
    display: grid; align-items: start; background: var(--bg); border: 1px solid var(--line);
    border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; overflow: clip; /* clip: keeps the results panel sticky to the window */
}
@media (min-width: 960px) {
    .calc { grid-template-columns: minmax(0, 1fr) 22.5rem; background: linear-gradient(90deg, var(--bg) calc(100% - 22.5rem), var(--ink) 0); }
    .calc__results { position: sticky; top: var(--header-h); }
}
.calc__inputs { padding: 1.5rem; }
@media (min-width: 600px) { .calc__inputs { padding: 2rem; } }
.calc fieldset { border: 0; margin: 0 0 1.75rem; padding: 0; min-width: 0; display: grid; gap: 1rem 1.1rem; }
@media (min-width: 600px) { .calc fieldset { grid-template-columns: 1fr 1fr; } }
.calc fieldset:last-child { margin-bottom: 0; }
.calc legend { grid-column: 1 / -1; display: flex; align-items: center; gap: .6rem; width: 100%; padding: 0 0 .7rem; margin-bottom: .2rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--line); }
.calc legend::before { content: ""; width: .45rem; height: .45rem; border-radius: 2px; background: var(--brand); }

.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field__control { display: flex; align-items: stretch; min-height: 2.9rem; background: var(--bg); border: 1px solid var(--line-2); border-radius: 11px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.field__control:hover { border-color: #b9bbc2; }
.field__control:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field__control input, .field__control select, .field__control textarea {
    flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--ink);
    font: inherit; font-size: 1rem; padding: .55rem .8rem; font-variant-numeric: tabular-nums;
}
.field__control input:focus, .field__control select:focus, .field__control textarea:focus { outline: none; }
.field__control select { cursor: pointer; -webkit-appearance: none; appearance: none; padding-right: 2.2rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23686d78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .7rem center / 1rem no-repeat; }
.field__affix { display: flex; align-items: center; padding: 0 .75rem; color: var(--muted); font-size: .88rem; background: var(--bg-soft); white-space: nowrap; }
.field__affix:first-child { border-right: 1px solid var(--line); }
.field__affix:last-child { border-left: 1px solid var(--line); }
.field__hint { color: var(--muted); font-size: .83rem; line-height: 1.4; }

.calc__more { grid-column: 1 / -1; border-top: 1px dashed var(--line-2); padding-top: 1rem; }
.calc__more summary { cursor: pointer; font-weight: 650; font-size: .93rem; margin-bottom: 1rem; color: var(--brand-ink); }
.calc__more[open] { display: grid; gap: 1rem 1.1rem; }
@media (min-width: 600px) { .calc__more[open] { grid-template-columns: 1fr 1fr; } .calc__more summary { grid-column: 1 / -1; } }

.calc__results { background: var(--ink); color: #eceef1; padding: 1.75rem 1.6rem 1.5rem; }
.calc__results-title { margin: 0 0 1rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #9ea2ab; }
.calc__results dl { margin: 0; }
.result { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.result:last-child { border-bottom: 0; }
.result dt { color: #b6bac3; font-size: .92rem; }
.result dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 650; font-size: 1rem; text-align: right; white-space: nowrap; color: #fff; }
.result--main { flex-direction: column; align-items: flex-start; gap: .15rem; padding: 0 0 1.1rem; margin-bottom: .4rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.result--main dt { color: #fdba8c; font-weight: 650; font-size: .9rem; }
.result--main dd { font-size: clamp(2.6rem, 2rem + 2vw, 3.3rem); font-weight: 800; color: #fff; text-align: left; letter-spacing: -.045em; line-height: 1.05; }
.result:has(> dd[data-format="text"]) { flex-direction: column; align-items: flex-start; gap: .2rem; }
.result dd[data-format="text"] { white-space: normal; text-align: left; font-size: .95rem; font-weight: 500; line-height: 1.5; color: #eceef1; }
.result--main dd[data-format="text"] { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; line-height: 1.15; color: #fff; }

.calc__error { margin: 0 0 1rem; padding: .7rem .85rem; background: var(--bad-soft); color: var(--bad); border-radius: 10px; font-size: .92rem; }
.calc__error[hidden] { display: none; }
.calc__note, .calc__next { margin: 1rem 0 0; font-size: .86rem; color: #9ea2ab; line-height: 1.5; }
.calc__next { padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.calc__results a { color: #fdba8c; font-weight: 600; }
.calc__results a:hover { color: #fff; }
.calc__noscript { grid-column: 1 / -1; margin: 0; padding: .9rem 1.2rem; background: var(--warn-soft); color: var(--warn); }

/* ---------- Printers table ---------- */

.table-wrap--wide { max-width: none; }
.data-table { font-size: .95rem; }
.data-table thead th { white-space: nowrap; }
.data-table tbody tr:hover { background: #fbfbfa; }
.data-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table tbody th { font-weight: 650; white-space: nowrap; }
.data-table .num { text-align: right; }
.printer-name small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.data-table td a { color: var(--muted); }
.data-table td a:hover { color: var(--ink); }
.pill { display: inline-block; min-width: 4.2rem; padding: .2rem .6rem; border-radius: 999px; font-weight: 700; text-align: center; font-size: .9rem; }
.pill--low { background: var(--good-soft); color: var(--good); }
.pill--mid { background: var(--warn-soft); color: var(--warn); }
.pill--high { background: var(--bad-soft); color: var(--bad); }
.data-table th[data-sort] { padding: 0; }
.sort-button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: .3rem; width: 100%; padding: .7rem .95rem; cursor: pointer; font-weight: 650; font-size: .88rem; }
.data-table th.num .sort-button { justify-content: flex-end; }
.sort-button::after { content: "↕"; color: var(--line-2); font-size: .85em; }
th[aria-sort="ascending"] .sort-button::after { content: "↑"; color: var(--brand-ink); }
th[aria-sort="descending"] .sort-button::after { content: "↓"; color: var(--brand-ink); }
.sort-button:hover { color: var(--brand-ink); }
.sort-button:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #a9adb6; font-size: .94rem; }
.site-footer__inner { padding-top: 3.5rem; padding-bottom: 2rem; display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: minmax(0, 1.5fr) 1fr 1fr; } }
.site-footer .logo, .site-footer .logo:hover { color: #fff; }
.site-footer .logo__mark path { stroke: #fff; }
.site-footer .logo b { color: #fdba8c; }
.site-footer__brand p { margin: 1rem 0 0; max-width: 28rem; line-height: 1.6; }
.site-footer__title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 1rem; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: #d9dbe0; text-decoration: none; }
.site-footer a:hover { color: #fdba8c; text-decoration: underline; }
.site-footer__copy { margin: 0; grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }

/* ---------- Misc pages ---------- */

.error-page { padding: 4rem 0 2rem; max-width: 40rem; }
.error-page__code { font-size: 6rem; font-weight: 800; letter-spacing: -.06em; line-height: 1; color: var(--brand); margin: 0 0 .5rem; }
.error-page .button { margin: 0 .5rem .5rem 0; }

/* ---------- Small screens and print ---------- */

@media (max-width: 599px) {
    body { font-size: 16px; }
    .section { margin-top: 3.5rem; }
    .hero-band { padding-top: 2.25rem; padding-bottom: 3rem; }
    .breakdown { padding: 1.25rem 1.2rem 1rem; }
    .breakdown__note { margin: 1rem -1.2rem -1rem; padding: .85rem 1.2rem; }
    .breakdown__price strong { font-size: 2.8rem; }
    .promo { padding: 1.75rem 1.4rem; }
    .calc__results { padding: 1.5rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
    .site-header, .site-footer, .breadcrumbs, .calc__next, .toc, .note-box, .calc-page__aside { display: none; }
    .calc { box-shadow: none; background: #fff; }
    .calc__results { background: #fff; color: #000; border-left: 1px solid #000; }
    .result dt, .result dd, .result--main dt, .result--main dd, .calc__results-title { color: #000; }
}

/* ---------- Share buttons ---------- */

.share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.share__label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.share__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.share__list li[hidden] { display: none; }
.share__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-width: 2.5rem; height: 2.5rem; padding: 0 .7rem;
    border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); color: var(--ink-2);
    font: inherit; font-size: .88rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.share__btn svg { width: 18px; height: 18px; flex: none; }
.share__btn:hover { color: #fff; border-color: transparent; }
.share__btn[data-network="facebook"]:hover { background: #1877f2; }
.share__btn[data-network="x"]:hover { background: #000; }
.share__btn[data-network="pinterest"]:hover { background: #e60023; }
.share__btn[data-network="reddit"]:hover { background: #ff4500; }
.share__btn[data-network="whatsapp"]:hover { background: #128c3e; }
.share__btn[data-network="linkedin"]:hover { background: #0a66c2; }
.share__btn[data-network="email"]:hover, .share__btn--copy:hover, .share__btn--native:hover { background: var(--ink); }
.share__btn--native { background: var(--ink); color: #fff; border-color: var(--ink); }
.share__btn.is-done { background: var(--good); border-color: var(--good); color: #fff; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.page-head .share { margin-top: 1.25rem; }
.share-end { margin-top: 3rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); max-width: 46rem; display: grid; gap: .9rem; }
.share-end__title { margin: 0; font-weight: 700; font-size: 1.1rem; letter-spacing: -.015em; }
.share-end .share__label { display: none; }

/* ---------- Notices, badges, avatars ---------- */

.notice { margin: 1.25rem 0 0; padding: .85rem 1.1rem; border-radius: 12px; font-size: .95rem; border: 1px solid; }
.notice--success { background: var(--good-soft); border-color: #b9e6cd; color: #0a5c35; }
.notice--error { background: var(--bad-soft); border-color: #f5c4bf; color: #9a2a21; }
.notice--info { background: #eef4fe; border-color: #c9dbfb; color: #1d4f9c; }
.badge { display: inline-flex; align-items: center; padding: .1rem .5rem; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); font-size: .74rem; font-weight: 650; vertical-align: middle; }
.badge--good { background: var(--good-soft); border-color: #b9e6cd; color: var(--good); }
.badge--warn { background: var(--warn-soft); border-color: #f5dd9b; color: var(--warn); }
.avatar { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; flex: none; background: linear-gradient(135deg, #f79052, #f26419); color: #fff; font-weight: 750; font-size: .95rem; }
.avatar::before { content: attr(data-letter); }
.avatar--sm { width: 1.8rem; height: 1.8rem; font-size: .8rem; }
.small { font-size: .88rem; }

.account-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .3rem .6rem; border-radius: 999px; }
.account-link:hover { background: var(--bg-soft); color: var(--ink); }
@media (max-width: 859px) { .account-link { margin-left: auto; } .site-header .account-link + .button { margin-left: 0; } .account-link__name { display: none; } }

/* ---------- Forms ---------- */

.form { display: grid; gap: 1.1rem; }
.form--narrow { max-width: 26rem; }
.form--wide { max-width: 48rem; }
.form__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.button--block { width: 100%; }
.button--danger { background: var(--bad); border-color: var(--bad); }
.button--danger:hover { background: #9a2a21; border-color: #9a2a21; }
.field__control textarea { min-height: 9rem; resize: vertical; line-height: 1.55; font-variant-numeric: normal; }
.field__error { margin: 0; color: var(--bad); font-size: .86rem; font-weight: 550; }
.field.has-error .field__control { border-color: var(--bad); }
.checkline { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500 !important; font-size: .93rem !important; line-height: 1.45; cursor: pointer; }
.checkline input { width: 1.1rem; height: 1.1rem; margin: .15rem 0 0; accent-color: var(--brand); flex: none; }
.cf-turnstile { min-height: 65px; }

.auth { display: grid; place-items: center; padding: 2.5rem 0 1rem; }
.auth__card { width: 100%; max-width: 27rem; padding: 2rem; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); background: var(--bg); }
.auth__card h1 { font-size: 1.9rem; margin-bottom: .4rem; }
.auth__lead { color: var(--muted); margin-bottom: 1.5rem; }
.auth__alt { margin: 1.25rem 0 0; font-size: .92rem; color: var(--muted); text-align: center; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem; background: var(--bg); }
.panel h2 { font-size: 1.15rem; margin-bottom: .75rem; }
.panel--danger { border-color: #f5c4bf; }
.account { max-width: 46rem; }

/* ---------- Forum ---------- */

.page-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; max-width: none; }
.page-head--split > div:first-child { max-width: 46rem; }
.forum-actions { display: flex; gap: .5rem; padding-bottom: .4rem; }
.forum-layout { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .forum-layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: 2.5rem; } }

.categories, .topics { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.categories li + li, .topics li + li { border-top: 1px solid var(--line); }
.category-row { display: grid; gap: .25rem; padding: 1.15rem 1.35rem; color: var(--ink); text-decoration: none; }
.category-row:hover { background: #fbfbfa; color: var(--ink); }
.category-row__name { font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.category-row__desc { color: var(--muted); font-size: .94rem; }
.category-row__stats { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .84rem; color: var(--muted); margin-top: .2rem; }
.category-row__stats strong { color: var(--ink); }

.topic-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem 1rem; align-items: center; padding: 1rem 1.25rem; }
@media (min-width: 700px) { .topic-row { grid-template-columns: auto minmax(0, 1fr) 9rem; } }
.topic-row.is-pinned { background: var(--bg-tint); }
.topic-row__main { min-width: 0; display: grid; gap: .15rem; }
.topic-row__title { font-weight: 650; color: var(--ink); text-decoration: none; line-height: 1.35; }
.topic-row__title:hover { color: var(--brand-ink); }
.topic-row__title .badge { margin-right: .3rem; }
.topic-row__meta { font-size: .85rem; color: var(--muted); }
.topic-row__cat { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.topic-row__stats { grid-column: 2; font-size: .84rem; color: var(--muted); }
@media (min-width: 700px) { .topic-row__stats { grid-column: 3; text-align: right; } }
.topic-row__stats strong { color: var(--ink); font-size: 1rem; }
.topic-row__stats span { display: block; }

.aside-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.aside-topics a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; line-height: 1.35; display: block; }
.aside-topics a:hover { color: var(--brand-ink); }
.aside-topics span { font-size: .8rem; color: var(--muted); }
.empty { text-align: center; padding: 3rem 1.5rem; border: 1px dashed var(--line-2); border-radius: var(--radius); }

.topic-head h1 { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem); }
.topic-head .eyebrow a { color: inherit; text-decoration: none; }
.thread { display: grid; gap: 1rem; max-width: 52rem; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem 1rem; background: var(--bg); scroll-margin-top: calc(var(--header-h) + 1rem); }
.post-card--first { border-color: var(--line-2); box-shadow: var(--shadow); }
.post-card.is-pending { border-style: dashed; }
.post-card:target { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.post-card__head { display: flex; align-items: center; gap: .75rem; margin-bottom: .85rem; }
.post-card__author { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.post-card__date { margin-left: auto; font-size: .85rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.post-card__date:hover { color: var(--ink); text-decoration: underline; }
.post-card__foot { display: flex; align-items: center; gap: 1rem; margin-top: .75rem; min-height: 1.5rem; }
.post-card__action { font-size: .85rem; color: var(--muted); cursor: pointer; text-decoration: none; }
.post-card__action:hover { color: var(--ink); text-decoration: underline; }
.report { position: relative; }
.report summary { list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report__form { position: absolute; z-index: 5; top: 1.6rem; left: 0; display: grid; gap: .6rem; width: 15rem; padding: .9rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.report__form select { font: inherit; font-size: .92rem; padding: .45rem; border: 1px solid var(--line-2); border-radius: 8px; }

.ugc { color: var(--ink-2); line-height: 1.7; overflow-wrap: anywhere; }
.ugc > :last-child { margin-bottom: 0; }
.ugc p, .ugc ul, .ugc ol, .ugc pre, .ugc blockquote { margin: 0 0 .9em; }
.ugc blockquote { padding: .5rem 1rem; border-left: 3px solid var(--line-2); color: var(--muted); }
.ugc pre { overflow-x: auto; background: var(--bg-soft); border: 1px solid var(--line); padding: .8rem 1rem; border-radius: 10px; font-size: .9rem; }
.ugc code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: var(--bg-soft); padding: .1em .3em; border-radius: 5px; }
.ugc pre code { background: none; padding: 0; }
.ugc table { border-collapse: collapse; font-size: .93rem; }
.ugc th, .ugc td { border: 1px solid var(--line); padding: .4rem .6rem; }

.reply { margin-top: 2.5rem; max-width: 52rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.reply h2 { font-size: 1.2rem; }

/* ---------- History ---------- */

.history-head { max-width: 52rem; }
.era-nav { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); margin: 0 0 3rem; }
.era-nav a { display: grid; grid-template-columns: auto 1fr; gap: 0 .6rem; align-items: center; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: .92rem; line-height: 1.25; }
.era-nav a:hover { border-color: var(--tone); background: var(--tone-soft); }
.era-nav span { grid-row: span 2; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; background: var(--tone-soft); color: var(--tone); font-weight: 800; }
.era-nav small { color: var(--muted); font-weight: 500; font-size: .8rem; }

.price-drop { padding: 1.75rem; border: 1px solid var(--line); border-radius: 20px; margin-bottom: 4rem; background: var(--bg-soft); }
.price-drop h2 { font-size: 1.3rem; margin-bottom: 1.2rem; }
.price-bars { display: grid; gap: .9rem; margin-bottom: .75rem; }
.price-bar { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: .3rem 1rem; align-items: center; }
.price-bar__year { font-weight: 750; font-variant-numeric: tabular-nums; }
.price-bar__track { height: 1.1rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.price-bar__fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f79052, var(--brand)); }
.price-bar__label { grid-column: 2; font-size: .9rem; color: var(--muted); }
.price-bar__label strong { color: var(--ink); }

.era { margin-top: 1rem; padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.era__head { display: grid; gap: 1.5rem; align-items: center; margin-bottom: 2rem; }
@media (min-width: 900px) { .era__head { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; } }
.era__stage { display: inline-block; margin: 0 0 .75rem; padding: .25rem .7rem; border-radius: 999px; background: var(--tone-soft); color: var(--tone); font-size: .8rem; font-weight: 750; letter-spacing: .03em; }
.era__head h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); letter-spacing: -.035em; margin-bottom: .5rem; }
.era__intro { font-size: 1.12rem; color: var(--ink-2); max-width: 44rem; margin: 0; }
.era__art { border-radius: 20px; background: var(--tone-soft); padding: 1rem; }
.era__art svg { display: block; width: 100%; height: auto; }

.era__body { display: grid; gap: 2rem; }
@media (min-width: 900px) { .era__body { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; align-items: start; } }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.4rem; border-left: 2px solid var(--tone-soft); display: grid; gap: 1.1rem; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.4rem - 7px); top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 3px solid var(--tone); }
.timeline__year { display: block; font-weight: 800; color: var(--tone); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.timeline p { margin: .15rem 0 0; color: var(--ink-2); line-height: 1.6; }
.timeline__src { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.era__sellers { padding: 1.25rem 1.35rem; border-radius: 16px; background: var(--tone-soft); color: var(--ink); }
@media (min-width: 900px) { .era__sellers { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.era__sellers h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tone); margin: 0 0 .5rem; }
.era__sellers p { margin: 0; line-height: 1.6; }

.printer-cards { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.printer-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.printer-card figure { margin: 0; position: relative; }
.printer-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.printer-card figcaption { position: absolute; left: .5rem; right: .5rem; bottom: .5rem; padding: .25rem .5rem; border-radius: 6px; background: rgba(18, 19, 22, .62); color: #e8e9ec; font-size: .7rem; line-height: 1.35; }
.printer-card figcaption a { color: #fff; }
.printer-card__body { padding: 1rem 1.15rem 1.15rem; }
.printer-card__year { display: inline-block; font-size: .78rem; font-weight: 750; color: var(--tone); background: var(--tone-soft); padding: .1rem .5rem; border-radius: 999px; }
.printer-card h3 { margin: .45rem 0 .3rem; font-size: 1.12rem; }
.printer-card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }

.promo-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.promo-links a { display: block; padding: .8rem 1rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; color: #fff; text-decoration: none; font-weight: 600; }
.promo-links a:hover { background: rgba(255, 255, 255, .06); color: #fdba8c; }
.history-credits { margin-top: 2rem; max-width: 52rem; }
.history-teaser__link { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); text-decoration: none; background: var(--bg); transition: box-shadow .15s, border-color .15s; }
@media (min-width: 760px) { .history-teaser__link { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); align-items: center; } }
.history-teaser__link:hover { color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow); }
.history-teaser__link img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.history-teaser__link > span { display: grid; gap: .5rem; padding: 1.75rem 2rem; }
.history-teaser__link .eyebrow { margin: 0; }
.history-teaser__link strong { font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); letter-spacing: -.03em; line-height: 1.15; }

/* ---------- Printer pages ---------- */

.mini-table th a { color: inherit; text-decoration: none; }
.mini-table th a:hover { text-decoration: underline; }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-page__layout > * { min-width: 0; }

/* ---------- G-code & 3MF cost calculator ---------- */
.sfc { display: grid; gap: 1.5rem; }
.sfc__file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.sfc__drop {
    position: relative; display: grid; justify-items: center; text-align: center; gap: .35rem;
    padding: 2.5rem 1.25rem 1.75rem; border: 2px dashed var(--line-2); border-radius: 22px; background: var(--bg-tint);
    transition: border-color .15s, background .15s;
}
.sfc__drop.is-over { border-color: var(--brand); background: var(--brand-soft); }
.sfc__drop:focus-within { border-color: var(--brand); }
.sfc__drop-icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 16px; background: #fff; color: var(--brand-ink); box-shadow: var(--shadow-sm); margin-bottom: .4rem; }
.sfc__drop-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sfc__drop-title { margin: 0; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); font-weight: 750; letter-spacing: -.02em; }
.sfc__formats { margin: 0 auto; max-width: 36rem; color: var(--ink-2); font-size: .95rem; }
.sfc__formats strong { font-weight: 650; color: var(--ink); white-space: nowrap; }
.sfc__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: .9rem 0 .4rem; }
.sfc__actions label.button { cursor: pointer; }
.sfc__file:focus-visible + .sfc__drop-icon ~ .sfc__actions label { outline: 3px solid var(--brand); outline-offset: 2px; }
.sfc__privacy { display: inline-flex; align-items: center; gap: .45rem; margin: .4rem 0 0; color: var(--muted); font-size: .86rem; }
.sfc__privacy svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--good); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sfc--loaded .sfc__drop { padding: 1.25rem; grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; align-items: center; gap: .2rem 1rem; }
.sfc--loaded .sfc__drop-icon { grid-row: span 2; width: 2.75rem; height: 2.75rem; margin: 0; }
.sfc--loaded .sfc__drop-title { font-size: 1.05rem; }
.sfc--loaded .sfc__formats { grid-column: 2; margin: 0; font-size: .88rem; }
.sfc--loaded .sfc__actions { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
.sfc--loaded .sfc__privacy { display: none; }
@media (max-width: 640px) {
    .sfc--loaded .sfc__drop { grid-template-columns: auto 1fr; }
    .sfc--loaded .sfc__actions { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; margin-top: .6rem; }
}
.sfc--busy .sfc__drop { opacity: .6; pointer-events: none; }
.sfc__messages { display: grid; gap: .5rem; }
.sfc__messages:empty { display: none; }
.sfc__messages .calc__error { margin: 0; }

.sfc__jobs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.sfc__jobs-title { margin: 0; font-size: 1.15rem; }
.sfc__clear { all: unset; cursor: pointer; color: var(--brand-ink); font-weight: 600; font-size: .9rem; }
.sfc__clear:hover { color: var(--ink); }
.sfc__clear:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sfc__total { margin: -.25rem 0 .9rem; color: var(--ink-2); font-size: .95rem; }
.sfc__list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }

.sfc-job { position: relative; display: grid; gap: .8rem; padding: 1rem 1rem 1.1rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.sfc-job.is-selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.sfc-job__pick { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: .85rem; padding-right: 2rem; cursor: pointer; min-width: 0; }
.sfc-job__pick:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 10px; }
.sfc-job__thumb { flex: none; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 12px; background: var(--bg-soft); overflow: hidden; color: var(--muted); }
.sfc-job__thumb img { width: 100%; height: 100%; object-fit: contain; }
.sfc-job__thumb svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.sfc-job__head { display: grid; gap: .15rem; min-width: 0; }
.sfc-job__name { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.sfc-job__meta { color: var(--muted); font-size: .85rem; line-height: 1.35; overflow-wrap: anywhere; }
.sfc-job__remove { all: unset; position: absolute; top: .6rem; right: .6rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; cursor: pointer; color: var(--muted); }
.sfc-job__remove:hover { background: var(--bg-soft); color: var(--ink); }
.sfc-job__remove:focus-visible { outline: 3px solid var(--brand); }
.sfc-job__remove svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sfc-job__filaments { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.sfc-job__filaments li { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .6rem; border-radius: 999px; background: var(--bg-soft); font-size: .86rem; font-weight: 550; font-variant-numeric: tabular-nums; }
.sfc-job__time { background: var(--ink) !important; color: #fff; }
.sfc-job__swatch { width: .8rem; height: .8rem; border-radius: 50%; background: var(--line-2); box-shadow: inset 0 0 0 1px rgba(18, 19, 22, .2); }
.sfc-job__note { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.4; }
.sfc-job__row { display: grid; grid-template-columns: 7.5rem 1fr; gap: .9rem; align-items: end; }
.sfc-job__items label { font-size: .82rem; }
.sfc-job__items .field__control { min-height: 2.5rem; }
.sfc-job__nums { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.sfc-job__nums dt { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.sfc-job__nums dd { margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sfc-job__nums div:nth-child(2) dd { color: var(--brand-ink); }
.sfc__calc .calc__results-title { overflow-wrap: anywhere; }
