/* Incoa Lex · estils base. Els estils de cada element són a pagines.css (generat). */

@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-ext-wght-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-wght-normal.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: 'Source Serif 4'; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-latin-ext-opsz-normal.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: 'Source Serif 4'; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-latin-opsz-normal.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: 'Source Serif 4'; font-style: italic; font-display: swap; font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-latin-ext-opsz-italic.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: 'Source Serif 4'; font-style: italic; font-display: swap; font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-latin-opsz-italic.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; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #ffffff; }
img { max-width: 100%; height: auto; }
a { color: #a3262a; }
a:not([class]):hover { color: #8a1f23; }
button:disabled { opacity: .4; cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid #a3262a; outline-offset: 2px; }
input, select, textarea, button { font-family: inherit; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
details[open] summary > span[aria-hidden] { transform: rotate(45deg); }
summary > span[aria-hidden] { transition: transform .15s; display: inline-block; }
[hidden] { display: none !important; }
.targeta { transition: border-color .15s; }
.targeta:hover { border-color: #111111 !important; }

.salta { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 12px 16px; background: #111111; color: #ffffff; border-radius: 8px; text-decoration: none; }
.salta:focus { top: 16px; }

/* Estats de les eines interactives */
.urgent { color: #a3262a !important; }
.urgent-fosc { color: #ec7a7d !important; }
.tria[aria-pressed="true"] { border-color: #a3262a !important; }
.opcio-auto { min-height: 56px; padding: 12px 20px; border: 1px solid #e6e6e9; border-radius: 12px; background: #ffffff; color: #111111; font-size: calc(16px * var(--esc, 1)); text-align: left; cursor: pointer; width: 100%; }
.opcio-auto[aria-pressed="true"] { border: 2px solid #a3262a; font-weight: 600; }
.progres { display: flex; gap: 4px; }
.progres span { flex: 1 1 0; height: 4px; border-radius: 999px; background: #e6e6e9; }
.progres span.fet { background: #a3262a; }
.etiqueta-risc { flex: none; min-width: 112px; text-align: center; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; }
.etiqueta-risc.risc { background: #a3262a; color: #ffffff; }
.etiqueta-risc.mig { border: 1px solid #a3262a; color: #a3262a; }
.etiqueta-risc.ok { border: 1px solid #e6e6e9; color: #5f5f63; }
.fila-dim { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid #e6e6e9; }
.llista-ob { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.llista-ob li { display: flex; gap: 10px; }
.llista-ob li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 8px; background: #a3262a; }
.llista-ob strong { display: block; font-weight: 600; }
.llista-ob span { display: block; font-size: 14px; line-height: 20px; color: #5f5f63; }
.estat-form { margin: 0; flex: 1 1 100%; font-weight: 600; }
.estat-form.ok { color: #1f6b3a; }
.estat-form.error { color: #a3262a; }
.mel { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Pàgines legals */
.legal { max-width: 820px; margin: 0 auto; padding: 72px 16px 96px; }
.legal h1 { margin: 0 0 24px; font-family: 'Source Serif 4', Georgia, serif; font-size: calc(48px * var(--esc, 1)); line-height: 1.05; font-weight: 500; }
.legal h2 { margin: 40px 0 12px; font-family: 'Source Serif 4', Georgia, serif; font-size: calc(26px * var(--esc, 1)); font-weight: 500; }
.legal p, .legal li { color: #3d3d40; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.legal th, .legal td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid #e6e6e9; vertical-align: top; }

@media (max-width: 640px) {
  h1 { word-break: break-word; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Camps de formulari: que no forcin amplada mínima en pantalles estretes */
form, label, select, input, textarea { min-width: 0; max-width: 100%; }
select { text-overflow: ellipsis; }
@media (max-width: 640px) {
  form { padding-left: 20px !important; padding-right: 20px !important; }
  [data-pantalla] { padding: 24px !important; }
}
