/* SAL-IA-LLENGUES-F1 (25-10-2026) · IA Llengües, fase 1
   · Tipografia del web del Servei de Llengües (www.uv.es/llengues): Arial per al text i Raleway per als títols;
     escala presa dels seus fulls d'estil (cos 12 px de base, caixes de contingut a 14 px/20 px, títols de bloc
     Raleway a 1,8 em) i colors #292a25 (text), #545454 (secundari), #013952 (títols) i #016ca2 (enllaços).
     Les mides van en rem: el control d'accessibilitat (A−/A+) les continua escalant.
   · Faldó del Servei de Llengües sempre visible a baix, sense desplaçar la pàgina.
   · Capçalera compacta a totes les pestanyes quan la finestra fa menys de 1000 px d'alt.
   · Correcció/postedició en valencià, Glossaris i Memòries de traducció/correcció: tot a la vista d'un colp.
   · ConsulTot: salutació gran a l'esquerra.
   Tot va sota html.uvt-f1: amb ?tema=antic o ?f1=0 la pàgina es veu com abans. */
@font-face{font-family:'Raleway';font-style:normal;font-weight:400;font-display:swap;src:local('Raleway'),url('uv/fonts/raleway-latin-ext-1.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Raleway';font-style:normal;font-weight:400;font-display:swap;src:local('Raleway'),url('uv/fonts/raleway-latin-2.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Raleway';font-style:normal;font-weight:600;font-display:swap;src:local('Raleway'),url('uv/fonts/raleway-latin-ext-1.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Raleway';font-style:normal;font-weight:600;font-display:swap;src:local('Raleway'),url('uv/fonts/raleway-latin-2.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Raleway';font-style:normal;font-weight:700;font-display:swap;src:local('Raleway'),url('uv/fonts/raleway-latin-ext-1.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Raleway';font-style:normal;font-weight:700;font-display:swap;src:local('Raleway'),url('uv/fonts/raleway-latin-2.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

html.uvt-f1 {
  --f1-t: .875rem;      /* 14 px · text de contingut */
  --f1-p: .75rem;       /* 12 px · text secundari i ajudes */
  --f1-d: 1rem;         /* 16 px · text destacat */
  --f1-h3: 1.125rem;    /* 18 px · títols de bloc */
  --f1-h2: 1.35rem;     /* 21,6 px · títol de la pestanya */
  --f1-txt: #292a25;
  --f1-sec: #545454;
  --f1-tit: #013952;
  --f1-enl: #016ca2;
  --f1-ff: Arial, Helvetica, sans-serif;
  --f1-ff-tit: 'Raleway', Arial, Helvetica, sans-serif;
}

/* ── 1. Tipografia base ──────────────────────────────────────────────────── */
html.uvt-f1 body { font-family: var(--f1-ff) !important; color: var(--f1-txt); }
html.uvt-f1 :is(.tan-main, #tab-resoltot, #tab-xatbot-gemma, .modal-overlay, .f1-arrel) :is(input, select, textarea, button, label, p, li, td, th, span, div, a, small) {
  font-family: var(--f1-ff);
}
html.uvt-f1 :is(.tan-main, #tab-resoltot, #tab-xatbot-gemma, .modal-overlay, #login-overlay, .f1-arrel) :is(h1, h2, h3) {
  font-family: var(--f1-ff-tit) !important;
}
html.uvt-f1 .tan-main :is(.seccio, .tab-content) > :is(h2, h3):first-child,
html.uvt-f1 .tan-main :is(.correccio-header, .glossari-header, .angles-header) h2 {
  font-size: var(--f1-h2) !important; font-weight: 400 !important; color: var(--f1-tit) !important; letter-spacing: 0 !important;
}
html.uvt-f1 .tan-main a:not(.btn-primary):not(.btn-secondary):not([class*="btn"]) { color: var(--f1-enl); }
html.uvt-f1 :is(.tan-main, #tab-resoltot, #tab-xatbot-gemma) ::placeholder { color: #8a8a8a; opacity: 1; }

/* ── 2. Faldó sempre visible (pantalles d'ordinador) ─────────────────────── */
html.uvt.uvt-f1.uvt-llesta:not(.uvt-embed) body footer.tan-footer { display: block !important; }
@media (min-width: 769px) and (min-height: 420px) {
  html.uvt.uvt-f1.uvt-llesta:not(.uvt-embed) body {
    height: 100vh !important; min-height: 0 !important; overflow: hidden !important;
    display: flex !important; flex-direction: column !important;
  }
  html.uvt.uvt-f1.uvt-llesta:not(.uvt-embed) body > header.tan-header { flex: 0 0 auto !important; }
  html.uvt.uvt-f1.uvt-llesta:not(.uvt-embed) body > .tan-main {
    flex: 1 1 auto !important; min-height: 0 !important; overflow-y: auto !important; overflow-x: hidden !important;
  }
  html.uvt.uvt-f1.uvt-llesta:not(.uvt-embed) body > footer.tan-footer { flex: 0 0 auto !important; margin-top: auto !important; }
  /* ConsulTot i El·la viuen fora de .tan-main: quan són oberts, ells ocupen l'espai */
  html.uvt.uvt-f1.uvt-llesta.f1-ext:not(.uvt-embed) body > .tan-main { flex: 0 1 auto !important; }
  html.uvt.uvt-f1.uvt-llesta:not(.uvt-embed) body > #tab-resoltot,
  html.uvt.uvt-f1.uvt-llesta:not(.uvt-embed) body > #tab-xatbot-gemma {
    flex: 1 1 auto; min-height: 0 !important; overflow-y: auto; overflow-x: hidden;
  }
}
/* faldó una mica més baix (mateix disseny que el web del Servei de Llengües) */
html.uvt.uvt-f1 .uvt-peu-dalt .uvt-w { padding-top: 14px !important; padding-bottom: 12px !important; }
html.uvt.uvt-f1 .uvt-peu-baix .uvt-w { padding-top: 7px !important; padding-bottom: 7px !important; }
html.uvt.uvt-f1.uvt-compacte .uvt-peu-dalt .uvt-w { padding-top: 9px !important; padding-bottom: 8px !important; }
html.uvt.uvt-f1.uvt-compacte .uvt-peu-logo img { width: 150px !important; height: 48px !important; }

/* ── 3. Capçalera compacta quan la finestra és baixa (< 1000 px) ─────────── */
html.uvt.uvt-f1.uvt-compacte .uvt-cap, html.uvt.uvt-f1.uvt-compacte .uvt-cap .uvt-w, html.uvt.uvt-f1.uvt-compacte .uvt-logo { height: 64px !important; }
html.uvt.uvt-f1.uvt-compacte .uvt-logo { width: 300px !important; }
html.uvt.uvt-f1.uvt-compacte .uvt-logo img { height: 66px !important; }
html.uvt.uvt-f1.uvt-compacte .uvt-logo a { height: 64px !important; }
html.uvt.uvt-f1.uvt-compacte .uvt-logo a.uvt-l-uv { width: 102px !important; }
html.uvt.uvt-f1.uvt-compacte .uvt-logo a.uvt-l-slpl { left: 102px !important; width: 194px !important; }
html.uvt.uvt-f1.uvt-compacte .uvt-app .uvt-nom { font-size: 24px !important; }
html.uvt.uvt-f1.uvt-compacte .uvt-app .uvt-sub { display: none !important; }

/* ── 4. Panells comuns de les pestanyes «tot a la vista» ─────────────────── */
html.uvt-f1 .f1-vista { padding: 10px 0 6px !important; margin-top: 0 !important; }
html.uvt-f1 .f1-vista > * { max-width: none !important; }
html.uvt-f1 .f1-barra {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 8px; padding: 0;
  background: none !important; border: 0 !important; box-shadow: none !important;
}
html.uvt-f1 .f1-barra h2 { margin: 0 4px 0 0 !important; white-space: nowrap; }
html.uvt-f1 .f1-barra p { margin: 0 !important; }
html.uvt-f1 .f1-info {
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid #082b3e; background: #edeadf; color: #082b3e;
  font: 700 12px/18px Georgia, 'Times New Roman', serif; cursor: help; padding: 0; flex: 0 0 auto; text-align: center;
}
html.uvt-f1 .f1-amaga { display: none !important; }
html.uvt-f1 .f1-graella {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; height: var(--f1-h, 480px); min-height: 240px;
}
html.uvt-f1 .f1-pan {
  display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #ffffff; border: 1px solid #dddddd;
  border-top: 3px solid #082b3e; border-radius: 3px; padding: 10px 12px; overflow: hidden;
}
html.uvt-f1 .f1-pan > .f1-pan-tit {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 6px;
  font: 600 var(--f1-h3)/1.25 var(--f1-ff-tit) !important; color: var(--f1-tit) !important;
}
html.uvt-f1 .f1-pan > .f1-pan-tit small { font: 400 var(--f1-p)/1.3 var(--f1-ff) !important; color: var(--f1-sec) !important; }
html.uvt-f1 .f1-desplaca { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
html.uvt-f1 .f1-fila { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin: 6px 0; }
html.uvt-f1 .f1-fila > label { margin: 0 !important; }
html.uvt-f1 .f1-vista .avis-criteri { margin: 8px 0 0 !important; }
@media (max-width: 900px) {
  html.uvt-f1 .f1-graella { grid-template-columns: 1fr; height: auto !important; }
  html.uvt-f1 .f1-pan { min-height: 360px; }
}

/* ── 5. Correcció/postedició en valencià ─────────────────────────────────── */
html.uvt-f1 .f1-corr .motor-toggle-bar { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; display: flex; align-items: center; gap: 8px; }
html.uvt-f1 .f1-corr .motor-toggle-label { font-weight: 700; }
html.uvt-f1 .f1-corr .correccio-opcions { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
html.uvt-f1 .f1-corr .f1-area { display: flex; align-items: center; gap: 8px; margin: 0 !important; }
html.uvt-f1 .f1-corr .f1-area label { white-space: nowrap; margin: 0 !important; }
html.uvt-f1 .f1-corr .f1-area select { margin: 0 !important; min-width: 220px !important; max-width: 300px !important; padding: 5px 8px !important; }
html.uvt-f1 .f1-corr .correccio-entrada-bloc { display: flex; flex-direction: column; flex: 1 1 45%; min-height: 90px; margin: 0 !important; }
html.uvt-f1 .f1-corr .correccio-entrada-bloc .correccio-label { margin: 0 0 4px !important; }
html.uvt-f1 .f1-corr #correccio-textarea { flex: 1 1 auto; min-height: 60px !important; height: auto !important; resize: none !important; margin: 0 !important; }
html.uvt-f1 .f1-corr .correccio-accions { margin: 8px 0 0 !important; display: flex; gap: 8px; flex: 0 0 auto; }
html.uvt-f1 .f1-corr #correccio-carregant { flex: 0 0 auto; margin: 6px 0 0 !important; }
html.uvt-f1 .f1-corr #correccio-resultats { flex: 1 1 55%; min-height: 0; overflow: auto; margin: 8px 0 0 !important; }
html.uvt-f1 .f1-corr .correccio-document-seccio { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
html.uvt-f1 .f1-corr .correccio-document-divisor { display: none !important; }
html.uvt-f1 .f1-corr .correccio-document-controls { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 0 !important; }
html.uvt-f1 .f1-corr .correccio-document-nota { margin: 6px 0 0 !important; }
html.uvt-f1 .f1-corr .f1-docs-cos { border: 2px dashed #b1b1b1; border-radius: 3px; padding: 14px 12px; text-align: center; flex: 0 0 auto; }
html.uvt-f1 .f1-corr .f1-docs-cos.f1-sobre { border-color: #016ca2; background: #eef2f4; }

/* ── 6. Glossaris i Memòries de traducció/correcció ──────────────────────── */
html.uvt-f1 .f1-gm .glossari-header { display: contents; }
html.uvt-f1 .f1-gm .f1-barra > p { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
html.uvt-f1 .f1-gm .f1-barra button { margin: 0 !important; }
html.uvt-f1 .f1-gm .f1-extr { background: none !important; border-radius: 0 !important; padding: 0 !important; margin: 0 !important; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
html.uvt-f1 .f1-gm .f1-extr > h4 { display: none !important; }
html.uvt-f1 .f1-gm .f1-dos { display: flex !important; gap: 10px !important; margin: 0 0 6px !important; flex: 1 1 auto; min-height: 110px; flex-wrap: nowrap !important; }
html.uvt-f1 .f1-gm .f1-dos > div { display: flex; flex-direction: column; min-width: 0 !important; flex: 1 1 0 !important; }
html.uvt-f1 .f1-gm .f1-dos textarea { flex: 1 1 auto; min-height: 60px; height: auto !important; resize: none !important; }
html.uvt-f1 .f1-gm .f1-dos .btn-apujar { padding: 6px 12px !important; margin: 0 !important; width: 100%; }
html.uvt-f1 .f1-gm .f1-dos > div > div { margin-top: 6px !important; }
html.uvt-f1 .f1-gm .f1-extr > div:last-of-type, html.uvt-f1 .f1-gm [id$="-extraccio-resultat"] { margin-top: 6px !important; }
html.uvt-f1 .f1-gm [id$="-extraccio-resultat"] { flex: 1 1 auto; min-height: 0; overflow: auto; }
html.uvt-f1 .f1-gm .f1-man > h4 { display: none !important; }
html.uvt-f1 .f1-gm .glossari-domini-selector { margin: 0 0 6px !important; padding: 0 !important; }
html.uvt-f1 .f1-gm .glossari-form { margin: 0 0 6px !important; padding: 8px 10px !important; }
html.uvt-f1 .f1-gm .glossari-form h3 { margin: 0 0 6px !important; }
html.uvt-f1 .f1-gm .glossari-form-row { margin-bottom: 6px !important; gap: 8px !important; }
html.uvt-f1 .f1-gm .glossari-taula-container { flex: 1 1 auto; min-height: 0; overflow: auto; margin: 0 !important; }
html.uvt-f1 .f1-gm .f1-buit-man { color: var(--f1-sec); margin: 12px 0 0; }

/* ── 7. ConsulTot: salutació gran a l'esquerra ───────────────────────────── */
html.uvt-f1 #tab-resoltot .ct-cap { justify-content: flex-start !important; align-items: center !important; gap: 6px 22px !important; }
html.uvt-f1 #tab-resoltot .ct-cap .ct-model { margin-left: auto !important; }
html.uvt-f1 #tab-resoltot .ct-cap .ct-salut {
  order: -1; font: 700 28px/1.15 var(--f1-ff-tit) !important; color: #ffffff !important; letter-spacing: .01em;
}
html.uvt-f1 #tab-resoltot .ct-salut.ct-salut-c { font-size: 22px !important; color: var(--f1-tit) !important; }

/* ── 8. Menú de pestanyes: hi caben totes; botó flotant d'El·la per damunt del faldó ── */
html.uvt.uvt-f1 #tan-nav.tan-nav { padding: 0 max(8px, calc((100% - 1440px) / 2)) !important; }
html.uvt.uvt-f1 #tan-nav > button { padding: 0 clamp(7px, .75vw, 14px) !important; }
html.uvt.uvt-f1.uvt-llesta:not(.uvt-embed) #sxb-boto-flotant { bottom: calc(var(--f1-peu-h, 0px) + 14px) !important; }
html.uvt-f1 .f1-gm .f1-extr { overflow-y: auto; scrollbar-width: thin; }

