:root {
  --bg: #1a1c21; --bg2: #15171b; --card: #23262c; --line: #33373f; --text: #e6e8ec; --muted: #a3aab6;
  --blue: #7b97f2; --blue-solid: #4263e6; --amber: #fb923c; --green: #34d399; --red: #f87171;
  --head: Arial, Helvetica, sans-serif; --body: Arial, Helvetica, sans-serif; /* system fonts only: nothing is fetched */
  --r: 3px; --r-sm: 3px;
  color-scheme: dark; accent-color: var(--blue-solid); scrollbar-color: var(--line) var(--bg2);
}
[data-theme=light] {
  --bg: #f6f7f9; --bg2: #eceef2; --card: #fff; --line: #d5d9e1; --text: #1a1c21; --muted: #555c69;
  --blue: #3454d1; --amber: #a3470a; --green: #0b7a53; --red: #c53030;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--body); }
::selection { background: var(--blue-solid); color: #fff; }
a { color: var(--blue); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ln { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.chart text { fill: var(--muted); font: 11px var(--body); }
.chart .hit { fill: transparent; }
.chart .hit:hover { fill: var(--line); fill-opacity: .35; }
.chart p { margin: 8px 0 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
main .wrap { max-width: 840px; } /* the page body is one centred column; header and footer keep the full width */
section { padding: 36px 0; }
section.alt { background: var(--bg2); border-block: 1px solid var(--line); }

h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 14px; text-wrap: balance; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 700; }
h3, h2.h3 { font-size: 17px; font-weight: 700; }
h1 b, h2 b { color: var(--blue); }
.lead { font-size: 16px; max-width: 75ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.facts { margin: 22px 0 0; color: var(--muted); font-size: 14px; }

/* header */
.hdr { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--text); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo img { width: 40px; height: 40px; flex: none; }
/* two lines set to the same width: a heavy first line over a wide-tracked second */
.word { display: grid; font-family: var(--head); text-transform: uppercase; line-height: 1; gap: 5px; }
.word b { font-size: 18px; font-weight: 700; letter-spacing: .115em; }
.word span { font-size: 11px; font-weight: 700; letter-spacing: .27em; color: var(--amber); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { white-space: nowrap; display: flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: var(--r-sm); color: var(--muted); font: 700 13px var(--head); }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--card); text-decoration: none; }
.nav svg { width: 18px; height: 18px; }
.icon-btn { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--card); }
.icon-btn svg { width: 18px; height: 18px; }
#menu { display: none; }
[data-theme=light] .i-sun, :root:not([data-theme=light]) .i-moon { display: none; }

/* buttons + forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--r-sm); border: 1px solid transparent; background: var(--blue-solid); color: #fff; font: 700 15px var(--body); cursor: pointer; }
.btn:hover { background: #3757d6; text-decoration: none; }
.btn:active { background: #2f4bc0; }
.btn.ghost { background: none; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { background: var(--card); }
label { display: block; font-size: 15px; color: var(--text); text-align: right; }
input, select { width: 100%; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 16px var(--body); caret-color: var(--blue); }
input:hover, select:hover { border-color: var(--muted); }
input::placeholder { color: var(--muted); }
input:user-invalid { border-color: var(--red); } /* a figure outside the field's range: the forms recalculate as you type, so no browser warning appears */
/* the calculator is a narrow panel: salary on its own row, the choices under it */
#calc, #stateform, #rankform, #payform { max-width: 560px; }
/* each field is one row: the label on the left, the input beside it */
.fields { display: grid; gap: 10px; }
.fields > div { display: grid; grid-template-columns: 40% minmax(0, 1fr); gap: 12px; align-items: center; }
.fields > div > :only-child { grid-column: 2; }
/* the ranking form sits on top of a full-width table: one row as wide as the table, labels above the fields */
#rankform { max-width: none; padding: 16px 20px; }
#rankform .fields { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 20px; }
#rankform .fields > div { grid-template-columns: 1fr; gap: 4px; }
#rankform label { text-align: left; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
a.card { color: var(--text); display: block; transition: border-color .15s, background-color .15s; }
a.card:hover { border-color: var(--blue); text-decoration: none; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.more { display: inline-block; margin-top: 8px; font: 700 13px var(--head); color: var(--blue); }
/* links that carry an icon are a list of rows, not a wall of boxes */
.grid:has(> a.card > .ico) { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 0 40px; }
a.card:has(> .ico) { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-content: start; padding: 20px 0; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
a.card:has(> .ico) > * { grid-column: 2; }
a.card:has(> .ico) > .ico { grid-column: 1; grid-row: 1 / span 3; width: 44px; height: 44px; }
a.card:has(> .ico) h3 { margin-bottom: 4px; }
a.card:has(> .ico):hover h3 { color: var(--blue); }
.ico { width: 52px; height: 52px; margin-bottom: 16px; display: block; }

.hero { padding: 28px 0 32px; text-align: center; } /* heading and opening paragraph are centred (user request, December 2026) */
.hero .lead { margin-inline: auto; }
.hero > .wrap > .row { justify-content: center; }
.hero .card { text-align: left; }
.hero + section:not(.alt) { padding-top: 8px; }
.hero:has(+ section:not(.alt)) { padding-bottom: 12px; } /* the form belongs to the heading above it */
.row { display: flex; align-items: center; gap: 14px; }
.row h3, .row h2.h3 { margin: 0; }

/* results */
.results > * { min-width: 0; }
.results > :only-child { grid-column: 1 / -1; max-width: 560px; width: 100%; } /* a lone result lines up with the form instead of sitting in one narrow column */
.results { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); margin-top: 24px; }
.big { overflow-wrap: anywhere; font: 700 22px var(--head); background: var(--blue-solid); color: #fff; padding: 8px 12px; margin: 12px 0 8px; font-variant-numeric: tabular-nums; } /* the answer is a solid bar across the result card */
.bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin: 16px 0; background: var(--line); }
.bar i { display: block; }
.bar .n { background: var(--green); } .bar .t { background: var(--red); } .bar .s { background: var(--amber); }
dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font-size: 15px; }
dt { color: var(--muted); } dd { margin: 0; text-align: right; font-weight: 700; overflow-wrap: anywhere; min-width: 0; font-variant-numeric: tabular-nums; }
.x { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.x:hover { color: var(--text); }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { font: 700 12px var(--head); color: var(--muted); vertical-align: bottom; }
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--text) 3%, transparent); }
tbody tr:hover { background: color-mix(in srgb, var(--blue) 12%, transparent); }
tbody tr:last-child td { border-bottom: 0; }
th button { all: unset; cursor: pointer; }
th button:hover, th[aria-sort] button { color: var(--text); }
th[aria-sort=ascending] button::after { content: ' \2191'; }
th[aria-sort=descending] button::after { content: ' \2193'; }
.scroll { overflow-x: auto; scrollbar-width: thin; }
td .row { gap: 10px; }
/* the year / month / week breakdown inside a result card */
.split { font-size: 13px; margin-bottom: 14px; }
.split th, .split td { padding: 7px 0 7px 8px; }
.split th:first-child, .split td:first-child { padding-left: 0; color: var(--muted); white-space: normal; line-height: 1.3; }
.split tbody tr, .split tbody tr:hover { background: none; }
.split tbody tr:last-child td { font-weight: 700; color: var(--text); }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 700; }
summary:hover { color: var(--blue); }
details p { color: var(--muted); margin: 10px 0 0; }
.prose h2 { margin-top: 36px; }
.prose .card { padding: 4px 8px; margin: 18px 0; }

/* footer */
.ftr { background: var(--bg2); border-top: 1px solid var(--line); padding: 48px 0 24px; font-size: 14px; }
.ftr .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.ftr h3 { font-size: 13px; color: var(--muted); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr a { color: var(--text); }
.ftr .copy { margin-top: 36px; padding: 20px 56px 0 0; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* back to top */
.totop { position: fixed; right: 20px; bottom: 20px; z-index: 9; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; box-shadow: 0 6px 18px #0005; }
.totop[hidden], .fields > div[hidden] { display: none; }
.totop:hover { border-color: var(--blue); color: var(--blue); }
.totop svg { width: 20px; height: 20px; }

/* flags, newsletter bar */
.flag { width: 44px; height: 33px; flex: none; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); background: var(--line); }
td .flag { width: 32px; height: 24px; border-radius: 3px; }
.news { background: var(--bg2); border-bottom: 1px solid var(--line); font-size: 14px; }
.news .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-block: 8px; }
.news svg { width: 26px; height: 26px; }
.news span { flex: 1 1 240px; }
.news input { width: 210px; padding: 8px 12px; font-size: 14px; }
.news .btn { padding: 8px 14px; font-size: 14px; }
.news .x { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
code { background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 14px; }

@media (max-width: 1020px) {
  #menu { display: grid; margin-left: auto; }
  .hdr .wrap { gap: 10px; height: 60px; }
  .logo img { width: 34px; height: 34px; }
  .word b { font-size: 15px; }
  .word span { font-size: 11px; letter-spacing: .18em; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; padding: 12px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav a { padding: 12px; font-size: 15px; }
  .nav.open { display: flex; }
  .ftr .cols { grid-template-columns: 1fr 1fr; }
  section { padding: 44px 0; }
}
@media (max-width: 640px) {
  .ftr .cols { grid-template-columns: 1fr; }
  .fields > div { grid-template-columns: 1fr; gap: 4px; }
  .fields > div > :only-child { grid-column: 1; }
  label { text-align: left; }
  .card { padding: 18px; }
  .results, .grid:has(> a.card > .ico) { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  th, td { padding: 10px; font-size: 14px; }
  /* keep the name in view while the numbers scroll sideways */
  .scroll td:first-child, .scroll th:first-child { position: sticky; left: 0; background: var(--card); }
  .scroll tbody tr:nth-child(even) td:first-child { background: color-mix(in srgb, var(--text) 3%, var(--card)); }
  .split td:first-child, .split th:first-child { position: static; }
  .split { font-size: 12px; }
  .split th, .split td { padding-left: 5px; }
  .lead { font-size: 16px; }
  .news .wrap { position: relative; gap: 10px 8px; padding-block: 12px; }
  .news span { flex: 1 1 0; padding-right: 30px; line-height: 1.4; }
  .news input { flex: 1 1 100%; width: auto; order: 2; padding: 10px 12px; }
  .news .btn { order: 3; flex: 1 1 100%; padding: 10px 14px; }
  .news .x { position: absolute; top: 8px; right: 14px; padding: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* site map page */
.cols3 { columns: 3 220px; column-gap: 32px; list-style: none; margin: 0 0 8px; padding: 0; }
.cols3 li { padding: 4px 0; break-inside: avoid; }

/* ---- country cards: the top rate is plain text, the solid bar is kept for calculator answers ---- */
.stat { font: 700 26px var(--head); color: var(--text); margin: 12px 0 2px; font-variant-numeric: tabular-nums; }
.stat small { font: 400 13px var(--body, inherit); color: var(--muted); white-space: nowrap; }
.faqs summary { pointer-events: none; cursor: default; list-style: none; }
.faqs summary::-webkit-details-marker { display: none; }
/* form buttons sit under the inputs, in the input column */
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fields > div:has(> .actions) { grid-template-columns: 1fr; margin-top: 4px; } /* the button row spans the form, in line with the fields above it */
.fields > div > .actions { grid-column: 1; }
.actions .btn { flex: 1 1 0; min-height: 44px; }
.actions .btn:not(.ghost) { flex-grow: 2; }
.actions .btn.ghost { background: var(--bg); }
.social { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; }
/* breadcrumb trail under the header */
.crumbs { font-size: 14px; color: var(--muted); padding: 14px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
/* code samples on the data page */
pre { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; overflow-x: auto; font: 14px/1.55 Consolas, "Courier New", monospace; color: var(--text); margin: 12px 0 20px; }
pre code { background: none; border: 0; padding: 0; font: inherit; }
/* the list of every calculator: one row per tool, each with its own line icon */
.tools { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 0 40px; }
.tools li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
/* icon tile: each tool its own gradient (.t0 to .t7, set by the build), the same eight as the brand kit (tools/brand-kit.js) */
.t0 { --t1: #6d8dfb; --t2: #8b5cf6; } .t1 { --t1: #34d399; --t2: #0ea5a4; } .t2 { --t1: #fcd34d; --t2: #fb923c; } .t3 { --t1: #f472b6; --t2: #e11d48; }
.t4 { --t1: #38bdf8; --t2: #2563eb; } .t5 { --t1: #c084fc; --t2: #9333ea; } .t6 { --t1: #a3e635; --t2: #16a34a; } .t7 { --t1: #fb923c; --t2: #dc2626; }
.tools svg, .tool-ico { box-sizing: border-box; width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: linear-gradient(135deg, var(--t1), var(--t2)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28), inset 0 12px 14px -10px rgb(255 255 255 / .55); color: #fff; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool-ico { display: block; width: 64px; height: 64px; padding: 13px; border-radius: 18px; margin: 0 auto 18px; }
.tools svg *, .tool-ico * { stroke-dasharray: 1; stroke-dashoffset: 0; }
/* motion: each icon draws itself in (the hub list as it scrolls into view), and again on hover */
@media (prefers-reduced-motion: no-preference) {
  .tools svg *, .tool-ico * { animation: draw 1s cubic-bezier(.65, 0, .35, 1) .1s both; }
  .tools svg :nth-child(2), .tool-ico :nth-child(2) { animation-delay: .22s; } .tools svg :nth-child(n+3), .tool-ico :nth-child(n+3) { animation-delay: .34s; }
  @supports (animation-timeline: view()) { .tools svg * { animation-delay: 0s; animation-timeline: view(); animation-range: entry 10% cover 35%; } }
  .tools li:hover svg *, .tool-ico:hover * { animation: redraw .8s cubic-bezier(.65, 0, .35, 1) both; }
  .tools li:hover svg, .tool-ico:hover { animation: tile .8s ease-out; }
  a.card:hover > .ico { animation: tile .7s ease-out; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes tile { 30% { transform: rotate(-7deg) scale(1.06); } 65% { transform: rotate(4deg); } }
/* the illustrated icons (sprite in site.js): each pops in as it scrolls into view, then repeats its own small move every few seconds.
   Rules on #i-... reach every <use> of that icon. Moves sit in the first 15% of the loop, so most of the time the icon is still. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) { a.card > .ico, .grid .ico { animation: pop linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; } }
  symbol * { transform-box: fill-box; transform-origin: center; animation-duration: 7s; animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  #i-globe ellipse { animation-name: spin; animation-delay: .4s; }
  #i-globe circle[cx="37"], #i-mail circle { animation-name: beat; animation-delay: 1.2s; }
  #i-calc circle[r="3.4"] { animation-name: press; animation-delay: .8s; }
  #i-podium path[fill="url(#gb)"], #i-states path[fill="url(#gb)"] { animation-name: twirl; animation-delay: 1.6s; }
  #i-calendar path[stroke="url(#gc)"], #i-shield path:last-child { stroke-dasharray: 32; animation-name: tick; animation-delay: 2s; }
  #i-wallet circle, #i-alps circle { animation-name: hop; animation-delay: 2.4s; }
  #i-savings path[stroke="url(#gc)"] { animation-name: hop; animation-delay: 1s; }
  #i-gauge path[stroke="url(#gb)"] { transform-origin: 0 100%; animation-name: swing; animation-delay: .6s; }
  #i-scale path[fill="url(#gb)"] { animation-name: dip; animation-delay: 2.8s; } #i-scale path[fill="url(#gc)"] { animation-name: hop; animation-delay: 2.8s; }
  #i-maple > path:first-child, #i-fan > path:nth-child(2) { transform-origin: 50% 100%; animation-name: sway; animation-delay: 3.2s; }
  #i-book path[fill="url(#gb)"] { animation-name: dip; animation-delay: 3.6s; }
  #i-megaphone path[stroke="url(#ga)"] { animation-name: beat; animation-delay: 1.4s; }
}
@keyframes pop { from { opacity: 0; transform: scale(.55) rotate(-12deg); } 70% { transform: scale(1.06); } }
@keyframes spin { 0%, 15%, 100% { transform: scaleX(1); } 4% { transform: scaleX(.15); } 8% { transform: scaleX(-1); } 12% { transform: scaleX(.15); } }
@keyframes beat { 0%, 12%, 100% { transform: scale(1); } 4% { transform: scale(1.22); } 8% { transform: scale(.94); } }
@keyframes press { 0%, 10%, 100% { transform: scale(1); } 4% { transform: scale(.72); } }
@keyframes twirl { 0%, 14%, 100% { transform: rotate(0) scale(1); } 7% { transform: rotate(144deg) scale(1.25); } }
@keyframes tick { 0% { stroke-dashoffset: 32; } 10%, 100% { stroke-dashoffset: 0; } }
@keyframes hop { 0%, 14%, 100% { transform: translateY(0); } 5% { transform: translateY(-14%); } 10% { transform: translateY(3%); } }
@keyframes dip { 0%, 14%, 100% { transform: translateY(0); } 5% { transform: translateY(12%); } 10% { transform: translateY(-3%); } }
@keyframes swing { 0%, 15%, 100% { transform: rotate(0); } 5% { transform: rotate(-70deg); } 10% { transform: rotate(10deg); } }
@keyframes sway { 0%, 15%, 100% { transform: rotate(0); } 4% { transform: rotate(-6deg); } 9% { transform: rotate(5deg); } }
.tools a { font-weight: 700; }
.tools span { display: block; color: var(--muted); font-size: 14px; }
table.spec td, table.spec th { white-space: normal; text-align: left; vertical-align: top; }
/* every calculator: form and result side by side on a wide screen */
@media (min-width: 761px) {
  .wrap:has(> form.card ~ .results) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; align-items: start; }
  .wrap:has(> form.card ~ .results) > * { grid-column: 1 / -1; }
  .wrap:has(> form.card ~ .results) > form.card { grid-column: 1; }
  .wrap:has(> form.card ~ .results) > form.card { margin-top: 20px !important; } /* some forms set their own top margin inline; both columns must start level */
  .wrap:has(> form.card ~ .results) > .results { grid-column: 2; margin-top: 20px; }
  .wrap:has(> form.card ~ .results) > .results:has(> :nth-child(2)) { grid-column: 1 / -1; } /* several country cards compare in a row below the form */
  .wrap:has(> form.card ~ .results) > form.card:has(~ .results > :nth-child(2)), .wrap:has(> form.card ~ .results) > form.card:has(~ .results:empty) { grid-column: 1 / -1; width: 100%; max-width: 560px; } /* alone on its row, the form takes its usual width */
  .wrap:has(> form.card ~ .results) .fields > div { grid-template-columns: 1fr; gap: 4px; }
  .wrap:has(> form.card ~ .results) label { text-align: left; }
}
/* soft changes: colours on hover and focus, and a new result fading in */
a, button, .btn, input, select, summary { transition: color .15s, background-color .15s, border-color .15s, box-shadow .15s; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
#payresult > * { animation: fade .25s ease-out; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
/* countries page: heading and intro sit in the middle, above the grid */
.intro { text-align: center; }
.intro p:not(.lead) { max-width: 680px; margin-inline: auto; color: var(--muted); }
