:root {
  --sh-segment: 0 1px 2px rgba(0, 0, 0, 0.12);
  --sh-panel: 0 12px 32px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
  --sh-sheet: 0 -10px 40px rgba(0, 0, 0, 0.18);
  --sh-menu: 0 18px 50px rgba(0, 0, 0, 0.22);
  --sh-dialog: 0 24px 80px rgba(0, 0, 0, 0.3);
  --sh-lift: 0 10px 30px rgba(0, 0, 0, 0.18);
  --t-topic-title-size: 38px;
  --t-topic-title-lh: 1.15;
  --t-topic-title-weight: 650;
  --t-topic-title-track: -0.025em;
  --t-home-title-size: 34px;
  --t-home-title-lh: 1.15;
  --t-home-title-weight: 650;
  --t-home-title-track: -0.025em;
  --t-page-title-size: 30px;
  --t-page-title-lh: 1.2;
  --t-page-title-weight: 650;
  --t-page-title-track: -0.02em;
  --t-not-found-digits-size: 210px;
  --t-not-found-digits-lh: 1;
  --t-not-found-digits-weight: 800;
  --t-not-found-digits-track: -0.04em;
  --t-not-found-digits-phone-size: 128px;
  --t-not-found-digits-phone-lh: 1;
  --t-not-found-digits-phone-weight: 800;
  --t-not-found-digits-phone-track: -0.04em;
  --t-not-found-digits-small-size: 104px;
  --t-not-found-digits-small-lh: 1;
  --t-not-found-digits-small-weight: 800;
  --t-not-found-digits-small-track: -0.04em;
  --t-sheet-title-size: 22px;
  --t-sheet-title-lh: 1.55;
  --t-sheet-title-weight: 650;
  --t-sheet-title-track: 0;
  --t-section-title-size: 20px;
  --t-section-title-lh: 1.55;
  --t-section-title-weight: 650;
  --t-section-title-track: -0.01em;
  --t-card-title-size: 17px;
  --t-card-title-lh: 1.55;
  --t-card-title-weight: 650;
  --t-card-title-track: 0;
  --t-subhead-size: 16px;
  --t-subhead-lh: 1.55;
  --t-subhead-weight: 650;
  --t-subhead-track: 0;
  --t-lead-size: 17px;
  --t-lead-lh: 1.55;
  --t-lead-weight: 400;
  --t-lead-track: 0;
  --t-body-size: 15px;
  --t-body-lh: 1.55;
  --t-body-weight: 400;
  --t-body-track: 0;
  --t-body-small-size: 14px;
  --t-body-small-lh: 1.55;
  --t-body-small-weight: 400;
  --t-body-small-track: 0;
  --t-ui-size: 13.5px;
  --t-ui-lh: 1.55;
  --t-ui-weight: 400;
  --t-ui-track: 0;
  --t-caption-size: 13px;
  --t-caption-lh: 1.45;
  --t-caption-weight: 400;
  --t-caption-track: 0;
  --t-small-size: 12px;
  --t-small-lh: 1.55;
  --t-small-weight: 400;
  --t-small-track: 0;
  --t-table-head-size: 12px;
  --t-table-head-lh: 1.55;
  --t-table-head-weight: 650;
  --t-table-head-track: 0.04em;
  --t-label-size: 11px;
  --t-label-lh: 1.55;
  --t-label-weight: 650;
  --t-label-track: 0.06em;
  --t-badge-size: 11px;
  --t-badge-lh: 1.6;
  --t-badge-weight: 650;
  --t-badge-track: 0.02em;
  --t-level-mini-size: 10px;
  --t-level-mini-lh: 1.55;
  --t-level-mini-weight: 650;
  --t-level-mini-track: 0;
  --t-section-number-size: 17px;
  --t-section-number-lh: 1.55;
  --t-section-number-weight: 600;
  --t-section-number-track: -0.02em;
  --t-code-size: 13px;
  --t-code-lh: 1.55;
  --t-code-weight: 400;
  --t-code-track: 0;
  --t-kbd-size: 11px;
  --t-kbd-lh: 1.55;
  --t-kbd-weight: 400;
  --t-kbd-track: 0;
  --t-reading-title-size: 28px;
  --t-reading-title-lh: 34px;
  --t-reading-title-weight: 700;
  --t-reading-title-track: 0.01em;
  --t-reading-subtitle-size: 20px;
  --t-reading-subtitle-lh: 26px;
  --t-reading-subtitle-weight: 700;
  --t-reading-subtitle-track: -0.02em;
  --t-reading-body-size: 17px;
  --t-reading-body-lh: 25px;
  --t-reading-body-weight: 400;
  --t-reading-body-track: -0.025em;
  --t-reading-note-size: 16px;
  --t-reading-note-lh: 23px;
  --t-reading-note-weight: 400;
  --t-reading-note-track: -0.02em;
  --t-reading-translation-size: 15px;
  --t-reading-translation-lh: 21px;
  --t-reading-translation-weight: 400;
  --t-reading-translation-track: 0;
  --t-reading-label-size: 13px;
  --t-reading-label-lh: 18px;
  --t-reading-label-weight: 600;
  --t-reading-label-track: 0.04em;
  --t-reading-small-size: 13px;
  --t-reading-small-lh: 18px;
  --t-reading-small-weight: 400;
  --t-reading-small-track: 0;
  --t-reading-ruby-size: 12px;
  --t-reading-ruby-lh: 40px;
  --t-reading-ruby-weight: 400;
  --t-reading-ruby-track: 0;
  --t-reading-tile-size: 1.35em;
  --t-reading-tile-lh: 1.2;
  --t-reading-tile-weight: 650;
  --t-reading-tile-track: 0;
  --t-frame-body-size: 17px;
  --t-frame-body-lh: 1.35;
  --t-frame-body-weight: 400;
  --t-frame-body-track: 0;
  --t-row-title-size: 17px;
  --t-row-title-lh: 22px;
  --t-row-title-weight: 400;
  --t-row-title-track: -0.43px;
  --t-row-title-strong-size: 17px;
  --t-row-title-strong-lh: 22px;
  --t-row-title-strong-weight: 700;
  --t-row-title-strong-track: -0.43px;
  --t-row-title-compact-size: 15px;
  --t-row-title-compact-lh: 20px;
  --t-row-title-compact-weight: 400;
  --t-row-title-compact-track: -0.3px;
  --t-tense-name-size: 17px;
  --t-tense-name-lh: 22px;
  --t-tense-name-weight: 600;
  --t-tense-name-track: 0;
  --t-subheadline-size: 15px;
  --t-subheadline-lh: 20px;
  --t-subheadline-weight: 400;
  --t-subheadline-track: 0;
  --t-subheadline-strong-size: 15px;
  --t-subheadline-strong-lh: 20px;
  --t-subheadline-strong-weight: 600;
  --t-subheadline-strong-track: 0;
  --t-callout-size: 15px;
  --t-callout-lh: 21px;
  --t-callout-weight: 400;
  --t-callout-track: 0;
  --t-footnote-size: 13px;
  --t-footnote-lh: 18px;
  --t-footnote-weight: 400;
  --t-footnote-track: 0;
  --t-row-sub-size: 13px;
  --t-row-sub-lh: 17px;
  --t-row-sub-weight: 400;
  --t-row-sub-track: 0;
  --t-up-to-size: 13px;
  --t-up-to-lh: 18px;
  --t-up-to-weight: 500;
  --t-up-to-track: 0;
  --t-caps-size: 13px;
  --t-caps-lh: 18px;
  --t-caps-weight: 600;
  --t-caps-track: 0.04em;
  --t-snippet-size: 15px;
  --t-snippet-lh: 1.35;
  --t-snippet-weight: 400;
  --t-snippet-track: 0;
  --t-state-title-size: 22px;
  --t-state-title-lh: 28px;
  --t-state-title-weight: 700;
  --t-state-title-track: 0;
  --t-page-heading-size: 28px;
  --t-page-heading-lh: 1.2;
  --t-page-heading-weight: 700;
  --t-page-heading-track: 0.01em;
  --t-page-heading-small-size: 26px;
  --t-page-heading-small-lh: 1.2;
  --t-page-heading-small-weight: 700;
  --t-page-heading-small-track: 0.01em;
  --t-course-name-size: 28px;
  --t-course-name-lh: 34px;
  --t-course-name-weight: 700;
  --t-course-name-track: 0.01em;
  --t-section-heading-size: 20px;
  --t-section-heading-lh: 25px;
  --t-section-heading-weight: 700;
  --t-section-heading-track: -0.45px;
  --t-section-heading-compact-size: 17px;
  --t-section-heading-compact-lh: 22px;
  --t-section-heading-compact-weight: 700;
  --t-section-heading-compact-track: -0.45px;
  --t-sheet-heading-size: 20px;
  --t-sheet-heading-lh: 26px;
  --t-sheet-heading-weight: 700;
  --t-sheet-heading-track: 0;
  --t-card-name-size: 22px;
  --t-card-name-lh: normal;
  --t-card-name-weight: 600;
  --t-card-name-track: -0.01em;
  --t-brand-size: 17px;
  --t-brand-lh: normal;
  --t-brand-weight: 650;
  --t-brand-track: -0.01em;
  --t-flag-size: 30px;
  --t-flag-lh: 1;
  --t-flag-weight: 400;
  --t-flag-track: 0;
  --t-intro-size: 17px;
  --t-intro-lh: 24px;
  --t-intro-weight: 400;
  --t-intro-track: 0;
  --t-rank-size: 13px;
  --t-rank-lh: normal;
  --t-rank-weight: 700;
  --t-rank-track: 0;
  --t-button-size: 17px;
  --t-button-lh: normal;
  --t-button-weight: 600;
  --t-button-track: 0;
  --t-pill-size: 12px;
  --t-pill-lh: 1.6;
  --t-pill-weight: 700;
  --t-pill-track: 0;
  --t-tag-size: 12px;
  --t-tag-lh: 1.6;
  --t-tag-weight: 600;
  --t-tag-track: 0;
  --t-language-tag-size: 11px;
  --t-language-tag-lh: normal;
  --t-language-tag-weight: 700;
  --t-language-tag-track: 0.02em;
  --t-level-mark-size: 13px;
  --t-level-mark-lh: 12px;
  --t-level-mark-weight: 600;
  --t-level-mark-track: -0.1px;
  --t-level-mark-small-size: 11px;
  --t-level-mark-small-lh: 12px;
  --t-level-mark-small-weight: 600;
  --t-level-mark-small-track: -0.1px;
  --t-chip-count-size: 11px;
  --t-chip-count-lh: normal;
  --t-chip-count-weight: 700;
  --t-chip-count-track: 0.04em;
  --t-chip-count-small-size: 10px;
  --t-chip-count-small-lh: normal;
  --t-chip-count-small-weight: 700;
  --t-chip-count-small-track: 0.04em;
  --t-others-line-size: 15px;
  --t-others-line-lh: 1.7;
  --t-others-line-weight: 400;
  --t-others-line-track: 0;
  --t-others-line-phone-size: 14px;
  --t-others-line-phone-lh: 1.6;
  --t-others-line-phone-weight: 400;
  --t-others-line-phone-track: 0;
  --t-others-line-small-size: 13px;
  --t-others-line-small-lh: 1.5;
  --t-others-line-small-weight: 400;
  --t-others-line-small-track: 0;
  --t-topic-body-size: 17px;
  --t-topic-body-lh: 25px;
  --t-topic-body-weight: 400;
  --t-topic-body-track: -0.43px;
  --t-topic-note-size: 16px;
  --t-topic-note-lh: 22px;
  --t-topic-note-weight: 400;
  --t-topic-note-track: -0.3px;
  --t-topic-translation-size: 15px;
  --t-topic-translation-lh: 21px;
  --t-topic-translation-weight: 400;
  --t-topic-translation-track: -0.2px;
  --t-topic-summary-size: 15px;
  --t-topic-summary-lh: 21px;
  --t-topic-summary-weight: 400;
  --t-topic-summary-track: -0.3px;
  --t-topic-table-size: 17px;
  --t-topic-table-lh: 23px;
  --t-topic-table-weight: 400;
  --t-topic-table-track: -0.3px;
  --t-topic-table-head-size: 13px;
  --t-topic-table-head-lh: 17px;
  --t-topic-table-head-weight: 600;
  --t-topic-table-head-track: 0.02em;
  --t-topic-table-head-word-size: 15px;
  --t-topic-table-head-word-lh: normal;
  --t-topic-table-head-word-weight: 400;
  --t-topic-table-head-word-track: -0.3px;
  --t-topic-button-size: 17px;
  --t-topic-button-lh: normal;
  --t-topic-button-weight: 600;
  --t-topic-button-track: -0.3px;
  --t-letter-size: 22px;
  --t-letter-lh: 26px;
  --t-letter-weight: 600;
  --t-letter-track: 0.01em;
  --t-facts-size: 15px;
  --t-facts-lh: 22px;
  --t-facts-weight: 400;
  --t-facts-track: 0;
  --t-path-name-size: 16px;
  --t-path-name-lh: 22px;
  --t-path-name-weight: 400;
  --t-path-name-track: 0;
  --t-cell-translation-size: 15px;
  --t-cell-translation-lh: 19px;
  --t-cell-translation-weight: 400;
  --t-cell-translation-track: 0;
  --t-cell-translation-phone-size: 14px;
  --t-cell-translation-phone-lh: 19px;
  --t-cell-translation-phone-weight: 400;
  --t-cell-translation-phone-track: 0;
  --t-outline-caps-size: 12px;
  --t-outline-caps-lh: 16px;
  --t-outline-caps-weight: 400;
  --t-outline-caps-track: 0.06em;
  --t-slot-caption-size: 12px;
  --t-slot-caption-lh: 16px;
  --t-slot-caption-weight: 400;
  --t-slot-caption-track: 0;
  --t-wide-table-size: 14px;
  --t-wide-table-lh: 20px;
  --t-wide-table-weight: 400;
  --t-wide-table-track: 0;
  --t-wide-table-small-size: 11.5px;
  --t-wide-table-small-lh: 15px;
  --t-wide-table-small-weight: 400;
  --t-wide-table-small-track: 0;
  --t-wide-table-print-size: 10.5px;
  --t-wide-table-print-lh: normal;
  --t-wide-table-print-weight: 400;
  --t-wide-table-print-track: 0;
  --t-ipa-size: 0.88em;
  --t-ipa-lh: normal;
  --t-ipa-weight: 400;
  --t-ipa-track: -0.02em;
  --t-slot-mark-size: 0.9em;
  --t-slot-mark-lh: normal;
  --t-slot-mark-weight: 400;
  --t-slot-mark-track: 0;
  --t-gap-mark-size: 1em;
  --t-gap-mark-lh: normal;
  --t-gap-mark-weight: 400;
  --t-gap-mark-track: 0.12em;
  --t-emphasis-size: 1em;
  --t-emphasis-lh: normal;
  --t-emphasis-weight: 600;
  --t-emphasis-track: 0;
  --t-mark-strong-size: 1em;
  --t-mark-strong-lh: normal;
  --t-mark-strong-weight: 650;
  --t-mark-strong-track: 0;
  --t-bold-size: 1em;
  --t-bold-lh: normal;
  --t-bold-weight: 700;
  --t-bold-track: 0;
  --t-key-size: 1em;
  --t-key-lh: normal;
  --t-key-weight: 550;
  --t-key-track: 0;
  --t-regular-size: 1em;
  --t-regular-lh: normal;
  --t-regular-weight: 400;
  --t-regular-track: 0;
  --t-credits-name-size: 22px;
  --t-credits-name-lh: 1.2;
  --t-credits-name-weight: 700;
  --t-credits-name-track: 0;
  --t-credits-h2-size: 20px;
  --t-credits-h2-lh: 1.2;
  --t-credits-h2-weight: 700;
  --t-credits-h2-track: 0.01em;
  --t-credits-lead-size: 19px;
  --t-credits-lead-lh: 1.4;
  --t-credits-lead-weight: 600;
  --t-credits-lead-track: 0;
  --t-credits-note-size: 13px;
  --t-credits-note-lh: 1.35;
  --t-credits-note-weight: 400;
  --t-credits-note-track: 0;
  --t-credit-line-size: 14px;
  --t-credit-line-lh: 1.4;
  --t-credit-line-weight: 500;
  --t-credit-line-track: 0;
  --t-tag-line-size: 15px;
  --t-tag-line-lh: 1.3;
  --t-tag-line-weight: 400;
  --t-tag-line-track: 0;
  --t-doc-h4-size: 14px;
  --t-doc-h4-lh: normal;
  --t-doc-h4-weight: 400;
  --t-doc-h4-track: 0.04em;
  --t-topic-title-phone-size: 28px;
  --t-topic-title-phone-lh: normal;
  --t-topic-title-phone-weight: 400;
  --t-topic-title-phone-track: 0;
  --t-page-title-phone-size: 24px;
  --t-page-title-phone-lh: normal;
  --t-page-title-phone-weight: 400;
  --t-page-title-phone-track: 0;
  --t-rail-head-size: 13px;
  --t-rail-head-lh: normal;
  --t-rail-head-weight: 650;
  --t-rail-head-track: 0;
  --t-print-body-size: 11pt;
  --t-print-body-lh: normal;
  --t-print-body-weight: 400;
  --t-print-body-track: 0;
  --t-print-head-size: 11px;
  --t-print-head-lh: normal;
  --t-print-head-weight: 400;
  --t-print-head-track: 0;
  --f-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-sans-uk: -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --f-numerals: ui-monospace, "SF Mono", Menlo, monospace;
  --f-numerals-index: ui-monospace, Menlo, monospace;
  --f-print: sans-serif;
  --s-1: 1px;
  --s-1_5: 1.5px;
  --s-2: 2px;
  --s-3: 3px;
  --s-4: 4px;
  --s-5: 5px;
  --s-6: 6px;
  --s-7: 7px;
  --s-8: 8px;
  --s-9: 9px;
  --s-10: 10px;
  --s-11: 11px;
  --s-12: 12px;
  --s-14: 14px;
  --s-16: 16px;
  --s-18: 18px;
  --s-20: 20px;
  --s-22: 22px;
  --s-24: 24px;
  --s-26: 26px;
  --s-28: 28px;
  --s-32: 32px;
  --s-34: 34px;
  --s-36: 36px;
  --s-40: 40px;
  --s-48: 48px;
  --s-56: 56px;
  --s-72: 72px;
  --s-84: 84px;
  --s-88: 88px;
  --s-96: 96px;
  --r-1_5: 1.5px;
  --r-2: 2px;
  --r-3: 3px;
  --r-4: 4px;
  --r-5: 5px;
  --r-6: 6px;
  --r-7: 7px;
  --r-8: 8px;
  --r-10: 10px;
  --r-12: 12px;
  --r-14: 14px;
  --r-16: 16px;
  --r-18: 18px;
  --r-22: 22px;
  --r-24: 24px;
  --r-28: 28px;
  --r-pill: 999px;
  --topbar-height: 48px;
  --control-height: 28px;
  --search-height: 30px;
  --content-width: 860px;
  --bp-phone: 860px;
  --bp-wide: 1400px;
  --measure: 70ch;
  --bp-columns-2: 640px;
  --bp-columns-3: 1000px;
  --bar-clearance: 130px;
  --search-clearance: 110px;
  --search-results-clearance: 120px;
  --head-tools-clearance: 180px;
  --print-margin: 16mm;
  --c-bg: #f2f2f7;
  --c-surface: #ffffff;
  --c-surface-2: #f0eee9;
  --c-fill: rgba(118, 118, 128, 0.12);
  --c-segment: #ffffff;
  --c-text: #1d1d1f;
  --c-body: #3c3c43;
  --c-muted: #6b6b70;
  --c-faint: rgba(60, 60, 67, 0.45);
  --c-border: #e2dfd8;
  --c-sep: rgba(60, 60, 67, 0.29);
  --c-accent: #2f5bd3;
  --c-accent-soft: #e8eefc;
  --c-accent-line: rgba(47, 91, 211, 0.35);
  --c-good: #1c7d45;
  --c-good-soft: #e6f4ec;
  --c-bad: #c2362f;
  --c-bad-soft: #fbeceb;
  --c-warn: #985f00;
  --c-warn-soft: #fbf1dd;
  --c-secondary: rgba(60, 60, 67, 0.6);
  --c-tertiary: rgba(60, 60, 67, 0.45);
  --c-quaternary: rgba(60, 60, 67, 0.3);
  --c-dashed: rgba(60, 60, 67, 0.33);
  --c-caps: #6e6e73;
  --c-snippet: #3c3c43;
  --c-note: rgba(118, 118, 128, 0.08);
  --c-fill-hover: rgba(118, 118, 128, 0.2);
  --c-hairline: rgba(60, 60, 67, 0.29);
  --c-sep-faint: rgba(60, 60, 67, 0.18);
  --c-accent-wash: rgba(47, 91, 211, 0.08);
  --c-on-accent: #ffffff;
  --c-on-accent-fill: rgba(255, 255, 255, 0.22);
  --c-on-colour: #ffffff;
  --c-add: #34c759;
  --c-clear: #8e8e93;
  --c-sheet: #f2f2f7;
  --c-glass: rgba(250, 250, 252, 0.92);
  --c-glass-border: rgba(0, 0, 0, 0.06);
  --c-menu: rgba(250, 250, 252, 0.94);
  --c-bg-fade: rgba(242, 242, 247, 0.85);
  --c-scrim: rgba(0, 0, 0, 0.18);
  --c-scrim-sheet: rgba(0, 0, 0, 0.28);
  --c-print-bg: #ffffff;
  --c-print-text: #000000;
  --c-print-muted: #6e6e73;
  --c-print-line: #8a8a8e;
  --c-print-slot: #eeeeef;
  --c-print-link: #1f3f9c;
  --c-level-a0-ink: #145ab4;
  --c-level-a0-tint: #e5f0fe;
  --c-level-a0-strong: #007aff;
  --c-level-a0-pill: #a6d0ff;
  --c-level-a0-pill-ink: #0b54ad;
  --c-level-a1-ink: #256585;
  --c-level-a1-tint: #ddf2ff;
  --c-level-a1-strong: #32ade6;
  --c-level-a1-pill: #b7e2f6;
  --c-level-a1-pill-ink: #256585;
  --c-level-a2-ink: #14702d;
  --c-level-a2-tint: #dbf8de;
  --c-level-a2-strong: #34c759;
  --c-level-a2-pill: #b8ebc5;
  --c-level-a2-pill-ink: #14702d;
  --c-level-b1-ink: #51670c;
  --c-level-b1-tint: #e8f5d3;
  --c-level-b1-strong: #a8d600;
  --c-level-b1-pill: #e1f1a6;
  --c-level-b1-pill-ink: #51670c;
  --c-level-b2-ink: #735a00;
  --c-level-b2-tint: #faeecd;
  --c-level-b2-strong: #ffcc00;
  --c-level-b2-pill: #ffeda6;
  --c-level-b2-pill-ink: #735a00;
  --c-level-c1-ink: #874c00;
  --c-level-c1-tint: #fdebdb;
  --c-level-c1-strong: #ff9500;
  --c-level-c1-pill: #ffdaa6;
  --c-level-c1-pill-ink: #874c00;
  --c-level-c2-ink: #a32920;
  --c-level-c2-tint: #fee9e6;
  --c-level-c2-strong: #ff3b30;
  --c-level-c2-pill: #ffbab7;
  --c-level-c2-pill-ink: #a0251d;
  --c-level-mark-fill: rgba(118, 118, 128, 0.12);
  --c-level-mark-off: rgba(118, 118, 128, 0.2);
  --c-level-mark-text: #5c5c62;
  --sh-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  --sh-glass: 0 8px 28px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg: #000000;
    --c-surface: #1c1c1e;
    --c-surface-2: #26262a;
    --c-fill: rgba(118, 118, 128, 0.24);
    --c-segment: #636366;
    --c-text: #ececef;
    --c-body: rgba(235, 235, 245, 0.85);
    --c-muted: #9a9aa2;
    --c-faint: rgba(235, 235, 245, 0.4);
    --c-border: #33333a;
    --c-sep: rgba(84, 84, 88, 0.65);
    --c-accent: #7ea2ff;
    --c-accent-soft: #1f2a48;
    --c-accent-line: rgba(126, 162, 255, 0.45);
    --c-good: #5cc98a;
    --c-good-soft: #17301f;
    --c-bad: #ff7a72;
    --c-bad-soft: #3a1d1b;
    --c-warn: #f0b545;
    --c-warn-soft: #3a2c12;
    --c-secondary: rgba(235, 235, 245, 0.6);
    --c-tertiary: rgba(235, 235, 245, 0.45);
    --c-quaternary: rgba(235, 235, 245, 0.3);
    --c-dashed: rgba(235, 235, 245, 0.3);
    --c-caps: rgba(235, 235, 245, 0.55);
    --c-snippet: rgba(235, 235, 245, 0.75);
    --c-note: rgba(118, 118, 128, 0.18);
    --c-fill-hover: rgba(118, 118, 128, 0.36);
    --c-hairline: rgba(84, 84, 88, 0.6);
    --c-sep-faint: rgba(84, 84, 88, 0.6);
    --c-accent-wash: rgba(126, 162, 255, 0.14);
    --c-on-accent: #10131a;
    --c-on-accent-fill: rgba(16, 19, 26, 0.16);
    --c-on-colour: #ffffff;
    --c-add: #34c759;
    --c-clear: #8e8e93;
    --c-sheet: #1c1c1e;
    --c-glass: rgba(40, 40, 44, 0.92);
    --c-glass-border: rgba(255, 255, 255, 0.1);
    --c-menu: rgba(44, 44, 48, 0.94);
    --c-bg-fade: rgba(0, 0, 0, 0.85);
    --c-scrim: rgba(0, 0, 0, 0.5);
    --c-scrim-sheet: rgba(0, 0, 0, 0.28);
    --c-print-bg: #ffffff;
    --c-print-text: #000000;
    --c-print-muted: #6e6e73;
    --c-print-line: #8a8a8e;
    --c-print-slot: #eeeeef;
    --c-print-link: #1f3f9c;
    --c-level-a0-ink: #a8ceff;
    --c-level-a0-tint: #17273c;
    --c-level-a0-strong: #3792fd;
    --c-level-a0-pill: #325f96;
    --c-level-a0-pill-ink: #bedaff;
    --c-level-a1-ink: #73dee9;
    --c-level-a1-tint: #012d31;
    --c-level-a1-strong: #11c8d8;
    --c-level-a1-pill: #1e7a83;
    --c-level-a1-pill-ink: #d3fbff;
    --c-level-a2-ink: #9bdda8;
    --c-level-a2-tint: #152d1a;
    --c-level-a2-strong: #47c86e;
    --c-level-a2-pill: #3a7a4e;
    --c-level-a2-pill-ink: #c6ffd1;
    --c-level-b1-ink: #c2d58a;
    --c-level-b1-tint: #242a0f;
    --c-level-b1-strong: #b6d431;
    --c-level-b1-pill: #66732b;
    --c-level-b1-pill-ink: #ffffff;
    --c-level-b2-ink: #e4c87c;
    --c-level-b2-tint: #2f2509;
    --c-level-b2-strong: #facb39;
    --c-level-b2-pill: #826c2e;
    --c-level-b2-pill-ink: #ffffff;
    --c-level-c1-ink: #feb98b;
    --c-level-c1-tint: #372010;
    --c-level-c1-strong: #fe8c2c;
    --c-level-c1-pill: #955c2d;
    --c-level-c1-pill-ink: #ffe5d5;
    --c-level-c2-ink: #feb5ae;
    --c-level-c2-tint: #3a1d1b;
    --c-level-c2-strong: #f75d59;
    --c-level-c2-pill: #924444;
    --c-level-c2-pill-ink: #ffc8c2;
    --c-level-mark-fill: rgba(118, 118, 128, 0.24);
    --c-level-mark-off: rgba(118, 118, 128, 0.32);
    --c-level-mark-text: #9a9aa2;
    --sh-card: none;
    --sh-glass: 0 8px 28px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}
:root[data-theme="dark"] {
  --c-bg: #000000;
  --c-surface: #1c1c1e;
  --c-surface-2: #26262a;
  --c-fill: rgba(118, 118, 128, 0.24);
  --c-segment: #636366;
  --c-text: #ececef;
  --c-body: rgba(235, 235, 245, 0.85);
  --c-muted: #9a9aa2;
  --c-faint: rgba(235, 235, 245, 0.4);
  --c-border: #33333a;
  --c-sep: rgba(84, 84, 88, 0.65);
  --c-accent: #7ea2ff;
  --c-accent-soft: #1f2a48;
  --c-accent-line: rgba(126, 162, 255, 0.45);
  --c-good: #5cc98a;
  --c-good-soft: #17301f;
  --c-bad: #ff7a72;
  --c-bad-soft: #3a1d1b;
  --c-warn: #f0b545;
  --c-warn-soft: #3a2c12;
  --c-secondary: rgba(235, 235, 245, 0.6);
  --c-tertiary: rgba(235, 235, 245, 0.45);
  --c-quaternary: rgba(235, 235, 245, 0.3);
  --c-dashed: rgba(235, 235, 245, 0.3);
  --c-caps: rgba(235, 235, 245, 0.55);
  --c-snippet: rgba(235, 235, 245, 0.75);
  --c-note: rgba(118, 118, 128, 0.18);
  --c-fill-hover: rgba(118, 118, 128, 0.36);
  --c-hairline: rgba(84, 84, 88, 0.6);
  --c-sep-faint: rgba(84, 84, 88, 0.6);
  --c-accent-wash: rgba(126, 162, 255, 0.14);
  --c-on-accent: #10131a;
  --c-on-accent-fill: rgba(16, 19, 26, 0.16);
  --c-on-colour: #ffffff;
  --c-add: #34c759;
  --c-clear: #8e8e93;
  --c-sheet: #1c1c1e;
  --c-glass: rgba(40, 40, 44, 0.92);
  --c-glass-border: rgba(255, 255, 255, 0.1);
  --c-menu: rgba(44, 44, 48, 0.94);
  --c-bg-fade: rgba(0, 0, 0, 0.85);
  --c-scrim: rgba(0, 0, 0, 0.5);
  --c-scrim-sheet: rgba(0, 0, 0, 0.28);
  --c-print-bg: #ffffff;
  --c-print-text: #000000;
  --c-print-muted: #6e6e73;
  --c-print-line: #8a8a8e;
  --c-print-slot: #eeeeef;
  --c-print-link: #1f3f9c;
  --c-level-a0-ink: #a8ceff;
  --c-level-a0-tint: #17273c;
  --c-level-a0-strong: #3792fd;
  --c-level-a0-pill: #325f96;
  --c-level-a0-pill-ink: #bedaff;
  --c-level-a1-ink: #73dee9;
  --c-level-a1-tint: #012d31;
  --c-level-a1-strong: #11c8d8;
  --c-level-a1-pill: #1e7a83;
  --c-level-a1-pill-ink: #d3fbff;
  --c-level-a2-ink: #9bdda8;
  --c-level-a2-tint: #152d1a;
  --c-level-a2-strong: #47c86e;
  --c-level-a2-pill: #3a7a4e;
  --c-level-a2-pill-ink: #c6ffd1;
  --c-level-b1-ink: #c2d58a;
  --c-level-b1-tint: #242a0f;
  --c-level-b1-strong: #b6d431;
  --c-level-b1-pill: #66732b;
  --c-level-b1-pill-ink: #ffffff;
  --c-level-b2-ink: #e4c87c;
  --c-level-b2-tint: #2f2509;
  --c-level-b2-strong: #facb39;
  --c-level-b2-pill: #826c2e;
  --c-level-b2-pill-ink: #ffffff;
  --c-level-c1-ink: #feb98b;
  --c-level-c1-tint: #372010;
  --c-level-c1-strong: #fe8c2c;
  --c-level-c1-pill: #955c2d;
  --c-level-c1-pill-ink: #ffe5d5;
  --c-level-c2-ink: #feb5ae;
  --c-level-c2-tint: #3a1d1b;
  --c-level-c2-strong: #f75d59;
  --c-level-c2-pill: #924444;
  --c-level-c2-pill-ink: #ffc8c2;
  --c-level-mark-fill: rgba(118, 118, 128, 0.24);
  --c-level-mark-off: rgba(118, 118, 128, 0.32);
  --c-level-mark-text: #9a9aa2;
  --sh-card: none;
  --sh-glass: 0 8px 28px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* The page base; its colours and shadows come from tokens.json (tokens.ts), set before this file */

:root {
  /* The level mark (level-mark.css): a mark's capsule as the pointer rests on it. */
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font: var(--t-body-size)/var(--t-body-lh) var(--f-sans);
  -webkit-font-smoothing: antialiased;
}

/* Chrome's macOS system font places a stress mark (U+0301) beside Cyrillic е and о instead of over them,
   so Ukrainian text skips it; Safari keeps the system font through -apple-system. */
:lang(uk) {
  --f-sans: var(--f-sans-uk);
}
[lang="uk"] {
  font-family: var(--f-sans);
}

button {
  font: inherit;
  color: inherit;
}

/* Switches: the grouping, and the level and variety in their panels */
.seg {
  display: inline-flex;
  background: var(--c-surface-2);
  border-radius: var(--r-8);
  padding: var(--s-2);
}
.seg button {
  border: 0;
  background: transparent;
  padding: var(--s-4) var(--s-10);
  border-radius: var(--r-6);
  font-size: var(--t-caption-size);
  cursor: pointer;
  color: var(--c-muted);
}
.seg button.on {
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--sh-segment);
}
/* Level buttons: each code in its level's colour; levels.css tints the buttons from the lowest level
   up to the chosen one, the levels the page shows, and the chosen one stands out */
.seg button[data-set-level] {
  color: var(--lvl);
  font-weight: var(--t-emphasis-weight);
}
.seg button[data-set-level].on {
  background: var(--level-strong);
  color: var(--c-text);
}

/* Page head: the flag and title, the property line, the actions, the view tabs with the level and
   variety chips; the sidebar head; the home page's head and language cards */

.doc-head {
  margin: var(--s-12) 0 var(--s-22);
}
.title-row {
  display: flex;
  align-items: flex-start;
  gap: var(--s-14);
}
.page-icon {
  flex-shrink: 0;
  font-size: var(--t-home-title-size);
  line-height: var(--t-home-title-lh);
}
.doc .doc-head h1 {
  margin: 0;
  font-size: var(--t-topic-title-size);
  line-height: var(--t-topic-title-lh);
  letter-spacing: var(--t-topic-title-track);
}
.props {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-14);
  margin: var(--s-12) 0 0;
  font-size: var(--t-ui-size);
  color: var(--c-muted);
}
.props .lvl {
  margin: 0;
}
/* A property that opens a page: the track's cheatsheets, a topic's section cheatsheet. */
.props a.prop {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--c-border);
  text-underline-offset: 3px;
}
.props a.prop:hover {
  color: var(--c-text);
  text-decoration-color: currentColor;
}

/* Badges */

.badge {
  display: inline-flex;
  border-radius: var(--r-pill);
  overflow: hidden;
  font-size: var(--t-badge-size);
  font-weight: var(--t-badge-weight);
  line-height: var(--t-badge-lh);
  vertical-align: middle;
  letter-spacing: var(--t-badge-track);
  white-space: nowrap;
}

/* A level badge is one pill, (A1), or two joined halves, (A1][B1): the rounded badge clips its
   halves, and each half writes its level's code in its pill ink (--level-pill-ink) on its pill colour
   (--level-pill), both set per level and theme in levels.css. --badge-pad sizes the halves. */
.lvl {
  margin-left: var(--s-8);
}
.lvl > .half {
  padding: var(--badge-pad, var(--s-1) var(--s-7));
  background: var(--level-pill);
  color: var(--level-pill-ink);
}
.lvl > .half:first-child {
  border-radius: var(--r-pill) 0 0 var(--r-pill);
}
.lvl > .half:last-child {
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
}
.lvl > .half:only-child {
  border-radius: var(--r-pill);
}
.blk-level {
  margin: 0 0 var(--s-6);
}
.blk-level .lvl {
  margin: 0;
}
td .lvl,
li > .lvl,
p > .lvl {
  margin: 0 var(--s-6) 0 0;
}

/* Document */

.doc h1 {
  font-size: var(--t-page-title-size);
  line-height: var(--t-page-title-lh);
  letter-spacing: var(--t-page-title-track);
  margin: 0 0 var(--s-10);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* A table cell with forms of each variety holds a copy per variety; the Variety switch shows one. */
.cell-variety {
  display: block;
}

.doc > blockquote:first-of-type {
  margin: 0 0 var(--s-28);
  padding: 0;
  border: 0;
  font-size: var(--t-lead-size);
  color: var(--c-muted);
}

.doc h2 {
  font-size: var(--t-section-title-size);
  letter-spacing: var(--t-section-title-track);
  margin: var(--s-40) 0 var(--s-12);
  padding-top: var(--s-18);
  border-top: 1px solid var(--c-border);
}

.doc h3 {
  font-size: var(--t-subhead-size);
  margin: var(--s-24) 0 var(--s-8);
}
.doc h4 {
  font-size: var(--t-doc-h4-size);
  margin: var(--s-18) 0 var(--s-6);
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: var(--t-doc-h4-track);
}
.doc h5 {
  font-size: var(--t-caption-size);
  margin: var(--s-14) 0 var(--s-6);
}

.doc p,
.doc ul {
  margin: var(--s-8) 0;
}
.doc ul {
  padding-left: var(--s-20);
}
.doc li {
  margin: var(--s-3) 0;
}
/* Marks (CONVENTIONS.md §12): the form or word a rule is about shows in bold; a sound, a meaning or a
   translation is muted; every other mark reads as its text. */
.doc
  :is(
    [data-mark="target"],
    [data-mark="aux"],
    [data-mark="subj"],
    [data-mark="verb"],
    [data-mark="ending"],
    [data-mark="stress"],
    [data-mark="term"],
    [data-mark="letter"],
    [data-mark="signal"]
  ) {
  color: var(--c-accent);
  font-weight: var(--t-mark-strong-weight);
}
.doc :is([data-mark="sound"], [data-mark="gloss"], [data-mark="l1"], [data-mark="translation"]) {
  color: var(--c-muted);
}
.doc a {
  color: var(--c-accent);
}
/* A link to a topic without a page yet. */
.doc .missing {
  color: var(--c-muted);
  text-decoration: underline dotted;
  cursor: help;
}
.doc code {
  font: var(--t-code-size) var(--f-mono);
  background: var(--c-surface-2);
  padding: var(--s-1) var(--s-5);
  border-radius: var(--r-4);
}

/* Tables and cheatsheet pages */

.table-wrap {
  overflow-x: auto;
  margin: var(--s-12) 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-10);
  background: var(--c-surface);
  box-shadow: var(--sh-card);
}

.doc table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--t-body-small-size);
}
.doc th,
.doc td {
  padding: var(--s-7) var(--s-12);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-border);
}
.doc th {
  background: var(--c-surface-2);
  font-size: var(--t-table-head-size);
  font-weight: var(--t-table-head-weight);
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: var(--t-table-head-track);
}
.doc tr:last-child td {
  border-bottom: 0;
}
.doc td.key {
  font-weight: var(--t-key-weight);
}
.doc th.group,
.doc th.group-start {
  border-left: 1px solid var(--c-border);
}
.doc thead tr:first-child th[rowspan],
.doc th.group {
  border-bottom: 1px solid var(--c-border);
}
.doc thead th[rowspan] {
  vertical-align: middle;
}
/* Tables with merged cells list one word per row: tight rows keep each list together. */
.doc table.compact :is(th, td):not(.gap) {
  padding-left: var(--s-8);
  padding-right: var(--s-8);
}
.doc table.compact td.center {
  white-space: nowrap;
}
.doc table.compact td {
  padding-top: var(--s-2);
  padding-bottom: var(--s-2);
  line-height: var(--t-frame-body-lh);
}
/* Every column after the first has a line on its left; a merged cell at the bottom edge leaves it to the box. */
.doc table.compact td:not(.key),
.doc table.compact thead tr + tr th,
.doc table.compact th.group {
  border-left: 1px solid var(--c-border);
}
.doc table.compact td.end {
  border-bottom: 0;
}
/* Gaps: an empty column between groups, an empty row between blocks; their edges close the boxes around them. */
.doc :is(th, td).gap,
.doc tr.gap-row td {
  padding: 0;
  background: var(--c-bg);
}
.doc :is(th, td).gap {
  width: 12px;
  min-width: 12px;
  border-top: 0;
  border-bottom: 0;
  border-left: 1px solid var(--c-border);
  border-right: 1px solid var(--c-border);
}
.doc tr.gap-row td {
  height: 12px;
  border-left: 0;
  border-right: 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.doc :is(th, td).center {
  text-align: center;
  vertical-align: middle;
}

.doc table.errors td:nth-child(1) {
  color: var(--c-bad);
  background: var(--c-bad-soft);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--c-bad) 45%, transparent);
}
.doc table.errors td:nth-child(2) {
  background: var(--c-good-soft);
}

.empty {
  margin-top: var(--s-40);
  padding: var(--s-28);
  border: 1px dashed var(--c-border);
  border-radius: var(--r-12);
  color: var(--c-muted);
  text-align: center;
}

/* Sheets */

.sheet h2 {
  font-size: var(--t-sheet-title-size);
}
.sheet h3 {
  font-size: var(--t-lead-size);
  margin-top: var(--s-28);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--c-border);
}

@media (max-width: 860px) {
  /* Panels open as sheets along the bottom */
  .panel[popover],
  .panel[popover]:not([style*="top"]) {
    inset: auto 0 0;
    width: auto;
    max-width: none;
    height: auto;
    margin: 0;
    padding: var(--s-16) var(--s-16) calc(var(--s-22) + env(safe-area-inset-bottom));
    border-radius: var(--r-16) var(--r-16) 0 0;
    box-shadow: var(--sh-sheet);
  }
  .panel[popover]::backdrop {
    background: var(--c-scrim-sheet, rgba(0, 0, 0, 0.28));
  }
  .panel .seg {
    max-width: 100%;
    overflow-x: auto;
  }
  .page-icon {
    font-size: var(--t-topic-title-phone-size);
  }
  .doc .doc-head h1 {
    font-size: var(--t-topic-title-phone-size);
  }
}

/* Print */

@media print {
  @page {
    size: A4;
    margin: var(--print-margin);
  }

  .rail {
    display: none;
  }
  body {
    background: var(--c-print-bg);
    font-size: var(--t-print-body-size);
  }
  .table-wrap {
    box-shadow: none;
    break-inside: avoid;
  }
  .doc h2,
  .doc h3 {
    break-after: avoid;
  }
  .doc {
    max-width: none;
  }
  .lanes {
    display: block;
  }
}

/* Static pages */

.seg a {
  display: inline-block;
  padding: var(--s-4) var(--s-10);
  border-radius: var(--r-6);
  font-size: var(--t-caption-size);
  color: var(--c-muted);
  text-decoration: none;
}

.seg a.on {
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--sh-segment);
}

.doc h2 a,
.doc h3 a {
  color: inherit;
  text-decoration: none;
}
.doc h2 a:hover,
.doc h3 a:hover {
  color: var(--c-accent);
}

/* A view whose content all sits above the level filter shows its note instead */
.filter-empty {
  display: none;
  margin: var(--s-28) 0;
  padding: var(--s-20) var(--s-24);
  border: 1px dashed var(--c-border);
  border-radius: var(--r-12);
  color: var(--c-muted);
}
.filter-empty p {
  margin: 0 0 var(--s-12);
}
.filter-empty button {
  padding: var(--s-6) var(--s-14);
  border: 1px solid var(--c-border);
  border-radius: var(--r-8);
  background: var(--c-surface);
  color: var(--c-accent);
  font: inherit;
  font-weight: var(--t-emphasis-weight);
  cursor: pointer;
}

/* Order: by category or along the study path (client.ts); the lists of the other order hide */
html:not([data-order="path"]) [data-order="path"],
html[data-order="path"] [data-order="categories"] {
  display: none;
}
/* On the study path the menu highlights the step being read alone (client.ts) */
.nav-list[data-order="path"] a.on:not([aria-current="step"]) {
  background: none;
  color: var(--c-text);
  font-weight: inherit;
}

/* Phones: keep the page at screen width; wide tables scroll inside their box */

@media (max-width: 860px) {
  .doc h1 {
    font-size: var(--t-page-title-phone-size);
    overflow-wrap: anywhere;
  }
  .doc p,
  .doc li {
    overflow-wrap: anywhere;
  }
}

/* A topic at a single level shows its level once, in the header */
.doc.one-level .sections > section > h2 .lvl {
  display: none;
}

/* Lanes: a page reads in one 820px column; once the content area is 1200px wide, its lanes take
   the full width and hold as many columns of at least --lane as fit. Each block goes, in order, to
   the top of the shortest column (grid-lanes; client.ts lays out the same placement on a grid of
   4px rows where grid-lanes is missing). --lane-gap spaces blocks within a column. */
.doc {
  max-width: 820px;
}
.lanes {
  --lane: 560px;
  --lane-gap: 0px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--lane)), 1fr));
  gap: var(--lane-gap) var(--lane-col-gap, var(--s-48));
  align-items: start;
}
.lanes.js-lanes {
  grid-auto-rows: 4px;
  row-gap: 0;
}
@supports (display: grid-lanes) {
  .lanes {
    display: grid-lanes;
  }
}
@container (min-width: 1200px) {
  .doc:has(.lanes) {
    max-width: none;
  }
}
@keyframes lanes-shown {
  to {
    visibility: visible;
  }
}

/* Topic rail: On this page and Up next, beside the content once the window is 1400px wide */
.rail {
  display: none;
}
@media (min-width: 1400px) {
  .rail {
    display: block;
    position: sticky;
    top: 53px;
    height: calc(100vh - 53px);
    overflow-y: auto;
    padding: var(--s-28) var(--s-20) var(--s-40) 0;
  }
}
.rail h4 {
  margin: 0 0 var(--s-8);
  padding: 0 var(--s-12);
  font-size: var(--t-rail-head-size);
  font-weight: var(--t-rail-head-weight);
  color: var(--c-muted);
}
.next {
  display: block;
  padding: var(--s-14) var(--s-16);
  border-radius: var(--r-14);
  background: var(--c-surface-2);
  color: var(--c-text);
  text-decoration: none;
}
.next:hover {
  box-shadow: inset 0 0 0 1px var(--c-border);
}
.next strong {
  display: block;
  margin-bottom: var(--s-4);
  font-size: var(--t-tag-line-size);
  line-height: var(--t-tag-line-lh);
}
.next .summary {
  display: block;
  margin-bottom: var(--s-10);
  font-size: var(--t-caption-size);
  line-height: var(--t-caption-lh);
  color: var(--c-muted);
}
.sections > .part {
  scroll-margin-top: 72px;
}

/* The frame: pages that draw their own body (layout.ts body, html[data-frame]) sit on a grouped background in
   the iOS greys, with glass buttons over them and an up button to the parent page in the top corner */

html[data-frame] body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: var(--t-frame-body-size)/var(--t-frame-body-lh) var(--f-sans);
}
/* Resets below every page's own rules, which set their margins and colours by class */
:where(html[data-frame]) :where(h1, h2, p) {
  margin: 0;
}
:where(html[data-frame]) a {
  color: var(--c-accent);
  text-decoration: none;
}
.glass {
  background: var(--c-glass);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  backdrop-filter: blur(30px) saturate(1.6);
  border: 0.5px solid var(--c-glass-border);
  box-shadow: var(--sh-glass);
}
.pg-up {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  left: max(20px, env(safe-area-inset-left));
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  color: var(--c-text) !important;
}
.pg-up:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* The missing page (pages/home.ts notFoundPage): a 404 whose 0 is the languages glyph, the heading, the
   title in the other languages as a soft line, and a chip per language leading to its home page */
html[data-page="404"] {
  --nf-d: var(--t-not-found-digits-size);
}
.nf-main {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: var(--s-88) var(--s-32) var(--s-56);
  text-align: center;
}
.nf-num {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  line-height: 1;
  transform: rotate(-3deg);
}
.nf-four {
  display: block;
  font-size: var(--nf-d);
  font-weight: var(--t-not-found-digits-weight);
  letter-spacing: var(--t-not-found-digits-track);
  line-height: 1;
}
.nf-zero {
  position: relative;
  top: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: calc(var(--nf-d) * 0.72);
  height: calc(var(--nf-d) * 0.72);
  margin: 0 calc(var(--nf-d) * 0.03);
  border: calc(var(--nf-d) * 0.1224) solid var(--c-accent);
  border-radius: var(--r-pill);
}
.nf-zero svg {
  display: block;
  width: calc(var(--nf-d) * 0.36);
  height: calc(var(--nf-d) * 0.36);
}
.nf-heading {
  margin-top: var(--s-26) !important;
  font-size: var(--t-page-heading-size);
  line-height: var(--t-page-heading-lh);
  font-weight: var(--t-page-heading-weight);
  letter-spacing: var(--t-page-heading-track);
}
.nf-others {
  max-width: 640px;
  margin-top: var(--s-14) !important;
  font-size: var(--t-others-line-size);
  line-height: var(--t-others-line-lh);
  color: var(--c-muted);
}
.nf-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-8);
  max-width: 900px;
  margin-top: var(--s-28);
}
.nf-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  padding: var(--s-7) var(--s-14) var(--s-7) var(--s-8);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-text) !important;
  font-size: var(--t-subheadline-size);
}
.nf-chip:hover {
  filter: brightness(0.96);
}
.nf-chip b {
  padding: var(--s-2) var(--s-7);
  border-radius: var(--r-pill);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-size: var(--t-chip-count-size);
  font-weight: var(--t-chip-count-weight);
  letter-spacing: var(--t-chip-count-track);
}
.nf-chip.here {
  background: var(--c-accent);
  color: var(--c-on-accent) !important;
}
.nf-chip.here b {
  background: var(--c-on-accent-fill);
  color: var(--c-on-accent);
}
.nf-chip.here:hover {
  filter: brightness(1.08);
}
.nf-chip:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  html[data-page="404"] {
    --nf-d: var(--t-not-found-digits-phone-size);
  }
  .nf-main {
    padding: var(--s-96) var(--s-20) var(--s-32);
  }
  .nf-others {
    font-size: var(--t-others-line-phone-size);
    line-height: var(--t-others-line-phone-lh);
  }
  .nf-chips {
    gap: var(--s-7);
  }
  .nf-chip {
    font-size: var(--t-body-small-size);
  }
}

/* The narrowest phones (375px and below): the 404 and the chips shrink so the page keeps to one screen */
@media (max-width: 400px) {
  html[data-page="404"] {
    --nf-d: var(--t-not-found-digits-small-size);
  }
  .nf-main {
    padding: var(--s-84) var(--s-16) var(--s-24);
  }
  .nf-heading {
    margin-top: var(--s-20) !important;
    font-size: var(--t-page-heading-small-size);
  }
  .nf-others {
    margin-top: var(--s-10) !important;
    font-size: var(--t-others-line-small-size);
    line-height: var(--t-others-line-small-lh);
  }
  .nf-chips {
    gap: var(--s-6);
    margin-top: var(--s-20);
  }
  .nf-chip {
    gap: var(--s-6);
    padding: var(--s-5) var(--s-12) var(--s-5) var(--s-6);
    font-size: var(--t-caption-size);
  }
  .nf-chip b {
    font-size: var(--t-chip-count-small-size);
    padding: var(--s-2) var(--s-6);
  }
}

/* The Home (pages/home.ts) in the frame (frame.css): the brand and a card per language to learn: its flag and name,
   "Up to" with its top level, and the "Explained in" line (xl-line) */
html[data-frame] [hidden] {
  display: none !important;
}
html[data-page="home"] a {
  color: inherit;
  text-decoration: none;
}

/* The Home and the course index span the window, 20px from each side */
.hm-main {
  padding: var(--s-20) var(--s-20) var(--s-40);
}
.hm-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  height: 44px;
  margin-bottom: var(--s-12);
  font-size: var(--t-brand-size);
  font-weight: var(--t-brand-weight);
  letter-spacing: var(--t-brand-track);
}
.hm-brand svg {
  display: block;
  border-radius: var(--r-7);
}

/* Courses: a card per language to learn; its name is a link stretched over the whole card, the "Explained in" line above it */
.hm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: var(--s-16);
  align-items: start;
}
.hm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-14);
  padding: var(--s-18);
  border-radius: var(--r-22);
  background: var(--c-surface);
}
.hm-course {
  display: flex;
  align-items: center;
  gap: var(--s-12);
}
.hm-course-a {
  display: flex;
  flex-grow: 1;
  align-items: center;
  gap: var(--s-12);
  min-width: 0;
  color: var(--c-text);
}
.hm-flag {
  font-size: var(--t-flag-size);
  line-height: 1;
}
.hm-name {
  margin: 0;
  flex-grow: 1;
  min-width: 0;
  font-size: var(--t-card-name-size);
  font-weight: var(--t-card-name-weight);
  letter-spacing: var(--t-card-name-track);
}
.hm-course-a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-22);
}
.hm-upto {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--s-6);
  font-size: var(--t-up-to-size);
  line-height: var(--t-up-to-lh);
  font-weight: var(--t-up-to-weight);
  color: var(--c-muted);
  white-space: nowrap;
}
.hm-pill {
  --badge-pad: 0 var(--s-7);
  margin: 0;
  font-size: var(--t-pill-size);
  font-weight: var(--t-pill-weight);
}
.hm-row .lvm {
  flex-shrink: 0;
  margin: 0;
}
/* The "Explained in" line (xl-line, languages-lines.css) sits above the card's link */
.hm-explained {
  position: relative;
  z-index: 1;
}
.hm-course-a:focus-visible {
  outline: none;
}
.hm-course-a:focus-visible::after {
  outline: 2px solid var(--c-accent);
  outline-offset: -2px;
}
.hm-row:focus-visible,
.hm-close:focus-visible,
.hm-more:focus-visible,
.hm-clear:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}
/* Courses none of the reader's languages explains sit under their own heading (client-languages-lines.ts); a search
   leaves them out */
.hm-home .xl-other .hm-grid {
  margin-top: 0;
}
html.hm-query .hm-home .xl-other {
  display: none;
}
/* Close ends a search, so the field carries no clear button of its own */
.hm-home .hm-clear {
  display: none;
}

/* The Home's search results (pages/home.ts, client-home.ts): "Topics · N" under the filters, then the results in one
   card; the view for no results, with four topics to try in the same card. */
.hm-heading {
  margin: 0 0 var(--s-4);
  font-size: var(--t-caps-size);
  line-height: var(--t-caps-lh);
  font-weight: var(--t-caps-weight);
  letter-spacing: var(--t-caps-track);
  text-transform: uppercase;
  color: var(--c-muted);
}

.hm-rows {
  border-radius: var(--r-22);
  background: var(--c-surface);
  overflow: hidden;
}
/* A result: its title a link over the whole row, its level mark a button above it, its caption and its lead */
.hm-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-12) var(--s-16);
}
.hm-row + .hm-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  height: 0.5px;
  background: var(--c-sep-faint);
}
.hm-row:hover {
  background: var(--c-fill);
}
.hm-row-head {
  display: flex;
  align-items: center;
  gap: var(--s-8);
}
.hm-row-a {
  flex-grow: 1;
  min-width: 0;
  font-size: var(--t-subheadline-strong-size);
  line-height: var(--t-subheadline-strong-lh);
  font-weight: var(--t-subheadline-strong-weight);
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hm-row-a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.hm-row .lvm-b {
  position: relative;
  z-index: 1;
}
/* A result's mark shows every level its topic holds, whatever level the filter stops at */
.hm-row .lvm > i.on {
  opacity: 1 !important;
}
.hm-row-flag {
  margin-right: var(--s-8);
}
.hm-row-cap,
.hm-row-text {
  font-size: var(--t-footnote-size);
  line-height: var(--t-footnote-lh);
  color: var(--c-muted);
}
.hm-row-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hm-row-text b {
  font-weight: var(--t-bold-weight);
  color: var(--c-text);
}
/* No results: centred under the filters, the query named, then "Try one of these" over four topics */
.hm-none {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-8);
  max-width: 420px;
  margin: var(--s-56) auto 0;
  padding: 0 var(--s-20);
  text-align: center;
}
.hm-none[hidden] {
  display: none;
}
.hm-none-i {
  display: block;
  margin-bottom: var(--s-6);
  color: var(--c-muted);
}
.hm-none-t {
  margin: 0;
  font-size: var(--t-state-title-size);
  line-height: var(--t-state-title-lh);
  font-weight: var(--t-state-title-weight);
}
.hm-none-s {
  margin: 0;
  font-size: var(--t-subheadline-size);
  line-height: var(--t-subheadline-lh);
  color: var(--c-muted);
}
.hm-sugg {
  margin-top: var(--s-40);
}
.hm-sugg .hm-heading {
  margin-bottom: var(--s-12);
}
@media (min-width: 861px) {
  /* On a wide screen a result has a 17px title that wraps beside its flag, a 15px lead in the body colour, the hit on a soft accent */
  .hm-row {
    gap: var(--s-5);
    padding: var(--s-14) var(--s-16);
  }
  .hm-row-a {
    display: flex;
    align-items: flex-start;
    font-size: var(--t-row-title-size);
    line-height: var(--t-row-title-lh);
    white-space: normal;
    overflow: visible;
  }
  .hm-row-flag {
    flex-shrink: 0;
  }
  .hm-row-text {
    font-size: var(--t-snippet-size);
    line-height: var(--t-snippet-lh);
    color: var(--c-snippet);
  }
  .hm-row-text b {
    padding: 0 var(--s-1);
    border-radius: var(--r-4);
    background: color-mix(in srgb, var(--c-accent) 10%, transparent);
    font-weight: var(--t-mark-strong-weight);
  }
}

/* The filters of the Home's search (search-filters.ts, client-search-filters.ts): chips 34px high on the fill,
   wrapping onto a second line when needed; a chosen one fills with the accent and shows ✕ in place of its chevron;
   a chip's menu opens under it. */
.hm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8);
  margin: 0 0 var(--s-16);
}
.hm-fchip {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--s-5);
  height: 34px;
  padding: 0 var(--s-12);
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-fill);
  color: var(--c-text);
  font: inherit;
  font-size: var(--t-subheadline-size);
  white-space: nowrap;
  cursor: pointer;
}
.hm-fchip[hidden] {
  display: none;
}
.hm-fchip-l {
  display: inline-flex;
  align-items: center;
  gap: var(--s-5);
}
.hm-fchip[aria-pressed="true"] {
  background: var(--c-accent);
  color: var(--c-on-colour);
}
.hm-fchip-clear,
.hm-fchip[aria-pressed="true"] .hm-fchip-open {
  display: none;
}
.hm-fchip[aria-pressed="true"] .hm-fchip-clear {
  display: block;
}
.hm-fmenu {
  right: auto;
  width: 280px;
}
.hm-fmenu a.ix-item {
  color: inherit;
  text-decoration: none;
}

/* The Home's toolbar (pages/home.ts, client-home.ts) */
/* The toolbar: glass on its controls, the content solid */
.hm-bar {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: var(--s-10);
}
.hm-search {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  min-width: 0;
  width: 260px;
  height: 44px;
  margin: 0;
  padding: 0 var(--s-16);
  border-radius: var(--r-pill);
  color: var(--c-muted);
  font-size: var(--t-lead-size);
  transition: width 0.2s ease;
}
.hm-search input {
  flex: 1;
  width: 0;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--c-text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.hm-search input::placeholder {
  color: var(--c-muted);
  opacity: 1;
}
.hm-search input::-webkit-search-cancel-button,
.hm-search input::-webkit-search-decoration {
  -webkit-appearance: none;
}
.hm-clear {
  display: flex;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hm-clear circle {
  fill: var(--c-clear);
}
.hm-clear path {
  stroke: var(--c-on-colour);
}
.hm-group {
  position: relative;
  display: flex;
  height: 44px;
  border-radius: var(--r-pill);
  color: var(--c-text);
}
.hm-close {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--r-pill);
  color: var(--c-text);
  cursor: pointer;
}
.hm-searching .hm-search {
  width: 420px;
  max-width: calc(100vw - 100px);
}
.hm-searching .hm-group {
  display: none;
}
.hm-searching .hm-close {
  display: flex;
}

/* The Home on a wide screen (pages/home.ts): the header line holds the brand, the search centred up to 520 wide and
   the group of 文A and More, which is fixed at the top right; the cards stand in two columns, three from 1280px; the results in a column of
   664px centred under the field */
@media (min-width: 1024px) {
  .hm-home {
    max-width: 1120px;
    margin: 0 auto;
    padding: var(--s-20) var(--s-32) var(--s-56);
  }
  .hm-home .hm-brand {
    margin: 0;
  }
  .hm-home .hm-main {
    padding: 0;
  }
  .hm-home .hm-head {
    display: flex;
    align-items: center;
    gap: var(--s-24);
    height: 48px;
    padding-right: var(--head-tools-clearance);
  }
  .hm-home .hm-bar {
    position: static;
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
  .hm-home .hm-mid {
    display: flex;
    width: 100%;
    max-width: 520px;
    gap: var(--s-12);
  }
  .hm-home .hm-search,
  html.hm-searching .hm-home .hm-search {
    flex: 1;
    width: auto;
    max-width: none;
  }
  .hm-home .hm-close {
    width: 50px;
    height: 44px;
  }
  .hm-home :is(.ix-search-open, .hm-langs-solo) {
    display: none;
  }
  .hm-home .hm-group {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 30;
    height: 44px;
  }
  html.hm-searching .hm-home .hm-group {
    display: flex;
  }
  html.hm-query .hm-home .hm-main {
    padding-top: var(--s-24);
  }
  .hm-home .hm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: var(--s-28);
  }
  .hm-home .hm-results {
    max-width: 664px;
    margin: 0 auto;
  }
  .hm-home .hm-none {
    margin-top: var(--s-72);
  }
}
@media (min-width: 1280px) {
  .hm-home .hm-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* The Home on phones and tablets narrower than 1024px (pages/home.ts): the brand heads the page with More, a round glass
   button, at the row's right end; the bar floats at the bottom, Search at the left and 文A at the right, the field and
   Close taking the bar while searching, over a fade of the page's colour; a query takes the brand off the page and the
   filters lead it */
@media (max-width: 1023px) {
  .hm-home {
    max-width: 1120px;
    margin: 0 auto;
    padding: var(--s-16) var(--s-20) var(--bar-clearance);
  }
  .hm-home .hm-head {
    display: flex;
    align-items: center;
  }
  .hm-home .hm-brand {
    margin: 0;
  }
  .hm-home .hm-main {
    padding: 0;
  }
  .hm-home .hm-grid {
    margin-top: var(--s-20);
  }
  .hm-home .hm-bar {
    top: auto;
    left: 16px;
    right: 16px;
    bottom: max(12px, calc(env(safe-area-inset-bottom) + 8px));
    justify-content: space-between;
  }
  .hm-home .hm-mid {
    display: none;
    flex: 1;
    min-width: 0;
    gap: var(--s-10);
  }
  .hm-home .hm-search {
    flex: 1;
    width: auto;
    height: 48px;
  }
  .hm-home .hm-close {
    width: 52px;
    height: 48px;
  }
  .hm-home .hm-tools {
    margin: 0 calc(-1 * var(--s-4)) 0 auto;
    width: 44px;
  }
  .hm-home .hm-tools .hm-langs {
    display: none;
  }
  .hm-home .hm-tools .hm-more {
    width: 44px;
  }
  .hm-home .ix-search-open {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 48px;
    padding: 0;
    border-radius: var(--r-pill);
    color: var(--c-text);
    cursor: pointer;
  }
  html.hm-searching .hm-home .hm-mid {
    display: flex;
  }
  html.hm-searching .hm-home .hm-group,
  html.hm-searching .hm-home .hm-langs-solo,
  html.hm-searching .hm-home .ix-search-open {
    display: none;
  }
  html.hm-searching .hm-home .hm-bar {
    bottom: max(30px, calc(var(--hm-kb, 0px) + 10px));
  }
  html.hm-searching .hm-home .hm-main {
    padding-bottom: calc(var(--hm-kb, 0px) + var(--search-clearance));
  }
  .hm-home::after {
    content: "";
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    height: 130px;
    background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--c-bg) 85%, transparent) 60%);
    pointer-events: none;
  }
  /* A query takes the page's brand off a phone, the filters leading the page; no results sit 72px under them */
  html.hm-query .hm-home .hm-brand {
    display: none;
  }
  html.hm-query .hm-home .hm-main {
    padding-top: 0;
  }
  html.hm-query .hm-home .hm-none {
    margin-top: var(--s-72);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-search {
    transition: none;
  }
}

/* A course (pages/track.ts, pages/topic.ts) in the frame: its links, the head of the topics column, the grouping
   and the headings of the topics' lists. The column's frame is track-topic.css, its rows track-rows.css */
html:is([data-page="track"], [data-page="topic"]) a {
  color: inherit;
  text-decoration: none;
}

/* The head (course-column.ts): the toolbar line (Home, Level and Group as icon buttons), the course's title on its own
   line, "66 topics · Explained in: English ›". A phone: Home, the title and the count share a row, the line under it
   (track-phone.css). While the field searches, the toolbar line gives way: Home beside the title, the count out */
.cl-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "home . tools"
    "name name name"
    "line line line";
  align-items: center;
}
.cl-home,
.cl-back {
  grid-area: home;
}
.cl-head :is(.cl-back, .cl-topic, .cl-count) {
  display: none;
}
.cl-tools {
  grid-area: tools;
  height: 44px;
}
.cl-name {
  grid-area: name;
  display: flex;
  align-items: center;
  min-width: 0;
  margin: var(--s-16) 0 0;
  font-size: var(--t-course-name-size);
  line-height: var(--t-course-name-lh);
  font-weight: var(--t-course-name-weight);
  letter-spacing: var(--t-course-name-track);
}
.cl-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ix-flag {
  margin-right: var(--s-8);
}
.cl-topic {
  grid-area: name;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: var(--t-state-title-size);
  line-height: var(--t-state-title-lh);
  font-weight: var(--t-state-title-weight);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cl-line {
  grid-area: line;
  margin: var(--s-4) 0 0;
  font-size: var(--t-subheadline-size);
  line-height: var(--t-subheadline-lh);
  color: var(--c-muted);
}
.cl-line .xl-line {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cl-line .xl-line b {
  font-weight: var(--t-emphasis-weight);
  color: var(--c-text);
}
.cl-line .xl-line::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: var(--cl-chev, var(--s-8));
  vertical-align: -2px;
  background: var(--c-faint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5L6.5 7l-5 5.5'/%3E%3C/svg%3E")
    center / 8px 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5L6.5 7l-5 5.5'/%3E%3C/svg%3E")
    center / 8px 14px no-repeat;
}
.cl-line .xl-line:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}
.ix-count {
  flex-shrink: 0;
  font-size: var(--t-subheadline-size);
  line-height: var(--t-subheadline-lh);
  color: var(--c-muted);
}

/* The grouping: the list of the chosen order shows */
.ix-flow[data-order="path"],
html[data-order="path"] .ix-flow[data-order="categories"] {
  display: none;
}
html[data-order="path"] .ix-flow[data-order="path"] {
  display: block;
}
.ix-sec {
  break-inside: avoid;
  margin-bottom: var(--s-28);
}
.ix-h {
  display: flex;
  align-items: baseline;
  gap: var(--s-10);
  margin: 0 0 var(--s-8) var(--s-20);
  font-size: var(--t-section-heading-size);
  line-height: var(--t-section-heading-lh);
  font-weight: var(--t-section-heading-weight);
  letter-spacing: var(--t-section-heading-track);
  break-after: avoid;
}
.ix-ht {
  flex-grow: 1;
  min-width: 0;
}
.ix-num {
  margin-right: var(--s-10);
  font: var(--t-section-number-weight) var(--t-section-number-size) var(--f-numerals-index);
  letter-spacing: var(--t-section-number-track);
  color: var(--c-muted);
}
.ix-sec-n {
  font-weight: inherit;
}

/* A course's topics: inset lists, a row per topic with its title and a chevron (track-parts.ts); the topic the page
   shows is tinted, its title in the accent colour */
.ix-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: var(--r-22);
  background: var(--c-surface);
  overflow: hidden;
}
.ix-rows li {
  position: relative;
}
.ix-rows li + li::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 20px;
  height: 0.5px;
  background: var(--c-sep);
}
.ix-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-10);
  min-height: 52px;
  box-sizing: border-box;
  padding: 0 var(--s-16) 0 var(--s-20);
}
/* The topic's link covers the row */
.ix-cover {
  display: flex;
  flex-grow: 1;
  min-width: 0;
  color: inherit;
}
.ix-cover::after {
  content: "";
  position: absolute;
  inset: 0;
}
.ix-row:has(.ix-cover:hover) {
  background: var(--c-fill);
}
.ix-cover:focus-visible,
.ix-up:focus-visible,
.ix-btn:focus-visible,
.ix-item:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}
.ix-name {
  flex-grow: 1;
  min-width: 0;
  padding: var(--s-14) 0;
  font-size: var(--t-row-title-size);
  line-height: var(--t-row-title-lh);
  letter-spacing: var(--t-row-title-track);
}
.ix-chev {
  flex-shrink: 0;
  color: var(--c-faint);
}
/* Show more (track-more.ts): the last row of a list the chosen level partly hides, a topic row tall, its count in the
   accent colour and the next level's pill at the end; the level filter shows the row of the level chosen (levels.css) */
.ix-more,
.ix-sec-more {
  display: none;
}
.ix-sec-more {
  break-inside: avoid;
  margin-bottom: var(--s-28);
}
.ix-more-b {
  display: flex;
  width: 100%;
  align-items: center;
  gap: var(--s-10);
  box-sizing: border-box;
  min-height: 52px;
  padding: 0 var(--s-16) 0 var(--s-20);
  border: 0;
  background: transparent;
  color: var(--c-accent);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ix-more-b:hover {
  background: var(--c-fill);
}
.ix-more-b:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: -2px;
}
.ix-more-t {
  flex-grow: 1;
  min-width: 0;
  padding: var(--s-14) 0;
  font-size: var(--t-row-title-size);
  line-height: var(--t-row-title-lh);
  letter-spacing: var(--t-row-title-track);
}
.ix-more .badge {
  --badge-pad: 0 var(--s-7);
  margin: 0;
  font-size: var(--t-pill-size);
  font-weight: var(--t-pill-weight);
  line-height: var(--t-pill-lh);
}
.ix-more .lvl > .half {
  opacity: 1 !important;
}
.ix-rows li[data-current] .ix-row {
  background: color-mix(in srgb, var(--c-accent) 8%, var(--c-surface));
}
.ix-rows li[data-current] .ix-name {
  color: var(--c-accent);
  font-weight: var(--t-emphasis-weight);
}

/* A course's up link, toolbar buttons and menus (course-column.ts, track-parts.ts) */
/* The up link: a glass circle starting the head (track.css) */
.ix-up {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  color: var(--c-text);
}

/* The toolbar's own buttons beside the Home's: the level and the variety, in the group's style */
.ix-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-6);
  height: 100%;
  padding: 0 var(--s-14);
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: var(--t-lead-size);
  white-space: nowrap;
  cursor: pointer;
}

/* Menus: glass, radius 22, grown from the toolbar (below it from 1024px) */
.ix-menu {
  position: fixed;
  inset: auto;
  top: 74px;
  right: 20px;
  box-sizing: border-box;
  width: 320px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 100px);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0.5px solid var(--c-glass-border);
  border-radius: var(--r-22);
  background: var(--c-menu);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  backdrop-filter: blur(40px) saturate(1.8);
  box-shadow: var(--sh-menu);
  color: var(--c-text);
}
.ix-menu-variety {
  width: 240px;
}
.ix-hint {
  margin: 0;
  padding: var(--s-12) var(--s-16) var(--s-10) var(--s-40);
  font-size: var(--t-row-sub-size);
  line-height: var(--t-row-sub-lh);
  color: var(--c-secondary);
}
.ix-band {
  height: 8px;
  background: var(--c-fill);
}
.ix-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-10);
  width: 100%;
  box-sizing: border-box;
  padding: var(--s-11) var(--s-16) var(--s-11) var(--s-12);
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ix-item:hover {
  background: var(--c-fill);
}
.ix-hint + .ix-item::before,
.ix-item + .ix-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 0.5px;
  background: var(--c-sep);
}
.ix-tick {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  width: 18px;
  visibility: hidden;
}
.ix-item[aria-checked="true"] .ix-tick {
  visibility: visible;
}
.ix-text {
  flex-grow: 1;
  min-width: 0;
}
.ix-title {
  display: block;
  font-size: var(--t-row-title-size);
  line-height: var(--t-row-title-lh);
  letter-spacing: var(--t-row-title-track);
}
.ix-sub {
  display: block;
  margin-top: var(--s-1);
  font-size: var(--t-row-sub-size);
  line-height: var(--t-row-sub-lh);
  color: var(--c-secondary);
}
.ix-item .badge {
  --badge-pad: 0 var(--s-7);
  flex-shrink: 0;
  margin: 0;
  font-size: var(--t-pill-size);
  font-weight: var(--t-pill-weight);
  line-height: var(--t-pill-lh);
}
.ix-fade {
  display: none;
}

/* A level the course or topic lacks */
.ix-item[data-absent] .ix-title {
  color: var(--c-muted);
}
.ix-item[data-absent] .badge {
  opacity: 0.55;
}

/* Group by: a heading and the two groupings, under the head's toolbar line (at the bar's right while the field searches) */
.ix-menu-group {
  top: 72px;
  right: auto;
  left: 20px;
  width: 240px;
  padding: var(--s-4) 0;
}
html.hm-searching .ix-menu-group {
  right: 20px;
  left: auto;
}
.ix-menu-h {
  margin: var(--s-10) var(--s-16) var(--s-4);
  font-size: var(--t-caps-size);
  line-height: var(--t-caps-lh);
  font-weight: var(--t-caps-weight);
  letter-spacing: var(--t-caps-track);
  text-transform: uppercase;
  color: var(--c-muted);
}
.ix-menu-group .ix-item {
  min-height: 48px;
}
.ix-menu-group .ix-tick {
  color: var(--c-accent);
}
.ix-btn[aria-expanded="true"] {
  background: var(--c-fill);
}
.ix-menu-group .ix-menu-h + .ix-item::before {
  display: none;
}
.ix-menu-group .ix-item + .ix-item::before {
  left: 42px;
}

/* A course on phones (below 1024px): the index is one column, the title row (Home, the course, the count), the line, the
   topics, and the toolbar at the bottom over a fade: the round Search button at the left end, which opens the field
   across the bar with Close, then at the right Level, Variety and Group as icons in one glass bar and 文A on its own,
   their menus opening above them at the right (the Level sheet across the window). The bar hides while the
   reader scrolls down (the public client sets html.bar-hidden). A topic page keeps the bar and the results alone of the
   column. The reading is topic-phone.css's */
@media screen and (max-width: 1023px) {
  .cl[data-cl="track"] .cl-main {
    display: none;
  }
  .cl-side {
    padding: max(var(--s-16), calc(env(safe-area-inset-top) + var(--s-8))) var(--s-20) var(--bar-clearance);
  }
  .cl-head {
    grid-template-areas:
      "home name count"
      "line line line";
    column-gap: var(--s-12);
  }
  .cl-name {
    margin: 0;
    font-size: var(--t-page-heading-size);
    line-height: var(--t-page-heading-lh);
  }
  .cl-head .cl-count {
    display: block;
    grid-area: count;
  }
  .cl-line {
    margin: var(--s-2) 0 var(--s-18) var(--s-56);
  }
  .cl-n,
  .cl-dot,
  .cl-tools {
    display: none;
  }
  .cl-list {
    margin-top: 0;
  }
  .ix-btn {
    width: 52px;
    padding: 0;
  }
  .ix-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .ix-menu {
    top: auto;
    right: 16px;
    bottom: calc(max(12px, calc(env(safe-area-inset-bottom) + 8px)) + 62px);
    width: 300px;
    max-height: calc(100vh - 180px);
  }
  .ix-menu-variety,
  .ix-menu-group {
    left: auto;
    right: 16px;
  }
  .ix-menu-variety {
    bottom: calc(max(12px, calc(env(safe-area-inset-bottom) + 8px)) + 88px);
    width: 300px;
  }
  .ix-menu-group {
    width: 240px;
  }
  .cl-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: max(12px, calc(env(safe-area-inset-bottom) + 8px));
    z-index: 30;
    gap: var(--s-12);
    transition: transform 0.25s ease;
  }
  .cl-bar {
    height: 48px;
    margin-left: auto;
  }
  .cl-bar .hm-langs {
    display: none;
  }
  .cl-nav .hm-search {
    display: none;
  }
  html.hm-searching .cl-nav .hm-search {
    display: flex;
    flex: 1;
    width: auto;
    max-width: none;
    height: 48px;
  }
  html.hm-searching .cl-nav .hm-close {
    display: flex;
    width: 48px;
    height: 48px;
  }
  html.hm-searching .cl-nav :is(.cl-bar, .cl-langs) {
    display: none;
  }
  html .cl-nav .ix-search-open {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 48px;
    padding: 0;
    border-radius: var(--r-pill);
    color: var(--c-text);
    cursor: pointer;
  }
  html .cl-nav .cl-langs {
    display: flex;
    flex-shrink: 0;
    width: 52px;
    height: 48px;
    color: var(--c-text);
  }
  html.hm-searching .cl-nav .ix-search-open {
    display: none;
  }
  html.hm-searching .cl-nav {
    bottom: max(30px, calc(var(--hm-kb, 0px) + 10px));
  }
  .ix-fade {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    height: 130px;
    background: linear-gradient(to bottom, transparent, var(--c-bg-fade) 60%);
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  html.bar-hidden:not(.hm-searching) .cl-nav:not(:has(:popover-open)) {
    transform: translateY(calc(100% + 60px));
  }
  html.bar-hidden:not(.hm-searching) .ix-fade {
    opacity: 0;
  }
  /* With a query the filters lead the page and the results sit above the field */
  html.hm-query .cl-head {
    display: none;
  }
  html.hm-query .cl-side {
    padding-top: var(--s-20);
  }
  html.hm-searching .cl-side {
    padding-bottom: calc(var(--hm-kb, 0px) + var(--search-clearance));
  }
  html.hm-query .cl-side .hm-none {
    margin-top: var(--s-72);
  }
  /* A topic page: the column gives way to the reading, keeping the bar, the fade and the results */
  .cl[data-cl="topic"] .cl-side {
    display: contents;
  }
  .cl-top {
    display: contents;
  }
  .cl[data-cl="topic"] .cl-side > :not(.cl-top, .hm-results, .ix-fade),
  .cl[data-cl="topic"] .cl-head {
    display: none;
  }
  .cl[data-cl="topic"] .hm-results {
    padding: var(--s-20) var(--s-20) calc(var(--hm-kb, 0px) + var(--search-results-clearance));
  }
  html.hm-query .cl[data-cl="topic"] .cl-main {
    display: none;
  }
}
@media screen and (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .cl-nav,
  .ix-fade {
    transition: none;
  }
}

/* A course's search field and glass bar (course-column.ts; client-home.ts sets html.hm-searching while the field is in
   use and html.hm-query once it holds a query). From 1024px the field and Close share a row under the head and the bar
   sits at the window's top right: Variety and 文A, with Level and Group too while the field searches. A phone shows
   the bar at the bottom between the round Search button at its left end, which opens the field across the bar, and 文A
   on its own at its right end (track-phone.css) */
.cl-nav {
  display: flex;
  align-items: center;
  gap: var(--s-12);
}
.cl-nav .hm-close,
.cl-nav .ix-search-open,
.cl-nav .cl-langs,
.cl-nav .hm-clear {
  display: none;
}
@media (min-width: 1024px) {
  .cl-nav {
    margin-top: var(--s-14);
  }
  html .cl-nav .hm-search {
    flex: 1;
    width: auto;
    max-width: none;
    height: 44px;
  }
  html.hm-searching .cl-nav .hm-close {
    display: flex;
  }
  .cl-tools .ix-btn {
    width: 50px;
    padding: 0;
  }
  .cl-tools .ix-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .cl-bar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 30;
    height: 44px;
  }
  .cl-bar .cl-lv,
  .cl-bar .cl-gr {
    display: none;
  }
  html.hm-searching .cl-bar {
    display: flex;
  }
  html.hm-searching .cl-bar :is(.cl-lv, .cl-gr) {
    display: flex;
  }
  .cl-bar .hm-langs {
    width: 50px;
  }
  /* Searching: Home beside the title, the toolbar line and the count gone; a topic page shows Back to the course with the
     topic's title; the results take the list's place */
  html.hm-searching .cl-head {
    grid-template-areas:
      "home name"
      "line line";
    grid-template-columns: auto minmax(0, 1fr);
  }
  html.hm-searching :is(.cl-tools, .cl-n, .cl-dot) {
    display: none;
  }
  html.hm-searching .cl-name {
    margin: 0 0 0 var(--s-12);
  }
  html.hm-searching .cl[data-cl="topic"] :is(.cl-home, .cl-name, .cl-line) {
    display: none;
  }
  html.hm-searching .cl[data-cl="topic"] .cl-back {
    display: flex;
  }
  html.hm-searching .cl[data-cl="topic"] .cl-topic {
    display: block;
    margin-left: var(--s-12);
  }
  html.hm-query .cl-side .hm-results {
    padding-top: var(--s-16);
  }
  .cl-side .hm-none {
    margin-top: var(--s-72);
  }
}

/* A course's two columns (course-column.ts, pages/track.ts, pages/topic.ts). From 1024px the topics column sticks to the
   window's left, 248px wide with the compact scale (rows 15, the line 13; the course title 28 at every width), 320px from 1280px at full size,
   with its own scroll; the page's reading takes the rest and scrolls with the window. Below 1024px the page is one
   column: the course index alone, or the topic's reading (track-phone.css, topic-phone.css) */
.cl-side {
  --cl-up: 40px;
  --cl-name: var(--t-course-name-size);
  --cl-name-lh: var(--t-course-name-lh);
  --cl-line: var(--t-footnote-size);
  --cl-line-lh: var(--t-footnote-lh);
  --cl-h: var(--t-section-heading-compact-size);
  --cl-h-lh: var(--t-section-heading-compact-lh);
  --cl-h-x: var(--s-16);
  --cl-n: var(--t-caption-size);
  --cl-pad: var(--s-16);
  --cl-row: var(--t-row-title-compact-size);
  --cl-row-lh: var(--t-row-title-compact-lh);
  --cl-row-ls: var(--t-row-title-compact-track);
  box-sizing: border-box;
}
.cl-choose {
  display: none;
}
@media (min-width: 1024px) {
  /* The head and the search stay at the top of the column while the topics scroll under them */
  .cl-top {
    position: sticky;
    top: 0;
    z-index: 3;
    margin: 0 calc(var(--cl-pad) * -1 + var(--s-1)) 0 calc(var(--cl-pad) * -1);
    padding: var(--cl-pad) calc(var(--cl-pad) - var(--s-1)) var(--s-14) var(--cl-pad);
    background: var(--c-bg);
  }
  .cl {
    display: flex;
    align-items: flex-start;
  }
  .cl-side {
    position: sticky;
    top: 0;
    z-index: 5;
    --cl-chev: var(--s-2);
    flex: none;
    width: 248px;
    height: 100vh;
    height: 100dvh;
    padding: 0 var(--cl-pad) var(--s-40);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    box-shadow: inset -0.5px 0 0 var(--c-hairline);
  }
  .cl-main {
    flex: 1;
    min-width: 0;
  }
  .cl-side .ix-up {
    width: var(--cl-up);
    height: var(--cl-up);
  }
  .cl-name {
    font-size: var(--cl-name);
    line-height: var(--cl-name-lh);
  }
  .cl-line {
    font-size: var(--cl-line);
    line-height: var(--cl-line-lh);
  }
  .cl-side .ix-h {
    margin-left: var(--cl-h-x);
    font-size: var(--cl-h);
    line-height: var(--cl-h-lh);
  }
  .cl-side .ix-sec-n {
    font-size: var(--cl-n);
  }
  .cl-side .ix-row,
  .cl-side .ix-more-b {
    padding: 0 var(--cl-row-r, var(--s-12)) 0 var(--cl-h-x);
  }
  .cl-side .ix-rows li + li::before {
    left: var(--cl-h-x);
  }
  .cl-side .ix-name,
  .cl-side .ix-more-t {
    font-size: var(--cl-row);
    line-height: var(--cl-row-lh);
    letter-spacing: var(--cl-row-ls);
  }
  /* "Choose a topic" fills the reading's window until a topic is chosen */
  .cl-choose {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--s-8);
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 var(--s-40);
    text-align: center;
    color: var(--c-muted);
  }
  .cl-choose-t {
    margin: var(--s-6) 0 0;
    font-size: var(--t-state-title-size);
    line-height: var(--t-state-title-lh);
    font-weight: var(--t-state-title-weight);
    color: var(--c-text);
  }
  .cl-choose-s {
    margin: 0;
    font-size: var(--t-subheadline-size);
    line-height: var(--t-subheadline-lh);
  }
}
@media (min-width: 1280px) {
  .cl-side {
    --cl-up: 44px;
    --cl-line: var(--t-subheadline-size);
    --cl-line-lh: var(--t-subheadline-lh);
    --cl-h: var(--t-section-heading-size);
    --cl-h-lh: var(--t-section-heading-lh);
    --cl-h-x: var(--s-20);
    --cl-n: var(--t-subheadline-size);
    --cl-pad: var(--s-20);
    --cl-chev: var(--s-8);
    --cl-row: var(--t-row-title-size);
    --cl-row-lh: var(--t-row-title-lh);
    --cl-row-ls: var(--t-row-title-track);
    --cl-row-r: var(--s-16);
    width: 320px;
  }
}

/* The menus of the toolbars (toolbar.ts): More (client-more.ts), the Home's, holds Theme, Credits and the brand's pages,
   260px wide; Languages I know (文A) is a button of its own in every toolbar */
.hm-more[aria-expanded="true"] {
  background: var(--c-fill);
}
.ix-menu-theme {
  width: 260px;
}
/* More ends the Home's toolbar at the top right and its menu opens under it */
.hm-more,
.hm-langs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.hm-langs:focus-visible,
.hm-more:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: -2px;
}
.hm-more-menu {
  width: 260px;
  padding: var(--s-4) 0;
}
.hm-more-menu .ix-item {
  min-height: 48px;
  padding: var(--s-8) var(--s-16) var(--s-8) var(--s-12);
  color: inherit;
  text-decoration: none;
}
.hm-more-menu .ix-item + .ix-item::before {
  left: 42px;
}
.hm-back {
  color: var(--c-accent);
}
.hm-back .ix-tick {
  visibility: visible;
}
/* A phone: 文A on its own at the bottom bar's right end, 52 by 48; More's menu under the brand row's More */
@media (max-width: 1023px) {
  .hm-langs-solo {
    display: flex;
    flex-shrink: 0;
    width: 52px;
    height: 48px;
    color: var(--c-text);
  }
  .hm-more-menu {
    top: calc(max(16px, env(safe-area-inset-top)) + 50px);
    left: auto;
    right: 16px;
    bottom: auto;
  }
}

/* The credits page (pages/credits.ts) in the frame: the product's card, its links and the grouped cards in one
   centred column of at most 680px on every screen, the Home button sharing the heading's row */
.cr-main {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--s-24) var(--s-20) var(--s-56);
}
.cr-head {
  display: flex;
  align-items: center;
  gap: var(--s-12);
  min-height: 44px;
  margin-bottom: var(--s-16);
}
.cr-head .pg-up {
  position: static;
  flex-shrink: 0;
}
.cr-heading {
  font-size: var(--t-page-heading-size);
  line-height: var(--t-page-heading-lh);
  font-weight: var(--t-page-heading-weight);
  letter-spacing: var(--t-page-heading-track);
}
.cr-card {
  background: var(--c-surface);
  border-radius: var(--r-22);
  overflow: hidden;
}
.cr-h2 {
  margin: var(--s-28) 0 var(--s-8) var(--s-4) !important;
  font-size: var(--t-credits-h2-size);
  line-height: var(--t-credits-h2-lh);
  font-weight: var(--t-credits-h2-weight);
  letter-spacing: var(--t-credits-h2-track);
}

.cr-app {
  display: flex;
  align-items: center;
  gap: var(--s-16);
  padding: var(--s-18) var(--s-16);
}
.cr-mark {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}
.cr-mark svg {
  display: block;
}
.cr-name {
  font-size: var(--t-credits-name-size);
  line-height: var(--t-credits-name-lh);
  font-weight: var(--t-credits-name-weight);
}
.cr-tag {
  margin-top: var(--s-3) !important;
  font-size: var(--t-tag-line-size);
  line-height: var(--t-tag-line-lh);
  color: var(--c-muted);
}
.cr-version {
  margin: var(--s-8) var(--s-16) 0 !important;
  font-size: var(--t-caption-size);
  color: var(--c-muted);
}
.cr-links {
  margin-top: var(--s-16);
}

/* Rows: a tile, a title with its description, a value and the trailing mark; the separator starts at the title */
.cr-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-12);
  min-height: 52px;
  padding: var(--s-8) var(--s-16);
  line-height: var(--t-row-title-lh);
  color: var(--c-text) !important;
}
.cr-row + .cr-row::before {
  content: "";
  position: absolute;
  left: 58px;
  right: 0;
  top: 0;
  height: 0.5px;
  background: var(--c-hairline);
}
.cr-row:hover {
  background: var(--c-fill);
}
.cr-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: var(--r-7);
  background: var(--c-fill);
  color: var(--c-accent);
}
.cr-tile svg {
  display: block;
}
.cr-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}
.cr-sub {
  font-size: var(--t-subheadline-size);
  line-height: var(--t-subheadline-lh);
  color: var(--c-muted);
}
.cr-row:has(.cr-value) .cr-text {
  flex: 0 0 auto;
  white-space: nowrap;
}
.cr-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  color: var(--c-muted);
}
.cr-trail {
  display: flex;
  flex-shrink: 0;
  color: var(--c-quaternary);
}
.cr-trail svg {
  display: block;
}

/* The credits page's cards: the authors, how to credit with the copy button, the note and the closing line */
.cr-people {
  display: flex;
  gap: var(--s-12);
  padding: var(--s-14) var(--s-16);
}
.cr-people p {
  line-height: var(--t-frame-body-lh);
}
.cr-how {
  padding: var(--s-14) var(--s-16);
}
.cr-line {
  display: flex;
  align-items: center;
  gap: var(--s-10);
  margin-top: var(--s-12);
  padding: var(--s-11) var(--s-12) var(--s-11) var(--s-14);
  border-radius: var(--r-12);
  background: var(--c-fill);
}
.credit-line {
  flex-grow: 1;
  min-width: 0;
  font: var(--t-credit-line-weight) var(--t-credit-line-size)/var(--t-credit-line-lh) var(--f-numerals);
  overflow-wrap: anywhere;
  user-select: all;
}
.cr-copy {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: var(--c-accent);
  cursor: pointer;
}
.cr-copy svg {
  display: block;
}
.cr-copy .cr-copy-done {
  display: none;
}
.cr-copy.done .cr-copy-on {
  display: none;
}
.cr-copy.done .cr-copy-done {
  display: block;
}
.cr-changes {
  margin-top: var(--s-12) !important;
  line-height: var(--t-frame-body-lh);
}
.cr-note {
  margin: var(--s-8) var(--s-16) 0 !important;
  font-size: var(--t-credits-note-size);
  line-height: var(--t-credits-note-lh);
  color: var(--c-muted);
}
.cr-lead {
  margin: 0 0 var(--s-4);
  font-size: var(--t-credits-lead-size);
  line-height: var(--t-credits-lead-lh);
  font-weight: var(--t-credits-lead-weight);
}
.cr-card > .cr-para {
  padding: var(--s-14) var(--s-16);
  line-height: var(--t-caption-lh);
}
.cr-card > .cr-para + .cr-para {
  padding-top: 0;
}
.cr-updated {
  margin: var(--s-20) var(--s-16) 0;
  font-size: var(--t-credits-note-size);
  line-height: var(--t-credits-note-lh);
  color: var(--c-muted);
}
.cr-made {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-6);
  margin-top: var(--s-32) !important;
  font-size: var(--t-body-small-size);
  color: var(--c-muted);
}
.cr-heart {
  flex-shrink: 0;
}
.cr-main a:focus-visible,
.cr-copy:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}
.cr-row:focus-visible {
  outline-offset: -2px;
  border-radius: var(--r-22);
}

@media (max-width: 400px) {
  .cr-value {
    font-size: var(--t-body-small-size);
  }
  .cr-row {
    gap: var(--s-10);
  }
  .cr-row:has(.cr-value) .cr-trail {
    display: none;
  }
}
@media (max-width: 860px) {
  .cr-main {
    padding-top: var(--s-16);
  }
}

/* The Languages I know page (pages/languages.ts) in the credits' column (credits.css): the ranked list, the languages
   to add and, on the first-run page, Continue. A row holds every control and the list it sits in shows its own. */
.ml-intro {
  margin: 0 var(--s-4) var(--s-14);
  font-size: var(--t-intro-size);
  line-height: var(--t-intro-lh);
  color: color-mix(in srgb, var(--c-text) 85%, var(--c-bg));
}
.ml-mark {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
}
.ml-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ml-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-12);
  min-height: 56px;
  padding: var(--s-8) var(--s-16);
  box-shadow: inset 0 -0.5px 0 var(--c-hairline);
  background: var(--c-surface);
}
.ml-row:last-child {
  box-shadow: none;
}
.ml-rank {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--r-pill);
  background: var(--c-fill);
  font-size: var(--t-rank-size);
  font-weight: var(--t-rank-weight);
  color: var(--c-text);
}
.ml-rank.ml-1 {
  background: var(--c-accent);
  color: var(--c-on-colour);
}
.ml-name {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}
.ml-name span {
  font-size: var(--t-row-title-size);
  line-height: var(--t-row-title-lh);
}
.ml-name small {
  font-size: var(--t-footnote-size);
  line-height: var(--t-footnote-lh);
  color: var(--c-muted);
}
.ml-grip,
.ml-remove,
.ml-add {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.ml-grip {
  width: 36px;
  height: 36px;
  margin-right: calc(-1 * var(--s-6));
  color: var(--c-quaternary);
  cursor: grab;
  touch-action: none;
}
.ml-remove {
  width: 24px;
  height: 24px;
  border-radius: var(--r-pill);
  background: var(--c-fill);
  color: var(--c-muted);
}
.ml-add {
  order: -1;
  width: 24px;
  height: 24px;
  border-radius: var(--r-pill);
  background: var(--c-add);
  color: var(--c-on-colour);
}
.ml-grip:focus-visible,
.ml-remove:focus-visible,
.ml-add:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}
.ml-ranked .ml-add,
.ml-others .ml-rank,
.ml-others .ml-remove,
.ml-others .ml-grip {
  display: none;
}
.ml-add:disabled,
.ml-remove:disabled,
.ml-grip:disabled {
  opacity: 0.4;
  cursor: default;
}
.ml-row.ml-lift {
  z-index: 2;
  border-radius: var(--r-14);
  box-shadow:
    var(--sh-lift),
    0 0 0 0.5px var(--c-hairline);
  transform: translateY(var(--ml-dy, 0)) scale(1.03);
}
.ml-hint {
  margin: var(--s-8) var(--s-4) 0;
  font-size: var(--t-footnote-size);
  line-height: var(--t-footnote-lh);
  color: var(--c-muted);
}
.ml-label {
  margin: var(--s-22) var(--s-4) var(--s-8);
  font-size: var(--t-caps-size);
  line-height: var(--t-caps-lh);
  font-weight: var(--t-caps-weight);
  letter-spacing: var(--t-caps-track);
  text-transform: uppercase;
  color: var(--c-muted);
}
.ml-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-on-colour) !important;
  font-size: var(--t-button-size);
  font-weight: var(--t-button-weight);
}
.ml-foot {
  margin-top: var(--s-24);
}
/* On a phone Continue rests at the foot of the screen, over a fade of the page's ground */
@media (max-width: 599px) {
  .ml-page[data-first] {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    box-sizing: border-box;
  }
  .ml-foot {
    position: sticky;
    bottom: 34px;
    margin: auto calc(-1 * var(--s-20)) 0;
    padding: 0 var(--s-20);
  }
  .ml-foot::before {
    content: "";
    position: absolute;
    inset: -40px 0 -34px;
    z-index: -1;
    background: linear-gradient(to bottom, transparent, var(--c-bg) 60%);
  }
}

/* Where the reader's languages show in a page (client-languages-lines.ts): the "Explained in" line with its fallback
   mark, a course with none of the reader's languages, the Home's section for those courses, a topic's tag and the
   note of a topic in a fallback language. The chevron is faint on every page. */
.xl-line {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  min-height: 28px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--t-subheadline-size);
  line-height: var(--t-subheadline-lh);
  color: var(--c-muted);
  text-align: left;
  cursor: pointer;
}
.xl-line b {
  font-weight: var(--t-emphasis-weight);
  color: var(--c-text);
}
.xl-line:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: var(--r-6);
}
.xl-line::after {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-left: auto;
  background: var(--c-faint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.xl-fb {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--r-pill);
  background: var(--c-fill);
  font-size: var(--t-small-size);
  color: var(--c-muted);
}
.xl-source {
  color: var(--c-text);
}
.xl-dim {
  opacity: 0.48;
}
.xl-other[hidden] {
  display: none;
}
.xl-other h2 {
  margin: var(--s-28) 0 var(--s-4);
  font-size: var(--t-section-heading-size);
  line-height: var(--t-section-heading-lh);
  font-weight: var(--t-section-heading-weight);
}
.xl-other p {
  margin: 0 0 var(--s-12);
  font-size: var(--t-footnote-size);
  line-height: var(--t-footnote-lh);
  color: var(--c-muted);
}
/* A topic in another language than the course's: its code on the row and on the header */
[data-xl-tag] {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  height: 18px;
  padding: 0 var(--s-5);
  border-radius: var(--r-5);
  background: var(--c-fill);
  font-size: var(--t-language-tag-size);
  font-weight: var(--t-language-tag-weight);
  letter-spacing: var(--t-language-tag-track);
  color: var(--c-muted);
}
[data-xl-tag][hidden] {
  display: none;
}
[data-xl-note] {
  display: flex;
  align-items: flex-start;
  gap: var(--s-10);
  margin: var(--s-12) 0;
  padding: var(--s-12) var(--s-14);
  border-radius: var(--r-14);
  background: var(--c-surface);
  font-size: var(--t-callout-size);
  line-height: var(--t-callout-lh);
  color: var(--c-text);
}
[data-xl-note][hidden] {
  display: none;
}
[data-xl-note] p {
  margin: 0;
}
[data-xl-note] .xl-fb {
  margin-top: var(--s-1);
}
.xl-change {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--c-accent);
  cursor: pointer;
}

/* The Explanation language sheet (client-languages-sheet.ts): a bottom sheet on a phone, a centred one of 460px on
   larger screens; its last card, Languages I know…, ends in a chevron */
.xl-sheet {
  position: fixed;
  inset: auto 0 0;
  width: auto;
  max-width: none;
  max-height: calc(100dvh - 60px);
  margin: 0;
  padding: var(--s-8) var(--s-16) var(--s-34);
  overflow-y: auto;
  border: 0;
  border-radius: var(--r-28) var(--r-28) 0 0;
  background: var(--c-bg);
  color: var(--c-text);
  box-shadow: var(--sh-sheet);
  outline: none;
}
.xl-sheet::backdrop {
  background: var(--c-scrim-sheet, rgba(0, 0, 0, 0.28));
}
.xl-grab {
  display: block;
  width: 36px;
  height: 5px;
  margin: 0 auto var(--s-10);
  border-radius: var(--r-3);
  background: var(--c-quaternary);
}
.xl-head {
  display: flex;
  align-items: center;
  gap: var(--s-12);
  min-height: 44px;
  margin-bottom: var(--s-6);
}
.xl-head h2 {
  flex: 1;
  margin: 0;
  font-size: var(--t-sheet-heading-size);
  line-height: var(--t-sheet-heading-lh);
  font-weight: var(--t-sheet-heading-weight);
  text-align: center;
}
.xl-gap {
  width: 44px;
}
.xl-close {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--r-pill);
  color: var(--c-text);
  cursor: pointer;
}
.xl-course {
  margin: calc(-1 * var(--s-4)) 0 var(--s-10);
  text-align: center;
  font-size: var(--t-caption-size);
  color: var(--c-muted);
}
.xl-sheet .ml-label {
  margin: var(--s-18) var(--s-4) var(--s-8);
}
.xl-card {
  margin: 0;
}
.xl-row {
  display: flex;
  align-items: center;
  gap: var(--s-12);
  width: 100%;
  min-height: 56px;
  padding: var(--s-8) var(--s-16);
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 -0.5px 0 var(--c-hairline);
  background: var(--c-surface);
  font: inherit;
  color: var(--c-text);
  cursor: pointer;
}
/* A card's first and last rows take its corners, so the focus ring follows them inside the card */
.xl-row:first-child {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}
.xl-row:last-child {
  box-shadow: none;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}
.xl-row:disabled {
  opacity: 0.48;
  cursor: default;
}
.xl-row:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: -2px;
}
.xl-card + .xl-card {
  margin-top: var(--s-18);
}
a.xl-edit {
  text-decoration: none;
}
.xl-edit::after {
  content: "";
  width: 8px;
  height: 14px;
  margin-left: auto;
  background: var(--c-faint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5L6.5 7l-5 5.5'/%3E%3C/svg%3E")
    center / 8px 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5L6.5 7l-5 5.5'/%3E%3C/svg%3E")
    center / 8px 14px no-repeat;
}
.xl-tick {
  display: flex;
  flex-shrink: 0;
  color: var(--c-accent);
}
@media (min-width: 600px) {
  .xl-sheet {
    inset: 50% auto auto 50%;
    width: 460px;
    padding: var(--s-16) var(--s-16) var(--s-20);
    border-radius: var(--r-24);
    transform: translate(-50%, -50%);
    box-shadow: var(--sh-dialog);
  }
  .xl-grab {
    display: none;
  }
}

/* The level mark (level-mark.ts): seven bars in a grey capsule and the range in words; levels.css lights each level's
   bar in its colour and dims the bars above the level filter. The level popover it opens is level-popover.css. */
.lvm {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--s-2);
  box-sizing: border-box;
  padding: var(--s-4) var(--s-7);
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-level-mark-fill);
  color: inherit;
  font: inherit;
  line-height: 0;
  vertical-align: middle;
}
.lvm > i {
  display: block;
  width: 5px;
  height: 12px;
  border-radius: var(--r-2);
  background: var(--c-level-mark-off);
}
.lvm-sm {
  gap: var(--s-1_5);
  padding: var(--s-3) var(--s-5);
}
.lvm-sm > i {
  width: 4px;
  height: 9px;
  border-radius: var(--r-1_5);
}
.lvm-t {
  margin-left: var(--s-6);
  font-size: var(--t-level-mark-size);
  font-weight: var(--t-level-mark-weight);
  line-height: var(--t-level-mark-lh);
  letter-spacing: var(--t-level-mark-track);
  color: var(--c-level-mark-text);
  white-space: nowrap;
}
.lvm-sm > .lvm-t {
  margin-left: var(--s-5);
  font-size: var(--t-level-mark-small-size);
}
.lvm-b {
  cursor: pointer;
}
.lvm-b:hover {
  background: var(--c-fill-hover);
}
.lvm-b[aria-expanded="true"] {
  box-shadow: 0 0 0 2px var(--c-accent);
}

/* The level popover (level-popover.ts, client-levels.ts): a glass panel under its mark on a wide screen, 380px wide;
   on a phone a sheet from the bottom, 8px from the edges, over a dimmed page, with a close button in its head */
.lv-pop {
  position: fixed;
  inset: auto;
  box-sizing: border-box;
  width: 380px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  margin: 0;
  padding: var(--s-4) 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0.5px solid var(--c-glass-border);
  border-radius: var(--r-22);
  background: var(--c-menu);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  backdrop-filter: blur(40px) saturate(1.8);
  box-shadow: var(--sh-menu);
  color: var(--c-text);
}
.lv-pop-x {
  display: none;
}
/* On a phone the page holds still while a popover, a menu or a sheet is open: a drag scrolls what is open, or nothing */
@media (max-width: 1023px) {
  html:has([popover]:popover-open) {
    overflow: hidden;
  }
  .lv-pop {
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 80px);
  }
  .lv-pop::backdrop {
    background: var(--c-scrim, rgba(0, 0, 0, 0.18));
  }
  .lv-pop-x {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 50px;
    min-width: 36px;
    height: 36px;
    margin: calc(-1 * var(--s-4)) calc(-1 * var(--s-6)) calc(-1 * var(--s-4)) var(--s-2);
    padding: 0;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--c-level-mark-fill);
    color: inherit;
    cursor: pointer;
  }
}
.lv-pop-h {
  display: flex;
  align-items: center;
  gap: var(--s-10);
  padding: var(--s-14) var(--s-16) var(--s-4);
}
.lv-pop-t {
  flex-grow: 1;
  min-width: 0;
  font-size: var(--t-row-title-strong-size);
  font-weight: var(--t-row-title-strong-weight);
  line-height: var(--t-row-title-strong-lh);
  letter-spacing: var(--t-row-title-strong-track);
}
/* The head shows every level its element holds, whatever level the filter stops at */
.lv-pop .lvm > i.on,
.lv-pop .lvl > .half {
  opacity: 1 !important;
}
.lv-pop-r:empty {
  display: none;
}
.lv-pop .badge {
  --badge-pad: 0 var(--s-7);
  flex-shrink: 0;
  margin: 0;
  font-size: var(--t-pill-size);
  font-weight: var(--t-pill-weight);
  line-height: var(--t-pill-lh);
}
.lv-pop-note {
  margin: 0;
  padding: var(--s-12) var(--s-16) var(--s-8);
  font-size: var(--t-footnote-size);
  line-height: var(--t-footnote-lh);
  color: var(--c-secondary);
}
.lv-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-10);
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: var(--s-8) var(--s-16) var(--s-8) var(--s-12);
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.lv-row:hover {
  background: var(--c-fill, var(--c-fill));
}
.lv-pop-note + .lv-rows > .lv-row:first-child::before,
.lv-row + .lv-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 42px;
  right: 16px;
  height: 0.5px;
  background: var(--c-sep);
}
.lv-tick {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  width: 18px;
  color: var(--c-accent);
  visibility: hidden;
}
.lv-row[aria-checked="true"] .lv-tick {
  visibility: visible;
}
.lv-text {
  flex-grow: 1;
  min-width: 0;
}
.lv-name {
  display: block;
  font-size: var(--t-row-title-size);
  line-height: var(--t-row-title-lh);
  letter-spacing: var(--t-row-title-track);
}
.lv-sub {
  display: block;
  margin-top: var(--s-1);
  font-size: var(--t-row-sub-size);
  line-height: var(--t-row-sub-lh);
  color: var(--c-secondary);
}
/* A level the element lacks */
.lv-off,
.lv-off:hover {
  background: transparent;
  cursor: default;
}
.lv-off .lv-name {
  color: var(--c-muted);
}
.lv-off .lv-sub {
  opacity: 0.6;
}
.lv-off .badge {
  opacity: 0.55;
}

/* A topic page (pages/topic.ts) in the frame: its links, level pills and glass. Every rule holds on topic pages
   alone, :where() keeping its own specificity */

html[data-page="topic"] a {
  color: inherit;
  text-decoration: none;
}
html[data-page="topic"] button {
  font: inherit;
}
:where(html[data-page="topic"]) .tp-caps {
  margin: 0 0 var(--s-8) var(--s-8);
  font-size: var(--t-caps-size);
  line-height: var(--t-caps-lh);
  font-weight: var(--t-caps-weight);
  letter-spacing: var(--t-caps-track);
  text-transform: uppercase;
  color: var(--c-caps);
}
:where(html[data-page="topic"]) .tp-n {
  flex: none;
  font: var(--t-section-number-weight) var(--t-section-number-size) var(--f-numerals);
  letter-spacing: var(--t-section-number-track);
  color: var(--c-tertiary);
}
:where(html[data-page="topic"]) .tp-chev {
  flex: none;
  color: var(--c-tertiary);
}
:where(html[data-page="topic"]) .tp-card {
  position: relative;
  margin: 0 0 var(--s-18);
  border-radius: var(--r-22);
  background: var(--c-surface);
  overflow: hidden;
}
:where(html[data-page="topic"]) a:focus-visible,
:where(html[data-page="topic"]) button:focus-visible,
:where(html[data-page="topic"]) summary:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* Levels: one pill, or two joined halves */
html[data-page="topic"] .badge {
  font-size: var(--t-pill-size);
  font-weight: var(--t-pill-weight);
  line-height: var(--t-pill-lh);
  letter-spacing: 0;
  --badge-pad: 0 var(--s-7);
  flex: none;
}
html[data-page="topic"] .lvl {
  margin: 0;
}
html[data-page="topic"] .tp-li > .lvl,
html[data-page="topic"] .doc p > .lvl {
  margin: 0 var(--s-8) 0 0;
  vertical-align: 2px;
}

/* The back links of a phone's title row (the head, topic-page.css) */
:where(html[data-page="topic"]) .tp-back {
  flex: none;
  color: var(--c-text);
}

/* The variety menu: 300px wide, under the bar's right edge on a wide screen (a phone: track-phone.css) */
:where(html[data-page="topic"]) .ix-menu-variety {
  width: 300px;
  padding: var(--s-4) 0;
}
:where(html[data-page="topic"]) .ix-menu-variety .ix-item {
  min-height: 48px;
}
:where(html[data-page="topic"]) .ix-menu-variety .ix-item + .ix-item::before {
  left: 42px;
}

/* The page: the lesson (the reading) in the course's right column (topic-wide.css), a head over its sections */
:where(html[data-page="topic"]) .tp-wrap {
  display: block;
}
:where(html[data-page="topic"]) .tp-col {
  min-width: 0;
}
:where(html[data-page="topic"]) .tp-outline {
  display: none;
}
:where(html[data-page="topic"]) .tp-head {
  min-width: 0;
}
:where(html[data-page="topic"]) .tp-main {
  min-width: 0;
  container-type: inline-size;
}
:where(html[data-page="topic"]) .tp-main .doc {
  max-width: none;
}
:where(html[data-page="topic"]) .tp-head .title-row {
  display: flex;
  align-items: center;
  gap: var(--s-12);
  margin: 0;
}
:where(html[data-page="topic"]) .tp-head h1 {
  margin: 0;
  font-size: var(--t-page-heading-size);
  line-height: var(--t-page-heading-lh);
  font-weight: var(--t-page-heading-weight);
  letter-spacing: var(--t-page-heading-track);
  overflow-wrap: anywhere;
}
:where(html[data-page="topic"]) .tp-head .doc-head {
  margin: 0;
}
:where(html[data-page="topic"]) .tp-head .props {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-8);
  margin: 0;
  font-size: var(--t-facts-size);
  line-height: var(--t-facts-lh);
  color: var(--c-secondary);
}
:where(html[data-page="topic"]) .tp-head .props > :not(:first-child)::before {
  content: "·";
  margin-right: var(--s-8);
  color: var(--c-tertiary);
}
:where(html[data-page="topic"]) .tp-head .props a.prop {
  color: var(--c-accent);
  text-decoration: none;
}
:where(html[data-page="topic"]) .tp-head .props .prop {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
}
:where(html[data-page="topic"]) .tp-head .props .prop svg {
  flex: none;
}
:where(html[data-page="topic"]) .tp-main .doc > blockquote:first-of-type {
  margin: 0;
  font-size: var(--t-topic-body-size);
  line-height: var(--t-topic-body-lh);
  letter-spacing: var(--t-topic-body-track);
  color: var(--c-body);
}
:where(html[data-page="topic"]) .tp-main .doc > blockquote p {
  margin: 0;
}

/* Sections: a number, the title, the range pill. The head, the lead, the headings and a card's caption follow one
   another with no gap of their own; a block's bottom margin parts it from the next */
:where(html[data-page="topic"]) .tp-main .sections > .part {
  scroll-margin-top: 20px;
  min-width: 0;
}
:where(html[data-page="topic"]) .tp-main .doc h2 {
  display: flex;
  align-items: center;
  gap: var(--s-10);
  margin: 0;
  padding: 0;
  border: 0;
  font-size: var(--t-section-heading-size);
  line-height: var(--t-section-heading-lh);
  font-weight: var(--t-section-heading-weight);
  letter-spacing: var(--t-section-heading-track);
}
:where(html[data-page="topic"]) .tp-main .doc h2 .lvm {
  margin-left: auto;
}
:where(html[data-page="topic"]) .tp-main .sections > .part > h2::before {
  content: attr(data-n);
  flex: none;
  margin: 0;
  font: var(--t-section-number-weight) var(--t-section-number-size) var(--f-numerals);
  letter-spacing: var(--t-section-number-track);
  color: var(--c-tertiary);
}
:where(html[data-page="topic"]) .doc.one-level .sections > section > h2 .lvl {
  display: none;
}
:where(html[data-page="topic"]) .tp-main .doc .blk {
  margin: 0;
}
:where(html[data-page="topic"]) .blk-level {
  margin: 0 0 var(--s-8);
}
:where(html[data-page="topic"]) .tp-main .doc p {
  margin: 0 0 var(--s-14);
  font-size: var(--t-topic-body-size);
  line-height: var(--t-topic-body-lh);
  letter-spacing: var(--t-topic-body-track);
}
:where(html[data-page="topic"]) .tp-main .doc p:has(> .tp-ex) {
  margin-bottom: var(--s-14);
}

/* Lists: a rule, a note, an example */
:where(html[data-page="topic"]) .tp-main .doc ul {
  margin: 0 0 var(--s-14);
  padding: 0;
  list-style: none;
}
:where(html[data-page="topic"]) .tp-main .doc li {
  display: flex;
  gap: var(--s-12);
  margin: 0 0 var(--s-12);
  font-size: var(--t-topic-body-size);
  line-height: var(--t-topic-body-lh);
  letter-spacing: var(--t-topic-body-track);
}
:where(html[data-page="topic"]) .tp-li {
  flex: 1;
  min-width: 0;
}
:where(html[data-page="topic"]) .tp-main .doc li[data-type="rule"]::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin: var(--s-10) 0 0 var(--s-4);
  border-radius: var(--r-pill);
  background: var(--c-tertiary);
}
:where(html[data-page="topic"]) .tp-main .doc li[data-type="note"] {
  gap: var(--s-10);
  padding: var(--s-10) var(--s-14) var(--s-10) var(--s-12);
  border-radius: var(--r-14);
  background: var(--c-note);
  font-size: var(--t-topic-note-size);
  line-height: var(--t-topic-note-lh);
  letter-spacing: var(--t-topic-note-track);
  color: var(--c-body);
}
:where(html[data-page="topic"]) .tp-main .doc li[data-type="note"]::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: var(--s-2);
  background: var(--c-secondary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='8.5' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M10 9v5' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='6' r='1.1' fill='black'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='8.5' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M10 9v5' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='6' r='1.1' fill='black'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
:where(html[data-page="topic"]) .tp-main .doc li[data-type="example"] {
  margin-left: var(--s-4);
}
:where(html[data-page="topic"]) .tp-ex {
  display: flex;
  gap: var(--s-12);
  margin-top: var(--s-6);
}
:where(html[data-page="topic"]) .tp-ex::before {
  content: "";
  flex: none;
  width: 3px;
  border-radius: var(--r-2);
  background: var(--c-accent);
  opacity: 0.55;
}
:where(html[data-page="topic"]) .tp-ex-body {
  flex: 1;
  min-width: 0;
  color: var(--c-text);
}
:where(html[data-page="topic"]) .tp-main .doc li[data-type="note"] .tp-ex-body {
  font-size: var(--t-topic-body-size);
  line-height: var(--t-topic-body-lh);
  letter-spacing: var(--t-topic-body-track);
}
:where(html[data-page="topic"]) li[data-type="example"] .tp-li > .tp-ex:first-child {
  margin-top: 0;
}
:where(html[data-page="topic"]) .tp-tr {
  display: block;
  margin-top: var(--s-1);
  font-size: var(--t-topic-translation-size);
  line-height: var(--t-topic-translation-lh);
  letter-spacing: var(--t-topic-translation-track);
}

/* A slot table as cards by tense and sentence type: the tense a line, its sentence types captioned over their cards */
:where(html[data-page="topic"]) .tp-main .doc .tp-slot-cards .tp-tense {
  margin: 0;
  font-size: var(--t-row-title-size);
  line-height: var(--t-row-title-lh);
}
:where(html[data-page="topic"]) .tp-main .doc p.tp-caps {
  font-size: var(--t-caps-size);
  line-height: var(--t-caps-lh);
  letter-spacing: var(--t-caps-track);
}
:where(html[data-page="topic"]) .tp-main .doc .tp-slot-cards p.tp-caps {
  margin: 0 0 0 var(--s-8);
}
:where(html[data-page="topic"]) .tp-slot-cards .tp-card {
  margin: var(--s-4) 0 var(--s-10);
}
:where(html[data-page="topic"]) .tp-main .tp-slot-cards .tp-card td {
  font-size: var(--t-callout-size);
  line-height: var(--t-callout-lh);
}
:where(html[data-page="topic"]) .tp-main .tp-slot-cards .tp-card th {
  font-size: var(--t-slot-caption-size);
  line-height: var(--t-slot-caption-lh);
}

/* Marks: bold accent for the form a rule is about, muted italic for a sound or a meaning, IPA in mono */
:where(html[data-page="topic"]) .doc em[data-mark] {
  font-style: italic;
  color: var(--c-secondary);
}
:where(html[data-page="topic"]) .doc [data-mark="ipa"] {
  white-space: nowrap;
  font-family: var(--f-numerals);
  font-size: var(--t-ipa-size);
  letter-spacing: var(--t-ipa-track);
  color: color-mix(in srgb, var(--c-text) 82%, transparent);
}
:where(html[data-page="topic"]) .doc strong [data-mark="ipa"] {
  color: inherit;
}
:where(html[data-page="topic"]) .doc .sl {
  font-style: normal;
  color: color-mix(in srgb, var(--c-text) 35%, transparent);
}
:where(html[data-page="topic"]) .doc strong .sl {
  color: inherit;
  opacity: 0.5;
}
:where(html[data-page="topic"]) .doc .nw {
  white-space: nowrap;
}
:where(html[data-page="topic"]) .doc [data-mark="variant"][data-variety] {
  color: var(--c-secondary);
}
:where(html[data-page="topic"]) .doc .vl {
  font-weight: var(--t-emphasis-weight);
}
:where(html[data-page="topic"]) .tp-vtag {
  display: block;
  width: fit-content;
  margin-top: var(--s-3);
  padding: 0 var(--s-8);
  border-radius: var(--r-pill);
  background: var(--c-fill);
  color: var(--c-secondary);
  font-size: var(--t-tag-size);
  font-weight: var(--t-tag-weight);
  letter-spacing: 0;
  line-height: var(--t-tag-lh);
}
:where(html[data-page="topic"]) .blk-level .tp-vtag {
  display: inline-block;
  margin: 0 0 0 var(--s-6);
}
:where(html[data-page="topic"]) .doc .j {
  font-style: normal;
  color: var(--c-tertiary);
}
:where(html[data-page="topic"]) .doc a[data-mark="link"] {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--c-accent) 35%, transparent);
  text-underline-offset: 3px;
}
:where(html[data-page="topic"]) .doc [data-mark="slot"] {
  padding: var(--s-1) var(--s-7);
  border-radius: var(--r-7);
  background: var(--c-fill);
  color: var(--c-secondary);
  font-size: var(--t-slot-mark-size);
  white-space: nowrap;
}
:where(html[data-page="topic"]) .doc [data-mark="optional"] {
  color: var(--c-secondary);
}
:where(html[data-page="topic"]) .doc [data-mark="intonation"] {
  color: var(--c-accent);
  font-weight: var(--t-bold-weight);
}
:where(html[data-page="topic"]) .doc [data-mark="gap"] {
  color: var(--c-tertiary);
  letter-spacing: var(--t-gap-mark-track);
}
:where(html[data-page="topic"]) .doc [data-mark="variety"] {
  display: inline-block;
  margin-right: var(--s-6);
  padding: 0 var(--s-8);
  border-radius: var(--r-pill);
  background: var(--c-fill);
  color: var(--c-secondary);
  font-size: var(--t-tag-size);
  font-weight: var(--t-tag-weight);
  line-height: var(--t-tag-lh);
  vertical-align: 1px;
  white-space: nowrap;
}

/* Tables: a card with a header row, hairlines between rows and the level pill in a last narrow column */
:where(html[data-page="topic"]) .tp-card .table-wrap {
  overflow-x: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
:where(html[data-page="topic"]) .tp-main .tp-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-topic-table-size);
  line-height: var(--t-topic-table-lh);
  letter-spacing: var(--t-topic-table-track);
}
:where(html[data-page="topic"]) .tp-main .tp-card th {
  padding: var(--s-12) var(--s-10) var(--s-8);
  border: 0;
  background: none;
  font-size: var(--t-topic-table-head-size);
  line-height: var(--t-topic-table-head-lh);
  font-weight: var(--t-topic-table-head-weight);
  letter-spacing: var(--t-topic-table-head-track);
  text-transform: uppercase;
  color: var(--c-caps);
  text-align: left;
  vertical-align: bottom;
}
:where(html[data-page="topic"]) .tp-main .tp-card th:has([data-mark]) {
  text-transform: none;
  letter-spacing: var(--t-topic-table-head-word-track);
  font-size: var(--t-topic-table-head-word-size);
  color: var(--c-text);
}
:where(html[data-page="topic"]) .tp-main .tp-card td {
  padding: var(--s-11) var(--s-10);
  border: 0;
  border-top: 0.5px solid var(--c-sep);
  vertical-align: middle;
}
:where(html[data-page="topic"]) .tp-main .tp-card tr:last-child td {
  border-bottom: 0;
}
:where(html[data-page="topic"]) .tp-main .tp-card :is(th, :where(html[data-page="topic"]) td):first-child {
  padding-left: var(--s-20);
}
:where(html[data-page="topic"]) .tp-main .tp-card td.key {
  font-weight: var(--t-emphasis-weight);
}
:where(html[data-page="topic"]) .tp-main .tp-card table.errors td.key {
  font-weight: var(--t-regular-weight);
}
:where(html[data-page="topic"]) .tp-mono {
  font: var(--t-section-number-weight) var(--t-section-number-size) var(--f-numerals);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--t-section-number-track);
}
:where(html[data-page="topic"]) .tp-letter {
  font-size: var(--t-letter-size);
  line-height: var(--t-letter-lh);
  font-weight: var(--t-letter-weight);
  letter-spacing: var(--t-letter-track);
}
:where(html[data-page="topic"]) .tp-main .tp-card .tp-lvl {
  width: 1%;
  padding-right: var(--s-16);
  text-align: right;
  white-space: nowrap;
}
:where(html[data-page="topic"]) .tp-main .tp-card td .lvm {
  vertical-align: middle;
}
:where(html[data-page="topic"])
  .tp-main
  .tp-card
  table[data-type="comparison"]
  :is(th, :where(html[data-page="topic"]) td):not(:first-child, :where(html[data-page="topic"]) .tp-lvl) {
  border-left: 0.5px solid var(--c-sep);
}
:where(html[data-page="topic"]) .tp-main .tp-card td.tp-none {
  color: var(--c-tertiary);
}
:where(html[data-page="topic"]) .tp-main .tp-card .tp-trcol {
  font-style: italic;
  color: var(--c-secondary);
}
:where(html[data-page="topic"]) .tp-main .tp-card td .tp-tr {
  margin-top: var(--s-2);
  font-size: var(--t-cell-translation-size);
  line-height: var(--t-cell-translation-lh);
}
:where(html[data-page="topic"]) .tp-main .tp-card td .cell-variety {
  display: block;
}

/* A slot paradigm, compact: grouped two-row header, centred cells, lines between columns, merged words, a pill per tense */
:where(html[data-page="topic"]) .tp-main .tp-slot-wide table.compact {
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--t-wide-table-size);
  line-height: var(--t-wide-table-lh);
}
:where(html[data-page="topic"]) .tp-main .tp-slot-wide table.compact th {
  padding: var(--s-9) var(--s-5) var(--s-6);
  font-size: var(--t-wide-table-small-size);
  line-height: var(--t-wide-table-small-lh);
  text-align: center;
  white-space: nowrap;
}
:where(html[data-page="topic"]) .tp-main .tp-slot-wide table.compact th:first-child {
  padding-left: var(--s-14);
  text-align: left;
}
:where(html[data-page="topic"]) .tp-main .tp-slot-wide table.compact th.group {
  border-left: 0;
  border-bottom: 0.5px solid var(--c-sep);
  color: var(--c-accent);
}
:where(html[data-page="topic"]) .tp-main .tp-slot-wide table.compact thead tr + tr th {
  border-left: 0.5px solid var(--c-sep);
}
:where(html[data-page="topic"]) .tp-main .tp-slot-wide table.compact thead tr + tr th.group-start {
  border-left: 0;
}
:where(html[data-page="topic"]) .tp-main .tp-slot-wide table.compact td {
  padding: var(--s-5) var(--s-6);
  border: 0;
  border-left: 0.5px solid var(--c-sep);
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  line-height: var(--t-wide-table-lh);
}
:where(html[data-page="topic"]) .tp-main .tp-slot-wide table.compact td.key {
  padding-left: var(--s-14);
  text-align: left;
  border-left: 0;
}
:where(html[data-page="topic"]) .tp-main .tp-slot-wide table.compact td:first-child:not(.key) {
  padding-left: var(--s-6);
  border-left: 0;
}
:where(html[data-page="topic"]) .tp-main .tp-slot-wide table.compact td.key + td,
:where(html[data-page="topic"]) .tp-main .tp-slot-wide table.compact td.gap + td {
  border-left: 0;
}
:where(html[data-page="topic"])
  .tp-main
  .tp-slot-wide
  table.compact
  tr:not(.tp-first):not(.gap-row)
  td:not([rowspan], :where(html[data-page="topic"]) .gap) {
  border-top: 0.5px solid var(--c-sep);
}
:where(html[data-page="topic"]) .tp-main .tp-slot-wide table.compact :is(th, :where(html[data-page="topic"]) td).gap {
  width: 8px;
  min-width: 8px;
  padding: 0;
  border: 0;
  background: var(--c-bg);
}
:where(html[data-page="topic"]) .tp-main .tp-slot-wide table.compact tr.gap-row td {
  height: 8px;
  padding: 0;
  border: 0;
  background: var(--c-bg);
}
:where(html[data-page="topic"]) .tp-main .tp-slot-wide table.compact td.tp-lvl {
  padding: var(--s-5) var(--s-12) var(--s-5) var(--s-5);
  border: 0;
}
:where(html[data-page="topic"]) .tp-main .tp-slot-wide table.compact th.tp-lvl {
  padding-right: var(--s-12);
  border: 0;
}
:where(html[data-page="topic"]) .tp-slot-cards {
  display: none;
}
:where(html[data-page="topic"]) .tp-tense {
  display: flex;
  align-items: center;
  gap: var(--s-10);
  margin: var(--s-18) 0 var(--s-8) var(--s-8);
  font-size: var(--t-tense-name-size);
  line-height: var(--t-tense-name-lh);
  font-weight: var(--t-tense-name-weight);
}
:where(html[data-page="topic"]) .tp-tense span:first-child {
  flex-grow: 1;
}
:where(html[data-page="topic"]) .tp-slot .tp-caps {
  margin: var(--s-4) 0 var(--s-6) var(--s-8);
}
:where(html[data-page="topic"]) .tp-slot .tp-card {
  margin-bottom: var(--s-8);
}
:where(html[data-page="topic"]) .tp-main .tp-slot .tp-card td {
  padding: var(--s-9) var(--s-10);
  font-size: var(--t-path-name-size);
  line-height: var(--t-path-name-lh);
}
:where(html[data-page="topic"]) .tp-main .tp-slot .tp-card tbody tr:first-child td {
  border-top: 0;
}
:where(html[data-page="topic"]) .tp-main .tp-slot .tp-card td[rowspan] {
  border-top: 0;
}
:where(html[data-page="topic"]) .tp-main .tp-slot .tp-card td:first-child {
  padding-left: var(--s-10);
}
:where(html[data-page="topic"]) .tp-main .tp-slot .tp-card td.c0 {
  padding-left: var(--s-20);
}

/* Errors: the wrong form in red under a cross, the right one in green under a check, then the rule */
:where(html[data-page="topic"]) .tp-main .tp-card table.errors td:nth-child(1) {
  background: none;
  color: var(--c-bad);
}
:where(html[data-page="topic"]) .tp-main .tp-card table.errors td:nth-child(2) {
  background: none;
  color: var(--c-good);
}
:where(html[data-page="topic"]) .tp-main .tp-card table.errors td:nth-child(3):not(.tp-lvl) {
  color: var(--c-secondary);
}
:where(html[data-page="topic"]) .tp-main .tp-card table.errors td:nth-child(1)::before,
:where(html[data-page="topic"]) .tp-main .tp-card table.errors td:nth-child(2)::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: var(--s-8);
  vertical-align: -1px;
}
:where(html[data-page="topic"]) .tp-main .tp-card table.errors td:nth-child(1)::before {
  background: var(--c-bad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2 2l10 10M12 2L2 12' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2 2l10 10M12 2L2 12' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
:where(html[data-page="topic"]) .tp-main .tp-card table.errors td:nth-child(2)::before {
  background: var(--c-good);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14' fill='none'%3E%3Cpath d='M1.5 7.5l4.5 4.5L14.5 1.5' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14' fill='none'%3E%3Cpath d='M1.5 7.5l4.5 4.5L14.5 1.5' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
:where(html[data-page="topic"]) .tp-main .tp-card table.errors td.tp-lvl::before {
  display: none;
}

/* When the level filter leaves a view nothing: a dashed box and a button that shows the level */
:where(html[data-page="topic"]) .tp-main .filter-empty {
  margin: 0;
  padding: var(--s-22) var(--s-20) var(--s-20);
  border: 1.5px dashed var(--c-dashed);
  border-radius: var(--r-22);
  background: none;
  text-align: center;
  color: var(--c-body);
}
:where(html[data-page="topic"]) .tp-main .filter-empty p {
  margin: 0 0 var(--s-16);
  font-size: var(--t-topic-body-size);
  line-height: var(--t-topic-body-lh);
  letter-spacing: var(--t-topic-body-track);
}
:where(html[data-page="topic"]) .tp-main .filter-empty button {
  height: 44px;
  padding: 0 var(--s-24);
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-size: var(--t-topic-button-size);
  font-weight: var(--t-topic-button-weight);
  letter-spacing: var(--t-topic-button-track);
  cursor: pointer;
}

/* The end of the lesson: Up next, then the study path, a line per level the topic is a step of */
:where(html[data-page="topic"]) .tp-end {
  margin-top: var(--s-40);
}
:where(html[data-page="topic"]) .tp-end .tp-caps {
  margin: 0 0 var(--s-4);
}
:where(html[data-page="topic"]) .up-next + .tp-study,
:where(html[data-page="topic"]) .up-next + .up-next {
  margin-top: var(--s-22);
}
:where(html[data-page="topic"]) .up-next a.next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: var(--s-10);
  padding: var(--s-16) var(--s-20);
  border-radius: var(--r-22);
  background: var(--c-surface);
  color: var(--c-text);
}
:where(html[data-page="topic"]) .up-next a.next:hover {
  box-shadow: none;
  background: color-mix(in srgb, var(--c-surface) 94%, var(--c-text));
}
:where(html[data-page="topic"]) .up-next a.next strong {
  display: block;
  margin: 0;
  font-size: var(--t-section-heading-size);
  line-height: var(--t-section-heading-lh);
  font-weight: var(--t-section-heading-weight);
  letter-spacing: var(--t-section-heading-track);
}
:where(html[data-page="topic"]) .up-next a.next .summary {
  grid-column: 1 / -1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: var(--s-6) 0 0;
  font-size: var(--t-topic-summary-size);
  line-height: var(--t-topic-summary-lh);
  letter-spacing: var(--t-topic-summary-track);
  color: var(--c-body);
}
:where(html[data-page="topic"]) .up-next a.next .lvm {
  grid-column: 2;
  grid-row: 1;
}
:where(html[data-page="topic"]) .up-next a.next .tp-chev {
  grid-column: 3;
  grid-row: 1;
}
:where(html[data-page="topic"]) .tp-study .tp-card {
  margin: 0;
}
:where(html[data-page="topic"]) .tp-path-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  padding: var(--s-12) var(--s-16) var(--s-12) var(--s-20);
}
:where(html[data-page="topic"]) .tp-path-row + .tp-path-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 0;
  height: 0.5px;
  background: var(--c-sep);
}
:where(html[data-page="topic"]) .tp-path-h {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  margin: 0;
  font-size: var(--t-subheadline-size);
  line-height: var(--t-subheadline-lh);
  color: var(--c-secondary);
}
:where(html[data-page="topic"]) .tp-path-h .lvm {
  flex: none;
}
:where(html[data-page="topic"]) .tp-path-n {
  display: flex;
  gap: var(--s-16);
  margin: 0;
  font-size: var(--t-path-name-size);
  line-height: var(--t-path-name-lh);
}
:where(html[data-page="topic"]) .tp-path-n a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 32px;
  color: var(--c-accent);
}
:where(html[data-page="topic"]) .tp-path-n .tp-nx {
  margin-left: auto;
}

/* The contents page of a phone (pages/topic.ts, topic-phone.css): "Contents" over a card of the parts, each row its
   number, title and a chevron, the part last read tinted; there are no level marks */
:where(html[data-page="topic"]) .tp-parts {
  margin-top: var(--s-36);
}
:where(html[data-page="topic"]) .tp-parts .tp-caps {
  margin: 0 0 var(--s-8) var(--s-4);
}
:where(html[data-page="topic"]) .tp-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(html[data-page="topic"]) .tp-list li {
  position: relative;
}
:where(html[data-page="topic"]) .tp-list li + li::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 20px;
  height: 0.5px;
  background: var(--c-sep);
}
:where(html[data-page="topic"]) .tp-list a {
  display: flex;
  align-items: center;
  gap: var(--s-10);
  min-height: 44px;
  padding: 0 var(--s-16) 0 var(--s-20);
  color: var(--c-text);
  font-size: var(--t-row-title-size);
  line-height: var(--t-row-title-lh);
  letter-spacing: var(--t-row-title-track);
}
:where(html[data-page="topic"]) .tp-list a:hover {
  background: var(--c-fill);
}
:where(html[data-page="topic"]) .tp-list a.on {
  background: var(--c-accent-wash);
  color: var(--c-accent);
  font-weight: var(--t-emphasis-weight);
}
:where(html[data-page="topic"]) .tp-list .tp-n {
  width: 24px;
  font-size: var(--t-subheadline-size);
  color: var(--c-secondary);
}
:where(html[data-page="topic"]) .tp-list a.on .tp-n {
  color: var(--c-accent);
}
:where(html[data-page="topic"]) .tp-list .name {
  flex: 1;
  min-width: 0;
  padding: var(--s-11) 0;
}

/* The topic page from 1024px (pages/topic.ts, track-topic.css for the course's column): the reading 32px from the
   column and 24px from the window's right, with the topic's parts pinned at its top right as an outline, 220px wide from
   1280px and 168px under it; the bar's buttons fixed at the window's top right, the head 84px under the top. A table
   wider than the reading scrolls sideways inside its card (client-topic.ts); in a narrow reading a table of five or more
   columns keeps its first column fixed, and on a phone a slot table becomes cards */
@media (min-width: 1024px) {
  :where(html[data-page="topic"]) .tp-wrap {
    padding: var(--s-84) var(--s-16) var(--s-48) var(--s-24);
  }
  :where(html[data-page="topic"]) .tp-cols {
    display: flex;
    align-items: flex-start;
    gap: var(--s-20);
  }
  :where(html[data-page="topic"]) .tp-col {
    flex: 1;
  }
  :where(html[data-page="topic"]) .tp-back,
  :where(html[data-page="topic"]) .tp-parts {
    display: none;
  }
  :where(html[data-page="topic"]) .tp-main .lanes {
    --lane-col-gap: var(--s-32);
  }
  :where(html[data-page="topic"]) .tp-main .tp-card th:last-child,
  :where(html[data-page="topic"]) .tp-main .tp-card td:last-child {
    padding-right: var(--s-16);
  }
  :where(html[data-page="topic"]) .tp-main .sections > .part {
    scroll-margin-top: 84px;
  }
  /* The outline follows the window's scroll: it sticks under the bar, the part in view marked with an accent rule */
  :where(html[data-page="topic"]) .tp-outline {
    display: block;
    position: sticky;
    top: 84px;
    flex: none;
    box-sizing: border-box;
    width: 168px;
    max-height: calc(100vh - 104px);
    max-height: calc(100dvh - 104px);
    padding-left: var(--s-4);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  :where(html[data-page="topic"]) .tp-outline .tp-caps {
    margin: 0;
    font-size: var(--t-outline-caps-size);
    line-height: var(--t-outline-caps-lh);
    letter-spacing: var(--t-outline-caps-track);
  }
  :where(html[data-page="topic"]) .tp-outline a {
    display: flex;
    gap: var(--s-8);
    padding: var(--s-5) var(--s-10) var(--s-5) var(--s-12);
    border-left: 2px solid var(--c-sep);
    font-size: var(--t-footnote-size);
    line-height: var(--t-footnote-lh);
    color: var(--c-body);
  }
  :where(html[data-page="topic"]) .tp-outline a:hover {
    color: var(--c-text);
  }
  :where(html[data-page="topic"]) .tp-outline b {
    flex: none;
    font-weight: var(--t-emphasis-weight);
    font-variant-numeric: tabular-nums;
    color: var(--c-secondary);
  }
  :where(html[data-page="topic"]) .tp-outline a.on {
    border-left-color: var(--c-accent);
    color: var(--c-accent);
    font-weight: var(--t-emphasis-weight);
  }
  :where(html[data-page="topic"]) .tp-outline a.on b {
    color: var(--c-accent);
  }
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  html:where([data-page="topic"]) {
    scroll-behavior: smooth;
  }
}
@media (min-width: 1280px) {
  :where(html[data-page="topic"]) .tp-wrap {
    padding: var(--s-84) var(--s-24) var(--s-48) var(--s-32);
  }
  :where(html[data-page="topic"]) .tp-cols {
    gap: var(--s-28);
  }
  :where(html[data-page="topic"]) .tp-outline {
    width: 220px;
  }
}
/* A narrow lesson column (a phone, the right pane of a tablet): a table of five or more columns scrolls sideways with
   its first column fixed; on a phone's width a slot table becomes cards by tense and sentence type */
@container (max-width: 420px) {
  :where(html[data-page="topic"]) .tp-slot-wide {
    display: none;
  }
  :where(html[data-page="topic"]) .tp-slot-cards {
    display: block;
  }
}
@container (max-width: 640px) {
  :where(html[data-page="topic"]) .tp-wide table {
    min-width: 540px;
  }
  :where(html[data-page="topic"]) .tp-scroll :is(th, :where(html[data-page="topic"]) td):first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--c-surface);
  }
}
:where(html[data-page="topic"]) .tp-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 36px;
  background: linear-gradient(to right, transparent, var(--c-surface));
  pointer-events: none;
  transition: opacity 0.15s;
  display: none;
}
@container (max-width: 640px) {
  :where(html[data-page="topic"]) .tp-scroll::after {
    display: block;
  }
}
:where(html[data-page="topic"]) .tp-scroll.tp-end-reached::after {
  opacity: 0;
}

/* A topic on phones (below 1024px): two pages in one document. The contents page: Back to the course, the title with
   the topic's levels, the lead, and the parts as rows with chevrons (topic-pagers.css). Once the address names a part
   (#part) the reading takes its place: Back to the contents, the head and the lead, then the sections, the browser
   having scrolled to the part. The bottom bar, the fade and the results are the course column's (track-phone.css) */
@media screen and (max-width: 1023px) {
  :where(html[data-page="topic"]) .tp-wrap {
    display: block;
    padding: 0 var(--s-20) var(--bar-clearance);
  }
  /* The title row, Back and the title, stays at the top while the page scrolls (the head's boxes give way so its
     containing block is the whole page) and the part the address names opens right under it; the summary opens at the
     top of the page, its head in view */
  :where(html[data-page="topic"]) :is(.tp-head, .doc-head) {
    display: contents;
  }
  :where(html[data-page="topic"]) .tp-head .title-row {
    position: sticky;
    top: 0;
    z-index: 10;
    box-sizing: border-box;
    min-height: 44px;
    margin: 0 calc(-1 * var(--s-20));
    padding: max(var(--s-16), calc(env(safe-area-inset-top) + var(--s-8))) var(--s-20) var(--s-8);
    background: var(--c-bg);
  }
  :where(html[data-page="topic"]) .tp-main .sections > .part {
    scroll-margin-top: 76px;
  }
  :where(html[data-page="topic"]) .tp-main .sections > .part.summary {
    scroll-margin-top: 2000px;
  }
  :where(html[data-page="topic"]) .tp-back-r,
  html:where([data-page="topic"]):has(.tp-body :target) .tp-back-c,
  html:where([data-page="topic"]):has(.tp-body :target) .tp-parts {
    display: none;
  }
  html:where([data-page="topic"]):has(.tp-body :target) .tp-back-r {
    display: flex;
  }
  html:where([data-page="topic"]):not(:has(.tp-body :target)) .tp-body {
    display: none;
  }
}

/* Phones, continued: the lesson's tables */
@media screen and (max-width: 1023px) {
  :where(html[data-page="topic"]) .tp-main .tp-card table {
    font-size: var(--t-callout-size);
    line-height: var(--t-callout-lh);
  }
  :where(html[data-page="topic"]) .tp-main .tp-card td {
    padding: var(--s-9) var(--s-8);
  }
  :where(html[data-page="topic"]) .tp-main .tp-card :is(th, :where(html[data-page="topic"]) td):first-child {
    padding-left: var(--s-20);
  }
  :where(html[data-page="topic"]) .tp-main .tp-card th {
    padding: var(--s-12) var(--s-8) var(--s-8);
  }
  :where(html[data-page="topic"]) .tp-main .tp-card td .tp-tr {
    font-size: var(--t-cell-translation-phone-size);
    line-height: var(--t-cell-translation-phone-lh);
  }
  :where(html[data-page="topic"]) .tp-main .tp-card .table-wrap {
    -webkit-overflow-scrolling: touch;
  }
  :where(html[data-page="topic"]) .tp-main .tp-card table.errors,
  :where(html[data-page="topic"]) .tp-main .tp-card table.errors tbody {
    display: block;
  }
  :where(html[data-page="topic"]) .tp-main .tp-card table.errors thead {
    display: none;
  }
  :where(html[data-page="topic"]) .tp-main .tp-card table.errors tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: var(--s-11) var(--s-16) var(--s-11) var(--s-20);
    border-top: 0.5px solid var(--c-sep);
  }
  :where(html[data-page="topic"]) .tp-main .tp-card table.errors tr:first-child {
    border-top: 0;
  }
  :where(html[data-page="topic"]) .tp-main .tp-card table.errors td {
    display: block;
    grid-column: 1;
    padding: 0;
    border: 0;
    font-size: var(--t-topic-body-size);
    line-height: var(--t-topic-body-lh);
    letter-spacing: var(--t-topic-body-track);
  }
  :where(html[data-page="topic"]) .tp-main .tp-card table.errors td:nth-child(3):not(.tp-lvl) {
    margin: var(--s-2) 0 0 var(--s-22);
    font-size: var(--t-subheadline-size);
    line-height: var(--t-subheadline-lh);
  }
  :where(html[data-page="topic"]) .tp-main .tp-card table.errors td.tp-lvl {
    grid-column: 2;
    grid-row: 1 / span 3;
    padding: 0 0 0 var(--s-12);
  }
  :where(html[data-page="topic"]) .tp-main .tp-card table.errors td.tp-lvl:nth-child(3) {
    grid-row: 1 / span 2;
  }
}

/* The reading of the new library (reading*.ts), its Lib classes: the root, the rows and their cards, the heads, the lists and the capsule. */
.lx {
  font-family: var(--f-sans);
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
}

.lx,
.lx *,
.lx *::before,
.lx *::after {
  box-sizing: border-box;
}

.lx a {
  color: var(--c-accent);
  text-decoration: none;
}

.lx p,
.lx h1,
.lx h2,
.lx h3,
.lx ul,
.lx figure {
  margin: 0;
}

/* The page of a Lib file: the ground, the title, and a panel for each state, drawn in the theme the page's class names. */
/* The Lib classes the components reuse. Margins belong to the container that stacks them. */
.lx-card {
  background: var(--c-surface);
  border-radius: var(--r-22);
  overflow: hidden;
}

.lx-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-10);
  min-height: 52px;
  padding: 0 var(--s-16) 0 var(--s-20);
  font-size: var(--t-reading-body-size);
  line-height: var(--t-reading-body-lh);
  letter-spacing: var(--t-reading-body-track);
}

.lx .lx-row-a {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--s-10);
  color: var(--c-text);
}

.lx-cover::after {
  content: "";
  position: absolute;
  inset: 0;
}

.lx-ladder,
.lx-row .lx-chev,
.lx-row .lx-tick {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.lx-ladder {
  pointer-events: auto;
}

.lx-row + .lx-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--s-20);
  right: 0;
  height: 0.5px;
  background: var(--c-sep);
}

.lx-row-t {
  flex-grow: 1;
  min-width: 0;
  padding: var(--s-14) 0;
}

.lx-row-sub {
  display: block;
  margin-top: var(--s-4);
  font-size: var(--t-reading-translation-size);
  line-height: var(--t-reading-translation-lh);
  letter-spacing: var(--t-reading-translation-track);
  color: var(--c-muted);
}

.lx-n {
  flex-shrink: 0;
  font-family: var(--f-mono);
  font-size: var(--t-reading-translation-size);
  line-height: var(--t-reading-translation-lh);
  letter-spacing: var(--t-reading-translation-track);
  font-weight: var(--t-emphasis-weight);
  color: var(--c-muted);
}

.lx-row.lx-cur.lx-here {
  background: var(--c-accent-soft);
}

.lx-chev {
  flex-shrink: 0;
  display: flex;
  color: var(--c-faint);
}

.lx-tick {
  flex-shrink: 0;
  display: flex;
  color: var(--c-accent);
}

.lx-h1 {
  font-size: var(--t-reading-title-size);
  line-height: var(--t-reading-title-lh);
  letter-spacing: var(--t-reading-title-track);
  font-weight: var(--t-reading-title-weight);
}

.lx-h2 {
  display: flex;
  align-items: baseline;
  gap: var(--s-10);
  font-size: var(--t-reading-subtitle-size);
  line-height: var(--t-reading-subtitle-lh);
  letter-spacing: var(--t-reading-subtitle-track);
  font-weight: var(--t-reading-subtitle-weight);
}

.lx-h2 > .lx-t {
  flex-grow: 1;
  min-width: 0;
}

.lx-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-8);
  font-size: var(--t-reading-translation-size);
  line-height: var(--t-reading-translation-lh);
  letter-spacing: var(--t-reading-translation-track);
  color: var(--c-muted);
}

.lx-meta-i {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
}

.lx-dot {
  color: var(--c-faint);
}

.lx-num {
  margin-right: var(--s-10);
  font-family: var(--f-mono);
  font-size: var(--t-section-number-size);
  font-weight: var(--t-section-number-weight);
  letter-spacing: var(--t-section-number-track);
  color: var(--c-muted);
}

/* The reading's labels, examples, tables and level marks. */
.lx-label {
  font-size: var(--t-reading-label-size);
  line-height: var(--t-reading-label-lh);
  letter-spacing: var(--t-reading-label-track);
  font-weight: var(--t-reading-label-weight);
  text-transform: uppercase;
  color: var(--c-muted);
}

.lx-lead {
  font-size: var(--t-reading-body-size);
  line-height: var(--t-reading-body-lh);
  letter-spacing: var(--t-reading-body-track);
  color: var(--c-body);
}

.lx-p {
  font-size: var(--t-reading-body-size);
  line-height: var(--t-reading-body-lh);
  letter-spacing: var(--t-reading-body-track);
}

.lx-b {
  font-weight: var(--t-mark-strong-weight);
  color: var(--c-accent);
}

.lx-ipa {
  font-family: var(--f-mono);
  font-size: var(--t-reading-translation-size);
  letter-spacing: var(--t-ipa-track);
  color: var(--c-body);
}

.lx-sl,
.lx-j {
  font-style: normal;
  color: var(--c-faint);
}

.lx-capsule {
  display: inline-block;
  margin-right: var(--s-6);
  padding: 0 var(--s-8);
  border-radius: var(--r-pill);
  background: var(--c-fill);
  color: var(--c-muted);
  font-size: var(--t-reading-small-size);
  line-height: var(--t-reading-small-lh);
  font-weight: var(--t-emphasis-weight);
  vertical-align: 1px;
}

.lx-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-10);
}

.lx-li {
  display: grid;
  grid-template-columns: var(--s-20) minmax(0, 1fr);
  font-size: var(--t-reading-body-size);
  line-height: var(--t-reading-body-lh);
  letter-spacing: var(--t-reading-body-track);
}

.lx-li::before {
  content: "";
  grid-column: 1;
  width: var(--s-6);
  height: var(--s-6);
  margin: var(--s-10) 0 0 var(--s-4);
  border-radius: 50%;
  background: var(--c-faint);
}

.lx-li > .lx-c {
  grid-column: 2;
  min-width: 0;
}

.lx-ex {
  display: block;
  margin-top: var(--s-6);
  padding: var(--s-2) 0 var(--s-2) var(--s-12);
  border-left: var(--s-2) solid var(--c-accent-line);
  color: var(--c-text);
}

.lx-tr {
  display: block;
  font-size: var(--t-reading-translation-size);
  line-height: var(--t-reading-translation-lh);
  letter-spacing: var(--t-reading-translation-track);
  font-style: italic;
  color: var(--c-muted);
}

.lx-tcard {
  background: var(--c-surface);
  border-radius: var(--r-22);
  overflow: hidden;
}

.lx-table {
  width: 100%;
  border-collapse: collapse;
}

.lx-table th {
  padding: var(--s-12) var(--s-10) var(--s-8);
  font-size: var(--t-reading-label-size);
  line-height: var(--t-reading-label-lh);
  letter-spacing: var(--t-reading-label-track);
  font-weight: var(--t-reading-label-weight);
  text-transform: uppercase;
  color: var(--c-muted);
  text-align: left;
  vertical-align: bottom;
}

.lx-table td {
  padding: var(--s-8) var(--s-10);
  font-size: var(--t-reading-translation-size);
  line-height: var(--t-reading-translation-lh);
  letter-spacing: var(--t-reading-translation-track);
  vertical-align: middle;
  border-top: 0.5px solid var(--c-sep);
}

.lx-table :is(th, td):first-child {
  padding-left: var(--s-20);
}

/* The level mark: a capsule behind seven bars and the range in words. */
.lx-ladder {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.lx-cells {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-6);
  border-radius: var(--r-pill);
  background: var(--c-level-mark-fill);
}

.lx-cell {
  width: var(--s-6);
  height: var(--s-12);
  border-radius: var(--r-4);
  background: var(--c-level-mark-off);
}

.lx-lvt {
  margin-left: var(--s-6);
  font-size: var(--t-reading-label-size);
  line-height: var(--s-12);
  font-weight: var(--t-reading-label-weight);
  color: var(--c-level-mark-text);
  white-space: nowrap;
}

.lx-ladder.lx-sm .lx-lvt {
  margin-left: var(--s-4);
  font-size: var(--t-badge-size);
}

/* The reading's level marks: a level's bar in its strong colour, and the level pill, a level's code alone on its colour
   in the essence rows of a topic whose subtopics span levels. */
.lx-ladder.lx-sm .lx-cell {
  width: var(--s-4);
  height: var(--s-8);
}

.lx-pill {
  flex-shrink: 0;
  padding: 0 var(--s-8);
  border-radius: var(--r-pill);
  font-size: var(--t-badge-size);
  line-height: var(--t-badge-lh);
  font-weight: var(--t-badge-weight);
  letter-spacing: var(--t-badge-track);
  white-space: nowrap;
}

.lx-pill-A0 {
  background: var(--c-level-a0-pill);
  color: var(--c-level-a0-pill-ink);
}

.lx-pill-A1 {
  background: var(--c-level-a1-pill);
  color: var(--c-level-a1-pill-ink);
}

.lx-pill-A2 {
  background: var(--c-level-a2-pill);
  color: var(--c-level-a2-pill-ink);
}

.lx-pill-B1 {
  background: var(--c-level-b1-pill);
  color: var(--c-level-b1-pill-ink);
}

.lx-pill-B2 {
  background: var(--c-level-b2-pill);
  color: var(--c-level-b2-pill-ink);
}

.lx-pill-C1 {
  background: var(--c-level-c1-pill);
  color: var(--c-level-c1-pill-ink);
}

.lx-pill-C2 {
  background: var(--c-level-c2-pill);
  color: var(--c-level-c2-pill-ink);
}

.lx-cell.lx-on-A0 {
  background: var(--c-level-a0-strong);
}

.lx-cell.lx-on-A1 {
  background: var(--c-level-a1-strong);
}

.lx-cell.lx-on-A2 {
  background: var(--c-level-a2-strong);
}

.lx-cell.lx-on-B1 {
  background: var(--c-level-b1-strong);
}

.lx-cell.lx-on-B2 {
  background: var(--c-level-b2-strong);
}

.lx-cell.lx-on-C1 {
  background: var(--c-level-c1-strong);
}

.lx-cell.lx-on-C2 {
  background: var(--c-level-c2-strong);
}

/* The reading's components: the parts, the marks, the why box, the examples, the buttons and the errors' frame. */
/* Text on a fill reads in body (muted is 4.15:1 there in light). Dots and joiners are decoration, drawn by the stylesheet so they stay out of the text; the slashes of an IPA transcription are text, in muted. */
.lx-capsule,
.rd-why .lx-label {
  color: var(--c-body);
}

.lx-ipa .lx-sl {
  color: var(--c-muted);
}

.lx-dot::before {
  content: "·";
}

.lx-j::before {
  content: " — ";
  white-space: pre;
}

.rd-flow {
  display: flex;
  flex-direction: column;
  gap: var(--s-20);
}

.rd-stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}

.rd-head {
  display: flex;
  flex-direction: column;
}

.rd-head .lx-meta {
  margin-top: var(--s-8);
}

.rd-head .lx-lead {
  margin-top: var(--s-12);
}

.rd-part {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}

.rd-head + .rd-part {
  margin-top: var(--s-40);
}

.rd-part + .rd-part {
  margin-top: var(--s-28);
}

.rd-wrong {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.rd-term {
  font-weight: var(--t-mark-strong-weight);
  color: var(--c-text);
}

.rd-var {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: var(--t-mark-strong-weight);
  color: var(--c-accent);
  text-decoration: underline dotted;
  text-decoration-color: var(--c-accent-line);
  text-underline-offset: 3px;
  cursor: pointer;
}

.rd-l1 {
  font-style: normal;
  color: var(--c-text);
}

.rd-why {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  padding: var(--s-12) var(--s-14);
  border-radius: var(--r-16);
  background: var(--c-fill);
}

.rd-why p {
  margin: 0;
  font-size: var(--t-reading-note-size);
  line-height: var(--t-reading-note-lh);
  letter-spacing: var(--t-reading-note-track);
}

.rd-exs {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}

.rd-exs .lx-ex {
  margin: 0;
}

.rd-exs .lx-tr + .lx-tr {
  margin-top: var(--s-2);
}

.rd-tag-row {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  align-items: flex-start;
}

.rd-tag-row .lx-capsule {
  margin-right: 0;
}

.rd-trl {
  display: flex;
  gap: var(--s-6);
  align-items: baseline;
}

.rd-trl .lx-capsule {
  margin-right: 0;
  flex-shrink: 0;
}

.rd-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-6);
  min-height: 44px;
  padding: 0 var(--s-14);
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-fill);
  color: var(--c-text);
  font: inherit;
  font-size: var(--t-reading-translation-size);
  line-height: var(--t-reading-translation-lh);
  letter-spacing: var(--t-reading-translation-track);
  font-weight: var(--t-emphasis-weight);
  cursor: pointer;
}

.rd-bar {
  display: flex;
  justify-content: flex-end;
}

.rd-err {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-18);
  background: var(--c-surface);
}

.rd-err-body {
  display: grid;
  grid-template-columns: var(--s-20) minmax(0, 1fr);
  gap: var(--s-4) var(--s-8);
  padding: var(--s-12) var(--s-14) var(--s-12) var(--s-16);
  font-size: var(--t-reading-note-size);
  line-height: var(--t-reading-note-lh);
  letter-spacing: var(--t-reading-note-track);
}

.rd-err-body > p,
.rd-err-body > ul {
  margin: 0;
}

/* The reading's errors, the picture's cells and the layers' lines. */
.rd-err-i {
  display: flex;
  padding-top: var(--s-2);
}

.rd-err-w {
  color: var(--c-bad);
}

.rd-err-r {
  color: var(--c-good);
}

.rd-fix {
  padding: 0 var(--s-2);
  border-radius: var(--r-4);
  background: var(--c-good-soft);
  font-weight: var(--t-mark-strong-weight);
}

.rd-err-r .lx-tr {
  margin-top: var(--s-2);
}

.rd-err-rule {
  grid-column: 2;
  margin-top: var(--s-4);
  font-size: var(--t-reading-translation-size);
  line-height: var(--t-reading-translation-lh);
  letter-spacing: var(--t-reading-translation-track);
  color: var(--c-body);
}

.rd-err-why {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  margin-top: var(--s-4);
  padding: 0;
  list-style: none;
}

.rd-err-why li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
  font-size: var(--t-reading-translation-size);
  line-height: var(--t-reading-translation-lh);
  letter-spacing: var(--t-reading-translation-track);
  color: var(--c-muted);
}

.rd-err-why .lx-capsule {
  margin-right: 0;
  flex-shrink: 0;
}

.rd-err-foot {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-8);
  min-height: 44px;
  padding: 0 var(--s-16);
  border-top: 0.5px solid var(--c-sep);
  font-size: var(--t-reading-translation-size);
  line-height: var(--t-reading-translation-lh);
  letter-spacing: var(--t-reading-translation-track);
}

.rd-err-foot a {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--s-8);
}

.rd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-16);
}

.rd-cell {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-18);
  background: var(--c-surface);
}

.rd-cell svg {
  display: block;
  width: 100%;
  height: auto;
}

.rd-cell-t {
  padding: 0 var(--s-12) var(--s-12);
  font-size: var(--t-reading-translation-size);
  line-height: var(--t-reading-translation-lh);
  letter-spacing: var(--t-reading-translation-track);
  font-weight: var(--t-emphasis-weight);
}

.rd-blk {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

.rd-blk > p {
  margin: 0;
  font-size: var(--t-reading-body-size);
  line-height: var(--t-reading-body-lh);
  letter-spacing: var(--t-reading-body-track);
}

.rd-lang {
  display: flex;
  gap: var(--s-6);
  align-items: baseline;
  font-size: var(--t-reading-translation-size);
  line-height: var(--t-reading-translation-lh);
  letter-spacing: var(--t-reading-translation-track);
  color: var(--c-muted);
}

.rd-lang .lx-capsule {
  margin-right: 0;
  flex-shrink: 0;
}

.rd-card-s {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}

/* The reading's forms: the variety marks, the measure, the switch, the side-by-side grid and the reveal control. */
.rd-vr + .rd-vr::before {
  content: "/ ";
  color: var(--c-faint);
}

.rd-sq {
  aspect-ratio: 1 / 1;
}

.rd-why .rd-lang,
.rd-why .lx-ipa .lx-sl {
  color: var(--c-body);
}

.rd-stk {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  min-width: 0;
}

.rd-pic {
  margin-bottom: var(--s-16);
}

.rd-part {
  scroll-margin-top: var(--s-20);
}

.rd-err-rule.rd-lang {
  margin-top: 0;
}

/* Measure: a line of running text stops at the measure token; the extra width goes to the margin. */
.lx-lead,
.lx-p,
.rd-why,
.rd-blk {
  max-width: var(--measure);
}

/* The width rule: from a reading column of 640 the essence stands in two columns, an error in three; the picture's cells follow the column. */
.rd-err .rd-err-c {
  grid-template-columns: var(--s-20) minmax(0, 1fr);
  gap: var(--s-8);
  align-content: start;
}

.rd-err-c > p {
  margin: 0;
}

.rd-err-rules {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

.rd-err-rules > * {
  grid-column: 2;
}

/* The Contents rows of a left pane and the outline's empty number. */
/* The layers (R9): the switch, the grid whose rows the languages share, and the reveal control. */
.rd-seg {
  display: flex;
  gap: var(--s-2);
  padding: var(--s-2);
  border-radius: var(--r-pill);
  background: var(--c-fill);
}

.rd-seg button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 0 var(--s-12);
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  font: inherit;
  font-size: var(--t-reading-translation-size);
  line-height: var(--t-reading-translation-lh);
  letter-spacing: var(--t-reading-translation-track);
  font-weight: var(--t-emphasis-weight);
  color: var(--c-body);
  cursor: pointer;
}

.rd-seg button[aria-selected="true"] {
  background: var(--c-segment);
  color: var(--c-text);
}

.rd-head + .rd-seg,
.rd-seg + .rd-part {
  margin-top: var(--s-20);
}

.rd-lgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--s-28);
  row-gap: var(--s-12);
  margin-top: var(--s-20);
  align-items: start;
}

.rd-lc {
  min-width: 0;
}

.rd-lspan {
  grid-column: 1 / -1;
  min-width: 0;
}

.rd-lspan:not(:first-child) {
  margin-top: var(--s-16);
}

.rd-lhead {
  display: inline-flex;
  align-items: center;
  gap: var(--s-6);
  font-size: var(--t-reading-label-size);
  line-height: var(--t-reading-label-lh);
  letter-spacing: var(--t-reading-label-track);
  font-weight: var(--t-reading-label-weight);
  text-transform: uppercase;
  color: var(--c-muted);
}

.rd-lhead .lx-capsule {
  margin-right: 0;
}

.rd-lrow {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  row-gap: var(--s-4);
}

.rd-lsent {
  grid-column: 1 / -1;
  margin: 0;
}

.rd-lc .lx-li {
  margin: 0;
}

.rd-th2 {
  display: block;
  margin-top: var(--s-2);
  text-transform: none;
  font-weight: var(--t-regular-weight);
  color: var(--c-muted);
}

.rd-rv {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.rd-more {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--c-muted);
  text-align: left;
  cursor: pointer;
}
.rd-seg + .rd-head {
  margin-top: var(--s-20);
}

/* The reading on the web: the width rule by the reading column, the picture's cells, the reveal's panel and Full screen. */
.rd-more svg {
  margin-left: auto;
  color: var(--c-faint);
}

.rd-more[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.rd-more .lx-capsule {
  margin-right: 0;
}

.rd-rv-open {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  padding-left: var(--s-12);
  border-left: var(--s-2) solid var(--c-accent-line);
}

/* The web: the reading column sets the width rule. Below 640 the essence's two cards join into one and an error's columns stack;
   from 640 they stand side by side. */
.rd-article {
  container-type: inline-size;
}

.rd-two {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rd-two > .lx-card + .lx-card {
  position: relative;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.rd-two > .lx-card:has(+ .lx-card) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.rd-two > .lx-card + .lx-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--s-20);
  right: 0;
  height: 0.5px;
  background: var(--c-sep);
}

.rd-err-c,
.rd-err-rules {
  display: contents;
}

@container (min-width: 640px) {
  .rd-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-16);
    align-items: start;
  }
  .rd-two > .lx-card + .lx-card,
  .rd-two > .lx-card:has(+ .lx-card) {
    border-radius: var(--r-22);
  }
  .rd-two > .lx-card + .lx-card::before {
    content: none;
  }
  .rd-err-3 .rd-err-body {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--s-16);
  }
  .rd-err-2 .rd-err-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--s-20);
  }
  .rd-err .rd-err-c {
    display: grid;
  }
  .rd-err .rd-err-rules {
    display: flex;
  }
  .rd-err .rd-err-rules > * {
    grid-column: auto;
    margin-top: 0;
  }
  .rd-err .rd-err-why {
    grid-column: 1 / -1;
  }
}

/* The picture's cells: 150 px at the least, so two stand across at 402, three in a 556 column and five in 816. */
.rd-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.rd-lgrid.rd-l2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rd-rv-open[hidden] {
  display: none;
}

.rd-form > .rd-seg {
  margin-bottom: var(--s-20);
}

/* Full screen: a sheet over the dimmed page, its top corners rounded, the subtopic's title and Close at its top, the whole
   table fitted to its width (--rd-fit, set by client-reading.ts); a tap on the table shows it at its own size to scroll. */
.rd-full {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.rd-full[open] {
  display: flex;
  flex-direction: column;
}
.rd-full::backdrop {
  background: var(--c-scrim, rgba(0, 0, 0, 0.18));
}
.rd-fs-dlg {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin-top: var(--s-40);
  border-radius: var(--r-22) var(--r-22) 0 0;
  background: var(--c-sheet);
  color: var(--c-text);
  box-shadow: var(--sh-sheet);
}
.rd-fs-bar {
  display: flex;
  align-items: center;
  gap: var(--s-12);
  min-height: var(--topbar-height);
  padding: var(--s-8) var(--s-16);
}
.rd-fs-t {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: var(--t-reading-subtitle-size);
  line-height: var(--t-reading-subtitle-lh);
  letter-spacing: var(--t-reading-subtitle-track);
  font-weight: var(--t-reading-subtitle-weight);
}
.rd-fs-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: var(--s-16);
}
.rd-fit {
  width: max-content;
  zoom: var(--rd-fit, 1);
  cursor: zoom-in;
}
.rd-fit[data-zoomed] {
  zoom: 1;
  cursor: zoom-out;
}
/* Side by side takes the page's width: the course column and the outline give way, while the column's glass bar, fixed
   at the window's top right with Variety and 文A, stays as on every form (8.2). */
@media (min-width: 1024px) {
  html[data-rd-form="side"] :is(.cl-side, .cl-top) {
    display: contents;
  }
  html[data-rd-form="side"] .tp-outline,
  html[data-rd-form="side"] .cl-side > :not(.cl-top),
  html[data-rd-form="side"] .cl-top > :not(.cl-nav),
  html[data-rd-form="side"] .cl-nav > :not(.cl-bar) {
    display: none;
  }
}
/* The outline names the parts the reading draws for this reader. */
.tp-outline a[hidden] {
  display: none;
}

/* The reading's tiles (reading-blocks.ts): a list of forms with one-word examples as cards that fill the column, 104 px at
   the least, so three stand across on a phone and more on a wider column; a tile that carries the word's translations under
   their language tags stands 150 at the least, two across on a phone, so a word stands whole. */
.rd-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: var(--s-12);
  margin: var(--s-12) 0;
}
.rd-tiles.rd-tl {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.rd-tile {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-12);
  border-radius: var(--r-16);
  background: var(--c-surface);
}
.rd-tile .rd-term {
  font-size: var(--t-reading-tile-size);
  line-height: var(--t-reading-tile-lh);
}
.rd-tile .rd-tile-s {
  color: var(--c-muted);
}
.rd-tile .lx-tr {
  margin: 0;
}

/* The review preview (pages/review.ts), in a v1 preview build alone: the page, its status card, the queue's rows and the
   findings' cards. */
.rv {
  padding: var(--s-16) var(--s-20) calc(var(--s-40) + var(--s-8));
}
@media (min-width: 1024px) {
  .rv {
    width: calc(var(--s-40) * 20 + var(--s-16));
    margin: 0 auto;
    padding: var(--s-40) 0 calc(var(--s-40) + var(--s-8));
  }
}
.rv-bar {
  display: flex;
  align-items: center;
  gap: var(--s-12);
  min-height: calc(var(--s-40) + var(--s-4));
}
.rv-bar .lx-h1 {
  margin: 0;
}
.rv-up {
  position: static;
  flex-shrink: 0;
  color: var(--c-text);
}
.rv-counts {
  margin-top: var(--s-8);
}
.rv-secs {
  display: flex;
  flex-direction: column;
  gap: var(--s-28);
  margin-top: var(--s-28);
}
.rv-sec {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}
.rv-sec > .lx-h2 {
  margin-left: var(--s-20);
}
.rv-sec .lx-card {
  margin-top: var(--s-4);
}
.rv .lx-ix-count {
  flex-shrink: 0;
  font-size: var(--t-reading-small-size);
  line-height: var(--t-reading-small-lh);
  letter-spacing: var(--t-reading-small-track);
  font-weight: var(--t-reading-small-weight);
  color: var(--c-muted);
}
.lx-irow {
  align-items: center;
  padding: var(--s-12) var(--s-16) var(--s-12) var(--s-20);
}
.lx-irow-t {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.lx .lx-irow-title {
  font-size: var(--t-reading-body-size);
  line-height: var(--t-reading-body-lh);
  letter-spacing: var(--t-reading-body-track);
  font-weight: var(--t-emphasis-weight);
  color: var(--c-text);
}
.lx-irow-meta {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  margin-top: var(--s-6);
}
.lx-irow-t .lx-ladder {
  align-self: flex-start;
  position: relative;
  z-index: 1;
}
.rv-caps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-6);
  margin-top: var(--s-4);
  font-size: var(--t-reading-translation-size);
  line-height: var(--t-reading-translation-lh);
  letter-spacing: var(--t-reading-translation-track);
  color: var(--c-muted);
}
.rv-caps .lx-capsule,
.rv-fc-head .lx-capsule {
  margin-right: 0;
}
.lx-capsule.rv-warn {
  background: var(--c-warn-soft);
  color: var(--c-warn);
}
.lx-capsule.rv-accent {
  background: var(--c-accent-soft);
  color: var(--c-accent);
}
.rv-sum {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  margin-top: var(--s-20);
  padding: var(--s-14) var(--s-16);
}
.rv-l,
.rv-problems {
  margin: 0;
  font-size: var(--t-reading-translation-size);
  line-height: var(--t-reading-translation-lh);
  letter-spacing: var(--t-reading-translation-track);
  color: var(--c-body);
}
.rv-k {
  font-weight: var(--t-emphasis-weight);
  color: var(--c-muted);
}
.rv-l .rv-caps {
  display: inline-flex;
  margin-top: 0;
  vertical-align: middle;
}
.rv-sum + .rd-article > .rd-seg {
  margin-top: var(--s-12);
}
.rv-pins {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  margin-top: var(--s-8);
}
.lx-card .rv-pins {
  margin: 0;
  padding: var(--s-8) var(--s-16) var(--s-12) var(--s-20);
}
.lx-li .rv-pins,
.rd-exs .rv-pins {
  margin-top: var(--s-6);
}
.rv-fc {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  padding: var(--s-10) var(--s-12) var(--s-10) var(--s-14);
  border: 0.5px solid var(--c-border);
  border-left: var(--s-4) solid var(--c-border);
  border-radius: var(--r-12);
  background: var(--c-surface);
}
.rv-fc.rv-open {
  border-left-color: var(--c-warn);
}
.rv-fc p {
  margin: 0;
  font-size: var(--t-reading-translation-size);
  line-height: var(--t-reading-translation-lh);
  letter-spacing: var(--t-reading-translation-track);
  color: var(--c-body);
}
.rv-fc-head {
  display: flex;
  align-items: center;
  gap: var(--s-8);
}
.rv-fc-head:empty {
  display: none;
}
.rv-fc-fix b {
  font-weight: var(--t-mark-strong-weight);
  color: var(--c-text);
}
.rv-fc .rv-fc-ans {
  color: var(--c-muted);
}
.rv-fc.rv-open .rv-fc-ans {
  font-weight: var(--t-emphasis-weight);
  color: var(--c-warn);
}
.rv-fc .rv-fc-foot {
  font-size: var(--t-reading-small-size);
  line-height: var(--t-reading-small-lh);
  letter-spacing: var(--t-reading-small-track);
  color: var(--c-muted);
}
.rv-rest {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  margin-top: var(--s-40);
}

/* Print: A4, one column, the chrome hidden, square cards with hairline borders, pills as outlines */
@media print {
  @page {
    size: A4;
    margin: var(--print-margin);
    @bottom-left {
      font: var(--t-print-head-size) var(--f-print);
      color: var(--c-print-muted);
    }
    @bottom-right {
      content: counter(page) " / " counter(pages);
      font: var(--t-print-head-size) var(--f-print);
      color: var(--c-print-muted);
    }
  }
  :where(html[data-page="topic"]) .cl-side,
  :where(html[data-page="topic"]) .tp-back,
  :where(html[data-page="topic"]) .tp-parts,
  :where(html[data-page="topic"]) .tp-outline,
  :where(html[data-page="topic"]) .tp-end,
  :where(html[data-page="topic"]) .tp-slot-cards {
    display: none !important;
  }
  html[data-page="topic"] body {
    background: var(--c-print-bg);
    color: var(--c-print-text);
    font-size: var(--t-print-body-size);
  }
  :where(html[data-page="topic"]) .tp-wrap {
    display: block;
    max-width: none;
    padding: 0;
  }
  :where(html[data-page="topic"]) .tp-main .sections.lanes {
    display: block;
  }
  :where(html[data-page="topic"]) .tp-card {
    border-radius: 0;
    background: var(--c-print-bg);
    border: 0.75px solid var(--c-print-line);
    box-shadow: none;
    break-inside: avoid;
  }
  html[data-page="topic"] .lvl > .half {
    background: var(--c-print-bg);
    box-shadow: inset 0 0 0 0.75px var(--lvl);
  }
  :where(html[data-page="topic"]) .doc [data-mark="slot"],
  :where(html[data-page="topic"]) .tp-main .doc li[data-type="note"] {
    background: var(--c-print-slot);
  }
  :where(html[data-page="topic"]) .tp-main .tp-slot-wide table.compact td {
    padding: var(--s-4) var(--s-4);
    font-size: var(--t-small-size);
  }
  :where(html[data-page="topic"]) .tp-main .tp-slot-wide table.compact td.tp-lvl {
    padding: var(--s-4) var(--s-6) var(--s-4) var(--s-2);
  }
  :where(html[data-page="topic"]) .tp-main .tp-slot-wide table.compact th {
    padding-left: var(--s-3);
    padding-right: var(--s-3);
    font-size: var(--t-wide-table-print-size);
  }
  :where(html[data-page="topic"]) .tp-main .doc h2,
  :where(html[data-page="topic"]) .tp-slot h3 {
    break-after: avoid;
  }
  :where(html[data-page="topic"]) .tp-head .props a.prop {
    color: var(--c-print-link);
  }
}
