/* UKGLTD v7.5.0 — Site-wide layout, typography and image normalisation.
   Loaded last. Visual only: no content, forms, payments or account logic touched.
   Remove the <link> in index.php to roll back. */

/* 1) Content never "disappears" while scrolling (reveal animation left large blank areas) */
html[lang] body .reveal { opacity: 1 !important; transform: none !important; }

/* 2) Consistent vertical rhythm between sections */
html[lang] body main .section,
html[lang] body main section.section,
html[lang] body main .content-section { padding-block: clamp(3.25rem, 6vw, 5rem) !important; }
html[lang] body main .section-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem) !important; }

/* 3) One type scale for every page and language */
html[lang] body main h1 { font-size: clamp(2.05rem, 1.45rem + 2.1vw, 3.25rem) !important; line-height: 1.12 !important; }
html[lang] body main h2:not(.ukg-hs-slide h2):not(.ukg-hero-slider h2) { font-size: clamp(1.55rem, 1.2rem + 1.25vw, 2.3rem) !important; line-height: 1.22 !important; }
html[lang] body main h3 { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem) !important; line-height: 1.35 !important; }
html[lang] body main h4 { font-size: 1.05rem !important; line-height: 1.4 !important; }
html[lang] body main p, html[lang] body main li { font-size: 1.0625rem; }
html[lang] body main .article-body p, html[lang] body main .article-body li { font-size: 1.125rem !important; line-height: 1.75 !important; }
html[lang="ar"] body main .article-body p, html[lang="ar"] body main .article-body li { line-height: 1.9 !important; }

/* Card copy: smaller than body text, never larger than the card title */
html[lang] body main :is(.knowledge-copy, .detail-card, .cert-image-copy, .domain-copy, .ukgm-card, .about619-cards > *, .why-icon-grid > *, .capability-card, .journey-step) p {
  font-size: 1rem !important; line-height: 1.6 !important;
}

/* Minimum readable size for labels, tags, meta and breadcrumbs (was 10.5–12px) */
html[lang] body main :is(.kicker, [class*="kicker"], .breadcrumbs, .breadcrumbs a, .article-meta span, [class*="-tag"], [class*="badge"], .ukgm-small, .knowledge-stats span, .knowledge-filters a, .cert-card-meta code, .domain-copy p, .domain-copy a, .knowledge-copy > a, small) {
  font-size: max(0.8125rem, 13px) !important;
}
html[lang] body main :is(.initiative-about-grid > article > span, .initiative-pillars > article > b, .initiative-registry-card span, .initiative-certificate-info span, .initiative-resource-tag, .initiative-head > span, thead th) {
  font-size: 0.8125rem !important;
}
html[lang] body main .article-side a, html[lang] body main .sticky-card a { font-size: 0.95rem !important; }

/* 4) Colour contrast */
html[lang] body main .callout.callout :is(p, li, span) { color: rgba(255, 255, 255, .9) !important; }
html[lang] body main .callout.callout a { color: #fff !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
html[lang] body main :is(.initiative-head > span, .initiative-about-grid > article > span, .initiative-registry-card > div > span, .initiative-certificate-info > div > span) { color: #6b5426 !important; }

/* 5) Banner and card images: show the whole banner (no cut-off text) */
html[lang] body main .article-hero-media { aspect-ratio: 1200 / 630 !important; height: auto !important; }
html[lang] body main .article-hero-media img { width: 100%; height: 100% !important; object-fit: cover; }
html[lang] body main .knowledge-image { aspect-ratio: 1200 / 630 !important; height: auto !important; display: block; overflow: hidden; }
html[lang] body main .knowledge-image img { width: 100%; height: 100% !important; object-fit: cover; object-position: center; }
html[lang] body main .cert-image { aspect-ratio: 16 / 9 !important; height: auto !important; display: block; overflow: hidden; }
html[lang] body main .cert-image img { width: 100%; height: 100% !important; object-fit: cover; }
html[lang] body main .ukg-marketing-route-media { aspect-ratio: auto !important; height: auto !important; }
html[lang] body main .ukg-marketing-route-media img { width: 100%; height: auto !important; aspect-ratio: auto !important; object-fit: contain; }
html[lang] body main .ukg-home-journey-intro > img { object-fit: contain !important; height: auto !important; max-height: 360px; }

/* 6) Grids fill the row instead of leaving empty columns */
html[lang] body main .knowledge-card-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)) !important; }
html[lang] body main .ukgm-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)) !important; }

/* 7) Article pages: sidebar follows the reader instead of leaving a tall empty column */
html[lang] body main .article-layout { align-items: start; }
html[lang] body main .article-side { align-self: stretch; }
html[lang] body main .article-side .sticky-card { position: sticky; top: 112px; }

/* 8) About page: use the full width with two-column blocks (was one narrow 900px column) */
@media (min-width: 981px) {
  html[lang] body main .about-page-shell-v621 .ukg-about-v619.ukg-about-v619 { max-width: none !important; width: 100% !important; }
  html[lang] body main .about-page-shell-v621 .ukg-about-v619 .about619-split { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1.25rem !important; }
  html[lang] body main .about-page-shell-v621 .ukg-about-v619 .about619-two { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1.5rem 2rem !important; }
  html[lang] body main .about-page-shell-v621 .ukg-about-v619 .about619-goals { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .75rem !important; }
  html[lang] body main .about-page-shell-v621 .ukg-about-v619 .about619-cards { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 1rem !important; }
  html[lang] body main .about-page-shell-v621 .ukg-about-v619 .about619-steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; gap: 1rem !important; }
}

@media (max-width: 640px) {
  html[lang] body main .section, html[lang] body main section.section, html[lang] body main .content-section { padding-block: 2.75rem !important; }
  html[lang] body main p, html[lang] body main li { font-size: 1rem; }
  html[lang] body main .article-body p, html[lang] body main .article-body li { font-size: 1.0625rem !important; }
  html[lang] body main .article-side .sticky-card { position: static; }
}

/* ===== v7.6.0 — Adobe-style typography (Spectrum/Milo proportions), UKGLTD colours kept =====
   Font: Source Sans 3 (Adobe Originals, open licence, self-hosted). Adobe Clean itself is not licensable. */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/assets/fonts/source-sans-3/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/assets/fonts/source-sans-3/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

html:is([lang="en"], [lang="fr"], [lang="ar"]) {
  --ukg-latin-font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --ukg-font-ar: "IBM Plex Sans Arabic", "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  --ukg-text: #2c2c2c;
  --ukg-muted: #4b4b4b;
}
html:is([lang="en"], [lang="fr"]) body { font-feature-settings: normal !important; letter-spacing: 0; }

/* Type scale — Adobe "heading-xxl / xl / l / s, body-m / s, detail-m" */
html[lang] body main h1 { font-size: clamp(2.25rem, 1.55rem + 2.2vw, 2.75rem) !important; line-height: 1.25 !important; font-weight: 800 !important; letter-spacing: 0 !important; }
html[lang] body main h2:not(.ukg-hs-slide h2):not(.ukg-hero-slider h2) { font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.25rem) !important; line-height: 1.25 !important; font-weight: 700 !important; letter-spacing: 0 !important; }
html[lang] body main h3 { font-size: clamp(1.25rem, 1.1rem + .4vw, 1.5rem) !important; line-height: 1.25 !important; font-weight: 700 !important; }
html[lang] body main h4 { font-size: 1.125rem !important; line-height: 1.3 !important; font-weight: 700 !important; }
html[lang] body main p, html[lang] body main li { font-size: 1.125rem; line-height: 1.5; }
html[lang] body main .article-body p, html[lang] body main .article-body li { font-size: 1.125rem !important; line-height: 1.5 !important; }
html[lang] body main :is(.knowledge-copy, .detail-card, .cert-image-copy, .domain-copy, .ukgm-card, .about619-cards > *, .why-icon-grid > *, .capability-card, .journey-step) p { font-size: 1rem !important; line-height: 1.5 !important; }
html[lang] body main :is(.kicker, [class*="kicker"]) { font-size: .8125rem !important; font-weight: 700 !important; letter-spacing: .06em !important; text-transform: uppercase; }
html[lang] body main :is(h1, h2, h3, h4) { color: var(--ukg-ink, #0b1530); }

/* Arabic: same hierarchy, slightly larger glyph size and taller lines for readability */
html[lang="ar"] body main h1 { font-size: clamp(2.35rem, 1.65rem + 2.3vw, 3rem) !important; line-height: 1.35 !important; font-weight: 700 !important; }
html[lang="ar"] body main h2:not(.ukg-hs-slide h2):not(.ukg-hero-slider h2) { font-size: clamp(1.85rem, 1.45rem + 1.25vw, 2.4rem) !important; line-height: 1.35 !important; }
html[lang="ar"] body main p, html[lang="ar"] body main li, html[lang="ar"] body main .article-body p, html[lang="ar"] body main .article-body li { line-height: 1.75 !important; }
html[lang="ar"] body main :is(.kicker, [class*="kicker"]) { letter-spacing: 0 !important; }

/* Buttons — Adobe pill: 40px high, 2px border, bold 17px */
html[lang] body :is(main, .site-footer) .btn,
html[lang] body main :is(.ukgm-btn, .ukg-btn) {
  border-radius: 20px !important; min-height: 40px; padding: 7px 18px 8px !important;
  font-size: 1.0625rem !important; font-weight: 700 !important; line-height: 1.2 !important;
  border-width: 2px !important; border-style: solid !important; letter-spacing: 0 !important;
}
html[lang] body main .btn.primary { border-color: transparent !important; }
html[lang] body main :is(.btn.ghost, .btn.secondary, .ukgm-btn.line) { border-color: currentColor !important; background: transparent !important; }

/* Cards — Adobe 16px corners, light outline */
html[lang] body main :is(.knowledge-card, .cert-image-card, .detail-card, .office-card, .contact-form-card, .contact-summary-card, .ukgm-card, .ukg-marketing-route-card, .domain-image-card, .ukg-loc-card, .ukg-gbp-reviews) { border-radius: 16px !important; }
html[lang] body main :is(.knowledge-card, .cert-image-card, .ukg-marketing-route-card, .domain-image-card) img { border-radius: 0; }

/* v7.6.1 — equal image heights in home route cards so titles line up */
html[lang] body main .ukg-marketing-route-media { aspect-ratio: 2.6 / 1 !important; overflow: hidden; }
html[lang] body main .ukg-marketing-route-media img { width: 100%; height: 100% !important; object-fit: cover !important; object-position: center; }

/* ===== v7.7.0 — Arabic font (Noto Sans Arabic, closest open match to Adobe Clean Arabic) ===== */
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/noto-sans-arabic/noto-sans-arabic-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EEFF; }
html[lang="ar"][lang] {
  --ukg-font-ar: adobe-clean-arabic, "Adobe Clean", adobe-clean, adobe-arabic, myriad-arabic, "Noto Sans Arabic", "Trebuchet MS", sans-serif;
}
html[lang="ar"][lang] body,
html[lang="ar"][lang] body :not(i):not(svg):not(svg *):not([class*="icon"]):not(code) {
  font-family: adobe-clean-arabic, "Adobe Clean", adobe-clean, adobe-arabic, myriad-arabic, "Noto Sans Arabic", "Trebuchet MS", sans-serif !important;
}
html[lang="ar"][lang] body main :is(h1, h2, h3, h4) { font-weight: 700 !important; }

/* ===== v7.7.0 — Header: three square icon buttons (verify · language · account) ===== */
html[lang] body .site-header .header-inner .header-actions { display: flex !important; align-items: center; gap: 8px !important; }
html[lang] body .site-header .header-inner .header-actions > .ukg-hdr-icon,
html[lang] body .site-header .header-inner .header-actions > .header-portal,
html[lang] body .site-header .header-inner .header-actions > .language-dropdown > summary {
  display: inline-grid !important; place-items: center; box-sizing: border-box;
  width: 42px !important; height: 42px !important; min-width: 42px !important; padding: 0 !important; margin: 0 !important;
  border-radius: 12px !important; border: 1px solid #dfe6f0 !important; background: #fff !important;
  color: var(--ukg-navy, #13224d) !important; box-shadow: none !important; text-decoration: none !important;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
html[lang] body .site-header .header-inner .header-actions > .language-dropdown > summary { list-style: none; cursor: pointer; }
html[lang] body .site-header .header-inner .header-actions > .language-dropdown > summary::-webkit-details-marker { display: none; }
html[lang] body .site-header .header-inner .header-actions > .language-dropdown .ukg-lang-mini-chevron { display: none !important; }
html[lang] body .site-header .header-inner .header-actions > .language-dropdown .ukg-lang-code { font: 700 13px/1 "Source Sans 3", Arial, sans-serif !important; letter-spacing: .04em; }
html[lang] body .site-header .header-inner .header-actions > .header-portal { background: var(--ukg-navy, #13224d) !important; border-color: var(--ukg-navy, #13224d) !important; color: #fff !important; }
html[lang] body .site-header .header-inner .header-actions > .header-portal .portal-label {
  position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important;
  clip: rect(0 0 0 0) !important; white-space: nowrap !important; margin: -1px !important; padding: 0 !important; border: 0 !important;
}
html[lang] body .site-header .header-inner .header-actions > .header-portal .portal-user-icon { display: grid; place-items: center; width: 20px; height: 20px; margin: 0 !important; background: none !important; }
html[lang] body .site-header .header-inner .header-actions svg { width: 20px; height: 20px; fill: currentColor; }
html[lang] body .site-header .header-inner .header-actions > .ukg-hdr-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[lang] body .site-header .header-inner .header-actions > .ukg-hdr-icon:hover,
html[lang] body .site-header .header-inner .header-actions > .ukg-hdr-icon.active,
html[lang] body .site-header .header-inner .header-actions > .language-dropdown > summary:hover { background: #eef2f9 !important; border-color: #c9d4e6 !important; }
html[lang] body .site-header .header-inner .header-actions > .header-portal:hover { background: #0b1530 !important; }
html[lang] body .site-header .header-inner .header-actions > :is(.ukg-hdr-icon, .header-portal, .language-dropdown > summary):focus-visible { outline: 2px solid #2a4ba0; outline-offset: 2px; }
html[lang] body .site-header .header-inner .header-actions > :is(.ukg-hdr-icon, .language-dropdown, .header-portal) { margin: 0 !important; margin-inline: 0 !important; }
html[lang] body .site-header .header-inner .header-actions > .language-dropdown { width: 42px !important; min-width: 0 !important; flex: 0 0 42px; }

/* ===== v7.9.0 — Arabic font: IBM Plex Sans Arabic (SIL Open Font Licence, self-hosted) =====
   Replaces the adobe-clean-arabic stack from v7.7.0 (Adobe Clean is not licensable; visitors
   were actually seeing Noto Sans Arabic). Latin text stays on Source Sans 3 (Adobe Originals, OFL).
   Roll back: delete this block, or restore /_ukg_backups/ukg-layout-v7500.css.before-plex-2026-12-01 */
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic/ibm-plex-sans-arabic-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic/ibm-plex-sans-arabic-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic/ibm-plex-sans-arabic-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic/ibm-plex-sans-arabic-700.woff2") format("woff2"); }
html[lang="ar"][lang] {
  --ukg-font-ar: "Source Sans 3", "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
}
html[lang="ar"][lang] body,
html[lang="ar"][lang] body :not(i):not(svg):not(svg *):not([class*="icon"]):not(code) {
  font-family: "Source Sans 3", "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, sans-serif !important;
}
html[lang="ar"][lang] body main :is(h1, h2, h3, h4) { font-weight: 700 !important; }
html[lang="ar"][lang] body .site-header :is(.main-nav a, .mega-menu strong) { font-weight: 600 !important; }
html:is([lang="en"], [lang="fr"]) body main h1 { font-weight: 900 !important; letter-spacing: -.01em !important; }
