/* ============================================================
   PMS PROJECT — user.css
   Design system: DM Sans · Source Serif 4 · JetBrains Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ──────────────────────────────────────────────── */
:root {
  /* Colors */
  --pms-main:      #009FCF;
  --pms-link:      #0070a0; /* accessible teal: 4.9:1 on light bg, 5.0:1 white-on-this */
  --pms-dark:      #0a0a0a;
  --pms-white:     #ffffff;
  --pms-bg:        #fdfcfa;
  --pms-bg-warm:   #f4f2ec;
  --pms-border:    rgba(10, 10, 10, 0.1);
  --pms-muted:     rgba(10, 10, 10, 0.60); /* was 0.45 (~3.2:1); 0.60 → ~4.7:1 on --pms-bg */

  /* Layout */
  --pms-pad-x:     clamp(1.5rem, 5vw, 4rem);
  --pms-max-w:     1280px;

  /* Fonts — change once here to retheme the whole site */
  --pms-sans:      'DM Sans', system-ui, sans-serif;
  --pms-serif:     'Source Serif 4', Georgia, serif;
  --pms-mono:      'JetBrains Mono', ui-monospace, monospace;
}

/* ── Global reset & base ────────────────────────────────────── */
body {
  font-family: var(--pms-sans);
  background: var(--pms-bg);
  color: var(--pms-dark);
}

input, button, select, textarea {
  font-family: var(--pms-sans);
}

/* ── Cassiopeia layout fixes ────────────────────────────────── */
.container-banner {
  margin: 0;
}

/* Homepage only — set Page Class = "pms-home" on the Home menu item (Admin → Menus → Home → Advanced) */
body.pms-home .container-component {
  display: none;
}


/* ============================================================
   HEADER
   ============================================================ */

/* Full white header, kill Cassiopeia gradient */
.container-header {
  background-color: var(--pms-white) !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Hide default Cassiopeia brand/logo row — topbar handles it */
.container-header .grid-child:has(.navbar-brand) {
  display: none;
}

/* ── Topbar (row 1): logo · branding · lang · utility ─────── */
.container-topbar {
  border-bottom: 1px solid var(--pms-border);
  display: flex;
  align-items: center;
}

/* Main module expands to fill all available space */
.container-topbar .mod-custom {
  flex: 1;
  min-width: 0;
}


/* ── mod_languages styling ───────────────────────────────── */
.container-topbar .mod-languages {
  flex-shrink: 0;
  padding: 0 var(--pms-pad-x) 0 0.75rem;
}

/* Hide Joomla's screen-reader label visually */
.container-topbar .mod-languages .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.mod-languages__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

/* Dot separator between language items */
.mod-languages__list li + li::before {
  content: '·';
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  color: var(--pms-border);
  margin: 0 0.4rem;
  line-height: 1;
}

.mod-languages__list a,
.mod-languages__list span {
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--pms-muted)!important /* Override Cassiopeia's gray color */;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1;
  padding: 0;
  display: inline;
}

/* Active language — strip Cassiopeia's gray box, make text bolder */
.mod-languages__list .lang-active {
  background: transparent !important;
}

.mod-languages__list .lang-active a,
.mod-languages__list .lang-active span {
  color: var(--pms-dark) !important;
  font-weight: 500;
}

/* Strip Joomla's 8px default padding from all lang links */
.container-topbar .mod-languages__list a {
  padding: 0 !important;
}

.mod-languages__list a:hover {
  color: var(--pms-link) !important;
  text-decoration: none;
}

.pms-topbar {
  padding: 0.8rem var(--pms-pad-x);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.pms-topbar__logo {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.pms-topbar__divider {
  width: 1px;
  height: 38px;
  background: var(--pms-border);
  flex-shrink: 0;
}

.pms-topbar__brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pms-topbar__title {
  font-family: var(--pms-serif);
  font-style: italic;
  font-size: 1rem;
  font-weight: 400;
  color: var(--pms-dark);
  line-height: 1;
}

.pms-topbar__subtitle {
  font-family: var(--pms-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pms-muted);
}

.pms-topbar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.pms-topbar__lang {
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--pms-muted);
  cursor: pointer;
}

.pms-topbar__link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--pms-dark) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pms-topbar__link:hover {
  color: var(--pms-link) !important;
  text-decoration: none;
}

.pms-topbar__badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--pms-dark);
}

.pms-topbar__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pms-main);
  flex-shrink: 0;
  animation: pmsBadgePulse 2.5s ease-in-out infinite;
}

@keyframes pmsBadgePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Nav row (row 2) ─────────────────────────────────────── */
.container-header .grid-child.container-nav {
  max-width: var(--pms-max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pms-pad-x);
}

@media (min-width: 992px) {
  /* Kill Cassiopeia's default underline animation */
  .container-header .mod-menu > li::after {
    display: none !important;
  }

  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > span {
    font-family: var(--pms-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--pms-dark) !important;
    position: relative;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    transition: color 0.2s ease;
  }

  /* Bottom-border slide animation */
  .container-header .mod-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pms-main);
    transition: width 0.3s ease;
  }

  .container-header .mod-menu > li:hover > a::after,
  .container-header .mod-menu > li.active > a::after {
    width: 100%;
  }

  .container-header .mod-menu > li:hover > a,
  .container-header .mod-menu > li.active > a {
    color: var(--pms-dark) !important;
  }
}

/* ── Dropdown / submenu (desktop ≥ 992px) ─────────────────── */
@media (min-width: 992px) {
  /* Parent li needs relative so dropdown anchors to it */
  .container-header .mod-menu > li.parent {
    position: relative;
  }

  /* Fix invisible chevron — button inherits white from Cassiopeia's
     hamburger context; we force it to the muted nav colour.
     pointer-events: none makes it decorative at desktop — hover/focus-within
     own the open/close, so the JS toggle can't lock the panel open. */
  .container-header .mod-menu__toggle-sub {
    color: var(--pms-muted) !important;
    background: transparent;
    border: none;
    padding: 0 0 0 0.2rem;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    pointer-events: none;
    cursor: default;
  }

  .container-header .mod-menu__toggle-sub:hover,
  .container-header .mod-menu > li.parent:hover .mod-menu__toggle-sub {
    color: var(--pms-dark) !important;
  }

  .container-header .mod-menu__toggle-sub .icon-chevron-down {
    font-size: 0.6rem;
    transition: transform 0.25s ease;
    display: inline-block;
  }

  /* Rotate chevron when JS opens the panel */
  .container-header .mod-menu__toggle-sub[aria-expanded="true"] .icon-chevron-down {
    transform: rotate(180deg);
  }

  /* Show on hover (mouse) or focus-within (keyboard) */
  .container-header .mod-menu > li.parent:hover > .mod-menu__sub,
  .container-header .mod-menu > li.parent:focus-within > .mod-menu__sub {
    display: block !important;
  }

  /* ── Panel ── */
  .container-header .mod-menu__sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--pms-bg);
    border: 1px solid var(--pms-border);
    border-top: 2px solid var(--pms-main);
    box-shadow: 0 8px 24px rgba(10, 10, 10, 0.08);
    padding: 0.4rem 0;
    list-style: none;
    margin: 0;
    z-index: 200;
  }

  /* ── Items ── */
  .container-header .mod-menu__sub .nav-item a {
    display: block;
    font-family: var(--pms-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--pms-dark) !important;
    padding: 0.65rem 1.25rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease;
  }

  .container-header .mod-menu__sub .nav-item a:hover {
    color: var(--pms-link) !important;
    background: rgba(0, 112, 160, 0.04);
  }

  .container-header .mod-menu__sub .nav-item.current a,
  .container-header .mod-menu__sub .nav-item.active a {
    color: var(--pms-link) !important;
  }

  /* Underline animation doesn't apply inside dropdown */
  .container-header .mod-menu__sub .nav-item a::after { display: none; }
}

/* Search box */
.container-header .container-search {
  display: flex;
  align-items: center;
}

.container-header .mod-finder input[type="search"],
.container-header .mod-finder input[type="text"] {
  font-family: var(--pms-sans);
  font-size: 0.78rem;
  background: transparent;
  border: 1px solid var(--pms-border);
  border-radius: 3px;
  color: var(--pms-dark);
  padding: 0.3rem 0.75rem;
  transition: border-color 0.2s ease;
  outline: none;
}

.container-header .mod-finder input:focus {
  border-color: var(--pms-main);
}

.container-header .mod-finder input::placeholder {
  color: var(--pms-muted);
}

.container-header .mod-finder .btn,
.container-header .mod-finder button[type="submit"] {
  background: transparent;
  border: none;
  color: var(--pms-main);
  cursor: pointer;
}


/* Hamburger button — hidden on desktop, injected + revealed on mobile by JS */
.pms-nav-toggle { display: none; }

/* ── Mobile header + nav (< 992px) ─────────────────────────── */
@media (max-width: 991px) {

  /* Topbar: hide utility items — logo + brand is enough on mobile */
  .pms-topbar__right    { display: none; }
  .pms-topbar__divider  { display: none; }
  .pms-topbar__brand .pms-topbar__subtitle { display: none; }

  /* Tighten the topbar height */
  .container-topbar { padding-block: 0.5rem; }

  /* Language switcher: pull tight to brand */
  .container-topbar .mod-languages { padding: 0 1rem 0 0.5rem; }

  /* Nav container: stack vertically, full width */
  .container-header .grid-child.container-nav {
    flex-direction: column;
    padding: 0;
    border-top: 1px solid var(--pms-border);
  }

  /* Nav list + search: hidden until hamburger opens them */
  .container-header .mod-menu,
  .container-header .container-search { display: none; }

  /* Open state — toggled by initMobileNav() adding .pms-nav-open */
  .container-header .container-nav.pms-nav-open .mod-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    gap: 0;
  }

  .container-header .container-nav.pms-nav-open .container-search { display: flex; }

  /* ── Hamburger button ── */
  .pms-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
  }

  .pms-nav-toggle:focus-visible {
    outline: 3px solid var(--pms-link);
    outline-offset: 2px;
    border-radius: 2px;
  }

  .pms-nav-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--pms-dark);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  /* Hamburger → × when open */
  .pms-nav-toggle[aria-expanded="true"] .pms-nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .pms-nav-toggle[aria-expanded="true"] .pms-nav-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .pms-nav-toggle[aria-expanded="true"] .pms-nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Each nav item: full-width row with border */
  .container-header .mod-menu > li {
    width: 100%;
    border-bottom: 1px solid var(--pms-border);
  }

  /* Nav links: fix invisible white text, readable sizing */
  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > span {
    font-family: var(--pms-sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--pms-dark) !important;
    padding: 0.85rem 1.5rem;
    display: block;
    text-decoration: none;
  }

  /* Parent item (has submenu): flex row so chevron sits inline */
  .container-header .mod-menu > li.parent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .container-header .mod-menu > li.parent > a { flex: 1; }

  /* Toggle button: re-enabled at mobile (pointer-events: none only at ≥992px) */
  .container-header .mod-menu__toggle-sub {
    color: var(--pms-muted) !important;
    padding: 0.85rem 1.25rem;
  }

  /* Chevron rotation when JS opens submenu */
  .container-header .mod-menu__toggle-sub[aria-expanded="true"] .icon-chevron-down {
    transform: rotate(180deg);
  }

  /* Mobile submenu: static (in-flow), accordion style */
  .container-header .mod-menu__sub {
    position: static !important;
    display: none;
    width: 100%;
    flex: 0 0 100%;
    box-shadow: none !important;
    border: none !important;
    border-top: 1px solid var(--pms-border) !important;
    background: rgba(10, 10, 10, 0.025);
    padding: 0.25rem 0;
    margin: 0;
  }

  /* JS opens submenu via aria-hidden toggle */
  .container-header .mod-menu__sub[aria-hidden="false"] { display: block; }

  .container-header .mod-menu__sub .nav-item {
    width: 100%;
    border-bottom: none;
  }

  .container-header .mod-menu__sub .nav-item a {
    padding: 0.7rem 2rem;
    font-size: 0.78rem;
    color: var(--pms-dark) !important;
  }

  /* Search: full-width below the nav */
  .container-header .container-search {
    padding: 0.6rem 1.5rem;
    border-top: 1px solid var(--pms-border);
    width: 100%;
  }

  .container-header .container-search .mod-finder input {
    width: 100%;
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.pms-hero {
  position: relative;
  min-height: 100vh;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pms-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
}

.pms-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 1;
}

/* Main two-column content */
.pms-hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  max-width: var(--pms-max-w);
  width: 100%;
  margin: 0 auto;
  padding: 80px var(--pms-pad-x) 56px;
  align-items: end;
}

/* ── Left column ─── */
.pms-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.pms-hero__eyebrow-line {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--pms-main);
  flex-shrink: 0;
}

.pms-hero__eyebrow-text {
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.pms-hero__subtitle {
  font-family: var(--pms-serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.5rem;
}

.pms-hero__title {
  font-family: var(--pms-sans);
  font-size: clamp(2.75rem, 6.5vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.96;
  color: var(--pms-white);
  margin-bottom: 1.75rem;
}

.pms-hero__title em {
  font-family: var(--pms-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--pms-main);
}

.pms-hero__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.pms-hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── CTA Buttons ─── */
.pms-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--pms-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, transform 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.pms-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.pms-btn--filled {
  background: var(--pms-link);
  color: var(--pms-white);
  border-color: var(--pms-link);
}

.pms-btn--filled:hover {
  background: #005780;
  border-color: #005780;
  color: var(--pms-white);
}

.pms-btn--outline {
  background: transparent;
  color: var(--pms-white);
  border-color: rgba(255, 255, 255, 0.35);
}

.pms-btn--outline:hover {
  border-color: var(--pms-white);
  color: var(--pms-white);
}

/* ── Right column: At a Glance ─── */
.pms-hero__glance {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
}

.pms-hero__glance-label {
  font-family: var(--pms-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.pms-hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1rem;
}

.pms-hero__stat-num {
  display: block;
  font-family: var(--pms-sans);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--pms-white);
  line-height: 1;
}

.pms-hero__stat-label {
  display: block;
  font-family: var(--pms-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.3rem;
}

.pms-hero__stat--accent .pms-hero__stat-num {
  font-family: var(--pms-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--pms-main);
  line-height: 1.2;
}

/* ── Bottom stats strip ─── */
.pms-hero__strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pms-hero__strip-item {
  padding: 1.25rem var(--pms-pad-x);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.pms-hero__strip-item:last-child {
  border-right: none;
}

.pms-hero__strip-num {
  display: block;
  font-family: var(--pms-sans);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--pms-white);
  letter-spacing: -0.02em;
}

.pms-hero__strip-label {
  display: block;
  font-family: var(--pms-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.2rem;
}

/* ── Scroll indicator (fixed) ────────────────────────────── */
.pms-hero__scroll {
  position: fixed;
  bottom: 2rem;
  /* Centre the indicator in the gap between the two hero columns.
     Formula: viewport-centre + half-max-w − pad-x − right-col − half-gap */
  left: calc(50% + var(--pms-max-w) / 2 - var(--pms-pad-x) - 280px - 1.5rem);
  transform: translateX(-50%);
  z-index: 50;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  cursor: default;
  transition: opacity 0.4s ease;
}

.pms-hero__scroll.pms-scroll-hidden {
  opacity: 0;
  pointer-events: none;
}

.pms-hero__scroll-line {
  display: block;
  width: 1px;
  height: 36px;
  background: var(--pms-main);
  animation: pmsScrollPulse 2s ease-in-out infinite;
}

.pms-hero__scroll-label {
  font-family: var(--pms-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--pms-main);
}

@keyframes pmsScrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7);  }
  50%       { opacity: 1;    transform: scaleY(1);    }
}

@media (max-width: 767px) {
  .pms-hero__inner {
    grid-template-columns: 1fr;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .pms-hero__glance { display: none; }
  .pms-hero__scroll { display: none; }
}


/* ============================================================
   I. EXPLORE THE PROGRAMME
   ============================================================ */
.pms-explore {
  padding: 100px var(--pms-pad-x) 80px;
  background: var(--pms-bg);
}

.pms-explore__inner {
  max-width: var(--pms-max-w);
  margin: 0 auto;
}

.pms-explore__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
}

.pms-explore__title {
  font-family: var(--pms-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--pms-dark);
}

.pms-explore__section-label {
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--pms-link);
  text-transform: uppercase;
}

.pms-explore__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--pms-border);
  border-bottom: 1px solid var(--pms-border);
}

.pms-explore-card {
  padding: 2rem 1.75rem 2.25rem;
  border-right: 1px solid var(--pms-border);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--pms-dark);
  transition: background 0.2s ease;

  /* Reveal start state */
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.2s ease;
}

.pms-explore-card:last-child {
  border-right: none;
}

.pms-explore-card.pms-visible {
  opacity: 1;
  transform: translateY(0);
}

.pms-explore-card:hover {
  background: rgba(0, 159, 207, 0.04);
  color: var(--pms-dark);
  text-decoration: none;
}

.pms-explore-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.pms-explore-card__num {
  font-family: var(--pms-mono);
  font-size: 0.72rem;
  color: var(--pms-muted);
  letter-spacing: 0.05em;
}

.pms-explore-card__icon {
  font-size: 1rem;
  color: rgba(10, 10, 10, 0.25);
  transition: color 0.2s ease;
}

.pms-explore-card:hover .pms-explore-card__icon {
  color: var(--pms-main);
}

.pms-explore-card__title {
  font-family: var(--pms-serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.pms-explore-card__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(10, 10, 10, 0.6);
  flex: 1;
  margin-bottom: 1.5rem;
}

.pms-explore-card__link {
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pms-link);
  display: inline-block;
  transition: letter-spacing 0.25s ease;
}

.pms-explore-card:hover .pms-explore-card__link {
  letter-spacing: 0.2em;
}

@media (max-width: 767px) {
  .pms-explore__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pms-explore-card:nth-child(2) { border-right: none; }
  .pms-explore-card:nth-child(1),
  .pms-explore-card:nth-child(2) {
    border-bottom: 1px solid var(--pms-border);
  }
}


/* ============================================================
   II. WHY ATTEND
   ============================================================ */
.pms-why {
  background: var(--pms-bg-warm);
}

.pms-why__inner {
  max-width: var(--pms-max-w);
  margin: 0 auto;
  padding: 100px var(--pms-pad-x) 100px;
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  gap: 4rem;
  align-items: start;
}

.pms-why__sidebar {
  padding-top: 0.35rem;
}

.pms-why__section-label {
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--pms-link);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.5rem;
}

.pms-why__accred {
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(10, 10, 10, 0.65);
  margin-bottom: 1.5rem;
}

.pms-why__read-time {
  font-family: var(--pms-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--pms-muted);
}

.pms-why__heading {
  font-family: var(--pms-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--pms-dark);
}

.pms-why__heading em {
  font-style: italic;
  color: var(--pms-link);
}

.pms-why__body p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(10, 10, 10, 0.7);
  margin-bottom: 1.25rem;
}

.pms-why__body p:last-child {
  margin-bottom: 0;
}

.pms-why__link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--pms-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--pms-dark);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.pms-why__link:hover {
  color: var(--pms-link);
  border-color: var(--pms-link);
  text-decoration: none;
}

/* ── Why blocks ──────────────────────────────────────────────── */
.pms-why__block {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(10, 10, 10, 0.1);
}

.pms-why__block-label {
  display: block;
  font-family: var(--pms-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pms-link);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.pms-why__blurb {
  font-family: var(--pms-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--pms-dark);
  margin: 0;
}

/* ── Toggle button ───────────────────────────────────────────── */
.pms-why__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  background: none;
  border: none;
  border-bottom: 1px solid var(--pms-dark);
  padding: 0 0 1px;
  cursor: pointer;
  font-family: var(--pms-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pms-dark);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.pms-why__toggle:hover {
  color: var(--pms-link);
  border-color: var(--pms-link);
}

/* ── Expand panel ────────────────────────────────────────────── */
.pms-why__expand {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 var(--pms-pad-x);
  transition: max-height 0.5s ease,
              opacity 0.25s ease,
              padding 0.5s ease;
}

.pms-why__expand.is-open {
  max-height: 900px;
  opacity: 1;
  padding: 60px var(--pms-pad-x) 80px;
}

.pms-why__expand-inner {
  max-width: var(--pms-max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
  border-top: 1px solid rgba(10, 10, 10, 0.1);
}

.pms-why__expand-col p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(10, 10, 10, 0.7);
  margin: 0.75rem 0 0;
}

@media (max-width: 900px) {
  .pms-why__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pms-why__expand-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* ============================================================
   NEWS
   ============================================================ */
.pms-news {
  padding: 100px var(--pms-pad-x) 80px;
  background: var(--pms-bg);
}

.pms-news__inner {
  max-width: var(--pms-max-w);
  margin: 0 auto;
}

.pms-news__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pms-border);
}

.pms-news__title {
  font-family: var(--pms-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--pms-dark);
}

.pms-news__all {
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--pms-link);
  text-decoration: none;
  transition: letter-spacing 0.25s ease;
}

.pms-news__all:hover {
  letter-spacing: 0.2em;
  text-decoration: none;
  color: var(--pms-link);
}

.pms-news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.pms-news-card {
  padding: 0 2rem 0 0;
  border-right: 1px solid var(--pms-border);
  text-decoration: none;
  color: var(--pms-dark);
  display: flex;
  flex-direction: column;
  transition: color 0.2s ease;
}

.pms-news-card:last-child {
  border-right: none;
  padding-right: 0;
}

.pms-news-card:not(:first-child) {
  padding-left: 2rem;
}

.pms-news-card:hover {
  color: var(--pms-dark);
  text-decoration: none;
}

.pms-news-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(10, 10, 10, 0.06);
  border-radius: 3px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.pms-news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pms-news-card:hover .pms-news-card__thumb img {
  transform: scale(1.04);
}

.pms-news-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.pms-news-card__date {
  font-family: var(--pms-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--pms-muted);
}

.pms-news-card__tag {
  font-family: var(--pms-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pms-link);
  font-weight: 500;
}

.pms-news-card__title {
  font-family: var(--pms-serif);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  transition: color 0.2s ease;
}

.pms-news-card:hover .pms-news-card__title {
  color: var(--pms-link);
}

.pms-news-card__excerpt {
  font-size: 0.83rem;
  line-height: 1.65;
  color: rgba(10, 10, 10, 0.58);
}

@media (max-width: 767px) {
  .pms-news__grid { grid-template-columns: 1fr; }
  .pms-news-card { border-right: none; padding: 0 0 2rem; border-bottom: 1px solid var(--pms-border); }
  .pms-news-card:last-child { border-bottom: none; padding-bottom: 0; }
  .pms-news-card:not(:first-child) { padding-left: 0; }
}


/* ============================================================
   NEWS — native Joomla mod_articles output
   ============================================================ */

/* Section header module */
.pms-news-header {
  max-width: var(--pms-max-w);
  margin: 0 auto;
  padding: 100px var(--pms-pad-x) 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pms-border);
}

.pms-news-header__title {
  font-family: var(--pms-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--pms-dark);
}

.pms-news-header__link {
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--pms-link);
  text-decoration: none;
  transition: letter-spacing 0.25s ease;
}

.pms-news-header__link:hover {
  letter-spacing: 0.2em;
  color: var(--pms-link);
  text-decoration: none;
}

/* Articles grid — override Joomla's defaults */
.mod-articles-items {
  max-width: var(--pms-max-w);
  margin: 0 auto;
  padding: 2.5rem var(--pms-pad-x) 80px;
  list-style: none !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0 !important;
}

.mod-articles-items > li {
  padding: 0;
  list-style: none;
}

/* Vertical dividers between cards */
.mod-articles-items > li + li {
  border-left: 1px solid var(--pms-border);
  padding-left: 2rem;
}

.mod-articles-items > li:not(:last-child) {
  padding-right: 2rem;
}

/* Card: flex column — enables order-based reflow */
.mod-articles-item-content {
  display: flex;
  flex-direction: column;
  font-size: 0.83rem;
  line-height: 1.65;
  color: rgba(10, 10, 10, 0.58);
}

/* ── Reorder DOM: image → meta → title → text ── */
figure.mod-articles-image { order: -3; }
dl.list-unstyled           { order: -2; }
.mod-articles-title        { order: -1; }
/* intro text node: order 0 (default) → stays last */

/* Image */
.mod-articles-image {
  width: 100%;
  margin: 0 0 1.25rem;
  overflow: hidden;
  border-radius: 3px;
}

.mod-articles-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mod-articles-item:hover .mod-articles-image img {
  transform: scale(1.04);
}

/* Meta row: category + date */
.mod-articles-items dl.list-unstyled {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
  padding: 0;
}

/* Hide "Details" dt label */
.mod-articles-items dt.article-info-term { display: none; }

.mod-articles-category,
.mod-articles-date {
  font-family: var(--pms-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  margin: 0;
  padding: 0;
}

.mod-articles-category { color: var(--pms-link); }
.mod-articles-date     { color: var(--pms-muted); }

/* Hide Joomla's folder & calendar icons */
.mod-articles-category .icon-folder-open,
.mod-articles-date .icon-calendar { display: none; }

/* Title */
.mod-articles-title {
  font-family: var(--pms-serif);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 0.6rem;
}

.mod-articles-link {
  color: var(--pms-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mod-articles-link:hover,
.mod-articles-item:hover .mod-articles-link {
  color: var(--pms-link);
  text-decoration: none;
}

@media (max-width: 767px) {
  .mod-articles-items {
    grid-template-columns: 1fr !important;
  }
  .mod-articles-items > li + li {
    border-left: none;
    border-top: 1px solid var(--pms-border);
    padding-left: 0;
    padding-top: 2rem;
  }
  .mod-articles-items > li:not(:last-child) {
    padding-right: 0;
    padding-bottom: 2rem;
  }
}


/* ============================================================
   III. FAQ
   ============================================================ */
.pms-faq {
  padding: 60px var(--pms-pad-x) 120px;
  background: var(--pms-bg);
  border-top: 1px solid var(--pms-border);
}

.pms-faq__inner {
  max-width: var(--pms-max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 6rem;
  align-items: start;
}

.pms-faq__sidebar {
  position: sticky;
  top: 2rem;
}

.pms-faq__section-label {
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--pms-link);
  display: block;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.pms-faq__heading {
  font-family: var(--pms-serif);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--pms-dark);
  margin-bottom: 1.5rem;
}

.pms-faq__contact {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(10, 10, 10, 0.58);
}

.pms-faq__email {
  color: var(--pms-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pms-faq__list {
  display: flex;
  flex-direction: column;
}

.pms-faq-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--pms-border);
}

.pms-faq-item__num {
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--pms-muted);
  padding-top: 0.15rem;
}

.pms-faq-item__q {
  font-family: var(--pms-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--pms-dark);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.pms-faq-item__a {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(10, 10, 10, 0.62);
  grid-column: 2;
}

.pms-faq-item__plus {
  font-size: 1.1rem;
  color: var(--pms-muted);
  padding-top: 0.1rem;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .pms-faq__inner { grid-template-columns: 1fr; gap: 3rem; }
  .pms-faq__sidebar { position: static; }
}


/* ============================================================
   ESPA / EU FUNDING BANNER
   ============================================================ */

/* Strip Bootstrap card chrome when ESPA lives in the bottom-a position */
.container-bottom-a .card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
.container-bottom-a .card-body {
  padding: 0;
}

.pms-espa {
  padding: 2rem var(--pms-pad-x);
  background: var(--pms-bg);
  border-top: 1px solid var(--pms-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.pms-espa__label {
  font-family: var(--pms-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pms-muted);
}

.pms-espa__img {
  max-width: 680px;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.82;
  filter: grayscale(8%);
  transition: opacity 0.3s ease;
}

.pms-espa__img:hover {
  opacity: 1;
}


/* ============================================================
   ARTICLE PAGE  (body.view-article)
   ============================================================ */

/* ── Breadcrumb ─────────────────────────────────────────────── */
body.view-article .breadcrumb {
  background: transparent;
  border-radius: 0;
  padding: 1.1rem var(--pms-pad-x);
  margin: 0;
  border-bottom: 1px solid var(--pms-border);
}

body.view-article .mod-breadcrumbs__item {
  font-family: var(--pms-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pms-muted);
}

body.view-article .mod-breadcrumbs__item a {
  color: var(--pms-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

body.view-article .mod-breadcrumbs__item a:hover {
  color: var(--pms-main);
}

/* Hide Joomla's location-pin icon and "You are here" divider item */
body.view-article .mod-breadcrumbs__divider,
body.view-article .breadcrumb .divider { display: none; }

body.view-article .mod-breadcrumbs__item.active span {
  color: var(--pms-dark);
}

body.view-article .breadcrumb-item + .breadcrumb-item::before {
  color: var(--pms-border);
}

/* ── Article wrapper ─────────────────────────────────────────── */
body.view-article .com-content-article.item-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem var(--pms-pad-x) 6rem;
}

/* ── Title ───────────────────────────────────────────────────── */
body.view-article .com-content-article .page-header {
  margin-bottom: 1.5rem;
}

body.view-article .com-content-article .page-header h1 {
  font-family: var(--pms-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--pms-dark);
  margin: 0;
}

/* ── Article metadata bar ─────────────────────────────────────── */
body.view-article .com-content-article dl.article-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.5rem;
  font-family: var(--pms-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pms-muted);
  border-top: 1px solid var(--pms-border);
  border-bottom: 1px solid var(--pms-border);
  padding: 0.75rem 0;
  margin: 0 0 2.5rem;
}

body.view-article .com-content-article .article-info-term { display: none; }
body.view-article .com-content-article .article-info dd   { margin: 0; }

/* Hide Cassiopeia's icon spans inside metadata */
body.view-article .com-content-article .article-info [class^="icon-"] { display: none; }

/* Category link */
body.view-article .com-content-article .article-info .category-name a {
  color: var(--pms-link);
  text-decoration: none;
  font-weight: 500;
}

/* Hide author + hit counter — too noisy for editorial layout */
body.view-article .com-content-article .article-info .createdby,
body.view-article .com-content-article .article-info .hits { display: none; }

/* ── Hero image ──────────────────────────────────────────────── */
body.view-article .com-content-article figure.item-image {
  float: none !important;
  width: 100%;
  margin: 0 0 2.5rem;
}

body.view-article .com-content-article figure.item-image img {
  width: 100%;
  height: clamp(240px, 45vw, 460px);
  object-fit: cover;
  display: block;
}

/* ── Article body ────────────────────────────────────────────── */
.com-content-article__body {
  font-family: var(--pms-serif);
  font-size: 1.15rem;
  line-height: 1.78;
  color: var(--pms-dark);
}

/* First paragraph as italic lead */
.com-content-article__body > p:first-child {
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.65;
}

/* Drop cap — blue first letter on the lead paragraph */
.com-content-article__body > p:first-child::first-letter {
  font-family: var(--pms-serif);
  font-size: 4.25rem;
  font-weight: 400;
  font-style: normal;
  color: var(--pms-main);
  float: left;
  line-height: 0.82;
  padding-right: 0.08em;
  margin-top: 0.06em;
}

.com-content-article__body p { margin-bottom: 1.5em; }

.com-content-article__body h2 {
  font-family: var(--pms-serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--pms-dark);
  margin: 2.5rem 0 1rem;
}

.com-content-article__body h3 {
  font-family: var(--pms-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.6);
  margin: 2.5rem 0 0.5rem;
}

.com-content-article__body blockquote {
  border-left: 3px solid var(--pms-main);
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.6;
}

.com-content-article__body a {
  color: var(--pms-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.com-content-article__body img {
  max-width: 100%;
  height: auto;
}

/* ── Page navigation (prev / next article) ───────────────────── */
body.view-article nav.pagenavigation {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--pms-border);
}

body.view-article nav.pagenavigation .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--pms-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--pms-border);
  color: var(--pms-dark);
  padding: 0.6rem 1.25rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.view-article nav.pagenavigation .btn:hover {
  background: var(--pms-dark);
  color: var(--pms-white);
  border-color: var(--pms-dark);
  text-decoration: none;
}


/* ============================================================
   FOOTER
   ============================================================ */
.container-footer {
  background: var(--pms-dark) !important;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Reset Cassiopeia grid-child padding inside footer */
.container-footer .grid-child {
  padding: 0 !important;
  max-width: 100%;
}

.pms-footer {
  max-width: var(--pms-max-w);
  margin: 0 auto;
  padding: 1.25rem var(--pms-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pms-footer__left,
.pms-footer__right {
  font-family: var(--pms-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

.pms-footer__links {
  display: flex;
  gap: 2rem;
}

.pms-footer__link {
  font-family: var(--pms-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pms-footer__link:hover {
  color: var(--pms-white);
  text-decoration: none;
}

@media (max-width: 767px) {
  .pms-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
  .pms-footer__left {
    display: none;
  }
  .pms-footer__links {
    gap: 1.5rem;
  }
}


/* ============================================================
   WELCOME ADDRESS PAGE  (body.pms-welcome)
   All wa-* rules scoped here to beat body.view-article specificity.
   ============================================================ */

/* ── Override article container — full-width editorial layout ── */
body.pms-welcome .com-content-article,
body.pms-welcome .com-content-article.item-page {
  max-width: 100% !important;
  padding: 0 !important;
}

/* Hide Joomla auto-generated elements (need !important — view-article rules are more specific) */
body.pms-welcome .page-header,
body.pms-welcome .article-info,
body.pms-welcome figure.item-image,
body.pms-welcome nav.pagenavigation { display: none !important; }

/* ── § 01 kicker ─────────────────────────────────────────────── */
body.pms-welcome .wa-kicker {
  font-family: var(--pms-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pms-link);
  max-width: var(--pms-max-w);
  margin: 0 auto;
  padding: 2.5rem var(--pms-pad-x) 0;
}

/* ── Visual headline ─────────────────────────────────────────── */
body.pms-welcome .wa-headline {
  font-family: var(--pms-serif);
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--pms-dark);
  max-width: var(--pms-max-w);
  margin: 0 auto;
  padding: 1rem var(--pms-pad-x) 2.5rem;
}

body.pms-welcome .wa-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--pms-link);
}

/* ── 2-col intro: author sidebar + opening para ──────────────── */
body.pms-welcome .wa-intro-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  max-width: var(--pms-max-w);
  margin: 0 auto;
  padding: 0 var(--pms-pad-x) 3rem;
  border-bottom: 1px solid var(--pms-border);
}

body.pms-welcome .wa-intro-meta {
  padding-right: 3.5rem;
  border-right: 1px solid var(--pms-border);
  display: flex;
  flex-direction: column;
}

body.pms-welcome .wa-intro-meta__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--pms-border);
}

body.pms-welcome .wa-intro-meta__group--last {
  border-bottom: none;
}

body.pms-welcome .wa-label {
  font-family: var(--pms-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pms-muted);
}

body.pms-welcome .wa-author-name {
  font-family: var(--pms-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--pms-dark);
}

body.pms-welcome .wa-author-role {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--pms-muted);
}

body.pms-welcome .wa-meta-value {
  font-family: var(--pms-serif);
  font-size: 1rem;
  color: var(--pms-dark);
}

body.pms-welcome .wa-intro-opening {
  padding-left: 4rem;
  display: flex;
  align-items: center;
}

body.pms-welcome .wa-intro-opening p {
  font-family: var(--pms-serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.65;
  color: var(--pms-dark);
}

/* ── Full-width hero figure ──────────────────────────────────── */
body.pms-welcome .wa-figure {
  margin: 0 0 0;
}

body.pms-welcome .wa-figure__wrap {
  position: relative;
  width: 100%;
}

body.pms-welcome .wa-figure__img {
  width: 100%;
  height: clamp(340px, 52vw, 620px);
  object-fit: cover;
  display: block;
}

body.pms-welcome .wa-figure__copyright {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  font-family: var(--pms-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

body.pms-welcome .wa-figure__caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem var(--pms-pad-x);
  border-bottom: 1px solid var(--pms-border);
  font-family: var(--pms-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pms-muted);
}

/* ── 2-col body: sticky § sidebar + main text ───────────────── */
body.pms-welcome .wa-body-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  max-width: var(--pms-max-w);
  margin: 0 auto;
  padding: 4.5rem var(--pms-pad-x) 7rem;
}

body.pms-welcome .wa-body-sidebar {
  padding-right: 4rem;
  border-right: 1px solid var(--pms-border);
  position: sticky;
  top: 5rem;
  align-self: start;
}

body.pms-welcome .wa-subsec-label {
  display: block;
  font-family: var(--pms-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pms-link);
  margin-bottom: 1rem;
}

body.pms-welcome .wa-subsec-desc {
  font-family: var(--pms-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--pms-dark);
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--pms-border);
}

body.pms-welcome .wa-toc__label {
  display: block;
  font-family: var(--pms-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pms-muted);
  margin-bottom: 0.85rem;
}

body.pms-welcome .wa-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

body.pms-welcome .wa-toc__list li {
  font-family: var(--pms-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--pms-muted);
  line-height: 1.4;
}

/* ── Body main text ──────────────────────────────────────────── */
body.pms-welcome .wa-body-main {
  padding-left: 5rem;
}

body.pms-welcome .wa-body-main p {
  font-family: var(--pms-serif);
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--pms-dark);
  margin-bottom: 1.75em;
}

/* Drop cap on the opening paragraph */
body.pms-welcome .wa-dropcap::first-letter {
  font-family: var(--pms-serif);
  font-size: 4.5rem;
  font-weight: 700;
  font-style: normal;
  color: var(--pms-main);
  float: left;
  line-height: 0.8;
  padding-right: 0.08em;
  margin-top: 0.1em;
}

body.pms-welcome .wa-body-main h2 {
  font-family: var(--pms-serif);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--pms-dark);
  margin: 3.5rem 0 1.25rem;
}

body.pms-welcome .wa-body-main blockquote {
  border-left: 3px solid var(--pms-main);
  padding: 0.5rem 0 0.5rem 2rem;
  margin: 3rem 0;
}

body.pms-welcome .wa-body-main blockquote p {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 0.65rem;
}

body.pms-welcome .wa-body-main blockquote cite {
  font-family: var(--pms-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pms-muted);
  font-style: normal;
}

body.pms-welcome .wa-body-main a {
  color: var(--pms-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ── Signature ───────────────────────────────────────────────── */
body.pms-welcome .wa-signature {
  margin-top: 4rem;
  padding-top: 0.25rem;
}

body.pms-welcome .wa-signature__name {
  font-family: var(--pms-serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--pms-dark);
  display: block;
  margin-bottom: 1.25rem;
}

body.pms-welcome .wa-signature__rule {
  border: none;
  border-top: 1px solid var(--pms-border);
  margin: 0 0 0.85rem;
}

body.pms-welcome .wa-signature__title {
  font-family: var(--pms-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pms-muted);
}

/* ── § 02 NEXT STEPS module ──────────────────────────────────── */
body.pms-welcome .wa-next-steps {
  background: var(--pms-bg-warm);
  padding: 80px var(--pms-pad-x) 100px;
}

body.pms-welcome .wa-next-steps__inner {
  max-width: var(--pms-max-w);
  margin: 0 auto;
}

body.pms-welcome .wa-next-steps__kicker {
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pms-link);
  display: block;
  margin-bottom: 1.25rem;
}

body.pms-welcome .wa-next-steps__title {
  font-family: var(--pms-serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--pms-dark);
  margin-bottom: 3rem;
}

body.pms-welcome .wa-next-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(10, 10, 10, 0.12);
}

body.pms-welcome .wa-step {
  padding: 2rem 2.25rem 2.5rem;
  border-right: 1px solid rgba(10, 10, 10, 0.12);
  display: flex;
  flex-direction: column;
}

body.pms-welcome .wa-step:last-child { border-right: none; }

body.pms-welcome .wa-step__num {
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(10, 10, 10, 0.65);
  margin-bottom: 1.5rem;
}

body.pms-welcome .wa-step__body {
  font-family: var(--pms-serif);
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(10, 10, 10, 0.7);
  flex: 1;
  margin-bottom: 1.75rem;
}

body.pms-welcome .wa-step__link {
  font-family: var(--pms-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pms-dark);
  text-decoration: none;
  transition: color 0.2s ease, letter-spacing 0.25s ease;
}

body.pms-welcome .wa-step__link:hover {
  color: var(--pms-link);
  letter-spacing: 0.18em;
  text-decoration: none;
}

/* Third card — filled accessible teal (--pms-link: white text 5:1) */
body.pms-welcome .wa-step--accent {
  background: var(--pms-link);
  border-right: none;
}

body.pms-welcome .wa-step--accent .wa-step__num  { color: rgba(255, 255, 255, 0.55); }
body.pms-welcome .wa-step--accent .wa-step__body { color: rgba(255, 255, 255, 0.95); }
body.pms-welcome .wa-step--accent .wa-step__link { color: var(--pms-white); }
body.pms-welcome .wa-step--accent .wa-step__link:hover {
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.18em;
}

/* ── Responsive (≤ 767 px) ───────────────────────────────────── */
@media (max-width: 767px) {
  body.pms-welcome .wa-intro-grid {
    grid-template-columns: 1fr;
    padding: 0 var(--pms-pad-x) 2rem;
  }

  body.pms-welcome .wa-intro-meta {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--pms-border);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  body.pms-welcome .wa-intro-opening {
    padding-left: 0;
  }

  body.pms-welcome .wa-body-grid {
    grid-template-columns: 1fr;
    padding: 3rem var(--pms-pad-x) 5rem;
  }

  body.pms-welcome .wa-body-sidebar {
    position: static;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--pms-border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  body.pms-welcome .wa-body-main {
    padding-left: 0;
  }

  body.pms-welcome .wa-next-steps__grid {
    grid-template-columns: 1fr;
  }

  body.pms-welcome .wa-step {
    border-right: none;
    border-bottom: 1px solid rgba(10, 10, 10, 0.12);
  }

  body.pms-welcome .wa-step:last-child { border-bottom: none; }
}

/* Strip Cassiopeia card chrome from main-bottom position.
   Cassiopeia puts class "main-bottom" on the .card itself — NOT on a parent wrapper.
   .container-main-bottom does not exist in the DOM. */
.main-bottom.card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin-top: 0;
}

.main-bottom.card .card-body {
  padding: 0;
}


/* ============================================================
   WCAG 2.1 AA — SKIP NAVIGATION  (SC 2.4.1)
   Visually hidden until focused; jumps keyboard users past header.
   ============================================================ */

.pms-skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.6rem 1.25rem;
  background: var(--pms-link);
  color: var(--pms-white);
  font-family: var(--pms-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.15s ease;
}

.pms-skip-nav:focus-visible {
  top: 0;
  outline: 3px solid var(--pms-white);
  outline-offset: 2px;
}


/* ============================================================
   WCAG 2.1 AA — FOCUS INDICATORS  (SC 2.4.7)
   3px solid offset ring on all interactive elements.
   :focus-visible keeps it keyboard-only (no mouse ring).
   ============================================================ */

:focus-visible {
  outline: 3px solid var(--pms-link);
  outline-offset: 3px;
}

/* Remove outline on focus (non-visible) — don't suppress :focus-visible */
:focus:not(:focus-visible) {
  outline: none;
}

/* Cards need a slightly larger offset so the ring clears the border */
.pms-explore-card:focus-visible {
  outline-offset: 0px;
  outline: 3px solid var(--pms-link);
  z-index: 1;
}

/* Buttons already have a border; keep ring outside it */
.pms-btn:focus-visible {
  outline: 3px solid var(--pms-link);
  outline-offset: 4px;
}

/* .com-content-article__body a wins on specificity (class+element > class).
   Re-assert button colours globally so any article-body button stays correct. */
.com-content-article__body .pms-btn--filled,
.com-content-article__body .pms-btn--filled:hover { color: var(--pms-white); }

.com-content-article__body .pms-btn--outline,
.com-content-article__body .pms-btn--outline:hover { color: var(--pms-white); }

/* Footer links on dark bg — use white ring so it's visible */
.pms-footer__link:focus-visible {
  outline-color: var(--pms-white);
}

/* Search input already has border-color; keep the ring */
.container-header .mod-finder input:focus-visible {
  border-color: var(--pms-link);
  outline: 2px solid var(--pms-link);
  outline-offset: 1px;
}

/* FAQ trigger button */
.pms-faq-item__trigger:focus-visible {
  outline: 3px solid var(--pms-link);
  outline-offset: 3px;
}


/* ============================================================
   WCAG 2.1 AA — REDUCED MOTION  (SC 2.2.2)
   Hide/pause auto-playing media when the user prefers reduced motion.
   JS in user.js also pauses the video element directly.
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .pms-hero__video {
    display: none;
  }

  .pms-hero__scroll-line {
    animation: none;
  }

  .pms-topbar__badge-dot {
    animation: none;
    opacity: 1;
  }

  .pms-explore-card {
    opacity: 1;
    transform: none;
    transition: background 0.2s ease;
  }
}


/* ============================================================
   FAQ — ARIA ACCORDION  (SC 4.1.2)
   .pms-faq-item__trigger replaces the old static question <p>.
   JS toggles aria-expanded and hidden on the answer panel.
   ============================================================ */

.pms-faq-item__trigger {
  display: contents; /* inherit parent grid layout */
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  width: 100%;
}

/* Trigger as a grid row wrapper */
.pms-faq-item {
  cursor: pointer;
}

.pms-faq-item__trigger {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 1rem;
  align-items: start;
  width: 100%;
  background: none;
  border: none;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--pms-border);
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

/* Remove default item padding since trigger now owns it */
.pms-faq-item {
  display: contents;
}

.pms-faq-item__q {
  font-family: var(--pms-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--pms-dark);
  line-height: 1.35;
  margin: 0;
}

.pms-faq-item__a {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(10, 10, 10, 0.62);
  padding: 0 0 0 3.5rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease,
              opacity 0.2s ease,
              padding-bottom 0.35s ease;
}

.pms-faq-item__a.is-open {
  max-height: 2000px; /* JS overrides with scrollHeight; this is a no-JS fallback */
  opacity: 1;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--pms-border);
}

/* The + rotates to × when expanded */
.pms-faq-item__plus {
  font-size: 1.1rem;
  color: var(--pms-muted);
  padding-top: 0.1rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  display: inline-block;
}

.pms-faq-item__trigger[aria-expanded="true"] {
  border-bottom: none;
}

.pms-faq-item__trigger[aria-expanded="true"] .pms-faq-item__plus {
  transform: rotate(45deg);
}

/* ============================================================
   PROGRAMME PAGES  (body.pms-programme)
   ============================================================ */

/* ── Strip Joomla article chrome ─────────────────────────────── */
body.pms-programme .page-header,
body.pms-programme .com-content-article dl.article-info {
  display: none;
}

body.pms-programme .com-content-article__body {
  padding-top: 0;
}

/* ── Hero ────────────────────────────────────────────────────── */
body.pms-programme .prog-hero {
  background: var(--pms-bg-warm);
  border-bottom: 1px solid var(--pms-border);
}

body.pms-programme .prog-hero__inner {
  max-width: var(--pms-max-w);
  margin: 0 auto;
  padding: 80px var(--pms-pad-x) 70px;
}

body.pms-programme .prog-eyebrow {
  display: block;
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pms-link);
  margin-bottom: 1.5rem;
}

body.pms-programme .prog-hero__title {
  font-family: var(--pms-serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--pms-dark);
  margin: 0 0 1.5rem;
}

body.pms-programme .prog-hero__title em {
  font-style: italic;
  color: var(--pms-link);
}

body.pms-programme .prog-hero__blurb {
  font-family: var(--pms-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(10, 10, 10, 0.6);
  max-width: 46ch;
  line-height: 1.65;
  margin: 0;
}

/* ── Content layout ──────────────────────────────────────────── */
body.pms-programme .prog-content {
  background: var(--pms-bg);
}

body.pms-programme .prog-content__inner {
  max-width: var(--pms-max-w);
  margin: 0 auto;
  padding: 80px var(--pms-pad-x) 100px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 5rem;
  align-items: start;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
body.pms-programme .prog-sidebar {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

body.pms-programme .prog-sidebar__label {
  font-family: var(--pms-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pms-link);
}

body.pms-programme .prog-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--pms-border);
  border-bottom: 1px solid var(--pms-border);
  padding: 0.5rem 0;
}

body.pms-programme .prog-nav__link {
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--pms-muted);
  text-decoration: none;
  padding: 0.45rem 0 0.45rem 0.85rem;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

body.pms-programme .prog-nav__link:hover {
  color: var(--pms-link);
}

body.pms-programme .prog-nav__link.is-current {
  color: var(--pms-link);
  border-left-color: var(--pms-link);
  pointer-events: none;
  cursor: default;
}

body.pms-programme .prog-sidebar__meta {
  font-family: var(--pms-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pms-muted);
}

/* ── Main content ────────────────────────────────────────────── */
body.pms-programme .prog-section + .prog-section {
  border-top: 1px solid var(--pms-border);
  padding-top: 3.5rem;
  margin-top: 3.5rem;
}

body.pms-programme .prog-section__eyebrow {
  display: block;
  font-family: var(--pms-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pms-link);
  margin-bottom: 1rem;
}

body.pms-programme .prog-section__heading {
  font-family: var(--pms-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--pms-dark);
  margin: 0 0 2rem;
}

body.pms-programme .prog-section__body p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(10, 10, 10, 0.75);
  max-width: 68ch;
  margin-bottom: 1.25rem;
}

body.pms-programme .prog-section__body p:last-child {
  margin-bottom: 0;
}

body.pms-programme .prog-section__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.pms-programme .prog-section__list li {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(10, 10, 10, 0.75);
  padding-left: 1.25rem;
  border-left: 2px solid var(--pms-border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

body.pms-programme .prog-section__list-label {
  font-family: var(--pms-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pms-link);
}

/* ── Body prose lists & sub-headings ────────────────────────── */
body.pms-programme .prog-section__body h3 {
  font-family: var(--pms-serif);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--pms-dark);
  margin: 2rem 0 0.75rem;
}

body.pms-programme .prog-section__body ul,
body.pms-programme .prog-section__body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  max-width: 68ch;
}

body.pms-programme .prog-section__body li {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(10, 10, 10, 0.75);
  margin-bottom: 0.5rem;
}

/* ── Staff roster table ──────────────────────────────────────── */
body.pms-programme .prog-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.pms-programme .prog-table {
  margin-top: 1.5rem;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

body.pms-programme .prog-table thead th {
  font-family: var(--pms-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pms-link);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--pms-dark);
  white-space: nowrap;
}

body.pms-programme .prog-table tbody tr {
  border-bottom: 1px solid var(--pms-border);
}

body.pms-programme .prog-table tbody tr:last-child {
  border-bottom: none;
}

body.pms-programme .prog-table td {
  padding: 0.75rem 1rem;
  color: rgba(10, 10, 10, 0.75);
  line-height: 1.5;
  vertical-align: top;
}

body.pms-programme .prog-table tbody tr:nth-child(even) {
  background: rgba(10, 10, 10, 0.025);
}

/* ── Guides / Downloads list ─────────────────────────────────── */
body.pms-programme .dl-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

body.pms-programme .dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--pms-border);
}

body.pms-programme .dl-item:first-child {
  border-top: 1px solid var(--pms-border);
}

body.pms-programme .dl-item__info {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

body.pms-programme .dl-item__num {
  font-family: var(--pms-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--pms-muted);
  flex-shrink: 0;
}

body.pms-programme .dl-item__title {
  font-family: var(--pms-serif);
  font-size: 1rem;
  color: var(--pms-dark);
  line-height: 1.4;
}

body.pms-programme .dl-item__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

body.pms-programme .dl-item__pages {
  font-family: var(--pms-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--pms-muted);
}

body.pms-programme .dl-item__badge {
  font-family: var(--pms-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pms-link);
  border: 1px solid currentColor;
  padding: 0.15em 0.5em;
  border-radius: 2px;
}

body.pms-programme .dl-item__link {
  font-family: var(--pms-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--pms-link);
  border: 1px solid var(--pms-link);
  padding: 0.4em 0.85em;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

body.pms-programme .dl-item__link:hover,
body.pms-programme .dl-item__link:focus-visible {
  background: var(--pms-link);
  color: #fff;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  body.pms-programme .prog-content__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    padding: 3rem var(--pms-pad-x) 5rem;
  }

  body.pms-programme .prog-sidebar {
    position: static;
  }

  body.pms-programme .dl-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}


/* ══════════════════════════════════════════════════════════════
   COMING SOON — body.pms-soon
   Set Page Class = "pms-soon" on the menu item (Admin → Menus → Advanced)
   ══════════════════════════════════════════════════════════════ */

/* Hide article chrome — title, metadata, image, prev/next nav */
body.pms-soon .com-content-article .page-header,
body.pms-soon .com-content-article dl.article-info,
body.pms-soon .com-content-article figure.item-image,
body.pms-soon .com-content-article .pager { display: none; }

/* Reset the 820px prose constraint inherited from body.view-article */
body.pms-soon .com-content-article.item-page {
  max-width: none;
  padding: 0;
  margin: 0;
}

/* Reset prose font-size so our cs-* classes control everything */
body.pms-soon .com-content-article__body {
  font-size: inherit;
  line-height: inherit;
  padding: 0;
  margin: 0;
}

/* ── Shared inner container ─── */
.cs-soon__inner,
.cs-toc__inner {
  max-width: var(--pms-max-w);
  margin: 0 auto;
  padding-inline: 2rem;
}

/* ── § Soon hero ─── */
.cs-soon {
  background: var(--pms-bg);
  padding: 5rem 0 4rem;
}

.cs-soon__eyebrow {
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pms-muted);
  margin-bottom: 2rem;
}

.cs-soon__title {
  font-family: var(--pms-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(5rem, 14vw, 13rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--pms-dark);
  margin: 0 0 3rem;
}

.cs-soon__dot { color: var(--pms-main); }

.cs-soon__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--pms-border);
  margin-bottom: 3rem;
}

.cs-soon__lead {
  font-family: var(--pms-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--pms-dark);
}

.cs-soon__accent {
  font-style: italic;
  color: var(--pms-main);
}

.cs-soon__desc {
  font-family: var(--pms-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--pms-muted);
  padding-top: 0.5rem;
}

.cs-soon__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.cs-soon__actions a {
  text-decoration: none;
}

/* Outline button variant for light background */
.cs-btn--outline {
  background: transparent;
  color: var(--pms-dark);
  border: 2px solid rgba(10, 10, 10, 0.25);
  font-family: var(--pms-sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cs-btn--outline:hover {
  border-color: var(--pms-dark);
  color: var(--pms-dark);
  text-decoration: none;
  transform: translateY(-2px);
}

.cs-btn--outline:focus-visible {
  outline: 3px solid var(--pms-link);
  outline-offset: 4px;
}

/* ── § TOC ─── */
.cs-toc {
  background: var(--pms-bg-warm);
  padding: 5rem 0;
}

.cs-toc__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.cs-toc__eyebrow {
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pms-muted);
  margin-bottom: 1rem;
}

.cs-toc__heading {
  font-family: var(--pms-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  color: var(--pms-dark);
  margin-bottom: 1.5rem;
}

.cs-toc__note {
  font-family: var(--pms-serif);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--pms-muted);
}

.cs-toc__note em {
  font-style: normal;
  color: var(--pms-main);
}

.cs-toc__table { border-top: 1px solid var(--pms-border); }

.cs-toc__row {
  display: grid;
  grid-template-columns: 2.5rem 1fr 1.5fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--pms-border);
}

.cs-toc__num {
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--pms-muted);
}

.cs-toc__link {
  font-family: var(--pms-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--pms-dark);
  text-decoration: none;
}

body.pms-soon a.cs-toc__link:hover { color: var(--pms-link); }

.cs-toc__row--soon .cs-toc__link { color: var(--pms-muted); }

.cs-toc__desc {
  font-family: var(--pms-serif);
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--pms-muted);
}

.cs-toc__page {
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--pms-link);
  white-space: nowrap;
}

.cs-toc__badge {
  font-family: var(--pms-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pms-muted);
  border: 1px solid var(--pms-border);
  padding: 0.2em 0.6em;
  border-radius: 2px;
  white-space: nowrap;
}

/* ── TOC module wrapper — Cassiopeia wraps main-bottom in .card + .card-body.
   Set Module Class = "pms-toc" in Joomla (module Advanced tab) to target it. ── */
body.pms-soon .main-bottom.card.pms-toc {
  background: transparent;
  margin-top: 0;
}

body.pms-soon .main-bottom.card.pms-toc .card-body { padding: 0; }

/* cs-btn--outline is light-bg only — re-assert dark text after article-body a override */
body.pms-soon .com-content-article__body .cs-btn--outline,
body.pms-soon .com-content-article__body .cs-btn--outline:hover { color: var(--pms-dark); }

/* ── Responsive ─── */
@media (max-width: 768px) {
  .cs-soon__split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cs-toc__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .cs-toc__row {
    grid-template-columns: 2rem 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.4rem 0.75rem;
  }

  .cs-toc__desc {
    grid-column: 2 / -1;
  }
}

/* ══════════════════════════════════════════════════════════════
   404 — body.error_site
   Wire up in Joomla: Custom HTML module → position "error-404"
   (no article, no page class needed — Cassiopeia error.php sets
   body.error_site automatically on all error pages)
   Reuses all cs-soon__* styles (de-scoped, global).
   ══════════════════════════════════════════════════════════════ */

/* error_site can inherit pms-home body class (Joomla getActive() returns homepage) — undo it */
body.error_site .container-component { display: block; }

/* Strip Cassiopeia's .container chrome so cs-soon renders full-width */
body.error_site .container-component > .container { max-width: none; padding: 0; margin: 0; }
body.error_site .container-component > .container > main { padding: 0; }

/* ══════════════════════════════════════════════════════════════
   COURSES & CURRICULUM — body.pms-courses
   Set Page Class = "pms-courses" on the menu item
   ══════════════════════════════════════════════════════════════ */

/* ── Article chrome + prose reset ── */
body.pms-courses .com-content-article .page-header,
body.pms-courses .com-content-article dl.article-info,
body.pms-courses .com-content-article figure.item-image,
body.pms-courses .com-content-article .pager,
body.pms-courses .pagenavigation { display: none; }

body.pms-courses .com-content-article.item-page { max-width: none; padding: 0; margin: 0; }
body.pms-courses .com-content-article__body { font-size: inherit; line-height: inherit; padding: 0; margin: 0; }

/* Reset only structural chrome from article heading styles — NOT font properties.
   Specificity of cc-* selectors (0,2,1) already beats article body h* rules (0,1,1). */
body.pms-courses .com-content-article__body h1,
body.pms-courses .com-content-article__body h2,
body.pms-courses .com-content-article__body h3 {
  margin: 0;
  padding: 0;
  border: none;
}

body.pms-courses .com-content-article__body p { margin: 0; }
body.pms-courses .com-content-article__body ul { margin: 0; padding: 0; }
body.pms-courses .com-content-article__body > p:first-child { font-size: inherit; font-style: inherit; }
body.pms-courses .com-content-article__body > p:first-child::first-letter {
  font-family: inherit; font-size: inherit; float: none; line-height: inherit; margin: 0; color: inherit;
}

/* ── Shared inner container ── */
body.pms-courses .cc-inner {
  max-width: var(--pms-max-w);
  margin: 0 auto;
  padding-inline: 2rem;
}

/* ── Shared eyebrow ── */
body.pms-courses .cc-eyebrow {
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pms-muted);
  margin-bottom: 1rem;
}

body.pms-courses .cc-label {
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pms-muted);
  margin-bottom: 0.75rem;
}

/* ── § 00 Hero ── */
body.pms-courses .cc-hero {
  background: var(--pms-bg);
  padding: 4rem 0 3rem;
}

body.pms-courses .cc-hero__title {
  font-family: var(--pms-serif);
  font-weight: 400;
  font-size: clamp(3rem, 6.5vw, 6rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--pms-dark);
  margin: 0 0 3rem;
}

body.pms-courses .cc-accent {
  font-style: italic;
  color: var(--pms-main);
}

body.pms-courses .cc-hero__split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--pms-border);
  margin-bottom: 3rem;
}

body.pms-courses .cc-hero__aside {
  font-family: var(--pms-serif);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--pms-muted);
}

body.pms-courses .cc-hero__body p {
  font-family: var(--pms-serif);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--pms-dark);
  margin-bottom: 1.25em;
}

body.pms-courses .cc-hero__body p:last-child { margin-bottom: 0; }

/* ── Stats bar ── */
body.pms-courses .cc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--pms-border);
  border-bottom: 1px solid var(--pms-border);
  padding: 1.5rem 0;
}

body.pms-courses .cc-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0 1.5rem;
  border-right: 1px solid var(--pms-border);
}

body.pms-courses .cc-stats__item:first-child { padding-left: 0; }
body.pms-courses .cc-stats__item:last-child { border-right: none; }

body.pms-courses .cc-stats__num {
  font-family: var(--pms-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--pms-dark);
  line-height: 1;
}

body.pms-courses .cc-stats__num--sm { font-size: 1.35rem; padding-top: 0.3rem; }

body.pms-courses .cc-stats__label {
  font-family: var(--pms-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pms-muted);
}

/* ── § 01–04 Course Ledger ── */
body.pms-courses .cc-ledger {
  background: var(--pms-bg);
  padding: 0 0 4rem;
}

body.pms-courses .cc-sem {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  padding: 3.5rem 0;
  border-top: 1px solid var(--pms-border);
}

body.pms-courses .cc-sem__name {
  font-family: var(--pms-serif);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--pms-dark);
  margin: 0.25rem 0 0.5rem;
}

body.pms-courses .cc-sem__season {
  font-family: var(--pms-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pms-muted);
  margin-bottom: 1rem;
}

body.pms-courses .cc-sem__desc {
  font-family: var(--pms-serif);
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--pms-muted);
  margin-bottom: 1.5rem;
}
body.pms-courses .cc-sem__tbc,
body.pms-courses .cc-table-note {
  font-family: var(--pms-serif);
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--pms-muted);
  margin-top: 0.75rem;
}

body.pms-courses .cc-sem__totals {
  display: flex;
  gap: 2rem;
}

body.pms-courses .cc-sem__total-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

body.pms-courses .cc-sem__total-num {
  font-family: var(--pms-serif);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--pms-dark);
  line-height: 1;
}

body.pms-courses .cc-sem__total-label {
  font-family: var(--pms-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pms-muted);
}

/* ── Table rows ── */
body.pms-courses .cc-sem__table {
  align-self: start;
  border-top: 1px solid var(--pms-border);
}

body.pms-courses .cc-thead,
body.pms-courses .cc-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 6.5rem 8rem 5rem;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--pms-border);
}

body.pms-courses .cc-th {
  font-family: var(--pms-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pms-muted);
}

body.pms-courses .cc-th--r,
body.pms-courses .cc-td--credits { text-align: right; }

body.pms-courses .cc-td--code {
  font-family: var(--pms-mono);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  color: var(--pms-muted);
}

body.pms-courses .cc-td--name {
  font-family: var(--pms-serif);
  font-size: 0.975rem;
  color: var(--pms-dark);
}

body.pms-courses .cc-td--owner {
  font-family: var(--pms-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pms-muted);
}

body.pms-courses .cc-td--credits {
  font-family: var(--pms-serif);
  font-size: 1rem;
  color: var(--pms-dark);
}

body.pms-courses .cc-ects {
  font-family: var(--pms-mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pms-muted);
  margin-left: 0.15em;
  vertical-align: super;
}

/* ── Badges ── */
body.pms-courses .cc-badge {
  display: inline-block;
  font-family: var(--pms-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25em 0.65em;
  border-radius: 2px;
  white-space: nowrap;
}

body.pms-courses .cc-badge--core {
  background: rgba(0, 159, 207, 0.1);
  color: var(--pms-link);
  border: 1px solid rgba(0, 112, 160, 0.2);
}

body.pms-courses .cc-badge--elective {
  background: transparent;
  color: var(--pms-muted);
  border: 1px solid var(--pms-border);
}

body.pms-courses .cc-badge--seminar {
  background: transparent;
  color: var(--pms-muted);
  border: 1px solid var(--pms-border);
}

body.pms-courses .cc-badge--rotation {
  background: rgba(10, 10, 10, 0.05);
  color: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(10, 10, 10, 0.12);
}

body.pms-courses .cc-badge--workshop {
  background: transparent;
  color: var(--pms-muted);
  border: 1px solid var(--pms-border);
}

body.pms-courses .cc-badge--thesis {
  background: var(--pms-dark);
  color: #fff;
  border: 1px solid var(--pms-dark);
}

/* ── Programme total ── */
body.pms-courses .cc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.25rem 0;
  margin-top: 0.5rem;
  border-top: 2px solid var(--pms-dark);
}

body.pms-courses .cc-total__label {
  font-family: var(--pms-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pms-muted);
}

body.pms-courses .cc-total__num {
  font-family: var(--pms-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--pms-dark);
}

/* ── § II Course Syllabi ── */
body.pms-courses .cc-syllabi {
  background: var(--pms-bg-warm);
  padding: 5rem 0;
}

body.pms-courses .cc-syllabi .cc-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
}

body.pms-courses .cc-syllabi__heading {
  font-family: var(--pms-serif);
  font-style: italic;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--pms-dark);
  margin-bottom: 1rem;
}

body.pms-courses .cc-syllabi__hint {
  font-family: var(--pms-serif);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--pms-muted);
}

body.pms-courses .cc-syllabi__sem-label {
  font-family: var(--pms-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pms-link);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pms-border);
  margin-bottom: 0;
}

/* ── Accordion item ── */
body.pms-courses .cc-syl-item {
  border-bottom: 1px solid var(--pms-border);
}

body.pms-courses .cc-syl-item__trigger {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 1rem;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

body.pms-courses .cc-syl-item__code {
  font-family: var(--pms-mono);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  color: var(--pms-muted);
}

body.pms-courses .cc-syl-item__title {
  font-family: var(--pms-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--pms-dark);
  line-height: 1.3;
  transition: color 0.2s ease;
}

body.pms-courses .cc-syl-item__trigger:hover .cc-syl-item__title {
  color: var(--pms-link);
}

body.pms-courses .cc-syl-item__plus {
  font-size: 1.1rem;
  color: var(--pms-muted);
  flex-shrink: 0;
  transition: transform 0.25s ease;
  display: inline-block;
}

body.pms-courses .cc-syl-item__trigger[aria-expanded="true"] .cc-syl-item__plus {
  transform: rotate(45deg);
}

body.pms-courses .cc-syl-item__panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease,
              opacity 0.25s ease,
              padding-bottom 0.4s ease;
  padding-bottom: 0;
}

body.pms-courses .cc-syl-item__panel.is-open {
  max-height: 2000px; /* JS overrides with scrollHeight; this is a no-JS fallback */
  opacity: 1;
  padding-bottom: 1.5rem;
}

body.pms-courses .cc-syl-item__body {
  padding-left: 4rem;
}

body.pms-courses .cc-syl-item__desc {
  font-family: var(--pms-serif);
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(10, 10, 10, 0.72);
  margin-bottom: 1.25rem;
}

body.pms-courses .cc-syl-item__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pms-border);
}

body.pms-courses .cc-syl-item__meta-label {
  display: block;
  font-family: var(--pms-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pms-link);
  margin-bottom: 0.4rem;
}

body.pms-courses .cc-syl-item__meta-value {
  display: block;
  font-family: var(--pms-serif);
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(10, 10, 10, 0.65);
}

body.pms-courses .cc-syl-item__trigger:focus-visible {
  outline: 3px solid var(--pms-link);
  outline-offset: 3px;
}

/* ── § III Downloads ── */
body.pms-courses .cc-downloads {
  background: var(--pms-bg);
  padding: 4rem 0;
}

body.pms-courses .cc-downloads .cc-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--pms-border);
}

body.pms-courses .cc-dl__item {
  padding: 2.5rem 2.5rem 2.5rem 0;
  border-right: 1px solid var(--pms-border);
}

body.pms-courses .cc-dl__item:last-child { border-right: none; padding-right: 0; }
body.pms-courses .cc-dl__item:not(:first-child) { padding-left: 2.5rem; }

body.pms-courses .cc-dl__meta {
  font-family: var(--pms-mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pms-link);
  margin-bottom: 0.75rem;
}

body.pms-courses .cc-dl__title {
  font-family: var(--pms-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--pms-dark);
  margin-bottom: 0.6rem;
}

body.pms-courses .cc-dl__desc {
  font-family: var(--pms-serif);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--pms-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

body.pms-courses .cc-dl__btn {
  display: inline-block;
  font-family: var(--pms-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pms-dark);
  border: 1px solid rgba(10, 10, 10, 0.25);
  padding: 0.65rem 1.25rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

body.pms-courses .cc-dl__btn:hover {
  border-color: var(--pms-dark);
  text-decoration: none;
}

body.pms-courses .cc-dl__btn--arrow {
  border-color: var(--pms-link);
  color: var(--pms-link);
}

body.pms-courses .cc-dl__btn--arrow:hover {
  background: var(--pms-link);
  color: #fff;
}

body.pms-courses .cc-dl__btn:focus-visible {
  outline: 3px solid var(--pms-link);
  outline-offset: 3px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  body.pms-courses .cc-sem {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  body.pms-courses .cc-syllabi .cc-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  body.pms-courses .cc-hero__split { grid-template-columns: 1fr; gap: 1.5rem; }

  body.pms-courses .cc-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  body.pms-courses .cc-stats__item {
    padding: 1rem;
    border-bottom: 1px solid var(--pms-border);
  }

  body.pms-courses .cc-thead,
  body.pms-courses .cc-row {
    grid-template-columns: 4.5rem 1fr auto;
    gap: 0.75rem;
  }

  body.pms-courses .cc-td--owner,
  body.pms-courses .cc-thead .cc-th:nth-child(4) { display: none; }

  body.pms-courses .cc-syl-item__meta { grid-template-columns: 1fr; gap: 1rem; }
  body.pms-courses .cc-syl-item__body { padding-left: 0; }

  body.pms-courses .cc-downloads .cc-inner {
    grid-template-columns: 1fr;
  }

  body.pms-courses .cc-dl__item,
  body.pms-courses .cc-dl__item:not(:first-child) {
    padding: 2rem 0;
    border-right: none;
    border-bottom: 1px solid var(--pms-border);
  }

  body.pms-courses .cc-dl__item:last-child { border-bottom: none; }
}
