/* taqaud.loopnode.live — LoopNode design system v1 (websites/DESIGN.md). Arabic-first, RTL, mobile-first. */

/* ---------- Fonts (self-hosted, subset; DESIGN §3) ---------- */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("fonts/plex-arabic-400.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("fonts/plex-arabic-500.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("fonts/plex-arabic-600.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("fonts/plex-arabic-700.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2010-2027, U+2190-2193, U+2212;
}

/* ---------- Tokens (DESIGN §2) ---------- */
:root {
  /* page container (header, nav, every section): owner 2026-09-30, was 1120px. Body text keeps its own 68ch limit. */
  --container: 1280px;
  --mark: #07352b;
  --accent: var(--brand);
  --on-accent: var(--on-brand);
  --brand: #0f7b5f;
  --brand-strong: #0b5e49;
  --brand-soft: #e2f6ee;
  --on-brand: #ffffff;
  --gold: #b7892f;
  --gold-ink: #7a5a1b;
  --gold-soft: #fbf3e2;
  --bg: #f4faf7;
  --surface: #ffffff;
  --surface-2: #edf6f2;
  --border: #d9ebe3;
  --border-strong: #bcd6cb;
  --text: #0d231d;
  --muted: #48605a;
  --info-ink: #1e40af;
  --info-bg: #eff6ff;
  --info-line: #bfdbfe;
  --warn-ink: #92400e;
  --warn-bg: #fffbeb;
  --warn-line: #fde68a;
  --error-ink: #b42318;
  --error-bg: #fef3f2;
  --error-line: #fecdca;
  --ok-ink: #067647;
  --ok-bg: #ecfdf3;
  --ok-line: #abefc6;
  --hero-bg: #07352b;
  --hero-ink: #ffffff;
  --hero-muted: #bff3e3;
  --link: #0b5e49;
  --focus: #2563eb;
  --shadow: 0 1px 2px rgb(7 53 43 / 0.05), 0 12px 32px -16px rgb(7 53 43 / 0.16);
  --shadow-lg: 0 2px 4px rgb(7 53 43 / 0.05), 0 28px 56px -24px rgb(7 53 43 / 0.28);
  --r-input: 12px;
  --r-card: 16px;
  --r-panel: 24px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --fast: 160ms;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #3ddbb0;
    --brand-strong: #74e8c8;
    --brand-soft: #0d3a30;
    --on-brand: #04241b;
    --gold: #e3b04b;
    --gold-ink: #f0cd84;
    --gold-soft: #2e2512;
    --bg: #041a15;
    --surface: #0a2720;
    --surface-2: #0f3129;
    --border: #1b4338;
    --border-strong: #2a5a4c;
    --text: #e4f5ee;
    --muted: #a3c2b7;
    --info-ink: #93c5fd;
    --info-bg: #0f1d3a;
    --info-line: #1e3a8a;
    --warn-ink: #fcd34d;
    --warn-bg: #2a2110;
    --warn-line: #78520f;
    --error-ink: #fda29b;
    --error-bg: #2d1414;
    --error-line: #7a271a;
    --ok-ink: #75e0a7;
    --ok-bg: #0d2a1e;
    --ok-line: #085d3a;
    --hero-bg: #0c4a3c;
    --hero-ink: #ecfff8;
    --hero-muted: #9fe8d1;
    --link: #5fe3bf;
    --focus: #60a5fa;
    --shadow: 0 0 0 1px rgb(255 255 255 / 0.02);
    --shadow-lg: 0 24px 48px -24px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3 {
  line-height: 1.4;
  margin: 0;
  font-weight: 700;
}
h3 {
  font-weight: 600;
}
p {
  margin: 0 0 12px;
}
a {
  color: var(--link);
  text-underline-offset: 3px;
  transition: color var(--fast) var(--ease);
}
a:hover {
  color: var(--brand);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
bdi {
  unicode-bidi: isolate;
}
.eq {
  /* Review 1 #1: formulas are LTR islands inside Arabic text. */
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  max-width: 100%;
  padding: 0 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  font-family: "Inter", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  inset-inline-start: 8px;
  top: -80px;
  z-index: 50;
}
.skip:focus {
  top: 8px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 640px) {
  .container {
    padding-inline: 24px;
  }
}

/* ---------- Header (sticky, translucent) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand:hover {
  color: var(--text);
}
.brand-icon {
  display: block;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 8px;
}
/* icons v3: the header leads with the falcon + the tool name (LoopNode is credited in the footer) */
.brand-tool {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}
.site-header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
}
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition:
    background-color var(--fast) var(--ease),
    color var(--fast) var(--ease);
}
.site-header nav a:hover {
  background: var(--surface-2);
  color: var(--text);
}
.site-header nav a[aria-current="page"] {
  color: var(--link);
  background: var(--brand-soft);
  font-weight: 600;
}
.site-header nav a {
  white-space: nowrap;
}
@media (max-width: 420px) {
  .site-header nav a {
    padding: 0 7px;
    font-size: 14px;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 32px 0 24px;
  background:
    radial-gradient(900px 360px at 88% -20%, var(--brand-soft), transparent 70%),
    radial-gradient(
      600px 300px at 0% 0%,
      color-mix(in srgb, var(--gold-soft) 70%, transparent),
      transparent 70%
    );
}
@media (min-width: 960px) {
  .hero {
    padding: 56px 0 32px;
  }
}
.chips {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}
.chips .icon {
  width: 16px;
  height: 16px;
  color: var(--brand);
}
.hero h1 {
  font-size: 30px;
  line-height: 1.35;
  max-width: 24ch;
  margin-bottom: 12px;
}
@media (min-width: 960px) {
  .hero h1 {
    font-size: 44px;
  }
}
.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 68ch;
  margin: 0;
}

/* ---------- Tool: two columns with a sticky result ---------- */
.tool {
  padding-bottom: 8px;
}
.tool-grid {
  display: grid;
  gap: 20px;
  align-items: start;
}
/* Review 1 #2: grid/flex children may shrink below their content (no sideways scroll at 390px). */
.tool-grid > *,
.stats > *,
.field-row > *,
.tables-grid > * {
  min-width: 0;
}
@media (min-width: 960px) {
  .tool-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 28px;
  }
  /* DESIGN §6b / review 2 #1: sticky only while it fits the viewport (JS adds .stick); never an inner scroll or a
     clipped bottom — a taller panel simply scrolls with the page. */
  .result-col {
    align-self: start;
  }
  .result-col.stick {
    position: sticky;
    top: 88px;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}
.form-card {
  padding: 20px;
}
@media (min-width: 640px) {
  .form-card {
    padding: 28px;
  }
}
.card-head h2 {
  font-size: 22px;
}
.helper,
.hint {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 4px 0 0;
}
.optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 14px;
}

/* ---------- Form controls (DESIGN §5) ---------- */
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.group {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
legend {
  float: inline-start;
  width: 100%;
  padding: 0;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
}
legend + * {
  clear: both;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  min-width: 0;
  flex: 1;
}
.field-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 0 0;
  color: var(--error-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.field-error .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
label {
  font-size: 15px;
  font-weight: 500;
}
input,
select {
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-input);
  min-height: 48px;
  width: 100%;
  padding: 10px 14px;
  font-variant-numeric: tabular-nums;
  transition:
    border-color var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease),
    background-color var(--fast) var(--ease);
}
input::placeholder {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}
input[dir="ltr"] {
  text-align: right;
}
input:hover,
select:hover {
  border-color: var(--muted);
}
input:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent);
}
input[aria-invalid="true"] {
  border-color: var(--error-ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--error-ink) 18%, transparent);
}
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    18px 21px,
    23px 21px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-left: 40px;
}
/* Inline units (RTL page, LTR number inputs: the unit sits on the physical left). */
.affix {
  position: relative;
}
.affix input {
  padding-left: 60px;
}
.unit {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}
/* Segmented control */
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 4px;
}
.seg label {
  position: relative;
  cursor: pointer;
}
.seg input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.seg span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  transition:
    background-color var(--fast) var(--ease),
    color var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
}
.seg label:hover span {
  color: var(--text);
}
.seg input:checked + span {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow:
    0 1px 2px rgb(15 23 42 / 0.08),
    0 0 0 1px var(--border);
}
.seg input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}
/* Stepper */
.stepper {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 6px;
}
.stepper input {
  text-align: center;
}
.step {
  min-height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-input);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--fast) var(--ease),
    transform var(--fast) var(--ease);
}
.step:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.step:active {
  transform: scale(0.96);
}

/* ---------- Buttons ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--r-input);
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--fast) var(--ease),
    border-color var(--fast) var(--ease),
    color var(--fast) var(--ease),
    transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  flex: 1 1 200px;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow:
    0 1px 2px rgb(15 23 42 / 0.12),
    0 8px 20px -10px color-mix(in srgb, var(--brand) 70%, transparent);
}
.btn-primary:hover {
  background: var(--brand-strong);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--muted);
  background: var(--surface-2);
}
.btn-ghost {
  background: transparent;
  color: var(--link);
}
.btn-ghost:hover {
  background: var(--brand-soft);
}

/* ---------- Alerts / badges ---------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-input);
  border: 1px solid;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}
.alert .icon {
  margin-top: 3px;
}
.alert-info {
  color: var(--info-ink);
  background: var(--info-bg);
  border-color: var(--info-line);
}
.alert-warn {
  color: var(--warn-ink);
  background: var(--warn-bg);
  border-color: var(--warn-line);
}
.alert-error {
  color: var(--error-ink);
  background: var(--error-bg);
  border-color: var(--error-line);
  margin-top: 16px;
  display: block;
}
.alert-error ul {
  margin: 4px 0 0;
  padding-inline-start: 20px;
}
.alert-error a {
  color: inherit;
}
.alert-success {
  color: var(--ok-ink);
  background: var(--ok-bg);
  border-color: var(--ok-line);
}
.alert span {
  color: var(--text);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  background: var(--gold-soft);
  color: var(--gold-ink);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}

/* ---------- Result panel ---------- */
.result-panel {
  overflow: hidden;
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-lg);
  outline-offset: 4px;
}
.empty {
  text-align: center;
  padding: 36px 24px 32px;
}
.empty-art {
  width: 112px;
  height: 112px;
  margin: 0 auto 12px;
  display: block;
}
.ea-ring {
  fill: var(--brand-soft);
  stroke: var(--border-strong);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
}
.ea-glass {
  fill: none;
  stroke: var(--brand);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ea-node {
  fill: var(--gold);
}
.empty h2 {
  font-size: 20px;
  margin-bottom: 6px;
}
.empty p {
  color: var(--muted);
  font-size: 15px;
  max-width: 38ch;
  margin: 0 auto;
}
.result-hero {
  background: var(--hero-bg);
  color: var(--hero-ink);
  padding: 22px 24px 20px;
}
.result-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.result-top h2 {
  font-size: 18px;
  font-weight: 600;
}
.regime {
  /* Review 1 #10: coverage status as a status badge (check-circle, green tint), not an info pill. */
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px 6px 14px;
  border-radius: 999px;
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.regime .icon {
  color: var(--ok-ink);
  margin-top: 2px;
}
.headline-label {
  color: var(--hero-muted);
  font-size: 15px;
  margin: 0;
}
.headline {
  font-family: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin: 2px 0 4px;
}
@media (min-width: 960px) {
  .headline {
    font-size: 48px;
  }
}
.headline-sub {
  color: var(--hero-muted);
  font-size: 15px;
  margin: 0;
}
.result-body {
  padding: 20px 24px 24px;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 16px;
}
.stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  padding: 12px 14px;
}
.stat:nth-child(3) {
  grid-column: 1 / -1;
}
@media (max-width: 400px) {
  .stats {
    grid-template-columns: 1fr;
  }
}
.stat dt {
  color: var(--muted);
  font-size: 14px;
}
.stat dd {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.stat dd small {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.pension-block h3,
.accordion-body h3 {
  font-size: 16px;
  margin: 8px 0;
}
.pension-block .alert {
  margin-bottom: 10px;
}
.breakdown {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-bottom: 6px;
}
.breakdown th,
.breakdown td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
  background: transparent !important;
}
.breakdown th {
  font-weight: 500;
  color: var(--muted);
  width: 38%;
  position: static;
  font-size: 15px;
}
.breakdown td {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  .breakdown th,
  .breakdown td {
    display: block;
    width: auto;
    padding: 4px 0;
    border-bottom: 0;
  }
  .breakdown tr {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }
}
.breakdown-note {
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0 8px;
}
.breakdown tr:last-child th,
.breakdown tr:last-child td {
  border-bottom: 0;
}
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  margin: 14px 0;
  background: var(--surface);
}
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  border-radius: var(--r-input);
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary:hover {
  background: var(--surface-2);
}
.accordion summary .icon,
.qa summary .icon {
  transition: transform var(--fast) var(--ease);
}
.accordion[open] summary .icon,
.qa[open] summary .icon {
  transform: rotate(180deg);
}
.accordion-body {
  padding: 0 14px 12px;
}
.steps {
  padding-inline-start: 20px;
  margin: 0 0 8px;
  font-size: 15px;
}
.steps li {
  margin: 6px 0;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}
.result-actions .btn {
  min-height: 44px;
  font-size: 15px;
}
.notice {
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin: 0;
}
.source {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 0;
}
.source a {
  overflow-wrap: anywhere;
}
.warn {
  color: var(--error-ink);
  font-weight: 700;
}

/* ---------- Notes under the tool: one neutral card, amber only for the disclaimer (review 1 #9) ---------- */
.notes {
  margin-top: 20px;
}
.notes-card {
  padding: 8px 20px;
}
.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 0;
  font-size: 15px;
  line-height: 1.75;
}
.note + .note {
  border-top: 1px solid var(--border);
}
.note .icon {
  color: var(--muted);
  margin-top: 3px;
}
.note-warn .icon {
  color: var(--warn-ink);
}
.note-warn strong {
  color: var(--warn-ink);
}

/* ---------- Content sections ---------- */
.section {
  padding: 16px 0;
}
.section-title {
  font-size: 24px;
  margin: 8px 0 16px;
}
@media (min-width: 960px) {
  .section-title {
    font-size: 30px;
  }
}
.prose {
  padding: 22px 20px;
}
@media (min-width: 640px) {
  .prose {
    padding: 32px 36px;
  }
}
.prose h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
.prose h3 {
  font-size: 18px;
  margin: 22px 0 8px;
}
.prose > p,
.prose > ul,
.prose > ol {
  max-width: 68ch;
}
.prose ul,
.prose ol {
  padding-inline-start: 22px;
  margin: 0 0 12px;
}
.prose li {
  margin: 6px 0;
}
.prose li::marker {
  color: var(--brand);
}
.prose .alert {
  margin: 12px 0;
}
.groups {
  list-style: none;
  padding: 0 !important;
  display: grid;
  gap: 10px;
}
.groups li {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--r-input);
  background: var(--surface-2);
  border-inline-start: 3px solid var(--brand);
}
.numbered {
  counter-reset: n;
  list-style: none;
  padding: 0 !important;
}
.numbered li {
  counter-increment: n;
  position: relative;
  padding-inline-start: 40px;
  margin: 12px 0;
}
.numbered li::before {
  content: counter(n);
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--link);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
}

/* How it works */
.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: s;
}
@media (min-width: 760px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step-card {
  padding: 22px;
  counter-increment: s;
  position: relative;
}
.step-card::after {
  content: counter(s);
  position: absolute;
  top: 22px;
  inset-inline-end: 22px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--link);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.step-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 12px;
}
.step-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}
.step-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* Tables (GOSI tables: zebra rows, sticky header while scrolling) */
.tables-grid {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}
/* Review 1 #7: the two GOSI tables stack full width (no cramped cells). */
.table-wrap {
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  margin: 8px 0 4px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
caption {
  text-align: start;
  font-weight: 600;
  padding: 12px 14px 8px;
}
th,
td {
  overflow-wrap: anywhere;
  padding: 9px 14px;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-2);
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}
tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--surface-2) 55%, var(--surface));
}
tbody tr:last-child td {
  border-bottom: 0;
}
tr.match td {
  background: var(--gold-soft) !important;
  color: var(--text);
  font-weight: 700;
}
tr.match td:first-child {
  box-shadow: inset -4px 0 0 var(--gold);
}
.fine {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0;
}

/* FAQ accordion */
.faq-list {
  padding: 4px 0;
}
.qa + .qa {
  border-top: 1px solid var(--border);
}
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  transition: background-color var(--fast) var(--ease);
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary:hover {
  background: var(--surface-2);
}
.qa summary h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
}
.qa summary .icon {
  color: var(--muted);
}
.qa-body {
  padding: 0 22px 20px;
}
.qa-body p {
  margin: 0;
  max-width: 68ch;
}
.qa[open] .qa-body,
.accordion[open] .accordion-body {
  animation: rise 180ms var(--ease);
}

/* Related tools */
.related-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
@media (min-width: 760px) {
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  text-decoration: none;
  color: var(--text);
  transition:
    border-color var(--fast) var(--ease),
    transform var(--fast) var(--ease);
}
.related-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  color: var(--text);
}
.related-name {
  font-weight: 700;
  font-size: 18px;
  color: var(--link);
}
.related-desc {
  color: var(--muted);
  font-size: 15px;
}

/* Reserved ad slots: fixed height (fits 300×250 / 336×280) so filling them later causes no shift; empty until approved. */
.ad-slot {
  /* DESIGN §6b / review 1 #4: a visible, labelled container — never an unexplained blank band. Empty until AdSense
     approves; the label is CSS so the slot's markup stays empty. */
  position: relative;
  height: 280px;
  margin: 48px 0;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.ad-slot::before {
  content: "إعلان";
  position: absolute;
  top: 8px;
  inset-inline-start: 14px;
  font-size: 12px;
  color: var(--muted);
}

/* Inner pages */
.page {
  padding-block: 32px 16px;
}
.page .explain {
  padding: 24px 20px;
  max-width: 820px;
}
@media (min-width: 640px) {
  .page .explain {
    padding: 36px 40px;
  }
}
.page h1 {
  font-size: 32px;
  margin-bottom: 16px;
}
.page h2 {
  font-size: 20px;
  margin: 24px 0 8px;
}
.page ul {
  padding-inline-start: 22px;
}
.page li {
  margin: 6px 0;
}
.page .notice {
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  color: var(--text);
  border-radius: var(--r-input);
  padding: 12px 16px;
  font-size: 15px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
  padding: 32px 0 40px;
}
.footer-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}
.footer-links a {
  color: var(--text);
}
.copy {
  margin: 0;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  background: var(--text);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 60;
  transition:
    opacity 180ms var(--ease),
    transform 180ms var(--ease);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Motion (DESIGN §6) ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.enter {
  animation: rise 200ms var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Print: the result only ---------- */
@media print {
  .site-header,
  .hero,
  .form-card,
  .notes,
  .ad-slot,
  .section,
  .band,
  .site-footer,
  .result-actions,
  .skip,
  .toast {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .tool-grid {
    display: block;
  }
  .result-col {
    position: static;
  }
  .result-panel {
    box-shadow: none;
    border: 1px solid #999;
  }
  .result-hero {
    background: #fff;
    color: #000;
    border-bottom: 1px solid #999;
  }
}

/* Review 1 #13: the official example as a callout with its own source; rule sources close each block. */
.callout {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: var(--r-card);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}
.callout p {
  margin: 0 0 6px;
}
.callout .source {
  margin-top: 6px;
}
.source bdi {
  white-space: nowrap;
}
.site-footer .footer-links a,
.site-footer .copy a {
  color: var(--muted);
}
.site-footer .footer-links a:hover,
.site-footer .copy a:hover {
  color: var(--text);
}

legend.sub-label,
.sub-label {
  font-size: 15px;
  font-weight: 500;
  margin: 12px 0 0;
}

@media (min-width: 481px) {
  .breakdown .eq {
    white-space: nowrap;
  }
}

/* ---------- Design review 2 (2026-09-30) ---------- */
/* #2 formulas in running text stand on their own LTR line (read as a unit, like the breakdown). */
.qa-body .eq,
.callout .eq {
  display: block;
  width: fit-content;
  margin: 8px 0;
}
/* #5 skeleton of the real result in the empty panel */
.skeleton {
  display: grid;
  gap: 14px;
  margin: 0 0 20px;
  text-align: start;
}
.sk-headline {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: var(--r-card);
  background: color-mix(in srgb, var(--hero-bg) 12%, var(--surface));
}
.sk-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sk-tile {
  height: 72px;
  border-radius: var(--r-input);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.sk-tile:nth-child(3) {
  grid-column: 1 / -1;
}
.sk-lines {
  display: grid;
  gap: 10px;
}
.sk-bar {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--border-strong) 70%, transparent);
}
.sk-bar.big {
  height: 34px;
  border-radius: 10px;
}
.sk-bar.w30 {
  width: 30%;
}
.sk-bar.w40 {
  width: 40%;
}
.sk-bar.w60 {
  width: 60%;
}
.sk-bar.w70 {
  width: 70%;
}
.sk-bar.w75 {
  width: 75%;
}
.sk-bar.w90 {
  width: 90%;
}
.skeleton .sk-bar,
.skeleton .sk-tile {
  animation: sk-pulse 1.6s ease-in-out infinite;
}
@keyframes sk-pulse {
  50% {
    opacity: 0.55;
  }
}
.empty {
  padding: 24px 24px 28px;
}
/* #4 a group error marks the whole group */
fieldset.has-error,
.has-error {
  border-inline-start: 3px solid var(--error-ink);
  padding-inline-start: 12px;
}
/* #6 mobile hero: form above the fold */
@media (max-width: 599px) {
  .hero {
    padding: 20px 0 16px;
  }
  .hero h1 {
    font-size: 28px;
    line-height: 1.35;
  }
  .hero .lead {
    font-size: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .chips {
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 12px;
  }
  .chips li {
    white-space: nowrap;
    font-size: 13px;
    padding: 2px 9px;
  }
  .chip-more {
    display: none;
  }
}
@media (max-width: 400px) {
  .chips .icon {
    display: none;
  }
}
/* LOW */
.alert-neutral {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
}
.alert-neutral .icon {
  color: var(--muted);
}
.ad-slot::before {
  font-size: 13px;
  font-weight: 500;
}
.source .checked {
  white-space: nowrap;
}
.breakdown tr.total th,
.breakdown tr.total td {
  border-top: 2px solid var(--border-strong);
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}
/* mobile header: tool name next to the logo (the brand link already goes home, so the first nav item hides) */
@media (max-width: 719px) {
  .brand-tool {
    font-size: 16px;
  }
  .site-header nav li:first-child {
    display: none;
  }
}

.nowrap {
  white-space: nowrap;
}

/* =====================================================================================================================
   ⭐ v2 HERO (DESIGN.md v2 direction, 2026-09-30) — first screen only; the rest keeps v1 until the owner approves.
   Bold, bright, friendly (Tabby-inspired, own palette): mint #3DDBB0 · deep green #07352B · gold #E3B04B.
   ===================================================================================================================== */
:root {
  --v2-bg: #3ddbb0;
  --v2-ink: #07352b;
  --v2-soft: #0b4a3c;
  --v2-gold: #e3b04b;
  --v2-card: #ffffff;
  --v2-preview: #07352b;
  --v2-preview-ink: #ffffff;
  --v2-preview-soft: #bff3e3;
  --v2-chip: rgb(255 255 255 / 0.55);
  --v2-art-ink: #07352b;
  --v2-art-dune: rgb(7 53 43 / 0.16);
  --v2-art-dune2: rgb(7 53 43 / 0.28);
  --v2-band: #07352b;
  --v2-deep: #07352b;
  --v2-deep-soft: #bff3e3;
  --v2-mint: #3ddbb0;
  --v2-foot: #07352b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --v2-bg: #07352b;
    --v2-ink: #ecfff8;
    --v2-soft: #b5eedc;
    --v2-card: #0a2720;
    --v2-preview: #0c4a3c;
    --v2-preview-ink: #ecfff8;
    --v2-preview-soft: #9fe8d1;
    --v2-chip: rgb(255 255 255 / 0.08);
    --v2-art-ink: #3ddbb0;
    --v2-art-dune: rgb(61 219 176 / 0.12);
    --v2-art-dune2: rgb(61 219 176 / 0.22);
    --v2-band: #031f19;
    --v2-deep: #0c4a3c;
    --v2-deep-soft: #9fe8d1;
    --v2-foot: #031f19;
  }
}
/* header sits on the brand colour on every page (solid: it also carries the inner pages' mint hero) */
.site-header {
  --accent: var(--v2-ink);
  --on-accent: var(--v2-bg);
  background: var(--v2-bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.site-header .brand,
.site-header .brand-tool,
.site-header nav a {
  color: var(--v2-ink);
}
.site-header nav a:hover {
  background: color-mix(in srgb, #ffffff 35%, transparent);
  color: var(--v2-ink);
}
.site-header nav a[aria-current="page"] {
  background: var(--v2-ink);
  color: var(--v2-bg);
}
.hero.v2 {
  position: relative;
  overflow: hidden;
  color: var(--v2-ink);
  padding: 40px 0 72px;
  background:
    radial-gradient(
      520px 520px at 8% 12%,
      color-mix(in srgb, var(--v2-gold) 30%, transparent),
      transparent 70%
    ),
    radial-gradient(700px 500px at 100% 100%, color-mix(in srgb, #ffffff 28%, transparent), transparent 70%),
    var(--v2-bg);
}
@media (prefers-color-scheme: dark) {
  .hero.v2 {
    background:
      radial-gradient(
        520px 520px at 8% 12%,
        color-mix(in srgb, var(--v2-gold) 14%, transparent),
        transparent 70%
      ),
      radial-gradient(700px 500px at 100% 100%, color-mix(in srgb, #3ddbb0 14%, transparent), transparent 70%),
      var(--v2-bg);
  }
}
.hero-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
  }
}
.hero.v2 .chips li {
  background: var(--v2-chip);
  border: 0;
  color: var(--v2-ink);
  font-weight: 600;
}
.hero.v2 .chips .icon {
  color: var(--v2-ink);
}
.hero.v2 h1 {
  color: var(--v2-ink);
  font-size: 50px;
  line-height: 1.22;
  font-weight: 700;
  max-width: 15em;
  margin: 18px 0 16px;
}
.hero.v2 .lead {
  color: var(--v2-soft);
  font-size: 19px;
  max-width: 34em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
/* rounded pill buttons */
.btn-pill {
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.btn-pill-primary,
.btn-pill-primary:hover {
  color: var(--v2-bg);
}
.btn-pill-primary {
  background: var(--v2-ink);
  box-shadow: 0 10px 24px -12px rgb(7 53 43 / 0.6);
}
.btn-pill-primary:hover {
  background: var(--v2-soft);
  transform: translateY(-1px);
}
.btn-pill-ghost,
.btn-pill-ghost:hover {
  color: var(--v2-ink);
}
.btn-pill-ghost {
  background: transparent;
  border: 2px solid var(--v2-ink);
}
.btn-pill-ghost:hover {
  background: color-mix(in srgb, #ffffff 35%, transparent);
}
@media (prefers-color-scheme: dark) {
  .btn-pill-primary,
  .btn-pill-primary:hover {
    color: #07352b;
  }
  .btn-pill-primary {
    background: #3ddbb0;
  }
  .btn-pill-primary:hover {
    background: #74e8c8;
  }
  .btn-pill-ghost:hover {
    background: rgb(61 219 176 / 0.12);
  }
}
/* friendly illustration (inline SVG, colours from tokens) */
.hero-art-wrap {
  margin-top: 24px;
  max-width: 360px;
}
.hero-art {
  display: block;
  width: 100%;
  height: auto;
}
.ha-sun {
  fill: var(--v2-gold);
}
.ha-dune2 {
  fill: var(--v2-art-dune);
}
.ha-dune1 {
  fill: var(--v2-art-dune2);
}
.ha-trunk,
.ha-frond {
  fill: none;
  stroke: var(--v2-art-ink);
  stroke-width: 7;
  stroke-linecap: round;
}
.ha-frond {
  stroke-width: 6;
}
.ha-cal rect {
  fill: #ffffff;
  stroke: var(--v2-art-ink);
  stroke-width: 4;
}
.ha-calbar {
  fill: #07352b;
}
.ha-ring {
  stroke: var(--v2-art-ink);
  stroke-width: 6;
  stroke-linecap: round;
}
.ha-line {
  stroke: #c8ede2;
  stroke-width: 9;
  stroke-linecap: round;
}
.ha-check {
  fill: var(--v2-gold);
}
.ha-tick {
  fill: none;
  stroke: #07352b;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ha-coin circle {
  fill: var(--v2-gold);
  stroke: var(--v2-art-ink);
  stroke-width: 3;
}
.ha-coin .ha-coin-in {
  fill: none;
  stroke-width: 2.5;
  opacity: 0.55;
}
/* the calculator as a white widget */
.widget {
  background: var(--v2-card);
  color: var(--text);
  border-radius: 28px;
  padding: 10px;
  box-shadow:
    0 2px 4px rgb(7 53 43 / 0.06),
    0 40px 80px -32px rgb(7 53 43 / 0.45);
}
.preview {
  background: var(--v2-preview);
  color: var(--v2-preview-ink);
  border-radius: 22px;
  padding: 22px 24px 20px;
  position: relative;
  overflow: hidden;
}
.preview::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--v2-gold);
  opacity: 0.9;
  inset-inline-end: -46px;
  top: -52px;
}
.preview > * {
  position: relative;
  z-index: 1;
}
.preview-label {
  color: var(--v2-preview-soft);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.preview-date {
  font-family: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 6px 0 4px;
  font-variant-numeric: tabular-nums;
}
.preview-empty {
  color: var(--v2-preview-soft);
  opacity: 1;
}
.preview-sub {
  color: var(--v2-preview-soft);
  font-size: 15px;
  margin: 0;
}
.preview-more {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #3ddbb0;
  color: #07352b;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.preview-more:hover {
  background: #74e8c8;
  color: #07352b;
}
.preview.has-result .preview-date {
  animation: rise 220ms var(--ease);
}
.widget .form-card {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 18px 16px 8px;
}
/* results + the rest stay v1 below the hero */
@media (min-width: 960px) {
  .tool .tool-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tool .result-col {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
  }
}
.tool {
  padding-top: 32px;
}
@media (max-width: 959px) {
  .hero-art-wrap {
    display: none;
  }
  .hero.v2 {
    padding: 20px 0 32px;
  }
}
@media (max-width: 599px) {
  .hero.v2 h1 {
    font-size: 28px;
    margin: 12px 0 10px;
  }
  .hero.v2 .lead {
    font-size: 16px;
  }
  .hero-cta {
    margin-top: 16px;
  }
  .btn-pill {
    min-height: 48px;
    padding: 0 22px;
    font-size: 16px;
  }
  .preview-date {
    font-size: 38px;
  }
}

/* =====================================================================================================================
   ⭐ v2 FULL PAGE (owner approved the hero 2026-09-30 — "All looking cool!"): the rest of the page and the inner pages
   in the same mint / deep green / gold style. Colour-blocked bands, illustrated steps, tables as cards, a bold FAQ,
   a brand footer; body text kept, broken up with visuals.
   ===================================================================================================================== */
@media (prefers-color-scheme: dark) {
  .site-header nav a:hover {
    background: rgb(61 219 176 / 0.14);
  }
}

/* ---------- hero widget: shorter (grouped fields, compact controls, the optional pension part collapsed) ---------- */
.hero.v2 {
  padding: 28px 0 56px;
}
.hero.v2 h1 {
  margin-top: 16px;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  }
}
.preview {
  padding: 16px 22px 16px;
}
.preview-date {
  font-size: 44px;
  margin: 0 0 2px;
}
.preview::after {
  width: 118px;
  height: 118px;
  top: -50px;
  inset-inline-end: -40px;
}
.widget .form-card {
  padding: 14px 14px 8px;
}
.widget .card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 12px;
}
.widget .card-head h2 {
  font-size: 19px;
}
.widget .helper {
  margin: 0;
  font-size: 13.5px;
}
.widget .group {
  margin-top: 12px;
  padding-top: 12px;
}
.widget legend {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 8px;
}
/* birth date: the legend and the calendar switch share one row */
.widget .dob > legend {
  width: auto;
  margin: 5px 0 8px;
}
.widget .dob > .seg {
  float: inline-end;
  clear: none;
  margin: 0 0 8px;
}
.widget .dob > #dob-g-wrap,
.widget .dob > #dob-h-wrap {
  clear: both;
}
.seg-sm {
  padding: 3px;
  border-radius: 12px;
}
.seg-sm span {
  min-height: 34px;
  padding: 0 13px;
  font-size: 14.5px;
  border-radius: 9px;
}
.widget .prior > .seg {
  margin-bottom: 2px;
}
.widget .field {
  gap: 2px;
  margin-top: 6px;
}
.widget label {
  font-size: 13.5px;
  color: var(--muted);
}
.widget input,
.widget select {
  min-height: 44px;
  padding: 8px 12px;
}
.widget .stepper {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 4px;
}
.widget .step {
  min-height: 44px;
}
.widget .hint {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 6px;
}
.widget .affix input {
  padding-left: 52px;
}
.widget .actions {
  margin-top: 14px;
  align-items: center;
}
.btn-calc {
  border-radius: 999px;
  min-height: 52px;
  font-size: 17px;
  font-weight: 700;
  background: #07352b;
  color: #ffffff;
  box-shadow: 0 10px 24px -12px rgb(7 53 43 / 0.6);
}
.btn-calc:hover {
  background: #0b4a3c;
  color: #ffffff;
}
@media (prefers-color-scheme: dark) {
  .btn-calc,
  .btn-calc:hover {
    color: #04241b;
  }
  .btn-calc {
    background: #3ddbb0;
  }
  .btn-calc:hover {
    background: #74e8c8;
  }
}
/* the optional pension part: one tappable row until opened */
.opt {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-2);
  transition: background-color var(--fast) var(--ease);
}
.opt[open] {
  background: var(--surface);
}
.opt > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 14px;
  border-radius: 18px;
  cursor: pointer;
  list-style: none;
}
.opt > summary::-webkit-details-marker {
  display: none;
}
.opt > summary:hover {
  background: color-mix(in srgb, var(--brand-soft) 70%, transparent);
}
.opt-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--v2-gold);
  color: #07352b;
}
.opt-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}
.opt-title {
  font-weight: 700;
  font-size: 15px;
}
.opt-hint {
  color: var(--muted);
  font-size: 13px;
}
.opt .chevron {
  color: var(--muted);
  transition: transform var(--fast) var(--ease);
}
.opt[open] .chevron {
  transform: rotate(180deg);
}
.opt .pension {
  margin: 0;
  padding: 0 14px 14px;
  border-top: 0;
}
.opt[open] .pension {
  animation: rise 180ms var(--ease);
}

/* ---------- bands (colour-blocked sections) ---------- */
.band {
  padding: 56px 0;
}
.section {
  padding: 40px 0;
}
.section-title {
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 20px;
  color: var(--text);
}
@media (min-width: 960px) {
  .band {
    padding: 80px 0;
  }
  .section {
    padding: 56px 0;
  }
  .section-title {
    font-size: 36px;
  }
}
.section-title.center {
  text-align: center;
}
.section-head {
  max-width: 780px;
  margin-bottom: 24px;
}
.section-head .section-title {
  margin-bottom: 10px;
}
.section-head p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}
.section-head h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
}
.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

/* stat strip: the deep-green band right under the mint hero */
.band-stats {
  background: var(--v2-band);
  color: #ffffff;
  padding: 26px 0;
}
.statstrip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
  margin: 0;
}
@media (min-width: 960px) {
  .statstrip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }
  .stat-item + .stat-item {
    border-inline-start: 1px solid rgb(255 255 255 / 0.14);
  }
}
.stat-item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
  padding: 4px 20px;
  min-width: 0;
}
@media (max-width: 959px) {
  .stat-item {
    padding: 0;
  }
}
.stat-item dd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: rgb(61 219 176 / 0.16);
  color: #3ddbb0;
}
.stat-value {
  font-family: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #3ddbb0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-item dt {
  color: #bff3e3;
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 599px) {
  .stat-value {
    font-size: 22px;
  }
  .stat-icon {
    display: none;
  }
  .stat-item dt {
    font-size: 13px;
  }
}

/* result + notes side by side under the stat strip */
.tool {
  padding: 40px 0 0;
}
@media (min-width: 960px) {
  .tool .tool-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 28px;
  }
  .tool .result-col {
    max-width: none;
    margin: 0;
  }
}
.notes {
  margin-top: 0;
}
.notes-card {
  border-radius: 24px;
  padding: 10px 22px;
}
.result-panel {
  border-radius: 28px;
}
.result-hero {
  position: relative;
  overflow: hidden;
}
.result-hero::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--v2-gold);
  opacity: 0.9;
  inset-inline-end: -56px;
  top: -64px;
}
.result-hero > * {
  position: relative;
  z-index: 1;
}
.sk-headline {
  background: color-mix(in srgb, var(--v2-mint) 18%, var(--surface));
}

/* ---------- how it works: three illustrated steps on a soft mint band ---------- */
.band-soft {
  background: var(--brand-soft);
}
.steps-grid {
  gap: 20px;
}
@media (min-width: 760px) {
  .steps-grid {
    gap: 24px;
  }
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 22px 24px 26px;
  text-align: center;
}
.step-card::after {
  top: 18px;
  inset-inline-end: 18px;
  width: 34px;
  height: 34px;
  background: var(--v2-gold);
  color: #07352b;
  font-size: 15px;
}
.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 4px 0 6px;
}
.step-card p {
  font-size: 16px;
  max-width: 32ch;
  margin-inline: auto;
}
.step-art {
  display: block;
  width: 100%;
  max-width: 220px;
  height: 132px;
  margin: 0 auto 8px;
}
.sa-blob {
  fill: var(--brand-soft);
}
.sa-card {
  fill: var(--surface);
  stroke: var(--v2-art-ink);
  stroke-width: 3;
}
.sa-bar {
  fill: var(--v2-art-ink);
}
.sa-ring,
.sa-hand,
.sa-base {
  fill: none;
  stroke: var(--v2-art-ink);
  stroke-width: 5;
  stroke-linecap: round;
}
.sa-hand {
  stroke-width: 4;
}
.sa-base {
  stroke-width: 3;
}
.sa-dots circle {
  fill: var(--border-strong);
}
.sa-gold,
.sa-col-gold {
  fill: var(--v2-gold);
}
.sa-pen {
  fill: var(--v2-gold);
  stroke: var(--v2-art-ink);
  stroke-width: 3;
  stroke-linejoin: round;
}
.sa-col,
.sa-chip {
  fill: #3ddbb0;
}
.sa-col.sa-col-gold {
  fill: var(--v2-gold);
}
.sa-arc {
  fill: none;
  stroke: #3ddbb0;
  stroke-width: 6;
  stroke-linecap: round;
}
.sa-line {
  fill: none;
  stroke: #9fe3cf;
  stroke-width: 7;
  stroke-linecap: round;
}
.sa-tick {
  fill: none;
  stroke: #07352b;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-color-scheme: dark) {
  .sa-line {
    stroke: #1f5f50;
  }
}

/* ---------- what changed: copy + the three groups as cards ---------- */
.split {
  display: grid;
  gap: 24px;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: start;
  }
}
.split-copy > p {
  max-width: 62ch;
}
.split-copy .alert {
  margin: 16px 0 8px;
}
.groups {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.groups li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-inline-start: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.groups li p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}
.group-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 15px;
}
.g-exempt .group-icon {
  background: var(--v2-gold);
  color: #07352b;
}
.g-amended .group-icon {
  background: #3ddbb0;
  color: #07352b;
}
.g-new .group-icon {
  background: #07352b;
  color: #3ddbb0;
}
@media (prefers-color-scheme: dark) {
  .g-new .group-icon {
    background: #0c4a3c;
  }
}

/* ---------- official tables: cards with a deep-green header band ---------- */
.band-tables {
  background: var(--surface-2);
}
.tables-grid {
  gap: 24px;
  margin-top: 0;
}
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}
.table-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--v2-deep);
  color: #ffffff;
}
.table-card-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}
.tc-tag {
  margin: 0;
  font-size: 13.5px;
  color: var(--v2-deep-soft);
}
.tc-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  background: #3ddbb0;
  color: #07352b;
}
.table-card .table-wrap {
  border: 0;
  border-radius: 0;
  margin: 0;
  max-height: 560px;
}
.table-card thead th {
  background: var(--brand-soft);
  color: var(--text);
  font-weight: 700;
}
.table-card td {
  padding-block: 11px;
}
.table-card .fine,
.table-card .source {
  margin: 0;
  padding: 10px 22px 0;
}
.table-card .source {
  padding-bottom: 18px;
}

/* ---------- worked example: timeline + a result "ticket" ---------- */
.example-card {
  display: grid;
  gap: 24px;
  padding: 24px 20px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 960px) {
  .example-card {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 44px;
  }
}
.example-card h2 {
  font-size: 28px;
  margin-bottom: 10px;
}
.timeline {
  list-style: none;
  counter-reset: t;
  margin: 18px 0 0;
  padding: 0;
}
.timeline li {
  counter-increment: t;
  position: relative;
  margin: 0;
  padding: 0 0 16px;
  padding-inline-start: 48px;
}
.timeline li::before {
  content: counter(t);
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3ddbb0;
  color: #07352b;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
}
.timeline li::after {
  content: "";
  position: absolute;
  inset-inline-start: 15px;
  top: 38px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: var(--border-strong);
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline li:last-child::after {
  display: none;
}
.ticket {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--v2-deep);
  color: #ffffff;
}
.ticket::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--v2-gold);
  inset-inline-end: -52px;
  top: -58px;
}
.ticket > * {
  position: relative;
  z-index: 1;
}
.ticket-label {
  margin: 0 0 4px;
  color: var(--v2-deep-soft);
  font-size: 13px;
  font-weight: 700;
}
.ticket-out {
  margin-top: 18px;
}
.ticket-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px dashed rgb(255 255 255 / 0.2);
  font-size: 15px;
}
.ticket-row > span:first-child {
  color: var(--v2-deep-soft);
}
.ticket-row:last-child {
  border-bottom: 0;
}
.ticket-big {
  margin: 0 0 6px;
  font-family: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: #3ddbb0;
  font-variant-numeric: tabular-nums;
}

/* ---------- how the pension is calculated: rule cards, the official example as a deep block ---------- */
.rule-cards {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .rule-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.rule-cards li {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.rule-cards p {
  margin: 0;
  font-size: 16px;
}
.rule-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 2px 14px;
  border-radius: 14px;
  background: #3ddbb0;
  color: #07352b;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  unicode-bidi: isolate;
}
.rule-cards li:nth-child(3) .rule-badge {
  background: var(--v2-gold);
}
#how .callout {
  margin: 0 0 8px;
  padding: 24px 26px;
  border: 0;
  border-radius: 26px;
  background: var(--v2-deep);
  color: #ffffff;
}
#how .callout .eq {
  margin: 12px 0;
  padding: 6px 18px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.1);
  color: #3ddbb0;
  /* one line on a phone: the sum reads as a unit (review 2 #2) */
  font-size: clamp(17px, 4.6vw, 30px);
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 599px) {
  #how .callout {
    padding: 20px 18px;
  }
  #how .callout .eq {
    padding: 6px 12px;
  }
}
#how .callout .source,
#how .callout .source a {
  color: var(--v2-deep-soft);
}
#how .callout .source a:hover {
  color: #ffffff;
}
#how > .container > .source {
  margin: 0 0 20px;
}
.law-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .law-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.law-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.law-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.law-card .alert {
  margin: 12px 0 4px;
}

/* ---------- bold FAQ on the brand band ---------- */
.band-faq {
  background: var(--v2-bg);
  color: var(--v2-ink);
}
.faq {
  display: grid;
  gap: 20px;
}
@media (min-width: 960px) {
  .faq {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr);
    gap: 56px;
    align-items: start;
  }
  .faq-head {
    position: sticky;
    top: 96px;
  }
}
.faq .section-title {
  color: var(--v2-ink);
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 10px;
}
@media (min-width: 960px) {
  .faq .section-title {
    font-size: 48px;
  }
}
.faq-sub {
  color: var(--v2-soft);
  font-size: 17px;
  margin: 0;
}
.faq-list {
  display: grid;
  gap: 12px;
  padding: 0;
}
.qa {
  border-radius: 20px;
  background: var(--v2-card);
  color: var(--text);
  box-shadow: 0 1px 2px rgb(7 53 43 / 0.08);
  transition: box-shadow var(--fast) var(--ease);
}
.qa + .qa {
  border-top: 0;
}
.qa[open] {
  box-shadow:
    0 0 0 2px var(--v2-ink),
    0 18px 36px -24px rgb(7 53 43 / 0.5);
}
.qa summary {
  padding: 18px 22px;
  border-radius: 20px;
}
.qa summary h3 {
  font-size: 18px;
  font-weight: 700;
}
.qa summary .chevron {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--text);
}
.qa[open] summary .chevron {
  background: #3ddbb0;
  color: #07352b;
}
.qa-body {
  padding: 0 22px 22px;
}
.qa-body p {
  font-size: 16px;
}

/* ---------- limits: gold card, one tile per limit ---------- */
.limits-card {
  padding: 26px 22px;
  border-radius: 30px;
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}
@media (min-width: 960px) {
  .limits-card {
    padding: 40px 44px;
  }
}
.limits-card h2 {
  font-size: 28px;
  margin-bottom: 16px;
}
.limits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 900px) {
  .limits {
    grid-template-columns: 1fr 1fr;
  }
}
.limits li {
  position: relative;
  margin: 0;
  padding: 14px 16px;
  padding-inline-start: 54px;
  border-radius: 18px;
  background: var(--surface);
  font-size: 16px;
}
.limits li::before {
  content: "";
  position: absolute;
  inset-inline-start: 14px;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    var(--v2-gold)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307352b' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

/* ---------- related tools: product cards in each tool's own colours ---------- */
.related-grid {
  gap: 18px;
}
.related-card {
  position: relative;
  gap: 6px;
  min-height: 200px;
  padding: 24px 26px 64px;
  border: 1px solid transparent;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.rel-host {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-align: start;
}
.related-card .related-name {
  font-size: 22px;
}
.related-card .related-desc {
  font-size: 16px;
}
.rel-go {
  position: absolute;
  bottom: 18px;
  inset-inline-start: 26px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 700;
  transition: transform var(--fast) var(--ease);
}
.related-card:hover .rel-go {
  transform: translateX(-4px);
}
.rel-car,
.rel-car:hover {
  background: #0e2a24;
  color: #ffffff;
}
.rel-car .rel-host {
  color: #9fb8b0;
}
.rel-car .related-name {
  color: #b8f36b;
}
.rel-car .related-desc {
  color: #d3e6df;
}
.rel-car .rel-go {
  background: #b8f36b;
  color: #0e2a24;
}
.rel-hub,
.rel-hub:hover,
.rel-guide,
.rel-guide:hover {
  background-color: #ffffff;
  background-image:
    radial-gradient(260px 160px at 12% 0%, rgb(79 70 229 / 0.14), transparent 70%),
    radial-gradient(220px 160px at 100% 100%, rgb(61 219 176 / 0.18), transparent 70%);
  border-color: #e0e7ff;
  color: #1e1b4b;
}
.rel-hub .rel-host,
.rel-guide .rel-host {
  color: #4b5563;
}
.rel-hub .related-name,
.rel-guide .related-name {
  color: #4338ca;
}
.rel-hub .related-desc,
.rel-guide .related-desc {
  color: #374151;
}
.rel-hub .rel-go,
.rel-guide .rel-go {
  background: #4f46e5;
  color: #ffffff;
}
@media (prefers-color-scheme: dark) {
  .rel-hub,
  .rel-hub:hover,
  .rel-guide,
  .rel-guide:hover {
    background-color: #16143d;
    border-color: #312e81;
    color: #e0e7ff;
  }
  .rel-hub .rel-host,
  .rel-guide .rel-host {
    color: #c7d2fe;
  }
  .rel-hub .related-name,
  .rel-guide .related-name {
    color: #a5b4fc;
  }
  .rel-hub .related-desc,
  .rel-guide .related-desc {
    color: #e0e7ff;
  }
  .rel-car {
    border-color: #1f4a3f;
  }
}

/* ---------- ad slots in the v2 frame ---------- */
.ad-slot {
  margin: 40px 0;
  border-radius: 24px;
}

/* ---------- brand footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  padding: 52px 0 0;
  border-top: 0;
  background: var(--v2-foot);
  color: #bff3e3;
  font-size: 15px;
}
.site-footer::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgb(61 219 176 / 0.08);
  inset-inline-end: -140px;
  top: -210px;
}
.site-footer::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgb(227 176 75 / 0.14);
  inset-inline-start: -60px;
  bottom: -90px;
}
.site-footer .container {
  position: relative;
  z-index: 1;
}
.site-footer p {
  color: #bff3e3;
  max-width: 60ch;
}
.footer-brand {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}
.site-footer .footer-brand {
  color: #ffffff;
}
.site-footer .brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14);
}
/* icons v3: "a LoopNode tool" — the small LoopNode mark in a pill, linking to the hub */
.site-footer .loopnode-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.18);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
.site-footer .loopnode-badge:hover {
  background: rgb(255 255 255 / 0.14);
  color: #ffffff;
}
.loopnode-badge img {
  display: block;
  border-radius: 5px;
}
.footer-links {
  font-size: 16px;
  font-weight: 600;
}
.site-footer .footer-links a,
.site-footer .copy a,
.site-footer .footer-nav a,
.site-footer .footer-about a {
  color: #ffffff;
}
.site-footer .footer-links a:hover,
.site-footer .copy a:hover,
.site-footer .footer-nav a:hover {
  color: #3ddbb0;
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 28px;
  padding-block: 18px 24px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}
.site-footer .footer-top {
  color: #3ddbb0;
  font-weight: 600;
  text-decoration: none;
}
.site-footer .footer-top:hover {
  color: #ffffff;
}

/* ---------- inner pages: mint page hero + cards that overlap its edge ---------- */
.page {
  padding: 0;
}
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 32px 0 80px;
  background: var(--v2-bg);
  color: var(--v2-ink);
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--v2-gold) 26%, transparent);
  inset-inline-start: -200px;
  top: -260px;
}
.page-hero-inner {
  position: relative;
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 960px) {
  .page-hero {
    padding: 56px 0 110px;
  }
  .page-hero-inner {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 56px;
  }
}
.page .page-hero h1 {
  color: var(--v2-ink);
  font-size: 34px;
  line-height: 1.25;
  margin: 0 0 12px;
}
@media (min-width: 960px) {
  .page .page-hero h1 {
    font-size: 48px;
  }
}
.page-hero .eyebrow {
  background: rgb(255 255 255 / 0.6);
  color: var(--v2-ink);
}
@media (prefers-color-scheme: dark) {
  .page-hero .eyebrow {
    background: rgb(255 255 255 / 0.1);
  }
}
.page-lead {
  max-width: 64ch;
  margin: 0;
  color: var(--v2-soft);
  font-size: 18px;
}
.page-hero .page-lead.fine {
  font-size: 16px;
  color: var(--v2-soft);
}
.page-hero a {
  color: var(--v2-ink);
  font-weight: 700;
}
.page-hero a:hover {
  color: var(--v2-soft);
}
.page-hero .page-chips {
  margin-top: 18px;
  flex-wrap: wrap;
}
.page-hero .page-chips li {
  background: var(--v2-chip);
  border: 0;
  color: var(--v2-ink);
  font-weight: 600;
  white-space: normal;
}
.page-chips .icon {
  color: var(--v2-ink);
}
.page-art {
  display: none;
  width: 100%;
  max-width: 260px;
  justify-self: center;
}
@media (min-width: 960px) {
  .page-art {
    display: block;
  }
}
.pa-sun,
.pa-check {
  fill: var(--v2-gold);
}
.pa-card {
  fill: #ffffff;
  stroke: var(--v2-art-ink);
  stroke-width: 4;
}
.pa-bar {
  fill: #07352b;
}
.pa-line,
.pa-flap,
.pa-shackle {
  fill: none;
  stroke: #9fe3cf;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pa-flap,
.pa-shackle {
  stroke: var(--v2-art-ink);
  stroke-width: 4;
}
.pa-lock {
  fill: #3ddbb0;
  stroke: var(--v2-art-ink);
  stroke-width: 4;
}
.pa-tick {
  fill: none;
  stroke: #07352b;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.page-body {
  position: relative;
  z-index: 1;
  margin-top: -52px;
}
.page-grid,
.policy-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 860px) {
  .page-grid,
  .policy-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .policy-grid .wide {
    grid-column: 1 / -1;
  }
}
.page .explain {
  max-width: none;
  padding: 26px 24px;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 640px) {
  .page .explain {
    padding: 32px;
  }
}
.page .explain h2 {
  font-size: 22px;
  margin: 0 0 10px;
}
.explain-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: #3ddbb0;
  color: #07352b;
}
.explain-icon-warn {
  background: var(--v2-gold);
}
.page .checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.page .checklist li {
  position: relative;
  margin: 0 0 12px;
  padding-inline-start: 36px;
}
.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    #3ddbb0
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307352b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-top: 24px;
  padding: 28px;
  border-radius: 26px;
  background: var(--v2-deep);
  color: #ffffff;
}
.cta-band > div {
  flex: 1 1 320px;
}
.page .cta-band h2 {
  color: #ffffff;
  font-size: 24px;
  margin: 0 0 6px;
}
.cta-band p {
  margin: 0;
  color: var(--v2-deep-soft);
}
.cta-band p a {
  color: #3ddbb0;
  font-weight: 700;
}
.cta-band p a:hover {
  color: #ffffff;
}
.cta-band .btn-pill-primary,
.cta-band .btn-pill-primary:hover {
  color: #07352b;
}
.cta-band .btn-pill-primary {
  background: #3ddbb0;
}
.cta-band .btn-pill-primary:hover {
  background: #74e8c8;
}
.page .explain .notice {
  margin: 0;
}

/* Body text keeps its 68ch line length inside the wider (1280px) container: full-width blocks cap their paragraphs. */
.section-head p,
#how .callout p,
.cta-band p,
.page .explain > p,
.page .explain > ul {
  max-width: 68ch;
}
.table-card .fine {
  max-width: calc(68ch + 44px); /* + its 22px side paddings */
}

/* ---------- Verification 1 (2026-09-30) ---------- */
/* #1 the official tables show every row (no inner scroll that hid the highlighted row); the link lands on the row */
.table-card .table-wrap {
  max-height: none;
}
#age-table-match,
#early-table-match {
  scroll-margin-top: 120px;
}
/* #2 related-tool cards: the English domain and title start at the RTL edge like the Arabic text and the arrow */
.related-card .rel-host,
.related-card [dir="ltr"] {
  text-align: right;
}
/* #3 the hero illustration sits at the bottom of the copy column and bleeds to the hero's bottom edge */
@media (min-width: 960px) {
  .hero.v2 .hero-grid {
    align-items: stretch;
  }
  .hero-copy-col {
    display: flex;
    flex-direction: column;
  }
  .hero-art-wrap {
    margin-top: auto;
    margin-bottom: -56px;
    padding-top: 24px;
    max-width: 400px;
  }
  .widget {
    align-self: start;
  }
}
/* #4 formula + its sentence's full stop on one line (the formula keeps its own LTR block) */
.qa-body .eq-line {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
/* NIT: timeline connectors always reach the next step */
.timeline li {
  padding-bottom: 20px;
}
.timeline li::after {
  top: 38px;
  bottom: -2px;
}
/* NIT: an odd last limit spans the row */
@media (min-width: 900px) {
  .limits li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    /* the tile fills the row; its text keeps the 68ch line length (54px = the icon side's padding) */
    padding-inline-end: max(16px, calc(100% - 68ch - 54px));
  }
}
/* NIT: the result's gold circle would sit under the long coverage chip on phones */
@media (max-width: 599px) {
  .result-hero::after {
    display: none;
  }
}
/* NIT: equal heights — notes beside the empty result (sticky beside a real one), About cards, Privacy rows */
@media (min-width: 960px) {
  .tool .notes {
    align-self: stretch;
  }
  .tool-grid:has(#result > .empty) .notes-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
  }
  .tool-grid:has(#result .result-content) .notes-card {
    position: sticky;
    top: 88px;
  }
}
@media (min-width: 860px) {
  .page-grid,
  .policy-grid {
    align-items: stretch;
  }
}

/* ---------- Red team (2026-09-30) ---------- */
/* #7 ad slots stay in the markup (reserved height for when ads go live, CLS 0) but are hidden until real ad code
   exists: an empty «إعلان» box reads as an unfinished page. Going live = add class "is-live" to each slot. */
.ad-slot:not(.is-live) {
  display: none;
}
/* #5 the result says when the retirement date has already passed; SEO pass 1 (T-5): .time-left says how long is left */
.reached,
.time-left {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.1);
  color: var(--hero-ink);
  font-weight: 600;
  font-size: 15px;
}
.reached .icon,
.time-left .icon {
  margin-top: 3px;
  color: var(--v2-gold);
}
/* #6 the sector line inside the result */
.scope {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.7;
}
.scope .icon {
  margin-top: 3px;
  color: var(--muted);
}
/* #8 no JavaScript: say so at the form */
.noscript-note {
  margin: 12px 10px 4px;
}
/* LOW dark mode: the official-example sum on its 10% white chip was 4.39:1 → a lighter mint */
@media (prefers-color-scheme: dark) {
  #how .callout .eq {
    color: #6ff0cc;
  }
}
/* SHOULD 280–359px: the three hero chips wrap instead of forcing the row wider than the screen */
@media (max-width: 359px) {
  .hero.v2 .chips {
    flex-wrap: wrap;
  }
  .hero.v2 .chips li {
    white-space: normal;
  }
  .hero.v2 h1 {
    font-size: 24px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
}
/* SHOULD print: the steps open without the 'rise' animation (it starts at opacity 0 → an empty box in the PDF), and
   the result header prints dark on white */
@media print {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .result-hero .headline-label,
  .result-hero .headline-sub,
  .result-hero .headline,
  .result-hero .result-top h2,
  .result-hero .reached {
    color: #000000;
  }
  .result-hero::after {
    display: none;
  }
}
/* SHOULD 280–359px: the header's links wrap onto their own row under the falcon + name */
@media (max-width: 359px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 2px;
    padding-block: 6px;
  }
  .site-header nav {
    width: 100%;
  }
  .site-header nav a {
    padding: 0 6px;
    font-size: 13.5px;
  }
}
/* #3 follow-up: without maxlength a stepper value can have 3 digits («215») — give the box the room on phones */
@media (max-width: 480px) {
  .widget .stepper {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 3px;
  }
  .widget .stepper input {
    padding-inline: 4px;
  }
}

/* SEO pass 1 (T-5): the time left until the statutory date in the widget preview (the result uses .time-left, beside .reached) */
.preview-left {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 700;
}
