/* Marca de DOME: negro y dorado envejecido, igual que la app Flutter (dome_app/lib/theme/app_theme.dart).
   Tipografías locales (licencia OFL, copiadas de dome_app/assets/fonts): Barlow Condensed para la marca y los
   títulos, Inter para el texto. Ninguna se pide a un CDN.
   Lo cargan las páginas públicas (basePublic.html.twig) y el panel (base.html.twig), siempre después del tema. */

@font-face { font-family: "Inter"; src: url("../fonts/dome/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/dome/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/dome/Inter-Bold.ttf") format("truetype"); font-weight: 700 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/dome/BarlowCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/dome/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700 900; font-style: normal; font-display: swap; }

:root {
    /* Tokens de la app (§6.2 del plan del MVP). Contrastes sobre --dome-bg: texto 17:1, dorado 7,4:1, gris 7,4:1. */
    --dome-bg: #0e0e0e;
    --dome-card: #1a1a1a;
    --dome-raised: #242424;
    --dome-input: #262626;
    --dome-border: #3a2e1c;
    --dome-line: #2c2c2c;
    --dome-gold: #c09a5e;
    --dome-gold-bright: #e0a845;
    --dome-gold-hover: #d2ae72;
    --dome-gold-soft: rgba(192, 154, 94, .15);
    --dome-on-gold: #0e0e0e;
    --dome-text: #f2f0ec;
    --dome-muted: #a3a09a;
    --dome-ok: #4caf7a;
    --dome-bad: #e5534b;
    --dome-info: #6fa8dc;
    --dome-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --dome-display: "Barlow Condensed", "Arial Narrow", "Inter", sans-serif;
}

/* El rótulo «DOME»: Barlow Condensed en negrita, mayúsculas espaciadas, en dorado. */
.dome-wordmark {
    display: inline-block;
    font-family: var(--dome-display);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dome-gold);
    line-height: 1;
    /* El espaciado deja aire a la derecha de la última letra: se compensa para que quede centrado. */
    margin-right: -.12em;
}

.dome-tagline { font-family: var(--dome-font); color: var(--dome-muted); letter-spacing: .02em; }

/* Atlantis fija 'Lato' (de Google Fonts) elemento a elemento: se cambia por Inter en los mismos elementos. */
:is(body.dome-public, body.dome-skin),
:is(body.dome-public, body.dome-skin) :is(h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6, p, .navbar, .brand, .btn-simple, .alert, a, .td-name, td, th, button, input, select, textarea, label) {
    font-family: var(--dome-font);
}
:is(body.dome-public, body.dome-skin) .dome-wordmark { font-family: var(--dome-display); }

/* Atlantis quita el contorno de foco a todo (*:focus { outline: 0 !important }): sin él, quien navega con teclado
   no sabe dónde está. Se devuelve solo con teclado (:focus-visible). */
:is(body.dome-public, body.dome-skin) :focus-visible {
    outline: 2px solid var(--dome-gold-bright) !important;
    outline-offset: 2px;
}
