/* Feature layout only. Controls, typography, colors and spacing use investment-ui. */
.overseas-stock-tax [hidden] { display: none !important; }
.tax-form, .tax-form > section { min-width: 0; }
.tax-wide { grid-column: 1 / -1; }
.tax-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
[data-total-input] { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,3fr); gap: 0 var(--investment-item-space); }
[data-total-input] > p { grid-column: 1 / -1; }
.tax-account-row { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,2fr) auto; gap: 0 var(--investment-paragraph-space); align-items: start; }
.tax-account-row + .tax-account-row { margin-top: var(--investment-item-space); }
.investment-calculator .investment-ui-input-panel--grouped .tax-account-row > label { display: grid; grid-template-rows: subgrid; grid-row: span 4; }
.tax-account-row > button { grid-column: 4; grid-row: 2; align-self: start; margin-top: var(--investment-control-space); }
.tax-account-actions { display: grid; justify-items: start; gap: var(--investment-paragraph-space); margin-top: var(--investment-item-space); }
.tax-account-actions > .investment-ui-field-note { margin: 0; }
.tax-simulation-inputs { margin-top: var(--investment-item-space); margin-bottom: var(--investment-item-space); }
.tax-source-list { padding-left: 1.2em; color: var(--modern-muted); overflow-wrap: anywhere; }
.tax-source-list li + li { margin-top: var(--investment-paragraph-space); }
.tax-source-list small { display: block; }
.tax-related { display: flex; flex-wrap: wrap; gap: var(--investment-item-space); }
@media (max-width: 820px) {
  [data-total-input], .tax-account-row { grid-template-columns: minmax(0,1fr); }
  [data-total-input] { row-gap: var(--investment-paragraph-space); }
  [data-total-input] > .investment-ui-field-note { margin-top: 0; }
  .tax-account-row { row-gap: var(--investment-paragraph-space); }
  .investment-calculator .investment-ui-input-panel--grouped .tax-account-row > label { display: block; grid-row: auto; }
  .tax-account-row > button { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 0; }
}
