/* 16 Nov 2026: the professional IDM Eswatini design. Brand colours from the IDM brand manual (green var(--brand-primary,#307C48), orange #DF9137,
   lime #C9DC4B, cyan #00AEEF, brown #894420) on white, with black and green bands for contrast. Loaded last on index.html. */
:root {
  --idm-green: var(--brand-primary,#307C48); --idm-green-deep: var(--brand-primary,#307C48); --idm-green-ink: var(--brand-deep,#235934); --idm-orange: #DF9137; --idm-lime: #C9DC4B;
  --idm-cyan: #00AEEF; --idm-brown: #894420; --idm-black: #0b0b0b; --idm-white: #ffffff; --idm-tint: #f3f8f5;
  --idm-ink: #16241d; --idm-body: #2a3a31; --idm-mute: #55665d; --idm-line: #dde6e0;
}
html, body { background: #ffffff !important; color: var(--idm-ink) !important; font-family: "Figtree", "Segoe UI", Roboto, Arial, sans-serif; }
h1, h2, h3, h4 { color: var(--idm-green-deep) !important; letter-spacing: -.01em; }
p, li { color: var(--idm-body); }
a { color: var(--idm-green); }
a:hover { color: var(--idm-green-deep); }
.sec { background: #ffffff !important; }
.sec .eyebrow, .eyebrow { color: var(--idm-green) !important; letter-spacing: .08em; }

/* Page headers: brand green band */
.phead { background: linear-gradient(120deg, var(--idm-green-deep) 0%, var(--idm-green) 100%) !important; color: #ffffff !important; }
.phead h1, .phead p, .phead .crumbs, .phead .crumbs a, .phead .crumbs span { color: #ffffff !important; }
.phead .crumbs a { opacity: .85; }

/* Hero: white page, green slides with white text */
/* Hero slider (home and About): a white, shaped panel instead of the green background (16 Nov 2026) */
#idmShow .hs-slide, #idmShow article.hs-slide {
  background: linear-gradient(135deg, #ffffff 0%, #f5f9f7 55%, #e6f2ea 100%) !important;
  border: 1px solid var(--idm-line) !important; border-radius: 28px !important; position: relative; overflow: hidden;
  box-shadow: 0 34px 60px -44px rgba(0, 60, 35, .45);
}
#idmShow .hs-slide::before {                 /* lime ring, top right */
  content: ""; position: absolute; right: -90px; top: -110px; width: 360px; height: 360px; border-radius: 50%;
  border: 48px solid rgba(201, 220, 75, .22); pointer-events: none; z-index: 0;
}
#idmShow .hs-slide::after {                  /* brand colour rule along the bottom edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; pointer-events: none; z-index: 0;
  background: linear-gradient(90deg, var(--idm-green) 0%, var(--idm-lime) 55%, var(--idm-orange) 100%);
}
#idmShow .hs-slide > * { position: relative; z-index: 1; }
#idmShow .hs-title { color: var(--idm-green-deep) !important; }
#idmShow .hs-copy p { color: var(--idm-body) !important; opacity: 1; }
#idmShow .hs-slide .hs-copy .btn-ghost, #idmShow .hs-slide .btn-ghost { background: #ffffff !important; color: var(--idm-green-deep) !important; border-color: var(--idm-green) !important; }

/* Black band: "Start your journey" (pathways) */
#pathways, #idmJourney { background: var(--idm-green) !important; }
#pathways h2, #pathways h3, #idmJourney h2, #idmJourney h3 { color: #ffffff !important; }
#pathways p, #idmJourney p { color: #d9e3dd !important; }
#pathways .eyebrow, #idmJourney .eyebrow { color: var(--idm-lime) !important; }

/* Green band: quick links and calendar */
.trust { background: var(--idm-green-deep) !important; color: #ffffff !important; }
.trust span, .trust a { color: #ffffff !important; }
.trust .trust-more { color: var(--idm-lime) !important; }

/* Tinted sections: news, history and the academic news */
#acNews, .hx, #libOffers, #libResearch, #libHours { background: var(--idm-tint) !important; }
#acNews h2, #acNews h3, .hx h2 { color: var(--idm-green-deep) !important; }

/* Cards: white, quiet border, brand accent */
.card, .idm-pt-card, .pp-card, .sn-facts > div, .ul-card {
  background: #ffffff !important; border: 1px solid var(--idm-line) !important; border-radius: 16px !important;
  box-shadow: 0 10px 26px -24px rgba(0, 60, 35, .45);
}
.btn-primary, .btn.primary, .btn-gold, .btn.g { background: var(--idm-orange) !important; border-color: var(--idm-orange) !important; color: #1b1b1b !important; }
.btn-primary:hover, .btn-gold:hover, .btn.g:hover { background: var(--idm-green) !important; border-color: var(--idm-green) !important; color: #ffffff !important; }
.btn-ghost { border-color: var(--idm-green) !important; color: var(--idm-green) !important; background: #ffffff !important; }
.btn-ghost:hover { background: var(--idm-green) !important; color: #ffffff !important; }

/* Footer: black, with brand accents */
footer.site-foot, footer#ftr, .foot-main, .site-footer { background: var(--idm-green-deep) !important; color: #ffffff !important; }
/* Website footer (16 Nov 2026): the deep green sampled from the IDM footer artwork */
html body footer.ft2, html body footer.ft3, html body footer.ft2.ft3 { background: var(--brand-primary,#307C48) !important; color: #ffffff !important; }
html body footer.ft2 a, html body footer.ft3 a { color: #ffffff !important; }
html body footer.ft2 h2, html body footer.ft2 h3, html body footer.ft2 h4, html body footer.ft3 h2, html body footer.ft3 h3, html body footer.ft3 h4 { color: #C9DC4B !important; }
footer.site-foot a, footer#ftr a, .site-footer a { color: #ffffff !important; }
footer.site-foot h2, footer.site-foot h3, footer#ftr h2, footer#ftr h3, .site-footer h2, .site-footer h3 { color: var(--idm-lime) !important; }

/* Readable text in every section */
.sec p, .sec li, .sec td { color: var(--idm-body); }
.muted, .sec .muted { color: var(--idm-mute) !important; }

/* Staff directory: profile photos smaller, still clearly visible */
html body #staffDir .op-ph, html body .op-ph {
  width: 104px !important; height: 104px !important; aspect-ratio: 1 / 1 !important; margin: 0 auto 10px !important;
  border-radius: 50% !important; overflow: hidden !important; flex: none;
}
html body #staffDir .op-ph img, html body .op-ph img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
@media (max-width: 640px) {
  html body #staffDir .op-ph, html body .op-ph { width: 84px !important; height: 84px !important; }
}

/* ---- Website header (16 Nov 2026): a clean white header with the logo, the menu and the myIDM button ---- */
html body header.site { background: #ffffff !important; border-bottom: 1px solid var(--idm-line) !important; box-shadow: 0 14px 30px -26px rgba(0, 60, 35, .5) !important; }
html body header.site .hbar { padding: 14px 24px 6px !important; gap: 0 24px !important; align-items: center !important; }
html body header.site .brand { gap: 16px !important; }
html body header.site .brand .logo {
  background-image: url("../images/logo-ink.png") !important; background-size: contain !important; background-repeat: no-repeat !important;
  background-position: left center !important; width: 168px !important; height: 60px !important; filter: none !important; opacity: 1 !important;
}
html body header.site .brand::after {
  color: var(--idm-green-deep) !important; border-left: 3px solid var(--idm-orange) !important; font-weight: 700 !important;
  letter-spacing: .01em !important; text-shadow: none !important;
}
html body header.site .hcta { gap: 10px !important; align-items: center !important; }
html body header.site .iconbtn {
  width: 44px !important; height: 44px !important; border-radius: 14px !important; padding: 0 !important;
  background: #ffffff !important; color: var(--idm-green-deep) !important; border: 1px solid var(--idm-line) !important;
  box-shadow: 0 8px 16px -12px rgba(0, 60, 35, .45) !important; display: inline-grid; place-items: center; transition: background .2s ease, color .2s ease;
}
html body header.site .iconbtn:hover, html body header.site .iconbtn:focus-visible { background: var(--idm-green) !important; color: #ffffff !important; }
html body header.site .iconbtn svg { width: 20px; height: 20px; }
html body header.site a.myidm {
  background: linear-gradient(135deg, #C9DC4B 0%, #e6f09a 100%) !important; color: var(--brand-deep,#235934) !important; border: 2px solid var(--brand-deep,#235934) !important;
  border-radius: 999px !important; padding: 10px 24px !important; font-weight: 800 !important; font-size: 1rem !important;
  letter-spacing: .03em; text-shadow: none !important; -webkit-text-fill-color: var(--brand-deep,#235934) !important;
  box-shadow: 0 14px 24px -16px rgba(1, 61, 37, .85) !important; text-decoration: none; white-space: nowrap;
}
html body header.site a.myidm:focus-visible { outline: 3px solid var(--brand-deep,#235934); outline-offset: 3px; }
html body header.site a.myidm:hover { transform: translateY(-1px); box-shadow: 0 18px 28px -16px rgba(0, 101, 57, .9) !important; }
/* Top bar: a refined band above the header */
html body .topbar.idm-tb { min-height: 58px; }
html body .topbar.idm-tb .tb-pill, html body .topbar.idm-tb a.tb-intra { border-radius: 999px !important; }

/* ---- Home page text (16 Nov 2026): one clear hierarchy of headings, body text, labels and links ---- */
html body [data-view="home"] h2 { font-size: clamp(1.75rem, 2.6vw, 2.4rem) !important; line-height: 1.18 !important; font-weight: 800 !important; letter-spacing: -.01em; margin: 0 0 .6rem !important; }
html body [data-view="home"] h3 { font-size: 1.12rem !important; line-height: 1.3 !important; font-weight: 700 !important; margin: 0 0 .4rem !important; }
html body [data-view="home"] p { font-size: 1.02rem; line-height: 1.7; color: var(--idm-body); }
html body [data-view="home"] li { line-height: 1.6; }
html body [data-view="home"] .eyebrow { color: var(--idm-green) !important; font-size: .78rem !important; font-weight: 800 !important; letter-spacing: .12em; text-transform: uppercase; }
html body [data-view="home"] #pathways .eyebrow, html body [data-view="home"] #idmJourney .eyebrow { color: var(--idm-lime) !important; }
html body #idmShow .hs-title { font-size: clamp(2rem, 3.4vw, 3rem) !important; line-height: 1.1 !important; font-weight: 800 !important; }
html body #idmShow .hs-text, html body #idmShow .hs-copy p { font-size: 1.1rem !important; line-height: 1.65 !important; font-weight: 500 !important; color: var(--idm-body) !important; max-width: 58ch; }
html body [data-view="home"] .card p, html body [data-view="home"] .card small { color: var(--idm-body) !important; line-height: 1.6; }
html body [data-view="home"] .cm-l { font-size: 1.02rem !important; font-weight: 600 !important; color: var(--idm-ink) !important; }
html body [data-view="home"] .cm-l:hover { color: var(--idm-green-deep) !important; }
html body [data-view="home"] section.sec { padding-top: clamp(44px, 6vw, 76px); padding-bottom: clamp(44px, 6vw, 76px); }

/* ---- Main menu tabs (16 Nov 2026): a refined tab bar. Quiet tabs, a soft mint hover, and a green underline on the current page. ---- */
html body header.site nav.main { background: #ffffff !important; border-top: 1px solid #e3ece7 !important; border-bottom: 1px solid #e3ece7 !important; box-shadow: 0 10px 24px -22px rgba(0, 60, 35, .55) !important; }
html body header.site nav.main > ul { gap: 4px !important; align-items: stretch; flex-wrap: wrap; justify-content: center; padding: 6px 0 !important; }
html body header.site nav.main > ul > li { position: relative; }
html body header.site nav.main > ul > li > button, html body header.site nav.main > ul > li > a {
  position: relative !important; display: inline-flex !important; align-items: center; gap: 6px;
  height: 40px !important; padding: 0 14px !important; margin: 0 !important;
  background: transparent !important; color: #1b2a22 !important; -webkit-text-fill-color: #1b2a22 !important;
  border: 0 !important; border-radius: 10px !important; box-shadow: none !important;
  font-size: .92rem !important; font-weight: 600 !important; letter-spacing: .01em; white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
html body header.site nav.main > ul > li > button::after, html body header.site nav.main > ul > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-primary,#307C48), #C9DC4B); transform: scaleX(0); transform-origin: center; transition: transform .25s ease;
}
html body header.site nav.main > ul > li > button:hover, html body header.site nav.main > ul > li > button:focus-visible,
html body header.site nav.main > ul > li > a:hover, html body header.site nav.main > ul > li > a:focus-visible {
  background: #eef7f1 !important; color: var(--brand-primary,#307C48) !important; -webkit-text-fill-color: var(--brand-primary,#307C48) !important; outline: none;
}
html body header.site nav.main > ul > li > button:hover::after, html body header.site nav.main > ul > li > button:focus-visible::after,
html body header.site nav.main > ul > li > a:hover::after, html body header.site nav.main > ul > li > a:focus-visible::after,
html body header.site nav.main > ul > li.cur > button::after, html body header.site nav.main > ul > li.cur > a::after,
html body header.site nav.main > ul > li.open > button::after { transform: scaleX(1); }
html body header.site nav.main > ul > li.cur > button, html body header.site nav.main > ul > li.cur > a,
html body header.site nav.main > ul > li.open > button {
  background: #e6f4ec !important; color: var(--brand-primary,#307C48) !important; -webkit-text-fill-color: var(--brand-primary,#307C48) !important; font-weight: 700 !important;
}
/* the small chevron on tabs that open a menu */
html body header.site nav.main > ul > li > button > svg, html body header.site nav.main > ul > li > button > i { opacity: .7; transition: transform .2s ease; }
html body header.site nav.main > ul > li > button:hover > svg, html body header.site nav.main > ul > li.open > button > svg { transform: rotate(180deg); }
@media (max-width: 1080px) { html body header.site nav.main > ul { justify-content: flex-start; } }

/* Main menu bar (16 Nov 2026): black background with white text. Only this menu bar is black. */
html body header.site nav.main { background: #000000 !important; border-top: 1px solid #000000 !important; border-bottom: 1px solid #000000 !important; box-shadow: 0 10px 24px -20px rgba(0, 0, 0, .7) !important; }
html body header.site nav.main > ul > li > button, html body header.site nav.main > ul > li > a { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
html body header.site nav.main > ul > li > button:hover, html body header.site nav.main > ul > li > button:focus-visible,
html body header.site nav.main > ul > li > a:hover, html body header.site nav.main > ul > li > a:focus-visible {
  background: #1f1f1f !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important;
}
html body header.site nav.main > ul > li.cur > button, html body header.site nav.main > ul > li.cur > a, html body header.site nav.main > ul > li.open > button {
  background: #1f1f1f !important; color: #3ddc84 !important; -webkit-text-fill-color: #3ddc84 !important; font-weight: 700 !important;
}
html body header.site nav.main > ul > li.cur > button > svg, html body header.site nav.main > ul > li.open > button > svg { color: #3ddc84 !important; }
/* The visited tab (the page you are on) is green on the black bar. The main menu's own tabs are #cmenu > li.cn-top. */
html body header.site nav.main #cmenu > li.cn-top > a, html body header.site nav.main #cmenu > li.cn-top > button { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; background: transparent !important; }
html body header.site nav.main #cmenu > li.cn-top.cur > a, html body header.site nav.main #cmenu > li.cn-top.cur > button,
html body header.site nav.main #cmenu > li.cn-top.open > a, html body header.site nav.main #cmenu > li.cn-top.open > button,
html body header.site nav.main #cmenu > li.cn-top:hover.cur > a {
  background: #1f1f1f !important; color: #3ddc84 !important; -webkit-text-fill-color: #3ddc84 !important; font-weight: 700 !important;
}
html body header.site nav.main #cmenu > li.cn-top > a:hover, html body header.site nav.main #cmenu > li.cn-top > button:hover { background: #1f1f1f !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
html body header.site nav.main > ul > li > button::after, html body header.site nav.main > ul > li > a::after { background: linear-gradient(90deg, #C9DC4B, #DF9137) !important; }
html body header.site nav.main > ul > li > button > svg, html body header.site nav.main > ul > li > button > i { color: #ffffff !important; }

/* Senate facts: green cards with white text (16 Nov 2026) */
html body .sn-facts > div { background: var(--brand-primary,#307C48) !important; border: 1px solid var(--brand-primary,#307C48) !important; box-shadow: 0 14px 26px -18px rgba(1, 61, 37, .8) !important; }
html body .sn-facts > div span, html body .sn-facts > div b, html body .sn-facts > div * { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
html body .sn-facts > div span { opacity: .85; }

/* Visited links in the side menus ("On this page"): green background with white text (16 Nov 2026) */
html body .subnav a.visited, html body .subnav a[aria-current="true"], html body .subnav a.on, html body .subnav a.cur, html body .subnav a.active,
html body .cl-sub a.visited, html body .cl-sub a[aria-current="true"], html body .cl-sub a.on, html body .cl-sub a.active,
html body .bdu-jump a.visited, html body .lbx-nav a.visited, html body .sidebar-layout nav a.visited {
  background: var(--brand-primary,#307C48) !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; border-left-color: #C9DC4B !important;
}
html body .subnav a.visited *, html body .cl-sub a.visited *, html body .bdu-jump a.visited *, html body .lbx-nav a.visited * { color: #ffffff !important; }

/* Green backgrounds: white text (16 Nov 2026). js/green-text.js marks the elements (idm-on-green, idm-keep). */
.idm-on-green:not(.idm-keep), .idm-on-green :not(.idm-keep):not(.idm-keep *):not(img):not(svg):not(svg *):not(path):not(input):not(select):not(textarea) { color: #ffffff !important; }
.idm-on-green .idm-keep, .idm-on-green .idm-keep * { color: revert-layer !important; }
.idm-on-green input::placeholder, .idm-on-green textarea::placeholder { color: rgba(255, 255, 255, .75) !important; }
.idm-on-green svg, .idm-on-green svg * { color: inherit; }

/* ---- Hero slideshow motion (16 Nov 2026): cinematic transitions, a masked photo reveal, staggered text and a gentle drift ---- */
@keyframes idmHsMask { from { clip-path: inset(0 100% 0 0 round 28px); } to { clip-path: inset(0 0 0 0 round 28px); } }
@keyframes idmHsUp { from { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes idmHsRule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes idmHsDrift { 0% { transform: scale(1.08) translate3d(0, 0, 0); } 100% { transform: scale(1.0) translate3d(-1.2%, -0.6%, 0); } }
html body #idmShow .hs-slide {
  opacity: 0 !important; transform: scale(1.025) translate3d(28px, 0, 0) !important; filter: blur(6px);
  transition: opacity 1s cubic-bezier(.4, 0, .2, 1), transform 1.3s cubic-bezier(.2, .8, .2, 1), filter 1s ease, visibility 0s linear 1s !important;
}
html body #idmShow .hs-slide.on {
  opacity: 1 !important; transform: none !important; filter: none !important; visibility: visible !important;
  transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1), transform 1.4s cubic-bezier(.2, .8, .2, 1), filter 1.1s ease, visibility 0s !important;
}
html body #idmShow .hs-slide.out { opacity: 0 !important; transform: scale(.985) translate3d(-28px, 0, 0) !important; filter: blur(4px); }
html body #idmShow .hs-slide.on .hs-main { animation: idmHsMask 1.5s cubic-bezier(.7, 0, .2, 1) .15s both; }
html body #idmShow .hs-slide.on .hs-main img { animation: idmHsDrift 10s cubic-bezier(.2, .6, .2, 1) both; transform-origin: 50% 40%; }
html body #idmShow .hs-slide.on .hs-eye { animation: idmHsUp .8s cubic-bezier(.2, .8, .2, 1) .25s both; }
html body #idmShow .hs-slide.on .hs-title { animation: idmHsUp 1s cubic-bezier(.2, .8, .2, 1) .4s both; }
html body #idmShow .hs-slide.on .hs-rule { transform-origin: left center; animation: idmHsRule .9s cubic-bezier(.2, .8, .2, 1) .8s both; }
html body #idmShow .hs-slide.on .hs-text { animation: idmHsUp .9s cubic-bezier(.2, .8, .2, 1) .95s both; }
html body #idmShow .hs-slide.on .hs-ctas { animation: idmHsUp .9s cubic-bezier(.2, .8, .2, 1) 1.1s both; }
html body #idmShow .hs-slide.on .hs-trust { animation: idmHsUp .9s cubic-bezier(.2, .8, .2, 1) 1.25s both; }
html body #idmShow .hs-slide.on .hs-stat, html body #idmShow .hs-slide.on .hs-tag { animation: idmHsUp .9s cubic-bezier(.2, .8, .2, 1) 1s both; }
/* The first slide on page load: shown at once, without the entrance animation */
html body #idmShow.first .hs-slide.on, html body #idmShow.first .hs-slide.on * { animation: none !important; transition: none !important; filter: none !important; }
html body #idmShow.first .hs-slide.on { opacity: 1 !important; transform: none !important; visibility: visible !important; }
@media (prefers-reduced-motion: reduce) {
  html body #idmShow .hs-slide, html body #idmShow .hs-slide.on, html body #idmShow .hs-slide * { animation: none !important; transition: none !important; filter: none !important; }
}

/* Staff profile photos: a framed circle with a green-to-lime ring and a soft shadow */
html body #staffDir .op-ph, html body .op-ph {
  background: linear-gradient(135deg, var(--brand-primary,#307C48) 0%, #C9DC4B 100%) !important; padding: 4px !important; box-sizing: border-box !important;
  box-shadow: 0 14px 26px -14px rgba(0, 60, 35, .55) !important; transition: transform .3s ease, box-shadow .3s ease;
}
html body #staffDir .op-ph img, html body .op-ph img { border: 3px solid #ffffff !important; border-radius: 50% !important; box-sizing: border-box; }
html body #staffDir .op-ph > span, html body .op-ph > span { color: #ffffff !important; font-family: "Poppins", Arial, sans-serif !important; font-weight: 700 !important; }
html body #staffDir .op-card:hover .op-ph, html body #staffDir .op-card:focus-visible .op-ph { transform: translateY(-2px) scale(1.03); box-shadow: 0 18px 30px -14px rgba(0, 60, 35, .6) !important; }

/* Black backgrounds removed: the "Start your journey" band uses the brand green; hero overlays are green */
html body #idmJourney, html body #pathways { background: var(--idm-green) !important; }
html body .scrim { background: rgba(0, 101, 57, .28) !important; }
html body footer.edm-sign { background: #ffffff !important; color: var(--idm-ink) !important; }

/* ---- Professional shapes (16 Nov 2026): geometric accents that use only the IDM colours ---- */
.phead { position: relative; overflow: hidden; isolation: isolate; }
.phead::before, .phead::after { content: ""; position: absolute; pointer-events: none; z-index: -1; }
.phead::before {                       /* large lime ring, top right */
  width: 340px; height: 340px; right: -120px; top: -150px; border-radius: 50%;
  border: 46px solid rgba(201, 220, 75, .22);
}
.phead::after {                        /* orange diagonal bar, bottom left */
  width: 260px; height: 26px; left: -60px; bottom: 26px; transform: rotate(-18deg);
  background: linear-gradient(90deg, rgba(223, 145, 55, .0), rgba(223, 145, 55, .85));
  border-radius: 20px;
}
.phead h1 { position: relative; }
.phead h1::after { content: ""; display: block; width: 64px; height: 5px; margin-top: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--idm-orange), var(--idm-lime)); }

/* Section eyebrows get a short brand bar */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--idm-orange), var(--idm-lime)); }

/* Angled top edge on the brand green journey band */
#pathways, #idmJourney { position: relative; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); padding-top: 72px !important; margin-top: 0; }
#pathways::before, #idmJourney::before {
  content: ""; position: absolute; right: -90px; top: 40px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 220, 75, .22) 0%, rgba(201, 220, 75, 0) 70%); pointer-events: none;
}

/* Cards: a brand corner accent and a lift on hover */
.card, .idm-pt-card, .pp-card, .ul-card { position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card::before, .pp-card::before, .idm-pt-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 4px; border-radius: 0 0 6px 0;
  background: linear-gradient(90deg, var(--idm-green), var(--idm-lime));
}
.card:hover, .pp-card:hover, .idm-pt-card:hover, .ul-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(0, 60, 35, .55); border-color: #b9d7c6 !important; }

/* Buttons: pill shape with a soft brand shadow */
.btn, .btn-primary, .btn-gold, .btn-ghost { border-radius: 999px !important; box-shadow: 0 10px 20px -14px rgba(0, 60, 35, .6); transition: transform .2s ease, background .2s ease; }
.btn:hover, .btn-primary:hover, .btn-gold:hover, .btn-ghost:hover { transform: translateY(-1px); }

/* ---- Admissions window under the slider (16 Nov 2026): a professional notice panel with a countdown and one action ---- */
html body #idmShow .hs-status {
  position: relative; overflow: hidden; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px;
  background: linear-gradient(120deg, #ffffff 0%, #f5faf7 58%, #e7f4ec 100%) !important;
  border: 1px solid #cfe1d6 !important; border-radius: 22px !important; padding: 16px 22px 16px 28px !important;
  box-shadow: 0 22px 40px -30px rgba(0, 60, 35, .5) !important; color: var(--idm-ink) !important;
}
html body #idmShow .hs-status::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--idm-green), var(--idm-lime) 55%, var(--idm-orange)); }
html body #idmShow .hs-status::after { content: ""; position: absolute; right: -70px; top: -100px; width: 240px; height: 240px; border-radius: 50%; border: 30px solid rgba(201, 220, 75, .22); pointer-events: none; }
html body #idmShow .hs-status > * { position: relative; z-index: 1; }
html body #idmShow .hs-st-live { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 135, 82, .14); }
html body #idmShow .hs-st-live i { width: 12px !important; height: 12px !important; border-radius: 50%; background: var(--idm-green) !important; box-shadow: 0 0 0 5px rgba(0, 135, 82, .18); }
html body #idmShow .hs-st-k { background: linear-gradient(135deg, #DF9137 0%, #f2b25f 100%); color: #3a2205 !important; border-radius: 999px; padding: 7px 16px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 10px 18px -14px rgba(223, 145, 55, .9); }
html body #idmShow .hs-st-t { flex: 1 1 280px; min-width: 0; }
html body #idmShow .hs-st-t b { display: block; font-size: 1.16rem !important; font-weight: 800 !important; color: var(--idm-green-deep) !important; line-height: 1.25; }
html body #idmShow .hs-st-t small { display: block; margin-top: 3px; font-size: .92rem !important; color: var(--idm-mute) !important; font-weight: 500; }
html body #idmShow .hs-st-n { background: var(--idm-green-deep) !important; color: var(--idm-lime) !important; border-radius: 999px; padding: 8px 16px; font-size: .92rem; font-weight: 800; box-shadow: 0 10px 18px -14px rgba(1, 61, 37, .85); white-space: nowrap; }
html body #idmShow a.hs-st-btn {
  background: linear-gradient(135deg, var(--idm-green) 0%, var(--idm-green-deep) 100%) !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important;
  border: 0 !important; border-radius: 999px !important; padding: 12px 22px !important; font-weight: 800 !important; font-size: .98rem !important; text-decoration: none; white-space: nowrap;
  box-shadow: 0 14px 24px -16px rgba(0, 101, 57, .9) !important; transition: transform .2s ease, box-shadow .2s ease;
}
html body #idmShow a.hs-st-btn:hover, html body #idmShow a.hs-st-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 18px 28px -16px rgba(0, 101, 57, .95) !important; }
html body #idmShow a.hs-st-btn i { color: #ffffff !important; background: transparent !important; }
@media (max-width: 640px) { html body #idmShow .hs-status { padding: 14px 16px 14px 22px !important; } }

html body #applyBar.apb {
  position: relative; overflow: hidden; margin: 16px auto 0; width: min(1240px, calc(100% - 48px)); box-sizing: border-box;
  background: linear-gradient(120deg, #ffffff 0%, #f5faf7 58%, #e7f4ec 100%) !important; color: var(--idm-ink) !important;
  border: 1px solid #d3e6da !important; border-radius: 20px !important; border-bottom: 1px solid #d3e6da !important;
  box-shadow: 0 22px 40px -30px rgba(0, 60, 35, .5) !important;
}
html body #applyBar.apb::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, var(--idm-green), var(--idm-lime) 55%, var(--idm-orange));
}
html body #applyBar.apb::after {
  content: ""; position: absolute; right: -60px; top: -90px; width: 220px; height: 220px; border-radius: 50%;
  border: 30px solid rgba(201, 220, 75, .25); pointer-events: none;
}
html body #applyBar .apb-in { max-width: none; margin: 0; padding: 16px 22px 16px 26px; gap: 16px; position: relative; z-index: 1; }
html body #applyBar .apb-dot { width: 14px; height: 14px; background: var(--idm-green) !important; box-shadow: 0 0 0 6px rgba(0, 135, 82, .16) !important; }
html body #applyBar .apb-t { gap: 2px 14px; }
html body #applyBar .apb-t b { font-size: 1.14rem !important; font-weight: 800 !important; color: var(--idm-green-deep) !important; letter-spacing: -.005em; }
html body #applyBar .apb-t span { font-size: .93rem !important; color: var(--idm-mute) !important; opacity: 1 !important; font-weight: 500; }
html body #applyBar .apb-cd { gap: 8px; }
html body #applyBar .apb-cd div { background: var(--idm-green-deep) !important; border: 0 !important; border-radius: 12px !important; padding: 6px 12px !important; min-width: 60px !important; color: #ffffff; box-shadow: 0 10px 18px -14px rgba(1, 61, 37, .8); }
html body #applyBar .apb-cd b { color: var(--idm-lime) !important; font-size: 1.2rem !important; font-weight: 800; }
html body #applyBar .apb-cd small { color: #ffffff !important; opacity: .92; font-weight: 600; }
html body #applyBar a.apb-btn {
  background: linear-gradient(135deg, var(--idm-green) 0%, var(--idm-green-deep) 100%) !important; color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important; border: 0 !important; border-radius: 999px !important; padding: 12px 24px !important;
  font-weight: 800 !important; font-size: .98rem !important; letter-spacing: .01em; box-shadow: 0 14px 24px -16px rgba(0, 101, 57, .9) !important; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
html body #applyBar a.apb-btn:hover, html body #applyBar a.apb-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 18px 28px -16px rgba(0, 101, 57, .95) !important; background: linear-gradient(135deg, var(--idm-lime) 0%, #e6f09a 100%) !important; color: var(--idm-green-deep) !important; -webkit-text-fill-color: var(--idm-green-deep) !important; }
html body #applyBar a.apb-btn.line { background: #ffffff !important; color: var(--idm-green-deep) !important; -webkit-text-fill-color: var(--idm-green-deep) !important; border: 2px solid var(--idm-green) !important; box-shadow: none !important; }
@media (max-width: 640px) {
  html body #applyBar.apb { width: calc(100% - 24px); }
  html body #applyBar .apb-in { padding: 14px 16px; }
}

/* Hero slider (16 Nov 2026): full window width. The slide photos and text keep their size and quality. */
html body #idmShow {
  width: 100vw !important; max-width: 100vw !important; margin-right: 0 !important;
  box-sizing: border-box; border-radius: 0 !important;
}
html body #idmShow .hs-in { max-width: none !important; width: 100% !important; box-sizing: border-box; padding-left: clamp(16px, 3vw, 56px) !important; padding-right: clamp(16px, 3vw, 56px) !important; }
html body #idmShow .hs-slide { border-radius: 28px !important; }
html body #idmShow .hs-status { width: 100% !important; box-sizing: border-box; }
html body #idmShow .hs-copy, html body #idmShow .hs-slide img { max-width: 100%; }

/* Hero slides: every eyebrow label shows in full (for example "Business Development Unit"), and the text sits above the photo */
html body #idmShow .hs-eye { width: auto !important; max-width: 100% !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.35 !important; letter-spacing: .08em !important; display: inline-flex !important; align-items: center; }
html body #idmShow .hs-copy { position: relative; z-index: 3; min-width: 0; }
html body #idmShow .hs-slide > :not(.hs-copy) { z-index: 1; }

/* ---- News & Updates (16 Nov 2026): the IDM Students Christian Movement feature, and the detail facts ---- */
html body .nh2-feat.nh2-scm {
  background: radial-gradient(120% 120% at 100% 0%, var(--brand-primary,#307C48) 0%, var(--brand-primary,#307C48) 45%, var(--brand-deep,#235934) 100%) !important; color: #ffffff !important;
  border: 0 !important; border-radius: 28px !important; box-shadow: 0 34px 60px -36px rgba(1, 61, 37, .85) !important;
  position: relative; overflow: hidden; isolation: isolate;
}
html body .nh2-feat.nh2-scm::before { content: ""; position: absolute; right: -90px; top: -110px; width: 360px; height: 360px; border-radius: 50%; border: 46px solid rgba(201, 220, 75, .18); z-index: -1; }
html body .nh2-feat.nh2-scm::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, #C9DC4B, #DF9137); z-index: 1; }
html body .nh2-feat.nh2-scm .nh2-fimg { background: var(--brand-deep,#235934) !important; border-radius: 22px; overflow: hidden; }
html body .nh2-feat.nh2-scm .nh2-fimg img { object-fit: contain !important; padding: 10px; }
html body .nh2-feat.nh2-scm h2 { color: #ffffff !important; font-size: clamp(1.7rem, 2.6vw, 2.5rem) !important; font-weight: 800 !important; line-height: 1.12 !important; }
html body .nh2-feat.nh2-scm p { color: #e6f3ec !important; }
html body .nh2-feat.nh2-scm .nh2-meta time, html body .nh2-feat.nh2-scm .nh2-tag { color: var(--brand-deep,#235934) !important; background: #C9DC4B !important; }
html body .nh2-feat.nh2-scm .nh2-btn { background: #C9DC4B !important; color: var(--brand-deep,#235934) !important; font-weight: 800 !important; border-radius: 999px !important; padding: 12px 22px !important; box-shadow: 0 14px 24px -16px rgba(0, 0, 0, .6); }
html body .scm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 18px 0 22px; }
html body .scm-facts > div { background: #f3f8f5; border: 1px solid #d3e6da; border-left: 5px solid var(--brand-primary,#307C48); border-radius: 14px; padding: 12px 14px; }
html body .scm-facts span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-primary,#307C48); }
html body .scm-facts b { display: block; margin-top: 4px; font-size: 1.02rem; color: var(--brand-deep,#235934); }

/* Starting soon short courses (16 Nov 2026): a small tab in the bottom-right corner, above the chat button.
   It opens as a card only when clicked, so it does not block the website information. */
html body .sc-pop.idm-mini { left: auto !important; right: 18px !important; bottom: 88px !important; top: auto !important; z-index: 60 !important; }
html body .sc-pop.idm-mini .idm-sc-pill { box-shadow: 0 12px 26px -14px rgba(1, 61, 37, .85) !important; }
html body .sc-pop.idm-mini.idm-open { width: 290px !important; max-width: calc(100vw - 36px) !important; }
@media (max-width: 640px) { html body .sc-pop.idm-mini { right: 10px !important; bottom: 80px !important; } html body .sc-pop.idm-mini.idm-open { width: min(290px, calc(100vw - 20px)) !important; } }

/* Hero: the slides share one grid cell, so the slider is one panel tall (not nine stacked slides with blank space) */
html body #idmShow .hs-in { display: grid !important; grid-template-columns: 1fr; }
html body #idmShow .hs-slide { grid-area: 1 / 1 !important; margin: 0 !important; transform: none; }
html body #idmShow .hs-slide:not(.on) { visibility: hidden; pointer-events: none; }

/* Hero: remove the diagonal gradient stripe across the slider (16 Nov 2026) */
html body #idmShow::before, html body #idmShow::after, html body section.hs::before, html body section.hs::after { display: none !important; content: none !important; }

/* Hero: remove the large slide number that sat behind the heading */
html body .hs .hs-big, html body #idmShow .hs-big, html body #idmShow .hs-slide .hs-big { display: none !important; }

/* Home page partners: one moving line that stops while the pointer is over it */
#proPartners .pp-viewport { overflow: hidden; padding: 12px 0 18px; }
#proPartners .pp-grid.pp-marquee {
  display: flex !important; flex-wrap: nowrap !important; grid-template-columns: none !important; width: max-content !important;
  gap: 18px !important; animation: ppMarquee 30s linear infinite; will-change: transform;
}
#proPartners .pp-grid.pp-marquee > .pp-card { flex: 0 0 240px !important; width: 240px !important; }
#proPartners .pp-viewport:hover .pp-grid.pp-marquee, #proPartners .pp-viewport:focus-within .pp-grid.pp-marquee { animation-play-state: paused; }
@keyframes ppMarquee { from { transform: translateX(0); } to { transform: translateX(calc(-7 * (240px + 18px))); } }
@media (prefers-reduced-motion: reduce) { #proPartners .pp-grid.pp-marquee { animation: none; } }

/* Main menu tabs: white tabs with a green outline and green names; green tab when current or hovered */
html body header nav.main > ul > li > button, html body header nav.main > ul > li > a {
  background: #ffffff !important; color: var(--idm-green-deep) !important; border: 1px solid var(--idm-green) !important;
  border-radius: 999px !important; padding: 7px 13px !important; margin: 0 2px; display: inline-block;
  transition: background .15s ease, color .15s ease;
}
html body header nav.main > ul > li > button *, html body header nav.main > ul > li > a * { color: inherit !important; }
html body header nav.main > ul > li > button:hover, html body header nav.main > ul > li > button:focus-visible, html body header nav.main > ul > li.cur > button, html body header nav.main > ul > li.open > button,
html body header nav.main > ul > li > a:hover, html body header nav.main > ul > li.cur > a {
  background: var(--idm-green) !important; color: #ffffff !important;
}
