/* V291: página «On veure el Barça a Vilafranca» (veure-el-barca.html y ver-el-barca.html). Hoja propia y pequeña:
   mismos colores y letra que la web, sin cargar styles.min.css. Sin animaciones */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/pjs-latin.woff2) format('woff2'); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; font: 400 1rem/1.5 'Plus Jakarta Sans', system-ui, sans-serif; color: #f5f0e6; background: #0a1a07 radial-gradient(ellipse at 50% 0, #24461a 0%, #14290d 45%, #0a1a07 100%) no-repeat; }
a { color: inherit; }
.top { display: flex; align-items: center; justify-content: center; padding: 14px 16px; border-bottom: 1px solid rgba(198,255,14,.35); background: rgba(6,16,6,.55); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.35rem; text-decoration: none; }
.brand img { width: 64px; height: 48px; }
.brand em { font-style: italic; color: #c6ff0e; }
main { max-width: 720px; margin: 0 auto; padding: 28px 22px 40px; }
.over { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #c6ff0e; }
h1 { margin: 0 0 14px; font-size: clamp(1.9rem, 8.2vw, 3rem); line-height: 1.08; font-weight: 800; text-wrap: balance; }
.lead { margin: 0 0 22px; font-size: 1.12rem; font-weight: 600; color: #e6edd6; text-wrap: balance; }
h2 { margin: 36px 0 12px; font-size: 1.3rem; font-weight: 800; color: #c6ff0e; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { flex: 1 1 200px; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 18px; border-radius: 999px; font-weight: 800; text-align: center; text-decoration: none; color: #f5f0e6;
  border: 1px solid rgba(200,250,60,.7); border-top-color: rgba(235,255,170,.9); background: linear-gradient(180deg, rgba(212,245,80,.3), rgba(143,190,0,.16) 50%, rgba(90,140,20,.12)), rgba(6,16,6,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 18px rgba(170,235,0,.35), 0 8px 22px rgba(0,0,0,.35); }
.btn.lime { color: #0d1a05; border-color: rgba(220,255,110,.75); border-top-color: rgba(245,255,200,.95); background: linear-gradient(180deg, rgba(225,255,90,.95), rgba(170,230,0,.88) 45%, rgba(115,175,0,.85));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 26px rgba(170,235,0,.6), 0 8px 22px rgba(0,0,0,.35); }
#partits, .why { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
#partits li { padding: 14px 16px 14px 30px; border-radius: 16px; border: 1px solid rgba(198,255,14,.4); background: rgba(6,16,6,.5); }
#partits b { display: block; font-size: 1.15rem; font-weight: 800; color: #c6ff0e; }
#partits span { display: block; margin-top: 2px; color: #e6edd6; }
#partits .none { color: #cfd8bf; border-style: dashed; }
.why li { padding-left: 26px; position: relative; font-weight: 600; }
.why li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: #c6ff0e; box-shadow: 0 0 8px rgba(198,255,14,.7); }
.note { margin: 12px 2px 0; font-size: .9rem; color: #b9c4a6; }
address { font-style: normal; margin: 0 0 16px; font-weight: 600; }
footer { padding: 22px 16px 34px; text-align: center; font-size: .9rem; color: #b9c4a6; border-top: 1px solid rgba(198,255,14,.2); }
footer a { font-weight: 700; }
a:focus-visible { outline: 3px solid #c6ff0e; outline-offset: 3px; }

/* V304 · páginas /xx/carta (la carta para Google, generada por build-langs.js) */
.carta { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.carta li { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 10px 14px; border-radius: 12px; background: rgba(6,16,6,.45); border: 1px solid rgba(198,255,14,.14); }
.carta .cn { font-weight: 700; color: #f5f0e6; }
.carta .cp { font-weight: 800; color: #c6ff0e; white-space: nowrap; font-variant-numeric: tabular-nums; }
.carta .cd { grid-column: 1 / -1; font-size: .9rem; font-style: italic; color: #b9c4a6; }
main > .ctas:first-of-type { margin-top: 6px; }

/* V308 · partidos como tarjeta de la portada: balón de la competición, «Añadir al calendario» y «Compartir» */
#partits li.pc { position: relative; padding: 14px 76px 14px 30px; }
#partits .pc b i { font-style: normal; background: linear-gradient(90deg, #6aa6ff 0%, #6aa6ff 45%, #ff5c8f 55%, #ff5c8f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
#partits .pc-ball { position: absolute; right: 14px; top: 50%; width: 48px; height: 48px; margin: -24px 0 0; border-radius: 50%; overflow: hidden; box-shadow: 0 7px 9px -3px rgba(0,0,0,.6), 0 14px 18px -8px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.25); }
#partits .pc-ball img { display: block; width: 100%; height: 100%; object-fit: cover; }
#partits .pc-ball::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(ellipse 22% 15% at 33% 24%, rgba(255,255,255,.95) 0, rgba(255,255,255,.55) 45%, rgba(255,255,255,0) 100%), radial-gradient(circle at 36% 30%, rgba(0,0,0,0) 38%, rgba(0,0,0,.28) 66%, rgba(0,0,0,.62) 88%, rgba(0,0,0,.78) 100%); }
#partits .pc-acts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; }
#partits .pc-acts a { display: inline-flex; align-items: center; min-height: 32px; font-size: .88rem; font-weight: 700; color: #c6ff0e; text-decoration: none; }
#partits .pc-acts a::before { content: ''; width: 14px; height: 14px; margin-right: 6px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
#partits .pc-cal { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
#partits .pc-share { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 13.5l6.8 4M15.4 6.5l-6.8 4'/%3E%3C/svg%3E"); }

/* V316 · tema clar de dia (html.tl, ho decideix /tema.js). La capçalera es queda fosca com a la portada */
.top { position: relative; }
.theme-btn { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer;
  color: #ffd84a; background: rgba(6,16,6,.55); border: 1px solid rgba(198,255,14,.45); box-shadow: 0 0 12px rgba(170,235,0,.3); }
.theme-btn:focus-visible { outline: 3px solid #c6ff0e; outline-offset: 3px; }
.theme-btn .tb-moon, html.tl .theme-btn .tb-sun { display: none; }
html.tl .theme-btn .tb-moon { display: block; }
@media (max-width: 420px) { .brand { font-size: 1.15rem; } .brand img { width: 52px; height: 39px; } }
html.tl body { color: #1d2914; background: #f4f7ec radial-gradient(ellipse at 50% 0, #ffffff 0%, #eef3e2 55%, #e4ecd2 100%) fixed; }
html.tl .over, html.tl h2 { color: #327800; }
html.tl h1 { color: #0f3306; }
html.tl .lead { color: #3d4a2e; }
html.tl .btn:not(.lime) { color: #1d4a00; background: #fff; border-color: rgba(70,130,10,.45); box-shadow: 0 4px 14px rgba(40,80,0,.12); }
html.tl #partits li, html.tl .carta li { background: rgba(255,255,255,.62); border-color: rgba(70,130,10,.28); box-shadow: 0 3px 12px rgba(40,80,0,.08); }
html.tl #partits b, html.tl .carta .cn { color: #1d2914; }
html.tl #partits span, html.tl .why li, html.tl address { color: #1d2914; }
html.tl #partits .none, html.tl .note, html.tl .carta .cd, html.tl footer { color: #4a5838; }
html.tl #partits .pc-acts a, html.tl .carta .cp { color: #327800; }
html.tl .why li::before { background: #5a9a00; box-shadow: none; }
html.tl footer { border-top-color: rgba(70,130,10,.25); }
html.tl a:focus-visible { outline-color: #327800; }
html.tl .top { background: linear-gradient(180deg, #13300b, #0c2007); } html.tl .brand { color: #f5f0e6; }
/* V318: el tema es canvia tocant el drac; el botó només amb teclat */
.theme-btn:not(:focus-visible) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.brand img { cursor: pointer; }
/* V319 · pròxim partit destacat i «Mentre mires el partit» en targetes amb icona */
#partits li.pc-1 { padding-top: 12px; border-color: rgba(198,255,14,.75); background: linear-gradient(160deg, rgba(60,110,10,.55), rgba(6,16,6,.6) 60%); box-shadow: 0 0 22px rgba(170,235,0,.25), inset 0 1px 0 rgba(255,255,255,.12); }
#partits li.pc-1 b { font-size: 1.4rem; }
#partits .pc-next { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; text-transform: uppercase; color: #0d1a05; background: #c6ff0e; }
#partits .pc-next em { font-style: normal; }
.why { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.why li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(198,255,14,.3); background: rgba(6,16,6,.45); }
.why li::before { position: static; flex: none; width: 36px; height: 36px; border-radius: 50%; box-shadow: none; background: #c6ff0e; -webkit-mask: var(--i) center / 24px no-repeat; mask: var(--i) center / 24px no-repeat; }
.why li:nth-child(1) { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='2' y='4' width='20' height='13' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E"); }
.why li:nth-child(2) { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 11h18M5 11a7 7 0 0 1 14 0M4 15h16l-1.5 4h-13z'/%3E%3C/svg%3E"); }
.why li:nth-child(3) { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
html.tl #partits li.pc-1 { background: linear-gradient(160deg, #eaf7c8, #fff 60%); border-color: rgba(70,130,10,.6); }
html.tl #partits .pc-next { color: #fff; background: #327800; }
html.tl .why li { background: #fff; border-color: rgba(70,130,10,.28); box-shadow: 0 3px 12px rgba(40,80,0,.08); }
html.tl .why li::before { background: #327800; }
/* V321 · insígnia sol/lluna sobre el drac del logo: indica que tocant-lo es canvia de mode */
.nav-logo picture, .brand picture { position: relative; display: inline-block; }
.nav-logo picture::after, .brand picture::after { content: ''; position: absolute; right: 6%; bottom: 24%; width: 16px; height: 16px; border-radius: 50%; pointer-events: none;
  background: #ffd84a var(--tb) center / 11px no-repeat; box-shadow: 0 0 0 1.5px #0c2007, 0 2px 6px rgba(0,0,0,.5);
  --tb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c2007' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Cpath d='M12 2v2.5M12 19.5V22M2 12h2.5M19.5 12H22M4.9 4.9l1.8 1.8M17.3 17.3l1.8 1.8M4.9 19.1l1.8-1.8M17.3 6.7l1.8-1.8'/%3E%3C/svg%3E"); }
html.tl .nav-logo picture::after, html.tl .brand picture::after { background-color: #c9d6ff;
  --tb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230c2007'%3E%3Cpath d='M20.5 14.6A8.6 8.6 0 0 1 9.4 3.5a8.6 8.6 0 1 0 11.1 11.1z'/%3E%3C/svg%3E"); }
/* V328 · mode clar també a la capçalera (abans es quedava fosca) */
html.tl .top { background: rgba(250,252,244,.96); border-bottom-color: rgba(70,130,10,.3); box-shadow: 0 4px 16px rgba(30,70,10,.08); }
html.tl .brand { color: #0f3306; }
html.tl .brand em { color: #3d8600; }
html.tl .btn.lime { box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 14px rgba(90,150,0,.3); }
/* V335 · mode clar calcat del fosc, com a la portada: tarjetes amb degradat i vora lima, botons amb vora lima, títols amb halo */
html.tl { --d-card: linear-gradient(165deg, #ffffff 0%, #f5faea 58%, #ebf5d3 100%); --d-edge: linear-gradient(135deg, #8fd000, rgba(143,208,0,.25) 50%, #6fb000);
  --d-glow: 0 12px 26px -14px rgba(60,120,0,.5), 0 0 18px rgba(172,238,0,.16); }
html.tl :is(#partits li:not(.none), .carta li, .why li, .btn:not(.lime)) { border: 1.5px solid transparent; background: var(--d-card) padding-box, var(--d-edge) border-box; box-shadow: var(--d-glow), inset 0 1px 0 #fff; }
html.tl #partits li.pc-1 { background: linear-gradient(160deg, #e6f8b0 0%, #f7fce9 55%, #ffffff 100%) padding-box, linear-gradient(135deg, #b4ee00, #6fb000) border-box; box-shadow: 0 0 24px rgba(172,238,0,.4), 0 14px 28px -14px rgba(60,120,0,.55), inset 0 1px 0 #fff; }
html.tl #partits .pc-next { color: #123a00; background: linear-gradient(180deg, #e2ff5c, #a8dc00); box-shadow: 0 0 10px rgba(172,238,0,.55); }
html.tl h1 { text-shadow: 0 1px 0 #fff, 0 8px 22px rgba(110,180,0,.28); }
html.tl h2 { color: #3d8600; text-shadow: 0 0 16px rgba(172,238,0,.45); }
html.tl .btn.lime { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 18px rgba(172,238,0,.5), 0 8px 18px -8px rgba(60,120,0,.5); }
/* V336 · mode clar més viu (com a la portada) */
html.tl { --d-card: linear-gradient(165deg, #ffffff 0%, #f2fcd8 52%, #def4a2 100%); --d-edge: linear-gradient(135deg, #b0f400, rgba(166,240,0,.4) 50%, #7cc800); --d-glow: 0 14px 30px -14px rgba(70,140,0,.6), 0 0 26px rgba(176,240,0,.34); }
html.tl body { background: #f3fbe0 radial-gradient(ellipse at 50% 0, rgba(190,250,30,.35) 0%, #f3fbe0 45%, #e3f5b4 100%) fixed; }
html.tl h1 { background: linear-gradient(180deg, #2c6a00, #0f3306 85%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
html.tl h2, html.tl .over { color: #4a9a00; text-shadow: 0 0 14px rgba(176,240,0,.6); }
html.tl .top { background: linear-gradient(180deg, #fbfff0, #eef9d2); box-shadow: 0 1px 0 rgba(150,215,0,.7), 0 6px 22px rgba(120,190,0,.22); }
html.tl h1 { text-shadow: none; filter: drop-shadow(0 6px 14px rgba(110,180,0,.3)); }

/* V360 · partits per mesos: franja lateral granat als mesos senars i blava als parells (blaugrana) (fosc i clar) */
:is(.eventos li, #partits li):is(.ev-m1, .ev-m2) { position: relative; }
:is(.eventos li, #partits li):is(.ev-m1, .ev-m2)::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; pointer-events: none; }
:is(.eventos li, #partits li).ev-m1::before { background: #e0306a; box-shadow: 0 0 8px rgba(224,48,106,.6); }
:is(.eventos li, #partits li).ev-m1::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(90deg, rgba(224,48,106,.11), rgba(224,48,106,0) 70%); }
:is(.eventos li, #partits li).ev-m2::before { background: #6aa6ff; box-shadow: 0 0 8px rgba(106,166,255,.55); }
:is(.eventos li, #partits li).ev-m2::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(90deg, rgba(106,166,255,.12), rgba(106,166,255,0) 70%); }
:is(.eventos li, #partits li).ev-off::before { opacity: .45; }
html.tl :is(.eventos li, #partits li).ev-m1::before { background: #a50044; box-shadow: none; }
html.tl :is(.eventos li, #partits li).ev-m1::after { background: linear-gradient(90deg, rgba(165,0,68,.08), rgba(165,0,68,0) 70%); }
html.tl :is(.eventos li, #partits li).ev-m2::before { background: #2f6fd6; box-shadow: none; }
html.tl :is(.eventos li, #partits li).ev-m2::after { background: linear-gradient(90deg, rgba(47,111,214,.09), rgba(47,111,214,0) 70%); }
/* V363: rètol del mes (NOV'26) davant del primer partit de cada mes */
:is(.eventos, #partits) li.ev-mes { display: flex !important; align-items: center; gap: 8px; min-height: 0 !important; padding: 6px 2px 0 !important; margin: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; font-weight: 800; font-size: .74rem; line-height: 1; letter-spacing: .12em; }
:is(.eventos, #partits) li.ev-mes::before { content: none !important; }
:is(.eventos, #partits) li.ev-mes::after { content: ""; flex: 1; height: 1px; position: static; background: linear-gradient(90deg, currentColor, transparent); opacity: .45; }
:is(.eventos, #partits) li.ev-mes.m1 { color: #ff5c8f; text-shadow: 0 0 8px rgba(224,48,106,.45); }
:is(.eventos, #partits) li.ev-mes.m2 { color: #8dbcff; text-shadow: 0 0 8px rgba(106,166,255,.4); }
html.tl :is(.eventos, #partits) li.ev-mes.m1 { color: #a50044; text-shadow: none; }
html.tl :is(.eventos, #partits) li.ev-mes.m2 { color: #2f6fd6; text-shadow: none; }
/* V366: rètol del mes alineat amb el text de les targetes */
#partits li.ev-mes { padding-left: 17px !important; }
.eventos li.ev-mes { padding-left: 22px !important; }
:is(.eventos, #partits) li.ev-mes { font-size: .64rem !important; letter-spacing: .14em; }

/* V378 · preguntas frecuentes (SEO): <details> nativo, sin animación */
.faq { display: grid; gap: 8px; }
.faq details { border-radius: 14px; border: 1px solid rgba(198,255,14,.3); background: rgba(6,16,6,.5); }
.faq summary { cursor: pointer; list-style: none; padding: 13px 44px 13px 16px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 600; color: #c6ff0e; }
.faq details[open] summary::after { content: '−'; }
.faq summary:focus-visible { outline: 3px solid #c6ff0e; outline-offset: 2px; border-radius: 14px; }
.faq p { margin: 0; padding: 0 16px 14px 30px; color: #e6edd6; }
.faq p a { font-weight: 700; color: #c6ff0e; }
html.tl .faq details { background: #fff; border-color: rgba(70,130,10,.3); }
html.tl .faq summary { color: #1d2914; }
html.tl .faq summary::after, html.tl .faq p a { color: #4a8a00; }
html.tl .faq p { color: #2e3a22; }

/* V379: «Llegar con Maps →» y «Con Waze →» uno al lado del otro, como en la portada */
.ctas.go { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ctas.go .btn { min-width: 0; padding-inline: 10px; gap: 6px; white-space: nowrap; font-size: .95rem; }
.ctas.go .btn::after { content: '→'; }
@media (max-width: 400px) { .ctas.go .btn { font-size: .82rem; padding-inline: 8px; gap: 4px; } }
/* V393: páginas esmorzars/terrassa/tapes: un check en cada punto (los iconos de .why son del Barça) */
.why.ok li:nth-child(n) { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
