/**
 * courses-short.css — the short-course template (single-courses-short.php).
 *
 * Loads after courses-v2.css and course-sections.css, and only adds what the
 * short template introduces: the hero badge/subtitle/fact pills, the next-date
 * card, the two "what it is" panels, the routes cards and the enquiry band.
 * Everything else (hero frame, buttons, section headers, .course-prose, the
 * dates list, reveal) comes from those two sheets unchanged: the dates section
 * is shared, because every course template can render it.
 *
 * No literal colour: every value is a token or a token-channel rgba().
 */

/* ==========================================================================
   HERO ADDITIONS
   ========================================================================== */

/* .hero-page adds its own padding-block on top of the grid's, which on a short
   hero (no key-facts table, a compact card) leaves a band of empty ground under
   the buttons. The grid's padding is enough here. Scoped to the short variant:
   the shared course hero is unchanged. */
.hero-courses--short {
  padding-block: 0;
}

.hero-courses__badge {
  display: inline-block;
  background: var(--accent-on-dark);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: var(--fs-min);
  letter-spacing: .01em;
  padding: .35rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.hero-courses__subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.35;
  color: var(--page-title-eyebrow);
  max-width: 40ch;
  margin-bottom: .9rem;
}

.hero-courses__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 0 0 1.7rem;
  padding: 0;
}

.hero-courses__fact {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(var(--on-dark-rgb), .09);
  border: 1px solid rgba(var(--on-dark-rgb), .18);
  border-radius: var(--radius-pill);
  padding: .5rem 1rem;
  font-size: var(--fs-min);
  font-weight: 600;
  color: var(--page-title-fg);
}

.hero-courses__fact svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--page-title-eyebrow);
}

/* Next start date card — the short-course counterpart to Key Information. */
.hero-courses-next__date {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--text-heading);
  padding: 0 1.6rem;
  margin: -.4rem 0 .9rem;
}

.hero-courses-next__meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 0 1.6rem 1.3rem;
  margin: 0;
}

.hero-courses-next__meta li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: var(--fs-min);
  font-weight: 600;
  color: var(--muted);
}

.hero-courses-next__meta svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: .15rem;
  color: var(--accent);
}

.hero-courses-next__more {
  background: var(--light);
  border-top: 1px solid var(--line);
  padding: .9rem 1.6rem;
  margin: 0;
  font-size: var(--fs-min);
  font-weight: 700;
}

/* ==========================================================================
   WHAT IT IS — the two panels
   ========================================================================== */

.course-short-about {
  padding: var(--space-section-sm) 0;
  background: var(--white);
}

.short-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-grid);
  align-items: start;
}

.short-panels--single {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

.short-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--pad-card);
  height: 100%;
}

.short-panel__title {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--text-heading);
  margin: 0 0 1rem;
}

.short-panel__icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--white);
}

.short-panel__icon--alt {
  background: var(--surface-brand);
}

.short-panel__icon svg {
  width: 22px;
  height: 22px;
}

.short-panel__body > :last-child {
  margin-bottom: 0;
}

.short-gains {
  list-style: none;
  display: grid;
  gap: .8rem;
  margin: 0;
  padding: 0;
}

.short-gain {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: var(--fs-min);
  line-height: 1.6;
  color: var(--muted);
}

.short-gain strong {
  color: var(--text-heading);
}

.short-gain__tick {
  flex: none;
  margin-top: .15rem;
  color: var(--accent);
}

.short-gain__tick svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

/* Overview WYSIWYG, when a short course carries one as well as the panels. */
.course-short-overview {
  padding: 0 0 var(--space-section-sm);
  background: var(--white);
}

.course-short-overview .course-prose {
  max-width: var(--measure);
  margin-inline: auto;
}


/* ==========================================================================
   COST
   ========================================================================== */

.course-cost-section {
  padding: var(--space-section-sm) 0;
  background: var(--white);
}

.course-cost {
  max-width: 820px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: var(--card-edge) solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--pad-card);
}

.course-cost__headline {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-heading);
  margin: 0;
}

.course-cost__headline + .course-cost__detail,
.course-cost__detail + .course-cost__extra,
.course-cost__headline + .course-cost__extra {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.course-cost__extra h3 {
  font-size: 1.3rem;
  color: var(--text-heading);
  margin: 0 0 .5rem;
}

.course-cost > :last-child > :last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   ROUTES ONTO THE COURSE
   ========================================================================== */

.course-routes-section {
  padding: var(--space-section-sm) 0;
  background: var(--white);
}

.course-routes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap-grid);
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.course-route {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.6rem;
  overflow: hidden;
}

.course-route::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--card-edge);
  background: var(--accent);
}

.course-route--2::before {
  background: var(--surface-brand);
}

.course-route__label {
  font-size: var(--fs-min);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent);
  margin: 0 0 .3rem;
}

.course-route--2 .course-route__label {
  color: var(--display-em-text);
}

.course-route__title {
  font-size: 1.35rem;
  color: var(--text-heading);
  margin: 0 0 .4rem;
}

.course-route__text {
  font-size: var(--fs-min);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   ENQUIRY BAND
   ========================================================================== */

.course-enquiry-section {
  padding: var(--space-section-sm) 0 var(--space-section);
  background: var(--light);
}

.course-enquiry {
  max-width: 820px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--pad-card);
}

.course-enquiry__context {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  background: var(--light);
  border: 1px solid var(--line);
  border-left: var(--card-edge) solid var(--accent);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  margin: 0 0 1.4rem;
  font-size: var(--fs-min);
  font-weight: 600;
  color: var(--ink);
}

.course-enquiry__context svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: .1rem;
  color: var(--accent);
  stroke-width: 2.4;
}

.course-enquiry__fallback,
.course-enquiry__footnote,
.course-enquiry__contact {
  font-size: var(--fs-min);
  color: var(--muted);
  margin: 1rem 0 0;
}

.course-enquiry__contact {
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

.course-enquiry__form > :last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 64em) {
  .short-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40em) {
  .hero-courses-next__date {
    font-size: 1.5rem;
  }
}
