/* Visuals for five content pages (7 Nov 2026): formats, levels, 50 minutes, conversation, grammar.
 * Icons, small examples in Spanish, a short quiz and a photo, in the style of the lessons and reasons pages. */
.px-ico { display: inline-grid; place-items: center; width: 42px; height: 42px; margin: 0 0 12px; border-radius: 50%; background: #fff1e9; color: #c44711; }
.px-ico svg { width: 22px; height: 22px; }
html[data-theme="dark"] .px-ico { background: #3a2518; color: #ff9a6a; }

.px-box { margin-top: 26px; padding: 22px 24px; background: #fff; border: 1px solid #d8dce2; border-left: 4px solid #f05a18; }
.px-box h2 { margin: 0 0 6px; color: #203758; font-size: 22px; line-height: 1.3; }
.px-box > p { margin: 0 0 14px; color: #555a62; font-size: 15px; line-height: 1.6; }
.px-kicker { margin: 0 0 6px !important; font-size: 11px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5878b5 !important; }
html[data-theme="dark"] .px-box { background: #1b2029; border-color: #394457; border-left-color: #f05a18; }
html[data-theme="dark"] .px-box h2 { color: #edf2f8; }
html[data-theme="dark"] .px-box > p { color: #bec7d5; }
html[data-theme="dark"] .px-kicker { color: #9fb4d8 !important; }

/* Formats: two-question quiz */
.px-quiz-q { margin: 14px 0 8px; font-weight: 650; color: #203758; font-size: 15px; }
.px-quiz-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.px-quiz-opts button, .px-try-opts button { padding: 9px 14px; border: 1px solid #c9d1dc; border-radius: 999px; background: #fff; color: #30343a; font: inherit; font-size: 14px; cursor: pointer; }
.px-quiz-opts button:hover, .px-try-opts button:hover { border-color: #f05a18; }
.px-quiz-opts button[aria-pressed="true"] { background: #203758; border-color: #203758; color: #fff; }
.px-quiz-opts button:focus-visible, .px-try-opts button:focus-visible, .px-quiz-result a:focus-visible { outline: 3px solid #f05a18; outline-offset: 2px; }
.px-quiz-result { min-height: 1.6em; margin: 16px 0 0; font-weight: 650; color: #c44711; }
.px-quiz-result a { margin-left: 8px; color: #203758; font-weight: 650; }
html[data-theme="dark"] .px-quiz-q { color: #edf2f8; }
html[data-theme="dark"] .px-quiz-opts button, html[data-theme="dark"] .px-try-opts button { background: #1b2029; border-color: #4b566a; color: #e3e8ef; }
html[data-theme="dark"] .px-quiz-opts button[aria-pressed="true"] { background: #f05a18; border-color: #f05a18; }
html[data-theme="dark"] .px-quiz-result { color: #ff9860; }
html[data-theme="dark"] .px-quiz-result a { color: #c6d9f7; }

/* Levels: a real sentence for each level, and the level jump links as a staircase */
.px-phrase { margin: 10px 0 0 !important; padding: 10px 12px; border-radius: 4px; background: #fff7f1; color: #8a330b !important; font-style: italic; font-size: 14.5px !important; line-height: 1.5; }
.px-phrase span { display: block; margin-bottom: 3px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #c44711; }
html[data-theme="dark"] .px-phrase { background: #2a2019; color: #ffd2b8 !important; }
html[data-theme="dark"] .px-phrase span { color: #ff9860; }
.px-alt { display: inline-block; margin: 18px 0 0 14px; color: #c44711; font-weight: 700; font-size: 14px; }
html[data-theme="dark"] .px-alt { color: #ff9a6a; }

/* 50 minutes: example lesson, minute by minute */
.px-timeline { margin: 6px 0 0; padding: 0; list-style: none; }
.px-timeline li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid #e4e8ee; font-size: 15px; line-height: 1.55; color: #30343a; }
.px-timeline li:first-child { border-top: 0; }
.px-timeline b { display: inline-block; padding: 3px 8px; border-radius: 3px; color: #fff; font-size: 12.5px; text-align: center; height: fit-content; }
.px-timeline li:nth-child(1) b { background: #7898ce; } .px-timeline li:nth-child(2) b { background: #3f7fd9; }
.px-timeline li:nth-child(3) b { background: #f05a18; } .px-timeline li:nth-child(4) b { background: #1f9a87; }
.px-timeline [lang] { font-style: italic; color: #8a330b; }
html[data-theme="dark"] .px-timeline li { color: #d5dbe4; border-color: #394457; }
html[data-theme="dark"] .px-timeline [lang] { color: #ffb38f; }

/* Conversation: photo band and a correction example */
.px-photo { margin: 6px 0 30px; }
.px-photo img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 45%; border-radius: 3px; }
.px-photo figcaption { margin-top: 8px; font-size: 13px; color: #66707d; }
html[data-theme="dark"] .px-photo figcaption { color: #9aa6b6; }
.px-fix { margin-top: 14px; padding: 12px 14px; border-radius: 4px; background: #f4f6f9; font-size: 14.5px; line-height: 1.5; }
.px-fix-label { margin: 0 0 6px !important; font-size: 11px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5878b5 !important; }
.px-fix s { color: #c0392b; text-decoration-thickness: 2px; }
.px-fix ins { margin-left: 10px; color: #157a6b; font-weight: 700; text-decoration: none; }
.px-fix small { display: block; margin-top: 4px; color: #555a62; font-size: 13px; }
html[data-theme="dark"] .px-fix { background: #232a36; }
html[data-theme="dark"] .px-fix-label { color: #9fb4d8 !important; }
html[data-theme="dark"] .px-fix s { color: #ff8a80; }
html[data-theme="dark"] .px-fix ins { color: #5fd3bf; }
html[data-theme="dark"] .px-fix small { color: #bec7d5; }

/* Grammar: ser / estar scheme and a one-question exercise */
.px-serestar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.px-verb { padding: 16px; border-radius: 6px; }
.px-verb.is-ser { background: #eef3fb; border-top: 4px solid #3f7fd9; }
.px-verb.is-estar { background: #fff3ec; border-top: 4px solid #f05a18; }
.px-verb strong { display: block; font-size: 24px; letter-spacing: -.02em; color: #203758; }
.px-verb p { margin: 4px 0 10px; font-size: 14px; color: #555a62; }
.px-verb ul { margin: 0; padding: 0; list-style: none; font-style: italic; font-size: 15px; line-height: 1.7; color: #30343a; }
html[data-theme="dark"] .px-verb.is-ser { background: #1d2738; }
html[data-theme="dark"] .px-verb.is-estar { background: #2a2019; }
html[data-theme="dark"] .px-verb strong { color: #edf2f8; }
html[data-theme="dark"] .px-verb p, html[data-theme="dark"] .px-verb ul { color: #d5dbe4; }
.px-try { margin-top: 16px; }
.px-try-q { margin: 0 0 10px !important; font-weight: 650; font-size: 17px; color: #203758; }
.px-try-opts { display: flex; gap: 8px; }
.px-try-opts button.is-right { border-color: #1f9a87; background: #e6f6f3; color: #0f5e52; }
.px-try-opts button.is-wrong { border-color: #d9534f; background: #fdecec; color: #8a1f1b; }
.px-try-feedback { min-height: 1.5em; margin: 10px 0 0 !important; font-size: 14px !important; }
html[data-theme="dark"] .px-try-q { color: #edf2f8; }
html[data-theme="dark"] .px-try-opts button.is-right { background: #143a35; border-color: #2fbfa8; color: #bff0e6; }
html[data-theme="dark"] .px-try-opts button.is-wrong { background: #3f1d1d; border-color: #e07572; color: #ffd0ce; }

@media (max-width: 650px) {
  .px-box { padding: 18px; }
  .px-serestar { grid-template-columns: 1fr; }
  .px-photo img { aspect-ratio: 16 / 9; }
  .px-timeline li { grid-template-columns: 1fr; gap: 6px; }
  .px-alt { margin-left: 0; display: block; }
}
.px-quiz { margin-bottom: 26px; }
.px-quiz-opts + .px-quiz-q { margin-top: 18px; }
