/* ============================================================================
   APFBF 2026 colour theme — the SDG banner palette across the website (Step 30)
   Banner: event/branding/SDGS-banner.svg. Loaded by every page (after the other
   stylesheets in <head>). Some of the original styles sit in <style> blocks inside
   the pages or in stylesheets linked lower in the page, so a few selectors below
   start with "html body" to stay stronger than those; nothing in the original
   files is changed. For another event: change the tokens in :root.
   ========================================================================== */

:root {
  /* fills for shapes, bars, dots (too light for small text on white) */
  --sdg-orange: #F89E24;
  --sdg-cyan: #00ADD8;
  --sdg-teal: #0090B4;
  --sdg-green: #3EAD49;
  --sdg-forest: #41804B;
  --sdg-pink: #DF1A82;
  --sdg-magenta: #B90E6E;
  --sdg-navy: #1D416A;      /* = logo navy */
  /* darker twins: text on white / #f7f7f7, or white text on them — all ≥ 4.5:1 */
  --sdg-orange-ink: #A65B00;
  --sdg-cyan-ink: #00708C;
  --sdg-teal-ink: #005F7A;
  --sdg-green-ink: #2E7A36;
  --sdg-forest-ink: #3A7443;
  --sdg-pink-ink: #C0156F;
  --sdg-magenta-ink: #B90E6E;
  /* the banner as strips */
  --sdg-strip: linear-gradient(90deg, var(--sdg-orange) 0 20%, var(--sdg-cyan) 20% 40%, var(--sdg-teal) 40% 60%, var(--sdg-green) 60% 80%, var(--sdg-pink) 80% 100%);
  --sdg-strip-7: linear-gradient(90deg, var(--sdg-orange) 0 14.28%, var(--sdg-cyan) 14.28% 28.57%, var(--sdg-teal) 28.57% 42.85%, var(--sdg-green) 42.85% 57.14%, var(--sdg-forest) 57.14% 71.42%, var(--sdg-pink) 71.42% 85.71%, var(--sdg-magenta) 85.71% 100%);
  --sdg-flow: linear-gradient(90deg, var(--sdg-orange), var(--sdg-cyan), var(--sdg-teal), var(--sdg-green), var(--sdg-pink), var(--sdg-magenta));
}

/* ---- every page ---------------------------------------------------------- */

/* reading-progress bar (bottom of the screen): the banner colours instead of red */
html body .progress-bar-fill { background: var(--sdg-flow); }

/* back-to-top button: navy instead of yellow */
html body a.back-to-top { background-color: var(--sdg-navy); color: #fff; transition: background-color .2s ease; }
html body a.back-to-top:hover, html body a.back-to-top:focus-visible { background-color: var(--sdg-orange-ink); color: #fff; }
html body a.back-to-top i { color: #fff; }   /* a site-wide icon colour (#0e4b61) would hide it on navy */

/* EN / AR switch: the selected language in banner orange (navy text, 5:1) */
/* Step 78 (7 Nov 2026): the EN / AR switch fills the menu bar exactly (48 px, no gap under it), letters centred;
   the current language in UN blue. Was: #e7edf4 / SDG orange for the current language. */
html body .language-switcher { top: 0; height: 48px; width: auto; display: flex; align-items: stretch; gap: 0; }
html body .language-box { display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  height: 48px; min-width: 46px; margin: 0; padding: 0 12px; line-height: 1; background-color: #e6f4fb; color: var(--sdg-navy); }
html body .language-box.en-box.active,
html body .language-box.ar-box.active { background-color: #009EDB; color: #fff; }
html body .language-box:hover { background-color: var(--sdg-navy); color: #fff; }

/* top menu: an orange underline on hover */
html body .top-bar-section ul li > a:hover,
html body .top-bar-section ul li > a:focus-visible { box-shadow: inset 0 -3px 0 var(--sdg-orange); }

/* the colour strip above the footer: the banner instead of the 17-colour strip */
html body .sdg-color-strip { background: var(--sdg-strip-7); }
html body .sdg-color-strip > .sdg-color-item { background-color: transparent; }

/* outlined buttons (Agenda, Information note, Watch session, Background note …): hover in banner colours */
html body a.but1:hover, html body a.but2:hover, html body a.but3:hover, html body a.but4:hover {
  background-image: linear-gradient(90deg, var(--sdg-orange) 0%, var(--sdg-cyan) 33%, var(--sdg-green) 66%, var(--sdg-orange) 100%);
}

/* ---- documents, related events, special sessions, in-person agenda tables ---- */
html body .documents-table .row.m-header,
html body .documents-table .row.m-header.blue,
html body .documents-table .row.blue {
  background: var(--sdg-strip) left bottom / 100% 4px no-repeat, var(--sdg-navy) !important;
}
html body .documents-download { background: var(--sdg-cyan-ink); box-shadow: 0 10px 20px rgba(0, 112, 140, .22); }
html body .documents-download:hover,
html body .documents-download:focus-visible { background: var(--sdg-navy); box-shadow: 0 12px 24px rgba(29, 65, 106, .28); }

/* related events, special sessions: header row like the documents table; each row (its side bar and Zoom pill)
   takes a banner colour in turn instead of the colours set in the row's style="" (ink shades: white text ≥ 4.5:1) */
html body .special-sessions-table .row.m-header { background: var(--sdg-strip) left bottom / 100% 4px no-repeat, var(--sdg-navy); }
html body .special-sessions-table .row:nth-child(7n+2) { --session-color: var(--sdg-orange-ink) !important;  --session-accent: var(--sdg-orange-ink) !important;  --session-shadow: rgba(248, 158, 36, .22) !important; }
html body .special-sessions-table .row:nth-child(7n+3) { --session-color: var(--sdg-cyan-ink) !important;    --session-accent: var(--sdg-cyan-ink) !important;    --session-shadow: rgba(0, 173, 216, .22) !important; }
html body .special-sessions-table .row:nth-child(7n+4) { --session-color: var(--sdg-teal-ink) !important;    --session-accent: var(--sdg-teal-ink) !important;    --session-shadow: rgba(0, 144, 180, .22) !important; }
html body .special-sessions-table .row:nth-child(7n+5) { --session-color: var(--sdg-green-ink) !important;   --session-accent: var(--sdg-green-ink) !important;   --session-shadow: rgba(62, 173, 73, .22) !important; }
html body .special-sessions-table .row:nth-child(7n+6) { --session-color: var(--sdg-forest-ink) !important;  --session-accent: var(--sdg-forest-ink) !important;  --session-shadow: rgba(65, 128, 75, .22) !important; }
html body .special-sessions-table .row:nth-child(7n+7) { --session-color: var(--sdg-pink-ink) !important;    --session-accent: var(--sdg-pink-ink) !important;    --session-shadow: rgba(223, 26, 130, .2) !important; }
html body .special-sessions-table .row:nth-child(7n+8) { --session-color: var(--sdg-magenta-ink) !important; --session-accent: var(--sdg-magenta-ink) !important; --session-shadow: rgba(185, 14, 110, .2) !important; }

/* ---- agenda: keeps its original colours (day tabs, session headers) — the banner colours were tried in
   Step 30 and reverted at the owner's request. ------------------------------------------------------- */

/* ---- home -------------------------------------------------------------------- */
html body .registration-button { background-color: var(--sdg-navy) !important; }
html body .registration-button:hover, html body .registration-button:focus-visible { background-color: var(--sdg-orange-ink) !important; }
