
:root {
  --paper: #fcfaf6;
  --surface: #ffffff;
  --surface-2: #faf7f0;
  --ink: #1f1a14;
  --ink-2: #463d33;
  --muted: #6e6457;
  --line: #ede6d8;
  --line-strong: #ddd2bd;
  --brand: #855b00;
  --brand-2: #c98b0e;
  --brand-ink: #ffffff;
  --brand-soft: #fcf1d6;
  --grad: linear-gradient(135deg, #f7d26a 0%, #e6ab2c 55%, #cf9015 100%);
  --grad-ink: #2a1c02;
  --gold: #b45309;
  --gold-soft: #fef3c7;
  --tax: #dc2626;
  --tax-soft: #fee2e2;
  --social: #2563eb;
  --social-soft: #dbeafe;
  --net: #047857;
  --good-soft: #d1fae5;
  --focus: #855b00;
  --shadow: 0 1px 2px rgba(48, 34, 6, 0.05), 0 10px 26px -16px rgba(48, 34, 6, 0.22);
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1180px;
  --font: 'Rubik', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --display: 'Alexandria', 'Rubik', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}

[hidden] { display: none !important; }
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.gx-n, table, .gx-inv, input, .gx-duo-i b { font-variant-numeric: tabular-nums; }
.gx-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.35; color: var(--ink); margin: 0 0 0.5em; font-weight: 600; letter-spacing: 0; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.gx-w { max-width: var(--max); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .gx-w { padding-inline: 28px; } }
.gx-skip { position: absolute; inset-inline-start: 8px; top: -200px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.gx-skip:focus { top: 8px; }
.gx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.gx-top { position: sticky; top: 0; z-index: 40; background: color-mix(in oklab, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.gx-top .gx-w { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.gx-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.gx-brand svg { width: 34px; height: 34px; }
.gx-brand small { display: block; font-family: var(--font); font-weight: 500; font-size: 0.72rem; color: var(--muted); line-height: 1.2; }
.gx-nav { display: none; margin-inline-start: auto; gap: 4px; align-items: center; }
.gx-nav a, .gx-nav summary { white-space: nowrap; color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 0.97rem; cursor: pointer; list-style: none; }
.gx-nav summary::-webkit-details-marker { display: none; }
.gx-nav a:hover, .gx-nav summary:hover, .gx-nav details[open] summary { background: var(--surface); color: var(--ink); }
.gx-nav a[aria-current='page'] { color: var(--brand); background: var(--brand-soft); }
.gx-nav details { position: relative; }
.gx-nav summary::after { content: ''; display: inline-block; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-3px); margin-inline-start: 8px; opacity: 0.6; }
.gx-mega { position: absolute; inset-inline-start: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; min-width: 520px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 10px; }
.gx-mega.gx-c2 { grid-template-columns: repeat(2, 1fr); min-width: 420px; }
.gx-mega h4 { grid-column: 1 / -1; font-size: 0.78rem; color: var(--muted); font-family: var(--font); font-weight: 600; margin: 8px 8px 4px; }
.gx-mega h4:first-child { margin-top: 0; }
.gx-mega a { padding: 6px 8px; font-size: 0.93rem; display: flex; gap: 8px; align-items: center; }
.gx-mega .all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; color: var(--brand); font-weight: 600; }
.gx-top .gx-cta { display: none; }
.gx-menubtn { order: -1; margin-inline-end: 4px; background: none; border: 1px solid var(--line-strong); color: var(--ink); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; }
.gx-menubtn svg { width: 22px; height: 22px; }
@media (min-width: 1180px) {
  .gx-nav { display: flex; }
  .gx-menubtn { display: none; }
  .gx-top .gx-cta { display: inline-flex; white-space: nowrap; }
}
.gx-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(10, 18, 15, 0.45); display: none; }
.gx-sheet[data-open='true'] { display: block; }
.gx-sheet-in { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(88vw, 380px); background: var(--surface); padding: 18px 18px 40px; overflow-y: auto; box-shadow: var(--shadow); }
.gx-sheet-in h4 { font-size: 0.8rem; color: var(--muted); margin: 18px 0 6px; font-family: var(--font); }
.gx-sheet-in a { display: block; padding: 10px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.gx-sheet-x { float: inline-end; }

/* ---------- buttons, inputs ---------- */
.gx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none; transition: transform 0.12s ease, background 0.15s ease; }
.gx-btn:active { transform: translateY(1px); }
.gx-btn-gold { background: var(--brand); color: var(--brand-ink); }
.gx-btn-gold:hover { background: color-mix(in oklab, var(--brand) 88%, black); }
.gx-btn-line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.gx-btn-line:hover { background: var(--surface); }
.gx-btn-s { min-height: 38px; padding: 6px 14px; font-size: 0.92rem; border-radius: 10px; }
label { font-weight: 600; font-size: 0.92rem; color: var(--ink-2); display: block; margin-bottom: 6px; }
.gx-f { margin-bottom: 14px; }
input:not([type]), input[type='text'], input[type='email'], input[type='url'], input[type='number'], input[type='search'], input[type='date'], select {
  width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 12px; appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a958f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: left 14px center; background-size: 12px 8px; background-repeat: no-repeat; padding-inline-end: 14px; padding-inline-start: 38px; cursor: pointer; }
input:focus, select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 18%, transparent); }
.money-input { position: relative; }
/* the input is LTR (numbers) inside an RTL page: the currency sits on the left, so its space is reserved on the left */
.money-input input { font-size: 1.45rem; font-weight: 600; padding-left: 6.5rem; padding-right: 14px; direction: ltr; text-align: right; font-family: var(--display); }
.money-input .gx-unit-l { position: absolute; left: 14px; max-width: 6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; font-size: 0.95rem; pointer-events: none; }
.gx-tog { display: inline-flex; flex-wrap: wrap; max-width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.gx-tog button { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 0.93rem; color: var(--muted); padding: 7px 14px; border-radius: 9px; cursor: pointer; min-height: 38px; }
.gx-tog button[aria-pressed='true'] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.gx-hint { color: var(--muted); font-size: 0.86rem; margin-top: 6px; line-height: 1.6; }

/* ---------- breadcrumbs, hero ---------- */
.gx-path { font-size: 0.86rem; color: var(--muted); padding-top: 18px; }
.gx-path ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.gx-path li { display: inline-flex; align-items: center; }
.gx-path li:not(:last-child)::after { content: ''; width: 6px; height: 10px; margin-inline-start: 8px; background: currentColor; opacity: 0.6; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 10'%3E%3Cpath d='M5 1 1 5l4 4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 10'%3E%3Cpath d='M5 1 1 5l4 4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.gx-path a { color: var(--muted); text-decoration: none; }
.gx-path a:hover { color: var(--brand); }
.gx-head { padding: 18px 0 8px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 0.82rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.gx-intro { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.gx-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.86rem; color: var(--muted); margin-top: 6px; }
.gx-meta span { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- direct answer (AEO) ---------- */
.gx-sum { background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--brand); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0 8px; box-shadow: var(--shadow); }
.gx-sum strong.gx-sum-l { display: block; font-size: 0.8rem; color: var(--brand); margin-bottom: 4px; letter-spacing: 0; }
.gx-sum p { margin: 0; font-size: 1.06rem; }

/* ---------- calculator + receipt ---------- */
.gx-calc { display: grid; gap: 22px; margin: 22px 0 34px; }
@media (min-width: 900px) { .gx-calc { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: start; } }
.gx-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .gx-box { padding: 26px; } }
.gx-box-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin-bottom: 16px; }
/* a switch next to a heading keeps its buttons in one row; when they do not fit beside the heading it moves under it */
.gx-box-h .gx-tog { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.gx-box-h .gx-tog button { white-space: nowrap; }
.gx-box-h h2 { font-size: 1.15rem; margin: 0; }
.row-2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.gx-inv { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; padding: 22px 22px 30px; box-shadow: var(--shadow); }
.gx-inv::after { content: ''; position: absolute; inset-inline: -1px; bottom: -12px; height: 12px; background: linear-gradient(-45deg, transparent 8px, var(--surface) 0) 0 0 / 16px 12px repeat-x, linear-gradient(45deg, transparent 8px, var(--surface) 0) 0 0 / 16px 12px repeat-x; filter: drop-shadow(0 2px 0 var(--line)); }
.gx-inv-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1.5px dashed var(--line-strong); padding-bottom: 12px; margin-bottom: 10px; }
.gx-inv-h b { font-family: var(--display); font-size: 1.05rem; }
.gx-inv-h span { color: var(--muted); font-size: 0.85rem; }
.gx-inv-r { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: 0.98rem; }
.gx-inv-r .gx-inv-k { color: var(--ink-2); }
.gx-inv-r .gx-inv-d { flex: 1; border-bottom: 1.5px dotted var(--line-strong); transform: translateY(-4px); min-width: 20px; }
.gx-inv-r .gx-inv-v { font-weight: 600; white-space: nowrap; direction: ltr; }
.gx-inv-r.gx-minus .gx-inv-v { color: var(--tax); }
.gx-inv-r.social .gx-inv-v { color: var(--social); }
.gx-inv-r.gx-gross { font-weight: 600; }
.gx-inv-r.gx-world-s { font-size: 0.88rem; color: var(--muted); padding: 2px 0; }
.gx-inv-t { border-top: 2px solid var(--ink); margin-top: 10px; padding-top: 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.gx-inv-t .gx-sum-l { font-weight: 700; font-family: var(--display); font-size: 1.05rem; }
.gx-inv-t .gx-big { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.6rem); color: var(--net); line-height: 1.1; direction: ltr; }
.gx-inv-t .gx-big small { font-size: 0.45em; color: var(--muted); font-weight: 500; margin-inline-start: 6px; }
.gx-inv-t .gx-inv-rng { color: var(--muted); font-size: 0.9rem; }
.gx-split { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--line); margin: 16px 0 8px; }
.gx-split i { display: block; height: 100%; }
.gx-split .gx-nb { background: var(--net); }
.gx-split .gx-lt { background: var(--tax); }
.gx-split .s { background: var(--social); }
.gx-split .o { background: var(--gold); }
.gx-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.85rem; color: var(--muted); }
.gx-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; background: currentColor; vertical-align: -1px; }
.gx-legend .gx-nb::before { background: var(--net); }
.gx-legend .gx-lt::before { background: var(--tax); }
.gx-legend .s::before { background: var(--social); }
.gx-legend .o::before { background: var(--gold); }
.gx-duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
@media (min-width: 560px) { .gx-duo { grid-template-columns: repeat(4, 1fr); } }
.gx-duo-i { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.gx-duo-i span { display: block; font-size: 0.78rem; color: var(--muted); }
.gx-duo-i b { font-family: var(--display); font-size: 1.15rem; direction: ltr; display: inline-block; }
.receipt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gx-inv-n { font-size: 0.86rem; color: var(--muted); margin-top: 14px; padding-inline-start: 18px; }
.gx-inv-n li { margin-bottom: 4px; }

/* ---------- multi-country compare (home) ---------- */
.mc-list { display: grid; gap: 12px; margin-top: 14px; }
.mc-item { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.mc-item .gx-flag { font-size: 1.6rem; line-height: 1; }
.mc-item .name { font-weight: 600; }
.mc-item .gx-world-s { font-size: 0.84rem; color: var(--muted); }
.mc-item .val { text-align: end; font-family: var(--display); font-weight: 700; color: var(--net); direction: ltr; }
.mc-item .bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.mc-item .bar i { display: block; height: 100%; background: var(--net); border-radius: 999px; }
.mc-item button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.2rem; padding: 4px; }

/* ---------- content ---------- */
.gx-sec { padding: 34px 0; }
.gx-sec + .gx-sec { border-top: 1px solid var(--line); }
.gx-sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.gx-sec-h p { color: var(--muted); margin: 0; max-width: 60ch; }
.gx-rgrid { display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr); }
/* grid items may shrink below their content (wide tables scroll inside .gx-tbl instead of widening the page) */
.gx-rgrid > *, .gx-calc > *, .qa-grid > *, .hub-hero > *, .hub-money > * { min-width: 0; }
@media (min-width: 1024px) { .gx-rgrid { grid-template-columns: minmax(0, 1fr) 300px; } }
.gx-prose { max-width: 72ch; }
.gx-prose h2 { margin-top: 1.8em; padding-top: 0.2em; }
.gx-prose h3 { margin-top: 1.4em; }
.gx-prose ul, .gx-prose ol { padding-inline-start: 1.3em; }
.gx-prose li { margin-bottom: 0.4em; }
.gx-toc { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: 0.92rem; }
.gx-toc b { display: block; margin-bottom: 8px; font-family: var(--display); }
.gx-toc ol { margin: 0; padding-inline-start: 1.1em; }
.gx-toc li { margin-bottom: 6px; line-height: 1.5; }
.gx-toc a { color: var(--ink-2); text-decoration: none; }
.gx-toc a:hover { color: var(--brand); }
.gx-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 16px; font-size: 0.93rem; }
.gx-side h3 { font-size: 1rem; }
.gx-side ul { list-style: none; padding: 0; margin: 0; }
.gx-side li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.gx-side li:last-child { border-bottom: 0; }

/* Key facts: label / answer rows in one ruled panel (the answers are sentences, not tiles). */
.gx-facts { margin: 16px 0 6px; padding: 4px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.gx-fact { display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.gx-fact:first-child { border-top: 0; }
.gx-fact dt { font-size: 0.875rem; color: var(--muted); font-weight: 500; }
.gx-fact dd { margin: 0; font-size: 1rem; font-weight: 400; color: var(--ink); line-height: 1.7; max-width: 62ch; }
@media (max-width: 640px) { .gx-facts { padding: 2px 16px; } .gx-fact { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; } }

.gx-tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 14px 0 6px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 0.82rem; color: var(--muted); font-weight: 600; background: var(--surface-2); position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
  th, td { padding: 9px 10px; }
  table { font-size: 0.9rem; }
  .hide-sm { display: none; }
}
tbody tr:hover { background: var(--surface-2); }
td.gx-n, th.gx-n { text-align: left; }
td.gx-n { direction: ltr; unicode-bidi: plaintext; }
td .gx-flag { margin-inline-end: 6px; }
td a { font-weight: 600; text-decoration: none; }
td a:hover { text-decoration: underline; }
.gx-cap { font-size: 0.84rem; color: var(--muted); margin-top: 6px; }
.gx-badge { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.gx-badge.zero { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.gx-badge.high { background: var(--tax-soft); color: var(--tax); border-color: transparent; }
.gx-badge.gx-c-high { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.gx-badge.gx-c-medium { background: var(--gold-soft); color: var(--gold); border-color: transparent; }
.gx-badge.gx-c-low { background: var(--tax-soft); color: var(--tax); border-color: transparent; }

.gx-links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.gx-link { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); transition: border-color 0.15s ease, transform 0.15s ease; }
.gx-link:hover { border-color: var(--brand); transform: translateY(-2px); }
.gx-link .gx-lt { font-weight: 700; font-family: var(--display); display: flex; align-items: center; gap: 8px; }
.gx-link .gx-ld { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin-top: 4px; }
.gx-link .gx-inv-k { margin-top: 10px; font-size: 0.86rem; display: flex; justify-content: space-between; gap: 8px; color: var(--ink-2); }
.gx-link .gx-inv-k b { color: var(--net); direction: ltr; }
.gx-link.tool { border-top: 3px solid var(--brand); }

.vs-hero { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 18px 0; }
.vs-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.vs-side .gx-flag { font-size: 2.4rem; line-height: 1.2; }
.vs-side b { display: block; font-family: var(--display); font-size: 1.2rem; }
.vs-side span { color: var(--muted); font-size: 0.88rem; }
.vs-badge { font-family: var(--display); font-weight: 700; color: var(--gold); font-size: 1.1rem; }
.winner { color: var(--net); font-weight: 700; }
.delta-pos { color: var(--net); }
.delta-neg { color: var(--tax); }

.gx-qa details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.gx-qa summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.gx-qa summary::-webkit-details-marker { display: none; }
.gx-qa summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--brand); flex-shrink: 0; }
.gx-qa details[open] summary::after { content: '\2212'; }
.gx-qa .gx-qa-a { padding: 0 18px 14px; color: var(--ink-2); }
.gx-qa .gx-qa-a p:last-child { margin: 0; }

.gx-src { font-size: 0.88rem; }
.gx-src li { margin-bottom: 6px; }
.gx-src .gx-pill { font-size: 0.75rem; color: var(--muted); }
.gx-why { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 16px 0; }
.gx-why div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.gx-why b { display: block; font-family: var(--display); font-size: 1.4rem; color: var(--brand); }
.gx-why span { font-size: 0.88rem; color: var(--muted); }
.gx-alert { background: var(--gold-soft); border: 1px solid color-mix(in oklab, var(--gold) 35%, transparent); color: var(--ink); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.92rem; margin: 14px 0; }
.gx-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.gx-tag { display: inline-flex; gap: 6px; align-items: center; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 0.92rem; font-weight: 500; }
.gx-tag:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- home ---------- */
.gx-hero { padding: 26px 0 8px; }
.gx-hero h1 { max-width: 20ch; }
.gx-hero .gx-intro { margin-bottom: 0; }
.region-block { margin-bottom: 26px; }
.region-block h3 { font-size: 1rem; color: var(--muted); font-family: var(--font); margin-bottom: 10px; }
.gx-banner { background: var(--brand); color: var(--brand-ink); border-radius: var(--radius); padding: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.gx-banner h2 { color: inherit; margin: 0; }
.gx-banner p { margin: 4px 0 0; opacity: 0.85; }
.gx-banner .gx-btn { background: var(--brand-ink); color: var(--brand); }

/* ---------- footer ---------- */
.gx-foot { margin-top: 50px; border-top: 1px solid var(--line); background: var(--surface-2); padding: 40px 0 26px; font-size: 0.92rem; }
.gx-foot-g { display: grid; gap: 26px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gx-foot-g { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.gx-foot-g h3 { font-size: 0.9rem; font-family: var(--font); color: var(--ink); margin-bottom: 10px; }
.gx-foot-g ul { list-style: none; padding: 0; margin: 0; }
.gx-foot-g li { margin-bottom: 6px; }
.gx-foot-g a { color: var(--ink-2); text-decoration: none; }
.gx-foot-g a:hover { color: var(--brand); }
.gx-foot-a { grid-column: 1 / -1; }
@media (min-width: 900px) { .gx-foot-a { grid-column: auto; } }
.gx-foot-b { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; color: var(--muted); font-size: 0.84rem; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .gx-top, .gx-foot, .receipt-actions, .gx-toc, .gx-menubtn { display: none !important; } body { background: #fff; } }

.gx-by { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--muted); margin: 4px 0 6px; }
.gx-by a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.gx-by a:hover { color: var(--brand); }
.gx-by .gx-av { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-family: var(--display); font-size: 0.95rem; flex-shrink: 0; }
.author-card { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 18px 0; }
.author-card .gx-av { width: 64px; height: 64px; font-size: 1.6rem; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-family: var(--display); flex-shrink: 0; }


main { position: relative; isolation: isolate; }
main::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 640px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, rgba(201, 139, 14, 0.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(201, 139, 14, 0.08) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 35%, transparent 100%); mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 35%, transparent 100%); }
.gx-top { background: rgba(255, 255, 255, 0.86); }
.gx-btn-gold { background: var(--grad); color: var(--grad-ink); box-shadow: 0 6px 16px -8px rgba(207, 144, 21, 0.75); border: 0; }
.gx-btn-gold:hover { background: var(--grad); filter: brightness(1.06); }
.eyebrow { background: transparent; color: var(--muted); font-size: 0.82rem; font-weight: 500; padding: 0; }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px #d1fae5; }

.gx-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 6px; }
.gx-pill2 { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 0.9rem; color: var(--ink-2); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.gx-pill2 b { font-family: var(--mono); font-size: 0.8rem; background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 2px 9px; }
.panel-label { font-size: 0.8rem; color: var(--muted); }
.gx-live { font-size: 0.75rem; text-wrap: balance; color: #047857; background: #d1fae5; border-radius: 999px; padding: 3px 10px; display: inline-flex; gap: 6px; align-items: center; }
.gx-live::before { flex: none; content: ''; width: 6px; height: 6px; border-radius: 50%; background: #10b981; }
.gx-live.is-closed { color: #5c5348; background: #f1ece2; }
.gx-live.is-closed::before { background: #a39a8c; }
.gx-hero h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); line-height: 1.2; }
.gx-sum { border-inline-start-color: var(--brand); }
.gx-sum strong.gx-sum-l { color: var(--brand); }
.gx-link:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.gx-link.tool { border-top-color: var(--brand); }
.gx-banner { background: var(--grad); color: var(--grad-ink); }
.gx-banner .gx-btn { background: var(--ink); color: #fff; }

/* mega menu, list style with code badges */
.gx-mega.gx-mega-l { min-width: 340px; grid-template-columns: 1fr; gap: 0; padding: 8px; max-height: 70vh; overflow-y: auto; }
.gx-mega.gx-mega-l.gx-mega-2 { min-width: 640px; grid-template-columns: 1fr 1fr; gap: 0 6px; }
.gx-mega.gx-mega-l a { display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; padding: 9px 10px; border-radius: 10px; align-items: center; }
.gx-mega.gx-mega-l a:hover { background: var(--surface-2); }
.gx-mega.gx-mega-l .gx-mi { grid-row: span 2; width: 36px; height: 36px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-family: var(--mono); font-size: 0.72rem; font-weight: 600; display: grid; place-items: center; }
.gx-mega.gx-mega-l .gx-mt { font-weight: 600; color: var(--ink); font-size: 0.95rem; line-height: 1.3; }
.gx-mega.gx-mega-l .gx-md { color: var(--muted); font-size: 0.8rem; line-height: 1.3; }
.gx-mega.gx-mega-l h4 { grid-column: 1 / -1; margin: 10px 10px 4px; }

.sitemap-list { columns: 3 260px; gap: 24px; padding: 0; list-style: none; font-size: 0.9rem; }
.sitemap-list li { break-inside: avoid; padding: 3px 0; }

.chart { margin: 16px 0 6px; }
.chart svg { width: 100%; height: auto; direction: ltr; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.84rem; color: var(--muted); }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }

.life-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.life-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.life-card .lc-h { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.life-card b { display: block; font-family: var(--display); font-size: 1.45rem; margin: 4px 0; direction: ltr; text-align: right; }
.life-card p { font-size: 0.9rem; color: var(--ink-2); margin: 0 0 8px; line-height: 1.6; }
.life-card .lc-m { font-size: 0.78rem; color: var(--muted); }
.tr { font-weight: 700; font-size: 0.85rem; }
.tr.up { color: var(--net); } .tr.down { color: var(--tax); } .tr.flat { color: var(--muted); }
.momentum { display: flex; flex-direction: column; gap: 4px; border-radius: var(--radius); padding: 14px 16px; margin-top: 12px; border: 1px solid var(--line); background: var(--surface); }
.momentum b { font-family: var(--display); font-size: 1.1rem; }
.momentum.up { border-inline-start: 4px solid var(--net); } .momentum.down { border-inline-start: 4px solid var(--tax); } .momentum.flat { border-inline-start: 4px solid var(--gold); }

.inv input, .inv select { min-height: 40px; font-size: 1rem; padding: 6px 10px; }
.inv td { padding: 6px; }
tr.is-cur td { background: var(--brand-soft); font-weight: 600; }
.zstep { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 10px 0; background: var(--surface); }
.zstep > summary { cursor: pointer; padding: 12px 14px; font-weight: 700; display: flex; align-items: center; gap: 10px; list-style: none; }
.zstep > summary::-webkit-details-marker { display: none; }
.zstep > summary .gx-mi { font-family: var(--mono); font-size: 0.8rem; font-weight: 700; background: var(--brand-soft); color: var(--brand); border-radius: 6px; padding: 2px 8px; }
.zstep[open] > summary { border-bottom: 1px solid var(--line); }
.zsum { margin-inline-start: auto; color: var(--muted); font-size: 0.85rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zbody { padding: 6px 14px 12px; }
.zbar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 8px 0; }
.zbar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.zbadge { font-size: 0.9rem; font-weight: 700; padding: 8px 12px; border-radius: var(--radius-sm); margin: 6px 0 10px; }
.zbadge.ok { background: var(--good-soft); color: var(--net); }
.zbadge.no { background: var(--gold-soft); color: var(--ink-2); }
@media print { .gx-top, .gx-foot, .gx-path, .gx-box, .gx-sum, .gx-sec, .gx-by, .receipt-actions { display: none !important; } .gx-calc { display: block; } }
.embed-box textarea { width: 100%; font-family: var(--mono); font-size: 0.8rem; padding: 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink); resize: vertical; }
body.gx-embed { background: var(--surface); }
body.gx-embed main::before, body.gx-embed .gx-skip, body.gx-embed .gx-top, body.gx-embed .gx-sheet, body.gx-embed .gx-foot, body.gx-embed .gx-path, body.gx-embed .gx-by, body.gx-embed .gx-sum, body.gx-embed .gx-sec, body.gx-embed .gx-qa, body.gx-embed .gx-head .eyebrow, body.gx-embed .gx-pills, body.gx-embed .embed-box { display: none !important; }
body.gx-embed .gx-head { padding: 8px 0 4px; }
body.gx-embed .gx-head h1 { font-size: 1.25rem; margin: 0; }
body.gx-embed .gx-w { padding-inline: 10px; }
.embed-credit { font-size: 0.8rem; color: var(--muted); text-align: center; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.embed-credit a { font-weight: 700; }
.stepper { display: flex; align-items: stretch; gap: 6px; }
.stepper input { flex: 1; min-width: 0; }
.step-btn { flex: 0 0 44px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--brand); font-family: var(--font); font-size: 1.35rem; font-weight: 700; line-height: 1; padding: 0; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.step-btn:hover { background: var(--brand-soft); border-color: var(--brand); }
.step-btn:active { transform: scale(0.96); }
.stepper input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.stepper input[type="number"]::-webkit-outer-spin-button, .stepper input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gx-w.narrow { max-width: 860px; }
.news-card .gx-ld { font-size: 0.82rem; color: var(--muted); margin-bottom: 4px; }
.news-card .gx-lt { font-weight: 700; line-height: 1.6; }

/* ---------- keep and share band (every content page) ---------- */
.keep { margin-top: 56px; background: var(--surface); border-top: 1px solid var(--line); }
.keep-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 32px 36px; }
.keep-copy h2 { font-size: 1.3rem; margin: 0 0 4px; }
.keep-copy p { margin: 0; color: var(--muted); max-width: 60ch; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sh { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 0.92rem; text-decoration: none; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease; }
.sh svg { width: 19px; height: 19px; flex: 0 0 auto; }
.sh:hover { border-color: currentColor; }
.sh:active { transform: translateY(1px); }
.sh:focus-visible, .keep-follow:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sh-whatsapp { color: #128c4b; } .sh-whatsapp:hover { background: #e8f8ef; }
.sh-telegram { color: #1b7fbf; } .sh-telegram:hover { background: #e7f3fb; }
.sh-x { color: var(--ink); } .sh-x:hover { background: #f1f5f9; }
.sh-facebook { color: #1563d6; } .sh-facebook:hover { background: #e8f0fd; }
.sh-linkedin { color: #0a66c2; } .sh-linkedin:hover { background: #e7f0fa; }
.sh-copy, .sh-more { color: var(--brand); } .sh-copy:hover, .sh-more:hover { background: var(--brand-soft); }
.sh-copy[data-done] { color: var(--net); border-color: var(--net); background: var(--good-soft); }
.keep-save { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.keep-save .gx-btn svg { width: 18px; height: 18px; }
.keep-hint { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.keep-hint > svg { width: 18px; height: 18px; color: var(--brand); flex: 0 0 auto; }
.keep-hint span svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--brand); }
kbd { font-family: var(--mono); font-size: 0.8rem; padding: 1px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); color: var(--ink); }
.keep-follow { display: inline-flex; align-items: center; gap: 8px; color: #1b7fbf; font-weight: 600; text-decoration: none; }
.keep-follow svg { width: 20px; height: 20px; }
.keep-follow:hover span { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .keep-in { grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.6fr); align-items: center; column-gap: 40px; }
  .keep-save { grid-column: 2; }
}

/* ---------- install bar (non-blocking, from the second visit) ---------- */
.install-bar { position: fixed; inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 50; display: flex; align-items: center; gap: 12px; max-width: 560px; margin-inline: auto; padding: 12px 14px; background: var(--surface); border-radius: var(--radius); box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), 0 18px 40px -18px rgba(49, 46, 129, 0.35); transform: translateY(0); opacity: 1; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.install-bar[hidden] { display: none; }
.install-bar.enter { transform: translateY(16px); opacity: 0; }
.install-bar img { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto; }
.install-bar .ib-text { flex: 1; min-width: 0; line-height: 1.45; }
.install-bar .ib-text b { display: block; font-size: 0.95rem; }
.install-bar .ib-text span { font-size: 0.85rem; color: var(--muted); }
.install-bar .ib-text span svg { width: 15px; height: 15px; vertical-align: -3px; color: var(--brand); }
.install-bar .ib-close { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; }
.install-bar .ib-close:hover { background: var(--surface-2); color: var(--ink); }
.install-bar .ib-close svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .install-bar { transition: none; } }

/* ---------- welcome back (homepage, from the visitor's own device) ---------- */
.me { margin: 8px 0 28px; padding: 22px 24px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 14px; }
.me[hidden] { display: none; }
.me-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.me-head h2 { font-size: 1.2rem; margin: 0; }
.me-forget { border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.me-forget:hover { color: var(--ink); }
.me-figs { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.me-fig .gx-inv-k { font-size: 0.85rem; color: var(--muted); }
.me-fig .gx-inv-v { font-family: var(--display); font-weight: 700; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.me-fig .gx-inv-v.net { color: var(--net); }
.me-news { margin: 0; padding: 0; list-style: none; display: grid; }
.me-news a { color: var(--ink); text-decoration: none; }
.me-news a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.me-news li { padding-block: 6px; border-top: 1px solid var(--line); }
.me-news li:first-child { border-top: 0; }
.me-news time { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.me-actions { display: flex; flex-wrap: wrap; gap: 8px; }

body.gx-embed .keep, body.gx-embed .install-bar, body.gx-embed .me { display: none !important; }
@media print { .keep, .install-bar, .me { display: none !important; } }

/* ---------- money transfer ---------- */
.mt-status { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.mt-status.ok { background: var(--good-soft); color: #047857; }
.mt-status.mid { background: var(--gold-soft); color: var(--gold); }
.mt-status.no { background: var(--tax-soft); color: #b91c1c; }
.mt-status.unk { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.mt-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 18px 0; }
.mt-fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.mt-fact .gx-inv-k { font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.mt-fact .gx-inv-v.small { font-size: 0.92rem; font-weight: 600; line-height: 1.6; }
.mt-fact .gx-ld { font-size: 0.85rem; color: var(--ink-2); margin-top: 6px; line-height: 1.55; }
.mt-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 6px 0 10px; }
.mt-disclosure { border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- flag and icon tiles (header menus, drawer) ---------- */
.gx-mega.gx-mega-l .gx-mi.fl { background: none; }
.flag-img { display: block; width: 32px; height: 24px; border-radius: 5px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.08); }
.gx-mega.gx-mega-l a:hover .flag-img { box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.14); }
.gx-mega.gx-mega-l .gx-mi.gx-task-i svg { width: 20px; height: 20px; }
.gx-sheet-in a:has(> .flag-img) { display: flex; align-items: center; gap: 10px; }
.flag-img.sm { width: 24px; height: 18px; border-radius: 4px; flex: 0 0 auto; }

/* ---------- /widgets/ builder ---------- */
.wg textarea { width: 100%; font-family: var(--mono); font-size: 0.8rem; line-height: 1.6; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink); resize: vertical; }
.wg-preview { background: var(--surface-2); border-radius: var(--radius); padding: 0 0 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.wg-bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 0.82rem; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--surface); }
.wg-bar span:first-child { color: var(--net); font-weight: 600; }
.wg-preview iframe { display: block; width: calc(100% - 28px); margin: 14px auto 0; border: 0; border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 10px 24px -14px rgba(15, 23, 42, 0.25); transition: max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.wg-steps li, .wg-why li { margin-bottom: 8px; line-height: 1.75; }
@media (min-width: 900px) { .wg-preview { position: sticky; top: 84px; } }
.foot-widgets { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 28px; padding: 18px 20px; background: var(--brand-soft); border-radius: var(--radius); }
.foot-widgets b { display: block; color: var(--ink); margin-bottom: 2px; }
.foot-widgets span { color: var(--ink-2); font-size: 0.92rem; }
.mc-from { margin: 6px 0 0; }

/* ---------- answer box: /ask/, header entry, home band, Q&A ---------- */
::selection { background: color-mix(in oklab, var(--brand) 22%, transparent); color: var(--ink); }
.gx-find { margin-inline-start: auto; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; background: var(--surface); }
.gx-find svg { width: 20px; height: 20px; }
.gx-find span { display: none; }
.gx-find:hover { border-color: var(--brand); color: var(--brand); }
.gx-find[aria-current='page'] { color: var(--brand); border-color: color-mix(in oklab, var(--brand) 40%, var(--line-strong)); background: var(--brand-soft); }
@media (min-width: 1180px) { .gx-find { margin-inline-start: 0; } }
@media (min-width: 1360px) { .gx-find { width: auto; display: inline-flex; gap: 8px; padding: 0 16px 0 14px; height: 40px; border-radius: 999px; font-weight: 500; } .gx-find span { display: inline; } }

/* compact form (drawer, home band, Q&A sidebar) */
.gx-q { position: relative; display: flex; align-items: center; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 4px; transition: border-color .2s, box-shadow .2s; }
.gx-q:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 14%, transparent); }
.gx-q-i { display: grid; place-items: center; width: 40px; flex: none; color: var(--muted); }
.gx-q-i svg { width: 20px; height: 20px; }
.gx-q input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); padding: 10px 2px; min-height: 0; outline: none; caret-color: var(--brand); box-shadow: none; }
.gx-q input::placeholder { color: var(--muted); }
.gx-q input::-webkit-search-cancel-button { display: none; }
.gx-q-go { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--grad); color: var(--grad-ink); cursor: pointer; }
.gx-q-go svg { width: 20px; height: 20px; }
.gx-q-go:hover { filter: brightness(1.07); }
.gx-q-go:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gx-q-l { padding: 6px; }
.gx-q-l input { font-size: 1.05rem; padding: 12px 2px; }
.gx-q-l .gx-q-go { width: 50px; height: 50px; }
.gx-sheet-q { clear: both; margin: 0 0 4px; }
.gx-sheet-x { margin-bottom: 12px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ask-chips a, .ask-chips button { font: inherit; font-size: 0.85rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; text-decoration: none; cursor: pointer; line-height: 1.5; text-align: start; }
.ask-chips a:hover, .ask-chips button:hover { border-color: color-mix(in oklab, var(--brand) 45%, var(--line)); color: var(--brand); }

/* homepage band */
.ask-band { margin: 32px 0 8px; padding: 24px; border-radius: var(--radius); background: linear-gradient(160deg, var(--brand-soft), color-mix(in oklab, var(--brand-soft) 35%, var(--surface))); border: 1px solid color-mix(in oklab, var(--brand) 14%, var(--line)); display: grid; gap: 16px; }
.ask-band h2 { font-size: 1.35rem; margin: 0 0 4px; }
.ask-band p { margin: 0; color: var(--ink-2); max-width: 56ch; }
@media (min-width: 900px) { .ask-band { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 32px; padding: 32px; } }

/* /ask/ */
.ask { max-width: 860px; }
.ask-head { text-align: center; padding: 40px 0 24px; }
.ask-head h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); line-height: 1.25; margin: 0 auto 12px; max-width: 20ch; text-wrap: balance; }
.ask-head .gx-intro { margin: 0 auto; text-wrap: pretty; }
.askbox { position: relative; display: flex; align-items: flex-end; gap: 8px; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 28px; padding: 8px; box-shadow: 0 6px 14px -10px rgba(15, 23, 42, 0.22); transition: border-color .2s, box-shadow .25s; }
.askbox:focus-within { border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in oklab, var(--brand) 13%, transparent), 0 6px 14px -10px rgba(15, 23, 42, 0.22); }
.askbox-ic { align-self: center; display: grid; place-items: center; width: 44px; flex: none; color: var(--brand); }
.askbox-ic svg { width: 24px; height: 24px; }
.askbox textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: none; background: transparent; font: inherit; font-size: 1.12rem; line-height: 1.6; color: var(--ink); padding: 12px 0; min-height: 0; max-height: 220px; caret-color: var(--brand); box-shadow: none; }
.askbox textarea::placeholder { color: var(--muted); }
.askbox-go { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--grad); color: var(--grad-ink); font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(207, 144, 21, 0.8); }
.askbox-go svg { width: 20px; height: 20px; }
.askbox-go:hover { filter: brightness(1.07); }
.askbox-go:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 599px) { .askbox { border-radius: 22px; } .askbox-go { width: 52px; padding: 0; justify-content: center; } .askbox-go span { display: none; } .askbox textarea { font-size: 1.05rem; } }
.ask > .ask-chips { justify-content: center; margin-top: 16px; }
.ts-slot:empty { display: none; }
.ts-slot { margin-top: 12px; display: flex; justify-content: center; }

.ans { margin-top: 32px; background: var(--surface); border-radius: 22px; padding: 24px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px -14px rgba(15, 23, 42, 0.16); scroll-margin-top: 88px; }
.ans.in { animation: ans-in .6s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes ans-in { from { opacity: 0; filter: blur(8px); transform: translateY(8px); } to { opacity: 1; filter: none; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ans.in { animation: none; } }
.ans-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ans-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; color: var(--brand); }
.ans-badge svg { width: 20px; height: 20px; }
.ans[data-busy='1'] .ans-badge svg { animation: spark 1.6s ease-in-out infinite; }
@keyframes spark { 50% { transform: scale(.82) rotate(12deg); opacity: .6; } }
.ans-state { font-size: 0.85rem; color: var(--muted); }
.ans-body { font-size: 1.12rem; line-height: 1.95; color: var(--ink); max-width: 68ch; }
.ans-body p { margin: 0 0 12px; }
.ans-body ul, .ans-body ol { margin: 0 0 12px; padding-inline-start: 1.3em; }
.ans-body li { margin-bottom: 6px; }
.ans-body li::marker { color: var(--brand); }
.ans-body strong { font-weight: 600; color: var(--ink); background: linear-gradient(transparent 62%, color-mix(in oklab, var(--brand) 16%, transparent) 62%); }
.cite { display: inline-grid; place-items: center; min-width: 1.45em; height: 1.45em; padding: 0 4px; margin: 0 2px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-size: 0.72em; font-weight: 600; text-decoration: none; vertical-align: 0.35em; line-height: 1; font-variant-numeric: tabular-nums; }
.cite:hover { background: var(--brand); color: #fff; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-inline-start: 2px; background: var(--brand); vertical-align: -0.15em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ans-skel { display: grid; gap: 12px; padding: 4px 0 8px; }
.ans-skel i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--surface-2), var(--brand-soft), var(--surface-2)); background-size: 200% 100%; animation: skel 1.4s ease-in-out infinite; }
.ans-skel i:nth-child(2) { width: 88%; } .ans-skel i:nth-child(3) { width: 62%; }
@keyframes skel { to { background-position: -200% 0; } }
.ans-msg { margin: 4px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: 0.95rem; }
.ans h2 { font-size: 0.95rem; font-family: var(--font); font-weight: 600; color: var(--ink-2); margin: 0 0 12px; }
.ans-calc, .ans-src { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.ans-calc > div { display: flex; flex-wrap: wrap; gap: 8px; }
.ans-calc-a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.ans-calc-a svg { width: 18px; height: 18px; flex: none; }
.ans-calc-a:hover { background: color-mix(in oklab, var(--brand) 14%, var(--surface)); }
.ans-src ol { margin: 0; padding-inline-start: 1.6em; display: grid; gap: 8px; }
.ans-src li::marker { color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; }
.ans-src li a { font-weight: 500; }
.ans-src li span { display: block; font-size: 0.85rem; color: var(--muted); text-align: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ans-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ans-foot .gx-btn svg { width: 18px; height: 18px; margin-inline-end: 6px; vertical-align: -4px; }
.ans-note { margin: 16px 0 0; font-size: 0.85rem; color: var(--muted); }
.pub { margin-top: 12px; padding: 16px 20px; border-radius: 16px; background: var(--brand-soft); }
.pub p { margin: 0 0 12px; color: var(--ink-2); font-size: 0.95rem; }
.pub p:last-child { margin: 0; }
.pub-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-row input { flex: 1 1 220px; min-height: 44px; }

.serp { margin-top: 32px; }
.serp h2 { font-size: 0.95rem; font-family: var(--font); font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.serp ol { list-style: none; margin: 0; padding: 0; }
.serp li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.serp li:last-child { border-bottom: 0; }
.serp a { text-decoration: none; display: grid; gap: 2px; }
.serp-path { font-size: 0.85rem; color: var(--net); text-align: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-t { font-family: var(--display); font-size: 1.12rem; font-weight: 500; color: var(--brand); line-height: 1.5; }
.serp a:hover .serp-t { text-decoration: underline; text-underline-offset: 4px; }
.serp p { margin: 4px 0 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.8; max-width: 70ch; }
.serp mark, .serp-t mark { background: none; color: inherit; font-weight: 700; }
.ask-recent .qa-mini { margin-bottom: 16px; }
.qa-mini { list-style: none; margin: 0; padding: 0; }
.qa-mini li { padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.7; }
.qa-mini li:last-child { border-bottom: 0; }
.qa-mini a { text-decoration: none; color: var(--ink); font-weight: 500; }
.qa-mini a:hover { color: var(--brand); }

/* /qa/ index */
.qa-index-ask { max-width: 760px; margin: 8px 0 32px; }
.qa-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.qa-filter button { font: inherit; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.qa-filter button[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.qa-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.qa-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; transition: border-color .2s, box-shadow .2s; }
.qa-item:hover { border-color: color-mix(in oklab, var(--brand) 35%, var(--line)); }
.qa-item a { text-decoration: none; color: inherit; display: block; }
.qa-item h3 { font-size: 1.12rem; margin: 0 0 8px; color: var(--ink); line-height: 1.6; }
.qa-item a:hover h3 { color: var(--brand); }
.qa-item p { margin: 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.85; }
.qa-item-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 0.85rem; color: var(--muted); }
.qa-item-meta span { display: inline-flex; align-items: center; gap: 6px; }
.qa-item-meta svg { width: 16px; height: 16px; color: var(--net); }
.qa-first { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 32px; text-align: center; }
.qa-first h2 { font-size: 1.35rem; }
.qa-first p { color: var(--ink-2); margin: 0 auto; max-width: 56ch; }

/* /qa/<id>/ */
.qa-head h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); line-height: 1.45; max-width: 32ch; text-wrap: balance; }
.qa-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); font-size: 0.95rem; margin: 0; }
.qa-country { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 500; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 10px; }
.qa-grid { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 980px) { .qa-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 32px; } .qa-side { position: sticky; top: 88px; } }
.qa-official { background: var(--surface); border: 1.5px solid color-mix(in oklab, var(--net) 35%, var(--line)); border-radius: 22px; padding: 24px; }
.qa-off-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.qa-off-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--net); }
.qa-off-badge svg { width: 22px; height: 22px; }
.qa-off-by { font-size: 0.85rem; color: var(--muted); }
.qa-off-body { font-size: 1.12rem; line-height: 1.95; max-width: 68ch; }
.qa-off-body > p { margin: 0 0 12px; }
.qa-off-body ul, .qa-off-body ol { padding-inline-start: 1.3em; margin: 0 0 12px; }
.qa-off-body li { margin-bottom: 6px; }
.qa-off-body strong { font-weight: 600; background: linear-gradient(transparent 62%, color-mix(in oklab, var(--net) 16%, transparent) 62%); }
.qa-src { margin-top: 12px; font-size: 0.95rem; }
.qa-src summary { cursor: pointer; color: var(--ink-2); font-weight: 500; }
.qa-src ol { margin: 8px 0 0; padding-inline-start: 1.6em; display: grid; gap: 6px; }
.qa-calcs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.qa-calcs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.qa-calcs svg { width: 18px; height: 18px; flex: none; }
.qa-note { margin: 16px 0 0; font-size: 0.85rem; color: var(--muted); }
.qa-comm { margin-top: 32px; }
.qa-comm h2 { font-size: 1.35rem; }
.qa-comm h2 span { color: var(--muted); font-weight: 400; }
.qa-alist { display: grid; gap: 12px; }
.qa-a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.qa-a header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.95rem; }
.qa-a header time { color: var(--muted); font-size: 0.85rem; margin-inline-start: auto; }
.qa-av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 0.95rem; flex: none; }
.qa-a-body { line-height: 1.9; color: var(--ink); }
.qa-a-body p { margin: 0 0 8px; }
.qa-help { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 0.85rem; color: var(--ink-2); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.qa-help svg { width: 16px; height: 16px; }
.qa-help b { font-weight: 600; font-variant-numeric: tabular-nums; }
.qa-help:hover { border-color: var(--net); color: var(--net); }
.qa-help[aria-pressed='true'] { background: var(--good-soft); border-color: transparent; color: var(--net); cursor: default; }
.qa-empty { color: var(--muted); margin: 0; padding: 16px 0; }
.qa-form { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.qa-form h3 { font-size: 1.12rem; margin: 0 0 16px; }
.qa-form textarea { width: 100%; font: inherit; font-size: 1rem; line-height: 1.8; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); resize: vertical; caret-color: var(--brand); }
.qa-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 14%, transparent); }
.qa-form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.qa-form-row .gx-cap { margin: 0; flex: 1 1 260px; }
.form-msg { margin: 12px 0 0; font-weight: 500; min-height: 1.5em; }
.form-msg[data-kind='ok'] { color: var(--net); }
.form-msg[data-kind='err'] { color: var(--tax); }
.qa-side { display: grid; gap: 16px; }
.qa-side h2 { font-size: 1.05rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.qa-ctx-card, .qa-ask-card, .qa-rel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.qa-ctx-card dl { margin: 0; display: grid; }
.qa-ctx-card dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.qa-ctx-card dl > div:last-child { border-bottom: 0; }
.qa-ctx-card dt { color: var(--muted); }
.qa-ctx-card dd { margin: 0; font-weight: 600; color: var(--ink); text-align: end; font-variant-numeric: tabular-nums; }
.qa-auth { font-size: 0.85rem; color: var(--muted); margin: 8px 0 0; }
.qa-ctx-links { display: grid; gap: 8px; margin-top: 16px; font-size: 0.95rem; }
.qa-ctx-links .gx-btn { justify-content: center; }
.qa-ask-card p { margin: 0 0 12px; color: var(--ink-2); font-size: 0.95rem; }
.ask.asked > .ask-chips { display: none; }
@media (max-width: 719px) {
  .ask-head { padding: 24px 0 16px; }
  .ask.asked .ask-head .gx-intro { display: none; }
  .ask.asked .ask-head h1 { font-size: 1.5rem; margin-bottom: 0; }
  .ask > .ask-chips button:nth-child(n+5) { display: none; }
  .ans { margin-top: 16px; padding: 20px 16px; border-radius: 18px; }
  .ans-body, .qa-off-body { font-size: 1.05rem; line-height: 1.85; }
  .qa-official { padding: 20px 16px; }
  .ask-band { padding: 20px 16px; }
}

/* ---------- homepage hub ---------- */
.hub-hero { display: grid; gap: 32px; padding: 32px 0 8px; align-items: center; }
@media (min-width: 980px) { .hub-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; padding: 48px 0 16px; } }
.hub-main h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); line-height: 1.25; max-width: 16ch; margin: 0 0 16px; text-wrap: balance; }
.hub-main .gx-intro { max-width: 54ch; margin: 0 0 24px; text-wrap: pretty; }
.hub-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 16px 0 0; font-size: 0.85rem; color: var(--muted); }
.hub-facts span + span::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); margin-inline-end: 16px; vertical-align: middle; }
.hub-live { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 24px; }
.hub-live h2 { display: flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 0.95rem; font-weight: 600; color: var(--ink-2); margin: 0 0 4px; }
.hub-live h2::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--net); box-shadow: 0 0 0 4px var(--good-soft); }
.hub-live ol { list-style: none; margin: 0; padding: 0; }
.hub-live li { border-bottom: 1px solid var(--line); }
.hub-live li:last-child { border-bottom: 0; }
.hub-live li a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; text-decoration: none; color: var(--ink); }
.hub-live li .flag-img { margin-top: 5px; flex: none; border-radius: 3px; }
.hub-live li b { display: block; font-weight: 500; font-size: 0.95rem; line-height: 1.6; }
.hub-live li a:hover b { color: var(--brand); }
.hub-live time { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.hub-live-all { display: inline-block; margin-top: 8px; font-size: 0.85rem; font-weight: 500; }

.hub-index { margin: 40px 0 32px; }
.hub-index > h2 { font-size: 1.5rem; margin: 0 0 24px; }
.hub-cols { display: grid; gap: 28px; }
@media (min-width: 700px) { .hub-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
@media (min-width: 1100px) { .hub-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; } .hub-col { padding-inline: 24px; border-inline-start: 1px solid var(--line); } .hub-col:first-child { padding-inline-start: 0; border-inline-start: 0; } .hub-col:last-child { padding-inline-end: 0; } }
.hub-col h3 { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; margin: 0 0 12px; }
.hub-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); flex: none; }
.hub-ic svg { width: 21px; height: 21px; }
.hub-col ul { list-style: none; margin: 0; padding: 0; }
.hub-col li a { display: block; padding: 7px 0; text-decoration: none; color: var(--ink); line-height: 1.5; }
.hub-col li b { font-weight: 500; font-size: 0.95rem; }
.hub-col li span { display: block; font-size: 0.82rem; color: var(--muted); }
.hub-col li a:hover b { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 699px) {
  .hub-col ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .hub-col li span { display: none; }
  .hub-col li a { padding: 8px 0; }
}

.hub-calc { margin-top: 8px; }
.hub-money { margin: 40px 0 8px; padding: 24px; border-radius: var(--radius); background: linear-gradient(160deg, var(--brand-soft), color-mix(in oklab, var(--brand-soft) 35%, var(--surface))); border: 1px solid color-mix(in oklab, var(--brand) 14%, var(--line)); display: grid; gap: 20px; }
.hub-money h2 { font-size: 1.35rem; margin: 0 0 4px; }
.hub-money-copy p { margin: 0; color: var(--ink-2); max-width: 56ch; }
.hub-money-form { display: grid; gap: 12px; align-items: end; }
.hub-money-form .gx-f { margin: 0; }
@media (min-width: 700px) { .hub-money-form { grid-template-columns: 1fr 1fr auto; } }
@media (min-width: 980px) { .hub-money { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: 32px; column-gap: 32px; } .hub-money-links { grid-column: 1 / -1; } }
.hub-money-form .gx-btn { min-height: 50px; white-space: nowrap; }
.hub-money-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hub-money-links > span { font-size: 0.85rem; color: var(--muted); margin-inline-end: 4px; }
.hub-money-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; text-decoration: none; }
.hub-money-links a:hover { color: var(--brand); border-color: color-mix(in oklab, var(--brand) 40%, var(--line)); }
@media (max-width: 719px) { .hub-money { padding: 20px 16px; } }
@media (max-width: 699px) { .hub-main .ask-chips a:nth-child(n+3) { display: none; } }
.hub-dest { display: contents; }
.ask-notice { text-align: center; font-size: 0.85rem; color: var(--muted); margin: 12px auto 0; max-width: 64ch; }
.ask.asked .ask-notice { display: none; }
.qa-meta a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.qa-where, .qa-dev { display: inline-flex; align-items: center; gap: 6px; }
.qa-dev svg { width: 16px; height: 16px; color: var(--muted); }
.qa-item-meta .qa-dev svg { color: var(--muted); }
.qa-flag-e { font-size: 1.05em; line-height: 1; }
.qa-tools { display: grid; gap: 12px; margin: 0 0 20px; }
.qa-search input { width: 100%; min-height: 48px; padding: 10px 16px; border: 1.5px solid var(--line-strong); border-radius: 12px; font: inherit; font-size: 1rem; background: var(--surface); color: var(--ink); caret-color: var(--brand); }
.qa-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 14%, transparent); }
.qa-filter-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.qa-filter-row select { min-height: 40px; width: auto; padding: 6px 36px 6px 12px; font-size: 0.9rem; border-radius: 999px; }
.qa-filter { margin-bottom: 0; }
.qa-filter button svg { width: 15px; height: 15px; }
.qa-none { color: var(--muted); padding: 16px 0; }
.qa-hubs { display: grid; gap: 16px; margin: 0 0 24px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.qa-hubs h2 { font-size: 0.85rem; font-family: var(--font); color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.qa-hubs div { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.qa-hubs h2 { flex-basis: 100%; }
.qa-hubs a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; text-decoration: none; }
.wg-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wg-sw { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--c); cursor: pointer; display: block; margin: 0; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.wg-sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wg-sw:has(input:checked) { outline: 3px solid var(--c); outline-offset: 3px; }
.wg-sw:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.wg-custom { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; font-size: 0.9rem; color: var(--ink-2); cursor: pointer; }
.wg-custom input { width: 34px; height: 34px; padding: 0; border: 1.5px solid var(--line-strong); border-radius: 50%; background: none; cursor: pointer; overflow: hidden; }
.wg-custom input::-webkit-color-swatch-wrapper { padding: 0; }
.wg-custom input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.gx-sum-l { font-weight: 600; font-size: 0.92rem; color: var(--ink-2); display: block; margin-bottom: 6px; }
.hub-qs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; counter-reset: q; }
@media (min-width: 800px) { .hub-qs { grid-template-columns: 1fr 1fr; } }
.hub-qs li { counter-increment: q; border-bottom: 1px solid var(--line); }
.hub-qs a { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; text-decoration: none; color: var(--ink); font-weight: 500; line-height: 1.6; }
.hub-qs a::before { content: counter(q); flex: none; min-width: 1.6em; color: var(--brand); font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
.hub-qs a:hover { color: var(--brand); }
.foot-dir { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .foot-dir { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.foot-dir h3 { font-size: 0.9rem; font-family: var(--font); color: var(--ink); margin: 0 0 10px; }
.foot-dir ul { list-style: none; padding: 0; margin: 0; }
.foot-dir li { margin-bottom: 6px; font-size: 0.9rem; line-height: 1.5; }
.foot-dir a, .foot-all a { color: var(--ink-2); text-decoration: none; }
.foot-dir a:hover, .foot-all a:hover { color: var(--brand); }
.foot-all { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot-all h3 { font-size: 0.9rem; font-family: var(--font); color: var(--ink); margin: 0 0 8px; }
.foot-all p { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 0.9rem; }
.foot-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
/* very long single words (German tax terms, URLs) wrap instead of widening the page on phones */
h1, h2, h3, h4, p, li, dd, summary, blockquote { overflow-wrap: anywhere; }

/* /developers/ */
code { font-family: var(--mono); font-size: 0.85em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.dev-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 24px 0 8px; }
@media (min-width: 700px) { .dev-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dev-facts > div { background: var(--surface); padding: 16px 20px; }
.dev-facts dt { font-size: 0.85rem; color: var(--muted); }
.dev-facts dd { margin: 4px 0 0; font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.dev-code { margin: 16px 0; border-radius: 14px; overflow: hidden; background: #0f172a; border: 1px solid #1e293b; }
.dev-code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 8px 8px; background: #111c33; border-bottom: 1px solid #1e293b; color: #94a3b8; font-size: 0.85rem; }
.dev-copy { font: inherit; font-size: 0.85rem; font-weight: 500; color: #e2e8f0; background: #1e293b; border: 1px solid #334155; border-radius: 8px; padding: 4px 12px; cursor: pointer; }
.dev-copy:hover { background: #334155; }
.dev-code pre { margin: 0; padding: 16px; overflow-x: auto; text-align: left; }
.dev-code code { background: none; border: 0; padding: 0; color: #e2e8f0; font-size: 0.85rem; line-height: 1.7; white-space: pre; }
.dev-code pre::selection, .dev-code code::selection { background: rgba(129, 140, 248, 0.4); color: #fff; }
.dev-steps { padding-inline-start: 1.3em; display: grid; gap: 8px; line-height: 1.8; }
.dev-terms { padding-inline-start: 1.3em; display: grid; gap: 8px; line-height: 1.8; }
.dev-tools td { white-space: normal; vertical-align: top; line-height: 1.7; }
.dev-tools td:first-child { width: 46%; }
.dev-tools td code { white-space: normal; overflow-wrap: anywhere; }
.dev h3 { margin-top: 24px; }
.foot-widgets-acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* Sponsored banner (Adly) after the calculator on business pages: labelled, compact, never in embeds or print */
.promo { margin: 10px 0 28px; max-width: 560px; }
.promo-tag { margin: 0 0 6px; font-size: 0.75rem; line-height: 1.4; color: var(--muted); }
.promo-link { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); transition: box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.promo-link:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.promo-link img { width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) { .promo-link, .promo-link:hover { transition: none; transform: none; } }
@media (max-width: 600px) { .promo { max-width: none; } }
@media print { .promo { display: none !important; } }
body.gx-embed .promo { display: none !important; }

/* phones zoom into any field under 16px when it is tapped; the embed code boxes are read-only but still focusable */
@media (max-width: 599px) { .embed-box textarea, .wg textarea { font-size: 16px; } }

/* phones: short answer above a calculator collapses to three lines; live result bar while filling the form */
.answer-more { display: none; }
@media (max-width: 599px) {
  .gx-sum.clamp p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .gx-sum.clamp .answer-more { display: inline-block; margin-top: 6px; padding: 6px 0; border: 0; background: none; color: var(--brand); font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
  .gx-head:has(+ .gx-calc) .gx-intro, .gx-head:has(~ .gx-calc) .gx-intro { display: none; }
}
.peek { position: fixed; inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 16px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; font: inherit; text-align: start; cursor: pointer; box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12), 0 14px 32px -14px rgba(15, 23, 42, 0.5); animation: peek-in 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.peek[hidden] { display: none; }
.peek-k { flex: 1; min-width: 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek-v { font-family: var(--display); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.peek svg { flex-shrink: 0; opacity: 0.8; }
@keyframes peek-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .peek { animation: none; } }
@media print { .peek { display: none !important; } }
@media (max-width: 599px) {
  /* switches take the full width on phones, so a third option is never cut off behind a hidden scroll */
  .gx-box-h .gx-tog { flex: 1 1 100%; }
  .gx-box-h .gx-tog button { flex: 1; min-width: 0; padding-inline: 6px; font-size: 0.88rem; white-space: normal; line-height: 1.3; }
}

/* compare several countries: removable country chips, results table, best-fit panel with a score */
.cmp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-weight: 500; }
.cmp-chip img { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; }
.cmp-chip button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--muted); cursor: pointer; }
.cmp-chip button:hover { background: var(--tax-soft); color: var(--tax); }
.cmp .gx-tog[aria-labelledby] { flex-wrap: wrap; }
.cmp-table td, .cmp-table th { white-space: nowrap; }
.cmp-best { display: grid; gap: 18px; }
.cmp-score { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--brand-soft); }
.cmp-score p { margin: 0; }
.cmp-score-n { font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.cmp-score-n small { font-size: 0.4em; color: var(--muted); font-weight: 500; }
.cmp-best h3 { font-size: 1rem; margin-bottom: 6px; }
.cmp-best ol { margin: 0; padding-inline-start: 1.2em; }
.cmp-best li { margin: 4px 0; }

/* homepage: the issuing authorities named under the hero */
.hub-sources { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 10px 0 0; font-size: 0.85rem; color: var(--muted); }
.hub-sources .gx-inv-k { font-weight: 600; color: var(--ink-2); margin-inline-end: 4px; }
.hub-sources a { color: var(--ink-2); text-decoration: none; }
.hub-sources a:hover { color: var(--brand); text-decoration: underline; }

/* ================= gold layer ================= */
.gx-brand svg { width: 36px; height: 36px; }
.gx-brand .gx-brand-n { display: block; font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.15; white-space: nowrap; }
.gx-brand small { direction: ltr; text-align: right; }
.gx-find { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); margin-inline-start: auto; }
.gx-find svg { width: 18px; height: 18px; }
@media (min-width: 1180px) { .gx-find { margin-inline-start: 0; } }
.gx-find:hover { border-color: var(--brand); color: var(--brand); }
.lv { display: inline-block; }
.lv.rolled { animation: roll .7s cubic-bezier(.16,1,.3,1); }
@keyframes roll { from { transform: translateY(-.45em); opacity: 0; filter: blur(2px); } to { transform: none; opacity: 1; filter: none; } }
.fresh { background: #fff6d6 !important; transition: background 1.4s ease-out; }
.chg { font-size: 0.82rem; font-weight: 600; white-space: nowrap; direction: ltr; unicode-bidi: isolate; display: inline-flex; align-items: center; gap: 4px; }
.chg:empty { display: none; }
.chg-up { color: var(--net); } .chg-down { color: var(--tax); } .chg-flat { color: var(--muted); }
.chg-up::before, .chg-down::before { content: ''; width: 0; height: 0; border-inline: 4px solid transparent; }
.chg-up::before { border-bottom: 6px solid currentColor; } .chg-down::before { border-top: 6px solid currentColor; }
.kc { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.kc::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--kc, #d99a1e); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.kc-24 { --kc: #cf9f0a; } .kc-22 { --kc: #ddae2f; } .kc-21 { --kc: #e08c2b; } .kc-18 { --kc: #b9682f; } .kc-14 { --kc: #b25f75; } .kc-12, .kc-10, .kc-9, .kc-8 { --kc: #8a7a69; }
.kc small { color: var(--muted); font-weight: 500; font-size: 0.78rem; }
.gx-karats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0 8px; }
@media (min-width: 720px) { .gx-karats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.gx-karat { position: relative; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 12px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; overflow: hidden; }
.gx-karat::after { content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px; background: var(--kc, #d99a1e); }
.gx-karat:hover { border-color: var(--brand); transform: translateY(-1px); }
.gx-karat .gx-k-h { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 0.86rem; color: var(--muted); font-weight: 600; }
.gx-karat .gx-k-v { display: flex; align-items: baseline; justify-content: flex-start; gap: 6px; font-family: var(--display); font-weight: 700; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 1.9rem); line-height: 1.2; margin: 6px 0 2px; }
.gx-karat .gx-k-v .lv { direction: ltr; }
.gx-karat .gx-k-v small { font-size: 0.5em; color: var(--muted); font-weight: 500; }
.gx-karat .gx-k-s { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.gx-karat .gx-k-s b { color: var(--ink-2); font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.gx-world { display: grid; gap: 4px; }
.gx-world .gx-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 1.6rem + 3.4vw, 3.6rem); line-height: 1.05; color: var(--ink); }
.gx-world .gx-big .lv { direction: ltr; }
.gx-world .gx-big small { font-size: 0.36em; color: var(--muted); font-weight: 500; }
.gx-world .gx-world-l { font-weight: 600; color: var(--ink-2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gx-world .gx-world-s { font-size: 0.86rem; color: var(--muted); }
.rg { display: inline-grid; line-height: 1.35; direction: ltr; text-align: right; }
.rg span + span { color: var(--muted); font-size: 0.82rem; direction: rtl; }
.gx-subcur { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.gx-unit { position: relative; }
.gx-unit input { font-size: 1.45rem; font-weight: 600; padding-left: 4.5rem; direction: ltr; text-align: right; font-family: var(--display); }
.gx-unit .gx-unit-l { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; font-size: 0.95rem; pointer-events: none; }
.gx-tog.gx-tog-k { flex-wrap: wrap; }
.gx-tog.gx-tog-k button { min-width: 52px; }
.file { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: var(--surface); cursor: pointer; }
.file:hover { border-color: var(--brand); background: var(--brand-soft); }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file input:focus-visible + .gx-file-b { outline: 3px solid var(--focus); outline-offset: 2px; }
.gx-file-b { font-weight: 600; font-size: 0.92rem; background: var(--grad); color: var(--grad-ink); border-radius: 10px; padding: 8px 14px; white-space: nowrap; }
.gx-file-n { font-size: 0.9rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file.has .gx-file-n { color: var(--ink); font-weight: 600; }
.gx-tasks { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gx-tasks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gx-tasks { grid-template-columns: repeat(4, 1fr); } }
.gx-task { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.gx-task h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 10px; }
.gx-task h3 .gx-task-i { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.gx-task h3 .gx-task-i svg { width: 19px; height: 19px; }
.gx-task ul { list-style: none; margin: 0; padding: 0; }
.gx-task li a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.gx-task li:last-child a { border-bottom: 0; }
.gx-task li a:hover { color: var(--brand); }
.gx-task li a span { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.gx-hero-g { display: grid; gap: 22px; align-items: start; }
@media (min-width: 960px) { .gx-hero-g { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.gx-board .gx-box-h { margin-bottom: 8px; }
.gx-mkts { list-style: none; margin: 10px 0 0; padding: 0; }
.gx-mkts li a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.gx-mkts li:last-child a { border-bottom: 0; }
.gx-mkts .gx-mt { font-weight: 600; display: flex; gap: 8px; align-items: center; }
.gx-mkts .gx-mv { font-family: var(--display); font-weight: 700; display: flex; gap: 8px; align-items: center; }
.gx-mkts .gx-mv .lv { direction: ltr; }
.gx-mkts .gx-mv small { color: var(--muted); font-weight: 500; font-size: 0.78rem; font-family: var(--font); }
.gx-hits { list-style: none; margin: 8px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
.gx-hits:empty { display: none; }
.gx-hits a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); font-weight: 500; }
.gx-hits li:last-child a { border-bottom: 0; }
.gx-hits a:hover, .gx-hits a[aria-selected="true"] { background: var(--brand-soft); color: var(--brand); }
.gx-hits a span { color: var(--muted); font-size: 0.82rem; font-weight: 400; }
.gx-flag { display: inline-block; width: 1.34em; height: 1em; vertical-align: -0.14em; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(31, 26, 20, 0.12); }
.gx-mega.gx-mega-l .gx-mi.fl .gx-flag { width: 32px; height: 24px; border-radius: 5px; vertical-align: middle; }
.gx-pill { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); background: var(--surface-2); margin-inline-start: 4px; }
.gx-pill-st { color: #7d4a06; background: var(--gold-soft); border-color: #f0d38c; }
.gx-emb { font-size: 0.92rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gx-emb-h { background: var(--grad); color: var(--grad-ink); padding: 8px 12px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.gx-emb-h a { color: var(--grad-ink); font-weight: 600; font-size: 0.82rem; }
.gx-emb table td, .gx-emb table th { padding: 8px 12px; }
.gx-emb-f { font-size: 0.8rem; color: var(--muted); padding: 8px 12px; }
.gx-qa summary::after { content: ''; width: 14px; height: 14px; margin-top: 6px; background: no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%239a6a06' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); transition: transform .2s ease-out; font-size: 0; }
.gx-qa details[open] summary::after { content: ''; transform: rotate(45deg); }
.gx-calc .gx-inv { margin-bottom: 12px; }
.gx-inv-r[hidden] { display: none; }
.gx-inv-r .gx-inv-v { direction: rtl; unicode-bidi: plaintext; }
.gx-inv-t .gx-big { color: var(--ink); }
input[aria-invalid="true"] { border-color: var(--tax); }
.gx-banner h2, .gx-banner p { color: var(--grad-ink); }
.gx-brand { color: var(--ink); }

/* ---- shared page parts (tool, zakat, karat, reference pages) ---- */
h1.gx-h1 { padding-top: 18px; margin-bottom: 8px; }
.gx-intro { font-size: 1.12rem; color: var(--ink-2); max-width: 66ch; }
.gx-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 6px 0 18px; font-size: 0.86rem; color: var(--muted); }
.gx-meta > span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.gx-meta strong { color: var(--ink); font-weight: 600; }
.gx-tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 14px 0 6px; box-shadow: var(--shadow); }
table.gx-mkt caption { text-align: start; font-weight: 700; font-family: var(--display); padding: 14px 14px 4px; }
table.gx-mkt td.gx-nb { font-weight: 700; font-family: var(--display); }
table.gx-mkt .gx-unit-l { font-size: 0.8rem; color: var(--muted); font-weight: 500; margin-inline-start: 4px; }
table.gx-mkt td.gx-rr { color: var(--ink-2); }
table.gx-mkt tbody th { text-align: start; font-weight: 600; background: transparent; position: static; color: var(--ink); font-size: 0.95rem; }
tr.gx-grp th { background: var(--brand-soft) !important; color: var(--ink) !important; font-size: 0.86rem; position: static; }
.gx-cap, .gx-cap { font-size: 0.86rem; color: var(--muted); max-width: 72ch; }
.gx-prose { max-width: 72ch; }
.gx-alert { background: var(--gold-soft); border: 1px solid #f0d38c; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.95rem; margin: 14px 0; }
.gx-grid { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gx-grid a { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; min-height: 48px; }
.gx-grid a:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow); }
.gx-grid a span { color: var(--muted); font-weight: 400; font-size: 0.8rem; }
form.gx-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 4px 14px; grid-template-columns: minmax(0, 1fr); align-content: start; }
@media (min-width: 720px) { form.gx-form { padding: 26px; } }
@media (min-width: 560px) { form.gx-form.gx-c2, form.gx-form.gx-c3 { grid-template-columns: 1fr 1fr; } }
form.gx-form .gx-form { display: contents; }
.gx-calc > div:empty { display: none; }
.gx-f .gx-err { color: var(--tax); font-size: 0.82rem; }
.gx-f .gx-hint { color: var(--muted); font-size: 0.84rem; line-height: 1.5; }
.gx-inv h3 { font-family: var(--display); font-size: 1.05rem; border-bottom: 1.5px dashed var(--line-strong); padding-bottom: 12px; margin: 0 0 8px; }
.gx-inv .gx-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px dotted var(--line-strong); font-size: 0.97rem; }
.gx-inv .gx-row span:first-child { color: var(--ink-2); }
.gx-inv .gx-row span:last-child { font-weight: 600; text-align: left; }
.gx-inv .gx-row.gx-row-t { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 10px; padding-top: 14px; flex-wrap: wrap; }
.gx-inv .gx-row.gx-row-t span:first-child { font-family: var(--display); font-weight: 700; color: var(--ink); }
.gx-inv .gx-row.gx-row-t span:last-child { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--net); }
.gx-inv .gx-row-n { font-size: 0.85rem; color: var(--muted); margin: 12px 0 0; }
.gx-fig { display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); margin: 6px 0 18px; }
@media (min-width: 720px) { .gx-fig { grid-template-columns: 1fr auto; align-items: end; } }
.gx-fig .gx-sum-l { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--ink-2); }
.gx-fig .gx-n { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 1.6rem + 3.4vw, 3.6rem); line-height: 1.05; }
.gx-fig .gx-n .lv { direction: ltr; }
.gx-fig .gx-n small { font-size: 0.34em; color: var(--muted); font-weight: 500; }
.gx-fig .gx-world-s { font-size: 0.88rem; color: var(--muted); display: grid; gap: 4px; }
.gx-cols { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.gx-cols > * { min-width: 0; }
@media (min-width: 1024px) { .gx-cols { grid-template-columns: minmax(0, 1fr) 300px; } }
.gx-cols > div > h2 { margin-top: 36px; }
.gx-aside h2 { font-size: 1rem; }
.gx-aside section + section { margin-top: 22px; }
@media (max-width: 600px) { .hide-sm { display: none !important; } }
/* shabka pieces */
.gx-piece { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; grid-column: 1 / -1; }
.gx-piece-h { grid-column: 1 / -1; font-weight: 700; margin: 8px 0 2px; }
.gx-addp { grid-column: 1 / -1; justify-self: start; }
/* stamps kept as plain status badges */
.gx-stamp { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.gx-stamp-verified, .gx-stamp-official, .gx-stamp-high { background: var(--good-soft); color: var(--net); border-color: #b9e8d3; }
.gx-stamp-reported, .gx-stamp-medium, .gx-stamp-secondary { background: var(--gold-soft); color: #7d4a06; border-color: #f0d38c; }
.gx-stamp-low { background: var(--tax-soft); color: #9b1c1c; border-color: #f5c2c2; }
select { padding-inline-start: 14px; padding-inline-end: 40px; text-overflow: ellipsis; }
@media (max-width: 600px) { .gx-hero h1 { font-size: 1.9rem; } .gx-pills { display: none; } .gx-brand small { display: none; } .gx-find span { display: none; } .gx-find { padding: 10px; } }

/* headings that follow content get room above them (more space above a heading than below) */
main :is(.gx-links, .gx-grid, .gx-tbl, .gx-cap, .gx-tags, .gx-intro, .gx-alert, .gx-calc, .gx-facts, .gx-qa, .gx-form, p, ul, ol, dl, div) + h2 { margin-top: 40px; }
main :is(.gx-links, .gx-grid, .gx-tbl, .gx-cap, .gx-tags, p, ul, ol, div) + h3 { margin-top: 28px; }
main h2 { margin-bottom: 14px; }

/* build-time SVG charts */
.gx-chart { margin: 18px 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 8px; box-shadow: var(--shadow); }
.gx-chart svg { width: 100%; height: 260px; direction: ltr; display: block; }
.gx-chart .cg { stroke: var(--line); stroke-width: 1; }
.gx-chart .cy, .gx-chart .cx { fill: var(--muted); font: 500 11px var(--font); }
.gx-chart .cy { text-anchor: end; }
.gx-chart .cx { text-anchor: middle; }
.gx-chart .cl { fill: none; stroke: #c98b0e; stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.gx-chart .cd { fill: #c98b0e; stroke: #fff; stroke-width: 2; }
.gx-chart figcaption { font-size: 0.84rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 600px) { .gx-chart svg { height: 200px; } }

/* ---------- interactive price history (hchart.js) ---------- */
.hc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px 16px; margin: 16px 0 6px; }
.hc-ctl { display: grid; gap: 12px; margin-bottom: 18px; }
.hc-seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; max-width: 100%; }
.hc-seg button { font: 500 0.875rem/1 var(--font); color: var(--ink-2); background: none; border: 0; border-radius: 999px; padding: 9px 13px; min-height: 36px; cursor: pointer; white-space: nowrap; transition: background-color 0.15s, color 0.15s; }
.hc-seg button:hover { color: var(--ink); background: rgba(201, 139, 14, 0.1); }
.hc-seg button[aria-pressed='true'] { background: var(--surface); color: var(--brand); box-shadow: 0 1px 2px rgba(48, 34, 6, 0.12), 0 0 0 1px var(--line-strong); font-weight: 600; }
.hc-seg button:focus-visible, .hc-plot:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hc-range { overflow-x: auto; scrollbar-width: none; justify-self: start; }
.hc-range::-webkit-scrollbar { display: none; }
.hc-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.hc-sel, .hc-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--muted); }
.hc .hc-sel select, .hc .hc-pick select { min-height: 38px; width: auto; font-size: 0.875rem; padding-block: 6px; border-radius: 999px; color: var(--ink); }
.hc-pick select { min-width: 14rem; }
.hc-log { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--ink-2); cursor: pointer; min-height: 38px; }
.hc-log input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.hc-read { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'now hl' 'chg hl' 'note note'; gap: 4px 24px; align-items: end; margin-bottom: 10px; }
.hc-now { grid-area: now; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.hc-value { font: 600 1.75rem/1.2 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; direction: rtl; }
.hc-what { font-size: 0.875rem; color: var(--muted); }
.hc-chg { grid-area: chg; margin: 0; display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.hc-chg svg { width: 10px; height: 10px; fill: currentColor; flex: none; }
.hc-chg b { font-size: 1rem; font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.hc-chg span { direction: rtl; }
.hc-up, .hc-up b { color: #047857; }
.hc-down, .hc-down b { color: #b42318; }
.hc-up svg { fill: #047857; } .hc-down svg { fill: #b42318; }
.hc-chg.hc-up span, .hc-chg.hc-down span { color: var(--muted); }
.hc-hl { grid-area: hl; display: flex; gap: 22px; margin: 0; }
.hc-hl div { display: grid; gap: 2px; }
.hc-hl dt { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.hc-hl dd { margin: 0; font-size: 1rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hc-hl dd span { display: block; font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.hc-note { grid-area: note; margin: 6px 0 0; font-size: 0.875rem; color: var(--ink-2); background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 12px; }
.hc-link { font: inherit; color: var(--brand); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hc-stage { position: relative; }
.hc-plot { position: relative; direction: ltr; touch-action: pan-y; user-select: none; -webkit-user-select: none; border-radius: var(--radius-sm); cursor: crosshair; min-height: 236px; }
.hc-plot .gx-chart { margin: 0; border: 0; box-shadow: none; padding: 0; }
.hc-svg { display: block; width: 100%; height: auto; overflow: visible; }
.hc-grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.hc-axis { stroke: var(--line-strong); stroke-width: 1; shape-rendering: crispEdges; }
.hc-base { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.55; }
.hc-ty, .hc-tx { fill: var(--muted); font: 400 12px var(--font); font-variant-numeric: tabular-nums; }
.hc-ty { text-anchor: start; }
.hc-tx { text-anchor: middle; }
.hc-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hc-line.hc-gold { stroke: #a87406; }
.hc-line.hc-silver { stroke: #5b6474; }
.hc-dot { stroke: var(--surface); stroke-width: 2; }
.hc-dot.hc-gold { fill: #a87406; } .hc-dot.hc-silver { fill: #5b6474; }
.hc-vline { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.6; }
.hc-selrect { fill: rgba(201, 139, 14, 0.14); stroke: rgba(168, 116, 6, 0.5); stroke-width: 1; }
.hc-tip { position: absolute; pointer-events: none; display: grid; gap: 1px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow); padding: 6px 10px; text-align: center; white-space: nowrap; direction: rtl; }
.hc-tip b { font-size: 1rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hc-tip span { font-size: 0.75rem; color: var(--muted); }
.hc-empty { display: grid; place-items: center; min-height: 236px; margin: 0; color: var(--muted); font-size: 0.875rem; direction: rtl; text-align: center; padding: 0 16px; }
.hc.is-loading .hc-plot { opacity: 0.55; transition: opacity 0.2s; }
.hc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.hc-src { margin: 0; font-size: 0.75rem; color: var(--muted); line-height: 1.7; max-width: 62ch; }
.hc-src a { color: var(--ink-2); }
.hc-act { display: flex; flex-wrap: wrap; gap: 8px; }
.hc-act .gx-btn { min-height: 38px; padding: 8px 14px; font-size: 0.875rem; }
.hc-tbl .gx-tbl { max-height: 420px; overflow-y: auto; }
.hc-cap { caption-side: top; text-align: start; padding: 10px 14px; font-size: 0.875rem; color: var(--muted); }
@media (max-width: 640px) {
  .hc { padding: 14px 14px 12px; margin-inline: -4px; }
  .hc-ctl { gap: 10px; margin-bottom: 14px; }
  .hc-range { margin-inline: -14px; padding-inline: 14px; border-radius: 0; border-inline: 0; background: none; border: 0; padding-block: 0; }
  .hc-range button { background: var(--surface-2); border: 1px solid var(--line); }
  .hc-range button[aria-pressed='true'] { background: var(--surface); }
  .hc-range { gap: 6px; }
  .hc-opts { gap: 8px; }
  .hc-sel > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hc-pick { width: 100%; } .hc-pick select { flex: 1; min-width: 0; }
  .hc-read { grid-template-columns: 1fr; grid-template-areas: 'now' 'chg' 'hl' 'note'; gap: 4px; }
  .hc-hl { margin-top: 8px; }
  .hc-value { font-size: 1.5rem; }
  .hc-plot { min-height: 236px; }
}

.gx-tag.is-on { background: var(--brand-soft); border-color: #f0d38c; color: var(--brand); font-weight: 600; }

/* ---------- answer box (/ask/) and readers' questions (/qa/), ported from ArabTaxCalc ---------- */
.askf { position: relative; display: flex; align-items: center; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 4px; transition: border-color .2s, box-shadow .2s; }
.askf:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(201, 139, 14, 0.16); }
.askf-ic { display: grid; place-items: center; width: 40px; flex: none; color: var(--muted); }
.askf-ic svg { width: 20px; height: 20px; }
.askf input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); padding: 10px 2px; min-height: 0; outline: none; caret-color: var(--brand); box-shadow: none; }
.askf input::placeholder { color: var(--muted); }
.askf input::-webkit-search-cancel-button { display: none; }
.askf-go, .askbox-go { border: 0; background: var(--grad); color: var(--grad-ink); cursor: pointer; }
.askf-go { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; }
.askf-go svg { width: 20px; height: 20px; }
.askf-go:hover, .askbox-go:hover { filter: brightness(1.05); }
.askf-go:focus-visible, .askbox-go:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.askf-lg { padding: 6px; }
.askf-lg input { font-size: 1.125rem; padding: 12px 2px; }
.askf-lg .askf-go { width: 50px; height: 50px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ask-chips a, .ask-chips button { font: inherit; font-size: 0.875rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; text-decoration: none; cursor: pointer; line-height: 1.5; text-align: start; min-height: 38px; }
.ask-chips a:hover, .ask-chips button:hover { border-color: #f0d38c; color: var(--brand); background: var(--brand-soft); }

.ask { max-width: 860px; }
.askbox { position: relative; display: flex; align-items: flex-end; gap: 8px; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 26px; padding: 8px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .25s; }
.askbox:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 5px rgba(201, 139, 14, 0.15), var(--shadow); }
.askbox-ic { align-self: center; display: grid; place-items: center; width: 44px; flex: none; color: var(--brand); }
.askbox-ic svg { width: 24px; height: 24px; }
.askbox textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: none; background: transparent; font: inherit; font-size: 1.125rem; line-height: 1.6; color: var(--ink); padding: 12px 0; min-height: 0; max-height: 220px; caret-color: var(--brand); box-shadow: none; }
.askbox textarea::placeholder { color: var(--muted); }
.askbox-go { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 1rem; }
.askbox-go svg { width: 20px; height: 20px; }
.ask-notice { margin: 14px 0 0; font-size: 0.875rem; color: var(--muted); line-height: 1.7; }
.ts-slot:empty { display: none; }
.ts-slot { margin-top: 12px; display: flex; justify-content: center; }

.ans { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); scroll-margin-top: 88px; }
.ans.in { animation: ans-in .6s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes ans-in { from { opacity: 0; filter: blur(8px); transform: translateY(8px); } to { opacity: 1; filter: none; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ans.in { animation: none; } }
.ans-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ans-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem; color: var(--brand); }
.ans-badge svg { width: 20px; height: 20px; color: var(--brand-2); }
.ans[data-busy='1'] .ans-badge svg { animation: spark 1.6s ease-in-out infinite; }
@keyframes spark { 50% { transform: scale(.82) rotate(12deg); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .ans[data-busy='1'] .ans-badge svg { animation: none; } }
.ans-state { font-size: 0.875rem; color: var(--muted); }
.ans-body, .qa-off-body { font-size: 1.125rem; line-height: 1.95; color: var(--ink); max-width: 68ch; }
.ans-body p, .qa-off-body > p { margin: 0 0 12px; }
.ans-body ul, .ans-body ol, .qa-off-body ul, .qa-off-body ol { margin: 0 0 12px; padding-inline-start: 1.3em; }
.ans-body li, .qa-off-body li { margin-bottom: 6px; }
.ans-body li::marker, .qa-off-body li::marker { color: var(--brand-2); }
.ans-body strong, .qa-off-body strong { font-weight: 600; color: var(--ink); background: linear-gradient(transparent 62%, rgba(230, 171, 44, 0.28) 62%); }
.ans-body .lv, .qa-off-body .lv, .qa-ctx .lv { font-weight: 600; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.cite { display: inline-grid; place-items: center; min-width: 1.45em; height: 1.45em; padding: 0 4px; margin: 0 2px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-size: 0.75em; font-weight: 600; text-decoration: none; vertical-align: 0.35em; line-height: 1; font-variant-numeric: tabular-nums; }
.cite:hover { background: var(--brand); color: #fff; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-inline-start: 2px; background: var(--brand-2); vertical-align: -0.15em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ans-skel { display: grid; gap: 12px; padding: 4px 0 8px; }
.ans-skel i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--surface-2), var(--brand-soft), var(--surface-2)); background-size: 200% 100%; animation: skel 1.4s ease-in-out infinite; }
.ans-skel i:nth-child(2) { width: 88%; } .ans-skel i:nth-child(3) { width: 62%; }
@keyframes skel { to { background-position: -200% 0; } }
.ans-msg { margin: 4px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: 1rem; }
.ans h2 { font-size: 1rem; font-family: var(--font); font-weight: 600; color: var(--ink-2); margin: 0 0 12px; }
.ans-calc, .ans-src { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.ans-calc > div, .qa-calcs { display: flex; flex-wrap: wrap; gap: 8px; }
.ans-calc-a, .qa-calcs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; min-height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); text-decoration: none; font-weight: 600; font-size: 1rem; }
.ans-calc-a svg, .qa-calcs svg { width: 18px; height: 18px; flex: none; }
.ans-calc-a:hover, .qa-calcs a:hover { background: #f8e4b4; }
.ans-src ol { margin: 0; padding-inline-start: 1.6em; display: grid; gap: 8px; }
.ans-src li::marker { color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; }
.ans-src li a { font-weight: 500; }
.ans-src li span { display: block; font-size: 0.875rem; color: var(--muted); text-align: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ans-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ans-foot .gx-btn { min-height: 42px; padding: 8px 16px; font-size: 0.875rem; font-weight: 500; }
.ans-foot .gx-btn svg { width: 18px; height: 18px; }
.ans-note, .qa-note { margin: 16px 0 0; font-size: 0.875rem; color: var(--muted); line-height: 1.7; }
.pub { margin-top: 12px; padding: 16px 20px; border-radius: 16px; background: var(--brand-soft); }
.pub p { margin: 0 0 12px; color: var(--ink-2); font-size: 1rem; }
.pub p:last-child { margin: 0; }
.pub-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-row input { flex: 1 1 220px; min-height: 44px; }

.serp { margin-top: 32px; }
.serp h2 { font-size: 1rem; font-family: var(--font); font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.serp ol { list-style: none; margin: 0; padding: 0; }
.serp li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.serp li:last-child { border-bottom: 0; }
.serp a { text-decoration: none; display: grid; gap: 2px; }
.serp-path { font-size: 0.875rem; color: var(--net); text-align: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-t { font-family: var(--display); font-size: 1.125rem; font-weight: 500; color: var(--brand); line-height: 1.5; }
.serp a:hover .serp-t { text-decoration: underline; text-underline-offset: 4px; }
.serp p { margin: 4px 0 0; color: var(--ink-2); font-size: 1rem; line-height: 1.8; max-width: 70ch; }
.serp mark, .serp-t mark { background: none; color: inherit; font-weight: 700; }
.ask-recent .qa-mini { margin-bottom: 16px; }
.qa-mini { list-style: none; margin: 0; padding: 0; }
.qa-mini li { padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.7; }
.qa-mini li:last-child { border-bottom: 0; }
.qa-mini a { text-decoration: none; color: var(--ink); font-weight: 500; }
.qa-mini a:hover { color: var(--brand); }
.ask.asked > .ask-chips { display: none; }

.qa-index-ask { max-width: 760px; margin: 8px 0 32px; }
.qa-tools { margin-bottom: 20px; }
.qa-search input { width: 100%; max-width: 480px; margin-bottom: 14px; }
.qa-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.qa-filter button { font: inherit; font-size: 0.875rem; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; min-height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.qa-filter button svg { width: 16px; height: 16px; }
.qa-filter button[aria-pressed='true'] { background: var(--brand-soft); color: var(--brand); border-color: #f0d38c; font-weight: 600; }
.qa-hubs { display: grid; gap: 16px; margin-bottom: 24px; }
.qa-hubs h2 { font-size: 1rem; font-family: var(--font); color: var(--muted); margin: 0 0 8px; }
.qa-hubs div { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.qa-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.qa-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; transition: border-color .2s; }
.qa-item:hover { border-color: #f0d38c; }
.qa-item a { text-decoration: none; color: inherit; display: block; }
.qa-item h3 { font-size: 1.125rem; margin: 0 0 8px; color: var(--ink); line-height: 1.6; }
.qa-item a:hover h3 { color: var(--brand); }
.qa-item p { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.85; }
.qa-item-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 0.875rem; color: var(--muted); }
.qa-item-meta span { display: inline-flex; align-items: center; gap: 6px; }
.qa-item-meta svg { width: 16px; height: 16px; }
.qa-first { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 32px; text-align: center; }
.qa-first p { color: var(--ink-2); margin: 0 auto; max-width: 56ch; }

.qa-head h1 { line-height: 1.45; max-width: 32ch; text-wrap: balance; }
.qa-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); font-size: 0.875rem; margin: 0; }
.qa-meta span, .qa-where, .qa-dev { display: inline-flex; align-items: center; gap: 6px; }
.qa-dev svg { width: 16px; height: 16px; }
.qa-grid { display: grid; gap: 24px; margin-top: 24px; }
.qa-grid > * { min-width: 0; }
@media (min-width: 980px) { .qa-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 32px; } .qa-side { position: sticky; top: 88px; } }
.qa-official { background: var(--surface); border: 1.5px solid #cfe8dc; border-radius: 20px; padding: 24px; }
.qa-off-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.qa-off-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--net); }
.qa-off-badge svg { width: 22px; height: 22px; }
.qa-off-by { font-size: 0.875rem; color: var(--muted); }
.qa-src { margin-top: 12px; font-size: 1rem; }
.qa-src summary { cursor: pointer; color: var(--ink-2); font-weight: 500; }
.qa-src ol { margin: 8px 0 0; padding-inline-start: 1.6em; display: grid; gap: 6px; }
.qa-calcs { margin-top: 16px; }
.qa-comm { margin-top: 32px; }
.qa-comm h2 span { color: var(--muted); font-weight: 400; }
.qa-alist { display: grid; gap: 12px; }
.qa-a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.qa-a header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 1rem; }
.qa-a header time { color: var(--muted); font-size: 0.875rem; margin-inline-start: auto; }
.qa-av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; flex: none; }
.qa-a-body { line-height: 1.9; color: var(--ink); }
.qa-a-body p { margin: 0 0 8px; }
.qa-help { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 0.875rem; color: var(--ink-2); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; min-height: 36px; cursor: pointer; }
.qa-help svg { width: 16px; height: 16px; }
.qa-help b { font-weight: 600; font-variant-numeric: tabular-nums; }
.qa-help:hover { border-color: var(--net); color: var(--net); }
.qa-help[aria-pressed='true'] { background: var(--good-soft); border-color: transparent; color: var(--net); cursor: default; }
.qa-empty { color: var(--muted); margin: 0; padding: 16px 0; }
.qa-form { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.qa-form h3 { font-size: 1.125rem; margin: 0 0 16px; }
.qa-form textarea { width: 100%; font: inherit; font-size: 1rem; line-height: 1.8; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); resize: vertical; caret-color: var(--brand); }
.qa-form textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(201, 139, 14, 0.15); }
.qa-form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.qa-form-row .gx-hint { margin: 0; flex: 1 1 260px; }
.form-msg { margin: 12px 0 0; font-weight: 500; min-height: 1.5em; }
.form-msg[data-kind='ok'] { color: var(--net); }
.form-msg[data-kind='err'] { color: #b42318; }
.qa-side { display: grid; gap: 16px; }
.qa-side h2 { font-size: 1.125rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.qa-ctx, .qa-ask-card, .qa-rel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.qa-ctx dl { margin: 0; display: grid; }
.qa-ctx dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.qa-ctx dl > div:last-child { border-bottom: 0; }
.qa-ctx dt { color: var(--muted); }
.qa-ctx dd { margin: 0; color: var(--ink); text-align: end; }
.qa-ctx-n { font-size: 0.875rem; color: var(--muted); margin: 8px 0 0; }
.qa-ctx-links { display: grid; gap: 10px; margin-top: 16px; font-size: 1rem; }
.qa-ask-card p { margin: 0 0 12px; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 719px) {
  .askbox { border-radius: 22px; } .askbox-go { width: 52px; padding: 0; justify-content: center; } .askbox-go span { display: none; } .askbox textarea { font-size: 1rem; }
  .ask > .ask-chips button:nth-child(n+5) { display: none; }
  .ans { margin-top: 16px; padding: 20px 16px; border-radius: 18px; }
  .ans-body, .qa-off-body { font-size: 1rem; line-height: 1.9; }
  .qa-official { padding: 20px 16px; }
  .qa-item { padding: 16px; }
}

.gx-badge-row { margin: 28px 0 0; display: flex; justify-content: center; }

/* ---------- install bar (install.js, from ArabTaxCalc) ---------- */
.gx-install { position: fixed; inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 50; display: flex; align-items: center; gap: 12px; max-width: 560px; margin-inline: auto; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 4px rgba(48, 34, 6, 0.06), 0 18px 40px -18px rgba(48, 34, 6, 0.38); transform: translateY(0); opacity: 1; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.gx-install.enter { transform: translateY(16px); opacity: 0; }
body.ib-on { padding-bottom: 96px; }
.gx-install img { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto; }
.gx-install .ib-text { flex: 1; min-width: 0; line-height: 1.5; }
.gx-install .ib-text b { display: block; font-size: 1rem; font-weight: 600; color: var(--ink); }
.gx-install .ib-text span { font-size: 0.875rem; color: var(--muted); }
.gx-install .ib-text span svg { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-inline: 2px; color: var(--brand); }
.gx-install .gx-btn { flex: 0 0 auto; }
.gx-install .ib-close { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; }
.gx-install .ib-close:hover { background: var(--surface-2); color: var(--ink); }
.gx-install .ib-close:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.gx-install .ib-close svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .gx-install { transition: none; } }
@media print { .gx-install { display: none !important; } }
