
@font-face{font-family:MachaonCinzel;src:url('/assets/combat-medic/fonts/cinzel-latin-400.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
/* Additive homepage effects. The approved image and its clipping remain intact. */
@supports (mask-image: url("brand/wordmark-luminance-mask.svg")) {
  html[data-machaon-fx] header .machaonWordmark::after {
    content: "";
    position: absolute;
    /* Match assets/brand/wordmark.css exactly, including the natural image ratio. */
    width: 111.63%;
    aspect-ratio: 1536 / 329;
    left: -5.81%;
    top: -30%;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 43%, var(--silver) 50%, transparent 57%);
    background-size: 300% 100%;
    background-position: 100% 0;
    -webkit-mask: url("brand/wordmark-luminance-mask.svg") center / 100% 100% no-repeat;
    mask: url("brand/wordmark-luminance-mask.svg") center / 100% 100% no-repeat;
    opacity: 0;
    animation: machaon-wordmark-sweep 7s ease-in-out infinite;
  }
}

/* A 1.54s pass followed by a long, fully transparent rest. */
@keyframes machaon-wordmark-sweep {
  0% { background-position: 100% 0; opacity: 0; }
  2% { opacity: .48; }
  22% { background-position: 0% 0; opacity: .48; }
  24%, 100% { background-position: 0% 0; opacity: 0; }
}

html[data-machaon-fx][data-fx-suspended] header .machaonWordmark::after {
  animation-play-state: paused;
}

/* Preserve each link's existing padding, border width and hit area. */
html[data-machaon-fx] header .siteNav {
  --machaon-nav-fx: ready;
  position: relative;
}
html[data-machaon-fx] :is(header .siteNav, .resourcePanel, .footerLinks) a {
  position: relative;
  transition: color 180ms ease;
}
html[data-machaon-fx] header .siteNav a:is(:hover, :focus-visible, :active) {
  border-color: transparent;
  background: transparent;
  color: var(--silver);
}
html[data-machaon-fx] :is(.resourcePanel, .footerLinks) a:focus-visible {
  color: var(--silver);
}

/* Local underlines also work with no module, or a failed initialisation. */
html[data-machaon-fx] :is(header .siteNav, .resourcePanel, .footerLinks) a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--silver);
  opacity: 0;
  transform: scaleX(.35);
  transform-origin: left;
  transition: transform 200ms ease, opacity 160ms ease;
  pointer-events: none;
}
html[data-machaon-fx] header .siteNav a::after {
  left: 12px;
  right: 12px;
  bottom: 7px;
}
html[data-machaon-fx] :is(header .siteNav, .resourcePanel, .footerLinks) a:is(:hover, :focus-visible, :active)::after {
  opacity: 1;
  transform: scaleX(1);
}
html[data-machaon-fx] header .siteNav[data-fx-nav] a::after {
  opacity: 0;
}

/* The retained hidden attribute makes this inert if the stylesheet is lost. */
html[data-machaon-fx] header .siteNav[data-fx-nav] .machaonNavIndicator[hidden] {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--fx-width, 0px);
  height: 1px;
  transform: translate(var(--fx-x, 0px), var(--fx-y, 0px));
  background: var(--silver);
  opacity: 0;
  pointer-events: none;
  transition: transform 240ms ease, width 240ms ease, opacity 160ms ease;
}
html[data-machaon-fx] header .siteNav[data-fx-nav] .machaonNavIndicator[data-visible] {
  opacity: 1;
}
html[data-machaon-fx] header .siteNav[data-fx-nav] .machaonNavIndicator[data-snap] {
  transition: none;
}
@media (max-width: 760px) {
  html[data-machaon-fx] header .siteNav a::after { left: 8px; right: 8px; }
}

@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  html[data-machaon-fx] :is(header .siteNav, .resourcePanel, .footerLinks) a,
  html[data-machaon-fx] :is(header .siteNav, .resourcePanel, .footerLinks) a::after {
    transition: none;
  }
  html[data-machaon-fx] header .siteNav[data-fx-nav] .machaonNavIndicator[hidden] {
    display: none;
  }
  html[data-machaon-fx] header .siteNav[data-fx-nav] a:is(:hover, :focus-visible, :active)::after {
    opacity: 1;
    transform: none;
  }
}
@media (forced-colors: active) {
  html[data-machaon-fx] :is(header .siteNav, .resourcePanel, .footerLinks) a::after {
    background: LinkText;
  }
}
@media print {
  html[data-machaon-fx] :is(header .siteNav, .resourcePanel, .footerLinks) a::after { content: none; }
}

@media (prefers-reduced-motion: reduce), print, (forced-colors: active) {
  html[data-machaon-fx] header .machaonWordmark::after {
    content: none;
    animation: none;
  }
}

/* Clinical catalogue: the viewport clips outside the unflattened 3D scene. */
html[data-machaon-fx] #pathway .courseGrid { --machaon-carousel-fx: ready; }
html[data-machaon-fx] .machaonCarouselViewport {
  overflow: hidden;
  padding: 10px 0 18px;
}
html[data-machaon-fx] .machaonCarouselScene {
  position: relative;
  height: var(--fx-card-height);
  perspective: 1200px;
  touch-action: pan-y pinch-zoom;
}
html[data-machaon-fx] .machaonCarousel .courseGrid {
  display: block;
  position: relative;
  height: 100%;
  border: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(-1 * var(--fx-radius))) rotateY(var(--fx-rotation, 0deg));
  animation: machaon-course-orbit 75s linear infinite paused;
}
@keyframes machaon-course-orbit {
  from { transform: translateZ(calc(-1 * var(--fx-radius))) rotateY(0deg); }
  to { transform: translateZ(calc(-1 * var(--fx-radius))) rotateY(-360deg); }
}
html[data-machaon-fx] .machaonCarousel .courseCard {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--fx-card-width);
  height: 100%;
  margin-left: calc(-.5 * var(--fx-card-width));
  transform: rotateY(var(--fx-card-angle)) translateZ(var(--fx-radius));
  backface-visibility: hidden;
  overflow-wrap: anywhere;
  opacity: .58;
  transition: opacity 450ms ease;
}
html[data-machaon-fx] .machaonCarousel .courseCard[data-fx-front] { opacity: 1; }
@media (max-width: 760px) {
  html[data-machaon-fx] .machaonCarouselScene { perspective: 800px; }
}
html[data-machaon-fx] .machaonCarousel .courseCard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  pointer-events: none;
}
html[data-machaon-fx] .machaonCarousel[data-measuring] .courseCard { height: auto; }
html[data-machaon-fx] .machaonCarousel[data-measuring] .courseGrid { transition: none; }
html[data-machaon-fx] .machaonCarouselControls[hidden] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 12px;
}
html[data-machaon-fx] .machaonCarouselControls button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--silver);
  background: transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
html[data-machaon-fx] .machaonCarouselControls button:hover { border-color: var(--warm); }
.machaonCarouselActions, .machaonCarouselBrowse { display: flex; align-items: center; gap: 8px; }
.machaonCarouselActions { flex-wrap: wrap; max-width: 100%; }
html[data-machaon-fx] .machaonCarouselControls .machaonCatalogueButton {
  max-width: 100%; border-color: var(--warm); font-weight: 600;
}
.machaonCarouselBrowse { margin-left: auto; }
html[data-machaon-fx] .machaonCarouselPosition {
  min-width: 44px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
html[data-machaon-fx] .machaonCarouselAnnouncement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media print {
  html[data-machaon-fx] .machaonCarouselControls[hidden] { display: none; }
  html[data-machaon-fx] .machaonCarouselViewport { overflow: visible; padding: 0; }
  html[data-machaon-fx] .machaonCarouselScene { height: auto; perspective: none; }
  html[data-machaon-fx] .machaonCarousel .courseGrid { display: grid; height: auto; transform: none !important; animation: none !important; }
  html[data-machaon-fx] .machaonCarousel .courseCard { position: static; width: auto; height: auto; margin: 0; transform: none; opacity: 1; }
}

/* A leaf decoration: masks never enter the scene's 3D ancestor chain. */
@property --fx-frame-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes machaon-course-frame {
  to { --fx-frame-angle: 360deg; }
}
@supports (mask-composite: exclude) {
  html[data-machaon-fx] .machaonCarousel .courseCard::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    background: conic-gradient(from var(--fx-frame-angle), transparent 0deg 225deg, rgba(236,239,241,.2) 270deg, var(--silver) 310deg, transparent 350deg);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    animation: machaon-course-frame 4s linear infinite paused;
  }
  html[data-machaon-fx] .machaonCarousel[data-fx-visible]:not([data-fx-settling]):not([data-fx-running]) .courseCard[data-fx-front]:is(:hover, :focus-visible)::after,
  html[data-machaon-fx] .machaonCarousel[data-fx-visible][data-fx-selected]:not([data-fx-settling]):not([data-fx-running]) .courseCard[data-fx-front]::after {
    opacity: 1;
    animation-play-state: running;
  }
}
@media (prefers-reduced-motion: reduce), (forced-colors: active), print {
  html[data-machaon-fx] .machaonCarousel .courseCard::after { content: none; animation: none; }
}

/* Four primary pathways: native hover, focus and press feedback, including
   without JavaScript. The existing inset corner details remain intact. */
@property --phase-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes machaon-pathway-gold { to { --phase-angle: 360deg; } }
#pathway .phase {
  --phase-lit: 0;
  --phase-run: paused;
  border-color: var(--phase-edge, rgba(214,218,222,.30));
}
#pathway .phase:is(:hover, :focus-visible, :active, [data-pressed]) {
  --phase-lit: 1;
  --phase-run: running;
  --phase-edge: var(--warm);
}
#pathway .phaseGlow {
  position: absolute;
  inset: -1px;
  border: 1px solid var(--warm);
  border-radius: inherit;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(214,192,138,.22), inset 0 0 12px rgba(214,192,138,.08);
  pointer-events: none;
  opacity: var(--phase-lit);
  transition: opacity 140ms ease-out;
}
/* One metallic sweep on entry; the bronze frame stays lit until exit.
   Clip on the decorative layer so the card's focus outline remains intact. */
#pathway .phaseGlow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(244,223,170,.20) 50%, transparent 60%);
  transform: translateX(-100%);
  pointer-events: none;
}
#pathway .phase:is(:hover, :focus-visible, :active, [data-pressed]) .phaseGlow::before {
  animation: machaon-pathway-shine 800ms ease-out both;
}
@keyframes machaon-pathway-shine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
@supports (mask-composite: exclude) {
  #pathway .phaseGlow::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from var(--phase-angle), transparent 0deg 220deg, rgba(214,192,138,.5) 270deg, #f4dfaa 310deg, transparent 350deg);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: machaon-pathway-gold 2.6s linear infinite;
    animation-play-state: var(--phase-run);
  }
}
@media (prefers-reduced-motion: reduce), (forced-colors: active), print {
  #pathway .phaseGlow { transition: none; }
  #pathway .phaseGlow::before,
  #pathway .phase:is(:hover, :focus-visible, :active, [data-pressed]) .phaseGlow::before { content: none; animation: none; }
  #pathway .phaseGlow::after { content: none; animation: none; }
}
@media (forced-colors: active) {
  #pathway .phase:is(:hover, :focus-visible, :active) { outline: 2px solid Highlight; outline-offset: 2px; }
}

/* The original static cards in a native modal; the source grid remains the
   no-JavaScript and reduced-motion catalogue. */
html.machaonCatalogueOpen { overflow: hidden; }
.machaonCourseDialog {
  width: min(1160px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--warm);
  border-radius: 0;
  background: var(--bg);
  color: var(--silver);
}
.machaonCourseDialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.machaonCourseDialog::backdrop { background: rgba(0, 0, 0, .82); }
.machaonCourseDialogHeader {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 24px 32px; border-bottom: 1px solid var(--line);
}
.machaonCourseDialog .machaonCourseDialogHeader h2 { margin: 0; font: 400 32px/1.15 MachaonCinzel,Georgia,serif; text-wrap: balance; }
.machaonCourseDialogHeader button {
  flex: none; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--silver); font: inherit; font-size: 14px; cursor: pointer;
}
.machaonCourseDialogHeader button:hover { border-color: var(--warm); }
.machaonCourseDialogHeader button:focus-visible { outline: 2px solid var(--warm); outline-offset: 4px; }
.machaonCourseDialogBody {
  min-height: 0; overflow: auto; overscroll-behavior: contain;
  padding: 32px; scrollbar-color: var(--warm) var(--bg);
}
.machaonCourseDialog .courseCard { overflow-wrap: anywhere; }
@media(max-width:600px) {
  .machaonCourseDialogHeader { padding: 16px; gap: 16px; }
  .machaonCourseDialog .machaonCourseDialogHeader h2 { font-size: 28px; }
  .machaonCourseDialogBody { padding: 16px; }
}
@media print { .machaonCourseDialog[open] { display: none; } }

.courseOffer .enrolmentStatus{display:block;font-size:12px;line-height:1.5;color:var(--muted);letter-spacing:normal;text-transform:none}
