/* Course offer pages: the same palette, grid, type and button system as the home. */
.offer-hero .hero__text { align-self: start; }
.offer-summary { margin-top: var(--s-5); max-width: 45ch; color: var(--ink); font-size: 16px; line-height: 1.6; }
.offer-photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-lg); height: min(580px, var(--ly-fit)); background: var(--surface); }
.offer-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.offer-rows > li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
.offer-rows .rows__name, .offer-rows .rows__value { min-width: 0; max-width: none; }
.offer-rows .rows__value { width: 100%; text-align: right; white-space: normal; text-wrap: pretty; overflow-wrap: break-word; }
@media (max-width: 479px) {
  .offer-rows > li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .offer-rows .rows__value { grid-column: 1; grid-row: auto; text-align: left; }
}
.offer-audience, .offer-payment-note { margin-top: var(--s-5); font-size: 16px; max-width: 52ch; line-height: 1.6; }
.payment-shell { display: grid; gap: var(--s-6); }
.payment-fallback { padding: var(--s-7); background: var(--p-inv-bg); color: var(--p-inv-ink); border-radius: var(--r-lg); display: grid; gap: var(--s-5); align-content: start; max-width: none; --bg: var(--p-inv-bg); --surface: var(--p-inv-surface); --ink: var(--p-inv-ink); --muted: var(--p-inv-muted); --action: var(--p-inv-action); --action-ink: var(--p-inv-action-ink); --line: color-mix(in oklab, var(--p-inv-ink) 14%, transparent); --line-strong: color-mix(in oklab, var(--p-inv-ink) 30%, transparent); }
.payment-fallback > p { max-width: 58ch; }
.payment-fallback .btn-row { margin-top: var(--s-3); }
.payment-frame[hidden] { display: none; }
.greenn-frame { display: block; width: 100%; min-height: 1200px; border: 0; background: #fff; border-radius: var(--r-md); }
.offer-payment:has(.payment-frame:not([hidden])) { height: auto; min-height: 100svh; }
.offer-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.offer-footer > .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-5); padding-block: var(--s-6); }
.offer-footer .tech-brand { display: inline-flex; align-items: center; }
@media (max-width: 1023px) { .offer-photo { height: auto; aspect-ratio: 4 / 3; } }
@media (max-width: 639px) { .payment-fallback { padding: var(--s-5); } .greenn-frame { min-height: 1500px; } }
@media (max-width: 359px) { .offer-hero { --ly-h1: 36px; } }

/* Course context and direct paths to the other offers. */
.course-breadcrumb { display: flex; gap: 12px; align-items: center; margin-bottom: var(--s-4); color: var(--muted); font-size: 14px; }
.course-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.related-courses h2 { font-family: var(--font-text); font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.related-courses ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related-courses a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 639px) { .offer-footer > .wrap { align-items: flex-start; flex-direction: column; } }

.payment-shell, .payment-fallback { min-width: 0; }
.payment-fallback .btn { white-space: normal; text-align: center; min-width: 0; height: auto; min-height: 48px; padding: 12px 16px; line-height: 1.4; }

/* Payment conditions stand on their own, without a decorative surgical photo. */
main > .offer-investment { height: auto; min-height: 0; }
.offer-investment > .wrap { max-width: 960px; }
.offer-investment .offer-rows { width: 100%; }
