
/* Program header: approved 2:1 geometry, theme-aware cards and controls. */
.page-head .program-head__path { margin-bottom: 14px; min-width: 0; }
.page-head .program-head__path .path { max-width: none; margin: 0; white-space: normal; overflow-wrap: anywhere; }
.page-head .program-head { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); align-items: stretch; gap: 24px; }
.page-head .program-head__main { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.page-head .program-head__kicker { display: block; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 9px; color: var(--accent); font: 600 12px/1.4 var(--font-mono); }
.page-head .program-head__main .page-title { margin-bottom: 8px; }
.page-head .program-head__byline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 0; }
.page-head .program-head__authors { margin: 0; font-size: 14px; }
.page-head .program-head__details { display: block; width: 100%; margin: 0; border: 0; min-width: 0; }
.page-head .program-head__details > summary { display: inline-flex; width: fit-content; max-width: 100%; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 10px; padding: 0; color: var(--muted); font-size: 14px; font-weight: 400; list-style: none; cursor: pointer; }
.page-head .program-head__details > summary::-webkit-details-marker { display: none; }
.page-head .program-head__more { display: inline-flex; align-items: baseline; flex-shrink: 0; gap: 4px; text-decoration: underline; text-underline-offset: .18em; }
.page-head .program-head__details > summary:hover .program-head__more { color: var(--accent); }
.page-head .program-head__chevron { display: inline-block; font-size: 14px; line-height: 1.1; }
.page-head .program-head__detail-body { width: 100%; max-width: 100%; box-sizing: border-box; }
.page-head .program-head__detail-body { margin-top: 12px; padding: 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--r-btn); text-decoration: none; }
.page-head .program-head__hours { margin: 4px 0 0; padding: 0; }
.page-head .program-head__summary { margin-top: 12px; margin-bottom: 14px; gap: 4px; }
/* 030: spacing around the notify form without changing the button size. */
.page-head .program-head__side--wip .notify { margin-block: 4px; }
.page-head .program-head__stats { margin-top: auto; gap: 10px; }
.page-head .program-head__stat { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 13px 14px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--r-btn); min-width: 0; }
.page-head .program-head__stat svg { flex: 0 0 26px; width: 26px; height: 26px; color: var(--accent); }
.page-head .program-head__stat-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.page-head .program-head__stat-copy strong { font: 800 clamp(20px, 2vw, 26px)/1.1 var(--font-mono); color: var(--text); white-space: nowrap; }
.page-head .program-head__stat-copy span { color: var(--muted); font-size: 13px; }
.page-head .program-head__side { height: auto; display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; min-width: 0; padding: 4px 0 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.page-head .program-head__side-top { min-width: 0; }
.page-head .program-head__side--wip { gap: 0; }
.page-head .program-head__side--wip .buy__note { margin: 0; }
.page-head .program-head__status { display: flex; gap: 8px; align-items: center; margin: 4px 0 8px; color: var(--accent); font-weight: 700; }
.page-head .program-head__status svg { width: 19px; height: 19px; flex: 0 0 19px; }
.page-head .program-head__updated { margin: 0; font: 11px/1.4 var(--font-mono); color: var(--faint); }
.page-head .program-head__side-footer { border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.page-head .program-head__ktp-short { display: none; }
.page-head .program-head__ktp { display: inline-flex; width: fit-content; align-items: center; justify-content: flex-start; gap: 4px; font-size: 14px; font-weight: 600; text-decoration: none; }
.page-head .program-head__ktp:hover { text-decoration: underline; }
@media(max-width:780px) {
 .page-head .program-head { grid-template-columns: minmax(0, 1fr); gap: 18px; }
 .page-head .program-head__side { height: auto; min-height: 0; }
 .page-head .program-head__details { width: 100%; }
 .page-head .program-head__detail-body { width: 100%; max-width: 100%; box-sizing: border-box; }
}
@media(max-width:480px) {
 .page-head .program-head__stats { gap: 6px; }
 .page-head .program-head__stat { padding: 9px 7px; gap: 6px; }
 .page-head .program-head__stat svg { width: 20px; height: 20px; flex-basis: 20px; }
 .page-head .program-head__stat-copy strong { font-size: 17px; }
 .page-head .program-head__stat-copy span { font-size: 11px; }
}

/* 027: compact mobile status + lesson rows, scoped only to ProgramPage. */
@media (max-width: 780px) {
 .page-head .program-head__side--wip { position: relative; display: block; padding: 0; min-height: 0; }
 .page-head .program-head__side--wip .program-head__side-top { display: flex; flex-direction: column; gap: 5px; }
 .page-head .program-head__side--wip .program-head__status { order: 0; margin: 0; padding-right: 138px; min-height: 28px; }
 .page-head .program-head__side--wip .buy__note { order: 1; margin: 0; }
 .page-head .program-head__side--wip .program-head__updated { order: 2; margin: 0; }
 .page-head .program-head__side--wip .program-head__side-top > :not(.program-head__status):not(.buy__note):not(.program-head__updated) { order: 3; }
 .page-head .program-head__side--wip .program-head__side-footer { position: absolute; right: 0; top: 0; border: 0; padding: 0; margin: 0; max-width: 135px; }
 .page-head .program-head__side--wip .program-head__ktp { padding: 3px 0; white-space: nowrap; }
 .page-head .program-head__side--wip .program-head__ktp-long { display: none; }
 .page-head .program-head__side--wip .program-head__ktp-short { display: inline; }
 .program-topics > li > .row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 16px; align-items: start; column-gap: 8px; row-gap: 0; padding: 9px 12px; }
 .program-topics .row__num { width: 22px; grid-column: 1; font-size: 13px; }
 .program-topics .row__main { grid-column: 2; min-width: 0; display: block; font-size: 14px; line-height: 1.45; }
 .program-topics .row__title, .program-topics .row__meta { display: inline; line-height: inherit; }
 .program-topics .row__meta { font-size: 12px; overflow-wrap: anywhere; }
 .program-topics .row__meta::before { content: ' · '; white-space: pre; }
 .program-topics .row > .badge { display: none; }
 .program-topics .row__arrow { grid-column: 3; width: 16px; font-size: 14px; }
}

/* 029: highlight available lessons in program topic rows, in both themes. */
.program-topics .row__available { display: inline-block; padding: 2px 6px; border-radius: 4px; background: var(--accent2-soft); color: var(--accent2); font-weight: 600; white-space: nowrap; }
