/* One course page. Page-local only; everything else comes from site.css.
   Built from course-page-draft.css: the blue top with the facts said once, then the course in tiles. */

/* top: the header bar floats over this field, as it does over the homepage hero */
.s-ctop { padding-top: 150px; }
.ctop-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 96px); align-items: end; margin-bottom: clamp(40px, 4.5vw, 72px); }
.ctop-side { display: flex; flex-direction: column; gap: 26px; padding-bottom: 6px; }
.ctop-side .sec-lead { font-weight: 500; }
.ctop-head .kicker { color: var(--navy); }
.bar nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }


/* facts: a big photo leads, the four facts sit in a 2 by 2 beside it, all set from the bottom */
.c-facts { grid-template-columns: 6fr 3fr 3fr; grid-template-rows: auto auto; }
.c-facts .c-hero { grid-column: 1; grid-row: 1 / 3; min-height: 420px; }
.c-facts .t:not(.c-hero) { min-height: clamp(200px, 16vw, 250px); }
/* the truck sits left of center in its photo: keep its bumper in the crop */
.c-truck img { object-position: 5% 50%; }
.c-facts .stat-big { font-size: clamp(40px, 3.8vw, 64px); }
.c-facts .stat p:last-child { font-size: 16px; }
.c-stepup { text-decoration: none; transition: transform .45s var(--slap); }
.c-stepup:hover { transform: translateY(-2px) rotate(-1deg); }

/* what they learn: the photo takes two thirds, three quiet steps stack in the last third */
.c-learn { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, auto); }
.c-learn .c-lead { grid-column: 1; grid-row: 1 / 4; min-height: 420px; }
.cstep { flex-direction: row; align-items: flex-start; gap: 16px; padding-block: clamp(26px, 2.4vw, 36px); }
.cstep-n { flex: none; font: 900 clamp(40px, 3.2vw, 56px)/.8 var(--disp); color: var(--orange); }
.cstep h3 { margin-bottom: 8px; font-size: clamp(26px, 2.2vw, 36px); }
.cstep p { font-size: 17px; }

/* the details: wide photo and the prior-experience stat, then the packing list, the next step and a class photo */
.c-det { grid-template-columns: repeat(3, 1fr); }
.c-det .c-photo { grid-column: span 2; min-height: 0; aspect-ratio: 2000 / 1127; }
.c-det .c-sq { min-height: 280px; }
.c-det .c-sq img { object-position: 50% 30%; }
.c-det .stat .kicker { margin-bottom: auto; }
.c-det .stat .stat-big { font-size: clamp(52px, 5vw, 88px); }
.c-det .stat .stat-q { font-size: clamp(32px, 2.8vw, 48px); line-height: .9; margin-bottom: 6px; }
.c-det .stat p:last-child { font-size: 17px; max-width: 32ch; }
.t-blue .kicker, .t-orange .kicker, .t-paper .kicker, .t-white .kicker { color: var(--navy); }
.c-pack { justify-content: space-between; gap: 22px; font-size: 17px; }
.c-pack h3 { margin-bottom: 8px; }
.c-pack ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.c-pack li { padding-left: 22px; position: relative; }
.c-pack li::before { content: ""; position: absolute; left: 0; top: 12px; width: 12px; height: 3px; border-radius: 2px; background: currentColor; }
.c-then { justify-content: space-between; gap: 24px; }
.c-then p { max-width: 40ch; margin-top: 10px; font-size: 17px; }
.c-then p a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.c-then .btn { align-self: flex-start; }

/* photo labels, the homepage "That's me" tag in blue. Drawn in the photo's pixel space,
   so the arrows end on the lanterns at every size. */
.plabels { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
/* phones: the labels scale with the photo and get too small to read, so grow them from their outer corner */
@media (max-width: 760px) {
  .plabels g { transform-box: fill-box; scale: 2; }
  .plabels g:first-of-type { transform-origin: 100% 0; }
  .plabels g:last-of-type { transform-origin: 0 100%; }
}
.pl-box { fill: var(--blue); }
.pl-label { fill: var(--navy); font: 900 56px var(--disp); text-transform: uppercase; }
.pl-sub { fill: var(--navy); font: 600 28px var(--text); }
.pl-arrow { fill: none; stroke: var(--white); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }

/* course questions: open cards, three across, unlike the homepage accordion */
.s-cfaq .sec-lead a { font-weight: 700; }
.c-qa { grid-template-columns: repeat(3, 1fr); }
.qa-card { min-height: 0; }
.qa-card h3 { font-size: clamp(26px, 2.1vw, 34px); }
.qa-card p { font-size: 17px; max-width: 40ch; }
.qa-card p a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* pick a time: the approved r3 enroll block, set on blue */
.en-head { display: grid; gap: 20px 48px; align-items: end; }
.en-head p { font-size: 17px; }
.en-head p + p { margin-top: 10px; font-size: 15px; }
.en-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: clamp(32px, 3.5vw, 52px); }
.en-col-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.en-col-h h3 { font: 900 40px/.9 var(--disp); text-transform: uppercase; }
.en-col-h span { font: 700 15px/1 var(--text); }
.en-list { display: grid; gap: 10px; }
.slot { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 16px; width: 100%; padding: 18px 20px; border-radius: var(--r); background: var(--paper); color: var(--navy); text-align: left; transition: transform .45s var(--slap); }
.slot:hover { transform: translateY(-2px) rotate(-.4deg); }
.slot:hover .btn { transform: translateY(-2px) rotate(-1.5deg); }
.slot:active { transform: scale(.98); }
.slot-when { font: 900 clamp(32px, 2.6vw, 40px)/.9 var(--disp); text-transform: uppercase; }
.slot-meta { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 15px; }
.slot-go { grid-column: 2; grid-row: 1 / 3; display: grid; justify-items: end; gap: 8px; }
.slot-go .btn { min-height: 44px; padding: 0 20px; pointer-events: none; }
.slot-left { font: 700 13px/1 var(--text); opacity: .6; }
.slot-left.low { opacity: 1; color: var(--orange); background: var(--navy); padding: 5px 8px; border-radius: 4px; }
.slot.full { background: var(--navy); color: var(--paper); cursor: default; }
.slot.full:hover { transform: none; }
.slot.full .slot-when { opacity: .5; }
.slot.full .slot-go span { font: 900 24px/1 var(--disp); text-transform: uppercase; opacity: .6; }
.en-none { padding: 18px 20px; border-radius: var(--r); box-shadow: inset 0 0 0 2px rgba(11,26,51,.3); font-size: 15px; }
.en-off { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--r); background: var(--navy); color: var(--paper); }
.en-off svg { flex: none; width: 40px; height: 40px; fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; }
.en-off p { font: 900 clamp(26px, 2.2vw, 32px)/.95 var(--disp); text-transform: uppercase; }
.en-foot { margin-top: 28px; font-size: 15px; }
.en-foot a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font: 700 13px/1 var(--text); }
.tag-navy { background: var(--navy); color: var(--paper); }
.tag-line { box-shadow: inset 0 0 0 2px currentColor; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .ctop-head { grid-template-columns: 1fr; row-gap: 32px; }
  .c-facts { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .c-facts .c-hero { grid-column: 1 / -1; grid-row: auto; min-height: 440px; }
  .c-learn { grid-template-columns: 1fr; grid-template-rows: none; }
  .c-learn .c-lead { grid-row: auto; min-height: 440px; }
  .c-det, .c-qa { grid-template-columns: 1fr 1fr; }
  .c-det .c-photo { grid-column: 1 / -1; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .s-ctop { padding-top: 112px; }
  .c-facts, .c-det, .c-qa { grid-template-columns: 1fr; }
  /* phone: one photo opens each section, shown whole; fact tiles sized to their words */
  .c-facts .t, .c-facts .t:not(.c-hero) { min-height: 0; }
  .c-facts .c-hero { min-height: 0; aspect-ratio: 2000 / 1127; }
  .c-det .c-photo { grid-column: auto; }
  .c-det .c-sq { display: none; }
  .c-learn .c-lead { min-height: 0; aspect-ratio: 4 / 3; }
  .qa-card { min-height: 0; }
  .en-head, .en-cols { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .slot { padding: 16px; }
  .slot-when { font-size: 28px; }
  .slot-go .btn { padding: 0 16px; }
}
