/* Topic pages (new design). Builds on home.css; everything is scoped to .tp. */
.tp .tp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 14px; color: var(--hp-muted); }
.tp .tp-crumbs a { color: var(--hp-green-700); text-decoration: none; font-weight: 600; }
.tp .tp-crumbs a:hover { text-decoration: underline; }
.tp .tp-crumbs [aria-current] { color: var(--hp-ink); }
.tp .tp-hero__ticks { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.tp .tp-hero__ticks li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--hp-ink); }
.tp .tp-hero__ticks .hp-i { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--hp-green); color: #fff; stroke-width: 3.5; }

/* Belt ladder: each rung steps up and to the right, like the belts themselves. */
.tp .tp-ladder { position: relative; background: #fff; border: 1px solid var(--hp-line); border-radius: 24px; box-shadow: var(--hp-shadow-lg); padding: 22px; max-width: 520px; width: 100%; margin-left: auto; }
.tp .tp-ladder::before { content: ""; position: absolute; inset: -14px -14px auto auto; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(248, 228, 2, .45), transparent 70%); z-index: -1; }
.tp .tp-ladder__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.tp .tp-ladder__head span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--hp-head); font-weight: 600; color: var(--hp-ink); font-size: 16px; }
.tp .tp-ladder__head .hp-i { color: var(--hp-green); }
.tp .tp-ladder__head small { font-size: 13px; color: var(--hp-muted); }
.tp .tp-ladder__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tp .tp-rung { margin-left: calc(var(--i) * 14px); }
.tp .tp-rung a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--belt-soft); color: var(--hp-ink); text-decoration: none; border: 1px solid transparent; transition: transform .25s var(--ease-out), border-color .2s, box-shadow .25s; }
.tp .tp-rung a:hover, .tp .tp-rung a:focus-visible { transform: translateX(4px); border-color: var(--belt); box-shadow: var(--hp-shadow); }
.tp .tp-rung__belt { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--belt); color: var(--belt-ink); font-family: var(--hp-head); font-weight: 700; font-size: 14px; }
.tp .tp-rung__text { flex: 1; min-width: 0; }
.tp .tp-rung__text strong { display: block; font-family: var(--hp-head); font-size: 16px; line-height: 1.25; }
.tp .tp-rung__text small { font-size: 13px; color: var(--hp-muted); }
.tp .tp-rung__date { flex: none; padding: 5px 10px; border-radius: 999px; background: #fff; font-family: var(--hp-head); font-weight: 600; font-size: 13px; color: var(--hp-green-700); }
.tp .tp-ladder__foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--hp-line); }
.tp .tp-ladder__foot span { font-size: 12.5px; color: var(--hp-muted); line-height: 1.3; }
.tp .tp-ladder__foot strong { display: block; font-family: var(--hp-head); font-size: 17px; color: var(--hp-ink); }

/* Course cards */
.tp .tp-courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.tp .tp-course { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); overflow: hidden; transition: transform .3s var(--ease-out), box-shadow .3s; }
.tp .tp-course::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--belt); }
.tp .tp-course:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow-lg); }
.tp .tp-course__top { display: flex; justify-content: space-between; align-items: center; }
.tp .tp-course__mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--belt); color: var(--belt-ink); font-family: var(--hp-head); font-weight: 700; }
.tp .tp-course h3 { font-size: 20px; }
.tp .tp-course p { font-size: 16px; margin: 0; }
.tp .tp-course__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tp .tp-course__meta li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--belt-soft); font-size: 13.5px; font-weight: 600; color: var(--hp-ink); }
.tp .tp-course__meta .hp-i { width: 15px; height: 15px; }
.tp .tp-course .hp-ticks li { font-size: 15px; }
.tp .tp-course__ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.tp .tp-note { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--hp-cream); border: 1px solid #f1e3a0; font-size: 16px; }
.tp .tp-note .hp-i { flex: none; color: #7a5d00; margin-top: 3px; }
.tp .tp-chooser { margin-top: 28px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px 28px; align-items: start; }
.tp .tp-chooser > div:first-child p { color: #d6efe0; font-size: 16px; margin-top: 8px; }
.tp .tp-chooser > [aria-live] { grid-column: 1 / -1; }

/* Teams */
.tp .tp-teams { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.tp .tp-lead { font-size: 18px; margin-top: 14px; }
.tp .tp-teams__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tp .tp-tile { padding: 20px; border-radius: var(--hp-radius); background: var(--hp-soft); border: 1px solid var(--hp-line); transition: transform .3s var(--ease-out), background-color .3s; }
.tp .tp-tile:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--hp-shadow); }
.tp .tp-tile__icon, .tp .tp-skill__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--hp-green); color: #fff; margin-bottom: 12px; }
.tp .tp-tile h3 { font-size: 17px; margin-bottom: 6px; }
.tp .tp-tile p { font-size: 15px; margin: 0; }

/* The topic's own story */
.tp .tp-story { background: #fff; border: 1px solid var(--hp-line); border-radius: 24px; padding: 32px; box-shadow: var(--hp-shadow); }
.tp .tp-story__head { max-width: 760px; margin-bottom: 24px; }
.tp .tp-story__steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: st; }
.tp .tp-story__steps li { position: relative; padding: 20px; border-radius: 16px; background: var(--hp-sky); }
.tp .tp-story__steps li:not(:last-child)::after { content: ""; position: absolute; top: 40px; right: -14px; width: 10px; height: 10px; border-top: 3px solid var(--hp-blue); border-right: 3px solid var(--hp-blue); transform: rotate(45deg); }
.tp .tp-story__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--hp-blue); color: #fff; margin-bottom: 10px; }
.tp .tp-story__steps h3 { font-size: 17px; margin-bottom: 6px; }
.tp .tp-story__steps p { font-size: 15px; margin: 0; }

/* Skills and "why now" */
.tp .tp-skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tp .tp-skill { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); transition: transform .3s var(--ease-out), box-shadow .3s; }
.tp .tp-skill:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow-lg); }
.tp .tp-skill:nth-child(2) .tp-skill__icon { background: var(--hp-blue); }
.tp .tp-skill:nth-child(3) .tp-skill__icon { background: #b98a00; }
.tp .tp-skill:nth-child(4) .tp-skill__icon { background: var(--belt-master); }
.tp .tp-skill h3 { font-size: 18px; }
.tp .tp-skill p { font-size: 15px; margin: 0 0 8px; }
.tp .tp-skill .hp-chip { --belt: var(--hp-green-50); --belt-ink: var(--hp-green-700); margin-top: auto; align-self: flex-start; white-space: normal; }
.tp .tp-now { margin-top: 28px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; padding: 28px; border-radius: 24px; background: linear-gradient(135deg, #0d2318, #0b5a33); color: #d6efe0; }
.tp .tp-now h3 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.tp .tp-now ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tp .tp-now li { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.tp .tp-now strong { display: block; color: var(--hp-yellow); font-family: var(--hp-head); font-size: 16px; }
.tp .tp-now span { font-size: 15px; }

/* Explained: the 8 wastes and sectors */
.tp .tp-wastes { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tp .tp-wastes li { position: relative; padding: 14px 14px 14px 56px; border-radius: 14px; background: #fff; border: 1px solid var(--hp-line); min-height: 76px; transition: border-color .2s, transform .25s var(--ease-out); }
.tp .tp-wastes li:hover { border-color: var(--hp-green); transform: translateY(-2px); }
.tp .tp-wastes b { position: absolute; left: 12px; top: 14px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--hp-yellow); color: var(--hp-ink); font-family: var(--hp-head); }
.tp .tp-wastes strong { display: block; font-family: var(--hp-head); font-size: 15px; color: var(--hp-ink); }
.tp .tp-wastes span { font-size: 14px; color: var(--hp-muted); line-height: 1.35; display: block; }
.tp .tp-sectors { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tp .tp-sectors li { display: flex; gap: 12px; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--hp-line); }
.tp .tp-sectors li > span { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--hp-blue-50); color: var(--hp-blue); }
.tp .tp-sectors h3 { font-size: 16px; margin: 0 0 2px; }
.tp .tp-sectors p { font-size: 14.5px; margin: 0; }

/* FAQ groups */
.tp .tp-faq__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 22px; }
.tp .tp-faq__tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--hp-line); background: #fff; color: var(--hp-ink); font-family: var(--hp-head); font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.tp .tp-faq__tabs button span { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--hp-green-50); color: var(--hp-green-700); font-size: 12.5px; }
.tp .tp-faq__tabs button[aria-selected="true"] { background: var(--hp-green); border-color: var(--hp-green); color: #fff; }
.tp .tp-faq__tabs button[aria-selected="true"] span { background: rgba(255, 255, 255, .2); color: #fff; }
.tp .tp-faq__tabs button:focus-visible { outline: 3px solid var(--hp-yellow); outline-offset: 2px; }
.tp .tp-faq .hp-faq[hidden] { display: none; }

/* Date filters */
.tp .tp-finder { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (prefers-reduced-motion: no-preference) {
  .hp-js.tp .tp-rung { opacity: 0; transform: translateX(-12px); animation: tp-rung .6s var(--ease-out) forwards; animation-delay: calc(var(--i) * 90ms + 450ms); }
}
@keyframes tp-rung { to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .tp .tp-ladder { margin: 0 auto; }
  .tp .tp-teams, .tp .tp-chooser, .tp .tp-now { grid-template-columns: minmax(0, 1fr); }
  .tp .tp-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp .tp-wastes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp .tp-sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tp .tp-rung { margin-left: 0; }
  .tp .tp-ladder { padding: 16px; }
  .tp .tp-teams__grid, .tp .tp-skills, .tp .tp-story__steps, .tp .tp-now ul, .tp .tp-sectors, .tp .tp-finder { grid-template-columns: minmax(0, 1fr); }
  .tp .tp-story { padding: 22px; }
  .tp .tp-story__steps li:not(:last-child)::after { display: none; }
  .tp .tp-wastes { grid-template-columns: minmax(0, 1fr); }
  .tp .tp-faq__tabs { justify-content: flex-start; }
}

/* Hero quote card (team form or next dates) */
.tp .tp-hero__proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 14px; color: var(--hp-muted); }
.tp .tp-hero__proof strong { color: var(--hp-ink); font-family: var(--hp-head); margin-right: 4px; }
.tp .tp-qcard { padding: 0; overflow: hidden; }
.tp .tp-qcard__tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--hp-soft); border-bottom: 1px solid var(--hp-line); }
.tp .tp-qcard__tabs button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 52px; border: 0; background: transparent; font-family: var(--hp-head); font-weight: 600; font-size: 15px; color: var(--hp-muted); cursor: pointer; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s, background-color .2s; }
.tp .tp-qcard__tabs button[aria-selected="true"] { color: var(--hp-green-700); border-bottom-color: var(--hp-green); background: #fff; }
.tp .tp-qcard__tabs button:focus-visible { outline: 3px solid var(--hp-yellow); outline-offset: -3px; }
.tp .tp-qcard [role="tabpanel"] { padding: 20px 22px 22px; }
.tp .tp-qcard [role="tabpanel"][hidden] { display: none; }
.tp .tp-qform { padding: 0; box-shadow: none; border: 0; background: transparent; }
.tp .tp-qform__title { font-family: var(--hp-head); font-weight: 700; font-size: 20px; color: var(--hp-ink); margin: 0 0 14px; }
.tp .tp-qform__title span { font-family: var(--hp-body); font-weight: 600; font-size: 13px; color: var(--hp-green-700); background: var(--hp-green-50); padding: 3px 9px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.tp .tp-qform .hp-form__grid { gap: 10px 12px; }
.tp .tp-qform .hp-btn { width: 100%; justify-content: center; margin-top: 12px; }
.tp .tp-qform__note { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; font-size: 13px; color: var(--hp-muted); }
.tp .tp-qform__note .hp-i { flex: none; width: 16px; height: 16px; color: var(--hp-green); margin-top: 2px; }
.tp .tp-qcard__me-ctas { display: flex; gap: 8px; margin-top: 14px; }

/* Course cards: "best for" line */
.tp .tp-course__for { font-size: 15px; padding: 10px 12px; border-radius: 12px; background: var(--belt-soft); }

/* Team planner */
.tp .tp-plan-sec { background: linear-gradient(180deg, #fff, var(--hp-soft)); }
.tp .tp-teams { align-items: start; }
.tp .tp-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.tp .tp-points li { display: flex; gap: 14px; align-items: flex-start; }
.tp .tp-points .tp-tile__icon { margin: 0; flex: none; }
.tp .tp-points h3 { font-size: 17px; margin: 0 0 2px; }
.tp .tp-points p { font-size: 15px; margin: 0; }
.tp .tp-call { margin-top: 20px; font-size: 16px; }
.tp .tp-call a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--hp-green-700); text-decoration: none; }
.tp .tp-planner { background: #fff; border: 1px solid var(--hp-line); border-radius: 24px; box-shadow: var(--hp-shadow-lg); padding: 26px; display: grid; gap: 18px; scroll-margin-top: 110px; }
.tp .tp-planner__badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--hp-cream); color: #7a5d00; font-family: var(--hp-head); font-weight: 600; font-size: 13px; }
.tp .tp-planner__head h3 { font-size: 22px; margin: 10px 0 4px; }
.tp .tp-planner__head p { font-size: 15px; margin: 0; }
.tp .tp-planner__q { border: 0; margin: 0; padding: 0; }
.tp .tp-planner__q > label, .tp .tp-planner__q legend { display: flex; justify-content: space-between; align-items: center; width: 100%; font-family: var(--hp-head); font-weight: 600; font-size: 15px; color: var(--hp-ink); margin-bottom: 10px; padding: 0; }
.tp .tp-planner__q output { min-width: 48px; text-align: center; padding: 2px 10px; border-radius: 999px; background: var(--hp-green); color: #fff; }
.tp .tp-planner input[type="range"] { width: 100%; accent-color: var(--hp-green); height: 28px; }
.tp .tp-planner__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--hp-muted); }
.tp .tp-goal { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border: 1px solid var(--hp-line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.tp .tp-goal + .tp-goal { margin-top: 8px; }
.tp .tp-goal input { width: 20px; height: 20px; accent-color: var(--hp-green); margin: 0; flex: none; }
.tp .tp-goal strong { display: block; font-size: 15.5px; color: var(--hp-ink); }
.tp .tp-goal small { font-size: 13px; color: var(--hp-muted); }
.tp .tp-goal:has(input:checked) { border-color: var(--hp-green); background: var(--hp-green-50); }
.tp .tp-planner__result { padding: 16px; border-radius: 16px; background: var(--hp-soft); border: 1px dashed #b9d3c3; }
.tp .tp-planner__label { font-family: var(--hp-head); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--hp-green-700); margin: 0 0 10px; }
.tp .tp-mixbar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 3px; margin-bottom: 12px; }
.tp .tp-mixbar span { background: var(--belt); flex-basis: 0; transition: flex-grow .5s var(--ease-out); }
.tp .tp-mix { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tp .tp-mix li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--hp-line); font-weight: 600; font-size: 15px; color: var(--hp-ink); }
.tp .tp-mix b { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--belt); color: var(--belt-ink); font-family: var(--hp-head); font-size: 13px; padding: 0 6px; }
.tp .tp-planner__format { margin: 12px 0 0; font-size: 14.5px; }
.tp .tp-planner__form { padding: 0; border: 0; box-shadow: none; background: transparent; }
.tp .tp-planner__form .hp-btn { width: 100%; justify-content: center; margin-top: 12px; }

/* Recent bookings (short form) */
.tp .tp-recent { margin-top: 22px; padding: 22px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--hp-line); display: grid; gap: 14px; }
.tp .tp-recent h3 { font-size: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.tp .tp-recent h3 small { font-family: var(--hp-body); font-weight: 400; font-size: 13px; color: var(--hp-muted); }
.tp .tp-recent ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tp .tp-recent li { display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: 14px; background: var(--belt-soft); }
.tp .tp-recent li .hp-chip { justify-self: start; }
.tp .tp-recent li strong { font-family: var(--hp-head); font-size: 15.5px; color: var(--hp-ink); line-height: 1.3; }
.tp .tp-recent li small { font-size: 13.5px; color: var(--hp-muted); }
.tp .tp-recent > .hp-btn { justify-self: start; }

/* Mid-page call to action */
.tp .tp-cta-band { padding: 0 0 8px; background: var(--hp-soft); }
.tp .tp-cta-band__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 32px; border-radius: 24px; background: linear-gradient(120deg, #0b5a33, #007d3d 55%, #1f5e88); color: #d6efe0; }
.tp .tp-cta-band h2 { color: #fff; font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 6px; }
.tp .tp-cta-band p { margin: 0; max-width: 620px; }
.tp .tp-cta-band__ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* Compact DMAIC */
.tp .tp-dmaic { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tp .tp-dmaic li { display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--hp-line); border-top: 4px solid var(--ph); }
.tp .tp-dmaic .hp-c-d { --ph: var(--ph-d); }
.tp .tp-dmaic .hp-c-m { --ph: var(--ph-m); }
.tp .tp-dmaic .hp-c-a { --ph: var(--ph-a); }
.tp .tp-dmaic .hp-c-i { --ph: var(--ph-i); }
.tp .tp-dmaic .hp-c-c { --ph: var(--ph-c); }
.tp .tp-dmaic b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ph); color: #fff; font-family: var(--hp-head); }
.tp .tp-dmaic strong { font-family: var(--hp-head); color: var(--hp-ink); }
.tp .tp-dmaic span { font-size: 14px; line-height: 1.4; }
.tp .tp-dmaic small { font-size: 12.5px; color: var(--hp-muted); line-height: 1.35; }

/* Formats and how it works */
.tp .tp-formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tp .tp-format { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--hp-radius); background: #fff; border: 1px solid var(--hp-line); transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s; }
.tp .tp-format:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow-lg); border-color: var(--c); }
.tp .tp-format__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.tp .tp-format h3 { font-size: 18px; }
.tp .tp-format p { font-size: 15px; margin: 0; }
.tp .tp-format__tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--hp-soft); font-size: 13px; font-weight: 600; color: var(--hp-ink); }
.tp .tp-format .hp-link { margin-top: auto; font-size: 15px; }
.tp .tp-how { margin-top: 22px; padding: 22px 24px; border-radius: 20px; background: var(--hp-sky); display: grid; gap: 14px; scroll-margin-top: 110px; }
.tp .tp-how h3 { font-size: 18px; }
.tp .tp-how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tp .tp-how li { display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: 14px; background: #fff; }
.tp .tp-how li > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--hp-blue); color: #fff; }
.tp .tp-how strong { font-family: var(--hp-head); color: var(--hp-ink); font-size: 15px; }
.tp .tp-how small { font-size: 13.5px; color: var(--hp-muted); line-height: 1.35; }
.tp .tp-how > .hp-link { justify-self: start; }

/* Sticky quote bar (desktop) */
.tp .tp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--hp-line); box-shadow: 0 -8px 30px rgba(13, 35, 24, .12); animation: tp-up .4s var(--ease-out); }
.tp .tp-sticky[hidden] { display: none; }
.tp .tp-sticky__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.tp .tp-sticky p { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.tp .tp-sticky p strong { font-family: var(--hp-head); color: var(--hp-ink); }
.tp .tp-sticky p span { font-size: 15px; color: var(--hp-muted); }
.tp .tp-sticky__inner > div { display: flex; gap: 8px; flex: none; }
@keyframes tp-up { from { transform: translateY(100%); } to { transform: none; } }

@media (max-width: 1080px) {
  .tp .tp-formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp .tp-dmaic, .tp .tp-how ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tp .tp-recent ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .tp .tp-sticky { display: none; }
  .tp .tp-formats, .tp .tp-dmaic, .tp .tp-how ol { grid-template-columns: minmax(0, 1fr); }
  .tp .tp-planner { padding: 18px; }
  .tp .tp-cta-band__inner { padding: 22px; }
  .tp .tp-qcard [role="tabpanel"] { padding: 16px; }
}
.tp .tp-goal > span { flex: 1; display: block; text-align: left; }
.tp .tp-goal strong, .tp .tp-goal small { text-align: left; }

/* Stat labels as headings (kept from the old page) */
.tp .tp-stat__label { font-family: var(--hp-body); font-size: 15px; font-weight: 400; color: var(--hp-muted); margin: 0; line-height: 1.4; }

/* White Belt */
.tp .tp-white { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; padding: 24px; border-radius: 20px; background: var(--hp-cream); border: 1px solid #f1e3a0; }
.tp .tp-white h3 { font-size: 20px; margin-bottom: 8px; }
.tp .tp-white p { font-size: 16px; margin: 0; }
.tp .tp-white__table { background: #fff; border-radius: 14px; overflow: hidden; }
.tp .tp-white__table caption { text-align: left; font-family: var(--hp-head); font-weight: 600; font-size: 14px; padding: 0 0 8px; color: var(--hp-ink); }

/* Formats table */
.tp .tp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Training features */
.tp .tp-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tp .tp-feature { padding: 20px; border-radius: var(--hp-radius); background: var(--hp-soft); border: 1px solid var(--hp-line); }
.tp .tp-feature h3 { font-size: 17px; margin: 0 0 6px; }
.tp .tp-feature p { font-size: 15px; margin: 0; }

/* Overview heading above the explained blocks */
.tp .tp-overview-head { margin-bottom: 28px; }

@media (max-width: 1080px) {
  .tp .tp-white { grid-template-columns: minmax(0, 1fr); }
  .tp .tp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .tp .tp-features { grid-template-columns: minmax(0, 1fr); }
  /* Phones: a compact quote bar sits just above the site's own bottom bar. */
  .tp .tp-sticky { display: block; bottom: var(--tp-bar, 60px); background: transparent; border: 0; box-shadow: none; pointer-events: none; }
  .tp .tp-sticky[hidden] { display: none; }
  .tp .tp-sticky__inner { justify-content: flex-end; padding-top: 0; padding-bottom: 8px; }
  .tp .tp-sticky p, .tp .tp-sticky .hp-btn--outline { display: none; }
  .tp .tp-sticky .hp-btn { pointer-events: auto; box-shadow: var(--hp-shadow-lg); }
}
@media (max-width: 767px) { .tp .tp-sticky__inner { justify-content: center; } }
.tp .hp-more-btn { min-height: 44px; }

/* Preview of saved CMS content that is not live yet */
.tp .tp-preview { position: fixed; top: 0; left: 0; right: 0; z-index: 2147483000; margin: 0; padding: 8px 16px; box-shadow: 0 2px 8px rgba(0,0,0,.12); text-align: center; font-weight: 600; font-size: 15px; background: #fff6d1; color: #5c4500; border-bottom: 1px solid #f1e3a0; }

/* Plain team quote form (topics without the planner) */
.tp .hp-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #b9c7bf; border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: var(--hp-ink); resize: vertical; }
.tp .hp-form textarea:focus { outline: 0; border-color: var(--hp-green); box-shadow: 0 0 0 4px rgba(0, 125, 61, .12); }

/* "From" price on each course */
.tp .tp-course__from { margin: 8px 0 0; font-size: 16px; font-weight: 600; color: var(--hp-muted); }
.tp-course__from strong { font-family: var(--hp-head); font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--hp-ink); }
.tp-rung__from { display: block; font-family: var(--hp-head); font-size: 14px; font-weight: 700; color: var(--hp-ink); white-space: nowrap; }
