
/* V21 — clearer reading panels + larger premium flat map */
:root{
  --pt-map-blue-1:#edf7ff;
  --pt-map-blue-2:#c8ddf0;
  --pt-map-blue-3:#8fb2d3;
  --pt-map-blue-4:#5c86b0;
  --pt-map-blue-5:#3f678f;
  --pt-map-gold-1:#fff6dc;
  --pt-map-gold-2:#ecd29c;
  --pt-map-gold-3:#fdf3d1;
  --pt-map-gold-4:#c39646;
  --pt-map-gold-5:#eed7a7;
  --pt-map-gold-6:#b78639;
}

/* Guides: protect readability against the sculpted background */
body.pt-refined .ed-layout{
  align-items:start;
  gap:clamp(26px,3vw,42px);
}
body.pt-refined .ed-toc,
body.pt-refined .ed-content{
  position:relative;
  background:linear-gradient(152deg,rgba(255,255,255,.88) 0%,rgba(248,252,255,.84) 40%,rgba(236,244,251,.80) 100%)!important;
  border:1px solid rgba(255,255,255,.92)!important;
  border-radius:26px!important;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.95),0 18px 42px -30px rgba(49,86,123,.32)!important;
  backdrop-filter:blur(18px) saturate(112%);
  -webkit-backdrop-filter:blur(18px) saturate(112%);
}
body.pt-refined .ed-toc{
  padding:22px 22px 18px!important;
  top:104px;
}
body.pt-refined .ed-content{
  padding:clamp(24px,3vw,40px)!important;
  max-width:none!important;
}
body.pt-refined .ed-content section{
  margin-bottom:42px;
}
body.pt-refined .ed-decision-brief,
body.pt-refined .pt-guide-action,
body.pt-refined .ed-link-cta{
  background:linear-gradient(153deg,rgba(255,255,255,.75),rgba(236,244,251,.58))!important;
  border:1px solid rgba(202,219,235,.9)!important;
  border-radius:22px!important;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.9),0 12px 26px -24px rgba(49,86,123,.28)!important;
  padding:22px 24px!important;
}
body.pt-refined .ed-link-cta{
  background:linear-gradient(150deg,rgba(241,248,255,.9),rgba(223,236,248,.8))!important;
}
body.pt-refined .ed-source-list li,
body.pt-refined details.ed-faq,
body.pt-refined .ed-toc a{
  border-color:rgba(153,177,202,.32)!important;
}
body.pt-refined .ed-toc strong,
body.pt-refined .ed-brief-eyebrow,
body.pt-refined .pt-pathway-label{
  color:#8c6b37!important;
}
body.pt-refined .ed-content h2,
body.pt-refined .ed-content h3,
body.pt-refined .ed-toc a,
body.pt-refined .ed-faq summary{
  color:#173754!important;
}
body.pt-refined .ed-content p,
body.pt-refined .ed-content li,
body.pt-refined .ed-brief-lead,
body.pt-refined .ed-source-note{
  color:#314c67!important;
}

/* Guide index / country cards slightly clearer too */
body.pt-refined .ed-grid .ed-card{
  background:linear-gradient(150deg,rgba(255,255,255,.92),rgba(237,245,252,.88))!important;
  border-radius:22px!important;
}

/* Map: larger, calmer, more luxurious flat selection surface */
body.pt-refined #view-home .atlas.mission-play#pt16CountrySection{
  max-width:1520px!important;
  padding:44px clamp(22px,3vw,56px) 40px!important;
}
body.pt-refined #pt16CountrySection{
  grid-template-columns:minmax(320px,.82fr) minmax(540px,1.18fr)!important;
  align-items:center!important;
}
body.pt-refined #pt16CountrySection .atlas-map{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
}
body.pt-refined .pt16-map-frame{
  width:min(100%,1180px)!important;
  min-height:clamp(470px,42vw,660px)!important;
  padding:24px 24px 18px!important;
  border-radius:34px!important;
  background:linear-gradient(154deg,rgba(255,255,255,.90) 0%,rgba(243,249,255,.94) 38%,rgba(228,238,248,.92) 100%)!important;
  border:1px solid rgba(255,255,255,.96)!important;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.98),inset 0 -1px 6px rgba(153,182,209,.18),0 24px 54px -34px rgba(40,81,123,.36)!important;
  backdrop-filter:blur(18px) saturate(112%);
  -webkit-backdrop-filter:blur(18px) saturate(112%);
}
body.pt-refined #pt16WorldMap{
  width:100%!important;
  height:auto!important;
  min-height:clamp(360px,35vw,520px)!important;
}
body.pt-refined .pt16-map-controls{
  margin-top:10px!important;
  align-items:center!important;
}
body.pt-refined .pt16-country-picker select{
  min-width:170px;
  border-radius:14px!important;
  border:1px solid #b9ccde!important;
  background:linear-gradient(160deg,#fff,#edf5fc)!important;
  color:#234566!important;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.95),0 3px 10px -8px rgba(40,81,123,.30)!important;
}
body.pt-refined #pt16CountrySection #atlasCaption{
  font-size:19px!important;
  font-weight:560!important;
  margin-top:14px!important;
}
body.pt-refined #pt16CountrySection .atlas-map>small{
  font-size:13px!important;
  color:#53708c!important;
}
body.pt-refined .pt16-map-legend i{
  background:linear-gradient(150deg,#edf7ff,#8fb2d3 58%,#537aa3)!important;
  border-color:#6589ac!important;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.95),0 3px 8px -6px rgba(64,102,140,.45)!important;
}

/* Give the active countries a more premium, smoother look */
#pt16WorldMap .pt16-grid{stroke:#c9d8e6!important;opacity:.68!important;}
#pt16WorldMap .pt16-land{
  fill:#d7e4ef!important;
  stroke:#adc3d7!important;
  stroke-width:.82!important;
}
#pt16WorldMap .pt16-country-active{
  fill:url(#pt17-blue)!important;
  stroke:#52779d!important;
  stroke-width:1.12!important;
  filter:drop-shadow(0 2px 3px rgba(61,99,140,.18));
  transition:transform .26s cubic-bezier(.2,.8,.2,1),filter .26s,stroke .24s,fill .22s;
  transform-box:fill-box;
  transform-origin:center;
}
#pt16WorldMap .pt16-country-active:is(:hover,:focus-visible){
  fill:url(#pt17-blue-hover)!important;
  stroke:#3f678f!important;
  stroke-width:1.45!important;
  transform:scale(1.055)!important;
  filter:drop-shadow(0 6px 8px rgba(61,99,140,.30));
}
#pt16WorldMap .pt16-country-active.pt17-map-selected,
#pt16WorldMap .pt16-country-active.pt16-map-pressed{
  fill:url(#pt17-gold)!important;
  stroke:#a07229!important;
  stroke-width:1.55!important;
  filter:drop-shadow(0 6px 10px rgba(173,132,61,.28));
}
#pt16WorldMap .pt16-marker{
  fill:#7ea7ca!important;
  stroke:#ffffff!important;
  stroke-width:1.8!important;
}
#pt16WorldMap .pt16-marker.pt17-map-selected,
#pt16WorldMap .pt16-marker.pt16-map-pressed{
  fill:url(#pt17-gold)!important;
}

/* Make the map and copy stack nicely on smaller screens */
@media (max-width:1100px){
  body.pt-refined #pt16CountrySection{
    grid-template-columns:1fr!important;
    gap:20px!important;
  }
  body.pt-refined .pt16-map-frame{
    width:100%!important;
  }
}
@media (max-width:700px){
  body.pt-refined .ed-toc,
  body.pt-refined .ed-content{padding:18px!important;border-radius:20px!important;}
  body.pt-refined .pt16-map-frame{padding:14px 14px 16px!important;border-radius:22px!important;min-height:0!important;}
  body.pt-refined #pt16WorldMap{min-height:260px!important;}
}

/* Large full-width map, no empty side column, calm porcelain glass. */
body.pt-refined #view-home .atlas.mission-play#pt16CountrySection{grid-template-columns: minmax(0,1fr)!important;gap:20px!important;padding:clamp(22px,3vw,42px)!important;width:calc(100% - 32px)!important;max-width:1600px!important;}
body.pt-refined #pt16CountrySection>div:first-of-type{text-align:center!important;margin-inline:auto!important;}
body.pt-refined #pt16CountrySection #missionStory{margin-inline:auto!important;}
body.pt-refined #pt16CountrySection .pb-country-entry>small{margin-inline:auto!important;}
body.pt-refined .pt16-map-frame{width:100%!important;max-width:none!important;min-height:0!important;padding:clamp(10px,2vw,24px)!important;background:linear-gradient(155deg,#ffffffed,#edf6fddb)!important;}
body.pt-refined #pt16WorldMap{width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:2/1;}
#pt16WorldMap .pt16-grid{opacity:.35!important;stroke-width:.6!important;}
#pt16WorldMap .pt16-land:not(.pt16-country-active){fill:#e2ebf3!important;stroke:#b6c8d9!important;}
#pt16WorldMap .pt16-country-active{stroke:#6488ab!important;stroke-width:.85!important;filter:drop-shadow(0 1px 2px #52799e20);}
#pt16WorldMap .pt16-country-active.pt17-map-selected,#pt16WorldMap .pt16-country-active.pt16-map-pressed{stroke:#b79a60!important;stroke-width:1.15!important;filter:drop-shadow(0 3px 5px #a37c3033);}
#pt16WorldMap .pt16-marker.pt17-map-selected,#pt16WorldMap .pt16-marker.pt16-map-pressed{fill:url(#pt17-gold)!important;}
body.pt-refined #view-home .pt16-landing #ptHomeHeadline{font-size:clamp(30px,3.8vw,54px)!important;max-width:1050px;}
body.pt-refined #ptHomeDescription{font-size:clamp(18px,1.65vw,23px)!important;max-width:64ch!important;}
body.pt-refined .pt21-privacy{max-width:82ch;margin:24px auto 0;padding:14px 19px;border-radius:16px;background:rgba(251,253,255,.82);border:1px solid #fff;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);font-size:12px;line-height:1.65;color:#3b536b;text-align:center;}
body.pt-refined .pt21-privacy p{margin:0 0 7px;}
body.pt-refined .pt21-privacy a{color:#345b80;text-decoration:underline;text-underline-offset:3px;}
/* Reading stays readable even when the fixed wordmark passes behind. */
body.pt-refined .ed-content,body.pt-refined .ed-toc{background:linear-gradient(150deg,#ffffffed,#f2f7fced)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);}
@media(max-width:700px){body.pt-refined #view-home .atlas.mission-play#pt16CountrySection{width:calc(100% - 20px)!important;padding:18px 10px!important;}body.pt-refined .pt21-privacy{font-size:12px;}body.pt-refined #pt16WorldMap{min-height:0!important;}}
@media(prefers-reduced-motion:reduce){#pt16WorldMap .pt16-country-active:is(:hover,:focus-visible){transform:none!important;}}
@media print{body.pt-refined .ed-toc,body.pt-refined .ed-content{background:#fff!important;box-shadow:none!important;border:none!important;}}

body.pt-refined #pt16CountrySection .pb-country-entry{width:100%!important;display:flex;flex-direction:column;align-items:center;text-align:center;}
body.pt-refined #view-home .atlas.mission-play#pt16CountrySection{scroll-margin-top:0!important;}

/* V27: shared reading surfaces; fields remain white for input affordance. */
body.pt-refined .ed-content :is(.ed-note,.ed-calc,.ed-decision-brief,.pt-guide-action,.ed-link-cta,details.ed-faq){background:linear-gradient(150deg,#ffffffdb,#eaf2f8d9)!important;border:1px solid #c8d8e6!important;border-radius:18px!important;color:#233f58!important;box-shadow:inset 0 1px 1px #ffffffd9!important;}
body.pt-refined .ed-content :is(.ed-note,.ed-calc,.ed-decision-brief,.pt-guide-action,.ed-link-cta,details.ed-faq) :is(p,li,label,summary){color:#233f58!important;}
body.pt-refined .dossier-preparation .local-sketches{border:1px dashed #7c9ab4;border-radius:18px;padding:20px;margin-block:18px;background:linear-gradient(145deg,#ffffffd9,#eaf2f8d9);color:#18374f;}
body.pt-refined .dossier-main-actions{display:flex;flex-wrap:wrap;gap:12px;}
