.tax-tool { width: 100%; min-width: 0; }
.tax-choices .power-controls { align-items: flex-end; gap: .6rem 1rem; }
.tax-choices .power-controls > div { display: grid; gap: .25rem; min-width: 0; max-width: 100%; }
.tax-choices select { min-width: 0; width: 100%; }
.tax-choices .btn { margin-top: .65rem; }
#tax-result-title:focus { outline: 2px solid var(--act); outline-offset: 3px; }
.tax-result .tax-answer { font-size: clamp(1.1rem, 3vw, 1.45rem); }
#tax-outcome { container-type: inline-size; }
.tax-table-scroll { overflow-x: auto; }
.tax-table-scroll:focus-visible { outline: 2px solid var(--act); outline-offset: 2px; }
.tax-scroll-hint { display: none; }
@container (max-width: 14em) {
  .tax-table-scroll .tax-comparison { min-width: 18em; }
  .tax-scroll-hint { display: block; }
}
.tax-comparison caption { text-align: left; margin-block: .25rem; }
.tax-tool table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tax-tool :is(th, td) { border-bottom: 1px solid var(--rule); padding: .35rem .25rem; text-align: right; overflow-wrap: anywhere; }
.tax-tool th:first-child { text-align: left; }
.tax-result .tax-comparison th:first-child { width: 39%; }
.tax-result .tax-comparison td:last-child { width: 28%; }
.tax-comparison th span { display: block; color: var(--ink2); font-size: .85em; font-weight: normal; }
.tax-tool summary { cursor: pointer; margin-block: .5rem; }
@media print {
  .tax-scroll-hint, #tax-read, .tax-tool details:not([open]) { display: none; }
  #tax-outcome { container-type: normal; }
  .tax-choices .power-controls { display: flex; }
}

@media print {
  .calculator-print-button { display: none; }
  html:has(:is(.power-tool, .unit-price-tool, .basket-tool, .diet-votes-tool, .allocation-tool, .exchange-tool)) { font-size: 16px; }
  main:has(:is(.power-tool, .unit-price-tool, .basket-tool, .diet-votes-tool, .allocation-tool, .exchange-tool)) { min-height: 0; }
  :is(.power-tool, .unit-price-tool) { max-width: none; font-size: 11pt; line-height: 1.5; }
  :is(.power-tool, .unit-price-tool) .article-header { margin: 0 0 3mm; }
  :is(.power-tool, .unit-price-tool) h1 { font-size: 19pt; line-height: 1.35; margin: 0 0 2mm; }
  :is(.power-tool, .unit-price-tool) h2 { font-size: 13pt; line-height: 1.4; margin: 0 0 2mm; }
  :is(.power-tool, .unit-price-tool) .section { margin: 5mm 0 0; }
  :is(.power-tool, .unit-price-tool) p { margin: 1.5mm 0; }
  :is(.power-tool, .unit-price-tool) fieldset { padding: 2mm 3mm; }
  :is(.power-result, .unit-price-result) { margin: 4mm 0; padding: 2mm 3mm; }
  .power-mode { margin: 1mm 0; }
  .power-mode label { min-height: 0; }
  .unit-price-inputs, .power-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unit-price-result dl { margin-block: 1mm; }
  .power-result table :is(th, td), .turnout-differences div { padding-block: 1mm; }
  .calculator-print-value { font-weight: 600; overflow-wrap: anywhere; }
  :is(input, select):has(+ .calculator-print-value) { display: none !important; }
}
@media screen { .calculator-print-value { display: none; } }

.calculator-paper-link { display: none; }
@media print {
  .calculator-paper-link {
    display: block;
    float: right;
    margin: 0 0 2mm 4mm;
    break-inside: avoid;
    font: 9pt/1.25 sans-serif;
    text-align: center;
  }
  .calculator-paper-link a { display: block; color: #000; }
  .calculator-paper-link img { display: block; height: auto; margin: 0 auto 1mm; image-rendering: pixelated; }
  .exchange-tool[data-print-example-scene="payment"] #business,
  .exchange-tool[data-print-example-scene="business"] #payment { display: none; }
}
