/* Course pages. Builds on report.css and about.css. */
.chero__h { font-size: clamp(34px, 1.6rem + 2.2vw, 58px) !important; }
.pill__badge { position: static; box-shadow: none; padding: 4px 8px; margin-right: 2px; }
.chero__fig { display: grid; gap: 0; }
.chero__fig img { aspect-ratio: 16 / 10 !important; transform: rotate(-1deg); }
.cfacts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0; margin: -36px 24px 0; padding: 6px; border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1px var(--forest-12), 0 18px 40px rgba(23, 25, 58, 0.12); }
.cfacts div { padding: 12px 14px; display: flex; flex-direction: column-reverse; gap: 2px; }
.cfacts div + div { border-left: 1px solid var(--forest-12); }
.cfacts dt { font-size: 12px; color: var(--forest-72); }
.cfacts dd { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }

/* Body: content and a sticky booking card. */
.cbody__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; align-items: start; }
.cmain { display: grid; gap: 48px; min-width: 0; }
.cpart { display: grid; gap: 14px; }
.cpart p { font-size: 17px; line-height: 1.75; color: #1E3A2A; max-width: 70ch; }
.cmain__lead { font-size: 19px !important; color: var(--forest) !important; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; font-size: 16px; line-height: 1.6; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ticks--2 { grid-template-columns: 1fr 1fr; column-gap: 28px; }
.ccert { padding: 24px; border-radius: 16px; background: linear-gradient(120deg, #E6F5EA, #E6EFF9); }
.ccert .link { justify-self: start; }
.ctodo { display: flex; flex-wrap: wrap; gap: 8px; }
.ctodo .todo { margin-left: 0; }
.cside { position: sticky; top: calc(var(--bar) + 24px); }
.cbook { display: grid; gap: 12px; padding: 26px; border-radius: 20px; background: var(--white); box-shadow: 0 0 0 1px var(--forest-12), 0 24px 50px rgba(23, 25, 58, 0.1); }
.cbook__t { font-size: 19px; font-weight: 600; line-height: 1.3; }
.cbook__facts { margin: 0 0 6px; display: grid; }
.cbook__facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--forest-12); font-size: 14px; }
.cbook__facts dt { color: var(--forest-72); }
.cbook__facts dd { margin: 0; font-weight: 600; text-align: right; }
.cbook .btn { width: 100%; }
.cbook__note { font-size: 13px; color: var(--forest-72); }
.cbook__more { font-size: 14px; }
.cbook__more a { font-weight: 500; text-underline-offset: 3px; }
@media (max-width: 1000px) { .cbody__grid { grid-template-columns: 1fr; gap: 40px; } .cside { position: static; } }
@media (max-width: 700px) { .ticks--2 { grid-template-columns: 1fr; } .cfacts { margin: -24px 10px 0; } .cfacts div + div { border-left: 0; border-top: 1px solid var(--forest-12); } }

/* Related. */
.crel { background: var(--paper); }
.crel__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.bcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card--text .clink { display: grid; align-content: end; gap: 8px; height: 100%; min-height: 220px; padding: 24px; border-radius: 16px; text-decoration: none; color: var(--white);
  background: linear-gradient(135deg, var(--forest), #10332F 55%, var(--navy)); }
.card--text small { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--green-hi); }
.card--text b { font-size: 18px; font-weight: 600; line-height: 1.3; }
.card--text .card__view { color: var(--white); }
@media (max-width: 1100px) { .bcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bcards { grid-template-columns: 1fr; } }

/* Course hubs and the way back up (catalogue rebuild, 28 Oct 2026). */
.hcat + .hcat { padding-top: 0; }
.hcat .crel__head .lead { margin-top: 8px; max-width: 640px; color: var(--forest-72); }
.hgroups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hgroup { display: grid; align-content: start; gap: 12px; padding: 28px; border: 1px solid var(--forest-12); border-radius: 16px; background: var(--white); }
.hgroup__t { font-size: 20px; font-weight: 600; line-height: 1.3; }
.hgroup__t a { text-decoration: none; }
.hgroup__t a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hgroup > p { font-size: 15px; line-height: 1.55; color: var(--forest-72); }
.hgroup__list { display: grid; gap: 2px; margin: 4px 0 8px; padding: 12px 0 0; border-top: 1px solid var(--forest-12); }
.hgroup__list a { display: block; padding: 4px 0; font-size: 15px; text-underline-offset: 4px; }
.cmore { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--forest-12); }
.crel .wrap > .cmore:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.cmore__t { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.cmore__p { max-width: 640px; color: var(--forest-72); margin-bottom: 8px; }
.cmore__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cmore__list a { display: inline-block; padding: 8px 14px; border: 1px solid var(--forest-12); border-radius: 999px; background: var(--white); font-size: 14px; text-decoration: none; transition: border-color 150ms var(--ease); }
.cmore__list a:hover { border-color: var(--forest); }
.cmore__up { display: flex; flex-wrap: wrap; gap: 12px 28px; }
@media (max-width: 1100px) { .hgroups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .hgroups { grid-template-columns: 1fr; } .hgroup { padding: 22px; } }
@media (max-width: 900px) { .hhero .phero__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .hcat .btn { white-space: normal; text-align: center; max-width: 100%; } }

/* In-text links to other courses (partials/course-links.php). */
.clink { color: var(--forest); font-weight: 500; text-decoration: underline; text-decoration-color: var(--green-hi); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color 200ms var(--ease), color 200ms var(--ease); }
.clink:hover { color: var(--green); text-decoration-color: var(--green); }
.clink:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; border-radius: 2px; }
