/* how.tosell.ai: one stylesheet. Pages run no scripts except free-tool pages (see _headers).
   Tokens, fonts and the awning follow the tosell.ai marketing site (apps/marketing/site/app/globals.css)
   so the hub reads as part of ToSell. Light and dark follow the operating system. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("/fonts/onest.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Surfaces (tosell.ai) */
  --paper: #f7f4ed;
  --surface: #fffcf7;
  --sunken: #eeeae0;
  /* Text */
  --ink: #1f2a4d;
  --heading: #1e3a8a;
  --muted: #5a6890;
  /* Lines */
  --line: #d6def3;
  --line-strong: #6b7698;
  /* Accent: mint is a fill, never text on paper */
  --mint: #3cd497;
  --mint-hover: #1fb97d;
  --on-mint: #0e1d4c;
  --mint-text: #0f7a4f;
  --mint-soft: #e3f7ee;
  --link: #1e3a8a;
  --focus: #1e3a8a;
  --warning: #8a5a00;
  --warning-soft: #fbf1dc;
  /* Footer band */
  --band: #16295f;
  --on-band: #f7f4ed;
  /* Awning */
  --awning-a: #1e3a8a;
  --awning-a-deep: #16295f;
  --awning-b: #ffffff;
  --awning-bar-mid: #2b4aa5;
  --awning-piping-a: #ffffff;
  --awning-piping-b: #ddd6c6;
  --awning-shadow: rgba(11, 20, 55, 0.22);
  --awning-seam: rgba(11, 20, 55, 0.16);
  --awning-highlight: rgba(255, 255, 255, 0.28);
  --awning-shade-top: rgba(255, 255, 255, 0.25);
  --awning-shade-bottom: rgba(11, 20, 55, 0.22);

  --radius-chip: 2px;
  --radius-card: 6px;
  --shadow-edge: 0 1px 0 var(--line);
  --shadow-raised: 0 1px 2px rgba(11, 20, 55, 0.06), 0 8px 24px rgba(11, 20, 55, 0.08);

  --max: 1200px;
  --prose: 680px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--heading); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw + 0.5rem, 3.6rem); line-height: 1.06; letter-spacing: -0.02em; font-weight: 600; }
h2 { font-size: clamp(1.55rem, 2.4vw + 0.6rem, 2.25rem); line-height: 1.12; letter-spacing: -0.015em; font-weight: 600; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 500; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 640px) { .wrap { padding-inline: 32px; } }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); padding: 12px 16px; border-radius: var(--radius-chip); }

/* ─── Awning (tosell.ai design spec 2.4, CSS only) ─────────────────────── */
.awning {
  --s: 40px; --band-h: 20px; --bar: 3px; --val: 16px; --room: 5px;
  --tile-w: calc(var(--s) * 2);
  --scallop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2 1' preserveAspectRatio='none'%3E%3Cpath d='M0 0H2A1 1 0 0 1 0 0Z'/%3E%3C/svg%3E");
  --stripes: linear-gradient(90deg, var(--awning-b) 0 25%, var(--awning-a) 25% 75%, var(--awning-b) 75% 100%);
  position: relative; width: 100%;
  height: calc(var(--band-h) + var(--bar) + var(--val) + var(--room));
  pointer-events: none; isolation: isolate;
  filter: drop-shadow(0 3px 3px var(--awning-shadow));
}
.awning-band {
  position: absolute; inset: 0 0 auto; height: calc(var(--band-h) + var(--bar));
  background-image:
    linear-gradient(var(--awning-highlight), var(--awning-highlight)),
    linear-gradient(to bottom, var(--awning-a-deep), var(--awning-bar-mid), var(--awning-a-deep)),
    linear-gradient(90deg, transparent calc(25% - 0.5px), var(--awning-seam) calc(25% - 0.5px) calc(25% + 0.5px), transparent calc(25% + 0.5px) calc(75% - 0.5px), var(--awning-seam) calc(75% - 0.5px) calc(75% + 0.5px), transparent calc(75% + 0.5px)),
    linear-gradient(to bottom, var(--awning-shade-top), transparent 40%, var(--awning-shade-bottom)),
    var(--stripes);
  background-size: 100% 1px, 100% var(--bar), var(--tile-w) var(--band-h), 100% var(--band-h), var(--tile-w) var(--band-h);
  background-position: 0 var(--band-h), 0 var(--band-h), center top, 0 0, center top;
  background-repeat: no-repeat, no-repeat, repeat-x, no-repeat, repeat-x;
}
.awning-valance { position: absolute; left: 0; right: 0; top: calc(var(--band-h) + var(--bar)); height: calc(var(--val) + 2px); }
.awning-valance::before, .awning-valance::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  -webkit-mask-image: var(--scallop); mask-image: var(--scallop);
  -webkit-mask-size: var(--s) 100%; mask-size: var(--s) 100%;
  -webkit-mask-position: center top; mask-position: center top;
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
}
.awning-valance::before { z-index: 1; height: var(--val); background: var(--stripes) center top / var(--tile-w) 100% repeat-x; }
.awning-valance::after {
  z-index: 0; height: calc(var(--val) + 2px);
  background: linear-gradient(90deg, var(--awning-piping-b) 0 25%, var(--awning-piping-a) 25% 75%, var(--awning-piping-b) 75% 100%) center top / var(--tile-w) 100% repeat-x;
}
@media (min-width: 640px) { .awning { --s: 56px; --band-h: 30px; --bar: 4px; --val: 24px; --room: 6px; } }
.awning-rail {
  --s: 40px; height: 6px;
  background: linear-gradient(90deg, var(--awning-b) 0 25%, var(--awning-a) 25% 75%, var(--awning-b) 75% 100%) center top / calc(var(--s) * 2) 100% repeat-x;
}
@media (min-width: 640px) { .awning-rail { --s: 56px; } }
@media (prefers-reduced-motion: no-preference) {
  .awning-band { transform-origin: top center; animation: awning-unfurl 420ms var(--ease-out) both; }
  .awning-valance { animation: awning-valance 300ms var(--ease-out) 120ms both; }
}
@keyframes awning-unfurl { from { transform: scaleY(0.5); } to { transform: none; } }
@keyframes awning-valance { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (forced-colors: active), print { .awning, .awning-rail { display: none; } header.site { border-bottom: 1px solid CanvasText; } }

/* ─── Header ───────────────────────────────────────────────────────────── */
header.site .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: baseline; min-height: 44px; align-content: center; text-decoration: none; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; color: var(--heading); padding-top: 6px; }
.brand .dot { color: var(--mint); }
.brand .hub { color: var(--heading); }
.brand .parent { color: var(--muted); font-weight: 500; }
.brand i { font-weight: 500; }
header.site nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; }
header.site nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--ink); text-decoration: none; font-weight: 500; text-underline-offset: 4px; }
header.site nav a:hover, header.site nav a[aria-current="page"] { text-decoration: underline; }
header.site nav a[aria-current="page"] { text-decoration-thickness: 2px; }

/* ─── Buttons ──────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: var(--radius-chip); background: var(--mint); color: var(--on-mint); font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--mint-hover); }
.btn-quiet { background: transparent; border: 1.5px solid var(--heading); color: var(--heading); }
.btn-quiet:hover { background: var(--sunken); }

/* ─── Page shell ───────────────────────────────────────────────────────── */
main { padding: 24px 0 64px; }
.crumbs { font-size: 0.875rem; color: var(--muted); margin: 0 0 20px; }
.crumbs a { color: var(--muted); }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--mint-text); margin: 0 0 12px; }
.lede { font-size: clamp(1.06rem, 0.6vw + 0.95rem, 1.25rem); line-height: 1.55; color: var(--ink); max-width: 46rem; margin-top: 16px; }
.guide-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; max-width: var(--prose); margin: 14px 0 0; padding: 10px 14px; font-size: 0.875rem; line-height: 1.5; color: var(--muted); background: rgba(30, 58, 138, 0.04); border: 1px solid rgba(30, 58, 138, 0.12); border-radius: 10px; }
.guide-note-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #1e3a8a; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.875rem; color: var(--muted); margin: 18px 0 0; padding: 0; list-style: none; }
.note { font-size: 0.875rem; color: var(--muted); }

/* Article layout: content + side rail (on this page, related) */
.article-hero { padding: 8px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.article-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .article-grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .rail { position: sticky; top: 24px; align-self: start; }
}
.article-body { min-width: 0; }
.article-body > section { margin: 0 0 48px; scroll-margin-top: 24px; }
.article-body > section > h2 { margin-bottom: 16px; }
.prose { max-width: var(--prose); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0 0 0.45em; }
sup.cite { font-size: 0.72em; line-height: 0; vertical-align: super; white-space: nowrap; }
sup.cite a { text-decoration: none; font-weight: 600; padding: 0 1px; }

/* Short answer */
.answer { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--mint); border-radius: var(--radius-card); padding: 20px 22px; box-shadow: var(--shadow-raised); max-width: 46rem; margin-top: 24px; }
.answer .answer-h { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--mint-text); margin: 0 0 8px; }
.answer p:last-child { margin-bottom: 0; }

/* Figures: diagrams always sit on a light card so they read in both themes */
figure.diagram { margin: 24px 0 32px; }
figure.diagram .frame { background: #fffcf7; border: 1px solid #d6def3; border-radius: var(--radius-card); padding: clamp(8px, 2vw, 20px); }
figure.diagram img { width: 100%; }
@media (max-width: 620px) {
  /* Keep diagram text readable on phones: the frame scrolls sideways instead of shrinking the drawing. */
  figure.diagram .frame { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  figure.diagram:not(.hero-figure) .frame img { min-width: 600px; }
}
figure.diagram figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 10px; max-width: var(--prose); }
figure.diagram figcaption b { color: var(--ink); }
figure.hero-figure { margin: 28px 0 0; }

/* Visual step cards */
ol.steps { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 720px) { ol.steps.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
ol.steps > li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px 18px 16px 66px; }
ol.steps > li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--heading); color: var(--paper); display: grid; place-items: center; font-weight: 700; font-family: var(--font-body); }
ol.steps h3 { font-size: 1.1rem; margin-bottom: 6px; }
ol.steps p { margin: 0; }

/* Callouts */
.callout { border-radius: var(--radius-card); padding: 16px 18px; margin: 20px 0; max-width: var(--prose); border: 1px solid var(--line); background: var(--surface); }
.callout.warn { background: var(--warning-soft); border-color: transparent; }
.callout.warn .callout-h { color: var(--warning); }
.callout-h { font-weight: 700; margin: 0 0 6px; }
.callout p:last-child { margin: 0; }

/* Checklist (printable) */
.checklist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px 22px; max-width: var(--prose); }
.checklist ul { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 8px 0 8px 34px; border-bottom: 1px dashed var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border: 2px solid var(--heading); border-radius: 3px; }

/* Comparison table */
.table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--sunken); font-weight: 600; color: var(--heading); }
tbody tr:last-child td { border-bottom: 0; }

/* FAQ (native details) */
.faq details { border-bottom: 1px solid var(--line); max-width: var(--prose); }
.faq summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; font-weight: 600; color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 14px; }

/* ToSell box: the one in-context link to tosell.ai */
.tosell-box { margin: 40px 0 48px; display: grid; gap: 6px; background: var(--band); color: var(--on-band); border-radius: var(--radius-card); padding: 0 0 20px; overflow: hidden; max-width: var(--prose); }
.tosell-box .awning-rail { margin-bottom: 12px; }
.tosell-box > :not(.awning-rail) { padding-inline: 22px; }
.tosell-box p { margin: 0; }
.tosell-box .tb-h { font-family: var(--font-display); font-size: 1.3rem; color: var(--on-band); }
.tosell-box a { color: var(--on-band); }
.tosell-box .btn { color: var(--on-mint); justify-self: start; margin: 8px 22px 0; }

/* References (academic style) */
.references ol { padding-left: 2.2em; max-width: 52rem; font-size: 0.95rem; }
.references li { margin: 0 0 0.8em; padding-left: 0.3em; scroll-margin-top: 24px; }
.references li:target { background: var(--mint-soft); outline: 2px solid var(--mint); outline-offset: 4px; border-radius: 2px; }
.references .ref-url { word-break: break-all; }
.references .ref-kind { display: inline-block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--muted); border: 1px solid var(--line-strong); border-radius: var(--radius-chip); padding: 0 5px; margin-left: 4px; vertical-align: 1px; }
.method { font-size: 0.9rem; color: var(--muted); max-width: 52rem; }

/* Rail */
.rail-box { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); padding: 16px 18px; margin-bottom: 18px; }
.rail-h { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.rail ul { list-style: none; padding: 0; margin: 0; }
.rail li a { display: block; padding: 6px 0; text-decoration: none; color: var(--ink); line-height: 1.35; }
.rail li a:hover { text-decoration: underline; }

/* Cards (related questions, hubs, home) */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .cards.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out); }
.card:hover { box-shadow: var(--shadow-raised); }
@media (prefers-reduced-motion: no-preference) { .card:hover { transform: translateY(-2px); } }
.card .card-media { background: #fffcf7; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 12px; }
.card .card-media img { max-height: 100%; width: auto; }
.card .card-body { padding: 16px 18px 18px; }
.card .card-kicker { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--mint-text); margin: 0 0 6px; }
.card h3 { font-size: 1.15rem; margin: 0 0 6px; }
.card h3 a { text-decoration: none; color: var(--heading); }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.related { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 16px; }
.related > h2 { margin-bottom: 18px; }
.related .hub-link { margin-top: 18px; }

/* Home / hub */
.hero { padding: 16px 0 36px; display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.1fr 0.9fr; } }
.hero .frame { background: #fffcf7; border: 1px solid #d6def3; border-radius: var(--radius-card); padding: 14px; box-shadow: var(--shadow-raised); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.section { margin: 0 0 56px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.section-head p { margin: 0; color: var(--muted); max-width: 40rem; }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pillars li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px; }
.pillars b { display: block; font-family: var(--font-display); color: var(--heading); font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }

/* ─── Footer ───────────────────────────────────────────────────────────── */
footer { margin-top: 32px; }
.foot-band { background: var(--band); color: var(--on-band); }
.foot-band .wrap { display: grid; gap: 16px; padding-block: 36px; }
@media (min-width: 768px) { .foot-band .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.foot-band .fb-h { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 4px; color: var(--on-band); }
.foot-band p { margin: 0; }
.foot-cols { display: grid; gap: 24px; padding-block: 40px 24px; }
@media (min-width: 640px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.foot-h { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols a { display: inline-flex; min-height: 36px; align-items: center; color: var(--ink); text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; }
.fine { font-size: 0.875rem; color: var(--muted); padding-bottom: 40px; }
.fine p { max-width: 80ch; margin: 0 0 8px; }

@media print {
  header.site nav, .rail, footer, .related, .tosell-box { display: none; }
  body { background: #fff; color: #000; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }

/* Tool pages (markup from free-tools-workflow's site export). */
.tool-page .hero { display: block; padding: 8px 0 8px; }
.tool-page .notice { background: #fdf4e3; border: 1px solid #ecd3a1; border-radius: var(--radius-card); padding: 14px 20px; margin: 20px 0 28px; max-width: var(--prose); }
.tool-page .notice h2 { font-size: 1.05rem; margin: 0 0 6px; }
.tool-page .notice ul { margin: 0; padding-left: 20px; font-size: 0.95rem; }
.tool-page .calc { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .tool-page .calc { grid-template-columns: 1fr; } }
.tool-page .grid { display: grid; gap: 16px; }
.tool-page .panel { background: #fffcf7; border: 1px solid #d6def3; border-radius: var(--radius-card); padding: 16px 20px; margin: 0; display: grid; gap: 14px; }
.tool-page legend { font-weight: 700; padding: 0 6px; color: var(--ink); }
.tool-page .field { display: grid; gap: 4px; }
.tool-page label { font-weight: 600; }
.tool-page .help, .tool-page .why { color: var(--muted); font-size: 0.9rem; margin: 0; }
.tool-page input[type=number] { font: inherit; padding: 10px 12px; min-height: 44px; border: 1px solid #b9c5e6; border-radius: 8px; background: #fff; color: var(--ink); }
.tool-page input[type=range] { width: 100%; min-height: 44px; accent-color: #1f3a93; }
.tool-page input:focus-visible, .tool-page button:focus-visible { outline: 3px solid #1f3a93; outline-offset: 2px; }
.tool-page button { font: inherit; justify-self: start; min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid #1f3a93; background: #fff; color: #1f3a93; cursor: pointer; }
.tool-page .calc > section.panel { position: sticky; top: 16px; }
@media (max-width: 860px) { .tool-page .calc > section.panel { position: static; } }
.tool-page .results { display: grid; gap: 10px; margin: 0; }
.tool-page .result { display: grid; gap: 2px; border-top: 1px solid #e3e8f5; padding-top: 8px; }
.tool-page .result dt { font-weight: 600; }
.tool-page .result dd { margin: 0; display: grid; gap: 2px; }
.tool-page .val { font-size: 1.3rem; font-weight: 700; color: #1f3a93; }
.tool-page .warn { background: #fdf4e3; padding: 4px 8px; border-radius: 6px; }
.tool-page .status { margin: 0 0 8px; color: var(--muted); }
.tool-page .note { color: var(--muted); font-size: 0.9rem; max-width: var(--prose); }
.tool-page > section:not(.notice):not(.panel) { margin-top: 44px; max-width: var(--prose); }
.tool-page > section h3 { margin: 18px 0 4px; }
.tool-page form.grid { gap: 20px; }
