/* The welcome-tax pages: the calculator in French and in English, a page per city and their list (all written by
   build_welcome_tax.py from /taxe-de-bienvenue-quebec/index.html, which is edited by hand).
   The home page's night (Nicholas, 2026-10-01: « retheme our calculateur »): its navy sky and stars, Hanken Grotesk,
   white pill buttons, and the owl perched on the result. */
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:300 900;font-display:swap;src:url('/fonts/HankenGrotesk-normal-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:300 900;font-display:swap;src:url('/fonts/HankenGrotesk-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root {
  --blue: #1677f8; --sky: #6fb1ff; --ink: #172333; --night: #0a1120; --night-2: #111b2e; --line: #22304a;
  --moon: #eef3ff; --dim: #9fb0cc; --field: #0c1525; --field-line: #2e3f5c; --rule: #1b2840; --faint: #8193b0;
  --display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--moon); font: 17px/1.55 var(--display); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
main { position: relative; overflow: clip; }
.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: 20px; }
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; font: 700 17px/1 var(--display); text-decoration: none;
  padding: 16px 26px; background: #fff; color: var(--ink); box-shadow: 0 16px 40px rgba(111, 177, 255, .25); transition: transform .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }

/* the sky, as on the home page */
.sky { position: absolute; inset: 0 0 auto; height: 1100px; pointer-events: none; overflow: hidden;
  background: radial-gradient(1200px 700px at 70% 0%, rgba(22, 119, 248, .16), rgba(22, 119, 248, 0) 70%); }
.sky i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #dfe8ff; animation: twinkle var(--d) ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .12; } to { opacity: .85; } }

.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; position: relative; z-index: 3; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 17px/1 var(--display); letter-spacing: -.02em; text-decoration: none; color: #fff; }
.brandmark { background: var(--blue); color: #fff; width: 34px; height: 34px; border-radius: 11px 11px 11px 3px; display: grid; place-items: center; font-size: 13px; letter-spacing: 0; }
.nav nav { display: flex; gap: 22px; align-items: center; font-size: 15px; font-weight: 600; }
.nav nav a { text-decoration: none; color: var(--dim); }
.nav nav a:hover { color: #fff; }
.nav .btn { padding: 11px 18px; font-size: 15px; box-shadow: none; color: var(--ink); }
.nav .btn:hover { color: var(--ink); }
.lang { font: 700 13px/1 var(--display); color: var(--dim); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; text-decoration: none; }
.lang:hover { color: #fff; border-color: var(--dim); }

.hero { position: relative; z-index: 2; padding-block: 30px 34px; max-width: 860px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); margin: 0 0 14px; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { color: #fff; }
h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; color: #fff; letter-spacing: -.035em; line-height: 1.06; text-wrap: balance; margin: 0; }
.lede { font-size: clamp(17px, 1.7vw, 19.5px); color: var(--dim); margin: 18px 0 0; max-width: 60ch; text-wrap: pretty; }

/* the calculator */
.workspace { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
.panel { background: var(--night-2); border: 1px solid var(--line); border-radius: 24px; }
.form-panel { padding: 26px; }
.panel h2 { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.02em; margin: 0 0 6px; }
.panel-intro { color: var(--dim); margin: 0 0 22px; font-size: 14.5px; }
.field { margin: 0 0 18px; }
.field label { display: block; font-weight: 700; margin: 0 0 8px; font-size: 14.5px; color: #dfe8ff; }
.field input { width: 100%; height: 50px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--field); color: #fff; padding: 0 14px; outline: none; font-size: 16px; }
.field input::placeholder { color: #74859f; }
.field input:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(111, 177, 255, .22); }
.hint { font-size: 13px; color: var(--dim); margin: 6px 0 0; }
.required { color: #ff8f87; }
.optional-head { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.optional-head h3 { font-size: 15px; margin: 0; color: #fff; font-weight: 700; letter-spacing: -.01em; }
.optional-head p { font-size: 13px; color: var(--dim); margin: 3px 0 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.error { color: #ff9f97; font-size: 14px; font-weight: 600; margin: 0; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.calculate { border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: 700 16px/1 var(--display); padding: 15px 24px;
  box-shadow: 0 12px 30px rgba(111, 177, 255, .22); transition: transform .15s ease; }
.calculate:hover { transform: translateY(-1px); }
.local-note { color: var(--faint); font-size: 13px; }
.city-field { position: relative; }
.suggestions { position: absolute; z-index: 5; top: 84px; left: 0; right: 0; max-height: 300px; overflow: auto; padding: 6px; background: #0f1a2e;
  border: 1px solid var(--field-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.suggestions[hidden] { display: none; }
.suggestion { display: block; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 9px; padding: 9px 11px; color: var(--moon); font-size: 15px; }
.suggestion:hover, .suggestion.active { background: rgba(111, 177, 255, .14); color: #fff; }
.suggestion small { display: block; color: var(--dim); font-size: 12.5px; }

.result-panel { position: relative; scroll-margin-top: 86px; }
.perch { position: absolute; right: 26px; top: -76px; width: 86px; height: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45)); pointer-events: none; }
.result-top { border-radius: 23px 23px 0 0; padding: 26px 28px 22px; background: linear-gradient(135deg, #1a4c91 0%, var(--blue) 100%); color: #fff; }
.result-kicker { font-weight: 700; font-size: 14px; color: #d6e8ff; margin: 0 0 6px; }
.amount { font-size: clamp(40px, 6vw, 62px); font-weight: 800; line-height: 1.05; letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin: 0 0 8px; color: #fff; }
.result-location { font-size: 15px; color: #e1edff; margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 7px 12px; background: rgba(255, 255, 255, .18); color: #fff; font-weight: 700; font-size: 13px; margin-top: 16px; }
.badge.caution { background: #ffd27a; color: #3d2700; }
.result-body { padding: 22px 28px 26px; }
.tax-base { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.tax-base span { color: var(--dim); font-size: 14.5px; }
.tax-base strong { font-size: 20px; font-variant-numeric: tabular-nums; color: #fff; }
.breakdown-title { font-weight: 700; margin: 20px 0 8px; font-size: 14.5px; color: #fff; }
.breakdown-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.breakdown-row span { color: var(--dim); }
.breakdown-row strong { font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.notice { margin: 20px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(111, 177, 255, .08); color: #bcd0ee; font-size: 14px; line-height: 1.5; }
.notice.caution { background: rgba(255, 196, 77, .1); color: #ffd27a; }
.source { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 13.5px; color: var(--dim); }
.source a { color: var(--sky); font-weight: 700; text-underline-offset: 3px; }

/* the explanations (generated by build_welcome_tax.py) */
.explain { position: relative; z-index: 2; max-width: 860px; padding-block: 56px 10px; }
#content section { margin: 0 0 52px; }
#content h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 14px; text-wrap: balance; }
#content p { color: var(--dim); margin: 0 0 14px; text-wrap: pretty; }
#content p strong { color: #fff; }
#content ul { margin: 0 0 14px; padding-left: 20px; color: var(--dim); }
#content li { margin: 7px 0; }
#content a { color: var(--sky); text-underline-offset: 3px; }
#content p.note { font-size: 14px; margin-top: -2px; }
#content .brief p { font-size: 18px; }
#content p.caption { color: #fff; font-weight: 700; font-size: 15px; margin: 16px 0 8px !important; }
.table-wrap { overflow-x: auto; margin: 4px 0 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--night-2); }
#content table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
#content th, #content td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; color: #dfe8ff; }
#content thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 700; background: #0f1a2c; }
#content tbody th { font-weight: 700; }
#content .num { text-align: right; white-space: nowrap; }
#content tbody tr:last-child > * { border-bottom: 0; }
#content tfoot > tr > * { font-weight: 800; color: #fff; border-top: 1px solid var(--line); border-bottom: 0; background: #0f1a2c; }
.city-pick { background: none; border: 0; padding: 0; color: var(--sky); font-weight: 700; text-align: left; text-decoration: underline; text-decoration-color: rgba(111, 177, 255, .4); text-underline-offset: 3px; }
.city-pick:hover { text-decoration-color: currentColor; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 16px; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17.5px; color: #fff; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; color: var(--sky); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0 !important; max-width: 64ch; }
.faq details .table-wrap { margin: 14px 0 4px; }
.faq details ul { margin: 10px 0 0; }
#content .updated { font-size: 14px; color: var(--faint); margin: 18px 0 0; }

/* the city pages: links to other cities, and the list of every city */
#content .city-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
#content .city-links li { margin: 0; }
#content .city-links a { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--night-2);
  color: #dfe8ff; text-decoration: none; font-size: 14.5px; }
#content .city-links a:hover { border-color: var(--sky); color: #fff; }
#content .directory h2 { font-size: 22px; margin: 34px 0 12px; }
#content .faq details .city-links { margin: 12px 0 0; }

/* the same calculation by text */
.bot-card { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin: 0 0 70px;
  padding: 24px 26px; border-radius: 24px; background: var(--night-2); border: 1px solid var(--line); }
.bot-card img { width: 76px; height: 76px; }
.bot-card strong { display: block; font-size: 22px; color: #fff; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.bot-card p { margin: 6px 0 0; color: var(--dim); font-size: 15.5px; max-width: 54ch; }
.bot-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.bot-more { color: var(--sky); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.bot-more:hover { text-decoration: underline; }

footer { background: #060b16; color: #8a9ab5; padding-block: 30px 40px; font-size: 14px; }
footer .disclaimer { font-size: 12.5px; color: #75859f; text-align: center; margin: 0 auto 24px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
@media (max-width: 900px) {
  .nav nav a:not(.btn):not(.lang) { display: none; }
  .workspace { grid-template-columns: 1fr; gap: 74px; }
  .bot-card { grid-template-columns: auto 1fr; }
  .bot-actions { grid-column: 1 / -1; align-items: flex-start; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .hero { padding-block: 16px 28px; }
  .form-panel { padding: 20px; }
  .result-top { padding: 22px 20px; }
  .result-body { padding: 18px 20px 22px; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .perch { width: 70px; top: -62px; right: 18px; }
  #content th, #content td { padding: 9px 10px; }
  #content .top-rate { display: none; }
  #content .brief p { font-size: 17px; }
  .source { flex-direction: column; }
  .bot-card { grid-template-columns: 1fr; padding: 22px 20px; }
  .bot-card img { width: 64px; height: 64px; }
}
