/* components/cp-body.css — Country per-page body content column (page-country-hub-v4).
   Scope .rp-cp-body (2nd child of .rp-cp-shell). Targets the semantic body classes —
   .rp-decision-card / .rp-unified-cards / .rp-callout--highlight / .rp-table--striped /
   Key-Takeaways ul (TL;DR + decision cards + stat content + tables). Figma 617:15966. */

/* The v4 body group uses a constrained block layout (content-size ~550px), which
   leaves dead space in the wider 2-col content column. Override the WP content/wide
   size vars (they inherit, so nested constrained layouts fill too) and reset the
   auto-centering so content fills the column left-aligned. */
.rp-cp-body {
  --wp--style--global--content-size: 100%;
  --wp--style--global--wide-size: 100%;
  /* The v4 group adds 120px side padding — that was the "dead space"; the shell
     already spaces the column, so let content fill it. */
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* The v4 CSS pins .entry-content to a fixed 634px reading width — override the
   country body + its content wrappers to fill the 2-col column. */
.rp-cp-body .entry-content,
.rp-cp-body .rp-cp-flat,
.rp-cp-body .rp-hub-section,
.rp-cp-body :where(.is-layout-constrained) > :not(.alignfull):not(.alignwide) {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

/* ---- Section headings ---- */
.rp-cp-body h2 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: #021143;
  margin: 48px 0 16px;
}
.rp-cp-body h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: #021143;
  margin: 32px 0 12px;
}
.rp-cp-body p { color: #3F3F46; line-height: 1.65; }

/* ---- TL;DR / Key Takeaways list ---- */
.rp-cp-body h3 + ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 22px 24px;
  background: #F0F4FE;
  border-radius: 14px;
  display: grid;
  gap: 12px;
}
.rp-cp-body h3 + ul > li {
  position: relative;
  padding-left: 28px;
  color: #021143;
  line-height: 1.55;
  font-size: 15px;
}
.rp-cp-body h3 + ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #114EF7;
}

/* ---- Stat / decision card grid (fix the broken 82px columns) ---- */
.rp-cp-body .rp-unified-cards {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px;
  width: 100% !important;
  max-width: none !important;
  margin: 8px 0 24px;
}
.rp-cp-body .rp-unified-cards > .wp-block-column {
  margin: 0 !important;
  padding: 0 !important;
  flex: none !important;
  display: flex;
}
.rp-cp-body .rp-decision-card {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #E8ECF7;
  border-radius: 14px;
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(16, 30, 74, .04);
  height: auto;
  min-width: 0;
}
/* Icon chip: blue line SVG (.rp-card-icon, recolored via --rp-card-icon) in a
   light-blue rounded square. Falls back fine if an emoji is used instead. */
.rp-cp-body .rp-decision-card { --rp-card-icon: #114EF7; }
.rp-cp-body .rp-decision-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 0 12px;
  background: #E4EBFE;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
}
.rp-cp-body .rp-decision-card__icon .rp-card-icon {
  width: 22px;
  height: 22px;
}
.rp-cp-body .rp-decision-card__label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8388A1;
}
.rp-cp-body .rp-decision-card__value {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #021143;
  line-height: 1.25;
}
.rp-cp-body .rp-decision-card__detail {
  margin: 2px 0 0;
  font-size: 13px;
  color: #6B7280;
  line-height: 1.45;
}

/* ---- Employer-cost % cards (.rp-decision-card--stat: dot + label + big %) ---- */
.rp-cp-body .rp-decision-card--stat {
  justify-content: space-between;
  min-height: 128px;
}
.rp-cp-body .rp-decision-card--stat .rp-decision-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 6px;
}
.rp-cp-body .rp-dot--green { background: #16A34A; }
.rp-cp-body .rp-dot--amber { background: #F59E0B; }
.rp-cp-body .rp-dot--grey { background: #9CA3AF; }
.rp-cp-body .rp-dot--blue { background: #114EF7; }
.rp-cp-body .rp-decision-card--stat .rp-decision-card__value {
  align-self: flex-end;
  font-size: 30px;
}

/* ---- Highlight callout ---- */
.rp-cp-body .rp-callout--highlight {
  background: #F0F4FE !important;
  border: 1px solid #E4EBFE !important;
  border-left: 3px solid #114EF7 !important;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  color: #021143;
  line-height: 1.6;
}

/* ---- Striped data tables ---- */
.rp-cp-body .rp-table-wrap {
  overflow-x: auto;
  border: 1px solid #E8ECF7;
  border-radius: 14px;
  margin: 16px 0 28px;
}
.rp-cp-body .rp-table--striped {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.rp-cp-body .rp-table--striped th {
  background: #114EF7;
  color: #FFFFFF;
  font-weight: 600;
  text-align: start;
  padding: 13px 18px;
}
.rp-cp-body .rp-table--striped td {
  padding: 13px 18px;
  border-top: 1px solid #EEF1F7;
  color: #3F3F46;
  vertical-align: top;
  text-align: start;
}
.rp-cp-body .rp-table--striped tbody tr:nth-child(even) { background: #F7F9FF; }
.rp-cp-body .rp-table--striped td strong { color: #021143; }

/* ---- Section tint band (benefits etc.) ---- */
.rp-cp-body .rp-hub-section--tint {
  background: #F0F4FE;
  border-radius: 20px;
  padding: 4px 28px 28px;
  margin: 28px 0;
}
/* When a tint band is also a callout wrapper (the stat-cards block), drop the
   callout's left-accent + border so it reads as a clean tinted section. */
.rp-cp-body .rp-callout--highlight.rp-hub-section--tint {
  border: none !important;
  border-radius: 20px;
}

/* ---- Leave entitlements: white card w/ colour-coded sub-headings ---- */
.rp-cp-body .rp-leave-group {
  background: #FFFFFF;
  border: 1px solid #E8ECF7;
  border-radius: 16px;
  padding: 6px 28px 28px;
  box-shadow: 0 2px 12px rgba(16, 30, 74, .04);
  margin: 16px 0;
}
.rp-cp-body .rp-leave { padding-top: 22px; }
.rp-cp-body .rp-leave__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
}
.rp-cp-body .rp-leave__icon { display: inline-flex; flex: 0 0 auto; }
.rp-cp-body .rp-leave__icon svg { width: 18px; height: 18px; }
/* Colour the heading text + (currentColor) icon together */
.rp-cp-body .rp-leave--blue  .rp-leave__heading { color: #114EF7; }
.rp-cp-body .rp-leave--green .rp-leave__heading { color: #16A34A; }
.rp-cp-body .rp-leave--red   .rp-leave__heading { color: #E5484D; }
.rp-cp-body .rp-leave--pink  .rp-leave__heading { color: #D6409F; }
.rp-cp-body .rp-leave--teal  .rp-leave__heading { color: #0E9CA6; }
.rp-cp-body .rp-leave--navy  .rp-leave__heading { color: #021143; }

/* ---- Final Payment Timeline card ---- */
.rp-cp-body .rp-cp-timeline-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #F0F4FE;
  border: 1px solid #E4EBFE;
  border-radius: 14px;
  padding: 18px 22px;
  margin: 22px 0;
}
.rp-cp-body .rp-cp-timeline-card__icon { color: #114EF7; flex: 0 0 auto; line-height: 0; }
.rp-cp-body .rp-cp-timeline-card__icon svg { width: 22px; height: 22px; }
.rp-cp-body .rp-cp-timeline-card__title { font-weight: 700; color: #021143; margin: 0 0 4px; }

/* ---- Decorative full-bleed city image band ---- */
.rp-cp-body .rp-cp-city-band { margin: 32px 0; }
.rp-cp-body .rp-cp-city-band__img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 20px;
}

/* ---- Country CTA banner ("Finally, a payroll partner…") ---- */
.rp-cp-body .rp-cta-banner {
  background: #EAF0FE;
  border-radius: 24px;
  padding: 44px 48px;
  margin: 40px 0;
  text-align: center;
}
.rp-cp-body .rp-cta-banner h2 {
  color: #021143;
  font-size: 30px;
  margin: 0 0 14px;
}
.rp-cp-body .rp-cta-banner p {
  color: #4C577A;
  max-width: 680px;
  margin: 0 auto 10px;
  line-height: 1.6;
}
.rp-cp-body .rp-cta-banner .wp-block-buttons { margin-top: 24px; }
.rp-cp-body .rp-cta-banner .wp-block-button__link {
  background: #114EF7;
  color: #FFFFFF;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 100px;
  text-decoration: none;
}
.rp-cp-body .rp-cta-banner .wp-block-button__link:hover { background: #0E45D6; }

/* ---- FAQ accordion (native <details>) ---- */
.rp-cp-body .rp-faq-accordion {
  margin: 16px 0 8px;
  border-top: 1px solid #E8ECF7;
}
.rp-cp-body .rp-faq-item { border-bottom: 1px solid #E8ECF7; }
.rp-cp-body .rp-faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  font-size: 16px;
  font-weight: 600;
  color: #021143;
}
.rp-cp-body .rp-faq-item > summary::-webkit-details-marker { display: none; }
.rp-cp-body .rp-faq-item > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-right: 2px solid #6B7280;
  border-bottom: 2px solid #6B7280;
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-top: -4px;
}
.rp-cp-body .rp-faq-item[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.rp-cp-body .rp-faq-answer {
  padding: 0 4px 18px;
  margin: 0;
  color: #4C577A;
  line-height: 1.6;
}

/* ---- Supporting Guides cards ---- */
.rp-cp-body .rp-guides-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px;
  width: 100%;
  margin: 16px 0 24px;
}
.rp-cp-body .rp-guide-card {
  background: #FFFFFF;
  border: 1px solid #E8ECF7;
  border-radius: 14px;
  padding: 22px 20px;
}
.rp-cp-body .rp-guide-card__icon { font-size: 24px; margin: 0 0 10px; }
.rp-cp-body .rp-guide-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #021143;
  margin: 0 0 6px;
}
.rp-cp-body .rp-guide-card__desc {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.5;
  margin: 0 0 12px;
}
.rp-cp-body .rp-guide-card__link {
  font-size: 14px;
  font-weight: 600;
  color: #114EF7;
  text-decoration: none;
}

@media (max-width: 991px) {
  .rp-cp-body h2 { font-size: 23px; }
  .rp-cp-body .rp-unified-cards { grid-template-columns: repeat(2, 1fr) !important; }
  .rp-cp-body .rp-hub-section--tint,
  .rp-cp-body .rp-leave-group { padding-left: 18px; padding-right: 18px; }
  .rp-cp-body .rp-cp-city-band__img { height: 160px; }
  .rp-cp-body .rp-cta-banner { padding: 32px 24px; }
  .rp-cp-body .rp-guides-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rp-cp-body .rp-unified-cards { grid-template-columns: 1fr !important; }
}

