/* REQ-WEB-01/03/06, NFR-02: mobile-first public homepage. Existing client content and CMS slots stay intact. */
body[data-page="home"] { font-size: 1rem; line-height: 1.65; --psu-muted: #455165; --bs-secondary-color: var(--psu-muted); }
html[data-bs-theme="dark"] body[data-page="home"] { --psu-muted: #b9c6da; }
body[data-page="home"] .back-to-top { display: none !important; }
body[data-page="home"] :is(a, button):focus-visible { outline: 3px solid #1a3f86; outline-offset: 3px; box-shadow: none; }
body[data-page="home"] :is(.site-footer, .home-cta, .announce-strip) :is(a, button):focus-visible,
html[data-bs-theme="dark"] body[data-page="home"] :is(a, button):focus-visible { outline-color: #f2b01e; }
body[data-page="home"] .visually-hidden-focusable:focus { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 24px; }
body[data-page="home"] main { overflow-wrap: anywhere; }
body[data-page="home"] .btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; box-shadow: none; }
body[data-page="home"] .home-hero { padding-bottom: 24px; }
body[data-page="home"] .home-hero-stage { display: contents; overflow: visible; }
body[data-page="home"] .home-hero-stage::before, body[data-page="home"] .home-hero-wave { display: none; }
body[data-page="home"] .home-hero-content > * { width: auto; }
body[data-page="home"] .home-hero-content { padding-block: 24px 0; }
body[data-page="home"] .home-hero-summary { font-size: 1rem; line-height: 1.6; margin: 0; max-width: 39rem; }
body[data-page="home"] .home-hero-bar { border: 0; background: transparent; padding-block: 24px 16px; }
body[data-page="home"] .home-actions { flex-direction: column; align-items: stretch !important; gap: 12px !important; }
body[data-page="home"] .home-actions .btn { width: 100%; font-size: 1rem; min-height: 56px; }
body[data-page="home"] .home-hero-note { font-size: 1rem; line-height: 1.5; max-width: 38rem; }
body[data-page="home"] .home-hero-note a { display: inline-flex; align-items: center; min-width: 44px; min-height: 48px; }
body[data-page="home"] .home-hero-art { position: static; width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: 24px; }
body[data-page="home"] .home-hero-art picture { display: block; height: auto; }
body[data-page="home"] .home-hero-art .home-hero-img { height: auto; aspect-ratio: 2048 / 768; object-fit: contain; object-position: center; -webkit-mask-image: none; mask-image: none; }
html[data-bs-theme="dark"] body[data-page="home"] .home-hero-art .home-hero-img { filter: none; -webkit-mask-image: none; mask-image: none; }
body[data-page="home"] .home-hero-capabilities { order: 4; padding-top: 24px; }
body[data-page="home"] .section { padding-block: 48px; }
body[data-page="home"] .home-section-head { margin-bottom: 24px; }
body[data-page="home"] .home-section-head h2, body[data-page="home"] .package-title { font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.3; padding: 0; margin-bottom: 0; }
body[data-page="home"] .home-section-head h2::after { display: none; }
body[data-page="home"] .home-hero-features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: 100%; max-width: none; margin: 0; }
body[data-page="home"] .home-hero-features li { align-items: flex-start; text-align: left; font-size: 1rem; line-height: 1.5; color: var(--bs-body-color); }
body[data-page="home"] .home-hero-features [data-hero-text] { background: transparent; padding: 0; }
body[data-page="home"] .promo-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
body[data-page="home"] .promo-link { border-radius: 12px; box-shadow: none; background: var(--psu-tint); }
body[data-page="home"] .promo-link:hover { transform: none; box-shadow: none; }
body[data-page="home"] .promo-link picture { display: block; background: #fff; }
body[data-page="home"] .promo-link .site-img { aspect-ratio: 1672 / 941; object-fit: contain; height: auto; }
body[data-page="home"] .promo-body { padding: 24px; gap: 8px; }
body[data-page="home"] .promo-title { font-size: 1.25rem; line-height: 1.4; }
body[data-page="home"] .promo-sub { font-size: 1rem; line-height: 1.65; }
body[data-page="home"] .promo-cta { font-size: 1rem; margin: 8px 0 0; }
body[data-page="home"] .promo-badge { padding: 0; margin: 0; background: none; color: var(--bs-secondary-color); font-size: .875rem; line-height: 1.5; border-radius: 0; text-align: left; }
body[data-page="home"] .promo-badge-live { color: var(--bs-link-color); }
body[data-page="home"] .promo-link > .promo-badge { padding: 12px 24px; font-size: 1rem; }
body[data-page="home"] .home-secondary { min-height: 48px; padding-block: 12px; font-size: 1rem; }
body[data-page="home"] .promo-grid + .home-secondary { margin-top: 16px; }
body[data-page="home"] .home-why::before { display: none; }
body[data-page="home"] .home-study-art { margin: 0 0 24px; }
body[data-page="home"] .home-study-art picture { display: block; }
body[data-page="home"] .home-study-art .site-img { aspect-ratio: 1774 / 887; height: auto; object-fit: contain; }
body[data-page="home"] .home-study-art figcaption { margin-top: 12px; font-size: 1rem; line-height: 1.65; color: var(--bs-secondary-color); }
body[data-page="home"] .home-points { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
body[data-page="home"] .home-points li { padding: 24px; font-size: 1rem; line-height: 1.65; border-radius: 12px; }
body[data-page="home"] .subject-groups, body[data-page="home"] .package-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
body[data-page="home"] .subject-group { padding: 0; min-width: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body[data-page="home"] .subject-group h3 { font-size: 1.25rem; line-height: 1.4; margin-bottom: 16px; }
body[data-page="home"] .subject-group li, body[data-page="home"] .package-list li { font-size: 1rem; line-height: 1.65; margin-bottom: 12px; }
body[data-page="home"] .package-text { width: 100%; max-width: 52rem; }
body[data-page="home"] .home-cta { padding-block: 48px; text-align: left; }
body[data-page="home"] .home-cta h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.3; }
body[data-page="home"] .home-cta p { max-width: 48rem; margin-inline: 0; font-size: 1rem; line-height: 1.65; }
body[data-page="home"] .home-cta .home-actions { align-items: flex-start !important; }
body[data-page="home"] .home-cta .home-secondary { text-decoration: underline; text-underline-offset: 4px; }
body[data-page="home"] .home-cta p a { display: inline-flex; align-items: center; min-height: 48px; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    body[data-page="home"] a.promo-link:hover { transform: translateY(-2px); box-shadow: none; }
}
@media (min-width: 768px) {
    body[data-page="home"] .home-hero-content { padding-top: 48px; }
    body[data-page="home"] .home-hero-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body[data-page="home"] .home-actions { align-items: flex-start !important; }
    body[data-page="home"] .home-actions .btn { width: auto; }
    body[data-page="home"] .section { padding-block: 64px; }
    body[data-page="home"] .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1240px) {
    body[data-page="home"] .home-hero-content { padding-block: 64px; }
    body[data-page="home"] .home-hero-bar { padding-block: 24px 32px; }
}

/* D65 homepage refinement (supersedes the D64 layer; client brief 2026-11-13: composition over effects).
   Hero: solid navy text column; the client banner <img> (still the owner-swappable LCP image) is an artwork layer on
   the right behind one plain scrim on desktop, and a clean books-and-desk band on phones; no text sits on the
   banner's own lettering. No glass, glows or radial light. Chapter: neutral ground, artwork shown whole, a real
   ordered sequence, one gold CTA. Subjects: two plain bordered cards. */
body[data-page="home"] .home-hero { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 32px;
    background: #0b1f3a; --hero-navy: #ffffff; --hero-gold: #f2c14e; }
body[data-page="home"] .home-hero-content { padding-block: 40px 0; }
body[data-page="home"] .home-hero-title { color: #fff; font-weight: 600; font-size: clamp(1.25rem, 6.9vw, 3.25rem); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 16px; }
body[data-page="home"] .home-hero-line1 { color: #fff; }
body[data-page="home"] .home-hero-line2 { color: #f2c14e; }
body[data-page="home"] .home-hero-summary { color: #d6deea; font-size: 1.0625rem; line-height: 1.65; max-width: 34rem; }
body[data-page="home"] .home-hero-bar { padding-block: 24px 0; }
body[data-page="home"] .home-hero-note { color: #c3cedf; max-width: 36rem; }
body[data-page="home"] .home-hero-note a, body[data-page="home"] .home-hero .home-secondary { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 4px; }
body[data-page="home"] .home-hero :is(a, button):focus-visible { outline-color: #f2c14e; }
/* Phone and tablet: the banner is a band of its photograph (books, desk), shown after the call to action. */
body[data-page="home"] .home-hero-art { position: relative; z-index: 0; width: 100%; max-width: 76rem; margin: 24px auto 0; padding-inline: 24px; }
body[data-page="home"] .home-hero-art picture { display: block; }   /* square corners: no pixel of the banner is clipped */
/* D71: the client banner is shown whole at its own 2048:768 shape, never cropped, masked or dimmed. */
body[data-page="home"] .home-hero-art .home-hero-img,
body[data-page="home"] .home-hero-art .home-hero-img[data-cms-image] { width: 100%; height: auto; aspect-ratio: 2048 / 768; object-fit: contain; object-position: center; filter: none; -webkit-mask-image: none; mask-image: none; }
body[data-page="home"] .home-hero-capabilities { padding-top: 24px; }
body[data-page="home"] .home-hero-features { gap: 8px; }
body[data-page="home"] .home-hero-features li { flex-direction: row; align-items: flex-start; gap: 10px; color: #e6edf7; font-size: 1rem; line-height: 1.5; }
body[data-page="home"] .home-hero-features li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .55em; border-radius: 50%; background: #8fa3c0; }

body[data-page="home"] .home-why { background: var(--psu-tint); }
body[data-page="home"] .home-study-art { margin: 0 0 32px; }
body[data-page="home"] .home-study-art picture { border-radius: 12px; overflow: hidden; background: #fff; }
body[data-page="home"] .home-study-art figcaption { font-size: .9375rem; margin-top: 12px; }
body[data-page="home"] .home-points { gap: 16px; }
body[data-page="home"] .home-points li { display: flex; gap: 14px; align-items: flex-start; padding: 24px; color: var(--psu-navy); font-weight: 600; font-size: 1.0625rem;
    background: var(--bs-body-bg); border-radius: 12px; }
body[data-page="home"] .home-why-cta { margin-top: 28px; }
html[data-bs-theme="dark"] body[data-page="home"] .home-why { background: var(--psu-tint); }
html[data-bs-theme="dark"] body[data-page="home"] .home-points li { background: #16233a; color: #eaf0f9; }

body[data-page="home"] .subject-group { padding: 28px; background: var(--psu-tint); border-radius: 12px; }
html[data-bs-theme="dark"] body[data-page="home"] .subject-group { background: #16233a; }

/* Four Tools: badge, picture, title, text, link in one column; the link sits at the foot so links align across a row. */
body[data-page="home"] .promo-link { display: flex; flex-direction: column; height: 100%; }
body[data-page="home"] .promo-body { flex: 1; display: flex; flex-direction: column; }
body[data-page="home"] .promo-cta { margin-top: auto; padding-top: 8px; }

@media (min-width: 768px) {
    body[data-page="home"] .home-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body[data-page="home"] .home-points li { flex-direction: column; }
}

/* D71 (owner request 2026-11-20): the approved two hero lines stay two lines at every width; one gold hero action
   plus a "Browse Courses" text link; flat tints in place of outlines; the package checklist sits beside the client's artwork. */
body[data-page="home"] .home-hero-line1, body[data-page="home"] .home-hero-line2 { white-space: nowrap; }
body[data-page="home"] .package-title { text-wrap: balance; }
@media (max-width: 575.98px) { body[data-page="home"] .package-title { font-size: 1.3125rem; } }
@media (min-width: 768px) {
    body[data-page="home"] .home-actions { flex-direction: row; flex-wrap: wrap; align-items: center !important; }
}
@media (min-width: 992px) {
    body[data-page="home"] .package-row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
    body[data-page="home"] .package-row .home-study-art { margin: 0; }
}
@media (min-width: 1024px) {
    body[data-page="home"] .home-hero-title { font-size: min(3.5vw, 3.25rem); }
    body[data-page="home"] .home-hero-content > .home-hero-title { max-width: none; }
    body[data-page="home"] .home-hero-bar > .container > .home-actions { max-width: 46rem; flex-wrap: nowrap; }
}

/* D71 distill (owner, 2026-11-21): Model Question Sets is the one feature, its card beside a look at the website reader
   holding the published topics; the three upcoming modules fold into a compact "Coming next" row with their artwork
   whole at a smaller size. The four owner-editable cards (D48) keep their markup. */
body[data-page="home"] .promo-grid.home-feature { grid-template-columns: minmax(0, 1fr); }
body[data-page="home"] .home-feature > .promo-card { display: grid; gap: 24px; }
body[data-page="home"] .home-feature .promo-link { max-width: 46rem; }
body[data-page="home"] .home-feature .promo-title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); line-height: 1.25; text-wrap: balance; }
body[data-page="home"] .promo-count { font-weight: 600; color: var(--bs-body-color); }
body[data-page="home"] .home-feature .promo-cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
    margin-top: 16px; padding: 12px 24px; border-radius: .5rem; background: var(--psu-gold); color: var(--psu-navy); font-weight: 600; }
body[data-page="home"] .home-feature a.promo-link:hover .promo-cta { background: var(--psu-gold-hover); text-decoration: none; }
html[data-bs-theme="dark"] body[data-page="home"] .home-feature .promo-cta { color: #0b1f3a; }
body[data-page="home"] .home-next-heading { margin: 56px 0 16px; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); }
body[data-page="home"] .promo-grid.home-next { gap: 16px; }
body[data-page="home"] .home-next .promo-link > .promo-badge { padding: 12px 16px 0; }
body[data-page="home"] .home-next .promo-body { padding: 12px 16px 16px; }
body[data-page="home"] .home-next .promo-title { font-size: 1.125rem; }
@media (max-width: 767.98px) {
    body[data-page="home"] .home-next .promo-link { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
        grid-template-areas: "pic badge" "pic body"; grid-template-rows: auto 1fr; }
    body[data-page="home"] .home-next .promo-link > picture { grid-area: pic; align-self: center; margin: 12px 0 12px 12px; }
    body[data-page="home"] .home-next .promo-link > .promo-badge { grid-area: badge; }
    body[data-page="home"] .home-next .promo-body { grid-area: body; padding-top: 4px; }
}
@media (min-width: 768px) { body[data-page="home"] .promo-grid.home-next { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* D71 adapt (owner, 2026-11-21): a shorter phone page. Subjects split into Available now and Planned as short wrapping
   lists (the per-subject caveats live on /courses/#coverage); the three steps carry their order as numerals. */
body[data-page="home"] .subject-split .subject-group { padding: 24px; }
body[data-page="home"] .subject-group h3 { margin-bottom: 4px; }
body[data-page="home"] .subject-lead { margin: 0 0 12px; color: var(--bs-secondary-color); }
body[data-page="home"] .subject-list { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; columns: auto; }
body[data-page="home"] .subject-list li { position: relative; margin: 0; padding: 0 0 0 16px; }
body[data-page="home"] .subject-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--psu-gold); }
body[data-page="home"] .subject-group-planned .subject-list li::before { background: none; box-shadow: inset 0 0 0 1.5px var(--bs-secondary-color); }
body[data-page="home"] .home-points { counter-reset: step; }
body[data-page="home"] .home-points li { counter-increment: step; padding: 20px; }
body[data-page="home"] .home-points li::before { content: counter(step); flex: 0 0 auto; min-width: 1.25em; font-family: var(--psu-display); font-size: 1.75rem;
    line-height: 1; font-weight: 700; color: var(--psu-gold-ink); }
html[data-bs-theme="dark"] body[data-page="home"] .home-points li::before { color: var(--psu-gold); }

/* D72 (owner, 2026-11-23): one unified hero. The client banner keeps its whole 2048:768 shape at every width.
   Until the words fit inside the banner's own height: the navy words sit flush on top of the full-bleed banner (no gap,
   no card edge). Wide screens: the banner is the hero's own picture, in flow (so the hero is never shorter than it and
   nothing is cropped), under one left-to-right navy scrim that covers the banner's lettering and leaves its books and
   desk clear. */
body[data-page="home"] .home-hero { padding-bottom: 0; }
body[data-page="home"] .home-hero-capabilities { order: 3; padding-block: 24px 40px; }
body[data-page="home"] .home-hero-art { order: 4; max-width: none; margin: 0; padding: 0; }
body[data-page="home"] .home-hero-features { max-width: 46rem; }
@media (min-width: 1240px) {
    body[data-page="home"] .home-hero { display: grid; padding: 0; align-items: start;
        grid-template-columns: minmax(24px, 1fr) minmax(0, 38rem) minmax(0, 38rem) minmax(24px, 1fr);
        grid-template-rows: minmax(32px, 1fr) auto auto auto minmax(32px, 1fr); }
    body[data-page="home"] .home-hero::after { content: ""; grid-area: 1 / 1 / -1 / -1; align-self: stretch; z-index: 1; pointer-events: none;
        background: linear-gradient(90deg, #0b1f3a 0%, #0b1f3a 52%, rgba(11, 31, 58, .55) 58%, rgba(11, 31, 58, 0) 68%); }
    body[data-page="home"] .home-hero-art { grid-area: 1 / 1 / -1 / -1; z-index: 0; align-self: center; width: 100%; }
    body[data-page="home"] .home-hero-content, body[data-page="home"] .home-hero-bar, body[data-page="home"] .home-hero-capabilities {
        grid-column: 2; z-index: 2; position: relative; width: auto; max-width: none; margin: 0; padding-inline: 0 32px; }
    body[data-page="home"] .home-hero-bar > .container { max-width: none; padding: 0; }
    body[data-page="home"] .home-hero-content { grid-row: 2; padding: 0; }
    body[data-page="home"] .home-hero-bar { grid-row: 3; padding-block: 24px 0; }
    body[data-page="home"] .home-hero-capabilities { grid-row: 4; padding-block: 24px 0; }
    body[data-page="home"] .home-hero-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; width: auto; }
    body[data-page="home"] .home-hero-title { font-size: min(3.2vw, 3rem); }
}

/* D73 (owner, 2026-11-23): the reader look beside Model Question Sets is removed, so on wide screens the one feature card
   takes the full measure: the client's artwork whole on the left, its text centred on the right. No empty column. */
@media (min-width: 992px) {
    body[data-page="home"] .home-feature .promo-link { max-width: none; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        grid-template-rows: 1fr auto auto 1fr; grid-template-areas: "pic ." "pic badge" "pic body" "pic ."; }
    body[data-page="home"] .home-feature .promo-link > picture { grid-area: pic; align-self: center; }
    body[data-page="home"] .home-feature .promo-link > .promo-badge { grid-area: badge; padding: 0 32px 8px; }
    body[data-page="home"] .home-feature .promo-body { grid-area: body; flex: none; padding: 0 32px; }
    body[data-page="home"] .home-feature .promo-sub { text-wrap: wrap; }   /* balance split "question-set" across lines */
}
