/* ============================================================
   Health & Safety Courses — catalogue
   Uses brand tokens from styles.css (:root). Dark editorial.
   ============================================================ */

/* ---- compact header ---- */
.cat-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1rem var(--pad-x);
  background: rgba(17,17,17,0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.cat-head .brand { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; letter-spacing: 0.01em; color: var(--head); line-height: 1; }
.cat-head .brand span { color: var(--amber); }
.cat-head nav { display: flex; gap: 1.6rem; align-items: center; }
.cat-head nav a { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; color: var(--ink); transition: color 0.2s; }
.cat-head nav a:hover { color: var(--amber-light); }
.cat-head nav a.back { color: var(--amber); display: inline-flex; align-items: center; gap: 0.4rem; }
@media (max-width: 760px) { .cat-head nav a:not(.back):not(.enquiry-btn) { display: none; } }

/* ---- hero / intro ---- */
.cat-hero { position: relative; padding: clamp(3rem, 8vh, 6rem) var(--pad-x) clamp(2rem, 4vh, 3rem); max-width: 1500px; margin: 0 auto; }

/* approval badges — top right of hero */
.cat-badges { position: absolute; top: clamp(1.6rem, 5vh, 3.2rem); right: var(--pad-x); z-index: 6; display: flex; flex-direction: column; align-items: flex-end; gap: 0.85rem; }
.cat-badges .seal { width: clamp(190px, 19vw, 240px); height: auto; display: block; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.4)); }
.cat-badges .wordmark { display: block; background: #fff; border-radius: 9px; padding: 0.6rem 0.95rem; box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.cat-badges .wordmark img { width: clamp(150px, 15vw, 196px); height: auto; display: block; }
@media (max-width: 880px) {
  .cat-badges { position: static; flex-direction: row; align-items: center; justify-content: flex-start; gap: 1rem; margin-bottom: 1.8rem; }
  .cat-badges .seal { width: clamp(150px, 38vw, 200px); }
  .cat-badges .wordmark { padding: 0.5rem 0.75rem; }
  .cat-badges .wordmark img { width: clamp(120px, 30vw, 170px); }
}
@media (max-width: 420px) {
  .cat-badges { flex-direction: column; align-items: flex-start; }
}
.cat-hero .kicker { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 14px; color: var(--amber); display: flex; align-items: center; gap: 0.7rem; }
.cat-hero .kicker::before { content: ""; width: 42px; height: 1.5px; background: var(--amber); display: inline-block; }
.cat-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.8rem, 7vw, 6rem); line-height: 0.98; color: var(--head); margin: 1.2rem 0 1.4rem; letter-spacing: 0; }
.cat-hero .intro { max-width: 64ch; color: var(--ink); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.6; }

/* split hero with video on the right */
.cat-hero--split { display: flex; align-items: flex-start; gap: clamp(2rem, 5vw, 4.5rem); }
.cat-hero--split .cat-hero-main { flex: 1 1 0; min-width: 0; }
.cat-hero--split .intro { max-width: 52ch; }
.cat-hero-video { flex: 0 0 clamp(360px, 38vw, 560px); position: sticky; top: 96px; }
.cat-hero-video-label { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 14px; color: var(--amber); margin-bottom: 0.9rem; }
.cat-hero-video-label::before { content: ""; width: 28px; height: 1.5px; background: var(--amber); display: inline-block; }
.cat-hero-video .video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--amber-dim); border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 24px 56px rgba(0,0,0,0.45); }
.cat-hero-video .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.cat-hero-video .login-actions { margin-top: 1rem; }
@media (max-width: 940px) {
  .cat-hero--split { flex-direction: column; align-items: stretch; }
  .cat-hero--split .cat-hero-main { width: 100%; }
  .cat-hero--split .intro { max-width: 64ch; }
  .cat-hero-video { position: static; flex-basis: auto; width: 100%; max-width: 560px; }
}
.cat-stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 2.4rem; }
.cat-stat { display: flex; flex-direction: column; gap: 2px; }
.cat-stat .v { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--amber); line-height: 1; white-space: nowrap; }
.cat-stat .k { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; color: var(--muted); }

/* ---- toolbar ---- */
.toolbar { position: sticky; top: 66px; z-index: 40; background: var(--coal); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.1rem var(--pad-x); }
.toolbar-inner { max-width: 1500px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.search { position: relative; }
.search svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--amber); width: 20px; height: 20px; }
.search input {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--amber-dim);
  color: var(--cream); font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 500;
  padding: 0.5rem 0 0.5rem 2.2rem; outline: none; transition: border-color 0.25s;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: var(--amber); }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; }
.chip {
  font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12.5px;
  padding: 0.45rem 0.95rem; border-radius: 999px; border: 1px solid var(--amber-dim); color: var(--ink);
  background: transparent; transition: all 0.2s var(--ease-smooth); white-space: nowrap;
}
.chip:hover { border-color: var(--amber); color: var(--amber-light); }
.chip.active { background: var(--amber); border-color: var(--amber); color: var(--coal); }
.chip .n { opacity: 0.6; margin-left: 0.35rem; font-size: 11px; }

.tools-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.count { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; color: var(--muted); }
.count b { color: var(--amber); }
.sort { display: flex; align-items: center; gap: 0.6rem; }
.sort label { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; color: var(--faint); }
.sort select {
  font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12.5px;
  background: var(--coal-2); color: var(--cream); border: 1px solid var(--amber-dim); border-radius: 4px;
  padding: 0.45rem 2rem 0.45rem 0.8rem; outline: none; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c47a0a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center;
}
@media (max-width: 540px) {
  .sort { flex-wrap: wrap; gap: 0.5rem 0.7rem; width: 100%; }
  .sort select { flex: 1 1 8rem; min-width: 0; }
}

/* ---- grid ---- */
.grid {
  max-width: 1500px; margin: 0 auto;
  padding: clamp(2rem, 5vh, 3.5rem) var(--pad-x) clamp(3rem, 6vh, 5rem);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
@media (max-width: 700px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--coal); padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem;
  cursor: pointer; transition: background 0.25s; position: relative;
}
.card:hover { background: var(--coal-2); }
.card-top { display: flex; gap: 1rem; align-items: flex-start; }
.card-ico { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 8px; background: var(--coal-2); display: grid; place-items: center; overflow: hidden; color: #3a2c12; }
.card-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-ico.glyph { background: var(--amber-pale); }
.card-ico svg { width: 30px; height: 30px; }
.card-cat { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; color: var(--amber); margin-bottom: 0.3rem; }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.08; color: var(--head); }
.card .blurb { color: var(--muted); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; }
.badge { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 10.5px; color: var(--ink); border: 1px solid var(--amber-dim); border-radius: 3px; padding: 0.18rem 0.5rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.card-meta { display: flex; flex-direction: column; }
.card-meta .dur { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; color: var(--muted); white-space: nowrap; }
.card-meta .price { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--head); line-height: 1; }
.card-go { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; color: var(--amber); display: inline-flex; align-items: center; gap: 0.4rem; transition: gap 0.2s; }
.card:hover .card-go { gap: 0.7rem; }

.empty { grid-column: 1 / -1; background: var(--coal); padding: 4rem 1.5rem; text-align: center; }
.empty p { font-family: var(--font-display); font-size: 1.6rem; color: var(--muted); }
.empty span { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; color: var(--amber); display: block; margin-top: 0.5rem; cursor: pointer; }

/* ---- modal ---- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-bg { position: absolute; inset: 0; background: rgba(5,5,5,0.72); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s; }
.modal.open .modal-bg { opacity: 1; }
.modal-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(560px, 100%);
  background: var(--coal-2); border-left: 1px solid var(--amber-dim);
  padding: clamp(1.75rem, 4vw, 3rem); overflow-y: auto;
  transform: translateX(100%); transition: transform 0.4s var(--ease-smooth);
  display: flex; flex-direction: column; gap: 1.5rem;
}
.modal.open .modal-panel { transform: none; }
.modal-close { position: absolute; top: 1.5rem; right: 1.5rem; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--amber-dim); color: var(--cream); display: grid; place-items: center; transition: all 0.2s; }
.modal-close:hover { background: var(--amber); color: var(--coal); border-color: var(--amber); }
.modal-ico { width: 80px; height: 80px; border-radius: 12px; background: var(--coal-2); display: grid; place-items: center; color: #3a2c12; overflow: hidden; }
.modal-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-ico.glyph { background: var(--amber-pale); }
.modal-ico svg { width: 42px; height: 42px; }
.modal .m-cat { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; color: var(--amber); }
.modal h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.05; color: var(--head); max-width: 20ch; }
.modal .m-meta { display: flex; gap: 2rem; flex-wrap: wrap; padding: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.modal .m-meta .k { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; color: var(--faint); }
.modal .m-meta .v { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--head); white-space: nowrap; }
.modal .m-desc { color: var(--ink); font-size: 15.5px; line-height: 1.65; }
.modal .m-note { color: var(--muted); font-size: 13.5px; line-height: 1.55; border-left: 2px solid var(--amber); padding-left: 0.9rem; font-style: italic; }

/* rich detail panel (e.g. IOSH Managing Safely) */
.modal .m-detail { display: flex; flex-direction: column; gap: 0.4rem; }
.modal .m-detail h4 { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; color: var(--amber); margin-top: 0.9rem; }
.modal .m-detail p { color: var(--ink); font-size: 14px; line-height: 1.6; }
.modal .m-detail ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin: 0.2rem 0; }
.modal .m-detail ul li { position: relative; padding-left: 1.4rem; color: var(--ink); font-size: 14px; line-height: 1.5; }
.modal .m-detail ul li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.modal .m-detail .m-modules { list-style: none; counter-reset: mod; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; margin: 0.3rem 0; }
.modal .m-detail .m-modules li { counter-increment: mod; display: flex; align-items: center; gap: 0.8rem; padding: 0.65rem 0.9rem; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--cream); }
.modal .m-detail .m-modules li:first-child { border-top: none; }
.modal .m-detail .m-modules li::before { content: counter(mod, decimal-leading-zero); font-family: var(--font-label); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; color: var(--amber); flex: 0 0 auto; }
.modal .m-detail .m-modules li span { flex: 1; }
.modal .m-detail .m-modules li em { font-family: var(--font-label); font-style: normal; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.modal .m-detail .m-feat { display: flex; flex-direction: column; gap: 0.45rem; background: var(--amber-pale); border-radius: 6px; padding: 0.9rem 1.1rem; margin-top: 0.3rem; }
.modal .m-detail .m-feat span { color: #2a2008; font-size: 13.5px; font-weight: 500; }
.modal .m-detail .m-feat strong { color: #6b4d00; }
.modal .m-acc { display: flex; flex-direction: column; gap: 0.6rem; }
.modal .m-acc .lbl { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; color: var(--faint); }
.modal .m-acc .row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.modal .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.25rem; }
.btn { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; padding: 0.85rem 1.4rem; border-radius: 4px; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.2s; }
.btn-primary { background: var(--amber); color: var(--coal); }
.btn-primary:hover { background: var(--amber-light); }
.btn-ghost { background: transparent; border: 1px solid var(--amber-dim); color: var(--cream); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-light); }

/* ---- closing CTA ---- */
.cat-cta { background: var(--amber-pale); color: var(--coal); padding: clamp(3.5rem, 8vh, 6rem) var(--pad-x); }
.cat-cta .wrap { max-width: 1100px; margin: 0 auto; display: grid; gap: 1.4rem; }
.cat-cta .ck { font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; font-size: 14px; color: var(--amber); }
.cat-cta h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.05; max-width: 18ch; }
.cat-cta p { font-size: clamp(16px, 1.8vw, 19px); line-height: 1.55; max-width: 56ch; color: #3a2c12; }
.cat-cta .row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.5rem; }
.cat-cta .btn-dark { background: var(--coal); color: var(--cream); }
.cat-cta .btn-dark:hover { background: var(--coal-2); }
.cat-cta .btn-line { background: transparent; border: 1px solid var(--amber-dim); color: #3a2c12; }
.cat-cta .btn-line:hover { border-color: var(--coal); }

.cat-foot { background: var(--coal); border-top: 1px solid var(--line); padding: 2rem var(--pad-x); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cat-foot .legal { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; color: var(--faint); }
.cat-foot .note { font-family: var(--font-body); font-size: 12px; color: var(--faint); max-width: 60ch; }

/* ============================================================
   COURSE BUNDLES
   ============================================================ */
.bundles { max-width: 1180px; margin: 0 auto; padding: clamp(2.5rem, 5vh, 4rem) var(--pad-x) clamp(3rem, 6vh, 5rem); display: flex; flex-direction: column; gap: 1.5rem; }
.bundle {
  background: var(--coal); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  transition: border-color 0.25s;
}
.bundle:hover { border-color: var(--amber-dim); }
.bundle-main { display: grid; grid-template-columns: 96px 1fr auto; gap: clamp(1.25rem, 3vw, 2.25rem); padding: clamp(1.5rem, 3vw, 2.4rem); align-items: start; }
@media (max-width: 720px) { .bundle-main { grid-template-columns: 64px 1fr; } }
.bundle-ico { width: 96px; height: 96px; border-radius: 10px; background: var(--amber-pale); display: grid; place-items: center; overflow: hidden; color: #3a2c12; }
.bundle-ico img { width: 74px; height: 74px; object-fit: contain; }
.bundle-ico svg { width: 46px; height: 46px; }
@media (max-width: 720px) { .bundle-ico { width: 64px; height: 64px; } .bundle-ico img { width: 50px; height: 50px; } }
.bundle-body { min-width: 0; }
.bundle-tag { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; color: var(--amber); display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.bundle-tag .pipe { width: 1px; height: 12px; background: var(--amber-dim); }
.bundle-body h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.04; color: var(--head); margin: 0.5rem 0 0.7rem; }
.bundle-body .desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 70ch; }
.bundle-side { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; text-align: right; }
@media (max-width: 720px) { .bundle-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 0.4rem; } }
.bundle-price { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--head); line-height: 1; white-space: nowrap; }
.bundle-price .vat { display: block; font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; color: var(--faint); margin-top: 0.4rem; }
.bundle-actions { display: flex; flex-direction: column; gap: 0.55rem; align-items: stretch; }
@media (max-width: 720px) { .bundle-actions { flex-direction: row; } }
.bundle-actions .btn { justify-content: center; }

/* expandable course list */
.bundle details { border-top: 1px solid var(--line); }
.bundle summary {
  list-style: none; cursor: pointer; padding: 1rem clamp(1.5rem, 3vw, 2.4rem);
  font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12.5px;
  color: var(--amber); display: flex; align-items: center; gap: 0.6rem; transition: background 0.2s, color 0.2s;
}
.bundle summary::-webkit-details-marker { display: none; }
.bundle summary:hover { background: var(--coal-2); }
.bundle summary .chev { transition: transform 0.25s; display: inline-flex; }
.bundle details[open] summary .chev { transform: rotate(90deg); }
.bundle summary .ct { color: var(--muted); margin-left: auto; }
.bundle-courses { padding: 0.5rem clamp(1.5rem, 3vw, 2.4rem) 1.6rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.bundle-course { background: var(--coal); display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 1rem; }
.bundle-course .bc-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 6px; background: var(--amber-pale); display: grid; place-items: center; overflow: hidden; color: #3a2c12; }
.bundle-course .bc-ico img { width: 30px; height: 30px; object-fit: contain; }
.bundle-course .bc-ico svg { width: 20px; height: 20px; }
.bundle-course .bc-num { font-family: var(--font-label); font-weight: 600; font-size: 11px; letter-spacing: 0.12em; color: var(--faint); flex: 0 0 auto; }
.bundle-course .bc-name { font-family: var(--font-body); font-size: 13.5px; color: var(--cream); line-height: 1.3; }
.bundle-note-row { padding: 0 clamp(1.5rem, 3vw, 2.4rem) 1.5rem; }
.bundle-note-row p { color: var(--muted); font-size: 13.5px; line-height: 1.6; border-left: 2px solid var(--amber); padding-left: 0.9rem; max-width: 72ch; }

/* ============================================================
   LEGAL PAGES (Privacy / Cookie)
   ============================================================ */
.legal-page { max-width: 860px; margin: 0 auto; padding: clamp(2.5rem, 6vh, 5rem) var(--pad-x) clamp(3rem, 7vh, 5.5rem); }
.legal-page .kicker { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; color: var(--amber); display: flex; align-items: center; gap: 0.7rem; }
.legal-page .kicker::before { content: ""; width: 42px; height: 1.5px; background: var(--amber); display: inline-block; }
.legal-page h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.02; color: var(--head); margin: 1.1rem 0 0.9rem; }
.legal-page .updated { font-family: var(--font-label); font-size: 12.5px; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 2.5rem; }
.legal-toc { background: var(--coal-2); border: 1px solid var(--line); border-radius: 6px; padding: 1.4rem 1.6rem; margin-bottom: 2.75rem; }
.legal-toc h2 { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; color: var(--amber); margin: 0 0 0.9rem; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; display: grid; grid-template-columns: 1fr; gap: 0.45rem; }
@media (min-width: 620px) { .legal-toc ol { grid-template-columns: 1fr 1fr; } }
.legal-toc a { color: var(--cream); font-size: 14px; transition: color 0.2s; }
.legal-toc a:hover { color: var(--amber-light); text-decoration: underline; }
.legal-page h2.sec { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--head); margin: 2.4rem 0 0.9rem; scroll-margin-top: 90px; }
.legal-page h3.sub { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; color: var(--amber); margin: 1.6rem 0 0.6rem; }
.legal-page p, .legal-page li { color: var(--ink); font-size: 15.5px; line-height: 1.7; }
.legal-page p { margin: 0 0 1rem; }
.legal-page ul { margin: 0 0 1.2rem; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.legal-page ul li { position: relative; padding-left: 1.4rem; }
.legal-page ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.legal-page ol.legal-steps { margin: 0 0 1.2rem; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 0.75rem; }
.legal-page ol.legal-steps li { padding-left: 0.4rem; }
.legal-page ol.legal-steps li::marker { color: var(--amber); font-weight: 600; }
.legal-page a.inline { color: var(--amber-light); text-decoration: underline; text-underline-offset: 2px; }
.legal-page strong { color: var(--head); font-weight: 600; }
.legal-table { width: 100%; border-collapse: collapse; margin: 0.4rem 0 1.6rem; border: 1px solid var(--line); }
.legal-table th, .legal-table td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; vertical-align: top; }
.legal-table th { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 11.5px; color: var(--amber); background: var(--coal-2); }
.legal-table td { color: var(--ink); }
.legal-table tr:last-child td { border-bottom: none; }
.legal-inline-btn { background: none; border: none; color: var(--amber-light); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font: inherit; padding: 0; }

/* ============================================================
   NUCO COURSES — classroom / regulated qualification layout
   ============================================================ */
.nuco { max-width: 1180px; margin: 0 auto; padding: clamp(2rem, 4vh, 3rem) var(--pad-x) clamp(3rem, 6vh, 5rem); display: flex; flex-direction: column; gap: clamp(1.5rem, 3vh, 2.25rem); }
.nuco-course { background: var(--coal); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.nuco-top { display: grid; grid-template-columns: 96px 1fr; gap: clamp(1.25rem, 3vw, 2rem); padding: clamp(1.6rem, 3.2vw, 2.6rem); align-items: start; }
@media (max-width: 720px) { .nuco-top { grid-template-columns: 64px 1fr; } }
.nuco-ico { width: 96px; height: 96px; border-radius: 12px; background: var(--amber-pale); display: grid; place-items: center; overflow: hidden; color: #3a2c12; }
.nuco-ico img { width: 72px; height: 72px; object-fit: contain; }
@media (max-width: 720px) { .nuco-ico { width: 64px; height: 64px; } .nuco-ico img { width: 48px; height: 48px; } }
.nuco-tag { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; color: var(--amber); display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.nuco-tag .pipe { width: 1px; height: 12px; background: var(--amber-dim); }
.nuco-top h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.04; color: var(--head); margin: 0.55rem 0 0.8rem; }
.nuco-top .lede { color: var(--ink); font-size: clamp(15px, 1.5vw, 16.5px); line-height: 1.6; max-width: 72ch; }

/* fact strip */
.nuco-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nuco-fact { background: var(--coal-2); padding: 1.1rem clamp(1.1rem, 2vw, 1.5rem); }
.nuco-fact .k { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; color: var(--faint); }
.nuco-fact .v { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--head); margin-top: 3px; line-height: 1.1; }

/* body grid */
.nuco-body { display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem, 4vw, 3rem); padding: clamp(1.75rem, 3.5vw, 2.8rem); }
@media (min-width: 900px) { .nuco-body { grid-template-columns: 1.6fr 1fr; } }
.nuco-section { margin-bottom: 1.8rem; }
.nuco-section:last-child { margin-bottom: 0; }
.nuco-section h3 { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; color: var(--amber); margin-bottom: 0.7rem; }
.nuco-section p { color: var(--ink); font-size: 15px; line-height: 1.65; margin-bottom: 0.8rem; }
.nuco-section p:last-child { margin-bottom: 0; }
.nuco-outcomes { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.nuco-outcomes > li { background: var(--coal-2); border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.15rem; }
.nuco-outcomes > li .ot { display: flex; gap: 0.7rem; align-items: baseline; }
.nuco-outcomes > li .ot .n { font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; color: var(--amber); flex: 0 0 auto; }
.nuco-outcomes > li .ot .t { font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--head); line-height: 1.4; }
.nuco-outcomes > li ul { list-style: none; margin: 0.7rem 0 0; padding: 0 0 0 1.9rem; display: flex; flex-direction: column; gap: 0.4rem; }
.nuco-outcomes > li ul li { position: relative; padding-left: 1.2rem; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.nuco-outcomes > li ul li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--amber-dim); }
.nuco-check { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.nuco-check li { position: relative; padding-left: 1.8rem; color: var(--ink); font-size: 14.5px; line-height: 1.5; }
.nuco-check li::before { content: ""; position: absolute; left: 0; top: 0.05em; width: 18px; height: 18px; border-radius: 50%; background: var(--amber); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center/12px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center/12px no-repeat; }

/* sticky enrol aside */
.nuco-aside { align-self: start; }
@media (min-width: 900px) { .nuco-aside { position: sticky; top: 90px; } }
.nuco-card { background: var(--coal-2); border: 1px solid var(--amber-dim); border-radius: 8px; padding: 1.5rem; }
.nuco-card .price { font-family: var(--font-display); font-weight: 600; font-size: 2.6rem; color: var(--head); line-height: 1; }
.nuco-card .price .per { display: block; font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; color: var(--faint); margin-top: 0.4rem; }
.nuco-card .mini { display: flex; flex-direction: column; gap: 0.6rem; margin: 1.25rem 0; padding: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nuco-card .mini .row { display: flex; justify-content: space-between; gap: 1rem; font-size: 13.5px; }
.nuco-card .mini .row .k { color: var(--muted); font-family: var(--font-label); letter-spacing: 0.04em; }
.nuco-card .mini .row .v { color: var(--cream); font-weight: 600; text-align: right; }
.nuco-card .btn { width: 100%; justify-content: center; margin-bottom: 0.6rem; }
.nuco-card .btn:last-child { margin-bottom: 0; }
.nuco-card .helper { font-size: 12px; color: var(--faint); line-height: 1.5; margin-top: 0.9rem; text-align: center; }
.nuco-accred { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.25rem; padding: 1rem 1.15rem; background: var(--coal); border: 1px solid var(--line); border-radius: 6px; }
.nuco-accred .badge-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--amber-pale); color: #3a2c12; display: grid; place-items: center; }
.nuco-accred .badge-ico svg { width: 22px; height: 22px; }
.nuco-accred .badge-ico.seal-ico { width: 82px; height: 82px; border-radius: 0; background: none; align-self: flex-start; }
.nuco-accred .badge-ico.seal-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nuco-accred .t { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.nuco-accred .t strong { color: var(--head); display: block; font-family: var(--font-label); letter-spacing: 0.04em; font-size: 13px; }

/* ---- collapsed catalogue view (driven by nuco-modal.js) ---- */
.nuco-course .nuco-body { display: none; }
.nuco-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 1.5rem; flex-wrap: wrap;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.75rem, 3.5vw, 2.8rem);
}
.nuco-actions .price { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.1rem); color: var(--head); line-height: 1; }
.nuco-actions .price .per { display: block; font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; color: var(--faint); margin-top: 0.45rem; }
.nuco-actions-btns { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.nuco-actions-btns .btn svg { width: 16px; height: 16px; }
@media (max-width: 540px) {
  .nuco-actions { flex-direction: column; align-items: stretch; }
  .nuco-actions-btns { flex-direction: column; }
  .nuco-actions-btns .btn { width: 100%; justify-content: center; }
}

/* ---- Nuco detail modal ---- */
#nucoModal .modal-panel { background: var(--coal); }
#nucoModal .nuco-modal-detail { display: flex; flex-direction: column; }
#nucoModal .nuco-modal-detail .nuco-main { display: block; }
#nucoModal .nuco-modal-detail .nuco-section:first-child { margin-top: 0; }
#nucoModal .nuco-modal-detail .nuco-accred { margin-top: 0.5rem; background: var(--coal-2); }
