/* ===== v7 COURSE DETAIL — page-specific styles (loads after v7-shared.css) ===== */

/* Hero */
.cd-hero { padding: 48px 0 0; background: var(--bg-soft); }
.cd-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.cd-thumb { aspect-ratio: 16/9; border-radius: var(--r-2xl); background-color: var(--plum-soft); background-size: cover; background-position: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cd-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(31,6,23,0.34), transparent 55%); pointer-events: none; }

.cd-meta-strip { display: flex; gap: 16px; flex-wrap: wrap; padding: 24px 0; border-bottom: 1px solid var(--line); margin-top: 24px; }
.cd-meta-strip > div { display: flex; flex-direction: column; gap: 3px; }
.cd-meta-strip strong { font-size: 16px; color: var(--ink); font-weight: 700; }
.cd-meta-strip span { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.cd-divider { width: 1px; background: var(--line); align-self: stretch; }

.cd-intro { padding: 32px 0 56px; }
.cd-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.cd-title { font-family: 'Inter Tight', sans-serif; font-size: 44px; font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 16px; }
.cd-lead { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 640px; }

/* Sticky enrol card */
.enroll-card { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-2xl); padding: 28px; box-shadow: var(--shadow-lg); }
/* Pricing block — a clean vertical stack (was display:flex row, which squeezed
   the price / GST line / pay-options / note into narrow side-by-side columns). */
.enroll-card .price-stack { display: block; margin-bottom: 20px; }
.enroll-card .price { font-family: 'Inter Tight', sans-serif; font-size: 42px; font-weight: 800; color: var(--ink); letter-spacing: -0.025em; line-height: 1; }
.enroll-card .price.free { color: var(--jade); }
.enroll-card .price small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 3px; }
.gst-line { font-size: 12.5px; color: var(--muted); margin-top: 9px; }
.enroll-cta { display: block; width: 100%; text-align: center; background: var(--saffron); color: #fff; font-size: 16px; font-weight: 800; padding: 16px; border-radius: var(--r-md); border: none; cursor: pointer; box-shadow: var(--shadow-cta); margin-bottom: 10px; transition: background 0.18s; }
.enroll-cta:hover { background: var(--saffron-bright); }
.enroll-secondary { display: block; width: 100%; text-align: center; background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 13px; border-radius: var(--r-md); font-weight: 700; font-size: 15px; cursor: pointer; transition: all 0.18s; }
.enroll-secondary:hover { background: var(--ink); color: #fff; }
.enroll-facts { padding: 22px 0 6px; border-top: 1px solid var(--line); margin-top: 20px; }
.enroll-facts h5 { font-family: 'Inter Tight', sans-serif; font-size: 14px; font-weight: 800; margin-bottom: 12px; color: var(--ink); }
.enroll-fact { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.enroll-fact:first-of-type { border-top: none; }
.enroll-fact span { color: var(--muted); }
.enroll-fact b { color: var(--ink); font-weight: 700; text-align: right; }
.enroll-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 16px; line-height: 1.55; padding-top: 16px; border-top: 1px solid var(--line); }

/* Body */
.cd-body { max-width: 780px; }
.cd-section { margin-bottom: 44px; }
.cd-h { font-family: 'Inter Tight', sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 16px; }
.cd-prose { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.cd-prose p { margin-bottom: 14px; }
.cd-prose h2 { font-family: 'Inter Tight', sans-serif; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.015em; margin: 26px 0 12px; }
.cd-prose h3 { font-family: 'Inter Tight', sans-serif; font-size: 18px; font-weight: 800; color: var(--ink); margin: 22px 0 10px; }
.cd-prose h4 { font-family: 'Inter Tight', sans-serif; font-size: 16px; font-weight: 800; color: var(--ink); margin: 18px 0 8px; }
.cd-prose ul { list-style: none; padding-left: 0; margin-bottom: 14px; }
.cd-prose li { position: relative; padding-left: 26px; margin-bottom: 9px; }
.cd-prose li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--saffron-deep); font-weight: 800; }
.cd-prose strong { color: var(--ink); font-weight: 700; }
.cd-prose hr { border: none; border-top: 1px solid var(--line); margin: 22px 0; }
.md-tablewrap { overflow-x: auto; margin: 16px 0; -webkit-overflow-scrolling: touch; }
.md-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 420px; }
.md-table td { border: 1px solid var(--line); padding: 10px 12px; color: var(--ink-2); vertical-align: top; }
.md-table tr:first-child td { background: var(--bg-soft); font-weight: 700; color: var(--ink); }

/* What you'll learn (outcomes) */
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; padding: 26px 28px; background: var(--saffron-soft); border-radius: var(--r-xl); }
.learn-item { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.learn-item::before { content: '✓'; color: var(--saffron-deep); font-weight: 800; flex-shrink: 0; }

/* Highlight chips */
.chiprow { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-full); padding: 9px 16px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--saffron); flex-shrink: 0; }

@media (max-width: 1024px) {
  .cd-grid { grid-template-columns: 1fr; gap: 32px; }
  .enroll-card { position: static; }
  .cd-title { font-size: 34px; }
  .cd-intro { padding: 28px 0 40px; }
  .learn-grid { grid-template-columns: 1fr; }
}

/* YWI payment options */
.pay-options { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 1px; }
.pay-options li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; font-size: 14px; color: var(--ink-2); }
.pay-options li span { color: var(--muted); }
.pay-options li b { font-family: 'Inter Tight', sans-serif; color: var(--ink); font-weight: 800; white-space: nowrap; letter-spacing: -0.01em; }
.pay-options li b em { font-style: normal; font-weight: 600; color: var(--muted); font-size: 12px; }
.gst-note { font-size: 11.5px; color: var(--muted); line-height: 1.55; margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--line); }

/* Course enquiry (lead capture) form */
.enq-head { margin-bottom: 14px; }
.enq-head strong { display: block; font-family: 'Inter Tight', sans-serif; font-size: 19px; font-weight: 800; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.01em; }
.enq-head span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.enq-done { background: #DEF7E5; border: 1px solid #A6E2B8; color: var(--jade); border-radius: var(--r-sm); padding: 11px 14px; font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
.enq-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.enq-form input, .enq-form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 14px; font-family: inherit; color: var(--ink); background: var(--bg); outline: none; box-sizing: border-box; transition: border-color .15s, box-shadow .15s; }
.enq-form input:focus, .enq-form textarea:focus { border-color: var(--plum); box-shadow: 0 0 0 3px var(--plum-soft); }
.enq-form textarea { resize: vertical; line-height: 1.5; }
.enq-form .enroll-cta { margin-top: 4px; }

/* ===== Course syllabus — accordion (premium, mobile-first) ===== */
.cd-h-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.cd-h-row .cd-h { margin-bottom: 0; }
.syl-toggle { font-family: inherit; font-size: 13px; font-weight: 700; color: var(--plum); background: var(--plum-soft); border: none; padding: 8px 15px; border-radius: var(--r-full); cursor: pointer; transition: background .15s, color .15s; }
.syl-toggle:hover { background: var(--plum); color: #fff; }

.syllabus-acc, .faq-acc { display: flex; flex-direction: column; gap: 10px; }
.faq-more { margin-top: 18px; font-size: 14px; color: var(--muted); }
.faq-more a { color: var(--plum); font-weight: 700; text-decoration: none; }
.faq-more a:hover { text-decoration: underline; }
.syl-group { font-family: 'Inter Tight', sans-serif; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--saffron-deep); margin: 24px 0 8px; }
.syl-group:first-child { margin-top: 0; }

.syl-item { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.syl-item[open] { border-color: var(--plum-soft); box-shadow: var(--shadow-md); }
.syl-item summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 15.5px; color: var(--ink); letter-spacing: -0.01em; }
.syl-item summary::-webkit-details-marker { display: none; }
.syl-item summary:hover { background: var(--bg-soft); }
.syl-item summary:focus-visible { outline: 2px solid var(--saffron); outline-offset: -2px; }
.syl-t { flex: 1; line-height: 1.35; }
.syl-chev { flex: 0 0 auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .22s ease; margin: -4px 4px 0 0; }
.syl-item[open] .syl-chev { transform: rotate(-135deg); }
.syl-body { padding: 2px 20px 20px; border-top: 1px solid var(--line); }
.syl-body > *:first-child { margin-top: 14px; }
.syl-body p, .syl-body li { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.syl-body .md-tablewrap { margin: 12px 0; }

.cd-meta-strip { flex-wrap: wrap; row-gap: 8px; }

@media (prefers-reduced-motion: reduce) { .syl-chev { transition: none; } }
@media (max-width: 640px) {
  .syl-item summary { padding: 14px 15px; font-size: 14.5px; gap: 10px; }
  .syl-body { padding: 2px 15px 16px; }
  .cd-h-row { margin-bottom: 14px; }
}

/* ===== Syllabus panel body — readable numbered outline ===== */
.syl-body .syl-points { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 9px; }
.syl-body .syl-points li { padding-left: 0; margin-bottom: 0; }        /* undo .cd-prose li defaults */
.syl-body .syl-points li::before { content: none; }                   /* the number is the marker, not a ✓ */
.syl-body .syl-points > li { display: flex; gap: 12px; align-items: baseline; }
.syl-body .syl-points .n { flex: 0 0 auto; min-width: 2.7em; color: var(--saffron-deep); font-weight: 800; font-family: 'Inter Tight', sans-serif; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.syl-body .syl-points .tx { color: var(--ink-2); line-height: 1.55; }
.syl-body .syl-points li.sub { padding-left: 2.7em; }
.syl-body .syl-points li.sub .tx { position: relative; padding-left: 16px; }
.syl-body .syl-points li.sub .tx::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--saffron); }
.syl-body .syl-h { font-family: 'Inter Tight', sans-serif; font-size: 15px; font-weight: 800; color: var(--ink); margin: 20px 0 8px; letter-spacing: -0.01em; }
.syl-body .syl-h:first-child { margin-top: 4px; }
.syl-body .syl-sub { font-family: 'Inter Tight', sans-serif; font-size: 13.5px; font-weight: 800; color: var(--plum); margin: 16px 0 6px; }
.syl-body .syl-def { margin: 7px 0; color: var(--ink-2); line-height: 1.55; }
.syl-body .syl-def b { color: var(--ink); }
@media (max-width: 640px) {
  .syl-body .syl-points .n { min-width: 2.4em; font-size: 13px; }
  .syl-body .syl-points li.sub { padding-left: 2.4em; }
}

/* ===== FAQ — deliberately distinct from the syllabus accordion =====
   Syllabus = bordered cards + chevron; FAQ = flat divider list + plus/minus. */
.faq-acc { gap: 0; }
.faq-item { border: none; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; gap: 16px; padding: 19px 6px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-q { color: var(--plum); }
.faq-item summary:focus-visible { outline: 2px solid var(--saffron); outline-offset: -2px; border-radius: 6px; }
.faq-q { flex: 1; font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 16.5px; color: var(--ink); line-height: 1.4; letter-spacing: -0.01em; }
.faq-item[open] .faq-q { color: var(--plum); }
.faq-ico { flex: 0 0 auto; width: 20px; height: 20px; position: relative; }
.faq-ico::before, .faq-ico::after { content: ''; position: absolute; background: var(--plum); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.faq-ico::before { top: 9px; left: 3px; width: 14px; height: 2px; }
.faq-ico::after  { top: 3px; left: 9px; width: 2px; height: 14px; }
.faq-item[open] .faq-ico::after { transform: scaleY(0); }
.faq-a { padding: 0 6px 22px; color: var(--ink-2); font-size: 15px; line-height: 1.7; max-width: 68ch; }
.faq-a p { margin: 0 0 10px; } .faq-a p:last-child { margin-bottom: 0; }
.faq-a strong { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) {
  .faq-item summary { padding: 16px 2px; gap: 12px; }
  .faq-q { font-size: 15.5px; }
  .faq-a { padding: 0 2px 18px; }
}

/* ===== Enrol modal (YVC) — opens the academy enrol form in a popup, no page nav ===== */
.enroll-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.enroll-modal[hidden] { display: none; }
.em-backdrop { position: absolute; inset: 0; background: rgba(31,6,23,0.6); backdrop-filter: blur(3px); }
.em-dialog { position: relative; width: 100%; max-width: 680px; background: #fff; border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(31,6,23,0.55); overflow: hidden; }
.em-close { position: absolute; top: 12px; right: 14px; z-index: 3; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--ink); font-size: 24px; line-height: 30px; text-align: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.18); transition: background .15s; }
.em-close:hover { background: #fff; }
.em-dialog iframe { display: block; width: 100%; border: 0; height: 520px; max-height: 92vh; }
@media (max-width: 560px) { .enroll-modal { padding: 0; } .em-dialog { max-width: 100%; border-radius: 0; height: 100vh; } .em-dialog iframe { height: 100vh; max-height: 100vh; } }
