:root {
  --ink: #333;
  --muted: #535353;
  --accent: #ff5500;
  --accent-text: #a43200;
  --surface: #fff;
  --line: #d5c3b8;
  --width: 1100px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 100%;
  color: var(--ink);
  background: var(--surface);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; font-size: 1.125rem; }
.wrap { width: min(var(--width), 100% - 2rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; gap: .65rem 1.5rem; flex-wrap: wrap; justify-content: space-between; align-items: center; padding-block: .75rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.32rem; font-weight: 800; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .2rem 1.15rem; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.mobile-menu { display: none; }
a { color: var(--accent-text); text-underline-offset: .18em; }
a[aria-current="page"] { color: var(--ink); text-decoration-thickness: .15em; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-200%); background: white; padding: .75rem; }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.hero { padding-block: clamp(.9rem, 2.85vw, 2.5rem) clamp(.8rem, 2vw, 1.5rem); }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); font-weight: 650; }
h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 650; }
h3 { font-size: 1.125rem; }
p { margin: .45rem 0 .85rem; }
.hero p { margin: 0; }
.card { border: 1px solid var(--accent); border-radius: 8px; padding: clamp(.85rem, 2.3vw, 1.5rem); margin-block-end: clamp(.85rem, 1.55vw, 1.2rem); scroll-margin-top: 1rem; }
.card h2 { margin-bottom: .6rem; }
.fields, .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .65rem; }
label { display: grid; grid-template-rows: 1fr auto; align-content: start; gap: .2rem; font-weight: 650; min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
input:not([type="checkbox"]), select, button { width: 100%; min-height: 46px; padding: .4rem .6rem; border: 1px solid #686868; border-radius: .35rem; background: white; color: var(--ink); font: inherit; }
button { cursor: pointer; align-self: end; background: var(--accent); color: #151515; border-color: #742700; font-weight: 800; }
button:hover { background: #ff6a25; }
.choice { display: flex; align-items: center; min-height: 44px; gap: .45rem; }
.choice input { flex: none; accent-color: var(--accent-text); width: 1.2rem; height: 1.2rem; }
form details, .results details { margin-block: .55rem; }
summary { cursor: pointer; font-weight: 700; min-height: 44px; padding-block: .5rem; }
.status:empty, [hidden], .salary-jump.out-of-view { display: none !important; }
.results { border-radius: .35rem; }
.cards { margin: .7rem 0; }
.cards div { border: 1px solid var(--line); border-top: 3px solid var(--accent); background: white; border-radius: .35rem; padding: .6rem .7rem; }
dt { font-weight: 650; }
dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cards dd { font-size: 1.24em; font-weight: 800; }
.detail div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .35rem; padding-block: .3rem; border-bottom: 1px solid var(--line); }
.note { color: var(--muted); font-size: 1rem; margin-bottom: 0; }
.reading { max-width: 52rem; margin-block: 2rem; }
.reading h2 { margin-top: 1.45rem; }
.policy-hero, .policy-copy { max-width: 44rem; margin-inline: auto; }
.policy-hero { margin-block: 0; }
.policy-hero h1 { font-size: clamp(1.85rem, 3vw, 2.3rem); }
.policy-copy { margin-top: 0; }
.policy-copy h2 { font-size: clamp(1.35rem, 2vw, 1.55rem); }
.promise { background: var(--ink); color: white; text-align: center; padding: 1.5rem 0; }
.promise h2 { color: #ff8a46; }
.promise a { color: white; }
.site-footer { padding: 1rem 0 1.5rem; color: white; background: var(--ink); border-top: 1px solid #686868; }
.site-footer a, .site-footer a[aria-current="page"] { color: white; }
.ad-placement { margin-block: 2rem; min-height: 65px; text-align: center; }
.salary-jump { position: fixed; right: max(.65rem, env(safe-area-inset-right)); bottom: max(.65rem, env(safe-area-inset-bottom)); z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; background: white; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; box-shadow: 0 1px 6px #0002; }
@media (min-width: 48rem) { .salary-jump { display: none; } }
@media (max-width: 47.999rem) {
  .desktop-menu { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: list-item; white-space: nowrap; padding-inline: .5rem; }
  .mobile-menu[open] { flex: 1 0 100%; }
}
@media (max-width: 32rem) {
  body { font-size: 1.0625rem; }
  .header-inner { gap: 0; padding-block: .25rem; }
  nav { gap: 0 .85rem; font-size: .94rem; }
}
@media (min-width: 22rem) and (max-width: 39.999rem) {
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  form[data-calculator="gst"] button, form[data-calculator="salary"] button,
  form[data-calculator="car"] button, form[data-calculator="savings"] button { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
