/* Material Symbols Outlined — self-hosted, 64-glyph subset (~8 KB).
   Why local: the deployed CSP header only allows `https://googleapis.com` for
   styles and `https://gstatic.com` for fonts, so the Google stylesheet and its
   font were refused and every ligature fell back to plain text (the mobile
   drawer painted "psychology", "rocket_launch", ... over the labels).
   A same-origin font is allowed by `'self'` in every CSP variant, removes the
   third-party request from the critical path and fixes the LCP exposure.
   Regenerate the subset with the icon_names list in
   odd/tasks/mobile-drawer-icons-fix.md when a new ligature is introduced. */

@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../fonts/material-symbols-outlined.woff2') format('woff2');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    overflow: hidden;
    flex-shrink: 0;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Size default in :where() so Tailwind's text-* utilities keep winning. */
:where(.material-symbols-outlined) {
    font-size: 24px;
}

/* The box follows the glyph when a utility makes it larger than 24px. */
.material-symbols-outlined.text-3xl {
    width: 1.875rem;
    height: 1.875rem;
}

.material-symbols-outlined.text-4xl {
    width: 2.25rem;
    height: 2.25rem;
}

.material-symbols-outlined.text-5xl {
    width: 3rem;
    height: 3rem;
}

/* Drawer tiles own the alignment; the icon box never shrinks or spills. */
#mobile-drawer nav a > :first-child,
#mobile-drawer nav > div > div:first-child {
    flex-shrink: 0;
}

/* Component sizes the static Tailwind build does not ship (h-9, w-9, h-11,
   w-11, gap-2.5). Without them the tools tile collapsed to the 24px glyph and
   the title sat against it. The card needs the 36px tile + 10px gap to keep
   "Herramientas Gratis [IA]" on one line inside the 300px drawer. */
#mobile-menu-btn,
#close-menu-btn {
    width: 2.75rem;
    height: 2.75rem;
}

#mobile-drawer .drawer-tools-header {
    gap: 0.625rem;
}

#mobile-drawer .drawer-tools-icon {
    width: 2.25rem;
    height: 2.25rem;
}
