/* The pages beside the first one: every feature, the blog, an article.
   The same ink, paper and hi-vis orange; the same three devices of the trade:
   the highlighter, the ruled ledger line, the accountant's double rule. */

/* ---------------------------------------------------------------- where you are */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 0.93rem; font-weight: 650; color: var(--text-faint); }
.crumbs a { display: inline-flex; align-items: center; min-width: 34px; min-height: 44px; color: var(--ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumbs span:last-child { color: var(--hivis-deep); }

/* ---------------------------------------------------------------- the head of a page: a band of ink */
.page-head { position: relative; isolation: isolate; background: var(--ink); color: var(--on-ink); padding: clamp(28px, 4vw, 56px) 0 clamp(52px, 7vw, 96px); overflow: hidden; }
.page-head::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: 0.16; mix-blend-mode: overlay; }
.page-head .crumbs { color: var(--on-ink-soft); }
.page-head .crumbs a { color: #fff; }
.page-head .crumbs span:last-child { color: #ffc9ae; }
.page-head h1 { margin-top: clamp(10px, 2vw, 26px); max-width: 13em; font: 800 clamp(2.5rem, 6.6vw, 5.2rem)/0.96 var(--display); font-stretch: 93%; letter-spacing: -0.014em; text-wrap: balance; }
.page-lead { margin-top: 26px; max-width: 37em; font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.55; color: var(--on-ink-soft); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px, 4vw, 44px); }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 17px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.34); font-weight: 650; font-size: 0.95rem; text-decoration: none; transition: background-color 0.18s, border-color 0.18s; }
.jump a:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

/* ---------------------------------------------------------------- every feature: numbered parts, each a ruled list */
.part { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); scroll-margin-top: 68px; }
.part:nth-of-type(odd) { background: var(--white); }
.part-grid { display: grid; grid-template-columns: minmax(0, 0.44fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.part-head { position: sticky; top: 100px; }
.part-no { display: block; margin-bottom: 16px; font: 800 clamp(3.6rem, 7vw, 6.2rem)/0.82 var(--display); font-stretch: 86%; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.part-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.part-head p { margin-top: 14px; max-width: 24em; color: var(--text-soft); }
.ledger { border-bottom: 2px solid var(--text); }
.ledger > div { display: grid; grid-template-columns: minmax(0, 0.46fr) minmax(0, 1fr); gap: 6px clamp(16px, 3vw, 40px); padding: 20px 0; border-top: 1px solid var(--line-strong); }
.ledger > div:first-child { border-top: 2px solid var(--text); }
.ledger dt { font-weight: 750; font-size: 1.08rem; line-height: 1.3; letter-spacing: -0.012em; }
.ledger dd { color: var(--text-soft); }
.ledger dd b { color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.part.part-ink { position: relative; isolation: isolate; background: var(--night); color: #fff; border-top: 0; }
.part-ink .part-no { color: var(--hivis); }
.part-ink .part-head p { color: #c3c9f5; }
.part-ink .ledger, .part-ink .ledger > div:first-child { border-color: #fff; }
.part-ink .ledger > div { border-color: rgba(255, 255, 255, 0.22); }
.part-ink .ledger dd { color: #c3c9f5; }
.part-ink .ledger dd b { color: #fff; }

/* ---------------------------------------------------------------- the blog's first page */
.blog-list { padding: clamp(36px, 5vw, 64px) 0 clamp(72px, 10vw, 128px); }
/* The first article lies on a page of accounting paper: a double rule down the margin. */
.first-story { position: relative; display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 60px); padding: clamp(26px, 4vw, 52px) clamp(22px, 4vw, 52px) clamp(26px, 4vw, 52px) clamp(48px, 7vw, 104px); border-radius: 6px; background: linear-gradient(90deg, transparent calc(clamp(48px, 7vw, 104px) - 22px), var(--hivis-line) 0, var(--hivis-line) calc(clamp(48px, 7vw, 104px) - 20.5px), transparent 0, transparent calc(clamp(48px, 7vw, 104px) - 17px), var(--hivis-line) 0, var(--hivis-line) calc(clamp(48px, 7vw, 104px) - 15.5px), transparent 0), var(--white); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); text-decoration: none; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.first-story:hover { transform: translateY(-3px); box-shadow: var(--shadow-2), 0 0 0 1px var(--line); }
.first-label { justify-self: start; padding: 6px 12px 5px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.8rem; font-weight: 700; }
.first-title { max-width: 17em; font: 800 clamp(1.9rem, 4.4vw, 3.5rem)/1.02 var(--display); font-stretch: 94%; letter-spacing: -0.012em; text-wrap: balance; transition: color 0.2s; }
.first-story:hover .first-title { color: var(--ink); }
.first-lead { max-width: 40em; font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.55; color: var(--text-soft); }
.first-meta { font-size: 0.9rem; font-weight: 650; color: var(--text-faint); }

/* ---------------------------------------------------------------- an article */
.post-head { padding: clamp(16px, 3vw, 40px) 0 0; }
.post-head h1 { margin-top: clamp(4px, 1.4vw, 18px); max-width: 15em; font: 800 clamp(2.25rem, 5.6vw, 4.5rem)/0.99 var(--display); font-stretch: 93%; letter-spacing: -0.014em; text-wrap: balance; }
.post-lead { margin-top: 22px; max-width: 38em; font-size: clamp(1.12rem, 1.6vw, 1.36rem); line-height: 1.5; color: var(--text-soft); }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: clamp(24px, 3vw, 36px); padding: 14px 0 16px; border-top: 2px solid var(--text); border-bottom: 5px double var(--text); font-size: 0.92rem; font-weight: 600; color: var(--text-soft); }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17.5rem); gap: clamp(32px, 6vw, 96px); align-items: start; padding-block: clamp(30px, 4.5vw, 56px) clamp(64px, 9vw, 112px); }
.post-rail { position: sticky; top: 92px; display: grid; gap: 22px; max-height: calc(100vh - 110px); overflow-y: auto; }
.toc summary { font-weight: 750; list-style: none; pointer-events: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { margin-top: 12px; border-left: 2px solid var(--line-strong); }
.toc a { display: block; margin-left: -2px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; font-size: 0.93rem; line-height: 1.35; color: var(--text-soft); text-decoration: none; transition: color 0.15s, border-color 0.15s; }
.toc a:hover { color: var(--ink); }
.toc a.here { border-left-color: var(--hivis); color: var(--text); font-weight: 650; }
.rail-card { padding: 20px; border-radius: 18px; background: var(--ink); color: #fff; }
.rail-card .mark { width: 23px; height: 36px; }
.rail-card p { margin-top: 10px; font-size: 0.95rem; line-height: 1.5; color: var(--on-ink-soft); }
.rail-card p b { color: #fff; }
.rail-card a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-weight: 700; color: #fff; text-underline-offset: 4px; }

.prose { max-width: 44rem; font-size: clamp(1.06rem, 1.25vw, 1.16rem); line-height: 1.72; color: #24252e; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2em; max-width: none; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.08; scroll-margin-top: 92px; }
.prose h3 { margin-top: 1.8em; font-size: 1.24rem; scroll-margin-top: 92px; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2.5px; }
.prose strong { font-weight: 700; color: var(--text); }
.prose ul, .prose ol { display: grid; gap: 0.5em; }
.prose ul > li { position: relative; padding-left: 1.5em; }
.prose ul > li::before { content: ''; position: absolute; left: 0.15em; top: 0.78em; width: 0.62em; height: 2.5px; border-radius: 2px; background: var(--ink); }
.prose ol { counter-reset: step; }
.prose ol > li { counter-increment: step; position: relative; padding-left: 2.3em; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: 0.16em; display: grid; place-items: center; width: 1.65em; height: 1.65em; border-radius: 50%; background: var(--ink-tint); color: var(--ink-deep); font: 800 0.78em/1 var(--body); }
.prose li > ul, .prose li > ol { margin-top: 0.5em; }
.prose blockquote { margin-inline: 0; padding: 2px 0 2px 20px; border-left: 4px solid var(--hivis); font-size: 1.06em; font-weight: 550; color: var(--text); }
/* A highlighter, as on the supervisor's sheet. */
.prose mark { padding: 0 0.14em; border-radius: 3px 6px 4px 7px; background: rgba(255, 91, 31, 0.26); color: inherit; }
.prose code { padding: 0.12em 0.36em; border-radius: 5px; background: var(--paper-2); font: 600 0.9em ui-monospace, 'Cascadia Mono', Consolas, monospace; overflow-wrap: anywhere; }
.prose pre { padding: 18px 20px; border-radius: 14px; background: var(--night); color: #e8ebff; font-size: 0.88rem; line-height: 1.6; overflow-x: auto; }
.prose pre code { padding: 0; background: none; color: inherit; font-weight: 500; overflow-wrap: normal; }
.scroll-x { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--white); }
.prose table { width: 100%; font-size: 0.95em; line-height: 1.45; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th[align='right'], .prose td[align='right'] { text-align: right; white-space: nowrap; }
.prose thead th { background: var(--paper); border-bottom: 2px solid var(--text); font-weight: 750; }
.prose tbody tr:last-child td { border-bottom: 0; }
/* A total: the accountant's double rule. */
.prose tbody tr.sum td { border-top: 2px solid var(--text); border-bottom: 5px double var(--text); background: var(--paper); font-weight: 750; color: var(--text); }

.in-short { padding: 20px 24px 22px; border-radius: 4px 16px 16px 4px; border-left: 6px double var(--ink); background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.in-short > b { display: block; margin-bottom: 10px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink-deep); }
.in-short ul { gap: 0.45em; font-size: 0.98em; line-height: 1.55; }
/* How the product does the thing the article is about. */
.in-ml { padding: 20px 24px; border-radius: 16px; background: var(--ink-tint); color: #1a2068; }
.in-ml > * + * { margin-top: 0.7em; }
.in-ml strong { color: var(--ink-deep); }
.formula { padding: 22px 20px; border-radius: 14px; border: 2px solid var(--text); background: var(--white); text-align: center; font: 800 clamp(1.15rem, 2.4vw, 1.6rem)/1.3 var(--display); font-stretch: 95%; color: var(--ink-deep); text-wrap: balance; }
/* A supervisor's sheet inside an article. */
.sheet { margin-inline: 0; padding: 18px 18px 14px; border-radius: 4px; background: linear-gradient(170deg, var(--sheet) 0%, var(--sheet-2) 100%); box-shadow: var(--shadow-1); overflow-x: auto; }
.sheet .hand { min-width: 30rem; }
.sheet .hand .who { width: 24%; }
.sheet figcaption { margin-top: 12px; font-size: 0.84rem; line-height: 1.45; color: #5c563f; }
.sheet .hand td.note { font: 400 0.74rem/1.2 Arial, Helvetica, sans-serif; color: #33312a; transform: none; }
/* A file to take away. */
.download { margin-top: 1.6em; }
.prose .download a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 18px; align-items: center; padding: 18px 22px; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; box-shadow: 0 18px 34px -20px rgba(28, 46, 224, 0.9); transition: transform 0.2s var(--ease), background-color 0.2s; }
.prose .download a:hover { transform: translateY(-2px); background: var(--ink-deep); }
.download a::before { content: 'XLSX'; grid-row: 1 / 3; display: grid; place-items: center; width: 54px; height: 62px; border-radius: 8px 16px 8px 8px; background: #fff; color: var(--ink-deep); font: 800 0.78rem/1 var(--body); letter-spacing: 0.02em; }
.download b { font-size: 1.1rem; font-weight: 750; line-height: 1.3; }
.download span { font-size: 0.9rem; color: var(--on-ink-soft); }
/* A list to tick off. */
.checklist ul > li { padding-left: 2em; }
.checklist ul > li::before { left: 0; top: 0.3em; width: 1.05em; height: 1.05em; border: 2px solid var(--text); border-radius: 4px; background: var(--white); }
.fine-print { margin-top: 2.4em; padding-top: 16px; border-top: 1px solid var(--line-strong); font-size: 0.9rem; line-height: 1.55; color: var(--text-faint); }

.more { padding: clamp(56px, 8vw, 96px) 0; background: var(--white); border-top: 1px solid var(--line); }
.more h2 { margin-bottom: 26px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.more-all a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink); text-underline-offset: 4px; }
.lost-more { display: flex; justify-content: center; gap: 28px; margin-top: 26px; }
.lost-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; color: #fff; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1040px) {
  .part-grid { grid-template-columns: minmax(0, 1fr); }
  .part-head { position: static; }
  .part-no { font-size: 3.4rem; }
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .post-rail { position: static; order: -1; max-height: none; }
  .rail-card { display: none; }
  .toc { border-radius: 14px; border: 1px solid var(--line-strong); background: var(--white); }
  .toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; pointer-events: auto; cursor: pointer; }
  .toc summary::after { content: ''; width: 9px; height: 9px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.25s var(--ease); }
  .toc[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
  .toc ol { margin: 0 18px 14px; }
  .toc a { padding-block: 11px; }
}
@media (max-width: 640px) {
  .ledger > div { grid-template-columns: minmax(0, 1fr); padding: 18px 0; }
  .prose th, .prose td { padding: 10px 12px; }
  .in-short, .in-ml { padding: 18px; }
  .prose .download a { padding: 16px; gap: 2px 14px; }
}

/* ---------------------------------------------------------------- on paper */
@media print {
  .top, .foot, .closing, .more, .post-rail, .skip { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .post-grid { display: block; padding: 0; }
  .prose { max-width: none; }
  .prose a { color: inherit; text-decoration: none; }
  .scroll-x { overflow: visible; }
}

/* ---------------------------------------------------------------- a real screen at the head of a part of the features page */
.part-shot { grid-column: 1 / -1; margin: 0 0 clamp(26px, 4vw, 48px); }
.part-shot picture { display: block; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line-strong), 0 2px 4px rgba(10, 14, 58, 0.06), 0 34px 64px -34px rgba(10, 14, 58, 0.45); }
.part-shot picture::before { content: ''; display: block; height: 26px; background: radial-gradient(circle at 16px 13px, #cfcabb 4.5px, transparent 5.5px), radial-gradient(circle at 32px 13px, #cfcabb 4.5px, transparent 5.5px), radial-gradient(circle at 48px 13px, #cfcabb 4.5px, transparent 5.5px), var(--paper-2); border-bottom: 1px solid var(--line); }
.part-shot img { display: block; width: 100%; height: auto; }
.part-shot figcaption { margin-top: 12px; font-size: 0.86rem; color: var(--text-faint); }
.part-ink .part-shot picture { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 34px 64px -30px rgba(0, 0, 0, 0.7); }
.part-ink .part-shot figcaption { color: #a9b0e6; }

/* ---------------------------------------------------------------- a page of plain text, such as privacy */
.post-grid.single { grid-template-columns: minmax(0, 1fr); }

/* ---------------------------------------------------------------- the demo form */
.ask { padding: clamp(36px, 5vw, 72px) 0 clamp(72px, 10vw, 128px); }
.ask-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.form { display: grid; gap: 22px; padding: clamp(20px, 3.4vw, 40px); border-radius: 6px 22px 22px 6px; border-left: 6px double var(--ink); background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 18px; }
.f { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.f > span, .f legend { padding: 0; font-weight: 700; font-size: 0.97rem; letter-spacing: -0.008em; }
.f i { font-style: normal; font-weight: 500; color: var(--text-faint); }
.f input[type='text'], .f input[type='tel'], .f input[type='email'], .f input[type='month'], .f textarea, .f select { width: 100%; min-height: 56px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--paper); font: 600 1.06rem/1.4 var(--body); color: var(--text); transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s; }
.f textarea { padding-block: 14px; resize: vertical; min-height: 120px; }
.f input::placeholder, .f textarea::placeholder { color: var(--text-faint); font-weight: 500; opacity: 0.8; }
.f input:focus, .f textarea:focus, .f select:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 5px rgba(28, 46, 224, 0.14); }
.f input[aria-invalid='true'] { border-color: var(--hivis); box-shadow: 0 0 0 5px rgba(255, 91, 31, 0.16); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick legend { margin-bottom: 8px; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--paper); font-weight: 650; font-size: 0.96rem; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.pick input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pick input:focus-visible + span { outline: 3px solid var(--hivis); outline-offset: 2px; }
.not-for-you { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form-end .btn { border: 0; cursor: pointer; font-family: inherit; }
.form-end .btn[disabled] { opacity: 0.6; cursor: wait; }
.form-small { flex: 1 1 14em; font-size: 0.88rem; color: var(--text-faint); }
.form-small a { color: var(--ink); font-weight: 650; text-underline-offset: 3px; }
.form-problem { padding: 14px 16px; border-radius: 12px; background: var(--hivis-tint); border: 1px solid var(--hivis-line); color: #7a2600; font-weight: 600; }
.received { position: relative; padding: clamp(24px, 4vw, 48px); border-radius: 6px 22px 22px 6px; border-left: 6px double var(--ink); background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); outline: none; }
.received h2 { margin-top: 8px; max-width: 12em; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.received p { margin-top: 14px; max-width: 34em; color: var(--text-soft); }
.received-stamp { display: block; width: 132px; height: 132px; margin: -6px 0 6px -8px; color: var(--ink); stroke: currentColor; transform: rotate(-11deg) scale(1.7); opacity: 0; }
.received-stamp .stamp-word { font: 800 26px/1 var(--display); font-stretch: 90%; letter-spacing: 0.05em; fill: currentColor; stroke: none; }
.received.on .received-stamp { animation: land 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) 0.1s both; }
@keyframes land { from { transform: rotate(-24deg) scale(1.9); opacity: 0; } to { transform: rotate(-11deg) scale(1); opacity: 0.92; } }
.next h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.steps { counter-reset: step; margin-top: 22px; border-bottom: 2px solid var(--text); }
.steps li { counter-increment: step; position: relative; display: grid; gap: 4px; padding: 16px 0 16px 46px; border-top: 1px solid var(--line-strong); }
.steps li:first-child { border-top: 2px solid var(--text); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 15px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 0.9rem/1 var(--body); }
.steps b { font-weight: 750; letter-spacing: -0.012em; }
.steps span { color: var(--text-soft); font-size: 0.97rem; }
.next-direct { margin-top: 20px; color: var(--text-soft); }
.next-direct a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- the free tools */
.tool-wrap { padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); }
.tool { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
.tool.wide { grid-template-columns: minmax(0, 1fr); }
.tool-in { display: grid; gap: 20px; padding: clamp(18px, 3vw, 34px); border-radius: 6px 22px 22px 6px; border-left: 6px double var(--ink); background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); min-width: 0; }
.tool-in h2, .tool-out h2 { font: 800 1.2rem/1.2 var(--body); letter-spacing: -0.02em; max-width: none; }
.tool-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 16px; }
.tool-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f small { font-size: 0.84rem; font-weight: 500; color: var(--text-faint); line-height: 1.4; }
.f textarea.mono, .mono { font: 500 0.9rem/1.6 ui-monospace, 'Cascadia Mono', Consolas, monospace; white-space: pre; overflow: auto; }
.f textarea.mono { min-height: 190px; }
.tool-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn-plain { min-height: 46px; padding: 0 18px; border-radius: 10px; border: 1.5px solid var(--text); background: var(--white); color: var(--text); font: 700 0.95rem/1 var(--body); cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.btn-plain:hover { background: var(--text); color: #fff; }
.btn-ink { min-height: 52px; padding: 0 22px; border-radius: 12px; border: 0; background: var(--ink); color: #fff; font: 700 1rem/1 var(--body); cursor: pointer; }
.btn-ink[disabled] { background: var(--line-strong); color: var(--text-faint); cursor: not-allowed; }
.file-pick { position: relative; display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 10px; border: 1.5px solid var(--text); background: var(--white); font: 700 0.95rem/1 var(--body); cursor: pointer; }
.file-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-pick:focus-within { outline: 3px solid var(--hivis); outline-offset: 2px; }
.private { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--text-soft); }
.private::before { content: ''; flex: none; width: 11px; height: 10px; margin-top: 0.42em; border-radius: 2px; background: var(--ink); box-shadow: 0 -6px 0 -2px var(--white), 0 -6px 0 0 var(--ink); }
/* The result: a slip of ink, with the double rule under the figure that matters. */
.tool-out { position: sticky; top: 92px; display: grid; gap: 4px; padding: clamp(18px, 2.6vw, 30px); border-radius: 22px; background: var(--ink); color: #fff; min-width: 0; font-variant-numeric: tabular-nums; }
.tool-out h2 { color: var(--on-ink-soft); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.result-lines > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 11px 0; border-bottom: 1px solid var(--on-ink-line); }
.result-lines dt { font-weight: 600; }
.result-lines dd { font-weight: 700; text-align: right; }
.result-lines small { grid-column: 1 / -1; font-size: 0.84rem; color: var(--on-ink-soft); }
.result-total { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 8px; padding: 14px 0 12px; border-bottom: 5px double #fff; }
.result-total > span { font-weight: 800; }
.result-total b { font: 800 clamp(1.7rem, 3vw, 2.4rem)/1 var(--display); font-stretch: 96%; }
.result-total b small { font: 700 0.5em/1 var(--body); opacity: 0.75; margin-right: 4px; }
.result-total.loss b { color: #ffb59a; }
.result-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-top: 16px; }
.result-facts dt { font-size: 0.84rem; color: var(--on-ink-soft); }
.result-facts dd { font-weight: 800; font-size: 1.12rem; }
.tool-notes { display: grid; gap: 8px; margin-top: 14px; }
.tool-notes li { padding: 12px 14px; border-radius: 12px; font-size: 0.92rem; line-height: 1.45; background: rgba(255, 255, 255, 0.12); }
.tool-notes li.bad { background: #fff0e7; color: #7a2600; font-weight: 600; }
.tool-notes li.look { background: #fff7d9; color: #5b4300; }
.mini-table { width: 100%; margin-top: 14px; font-size: 0.92rem; }
.mini-table th, .mini-table td { padding: 8px 0; text-align: right; border-bottom: 1px solid var(--on-ink-line); }
.mini-table th:first-child, .mini-table td:first-child { text-align: left; }
.mini-table th { font-weight: 600; color: var(--on-ink-soft); }
.mini-table tr.loss td { color: #ffb59a; }
/* The salary file checker's verdict. */
.verdict { display: none; margin-top: clamp(18px, 3vw, 30px); padding: clamp(18px, 3vw, 32px); border-radius: 22px; background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.verdict.shown { display: block; }
.verdict-line { font-size: 1.12rem; }
.verdict-line b { font: 800 1.35rem/1.2 var(--body); letter-spacing: -0.02em; }
.verdict-line.good b { color: var(--ink); }
.verdict-line.bad b { color: var(--hivis-deep); }
.verdict-facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 16px; padding: 14px 0; border-top: 2px solid var(--text); border-bottom: 1px solid var(--line-strong); font-variant-numeric: tabular-nums; }
.verdict-facts dt { font-size: 0.84rem; color: var(--text-faint); }
.verdict-facts dd { font-weight: 800; font-size: 1.1rem; }
.findings { display: grid; margin-top: 6px; }
.findings li { display: grid; gap: 3px; padding: 14px 0 14px 18px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--hivis); margin-top: 10px; }
.findings li.look { border-left-color: #f0a400; }
.finding-where { font-size: 0.82rem; font-weight: 700; color: var(--text-faint); }
.findings b { font-weight: 750; }
.findings span:last-child { color: var(--text-soft); font-size: 0.96rem; }
.verdict-note { margin-top: 16px; font-size: 0.86rem; color: var(--text-faint); }
.samples { display: none; }
.made-file { margin-top: 4px; padding: 16px; border-radius: 12px; background: var(--night); color: #e8ebff; min-height: 96px; max-height: 280px; }
.made-name { font: 600 0.9rem/1.4 ui-monospace, 'Cascadia Mono', Consolas, monospace; overflow-wrap: anywhere; }
.tool-problems { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--hivis-tint); border: 1px solid var(--hivis-line); color: #7a2600; font-size: 0.94rem; }
.tool-about { padding: 0 0 clamp(56px, 8vw, 104px); }
.tool-about .prose { max-width: 46rem; }
.tools-list { padding: clamp(36px, 5vw, 64px) 0 clamp(72px, 10vw, 128px); }

/* ---------------------------------------------------------------- the glossary */
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: clamp(24px, 3vw, 36px); }
.letters a { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, 0.34); font-weight: 750; text-decoration: none; }
.letters a:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.terms-wrap { padding: clamp(36px, 5vw, 64px) 0 clamp(72px, 10vw, 128px); }
.terms { max-width: 60rem; border-bottom: 2px solid var(--text); }
.terms > div { display: grid; grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr); gap: 6px clamp(16px, 3vw, 44px); padding: 22px 0; border-top: 1px solid var(--line-strong); scroll-margin-top: 84px; }
.terms > div:first-child { border-top: 2px solid var(--text); }
.terms dt { font: 800 1.22rem/1.2 var(--body); letter-spacing: -0.02em; }
.terms dt small { display: block; margin-top: 4px; font: 500 0.86rem/1.3 var(--body); color: var(--text-faint); letter-spacing: 0; }
.terms dd { color: #2a2c38; line-height: 1.65; }
.terms dd a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

@media (max-width: 1040px) {
  .ask-grid, .tool { grid-template-columns: minmax(0, 1fr); }
  .tool-out { position: static; }
}
@media (max-width: 640px) {
  .field-row, .tool-row, .tool-row.three { grid-template-columns: minmax(0, 1fr); }
  .form-end .btn { width: 100%; }
  .terms > div { grid-template-columns: minmax(0, 1fr); padding: 18px 0; }
  .part-shot picture { border-radius: 10px; }
  .part-shot picture::before { height: 18px; background-size: 100% 100%; }
}
