/* sdg-banner.css - SDG panel in the event banner (#1896).
   Every rule is scoped under .sdgb. Built for dark banners (white text on a
   translucent navy panel); .sdgb--light flips it for light hero cards.
   --sdgb-accent is the heading colour, set per site in sdg-site.php. */

.sdgb {
  --sdgb-accent: #f7a823;
  --sdgb-bg: rgba(6, 26, 48, .78);
  --sdgb-line: rgba(255, 255, 255, .16);
  --sdgb-text: #ffffff;
  --sdgb-row: rgba(255, 255, 255, .06);
  --sdgb-icon: 48px;
  box-sizing: border-box;
  max-width: 100%;
  margin: 18px 0;
  padding: 12px 12px 12px !important;
  background: var(--sdgb-bg);
  border: 1px solid var(--sdgb-line);
  border-radius: 12px;
  color: var(--sdgb-text);
  text-align: left;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
.sdgb *, .sdgb *::before, .sdgb *::after { box-sizing: border-box; }
/* site-wide span / li spacing (e.g. "span { margin: 0 5px 0 15px }") must not move the
   module's parts; rules below that need a margin are more specific and still win */
.sdgb span, .sdgb li { margin: 0; }

.sdgb .sdgb-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.sdgb .sdgb-wheel {
  flex: 0 0 auto;
  width: 32px !important;
  height: 32px !important;
  max-width: none;
  margin: 0;
  padding: 2px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}
.sdgb .sdgb-heading {
  display: block;
  margin: 0;
  color: var(--sdgb-accent);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.sdgb .sdgb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sdgb .sdgb-item {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sdgb .sdgb-icon {
  flex: 0 0 auto;
  display: block;
  width: var(--sdgb-icon) !important;
  height: var(--sdgb-icon) !important;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  object-fit: contain;      /* official tile: keep its colours and proportions */
}
.sdgb .sdgb-label {
  font-size: 14px;
  line-height: 1.3;
  color: var(--sdgb-text);
}
.sdgb .sdgb-label b { font-weight: 700; }

/* Strip: heading + a row of icons. The tiles carry their own number and
   title, so the text label is not repeated. */
.sdgb--strip { display: inline-block; }
.sdgb--strip .sdgb-label {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sdgb--strip.sdgb--center { display: block; width: fit-content; margin-left: auto; margin-right: auto; }
.sdgb--strip.sdgb--center .sdgb-head,
.sdgb--strip.sdgb--center .sdgb-list { justify-content: center; }

/* Panel: one row per SDG with its name, for a column beside the title. */
.sdgb--panel .sdgb-list { flex-direction: column; flex-wrap: nowrap; gap: 6px; }
.sdgb--panel .sdgb-item {
  padding: 4px 8px 4px 4px;
  background: var(--sdgb-row);
  border: 1px solid var(--sdgb-line);
  border-radius: 8px;
}

/* Light hero card (e.g. a white box on the banner). */
.sdgb--light {
  --sdgb-bg: rgba(255, 255, 255, .92);
  --sdgb-line: rgba(0, 0, 0, .1);
  --sdgb-text: #1d2433;
  --sdgb-row: rgba(0, 0, 0, .03);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}
.sdgb.sdgb--light .sdgb-wheel { box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }

/* Tablet */
@media (max-width: 991px) {
  .sdgb { --sdgb-icon: 44px; margin: 16px 0; }
  .sdgb .sdgb-heading { font-size: 15px; }
}

/* Phone: every layout becomes the compact strip; icons wrap, never scroll. */
@media (max-width: 575px) {
  .sdgb { --sdgb-icon: 44px; display: block; width: 100%; padding: 12px !important; }
  .sdgb .sdgb-wheel { width: 28px !important; height: 28px !important; }
  .sdgb .sdgb-heading { font-size: 15px; }
  .sdgb--panel .sdgb-list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .sdgb--panel .sdgb-item { padding: 0; background: none; border: 0; }
  .sdgb--panel .sdgb-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}

/* Solid panel - for busy banner photos where the translucent panel is hard
   to read (opt in per site: 'class' => 'sdgb--solid' in sdg-site.php). */
.sdgb.sdgb--solid {
  --sdgb-bg: rgba(5, 20, 38, .96);
  --sdgb-row: rgba(255, 255, 255, .09);
  --sdgb-line: rgba(255, 255, 255, .22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}

/* Design 2: the SDG wheel with the organisation's statement. */
.sdgb--wheel {
  display: flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  max-width: 100%;
}
.sdgb--wheel .sdgb-wheel-lg {
  flex: 0 0 auto;
  display: block;
  width: 130px !important;
  height: 130px !important;
  max-width: none;
  margin: 0;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
/* the ring turns, the centre logo stays upright on top of it */
.sdgb--wheel .sdgb-wheel-ring,
.sdgb--wheel .sdgb-wheel-center {
  position: absolute;
  top: 4px; left: 4px;
  width: calc(100% - 8px) !important;
  height: calc(100% - 8px) !important;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
}
.sdgb--wheel .sdgb-wheel-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sdgb--wheel .sdgb-statement {
  display: block;
  margin: 0;
  color: var(--sdgb-accent);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}
.sdgb--wheel .sdgb-caption {
  display: block;
  color: var(--sdgb-text);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .85;
}
@media (max-width: 991px) {
  .sdgb--wheel .sdgb-wheel-lg { width: 120px !important; height: 120px !important; }
  .sdgb--wheel .sdgb-statement { font-size: 18px; }
}
@media (max-width: 575px) {
  .sdgb--wheel { width: 100%; gap: 12px; }
  .sdgb--wheel .sdgb-wheel-lg { width: 96px !important; height: 96px !important; }
  .sdgb--wheel .sdgb-statement { font-size: 16px; }
  .sdgb--wheel .sdgb-caption { font-size: 11px; }
}

/* Design 2 in a narrow column beside the details: wheel above the statement
   ('layout' => 'stack'); a compact row again on tablet/phone. */
@media (min-width: 992px) {
  .sdgb--wheel.sdgb--stack {
    flex-direction: column;
    width: 100%;
    padding: 18px 16px !important;
    text-align: center;
  }
  .sdgb--wheel.sdgb--stack .sdgb-wheel-lg { width: 180px !important; height: 180px !important; }
  .sdgb--wheel.sdgb--stack .sdgb-wheel-text { align-items: center; order: -1; }   /* heading above the circle */
}

/* Design 2: the wheel turns slowly (as on the icrtmdr.com reference). The
   statement stays still; no motion for visitors who ask for less. */
@keyframes sdgb-spin { to { transform: rotate(360deg); } }
.sdgb--wheel .sdgb-wheel-ring { animation: sdgb-spin 20s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .sdgb--wheel .sdgb-wheel-ring { animation: none; }
}

/* Design 2 with conference data: the event's SDG icons on a circle round
   the logo. The orbit turns; each icon turns back at the same speed, so it
   stays upright. Positions and size are printed per icon by sdg-view.php. */
.sdgb--wheel .sdgb-orbit {
  position: absolute;
  inset: 0;
  animation: sdgb-spin 30s linear infinite;
}
.sdgb--wheel .sdgb-orbit-icon {
  position: absolute;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  animation: sdgb-spin-back 30s linear infinite;
}
@keyframes sdgb-spin-back {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sdgb--wheel .sdgb-orbit,
  .sdgb--wheel .sdgb-orbit-icon { animation: none; }
}

/* Site brand stripe along the top edge ('brand' in sdg-site.php). */
.sdgb {
  border-top-width: 4px;
  border-top-color: var(--sdgb-brand, var(--sdgb-line));
}

/* ===========================================================================
   Approved projection designs (#1896 design collection: 1, 2, 3, 4, 7, 9, 10)
   'design' => 'v1'...'v10' in sdg-site.php; each follows its reference image.
   One markup for both placements: stacked in a banner column, side by side
   below the banner - a container query on the section decides.
   --sdgb-vbg is the card background (kept apart from design 1's --sdgb-bg);
   --sdgb-ink-site ('ink' in sdg-site.php) colours the statement on light cards.
   =========================================================================== */
.sdgb.sdgb--v {
  --sdgb-vbg: linear-gradient(160deg, #ffffff 0%, #f1f6f3 100%);
  --sdgb-line: rgba(0, 0, 0, .08);
  --sdgb-text: #34404f;
  --sdgb-ink: #0d2b4a;
  container-type: inline-size;
  position: relative;
  display: block;
  width: 100%;
  padding: 18px 18px 16px !important;
  overflow: hidden;
  background: var(--sdgb-vbg);
  color: var(--sdgb-text);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}
.sdgb--v .sdgb-v-inner { position: relative; display: flex; flex-direction: column; gap: 12px; }
.sdgb--v .sdgb-v-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sdgb--v .sdgb-statement {
  display: block;
  margin: 0;
  color: var(--sdgb-ink-site, var(--sdgb-ink));
  font-size: 22px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.01em;
}
.sdgb--v .sdgb-caption {
  display: block;
  margin-top: 2px;
  color: var(--sdgb-text);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.sdgb--v .sdgb-rule { display: block; width: 30px; height: 1px; margin: 12px 0 6px; background: currentColor; opacity: .55; }
.sdgb--v .sdgb-tagline { display: block; font-size: 13px; line-height: 1.4; color: var(--sdgb-text); }
.sdgb--v .sdgb-v-art { position: relative; }
.sdgb--v img, .sdgb--v svg { max-width: none; margin: 0; padding: 0; border: 0; }

@container (min-width: 560px) {
  .sdgb--v .sdgb-v-inner { flex-direction: row; align-items: center; gap: 24px; }
  .sdgb--v .sdgb-v-text { flex: 0 0 40%; }
  .sdgb--v .sdgb-v-art { flex: 1 1 auto; }
  .sdgb--v .sdgb-statement { font-size: 28px; }
}

/* official goal colours (hexagons) */
.sdgb .sdgb-c1 { --c: #e5243b; } .sdgb .sdgb-c2 { --c: #dda63a; } .sdgb .sdgb-c3 { --c: #4c9f38; }
.sdgb .sdgb-c4 { --c: #c5192d; } .sdgb .sdgb-c5 { --c: #ff3a21; } .sdgb .sdgb-c6 { --c: #26bde2; }
.sdgb .sdgb-c7 { --c: #fcc30b; } .sdgb .sdgb-c8 { --c: #a21942; } .sdgb .sdgb-c9 { --c: #fd6925; }
.sdgb .sdgb-c10 { --c: #dd1367; } .sdgb .sdgb-c11 { --c: #fd9d24; } .sdgb .sdgb-c12 { --c: #bf8b2e; }
.sdgb .sdgb-c13 { --c: #3f7e44; } .sdgb .sdgb-c14 { --c: #0a97d9; } .sdgb .sdgb-c15 { --c: #56c02b; }
.sdgb .sdgb-c16 { --c: #00689d; } .sdgb .sdgb-c17 { --c: #19486a; }

/* globe (sdg-art.php) */
.sdgb--v .sdgb-globe { position: absolute; display: block; }
.sdgb--v .sdgb-globe-svg { display: block; width: 100% !important; height: 100% !important; filter: drop-shadow(0 8px 14px rgba(10, 40, 80, .3)); }

/* ---- v1  clean circular wheel ----
   Warm stone card, big centred dark-green title; the wheel fills most of
   the card inside a soft white halo. */
.sdgb.sdgb--v1 {
  --sdgb-vbg:
    radial-gradient(90% 70% at 50% 55%, rgba(255, 255, 255, .55), transparent 70%),
    linear-gradient(165deg, #f2efe9 0%, #ebe7df 55%, #e2ddd3 100%);
  --sdgb-ink: #173a2b;
  --sdgb-text: #2f3a33;
}
.sdgb--v1 .sdgb-v-text { align-items: center; text-align: center; }
.sdgb--v1 .sdgb-statement { font-size: 27px; font-weight: 700; line-height: 1.08; letter-spacing: -.015em; }
.sdgb--v1 .sdgb-caption { font-size: 11px; letter-spacing: .18em; }
.sdgb--v1 .sdgb-v-art { --d: min(250px, 84cqw); height: calc(var(--d) + 34px); position: static; }
.sdgb--v1 .sdgb-v-inner { position: static; }
.sdgb--v1 .sdgb-disc {
  position: absolute; left: 50%;
  bottom: 22px;
  width: var(--d); height: var(--d);
  transform: translateX(-50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 9px rgba(255, 255, 255, .6), 0 0 0 10px rgba(0, 0, 0, .05), 0 16px 34px rgba(60, 50, 30, .22);
}
.sdgb--v1 .sdgb-wheel-ring,
.sdgb--v1 .sdgb-wheel-center { position: absolute; top: 2px; left: 2px; width: calc(100% - 4px) !important; height: calc(100% - 4px) !important; }
.sdgb--v1 .sdgb-wheel-ring { animation: sdgb-spin 60s linear infinite; }
@container (min-width: 560px) {
  .sdgb--v1 .sdgb-v-inner { position: relative; }
  .sdgb--v1 .sdgb-v-text { align-items: flex-start; text-align: left; }
  .sdgb--v1 .sdgb-statement { font-size: 34px; }
  .sdgb--v1 .sdgb-v-art { --d: 230px; position: relative; height: 250px; flex: 0 0 330px; margin: 0 30px 0 auto; }
  .sdgb--v1 .sdgb-disc { bottom: 10px; }
}

/* ---- v2  globe ----
   Sky fading into grass with soft bokeh; the drawn Earth (sdg-art.php, no
   leaves) sits in the card's lower right corner, ringed by all 17 square
   goal tiles. --fw is the square frame's side; the globe's radius is 27%
   of it and the ring's 39%, so the ring stays round it at any size. */
.sdgb.sdgb--v2 {
  --sdgb-vbg:
    radial-gradient(circle at 10% 93%, rgba(255, 255, 240, .75) 0 5px, transparent 6px),
    radial-gradient(circle at 24% 97%, rgba(255, 255, 230, .6) 0 9px, transparent 10px),
    radial-gradient(circle at 4% 82%, rgba(255, 255, 255, .55) 0 3px, transparent 4px),
    linear-gradient(180deg, #d6e9f8 0%, #eaf4fb 40%, #e6f1df 72%, #b9da93 90%, #93c46a 100%);
  --sdgb-ink: #10305a;
}
.sdgb--v2 .sdgb-statement { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: 0; }
.sdgb--v2 .sdgb-tagline { font: 15px/1.4 Georgia, "Times New Roman", serif; color: var(--sdgb-ink-site, var(--sdgb-ink)); }
.sdgb--v2 .sdgb-v-art { --fw: 236px; height: var(--fw); }
.sdgb--v2 .sdgb-v2-frame {
  position: absolute;
  right: -18px; bottom: -16px;
  width: var(--fw); height: var(--fw);
  --gx: calc(var(--fw) * .5);
  --gy: calc(var(--fw) * .5);
  --r: calc(var(--fw) * .39);
}
/* the svg's viewBox is 1.08 x the globe's radius each side */
.sdgb--v2 .sdgb-globe {
  left: calc(var(--gx) - var(--fw) * .27 * 1.08);
  top: calc(var(--gy) - var(--fw) * .27 * 1.08);
  width: calc(var(--fw) * .27 * 2.16); height: calc(var(--fw) * .27 * 2.16);
}
.sdgb--v .sdgb-arc { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.sdgb--v2 .sdgb-arc-icon {
  position: absolute;
  left: calc(var(--gx) + var(--ca, 0) * var(--r));
  top: calc(var(--gy) + var(--sa, 0) * var(--r));
  width: 30px !important; height: 30px !important;
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, .95);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
  object-fit: cover;
}
@container (min-width: 560px) {
  .sdgb--v2 .sdgb-v-art { --fw: 270px; height: var(--fw); }
  .sdgb--v2 .sdgb-tagline { font-size: 16px; }
  .sdgb--v2 .sdgb-arc-icon { width: 34px !important; height: 34px !important; }
}

/* ---- v3  hexagon cluster ----
   Blue-grey card with a faint white hexagon network and glowing vertices;
   flat-topped glossy hexagons (number + the goal's white symbol) in a
   honeycomb - a centre column of three, two staggered side columns;
   People / Planet / Prosperity / Partnership stacked bottom right.
   --w is a hexagon's width; slots come from sdg-view.php as --hc / --hr. */
.sdgb.sdgb--v3 {
  --sdgb-vbg:
    radial-gradient(70% 55% at 55% 45%, rgba(255, 255, 255, .6), transparent 70%),
    linear-gradient(170deg, #edf3f8 0%, #dbe7f1 55%, #c9dae8 100%);
  --sdgb-ink: #0f2846;
}
.sdgb--v3 .sdgb-statement { font-size: 27px; font-weight: 800; line-height: 1.06; }
.sdgb--v3 .sdgb-caption { font-size: 11px; letter-spacing: .16em; }
.sdgb--v3 .sdgb-hexbg { position: absolute; top: -20px; right: -20px; bottom: -20px; left: -20px; width: calc(100% + 40px); height: calc(100% + 40px); opacity: .7; }
.sdgb--v3 .sdgb-v-art { display: flex; align-items: center; justify-content: center; padding: 6px 0 4px; }
.sdgb--v3 .sdgb-hexes {
  --w: 84px;
  position: relative;
  display: block;
  width: calc(var(--w) * 2.56);
  height: calc(var(--w) * (.9 * var(--hrows, 2) + .866));
  filter: drop-shadow(0 8px 12px rgba(15, 40, 70, .25));
}
.sdgb--v3 .sdgb-hex {
  position: absolute;
  left: calc(var(--hc) * var(--w) * .78);
  top: calc(var(--hr) * var(--w) * .9);
  width: var(--w); height: calc(var(--w) * .866);
  background: var(--c, #0d2b4a);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
/* gloss */
.sdgb--v3 .sdgb-hex::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(165deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, .08) 42%, rgba(0, 0, 0, .08) 100%);
}
.sdgb--v3 .sdgb-hex-num { position: absolute; left: 27%; top: 9%; color: #fff; font: 700 calc(var(--w) * .2)/1 Arial, sans-serif; }
/* the goal's white symbol: the tile seen through a window over its lower part */
.sdgb--v3 .sdgb-hex-glyph { position: absolute; left: 50%; top: 58%; width: 48%; height: 48%; transform: translate(-50%, -50%); overflow: hidden; }
.sdgb--v3 .sdgb-hex-icon { position: absolute; left: -23.5%; top: -42.5%; width: 147% !important; height: 147% !important; max-width: none; }
.sdgb--v3 .sdgb-ps-stack { position: absolute; right: 0; bottom: 0; color: var(--sdgb-ink-site, var(--sdgb-ink)); font-size: 12.5px; line-height: 1.35; text-align: left; }
@container (min-width: 560px) {
  .sdgb--v3 .sdgb-statement { font-size: 34px; }
  .sdgb--v3 .sdgb-hexes { --w: 80px; }
  .sdgb--v3 .sdgb-v-art { padding-bottom: 6px; }
}

/* ---- v7  global network ----
   Deep-navy card; white + gold two-line title; a dense cyan dotted map that
   fades out at its edges like a globe, inside two glowing orbit rings with
   orange sparks; round goal nodes (white symbol on the goal colour) on an
   ellipse round it, linked by glowing arcs; the five Ps below. */
.sdgb.sdgb--v7 {
  --sdgb-vbg: radial-gradient(100% 75% at 50% 48%, #13407f 0%, #0b2552 45%, #06132c 100%);
  --sdgb-line: rgba(255, 255, 255, .12);
  --sdgb-text: #c8d6ec;
}
.sdgb--v7 .sdgb-statement { color: #fff; font-size: 26px; line-height: 1.08; }
.sdgb--v7 .sdgb-hl { display: block; color: #f6b93b; }
.sdgb--v7 .sdgb-caption { color: #e3ecf8; font-size: 11px; letter-spacing: .14em; }
.sdgb--v7 .sdgb-v-text { align-items: center; text-align: center; }
.sdgb--v7 .sdgb-map { position: relative; display: block; width: 100%; max-width: 560px; margin: 6px auto 0; aspect-ratio: 96 / 56; color: #86d8ff; }
.sdgb--v7 .sdgb-map-svg {
  position: absolute; top: 3%; left: 3%; width: 94% !important; height: 92% !important;
  filter: drop-shadow(0 0 3px rgba(80, 180, 255, .9));
  -webkit-mask: radial-gradient(ellipse 52% 54% at 50% 50%, #000 74%, transparent 100%);
          mask: radial-gradient(ellipse 52% 54% at 50% 50%, #000 74%, transparent 100%);
}
.sdgb--v7 .sdgb-net-links { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; overflow: visible; }
.sdgb--v7 .sdgb-net-links path,
.sdgb--v7 .sdgb-orbit { fill: none; vector-effect: non-scaling-stroke; }
.sdgb--v7 .sdgb-orbit { stroke: rgba(130, 210, 255, .75); stroke-width: 2; filter: drop-shadow(0 0 4px rgba(90, 190, 255, 1)); }
.sdgb--v7 .sdgb-orbit--b { stroke: rgba(130, 210, 255, .4); stroke-width: 1.2; }
.sdgb--v7 .sdgb-net-links path { stroke: rgba(170, 225, 255, .8); stroke-width: 1.1; filter: drop-shadow(0 0 3px rgba(80, 170, 255, .95)); }
.sdgb--v7 .sdgb-spark { fill: #ffbe55; filter: drop-shadow(0 0 3px #ff9d1a); }
.sdgb--v7 .sdgb-net-nodes { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.sdgb--v7 .sdgb-net-node {
  position: absolute;
  width: 46px; height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--c, #19486a);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 0 16px 4px rgba(110, 190, 255, .6), inset 0 -6px 10px rgba(0, 0, 0, .18);
}
/* the goal's white symbol: the tile seen through a window over its lower part */
.sdgb--v7 .sdgb-node-glyph { position: absolute; left: 50%; top: 50%; width: 64%; height: 64%; transform: translate(-50%, -50%); overflow: hidden; border-radius: 4px; }
.sdgb--v7 .sdgb-net-icon { position: absolute; left: -23.5%; top: -42.5%; width: 147% !important; height: 147% !important; max-width: none; }
.sdgb--v7 .sdgb-5p { display: flex; justify-content: space-between; list-style: none; margin: 16px 0 0; padding: 0; }
.sdgb--v7 .sdgb-5p li { display: flex; flex-direction: column; align-items: center; gap: 5px; margin: 0; color: #fff; font-size: 11px; }
.sdgb--v7 .sdgb-5p svg { width: 28px !important; height: 28px !important; stroke-width: 1.9; }
@container (min-width: 560px) {
  .sdgb--v7 .sdgb-v-text { align-items: flex-start; text-align: left; flex: 0 0 32%; }
  .sdgb--v7 .sdgb-statement { font-size: 32px; }
  .sdgb--v7 .sdgb-net-node { width: 52px; height: 52px; }
  .sdgb--v7 .sdgb-map { max-width: 470px; }
  .sdgb--v7 .sdgb-5p { justify-content: center; gap: 52px; }
}

/* ---- v9  minimal icon slider ----
   Airy pale card; big centred navy title and caption; a row of goal tiles
   (number + white symbol) between round navy arrows; dots, a hairline, the
   two-line tagline, and a bundle of thin flowing lines across the bottom. */
.sdgb.sdgb--v9 {
  --sdgb-vbg:
    radial-gradient(60% 18% at 50% 30%, rgba(255, 255, 255, .9), transparent 70%),
    linear-gradient(180deg, #f6f9fc 0%, #edf3f8 60%, #e3edf5 100%);
  --sdgb-ink: #10264a;
  padding: 24px 18px 56px !important;
}
.sdgb--v9 .sdgb-v-inner { flex-direction: column !important; align-items: stretch !important; gap: 18px; }
.sdgb--v9 .sdgb-v-text { flex: none !important; align-items: center; text-align: center; }
.sdgb--v9 .sdgb-statement { font-size: 27px; line-height: 1.08; }
.sdgb--v9 .sdgb-caption { font-size: 11px; letter-spacing: .14em; color: #3b4f6b; }
.sdgb--v9 .sdgb-slide-row { display: flex; align-items: center; gap: 6px; margin: 0 -8px; }
.sdgb--v9 .sdgb-nav {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  margin: 0; padding: 0 0 2px;
  border: 0; border-radius: 50%;
  background: #133a5e; color: #fff;
  font: 700 17px/1 Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.sdgb--v9 .sdgb-nav:focus-visible { outline: 2px solid #f7a823; outline-offset: 2px; }
.sdgb--v9 .sdgb-slide-row:not(.sdgb-slide-row--moving) .sdgb-nav { visibility: hidden; }
.sdgb--v9 .sdgb-slider {
  flex: 1 1 auto;
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 6px 0 10px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.sdgb--v9 .sdgb-slider--manual { overflow-x: auto; scrollbar-width: none; }
.sdgb--v9 .sdgb-slider--manual::-webkit-scrollbar { display: none; }
.sdgb--v9 .sdgb-track { display: flex; gap: 8px; width: max-content; margin: 0 auto; }
.sdgb--v9 .sdgb-slide-row--moving .sdgb-track { margin: 0; animation: sdgb-slide 40s linear infinite; }
.sdgb--v9 .sdgb-slider:hover .sdgb-track { animation-play-state: paused; }
.sdgb--v9 .sdgb-slider--manual .sdgb-track { animation: none !important; }
.sdgb--v9 .sdgb-tile {
  position: relative;
  flex: 0 0 auto;
  width: 60px; height: 60px;
  border-radius: 4px;
  background: var(--c, #19486a);
  box-shadow: 0 6px 12px rgba(16, 38, 74, .22);
}
.sdgb--v9 .sdgb-tile-num { position: absolute; left: 7px; top: 5px; color: #fff; font: 700 14px/1 Arial, sans-serif; }
/* the goal's white symbol: the tile seen through a window over its lower part */
.sdgb--v9 .sdgb-tile-glyph { position: absolute; left: 50%; top: 60%; width: 66%; height: 66%; transform: translate(-50%, -50%); overflow: hidden; }
.sdgb--v9 .sdgb-slide-icon { position: absolute; left: -23.5%; top: -42.5%; width: 147% !important; height: 147% !important; max-width: none; }
.sdgb--v9 .sdgb-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.sdgb--v9 .sdgb-dots i { width: 6px; height: 6px; border-radius: 3px; background: #9fb2c6; }
.sdgb--v9 .sdgb-dots i:first-child { width: 22px; background: #133a5e; }
.sdgb--v9 .sdgb-vline { display: block; width: 1px; height: 26px; margin: 14px auto 10px; background: #5d728b; }
.sdgb--v9 > .sdgb-tagline { position: relative; z-index: 1; text-align: center; color: #34465f; font-size: 14px; line-height: 1.4; }
.sdgb--v9 .sdgb-waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100% !important; height: 70px !important; }
.sdgb--v9 .sdgb-waves path { fill: none; stroke: #b9d0e3; stroke-width: 1; vector-effect: non-scaling-stroke; }
@keyframes sdgb-slide { to { transform: translateX(calc(-50% - 4px)); } }
@container (min-width: 560px) {
  .sdgb--v9 .sdgb-statement { font-size: 34px; }
  .sdgb--v9 .sdgb-slide-row--moving:not(.sdgb-slide-row--many) .sdgb-nav { visibility: hidden; }
  .sdgb--v9 .sdgb-slide-row--moving:not(.sdgb-slide-row--many) .sdgb-slider { -webkit-mask: none; mask: none; }
  .sdgb--v9 .sdgb-slide-row--moving:not(.sdgb-slide-row--many) .sdgb-track { margin: 0 auto; animation: none; }
  .sdgb--v9 .sdgb-slide-row--moving:not(.sdgb-slide-row--many) .sdgb-tile[aria-hidden="true"] { display: none; }
  .sdgb--v9 .sdgb-tile { width: 72px; height: 72px; }
  .sdgb--v9 .sdgb-tile-num { font-size: 16px; }
}

/* ---- v10  modern split ----
   Deep green card with faint leaf veins; large white title, the caption on
   its own lines, a short rule and the tagline on the left; on the right a
   large goal wheel with white gaps and a white halo sweeps in from beyond
   the card's edge round a pale blue-white globe. --d is the wheel's size. */
.sdgb.sdgb--v10 {
  --sdgb-vbg:
    radial-gradient(90% 80% at 0% 30%, rgba(52, 140, 92, .45), transparent 60%),
    linear-gradient(160deg, #0f4c35 0%, #0c3d2b 50%, #082c1f 100%);
  --sdgb-line: rgba(255, 255, 255, .12);
  --sdgb-text: #e2f1e7;
  min-height: 300px;
}
.sdgb--v10 .sdgb-veins { position: absolute; top: 0; left: 0; width: 70%; height: 100%; }
.sdgb--v10 .sdgb-veins path { fill: none; stroke: rgba(160, 220, 180, .14); stroke-width: 1; }
.sdgb--v10 .sdgb-v-inner { position: static; display: block; }
.sdgb--v10 .sdgb-v-text { position: relative; z-index: 2; max-width: 44%; padding-top: 18px; }
.sdgb--v10 .sdgb-statement { color: #fff; font-size: 21px; line-height: 1.12; }
.sdgb--v10 .sdgb-caption { margin-top: 10px; color: #f1f7f3; font-size: 12px; font-weight: 500; letter-spacing: .06em; line-height: 1.45; }
.sdgb--v10 .sdgb-rule { width: 44px; height: 2px; margin: 16px 0 10px; opacity: .9; background: #fff; }
.sdgb--v10 .sdgb-tagline { color: #fff; font-size: 14.5px; line-height: 1.4; }
.sdgb--v10 .sdgb-v-art { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; }
.sdgb--v10 .sdgb-split {
  --d: 360px;
  position: absolute;
  top: 50%; left: 14%;
  width: var(--d); height: var(--d);
  transform: translateY(-50%);
  border-radius: 50%;
  background: #fff;          /* the white gaps between the segments */
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.sdgb--v10 .sdgb-split .sdgb-wheel-ring {
  position: absolute; top: 1.5%; left: 1.5%;
  width: 97% !important; height: 97% !important;
  animation: sdgb-spin 80s linear infinite;
}
/* white halo inside the wheel, then the globe */
.sdgb--v10 .sdgb-split::after {
  content: ""; position: absolute; top: 25%; left: 25%; width: 50%; height: 50%;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .85), 0 0 18px rgba(255, 255, 255, .9);
}
.sdgb--v10 .sdgb-split .sdgb-globe { top: 26.5%; left: 26.5%; width: 47%; height: 47%; z-index: 1; }
.sdgb--v10 .sdgb-split .sdgb-globe-svg { filter: none; }
@container (min-width: 560px) {
  .sdgb.sdgb--v10 { min-height: 280px; }
  .sdgb--v10 .sdgb-v-text { max-width: 44%; padding-top: 8px; }
  .sdgb--v10 .sdgb-statement { font-size: 32px; }
  .sdgb--v10 .sdgb-caption { font-size: 13px; }
  .sdgb--v10 .sdgb-split { --d: 440px; left: 52%; }
}

/* motion only for those who allow it */
@media (prefers-reduced-motion: reduce) {
  .sdgb--v1 .sdgb-wheel-ring,
  .sdgb--v10 .sdgb-wheel-ring,
  .sdgb--v9 .sdgb-slide-row--moving .sdgb-track { animation: none; }
  .sdgb--v9 .sdgb-track { flex-wrap: wrap; justify-content: center; width: auto; }
  .sdgb--v9 .sdgb-tile[aria-hidden="true"] { display: none; }
  .sdgb--v9 .sdgb-nav { visibility: hidden; }
}
@media (max-width: 575px) {
  .sdgb.sdgb--v { padding: 14px !important; }
  .sdgb.sdgb--v9 { padding-bottom: 60px !important; }
}

/* ===========================================================================
   No card ('class' => 'sdgb--bare' in sdg-site.php): the design sits straight
   on the banner photo - no box, background, border or shadow. The text turns
   white with a soft shadow so it reads on a dark banner; add 'sdgb--onlight'
   too where the section sits on a light page (below the banner).
   =========================================================================== */
.sdgb.sdgb--v.sdgb--bare {
  --sdgb-vbg: none;
  background: none !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible;
}
.sdgb--bare .sdgb-statement,
.sdgb--bare .sdgb-hl { text-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
.sdgb--bare .sdgb-statement { color: #fff !important; }
.sdgb--bare .sdgb-caption { color: rgba(255, 255, 255, .92) !important; text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }
.sdgb--bare.sdgb--onlight .sdgb-statement { color: var(--sdgb-ink-site, #0d2b4a) !important; text-shadow: none; }
.sdgb--bare.sdgb--onlight .sdgb-caption { color: #34404f !important; text-shadow: none; }
/* decorations that only made sense on the card */
.sdgb--bare .sdgb-hexbg,
.sdgb--bare .sdgb-veins,
.sdgb--bare .sdgb-waves { display: none; }
/* v2: the globe no longer bleeds past a card edge */
.sdgb--v2.sdgb--bare .sdgb-v2-frame { right: 0; bottom: 0; }
/* v10: the whole wheel, not one cut by the card edge */
.sdgb.sdgb--v10.sdgb--bare { min-height: 0; }
.sdgb--v10.sdgb--bare .sdgb-v-inner { display: flex; flex-direction: row; align-items: center; gap: 14px; }
.sdgb--v10.sdgb--bare .sdgb-v-text { flex: 1 1 auto; min-width: 118px; max-width: none; padding-top: 0; }
.sdgb--v10.sdgb--bare .sdgb-statement { font-size: 19px; overflow-wrap: break-word; }
.sdgb--v10.sdgb--bare .sdgb-v-art { position: relative; top: auto; right: auto; bottom: auto; flex: 0 0 auto; width: min(200px, 52cqw); height: min(200px, 52cqw); }
.sdgb--v10.sdgb--bare .sdgb-split { --d: min(200px, 52cqw); left: 0; top: 0; transform: none; }
@container (min-width: 560px) {
  .sdgb--v10.sdgb--bare .sdgb-v-art { width: 260px; height: 260px; }
  .sdgb--v10.sdgb--bare .sdgb-split { --d: 260px; left: 0; }
}
/* v9: light arrows and dots on a dark banner */
.sdgb--v9.sdgb--bare .sdgb-nav { background: #fff; color: #133a5e; }
.sdgb--v9.sdgb--bare .sdgb-dots i { background: rgba(255, 255, 255, .5); }
.sdgb--v9.sdgb--bare .sdgb-dots i:first-child { background: #fff; }
.sdgb--v9.sdgb--bare.sdgb--onlight .sdgb-nav { background: #133a5e; color: #fff; }
.sdgb--v9.sdgb--bare.sdgb--onlight .sdgb-dots i { background: #9fb2c6; }
.sdgb--v9.sdgb--bare.sdgb--onlight .sdgb-dots i:first-child { background: #133a5e; }
.sdgb.sdgb--v9.sdgb--bare { padding-bottom: 0 !important; }
/* on a light page the gold half of v7's title needs no shadow and more depth */
.sdgb--bare.sdgb--onlight .sdgb-hl { color: #c98200; text-shadow: none; }
