/*
  The salary and income tax calculator post (/blog/canadian-salary-tax-calculator),
  loaded on that page only (server/blog/layouts/salary-tax-calculator.js).
  The approved design is docs/design/salary-tax-calculator-reference.html
  and -states.html (Buffer design system v3.1, buffer-* class names).

  Every rule is scoped under .stc, the page's root. Tokens, fonts, the
  header, footer, buttons (.v3-btn), segmented track (.v3-seg), focus rings
  and press states come from v3-site.css; this file holds only what the
  blog has no equivalent for. Colours are v3-site.css tokens
  (design-system/tokens.json); nothing here adds one.

  Breakpoints: >= 1024 inputs and result side by side, bracket cards side by
  side; below that, one column with the result directly under the inputs.
*/

.stc {
  --stc-radius-xl: clamp(24px, 3vw, 28px);
  --stc-divider-strong: rgb(var(--navy-rgb) / .14);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

/* Without JavaScript the calculator can't run: its form, result and
   bracket breakdown give way to a one-line note; the rate tables stay. */
.v3-no-js .stc .stc-calc,
.v3-no-js .stc .stc-brackets { display: none; }
.v3-js .stc .stc-nojs { display: none; }
.stc .stc-nojs { margin-top: 32px; }

/* ---------------------------------------------------------- type */

.stc .stc-h1 {
  max-width: 860px;
  margin-top: 12px;
  font-family: var(--heading);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--ink);
  text-wrap: balance;
}

.stc .stc-h3 {
  font-family: var(--heading);
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--ink);
}

.stc .stc-card-title {
  font-family: var(--heading);
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}

.stc .stc-title-s {
  font-family: var(--heading);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}

.stc .stc-kicker { margin-top: 28px; font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--accent); }
.stc .stc-lead { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.stc .stc-body { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.stc .stc-body-s { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.stc .stc-small { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.stc .stc-caption { font-size: 13px; line-height: 1.5; color: var(--text-2); }
.stc .stc-strong { font-weight: 600; color: var(--ink); }
.stc .stc-small strong { font-weight: 600; color: var(--ink); }

.stc .stc-fact {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.25rem, 1.5vw, 1.375rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

.stc .stc-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgb(var(--teal-rgb) / .6);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .stc .stc-link:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
}

.stc .stc-i { display: block; flex: none; }
.stc .stc-i--accent { color: var(--accent); }

/* ---------------------------------------------------------- hero */

.stc .stc-hero {
  margin: clamp(8px, 1vw, 12px) clamp(8px, 1vw, 12px) 0;
  border-radius: var(--stc-radius-xl);
  background: linear-gradient(180deg, var(--sage-200) 0%, var(--sage-100) 58%, var(--warm-white) 100%);
  padding: clamp(104px, 12vw, 144px) var(--gutter) 40px;
}

.stc .stc-hero-inner { max-width: 1200px; margin: 0 auto; }

.stc .stc-crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}

.stc .stc-crumbs .stc-link { display: inline-block; padding: 10px 0; margin: -10px 0; }
.stc .stc-hero .stc-lead { max-width: 620px; margin-top: 20px; }
.stc .stc-updated { margin-top: 16px; }

/* ---------------------------------------------------------- main */

.stc .stc-main { max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.stc .stc-section { margin-top: clamp(72px, 8vw, 112px); }
.stc .stc-section-lead { max-width: 680px; margin-top: 12px; }

.stc .stc-card {
  position: relative;
  border-radius: 20px;
  background: var(--surface);
  padding: clamp(24px, 2.4vw, 28px);
  box-shadow: var(--shadow-card);
}

.stc .stc-card--sage { background: var(--zone); box-shadow: none; }

.stc .stc-panel { display: block; border-radius: 16px; padding: 14px 18px; background: var(--zone); }
.stc .stc-panel .stc-caption { display: block; }

/* ---------------------------------------------------- calculator */

.stc .stc-calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 32px;
}

/* From 1024px, side by side with the reference's weights (its bases leave
   out the card's padding). */
@media (min-width: 1024px) {
  .stc .stc-calc { display: flex; align-items: flex-start; }
  .stc .stc-form { flex: 1 1 calc(340px + 2 * clamp(24px, 2.4vw, 28px)); min-width: 0; }
  .stc .stc-side { flex: 1.3 1 400px; }
}

.stc .stc-form { margin: 0; display: flex; flex-direction: column; gap: 24px; }

.stc .stc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stc .stc-label { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.stc .stc-help { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.stc .stc-help:empty { display: none; }

.stc .stc-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--brick-600);
}

.stc .stc-error .stc-i { margin-top: 2px; }

.stc .stc-input {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 1.5px solid var(--slate-500);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  appearance: none;
  -webkit-appearance: none;
}

.stc .stc-input:focus { outline: none; }

.stc .stc-input:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.stc .stc-input[aria-invalid="true"] { border-color: var(--brick-600); }

.stc .stc-money { position: relative; display: block; }

.stc .stc-money-sign {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 500;
  color: var(--text-2);
  pointer-events: none;
}

.stc .stc-money .stc-input,
.stc #stc-hours { padding-left: 32px; font-weight: 600; color: var(--ink); }
.stc #stc-hours { padding-left: 16px; }

.stc .stc-select { position: relative; display: block; }
.stc .stc-select .stc-input { padding-right: 44px; cursor: pointer; }

.stc .stc-select-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-2);
  pointer-events: none;
}

.stc .stc-field-row { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.stc .stc-field-row > .stc-field { flex: 1 1 0; }
.stc .stc-field-row-help { flex-basis: 100%; }
.stc .stc-field-row[hidden],
.stc .stc-field[hidden] { display: none; }

.stc .stc-field-pair { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-end; }
.stc .stc-field-grow { flex: 1 1 200px; }

/* Radio groups on the site's segmented track; the selected option carries
   the white pill. Options reach 44px through the track's padding. */
.stc .stc-seg .v3-seg-opt::before { content: ""; position: absolute; inset: -2px -2px; }

.stc .stc-seg .v3-seg-opt[aria-checked="true"] {
  background: var(--surface);
  box-shadow: var(--shadow-segment);
  color: var(--ink);
}

.stc .stc-seg--fill { display: flex; width: 100%; }
.stc .stc-seg--fill .v3-seg-opt { flex: 1 1 0; padding: 0 8px; }

.stc .stc-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

/* ------------------------------------------------------- result card */

.stc .stc-side { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.stc .stc-result {
  position: relative;
  overflow: hidden;
  border-radius: var(--stc-radius-xl);
  background: var(--ink);
  color: var(--on-navy);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-float);
}

.stc .stc-glow {
  position: absolute;
  top: -180px;
  right: -180px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--gold-rgb) / .40), rgb(var(--gold-rgb) / 0));
  filter: blur(30px);
  pointer-events: none;
}

/* The three states share one cell, so the card keeps its height whichever
   is showing (no layout shift). */
.stc .stc-states { position: relative; display: grid; }
.stc .stc-state { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.stc .stc-state:not([data-active]) { visibility: hidden; }
.stc .stc-state--empty,
.stc .stc-state--unavailable { align-items: flex-start; gap: 16px; }
.stc .stc-result .stc-card-title { color: var(--on-navy); }
.stc .stc-result.is-stale .stc-states { opacity: .55; }

.stc .stc-result .stc-caption,
.stc .stc-result .stc-small,
.stc .stc-result .stc-body-s { color: var(--on-navy-2); }
.stc .stc-result .stc-fact { color: var(--on-navy); }
.stc .stc-result .stc-panel { background: rgb(var(--warm-white-rgb) / .08); }

.stc .stc-result-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.stc .stc-result-head--full { align-self: stretch; }
.stc .stc-result-title { font-family: var(--sans); font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--on-navy-2); }
.stc .stc-state[data-stc-state="ok"] > .stc-figure { margin-top: -12px; }
.stc .stc-state[data-stc-state="ok"] > .stc-result-sub { margin-top: -14px; font-size: 14px; color: var(--on-navy-2); }

.stc .stc-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgb(var(--warm-white-rgb) / .08);
  border: 1px solid rgb(var(--warm-white-rgb) / .12);
  color: var(--on-navy);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.stc .stc-figure {
  font-family: var(--heading);
  font-size: clamp(3.5rem, 4.4vw, 4rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--on-navy);
}

.stc .stc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.stc .stc-goes-bar { display: flex; gap: 3px; height: 14px; margin-top: 10px; border-radius: 999px; overflow: hidden; }
.stc .stc-goes-bar > span { flex-basis: 0; flex-shrink: 1; min-width: 0; }
.stc .stc-goes-take { background: var(--teal-300); }
.stc .stc-goes-tax { background: var(--gold-300); }
.stc .stc-goes-contrib { background: var(--sage-300); }

.stc .stc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--on-navy-2);
}

.stc .stc-legend > span { display: inline-flex; align-items: center; gap: 8px; }

.stc .stc-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.stc .stc-dot--take { background: var(--teal-300); }
.stc .stc-dot--tax { background: var(--gold-300); }
.stc .stc-dot--contrib { background: var(--sage-300); }

.stc .stc-rows { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }

.stc .stc-rows thead th {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--hairline-dark);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  color: var(--on-navy-2);
}

.stc .stc-rows thead th:last-child,
.stc .stc-rows td { text-align: right; }

.stc .stc-rows tbody th,
.stc .stc-rows tbody td {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline-dark);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
  color: var(--on-navy);
}

.stc .stc-rows tbody td { padding-left: 16px; text-align: right; white-space: nowrap; }
.stc .stc-rows .stc-strong { color: var(--on-navy); }
.stc .stc-row-name { display: inline-flex; align-items: flex-start; gap: 10px; }
.stc .stc-row-name .stc-dot { margin-top: 8px; }
.stc .stc-row-caption { display: block; font-size: 13px; color: var(--on-navy-2); }
.stc .stc-rows .stc-row-total th,
.stc .stc-rows .stc-row-total td { font-weight: 600; }

.stc .stc-rows .stc-row-take th,
.stc .stc-rows .stc-row-take td {
  border-bottom: 0;
  padding: 14px 0 0;
  font-weight: 600;
}

.stc .stc-rates { display: flex; flex-wrap: wrap; gap: 12px; }
.stc .stc-rates .stc-panel { flex: 1 1 186px; }
.stc .stc-rates .stc-panel .stc-caption:last-child { margin-top: 2px; }

.stc .stc-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.stc .stc-share .v3-btn .stc-i { width: 16px; height: 16px; }

.stc .stc-unavailable-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgb(var(--warm-white-rgb) / .08);
  color: var(--gold-300);
}

.stc .stc-disclaimer { display: flex; align-items: flex-start; gap: 10px; padding: 0 4px; }
.stc .stc-disclaimer .stc-i { margin-top: 2px; }

/* ---------------------------------------------------- bracket cards */

.stc .stc-bcards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 32px; align-items: start; }

@media (min-width: 1024px) {
  .stc .stc-bcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.stc .stc-brackets.is-stale .stc-bcards { opacity: .55; }

.stc .stc-bcard-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.stc .stc-bbar-wrap { margin-top: 24px; }
.stc .stc-bbar-top { display: flex; justify-content: flex-end; margin-bottom: 8px; }

.stc .stc-status,
.stc .stc-top-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--gold-300);
  color: var(--ink);
  font-weight: 600;
}

.stc .stc-status { padding: 4px 12px; font-size: 13px; }
.stc .stc-top-label { display: flex; width: max-content; margin: 8px 0 0 22px; padding: 2px 10px; font-size: 12px; }

.stc .stc-status::before,
.stc .stc-top-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }

.stc .stc-bbar { display: flex; gap: 2px; height: 44px; border-radius: 12px; overflow: hidden; }

.stc .stc-bseg {
  flex-basis: 0;
  flex-shrink: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}

.stc .stc-bseg--sage-200 { background: var(--sage-200); }
.stc .stc-bseg--sage-300 { background: var(--sage-300); }
.stc .stc-bseg--teal-300 { background: var(--teal-300); }
.stc .stc-bseg--teal-600 { background: var(--teal-600); color: var(--warm-white); }
.stc .stc-bseg--navy-900 { background: var(--navy-900); color: var(--warm-white); }
.stc .stc-bseg--navy-950 { background: var(--navy-950); color: var(--warm-white); }
.stc .stc-bseg--top { min-width: 52px; justify-content: center; padding: 0 4px; background: var(--gold-300); color: var(--ink); }
.stc .stc-bseg--empty { flex-grow: 1; background: var(--tray); }
.stc .stc-bseg.is-narrow .stc-bseg-label { visibility: hidden; }

/* Rates that don't fit their slice, under it. Always reserved. */
.stc .stc-bbar-out { position: relative; height: 18px; font-size: 12px; font-weight: 600; line-height: 18px; color: var(--text-2); }
.stc .stc-bbar-out > span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }

.stc .stc-axis { display: flex; justify-content: space-between; font-size: 13px; line-height: 1.5; color: var(--text-2); }

.stc .stc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 24px; }

.stc .stc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.stc .stc-table--brackets { min-width: 440px; }

.stc .stc-table th {
  padding: 0 16px 10px 0;
  border-bottom: 1px solid var(--stc-divider-strong);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  white-space: nowrap;
  color: var(--text-2);
}

.stc .stc-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.stc .stc-table :is(th, td):last-child { padding-right: 0; }
.stc .stc-table tbody td:first-child { font-weight: 600; color: var(--ink); }
.stc .stc-table .is-num { text-align: right; }
.stc .stc-table tbody tr.stc-row-empty td { color: var(--text-2); font-weight: 500; }
.stc .stc-table .stc-row-empty .stc-bracket-name { padding-left: 22px; }

.stc .stc-bracket-name { display: inline-flex; align-items: center; gap: 10px; }

.stc .stc-swatch { flex: none; width: 12px; height: 12px; border-radius: 4px; }
.stc .stc-swatch--sage-200 { background: var(--sage-200); box-shadow: inset 0 0 0 1px var(--stc-divider-strong); }
.stc .stc-swatch--sage-300 { background: var(--sage-300); }
.stc .stc-swatch--teal-300 { background: var(--teal-300); }
.stc .stc-swatch--teal-600 { background: var(--teal-600); }
.stc .stc-swatch--navy-900 { background: var(--navy-900); }
.stc .stc-swatch--navy-950 { background: var(--navy-950); }
.stc .stc-swatch--top { background: var(--gold-300); }

.stc .stc-table tfoot td { border-bottom: 0; padding: 6px 0; }
.stc .stc-table tfoot .stc-foot-first td { padding-top: 14px; }

.stc .stc-table tfoot .stc-foot-total td {
  padding-top: 10px;
  border-top: 1px solid var(--stc-divider-strong);
  font-weight: 600;
  color: var(--ink);
}

/* ------------------------------------------------- how it's calculated */

.stc .stc-how { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 32px; align-items: stretch; }
.stc .stc-how > .stc-card { flex: 1 1 380px; min-width: 0; }

.stc .stc-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

.stc .stc-list li { display: flex; gap: 12px; }
.stc .stc-li-icon { flex: none; margin-top: 2px; }
.stc .stc-li-icon--yes { color: var(--accent); }
.stc .stc-li-icon--no { color: var(--slate-500); }

.stc .stc-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--zone);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}

.stc .stc-notice > .stc-i { width: 20px; height: 20px; margin-top: 1px; color: var(--accent); }
.stc .stc-notice strong { font-weight: 600; color: var(--ink); }

/* ------------------------------------------- brackets by jurisdiction */

.stc .stc-prov-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.stc .stc-prov-head > div:first-child { max-width: 680px; }

.stc .stc-faq { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
.stc .stc-faq-item { border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-card); }

.stc .stc-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--heading);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  border-radius: 20px;
}

.stc .stc-faq-q::-webkit-details-marker { display: none; }

.stc .stc-faq-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tray);
  color: var(--ink);
}

.stc .stc-faq-item[open] > .stc-faq-q .stc-faq-icon { background: var(--ink); color: var(--on-navy); transform: rotate(45deg); }

.stc .stc-faq-a { padding: 0 24px 24px; }
.stc .stc-prov-year + .stc-prov-year { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.stc .stc-year-h { margin-bottom: 12px; font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.stc .stc-prov-grid { display: flex; flex-wrap: wrap; gap: 24px 40px; }
.stc .stc-prov-table { flex: 1 1 320px; min-width: 0; max-width: 520px; margin-top: 0; }
.stc .stc-prov-side { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

/* --------------------------------------------------------- about */

.stc .stc-about { display: flex; flex-direction: column; gap: 16px; }
.stc .stc-about .stc-body { max-width: 760px; }

.stc .stc-about-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

/* The one Buffer line. */
.stc .stc-buffer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  margin-top: 40px;
}

.stc .stc-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* ------------------------------------------------------- motion */

@media (prefers-reduced-motion: no-preference) {
  .stc .stc-seg .v3-seg-opt { transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
  .stc .stc-faq-icon { transition: transform var(--dur-base) var(--ease), background-color var(--dur-base) var(--ease); }
  .stc .stc-result .stc-states,
  .stc .stc-bcards { transition: opacity var(--dur-fast) var(--ease); }
}
