/* Lesson list and lesson page. Uses the tokens from web/css/site.css (light + dark). */
.learn { max-width: 760px; margin: 0 auto; padding-block: 16px 64px; display: flex; flex-direction: column; gap: 18px; }
.learn h1 { font-family: var(--f-title); font-weight: 400; font-size: 40px; }
.learn h2 { font-size: 21px; }
.l-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.l-top .brand .mark { width: 34px; }
.lv-chip { display: inline-block; padding: 0 12px; border-radius: 999px; color: #fff; font-size: 16px; line-height: 1.7; }
.lv-block { display: flex; flex-direction: column; gap: 12px; }
.lv-block h2 { display: flex; align-items: center; gap: 10px; }
.l-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.l-card { display: flex; gap: 14px; align-items: stretch; background: var(--surface); border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 20px;
  padding: 10px; color: var(--ink); text-decoration: none; transition: transform .12s ease; }
.l-card:hover { transform: translateY(-2px); border-color: var(--edge); }
.l-card .poster { width: 72px; height: 128px; object-fit: cover; border-radius: 12px; flex: none; background: var(--sunk); }
.l-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; justify-content: center; }
.l-body b { font-size: 18px; }
.l-num { font-size: 13px; font-weight: 800; color: var(--ink3); }
.l-gram { font-size: 14px; color: var(--ink2); }
.l-head { display: flex; flex-direction: column; gap: 4px; }
.l-head .big { font-size: 22px; color: var(--acc, var(--ink2)); }
.l-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; background: var(--paper); scrollbar-width: none; }
.l-nav a { flex: none; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15px; }
.lesson section { scroll-margin-top: 64px; }
.de-run { direction: ltr; unicode-bidi: isolate; font-family: var(--f-de); font-weight: 600; background: var(--yolk-bg); color: var(--yolk-ink); padding: 0 6px; border-radius: 8px; }
.tbl-wrap { overflow-x: auto; }
.g-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.g-table th { font-size: 14px; color: var(--ink3); font-weight: 800; padding: 6px 8px; border-bottom: 2px solid var(--line); text-align: start; }
.g-table td { padding: 8px; border-bottom: 1px solid var(--line); }
.g-table td.de, .g-table th.de { text-align: left; }
.ex-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ex-list li { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 14px; background: var(--sunk); }
.ex-list .de { font-size: 19px; }
.tip { background: var(--yolk-bg); border: 2px solid var(--yolk); border-radius: 16px; padding: 12px 14px; }
.g-video { width: min(100%, 360px); aspect-ratio: 9 / 16; border-radius: 18px; background: #000; align-self: center; }
details summary { cursor: pointer; font-weight: 800; }
details p { margin-top: 8px; color: var(--ink2); }
.row.between { justify-content: space-between; }
.story { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 10px; }
.story li { display: flex; flex-direction: column; }
.story .de { font-size: 19px; }
.story .fa-tr { color: var(--ink2); font-size: 15px; }
.story.no-fa .fa-tr { display: none; }
.w-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.w-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); }
.w-card img { flex: none; }
.w-main { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.6; }
.w-de { font-size: 21px; }
.w-art { font-weight: 700; } .w-art-der { color: var(--der); } .w-art-die { color: var(--die); } .w-art-das { color: var(--das); }
.play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line); border-bottom-width: 4px; background: var(--pond-bg); color: var(--pond); display: grid; place-items: center; cursor: pointer; }
.play.on { background: var(--pond); color: #fff; }
.q { display: flex; flex-direction: column; gap: 8px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.q:last-of-type { border-bottom: 0; }
.q-text { font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.q-text.de { direction: ltr; justify-content: flex-end; }
.q-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.q-opt { min-height: 46px; padding: 0 18px; border-radius: 14px; border: 2px solid var(--line); border-bottom-width: 4px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.q-opt.right { background: var(--leaf-bg); border-color: var(--leaf); color: var(--ink); }
.q-opt.wrong { background: var(--coral-bg); border-color: var(--coral); color: var(--ink); }
.q-opt:disabled { cursor: default; }
.q-why { font-size: 15px; color: var(--ink2); background: var(--sunk); border-radius: 12px; padding: 8px 12px; }
@media (max-width: 420px) { .learn h1 { font-size: 34px; } .w-grid, .l-grid { grid-template-columns: 1fr; } }
.cta-app { background: var(--yolk-bg, #FFF8E6); border-color: color-mix(in srgb, var(--yolk, #FFBE1F) 60%, var(--line, #E8DFD5)); }
.l-pager { flex-wrap: wrap; gap: 8px; } .l-pager .btn { width: auto; }
