/* Les normes, a DESIGN.md: sempre clar, lletra de 20 px, un sol color de marca (blau, 8,1 de contrast sobre blanc). */
:root {
  --bg: #fff; --ink: #1a1a18; --muted: #4d4d47; --line: #cfcfc6; --soft: #f3f3ee;
  --accent: #1d4f91; --accent-dark: #163d70; --accent-ink: #fff;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 20px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-wrap: anywhere; }
a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
header, main, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Capçalera i peu */
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.logo { font-weight: 800; text-decoration: none; color: var(--ink); padding: 8px 0; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid var(--line); border-radius: 99px; font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
footer { margin-top: 56px; padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); }

/* Text */
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 24px 0 8px; text-wrap: balance; }
h2 { font-size: 1.35rem; line-height: 1.25; margin: 40px 0 14px; text-wrap: balance; }
.lead { margin: 12px 0; font-weight: 600; }
.updated, .crumbs, footer, .note { color: var(--muted); font-size: .9rem; }
.updated { margin: 0 0 20px; }
.crumbs { margin-top: 12px; }
.crumbs a { display: inline-block; padding: 8px 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

/* Botons: el primer (la fitxa oficial), ple; la resta, amb vora */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 32px; padding: 8px 16px; background: var(--bg); color: var(--accent); border: 2px solid var(--accent); border-radius: 12px; font-weight: 700; text-decoration: none; text-align: center; }
.btn:hover, .btn:active { background: var(--soft); }
.btns { display: grid; gap: 10px; margin-top: 20px; }
.btns .btn { margin-top: 0; }
.btn.main { background: var(--accent); color: var(--accent-ink); }
.btn.main:hover, .btn.main:active { background: var(--accent-dark); color: var(--accent-ink); }

/* La fitxa d'un ajut: cada dada en una fila */
.facts { display: grid; gap: 6px; margin: 20px 0; }
.facts div { padding: 6px 14px; border: 1px solid var(--line); border-radius: 12px; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; }

/* Llistes (com a festius) */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.links a, .row { display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.links a { font-weight: 600; }
.links small { color: var(--muted); font-size: .9rem; font-weight: 400; }
a.row:hover, .links a:hover, a.row:active, .links a:active { border-color: var(--accent); color: var(--ink); }
.rows { display: grid; gap: 8px; }
.row b { font-weight: 600; }
.row small { color: var(--muted); font-size: .9rem; }
