/* GulfDues premium redesign (preview only, REDESIGN=1). Loaded after styles.css. Same teal + gold, more depth,
   more air, subtle motion with transform/opacity only. prefers-reduced-motion turns every animation off. */
:root {
  --teal-1: #11566b;
  --teal-glow: #2fb3c9;
  --gold-1: #f7d77a;
  --gold-2: #e0a93a;
  --r-lg: 20px;
  --shadow-1: 0 1px 2px rgba(6, 42, 54, .06), 0 12px 32px -18px rgba(6, 42, 54, .45);
  --shadow-2: 0 2px 4px rgba(6, 42, 54, .06), 0 24px 48px -22px rgba(6, 42, 54, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
body { background: #fbfcfd; }
h1, h2, h3 { letter-spacing: -.015em; }

/* header: a little glass on the teal */
.top { background: rgba(11, 61, 79, .94); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.menu a { position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold); border-radius: 2px; transform: scaleX(0); transition: transform .3s var(--ease); }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 860px) { .menu a::after { display: none; } }

/* buttons */
.btn { border-radius: 12px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); box-shadow: 0 8px 22px -10px rgba(224, 169, 58, .8), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold:hover { background: linear-gradient(180deg, #fadf8c, #e4b04a); }
.rd-btn { padding: 14px 22px; font-size: 1.02rem; }
.rd-btn-line { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); padding: 14px 22px; font-size: 1.02rem; }
.rd-btn-line:hover { background: rgba(255, 255, 255, .08); }

/* cards everywhere: softer, lift on hover */
.card { border-radius: 16px; border-color: #e5ebef; box-shadow: var(--shadow-1); }
a.card { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #cfdbe2; }

/* ------------------------------------------------ hero */
.rd-hero { position: relative; overflow: hidden; color: #dce8ee; padding: 64px 0 72px;
  background: radial-gradient(900px 420px at 80% 10%, rgba(47, 179, 201, .22), transparent 60%), radial-gradient(700px 380px at 0% 100%, rgba(224, 169, 58, .10), transparent 60%), linear-gradient(160deg, #0d4659 0%, #072c39 100%); }
.rd-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent); mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent); }
.rd-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.rd-hero h1 { color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.4rem); line-height: 1.1; margin-bottom: .4em; }
.rd-hero .lead { color: #c3d7df; font-size: 1.12rem; }
.rd-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: .86rem; font-weight: 600; color: #f3dc9a; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 6px 14px; margin-bottom: 20px; }
.rd-dot { width: 7px; height: 7px; border-radius: 50%; background: #5ee0b5; box-shadow: 0 0 0 0 rgba(94, 224, 181, .6); animation: rd-pulse 2.4s infinite; }
.rd-hero .btns { margin-top: 26px; gap: 12px; }

.rd-stage { position: relative; min-height: 360px; }
.rd-art { width: 100%; height: auto; display: block; max-width: 520px; margin-left: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.rd-card { position: absolute; left: -24px; bottom: -28px; width: 250px; background: rgba(255, 255, 255, .97); color: var(--ink-2); border-radius: 18px; padding: 18px 18px 16px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .4); animation: rd-rise .9s var(--ease) .15s both; }
.rd-card-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--ink); font-size: .92rem; margin-bottom: 8px; }
.rd-pill { background: #fff3d6; color: var(--gold-d); border-radius: 999px; font-size: .72rem; padding: 2px 9px; }
.rd-card-row { display: flex; justify-content: space-between; font-size: .88rem; padding: 5px 0; border-bottom: 1px solid #edf1f4; }
.rd-card-row b { color: var(--ink); }
.rd-card-big { font-size: 1.9rem; font-weight: 800; color: var(--navy); margin-top: 10px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rd-card-sub { font-size: .8rem; color: var(--muted); }

/* the art moves a little: floating device and coins, bars that grow once, a soft screen glow */
.rd-float { animation: rd-float 6s ease-in-out infinite; }
.rd-float2 { animation: rd-float 5s ease-in-out .6s infinite; }
.rd-float3 { animation: rd-float 5.5s ease-in-out 1.2s infinite; }
.rd-paper { animation: rd-float 7s ease-in-out .3s infinite; }
.rd-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: rd-grow 1s var(--ease) calc(.4s + var(--d, 0s)) both; }
.rd-screen { animation: rd-glow 3.2s ease-in-out infinite; }

@media (max-width: 860px) {
  .rd-hero { padding: 40px 0 36px; }
  .rd-hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .rd-stage { min-height: 0; padding-bottom: 150px; }
  .rd-art { max-width: 340px; margin: 0 auto; }
  .rd-card { left: 50%; bottom: 0; width: min(280px, 100%); margin-left: max(-140px, -50%); }
}

/* ------------------------------------------------ section heads */
.rd-head { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.rd-eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-d); margin-bottom: 6px; }
.rd-head h2 { margin: 0; }

/* ------------------------------------------------ country tabs */
.rd-countries { padding: 56px 0 40px; }
.rd-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.rd-tabs button { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: .95rem; color: var(--ink-2); background: #fff; border: 1px solid #dfe6eb; border-radius: 999px; padding: 9px 16px; cursor: pointer; box-shadow: 0 1px 2px rgba(6, 42, 54, .05); transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.rd-tabs button:hover { transform: translateY(-1px); border-color: #c6d4dc; }
.rd-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 10px 22px -12px rgba(11, 61, 79, .8); }
.rd-tabs button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.rd-panel { animation: rd-fade .35s var(--ease); }
.rd-calcs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 920px; margin: 0 auto; }
.rd-calc { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; background: #fff; border: 1px solid #e5ebef; border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-1); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.rd-calc:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: #cfdbe2; }
.rd-calc b { display: block; color: var(--ink); font-size: 1rem; }
.rd-calc small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.45; margin-top: 2px; }
.rd-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--navy); background: linear-gradient(160deg, #e6f3f6, #d3e8ee); }
.rd-ic svg { width: 22px; height: 22px; }
.rd-arrow { margin-left: auto; color: var(--gold-d); font-weight: 800; transition: transform .25s var(--ease); }
.rd-calc:hover .rd-arrow { transform: translateX(4px); }
.rd-more { text-align: center; margin: 18px 0 0; font-weight: 700; }
@media (max-width: 700px) { .rd-calcs { grid-template-columns: 1fr; } .rd-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin: 0 -16px 18px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; } .rd-tabs button { flex: none; } }

/* ------------------------------------------------ steps */
.rd-steps { padding: 48px 0; background: linear-gradient(180deg, #f2f7f9, #fbfcfd); border-top: 1px solid #e8eef2; border-bottom: 1px solid #e8eef2; }
.rd-step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: none; }
.rd-step-list li { background: #fff; border: 1px solid #e5ebef; border-radius: 18px; padding: 22px; box-shadow: var(--shadow-1); }
.rd-step-list h3 { margin: 12px 0 6px; }
.rd-step-list p { margin: 0; font-size: .95rem; color: var(--muted); }
.rd-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-weight: 800; color: var(--navy); background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); box-shadow: 0 8px 18px -10px rgba(224, 169, 58, .9); }
@media (max-width: 860px) { .rd-step-list { grid-template-columns: 1fr; } }

/* ------------------------------------------------ guides strip (reused) */
.rd-guides .g-strip { padding: 52px 0 8px; }
.rd-guides .g-strip h2 { text-align: center; }
.rd-guides .g-all { text-align: center; font-weight: 700; }

/* ------------------------------------------------ trust */
.rd-trust { padding: 56px 0; }
.rd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 44px; background: linear-gradient(160deg, #0d4659, #072c39); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-2); }
.rd-stats div { text-align: center; color: #c3d7df; }
.rd-stats b { display: block; font-size: clamp(1.7rem, 4vw, 2.4rem); color: #fff; letter-spacing: -.02em; }
.rd-stats div:nth-child(4) b { color: var(--gold-1); }
.rd-stats span { font-size: .9rem; }
@media (max-width: 700px) { .rd-stats { grid-template-columns: repeat(2, 1fr); row-gap: 20px; } }
.rd-laws { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 920px; }
.rd-laws li { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid #e5ebef; border-left: 4px solid var(--gold-2); border-radius: 12px; padding: 12px 14px; }
.rd-laws span { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.rd-laws b { color: var(--ink); font-size: .96rem; }
@media (max-width: 860px) { .rd-laws { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .rd-laws { grid-template-columns: 1fr; } }
.rd-trust-note { text-align: center; color: var(--muted); margin: 20px auto 0; max-width: 640px; }

/* ------------------------------------------------ FAQ */
.rd-faq .faq { padding-top: 10px; }
.rd-faq .faq .prose { margin: 0 auto; }
.rd-faq .faq h2 { text-align: center; }
.faq details { background: #fff; border: 1px solid #e5ebef; border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-d); font-weight: 800; font-size: 1.2rem; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }

/* ------------------------------------------------ reveal on scroll (only when the script runs) */
.rd-js .rd-reveal, .rd-js .g-strip .card { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease) var(--d, 0s), transform .6s var(--ease) var(--d, 0s); }
.rd-js .rd-reveal.rd-in, .rd-js .g-strip .card.rd-in { opacity: 1; transform: none; }

@keyframes rd-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes rd-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rd-glow { 0%, 100% { opacity: .85; } 50% { opacity: .55; } }
@keyframes rd-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rd-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rd-pulse { 0% { box-shadow: 0 0 0 0 rgba(94, 224, 181, .55); } 70% { box-shadow: 0 0 0 8px rgba(94, 224, 181, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 224, 181, 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rd-js .rd-reveal, .rd-js .g-strip .card { opacity: 1; transform: none; }
}

/* tools for all six countries, under the tabs */
.rd-all { margin-top: 34px; }
.rd-all h3 { text-align: center; margin-bottom: 14px; }

/* ================================================ calculator template (Phase 4, 2026-11-04) */
/* compact dark hero with a small isometric picture; the calculator sits on its lower edge */
.rd-thero { position: relative; overflow: hidden; color: #c3d7df; border-bottom: 0; padding: 34px 0 78px;
  background: radial-gradient(700px 320px at 85% 0%, rgba(47, 179, 201, .22), transparent 60%), radial-gradient(520px 300px at 0% 100%, rgba(224, 169, 58, .10), transparent 60%), linear-gradient(160deg, #0d4659 0%, #072c39 100%); }
.rd-thero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(60% 80% at 80% 30%, #000, transparent); mask-image: radial-gradient(60% 80% at 80% 30%, #000, transparent); }
.rd-thero .wrap { position: relative; z-index: 1; }
.rd-thero .wrap > :not(.rd-tart-wrap) { max-width: min(680px, 64%); }
.rd-thero h1 { color: #fff; font-size: clamp(1.8rem, 4.4vw, 2.7rem); line-height: 1.12; }
.rd-thero .lead { color: #c3d7df; font-size: 1.05rem; }
.rd-thero .crumbs { color: #9fbac6; }
.rd-thero .crumbs a { color: #dce8ee; }
.rd-thero .badges span, .rd-thero .badges a { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); color: #e6eff3; }
.rd-thero .badges a:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
.rd-tart-wrap { position: absolute; right: 10px; top: 50%; width: 290px; transform: translateY(-50%); pointer-events: none; }
.rd-tart { width: 100%; height: auto; display: block; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .35)); animation: rd-rise .8s var(--ease) both; }
@media (max-width: 860px) {
  .rd-thero { padding: 24px 0 64px; }
  .rd-thero .wrap > :not(.rd-tart-wrap) { max-width: none; }
  .rd-tart-wrap { display: none; }
}

.rd-calc-sec { position: relative; z-index: 2; margin-top: -52px; padding-top: 0; }
.rd-calc-sec .calc { gap: 18px; }
.calc > *, .row2 > *, .row3 > * { min-width: 0; }   /* a date box no longer pushes the card off a phone screen */
.rd-calc-sec .card { border-radius: 18px; border-color: #e3eaee; box-shadow: var(--shadow-2); }
.rd-calc-sec form.card { position: relative; overflow: hidden; }
.rd-calc-sec form.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--teal-glow), var(--gold-2)); }
.rd-calc-sec form.card > h2:first-of-type { display: flex; align-items: center; gap: 10px; }
.rd-calc-sec form.card > h2:first-of-type::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); box-shadow: 0 0 0 4px rgba(224, 169, 58, .18); flex: none; }
.rd-calc-sec input, .rd-calc-sec select, .rd-calc-sec textarea { border-radius: 11px; border-color: #cfd9e0; background: #fbfcfd; padding: 12px 13px; transition: border-color .2s, box-shadow .2s, background .2s; }
.rd-calc-sec input:hover, .rd-calc-sec select:hover { border-color: #b3c3cd; }
.rd-calc-sec input:focus, .rd-calc-sec select:focus, .rd-calc-sec textarea:focus { outline: none; background: #fff; border-color: #1a8aa3; box-shadow: 0 0 0 4px rgba(47, 179, 201, .2); }
.rd-calc-sec .check input { box-shadow: none; }
.rd-calc-sec .chips button { border-radius: 999px; transition: background .2s, color .2s, border-color .2s; }

/* the result: a soft teal top, a bigger figure that gives a small nudge whenever it changes */
.rd-calc-sec .result { background: linear-gradient(180deg, #eaf5f8 0, #fff 150px); border-color: #d5e6ec; }
.rd-calc-sec .result > h2:first-child { font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-d); margin-bottom: 2px; }
.rd-calc-sec .big { font-size: clamp(2.1rem, 5vw, 2.7rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; overflow-wrap: anywhere; }
.rd-bump { transform-origin: left center; animation: rd-bump .45s var(--ease); }
.rd-calc-sec .rows div { padding: 9px 0; border-bottom-color: #e8eef1; }
.rd-calc-sec .rows div:last-child { border-bottom: 0; }
.rd-calc-sec .note { border-radius: 12px; }
.rd-calc-sec .yearly, .rd-calc-sec .result details { background: #f6f9fa; border: 1px solid #e3eaee; border-radius: 12px; padding: 10px 14px; }
.rd-calc-sec .share a, .rd-calc-sec .share button { border-radius: 11px; transition: transform .2s var(--ease), box-shadow .2s; }
.rd-calc-sec .share a:hover, .rd-calc-sec .share button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(6, 42, 54, .6); }
@keyframes rd-bump { 0% { transform: scale(1); } 35% { transform: scale(1.035); color: #0f6f86; } 100% { transform: scale(1); } }

/* the long text under the calculator */
.explain .prose > h2 { position: relative; padding-left: 16px; margin-top: 1.5em; }
.explain .prose > h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); }
.explain .prose > h2:first-child, .explain .prose > .byline + h2 { margin-top: 0; }
.explain .byline { background: #f6f9fa; border: 1px solid #e5ebef; border-left: 4px solid var(--gold-2); border-radius: 12px; padding: 10px 14px; }
.rd-tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0 18px; border: 1px solid #e3eaee; border-radius: 14px; box-shadow: var(--shadow-1); background: #fff; }
.prose .rd-tbl table { margin: 0; border: 0; border-collapse: collapse; min-width: 100%; }
.prose .rd-tbl th, .prose .rd-tbl td { border: 0; border-bottom: 1px solid #edf1f4; padding: 10px 12px; }
.prose .rd-tbl tr:last-child td { border-bottom: 0; }
.prose .rd-tbl th { background: #0d4659; color: #fff; font-weight: 700; }
.prose .rd-tbl tr:nth-child(even) td { background: #f8fbfc; }
.explain .prose > ol { list-style: none; padding: 0; counter-reset: rd-step; }
.explain .prose > ol > li { position: relative; counter-increment: rd-step; padding: 2px 0 10px 42px; }
.explain .prose > ol > li::before { content: counter(rd-step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: .85rem; font-weight: 800; color: var(--navy); background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); }
.explain .sources { background: #f6f9fa; border: 1px solid #e5ebef; border-radius: 12px; padding: 12px 14px; }

/* guides of this calculator + more calculators */
.rd-readg { padding: 40px 0 10px; }
.rd-gcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; max-width: 920px; margin: 0 auto; }
.rd-related { padding: 48px 0; background: linear-gradient(180deg, #f2f7f9, #fbfcfd); border-top: 1px solid #e8eef2; }

/* a phone: once there is a figure and the result card is off screen, a bar at the bottom shows it (tap = go there) */
.rd-resbar { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: 10px; font: inherit; text-align: left;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 12px 16px; color: #c3d7df; cursor: pointer;
  background: linear-gradient(160deg, rgba(13, 70, 89, .97), rgba(7, 44, 57, .97)); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); animation: rd-rise .35s var(--ease); }
.rd-resbar[hidden] { display: none; }
.rd-resbar span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; flex: none; }
.rd-resbar b { color: #fff; font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-resbar i { margin-left: auto; font-style: normal; color: var(--gold-1); font-weight: 800; }
@media (min-width: 861px) { .rd-resbar { display: none !important; } }
@media print { .rd-resbar, .rd-tart-wrap { display: none !important; } .rd-calc-sec { margin-top: 0; } .rd-tbl { border: 0; box-shadow: none; } }

/* ================================================ guides (Phase 5, 2026-11-04) */
.rd-thero-flat { padding: 34px 0 40px; }
@media (max-width: 860px) { .rd-thero-flat { padding: 24px 0 30px; } }
.rd-thero .rd-gmeta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; font-size: .88rem; color: #9fbac6; }
.rd-gmeta span { display: inline-flex; align-items: center; gap: 8px; }
.rd-gmeta span + span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-2); margin-left: -10px; }

/* the reading bar: a thin gold line over the header that fills as you read */
.rd-prog { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 40; pointer-events: none; }
.rd-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-1), var(--gold-2)); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

/* contents list beside the text on a wide screen, a folded box above it on a phone */
.rd-gsec { padding: 34px 0 10px; }
.rd-glay { display: grid; gap: 22px; }
.rd-article { min-width: 0; max-width: 760px; }
@media (min-width: 1000px) {
  .rd-glay { grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
  .rd-glay-1 { grid-template-columns: minmax(0, 1fr); }
  .rd-toc-col { position: sticky; top: 86px; max-height: calc(100vh - 110px); overflow: auto; }
}
.rd-toc { background: #fff; border: 1px solid #e3eaee; border-radius: 16px; box-shadow: var(--shadow-1); padding: 4px 6px; }
.rd-toc summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 8px; padding: 10px 10px; font-weight: 800; color: var(--ink); font-size: .95rem; }
.rd-toc summary::-webkit-details-marker { display: none; }
.rd-toc summary::after { content: "▾"; margin-left: auto; color: var(--gold-d); transition: transform .25s var(--ease); }
.rd-toc[open] summary::after { transform: rotate(180deg); }
.rd-toc summary small { font-weight: 600; color: var(--muted); font-size: .78rem; }
.rd-toc ol { list-style: none; margin: 0; padding: 0 4px 8px; counter-reset: rd-toc; }
.rd-toc li { counter-increment: rd-toc; }
.rd-toc a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 9px; text-decoration: none; color: var(--ink-2, #34505c); font-size: .9rem; line-height: 1.4; border-left: 3px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.rd-toc a::before { content: counter(rd-toc, decimal-leading-zero); flex: none; font-size: .75rem; font-weight: 800; color: #9fb2bc; padding-top: .15em; font-variant-numeric: tabular-nums; }
.rd-toc a:hover { background: #f2f7f9; color: var(--ink); }
.rd-toc a[aria-current] { background: #eaf5f8; color: var(--navy); font-weight: 700; border-left-color: var(--gold-2); }
.rd-toc a[aria-current]::before { color: var(--gold-d); }

/* the text */
.rd-article > h2 { position: relative; padding-left: 16px; scroll-margin-top: 86px; }
.rd-article > h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); }
.rd-article > h2:first-child { margin-top: 0; }
.rd-article p, .rd-article li { line-height: 1.75; }
.rd-article .note { border-radius: 12px; font-size: .95rem; padding: 12px 14px; border-left: 4px solid var(--gold-2); }
.rd-article .chart { border-radius: 16px; background: #fff; border-color: #e3eaee; box-shadow: var(--shadow-1); }
.rd-article .tbl { border-radius: 14px; overflow-x: auto; border: 1px solid #e3eaee; box-shadow: var(--shadow-1); margin: 12px 0 20px; }
.rd-article .tbl table { margin: 0; border: 0; border-collapse: collapse; min-width: 100%; }
.rd-article .tbl th, .rd-article .tbl td { border: 0; border-bottom: 1px solid #edf1f4; padding: 10px 12px; }
.rd-article .tbl thead th { background: #0d4659; color: #fff; }
.rd-article .tbl tr:last-child td, .rd-article .tbl tr:last-child th { border-bottom: 0; }
.rd-article .tbl tbody tr:nth-child(even) td { background: #f8fbfc; }
.rd-article .steps li { border-radius: 14px; box-shadow: var(--shadow-1); border-color: #e3eaee; }
.rd-article .steps b { background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); color: var(--navy); }

/* the big calculator button at the end */
.rd-gcta { padding: 26px 0 8px; }
.rd-cta-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 20px; max-width: 1000px; margin: 0 auto; padding: 26px 28px; border-radius: 22px; color: #c3d7df;
  background: radial-gradient(500px 240px at 90% 0%, rgba(47, 179, 201, .25), transparent 60%), linear-gradient(160deg, #0d4659 0%, #072c39 100%); box-shadow: var(--shadow-2); }
.rd-cta-card .rd-ic { width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(160deg, var(--gold-1), var(--gold-2)); }
.rd-cta-card .rd-ic svg { width: 28px; height: 28px; }
.rd-cta-txt { flex: 1; min-width: 0; }
.rd-cta-card .rd-eyebrow { color: var(--gold-1); margin: 0 0 2px; }
.rd-cta-card h2 { color: #fff; margin: 0 0 4px; font-size: 1.45rem; }
.rd-cta-card p { margin: 0; font-size: .95rem; }
.rd-cta-card .btn { flex: none; white-space: nowrap; }
@media (max-width: 700px) { .rd-cta-card { flex-direction: column; align-items: flex-start; padding: 22px 20px; } .rd-cta-card .btn { width: 100%; text-align: center; white-space: normal; } }

/* the guides list with country buttons */
.rd-gindex { padding: 44px 0 30px; }
.rd-gfilter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 22px; }
.rd-gfilter button { font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; padding: 8px 14px; border-radius: 999px; border: 1px solid #d5e0e6; background: #fff; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.rd-gfilter button small { font-weight: 600; color: var(--muted); margin-left: 2px; }
.rd-gfilter button:hover { border-color: #9fbac6; }
.rd-gfilter button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.rd-gfilter button[aria-pressed="true"] small { color: var(--gold-1); }
.rd-glist > a[hidden] { display: none; }
.rd-glist .card-h { font-size: 1.05rem; }
@media print { .rd-prog, .rd-toc-col, .rd-gcta { display: none !important; } }
.rd-thero-flat .rd-tart-wrap { width: 225px; right: 30px; }
/* country pages: the rules table as a soft card */
.rd-thero-flat + section .tbl { border: 1px solid #e3eaee; border-radius: 14px; overflow-x: auto; box-shadow: var(--shadow-1); background: #fff; }
.rd-thero-flat + section .tbl table { margin: 0; border: 0; border-collapse: collapse; }
.rd-thero-flat + section .tbl th, .rd-thero-flat + section .tbl td { border: 0; border-bottom: 1px solid #edf1f4; padding: 12px 14px; }
.rd-thero-flat + section .tbl tr:last-child th, .rd-thero-flat + section .tbl tr:last-child td { border-bottom: 0; }
.rd-thero-flat + section .tbl th { background: #f2f7f9; color: var(--navy); }
/* back to top (owner, 2026-11-04): shows after scrolling a little more than a screen */
.rd-top { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .88rem; font-weight: 800; cursor: pointer;
  padding: 11px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); color: #fff; background: linear-gradient(160deg, #0d4659, #072c39); box-shadow: 0 14px 30px -12px rgba(6, 42, 54, .7); animation: rd-rise .3s var(--ease); transition: transform .2s var(--ease); }
.rd-top span { color: var(--gold-1); font-size: 1rem; }
.rd-top:hover { transform: translateY(-2px); }
.rd-top[hidden] { display: none; }
.rd-top-up { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 66px); }
