/* Estil comú de NET & SAN: colors del logotip de CompleMetrix, Source Serif 4 + Source Sans 3 */
:root {
    --navy: #1c3576;      /* blau del logotip */
    --navy-d: #142757;
    --red: #c40000;       /* vermell del logotip */
    --ink: #1d2433;
    --ink-2: #3c4556;
    --muted: #6a7282;
    --line: #dde1e8;
    --paper: #f6f6f3;
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { font-family: var(--sans); font-size: 17px; line-height: 1.55; color: var(--ink); background: #fff; margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.2; margin: 0 0 0.8rem; }
h1 { font-size: 2.2rem; letter-spacing: -0.01em; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--red); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

header.site { background: #fff; border-bottom: 1px solid var(--line); }
header.site .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; flex-wrap: wrap; }
header.site .logo { height: 46px; display: block; }
header.site nav { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; font-size: 0.98rem; }
header.site nav a { color: var(--ink-2); text-decoration: none; }
header.site nav a:hover, header.site nav a.active { color: var(--navy); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
header.site nav select { font: inherit; font-size: 0.95rem; padding: 0.3rem 0.4rem; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink); }

.btn, button { display: inline-block; font: inherit; font-weight: 600; font-size: 0.98rem; background: var(--navy); color: #fff;
               border: 1px solid var(--navy); border-radius: 3px; padding: 0.55rem 1.1rem; text-decoration: none; cursor: pointer;
               margin: 0 0.5rem 0.5rem 0; }
.btn:hover, button:hover { background: var(--navy-d); color: #fff; }
.btn.secondary, button.secondary { background: #fff; color: var(--navy); }
.btn.secondary:hover, button.secondary:hover { background: var(--paper); color: var(--navy); }

footer.site { margin-top: 3.5rem; background: var(--navy); color: #d5dbea; padding: 1.4rem 0; font-size: 0.92rem; }
footer.site a { color: #fff; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* pàgines de les eines */
.page-title { padding: 1.6rem 0 1rem; }
.page-title h1 { font-size: 1.9rem; margin-bottom: 0.2rem; }
.page-title .sub { color: var(--muted); }
.panel { border: 1px solid var(--line); border-radius: 4px; padding: 1.2rem 1.3rem; background: #fff; }
.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1rem; align-items: end; }
.controls label { display: flex; flex-direction: column; font-size: 0.9rem; color: var(--ink-2); font-weight: 600; }
.controls label.inline { flex-direction: row; align-items: center; gap: 0.5rem; font-weight: 400; }
input, select { font: inherit; font-weight: 400; margin-top: 0.25rem; padding: 0.45rem 0.5rem; border: 1px solid #c9ced8; border-radius: 3px; background: #fff; color: var(--ink); }
input[type=checkbox] { margin: 0; accent-color: var(--navy); }
.buttons { display: flex; flex-wrap: wrap; gap: 0.2rem; margin-bottom: 0.6rem; }
.status { font-size: 0.9rem; color: var(--muted); min-height: 1.2em; margin-bottom: 0.4rem; font-variant-numeric: tabular-nums; }
.hint { font-size: 0.85rem; color: var(--muted); }
