/* ==========================================================
   Restore Carbon – Projects by country (Oct 2026)
   Colours: green #92d050, navy #002060, light blue #b4c7e7
   ========================================================== */

/* --- Back links --- */
.rc-back{display:inline-block;font-size:15px;font-weight:400;color:#002060;text-decoration:none !important;}
.rc-back:hover{color:#92d050;}

/* --- Status badge --- */
.rc-status{display:inline-block;padding:4px 10px;border-radius:999px;font-size:13px;line-height:1.3;font-weight:500;letter-spacing:.02em;background:#eef6e5;color:#3d6b12;}
.rc-status--in_progress{background:#e6ecf7;color:#002060;}
.rc-status--ready_to_start{background:#fff3d6;color:#7a5200;}

/* --- Country tiles (overview) --- */
.rc-country-tile .fl-col-content{display:flex;flex-direction:column;}
.rc-country-tile .fl-module-photo{margin-bottom:0 !important;}
.rc-country-tile .fl-photo-content,.rc-country-tile .fl-photo-content a{display:block;width:100%;}
.rc-country-tile .fl-photo-img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px;transition:transform .35s cubic-bezier(.16,1,.3,1),filter .35s;}
.rc-country-tile .fl-photo-content{overflow:hidden;border-radius:6px;}
.rc-country-tile:hover .fl-photo-img{transform:scale(1.04);filter:brightness(1.05);}
.rc-country-tile .fl-heading{margin-top:16px !important;font-size:22px;font-weight:500;}
.rc-country-tile .fl-heading a{color:#333;text-decoration:none !important;}
.rc-country-tile:hover .fl-heading a{color:#002060;}
.rc-country-tile .fl-heading a::after{content:" \2192";color:#92d050;}

/* --- Country hero --- */
.rc-country-hero .fl-row-content-wrap{min-height:min(460px,52vw);display:flex;align-items:flex-end;}
.rc-country-hero .fl-row-content{width:100%;position:relative;z-index:1;}
.rc-country-hero .fl-row-content-wrap::after{background:linear-gradient(180deg,rgba(0,16,48,0) 30%,rgba(0,16,48,.55) 100%) !important;}
.rc-country-hero h1.fl-heading,.rc-country-hero .fl-heading{color:#fff !important;font-size:clamp(34px,4vw,52px);}
.rc-country-hero .rc-back{color:#fff;}
.rc-country-hero .rc-back:hover{color:#92d050;}

/* --- Intro text --- */
.rc-intro .fl-rich-text,.rc-intro.fl-rich-text{max-width:820px;}
.rc-intro p + p{margin-top:1em;}

/* --- Project cards --- */
.rc-projects{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;}
.rc-project-card{margin:0;}
.rc-project-card a{display:flex;flex-direction:column;height:100%;background:#fafafa;border-radius:6px;overflow:hidden;color:#333;text-decoration:none !important;transition:box-shadow .35s cubic-bezier(.16,1,.3,1),transform .35s cubic-bezier(.16,1,.3,1);}
.rc-project-card a:hover{box-shadow:0 10px 30px rgba(0,32,96,.12);transform:translateY(-3px);}
.rc-project-card__media{aspect-ratio:3/2;overflow:hidden;background:#eef1f6;}
.rc-project-card__img{width:100%;height:100%;object-fit:cover;display:block;}
.rc-project-card__body{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:22px 24px 24px;flex:1;}
.rc-project-card__title{font-size:21px;line-height:1.3;font-weight:500;margin:0;color:#333;}
.rc-project-card__text{font-size:16px;line-height:1.55;margin:0;}
.rc-project-card__more{margin-top:auto;padding-top:6px;font-size:15px;font-weight:500;color:#002060;}
.rc-project-card a:hover .rc-project-card__more{color:#92d050;}
.rc-projects-empty{font-size:18px;color:#555;margin:0;}
@media (max-width:1024px){.rc-projects{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:640px){.rc-projects{grid-template-columns:1fr;gap:20px;}}

/* --- Single project --- */
.rc-project-meta{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;}
.rc-single-photo .fl-photo-img{width:100%;border-radius:6px;aspect-ratio:4/3;object-fit:cover;}
.rc-facts{margin:8px 0 0;padding:20px 24px;background:#f3f6fb;border-left:4px solid #92d050;border-radius:6px;}
.rc-facts__row{display:flex;flex-wrap:wrap;gap:4px 16px;padding:8px 0;border-bottom:1px solid #dde4f0;}
.rc-facts__row:last-child{border-bottom:0;}
.rc-facts dt{flex:0 0 190px;font-weight:500;color:#002060;margin:0;}
.rc-facts dd{flex:1 1 200px;margin:0;}
.rc-facts a{color:#002060;text-decoration:underline;}
.rc-video{position:relative;aspect-ratio:16/9;border-radius:6px;overflow:hidden;background:#000;}
.rc-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}
@media (max-width:640px){.rc-facts dt{flex-basis:100%;}}

@media (prefers-reduced-motion:reduce){.rc-country-tile .fl-photo-img,.rc-project-card a{transition:none;}.rc-country-tile:hover .fl-photo-img,.rc-project-card a:hover{transform:none;}}
/* list resets inside BB rich-text */
.fl-rich-text ul.rc-projects,ul.rc-projects{padding:0 !important;margin:0 !important;list-style:none !important;}
ul.rc-projects > li{margin:0 !important;padding:0 !important;}

/* titles: same weight as the site's page titles */
.fl-heading.rc-title,.rc-title .fl-heading{font-size:clamp(30px,3.2vw,44px) !important;font-weight:500 !important;line-height:1.15 !important;}
.rc-country-hero .fl-heading.rc-title{font-size:clamp(34px,4vw,52px) !important;}
.rc-single-photo img{display:block;width:100%;height:auto;max-height:640px;object-fit:cover;border-radius:6px;}
.rc-single-content p{margin-bottom:1em;}
.rc-single-main .fl-col:first-child .fl-col-content{padding-right:24px;}
@media (max-width:768px){.rc-single-main .fl-col:first-child .fl-col-content{padding-right:0;}}

/* single project: let the Themer layout use the same row width as pages */
.single-project #primary{margin-top:0 !important;margin-bottom:0 !important;}
.single-project #content > .ast-container{max-width:none;padding-left:0;padding-right:0;}

.fl-heading.rc-title--page{font-size:clamp(30px,3vw,40px) !important;font-weight:400 !important;}
.single-project .fl-heading.rc-title{font-size:clamp(28px,3vw,40px) !important;font-weight:400 !important;}
