/* Final public corrections, loaded after the restored page styles. */
:root { --roa-public-card-radius:6px; }
/* Use existing local photographs: no new CDN request or CMS record. */
.roa-home-social .roa-social-invitation { background:linear-gradient(180deg,rgba(8,28,21,.36),rgba(8,28,21,.92) 75%),var(--roa-social-bg,url('/img/serengeti-national-park-safari.jpg')) var(--roa-social-pos,center)/cover no-repeat; color:#fff; border-radius:var(--roa-public-card-radius); }
.roa-home-social .roa-social-invitation::before,.roa-home-social .roa-social-invitation::after { content:none; }
.roa-home-social .roa-social-invitation h3,.roa-home-social .roa-social-invitation__description { color:#fff; }
.roa-home-partners { background:linear-gradient(rgba(246,248,246,.70),rgba(246,248,246,.70)),var(--roa-partners-bg,url('/img/Botswana_mokoro.jpg')) var(--roa-partners-pos,center)/cover no-repeat; padding-block:44px; }
:root[data-theme="dark"] .roa-home-partners { background:linear-gradient(rgba(8,28,21,.64),rgba(8,28,21,.64)),var(--roa-partners-bg,url('/img/Botswana_mokoro.jpg')) var(--roa-partners-pos,center)/cover no-repeat; }
/* White backing only in dark mode keeps dark marks in transparent logos readable. */
:root[data-theme="dark"] .roa-home-partners .roa-home-partner-card img { background:#fff; border-radius:var(--roa-public-card-radius); padding:8px; }
.roa-home-about .roa-home-about__gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(8px,2vw,16px); }
.roa-home-about .roa-home-about__gallery-item { min-width:0; width:100%; }
.roa-home-about .roa-home-about__gallery-item img { display:block; width:100%; height:100%; object-fit:cover; }
/* Preserve square original cards, but standardize cards that already have rounding. */
.roa-public-body :is(.roa-home-search__panel,.roa-home-blog-card,.roa-home-review-card,.roa-social-card,.roa-social-post-card,.roa-social-invitation,.roa-country-category-card,.roa-content-card,.roa-impact-card,.roa-impact-card__media img,.roa-legal-card,.roa-team-card,.roa-enquiry-form-card,.roa-blog-card,.roa-itinerary-item,.roa-tour-itinerary__item,.roa-tour-cost-card,.roa-tour-booking__panel,.roa-enquiry-contact,.roa-enquiry-form-panel,.roa-blog-related-card,.roa-contact-card,.roa-form-panel,.roa-search-panel,.roa-whatsapp__panel) { border-radius:var(--roa-public-card-radius) !important; }
/* CMS rich text may contain hard-coded light-mode colors (including spans). */
:root[data-theme="dark"] .roa-public-body :is(.roa-home-about__copy,.roa-prose,.roa-tour-richtext,.roa-blog-prose) { color:var(--roa-color-text); }
:root[data-theme="dark"] .roa-public-body :is(.roa-home-about__copy,.roa-prose,.roa-tour-richtext,.roa-blog-prose) :is(p,div,span,li,td,th,blockquote,strong,b,em,i,font,small) { color:var(--roa-color-text) !important; }
:root[data-theme="dark"] .roa-public-body :is(.roa-home-about__copy,.roa-prose,.roa-tour-richtext,.roa-blog-prose) :is(h1,h2,h3,h4,h5,h6) { color:var(--roa-color-heading) !important; }
:root[data-theme="dark"] .roa-public-body :is(.roa-home-about__copy,.roa-prose,.roa-tour-richtext,.roa-blog-prose) a,:root[data-theme="dark"] .roa-public-body :is(.roa-home-about__copy,.roa-prose,.roa-tour-richtext,.roa-blog-prose) a * { color:var(--roa-color-link) !important; }
:root[data-theme="dark"] .roa-public-body :is(.roa-home-about__copy,.roa-prose,.roa-tour-richtext,.roa-blog-prose) :is(p,div,span,li,td,th,blockquote,font)[style*="background"] { background-color:transparent !important; }
/* Staff portraits occupy the whole card; the bio reveals on hover/focus or touch. */
.roa-about-page .roa-team-card { position:relative; isolation:isolate; overflow:hidden; aspect-ratio:4/5; width:100%; max-width:360px; margin-inline:auto; border:0; background:#102a20; }
.roa-about-page .roa-team-card > img { position:absolute; inset:0; width:100%; height:100%; aspect-ratio:auto; object-fit:cover; object-position:center 35%; }
.roa-about-page .roa-team-card__body { position:absolute; inset:auto 0 0; padding:42px 18px 17px; background:linear-gradient(transparent,rgba(8,28,21,.94) 55%); z-index:2; pointer-events:none; }
.roa-about-page .roa-team-card h3 { color:#fff !important; margin:0 0 4px; font-size:clamp(18px,2vw,23px); }
.roa-about-page .roa-team-card .roa-team-position { color:#c6f2ce !important; margin:0; font-size:15px; }
.roa-about-page .roa-team-bio-panel { position:absolute; inset:0; z-index:1; color:#fff; }
.roa-about-page .roa-team-card:focus-visible { outline:2px solid #84d197; outline-offset:3px; }
.roa-about-page .roa-team-bio-panel .roa-team-bio { position:absolute; inset:0; margin:0; padding:20px 18px 100px; overflow:auto; color:#fff !important; background:rgba(8,28,21,.83); opacity:0; transition:opacity .2s; pointer-events:none; }
.roa-about-page .roa-team-card:focus .roa-team-bio { opacity:1; pointer-events:auto; }
@media(hover:hover) { .roa-about-page .roa-team-card:hover .roa-team-bio { opacity:1; pointer-events:auto; } }
@media(prefers-reduced-motion:reduce) { .roa-about-page .roa-team-bio { transition:none; } }
/* Explicit flex layout wins over unlayered legacy element resets. */
.roa-public-body .roa-whatsapp { position:fixed; right:16px; bottom:76px; z-index:1000; max-width:calc(100vw - 32px); }
.roa-public-body .roa-whatsapp__button { display:flex; align-items:center; justify-content:center; width:50px; height:50px; padding:0; border:0; border-radius:50%; color:#fff; background:#25d366; font-size:24px; }
.roa-public-body .roa-whatsapp__panel { position:absolute; right:0; bottom:60px; display:flex; flex-direction:column; width:min(320px,calc(100vw - 32px)); max-height:calc(100dvh - 155px); overflow:hidden; background:var(--roa-color-surface); border:1px solid var(--roa-color-border); box-shadow:0 8px 24px #0004; }
.roa-public-body .roa-whatsapp__header { display:flex; flex:0 0 auto; align-items:center; gap:10px; padding:12px 14px; background:#317644; }
.roa-public-body .roa-whatsapp__header img { width:34px; height:34px; flex:0 0 34px; object-fit:contain; background:#fff; border-radius:50%; padding:3px; }
.roa-public-body .roa-whatsapp__header h4 { color:#fff; font-size:16px; font-weight:700 !important; line-height:1.3; margin:0; }
.roa-public-body .roa-whatsapp__body { display:flex; flex:1 1 auto; flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:8px; min-height:0; overflow-y:auto; padding:14px; }
.roa-public-body .roa-whatsapp__message { max-width:90%; padding:10px 12px; border-radius:6px; font-size:14px; line-height:1.5; background:#e8f2e9; color:#173423; overflow-wrap:anywhere; }
.roa-public-body .roa-whatsapp__message--user { align-self:flex-end; background:#d4efdb; }
:root[data-theme="dark"] .roa-public-body .roa-whatsapp__message { background:#143326; color:#edf8ef; }
.roa-public-body .roa-whatsapp__input-row { display:flex; align-items:center; flex:0 0 auto; gap:8px; padding:10px; border-top:1px solid var(--roa-color-border); }
.roa-public-body .roa-whatsapp__input-row input { flex:1 1 0; width:0; min-width:0; height:42px; padding:8px 10px; font-size:14px; border:1px solid var(--roa-color-border); border-radius:6px; color:var(--roa-color-text); background:var(--roa-color-page); }
.roa-public-body .roa-whatsapp__input-row button { display:flex; align-items:center; justify-content:center; flex:0 0 42px; width:42px; height:42px; padding:0; border:0; border-radius:6px; background:#187b3c; color:#fff; }
.roa-public-body .back-to-top { position:fixed; right:16px; bottom:16px; width:46px; height:46px; padding:0; align-items:center; justify-content:center; border:0; border-radius:6px; background:#367a48; color:#fff; z-index:999; }
.roa-public-body .back-to-top svg { display:block; flex:none; }
.roa-public-body .roa-site-footer__newsletter { display:flex; flex-direction:row; align-items:stretch; gap:0; width:100%; min-width:0; }
.roa-public-body .roa-site-footer__newsletter-input { flex:1 1 0; width:0; min-width:0; min-height:46px; padding:10px 12px; border:1px solid var(--roa-footer-border); border-radius:6px 0 0 6px; background:var(--roa-color-surface); color:var(--roa-color-text); }
.roa-public-body .roa-site-footer__newsletter-button { flex:0 0 auto; min-height:46px; padding:10px 14px; border:1px solid #367a48; border-radius:0 6px 6px 0; background:#367a48; color:#fff; white-space:nowrap; }
/* Fix exact one-slide geometry (legacy flex/grid declarations must not introduce gaps). */
.roa-public-body :is(.roa-country-page,.roa-category-page) .roa-country-review-strip { display:flex; gap:0; padding:0; scroll-padding:0; }
.roa-public-body :is(.roa-country-page,.roa-category-page) .roa-country-review-slide { flex:0 0 100%; width:100%; max-width:100%; min-width:0; padding:0; margin:0; }
.roa-public-body :is(.roa-country-page,.roa-category-page) .roa-country-review-slide .roa-home-review-card { width:100%; max-width:none; min-width:0; margin:0; }

/* Keep nested image corners aligned with their cards. */
.roa-public-body :is(.roa-home-blog-card,.roa-blog-card,.roa-country-category-card,.roa-social-card,.roa-impact-card) { overflow:hidden; }
.roa-public-body :is(.roa-home-blog-card__media,.roa-blog-card__media,.roa-country-category-card__media) { border-radius:6px 6px 0 0; }
:root[data-theme="dark"] .roa-public-body :is(.roa-home-about__copy,.roa-prose,.roa-tour-richtext,.roa-blog-prose) :is(h1,h2,h3,h4,h5,h6) span { color:inherit !important; }
:root[data-theme="dark"] .roa-public-body .roa-prose table th { background:var(--roa-color-surface-muted) !important; }
.roa-public-body .roa-site-footer__newsletter-button { width:auto; min-width:0; max-width:100%; }

/* Select2 is loaded from an unlayered CDN stylesheet after Tailwind.
 * Its results dropdown is attached to body, outside the booking form.
 * Explicitly theme both the closed selection and the detached results. */
:root[data-theme="dark"] .roa-public-body .select2-container--default .select2-selection--single {
  background:var(--roa-color-surface);
  color:var(--roa-color-text);
  border-color:var(--roa-color-border);
  border-radius:6px;
}
:root[data-theme="dark"] .roa-public-body .select2-container--default .select2-selection--single .select2-selection__rendered,
:root[data-theme="dark"] .roa-public-body .select2-container--default .select2-selection__clear { color:var(--roa-color-text); }
:root[data-theme="dark"] .roa-public-body .select2-container--default .select2-selection__placeholder { color:var(--roa-color-text-muted); }
:root[data-theme="dark"] .roa-public-body .select2-container--default .select2-selection__arrow b { border-top-color:var(--roa-color-text-muted); }
:root[data-theme="dark"] .roa-public-body .select2-container--default.select2-container--open .select2-selection__arrow b { border-top-color:transparent; border-bottom-color:var(--roa-color-text-muted); }
:root[data-theme="dark"] .roa-public-body .select2-dropdown,
:root[data-theme="dark"] .roa-public-body .select2-results,
:root[data-theme="dark"] .roa-public-body .select2-search--dropdown { background:var(--roa-color-elevated); color:var(--roa-color-text); }
:root[data-theme="dark"] .roa-public-body .select2-dropdown { border-color:var(--roa-color-border); color-scheme:dark; }
:root[data-theme="dark"] .roa-public-body .select2-container--default .select2-search--dropdown .select2-search__field { background:var(--roa-color-surface); color:var(--roa-color-text); border-color:var(--roa-color-border); }
:root[data-theme="dark"] .roa-public-body .select2-search__field::placeholder { color:var(--roa-color-text-muted); }
:root[data-theme="dark"] .roa-public-body .select2-container--default .select2-results__option { background:var(--roa-color-elevated); color:var(--roa-color-text); }
:root[data-theme="dark"] .roa-public-body .select2-container--default .select2-results__option[aria-selected="true"] { background:var(--roa-color-border); color:var(--roa-color-text); }
:root[data-theme="dark"] .roa-public-body .select2-container--default .select2-results__option[aria-disabled="true"] { color:var(--roa-color-text-muted); }
:root[data-theme="dark"] .roa-public-body .select2-container--default .select2-results__option--highlighted[aria-selected] { background:var(--roa-color-primary); color:var(--roa-color-primary-contrast); }
:root[data-theme="dark"] .roa-public-body .select2-container--default.select2-container--focus .select2-selection--single,
:root[data-theme="dark"] .roa-public-body .select2-container--default.select2-container--open .select2-selection--single,
:root[data-theme="dark"] .roa-public-body .select2-search__field:focus { border-color:var(--roa-color-focus); outline-offset:2px; }
/* Native fallback when the vendor script is unavailable. */
:root[data-theme="dark"] .roa-public-body .roa-form-panel select { color-scheme:dark; }

/* Preserve desktop alignment. On smaller displays justify only prose,
 * including paragraphs with saved editor alignment, not headings or controls. */
@media(max-width:991.98px) {
  .roa-public-body :is(.roa-country-richtext__content,.roa-tour-richtext,.roa-blog-prose) p,
  .roa-blog-list-page .roa-blog-card__body > p,
  .roa-public-body :is(.roa-country-page,.roa-category-page,.roa-tour-page) .roa-tour-card__summary { text-align:justify !important; overflow-wrap:anywhere; }
}
