/* Country guide v2 design — PREVIEW ONLY (/country/uae?design=v2, Mo 2026-10-29). Figma 1139:11690.
   Loaded only by inc/country-hub-v2-preview.php; every rule is scoped to body.rp-cgv2. Styling only. */

body.rp-cgv2 { --cg2-navy: #021143; --cg2-blue: #114ef7; --cg2-lav: #f0f4fe; --cg2-text: #3f3f46; --cg2-line: #e4e8f0; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
body.rp-cgv2 .rp-cgv2-flag { display: block; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 0 20px; }
body.rp-cgv2 .rp-cp-quick { width: 367px; max-width: 100%; box-sizing: border-box; padding: 21px 25px; }
body.rp-cgv2 .rp-cp-quick__label { color: rgba(255,255,255,.68); font-size: 15px; }
body.rp-cgv2 .rp-cp-quick__value { font-size: 15px; font-weight: 600; }

/* ── Two columns: content LEFT (840), "In this guide" RIGHT (320) ───────── */
@media (min-width: 1024px) {
	body.rp-cgv2 .rp-cp-shell { grid-template-columns: minmax(0, 1fr) 320px; }
	body.rp-cgv2 .rp-cp-shell > .rp-cp-col-main { grid-column: 1; grid-row: 1; }
	body.rp-cgv2 .rp-cp-col-aside { grid-column: 2; grid-row: 1; }
}

/* ── Sidebar: "In this guide" card + separate CTA card ─────────────────── */
body.rp-cgv2 .rp-cp-nav__card { background: transparent; border: 0; border-radius: 0; overflow: visible; display: flex; flex-direction: column; gap: 24px; }
body.rp-cgv2 .rp-cgv2-navhead { display: flex; align-items: center; gap: 8px; height: 39.4px; box-sizing: border-box; padding: 8px 16px 9px; background: #f6f6f6; border: 1px solid #f1f1f1; border-bottom-color: #d8d8d8; border-radius: 8px 8px 0 0; color: #000; font-size: 16px; line-height: 22.4px; margin-bottom: -24px; }
body.rp-cgv2 .rp-cp-nav__inner { background: #fff; border: 1px solid #f1f1f1; border-top: 0; border-radius: 0 0 8px 8px; padding: 10px 0; }
body.rp-cgv2 .rp-cp-nav__link { display: block; padding: 10px 16px; font-size: 14px; line-height: normal; font-weight: 400; color: #545454; border: 0; background: none; }
body.rp-cgv2 .rp-cp-nav__link:hover { color: var(--cg2-blue); }
body.rp-cgv2 .rp-cp-nav__link[aria-current="true"] { color: var(--cg2-blue); font-weight: 700; background: none; }
body.rp-cgv2 .rp-cp-nav__cta { background: var(--cg2-navy); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 0; }
body.rp-cgv2 .rp-cp-nav__cta-h { color: #fff; font-size: 24px; line-height: 32px; font-weight: 700; margin: 0; }
body.rp-cgv2 .rp-cp-nav__cta::after { content: ""; order: 1; display: block; width: 100%; aspect-ratio: 644 / 279; background: url(/wp-content/themes/rp/assets/images/country-hub-v2/cta-team-avatars.webp) center / contain no-repeat; margin: 4px 0 -4px; }
body.rp-cgv2 .rp-cp-nav__cta-btn { order: 2; display: block; width: 100%; box-sizing: border-box; text-align: center; background: var(--cg2-blue); color: #fff; border-radius: 4px; padding: 15px 20px; font-size: 16px; line-height: 20px; font-weight: 700; text-transform: capitalize; }

/* ── Main column rhythm (40px between blocks, Figma) ───────────────────── */
body.rp-cgv2 .rp-cp-col-main > * + * { margin-top: 40px; }

/* ── Key Takeaways box (Figma "TL;DR" 1139:11738) ──────────────────────── */
body.rp-cgv2 .rp-cgv2-tk { background: var(--cg2-lav); border-radius: 16px; padding: 24px; border: 0; box-shadow: none; }
body.rp-cgv2 .rp-cgv2-tk > h3 { color: var(--cg2-navy); font-size: 26px; line-height: 31.2px; letter-spacing: -.52px; font-weight: 700; margin: 0 0 16px; }
body.rp-cgv2 .rp-cgv2-tk > ul { list-style: none; margin: 0; padding: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
body.rp-cgv2 .rp-cgv2-tk > ul > li { margin: 0; padding: 0 0 6px; color: var(--cg2-navy); font-size: 14px; line-height: normal; letter-spacing: -.1px; }
body.rp-cgv2 .rp-cgv2-tk > ul > li::before, body.rp-cgv2 .rp-cgv2-tk > ul > li::marker { content: none; display: none; }
body.rp-cgv2 .rp-cgv2-tk > ul > li > strong { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 23.25px; font-weight: 700; color: var(--cg2-navy); }
body.rp-cgv2 .rp-cgv2-tk > ul > li > strong::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 4px; background: var(--cg2-blue); }
body.rp-cgv2 .rp-cgv2-tk-desc { display: block; }

/* ── Fact tiles (Figma 1139:11921): lavender panel, 3 columns, icon on top ── */
body.rp-cgv2 .rp-cp-facts { background: #f5f7fc; border-radius: 16px; padding: 28px 24px; }
body.rp-cgv2 .rp-cp-facts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.rp-cgv2 .rp-cp-tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 17px 19px; background: #fff; border: 1px solid var(--cg2-line); border-radius: 10px; min-height: 0; box-sizing: border-box; }
body.rp-cgv2 .rp-cp-tile--wide { grid-column: span 2; }
body.rp-cgv2 .rp-cp-tile__icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 8px; background: #eaf0ff; color: var(--cg2-blue); margin: 0; }
body.rp-cgv2 .rp-cp-tile__icon svg { width: 20px; height: 20px; }
body.rp-cgv2 .rp-cp-tile__body { display: flex; flex-direction: column; gap: 2px; }
body.rp-cgv2 .rp-cp-tile__label { font-size: 13px; line-height: 15.6px; color: #5b6478; letter-spacing: -.1px; font-weight: 400; }
body.rp-cgv2 .rp-cp-tile__value { font-size: 15px; line-height: 18px; color: #08080d; font-weight: 600; letter-spacing: -.1px; }

/* ── Model cards (Figma 1139:12027) ──────────────────────────────────────── */
body.rp-cgv2 .rp-cp-models { margin-top: 40px; }
body.rp-cgv2 .rp-cp-models__grid { gap: 16px; }
body.rp-cgv2 .rp-cp-model { border: 1px solid var(--cg2-line); border-radius: 12px; padding: 21px; background: #fff; }
body.rp-cgv2 .rp-cp-model__label { font-size: 13px; letter-spacing: .5px; text-transform: uppercase; color: #6b7280; }
body.rp-cgv2 .rp-cp-model__value { font-size: 22px; line-height: 28px; font-weight: 700; color: #08080d; }
body.rp-cgv2 .rp-cp-model__desc { font-size: 14px; line-height: 21px; color: #6b7280; }
body.rp-cgv2 .rp-cp-model__link { color: var(--cg2-blue); font-size: 15px; font-weight: 600; }

/* ── Body: full width of the 840 column (no inner sidebar track) ─────────── */
body.rp-cgv2 .rp-hub-layout { display: block; }
body.rp-cgv2 .rp-hub-sidebar-col { display: none; }
body.rp-cgv2 .rp-hub-content { width: 100%; max-width: none; margin: 0; }
body.rp-cgv2 .rp-hub-section { margin: 0 0 32px; }

/* Typography (Figma 1139:12102) */
body.rp-cgv2 .rp-hub-content h2, body.rp-cgv2 #guides > h2 { color: var(--cg2-navy); font-size: 28px; line-height: 35px; font-weight: 700; letter-spacing: -.1px; margin: 0 0 16px; }
body.rp-cgv2 .rp-hub-content h3 { color: var(--cg2-navy); font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: -.1px; margin: 32px 0 16px; }
body.rp-cgv2 .rp-hub-content h4 { color: var(--cg2-navy); font-size: 18px; line-height: 24px; font-weight: 600; margin: 24px 0 8px; }
body.rp-cgv2 .rp-hub-content p, body.rp-cgv2 .rp-hub-content li { color: var(--cg2-text); font-size: 17px; line-height: 28px; letter-spacing: -.1px; }
body.rp-cgv2 .rp-hub-content p { margin: 0 0 16px; }

/* Key fact callout */
body.rp-cgv2 .rp-hub-content .rp-callout--highlight { background: var(--cg2-lav); border: 1px solid var(--cg2-blue); border-left-width: 3px; border-radius: 10px; padding: 17px 21px 17px 23px; margin: 8px 0 16px; box-shadow: none; }
body.rp-cgv2 .rp-hub-content .rp-callout--highlight, body.rp-cgv2 .rp-hub-content .rp-callout--highlight p { color: var(--cg2-navy); font-size: 13px; line-height: 20.8px; }
body.rp-cgv2 .rp-hub-content .rp-callout--highlight p { margin: 0; }

/* Tables (Figma 1139:12124) */
body.rp-cgv2 .rp-hub-content .rp-table-wrap, body.rp-cgv2 .rp-hub-content table.rp-table--striped { max-width: 100%; }
body.rp-cgv2 .rp-hub-content .rp-table-wrap { border: 1px solid #e8ecf7; border-radius: 14px; overflow: auto; padding: 1px; margin: 0 0 16px; }
body.rp-cgv2 .rp-hub-content table.rp-table--striped { width: 100%; border-collapse: collapse; border: 0; border-radius: 0; margin: 0; }
body.rp-cgv2 .rp-hub-content table.rp-table--striped th, body.rp-cgv2 .rp-hub-content table.rp-table--striped td { white-space: normal; min-width: 0; }
body.rp-cgv2 .rp-hub-content table.rp-table--striped th { background: var(--cg2-blue); color: #fff; font-size: 15px; line-height: 18px; font-weight: 600; text-align: left; padding: 13px 18px; border: 0; }
body.rp-cgv2 .rp-hub-content table.rp-table--striped td { padding: 14px 18px 13px; border: 0; border-top: 1px solid #eef1f7; font-size: 15px; line-height: 18px; color: var(--cg2-text); background: transparent; vertical-align: top; }
body.rp-cgv2 .rp-hub-content table.rp-table--striped tbody tr:nth-child(even) td { background: #f7f9ff; }
body.rp-cgv2 .rp-hub-content table.rp-table--striped td:first-child { color: var(--cg2-navy); font-weight: 700; }

/* Benefits tint box (Figma 1139:12319) */
body.rp-cgv2 .rp-hub-content .rp-hub-section--tint { background: var(--cg2-lav); border-radius: 24px; padding: 28px; }
body.rp-cgv2 .rp-hub-content .rp-hub-section--tint .rp-table-wrap { background: #fff; }

/* City image band */
body.rp-cgv2 .rp-cp-city-band { border-radius: 16px; overflow: hidden; margin: 0 0 32px; }

/* Leave: one bordered card, colour-coded headings (Figma 1139:12358) */
body.rp-cgv2 .rp-leave-group { background: #fff; border: 1px solid #eef1f7; border-radius: 14px; padding: 8px 24px 24px; display: block; }
body.rp-cgv2 .rp-leave { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 24px 0 0 !important; border-radius: 0 !important; }
body.rp-cgv2 .rp-leave__heading { display: flex; align-items: center; gap: 8px; font-size: 14px !important; line-height: 20px !important; font-weight: 700; margin: 0 0 16px !important; }
body.rp-cgv2 .rp-leave__icon svg { width: 16px; height: 16px; }
body.rp-cgv2 .rp-leave p, body.rp-cgv2 .rp-leave li { font-size: 15px; line-height: 24px; }
body.rp-cgv2 .rp-leave--blue .rp-leave__heading { color: #114ef7; }
body.rp-cgv2 .rp-leave--green .rp-leave__heading { color: #16a34a; }
body.rp-cgv2 .rp-leave--red .rp-leave__heading { color: #ef4444; }
body.rp-cgv2 .rp-leave--pink .rp-leave__heading { color: #db2777; }
body.rp-cgv2 .rp-leave--teal .rp-leave__heading { color: #0d9488; }
body.rp-cgv2 .rp-leave--navy .rp-leave__heading { color: var(--cg2-navy); }

/* Termination accordion → open reading layout (Figma 1139:12512) */
body.rp-cgv2 .rp-termination-accordion h4 { font-size: 18px; line-height: 24px; font-weight: 500; color: #121212; margin: 28px 0 10px; }
body.rp-cgv2 .rp-termination-accordion p, body.rp-cgv2 .rp-termination-accordion li { font-size: 15px; line-height: 24px; color: #545454; }

/* Disclaimer callouts (Figma 1139:12099 / 1139:12635) */
body.rp-cgv2 .rp-callout--disclaimer { border: 1px solid #f3e1bd; border-left: 4px solid #e9a23b; border-radius: 10px; }

/* Supporting guides (Figma 1139:12637) */
body.rp-cgv2 .rp-guides-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.rp-cgv2 .rp-guide-card { border: 1px solid var(--cg2-line); border-radius: 12px; padding: 20px; background: #fff; margin: 0; }
body.rp-cgv2 .rp-guide-card__title { font-size: 17px; line-height: 24px; font-weight: 700; color: #121212; }
body.rp-cgv2 .rp-guide-card__desc { font-size: 15px; line-height: 22px; color: #6b7280; }
body.rp-cgv2 .rp-guide-card__link { color: var(--cg2-blue); font-size: 15px; font-weight: 600; }

/* ── Bottom CTA band (Figma 1139:12739): moved out of the columns by the JS ── */
body.rp-cgv2 .rp-cgv2-band { width: min(100% - 48px, 1200px); margin: 40px auto; }
body.rp-cgv2 .rp-cgv2-band .rp-cta-banner { background: var(--cg2-blue) !important; border-radius: 24px; overflow: hidden; padding: 0 120px 0 395px !important; min-height: 438px; display: flex; flex-direction: column; justify-content: center; position: relative; box-sizing: border-box; max-width: none; margin: 0; }
body.rp-cgv2 .rp-cgv2-band .rp-cta-banner::before { content: ""; position: absolute; left: 0; bottom: 0; width: 363px; height: 433px; background: url(/wp-content/themes/rp/assets/images/country-hub-v2/cta-band-photo.webp) left bottom / contain no-repeat; }
body.rp-cgv2 .rp-cgv2-band .rp-cta-banner > * { max-width: 770px; margin-left: 0; margin-right: 0; }
body.rp-cgv2 .rp-cgv2-band .rp-cta-banner h2 { text-align: left !important; color: #fff; font-size: 30px; line-height: 37.5px; font-weight: 700; margin: 0 0 11px; }
body.rp-cgv2 .rp-cgv2-band .rp-cta-banner p { text-align: left !important; color: #ececec; font-size: 17px; line-height: 27.2px; margin: 0; padding-left: 25.5px; position: relative; }
body.rp-cgv2 .rp-cgv2-band .rp-cta-banner p::before { content: ""; position: absolute; left: 10px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: #ececec; }
body.rp-cgv2 .rp-cgv2-band .rp-cta-banner .wp-block-buttons { justify-content: flex-start !important; margin-top: 32px; }
body.rp-cgv2 .rp-cgv2-band .rp-cta-banner .wp-block-button__link { background: #fff !important; color: var(--cg2-navy) !important; border-radius: 4px; width: 255px; height: 56px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; line-height: 22px; font-weight: 700; padding: 16px 24px; box-sizing: border-box; text-transform: capitalize; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1023.98px) {
	body.rp-cgv2 .rp-cgv2-band .rp-cta-banner { padding: 40px 24px 300px !important; min-height: 0; }
	body.rp-cgv2 .rp-cgv2-band .rp-cta-banner::before { width: 240px; height: 286px; }
}
@media (max-width: 767.98px) {
	body.rp-cgv2 .rp-cgv2-tk > ul { grid-template-columns: 1fr; }
	body.rp-cgv2 .rp-guides-grid { grid-template-columns: 1fr; }
	body.rp-cgv2 .rp-hub-content h2 { font-size: 24px; line-height: 30px; }
	body.rp-cgv2 .rp-hub-content p, body.rp-cgv2 .rp-hub-content li { font-size: 16px; line-height: 26px; }
	body.rp-cgv2 .rp-cgv2-band .rp-cta-banner h2 { font-size: 24px; line-height: 30px; }
}

/* ── FAQ (Figma 1139:12755): moved below the columns by the JS, so it no longer sits inside .rp-cp-body
   where its styles live (cp-body.css). Styled here for the preview. ─────────────────────────────── */
body.rp-cgv2.rp-cgv2--desk #faq { width: min(100% - 48px, 1200px); max-width: none; margin: 40px auto 64px; padding: 0; box-sizing: border-box; }
body.rp-cgv2 #faq > h2 { color: var(--cg2-navy); font-size: 36px; line-height: 45px; font-weight: 700; margin: 0 0 24px; text-align: left; }
body.rp-cgv2 #faq .rp-faq-accordion { display: grid; gap: 8px; margin: 0; }
body.rp-cgv2 #faq .rp-faq-item { background: var(--cg2-lav); border: 0; border-radius: 10px; margin: 0; }
body.rp-cgv2 #faq .rp-faq-item > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 50px; box-sizing: border-box; padding: 13px 20px; font-size: 17px; line-height: 24px; font-weight: 500; color: #08080d; }
body.rp-cgv2 #faq .rp-faq-item > summary::-webkit-details-marker { display: none; }
body.rp-cgv2 #faq .rp-faq-item > summary::after { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-right: 1.5px solid #545454; border-bottom: 1.5px solid #545454; transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .2s ease; }
body.rp-cgv2 #faq .rp-faq-item[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
body.rp-cgv2 #faq .rp-faq-answer { padding: 0 20px 16px; margin: 0; color: var(--cg2-text); font-size: 16px; line-height: 26px; }
@media (max-width: 767.98px) { body.rp-cgv2 #faq > h2 { font-size: 28px; line-height: 35px; } body.rp-cgv2 #faq .rp-faq-item > summary { font-size: 16px; } }

/* CTA band fix: WordPress's constrained layout centres every child with margin-inline:auto !important, so
   each bullet paragraph started at a different x and the button sat in the middle. Pin them to the left. */
body.rp-cgv2 .rp-cgv2-band .rp-cta-banner > * { margin-left: 0 !important; margin-right: 0 !important; width: 100%; max-width: 770px !important; box-sizing: border-box; }
body.rp-cgv2 .rp-cgv2-band .rp-cta-banner > .wp-block-buttons { display: flex; justify-content: flex-start !important; }

/* ══ Mobile (Figma 1139:12831, 414px) — live page order, new styling. ═══════════════════════════════ */
@media (max-width: 1023.98px) {
	/* Sidebar becomes a swipeable strip + CTA strip (Figma 1139:12890) */
	body.rp-cgv2 .rp-cgv2-navhead { display: none; }
	body.rp-cgv2 .rp-cp-nav__card { gap: 0; border-radius: 8px; overflow: hidden; border: 1px solid #f1f1f1; }
	body.rp-cgv2 .rp-cp-nav__inner { display: flex; flex-direction: row; overflow-x: auto; padding: 0; border: 0; border-radius: 0; scrollbar-width: none; }
	body.rp-cgv2 .rp-cp-nav__inner::-webkit-scrollbar { display: none; }
	body.rp-cgv2 .rp-cp-nav__inner .rp-cp-nav__link { border-radius: 0 !important; border: 0 !important; border-right: 1px solid #f1f1f1 !important; box-shadow: none !important; margin: 0 !important; background: #fff; } /* live mobile pills (rounded + bordered) → flat cells, Figma 1139:12892 */
	body.rp-cgv2 .rp-cp-nav__inner .rp-cp-nav__link[aria-current="true"] { background: #f0f4fe; }
	body.rp-cgv2 .rp-cp-nav__inner { gap: 0 !important; }
	body.rp-cgv2 .rp-cp-nav__link { flex: 0 0 180px; width: 180px; box-sizing: border-box; padding: 14px 16px; font-size: 14px; line-height: 20px; border-right: 1px solid #f1f1f1; white-space: normal; }
	body.rp-cgv2 .rp-cp-nav__link[aria-current="true"] { background: #f0f4fe; }
	body.rp-cgv2 .rp-cp-nav__cta { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; border-radius: 0; padding: 10px 16px; }
	body.rp-cgv2 .rp-cp-nav__cta::after { display: none; }
	body.rp-cgv2 .rp-cp-nav__cta-h { font-size: 14px; line-height: 20px; font-weight: 400; flex: 1 1 auto; }
	body.rp-cgv2 .rp-cp-nav__cta-btn { flex: 0 0 auto; width: auto; padding: 15px 18px; font-size: 16px; }
	/* Key Takeaways decision cards: 2 columns, icon + small caps label, value below (Figma 1139:13088) */
	body.rp-cgv2 .rp-cgv2-tk .rp-unified-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px; margin-top: 24px; } /* !important: cp-body.css sets 1fr !important on mobile */
	body.rp-cgv2 .rp-cgv2-tk .rp-unified-cards > .wp-block-column:empty { display: none; }
	body.rp-cgv2 .rp-cgv2-tk .rp-decision-card { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; row-gap: 16px; align-items: center; background: #fff; border: 0; border-radius: 12px; padding: 16px; min-height: 0; box-shadow: none; }
	body.rp-cgv2 .rp-cgv2-tk .rp-decision-card__icon { width: 36px; height: 36px; border-radius: 8px; background: #eaf0ff; color: var(--cg2-blue); display: flex; align-items: center; justify-content: center; margin: 0; }
	body.rp-cgv2 .rp-cgv2-tk .rp-decision-card__icon svg { width: 20px; height: 20px; }
	body.rp-cgv2 .rp-cgv2-tk .rp-decision-card__label { margin: 0; font-size: 12px; line-height: 16px; letter-spacing: .5px; text-transform: uppercase; color: #6b7280; }
	body.rp-cgv2 .rp-cgv2-tk .rp-decision-card__value { grid-column: 1 / -1; margin: 0; font-size: 15px; line-height: 20px; font-weight: 700; color: #08080d; }
	/* Bottom CTA: light card, no photo, paragraphs as running text (Figma 1139:13807) */
	body.rp-cgv2:not(.rp-cgv2--desk) .rp-cta-banner { background: var(--cg2-lav) !important; border-radius: 16px; padding: 32px 24px !important; text-align: left; }
	body.rp-cgv2:not(.rp-cgv2--desk) .rp-cta-banner > * { margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; }
	body.rp-cgv2:not(.rp-cgv2--desk) .rp-cta-banner h2 { text-align: left !important; color: var(--cg2-navy); font-size: 28px; line-height: 35px; margin: 0 0 16px; }
	body.rp-cgv2:not(.rp-cgv2--desk) .rp-cta-banner p { display: inline; text-align: left !important; color: #545454; font-size: 16px; line-height: 26px; }
	body.rp-cgv2:not(.rp-cgv2--desk) .rp-cta-banner p + p::before { content: " "; }
	body.rp-cgv2:not(.rp-cgv2--desk) .rp-cta-banner .wp-block-buttons { display: flex; justify-content: flex-start !important; margin-top: 24px; }
	body.rp-cgv2:not(.rp-cgv2--desk) .rp-cta-banner .wp-block-button__link { background: var(--cg2-blue) !important; color: #fff !important; border-radius: 6px; padding: 14px 30px; font-size: 18px; font-weight: 500; }
}
@media (max-width: 767.98px) {
	/* Hero (Figma 1139:12845): 24px gutters, 48px flag, CTAs side by side */
	body.rp-cgv2 .rp-cgv2-flag { width: 48px; height: 48px; margin-bottom: 20px; }
	body.rp-cgv2 .rp-cp-hero__title { font-size: 24px; line-height: 31.5px; }
	body.rp-cgv2 .rp-cp-hero__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
	body.rp-cgv2 .rp-cp-hero__btn { width: 100%; min-height: 48px; box-sizing: border-box; justify-content: center; padding-left: 8px; padding-right: 8px; }
	body.rp-cgv2 .rp-cp-quick { width: 100%; }
	/* Fact tiles: one column, icon LEFT of label/value (Figma 1139:12916) */
	body.rp-cgv2 .rp-cp-facts { padding: 18px 16px; }
	body.rp-cgv2 .rp-cp-facts__grid { grid-template-columns: 1fr; gap: 16px; }
	body.rp-cgv2 .rp-cp-tile, body.rp-cgv2 .rp-cp-tile--wide { grid-column: auto; flex-direction: row; align-items: center; gap: 12px; padding: 16px; }
	/* Model cards: 2 columns (Figma 1139:13017) */
	body.rp-cgv2 .rp-cp-models__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	body.rp-cgv2 .rp-cp-model { padding: 16px; }
	body.rp-cgv2 .rp-cp-model__value { font-size: 20px; line-height: 26px; }
	body.rp-cgv2 .rp-cp-model__desc { font-size: 13px; line-height: 19px; }
	/* Key Takeaways */
	body.rp-cgv2 .rp-cgv2-tk { padding: 24px 16px; }
	body.rp-cgv2 .rp-cgv2-tk > h3 { font-size: 20px; line-height: 26px; letter-spacing: 0; }
}

/* Fact tiles below desktop (Mo 2026-10-29): icon LEFT, content left-aligned; 2 per row on tablet, 1 on mobile. */
@media (max-width: 1023.98px) {
	body.rp-cgv2 .rp-cp-facts__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px; }
	body.rp-cgv2 .rp-cp-tile { flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; text-align: left; gap: 12px; padding: 16px; width: auto; }
	body.rp-cgv2 .rp-cp-tile__body { align-items: flex-start; text-align: left; min-width: 0; }
	body.rp-cgv2 .rp-cp-tile--wide { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
	body.rp-cgv2 .rp-cp-facts__grid { grid-template-columns: 1fr !important; }
	body.rp-cgv2 .rp-cp-tile--wide { grid-column: auto; }
}

/* "Speak to an expert" buttons: never underlined; text scales down on small screens and wraps instead of overflowing. */
body.rp-cgv2 .rp-cp-nav__cta-btn, body.rp-cgv2 .rp-cp-nav__cta-btn:hover, body.rp-cgv2 .rp-cp-nav__cta-btn:focus,
body.rp-cgv2 .rp-cp-hero__btn, body.rp-cgv2 .rp-cp-hero__btn:hover,
body.rp-cgv2 .rp-cta-banner .wp-block-button__link, body.rp-cgv2 .rp-cta-banner .wp-block-button__link:hover { text-decoration: none !important; }
@media (max-width: 1023.98px) {
	body.rp-cgv2 .rp-cp-nav__cta-btn { font-size: clamp(13px, 3.6vw, 16px); line-height: 1.25; padding: 12px clamp(12px, 3.5vw, 18px); white-space: normal; text-align: center; max-width: 50%; }
	body.rp-cgv2 .rp-cp-nav__cta-h { font-size: clamp(12px, 3.4vw, 14px); }
}

/* Below desktop, Key Takeaways + calculator (moved up out of the body) lost the body's 16px side inset and ran
   edge to edge. Same 16px left/right as the tiles, models and body (Mo 2026-10-29). */
@media (max-width: 1023.98px) {
	body.rp-cgv2 .rp-cp-col-main > .rp-cgv2-tk,
	body.rp-cgv2 .rp-cp-col-main > .rp-cgcc { margin-left: 16px !important; margin-right: 16px !important; width: auto !important; max-width: none !important; box-sizing: border-box; }
	body.rp-cgv2 .rp-cp-col-main > .rp-cgcc .rp-cgcc__card { width: 100%; box-sizing: border-box; }
}

/* Mobile/tablet CTA strip, smaller (Mo 2026-10-29: "cta looks so big"). */
@media (max-width: 1023.98px) {
	body.rp-cgv2 .rp-cp-nav__cta { padding: 10px 16px; gap: 12px; }
	body.rp-cgv2 .rp-cp-nav__cta-h { font-size: clamp(12px, 3.2vw, 13px); line-height: 18px; }
	body.rp-cgv2 .rp-cp-nav__cta-btn { font-size: clamp(12px, 3.2vw, 14px); line-height: 18px; padding: 9px 14px; border-radius: 6px; font-weight: 700; max-width: 48%; }
}

/* No layout jump while the JS rearranges blocks: the main column appears once arranged (no transition, so it can never stall). Fail-safe: shown after
   1.5s even if the script never runs, so content can never stay hidden. */
@keyframes rp-cgv2-show { to { opacity: 1; } }
body.rp-cgv2:not(.rp-cgv2-ready) .rp-cp-col-main { opacity: 0; animation: rp-cgv2-show .2s 1.5s forwards; }
body.rp-cgv2.rp-cgv2-ready .rp-cp-col-main { opacity: 1; animation: none; }

/* FAQ: no focus outline box on the question row (Mo 2026-10-29). Keyboard users still get a cue: a slightly
   darker row background instead of the outline. */
body.rp-cgv2 #faq .rp-faq-item > summary:focus,
body.rp-cgv2 #faq .rp-faq-item > summary:focus-visible { outline: none !important; box-shadow: none !important; }
body.rp-cgv2 #faq .rp-faq-item > summary:focus-visible { background: #e4ebfe; border-radius: 10px; }

/* "TL;DR" label above the Key Takeaways heading (Figma 1139:11742): Mulish Bold 16, navy, 10px gap. */
body.rp-cgv2 .rp-cgv2-tk-label { margin: 0 0 10px !important; color: var(--cg2-navy); font-size: 16px; line-height: normal; font-weight: 700; letter-spacing: -.1px; }
/* TL;DR label a bit smaller and closer to the heading (Mo 2026-10-29). */
body.rp-cgv2 .rp-cgv2-tk-label { font-size: 14px; line-height: 18px; letter-spacing: .4px; margin: 0 0 10px !important; }

/* ══ Arabic /ar/country/uae — same design, mirrored (RTL). Only physical left/right rules need flipping. ═══ */
[dir="rtl"] body.rp-cgv2 .rp-hub-content table.rp-table--striped th { text-align: right; }
[dir="rtl"] body.rp-cgv2 .rp-hub-content .rp-callout--highlight { border-left-width: 1px; border-right-width: 3px; padding: 17px 23px 17px 21px; }
[dir="rtl"] body.rp-cgv2 .rp-callout--disclaimer { border-left: 1px solid #f3e1bd; border-right: 4px solid #e9a23b; }
[dir="rtl"] body.rp-cgv2 .rp-cp-tile__body { text-align: right; }
[dir="rtl"] body.rp-cgv2 .rp-cgv2-tk-label { letter-spacing: 0; }
@media (max-width: 1023.98px) {
	[dir="rtl"] body.rp-cgv2 .rp-cp-nav__inner .rp-cp-nav__link { border-right: 0 !important; border-left: 1px solid #f1f1f1 !important; }
}

/* Long "In this guide" lists (AR has 65 links): keep the sticky desktop card within the screen, scroll inside it. */
@media (min-width: 1024px) {
	body.rp-cgv2 .rp-cp-nav__inner { max-height: calc(100vh - 96px - 360px); min-height: 220px; overflow-y: auto; }
}

/* AR Key Takeaways = heading + the small fact cards (no bullet list), so the cards stay in the box:
   white cards on the lavender panel, icon + small-caps label, value below (mobile Figma 1139:13088). */
body.rp-cgv2 .rp-cgv2-tk--cards .rp-unified-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 16px; margin-top: 8px; }
body.rp-cgv2 .rp-cgv2-tk--cards .rp-unified-cards > .wp-block-column:empty { display: none; }
body.rp-cgv2 .rp-cgv2-tk--cards .rp-decision-card { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; row-gap: 14px; align-items: center; background: #fff; border: 0; border-radius: 12px; padding: 16px; min-height: 0; box-shadow: none; }
body.rp-cgv2 .rp-cgv2-tk--cards .rp-decision-card__icon { width: 36px; height: 36px; border-radius: 8px; background: #eaf0ff; color: var(--cg2-blue); display: flex; align-items: center; justify-content: center; margin: 0; }
body.rp-cgv2 .rp-cgv2-tk--cards .rp-decision-card__icon svg { width: 20px; height: 20px; }
body.rp-cgv2 .rp-cgv2-tk--cards .rp-decision-card__label { margin: 0; font-size: 13px; line-height: 16px; color: #6b7280; }
body.rp-cgv2 .rp-cgv2-tk--cards .rp-decision-card__value { grid-column: 1 / -1; margin: 0; font-size: 15px; line-height: 20px; font-weight: 700; color: #08080d; }
@media (max-width: 1023.98px) { body.rp-cgv2 .rp-cgv2-tk--cards .rp-unified-cards { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 767.98px) { body.rp-cgv2 .rp-cgv2-tk--cards .rp-unified-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
/* AR has no "In this guide" header, so the link list carries the card's top border + radius itself. */
[dir="rtl"] body.rp-cgv2 .rp-cp-nav__card:not(:has(.rp-cgv2-navhead)) .rp-cp-nav__inner { border-top: 1px solid #f1f1f1; border-radius: 8px; }

/* Decision cards moved into the fact tiles are hidden in the Key Takeaways box at EVERY width (the mobile grid
   rule was overriding the [hidden] attribute, so they showed twice on phones/tablets). EN + AR. */
body.rp-cgv2 .rp-cgv2-tk .rp-unified-cards[hidden] { display: none !important; }

/* AR sidebar CTA heading: Almarai renders visually larger than Mulish at the same size (4 lines vs EN 3) — desktop only. */
@media (min-width: 1024px) {
	[dir="rtl"] body.rp-cgv2 .rp-cp-nav__cta-h { font-size: 20px; line-height: 30px; }
}

/* 2026-11-09 (Mo): hero header paragraph + TL;DR CTA (copy rendered by inc/country-hub-v2-preview.php). */
body.rp-cgv2 .rp-cgv2-sub { margin: 16px 0 24px; max-width: 720px; color: rgba(255,255,255,.8); font-size: 18px; line-height: 1.55; }
body.rp-cgv2 .rp-cgv2-cta { margin: 24px 0 0; }
body.rp-cgv2 .rp-cgv2-cta .rp-cp-hero__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 8px; font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; background: var(--rp-cp-blue, #114EF7); color: #fff; transition: background-color .15s ease; }
body.rp-cgv2 .rp-cgv2-cta .rp-cp-hero__btn:hover { background: #0d3fd0; color: #fff; }
@media (max-width: 767px) {
	body.rp-cgv2 .rp-cgv2-sub { font-size: 16px; margin: 12px 0 20px; }
	body.rp-cgv2 .rp-cgv2-cta .rp-cp-hero__btn { width: 100%; box-sizing: border-box; }
}

/* 2026-11-10 (Mo): /country/uae (EN + AR) no longer has the $60k salary slider (replaced by the UAE cost-calculator
   widget below the FAQs), so the TL;DR box sat flush on the facts tiles. Same 40px as the gap before the body.
   Set as the box's bottom margin: migration.min.css forces .wp-block-template-part { margin-top: 0 !important }. */
body.rp-cgv2 .rp-cp-col-main > .rp-cgv2-tk:has(+ .wp-block-template-part) { margin-bottom: 40px; }
