/* Accessibility options. The panel sets one class on <html> for each option a reader turns on; the
   choice is kept in this browser and applied before the first paint. With no option on, the design
   is unchanged. */
@font-face { font-family:"Atkinson Hyperlegible Next"; src:url("/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); font-weight:300 500; font-style:normal; font-display:swap; }
@font-face { font-family:"Atkinson Hyperlegible Next"; src:url("/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); font-weight:600 900; font-style:normal; font-display:swap; }
@font-face { font-family:"OpenDyslexic"; src:url("/fonts/opendyslexic-latin-400-normal.woff2") format("woff2"); font-weight:300 500; font-style:normal; font-display:swap; }
@font-face { font-family:"OpenDyslexic"; src:url("/fonts/opendyslexic-latin-700-normal.woff2") format("woff2"); font-weight:600 900; font-style:normal; font-display:swap; }

/* Low carbon version: the class "lc" on <html> (kept in this browser, applied before the first paint)
   stops downloads. Lazy images that are not displayed are never fetched, and the Google Fonts style
   sheet is added only outside this version. It comes before the accessibility options so a chosen
   font still wins. */
.lc-switch { display:inline-flex; align-items:center; gap:7px; min-height:30px; padding:0 2px; border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; margin-left:auto; }
/* The official-website bar is in English on every page, so it keeps its left-to-right layout and the
   switch stays at the right on the Arabic pages too. */
[dir="rtl"] .dmun-govbar .dmun-gov-container { direction:ltr; }
[dir="rtl"] .lc-switch { direction:rtl; }
.lc-switch:focus-visible { outline:3px solid #44B8F3; outline-offset:2px; }
.lc-switch svg { width:16px; height:16px; flex:none; }
.lc-track { position:relative; flex:none; width:34px; height:20px; border-radius:10px; background:#5A6B7D; }
.lc-track::after { content:""; position:absolute; top:3px; inset-inline-start:3px; width:14px; height:14px; border-radius:50%; background:#fff; transition:transform .15s ease; }
.lc-switch[aria-checked="true"] .lc-track { background:#3FAE7A; }
.lc-switch[aria-checked="true"] .lc-track::after { transform:translateX(14px); }
[dir="rtl"] .lc-switch[aria-checked="true"] .lc-track::after { transform:translateX(-14px); }
.lc-short { display:none; }
.lc-auto-tag { display:none; font-weight:400; color:#B9C6D3; }
html.lc-auto .lc-auto-tag { display:inline; }
@media (max-width:719px) {
  .lc-word, html.lc-auto .lc-auto-tag { display:none; }
  .lc-full { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .lc-short { display:inline; }
}
/* The notice, shown once when the version turned on by itself (html.lc-ask), above the accessibility button. */
.lc-notice { box-sizing:border-box; display:none; position:fixed; right:20px; bottom:84px; z-index:8990; width:min(380px, calc(100vw - 40px)); max-height:calc(100vh - 110px); max-height:calc(100svh - 110px); overflow:auto; background:#fff; color:#1C1C1C; border-top:4px solid #3FAE7A; box-shadow:0 18px 40px rgb(0 0 0 / .4); padding:16px 18px 14px; font-family:var(--sans); font-size:0.95rem; line-height:1.5; text-align:start; }
html.lc-ask .lc-notice { display:block; }
html.lc-grid .lc-why-data, html.lc-data .lc-why-grid { display:none; }
.lc-notice p { margin:0 0 10px; }
.lc-notice .lc-notice-title { display:flex; align-items:center; gap:8px; margin-bottom:6px; font-weight:700; font-size:1.05rem; color:#16305C; }
.lc-notice-title svg { flex:none; width:18px; height:18px; color:#2A7A55; }
.lc-notice-actions { display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 10px; }
.lc-notice-actions button { box-sizing:border-box; display:inline-flex; align-items:center; min-height:44px; padding:0 18px; border-radius:999px; border:2px solid #16305C; font:inherit; font-weight:700; cursor:pointer; }
.lc-notice-keep { background:#16305C; color:#fff; }
.lc-notice-stop { background:transparent; color:#16305C; }
.lc-notice-actions button:focus-visible { outline:3px solid #44B8F3; outline-offset:2px; }
.lc-notice .lc-notice-note { margin:0; font-size:0.85rem; color:#4A4A4A; }
/* Out of the way while the accessibility panel or the menu is open. */
body:has(.a11y-panel:not([hidden])) .lc-notice, body:has(nav.main-nav.open) .lc-notice { display:none; }
@media (max-width:719px) { .lc-notice { right:14px; bottom:72px; width:calc(100vw - 28px); } }
@media print { .lc-notice { display:none !important; } }
html.lc { --display:system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif; --sans:system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
html.lc .lc-decor { display:none !important; }
.lc-photo { display:contents; }
.lc-show { display:none; }
html.lc .lc-photo:not(.is-shown) .lc-img { display:none !important; }
html.lc .lc-photo:not(.is-shown) .lc-show { display:inline-flex; align-items:center; min-height:44px; margin:6px 0 14px; padding:0 16px; border:1px dashed currentColor; border-radius:6px; background:transparent; color:inherit; font:inherit; font-size:0.9375rem; cursor:pointer; }
html.lc .lc-show:focus-visible { outline:2px solid #16305C; outline-offset:3px; }
/* Without its photograph, the hero quote and the highlight titles sit on navy. */
html.lc .hero-quote { position:static; background:#16305C; padding:28px 24px 30px; }
html.lc .hl-overlay { position:static; background:#16305C; }
html.lc *, html.lc *::before, html.lc *::after { animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; transition-delay:0s !important; scroll-behavior:auto !important; }
html.lc { scroll-behavior:auto !important; }

/* High contrast: darker text and rules, nothing faded. */
html.a11y-contrast { --ink:#000; --muted:#2E3740; --rule:#8A939D; --text:#000; }
html.a11y-contrast footer :is(.descriptor, .copyright), html.a11y-contrast [style*="opacity"] { opacity:1 !important; }
html.a11y-contrast .hl-date { color:#fff; }
html.a11y-contrast .dmun-govbar { color:#fff; }
html.a11y-contrast .dmun-gov-item { color:#000; }
html.a11y-contrast footer .socials a { border-color:#FBFAF7; }
html.a11y-contrast :focus-visible { outline:3px solid #FFD21F !important; outline-offset:3px; box-shadow:0 0 0 6px #000; }

/* Larger text: text is set in rem, so one step up at the root enlarges every page; the header, the
   language links and the official-website notice keep their size. */
html.a11y-text { font-size:118.75%; }

/* Readable font and dyslexia-friendly font. */
html.a11y-font { --display:"Atkinson Hyperlegible Next", Arial, Helvetica, sans-serif; --sans:"Atkinson Hyperlegible Next", Arial, Helvetica, sans-serif; }
html.a11y-dyslexia { --display:"OpenDyslexic", Arial, Helvetica, sans-serif; --sans:"OpenDyslexic", Arial, Helvetica, sans-serif; }
html:is(.a11y-font, .a11y-dyslexia) :is(body, button, input, select, textarea, .cv-wrap, .a11y-panel) { font-family:var(--sans); }
html.a11y-dyslexia body { overflow-wrap:break-word; }
/* The wider letters no longer fit the full menu, so the header folds it into the menu button at every width. */
html:is(.a11y-font, .a11y-dyslexia) .menu-btn { display:block; }
html:is(.a11y-font, .a11y-dyslexia) nav.main-nav { display:none; position:absolute; top:100%; left:0; right:0; background:var(--ivory); border-bottom:1px solid var(--rule); flex-direction:column; gap:0; padding:8px 24px 16px; }
html:is(.a11y-font, .a11y-dyslexia) nav.main-nav.open { display:flex; }
html:is(.a11y-font, .a11y-dyslexia) nav.main-nav a { padding:12px 0; border-bottom:1px solid var(--rule); }
html:is(.a11y-font, .a11y-dyslexia) nav.main-nav a:last-child { border-bottom:none; }

/* Wider text spacing, to the measures of WCAG 1.4.12. Arabic letters join, so they keep their spacing. */
html.a11y-spacing :is(p, li, dd, dt, td, th, figcaption, label, blockquote, summary) { line-height:1.8 !important; letter-spacing:0.06em !important; word-spacing:0.16em !important; }
html.a11y-spacing p { margin-bottom:1.4em; }
html.a11y-spacing:lang(ar) :is(p, li, dd, dt, td, th, figcaption, label, blockquote, summary) { letter-spacing:normal !important; }

/* Long words and wider letters must not push anything past the edge of the screen. */
html:is(.a11y-text, .a11y-font, .a11y-dyslexia, .a11y-spacing) :is(main, footer) { overflow-wrap:anywhere; }
html:is(.a11y-text, .a11y-font, .a11y-dyslexia, .a11y-spacing) :is(h1, h2, h3) { hyphens:auto; }
html:is(.a11y-text, .a11y-font, .a11y-dyslexia, .a11y-spacing) .news-card h3 span { white-space:normal; }
html:is(.a11y-text, .a11y-font, .a11y-dyslexia, .a11y-spacing) :is(.highlights, .news-grid, .two-col, .quote-split, .statements-layout, .contact-layout, .contact-blocks, .photo-grid, .cv-row) > * { min-width:0; }

/* The hero quote grows upwards over the photograph, so its shading starts higher. */
html:is(.a11y-text, .a11y-font, .a11y-dyslexia, .a11y-spacing, .a11y-contrast):not(.lc) .hero-quote { background:linear-gradient(to bottom, rgba(12,20,38,.35), rgba(12,20,38,.88)); }
/* On a phone the larger quote no longer fits over the photograph, so it sits below it on navy. */
@media (max-width:860px) {
  html:is(.a11y-text, .a11y-font, .a11y-dyslexia, .a11y-spacing) .hero-quote { position:static; background:#16305C; padding:22px 24px 26px; }
}

/* Underline links (buttons and the site name keep their shape). */
html.a11y-links a:not(.btn):not(.site-name) { text-decoration:underline !important; text-decoration-thickness:2px !important; text-underline-offset:0.2em !important; }

/* Reduce motion: no transitions or animations anywhere; the carousels also stop. */
html.a11y-motion { scroll-behavior:auto !important; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; transition-delay:0s !important; scroll-behavior:auto !important; }

/* The button and the panel. */
.a11y-btn { position:fixed; right:20px; bottom:20px; z-index:9000; width:52px; height:52px; border:0; border-radius:50%; background:#16305C; color:#fff; display:grid; place-items:center; cursor:pointer; box-shadow:0 6px 18px rgb(0 0 0 / .35); padding:0; }
.a11y-btn:hover { background:#0F2344; }
.a11y-btn:focus-visible { outline:3px solid #fff; outline-offset:3px; box-shadow:0 0 0 6px #16305C; }
.a11y-btn svg { width:30px; height:30px; }
.a11y-visually-hidden { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.a11y-panel { position:fixed; right:20px; bottom:84px; z-index:9001; width:min(380px, calc(100vw - 40px)); max-height:calc(100vh - 110px); max-height:calc(100svh - 110px); overflow:auto; background:#fff; color:#1C1C1C; border-top:4px solid #16305C; box-shadow:0 18px 40px rgb(0 0 0 / .4); padding:18px 18px 14px; font-family:var(--sans); text-align:start; line-height:1.5; }
.a11y-panel[hidden] { display:none; }
.a11y-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.a11y-head h2 { margin:0; font-size:1.15rem; line-height:1.3; color:#16305C; }
.a11y-head h2:focus { outline:none; }
.a11y-head h2:focus-visible { outline:2px solid #16305C; outline-offset:2px; }
.a11y-close { flex:none; width:40px; height:40px; border:0; background:transparent; color:#16305C; font-size:1.6rem; line-height:1; cursor:pointer; }
.a11y-panel > p { margin:8px 0 12px; font-size:.95rem; line-height:1.45; color:#4A4A4A; }
.a11y-list { list-style:none; margin:0; padding:0; display:grid; gap:4px; }
.a11y-list li { margin:0; }
.a11y-list button { width:100%; display:flex; align-items:center; gap:12px; min-height:52px; padding:8px 10px; border:1px solid #D9D6CC; border-radius:6px; background:#fff; color:#1C1C1C; font:inherit; text-align:start; cursor:pointer; }
.a11y-list button:hover { background:#FBFAF7; }
.a11y-list button[aria-checked="true"] { border-color:#16305C; background:#EEF2F8; }
.a11y-list b { display:block; font-size:.98rem; font-weight:700; color:#16305C; }
.a11y-list small { display:block; font-size:.85rem; color:#4A4A4A; line-height:1.35; }
.a11y-switch { flex:none; position:relative; width:38px; height:22px; border-radius:11px; background:#6B7076; transition:background .15s ease; }
.a11y-switch::after { content:""; position:absolute; top:3px; inset-inline-start:3px; width:16px; height:16px; border-radius:50%; background:#fff; transition:transform .15s ease; }
[aria-checked="true"] > .a11y-switch { background:#16305C; }
[aria-checked="true"] > .a11y-switch::after { transform:translateX(16px); }
[dir="rtl"] [aria-checked="true"] > .a11y-switch::after { transform:translateX(-16px); }
.a11y-reset { margin-top:10px; min-height:44px; padding:0 14px; border:2px solid #16305C; border-radius:999px; background:transparent; color:#16305C; font:inherit; font-weight:700; cursor:pointer; }
.a11y-reset:hover { background:#16305C; color:#fff; }
@media (max-width:719px) { .a11y-btn { right:14px; bottom:14px; width:48px; height:48px; } .a11y-panel { right:14px; bottom:72px; width:calc(100vw - 28px); } }
@media print { .a11y-btn, .a11y-panel { display:none !important; } }
