/* Project-specific overrides on top of Tailwind + Flowbite go here. */

/* Monaco editor surface (see assets/controllers/monaco_controller.ts).
   Monaco injects its own styles; this just frames the host element. The
   border rides the warm ink token, so it adapts to dark mode like the
   editor theme does. */
.el-monaco {
    border: 1px solid var(--ink-4, #d1d5db);
    border-radius: 0.375rem;
    overflow: hidden;
}

/* Monaco's icon font. The vendored bundle injects an @font-face for
   `codicon` with a relative file name, which resolves against the page's
   own URL and 404s on every page. (Don't quote that url() here: the asset
   compiler resolves url()s even in comments.) The icons (folding chevrons, the find
   widget, menus) use this app-served copy instead (monaco-editor 0.57.0,
   esm/vs/base/browser/ui/codicons/codicon/codicon.ttf). A family of our
   own, set with a selector that outranks the bundle's
   `.codicon[class*=codicon-]`, so the broken face is never used and so
   never fetched. */
@font-face {
    font-family: el-codicon;
    font-display: block;
    src: url("../fonts/codicon--1Yieqa.ttf") format('truetype');
}

html .codicon[class*='codicon-'] {
    font-family: el-codicon;
}
