/* Course page (/courses/<slug>/), generated by scripts/prerender.py render_course_page().
   Designer's course page, built only from each course's own data. Colours match the course tile (.rgc-*). The site's own
   header and footer are used as they are; everything here is scoped under .cp so it cannot touch them. */
.cp {
    --teal: #79aea6; --teal-dark: #3f7f76; --teal-soft: #eaf4f2; --navy: #0f1b2d; --text: #3d4654; --muted: #6b7480;
    --line: #e6e9ec; --bg-soft: #f6f8f9; --gold: #e8a317; --free: #1d7a46; --radius: 16px;
    --shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 6px 18px rgba(15, 27, 45, .06);
    font-family: 'Figtree', 'Figtree Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--text);
    font-size: 16.5px; line-height: 1.65; background: #fff;
}
.cp *, .cp *::before, .cp *::after { box-sizing: border-box; }
.cp h1, .cp h2, .cp h3, .cp h4 { color: var(--navy); margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; font-family: inherit; }
.cp p { margin: 0 0 1em; }
.cp a { color: inherit; }
.cp :focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 3px; border-radius: 6px; }
.cp .wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.cp .sec { padding: clamp(44px, 6vw, 72px) 0; }
.cp .soft { background: var(--bg-soft); }
.cp .label { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); margin: 0; }
.cp .sec h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 8px 0 12px; }
.cp .lead { color: var(--muted); max-width: 70ch; margin-bottom: 24px; }
.cp .pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .06em; padding: 7px 14px; border-radius: 999px; line-height: 1; }
.cp .pill-light { background: #fff; color: var(--navy); }
.cp .pill-dark { background: var(--navy); color: #fff; }
.cp .pill-free { background: var(--free); color: #fff; }
.cp .pill-sale { background: var(--gold); color: var(--navy); }
.cp .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 12px; font-weight: 700; font-size: 15.5px; text-decoration: none; border: 2px solid transparent; transition: background .2s; cursor: pointer; }
.cp .btn-navy { background: var(--navy); color: #fff; }
.cp .btn-navy:hover { background: var(--teal-dark); color: #fff; }
.cp .btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.cp .btn-white:hover { background: var(--teal-soft); }
.cp .btn svg { width: 18px; height: 18px; }
.cp .ico { width: 18px; height: 18px; flex: 0 0 18px; color: var(--teal-dark); margin-top: 4px; }

/* hero */
.cp .hero { background: var(--teal); padding: clamp(32px, 5vw, 56px) 0; }
.cp .hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.cp .pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.cp .hero h1 { font-size: clamp(30px, 4.6vw, 50px); color: var(--hero-ink, #0b0b0b); }
.cp .hero .sub { font-size: clamp(17px, 2vw, 21px); font-weight: 600; color: var(--hero-ink, #0b0b0b); margin: 14px 0 18px; max-width: 46ch; }
.cp .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14.5px; color: var(--hero-ink, #13302b); font-weight: 500; }
.cp .rating { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 5px 12px; color: var(--navy); font-weight: 700; font-size: 14px; box-shadow: var(--shadow); }
.cp .rating svg { width: 16px; height: 16px; color: var(--gold); }
.cp .rating small { font-weight: 500; color: var(--muted); font-size: 13px; }
.cp .buy { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(15, 27, 45, .12); }
.cp .buy-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--teal-soft); }
.cp .buy-body { padding: 20px 22px 22px; }
.cp .price { font-size: 32px; font-weight: 800; color: var(--navy); line-height: 1; }
.cp .price s { font-size: 18px; font-weight: 600; color: var(--muted); margin-right: 8px; }
.cp .buy ul { list-style: none; padding: 0; margin: 16px 0 18px; display: grid; gap: 9px; font-size: 14.5px; }
.cp .buy li { display: flex; gap: 9px; align-items: flex-start; }
.cp .buy .btn { width: 100%; }
@media (max-width: 860px) { .cp .hero-grid { grid-template-columns: 1fr; } }

/* stats strip */
.cp .stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.cp .stat { text-align: center; padding: 16px 8px; }
.cp .stat + .stat { border-left: 1px solid var(--line); }
.cp .stat strong { display: block; font-size: 21px; font-weight: 800; color: var(--navy); }
.cp .stat span { font-size: 13px; color: var(--muted); }
.cp .stats-wrap { transform: translateY(-50%); margin-bottom: -28px; }
@media (max-width: 640px) {
    .cp .stats { grid-template-columns: 1fr 1fr; }
    .cp .stat:nth-child(3) { border-left: 0; }
    .cp .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .cp .stats-wrap { transform: none; margin: 20px 0 0; }
}

/* about */
.cp .about { max-width: 78ch; }
.cp .about h2, .cp .about h3, .cp .about h4 { font-size: 1.15rem; margin: 20px 0 8px; }
.cp .about ul, .cp .about ol { padding-left: 1.3em; }

/* outcomes */
.cp .outcomes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.cp .outcomes li { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.cp .outcomes .n { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); font-weight: 800; font-size: 13.5px; display: grid; place-items: center; }
@media (max-width: 720px) { .cp .outcomes { grid-template-columns: 1fr; } }

/* curriculum */
.cp .curri { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
.cp .curri > li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.cp .curri .k { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dark); background: var(--teal-soft); border-radius: 999px; padding: 4px 10px; margin-bottom: 8px; }
.cp .curri h3 { font-size: 17px; margin: 0 0 8px; }
.cp .curri ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.cp .curri ul li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); color: var(--text); }
.cp .curri ul li span:last-child { color: var(--muted); white-space: nowrap; font-size: 13.5px; }
.cp .curri-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .cp .curri { grid-template-columns: 1fr; } }

/* what is included (the course's own benefits) */
.cp .incl { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); background: var(--navy); color: #dfe5ec; border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: 0 10px 30px rgba(15, 27, 45, .14); }
.cp .incl h2 { color: #fff; }
.cp .incl .label { color: var(--teal); }
.cp .incl p { color: #c3ccd6; }
.cp .incl ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cp .incl li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 12px 14px; font-size: 15px; color: #fff; }
.cp .incl li .ico { color: var(--teal); }
.cp .incl-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 820px) { .cp .incl { grid-template-columns: 1fr; } }

/* requirements + FAQ */
.cp .two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.cp .two.one { grid-template-columns: 1fr; max-width: 820px; }
.cp .req { list-style: none; padding: 0; margin: 0; }
.cp .req li { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cp .faq { display: grid; gap: 10px; }
.cp .faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.cp .faq summary { cursor: pointer; list-style: none; padding: 16px 50px 16px 18px; font-weight: 700; color: var(--navy); position: relative; }
.cp .faq summary::-webkit-details-marker { display: none; }
.cp .faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--teal-dark); font-weight: 600; }
.cp .faq details[open] summary::after { content: "\2013"; }
.cp .faq .a { padding: 0 18px 16px; }
@media (max-width: 820px) { .cp .two { grid-template-columns: 1fr; } }

/* closing call to action + more courses */
.cp .cta { background: var(--teal); border: 1px solid rgba(15, 27, 45, .06); box-shadow: var(--shadow); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); text-align: center; }
.cp .cta h2 { color: var(--hero-ink, #0b0b0b); margin-top: 0; }
.cp .cta p { color: var(--hero-ink, #13302b); max-width: 44ch; margin: 8px auto 20px; }
.cp .cta .price { margin-bottom: 16px; }
.cp .more ul { columns: 2; gap: 24px; padding-left: 1.2em; }
@media (max-width: 640px) { .cp .more ul { columns: 1; } }

/* sticky enrol bar on phones, shown once the hero button scrolls out of view */
.cp-sticky { display: none; }
@media (max-width: 767px) {
    .cp-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px; background: rgba(255, 255, 255, .97); border-top: 1px solid #e6e9ec; transform: translateY(110%); transition: transform .2s; }
    .cp-sticky.is-visible { transform: translateY(0); }
    .cp-sticky .btn { width: 100%; font-family: 'Figtree', 'Figtree Fallback', system-ui, sans-serif; }
    body.has-sticky { padding-bottom: 72px; }
    body.has-sticky .gu-back-to-top { bottom: 84px; }
}

/* visible breadcrumb (the same trail is in the structured data) */
.cp .crumbs { margin-bottom: 16px; font-size: 13.5px; color: var(--hero-ink, #13302b); }
.cp .crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; }
.cp .crumbs li + li::before { content: "\203A"; margin-right: 8px; opacity: .7; }
.cp .crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cp .crumbs li[aria-current] { font-weight: 700; }
