:root {
  --gst-blue: #2563EB;
  --gst-blue-dark: #1d4ed8;
}

.gst-page { --blue: var(--gst-blue); --blue-dark: var(--gst-blue-dark); background: #fff; }
.gst-container { width: min(900px, calc(100% - 48px)); }
.gst-intro { padding: 38px 0 58px; background: #fff; }
.gst-back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 31px; color: #647087; font-size: 12px; font-weight: 600; }
.gst-back-link:hover { color: var(--gst-blue); }
.gst-back-link span { font-size: 16px; }
.gst-intro > .container > .section-kicker { margin-bottom: 8px; }
.gst-intro h1 { margin: 0 0 9px; color: var(--ink); font-family: var(--font-heading); font-size: clamp(33px, 5vw, 42px); font-weight: 800; letter-spacing: -1.7px; }
.gst-lede { max-width: 650px; margin-bottom: 25px; color: #748098; font-size: 14px; line-height: 1.6; }
.gst-calculator-card { padding: 27px; border: 1px solid #e8edf5; border-radius: 14px; background: #fff; box-shadow: 0 14px 40px rgba(34,58,108,.07); }
.gst-card-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.gst-heading-icon { width: 44px; height: 44px; display: grid; flex: none; place-items: center; border: 1px solid #e1eaff; border-radius: 11px; color: var(--gst-blue); background: #f2f6ff; }
.gst-heading-icon svg { width: 25px; height: 25px; }
.gst-card-heading h2 { margin: 0 0 4px; font-family: var(--font-heading); font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.gst-card-heading p { margin: 0; color: #8490a2; font-size: 11px; }
.gst-mode-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 22px; }
.gst-mode-option { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 12px 14px; border: 1px solid #e4e9f1; border-radius: 9px; color: #536078; background: #fff; text-align: left; }
.gst-mode-option:hover { border-color: #cbd9ff; }
.gst-mode-option.is-active { border-color: #b8ccff; color: var(--gst-blue); background: #f5f8ff; box-shadow: inset 0 0 0 1px #e4ecff; }
.gst-mode-option strong { font-size: 12px; font-weight: 700; }
.gst-mode-option span { color: #8490a2; font-size: 10px; line-height: 1.45; }
.gst-fields { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(170px, .65fr); gap: 20px; }
.gst-field { min-width: 0; }
.gst-label { display: block; margin: 0 0 8px; color: #536078; font-size: 12px; font-weight: 700; }
.gst-number-field { min-height: 45px; display: flex; align-items: center; border: 1px solid #dfe5ef; border-radius: 8px; background: #fff; }
.gst-number-field:focus-within, .gst-select:focus-visible { border-color: #9ab5ff; box-shadow: 0 0 0 3px #edf2ff; }
.gst-currency-prefix { flex: none; padding: 0 11px; border-right: 1px solid #edf0f5; color: #788398; font-size: 13px; }
.gst-number-field input { width: 100%; min-width: 0; min-height: 43px; padding: 0 11px; border: 0; outline: 0; border-radius: 8px; color: var(--ink); background: transparent; font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; }
.gst-number-field input::-webkit-inner-spin-button, .gst-number-field input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.gst-number-field input[type=number] { -moz-appearance: textfield; }
.gst-select { width: 100%; min-height: 45px; padding: 0 11px; border: 1px solid #dfe5ef; border-radius: 8px; outline: 0; color: var(--ink); background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.gst-field-help { min-height: 15px; margin: 6px 0 0; color: #929bad; font-size: 10px; }
.gst-supply-fieldset { margin: 18px 0 0; padding: 0; border: 0; }
.gst-supply-fieldset legend { padding: 0; }
.gst-supply-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.gst-supply-option { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid #e6eaf1; border-radius: 8px; color: #536078; background: #fff; cursor: pointer; }
.gst-supply-option.is-selected { border-color: #c9d8ff; background: #f8faff; }
.gst-supply-option input { width: 15px; height: 15px; flex: none; margin: 0; accent-color: var(--gst-blue); }
.gst-supply-option span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gst-supply-option strong { color: #34425e; font-size: 11px; font-weight: 700; }
.gst-supply-option small { color: #8490a2; font-size: 10px; }
.gst-error { min-height: 16px; margin: 14px 0 0; color: #c34848; font-size: 11px; }
.gst-error:empty { min-height: 0; margin-top: 0; }
.gst-form-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 17px; padding-top: 14px; border-top: 1px solid #edf0f5; }
.gst-form-footer p { margin: 0; color: #929bad; font-size: 10px; line-height: 1.5; }
.gst-button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid transparent; border-radius: 7px; font: inherit; font-size: 11px; font-weight: 700; transition: background .18s ease, border-color .18s ease; }
.gst-button:focus-visible, .gst-mode-option:focus-visible, .gst-supply-option:focus-within { outline: 3px solid #dce7ff; outline-offset: 2px; }
.gst-button-reset { flex: none; border-color: #e4e9f1; color: #66738a; background: #fff; }
.gst-button-reset:hover { background: #f7f9fc; }
.gst-results { margin-top: 25px; padding-top: 23px; border-top: 1px solid #edf0f5; }
.gst-results[hidden] { display: none; }
.gst-results-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gst-results-heading .section-kicker { margin-bottom: 5px; }
.gst-results-heading h2 { margin: 0; font-family: var(--font-heading); font-size: 19px; font-weight: 800; letter-spacing: -.5px; }
.gst-rate-badge { padding: 6px 9px; border: 1px solid #dce8ff; border-radius: 20px; color: #3764c8; background: #f5f8ff; font-size: 9px; font-weight: 700; white-space: nowrap; }
.gst-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.gst-summary-card { min-width: 0; min-height: 75px; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 12px; border: 1px solid #edf0f5; border-radius: 9px; background: #fff; }
.gst-summary-card span { color: #8490a2; font-size: 10px; }
.gst-summary-card strong { color: #273653; font-family: var(--font-heading); font-size: clamp(12px, 2vw, 16px); font-weight: 800; letter-spacing: -.3px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gst-summary-total { border-color: #e3ebff; background: #f7f9ff; }
.gst-summary-total strong { color: var(--gst-blue); }
.gst-breakdown-card { margin-top: 14px; padding: 16px; border: 1px solid #edf0f5; border-radius: 10px; background: #fff; }
.gst-breakdown-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid #edf0f5; }
.gst-breakdown-title h3 { margin: 0 0 4px; font-family: var(--font-heading); font-size: 13px; font-weight: 800; }
.gst-breakdown-title p { margin: 0; color: #8490a2; font-size: 10px; line-height: 1.45; }
.gst-breakdown-title > span { flex: none; color: #647087; font-size: 10px; font-weight: 700; }
.gst-breakdown-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 11px; color: #647087; font-size: 11px; }
.gst-breakdown-row[hidden] { display: none; }
.gst-breakdown-row small { margin-left: 5px; color: #929bad; font-size: 9px; }
.gst-breakdown-row strong { color: #34425e; font-size: 11px; font-variant-numeric: tabular-nums; }
.gst-result-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 15px; }
.gst-status { min-height: 15px; margin: 0; color: #218c68; font-size: 10px; }
.gst-status.is-error { color: #c34848; }
.gst-action-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.gst-button-copy { border-color: #e1e7f0; color: #52617b; background: #fff; }
.gst-button-copy:hover { background: #f7f9fc; }
.gst-button-download { color: #fff; background: var(--gst-blue); }
.gst-button-download:hover { background: var(--gst-blue-dark); }
.gst-button svg { width: 16px; height: 16px; }
.gst-privacy { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 15px 0 0; color: #7e899c; font-size: 10px; }
.gst-privacy .status-dot { width: 6px; height: 6px; }
.gst-faq-section { padding: 48px 0 72px; border-top: 1px solid #f0f2f6; background: #fff; }
.gst-faq-section > .container > .section-kicker { margin-bottom: 7px; }
.gst-faq-section h2 { margin: 0 0 21px; font-family: var(--font-heading); font-size: 25px; font-weight: 800; letter-spacing: -.8px; }
.gst-faq-list { border-top: 1px solid #edf0f5; }
.gst-faq-item { border-bottom: 1px solid #edf0f5; }
.gst-faq-item summary { position: relative; padding: 17px 32px 17px 0; color: #26334c; font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.gst-faq-item summary::-webkit-details-marker { display: none; }
.gst-faq-item summary::after { position: absolute; top: 14px; right: 3px; color: var(--gst-blue); content: "+"; font-size: 19px; font-weight: 500; }
.gst-faq-item[open] summary::after { content: "−"; }
.gst-faq-item p { max-width: 700px; margin: -3px 30px 17px 0; color: #788398; font-size: 12px; line-height: 1.7; }

@media (max-width: 700px) {
  .gst-container { width: min(100% - 36px, 540px); }
}

@media (max-width: 560px) {
  .gst-container { width: calc(100% - 32px); }
  .gst-intro { padding: 27px 0 42px; }
  .gst-back-link { margin-bottom: 23px; }
  .gst-lede { margin-bottom: 20px; font-size: 13px; }
  .gst-calculator-card { padding: 20px 16px; border-radius: 12px; }
  .gst-card-heading { margin-bottom: 19px; }
  .gst-mode-switch { gap: 7px; margin-bottom: 19px; }
  .gst-mode-option { padding: 10px; }
  .gst-mode-option span { font-size: 9px; }
  .gst-fields { grid-template-columns: minmax(0, 1fr) minmax(110px, .65fr); gap: 10px; }
  .gst-supply-options { gap: 7px; }
  .gst-supply-option { gap: 7px; padding: 10px 8px; }
  .gst-supply-option strong { font-size: 10px; }
  .gst-supply-option small { font-size: 9px; }
  .gst-form-footer { align-items: flex-start; }
  .gst-form-footer p { max-width: 185px; }
  .gst-summary-grid { gap: 6px; }
  .gst-summary-card { min-height: 68px; padding: 9px 7px; }
  .gst-summary-card span { font-size: 9px; }
  .gst-summary-card strong { font-size: 11px; }
  .gst-breakdown-card { padding: 13px; }
  .gst-result-actions { align-items: stretch; flex-direction: column; }
  .gst-action-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .gst-button { padding: 0 9px; }
  .gst-faq-section { padding: 38px 0 54px; }
  .gst-faq-section h2 { font-size: 22px; }
  .gst-faq-item summary { font-size: 12px; }
}

@media (max-width: 360px) {
  .gst-fields { grid-template-columns: 1fr; gap: 12px; }
  .gst-action-buttons { grid-template-columns: 1fr; }
  .gst-mode-option { padding: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .gst-button { transition-duration: .01ms; }
}
