/* TBG Global Network map - styles.
   Change colours and spacing in the :root block below. Everything else can stay as it is. */
:root{
  --tbg-gn-band:#E7EEF6;        /* light blue band behind the section */
  --tbg-gn-frame:#F4F7FB;       /* soft frame around the map */
  --tbg-gn-land:#DCE6F1;        /* all land (pale) */
  --tbg-gn-border:#FFFFFF;      /* country borders */
  --tbg-gn-highlight:#5B86B8;   /* the highlighted region */
  --tbg-gn-card:#FFFFFF;        /* region card */
  --tbg-gn-card-on:#D3E0EE;     /* region card while highlighted */
  --tbg-gn-navy:#14283E;        /* headings and buttons */
  --tbg-gn-ink:#1B2733;
  --tbg-gn-mute:#4A5663;        /* small text */
  --tbg-gn-focus:#5B86B8;       /* keyboard focus ring */
  --tbg-gn-gutter:max(24px,6%); /* left and right space. Set to 0 if Elementor already adds padding */
  --tbg-gn-sticky-top:0px;      /* phones: set to the height of your sticky header, if you have one */
}
.tbg-gn,.tbg-gn *{box-sizing:border-box}
.tbg-gn{background:var(--tbg-gn-band);padding-block:56px;color:var(--tbg-gn-ink);font-family:inherit;line-height:1.5}
.tbg-gn__in{padding-inline:var(--tbg-gn-gutter)}
.tbg-gn__eyebrow{font-size:11px;font-weight:700;line-height:1;letter-spacing:.14em;text-transform:uppercase;color:var(--tbg-gn-mute);margin:0}
.tbg-gn__title{font-size:clamp(26px,3.2vw,38px);line-height:1.15;margin:10px 0 12px;color:var(--tbg-gn-navy);text-wrap:balance}
.tbg-gn__intro{max-width:960px;margin:0 0 28px;color:var(--tbg-gn-mute)}
.tbg-gn--no-heading .tbg-gn__map{margin-top:0}

/* map */
.tbg-gn__map{background:var(--tbg-gn-frame);border-radius:6px;padding:10px;overflow:hidden}
.tbg-gn__map svg{display:block;width:100%;height:auto;max-height:760px}
.tbg-gn-c{fill:var(--tbg-gn-land);stroke:var(--tbg-gn-border);stroke-width:1.6;stroke-linejoin:round;transition:fill .25s}
.tbg-gn__map[data-active="arab-league"] [data-regions~="arab-league"],
.tbg-gn__map[data-active="asean-4"] [data-regions~="asean-4"],
.tbg-gn__map[data-active="central"] [data-regions~="central"],
.tbg-gn__map[data-active="commonwealth"] [data-regions~="commonwealth"],
.tbg-gn__map[data-active="europe"] [data-regions~="europe"],
.tbg-gn__map[data-active="north-america"] [data-regions~="north-america"],
.tbg-gn__map[data-active="pan-iberia"] [data-regions~="pan-iberia"]{fill:var(--tbg-gn-highlight)}

/* cards */
.tbg-gn__cards{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;margin-top:20px}
.tbg-gn__card{background:var(--tbg-gn-card);border-radius:6px;padding:16px;display:flex;flex-direction:column;gap:10px;cursor:pointer;transition:background .2s}
.tbg-gn__card.is-on{background:var(--tbg-gn-card-on)}
.tbg-gn__card h3{margin:0;font-size:16px;line-height:1.25;color:var(--tbg-gn-navy)}
.tbg-gn__card p{margin:0;font-size:13px;line-height:1.45;color:var(--tbg-gn-mute);flex:1}
.tbg-gn__btn{display:flex;align-items:center;justify-content:center;min-height:44px;text-align:center;background:var(--tbg-gn-navy);color:#fff;text-decoration:none;font-weight:600;font-size:13px;padding:10px 8px;border-radius:4px}
.tbg-gn__btn:hover{color:#fff;background:#0E1D2E}
.tbg-gn__card:focus-visible,.tbg-gn__btn:focus-visible{outline:3px solid var(--tbg-gn-focus);outline-offset:2px}

@media (max-width:1100px){.tbg-gn__cards{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:760px){
  .tbg-gn{padding-block:36px}
  /* on phones the map stays at the top while you scroll the cards */
  .tbg-gn__map{position:sticky;top:var(--tbg-gn-sticky-top);z-index:2;padding-block:6px;box-shadow:0 10px 0 var(--tbg-gn-band)}
  .tbg-gn__map svg{max-height:200px}
  .tbg-gn__cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:460px){.tbg-gn__cards{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.tbg-gn-c,.tbg-gn__card{transition:none}}
