.tax-calculator { background: #1e1b24; scroll-margin-top: 90px; }
.tax-calculator [hidden] { display: none !important; }
.tax-calculator .section-heading h2 { line-height: 1.25; }
.tax-workspace { max-width: 940px; margin: 48px auto 0; border: 1px solid #50475e; border-radius: 24px; background: #18181b; overflow: clip; }
.tax-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #50475e; }
.tax-tabs button { padding: 23px 20px; font-size: 21px; font-weight: 600; color: #c8bed8; border-radius: 0; }
.tax-tabs button[aria-selected=true] { background: #bba8ff; color: #1b1527; }
.tax-tabs button:hover:not([aria-selected=true]) { background: #292331; color: #fff; }
.tax-scope { text-align: center; padding: 25px 20px 0; font-size: 14px; color: #c7bdcf; }
.tax-progress { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 25px 24px 32px; }
.tax-progress span { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; color: #b4aabf; white-space: nowrap; }
.tax-progress b { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #73657f; border-radius: 50%; font-size: 13px; font-weight: 600; }
.tax-progress [aria-current=step] { color: #d0bfff; font-weight: 600; }
.tax-progress [aria-current=step] b { background: #bba8ff; color: #19151f; border-color: #bba8ff; }
.tax-progress .complete { color: #d0bfff; }
.tax-progress i { width: 42px; height: 1px; background: #554b60; }
.tax-stage,.tax-result { padding: 14px 56px 42px; }
.tax-stage h3,.tax-result h3 { scroll-margin-top: 115px; outline: none; font-size: clamp(25px,3vw,32px); font-weight: 600; line-height: 1.35; letter-spacing: -.025em; }
.tax-stage-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.tax-reset { font-size: 14px; color: #c1b1da; text-decoration: underline; text-underline-offset: 4px; flex-shrink: 0; padding: 8px 0 8px 12px; }
.tax-stage-description { color: #c7bdcf; font-size: 16px; line-height: 1.65; margin-bottom: 24px; }
.tax-group-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; }
.tax-asset-group { border-bottom: 1px solid #39333f; }
.tax-group-head h4 { font-size: 19px; font-weight: 550; letter-spacing: -.015em; }
.tax-choice { display: flex; gap: 6px; flex-shrink: 0; }
.tax-choice button { min-width: 68px; min-height: 42px; padding: 8px 15px; border: 1px solid #63576d; border-radius: 24px; font-size: 15px; color: #d8cde4; }
.tax-choice button[aria-pressed=true] { background: #bba8ff; border-color: #bba8ff; color: #20182c; }
.tax-choice button:hover:not([aria-pressed=true]) { border-color: #c8b7ff; }
.tax-group-content { padding-bottom: 24px; }
.tax-input-field { margin: 24px 0; }
.tax-input-field:first-child { margin-top: 0; }
.tax-input-field label,.tax-select-field>label { display: block; color: #eee7f6; margin-bottom: 10px; font-size: 16px; line-height: 1.5; }
.tax-money { display: flex; align-items: center; gap: 12px; border: 1px solid #74647f; border-radius: 12px; padding: 0 18px; background: #222026; }
.tax-money:focus-within { outline: 2px solid #cbb8ff; outline-offset: 2px; }
.tax-money:has([aria-invalid=true]) { border-color: #ffa5ad; }
.tax-money input { width: 100%; min-width: 0; height: 58px; padding: 12px 0; border: 0; background: transparent; color: #fff; text-align: right; font-size: 23px; font-weight: 550; font-variant-numeric: tabular-nums; outline: none; }
.tax-money input::placeholder { color: #a69aae; opacity: 1; }
.tax-money>span { color: #d3c6df; font-size: 16px; }
.tax-amount-tools { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 44px; }
.tax-amount-tools output { color: #c8b5ff; font-size: 14px; }
.tax-amount-tools>div { display: flex; gap: 5px; margin-left: auto; }
.tax-amount-tools button { font-size: 13px; color: #d2c4e2; padding: 8px; min-height: 36px; }
.tax-amount-tools button:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tax-hint { color: #c0b4cb; font-size: 14px; line-height: 1.65; margin: 4px 0 0; word-break: keep-all; }
.tax-hint:empty { display: none; }
.tax-subheading { font-size: 23px; font-weight: 600; margin: 40px 0 0; }
.tax-advanced { border-block-end: 1px solid #4c4056; margin-top: 12px; }
.tax-advanced>summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 22px 0; color: #d0bfff; font-size: 16px; font-weight: 550; list-style: none; }
.tax-advanced>summary::-webkit-details-marker { display: none; }
.tax-advanced>summary>span { font-size: 25px; font-weight: 400; }
.tax-advanced[open]>summary>span { transform: rotate(45deg); }
.tax-advanced-body { padding: 8px 0 24px; }
.tax-advanced-body>.tax-hint { margin-bottom: 25px; }
.tax-count-field { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid #39333f; }
.tax-count-field label { font-size: 17px; color: #eee7f6; }
.tax-stepper { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.tax-stepper button { border: 1px solid #74647f; border-radius: 50%; width: 36px; height: 36px; color: #e7dbf5; font-size: 22px; }
.tax-stepper input { width: 58px; min-width: 0; background: #222026; color: #fff; border: 1px solid #74647f; border-radius: 8px; padding: 8px 3px; text-align: center; font-size: 18px; -moz-appearance: textfield; }
.tax-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tax-stepper>span { color: #c0b4cb; }
.tax-check { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0; cursor: pointer; font-size: 16px; line-height: 1.55; color: #eee7f6; }
.tax-check input { accent-color: #bba8ff; width: 20px; height: 20px; margin: 3px 0 0; flex-shrink: 0; }
.tax-check small { display: block; margin-top: 5px; font-size: 14px; color: #c0b4cb; }
.tax-select-field { margin: 30px 0; }
.tax-select-field select { width: 100%; border: 1px solid #74647f; border-radius: 12px; background: #222026; color: #fff; padding: 16px; font-size: 16px; }
.tax-select-field select option { background: #222026; }
.tax-error { color: #ffb9bf; font-size: 15px; line-height: 1.6; margin-top: 18px; }
.tax-error:empty { display: none; }
.tax-stage-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 34px; }
.tax-stage-actions .button { min-height: 50px; font-size: 16px; padding: 14px 25px; }
.tax-back { color: #ddd0eb; border: 1px solid #74647f; }
.tax-footer-note { border-top: 1px solid #39333f; padding: 19px 24px; font-size: 14px; text-align: center; color: #c0b4cb; }
.tax-method { max-width: 940px; margin: 24px auto 0; }
.tax-method>summary { padding: 14px 0; font-size: 16px; cursor: pointer; color: #d0bfff; }
.tax-method>div { color: #c8bdd4; font-size: 14px; line-height: 1.75; }
.tax-method p { margin-bottom: 12px; }
.tax-source-links { display: flex; flex-wrap: wrap; gap: 10px 25px; margin: 20px 0; }
.tax-source-links a { color: #d0bfff; text-decoration: underline; text-underline-offset: 4px; }
.tax-method table { width: 100%; text-align: left; border-collapse: collapse; }
.tax-method caption { text-align: left; color: #eee7f6; font-size: 17px; margin: 16px 0; }
.tax-method th,.tax-method td { padding: 12px 8px; border-bottom: 1px solid #52465e; }
.tax-method th { color: #eee7f6; font-weight: 500; }
.tax-result-heading { text-align: center; padding: 18px 0 32px; }
.tax-result-heading p { color: #c7bdcf; font-size: 15px; margin-top: 12px; }
.tax-result-amount { display: block; font-size: clamp(29px,4.4vw,44px); line-height: 1.3; color: #cbb8ff; margin-top: 24px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; word-break: keep-all; }
.tax-breakdown h4,.tax-result-notes h4 { font-size: 20px; margin: 14px 0; }
.tax-result-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: 22px; padding: 17px 0; border-bottom: 1px solid #433849; font-size: 17px; color: #f0e6fa; }
.tax-result-row dd { text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tax-result-sub { border: 0; padding: 9px 0; font-size: 15px; color: #c3b5d0; }
.tax-breakdown details { border-block: 1px solid #55485f; padding: 20px 0; margin: 18px 0; }
.tax-breakdown summary { cursor: pointer; color: #dacbff; font-size: 18px; }
.tax-breakdown summary strong { float: right; font-variant-numeric: tabular-nums; font-size: 18px; }
.tax-breakdown details dl { margin-top: 18px; }
.tax-result-note { font-size: 14px; color: #c0b4cb; margin-top: 10px; }
.tax-result-notes { background: #292330; padding: 20px 24px; border-radius: 12px; margin: 30px 0; }
.tax-result-notes ul { padding-left: 20px; font-size: 15px; color: #d8cce3; line-height: 1.7; }
.tax-result-notes li+li { margin-top: 10px; }
.tax-result-disclaimer { margin-top: 25px; }
.tax-result-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 24px; margin-top: 30px; }
.tax-secondary { font-size: 15px; color: #d0bfff; text-decoration: underline; text-underline-offset: 4px; padding: 12px 0; }
.tax-copy-status { text-align: center; font-size: 14px; color: #d0bfff; margin-top: 10px; }
.tax-consult { display: block; text-align: center; font-size: 16px; color: #ece2f8; margin: 20px 0 0; text-decoration: underline; text-underline-offset: 5px; }
.tax-calculator :focus-visible { outline: 2px solid #cbb8ff; outline-offset: 4px; }
.tax-calculator ::selection { background: #c8b5ff; color: #21192b; }
.tax-calculator input { caret-color: #cab5ff; }
@media(max-width:767px) {
  .tax-workspace { margin-top: 30px; border-radius: 18px; }
  .tax-tabs button { padding: 20px 10px; font-size: 18px; }
  .tax-stage,.tax-result { padding: 10px 22px 30px; }
  .tax-stage-heading { gap: 8px; }
  .tax-stage h3,.tax-result h3 { font-size: 23px; }
  .tax-reset { font-size: 13px; padding-left: 0; }
  .tax-scope { font-size: 12px; padding-top: 20px; }
  .tax-progress { gap: 9px; padding: 23px 14px 28px; }
  .tax-progress span { font-size: 12px; gap: 5px; }
  .tax-progress b { width: 21px; height: 21px; font-size: 11px; }
  .tax-progress i { width: 14px; }
  .tax-group-head { gap: 12px; padding: 22px 0; }
  .tax-group-head h4 { font-size: 17px; }
  .tax-choice { gap: 5px; }
  .tax-choice button { min-width: 53px; padding: 9px 10px; font-size: 14px; }
  .tax-money input { font-size: 21px; height: 56px; }
  .tax-amount-tools { flex-wrap: wrap; gap: 0; padding: 5px 0; }
  .tax-amount-tools output { font-size: 13px; }
  .tax-count-field { align-items: flex-start; flex-direction: column; gap: 14px; }
  .tax-stepper { align-self: flex-end; }
  .tax-stage-actions { flex-direction: column-reverse; }
  .tax-stage-actions>.button { width: 100%; }
  .tax-footer-note { font-size: 12px; padding: 16px 20px; }
  .tax-result-row { gap: 12px; font-size: 15px; }
  .tax-result-sub { font-size: 14px; }
  .tax-breakdown summary,.tax-breakdown summary strong { font-size: 16px; }
  .tax-result-notes { padding: 16px; }
  .tax-result-actions .button { width: 100%; }
  .tax-result-actions { gap: 12px 22px; }
}
@media print {
  body { background: white!important; color: black!important; }
  .site-header,main>section:not(#tax-calculator),body>footer,.tax-calculator .section-heading,.tax-tabs,.tax-progress,.tax-scope,.tax-footer-note,.tax-method,.tax-result-actions,.tax-consult,.tax-copy-status { display:none!important; }
  .tax-calculator,.tax-workspace,.tax-result { background:white!important;color:black!important;border:0!important;padding:0!important;margin:0!important;max-width:none!important; }
  .tax-result * { color:black!important; }
  .tax-result-notes { background:#f3f3f3!important; }
  .tax-result-row { break-inside:avoid; }
}
