/* ═══════════════════════════════════════════════════════════
   COURSE FLYER (.cf) — one shared skeleton for /courses/ pages
   Poster-style: big type, numbers, chips, minimal visible text.
   Built from the vj-foundations visual language.
   ═══════════════════════════════════════════════════════════ */

.cf {
  --cf-ink: #14101e;
  --cf-paper: #f6f3ee;
  --cf-warm: #ede8e0;
  --cf-soft: #fffaf2;
  --cf-muted: #5a5266;
  --cf-violet: #5b21d6;
  --cf-lime: #b8e64b;
  --cf-line: rgba(20, 16, 30, .14);
  background: var(--cf-paper);
  color: var(--cf-ink);
  font-family: var(--wp--preset--font-family--body);
}
.cf * { box-sizing: border-box; }
.cf a { color: inherit; }

/* Section shells — full width, gutters come from the section padding */
.cf-wrap { max-width: none; margin: 0 auto; }
.cf-sect { padding: 72px 40px; }
.cf-sect.cf-soft { background: var(--cf-soft); }
.cf-sect.cf-warm { background: var(--cf-warm); }

/* Section titles — poster headlines */
.cf-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(30px, 4.5vw, 58px);
  line-height: .92; font-weight: 400; text-transform: uppercase;
  margin: 0 0 30px;
}
.cf mark { background: transparent; color: var(--cf-violet); }
.cf-final mark { color: var(--cf-lime); }

/* ── Hero (poster) ── */
.cf-hero {
  padding: 150px 40px 0;
  background: transparent;
  overflow: hidden;
}
.cf-hero h1 {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(44px, 8vw, 112px);
  font-weight: 400; line-height: .95; text-transform: uppercase;
  margin: 0 0 20px; max-width: 1100px;
}
.cf-lead,
.cf-aud {
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.4;
  color: var(--cf-muted);
  max-width: 720px; margin: 0 0 30px;
}
/* Full-bleed hero photo: escapes the section gutters */
.cf-hero-media { position: relative; max-width: none; margin: 44px -40px 0; }
.cf-hero-media img {
  width: 100%; height: clamp(240px, 38vw, 540px);
  object-fit: cover; display: block;
  border-top: 1px solid var(--cf-line); border-bottom: 1px solid var(--cf-line);
}

/* ── Chips (meta + tools) — native List block ── */
.cf-chiprow {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px;
  padding: 0; margin: 0 0 24px;
}
.cf-chiprow li {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--cf-line); padding: 8px 12px;
  color: var(--cf-violet); background: rgba(255, 255, 255, .55);
  display: inline-flex; align-items: center; gap: 8px;
}
.cf-sect .cf-chiprow { margin-bottom: 0; }

/* Price chip — filled, stands out in the row */
.cf-chip-price {
  background: var(--cf-ink) !important;
  border-color: var(--cf-ink) !important;
  color: var(--cf-paper) !important;
  font-weight: 600;
}

/* Level dots: ●○○ / ●●○ / ●●● painted by CSS, no markup */
.cf-lvl-1::before, .cf-lvl-2::before, .cf-lvl-3::before {
  content: ""; width: 32px; height: 8px; flex-shrink: 0;
}
.cf-lvl-1::before {
  background-image:
    radial-gradient(circle 3.5px at 4px 4px,  var(--cf-violet) 97%, transparent),
    radial-gradient(circle 3.5px at 16px 4px, rgba(20,16,30,.18) 97%, transparent),
    radial-gradient(circle 3.5px at 28px 4px, rgba(20,16,30,.18) 97%, transparent);
}
.cf-lvl-2::before {
  background-image:
    radial-gradient(circle 3.5px at 4px 4px,  var(--cf-violet) 97%, transparent),
    radial-gradient(circle 3.5px at 16px 4px, var(--cf-violet) 97%, transparent),
    radial-gradient(circle 3.5px at 28px 4px, rgba(20,16,30,.18) 97%, transparent);
}
.cf-lvl-3::before {
  background-image:
    radial-gradient(circle 3.5px at 4px 4px,  var(--cf-violet) 97%, transparent),
    radial-gradient(circle 3.5px at 16px 4px, var(--cf-violet) 97%, transparent),
    radial-gradient(circle 3.5px at 28px 4px, var(--cf-violet) 97%, transparent);
}

/* ── Buttons (core Buttons block, scoped) ── */
.cf .wp-block-buttons { gap: 14px; }
.cf .wp-block-button__link {
  background: var(--cf-ink) !important; color: var(--cf-paper) !important;
  border: 1px solid var(--cf-ink) !important; border-radius: 0 !important;
  text-transform: uppercase; font-size: 12px !important;
  letter-spacing: .1em; font-weight: 600 !important;
  padding: 17px 28px !important; transition: transform .2s ease, background .2s ease;
}
.cf .wp-block-button__link:hover { transform: translateY(-2px); }
.cf .is-style-outline .wp-block-button__link {
  background: transparent !important; color: var(--cf-ink) !important;
}

/* ── Quick facts strip: label → value ── */
.cf-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--cf-line); border-bottom: 1px solid var(--cf-line);
  background: var(--cf-soft);
}
.cf-stat { padding: 20px 40px; border-right: 1px solid var(--cf-line); }
.cf-stat:last-child { border-right: 0; }
.cf-stat-l {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cf-violet); margin: 0 0 8px;
}
.cf-stat-v {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(22px, 2.4vw, 36px); line-height: 1; text-transform: uppercase;
  color: var(--cf-ink); margin: 0;
}

/* ── Skills: ✓ list ── */
.cf-skills {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px 48px;
}
.cf-skills li {
  display: flex; gap: 14px; align-items: center;
  font-size: 18px; font-weight: 600; letter-spacing: -.01em;
}
.cf-skills li::before {
  content: "✓"; flex-shrink: 0;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: var(--cf-violet); color: #fff;
  font-size: 13px; font-weight: 700;
}

/* ── Setlist: numbered one-liners (CSS counters), two columns ── */
.cf-setlist {
  list-style: none; counter-reset: cf-track;
  padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 56px;
  border-top: 1px solid var(--cf-line);
}

/* Two modules side by side (The kit + Good questions) */
.cf-duo {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 24px 72px; align-items: start;
}
.cf-duo .cf-acc { max-width: none; margin-top: 6px; }
.cf-setlist li {
  counter-increment: cf-track;
  display: flex; align-items: baseline; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--cf-line);
  font-size: clamp(18px, 2.2vw, 26px); font-weight: 600; letter-spacing: -.01em;
  transition: color .2s;
}
.cf-setlist li::before {
  content: counter(cf-track, decimal-leading-zero);
  font-family: var(--wp--preset--font-family--mono);
  font-size: 13px; color: var(--cf-violet); flex-shrink: 0;
}
.cf-setlist li::after {
  content: ""; flex: 1; align-self: center;
  border-bottom: 1px dotted var(--cf-line); margin-left: 6px;
}
.cf-setlist li:hover { color: var(--cf-violet); }

/* ── Prominent curriculum panel (framed, obviously clickable) ── */
.cf-acc-big { margin-top: 44px; }
.cf-acc-big details {
  border: 1px solid var(--cf-ink);
  background: var(--cf-soft);
}
.cf-acc-big summary {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 26px 30px; cursor: pointer; list-style: none; user-select: none;
  font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; letter-spacing: -.01em;
  color: var(--cf-ink); transition: background .2s;
}
.cf-acc-big summary::-webkit-details-marker { display: none; }
.cf-acc-big summary:hover { background: rgba(91, 33, 214, .06); }
.cf-acc-big summary::after {
  content: "+"; flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--cf-violet); color: #fff;
  font-size: 20px; font-weight: 400;
  transition: transform .25s;
}
.cf-acc-big details[open] summary::after { content: "–"; }
.cf-acc-big details > *:not(summary) { padding: 0 30px; }
.cf-acc-big details p, .cf-acc-big details li {
  font-size: 15px; line-height: 1.6; color: var(--cf-muted);
}
.cf-acc-big details p { margin: 0 0 18px; max-width: 76ch; }
.cf-acc-big details ul { margin: 0 0 24px; padding-left: 50px; }
.cf-acc-big details h4 {
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  margin: 28px 0 12px; color: var(--cf-ink);
}
.cf-acc-big details[open] { padding-bottom: 28px; }

/* ── Accordion (details) ── */
.cf-acc { margin-top: 26px; }
.cf-faq .cf-acc { max-width: 900px; margin-top: 6px; }
.cf-acc details { border-bottom: 1px solid var(--cf-line); }
.cf-acc details:first-of-type { border-top: 1px solid var(--cf-line); }
.cf-acc summary {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 17px 0; cursor: pointer; list-style: none; user-select: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--cf-ink);
}
.cf-acc summary::-webkit-details-marker { display: none; }
.cf-acc summary::after { content: "+"; font-size: 16px; color: var(--cf-violet); }
.cf-acc details[open] summary::after { content: "–"; }
.cf-acc summary:hover { color: var(--cf-violet); }
.cf-acc details p, .cf-acc details li {
  font-size: 15px; line-height: 1.6; color: var(--cf-muted);
}
.cf-acc details p { margin: 0 0 14px; max-width: 70ch; }
.cf-acc details ul { margin: 0 0 18px; padding-left: 20px; }
.cf-acc details h4 {
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  margin: 22px 0 10px; color: var(--cf-ink);
}
.cf-acc details h4:first-child { margin-top: 4px; }

/* ── Instructor (synced pattern) ── */
.cf-inst { display: flex; gap: 18px; align-items: center; margin-top: 34px; }
.cf-inst-badge {
  width: 54px; height: 54px; flex-shrink: 0;
  background: var(--cf-violet); color: #fff;
  font-family: var(--wp--preset--font-family--display);
  font-size: 20px; display: grid; place-items: center; margin: 0;
}
.cf-inst p:last-child { font-size: 15px; line-height: 1.5; color: var(--cf-muted); margin: 0; max-width: 52ch; }

/* ── Student quotes ── */
.cf-quotes {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 8px;
}
.cf-quote {
  border: 1px solid var(--cf-line); background: var(--cf-soft);
  padding: 24px 26px; display: flex; flex-direction: column; gap: 14px;
}
.cf-quote > * { margin: 0; }
.cf-quote .q { font-size: 15px; line-height: 1.6; color: var(--cf-ink); flex: 1; }
.cf-quote .q::before {
  content: "“"; display: block;
  font-family: var(--wp--preset--font-family--display);
  font-size: 40px; line-height: .6; color: var(--cf-violet);
  margin-bottom: 10px;
}
.cf-quote .who {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cf-violet);
}

/* ── Final: violet CTA + FAQ ── */
.cf-final {
  background: var(--cf-violet); color: var(--cf-paper);
  text-align: center; padding: 92px 40px;
}
.cf-final h2 {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(34px, 5.5vw, 72px); line-height: .9;
  font-weight: 400; text-transform: uppercase; margin: 0 0 18px;
}
.cf-final > .cf-wrap > p { font-size: 16px; color: #d6cfe2; margin: 0 auto 30px; max-width: 640px; }
.cf-final .wp-block-buttons { justify-content: center; }
.cf-final .wp-block-button__link {
  background: var(--cf-paper) !important; border-color: var(--cf-paper) !important;
  color: var(--cf-ink) !important;
}
.cf-final .is-style-outline .wp-block-button__link {
  background: transparent !important; color: var(--cf-paper) !important;
  border-color: rgba(246, 243, 238, .35) !important;
}
.cf-final .cf-acc { max-width: 680px; margin: 44px auto 0; text-align: left; }
.cf-final .cf-acc details, .cf-final .cf-acc details:first-of-type { border-color: rgba(246, 243, 238, .16); }
.cf-final .cf-acc summary { color: var(--cf-paper); }
.cf-final .cf-acc summary::after { color: var(--cf-lime); }
.cf-final .cf-acc details p { color: #d6cfe2; }

/* ═══ v5 — modern & creative touches ═══ */

/* Audience line under the lead */
.cf-aud { margin-top: -14px; }
.cf-aud strong { color: inherit; font-weight: 700; }

@media (min-width: 900px) {
  .cf-hero .cf-lead {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(15px, 1.15vw, 18px);
  }
}

/* Rave-flyer ticker strip */
.cf-ticker {
  background: var(--cf-lime);
  border-top: 1px solid var(--cf-ink);
  border-bottom: 1px solid var(--cf-ink);
  overflow: hidden;
}
.cf-ticker-track {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(16px, 2vw, 26px);
  text-transform: uppercase; letter-spacing: .02em;
  color: var(--cf-ink);
  white-space: nowrap; display: inline-block;
  padding: 13px 0; margin: 0;
  animation: cf-scroll 30s linear infinite;
}
@keyframes cf-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cf-ticker-track { animation: none; } }

/* Price cell pops in lime */
.cf-stat-price { background: var(--cf-lime); }
.cf-stat-price .cf-stat-l { color: var(--cf-ink); }
.cf-stat-price .cf-stat-v { color: var(--cf-ink); }

/* Buttons: arrow + invert on hover */
.cf .wp-block-button__link::after {
  content: "→"; margin-left: 10px; display: inline-block;
  transition: transform .2s ease;
}
.cf .wp-block-button__link:hover::after { transform: translateX(5px); }
.cf .wp-block-button__link:hover {
  background: var(--cf-violet) !important;
  border-color: var(--cf-violet) !important;
  color: #fff !important;
  transform: translateY(-2px);
}
.cf .is-style-outline .wp-block-button__link:hover {
  background: var(--cf-ink) !important;
  border-color: var(--cf-ink) !important;
  color: var(--cf-paper) !important;
}

/* Skills: micro-interactions */
.cf-skills li { transition: transform .2s ease; }
.cf-skills li:hover { transform: translateX(5px); }
.cf-skills li:hover::before { background: var(--cf-lime); color: var(--cf-ink); }

/* Setlist: slide on hover */
.cf-setlist li { transition: color .2s, padding-left .2s ease; }
.cf-setlist li:hover { padding-left: 8px; }

/* Curriculum panel: violet frame on hover */
.cf-acc-big details { transition: border-color .25s; }
.cf-acc-big details:hover { border-color: var(--cf-violet); }

/* Quotes: zine stagger + lift */
.cf-quote { transition: transform .25s ease, box-shadow .25s ease; }
.cf-quote:nth-child(odd)  { transform: rotate(-.6deg); }
.cf-quote:nth-child(even) { transform: rotate(.5deg); }
.cf-quote:hover {
  transform: rotate(0) translateY(-5px);
  box-shadow: 7px 7px 0 rgba(20, 16, 30, .09);
}
@media (prefers-reduced-motion: reduce) {
  .cf-quote, .cf-quote:nth-child(odd), .cf-quote:nth-child(even) { transform: none; }
}

/* Note under tool chips */
.cf-note {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 12px; letter-spacing: .05em;
  color: var(--cf-muted); margin: 14px 0 0;
}
.cf-note::before { content: "✓ "; color: var(--cf-violet); font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 850px) {
  .cf-hero { padding: 120px 22px 56px; }
  .cf-hero h1 { font-size: clamp(34px, 11vw, 78px); overflow-wrap: anywhere; }
  .cf-sect, .cf-final { padding-left: 22px; padding-right: 22px; }
  .cf-stats { grid-template-columns: 1fr 1fr; }
  .cf-stat { border-bottom: 1px solid var(--cf-line); padding: 18px 22px; }
  .cf-setlist { grid-template-columns: 1fr; }
  .cf-skills { grid-template-columns: 1fr; }
  .cf-duo { grid-template-columns: 1fr; gap: 48px; }
  .cf-quotes { grid-template-columns: 1fr; }
  .cf-hero-media { margin: 36px -22px 0; }
  .cf-hero-media::after { right: -10px; bottom: -10px; }
}
