/* The lesson page (one template for all 367 Talk Chineasy lessons). Every rule starts with .ls, so nothing here touches another page. */
.ls { --ls-w: 1240px; }
.ls-in { box-sizing: border-box; max-width: var(--ls-w); margin: 0 auto; padding: 0 40px; }
.ls h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 700; -webkit-text-stroke: 0; letter-spacing: -0.01em; line-height: 1.12; }
.ls-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin-bottom: clamp(28px, 3.4vw, 44px); }
.ls p { max-width: none; }
.ls-notes p, .ls-read-copy > p { max-width: 34em; }
.ls-head p { margin: 0; font-size: 1.1rem; color: var(--soft); }

/* --- the answer, first --- */
.ls-top { background: linear-gradient(180deg, var(--mist) 0%, #F3FAFF 100%); padding: clamp(26px, 3vw, 40px) 0 clamp(44px, 5vw, 72px); }
.ls-crumbs { display: flex; align-items: center; gap: 10px; margin: 0 0 clamp(22px, 3vw, 40px); font-size: 0.95rem; }
.ls-crumbs a { font-weight: 700; color: var(--blue); text-decoration: none; }
.ls-crumbs a:hover { text-decoration: underline; }
.ls-crumbs > span[aria-hidden] { color: var(--soft); }
.ls-crumbs .t { margin-left: 8px; padding: 4px 12px; border-radius: 999px; background: #fff; font-size: 0.85rem; color: var(--soft); }
.ls-step { margin-left: auto; display: flex; gap: 8px; }
.ls-step a { padding: 6px 14px; border-radius: 999px; background: #fff; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1.5px var(--line); transition: transform 0.2s var(--land); }
.ls-step a:hover { text-decoration: none; transform: translateY(-2px); }
.ls-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 76px); align-items: center; }
.ls-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.ls h1 { font-size: clamp(2rem, 3.3vw, 3.1rem); font-weight: 400; line-height: 1.12; letter-spacing: -0.012em; -webkit-text-stroke: 0; }
.ls h1 em { font-style: normal; font-weight: 700; }
.ls-answer { position: relative; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: clamp(18px, 2.2vw, 30px); padding: clamp(22px, 2.4vw, 32px) clamp(22px, 2.6vw, 36px); border-radius: 32px; background: #fff; box-shadow: 0 14px 40px rgba(20, 70, 110, 0.1); }
.ls-a { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ls-zh { font-size: clamp(3.4rem, 6.2vw, 5.6rem); font-weight: 700; line-height: 1.08; letter-spacing: 0.02em; }
.ls-py { font-family: "Nunito", var(--font); font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 800; color: var(--blue); }
.ls-en { font-size: 1.1rem; color: var(--soft); }
.ls-script { position: absolute; top: 16px; right: 16px; display: flex; padding: 3px; border-radius: 999px; background: var(--rice); }
.ls-script button { font: inherit; font-size: 0.82rem; font-weight: 700; padding: 6px 12px; border: 0; border-radius: 999px; background: none; color: var(--soft); cursor: pointer; }
.ls-script button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(20, 50, 80, 0.16); }
.ls-by { margin: 0; font-size: 0.98rem; color: var(--soft); }

/* a round button that speaks */
.ls-say { position: relative; flex: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--blue); cursor: pointer; transition: transform 0.2s var(--land), background 0.2s; }
.ls-say:hover { transform: scale(1.08); }
.ls-say:active { transform: scale(0.94); }
.ls-say i { position: absolute; left: 54%; top: 50%; width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; transform: translate(-50%, -50%); }
.ls-say.big { width: clamp(72px, 7vw, 96px); height: clamp(72px, 7vw, 96px); box-shadow: 0 10px 26px rgba(0, 135, 197, 0.32); }
.ls-say.big i { border-width: 15px 0 15px 24px; }
.ls-say.is-on { background: var(--sun); }
.ls-say.is-on i { left: 50%; width: 14px; height: 14px; border: 0; border-radius: 3px; background: #fff; }
.ls-say.big.is-on i { width: 24px; height: 24px; border-radius: 5px; }
.ls-say.is-on::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--sun); opacity: 0; animation: ls-ring 1.1s ease-out infinite; }
@keyframes ls-ring { 0% { transform: scale(0.86); opacity: 0.7; } 100% { transform: scale(1.22); opacity: 0; } }

/* the lesson itself */
.ls-player { box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; border-radius: 999px; background: var(--blue); color: #fff; }
.ls-play { position: relative; flex: none; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: #fff; cursor: pointer; transition: transform 0.2s var(--land); }
.ls-play:hover { transform: scale(1.07); }
.ls-play i { position: absolute; left: 54%; top: 50%; width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--blue); transform: translate(-50%, -50%); }
.ls-player.is-on .ls-play i { left: 50%; width: 16px; height: 18px; border: 0; border-left: 5px solid var(--blue); border-right: 5px solid var(--blue); box-sizing: border-box; }
.ls-pl { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ls-pl p { margin: 0; display: flex; justify-content: space-between; gap: 12px; font-size: 0.98rem; line-height: 1.2; }
.ls-time { font-variant-numeric: tabular-nums; opacity: 0.9; white-space: nowrap; }
.ls-bar { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 0; border-radius: 3px; background: linear-gradient(90deg, #fff var(--at, 0%), rgba(255, 255, 255, 0.34) var(--at, 0%)); cursor: pointer; }
.ls-bar::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 40, 70, 0.4); }
.ls-bar::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }
.ls-speed { flex: none; min-width: 48px; font: inherit; font-size: 0.9rem; font-weight: 700; padding: 7px 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.2); color: #fff; cursor: pointer; }
.ls-speed:hover { background: rgba(255, 255, 255, 0.32); }
.ls-also { margin: -4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 0.95rem; color: var(--soft); }
.ls-also a { font-weight: 700; color: var(--ink); }
.ls-pic { margin: 0; }
.ls-pic img { display: block; width: 100%; height: auto; border-radius: 30px; transform: rotate(2deg); box-shadow: 0 22px 54px rgba(20, 70, 110, 0.18); }

/* --- every word in the lesson --- */
.ls-words { padding: clamp(56px, 6.5vw, 96px) 0; }
.ls-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; counter-reset: w; }
.ls-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "b z" "b e"; align-items: center; column-gap: 18px; row-gap: 2px; padding: 16px 22px 16px 16px; border-radius: 24px; background: var(--rice); transition: background 0.2s; }
.ls-list li:hover, .ls-list li.is-on { background: var(--mist); }
.ls-list .ls-say { grid-area: b; }
.ls-list div { grid-area: z; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; min-width: 0; }
.ls-list .zh { font-size: 1.9rem; font-weight: 700; line-height: 1.2; }
.ls-list .py { font-family: "Nunito", var(--font); font-size: 1.05rem; font-weight: 800; color: var(--blue); }
.ls-list p { grid-area: e; margin: 0; color: var(--soft); font-size: 1rem; line-height: 1.35; }

/* --- from saying to reading --- */
.ls-read { background: var(--cream); padding: clamp(56px, 6.5vw, 96px) 0; }
.ls-read-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ls-read-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.ls-read-copy > p { margin: 0; font-size: 1.15rem; line-height: 1.5; }
.ls-read-copy > p b[lang] { font-size: 1.5em; line-height: 1; margin-right: 4px; }
.ls-eq { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1.4vw, 20px); }
.ls-eq figure { margin: 0; flex: 1 1 0; max-width: 190px; text-align: center; }
.ls-eq figure.is-sum { max-width: 250px; flex-grow: 1.3; }
.ls-eq.one figure.is-sum { max-width: 300px; }
.ls-eq img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 18%; box-shadow: 0 12px 30px rgba(60, 40, 20, 0.12); }
.ls-eq figcaption { margin-top: 12px; font-size: 1rem; color: var(--soft); }
.ls-eq figcaption b { font-size: 1.3em; color: var(--ink); margin-right: 4px; }
.ls-eq .op { flex: none; font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 700; color: var(--soft); padding-bottom: 34px; }

/* --- about the lesson --- */
.ls-about { padding: clamp(56px, 6.5vw, 96px) 0; }
.ls-about-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ls-notes h2 { margin-bottom: 20px; }
.ls-notes p { margin: 0 0 16px; font-size: 1.1rem; line-height: 1.6; }
.ls-guest { padding: 26px 28px; border-radius: 28px; background: var(--rice); }
.ls-guest .k { margin: 0 0 6px; font-size: 0.85rem; font-weight: 700; color: var(--blue); }
.ls-guest h3 { font-size: 1.45rem; font-weight: 700; -webkit-text-stroke: 0; margin-bottom: 10px; }
.ls-guest p { margin: 0 0 12px; font-size: 0.98rem; line-height: 1.55; }
.ls-guest details summary { cursor: pointer; font-size: 0.95rem; font-weight: 700; color: var(--blue); }
.ls-guest details[open] summary { margin-bottom: 12px; }

/* --- keep going --- */
.ls-next { background: var(--mist); padding: clamp(56px, 6.5vw, 96px) 0; }
.ls-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ls-cards a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 14px 20px; border-radius: 28px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 8px 26px rgba(20, 70, 110, 0.08); transition: transform 0.25s var(--land); }
.ls-cards a:hover { transform: translateY(-5px); }
.ls-cards img { display: block; width: 100%; height: auto; border-radius: 18px; margin-bottom: 10px; }
.ls-cards .n { padding: 0 8px; font-size: 0.85rem; font-weight: 700; color: var(--blue); }
.ls-cards b { padding: 0 8px; font-size: 1.25rem; line-height: 1.25; }
.ls-cards .p { padding: 0 8px; color: var(--soft); font-size: 1rem; }
.ls-cards .p .zh { color: var(--ink); font-weight: 700; margin-right: 4px; }
.ls-all { margin: 30px 0 0; text-align: center; }

/* --- a phrase a day --- */
.ls-mail { padding: clamp(48px, 5.5vw, 80px) 0; }
.ls-mail-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.ls-mail h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 8px; }
.ls-mail p { margin: 0; color: var(--soft); }

@media (max-width: 980px) {
  .ls-in { padding: 0 20px; }
  .ls-mail-in { grid-template-columns: minmax(0, 1fr); }
  .ls-hero, .ls-read-in, .ls-about-in { grid-template-columns: minmax(0, 1fr); }
  .ls-pic { order: -1; max-width: 520px; margin: 0 auto; }
  .ls-pic img { transform: none; }
  .ls-list { grid-template-columns: minmax(0, 1fr); }
  .ls-cards { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; }
  .ls-read-copy { align-items: center; text-align: center; }
}
@media (max-width: 560px) {
  .ls-answer { flex-direction: column; align-items: flex-start; padding-top: 56px; }
  .ls-script { left: 16px; right: auto; }
  .ls-crumbs .t { display: none; }
  .ls-speed { display: none; }
  .ls-eq .op { padding-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) { .ls-say.is-on::after { animation: none; } }

/* 24 November 2026: the guest's photograph, round, beside the name */
.ls-who { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.ls-who .k { margin-bottom: 4px; }
.ls-who h3 { margin-bottom: 0; }
.ls-face { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 8px 20px rgba(20, 70, 110, 0.16); }

/* 3 December 2026: all 367 lessons from one design. The pieces that differ from lesson to lesson. */
.ls-face-s { display: block; background: var(--rice) url(../img/guests/all.webp) calc(var(--x, 0) * 12.5%) calc(var(--y, 0) * 12.5%) / 900% 900% no-repeat; }
.ls-face-s.no-pic { display: grid; place-items: center; background: var(--mist); font-style: normal; font-size: 2rem; font-weight: 800; color: var(--blue); }
.ls-read-in.is-plain { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.ls-read-in.is-plain .ls-read-copy { align-items: center; text-align: center; }
.ls-about-in.is-one { grid-template-columns: minmax(0, 1fr); }
.ls-notes a, .ls-guest p a, .ls-guest li a { color: var(--blue); font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }
.ls-notes p, .ls-guest p { overflow-wrap: break-word; }
.ls-notes ul, .ls-guest ul { margin: 0 0 14px; padding-left: 1.2em; font-size: 0.98rem; line-height: 1.55; }
.ls-crumbs .t { white-space: nowrap; }
.ls-step a { white-space: nowrap; }
/* review build only: the lesson's card and the three under Keep going come from the sheets of small cards the Podcast page already holds */
.ls-pic .ls-sprite { display: block; width: 100%; aspect-ratio: 3 / 2; border-radius: 30px; transform: rotate(2deg); box-shadow: 0 22px 54px rgba(20, 70, 110, 0.18); background-color: var(--rice); background-size: 800% 600%; background-repeat: no-repeat; }
.ls-cards .ls-sprite { display: block; width: 100%; aspect-ratio: 3 / 2; border-radius: 18px; margin-bottom: 10px; background-color: var(--rice); background-size: 800% 600%; background-repeat: no-repeat; }
.ls-say.is-wait { opacity: 0.6; }
.ls-player.is-off { display: none; }
.ls-review-note { margin: 0; padding: 12px 18px; border-radius: 16px; background: #fff; font-size: 0.9rem; color: var(--soft); box-shadow: inset 0 0 0 1.5px var(--line); }
@media (max-width: 980px) { .ls-pic .ls-sprite { transform: none; } }
