/* public/assets/pares_tauler.css — panell dels pares v3, «Tauler» (WI AULA-PANELL-PARES-V3, mockup triat per en Sergi:
 * lab-pares/mockups-v3/A-tauler.html, acta DECISIONS-SERGI-20260930-PANELL-V3.md).
 * Prefix `pt-` a tot: skins.css ja estila .card/.card-title/.chip genèrics de l'app i no hi ha de col·lidir.
 * Només variables de la pell (var(--…)) més els 4 colors propis del semàfor, suaus (cap vermell agressiu).
 * CAP overflow:auto/scroll ni alçada fixa que retalli: només fa scroll el document. */
:root {
  --pt-verd: #7E9C6C; --pt-groc: #DDA83F; --pt-verm: #C1673F;
  --pt-gap: 16px;
}
/* el tauler no pinta la targeta de deures que munta bootstrap.js a #app: viu a la pantalla #/deures */
body.vista-tauler #deures-pares:not(.pt-dins) { display: none; }

.pt { max-width: 1400px; margin: 0 auto; }
.pt a { color: inherit; }
.pt a.pt-veure, .pt .pt-t-veure, .pt a.pt-tornar { color: var(--accent2, #0f9488); text-decoration: none; }
.pt-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pt-carregant { color: var(--text-dim, #69758a); font-size: 13px; margin: 8px 0; }

/* ---- targeta base ---- */
.pt-card {
  min-width: 0; background: var(--card-bg, var(--bg2, #fff)); border: 1px solid var(--border, rgba(15,23,42,.12));
  border-radius: var(--radius-card, 14px); box-shadow: var(--shadow, 0 2px 12px rgba(15,23,42,.06));
}

/* ================= HERO: semàfor d'avui + 14 dies ================= */
.pt-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr); gap: var(--pt-gap); }
@media (max-width: 900px) { .pt-hero { grid-template-columns: minmax(0, 1fr); } }
.pt-avui { padding: 20px clamp(16px, 3vw, 26px); display: flex; flex-direction: column; gap: 14px; }
.pt-sem { display: flex; align-items: center; gap: 16px; }
.pt-sem-dot { width: 60px; height: 60px; border-radius: 50%; flex: none; }
.pt-sem-dot.is-buit, .pt-dot.is-buit { background: transparent; border: 2px dashed var(--border, rgba(15,23,42,.25)); }
.pt-kicker { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim, #69758a); font-weight: 700; }
.pt-nivell { font-family: var(--font-head, inherit); font-size: 26px; font-weight: 700; line-height: 1.15; margin: 2px 0 0; color: var(--text, #1f2937); }
.pt-frase { font-size: 14.5px; color: var(--text-dim, #69758a); line-height: 1.45; margin: 0; overflow-wrap: anywhere; }
.pt-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border, rgba(15,23,42,.12)); background: var(--bg3, #eef2f8);
  padding: 6px 11px 6px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text, #1f2937); }
.pt-pill .pt-dot { width: 9px; height: 9px; }
.pt-pill-t { font-size: 11px; opacity: .7; }
.pt-dot { display: inline-block; border-radius: 50%; flex: none; }
.pt-niv-0 { background: var(--pt-verd); } .pt-niv-1 { background: var(--pt-groc); } .pt-niv-2 { background: var(--pt-verm); }

.pt-dies { padding: 18px clamp(14px, 3vw, 24px); display: flex; flex-direction: column; gap: 10px; }
.pt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pt-head h2 { font-family: var(--font-head, inherit); font-size: 16px; margin: 0; color: var(--accent2, #0f9488); font-weight: 700; }
.pt-grid14 { display: grid; grid-template-columns: 84px repeat(14, minmax(0, 1fr)); gap: 3px; align-items: center; min-width: 0; }
.pt-g-dia { font-size: 9.5px; color: var(--text-dim, #69758a); text-align: center; font-family: var(--font-mono, monospace); }
.pt-g-dia.is-avui { color: var(--accent2, #0f9488); font-weight: 700; }
.pt-g-nom { font-size: 11px; color: var(--text-dim, #69758a); font-weight: 600; padding-right: 4px; overflow-wrap: anywhere; line-height: 1.15; }
.pt-g-curt { display: none; }
.pt-g-punt { width: 100%; aspect-ratio: 1 / 1; max-width: 15px; min-width: 7px; margin: 0 auto; }
@media (max-width: 520px) {
  .pt-grid14 { grid-template-columns: 34px repeat(14, minmax(0, 1fr)); gap: 2px; }
  .pt-g-llarg { display: none; } .pt-g-curt { display: inline; }
}
.pt-llegenda { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--text-dim, #69758a); margin: 0; padding: 0; list-style: none; }
.pt-llegenda li { display: inline-flex; align-items: center; gap: 5px; }
.pt-llegenda .pt-dot { width: 9px; height: 9px; }

/* ================= D'UNA ULLADA (bento) ================= */
.pt-seccio { font-family: var(--font-head, inherit); font-size: 19px; font-weight: 700; color: var(--accent2, #0f9488); margin: 28px 0 12px; }
.pt-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--pt-gap); }
@media (max-width: 1100px) { .pt-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pt-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .pt-bento { grid-template-columns: minmax(0, 1fr); } }
.pt-t { padding: 15px 16px; display: flex; flex-direction: column; gap: 8px; min-height: 110px; text-decoration: none; color: inherit; }
.pt-t:hover { border-color: var(--accent2, #0f9488); }
.pt-t.pt-s2 { grid-column: span 2; }
@media (max-width: 420px) { .pt-t.pt-s2 { grid-column: span 1; } }
.pt-t-titol { font-family: var(--font-head, inherit); font-size: 15px; font-weight: 700; color: var(--text, #1f2937); margin: 0; overflow-wrap: anywhere; }
.pt-t-num { font-family: var(--font-head, inherit); font-size: 32px; font-weight: 700; line-height: 1; color: var(--text, #1f2937); overflow-wrap: anywhere; }
.pt-t-num small { font-family: var(--font-body, inherit); font-size: 13px; font-weight: 600; color: var(--text-dim, #69758a); }
.pt-t-sub { font-size: 12.5px; color: var(--text-dim, #69758a); line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.pt-t-text { font-size: 13px; color: var(--text, #1f2937); line-height: 1.45; margin: 0; overflow-wrap: anywhere; }
.pt-t-llista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pt-t-llista li { font-size: 12.5px; color: var(--text-dim, #69758a); overflow-wrap: anywhere; }
.pt-t-llista strong { color: var(--text, #1f2937); }
.pt-t-veure { font-size: 11.5px; font-weight: 700; color: var(--accent2, #0f9488); margin-top: auto; align-self: flex-end; white-space: nowrap; }
.pt-buits { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; padding: 12px 16px; font-size: 12.5px;
  color: var(--text-dim, #69758a); border-style: dashed; box-shadow: none; }
.pt-buits strong { font-weight: 700; }
.pt-buits a { color: var(--accent2, #0f9488); font-weight: 700; text-decoration: none; }
.pt-buits a:hover { text-decoration: underline; }
.pt-buits .pt-sep { opacity: .5; }

/* ================= MAPA DE TEMES: anells ================= */
.pt-anells { padding: 20px clamp(16px, 3vw, 26px); }
.pt-anells .pt-head { margin-bottom: 14px; }
.pt-anells-fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; }
.pt-anell { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; text-decoration: none; color: inherit; }
.pt-anell svg { width: 88px; height: 88px; }
.pt-anell-pct { font-family: var(--font-head, inherit); font-weight: 700; font-size: 17px; fill: var(--text, #1f2937); }
.pt-anell-nom { font-size: 12px; font-weight: 700; color: var(--text, #1f2937); overflow-wrap: anywhere; }
.pt-anell-n { font-size: 11px; color: var(--text-dim, #69758a); }
.pt-veure { font-size: 12px; font-weight: 700; color: var(--accent2, #0f9488); text-decoration: none; white-space: nowrap; }
.pt-veure:hover, .pt-t-veure:hover { text-decoration: underline; }

/* ================= PANTALLES DE DETALL ================= */
.pt-tornar { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--accent2, #0f9488); text-decoration: none; margin: 4px 0 10px; }
.pt-tornar:hover { text-decoration: underline; }
.pt-detall-h1 { font-family: var(--font-head, inherit); font-size: 26px; color: var(--accent2, #0f9488); margin: 0 0 16px; font-weight: 700; }
.pt-detall-cos { display: flex; flex-direction: column; gap: var(--pt-gap); }
.pt-detall-cos > .rl-card, .pt-detall-cos > .card { width: 100%; }
.pt-mapa-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.pt-mapa-col { padding: 16px; }
.pt-mapa-col h3 { font-family: var(--font-head, inherit); font-size: 16px; margin: 0; color: var(--text, #1f2937); font-weight: 700; overflow-wrap: anywhere; }
.pt-mapa-n { font-size: 11.5px; color: var(--text-dim, #69758a); margin: 2px 0 0; }
.pt-mapa-barra { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--bg3, #eef2f8); margin: 8px 0 12px; }
.pt-mapa-barra span { display: block; height: 100%; }
.pt-xips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.pt-xip { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--border, rgba(15,23,42,.12));
  line-height: 1.25; overflow-wrap: anywhere; max-width: 100%; background: var(--bg3, #eef2f8); color: var(--text-dim, #69758a); }
.pt-xip.pt-e-verd { background: color-mix(in srgb, var(--pt-verd) 26%, var(--card-bg, #fff)); border-color: var(--pt-verd); color: var(--text, #1f2937); }
.pt-xip.pt-e-groc { background: color-mix(in srgb, var(--pt-groc) 26%, var(--card-bg, #fff)); border-color: var(--pt-groc); color: var(--text, #1f2937); }
.pt-xip.pt-e-vermell { background: color-mix(in srgb, var(--pt-verm) 26%, var(--card-bg, #fff)); border-color: var(--pt-verm); color: var(--text, #1f2937); }
.pt-e-verd .pt-dot, .pt-dot.pt-e-verd { background: var(--pt-verd); }
.pt-dot.pt-e-groc { background: var(--pt-groc); } .pt-dot.pt-e-vermell { background: var(--pt-verm); }
.pt-dot.pt-e-gris { background: var(--bg3, #eef2f8); border: 1px solid var(--border, rgba(15,23,42,.2)); }
/* el fil del xat, a la seva pantalla, creix amb la pàgina: cap scroll intern */
.pt-detall-cos .pp-xat-fils { max-height: none; overflow: visible; }
