/* The four icons drawn as masks (the logo's book, the account's person, the search glass, the headphones) are written into this
   file as data, taken from icons/*.svg: a page opened from a folder on disk ("Preview a file", L-133) may not load a mask from a file. */
/* The desktop experience (ledger L-101, Chris: "It needs to detect if it's desktop or mobile, then
   launch the appropriate experience. The content is of course the same, just displayed
   differently."; L-102: the shapes, accents, selection and font are the design's own, checked
   against the Stitch code drawn in a browser). Built from Chris's Stitch desktop design (docs/design/stitch-2026-11-08:
   desktop-code.html, desktop-screen.png); sizes, colors and shapes below are taken from its HTML.
   Loaded after each page's own styles. Everything here applies from 1,024 px of window width, the
   point where the design's two columns begin; below it the mobile experience is untouched.
   Left out because nothing is behind them yet: the Listening and Speaking tabs, "Quiz This Entry",
   and "Meanings". Home, Playlists, the player and Options have no desktop design: they get the
   top bar and room, nothing more. */
/* The design's fonts, served from this site: Be Vietnam Pro for text, Newsreader for the logo. They are asked for only inside the desktop block, so a phone never downloads them. */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/be-vietnam-pro-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/be-vietnam-pro-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/be-vietnam-pro-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700 800; font-display: swap; src: url("fonts/be-vietnam-pro-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader-latin-wght-normal.woff2") format("woff2"); }

/* Desktop-only parts are in every page and hidden in the mobile experience. */
.deskbar, .l-deck, .hw-add { display: none; }
.lesson .l-hw .row .side { display: inline-flex; align-items: center; }

@media (min-width: 1024px) {
  /* ---------- the frame: top bar, then the page; no Menu pill ---------- */
  body { grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); } /* the one column never grows past the window, whatever the top bar holds */
  body.lesson, body.home, body.app, .deskbar { font-family: "Be Vietnam Pro", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
  .menubar { display: none !important; }
  .deskbar { display: block; min-width: 0; position: relative; z-index: 30; background: rgba(250, 248, 255, 0.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 1px 8px rgba(14, 26, 54, 0.06); color: #0E1A36; } /* its font is set with the pages' above (Be Vietnam Pro) */
  .deskbar .in { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 56px; max-width: 1540px; margin: 0 auto; padding: 0 32px; } /* the design has 1280 px here; 1540 lines the logo up with the left column on a wide screen */
  /* Spec 8: every control is at least 44 px to press. Where the design draws a control smaller,
     the look stays and an unseen area around it (::after) takes the press. */
  .deskbar .left { display: flex; align-items: center; gap: 32px; flex: none; }
  .deskbar .logo { position: relative; display: inline-flex; align-items: center; gap: 8px; color: #0E1A36; text-decoration: none; white-space: nowrap; }
  .deskbar .logo::after, .deskbar nav a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
  .deskbar .logo::before { content: ""; width: 22px; height: 22px; background: #B22206; -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEyIDYuNkMxMC40IDUuNSA4LjMgNSA2IDVjLTEuNCAwLTIuNy4yLTQgLjZ2MTIuOWMxLjMtLjQgMi42LS42IDQtLjYgMi4zIDAgNC40MDAuNSA2IDEuNjAwIDEuNjAwLTEuMTAwIDMuNzAwLTEuNjAwIDYtMS42MDAgMS40MDAgMCAyLjcwMC4yIDQgLjZWNS42MDBDMjAuNzAwIDUuMjAwIDE5LjQwMCA1IDE4IDVjLTIuMzAwIDAtNC40MDAuNS02IDEuNjAwek00IDcuMTAwQzQuNzAwIDcgNS4zMDAgNyA2IDdjMS45MDAgMCAzLjYwMC40IDUgMS4yMDB2OC45MDBDOS41MDAgMTYuNDAwIDcuODAwIDE2IDYgMTZjLS43IDAtMS4zMDAgMC0yIC4xVjcuMTAwem0xNiA5Yy0uNy0uMS0xLjMwMC0uMS0yLS4xLTEuODAwIDAtMy41MDAuNC01IDEuMTAwVjguMjAwQzE0LjQwMCA3LjQwMCAxNi4xMDAgNyAxOCA3Yy43IDAgMS4zMDAgMCAyIC4xdjl6Ii8+PC9zdmc+") center / contain no-repeat; mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEyIDYuNkMxMC40IDUuNSA4LjMgNSA2IDVjLTEuNCAwLTIuNy4yLTQgLjZ2MTIuOWMxLjMtLjQgMi42LS42IDQtLjYgMi4zIDAgNC40MDAuNSA2IDEuNjAwIDEuNjAwLTEuMTAwIDMuNzAwLTEuNjAwIDYtMS42MDAgMS40MDAgMCAyLjcwMC4yIDQgLjZWNS42MDBDMjAuNzAwIDUuMjAwIDE5LjQwMCA1IDE4IDVjLTIuMzAwIDAtNC40MDAuNS02IDEuNjAwek00IDcuMTAwQzQuNzAwIDcgNS4zMDAgNyA2IDdjMS45MDAgMCAzLjYwMC40IDUgMS4yMDB2OC45MDBDOS41MDAgMTYuNDAwIDcuODAwIDE2IDYgMTZjLS43IDAtMS4zMDAgMC0yIC4xVjcuMTAwem0xNiA5Yy0uNy0uMS0xLjMwMC0uMS0yLS4xLTEuODAwIDAtMy41MDAuNC01IDEuMTAwVjguMjAwQzE0LjQwMCA3LjQwMCAxNi4xMDAgNyAxOCA3Yy43IDAgMS4zMDAgMCAyIC4xdjl6Ii8+PC9zdmc+") center / contain no-repeat; }
  .deskbar .logo span { font-family: "Newsreader", Georgia, "Times New Roman", serif; font-size: 18px; line-height: 24px; font-weight: 500; letter-spacing: -0.025em; }
  .deskbar .logo:hover span { color: #B22206; }
  .deskbar nav { display: flex; align-items: center; gap: 4px; }
  .deskbar nav a { position: relative; min-width: 44px; box-sizing: border-box; text-align: center; padding: 4px 12px; border-radius: 4px; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.04em; color: #5B403B; text-decoration: none; white-space: nowrap; }
  .deskbar nav a:hover { background: #F2F3FF; color: #0E1A36; }
  .deskbar nav a[aria-current="page"] { background: #EAEDFF; color: #0E1A36; font-size: 15px; line-height: 22px; font-weight: 500; letter-spacing: 0; }
  .deskbar .acct { position: relative; min-width: 0; }
  .deskbar .acct-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; }
  .deskbar .acct-btn .nm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* read out, not shown: the design shows the icon alone */
  .deskbar .acct-btn .av { flex: none; width: 32px; height: 32px; border-radius: 12px; background: #B22206; display: inline-flex; align-items: center; justify-content: center; }
  .deskbar .acct-btn .av::before { content: ""; width: 18px; height: 18px; background: #fff; -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEyIDEyYTQgNCAwIDEgMCAwLTggNCA0IDAgMCAwIDAgOHptMCAyYy0zLjMwMCAwLTggMS43MDAtOCA1djFoMTZ2LTFjMC0zLjMwMC00LjcwMC01LTgtNXoiLz48L3N2Zz4=") center / contain no-repeat; mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEyIDEyYTQgNCAwIDEgMCAwLTggNCA0IDAgMCAwIDAgOHptMCAyYy0zLjMwMCAwLTggMS43MDAtOCA1djFoMTZ2LTFjMC0zLjMwMC00LjcwMC01LTgtNXoiLz48L3N2Zz4=") center / contain no-repeat; }
  .deskbar .acct-btn:hover .av, .deskbar .acct-btn[aria-expanded="true"] .av { box-shadow: 0 0 0 4px rgba(178, 34, 6, 0.15); }
  .deskbar .acct-menu { position: absolute; right: 0; top: 46px; width: 240px; padding: 8px; background: #fff; border: 1px solid #E7E5E4; border-radius: 8px; box-shadow: 0 16px 40px -8px rgba(14, 26, 54, 0.22); }
  .deskbar .acct-menu[hidden] { display: none; }
  .deskbar .acct-menu .who { margin: 0; padding: 6px 10px 8px; font-size: 12px; line-height: 1.4; color: #64748B; border-bottom: 1px solid #F5F5F4; overflow-wrap: anywhere; }
  .deskbar .acct-menu a, .deskbar .acct-menu button { display: flex; align-items: center; width: 100%; min-height: 44px; box-sizing: border-box; padding: 0 10px; border: 0; border-radius: 4px; background: none; font: inherit; font-size: 13.5px; font-weight: 500; color: #0E1A36; text-decoration: none; text-align: left; cursor: pointer; }
  .deskbar .acct-menu a:hover, .deskbar .acct-menu button:hover { background: #F2F3FF; }
  .deskbar .acct-menu button { color: #B22206; margin-top: 4px; }
  .deskbar .acct-menu #logout-msg { margin: 4px 10px 6px; font-size: 12px; line-height: 1.4; color: #B22206; }
  .deskbar :focus-visible { outline: 2px solid #00539C; outline-offset: 2px; }

  /* ---------- the lesson page and the word page: two columns ---------- */
  body.lesson, .lesson main { background: #FAFAF8; }
  .lesson .page { display: grid; grid-template-columns: 290px minmax(0, 1fr); column-gap: 32px; align-content: start; max-width: 1540px; padding: 32px 32px 72px; background: none; }
  .lesson .page > * { grid-column: 2; }
  .lesson .l-top { display: none; }
  .lesson #loading { grid-column: 1 / -1; }

  /* Left column: Sections, then the deck block. Plain text on the page, as in the design. */
  .lesson .l-secwrap, .entry .e-sections { grid-column: 1; grid-row: 1 / span 900; align-self: start; position: sticky; top: 24px; z-index: 1; box-sizing: border-box; height: auto; max-height: calc(100vh - 56px - 48px); max-height: calc(100dvh - 56px - 48px); margin: 0; overflow-y: auto; scrollbar-width: thin; }
  .lesson .l-sections, .entry .e-sections { display: block; position: static; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .lesson .l-sections { max-height: none; overflow: visible; }
  .lesson .l-sections .cap, .entry .e-sections .cap, .l-deck .cap { margin: 0 0 8px; font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #64748B; }
  .lesson .l-sections ol, .entry .e-sections ol { display: flex; flex-direction: column; gap: 4px; margin: 0; }
  /* Where the reader is (L-102): the design's selected row, a filled blue block with white text, as its "Meanings" list draws it. */
  .lesson .l-sections ol a, .entry .e-sections ol a { display: block; min-height: 0; padding: 8px 12px; border-radius: 2px; font-size: 13px; line-height: 1.375; font-weight: 500; color: #334155; }
  .lesson .l-sections ol a::before, .entry .e-sections ol a::before { content: none; }
  .lesson .l-sections ol a:hover, .entry .e-sections ol a:hover { color: #0F172A; background: rgba(241, 245, 249, 0.6); }
  .lesson .l-sections ol a.on, .entry .e-sections ol a.on { background: #00539C; color: #fff; font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
  .lesson .l-sections .row { display: none; } /* the 한국어 switch is in the headword card on desktop */
  .l-deck { display: block; margin-top: 24px; padding-top: 24px; border-top: 1px solid #E7E5E4; }
  .l-deck .name { margin: 0 0 10px; font-size: 14px; line-height: 1.35; font-weight: 600; color: #0F172A; }
  .l-deck form { position: relative; margin: 0 0 8px; }
  .l-deck form::before { content: ""; position: absolute; left: 10px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; background: #94A3B8; -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjIuNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIj48Y2lyY2xlIGN4PSIxMC41IiBjeT0iMTAuNSIgcj0iNi41Ii8+PHBhdGggZD0iTTE1LjUgMTUuNSAyMSAyMSIvPjwvc3ZnPg==") center / contain no-repeat; mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjIuNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIj48Y2lyY2xlIGN4PSIxMC41IiBjeT0iMTAuNSIgcj0iNi41Ii8+PHBhdGggZD0iTTE1LjUgMTUuNSAyMSAyMSIvPjwvc3ZnPg==") center / contain no-repeat; pointer-events: none; }
  .l-deck input { box-sizing: border-box; width: 100%; min-height: 0; padding: 6px 12px 6px 32px; border: 1px solid #D6D3D1; border-radius: 4px; background: #fff; font: inherit; font-size: 12.5px; line-height: 18px; color: #1E293B; }
  .l-deck input::placeholder { color: #6C7786; } /* L-106: the design's #94A3B8 is 2.6 to 1; darkened to 4.5 to 1 */
  .l-deck input:focus { outline: none; border-color: #C54A24; }
  .l-deck input:focus-visible { outline: 2px solid #00539C; outline-offset: 2px; } /* the keyboard's place must be plain to see (audit 2026-11-12) */
  .lesson .l-deck a, .entry .l-deck a { display: inline; min-height: 0; padding: 0; font-size: 12.5px; font-weight: 500; color: #00539C; text-decoration: none; }
  .lesson .l-deck a::before, .entry .l-deck a::before { content: none; }
  .lesson .l-deck a:hover, .entry .l-deck a:hover { text-decoration: underline; }

  /* Right column: the reading workspace. One step of 24 px between blocks. */
  .lesson .l-hw, .lesson .l-head, .lesson .l-card, .lesson .l-sub, .lesson .l-main > .l-dialog, .entry .dialog.l-dialog { border-color: #E7E5E4; border-radius: 4px; box-shadow: none; }
  .lesson .l-hw { margin-top: 0; padding: 32px; border-radius: 4px; }
  .lesson .l-hw .row { min-height: 32px; margin-bottom: 8px; }
  .lesson .tag { padding: 0; border: 0; background: none; font-size: 11px; letter-spacing: 0.025em; }
  .lesson .l-hw h1, .entry .l-hw h1 { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; color: #0F172A; }
  .lesson .l-hw .sub, .entry .l-hw > .ko { font-size: 15px; color: #475569; }
  .lesson .l-hw > .l-text .l-s, .entry .l-hw > .l-text .l-s { font-size: 16px; line-height: 1.625; font-weight: 400; color: #1E293B; }
  .lesson .l-hw > .l-labelbox, .entry .l-hw > .l-labelbox, .lesson .l-head > .l-labelbox { margin-top: 12px; padding-top: 8px; border-top: 0; } /* the design has no rule above Translation */
  .lesson .l-value.ko, .entry .l-hw .tr .ko { font-size: 20px; line-height: 1.4; font-weight: 700; color: #0F172A; }
  .lesson .l-label { font-size: 10px; letter-spacing: 0.05em; color: #A03417; background: #FFF5ED; border-color: #FDDAC2; border-radius: 4px; }
  .lesson .ko-switch { min-height: 44px; margin: -6px 0; font-size: 11.5px; font-weight: 500; color: #334155; } /* 44 px to press; the pill is drawn 24 px high, as in the design */
  .lesson .ko-switch::before { inset: 10px -8px; background: #F1F5F9; border-color: transparent; box-shadow: 0 1px 2px rgba(14, 26, 54, 0.06); }
  .lesson .ko-switch input:checked + .track { background: #C54A24; }
  .hw-add { display: inline-flex; align-items: center; justify-content: center; position: relative; width: 44px; height: 44px; min-width: 0; min-height: 0; margin: -6px -6px -6px 6px; padding: 0; border: 0; background: none; color: #00539C; cursor: pointer; }
  .hw-add::before { content: ""; position: absolute; inset: 6px; border-radius: 12px; background: #EAF2FA; }
  .hw-add::after { content: ""; position: absolute; inset: 6px; background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat; }
  .hw-add:hover { opacity: 0.8; }

  .lesson .l-main { margin-top: 24px; scroll-margin-top: 24px; }
  .lesson .l-hw + .l-main { margin-top: 24px; }
  .entry .l-main, .entry .l-nuance, .entry .l-bar, .entry .l-hw, .entry .e-takeaway { scroll-margin-top: 24px; }
  .lesson .l-head { position: relative; overflow: hidden; padding: 20px 32px 24px; border: 1px solid #E7E5E4; border-radius: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
  /* The blue bar has a gradient like the orange one (L-103, Chris: "does our blue not have a gradient like the orange? Can you make it have one?"). The Stitch code draws it flat #00539C; the gradient is his change: the design's blue at both ends, a lighter blue in the middle. */
  .lesson .l-head::before, .entry .e-study::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #00539C 0%, #2A8AD4 50%, #00539C 100%); }
  .lesson .l-head h2 { font-size: 24px; letter-spacing: -0.02em; color: #0F172A; }
  .lesson .l-head > .l-text .l-s { font-size: 15px; }

  /* The two study cards, side by side */
  .entry .e-two { gap: 20px; margin-top: 24px; }
  .entry .e-study { position: relative; overflow: hidden; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-items: start; align-content: start; padding: 16px 20px; border: 1px solid #E7E5E4; border-radius: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); cursor: pointer; }
  .entry .e-study:hover { box-shadow: 0 4px 12px rgba(14, 26, 54, 0.08); }
  .entry .e-study .ic { grid-row: 1 / span 2; width: 44px; height: 44px; margin: 0; border-radius: 8px; background: #EAF2FA; }
  .entry .e-study .nm, .entry .e-study .sm { grid-column: 2; }
  .entry .e-sections.solo { display: block; }
  .entry .e-study .ic.head::before { inset: 11px; border: 0; border-radius: 0; background: #00539C; -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEyIDNhOSA5IDAgMCAwLTkgOXY3YTIgMiAwIDAgMCAyIDJoNHYtOEg1di0xYTcgNyAwIDAgMSAxNCAwdjFoLTR2OGg0YTIgMiAwIDAgMCAyLTJ2LTdhOSA5IDAgMCAwLTktOXpNNyAxNXY0SDV2LTRoMnptMTIgNGgtMnYtNGgydjR6Ii8+PC9zdmc+") center / contain no-repeat; mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEyIDNhOSA5IDAgMCAwLTkgOXY3YTIgMiAwIDAgMCAyIDJoNHYtOEg1di0xYTcgNyAwIDAgMSAxNCAwdjFoLTR2OGg0YTIgMiAwIDAgMCAyLTJ2LTdhOSA5IDAgMCAwLTktOXpNNyAxNXY0SDV2LTRoMnptMTIgNGgtMnYtNGgydjR6Ii8+PC9zdmc+") center / contain no-repeat; }
  .entry .e-study .ic.head::after { content: none; }
  .entry .e-study .ic.plus::before, .entry .e-study .ic.plus::after { left: 14px; top: 21px; width: 16px; }
  .entry .e-study .nm { font-size: 16px; line-height: 22px; font-weight: 700; color: #0F172A; margin-bottom: 4px; }
  .entry .e-study .sm { margin-top: 0; font-size: 14px; line-height: 22.75px; color: #64748B; }
  .lesson .l-head .listen { margin-top: 16px; }

  /* Nuance */
  .lesson .l-nuance { margin: 24px 0 0; padding: 24px 24px 12px; background: #FFF5ED; border-color: #FDDAC2; border-radius: 16px; box-shadow: 0 1px 2px rgba(14, 26, 54, 0.05); }
  .lesson .l-nuance::before { background: linear-gradient(90deg, #DF4724, #F78E22, #DF4724); }
  .lesson .l-nuance > .cap { margin-bottom: 8px; font-size: 22px; letter-spacing: -0.025em; color: #A03417; gap: 4px 10px; }
  .lesson .l-nuance > .cap::before { content: ""; width: 28px; height: 28px; border-radius: 4px; background: #C54A24 url("icons/info.svg") center / 18px 18px no-repeat; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
  .lesson .l-nuance > .l-item { max-width: 56rem; padding: 8px 0; }
  .lesson .l-nuance .l-s, .lesson .l-nuance .l-point > .l-s, .lesson .l-nuance .l-point > .sentence .l-s { font-size: 14.5px; line-height: 1.625; font-weight: 600; color: #0F172A; }
  .lesson .l-nuance .ko { font-size: 14.5px; color: #475569; }
  .lesson .l-nuance > .l-point::before { top: calc(8px + 0.62em); width: 8px; height: 8px; background: #C54A24; }
  .lesson .l-point { padding-left: 18px !important; }
  .lesson .l-nuance .l-children .l-s { font-size: 13.5px; font-weight: 700; }
  .lesson .l-nuance .l-children .ko { font-size: 13.5px; }
  .lesson .l-nuance .l-children { margin: 8px 0 0 4px; padding-left: 14px; border-left: 2px solid rgba(249, 115, 22, 0.5); }
  .lesson .l-nuance .l-children > .l-item { position: relative; padding-left: 16px !important; }
  .lesson .l-nuance .l-children > .l-item::before { content: ""; position: absolute; left: 0; top: calc(0.45rem + 0.5em); width: 6px; height: 6px; border-radius: 2px; background: #C54A24; }
  .lesson .l-sub .l-nuance, .lesson .l-card .l-nuance { margin: 12px 0; }

  /* A section: the burnt-orange bar joined to one white box whose rows are divided by hairlines */
  .lesson .l-bar { margin: 24px 0 0; padding: 8px 16px; border-radius: 4px 4px 0 0; box-shadow: none; }
  .lesson .l-bar .t { font-size: 11px; line-height: 16px; letter-spacing: 0.05em; }
  .lesson .l-bar .ko { font-size: 12px; }
  .lesson .l-card { margin: 16px 0 0; padding: 4px 24px; }
  .lesson .l-card > .l-item { padding: 16px 0; }
  .lesson .l-card > .l-item + .l-item, .lesson .l-sub .l-item + .l-item, .lesson .l-sub .sub + .l-item { border-top-color: #F5F5F4; }
  .lesson .l-bar + .l-card, .lesson .l-bar + .l-sub, .lesson .l-bar + .l-dialog, .lesson .l-bar + .l-nuance { margin-top: 0; border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
  .lesson .l-card + .l-card, .lesson .l-main > .l-dialog + .l-dialog, .entry .dialog.l-dialog + .dialog.l-dialog, .lesson .l-card + .l-dialog, .lesson .l-dialog + .l-card { margin-top: 0; border-top-color: #F5F5F4; border-top-left-radius: 0; border-top-right-radius: 0; }
  .lesson .l-card:has(+ .l-card), .lesson .l-card:has(+ .l-dialog), .lesson .l-main > .l-dialog:has(+ .l-dialog), .lesson .l-main > .l-dialog:has(+ .l-card), .entry .dialog.l-dialog:has(+ .dialog.l-dialog) { border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .lesson .l-sub { margin: 16px 0 0; padding: 20px 24px 8px; }
  .lesson .l-sub > h3 { font-size: 17px; }
  .lesson .l-sub .l-item { padding: 14px 0; }

  /* Lines */
  .lesson .l-s { font-size: 15px; line-height: 1.45; font-weight: 700; color: #0F172A; }
  .lesson .l-text .l-s, .lesson .l-point > .sentence .l-s, .entry .l-point > .l-s { font-weight: 500; }
  .lesson .ko { font-size: 13.5px; color: #475569; }
  .lesson .l-note { font-size: 13.5px; }
  .lesson .l-note .ko { font-size: 13px; }
  .lesson .l-pattern > .sentence .l-s { font-size: 14.5px; }

  /* Play and Slow: 24 px circles with a 12.5 px word; a mouse needs no 44 px target */
  .lesson .audio { gap: 0 12px; margin-top: 6px; }
  .lesson .audio button { min-height: 44px; min-width: 44px; margin: -8px 0; gap: 6px; padding: 0; font-size: 12.5px; font-weight: 500; color: #1E293B; }
  .lesson .audio button:hover { opacity: 0.8; }
  .lesson .audio .ic { width: 24px; height: 24px; background: #C54A24; box-shadow: none; }
  .lesson .audio .ic::before { margin-left: 2px; border-left-width: 7px; border-top-width: 4.5px; border-bottom-width: 4.5px; }
  .lesson .audio .slow .ic { border-color: #C54A24; color: #C54A24; }
  .lesson .audio .play-dialog { position: relative; min-height: 28px; margin: 0; padding: 0 10px; border: 1px solid #C54A24; border-radius: 4px; background: #fff; font-size: 12px; color: #C54A24; }
  .lesson .audio .play-dialog::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
  .lesson .audio .play-dialog:hover { background: #FFF7ED; opacity: 1; }

  /* Dialogs */
  .lesson .l-dialog { margin: 16px 0 0; padding: 20px 24px 12px; }
  .lesson .dlg-n { font-size: 13px; letter-spacing: 0.02em; color: #1E293B; }
  .lesson .l-dialog .turn { padding: 12px 0 6px; }
  .lesson .l-dialog .turn + .turn, .lesson .l-dialog .l-note + .turn, .lesson .l-dialog .l-dir + .turn { border-top: 0; }
  .lesson .l-dialog .turn .l-s { font-size: 14.5px; }
  .lesson .l-dialog .turn .ko { font-size: 13px; }
  .lesson .l-dialog .audio .ic { width: 20px; height: 20px; }
  .lesson .l-dialog .audio .ic::before { border-left-width: 6px; border-top-width: 4px; border-bottom-width: 4px; }
  .lesson .l-dialog .audio button { font-size: 12px; }
  .lesson .spk { padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
  .lesson .l-dir { font-size: 12px; color: #64748B; }

  /* Takeaway, report, status, owner notes */
  .lesson .l-main.takeaway .l-card, .entry .e-takeaway { margin-top: 24px; border-radius: 8px; }
  .entry .e-report { margin-top: 32px; text-align: center; }
  .lesson #now-playing { bottom: 16px; justify-self: start; max-width: 100%; }
  .lesson details.owner { border-color: #E7E5E4; border-radius: 4px; }

  /* ---------- Home: the same front door with the top bar above it ---------- */
  .home .page { max-width: 62rem; padding: 1.5rem 2rem 3rem; }
  .home .hero .bar .brand, .home .hero .bar .me { display: none; } /* the logo and Log out are in the top bar */
  .home .hero .bar { min-height: 0; }
  .home .hero { padding: 1.25rem 2rem 4.6rem; border-radius: 28px; }
  .home .hero h1 { font-size: 2.6rem; }
  .home .search { max-width: 34rem; }
  .home .body, .home .results { padding-left: 2rem; padding-right: 2rem; }
  .home .continue { max-width: 30rem; }
  .home .ways { display: flex; flex-wrap: wrap; }
  .home .way { flex: 0 0 9.5rem; }
  .home .shelf { grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 0.9rem; }
  .home .cover { min-height: 9.6rem; }
  .home .results .list, .home .slot .list { max-width: 44rem; }

  /* ---------- Playlists, the player, Options, the owner's pages: the top bar and room ---------- */
  .app .topbar { display: none; }
  body.app, .app main { background: #FAFAF8; }
  .app .page { max-width: 46rem; padding: 2rem 2rem 4rem; background: none; }
}

/* A wide screen that can be touched (a tablet, a touch laptop): the left column's links and its
   search box, drawn small in the design for a mouse, become 44 px to press (spec 8). */
@media (min-width: 1024px) and (any-pointer: coarse) {
  .lesson .l-sections ol, .entry .e-sections ol { gap: 0; }
  .lesson .l-sections ol a, .entry .e-sections ol a { display: flex; align-items: center; min-height: 44px; padding-top: 0; padding-bottom: 0; }
  .l-deck input { min-height: 44px; font-size: 16px; } /* 16 px: an iPad zooms the page in when a field with smaller text is pressed (L-118) */
  .lesson .l-deck a, .entry .l-deck a { display: inline-flex; align-items: center; min-height: 44px; }
}
