/* ==========================================================================
   Freelance Toolbelt design system
   Tokens first, then base, layout, components, utilities, print.
   Tool pages should only ever use the tokens (var(--...)) for color.
   ========================================================================== */

:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #f0efea;
  --surface-3: #e7e6e0;
  --border: #e0dfd8;
  --border-strong: #c9c7be;
  --text: #191917;
  --text-2: #54534d;
  --text-3: #85847c;
  --accent: #17654f;
  --accent-hover: #11513f;
  --accent-soft: #e2f0ea;
  --accent-text: #0f5a45;
  --on-accent: #ffffff;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;
  --warn: #8a5a00;
  --warn-soft: #fdf3dc;
  --success: #1c7440;
  --success-soft: #e3f4e8;
  --info: #1d5fa8;
  --info-soft: #e6eff9;
  --focus: #2f7df6;
  --shadow-sm: 0 1px 2px rgba(20, 20, 15, .05);
  --shadow: 0 1px 2px rgba(20, 20, 15, .04), 0 6px 20px rgba(20, 20, 15, .05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 5px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
  --maxw: 1100px;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121311;
    --surface: #1a1b19;
    --surface-2: #222420;
    --surface-3: #2b2d29;
    --border: #2f312d;
    --border-strong: #454741;
    --text: #ecebe6;
    --text-2: #b4b3ab;
    --text-3: #85847c;
    --accent: #3fb48f;
    --accent-hover: #5cc6a3;
    --accent-soft: #173229;
    --accent-text: #6fd0ae;
    --on-accent: #08130f;
    --danger: #f2867c;
    --danger-soft: #3a1d1a;
    --warn: #e8b85a;
    --warn-soft: #362a12;
    --success: #6fcf8f;
    --success-soft: #16301f;
    --info: #79aef0;
    --info-soft: #172739;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #121311;
  --surface: #1a1b19;
  --surface-2: #222420;
  --surface-3: #2b2d29;
  --border: #2f312d;
  --border-strong: #454741;
  --text: #ecebe6;
  --text-2: #b4b3ab;
  --text-3: #85847c;
  --accent: #3fb48f;
  --accent-hover: #5cc6a3;
  --accent-soft: #173229;
  --accent-text: #6fd0ae;
  --on-accent: #08130f;
  --danger: #f2867c;
  --danger-soft: #3a1d1a;
  --warn: #e8b85a;
  --warn-soft: #362a12;
  --success: #6fcf8f;
  --success-soft: #16301f;
  --info: #79aef0;
  --info-soft: #172739;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
code, kbd, pre { font-family: var(--mono); font-size: .92em; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: var(--radius-xs); }
pre { background: var(--surface-2); padding: 12px 14px; border-radius: var(--radius-sm); overflow-x: auto; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 100; box-shadow: var(--shadow); }
.skip-link:focus { left: 8px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 24px; } }
main.container { padding-top: 20px; padding-bottom: 56px; }

/* ---------- Header / footer ---------- */
.site-header { background: color-mix(in srgb, var(--surface) 88%, transparent); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--on-accent); display: inline-grid; place-items: center; font-size: .78rem; font-weight: 800; letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--text-2); text-decoration: none; padding: 7px 10px; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a.nav-pro { color: var(--accent-text); }
.theme-toggle { appearance: none; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); width: 36px; height: 36px; border-radius: var(--radius-sm); display: inline-grid; place-items: center; cursor: pointer; margin-left: 4px; }
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
@media (max-width: 420px) { .site-nav a.nav-hide-sm { display: none; } }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 36px 0 28px; color: var(--text-2); font-size: .93rem; }
.footer-cols { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: 1.4fr 1fr; } }
.footer-cols p { max-width: 46ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: start; }
.footer-nav a { color: var(--text-2); text-decoration: none; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }
.footer-fine { font-size: .82rem; color: var(--text-3); margin: 22px 0 0; }

/* ---------- Breadcrumb + hero ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--text-3); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.tool-hero { margin-bottom: 20px; }
.tool-hero h1 { margin-bottom: 8px; }
.lede { font-size: 1.1rem; color: var(--text-2); max-width: 68ch; margin-bottom: 12px; }
.trust-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.trust-badges li { font-size: .82rem; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px 3px 8px; display: inline-flex; align-items: center; gap: 6px; }
.trust-badges li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Cards / panels ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; }
@media (min-width: 720px) { .card { padding: 24px; } }
.card + .card { margin-top: 16px; }
.panel { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 16px; }
.tool { margin-bottom: 24px; }
.tool-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .tool-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; } }
@media (min-width: 860px) { .tool-grid.wide-left { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); font-weight: 650; margin: 0 0 10px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; min-width: 0; }
.field > label, .label { font-size: .88rem; font-weight: 600; color: var(--text); }
.help { font-size: .8rem; color: var(--text-3); margin: 0; }
.row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .row.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.row > .field { margin-bottom: 0; }
.row + .row, .row + .field, .field + .row { margin-top: 14px; }

input[type="text"], input[type="number"], input[type="email"], input[type="tel"], input[type="url"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="search"], input[type="password"], select, textarea, .input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  min-height: 42px;
  transition: border-color .12s, box-shadow .12s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input[type="number"] { font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 17px; height: 17px; }
input[type="color"] { width: 44px; height: 42px; padding: 3px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; cursor: pointer; }
.input-group { display: flex; align-items: stretch; }
.input-group > input, .input-group > select { border-radius: 0; flex: 1 1 auto; min-width: 0; }
.input-group > :first-child { border-top-left-radius: var(--radius-sm); border-bottom-left-radius: var(--radius-sm); }
.input-group > :last-child { border-top-right-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); }
.input-group > .addon { display: inline-flex; align-items: center; padding: 0 11px; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-2); font-size: .92rem; white-space: nowrap; }
.input-group > .addon:first-child { border-right: 0; }
.input-group > .addon:last-child { border-left: 0; }

/* Segmented control: <div class="segmented" role="radiogroup"><label><input type="radio" name="x"><span>A</span></label>...</div> */
.segmented { display: inline-flex; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-block; padding: 6px 12px; border-radius: 6px; font-size: .9rem; font-weight: 550; color: var(--text-2); }
.segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }

/* ---------- Buttons ---------- */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-size: .95rem; font-weight: 600; line-height: 1; padding: 11px 16px; min-height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s, color .12s; }
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-sm { padding: 7px 11px; min-height: 34px; font-size: .86rem; }
.btn-lg { padding: 14px 22px; min-height: 50px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-icon { padding: 0; width: 36px; min-height: 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Results ---------- */
.result { background: var(--accent-soft); border-radius: var(--radius); padding: 18px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: .82rem; color: var(--text-2); font-weight: 600; }
.stat-value { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--text); }
.stat-value.sm { font-size: 1.35rem; }
.stat-sub { font-size: .85rem; color: var(--text-2); }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat-grid .stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.kv .total { border-top: 1px solid var(--border); padding-top: 8px; font-weight: 750; color: var(--text); }
.bar { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; display: flex; }
.bar > span { display: block; height: 100%; background: var(--accent); }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
table.data th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 650; background: var(--surface-2); }
table.data td.num, table.data th.num { text-align: right; }
table.data tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
table.data input, table.data select { min-height: 36px; padding: 6px 8px; }

/* ---------- Callouts / badges / tabs ---------- */
.callout { border-radius: var(--radius-sm); padding: 12px 14px; background: var(--info-soft); color: var(--text); font-size: .94rem; border-left: 3px solid var(--info); margin: 0 0 16px; }
.callout.warn { background: var(--warn-soft); border-left-color: var(--warn); }
.callout.success { background: var(--success-soft); border-left-color: var(--success); }
.callout.danger { background: var(--danger-soft); border-left-color: var(--danger); }
.callout > :last-child { margin-bottom: 0; }
.badge { display: inline-flex; align-items: center; font-size: .75rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.badge.accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs [role="tab"] { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; font: inherit; font-weight: 600; font-size: .94rem; color: var(--text-2); cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.tabs [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tabs [role="tab"]:hover { color: var(--text); }

/* ---------- Printable document sheet (invoices, quotes, proposals, timesheets) ---------- */
/* Documents always render as white paper with dark ink, in both themes. */
.doc-sheet { background: #ffffff; color: #1b1b1b; border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 28px; font-size: 14px; line-height: 1.5; }
@media (min-width: 720px) { .doc-sheet { padding: 44px 48px; } }
.doc-sheet h1, .doc-sheet h2, .doc-sheet h3 { color: #111111; }
.doc-sheet table { width: 100%; border-collapse: collapse; }
.doc-sheet th, .doc-sheet td { padding: 8px 6px; border-bottom: 1px solid #e5e5e5; text-align: left; }
.doc-sheet th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #666666; }
.doc-sheet .muted { color: #666666; }
.doc-sheet a { color: inherit; }

/* ---------- Long-form SEO content ---------- */
.prose { max-width: 74ch; margin-top: 40px; color: var(--text); }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose table { margin: 0 0 1.2em; }
.formula { font-family: var(--mono); background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--text); font-size: .93rem; overflow-x: auto; margin: 0 0 1em; }
.faq { border-top: 1px solid var(--border); margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 650; padding: 12px 28px 12px 0; list-style: none; position: relative; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.2rem; color: var(--text-3); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > :not(summary) { margin-top: 0; padding-bottom: 8px; }

/* ---------- Related tools ---------- */
.related { margin-top: 48px; }
.related-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.related-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .12s, transform .12s; }
.related-card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.related-card strong { font-size: .98rem; }
.related-card span { font-size: .86rem; color: var(--text-2); }

/* ---------- Monetization slots (rendered by site.js; hidden when unconfigured) ---------- */
.ad-slot { display: none; margin: 20px 0; text-align: center; min-height: 0; }
.ad-slot.is-live { display: block; min-height: 100px; }
.ad-slot .ad-label { display: block; font-size: .7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.affiliate-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; margin: 20px 0; }
.affiliate-card .aff-copy { flex: 1 1 280px; }
.affiliate-card strong { display: block; margin-bottom: 2px; }
.affiliate-card p { margin: 0; color: var(--text-2); font-size: .92rem; }
.affiliate-card .aff-label { font-size: .7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 4px; }
.affiliate-card .aff-disclose { flex-basis: 100%; font-size: .75rem; color: var(--text-3); margin: 0; }
.pro-cta { margin: 44px 0 0; border-radius: var(--radius); padding: 22px; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); border: 1px solid var(--border); display: grid; gap: 14px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 720px) { .pro-cta { grid-template-columns: 1fr auto; padding: 26px 28px; } }
.pro-cta h2 { font-size: 1.3rem; margin: 0 0 4px; }
.pro-cta p { margin: 0; color: var(--text-2); max-width: 62ch; }
.newsletter { display: grid; gap: 10px; grid-template-columns: 1fr; align-items: end; padding-bottom: 22px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
@media (min-width: 720px) { .newsletter { grid-template-columns: 1fr minmax(300px, 420px); } }
.newsletter h2 { font-size: 1.1rem; margin: 0 0 2px; }
.newsletter p { margin: 0; }
.newsletter form { display: flex; gap: 8px; }
.newsletter input { flex: 1 1 auto; min-width: 0; }

/* ---------- Toast ---------- */
.toast-host { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 420px; }
.toast { background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: .92rem; font-weight: 550; opacity: 0; transform: translateY(8px); transition: opacity .18s, transform .18s; text-align: center; }
.toast.show { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.small { font-size: .86rem; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 20px; }
.cluster { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.spread { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.print-only { display: none; }

/* ---------- Print ---------- */
@media print {
  @page { margin: 14mm; }
  :root { --bg: #fff; --surface: #fff; --text: #000; --text-2: #333; --border: #ddd; }
  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .site-header, .site-footer, .breadcrumb, .tool-hero, .ad-slot, .affiliate-card, .pro-cta, .prose, .related, .no-print, .toast-host, .skip-link, .newsletter { display: none !important; }
  main.container { padding: 0 !important; max-width: none !important; }
  .card { border: 0 !important; box-shadow: none !important; padding: 0 !important; background: #fff !important; }
  .doc-sheet { border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
  .print-only { display: block !important; }
  a { color: inherit !important; text-decoration: none !important; }
  .tool-grid { display: block !important; }
}
