/* ============================================================================
   DNCG Pathways — Single Subject Area page
   ----------------------------------------------------------------------------
   Phase 3 reskin. Ported from the approved subject-area prototype
   (design-export/subject-area/subject-area.dc.html). ONE definition per
   component; no layered corrections.

   Colour is ALWAYS a base-theme token (var(--token)); the six child themes
   supply the brand values, so this one file renders correctly on every site.
   No hex, rgb(), hsl() or named colours live here — literal colour is a bug.

   Header / footer / on-page nav are the shared theme chrome (header.php,
   parts/repeats/*, base.css) and are deliberately NOT styled here.

   Preserved JS-state hooks (dncg-public-scripts.js + inline handlers):
     .filter-accordion-toggle.is-active / .filter-accordion-content.is-open
     .dncg-filter-sidebar.is-open / body.filter-sidebar-open / .filter-sidebar-overlay
     .requirements-content (inline display toggle) / .requirements-toggle[aria-expanded]
     .dncg-course-radio:checked / .dncg-course-option.dncg-filtered
     .dncg-level-row.dncg-empty-level / .dncg-lightbox-open
     .dncg-video-slide.is-active / .dncg-carousel-dot.is-active
   ========================================================================== */

.dncg-subject-area-wrapper *,
.dncg-subject-area-wrapper *::before,
.dncg-subject-area-wrapper *::after { box-sizing: border-box; }

.dncg-subject-area-wrapper {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Anchor scroll offset so the sticky on-page nav never covers a heading. */
.dncg-subject-area-wrapper section[id] { scroll-margin-top: 96px; }

/* On-page nav: keep only the full "Content on this page" list. The theme's
   collapsed dark bar (.course-page-nav__compact) doubles up on this template,
   so it is suppressed here (the light list is sticky on its own). */
.dncg-subject-area-wrapper .course-page-nav__compact { display: none; }

/* ---- Containers ---------------------------------------------------------- */
.dncg-container {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--page-gutter);
}
.dncg-container-wide { max-width: var(--page-width); }

/* ---- Typography defaults ------------------------------------------------- */
.dncg-subject-area-wrapper h1,
.dncg-subject-area-wrapper h2,
.dncg-subject-area-wrapper h3,
.dncg-subject-area-wrapper h4,
.dncg-subject-area-wrapper h5,
.dncg-subject-area-wrapper h6 {
    margin: 0 0 var(--gap-grid);
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    letter-spacing: var(--display-track);
    line-height: var(--display-lh);
    color: var(--text-heading);
}
.dncg-subject-area-wrapper em { font-style: var(--em-style); font-weight: var(--em-weight); color: var(--em-color); }
.dncg-subject-area-wrapper strong { color: var(--strong-color); }
.dncg-subject-area-wrapper p { margin: 0 0 1rem; }
.dncg-subject-area-wrapper a { color: var(--link); }
.dncg-subject-area-wrapper a:hover { color: var(--link-hover); }

/* ---- Shared section head + eyebrow --------------------------------------- */
/* An eyebrow is a small uppercase label led by the group tri-colour rule.
   .dncg-eyebrow can wrap the rule + text, or a bare heading gets the rule via
   .dncg-section-head. */
.dncg-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 .8rem;
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    font-family: var(--font-body);
}
.dncg-eyebrow::before {
    content: "";
    width: 28px;
    height: 4px;
    flex: 0 0 auto;
    background: var(--rule-tri);
}
/* Eyebrow that sits on a dark band */
.dncg-on-dark .dncg-eyebrow,
.dncg-eyebrow--on-dark { color: var(--accent-on-dark); }

.dncg-section-title {
    font-size: clamp(2rem, 3.4vw, 2.875rem);
    max-width: 24ch;
}
.dncg-section-intro {
    font-size: 1.3125rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: var(--measure);
    margin: .9rem 0 0;
}

/* ============================================================================
   HERO
   ========================================================================== */
.dncg-hero-section {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--page-title-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* Brand tint over the campus photography (hybrid model: hero structure is
   brand, the subject colour returns as the headline accent). */
.dncg-hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(var(--tint-rgb), .94) 0%, rgba(var(--tint-rgb), .66) 100%);
    z-index: 1;
    pointer-events: none;
}
.dncg-hero-content { position: relative; z-index: 2; padding: 3.6rem 0 3.2rem; }
/* padding-inline-start clears an overhanging site logo (--logo-clear, defined in
   the theme's tokens.css: 0 for every brand but UCNL, and 0 below 64em on UCNL
   too). The subject-area hero is the first thing under the header. Scoped to the
   hero so it beats the bare .dncg-container rule wherever that is redefined. */
.dncg-hero-section .dncg-container { padding-inline-start: calc(var(--page-gutter) + var(--logo-clear)); }

.dncg-hero-eyebrow { color: var(--page-title-eyebrow); margin-bottom: 1rem; }
.dncg-hero-eyebrow::before { background: var(--rule-tri); }

/* Scoped under .dncg-hero-section so the white band colour beats the
   .dncg-subject-area-wrapper h1..h6 reset (which would otherwise paint the
   headline in the dark --text-heading and vanish against the tinted photo). */
.dncg-hero-section .dncg-hero-headline {
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    font-size: clamp(2.6rem, 5vw, 4.25rem);
    line-height: var(--display-lh-hero);
    letter-spacing: var(--display-track-hero);
    color: var(--page-title-fg);
    max-width: 20ch;
    margin: 0 0 1.2rem;
}
.dncg-hero-headline .rotation-wrapper { display: inline; }
/* The subject name — the per-subject accent (colour-theming.php sets
   --dncg-theme-primary; falls back to the on-band emphasis token). */
.dncg-hero-section .dncg-hero-headline .subject-highlight {
    display: inline;
    color: var(--dncg-theme-primary, var(--page-title-em));
    background: none;
    box-shadow: none;
    padding: 0;
}
.dncg-hero-intro {
    max-width: 58ch;
    margin: 0;
    font-size: 1.3125rem;
    line-height: 1.6;
    color: var(--page-title-muted);
}
.dncg-hero-intro p { margin: 0; }

/* Video hero — text + portrait/landscape video, two columns on desktop. */
.dncg-hero-video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.8rem;
    align-items: center;
}
.dncg-hero-video-wrapper { position: relative; z-index: 2; }
.dncg-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--page-title-border);
}
.dncg-video-wrapper > * {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

@media (min-width: 900px) {
    .dncg-hero-content { padding: 4.4rem 0 4rem; }
    .dncg-hero-video-grid { grid-template-columns: 1.25fr 1fr; gap: 3.4rem; }
    .dncg-hero-content-column { order: 1; }
    .dncg-hero-video-column { order: 2; }
}

/* ============================================================================
   FEATURES  ·  "Why Choose Us"
   ========================================================================== */
.dncg-features-section {
    padding: var(--space-section-sm) 0;
    background: var(--white);
    position: relative;
    overflow: visible;
}
.dncg-features-section .dncg-section-head { margin-bottom: 2rem; }

.dncg-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.2rem;
    align-items: start;
}
@media (min-width: 700px) {
    .dncg-features-grid.dncg-no-testimonial { grid-template-columns: 1fr 1fr; }
    .dncg-features-grid.dncg-testimonial-no-image,
    .dncg-features-grid.dncg-testimonial-with-image { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
    .dncg-features-grid.dncg-testimonial-no-image,
    .dncg-features-grid.dncg-testimonial-with-image { grid-template-columns: 1fr 1fr 1fr; }
}

/* Feature cards are structural, not boxed — the prototype uses light column
   cards with a coloured left edge on the reasons list. */
.dncg-feature-card { background: transparent; position: relative; }
.dncg-feature-card > h3 {
    font-size: 1.75rem;
    line-height: 1.1;
    margin-bottom: 1.1rem;
}

/* Reasons list ("What Makes Us Different") */
.dncg-feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.dncg-feature-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .85rem;
    align-items: start;
    padding: .2rem 0 .2rem 1.1rem;
    border-left: var(--card-edge) solid var(--accent);
}
.dncg-feature-item:nth-child(5n+2) { border-left-color: var(--em-color); }
.dncg-feature-item:nth-child(5n+3) { border-left-color: var(--aud-students); }
.dncg-feature-item:nth-child(5n+4) { border-left-color: var(--aud-employers); }
.dncg-feature-item:nth-child(5n+5) { border-left-color: var(--aud-advisers); }
.dncg-bullet { display: flex; align-items: flex-start; justify-content: center; padding-top: .15rem; }
.dncg-emoji { font-size: 1.6rem; line-height: 1; display: block; }
.dncg-checkmark { color: var(--aud-advisers); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.dncg-content { display: flex; flex-direction: column; gap: .25rem; }
.dncg-heading { font-family: var(--font-display); font-weight: 700; font-size: 1.44rem; line-height: 1.12; color: var(--ink); }
.dncg-description { font-size: 1.1rem; line-height: 1.55; color: var(--muted); }
.dncg-feature-item.legacy .dncg-description { color: var(--ink); }

/* Experience card ("Real Experience, Real Results") */
.dncg-experience-card { display: flex; flex-direction: column; gap: 1rem; }
.dncg-experience-card p { font-size: 1.1rem; line-height: 1.65; color: var(--ink); }
.dncg-highlight-stat {
    background: var(--light);
    border-left: var(--card-edge) solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.1rem 1.3rem;
    font-size: 1.1rem;
    color: var(--ink);
}
.dncg-highlight-stat strong { color: var(--text-heading); }
.dncg-cta-button {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--btn-primary-bg); color: var(--btn-primary-text);
    padding: .8rem 1.6rem; border-radius: var(--radius-pill);
    text-decoration: none; font-weight: 700; font-size: 1.1rem;
    transition: background var(--transition);
}
.dncg-cta-button:hover { background: var(--link-hover); color: var(--btn-primary-text); text-decoration: none; }

/* Testimonial ("Student Voice") — a navy card, quote + attribution. */
.dncg-testimonial-card {
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 1.6rem 1.7rem 1.8rem;
    align-self: start;
}
.dncg-testimonial-quote {
    margin: 0 0 1.1rem;
    font-size: 1.3125rem;
    line-height: 1.5;
    color: var(--white);
}
.dncg-testimonial-quote::before { content: "\201C"; }
.dncg-testimonial-quote::after { content: "\201D"; }
.dncg-testimonial-image { margin: 0 0 1rem; border-radius: var(--radius-sm); overflow: hidden; }
.dncg-testimonial-image img { display: block; width: 100%; height: auto; object-fit: cover; }
.dncg-testimonial-avatar-fallback {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--accent); color: var(--btn-accent-text);
    font-family: var(--font-display); font-weight: 800; font-size: 1.75rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 0 1rem;
}
.dncg-testimonial-attribution { font-family: var(--font-display); }
.dncg-testimonial-name { font-weight: 800; font-size: 1.3125rem; color: var(--white); line-height: 1.1; }
.dncg-testimonial-course { font-family: var(--font-body); font-weight: 400; font-size: 1.1rem; color: rgba(var(--on-dark-rgb), .75); margin-top: .2rem; }
.dncg-testimonial-additional { margin-top: 1rem; font-size: 1.1rem; color: rgba(var(--on-dark-rgb), .8); }
.dncg-testimonial-additional a { color: var(--accent-on-dark); }

/* ============================================================================
   FACILITIES  ·  split panels
   ========================================================================== */
.dncg-facilities-section {
    padding: var(--space-section-sm) 0;
    background: var(--light);
}
.dncg-facilities-header { margin-bottom: 2rem; max-width: 64ch; }
.dncg-facilities-header h2 { font-size: clamp(2rem, 3.4vw, 2.875rem); margin-bottom: .9rem; }
.dncg-facilities-header .dncg-section-intro { margin-top: 0; }

.dncg-facilities-wrapper { display: flex; flex-direction: column; gap: 1.6rem; }
.dncg-facility-item { position: relative; }

.dncg-facility-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: var(--card-edge) solid var(--accent);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.dncg-facility-item:nth-child(even) .dncg-facility-content-wrapper { border-top-color: var(--em-color); }
.dncg-facility-content-wrapper:hover { box-shadow: var(--shadow-md); }

.dncg-facility-image-container { position: relative; min-height: 300px; overflow: hidden; }
.dncg-facility-image { position: relative; width: 100%; height: 100%; }
.dncg-facility-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dncg-facility-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: repeating-linear-gradient(135deg, var(--ph-stripe-a) 0 9px, var(--ph-stripe-b) 9px 18px);
    color: var(--ph-ink); min-height: 300px;
}
.dncg-facility-placeholder svg { width: 48px; height: 48px; opacity: .6; }
.dncg-facility-image-overlay { position: absolute; inset: 0; background: rgba(var(--tint-rgb), .06); opacity: 0; transition: opacity var(--transition); }
.dncg-facility-content-wrapper:hover .dncg-facility-image-overlay { opacity: 1; }

.dncg-facility-content { display: flex; flex-direction: column; justify-content: center; padding: var(--pad-panel); }
.dncg-facility-title { font-size: 2rem; margin-bottom: .9rem; color: var(--text-heading); }
.dncg-facility-description { font-size: 1.1rem; line-height: 1.65; color: var(--ink); max-width: 62ch; }
.dncg-facility-description p { margin-bottom: 1rem; }
.dncg-facility-description p:last-child { margin-bottom: 0; }

@media (min-width: 800px) {
    .dncg-facility-content-wrapper { grid-template-columns: 1fr 1.25fr; }
    /* Alternate the image side: odd = image left, even = image right. */
    .dncg-facility-odd  .dncg-facility-image-container { order: 2; }
    .dncg-facility-odd  .dncg-facility-content { order: 1; }
    .dncg-facility-even .dncg-facility-image-container { order: 1; }
    .dncg-facility-even .dncg-facility-content { order: 2; }
}

/* ============================================================================
   CAREERS  ·  dark band, tiered cards
   ========================================================================== */
.dncg-careers-section {
    padding: var(--space-section-sm) 0;
    background: var(--navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.dncg-careers-section .dncg-container { position: relative; }
.dncg-careers-section h2 { color: var(--white); font-size: clamp(2rem, 3.4vw, 2.875rem); margin-bottom: .9rem; max-width: 66ch; }
.dncg-careers-section .dncg-section-intro { color: rgba(var(--on-dark-rgb), .82); margin: 0 0 2rem; }

.dncg-careers-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
@media (min-width: 780px) { .dncg-careers-grid { grid-template-columns: 1fr 1fr; } }

.dncg-career-card {
    display: flex; flex-direction: column; gap: .9rem;
    background: transparent;
    border: 1px solid rgba(var(--on-dark-rgb), .24);
    border-left: var(--card-edge) solid var(--accent-on-dark);
    border-radius: var(--radius-sm);
    padding: 1.8rem 1.9rem;
    color: var(--white);
    transition: border-color var(--transition), background var(--transition);
}
.dncg-career-card:hover { background: rgba(var(--on-dark-rgb), .04); }
.dncg-career-header { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
/* Scoped so the white beats the .dncg-subject-area-wrapper h1..h6 reset (else the
   h3 title paints in the dark --text-heading and vanishes on the navy card). */
.dncg-career-card .dncg-career-title { color: var(--white); font-size: 1.75rem; line-height: 1.1; margin: 0; }
.dncg-career-level {
    flex: 0 0 auto;
    font-family: var(--font-mono); font-size: var(--fs-mono);
    letter-spacing: .08em; text-transform: uppercase;
    /* Calibrated accent pair (guaranteed AA per brand). Raw --accent-on-dark as a
       badge ground with --navy text failed on some palettes (e.g. nlc ~3.8:1). */
    color: var(--btn-accent-text); background: var(--btn-accent-bg);
    padding: 5px 12px; border-radius: var(--radius-pill);
}
.dncg-career-content { display: flex; flex-direction: column; gap: .9rem; }
.dncg-career-description { font-size: 1.1rem; line-height: 1.6; color: rgba(var(--on-dark-rgb), .82); margin: 0; }
.dncg-career-stats {
    display: flex; gap: 2.2rem;
    border-top: 1px solid rgba(var(--on-dark-rgb), .24);
    padding-top: 1rem; margin-top: auto;
}
.dncg-stat { }
.dncg-stat:nth-child(2) .dncg-stat-value { color: var(--accent-on-dark); }
.dncg-stat-value { font-family: var(--font-display); font-weight: 800; font-size: 1.625rem; color: var(--white); font-variant-numeric: tabular-nums; }
.dncg-stat-label { font-size: var(--fs-meta); color: rgba(var(--on-dark-rgb), .7); }

/* ============================================================================
   COURSES  ·  filter sidebar + level groups
   ========================================================================== */
.dncg-courses-section { padding: var(--space-section-sm) 0 0; background: var(--white); }
.dncg-courses-section > .dncg-container { margin-bottom: 1.8rem; }
.dncg-courses-section > .dncg-container > h2 { font-size: clamp(2rem, 3.4vw, 2.875rem); }

.dncg-course-progression-wrapper-v2 { padding: 0 0 var(--space-section-sm); }
.dncg-course-progression-wrapper-v2 .dncg-container-wide {
    width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--page-gutter);
}

.dncg-courses-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .dncg-courses-layout { grid-template-columns: 300px 1fr; } }

/* ---- Filter sidebar ------------------------------------------------------ */
.dncg-filter-sidebar {
    background: var(--light);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.6rem 1.7rem;
}
.filter-sidebar-header { display: flex; align-items: center; justify-content: space-between; }
.filter-sidebar-title { font-size: 1.5rem; margin: 0 0 1.2rem; }
.mobile-close-filters { display: none; background: none; border: 0; color: var(--muted); cursor: pointer; }

.filter-accordion-item { border-top: 1px solid var(--line); }
.filter-accordion-item:first-of-type { border-top: 0; }
.filter-accordion-toggle {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    background: none; border: 0; cursor: pointer;
    padding: 1rem 0;
    font-family: var(--font-body); font-size: var(--fs-meta); font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.filter-accordion-toggle .accordion-icon { transition: transform var(--transition); }
.filter-accordion-toggle.is-active .accordion-icon { transform: rotate(180deg); }
.filter-accordion-content { display: none; padding-bottom: 1rem; }
.filter-accordion-content.is-open { display: block; }
.filter-options { display: flex; flex-direction: column; gap: .45rem; }

/* Level checkboxes */
.filter-checkbox-label { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.filter-checkbox { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.checkbox-custom {
    width: 18px; height: 18px; flex: 0 0 auto;
    border: 2px solid var(--box-border); border-radius: 4px; background: var(--white);
    position: relative; transition: all var(--transition);
}
.filter-checkbox:checked + .checkbox-custom { border-color: var(--navy); background: var(--navy); }
.filter-checkbox:checked + .checkbox-custom::after {
    content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
    border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.filter-checkbox:focus-visible + .checkbox-custom { outline: 2px solid var(--navy); outline-offset: 2px; }
.checkbox-text { font-size: 1.1rem; color: var(--muted); }
.filter-checkbox:checked + .checkbox-custom + .checkbox-text { color: var(--ink); font-weight: 600; }

/* Filter actions */
.filter-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.4rem; }
.btn-apply-filters {
    border: 0; cursor: pointer; width: 100%;
    background: var(--btn-primary-bg); color: var(--btn-primary-text);
    font-weight: 700; font-size: 1.1rem; padding: .8rem 1.2rem; border-radius: var(--radius-pill);
}
.btn-apply-filters:hover { background: var(--link-hover); }
.btn-clear-filters {
    border: 0; cursor: pointer; width: 100%; background: none;
    color: var(--link); font-weight: 700; font-size: 1.1rem; padding: .4rem;
    text-decoration: underline; text-underline-offset: .22em;
}

/* Mobile filter drawer */
.dncg-mobile-filter-toggle { display: none; }
@media (max-width: 899px) {
    .dncg-mobile-filter-toggle {
        display: inline-flex; align-items: center; gap: 8px;
        background: var(--navy); color: var(--white); border: 0; cursor: pointer;
        padding: .7rem 1.2rem; border-radius: var(--radius-pill); font-weight: 700; font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }
    .dncg-mobile-filter-toggle .filter-count {
        background: var(--accent-on-dark); color: var(--navy);
        border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
    }
    .dncg-filter-sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; width: min(360px, 86vw);
        z-index: 1000; border-radius: 0; overflow-y: auto;
        transform: translateX(-100%); transition: transform var(--transition);
    }
    .dncg-filter-sidebar.is-open { transform: translateX(0); }
    .mobile-close-filters { display: inline-flex; }
    .filter-sidebar-overlay { position: fixed; inset: 0; background: rgba(var(--tint-rgb), .5); z-index: 999; }
    body.filter-sidebar-open { overflow: hidden; }
}

/* ---- Results ------------------------------------------------------------- */
.dncg-courses-results { min-width: 0; }
.results-header { margin-bottom: 1.2rem; }
.results-count { font-size: 1.1rem; color: var(--muted); margin: 0; }
.results-count strong { font-family: var(--font-display); font-weight: 800; color: var(--navy); }

.dncg-level-progression-container { display: flex; flex-direction: column; gap: 1.6rem; }
.dncg-level-row {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
}
.dncg-level-row.dncg-empty-level { display: none; }

.dncg-level-row-header {
    display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
    padding: 1rem 1.5rem;
    background: var(--navy); color: var(--white);
}
.dncg-level-row-header .dncg-level-title { color: var(--white); font-size: 1.75rem; margin: 0; }
.dncg-course-count { font-size: 1.1rem; font-weight: 700; color: var(--white); }
/* Level-coloured headers — the audience wayfinding ramp. */
.dncg-level-row[data-level="el1"] .dncg-level-row-header,
.dncg-level-row[data-level="el2"] .dncg-level-row-header,
.dncg-level-row[data-level="el3"] .dncg-level-row-header,
.dncg-level-row[data-level="l1"] .dncg-level-row-header { background: var(--aud-students); }
.dncg-level-row[data-level="l2"] .dncg-level-row-header { background: var(--navy); }
/* l3 sits on --dblue (dark on every brand) so the white title + count read
   cleanly. The old --accent/--btn-accent-bg ground was a mid/bright tone on some
   palettes (e.g. nlc cyan) where white dropped to ~2.1:1; and the paired
   dark-text override reached the count but not the title, so they mismatched. */
.dncg-level-row[data-level="l3"] .dncg-level-row-header { background: var(--dblue); }
.dncg-level-row[data-level="l4"] .dncg-level-row-header,
.dncg-level-row[data-level="l5"] .dncg-level-row-header,
.dncg-level-row[data-level="l6"] .dncg-level-row-header,
.dncg-level-row[data-level="l7"] .dncg-level-row-header { background: var(--em-color); }
.dncg-level-row.is-other-level .dncg-level-row-header { background: var(--surface-muted); }

.dncg-level-courses-grid {
    display: grid; grid-template-columns: 1fr; gap: 1.2rem;
    padding: 1.4rem 1.5rem; margin: 0; list-style: none;
}
@media (min-width: 620px) { .dncg-level-courses-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .dncg-level-courses-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ---- Course card --------------------------------------------------------- */
.course-card.dncg-course-item {
    display: flex; flex-direction: column;
    border: 1px solid var(--line);
    border-top: var(--card-edge) solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--white);
    overflow: hidden;
}
.course-card .course-content { display: flex; flex-direction: column; gap: .6rem; padding: 1.3rem 1.4rem; height: 100%; }
/* Plain mono level label — reset core's gradient-chip declarations (core styles
   .course-level-badge for the shared courses archive; here it is a quiet label). */
.dncg-level-courses-grid .course-level-badge {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
    background: none; border-radius: 0; padding: 0; margin: 0;
    font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--muted);
}
.htq-badge-inline { display: inline-block; width: 20px; height: 20px; }
.dncg-level-courses-grid .course-title { font-size: 1.375rem; line-height: 1.15; margin: 0; color: var(--navy); }
.course-code { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .08em; color: var(--muted); }
.course-type-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
/* Neutral, low-emphasis tag — a quiet gray pill, not a bold brand-filled badge,
   so it doesn't compete with the course title / CTA. */
.course-type-tag {
    align-self: flex-start; font-size: var(--fs-meta); font-weight: 500;
    letter-spacing: .04em; text-transform: uppercase;
    color: var(--muted); background: var(--light); border: 1px solid var(--line);
    padding: 4px 10px; border-radius: var(--radius-pill);
}
.course-duration { font-size: 1.1rem; color: var(--muted); }

/* Entry requirements toggle (inline display + aria-expanded) */
.course-requirements-section { margin-top: .2rem; }
.requirements-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 0; padding: 0; cursor: pointer;
    font-weight: 700; font-size: 1.1rem; color: var(--link); text-align: left;
}
.requirements-toggle .chevron-icon { font-size: .8em; transition: transform var(--transition); }
.requirements-toggle[aria-expanded="true"] .chevron-icon { transform: rotate(180deg); }
.requirements-content {
    background: var(--light); border-radius: var(--radius-sm);
    padding: .9rem 1rem; margin-top: .5rem;
}
.requirements-content p { font-size: 1.1rem; line-height: 1.55; color: var(--ink); margin: 0; }

.course-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: auto; padding-top: .6rem; }
.apply-btn {
    border: 0; cursor: pointer;
    background: var(--btn-primary-bg); color: var(--btn-primary-text);
    font-weight: 700; font-size: 1.1rem; padding: 10px 20px; border-radius: var(--radius-pill);
    text-decoration: none; display: inline-flex; align-items: center;
}
.apply-btn:hover { background: var(--link-hover); color: var(--btn-primary-text); }
.more-info-btn {
    border: 2px solid var(--box-border); color: var(--navy);
    font-weight: 700; font-size: 1.1rem; padding: 8px 18px; border-radius: var(--radius-pill);
    text-decoration: none; display: inline-flex; align-items: center;
}
.more-info-btn:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
/* HE (UCDON/UCNL) tiles carry a single CTA to the course page. Upgrade the lone
   link to a full-width primary-solid button so it reads as the one clear action.
   Scoped under .course-actions--single so it outranks the base .more-info-btn /
   .apply-btn rules whichever plugin stylesheet loads last. */
.course-actions--single .more-info-btn { flex: 1 1 100%; justify-content: center; background: var(--btn-primary-bg); color: var(--btn-primary-text); border-color: transparent; }
.course-actions--single .more-info-btn:hover { background: var(--link-hover); color: var(--btn-primary-text); border-color: transparent; }

/* Empty state */
.dncg-no-courses-found { text-align: center; padding: 3.5rem 1.2rem; border: 2px dashed var(--line); border-radius: var(--radius-md); }
.no-courses-content svg { color: var(--muted); margin-bottom: 1rem; opacity: .7; }
.no-courses-content h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.no-courses-content p { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.2rem; }
.btn-clear-search {
    border: 2px solid var(--navy); background: none; color: var(--navy); cursor: pointer;
    font-weight: 700; font-size: 1.1rem; padding: .7rem 1.5rem; border-radius: var(--radius-pill);
}
.btn-clear-search:hover { background: var(--navy); color: var(--white); }

/* ---- Partner courses (inline in the progression) ------------------------- */
.dncg-partner-level .dncg-level-row-header { background: var(--surface-muted); }
.dncg-partner-courses-accordion-grid { grid-template-columns: 1fr; }
.dncg-partner-accordion-card { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); overflow: hidden; }
.dncg-partner-accordion-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; }
.dncg-partner-badge {
    font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .06em; text-transform: uppercase;
    color: var(--white); background: var(--aud-advisers); padding: 4px 10px; border-radius: var(--radius-pill);
}
.dncg-partner-name { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; color: var(--navy); margin: .4rem 0 .2rem; }
.dncg-partner-summary { font-size: 1.1rem; color: var(--muted); margin: 0; }
.dncg-accordion-toggle {
    display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
    background: none; border: 0; cursor: pointer; font-weight: 700; font-size: 1.1rem; color: var(--link);
}
.dncg-accordion-toggle .toggle-icon { transition: transform var(--transition); }
.dncg-accordion-toggle[aria-expanded="true"] .toggle-icon { transform: rotate(180deg); }
.dncg-partner-accordion-content { padding: 0 1.4rem 1.2rem; }
.dncg-partner-course-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.dncg-partner-course-link { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--navy); }
.dncg-partner-course-link:hover { border-color: var(--navy); }
.dncg-course-level-badge { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); }
.dncg-course-link-title { font-weight: 700; font-size: 1.1rem; }
.dncg-external-icon { margin-left: auto; color: var(--muted); }
.dncg-view-all-message { margin-top: 1rem; }
.dncg-view-all-link { font-weight: 700; font-size: 1.1rem; }

/* Progression arrow between levels (JS reveals via .dncg-arrow-pulse) */
.dncg-level-arrow { display: flex; justify-content: center; align-items: center; height: 40px; }
.dncg-progression-arrow { width: 40px; height: 40px; display: block; }
.dncg-progression-arrow path { stroke: var(--accent); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================================
   GALLERY
   ========================================================================== */
.dncg-gallery-section { padding: var(--space-section-sm) 0; background: var(--light); }
.dncg-gallery-section h2 { font-size: clamp(2rem, 3.4vw, 2.875rem); margin-bottom: .9rem; }
.dncg-gallery-section .dncg-section-intro { margin: 0 0 1.8rem; }
.dncg-gallery-wrapper { }

.dncg-gallery-grid { display: grid; grid-template-columns: repeat(var(--columns, 3), 1fr); gap: 1rem; align-items: stretch; }
.dncg-gallery-masonry { column-count: var(--columns, 3); column-gap: 1rem; }
.dncg-gallery-masonry .dncg-gallery-item { display: inline-block; width: 100%; margin-bottom: 1rem; break-inside: avoid; }

.dncg-gallery-item {
    position: relative; overflow: hidden; cursor: pointer;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--white);
    transition: box-shadow var(--transition), transform var(--transition);
}
.dncg-gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.dncg-gallery-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.dncg-gallery-image-wrapper { position: relative; overflow: hidden; aspect-ratio: 4/3; background: repeating-linear-gradient(135deg, var(--ph-stripe-a) 0 9px, var(--ph-stripe-b) 9px 18px); }
.dncg-gallery-masonry .dncg-gallery-image-wrapper { aspect-ratio: unset; }
.dncg-gallery-image-wrapper img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.dncg-gallery-masonry .dncg-gallery-image-wrapper img { height: auto; }
.dncg-gallery-item:hover .dncg-gallery-image-wrapper img { transform: scale(1.05); }
.dncg-gallery-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(var(--tint-rgb), .8); opacity: 0; transition: opacity var(--transition); }
.dncg-gallery-item:hover .dncg-gallery-overlay { opacity: 1; }
.dncg-gallery-zoom-icon { color: var(--white); transform: scale(.85); transition: transform var(--transition); }
.dncg-gallery-item:hover .dncg-gallery-zoom-icon { transform: scale(1); }
.dncg-gallery-caption { padding: .8rem 1rem; font-size: 1.1rem; color: var(--muted); background: var(--white); border-top: 1px solid var(--line); }

/* Lightbox modal (JS-driven, inline display + .dncg-lightbox-open on body) */
.dncg-lightbox-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(var(--tint-rgb), .92); }
.dncg-lightbox-overlay { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; }
.dncg-lightbox-container { position: relative; max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.dncg-lightbox-content { text-align: center; max-width: 100%; }
.dncg-lightbox-image { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.dncg-lightbox-caption { color: var(--white); font-size: 1.1rem; margin-top: 15px; }
.dncg-lightbox-close, .dncg-lightbox-prev, .dncg-lightbox-next {
    position: absolute; width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    background: rgba(var(--on-dark-rgb), .12); border: 1px solid rgba(var(--on-dark-rgb), .2); color: var(--white);
    transition: background var(--transition), transform var(--transition);
}
.dncg-lightbox-close:hover, .dncg-lightbox-prev:hover, .dncg-lightbox-next:hover { background: rgba(var(--on-dark-rgb), .22); transform: scale(1.08); }
.dncg-lightbox-close { top: 20px; right: 20px; }
.dncg-lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.dncg-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.dncg-lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--white); background: rgba(var(--tint-rgb), .5); padding: 8px 16px; border-radius: var(--radius-pill); font-size: 1.1rem; }
.dncg-lightbox-open { overflow: hidden !important; }

/* ============================================================================
   NEWS
   ========================================================================== */
.dncg-news-social-section { padding: var(--space-section-sm) 0; background: var(--white); }
.dncg-news-social-section h2 { font-size: clamp(2rem, 3.4vw, 2.875rem); margin-bottom: .9rem; }
.dncg-news-social-section .dncg-section-intro { margin: 0 0 1.8rem; }

.dncg-news-grid-compact { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 640px) { .dncg-news-grid-compact { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .dncg-news-grid-compact { grid-template-columns: 1fr 1fr 1fr; } }

.dncg-news-card-compact {
    display: flex; flex-direction: column; height: 100%;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
    overflow: hidden; transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.dncg-news-card-compact:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--box-border); }
.dncg-news-card-inner { display: flex; flex-direction: column; height: 100%; }
.dncg-news-image-compact { position: relative; aspect-ratio: 16/9; overflow: hidden; background: repeating-linear-gradient(135deg, var(--ph-stripe-a) 0 9px, var(--ph-stripe-b) 9px 18px); }
.dncg-news-image-compact img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.dncg-news-card-compact:hover .dncg-news-image-compact img { transform: scale(1.04); }
.dncg-news-image-compact.dncg-no-image { display: flex; align-items: center; justify-content: center; color: var(--ph-ink); }
.dncg-news-placeholder svg { width: 32px; height: 32px; opacity: .5; }
.dncg-news-content-compact { display: flex; flex-direction: column; gap: .6rem; padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.dncg-news-meta-compact { display: flex; align-items: center; gap: 12px; font-size: var(--fs-meta); color: var(--muted); }
.dncg-news-date-compact { flex-shrink: 0; }
.dncg-news-category-compact {
    font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--white); background: var(--accent);
    padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap;
}
.dncg-news-title-compact { font-size: 1.375rem; line-height: 1.2; margin: 0; }
.dncg-news-title-compact a { color: var(--navy); text-decoration: none; }
.dncg-news-title-compact a:hover { color: var(--link); }
.dncg-news-excerpt-compact { font-size: 1.1rem; line-height: 1.45; color: var(--muted); margin-top: auto; }
.dncg-news-view-all-compact { text-align: center; margin-top: 1.8rem; }

/* ============================================================================
   APPLY  ·  dark band + white selection card
   ========================================================================== */
.dncg-apply-section {
    padding: var(--space-section-sm) 0;
    background: var(--navy-deep); color: var(--white);
    position: relative; overflow: hidden;
}
.dncg-apply-section .dncg-container { position: relative; }
/* The apply block is centred: header, filter row and form card all sit in the
   middle of the dark band rather than hugging the left edge. */
.dncg-apply-header { margin: 0 auto 2rem; max-width: 60ch; text-align: center; }
.dncg-apply-header h2 { color: var(--white); font-size: clamp(2.2rem, 4vw, 3.125rem); margin-bottom: .8rem; }
.dncg-apply-header .dncg-section-intro { color: rgba(var(--on-dark-rgb), .85); margin: 0; }

.dncg-apply-filters { display: flex; justify-content: center; margin-bottom: 1.6rem; }
.dncg-apply-audience-selector { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dncg-apply-filter-label { color: rgba(var(--on-dark-rgb), .85); font-weight: 700; font-size: 1.1rem; }
.dncg-apply-audience-dropdown {
    background: var(--white); color: var(--navy);
    border: 1px solid var(--box-border); border-radius: var(--radius-pill);
    padding: 8px 16px; font-size: 1.1rem; font-weight: 700; cursor: pointer; margin: 0;
}

.dncg-apply-form-wrapper {
    background: var(--white); color: var(--ink);
    border-radius: var(--radius-md); padding: 1.9rem 2rem;
    box-shadow: var(--shadow-lg); max-width: 820px; margin-inline: auto;
}
.dncg-apply-intro h3 { font-size: 1.625rem; margin-bottom: 1.2rem; }

.dncg-course-selection { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.4rem; }
.dncg-course-option { margin: 0; }
.dncg-course-option.dncg-filtered { display: none; }
.dncg-course-radio { position: absolute; opacity: 0; pointer-events: none; }
.dncg-course-label {
    display: block; cursor: pointer;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: .9rem 1.1rem; transition: border-color var(--transition), background var(--transition);
}
.dncg-course-label:hover { border-color: var(--box-border); background: var(--light); }
.dncg-course-radio:checked + .dncg-course-label { border-color: var(--btn-primary-bg); background: var(--light); }
.dncg-course-content { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.dncg-course-title-wrapper { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.dncg-course-label .dncg-course-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--navy); line-height: 1.25; margin: 0; }
.dncg-course-type-tag {
    font-size: var(--fs-meta); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--white); background: var(--aud-students); padding: 3px 10px; border-radius: var(--radius-pill);
}
.dncg-course-type-tag.adults { background: var(--aud-advisers); }
.dncg-course-type-tag.apprenticeships { background: var(--aud-employers); color: var(--white); }
.dncg-course-type-tag.higher-education { background: var(--navy); }
.dncg-course-type-tag.t-levels { background: var(--em-color); }
.dncg-radio-indicator { flex: 0 0 auto; width: 20px; height: 20px; border: 2px solid var(--box-border); border-radius: 50%; position: relative; }
.dncg-course-radio:checked + .dncg-course-label .dncg-radio-indicator { border-color: var(--btn-primary-bg); }
.dncg-course-radio:checked + .dncg-course-label .dncg-radio-indicator::after {
    content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--btn-primary-bg);
}
.dncg-unsure-option .dncg-course-label { border-style: dashed; }
.dncg-unsure-option .dncg-course-title { color: var(--em-color); }

.dncg-careers-help {
    background: var(--light); border: 1px dashed var(--em-color); border-radius: var(--radius-sm);
    padding: 1.4rem; margin-bottom: 1.4rem;
}
.dncg-careers-content { display: flex; gap: 16px; align-items: flex-start; }
.dncg-careers-icon { color: var(--em-color); flex-shrink: 0; }
.dncg-careers-text h4 { font-size: 1.375rem; color: var(--text-heading); margin-bottom: .5rem; }
.dncg-careers-text p { font-size: 1.1rem; line-height: 1.55; color: var(--muted); margin-bottom: .8rem; }
.dncg-careers-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; color: var(--link); text-decoration: none; }

.dncg-apply-action { }
.dncg-apply-submit {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    width: 100%; justify-content: center; border: 0;
    background: var(--btn-primary-bg); color: var(--btn-primary-text);
    font-weight: 700; font-size: 1.1rem; padding: 1rem 1.9rem; border-radius: var(--radius-pill);
    transition: background var(--transition);
}
.dncg-apply-submit:hover:not(:disabled) { background: var(--link-hover); }
.dncg-apply-submit:disabled { background: var(--box-border); color: var(--muted); cursor: not-allowed; }
.dncg-apply-icon { transition: transform var(--transition); }
.dncg-apply-submit:hover:not(:disabled) .dncg-apply-icon { transform: translateX(3px); }

/* ============================================================================
   VIDEO CARD (feature-grid replacement for the experience card)
   ========================================================================== */
.dncg-video-card { border-radius: var(--radius-md); overflow: hidden; background: var(--navy); }
.dncg-video-single, .dncg-video-slide { position: relative; }
.dncg-portrait-video, .dncg-tiktok-wrapper { display: block; width: 100%; }
.dncg-tiktok-wrapper { position: relative; padding-bottom: 150%; }
.dncg-tiktok-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dncg-video-caption { padding: 1rem 1.2rem; margin: 0; font-size: 1.1rem; color: rgba(var(--on-dark-rgb), .85); }
.dncg-video-stage { position: relative; }
.dncg-video-track { position: relative; }
.dncg-video-slide { display: none; }
.dncg-video-slide.is-active { display: block; }
.dncg-carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    background: rgba(var(--on-dark-rgb), .9); color: var(--navy); border: 0;
    display: flex; align-items: center; justify-content: center;
}
.dncg-carousel-prev { left: 10px; }
.dncg-carousel-next { right: 10px; }
.dncg-carousel-dots { display: flex; gap: 8px; justify-content: center; padding: .8rem 0 1rem; }
.dncg-carousel-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(var(--on-dark-rgb), .35); }
.dncg-carousel-dot.is-active { background: var(--accent-on-dark); }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 640px) {
    .dncg-container { padding: 0 22px; }
    .dncg-hero-headline { font-size: clamp(2.2rem, 9vw, 3rem); }
    .dncg-facility-content { padding: 1.6rem 1.4rem; }
    .dncg-career-stats { gap: 1.4rem; }
    .dncg-apply-form-wrapper { padding: 1.4rem 1.2rem; }
    .dncg-course-content { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ============================================================================
   MOTION + PRINT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .dncg-subject-area-wrapper *,
    .dncg-subject-area-wrapper *::before,
    .dncg-subject-area-wrapper *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media print {
    .dncg-hero-section::after,
    .dncg-careers-section::before,
    .dncg-apply-section::before,
    .dncg-gallery-overlay,
    .dncg-lightbox-modal,
    .dncg-mobile-filter-toggle { display: none !important; }
    .dncg-careers-section, .dncg-apply-section { background: var(--white) !important; color: var(--ink) !important; }
    .dncg-career-card, .dncg-level-row, .dncg-facility-content-wrapper,
    .dncg-news-card-compact, .dncg-gallery-item, .course-card {
        background: var(--white) !important; border: 1px solid var(--line) !important; box-shadow: none !important; break-inside: avoid;
    }
    .requirements-content { display: block !important; }
}

/* ---- HE reduced subject-area layout ---------------------------------------
   On UCDON/UCNL the rich sections are suppressed and the page leads with its
   own overview copy (post_content). Give it real vertical space and a reading
   measure, otherwise it runs the full container width against the hero. */
.dncg-overview-section { padding: 3.2rem 0 1.6rem; }
.dncg-overview-prose { max-width: 72ch; font-size: 1.2rem; line-height: 1.65; color: var(--text); }
.dncg-overview-prose p { max-width: none; }
.dncg-overview-prose p + p { margin-top: 1rem; }

/* The blanket .dncg-subject-area-wrapper heading rule near the top of this file
   also lands on the shared on-page nav's "Content on this page" <h2>, giving it
   a bottom margin. Inside .page-nav (a flex row with align-items:center) that
   margin is counted in the centring, so the heading sits ~10px above the links
   it labels. The nav is theme chrome and this sheet states it is not styled
   here — so exclude it rather than restyle it. */
.dncg-subject-area-wrapper .page-nav h2 { margin: 0; }
