{"version":3,"sourceRoot":null,"mappings":"AAOA,kBACE,sEAOE,+JAQA,uDAKA,+GAOA,gCAIA,sIASA,mGAKA,4EAIA,iMAUA,gHAOA,iQAWE,gEAIA,gIAMA,kEAKF,uJAOE,sBAKF,4KAWA,wLAUA,sCAEE,sDAIA,kEAKA,mEAOF,wFAIA,uCACE,qCAIF,+BACE,gDAGA,sDAIF,8BACE,oGAKA,iEAIF,aACE,iEAIA,yCAGA,sFASJ,+CAEE,8GAKA,8BACE,+CAgBJ,wDAME,0QAYE,kEAMF,+CAKA,itBAwBE,4HAMA,oEAOF,4DAMA,mFAOA,mHAGE,8GAKF,kEAGA,mHAOA,0vCAgCE,qBAKA,yDAKF,uCACE,sCAIF,+BACE,2EAKF,8BACE,6CAEE,4CAIF,4DAIF,aACE,4DAkBJ,uLAUE,yRAYE,kEAMF,+EAOA,wEAGE,sBAIF,oMAOA,kGAIA,oRAcA,iKAQA,gHAIE,4HAOF,iKASA,gJAOE,2DAMF,4KAQA,+GAOA,kFAMA,0EAIE,oEAOF,iMAWE,gEAIA,kIAMA,kEAKF,mEAMA,4IAOA,uEAGE,uDAIA,uMAaF,uCACE,oEAIF,+BAAiC,+BAE/B,uDAIF,8BACE,qEAIF,aACE,uFAQJ","sources":["dist/components/math.css"],"sourcesContent":["/* ── components/math-renderer/math-renderer.css ── */\n/*\n * Formula Rendering (math-renderer): a formula typeset by KaTeX. The TeX source\n * stays in the DOM - readable code until the typeset output arrives, hidden\n * after. KaTeX's own stylesheet (loaded with it) sets the math fonts and\n * metrics; this sheet places the formula, its states and its term selection.\n */\n@layer components {\n  .math-renderer {\n    display: block;\n    margin: 0;\n    min-inline-size: 0;\n    color: inherit;\n\n    /* the source: readable TeX before (and without) KaTeX */\n    & > .math-renderer-source {\n      display: block;\n      font-family: var(--font-mono);\n      font-size: 0.875rem;\n      white-space: pre-wrap;\n      overflow-wrap: anywhere;\n      color: var(--muted-foreground);\n    }\n    &[data-state=\"pending\"] > .math-renderer-source {\n      opacity: 0.6;\n    }\n\n    /* KaTeX's output: a display formula scrolls sideways instead of overflowing its column */\n    & > .math-renderer-output {\n      display: block;\n      overflow-x: auto;\n      overflow-y: hidden;\n      overscroll-behavior-x: contain;\n      padding-block: 0.125rem;\n    }\n    & .katex-display {\n      margin: 0.25em 0;\n    }\n\n    & > figcaption {\n      margin-block-start: 0.5rem;\n      color: var(--muted-foreground);\n      font-family: var(--font-sans);\n      font-size: 0.8125rem;\n      text-align: center;\n    }\n\n    /* selectable terms: a hover outline, the selection outlined and underlined (not color alone) */\n    & [data-df-math-id] {\n      border-radius: var(--radius-sm);\n      cursor: pointer;\n      transition: background-color 120ms ease;\n    }\n    & [data-df-math-id]:hover {\n      outline: 1px dashed var(--ring);\n      outline-offset: 1px;\n    }\n    & [data-df-math-id][data-selected] {\n      background: var(--accent);\n      color: var(--accent-foreground);\n      outline: 2px solid var(--ring);\n      outline-offset: 1px;\n      text-decoration: underline;\n      text-underline-offset: 0.2em;\n    }\n\n    /* the term buttons: one tab stop, the pressed term marked */\n    & > .math-renderer-terms {\n      display: flex;\n      flex-wrap: wrap;\n      justify-content: center;\n      gap: 0.375rem;\n      margin-block-start: 0.75rem;\n    }\n    & .math-renderer-term {\n      appearance: none;\n      cursor: pointer;\n      border: 1px solid var(--border);\n      border-radius: var(--radius-md);\n      background: var(--background);\n      color: var(--foreground);\n      padding: 0.25rem 0.625rem;\n      font-family: var(--font-sans);\n      font-size: 0.75rem;\n      line-height: 1.25rem;\n      &:hover {\n        background: var(--accent);\n        color: var(--accent-foreground);\n      }\n      &[aria-pressed=\"true\"] {\n        border-color: var(--ring);\n        background: var(--accent);\n        color: var(--accent-foreground);\n        text-decoration: underline;\n      }\n      &:focus-visible {\n        outline: 2px solid var(--ring);\n        outline-offset: 2px;\n      }\n    }\n    & > .math-renderer-description {\n      display: block;\n      margin-block-start: 0.5rem;\n      font-family: var(--font-serif);\n      font-size: 0.9375rem;\n      line-height: 1.5;\n      text-align: center;\n      &:empty {\n        display: none;\n      }\n    }\n\n    & > .math-renderer-error {\n      display: block;\n      margin-block-start: 0.5rem;\n      color: var(--destructive);\n      font-family: var(--font-sans);\n      font-size: 0.8125rem;\n      line-height: 1.5;\n      white-space: pre-wrap;\n    }\n\n    /* card: the formula on a panel (demos, teaching) */\n    &[data-variant=\"card\"] {\n      padding: 1rem 1.25rem;\n      border: 1px solid var(--border);\n      border-radius: var(--radius-lg);\n      background: var(--card);\n      color: var(--card-foreground);\n      box-shadow: var(--shadow-xs);\n    }\n\n    /* inline: a formula inside a sentence, on its baseline */\n    &[data-variant=\"inline\"] {\n      display: inline;\n      & > .math-renderer-source {\n        display: inline;\n        font-size: 0.9em;\n      }\n      & > .math-renderer-output {\n        display: inline;\n        overflow: visible;\n        padding: 0;\n      }\n      & > .math-renderer-error {\n        display: inline;\n        margin-inline-start: 0.375rem;\n      }\n    }\n\n    /* typeset: the source steps aside - after the variants, so it wins over their display */\n    &:is([data-state=\"rendered\"], [data-state=\"highlighted\"]) > .math-renderer-source {\n      display: none;\n    }\n\n    @media (prefers-reduced-motion: reduce) {\n      & [data-df-math-id] {\n        transition: none;\n      }\n    }\n    @media (prefers-contrast: more) {\n      & > .math-renderer-source {\n        color: var(--foreground);\n      }\n      & .math-renderer-term {\n        border-color: var(--foreground);\n      }\n    }\n    @media (forced-colors: active) {\n      & [data-df-math-id][data-selected] {\n        outline-color: Highlight;\n        background: Highlight;\n        color: HighlightText;\n      }\n      & .math-renderer-term[aria-pressed=\"true\"] {\n        border-color: Highlight;\n      }\n    }\n    @media print {\n      & > .math-renderer-terms,\n      & > .math-renderer-description {\n        display: none;\n      }\n      & > .math-renderer-output {\n        overflow: visible;\n      }\n      & [data-df-math-id][data-selected] {\n        background: none;\n        outline: none;\n        text-decoration: none;\n      }\n    }\n  }\n\n  /* outside elements linked to a formula's terms (data-math-for + data-math-term): the linked term is marked */\n  [data-math-for][data-math-term] {\n    cursor: pointer;\n    &[data-selected] {\n      background: var(--accent);\n      color: var(--accent-foreground);\n      box-shadow: inset 3px 0 0 var(--ring);\n    }\n    @media (forced-colors: active) {\n      &[data-selected] {\n        outline: 2px solid Highlight;\n      }\n    }\n  }\n}\n\n/* ── components/math-editor/math-editor.css ── */\n/*\n * Formula Editing (math-editor): a MathLive <math-field> over a native\n * textarea. The field is themed through MathLive's documented custom\n * properties and ::part() hooks; its virtual keyboard through the keyboard's\n * documented --keyboard-* / --keycap-* properties. One private hook is pinned\n * to mathlive@0.111.0: .MLK__keycap's radius (MathLive hard-codes it).\n */\n@layer components {\n  .math-editor {\n    display: grid;\n    gap: 0.375rem;\n    min-inline-size: 0;\n\n    /* the textarea: the editor without JavaScript (or when MathLive cannot load) */\n    & > .math-editor-source {\n      inline-size: 100%;\n      min-block-size: 2.5rem;\n      field-sizing: content;\n      padding: 0.5rem 0.75rem;\n      border: 1px solid var(--input);\n      border-radius: var(--radius-md);\n      background: transparent;\n      color: var(--foreground);\n      font-family: var(--font-mono);\n      font-size: 0.875rem;\n      resize: vertical;\n      &:focus-visible {\n        outline: 2px solid var(--ring);\n        outline-offset: 2px;\n      }\n    }\n    /* MathLive took over: the textarea steps aside but stays the form control */\n    &[data-ready] > .math-editor-source {\n      display: none;\n    }\n\n    /* the field: an input of the system, math inside */\n    & > .math-editor-field {\n      display: block;\n      inline-size: 100%;\n      min-block-size: 2.75rem;\n      box-sizing: border-box;\n      padding: 0.25rem 0.75rem;\n      border: 1px solid var(--input);\n      border-radius: var(--radius-md);\n      background: var(--background);\n      color: var(--foreground);\n      font-size: 1.25rem;\n      --caret-color: var(--foreground);\n      --primary-color: var(--primary);\n      --selection-background-color: color-mix(in oklch, var(--ring) 28%, transparent);\n      --selection-color: var(--foreground);\n      --contains-highlight-background-color: var(--muted);\n      --placeholder-color: var(--muted-foreground);\n      --smart-fence-color: var(--muted-foreground);\n      --latex-color: var(--muted-foreground);\n      --text-font-family: var(--font-sans);\n      --ui-font-family: var(--font-sans);\n      transition:\n        border-color 120ms ease,\n        box-shadow 120ms ease;\n      &:focus-within {\n        border-color: var(--ring);\n        box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 30%, transparent);\n        outline: none;\n      }\n      /* the keyboard and the menu are the component's (toolbar, states), not MathLive's toggles */\n      &::part(virtual-keyboard-toggle),\n      &::part(menu-toggle) {\n        display: none;\n      }\n    }\n\n    /* the toolbar: data-math-command buttons */\n    & > .math-editor-tools {\n      display: flex;\n      flex-wrap: wrap;\n      gap: 0.25rem;\n    }\n\n    & > .math-editor-message {\n      color: var(--destructive);\n      font-size: 0.8125rem;\n      line-height: 1.4;\n    }\n\n    /* states */\n    &[data-state=\"invalid\"] > .math-editor-field,\n    &[data-state=\"invalid\"] > .math-editor-source {\n      border-color: var(--destructive);\n      &:focus-within,\n      &:focus-visible {\n        box-shadow: 0 0 0 3px color-mix(in oklch, var(--destructive) 25%, transparent);\n      }\n    }\n    &[data-state=\"readonly\"] > .math-editor-field {\n      background: var(--muted);\n    }\n    &[data-state=\"disabled\"] > .math-editor-field,\n    &[data-state=\"disabled\"] > .math-editor-source {\n      opacity: 0.5;\n      cursor: not-allowed;\n    }\n\n    /* the virtual keyboard, leased into the editor (MathLive's documented properties) */\n    & > .math-editor-keyboard {\n      position: relative;\n      /* in a container MathLive takes its backdrop padding out of the measured height - the bottom row was clipped */\n      --keyboard-padding-top: 0px;\n      --keyboard-padding-bottom: 0px;\n      --keyboard-background: var(--muted);\n      --keyboard-border: var(--border);\n      --keyboard-accent-color: var(--primary);\n      --keyboard-horizontal-rule: var(--border);\n      --keyboard-toolbar-text: var(--muted-foreground);\n      --keyboard-toolbar-text-active: var(--foreground);\n      --keyboard-toolbar-background-hover: var(--accent);\n      --keyboard-toolbar-background-selected: var(--background);\n      --keycap-background: var(--background);\n      --keycap-background-hover: var(--accent);\n      --keycap-background-active: var(--primary);\n      --keycap-background-pressed: var(--primary);\n      --keycap-border: var(--border);\n      --keycap-border-bottom: var(--border);\n      --keycap-text: var(--foreground);\n      --keycap-text-active: var(--primary-foreground);\n      --keycap-text-pressed: var(--primary-foreground);\n      --keycap-secondary-background: var(--secondary);\n      --keycap-secondary-background-hover: var(--accent);\n      --keycap-secondary-text: var(--secondary-foreground);\n      --keycap-secondary-border: var(--border);\n      --keycap-secondary-border-bottom: var(--border);\n      --keycap-primary-background: var(--primary);\n      --keycap-primary-background-hover: color-mix(in oklch, var(--primary) 88%, var(--background));\n      --keycap-primary-text: var(--primary-foreground);\n      border-radius: var(--radius-lg);\n      overflow: hidden;\n      &:empty {\n        display: none;\n      }\n      /* private, pinned to mathlive@0.111.0 (tests/e2e/math/math-editor.e2e.ts reads it). MathLive injects its\n         sheet unlayered, which beats any normal declaration in a layer - only !important wins from here */\n      & .MLK__keycap {\n        border-radius: var(--radius-sm) !important;\n      }\n    }\n\n    @media (prefers-reduced-motion: reduce) {\n      & > .math-editor-field {\n        transition: none;\n      }\n    }\n    @media (prefers-contrast: more) {\n      & > .math-editor-field,\n      & > .math-editor-source {\n        border-color: var(--foreground);\n      }\n    }\n    @media (forced-colors: active) {\n      & > .math-editor-field {\n        border-color: CanvasText;\n        &:focus-within {\n          outline: 2px solid Highlight;\n        }\n      }\n      &[data-state=\"invalid\"] > .math-editor-field {\n        border-color: Mark;\n      }\n    }\n    @media print {\n      & > .math-editor-tools,\n      & > .math-editor-keyboard {\n        display: none;\n      }\n    }\n  }\n}\n\n/* ── components/math-compute/math-compute.css ── */\n/*\n * Compute & Explain (math-compute): an input, an operation and the engine's\n * record - input and result side by side, the conditions they hold under, a\n * solver's candidates, the steps the engine reports and its notices. Formulas\n * are Formula Rendering elements; statuses are Badges. Explanation prose is\n * set in the serif face, the record and its controls in the sans, the JSON in\n * the monospace.\n */\n@layer components {\n  .math-compute {\n    display: grid;\n    gap: 0.75rem;\n    min-inline-size: 0;\n    padding: 1rem;\n    border: 1px solid var(--border);\n    border-radius: var(--radius-lg);\n    background: var(--card);\n    color: var(--card-foreground);\n\n    & .math-compute-source {\n      inline-size: 100%;\n      min-block-size: 2.5rem;\n      field-sizing: content;\n      padding: 0.5rem 0.75rem;\n      border: 1px solid var(--input);\n      border-radius: var(--radius-md);\n      background: var(--background);\n      color: var(--foreground);\n      font-family: var(--font-mono);\n      font-size: 0.875rem;\n      resize: vertical;\n      &:focus-visible {\n        outline: 2px solid var(--ring);\n        outline-offset: 2px;\n      }\n    }\n\n    & .math-compute-tools {\n      display: flex;\n      flex-wrap: wrap;\n      align-items: center;\n      gap: 0.5rem;\n    }\n\n    & > .math-compute-status {\n      color: var(--muted-foreground);\n      font-size: 0.8125rem;\n      &:empty {\n        display: none;\n      }\n    }\n    &:is([data-state=\"error\"], [data-state=\"unsupported\"]) > .math-compute-status {\n      padding: 0.5rem 0.75rem;\n      border-radius: var(--radius-md);\n      border: 1px solid var(--border);\n      color: var(--foreground);\n      font-size: 0.875rem;\n    }\n    &[data-state=\"error\"] > .math-compute-status {\n      border-color: var(--destructive);\n      color: var(--destructive);\n    }\n    &[data-state=\"computing\"] > .math-compute-status::before {\n      content: \"\";\n      display: inline-block;\n      inline-size: 0.75em;\n      block-size: 0.75em;\n      margin-inline-end: 0.5em;\n      border: 2px solid currentColor;\n      border-inline-end-color: transparent;\n      border-radius: 50%;\n      vertical-align: -0.1em;\n      animation: math-compute-spin 0.8s linear infinite;\n    }\n\n    /* the record */\n    & > .math-compute-view {\n      display: grid;\n      gap: 0.75rem;\n      padding-block-start: 0.75rem;\n      border-block-start: 1px solid var(--border);\n      font-family: var(--font-sans);\n      line-height: 1.55;\n    }\n    & .math-compute-pair {\n      display: grid;\n      grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));\n      gap: 0.75rem;\n      & > .math-renderer {\n        padding: 0.75rem;\n        border: 1px solid var(--border);\n        border-radius: var(--radius-md);\n        background: var(--background);\n      }\n    }\n    & h4 {\n      margin: 0 0 0.25rem;\n      color: var(--muted-foreground);\n      font-family: var(--font-sans);\n      font-size: 0.75rem;\n      font-weight: 600;\n      letter-spacing: 0.04em;\n      text-transform: uppercase;\n    }\n    & :is(.math-compute-conditions, .math-compute-candidates-box) ul {\n      display: flex;\n      flex-wrap: wrap;\n      gap: 0.375rem 1rem;\n      margin: 0;\n      padding: 0;\n      list-style: none;\n      & li {\n        display: inline-flex;\n        align-items: baseline;\n        gap: 0.375rem;\n      }\n    }\n    & .math-compute-origin,\n    & .math-compute-coverage,\n    & .math-compute-rule,\n    & .math-compute-recorded {\n      color: var(--muted-foreground);\n      font-family: var(--font-sans);\n      font-size: 0.8125rem;\n    }\n    & .math-compute-coverage,\n    & .math-compute-explanation,\n    & .math-compute-verdict,\n    & .math-compute-recorded {\n      margin: 0;\n    }\n    /* explanation prose in the serif face; the record around it (lists, badges, controls) stays sans */\n    & .math-compute-explanation,\n    & .math-compute-verdict {\n      font-family: var(--font-serif);\n    }\n\n    /* the steps the engine reports */\n    & .math-compute-steps {\n      display: grid;\n      gap: 0.5rem;\n      font-family: var(--font-sans);\n      & ol {\n        display: grid;\n        gap: 0.125rem;\n        margin: 0;\n        padding-inline-start: 1.5rem;\n      }\n    }\n    & .math-compute-step {\n      appearance: none;\n      padding: 0.125rem 0.375rem;\n      border: 0;\n      border-radius: var(--radius-sm);\n      background: transparent;\n      color: inherit;\n      font: inherit;\n      font-size: 0.875rem;\n      text-align: start;\n      cursor: pointer;\n      &:hover {\n        background: var(--accent);\n        color: var(--accent-foreground);\n      }\n      &[aria-current=\"step\"] {\n        background: var(--accent);\n        color: var(--accent-foreground);\n        font-weight: 600;\n        box-shadow: inset 3px 0 0 var(--ring);\n      }\n      &:focus-visible {\n        outline: 2px solid var(--ring);\n        outline-offset: 1px;\n      }\n    }\n    & .math-compute-step-tools {\n      display: flex;\n      flex-wrap: wrap;\n      gap: 0.375rem;\n    }\n\n    & .math-compute-notices {\n      margin: 0;\n      padding-inline-start: 1.25rem;\n      color: var(--muted-foreground);\n      font-family: var(--font-sans);\n      font-size: 0.8125rem;\n    }\n    & .math-compute-record {\n      font-family: var(--font-sans);\n      font-size: 0.8125rem;\n      & > summary {\n        cursor: pointer;\n        color: var(--muted-foreground);\n      }\n      & > pre {\n        max-block-size: 16rem;\n        overflow: auto;\n        margin: 0.5rem 0 0;\n        padding: 0.75rem;\n        border-radius: var(--radius-md);\n        background: var(--muted);\n        color: var(--foreground);\n        font-family: var(--font-mono);\n        font-size: 0.75rem;\n      }\n    }\n\n    @media (prefers-reduced-motion: reduce) {\n      &[data-state=\"computing\"] > .math-compute-status::before {\n        animation: none;\n      }\n    }\n    @media (prefers-contrast: more) {\n      border-color: var(--foreground);\n      & .math-compute-source {\n        border-color: var(--foreground);\n      }\n    }\n    @media (forced-colors: active) {\n      & .math-compute-step[aria-current=\"step\"] {\n        outline: 2px solid Highlight;\n      }\n    }\n    @media print {\n      & .math-compute-tools,\n      & .math-compute-step-tools,\n      & .math-compute-record {\n        display: none;\n      }\n    }\n  }\n\n  @keyframes math-compute-spin {\n    to {\n      rotate: 1turn;\n    }\n  }\n}\n"],"names":[]}