/* My Tax Helper / Mein Steuerhelfer.
   Idea: the highlighter on your papers. Deep ink-blue text and buttons on clean white and cool grey surfaces;
   one bright highlighter yellow, used only to mark what matters: the German words you will meet on your
   documents, the refund figure, the chat you are in, and the one button that starts something new.
   Type: Bitter (a slab serif made for screens) for headings and figures, DM Sans for everything you read
   and press. Both are served from this site; nothing comes from other servers. */
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans.woff") format("woff"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Bitter"; src: url("../fonts/bitter.woff") format("woff"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #16203a;      /* text, buttons, the sidebar */
  --ink-hover: #0c1429;
  --ink-soft: #2b3a63; /* links and secondary ink */
  --paper: #ffffff;
  --mist: #f3f5f9;     /* surfaces */
  --mist-2: #e8ecf4;   /* the person's own messages, pressed states */
  --line: #dbe1eb;
  --slate: #5a6378;    /* muted text */
  --marker: #ffd84d;   /* the highlighter */
  --marker-soft: #fff1b8;
  --signal: #c0352b;
  --leaf: #12795a;
  --display: "Bitter", "Rockwell", Georgia, serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --lift: 0 1px 2px rgba(22, 32, 58, 0.06), 0 12px 32px rgba(22, 32, 58, 0.10);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--body); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--ink-soft); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
[id] { scroll-margin-top: 1rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink-soft); outline-offset: 2px; }
.wrap { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; }
.note { font-size: 0.875rem; line-height: 1.45; color: var(--slate); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the highlighter: a stroke behind the lower part of the words */
.headword, .word__term, .stamp__amount, .term {
  background-image: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 90%, transparent 90%);
  background-repeat: no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 6; padding: 0.5rem 0.8rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; font-weight: 600; }
.skip:focus { top: 0.5rem; }

/* ---- brand ---- */
.brand { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 0.6rem; align-items: center; justify-content: start; color: inherit; text-decoration: none; }
.brand__mark { grid-row: 1 / span 2; position: relative; width: 2rem; height: 2rem; background: var(--ink); border-radius: 8px; }
.brand__mark::before { content: ""; position: absolute; left: 0.45rem; right: 0.45rem; top: 0.55rem; height: 0.2rem; background: #fff; border-radius: 2px; box-shadow: 0 0.38rem 0 #fff; }
.brand__mark::after { content: ""; position: absolute; left: 0.35rem; width: 1.05rem; bottom: 0.42rem; height: 0.42rem; background: var(--marker); border-radius: 2px; transform: skewX(-12deg); }
.brand__name { font: 700 1.1875rem/1.1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.brand__gloss { font-size: 0.8125rem; line-height: 1.2; color: var(--slate); }
.brand:not(:has(.brand__gloss)) .brand__mark { grid-row: 1; }

/* ---- header ---- */
.top { position: relative; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 0.75rem 2rem; padding-block: 0.8rem; }
.nav { display: flex; gap: 1.5rem; margin-left: auto; font-size: 0.9375rem; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.signin { font: 600 0.9375rem/1.3 var(--body); color: var(--ink); white-space: nowrap; text-decoration: none; }
.signin:hover { text-decoration: underline; }
.signin--button { padding: 0; background: none; border: 0; cursor: pointer; }
.lang { padding: 0.35rem 0.8rem; font: 600 0.875rem/1.3 var(--body); color: var(--ink); text-decoration: none; border: 1.5px solid var(--line); border-radius: 999px; }
.lang:hover { border-color: var(--ink); }

/* ---- hero ---- */
.hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 5rem); background: linear-gradient(var(--mist), var(--paper) 70%); }
.headword { display: inline; font: 800 clamp(1.4rem, 5.4vw, 3.75rem)/1.08 var(--display); letter-spacing: -0.02em; hyphens: manual; overflow-wrap: break-word; }
.hero__grid { display: grid; gap: 1.5rem clamp(1.75rem, 4vw, 3.5rem); align-items: start; margin-top: clamp(1.5rem, 3.5vw, 2.5rem); }
.hero__text, .outcome { min-width: 0; max-width: 34rem; }
h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
.lead { margin-top: 1rem; font-size: 1.25rem; line-height: 1.45; color: var(--ink-soft); }
.hero__note { margin-top: 1.1rem; font-weight: 600; }
.outcome { display: grid; gap: 1rem; }
.outcome__noscript { font-weight: 600; }
.hero__stat { font-size: 0.875rem; line-height: 1.45; color: var(--slate); }

/* ---- the estimate card ---- */
.sheet { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--lift); overflow: hidden; }
.sheet__band { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.8rem; padding: 0.85rem 1.25rem; color: #fff; background: var(--ink); }
.sheet__form { font: 700 1.25rem/1.15 var(--display); }
.sheet__formtitle { font-size: 0.875rem; line-height: 1.35; color: #c9d1e6; }
.sheet__gloss { color: #fff; }
.sheet__gloss::before { content: "· "; }
.sheet__body { padding: 1.25rem 1.25rem 1.4rem; }
.sheet h2 { font-size: 1.625rem; }
.sheet__sub { margin: 0.3rem 0 1rem; font-size: 0.9375rem; color: var(--slate); }

.line { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr) minmax(0, 11.5rem); gap: 0.35rem 0.85rem; align-items: start; padding-block: 0.85rem; border-top: 1px solid var(--line); }
.line__no { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; margin-top: 0.05rem; font: 700 0.8125rem/1 var(--body); font-variant-numeric: tabular-nums; color: var(--ink); background: var(--mist); border-radius: 50%; }
.line__text, .line__field { min-width: 0; }
.term { display: inline; font: 600 0.8125rem/1.5 var(--body); color: var(--ink-soft); }
.line .term { display: table; margin-bottom: 0.15rem; }
.line label, .line__label { display: block; font-weight: 600; line-height: 1.3; }
.hint { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.4; color: var(--slate); }
.error { grid-column: 2 / -1; font-size: 0.875rem; font-weight: 600; line-height: 1.4; color: var(--signal); }
.error--form { margin-bottom: 0.75rem; }

.sheet input[type="text"], .sheet input[type="email"], .sheet input[type="password"], .sheet textarea, .sheet select, .confirm input, .confirm select {
  width: 100%; min-height: 2.85rem; padding: 0.55rem 0.75rem; font: 500 1.0625rem/1.2 var(--body); font-variant-numeric: tabular-nums;
  color: var(--ink); background: var(--mist); border: 1.5px solid transparent; border-radius: 10px; transition: border-color 0.15s, background 0.15s;
}
.sheet input:hover, .sheet select:hover, .confirm input:hover, .confirm select:hover { border-color: var(--line); }
.sheet input:focus, .sheet select:focus, .sheet textarea:focus, .confirm input:focus, .confirm select:focus { outline: none; background: var(--paper); border-color: var(--ink); }
.sheet input[aria-invalid="true"], .sheet select[aria-invalid="true"], .confirm input[aria-invalid="true"] { border-color: var(--signal); background: #fdf3f2; }
.money { position: relative; display: block; }
.money input { text-align: right; }
.sheet .money--eur input { padding-right: 2rem; }
.sheet .money--km input { padding-right: 2.8rem; }
.unit { position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--slate); pointer-events: none; }
.line--days .line__field, .line--stack .line__field { grid-column: 2 / -1; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; align-items: end; }
.line .pair__item { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.pair__item select { margin-top: 0.25rem; }
.line .check { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.2rem; padding: 0; }
.check input, .toggle input { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--ink); }

.more { border-top: 1px solid var(--line); }
.more > summary { padding: 0.85rem 0; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.more[open] > summary { padding-bottom: 0.6rem; }

.btn { display: block; width: 100%; min-height: 3rem; margin-top: 0.4rem; padding: 0.75rem 1.5rem; font: 700 1.0625rem/1.2 var(--body); color: #fff; text-align: center; background: var(--ink); border: 0; border-radius: 12px; cursor: pointer; transition: background 0.15s; }
.btn:hover { color: #fff; background: var(--ink-hover); }
.btn--link { margin-top: 0.8rem; text-decoration: none; }
.btn--quiet { color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); }
.btn--quiet:hover { color: var(--ink); background: var(--paper); border-color: var(--ink); }
.btn--inline { display: inline-block; width: auto; min-height: 2.6rem; margin-top: 0; padding: 0.5rem 1.2rem; font-size: 0.9375rem; }
.btn--danger { background: var(--signal); }
.btn--danger:hover { background: #9b2a22; }
.btn:disabled, .btn:disabled:hover { color: var(--slate); background: var(--mist); border-color: var(--line); cursor: default; }
.textbutton { padding: 0.25rem 0; font: 600 0.875rem/1.3 var(--body); color: var(--ink-soft); background: none; border: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; cursor: pointer; }
.textbutton:hover { color: var(--ink); }
.textbutton--danger, .doc .textbutton:last-child:hover { color: var(--signal); }
.textbutton:disabled { color: var(--slate); cursor: default; }

/* ---- the result ---- */
.result:empty { display: none; }
.result { padding: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.result__inner { display: grid; gap: 0.85rem; }
.result__example { font-size: 0.875rem; font-weight: 600; line-height: 1.45; color: var(--slate); }
.stamp { justify-self: start; display: grid; gap: 0.25rem; }
.stamp__label { font-size: 0.9375rem; font-weight: 600; line-height: 1.2; color: var(--slate); }
.stamp__amount { justify-self: start; font: 800 clamp(2.6rem, 9vw, 3.6rem)/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stamp--press .stamp__amount { animation: mark 0.6s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
@keyframes mark { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
.result__title { font-size: 1.25rem; }
.result__line:first-of-type { font-weight: 600; }
.slip { margin: 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; }
.slip__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.4rem 0; border-top: 1px solid var(--line); }
.slip__row:first-child { border-top: 0; }
.slip__row dd, .slip__value { margin: 0; font-weight: 600; white-space: nowrap; }
.slip__row--total { font-weight: 700; border-top: 2px solid var(--ink); }
.slip__row--total dd { font-weight: 700; }
.notice { padding: 0.65rem 0.9rem; font-weight: 600; line-height: 1.4; background: #fdf3f2; border-radius: 10px; color: var(--signal); }
.result__hint { padding: 0.65rem 0.9rem; line-height: 1.4; background: var(--marker-soft); border-radius: 10px; }

/* ---- every line that moves the number, explained ---- */
.why:empty { display: none; }
.why { margin-top: clamp(1.75rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.why__title { font-size: 1.625rem; }
.why__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); column-gap: clamp(2rem, 5vw, 4.5rem); margin: 1rem 0 0; padding: 0; list-style: none; }
.why__item { padding: 0.9rem 0 1rem; border-top: 1px solid var(--line); }
.why__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.why__label { display: block; font-weight: 600; line-height: 1.3; }
.why__amount { font: 700 1.25rem/1.2 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.why__text { max-width: 58ch; margin-top: 0.35rem; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-soft); }
.why .note { margin-top: 0.9rem; }
.why__item .slip { max-width: 26rem; margin-top: 0.5rem; font-size: 0.9375rem; }

/* ---- sections ---- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); }
.section:nth-of-type(even) { background: var(--mist); border-top: 0; }
.section h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.section h3 { font-size: 1.25rem; }
.section__lead { max-width: 62ch; margin-top: 0.8rem; font-size: 1.1875rem; line-height: 1.5; color: var(--ink-soft); }
.section .note { max-width: 62ch; margin-top: 1rem; }

.words { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); margin: 2rem 0 0; }
.word { padding: 1.1rem 0 1.25rem; border-top: 1px solid var(--line); }
.word dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem; }
.word__term { font: 700 1.375rem/1.2 var(--display); }
.word__gloss { color: var(--slate); }
.word dd { max-width: 54ch; margin: 0.45rem 0 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3rem); margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.step { counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 0.8rem; font: 800 1.25rem/1 var(--display); color: var(--ink); background: var(--marker); border-radius: 50%; }
.step p { margin-top: 0.5rem; color: var(--ink-soft); }
.step .chip { display: inline-block; margin-top: 0.85rem; padding: 0.2rem 0.65rem; font: 600 0.8125rem/1.45 var(--body); border: 1px solid currentColor; border-radius: 999px; cursor: default; background: none; }
.chip--live { color: var(--leaf); }
.chip--building { color: var(--slate); border-style: dashed; }

.fees { max-width: 54rem; margin: 2rem 0 0; padding: 0.4rem 1.5rem; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.fee { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 2rem; align-items: baseline; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.fee:first-child { border-top: 0; }
.fee h3 { font: 600 1.0625rem/1.35 var(--body); text-wrap: pretty; }
.fee__what p { max-width: 58ch; margin-top: 0.2rem; font-size: 0.9375rem; color: var(--slate); }
.fee__price { text-align: right; white-space: nowrap; }
.fee__amount { font: 800 1.75rem/1 var(--display); font-variant-numeric: tabular-nums; }
.fee__once { display: block; font-size: 0.8125rem; color: var(--slate); }

.twolists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 2rem clamp(2rem, 5vw, 4.5rem); margin-top: 1.75rem; }
.marks { display: grid; gap: 0.7rem; margin: 0.8rem 0 0; padding: 0; list-style: none; }
.marks li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.6rem; max-width: 52ch; }
.marks li::before { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; font-size: 0.75rem; font-weight: 700; border-radius: 50%; }
.marks--yes li::before { content: "\2713"; color: var(--ink); background: var(--marker); }
.marks--no li::before { content: "\2715"; color: var(--signal); background: #fbe6e4; }

.faq { max-width: 46rem; margin-top: 1.5rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { padding: 1rem 0; font: 700 1.125rem/1.3 var(--display); cursor: pointer; }
.faq summary::marker { color: var(--slate); }
.faq details p { max-width: 62ch; margin: 0 0 1.15rem; color: var(--ink-soft); }
.section__more { margin-top: 1.5rem; font-weight: 600; }

/* ---- the checklist page ---- */
.check { padding-block: clamp(2rem, 5vw, 4rem); }
.check h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
.check .note, #checklist .note { max-width: 62ch; margin-top: 0.8rem; }
.topics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4rem 0 0; padding: 0; list-style: none; font-weight: 600; }
.topics a { display: inline-block; padding: 0.3rem 0.8rem; text-decoration: none; background: var(--mist); border-radius: 999px; }
.topic { padding-top: clamp(2rem, 4vw, 3rem); }
.topic__title { padding-bottom: 0.6rem; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); border-bottom: 2px solid var(--ink); }
.ask { max-width: 50rem; padding: 1.2rem 0 1.3rem; border-bottom: 1px solid var(--line); }
.ask__term { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.8rem; font: 700 1.125rem/1.25 var(--display); }
.ask__form { font: 400 0.8125rem/1.3 var(--body); color: var(--slate); }
.ask .ask__q { margin-top: 0.35rem; font: 600 1.125rem/1.35 var(--body); text-wrap: pretty; }
.ask__facts { display: grid; gap: 0.6rem; margin: 0.7rem 0 0; }
.ask__facts dt { font: 600 0.8125rem/1.3 var(--body); color: var(--slate); }
.ask__facts dd { max-width: 64ch; margin: 0.1rem 0 0; }

/* ---- the sign-in page ---- */
.top--app .brand { margin-right: auto; }
.cta { padding: 1.1rem 1.2rem; background: var(--marker-soft); border-radius: 14px; }
.cta h2 { font-size: 1.25rem; }
.cta p { margin-top: 0.35rem; }
.page { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 6vw, 5rem); }
.page__grid { display: grid; gap: 1.5rem clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.page__text { max-width: 34rem; }
.page__text .marks { margin-top: 1.4rem; }
.page__loading { margin-top: 1rem; }
.modes { display: flex; gap: 0.3rem; margin-bottom: 1.1rem; padding: 0.25rem; background: var(--mist); border-radius: 12px; }
.mode { flex: 1; padding: 0.55rem 0.5rem; font: 600 0.9375rem/1.2 var(--body); color: var(--slate); background: none; border: 0; border-radius: 9px; cursor: pointer; }
.mode[aria-pressed="true"] { color: var(--ink); background: var(--paper); box-shadow: 0 1px 3px rgba(22, 32, 58, 0.12); }
.sheet__body > h2 + .line, .sheet__body > .error--form + .line { margin-top: 0.9rem; }
.sheet__after { margin-top: 0.9rem; }

.filepick { position: relative; display: grid; place-items: center; margin-top: 0; }
.filepick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.filepick:focus-within { outline: 3px solid var(--ink-soft); outline-offset: 2px; }
.docs__count:empty, .errors:empty { display: none; }
.errors { margin: 0.6rem 0 0; padding: 0; list-style: none; }

.account { max-width: 44rem; margin-top: clamp(2rem, 5vw, 3.5rem); padding-top: 1.25rem; border-top: 1px solid var(--line); }
.account h2 { font-size: 1.25rem; }
.account p { margin-top: 0.5rem; }

/* ---- dialogs ---- */
.confirm { width: min(100% - 2rem, 28rem); padding: 1.4rem; color: var(--ink); background: var(--paper); border: 0; border-top: 4px solid var(--signal); border-radius: 16px; box-shadow: var(--lift); }
.confirm--plain { border-top: 0; }
.confirm::backdrop { background: rgba(22, 32, 58, 0.5); }
.confirm form { display: grid; gap: 0.6rem; }
.confirm h2 { font-size: 1.375rem; margin-bottom: 0.2rem; }
.confirm label { font-weight: 600; font-size: 0.9375rem; }
.confirm__buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 0.3rem; }
.confirm__buttons .btn { margin-top: 0; padding-inline: 0.75rem; font-size: 1rem; }
.confirm__danger { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; align-items: center; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.confirm__danger .note { flex-basis: 100%; }
.confirm .note { margin-top: 0.2rem; }

/* ---- footer, legal page, preview bar ---- */
.foot { padding-block: 2.5rem 3rem; font-size: 0.9375rem; color: #c9d1e6; background: var(--ink); }
.foot a { color: #fff; }
.foot__in { display: grid; gap: 1rem; }
.foot__claim { max-width: 62ch; font-weight: 600; color: #fff; }
.foot__legal { display: grid; gap: 0.6rem; max-width: 62ch; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.foot__legal h2 { font-size: 1.0625rem; color: #fff; }
.legal { display: grid; gap: 1rem; max-width: 44rem; padding-block: clamp(2rem, 5vw, 4rem); }
.legal h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.previewbar { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem var(--gutter); font-size: 0.875rem; color: #fff; background: var(--ink); }
.previewbar span { margin-right: 0.4rem; }
.previewbar button { padding: 0.15rem 0.7rem; font: inherit; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, 0.65); border-radius: 999px; cursor: pointer; }
.previewbar button[aria-pressed="true"] { color: var(--ink); background: #fff; border-color: #fff; }
.previewbar button:focus-visible { outline-color: #fff; }

/* ---- wider and narrower screens (public pages) ---- */
@media (min-width: 60rem) {
  .page__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; grid-template-areas: "text sheet" "outcome sheet"; }
  .hero__text { grid-area: text; }
  .hero__grid > .sheet { grid-area: sheet; }
  .outcome { grid-area: outcome; position: sticky; top: 1.25rem; }
}
@media (max-width: 52rem) {
  .nav { display: none; }
  .lang, .signin { margin-left: auto; }
  .signin + .lang { margin-left: 0; }
}
@media (max-width: 34rem) {
  .brand__gloss { display: none; }
  .brand .brand__mark { grid-row: 1; }
  .top__in { column-gap: 0.75rem; }
  .line { grid-template-columns: 1.75rem minmax(0, 1fr); }
  .line__field { grid-column: 2; }
  .fees { padding-inline: 1rem; }
  .fee { grid-template-columns: minmax(0, 1fr); }
  .fee__price { text-align: left; }
  .fee__once { display: inline; margin-left: 0.4rem; }
  .lead { font-size: 1.125rem; }
}

/* ==== the workspace: chats on the left, the conversation, documents on the right ==== */
body:has(> .app) { overflow: hidden; background: var(--paper); }
.app { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr) 23rem; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "side bar bar" "side talk pane"; height: 100dvh; }
.app__loading { grid-area: 1 / 1 / -1 / -1; padding: 2rem var(--gutter); }
.side { grid-area: side; }
.appbar { grid-area: bar; }
.talk { grid-area: talk; }
.pane { grid-area: pane; }

.iconbutton { display: inline-grid; place-items: center; flex: none; width: 2rem; height: 2rem; padding: 0; font: 500 1.25rem/1 var(--body); color: inherit; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.iconbutton:hover { background: var(--mist-2); }

/* left: chats and projects, on ink */
.side { display: flex; flex-direction: column; min-height: 0; color: #e7ebf5; background: var(--ink); }
.side :focus-visible { outline-color: var(--marker); }
.side__top { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem 0.75rem; }
.brand--side .brand__mark { background: #fff; }
.brand--side .brand__mark::before { background: var(--ink); box-shadow: 0 0.38rem 0 var(--ink); }
.brand--side .brand__name { color: #fff; font-size: 1.0625rem; }
.side__close { display: none; color: #fff; }
.side .iconbutton:hover { background: rgba(255, 255, 255, 0.1); }
.newchat { display: flex; align-items: center; gap: 0.5rem; margin: 0.25rem 1rem 0.75rem; padding: 0.65rem 0.9rem; font: 700 0.9375rem/1.2 var(--body); color: var(--ink); background: var(--marker); border: 0; border-radius: 12px; cursor: pointer; transition: filter 0.15s; }
.newchat span { font-size: 1.25rem; line-height: 1; }
.newchat:hover { filter: brightness(1.05); }
.side__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 0.5rem 1rem; }
.side__group + .side__group { margin-top: 1rem; }
.side__head { display: flex; align-items: center; justify-content: space-between; padding: 0.25rem 0.5rem 0.25rem 0.6rem; }
.side__head h3 { font: 600 0.8125rem/1.3 var(--body); letter-spacing: 0; color: #9aa5c2; }
.side__head .iconbutton { width: 1.6rem; height: 1.6rem; font-size: 1.1rem; color: #c3cbe0; }
.side__empty { padding: 0.35rem 0.6rem; font-size: 0.875rem; color: #8d98b6; list-style: none; }
.chats, .projects { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; margin: 0; padding: 0; list-style: none; }
.chatrow { position: relative; display: flex; align-items: center; border-radius: 9px; }
.chatrow:hover, .chatrow:focus-within { background: rgba(255, 255, 255, 0.07); }
.chatrow__open { flex: 1; min-width: 0; padding: 0.5rem 0.6rem; overflow: hidden; font: 500 0.9375rem/1.3 var(--body); color: inherit; text-align: left; text-overflow: ellipsis; white-space: nowrap; background: none; border: 0; border-radius: 9px; cursor: pointer; }
.chatrow__open[aria-current="page"] { color: #fff; font-weight: 600; }
.chatrow:has([aria-current="page"]) { background: rgba(255, 255, 255, 0.12); box-shadow: inset 3px 0 0 var(--marker); }
.chatrow__more { width: 1.8rem; height: 1.8rem; margin-right: 0.2rem; color: #c3cbe0; opacity: 0; }
.chatrow:hover .chatrow__more, .chatrow:focus-within .chatrow__more, .chatrow:has([aria-current="page"]) .chatrow__more { opacity: 1; }
@media (hover: none) { .chatrow__more { opacity: 1; } }
.project__box > summary { list-style: none; }
.project__box > summary::-webkit-details-marker { display: none; }
.project__name { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.2rem 0.4rem 0.6rem; font: 600 0.9375rem/1.3 var(--body); border-radius: 9px; cursor: pointer; }
.project__name:hover { background: rgba(255, 255, 255, 0.07); }
.project__name::before { content: ""; flex: none; width: 0.45rem; height: 0.45rem; border-right: 2px solid #9aa5c2; border-bottom: 2px solid #9aa5c2; transform: rotate(-45deg); transition: transform 0.15s; }
.project__box[open] > .project__name::before { transform: rotate(45deg); }
.project__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project__count { font-size: 0.75rem; font-weight: 600; color: #9aa5c2; }
.project__more { width: 1.8rem; height: 1.8rem; color: #c3cbe0; }
.chats--inside { margin-left: 0.85rem; padding-left: 0.4rem; border-left: 1px solid rgba(255, 255, 255, 0.14); }

/* centre: the conversation */
.talk { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.appbar { position: relative; z-index: 3; display: flex; align-items: center; gap: 0.6rem; min-height: 3.75rem; padding: 0.5rem 1rem 0.5rem var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); }
.appbar__title { flex: 1; min-width: 0; overflow: hidden; font-size: 1.125rem; text-overflow: ellipsis; white-space: nowrap; }
.appbar__options { color: var(--slate); }
.barbutton { display: none; align-items: center; gap: 0.35rem; padding: 0.4rem 0.8rem; font: 600 0.875rem/1.2 var(--body); color: var(--ink); background: var(--mist); border: 0; border-radius: 999px; cursor: pointer; }
.barbutton span:empty { display: none; }
.barbutton span { min-width: 1.3rem; padding: 0 0.35rem; font-size: 0.75rem; line-height: 1.3rem; color: var(--ink); background: var(--marker); border-radius: 999px; }
.account-menu { position: relative; flex: none; }
.avatar { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; font: 700 1rem/1 var(--display); color: #fff; background: var(--ink); border: 3px solid var(--paper); border-radius: 50%; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.avatar[aria-expanded="true"], .avatar:hover { box-shadow: 0 0 0 2px var(--marker); }
.menu { position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 6; display: grid; gap: 0.75rem; width: min(20rem, calc(100vw - 1.5rem)); padding: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--lift); }
.menu__title { font-size: 1rem; }
.menu__email { margin-top: -0.5rem; overflow: hidden; font-size: 0.875rem; color: var(--slate); text-overflow: ellipsis; white-space: nowrap; }
.menu__credits { display: grid; gap: 0.6rem; justify-items: start; padding: 0.8rem; background: var(--mist); border-radius: 12px; }
.menu__purchases { margin: 0; padding: 0 0 0 1rem; font-size: 0.8125rem; color: var(--slate); }
.menu__links { display: grid; justify-items: start; gap: 0.1rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.menu__link { padding: 0.3rem 0; font: 500 0.9375rem/1.3 var(--body); color: var(--ink); background: none; border: 0; text-decoration: none; cursor: pointer; }
.menu__link:hover { text-decoration: underline; }
.menu__link--danger { color: var(--signal); }
.btn--marker { color: var(--ink); background: var(--marker); }
.btn--marker:hover { color: var(--ink); background: #ffcf1f; }
.paid { position: absolute; top: 0.75rem; left: 50%; z-index: 2; width: min(calc(100% - 2rem), 40rem); padding: 0.65rem 1rem; font-weight: 600; text-align: center; background: var(--marker-soft); border-radius: 12px; transform: translateX(-50%); box-shadow: var(--lift); }
.offers { display: grid; gap: 0.5rem; margin: 0.4rem 0 0; padding: 0; border: 0; }
.offer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.15rem 0.7rem; align-items: baseline; padding: 0.75rem 0.9rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.offer:has(input:checked) { background: var(--marker-soft); border-color: var(--ink); }
.offer input { accent-color: var(--ink); }
.offer__name { font-weight: 700; }
.offer__price { font: 800 1.125rem/1 var(--display); font-variant-numeric: tabular-nums; }
.offer__what { grid-column: 2 / -1; font-size: 0.875rem; font-weight: 400; color: var(--slate); }
.buy { width: min(100% - 2rem, 32rem); }
.talk__scroll { overflow-y: auto; padding: 1.5rem var(--gutter) 0.75rem; scroll-behavior: smooth; }
.talk .chat, .talk .examples, .talk__foot > * { width: min(100%, 46rem); margin-inline: auto; }
.chat { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.msg { display: grid; gap: 0.25rem; max-width: 100%; }
.msg__who { font: 600 0.8125rem/1.2 var(--body); color: var(--slate); }
.msg--helper .msg__who::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.4rem; vertical-align: 0.05em; background: var(--marker); border-radius: 2px; transform: skewX(-12deg); }
.msg__text { font-size: 1.0625rem; line-height: 1.6; overflow-wrap: anywhere; }
p.msg__text { white-space: pre-wrap; }
.msg__text > * + * { margin-top: 0.6rem; }
.msg__text ul, .msg__text ol { margin: 0; padding-left: 1.3rem; }
.msg__text li + li { margin-top: 0.3rem; }
.msg__text strong { font-weight: 700; }
.msg--user { justify-self: end; max-width: 85%; padding: 0.65rem 1rem; background: var(--mist-2); border-radius: 18px 18px 6px 18px; }
.msg--user .msg__who { display: none; }
.msg--event { justify-self: center; overflow-wrap: anywhere; padding: 0.3rem 0.85rem; font-size: 0.875rem; color: var(--slate); text-align: center; background: var(--mist); border-radius: 999px; }
.msg--waiting { opacity: 0.75; }
.msg--waiting .msg__text::after, .msg--event.msg--waiting::after { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-left: 0.45em; background: var(--ink-soft); border-radius: 50%; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.2; } }
.msg__read { font-size: 0.8125rem; color: var(--slate); }
.choices, .examples { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; list-style: none; }
.examples { margin-top: 1.25rem; }
.chip { padding: 0.5rem 0.95rem; font: 500 0.9375rem/1.3 var(--body); color: var(--ink); text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; transition: border-color 0.15s; }
.chip:hover { border-color: var(--ink); }
.chip--year { padding: 0.25rem 0.75rem; font-size: 0.8125rem; font-weight: 600; }
.chip[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.talk__foot { padding: 0.5rem var(--gutter) 0.85rem; }
.talk__foot .errors { margin-bottom: 0.4rem; }
.talk__foot .notice { margin-bottom: 0.5rem; }
.composer { display: flex; align-items: flex-end; gap: 0.4rem; padding: 0.45rem; background: var(--paper); border: 1.5px solid var(--line); border-radius: 18px; box-shadow: var(--lift); }
.composer:focus-within { border-color: var(--ink); }
.composer textarea { flex: 1; min-height: 2.5rem; max-height: 200px; padding: 0.5rem 0.4rem; font: inherit; color: inherit; background: none; border: 0; resize: none; outline: none; }
.composer textarea::placeholder { color: #8a92a6; }
.composer__attach { position: relative; display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; color: var(--ink); background: var(--mist); border-radius: 12px; cursor: pointer; }
.composer__attach:hover { background: var(--mist-2); }
.composer__attach:focus-within { outline: 3px solid var(--ink-soft); }
.composer__attach input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.composer__plus { font: 400 1.6rem/1 var(--body); }
.composer__send { flex: none; min-height: 2.5rem; padding: 0 1.15rem; font: 700 0.9375rem/1 var(--body); color: #fff; background: var(--ink); border: 0; border-radius: 12px; cursor: pointer; }
.composer__send:hover { background: var(--ink-hover); }
.composer__send:disabled { color: var(--slate); background: var(--mist-2); cursor: default; }
.talk__note { margin-top: 0.5rem; text-align: center; font-size: 0.8125rem; }
.talk__drop { position: absolute; inset: 0.75rem; z-index: 2; display: grid; place-items: center; font: 700 1.25rem/1.3 var(--display); color: var(--ink); background: rgba(255, 241, 184, 0.92); border: 2px dashed var(--ink); border-radius: 18px; pointer-events: none; }

/* right: documents */
.pane { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; background: var(--mist); border-left: 1px solid var(--line); }
.pane__top { display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; padding: 0.5rem 1.1rem; border-bottom: 1px solid var(--line); }
.pane__top h2 { font-size: 1.125rem; }
.pane__close { display: none; }
.pane__body { overflow-y: auto; padding: 1rem 1.1rem 2rem; }
.pane__body > * + * { margin-top: 0.75rem; }
.pane .filepick { min-height: 2.75rem; margin-top: 0; padding-block: 0.55rem; font-size: 0.9375rem; background: var(--paper); }
.years { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.docs__empty { padding: 0.9rem 1rem; font-size: 0.9375rem; background: var(--paper); border: 1px dashed var(--line); border-radius: 12px; }
.tree { display: grid; gap: 0.5rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.tree:empty { display: none; }
.group__box { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.group__box > summary { list-style: none; }
.group__box > summary::-webkit-details-marker { display: none; }
.group__name { display: flex; align-items: center; gap: 0.55rem; padding: 0.6rem 0.8rem; font: 700 0.9375rem/1.3 var(--body); cursor: pointer; }
.group__name::before { content: ""; flex: none; width: 0.45rem; height: 0.45rem; border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate); transform: rotate(-45deg); transition: transform 0.15s; }
.group__box[open] > .group__name::before { transform: rotate(45deg); }
.group__label { flex: 1; min-width: 0; }
.group__count { min-width: 1.5rem; padding: 0 0.45rem; font-size: 0.75rem; line-height: 1.4rem; text-align: center; color: var(--ink); background: var(--marker); border-radius: 999px; }
.group--empty .group__name { font-weight: 500; color: var(--slate); }
.leaves { margin: 0; padding: 0 0.6rem 0.6rem 1.35rem; list-style: none; }
.leaf { position: relative; padding: 0.35rem 0 0.35rem 0.75rem; border-left: 1px solid var(--line); }
.leaf::before { content: ""; position: absolute; left: 0; top: 1rem; width: 0.5rem; border-top: 1px solid var(--line); }
.leaf__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.6rem; font-size: 0.875rem; font-weight: 600; }
.leaf__label { flex: 1; min-width: 0; }
.leaf__facts { font-size: 0.75rem; font-weight: 500; color: var(--slate); font-variant-numeric: tabular-nums; }
.leaf--empty .leaf__name { font-weight: 400; color: var(--slate); }
.docs { display: grid; gap: 0.35rem; margin: 0.35rem 0 0; padding: 0; list-style: none; }
.doc { display: grid; gap: 0.15rem; padding: 0.5rem 0.65rem; background: var(--mist); border-radius: 9px; }
.doc__name { font-size: 0.9375rem; font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.doc__name:hover { text-decoration: underline; }
.doc__meta, .doc__actions { display: flex; flex-wrap: wrap; gap: 0.1rem 0.75rem; font-size: 0.8125rem; color: var(--slate); font-variant-numeric: tabular-nums; }
.doc__amount { font-weight: 600; color: var(--ink); }
.toggle { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--slate); cursor: pointer; }
.case { padding: 0.7rem 0.85rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.case summary { font: 700 0.9375rem/1.3 var(--body); cursor: pointer; }
.case__list { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.875rem; }
.case__list li + li { margin-top: 0.3rem; }
.elster { display: grid; gap: 0.5rem; justify-items: start; padding: 0.9rem 1rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-size: 0.875rem; }
.elster h3 { display: flex; align-items: center; gap: 0.5rem; font: 700 1rem/1.3 var(--body); letter-spacing: 0.02em; }
.elster__status { padding: 0.15rem 0.6rem; font-weight: 600; background: var(--marker-soft); border-radius: 999px; }
.elster__wanted { color: var(--leaf); font-weight: 600; }
.scrim { display: none; }

/* a laptop: the documents become a drawer */
@media (max-width: 80rem) {
  .app { grid-template-columns: 16rem minmax(0, 1fr); grid-template-areas: "side bar" "side talk"; }
  .pane { position: fixed; inset: 0 0 0 auto; z-index: 5; display: none; width: min(100%, 24rem); box-shadow: var(--lift); }
  .pane--open { display: grid; }
  .pane__close { display: inline-grid; }
  .barbutton--pane { display: inline-flex; }
  .scrim:not([hidden]) { position: fixed; inset: 0; z-index: 4; display: block; background: rgba(22, 32, 58, 0.45); }
}
/* a tablet or phone: the chats become a drawer too */
@media (max-width: 52rem) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bar" "talk"; }
  .side { position: fixed; inset: 0 auto 0 0; z-index: 5; display: none; width: min(88%, 19rem); box-shadow: var(--lift); }
  .side--open { display: flex; }
  .side__close { display: inline-grid; }
  .barbutton--side { display: inline-flex; }
  .appbar { gap: 0.4rem; padding-inline: 0.6rem; }
  .appbar__title { font-size: 1rem; }
  .talk__scroll { padding-inline: 0.9rem; }
  .talk__foot { padding-inline: 0.6rem; }
  .msg--user { max-width: 92%; }
}

@media (prefers-reduced-motion: reduce) {
  html, .talk__scroll { scroll-behavior: auto; }
  .stamp--press .stamp__amount, .msg--waiting .msg__text::after, .msg--event.msg--waiting::after { animation: none; }
  .project__name::before, .group__name::before { transition: none; }
}

/* Downloads: prepared documents, and what the tax office may ask */
.downloads { display: grid; gap: 0.6rem; padding: 0.9rem 1rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.downloads h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; font: 700 1rem/1.3 var(--body); }
.downloads__year { padding: 0 0.5rem; font-size: 0.75rem; font-weight: 700; background: var(--marker); border-radius: 999px; }
.makers, .outputs { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.maker { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem; align-items: center; padding: 0.55rem 0.65rem; background: var(--mist); border-radius: 10px; }
.maker__name { font-size: 0.875rem; font-weight: 700; }
.maker .note { font-size: 0.8125rem; }
.btn--small { min-height: 2.2rem; padding: 0.35rem 0.85rem; font-size: 0.8125rem; }
.downloads__made { margin: 0.4rem 0 0; font: 700 0.875rem/1.3 var(--body); }
.output { display: grid; gap: 0.1rem; padding: 0.45rem 0.65rem; border: 1px solid var(--line); border-radius: 10px; }
.output__name { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.output .textbutton { justify-self: start; font-size: 0.8125rem; }
.msg__prepared { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.chip--download { text-decoration: none; background: var(--marker-soft); border-color: var(--marker); }
.asks__list { margin: 0.2rem 0 0; }
.asks__list dt { margin-top: 0.65rem; font-size: 0.875rem; font-weight: 600; }
.asks__list dd { margin: 0.15rem 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--ink-soft); }

/* the sign-up box under the estimate */
.cta__asks { display: grid; gap: 0.35rem; margin: 0.6rem 0 0; padding-left: 1.15rem; }
.cta__asks li::marker { color: var(--ink-soft); }
.cta__signin { margin-top: 0.6rem; text-align: center; font-size: 0.9375rem; font-weight: 600; }

/* the language switch in the workspace */
.lang--app { flex: none; }
.lang__short { display: none; }
@media (max-width: 52rem) {
  .lang--app { padding-inline: 0.55rem; }
  .lang__long { display: none; }
  .lang__short { display: inline; }
}

/* tax topics: cards on the landing page, the topics page */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.9rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.card a { display: block; height: 100%; padding: 1.1rem 1.15rem 1.2rem; color: var(--ink); text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; transition: border-color 0.15s; }
.card a:hover { border-color: var(--ink); }
.card h3 { font-size: 1.0625rem; }
.card p { margin-top: 0.4rem; font-size: 0.9375rem; color: var(--slate); }
.theme__intro { max-width: 66ch; margin-top: 0.9rem; font-size: 1.0625rem; line-height: 1.55; color: var(--ink-soft); }
.theme__asks { margin-top: 1.2rem; font: 600 0.875rem/1.3 var(--body); color: var(--slate); }
.theme__list { display: grid; gap: 0.7rem; max-width: 66ch; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.theme__list li { padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.theme__term { display: inline-block; margin-bottom: 0.15rem; text-decoration: none; }
.theme__ask { display: block; font-weight: 600; }
.theme__effect { display: block; font-size: 0.9375rem; color: var(--ink-soft); }
.price__how { font-size: 1rem; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--marker); }
.msg__used { font-size: 0.75rem; color: var(--slate); }

/* the year file */
.yearfile { display: grid; gap: 0.4rem; padding: 0.9rem 1rem 1rem; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--marker); border-radius: 12px; }
.yearfile h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; font: 700 1rem/1.3 var(--body); }
.yf__head { margin: 0.5rem 0 0; font: 600 0.8125rem/1.3 var(--body); color: var(--slate); }
.yf__list { display: grid; gap: 0.35rem; margin: 0.25rem 0 0; padding: 0; list-style: none; font-size: 0.875rem; }
.yf__list li { display: grid; gap: 0.1rem; }
.yf__list--done li::before { content: "\2713  "; color: var(--leaf); font-weight: 700; }
.yf__list--done li { display: block; }
.yf__meta { font-size: 0.75rem; font-weight: 600; color: var(--slate); }
.yf__todo .toggle { align-items: flex-start; color: var(--ink); }
.yf__closed { color: var(--slate); text-decoration: line-through; }
.case__group { margin-top: 0.5rem; margin-left: -1.1rem; list-style: none; font-weight: 700; font-size: 0.8125rem; color: var(--slate); }
.case__group:first-child { margin-top: 0; }
.linkbutton { padding: 0; text-align: left; background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }

/* progress of a year, the facts ledger */
.yf__percent { font-size: 0.8125rem; font-weight: 700; }
.yf__bar { height: 0.45rem; overflow: hidden; background: var(--mist-2); border-radius: 999px; }
.yf__fill { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.yf__steps { display: grid; gap: 0.15rem; margin: 0.3rem 0 0; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--slate); }
.yf__step::before { content: "\25CB  "; }
.yf__step--done { color: var(--ink); }
.yf__step--done::before { content: "\2713  "; color: var(--leaf); font-weight: 700; }
.yf__due { margin-left: 0.4rem; padding: 0 0.4rem; font-size: 0.75rem; font-weight: 600; background: var(--marker-soft); border-radius: 999px; }
.facts { display: grid; gap: 0.4rem; padding: 0.9rem 1rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.facts h3 { font: 700 1rem/1.3 var(--body); }
.facts__list { display: grid; gap: 0.35rem; margin: 0.2rem 0 0; padding: 0; list-style: none; font-size: 0.875rem; }
.fact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.7rem; }
.fact__label { flex: 1; min-width: 10rem; }
.fact__amount { font-weight: 700; font-variant-numeric: tabular-nums; }
