/* ==========================================================================
   The Connect homepage (landing_template 'connect', October 2026)
   --------------------------------------------------------------------------
   Royal blue and sunshine yellow, after the second approved board: a white
   header, a deep-blue hero with the globe ringed by members, a white counted
   strip, eight feature tiles in their own colours, the news / event /
   chapters row, and a hands-together closing band.

   Scoped to body.nuh-connect (set by index.php only while this design is the
   homepage). Colours hang off the theme engine's tokens with the Connect
   preset's values as literal fallbacks — pick "Connect — sunshine yellow and
   royal blue" in Site Settings → Theme for the board's palette.

   CONTRAST. Yellow carries NAVY text (7.5:1), never white. Muted text is the
   ink mixed 70% with white: 5.4:1 on white, 5.0:1 on the page ground. The
   tile colours are the deeper shades of each hue, so their white icons
   clear the 3:1 non-text minimum (the board's lighter oranges do not).
   ========================================================================== */

body.nuh-connect {
    --cx-blue: var(--nuh-blue, #1557d0);
    --cx-blue-deep: var(--nuh-blue-deep, #0d3885);
    --cx-ink: var(--nuh-ink, #0a2a64);
    --cx-night: color-mix(in srgb, var(--cx-ink) 72%, #000);
    --cx-yellow: var(--nuh-orange, #f5b400);
    --cx-yellow-hi: color-mix(in srgb, var(--cx-yellow) 72%, #fff3b8);
    --cx-text: color-mix(in srgb, var(--cx-ink) 88%, #fff);
    --cx-muted: color-mix(in srgb, var(--cx-ink) 70%, #fff);
    --cx-line: color-mix(in srgb, var(--cx-blue) 14%, transparent);
    --cx-bg: #f4f7fc;
    --cx-radius: 16px;
    --cx-font: var(--nuh-font-head, 'Poppins', 'Inter', sans-serif);
    --cx-body: 'Inter', system-ui, sans-serif;
    --cx-shadow-sm: 0 1px 2px rgba(10, 42, 100, 0.05), 0 8px 22px -14px rgba(10, 42, 100, 0.28);
    --cx-shadow: 0 2px 6px rgba(10, 42, 100, 0.06), 0 22px 48px -22px rgba(10, 42, 100, 0.38);
    background: var(--cx-bg);
}

/* --- Header: white, the board's blue Register button ----------------------
   body.ui3.nuh-connect, one class up on ui.css (which loads after this). */
body.ui3.nuh-connect .ui-pubbar { background: #fff; box-shadow: 0 1px 0 var(--cx-line), 0 6px 20px -16px rgba(10, 42, 100, 0.4); }
body.ui3.nuh-connect .ui-pubnav__link { color: var(--cx-ink); }
body.ui3.nuh-connect .ui-pubnav__link.is-current {
    background: transparent;
    color: var(--cx-blue);
    border-radius: 0;
    box-shadow: inset 0 -3px 0 var(--cx-blue);
}
body.ui3.nuh-connect .ui-pubbar .ui-btn--brand,
body.ui3.nuh-connect .ui-pubbar .ui-btn--brand:hover { background: var(--cx-blue); color: #fff; }
body.ui3.nuh-connect .ui-pubbar .ui-btn--brand:hover { background: var(--cx-blue-deep); }
body.nuh-connect main.page { padding-top: 0; }

/* --- Page frame ------------------------------------------------------------- */
body.nuh-connect .cx-page { color: var(--cx-text); font-family: var(--cx-body); overflow-x: clip; }
body.nuh-connect .cx-wrap { width: min(100% - 2 * clamp(16px, 4vw, 40px), 1240px); margin-inline: auto; }
body.nuh-connect .cx-sec { padding-block: clamp(22px, 3.2vw, 40px); }
body.nuh-connect .cx-page :is(h1, h2, h3) { text-wrap: balance; }
body.nuh-connect .cx-page :focus-visible { outline: 3px solid var(--cx-yellow); outline-offset: 3px; border-radius: 6px; }
body.nuh-connect .cx-kicker {
    margin: 0 0 0.6rem;
    color: var(--cx-blue);
    font: 600 0.75rem/1.3 var(--cx-body);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
body.nuh-connect .cx-kicker--light { color: rgba(255, 255, 255, 0.86); }
body.nuh-connect .cx-h2 { margin: 0 0 0.4rem; color: var(--cx-ink); font: 700 clamp(1.45rem, 2.3vw, 2rem)/1.2 var(--cx-font); }
body.nuh-connect .cx-h3 { margin: 0; color: var(--cx-ink); font: 700 1.2rem/1.3 var(--cx-font); }
body.nuh-connect .cx-lede { margin: 0; color: var(--cx-muted); font-size: 0.98rem; line-height: 1.6; }
body.nuh-connect .cx-head { margin-bottom: 1.3rem; }
body.nuh-connect .cx-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; }
body.nuh-connect .cx-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cx-blue);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
body.nuh-connect .cx-more .icon { width: 16px; height: 16px; transition: transform 0.2s; }
body.nuh-connect .cx-more:hover .icon { transform: translateX(3px); }

/* --- Buttons ---------------------------------------------------------------- */
body.nuh-connect .cx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    min-height: 44px;
    padding: 0 1.3em;
    border: 1px solid transparent;
    border-radius: var(--nuh-btn-radius, 10px);
    font: 600 0.92rem/1.1 var(--cx-body);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, background-color 0.18s, border-color 0.18s;
}
body.nuh-connect .cx-btn .icon { width: 18px; height: 18px; flex: none; }
body.nuh-connect .cx-btn--lg { min-height: 52px; padding: 0 1.6em; font-size: 1rem; }
body.nuh-connect .cx-btn--yellow {
    background: linear-gradient(180deg, var(--cx-yellow-hi), var(--cx-yellow));
    color: var(--cx-ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 24px -12px color-mix(in srgb, var(--cx-yellow) 90%, #000);
}
body.nuh-connect .cx-btn--yellow:hover { transform: translateY(-2px); color: var(--cx-ink); }
body.nuh-connect .cx-btn--ghost { border-color: rgba(255, 255, 255, 0.8); background: rgba(3, 15, 51, 0.3); color: #fff; }
body.nuh-connect .cx-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.14); color: #fff; }

/* --- Hero ------------------------------------------------------------------- */
body.nuh-connect .cx-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(36px, 5.5vw, 72px) clamp(40px, 5vw, 64px);
    background: var(--cx-night);
    color: #fff;
}
body.nuh-connect .cx-hero__media { position: absolute; inset: 0; z-index: -2; }
body.nuh-connect .cx-hero__media > :is(img, svg) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.nuh-connect .cx-hero--photo .cx-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 15, 51, 0.92), rgba(8, 42, 110, 0.72) 45%, rgba(17, 80, 180, 0.45));
}
body.nuh-connect .cx-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.95fr) minmax(0, 0.55fr);
    align-items: center;
    gap: clamp(16px, 2.4vw, 32px);
}
body.nuh-connect .cx-hero__title {
    margin: 0 0 0.6em;
    color: #fff;
    font: 700 clamp(1.9rem, 3vw, 2.75rem)/1.14 var(--cx-font);
    letter-spacing: -0.015em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
body.nuh-connect .cx-accent { color: var(--cx-yellow); }
body.nuh-connect .cx-hero__sub { max-width: 36em; margin: 0; color: rgba(255, 255, 255, 0.9); font-size: clamp(0.98rem, 1.1vw, 1.06rem); line-height: 1.65; }
body.nuh-connect .cx-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }
/* "Watch us on YouTube" under the buttons: a quiet link, 44px tall for a thumb. */
body.nuh-connect .cx-yt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 0.6rem; color: #fff; font-weight: 600; text-decoration: none; }
body.nuh-connect .cx-yt .icon { width: 1.35rem; height: 1.35rem; color: #ff4e45; }
body.nuh-connect .cx-yt:hover, body.nuh-connect .cx-yt:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
body.nuh-connect .cx-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 1.8rem 0 0; padding: 0; list-style: none; font-size: 0.9rem; font-weight: 600; }
body.nuh-connect .cx-trust li { display: inline-flex; align-items: center; gap: 8px; }
body.nuh-connect .cx-trust .icon { width: 22px; height: 22px; color: #fff; }

body.nuh-connect .cx-hero__visual { display: grid; place-items: center; }
body.nuh-connect .cx-globe { position: relative; width: min(100%, 540px); aspect-ratio: 1; }
body.nuh-connect .cx-globe > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
body.nuh-connect .cx-art--orbits { transform: scale(1.06); }
body.nuh-connect .cx-globe__mark {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 6px;
    text-align: center;
    pointer-events: none;
}
body.nuh-connect .cx-globe__mark img,
body.nuh-connect .cx-globe__mark .cx-globe__emblem { width: clamp(46px, 6vw, 72px); height: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45)); }
body.nuh-connect .cx-globe__mark span {
    max-width: 11ch;
    color: #fff;
    font: 800 clamp(1.15rem, 2.2vw, 1.9rem)/1.05 var(--cx-font);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: 0 2px 16px rgba(0, 18, 64, 0.85), 0 0 2px rgba(0, 18, 64, 0.9);
}
body.nuh-connect .cx-face {
    position: absolute;
    width: clamp(40px, 4.6vw, 62px);
    aspect-ratio: 1;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.55);
    transform: translate(-50%, -50%);
}
body.nuh-connect .cx-face svg { display: block; width: 100%; height: 100%; }
/* Photographs in the faces (includes/home-faces.php): cropped round, the face
   kept in frame by the stored focus point; the next face fades in over the
   last when they take turns (assets/js/global.js). */
body.nuh-connect .cx-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.nuh-connect .cx-face img.is-incoming { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
body.nuh-connect .cx-face img.is-in { opacity: 1; }


body.nuh-connect .cx-hero__card {
    align-self: center;
    padding: 22px 22px 20px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--cx-radius);
    background: rgba(13, 56, 133, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.6);
}
body.nuh-connect .cx-card__title { margin: 0 0 14px; color: #fff; font: 600 1.12rem/1.35 var(--cx-font); }
body.nuh-connect .cx-hero__card ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 0.92rem; }
body.nuh-connect .cx-hero__card li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.95); }
body.nuh-connect .cx-hero__card .icon { width: 20px; height: 20px; flex: none; color: var(--cx-yellow); }

/* --- The living globe (assets/js/globe.js) ----------------------------------
   The canvas lies exactly over the drawn globe and takes over once its first
   frame is drawn (.has-live-globe); until then — or without JavaScript — the
   drawing shows. Sideways drags spin it; touch-action keeps vertical swipes
   scrolling the page on a phone. */
body.nuh-connect .g-globe-live { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
body.nuh-connect .g-globe-live.is-dragging { cursor: grabbing; }
body.nuh-connect .has-live-globe > svg.g-art--globe { visibility: hidden; }
body.nuh-connect .g-globe-toggle {
    position: absolute;
    right: 3%;
    bottom: 3%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: rgba(4, 14, 40, 0.6);
    color: #fff;
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background-color 0.2s, transform 0.2s;
}
body.nuh-connect .g-globe-toggle:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.05); }
body.nuh-connect .g-globe-toggle:focus-visible { outline: 3px solid #ffd27a; outline-offset: 3px; }
body.nuh-connect .g-globe-toggle svg { width: 20px; height: 20px; }
/* Paused from the globe's button: nothing around it moves either. */
body.nuh-connect .cx-globe.is-paused .cx-face,
body.nuh-connect .cx-globe.is-paused .cx-art--orbits { animation-play-state: paused; }

/* --- Counted strip ---------------------------------------------------------- */
body.nuh-connect .cx-sec--stats { padding: 0; background: #fff; box-shadow: 0 1px 0 var(--cx-line); }
body.nuh-connect .cx-stats {
    display: grid;
    grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr));
    margin: 0;
    padding: 22px 0;
    list-style: none;
}
body.nuh-connect .cx-stats li { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 12px; }
body.nuh-connect .cx-stats li + li::before { content: ''; position: absolute; top: 10%; bottom: 10%; left: 0; width: 1px; background: var(--cx-line); }
body.nuh-connect .cx-stats__icon { color: var(--cx-blue); }
body.nuh-connect .cx-stats__icon .icon { width: 40px; height: 40px; stroke-width: 1.5; }
body.nuh-connect .cx-stats__text { display: grid; }
body.nuh-connect .cx-stats strong { color: var(--cx-ink); font: 700 1.55rem/1.1 var(--cx-font); }
body.nuh-connect .cx-stats__text span { color: var(--cx-muted); font-size: 0.85rem; }

/* --- Feature tiles ---------------------------------------------------------- */
body.nuh-connect .cx-features {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
/* Tamil and Hindi words are long; eight across would break them mid-word, so they get four. */
body.nuh-connect .cx-features:is(:lang(ta), :lang(hi)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.nuh-connect .cx-feature { --tone: #1d4ed8; }
body.nuh-connect .cx-feature--blue { --tone: #1d4ed8; }
body.nuh-connect .cx-feature--green { --tone: #15803d; }
body.nuh-connect .cx-feature--orange { --tone: #ea580c; }
body.nuh-connect .cx-feature--purple { --tone: #7c3aed; }
body.nuh-connect .cx-feature--sky { --tone: #0369a1; }
body.nuh-connect .cx-feature--pink { --tone: #db2777; }
body.nuh-connect .cx-feature--teal { --tone: #0f766e; }
body.nuh-connect .cx-feature--amber { --tone: #c2410c; }
body.nuh-connect .cx-feature__in {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 20px 10px 16px;
    border: 1px solid var(--cx-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--cx-shadow-sm);
    color: inherit;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
body.nuh-connect a.cx-feature__in:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--tone) 45%, transparent); box-shadow: var(--cx-shadow); }
body.nuh-connect .cx-feature__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--tone);
    box-shadow: 0 10px 20px -10px var(--tone);
    color: #fff;
}
body.nuh-connect .cx-feature__icon .icon { width: 28px; height: 28px; stroke-width: 1.7; }
body.nuh-connect .cx-feature strong { color: var(--cx-ink); font: 600 0.92rem/1.25 var(--cx-font); }
body.nuh-connect .cx-feature__sub { color: var(--cx-muted); font-size: 0.76rem; line-height: 1.35; }
body.nuh-connect .cx-feature__go {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-top: auto;
    border-radius: 50%;
    background: var(--tone);
    color: #fff;
}
body.nuh-connect .cx-feature__go .icon { width: 14px; height: 14px; stroke-width: 2.2; }

/* --- News · event · chapters ------------------------------------------------ */
body.nuh-connect .cx-updates {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}
body.nuh-connect .cx-col { min-width: 0; }
body.nuh-connect .cx-col--news,
body.nuh-connect .cx-col--chapters {
    padding: 18px 18px 10px;
    border: 1px solid var(--cx-line);
    border-radius: var(--cx-radius);
    background: #fff;
    box-shadow: var(--cx-shadow-sm);
}
body.nuh-connect .cx-col__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
body.nuh-connect .cx-col__empty { margin: 10px 0; color: var(--cx-muted); font-size: 0.9rem; line-height: 1.55; }
body.nuh-connect .cx-col--chapters { display: flex; flex-direction: column; }
body.nuh-connect .cx-invite {
    display: grid;
    gap: 8px;
    margin: auto 0 8px;
    padding: 14px 16px;
    border: 1px dashed color-mix(in srgb, var(--cx-blue) 35%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--cx-yellow) 10%, #fff);
}
body.nuh-connect .cx-invite p { margin: 0; color: var(--cx-text); font-size: 0.88rem; line-height: 1.5; }
body.nuh-connect .cx-invite .cx-more { justify-self: start; white-space: normal; }
body.nuh-connect .cx-feed,
body.nuh-connect .cx-chapters { margin: 0; padding: 0; list-style: none; }
body.nuh-connect .cx-feed li + li,
body.nuh-connect .cx-chapters li + li { border-top: 1px solid var(--cx-line); }
body.nuh-connect .cx-feed a { display: flex; align-items: center; gap: 12px; padding: 11px 0; color: inherit; text-decoration: none; }
body.nuh-connect .cx-feed__thumb {
    display: grid;
    place-items: center;
    flex: none;
    width: 84px;
    height: 58px;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cx-blue-deep), var(--cx-blue));
    color: #fff;
}
body.nuh-connect .cx-feed__thumb--threads { background: linear-gradient(135deg, #7c3aed, var(--cx-blue)); }
body.nuh-connect .cx-feed__thumb img { width: 100%; height: 100%; object-fit: cover; }
body.nuh-connect .cx-feed__thumb .icon { width: 26px; height: 26px; }
body.nuh-connect .cx-feed__text { display: grid; gap: 3px; min-width: 0; flex: 1; }
body.nuh-connect .cx-feed__text time { color: var(--cx-muted); font-size: 0.76rem; }
body.nuh-connect .cx-feed__text strong { color: var(--cx-ink); font-size: 0.9rem; line-height: 1.35; }
body.nuh-connect .cx-feed__go,
body.nuh-connect .cx-chapters__go { flex: none; color: var(--cx-ink); }
body.nuh-connect .cx-feed__go .icon,
body.nuh-connect .cx-chapters__go .icon { width: 18px; height: 18px; }
body.nuh-connect .cx-feed a:hover strong,
body.nuh-connect .cx-chapters a:hover strong { color: var(--cx-blue); }

body.nuh-connect .cx-event {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
    border-radius: var(--cx-radius);
    background: var(--cx-night);
    box-shadow: var(--cx-shadow);
    color: #fff;
}
body.nuh-connect .cx-event__media {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--cx-yellow) 55%, transparent), transparent 45%),
        linear-gradient(150deg, var(--cx-night), var(--cx-blue));
    color: rgba(255, 255, 255, 0.85);
}
body.nuh-connect .cx-event__media::before {
    content: '';
    position: absolute;
    inset: -10%;
    background: #fff;
    opacity: 0.14;
    -webkit-mask: url('../img/world-dots.svg') center / cover no-repeat;
    mask: url('../img/world-dots.svg') center / cover no-repeat;
}
body.nuh-connect .cx-event__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.nuh-connect .cx-event__media .icon { position: relative; width: 74px; height: 74px; margin-bottom: 90px; stroke-width: 1.2; }
body.nuh-connect .cx-event__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--cx-yellow);
    color: var(--cx-ink);
    font-size: 0.78rem;
    font-weight: 700;
}
body.nuh-connect .cx-event__panel {
    display: flex;
    background: linear-gradient(0deg, rgba(3, 15, 51, 0.95), rgba(8, 42, 110, 0.88));
}
body.nuh-connect .cx-event__date {
    display: grid;
    place-content: center;
    flex: none;
    width: 88px;
    padding: 14px 0;
    background: var(--cx-blue);
    color: #fff;
    text-align: center;
    line-height: 1.1;
}
body.nuh-connect .cx-event__date strong { font: 700 2rem/1 var(--cx-font); }
body.nuh-connect .cx-event__date span { font-weight: 700; }
body.nuh-connect .cx-event__date small { font-size: 0.8rem; opacity: 0.9; }
body.nuh-connect .cx-event__body { display: grid; gap: 6px; min-width: 0; padding: 14px 16px 16px; }
body.nuh-connect .cx-event__title { margin: 0; color: #fff; font: 700 1.2rem/1.25 var(--cx-font); }
body.nuh-connect .cx-event__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; color: rgba(255, 255, 255, 0.88); font-size: 0.85rem; }
body.nuh-connect .cx-event__meta span { display: inline-flex; align-items: center; gap: 5px; }
body.nuh-connect .cx-event__meta .icon { width: 15px; height: 15px; }
body.nuh-connect .cx-event__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
body.nuh-connect .cx-event__people { display: inline-flex; align-items: center; gap: 10px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.9); }
body.nuh-connect .cx-event__faces { display: inline-flex; }
body.nuh-connect .cx-event__faces span { width: 30px; height: 30px; margin-left: -8px; overflow: hidden; border: 2px solid #fff; border-radius: 50%; }
body.nuh-connect .cx-event__faces span:first-child { margin-left: 0; }
body.nuh-connect .cx-event__faces svg { display: block; width: 100%; height: 100%; }
body.nuh-connect .cx-event--empty { justify-content: center; gap: 14px; padding: 60px 24px 24px; background: linear-gradient(150deg, var(--cx-night), var(--cx-blue)); }
body.nuh-connect .cx-event--empty p { margin: 0; color: rgba(255, 255, 255, 0.9); line-height: 1.6; }
body.nuh-connect .cx-event--empty .cx-btn { align-self: flex-start; }

body.nuh-connect .cx-chapters a { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: inherit; text-decoration: none; }
body.nuh-connect .cx-chapters strong { flex: 1; min-width: 0; color: var(--cx-ink); font-size: 0.95rem; }
body.nuh-connect .cx-chapters a > span:not(.cx-chapters__go):not(.cx-flag) { color: var(--cx-muted); font-size: 0.85rem; white-space: nowrap; }
body.nuh-connect .cx-chapters__go { color: var(--cx-blue); }
body.nuh-connect .cx-flag { flex: none; width: 34px; height: 23px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(10, 42, 100, 0.12); }
body.nuh-connect .cx-flag--code {
    display: inline-grid;
    place-items: center;
    background: color-mix(in srgb, var(--cx-blue) 10%, #fff);
    color: var(--cx-blue-deep);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* --- Closing band ----------------------------------------------------------- */
body.nuh-connect .cx-cta {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 1fr);
    margin-top: clamp(22px, 3.2vw, 40px);
    overflow: hidden;
    background: linear-gradient(110deg, var(--cx-blue-deep), var(--cx-blue) 70%, color-mix(in srgb, var(--cx-blue) 70%, #3aa0ff));
    color: #fff;
}
body.nuh-connect .cx-cta__media { position: relative; min-height: 220px; }
body.nuh-connect .cx-cta__media > :is(img, svg) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.nuh-connect .cx-cta__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 55%, var(--cx-blue-deep));
}
body.nuh-connect .cx-cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 24px;
    padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 56px);
}
body.nuh-connect .cx-cta__title { margin: 0 0 0.5rem; color: #fff; font: 700 clamp(1.4rem, 2.3vw, 1.9rem)/1.2 var(--cx-font); }
body.nuh-connect .cx-cta__copy p { margin: 0 0 1.2rem; color: rgba(255, 255, 255, 0.9); line-height: 1.6; }
body.nuh-connect .cx-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; text-align: center; }
body.nuh-connect .cx-values li { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 6px 10px; }
body.nuh-connect .cx-values li + li::before { content: ''; position: absolute; top: 8%; bottom: 8%; left: 0; width: 1px; background: rgba(255, 255, 255, 0.25); }
body.nuh-connect .cx-values__icon .icon { width: 42px; height: 42px; stroke-width: 1.4; color: #fff; }
body.nuh-connect .cx-values strong { font: 600 1rem/1.2 var(--cx-font); }
body.nuh-connect .cx-values span:last-child { color: rgba(255, 255, 255, 0.85); font-size: 0.8rem; }

/* --- CMS blocks between sections ------------------------------------------- */
body.nuh-connect .cx-sec--block > .cx-wrap { padding: clamp(20px, 3vw, 36px); border-radius: var(--cx-radius); background: #fff; box-shadow: var(--cx-shadow-sm); }

/* --- The film dialog (global.js builds it; its rules live in global.css, which
       this page does not load, so the essentials are restated here) ------------ */
body.nuh-connect .g-video { width: min(92vw, 960px); padding: 0; border: 0; border-radius: 16px; background: #000; }
body.nuh-connect .g-video::backdrop { background: rgba(3, 15, 51, 0.82); }
body.nuh-connect .g-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
body.nuh-connect .g-video__close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--cx-ink); cursor: pointer; }
body.nuh-connect .g-video__close .icon { width: 20px; height: 20px; }

/* --- Motion ----------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    body.nuh-connect .cx-page.g-js [data-g-reveal] {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
        transition-delay: calc(var(--i, 0) * 60ms);
    }
    body.nuh-connect .cx-page.g-js [data-g-reveal].is-in { opacity: 1; transform: none; }
    body.nuh-connect .cx-face { animation: cx-bob 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.8s); }
    body.nuh-connect .g-art__arcs path { stroke-dasharray: 5 7; animation: cx-flow 5s linear infinite; }
    body.nuh-connect .cx-art--orbits { animation: cx-turn 90s linear infinite; transform-origin: 50% 50%; }
}
@keyframes cx-bob { 50% { transform: translate(-50%, calc(-50% - 6px)); } }
@keyframes cx-flow { to { stroke-dashoffset: -48; } }
@keyframes cx-turn { from { transform: scale(1.06) rotate(0deg); } to { transform: scale(1.06) rotate(360deg); } }

/* --- Narrower screens ------------------------------------------------------- */
@media (max-width: 1180px) {
    body.nuh-connect .cx-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
    body.nuh-connect .cx-hero__card { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; align-items: center; }
    body.nuh-connect .cx-hero__card .cx-card__title { margin: 0; }
    body.nuh-connect .cx-hero__card ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.nuh-connect .cx-features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    body.nuh-connect .cx-updates { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    body.nuh-connect .cx-col--event { grid-column: 1 / -1; grid-row: 1; }
    body.nuh-connect .cx-cta__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
    body.nuh-connect .cx-hero__grid { grid-template-columns: minmax(0, 1fr); }
    body.nuh-connect .cx-hero__visual { order: -1; }
    body.nuh-connect .cx-globe { width: min(86vw, 420px); }
    body.nuh-connect .cx-hero__card { grid-template-columns: minmax(0, 1fr); }
    body.nuh-connect .cx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
    body.nuh-connect .cx-stats li { justify-content: flex-start; }
    body.nuh-connect .cx-stats li::before { display: none; }
    body.nuh-connect .cx-stats li:last-child:nth-child(odd) { grid-column: 1 / -1; }
    body.nuh-connect .cx-updates { grid-template-columns: minmax(0, 1fr); }
    body.nuh-connect .cx-cta { grid-template-columns: minmax(0, 1fr); }
    body.nuh-connect .cx-cta__media { min-height: 180px; }
    body.nuh-connect .cx-cta__media::after { background: linear-gradient(180deg, transparent 50%, var(--cx-blue-deep)); }
}
@media (max-width: 560px) {
    body.nuh-connect .cx-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    body.nuh-connect .cx-hero__ctas .cx-btn { flex: 1 1 100%; }
    body.nuh-connect .cx-hero__card ul { grid-template-columns: minmax(0, 1fr); }
    body.nuh-connect .cx-values { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
    body.nuh-connect .cx-values li:nth-child(3)::before { display: none; }
}
