/* The content frame (spec 4.4). Colour, type and spacing from the approved mockups learn-lesson-final.html
   and prompt-final.html. Sections the frame has not reached yet are hidden, not removed. */
body.frame-page { margin: 0; background: var(--grey); color: var(--ink); font: 17px/1.55 "Source Sans 3", sans-serif; -webkit-font-smoothing: antialiased; }
.frame-bar { position: sticky; top: 0; z-index: 10; background: var(--grey); padding: 10px 16px 8px; }
.frame-bar-in { max-width: 680px; margin: 0 auto; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.frame-back { color: var(--navy); text-decoration: none; font-size: 15px; } .frame-back:hover { text-decoration: underline; }
.frame-grow { flex: 1; }
.frame-line { max-width: 680px; margin: 8px auto 0; height: 4px; background: #e8eef2; border-radius: 2px; overflow: hidden; }
.frame-line i { display: block; height: 100%; width: 0; background: var(--navy); transition: width .25s; }
.frame-head { max-width: 680px; margin: 0 auto; padding: 14px 16px 0; }
.frame-head .frame-kicker { font-size: 14px; color: var(--muted); }
.frame-head h1 { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 40px; line-height: 1; color: var(--navy); margin: 6px 0 14px; }
.frame-body { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.frame-body [data-frame-hidden] { display: none !important; }
.frame-foot { max-width: 680px; margin: 0 auto; padding: 14px 16px 64px; }
.frame-gate { margin: 0 0 10px; font-size: 15px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .frame-line i { transition: none; } }

/* End screen (4.6) and coach prompt (3.5), from learn-lesson-final.html and prompt-final.html. */
.end { max-width: 680px; margin: 0 auto; padding: 18px 16px 64px; }
.end-done { display: flex; gap: 14px; align-items: center; margin: 16px 0 12px; }
.end-tick { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); flex: 0 0 48px; display: grid; place-items: center; }
.end-tick::after { content: ""; width: 11px; height: 20px; border: solid #fff; border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.end h1 { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 42px; line-height: 1; color: var(--navy); margin: 0; }
.end .card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 12px 0; box-shadow: none; }
.end .card h2 { font: 700 20px/1.3 "Source Sans 3", sans-serif; letter-spacing: 0; text-transform: none; color: var(--navy); margin: 0 0 8px; } .end .card h2 + ul + h2 { margin-top: 14px; }
.end-can { margin: 0; padding-left: 22px; } .end-can li { margin: 4px 0; } .end-can li::marker { color: var(--navy); }
.end-ringrow { display: flex; align-items: center; gap: 14px; }
.end-back { margin-top: 18px; }
.end-rate { margin-top: 18px; font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.end-quiet { margin-top: 18px; font-size: 14px; color: var(--muted); } .end-quiet a { color: var(--navy); }
.muted { color: var(--muted); } .small { font-size: 14px; }
.coach-scene { background: var(--fill); border-left: 4px solid var(--navy); border-radius: 0 var(--r) var(--r) 0; padding: 12px 16px; margin: 0 0 12px; } .coach-scene p { margin: 0 0 8px; } .coach-scene p:last-child { margin: 0; }
.coach textarea.in { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.coach-model { margin-top: 12px; background: var(--fill); border-left: 4px solid var(--navy); border-radius: 0 var(--r) var(--r) 0; padding: 12px 16px; } .coach-model p { margin: 0 0 8px; } .coach-model p:last-child { margin: 0; }
.coach-quote { font-weight: 600; color: var(--navy); }
.frame-plainlink { font-weight: 600; }
/* A pointer to a released lesson; a pointer to one not yet released is a .frame-plainlink ending "(coming)". */
.frame-link { font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
