/* Local module UI and guide; no other module styles. */
.button:hover {
  opacity: .85;
}

.faq-answer p:last-child,
.article-section>p:last-child,
.article-section>ol:last-child,
.article-section>ul:last-child {
  margin-bottom: 0;
}



.centered-heading .category-badge {
  margin-bottom: 16px;
}

.workspace {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  margin: 0 auto 40px;
  background: var(--bg);
  max-width: 1000px;
  @media (max-width:640px) {
    padding: 18px;
    margin-bottom: 28px;
  }
}

.workspace label {
  display: block;
  font-weight: bold;
  margin-bottom: 7px;
}

.workspace input:not([type=checkbox]),
.workspace select {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px 12px;
  background: var(--bg);
  width: 100%;
  min-height: 46px;
  min-width: 0;
}

.workspace textarea {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px 12px;
  background: var(--bg);
  width: 100%;
  min-width: 0;
  resize: vertical;
  min-height: 230px;
  line-height: 1.6;
}

.workspace input::placeholder,
.workspace textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  border-radius: 5px;
  padding: 10px 20px;
  min-height: 44px;
  font-weight: bold;
  line-height: 1.3;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.status {
  min-height: 1.6em;
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  margin-bottom: 22px;
  @media (max-width:640px) {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }
}

.metric {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 6px;
  @media (max-width:640px) {
    padding: 12px;
  }
}

.metric strong {
  display: block;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  overflow-wrap: anywhere;
  @media (max-width:640px) {
    font-size: 27px;
  }
}

.metric span,
.fine-print,
.legal-date {
  font-size: 14px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  @media (max-width:640px) {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.article {
  max-width: 780px;
  margin: 36px auto 0;
  font-size: 18px;
  line-height: 1.75;
  @media (max-width:640px) {
    font-size: 17px;
  }
}

.article h2 {
  margin-top: 34px;
  border-left: 2px solid var(--ink);
  padding-left: 16px;
  font-size: clamp(1.4rem,3vw,1.8rem);
  @media (max-width:640px) {
    font-size: 26px;
  }
}

.article h3 {
  margin-top: 26px;
}

.article a,
.text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article ul,
.article ol {
  padding-left: 24px;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--ink);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg);
}

.editorial-heading {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 14px 0 0;
  @media (max-width:768px) {
    padding-top: 8px;
  }
}

.editorial-heading h1 {
  font-size: clamp(1.75rem,3.5vw,2.6rem);
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -.025em;
}

.editorial-heading>p {
  max-width: 680px;
  margin: 0 auto 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}









.byline {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.article .steps {
  list-style: none;
  counter-reset: steps;
  padding: 0;
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.steps>li {
  counter-increment: steps;
  position: relative;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 18px 18px 64px;
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  transition: border-color .15s;
  @media (prefers-reduced-motion:reduce) {
    transition: none;
  }
}

.steps>li::before {
  content: counter(steps,decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-weight: bold;
  font-size: 13px;
  line-height: 1;
}

.steps>li:hover {
  border-color: var(--ink);
}

.article .faq-item {
  padding: 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  scroll-margin-top: 72px;
}

.faq-item:first-of-type {
  border-top: 1px solid var(--line);
}

.article .faq-item summary {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.45;
  padding: 20px 2px;
  @media (max-width:768px) {
    font-size: 17px;
    gap: 12px;
  }
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: "";
}

.faq-item summary>span:first-child {
  flex: 1;
  min-width: 0;
}

.faq-chevron {
  margin-left: auto;
  flex: none;
  transition: transform .2s;
  width: 18px;
  height: 18px;
  @media (prefers-reduced-motion:reduce) {
    transition: none;
  }
}

.faq-item[open]:not([data-closing]) .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 32px 20px 2px;
  color: var(--muted);
}

.faq-answer p {
  margin: 0 0 12px;
}

.faq-item summary:focus-visible {
  outline-offset: -2px;
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 32px 0;
  padding: 20px;
  @media (max-width:768px) {
    align-items: start;
    flex-direction: column;
  }
}

.article-cta p {
  margin: 0;
  flex: 1;
  min-width: 180px;
}

.article-cta .button {
  text-decoration: none;
}

.formula {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}











.article .steps>li {
  @media (max-width:768px) {
    padding-right: 14px;
    font-size: 16px;
  }
}

.faq-chevron:empty::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
  margin: 2px 4px;
}

.editorial-heading>.category-badge {
  margin-bottom: 8px;
}



























































.article-launch {
  max-width: 680px;
  text-align: center;
  margin: 0 auto 12px;
}

.article-launch .button {
  min-height: 0;
  padding: 8px 18px;
  line-height: 1.25;
  font-size: 14px;
}











































@media (max-width: 768px) {.feature-breakdown { grid-template-columns: minmax(0, 1fr); gap: 16px; }.feature-heading { margin-top: 24px; }.feature-section { padding: 20px; }}























/* All rules are module-scoped; the shared header, footer and navigation are untouched. */
#gst-app {
  box-sizing: border-box;
  --gst-page-bg: #ffffff;
  --gst-surface: #ffffff;
  --gst-card-bg: #ffffff;
  --gst-input-bg: #ffffff;
  --gst-soft-bg: #f8fafc;
  --gst-badge-bg: #f1f5f9;
  --gst-strong-bg: #080d1a;
  --gst-strong-fg: #ffffff;
  --gst-heading: #080d1a;
  --gst-text: #1e293b;
  --gst-ink: #080d1a;
  --gst-border: #e2e8f0;
  --gst-input-border: #b8c1cf;
  --gst-muted: #566174;
  --gst-gold: #c5a45e;
  --gst-shadow: #080d1a0a;
  color: var(--gst-text);
  background: var(--gst-page-bg);
  
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px 32px;
  line-height: 1.5;
  isolation: isolate;
}
#gst-app *,#gst-app *::before,#gst-app *::after {
  box-sizing: border-box;
}
#main:has(> #gst-app),body:has(#gst-app) {
  background: #ffffff;
}
#gst-app [hidden] {
  display: none!important;
}
#gst-app button,#gst-app input {
  font: inherit;
}
#gst-app button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#gst-app button:disabled {
  cursor: not-allowed;
  opacity: .5;
}
#gst-app a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#gst-app svg {
  width: 20px;
  height: 20px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
#gst-app :is(button,input,summary,a):focus-visible {
  outline: 3px solid var(--gst-gold);
  outline-offset: 3px;
}
#gst-app .gst-heading {
  margin: 16px 0 8px;
  padding: 0;
  text-align: center;
}
#gst-app .gst-heading h1 {
  
  font-size: clamp(32px,5vw,48px);
  line-height: 1.1;
  letter-spacing: -1.1px;
  margin: 0 0 8px;
  color: var(--gst-heading);
}
#gst-app .gst-heading p {
  margin: 0;
  font-size: 20px;
}
#gst-app .gst-heading .gst-intro {
  font-size: 16px;
  color: var(--gst-muted);
  margin: 6px 0 18px;
}
#gst-app .gst-calculator {
  background: var(--gst-surface);
  border: 1px solid var(--gst-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 32px #080d1a06;
}
#gst-app form {
  margin: 0;
}
#gst-app .gst-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
#gst-app .gst-entry,#gst-app .gst-breakdown {
  min-width: 0;
}
#gst-app .gst-entry {
  padding-right: 28px;
  border-right: 1px solid var(--gst-border);
}
#gst-app .gst-step+.gst-step {
  border-top: 1px solid var(--gst-border);
  padding-top: 22px;
  margin-top: 22px;
}
#gst-app .gst-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}
#gst-app .gst-section-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -.25px;
  margin: 0;
  color: var(--gst-heading);
}
#gst-app .gst-step-number {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  border: 1px solid var(--gst-border);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 400;
  background: var(--gst-soft-bg);
}
#gst-app .gst-small-tag {
  font-size: 12px;
  color: var(--gst-muted);
  white-space: nowrap;
}
#gst-app .gst-rate-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}
#gst-app .gst-rate-pill {
  position: relative;
  min-height: 53px;
  background: var(--gst-surface);
  color: var(--gst-ink);
  border: 1px solid var(--gst-border);
  border-radius: 10px;
  font-size: 21px;
  font-weight: bold;
  transition: background .15s,border-color .15s,transform .15s;
}
#gst-app .gst-rate-pill svg {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 14px;
  height: 14px;
  visibility: hidden;
  color: var(--gst-gold);
}
#gst-app .gst-rate-pill[aria-pressed=true] {
  background: var(--gst-strong-bg);
  color: var(--gst-strong-fg);
  border: 2px solid var(--gst-gold);
  box-shadow: 0 0 0 2px #c5a45e1a;
}
#gst-app .gst-rate-pill[aria-pressed=true] svg {
  visibility: visible;
}
#gst-app .gst-text-button {
  padding: 10px 0 2px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--gst-ink);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#gst-app .gst-custom-panel {
  margin-top: 12px;
  padding: 14px;
  background: var(--gst-soft-bg);
  border: 1px solid var(--gst-border);
  border-radius: 10px;
}
#gst-app .gst-custom-panel label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}
#gst-app .gst-custom-panel input {
  width: 100%;
  min-height: 45px;
  border: 1px solid var(--gst-input-border);
  border-radius: 7px;
  padding: 8px 12px;
  background: var(--gst-input-bg);
  color: var(--gst-heading);
}
#gst-app .gst-custom-panel p,#gst-app .gst-rate-note {
  font-size: 13px;
  color: var(--gst-muted);
  margin: 8px 0 0;
  line-height: 1.5;
}
#gst-app .gst-rate-note a {
  white-space: nowrap;
}
#gst-app .gst-help {
  font-size: 14px;
  color: var(--gst-muted);
  margin: 0 0 14px;
}
#gst-app .gst-field {
  margin-top: 19px;
}
#gst-app .gst-field label {
  display: block;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.35;
  margin: 0 0 8px;
}
#gst-app .gst-field label>span {
  display: block;
  font-weight: normal;
  font-size: 13px;
  color: var(--gst-muted);
  margin-top: 2px;
}
#gst-app .gst-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--gst-input-border);
  border-radius: 10px;
  background: var(--gst-input-bg);
  min-height: 55px;
  transition: box-shadow .15s;
}
#gst-app .gst-input-wrap:focus-within {
  border-color: var(--gst-ink);
  box-shadow: 0 0 0 3px #080d1a0c;
}
#gst-app .gst-input-wrap>span {
  padding-left: 14px;
  color: var(--gst-muted);
  font-size: 21px;
}
#gst-app .gst-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 10px;
  outline: none;
  padding: 11px 12px;
  background: transparent;
  color: var(--gst-ink);
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  box-shadow: none;
  height: auto;
}
#gst-app .gst-input-wrap:has([aria-invalid=true]) {
  border: 2px solid var(--gst-ink);
}
#gst-app .gst-words {
  font-size: 13px;
  color: var(--gst-muted);
  margin: 7px 0 0;
  overflow-wrap: anywhere;
}
#gst-app .gst-source-note {
  font-size: 13px;
  border-left: 2px solid var(--gst-gold);
  padding-left: 9px;
  margin: 17px 0 0;
  color: var(--gst-muted);
}
#gst-app .gst-supply {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  min-width: 0;
}
#gst-app .gst-supply legend {
  font-size: 13px;
  margin: 0 0 7px;
  padding: 0;
  color: var(--gst-muted);
}
#gst-app .gst-segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--gst-border);
  border-radius: 11px;
  background: var(--gst-soft-bg);
}
#gst-app .gst-segmented label {
  flex: 1;
  min-width: 0;
  position: relative;
  cursor: pointer;
  margin: 0;
}
#gst-app .gst-segmented input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
#gst-app .gst-segmented span {
  display: block;
  text-align: center;
  padding: 9px 5px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.3;
}
#gst-app .gst-segmented small {
  display: block;
  font-size: 11px;
  font-weight: normal;
  margin-top: 3px;
}
#gst-app .gst-segmented input:checked+span {
  background: var(--gst-strong-bg);
  color: var(--gst-strong-fg);
}
#gst-app .gst-segmented input:focus-visible+span {
  outline: 3px solid var(--gst-gold);
  outline-offset: 2px;
}
#gst-app .gst-cards {
  display: grid;
  gap: 10px;
}
#gst-app .gst-card {
  display: block;
  position: relative;
  text-align: left;
  width: 100%;
  padding: 15px 17px 13px;
  border: 1px solid var(--gst-border);
  border-radius: 12px;
  background: var(--gst-card-bg);
  color: var(--gst-ink);
  transition: border-color .15s,transform .15s;
  min-width: 0;
}
#gst-app .gst-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.3;
}
#gst-app .gst-card-top>svg {
  width: 17px;
  height: 17px;
}
#gst-app .gst-rate-badge {
  margin-left: auto;
  font-size: 12px;
  border-radius: 5px;
  white-space: nowrap;
  background: var(--gst-badge-bg);
  padding: 2px 6px;
}
#gst-app .gst-rate-badge:empty {
  display: none;
}
#gst-app .gst-card strong {
  display: block;
  font-size: clamp(25px,3vw,33px);
  line-height: 1.25;
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
  margin: 7px 0 2px;
  overflow-wrap: anywhere;
}
#gst-app .gst-card-copy {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
  font-size: 11px;
  color: var(--gst-muted);
}
#gst-app .gst-card-copy svg {
  width: 12px;
  height: 12px;
}
#gst-app .gst-card-gross {
  background: var(--gst-strong-bg);
  color: var(--gst-strong-fg);
  border-color: var(--gst-heading);
}
#gst-app .gst-card-gross .gst-card-copy {
  color: #d2d9e5;
}
#gst-app .gst-split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#gst-app .gst-split-cards .gst-card {
  padding: 12px;
}
#gst-app .gst-split-cards .gst-card-top {
  flex-wrap: wrap;
  gap: 5px;
  font-size: 12px;
}
#gst-app .gst-split-cards .gst-rate-badge {
  margin-left: 0;
  font-size: 11px;
}
#gst-app .gst-split-cards strong {
  font-size: 23px;
}
#gst-app .gst-formula {
  border: 1px dashed var(--gst-input-border);
  border-radius: 10px;
  margin: 16px 0 10px;
  padding: 13px 15px;
  background: var(--gst-soft-bg);
  overflow-wrap: anywhere;
}
#gst-app .gst-formula h3 {
  font-size: 14px;
  margin: 0 0 4px;
}
#gst-app .gst-formula p {
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}
#gst-app #gst-formula-text,#gst-app #gst-formula-example,#gst-app .gst-guide-formula code {
  
}
#gst-app #gst-formula-example {
  color: var(--gst-muted);
  font-size: 13px;
  margin-top: 5px;
}
#gst-app .gst-action-dock {
  position: sticky;
  bottom: 10px;
  z-index: 5;
  background: var(--gst-surface);
  border: 1px solid var(--gst-border);
  border-radius: 13px;
  padding: 12px 12px 7px;
  margin-top: 24px;
  box-shadow: 0 5px 20px var(--gst-shadow);
}
#gst-app .gst-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 9px;
}
#gst-app .gst-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--gst-ink);
  border-radius: 8px;
  background: var(--gst-surface);
  color: var(--gst-ink);
  font-size: 15px;
  font-weight: bold;
  line-height: 1.25;
  transition: transform .12s,background .12s;
}
#gst-app .gst-button svg {
  width: 17px;
  height: 17px;
}
#gst-app .gst-label-short {
  display: none;
}
#gst-app .gst-button-primary {
  background: var(--gst-strong-bg);
  color: var(--gst-strong-fg);
}
#gst-app .gst-status {
  text-align: center;
  font-size: 13px;
  min-height: 20px;
  margin: 6px 0 0;
  color: var(--gst-muted);
}
#gst-app .gst-download-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 0 12px;
}
#gst-app .gst-download-panel button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--gst-border);
  border-radius: 6px;
  background: var(--gst-soft-bg);
  color: var(--gst-heading);
}
#gst-app .gst-calculation-note {
  text-align: center;
  font-size: 12px;
  color: var(--gst-muted);
  margin: 13px 0 0;
}
#gst-app .gst-error,#gst-app .gst-notice {
  padding: 12px;
  border: 1px solid var(--gst-ink);
  border-radius: 8px;
  font-size: 14px;
  background: var(--gst-soft-bg);
  margin: 0 0 12px;
}
#gst-app .gst-share-fallback {
  padding: 14px;
  border: 1px solid var(--gst-border);
  border-radius: 8px;
  margin-top: 14px;
}
#gst-app .gst-share-fallback label {
  display: block;
  font-weight: bold;
}
#gst-app .gst-share-fallback input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--gst-input-border);
  margin-top: 6px;
  color: var(--gst-ink);
  background: var(--gst-input-bg);
}
#gst-app .gst-share-fallback p {
  font-size: 13px;
  margin: 7px 0 0;
}
#gst-app .gst-guide {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
}
#gst-app .gst-editorial {
  width: 100%;
  max-width: 850px;
  min-width: 0;
  margin: 0 auto;
}
#gst-app .gst-tool-divider {
  display: block;
  width: 100%;
  height: 0;
  padding: 0;
  border: 0;
  border-bottom: 2px solid var(--gst-heading);
  margin: 32px 0;
  background: none;
}
#gst-app .gst-guide h2 {
  font-size: 27px;
  line-height: 1.25;
  margin: 24px 0 12px;
  letter-spacing: -.4px;
  color: var(--gst-heading);
}
#gst-app .gst-guide h3 {
  font-size: 21px;
  line-height: 1.35;
  margin: 24px 0 8px;
}
/* Accent bars cover every article H2/H3, including the reference heading. */
#gst-app .gst-guide h2,#gst-app .gst-guide h3 {
  border-left: 4px solid var(--gst-heading);
  padding-left: 12px;
  margin-top: 24px;
}
#gst-app .gst-guide p {
  margin: 0 0 14px;
}
#gst-app .gst-guide ol,#gst-app .gst-guide ul {
  padding-left: 23px;
  margin: 0 0 18px;
}
#gst-app .gst-guide li {
  margin: 7px 0;
}
/* Numbered editorial workflow cards; separate from the calculator steps. */
#gst-app .gst-guide .gst-workflow {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
}
#gst-app .gst-guide .gst-workflow>li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--gst-border);
  border-radius: 14px;
  background: var(--gst-card-bg);
}
#gst-app .gst-workflow-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gst-heading);
  border-radius: 50%;
  background: var(--gst-surface);
  color: var(--gst-heading);
  font-size: 16px;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
#gst-app .gst-workflow-body {
  min-width: 0;
  flex: 1;
}
#gst-app .gst-workflow-title {
  display: block;
  margin: 0 0 7px;
  color: var(--gst-heading);
  font-size: 18px;
  line-height: 1.35;
}
#gst-app .gst-guide .gst-workflow p {
  margin: 0;
  color: var(--gst-muted);
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: break-word;
}
#gst-app .gst-guide code {
  font: inherit;
  font-weight: bold;
  overflow-wrap: anywhere;
}
#gst-app .gst-guide .gst-guide-formula {
  padding: 16px 18px;
  border-left: 3px solid var(--gst-ink);
  background: var(--gst-soft-bg);
  margin: 15px 0 20px;
}
#gst-app .gst-guide .gst-guide-formula p:last-child {
  margin-bottom: 0;
}
#gst-app .gst-table-scroll {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--gst-border);
  border-radius: 10px;
  margin: 16px 0;
}
#gst-app table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
#gst-app caption {
  text-align: left;
  padding: 14px;
  font-weight: bold;
  background: var(--gst-soft-bg);
}
#gst-app th {
  background: var(--gst-strong-bg);
  color: var(--gst-strong-fg);
}
#gst-app td,#gst-app th {
  padding: 12px;
  border-bottom: 1px solid var(--gst-border);
  vertical-align: top;
}
#gst-app td:first-child {
  white-space: nowrap;
  font-weight: bold;
}
#gst-app .gst-faq {
  border-bottom: 1px solid var(--gst-border);
  margin: 0;
  padding: 0;
  background: var(--gst-surface);
}
#gst-app .gst-faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  padding: 17px 0;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
}
#gst-app .gst-faq summary::-webkit-details-marker {
  display: none;
}
#gst-app .gst-faq summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s;
  flex: none;
  margin-right: 5px;
}
#gst-app .gst-faq[open] summary::after {
  transform: rotate(225deg);
}
#gst-app .gst-faq p {
  font-size: 16px;
  padding-right: 24px;
}
#gst-app .gst-sources {
  border-top: 1px solid var(--gst-border);
  padding-top: 15px;
  margin-top: 28px;
  font-size: 14px;
}
#gst-app #gst-rate-reference {
  scroll-margin-top: 100px;
}

/* Theme bridge: supports the site's class/data-theme toggles without touching any calculator logic. */
:where(body.dark-mode,html.dark-mode,[data-theme="dark"]) #gst-app,
#gst-app[data-theme="dark"] {
  --gst-page-bg: #080d1a;
  --gst-surface: #0f172a;
  --gst-card-bg: #131d33;
  --gst-input-bg: #131d33;
  --gst-soft-bg: #131d33;
  --gst-badge-bg: #1e293b;
  --gst-strong-bg: #1e293b;
  --gst-strong-fg: #ffffff;
  --gst-heading: #ffffff;
  --gst-text: #e2e8f0;
  --gst-ink: #ffffff;
  --gst-border: #2d3748;
  --gst-input-border: #334155;
  --gst-muted: #cbd5e1;
  --gst-shadow: #00000040;
  color-scheme: dark;
}
:where(body.dark-mode,html.dark-mode,[data-theme="dark"]) #main:has(> #gst-app),
body.dark-mode:has(#gst-app),
html.dark-mode body:has(#gst-app),
html[data-theme="dark"] body:has(#gst-app),
body[data-theme="dark"]:has(#gst-app) {
  background: #080d1a;
}
#main:has(> #gst-app[data-theme="dark"]),body:has(#gst-app[data-theme="dark"]) {
  background: #080d1a;
}
:where(body.dark-mode,html.dark-mode,[data-theme="dark"]) #gst-app :is(h1,h2,h3,.gst-workflow-title,.gst-field label,.gst-custom-panel label,.gst-share-fallback label,.gst-faq summary,td:first-child) {
  color: #ffffff;
}
:where(body.dark-mode,html.dark-mode,[data-theme="dark"]) #gst-app :is(#gst-formula-text,#gst-formula-example,.gst-guide-formula code) {
  color: #ffffff;
}
:where(body.dark-mode,html.dark-mode,[data-theme="dark"]) #gst-app table {
  background: #0f172a;
}
:where(body.dark-mode,html.dark-mode,[data-theme="dark"]) #gst-app .gst-faq {
  background: #0f172a;
}

/* Native dark-scheme fallback when the site has not explicitly forced Light Mode. */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not(.light-mode) body:not([data-theme="light"]):not(.light-mode) #gst-app {
    --gst-page-bg: #080d1a;
    --gst-surface: #0f172a;
    --gst-card-bg: #131d33;
    --gst-input-bg: #131d33;
    --gst-soft-bg: #131d33;
    --gst-badge-bg: #1e293b;
    --gst-strong-bg: #1e293b;
    --gst-strong-fg: #ffffff;
    --gst-heading: #ffffff;
    --gst-text: #e2e8f0;
    --gst-ink: #ffffff;
    --gst-border: #2d3748;
    --gst-input-border: #334155;
    --gst-muted: #cbd5e1;
    --gst-shadow: #00000040;
    color-scheme: dark;
  }
  html:not([data-theme="light"]):not(.light-mode) body:not([data-theme="light"]):not(.light-mode):has(#gst-app),
  html:not([data-theme="light"]):not(.light-mode) body:not([data-theme="light"]):not(.light-mode) #main:has(> #gst-app) {
    background: #080d1a;
  }
  html:not([data-theme="light"]):not(.light-mode) body:not([data-theme="light"]):not(.light-mode) #gst-app :is(h1,h2,h3,.gst-workflow-title,.gst-field label,.gst-custom-panel label,.gst-share-fallback label,.gst-faq summary,td:first-child) {
    color: #ffffff;
  }
  html:not([data-theme="light"]):not(.light-mode) body:not([data-theme="light"]):not(.light-mode) #gst-app :is(#gst-formula-text,#gst-formula-example,.gst-guide-formula code) {
    color: #ffffff;
  }
  html:not([data-theme="light"]):not(.light-mode) body:not([data-theme="light"]):not(.light-mode) #gst-app table,
  html:not([data-theme="light"]):not(.light-mode) body:not([data-theme="light"]):not(.light-mode) #gst-app .gst-faq {
    background: #0f172a;
  }
}
@media(hover:hover) {
  #gst-app button:not(:disabled):hover {
    border-color: var(--gst-gold);
  }
  #gst-app .gst-card:hover {
    transform: translateY(-1px);
  }
}
#gst-app button:not(:disabled):active {
  transform: scale(.98);
}
/* Balanced responsive gutters: 14px for small tablets, 10px at 640px and below.
   Neutralize the shared main inset on this page only, avoiding doubled gutters. */
@media(max-width:760px) {
  #main:has(> #gst-app) {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-inline: 0;
    padding-inline: 0;
  }
  #gst-app {
    box-sizing: border-box;
    padding: 12px 14px;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0 auto;
  }
  #gst-app .gst-heading,#gst-app .gst-guide {
    padding-inline: 0;
  }
  #gst-app .gst-calculator {
    width: 100%;
    min-width: 0;
    margin-inline: 0;
    padding: 16px 10px;
    border-radius: 10px;
  }
  #gst-app .gst-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  #gst-app .gst-entry {
    border-right: 0;
    padding-right: 0;
  }
  #gst-app .gst-breakdown {
    border-top: 1px solid var(--gst-border);
    padding-top: 22px;
  }
  #gst-app .gst-heading .gst-intro {
    font-size: 15px;
  }
  #gst-app .gst-card strong {
    font-size: 30px;
  }
  #gst-app .gst-split-cards strong {
    font-size: 25px;
  }
  #gst-app .gst-actions {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    align-items: stretch;
    gap: 6px;
    width: 100%;
    min-width: 0;
    margin-inline: 0;
  }
  #gst-app .gst-button {
    flex-direction: column;
    min-width: 0;
    width: 100%;
    min-height: 54px;
    padding: 7px 3px;
    font-size: clamp(11px,3.2vw,13px);
    line-height: 1.2;
    gap: 5px;
  }
  #gst-app .gst-actions .gst-button>span {
    white-space: nowrap;
  }
  #gst-app .gst-actions .gst-label-full {
    display: none;
  }
  #gst-app .gst-actions .gst-label-short {
    display: inline;
  }
  #gst-app .gst-action-dock {
    width: 100%;
    min-width: 0;
    margin-inline: 0;
    padding: 7px 6px 5px;
    border-radius: 10px;
    bottom: calc(6px + env(safe-area-inset-bottom,0px));
    margin-top: 16px;
  }
  #gst-app .gst-section-heading h2 {
    font-size: 20px;
  }
  #gst-app .gst-guide {
    font-size: 16px;
    margin: 0 auto;
  }
  #gst-app .gst-guide h2 {
    font-size: 25px;
  }
  #gst-app td,#gst-app th {
    padding: 10px 8px;
  }
}
@media(max-width:640px) {
  #gst-app {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 12px 10px;
  }
  #gst-app .gst-calculator {
    width: 100%;
    margin: 0;
    padding: 16px 10px;
    border: 1px solid var(--gst-border);
    border-radius: 12px;
  }
  #gst-app .gst-guide .gst-workflow {
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
  }
  #gst-app .gst-guide .gst-workflow>li {
    padding: 16px 14px;
    gap: 12px;
  }
}
@media(max-width:360px) {
  #gst-app .gst-small-tag {
    display: none;
  }
  #gst-app .gst-split-cards {
    grid-template-columns: 1fr;
  }
  #gst-app .gst-button svg {
    width: 16px;
    height: 16px;
  }
}
@media(prefers-reduced-motion:reduce) {
  #gst-app *,#gst-app *::before,#gst-app *::after {
    transition: none!important;
    animation: none!important;
    scroll-behavior: auto!important;
  }
}



