/* Calculator-local composition: one scenario followed by three short tools. */
.tool-grid { align-items: start; }
.tool-grid [data-calculator="self-employed"] { grid-column: 1 / -1; }
[data-calculator="self-employed"] .calculator__intro,
[data-calculator="self-employed"] .calculator__disclosure { max-width: 78ch; }
[data-calculator] .calculator__result { margin-top: 1rem; }
[data-core-sources] { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
[data-core-sources]:empty,
[data-core-formula]:empty { display: none; }
.field label[data-glossary-ignore] { display: block; }
@media (min-width: 1100px) {
  body:has(.tool-grid) .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-grid [data-calculator="self-employed"] .field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-grid [data-calculator="vat"] .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.calculator [data-result-value], .calculator__formula { overflow-wrap:anywhere; }

/* Component evidence must not impose its minimum table width on the grid card. */
.tool-grid [data-calculator="self-employed"] { min-width: 0; }
[data-calculator="self-employed"] [data-core-component-wrapper] { max-width: 100%; }
[data-calculator="self-employed"] [data-core-components] :is(th,td) { padding: 8px; }
