/* Additions to the club's web design: pages and pieces that the previous web did not have
   (news, contact, match stats, player stats, notifications). Same palette: black, white, #f3cb16. */
html{scroll-behavior:smooth}
[hidden]{display:none!important}
a.block{display:block}
.x-crest{display:inline-flex;align-items:center;justify-content:center;border-radius:9999px;background:#f5f5f5;color:#525252;font-weight:900;font-size:1.25rem;aspect-ratio:1/1;max-width:7rem;max-height:7rem}
.x-livetxt{color:#dc2626}
.x-livebadge{background:#dc2626;animation:xpulse 1.6s ease-in-out infinite}
@keyframes xpulse{50%{opacity:.6}}
@keyframes heroZoom{from{transform:scale(1.05)}to{transform:scale(1.12)}}
@media (min-width:48rem){.animate-heroZoom{animation:heroZoom 14s ease-out both}}
@media (prefers-reduced-motion:reduce){.animate-heroZoom{animation:none}}
.x-bell{display:inline-flex;align-items:center}
/* news */
.x-news{display:flex;flex-direction:column;overflow:hidden}
.x-news-img{aspect-ratio:16/10;overflow:hidden;background:#f5f5f5}
.x-news-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.x-news:hover .x-news-img img{transform:scale(1.05)}
.x-news-noimg{display:flex;align-items:center;justify-content:center;background:#111}
.x-news-noimg img{width:40%;height:auto;object-fit:contain}
.x-news-b{padding:1.25rem 1.5rem 1.5rem;display:flex;flex-direction:column;gap:.5rem}
.x-article{margin-top:2.5rem;line-height:1.75;color:#404040;font-size:1.05rem}
.x-article p{margin:0 0 1.1em}
.x-article h2{font-size:1.5rem;font-weight:700;color:#000;margin:1.6em 0 .6em}
.x-article a{text-decoration:underline;color:#000}
.x-article img{border-radius:1rem;margin:1.5em 0}
/* player modal (same as the previous web) */
.x-modal{position:fixed;inset:0;background:rgba(0,0,0,.7);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:60;padding:1rem;animation:fadeIn .2s}
.x-modal-c{background:#fff;border-radius:1rem;box-shadow:0 20px 50px rgba(0,0,0,.35);max-width:48rem;width:100%;max-height:90vh;overflow-y:auto;position:relative}
.x-modal-top{position:relative;background:linear-gradient(to bottom right,#f3cb16,#eab308,#171717);padding:2.5rem 2rem 1.5rem;text-align:center;overflow:hidden}
.x-modal-top img{margin:0 auto;width:100%;max-width:28rem;height:420px;object-fit:cover;object-position:top;border-radius:.75rem;box-shadow:0 25px 50px -12px rgba(0,0,0,.25);position:relative}
@media (min-width:48rem){.x-modal-top img{height:480px}}
.x-modal-num{pointer-events:none;position:absolute;top:0;right:0;padding:1rem 1.5rem 0 0;font-size:180px;font-weight:900;line-height:1;color:rgba(255,255,255,.1);letter-spacing:-.025em;user-select:none}
@media (min-width:48rem){.x-modal-num{font-size:260px}}
.x-modal-b{padding:2rem;text-align:center}
.x-modal-b h3{font-size:1.875rem;font-weight:600;color:#171717}
.x-modal-x{position:absolute;top:.75rem;right:.75rem;z-index:2;width:2.5rem;height:2.5rem;border-radius:9999px;background:rgba(0,0,0,.55);color:#fff;font-size:1.25rem;line-height:1;border:0;cursor:pointer}
.x-btn{display:inline-flex;align-items:center;gap:.5rem;background:#000;color:#fff;padding:.75rem 1.5rem;border-radius:.75rem;font-weight:600;transition:background .2s}
.x-btn:hover{background:#262626}
.x-btn span{color:#f3cb16}
.x-btn-y{background:#f3cb16;color:#000}
.x-btn-y:hover{background:#facc15}
/* match and player statistics (charts come from stats.js) */
.x-board{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;text-align:center}
.x-board .side{display:flex;flex-direction:column;align-items:center;gap:.5rem;font-weight:600}
.x-board .side img,.x-board .side .x-crest{width:6rem;height:6rem;object-fit:contain}
.x-score{font-size:3.5rem;font-weight:900;font-variant-numeric:tabular-nums;line-height:1}
.x-score .w{color:#f3cb16}
.x-sets{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1.25rem}
.x-sets span{background:#f5f5f5;border-radius:.5rem;padding:.25rem .75rem;font-weight:600;font-variant-numeric:tabular-nums;font-size:.9rem}
.x-sets span.won{background:#f3cb16}
.x-sets span.cur{background:#000;color:#fff}
.vs-scope{--y:#f3cb16;--k:#0e0e0e;--w:#fff;--paper:#f5f5f5;--line:#e5e5e5;--muted:#737373;--ink:#171717;--good:#1f8a4c;--bad:#c63a2e;--poor:#e58a23;--neutral:#aba89f}
.vs-scope .card{background:#fff;border-radius:1rem;box-shadow:0 1px 3px rgba(0,0,0,.08);padding:1.25rem;min-width:0}
.vs-scope .grid-2{display:grid;gap:1rem}
@media (min-width:48rem){.vs-scope .grid-2{grid-template-columns:1fr 1fr}}
.vs-scope .h3{font-size:1.1rem;font-weight:700;margin-bottom:.75rem}
.vs-scope .tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:.75rem}
.vs-scope .tile{background:#fff;border-radius:1rem;box-shadow:0 1px 3px rgba(0,0,0,.08);padding:.9rem 1rem;display:flex;flex-direction:column;gap:.15rem}
.vs-scope .tile b{font-size:1.75rem;font-weight:900;font-variant-numeric:tabular-nums}
.vs-scope .lbl{font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:#737373;font-weight:700}
.vs-scope .legend{display:flex;flex-wrap:wrap;gap:.75rem;font-size:.8rem;color:#737373}
.vs-scope .legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:4px;vertical-align:-1px}
.vs-scope .kv{display:flex;flex-wrap:wrap;gap:.9rem;font-size:.85rem;color:#737373}
.vs-scope .kv b{color:#171717}
.vs-scope .tablewrap{overflow-x:auto}
.vs-scope table.stats{width:100%;border-collapse:collapse;font-size:.85rem;font-variant-numeric:tabular-nums}
.vs-scope table.stats th{text-align:left;font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;color:#737373;padding:.5rem;border-bottom:2px solid #e5e5e5;white-space:nowrap}
.vs-scope table.stats td{padding:.5rem;border-bottom:1px solid #f0f0f0;white-space:nowrap}
.vs-scope table.stats a{font-weight:600}
.vs-scope .pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem}
.vs-scope .pstat-h{display:flex;justify-content:space-between;align-items:flex-start;gap:.5rem;margin-bottom:.5rem}
.vs-scope .big{font-size:2rem;font-weight:900;line-height:1}
.vs-scope select{border:1px solid #d4d4d4;border-radius:.375rem;padding:.4rem .75rem;background:#fff}
.x-ph{width:9rem;height:11rem;border-radius:1rem;overflow:hidden;background:#f3cb16;display:flex;align-items:center;justify-content:center;font-size:3.5rem;font-weight:900;flex:none}
.x-ph img{width:100%;height:100%;object-fit:cover;object-position:top}
/* contact */
.x-input{width:100%;border:1px solid #d4d4d4;border-radius:.75rem;padding:.75rem 1rem;background:#fff;font:inherit}
.x-steps{list-style:decimal;padding-left:1.4rem;line-height:1.7;color:#404040}
@media (min-width:48rem){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* news articles written in the newsroom */
.x-article h3{font-size:1.2rem;font-weight:700;color:#000;margin:1.4em 0 .5em}
.x-article ul{list-style:disc;padding-left:1.4em;margin:0 0 1.1em}
.x-article li{margin:.25em 0}
.x-article strong{color:#171717}
.x-article blockquote{border-left:4px solid var(--cardassar-yellow);padding:.4em 0 .4em 1.1em;margin:1.4em 0;font-size:1.15rem;font-style:italic;color:#262626}
.x-article figure{margin:1.8em 0}
.x-article figure img{margin:0;width:100%}
.x-article figcaption{font-size:.85rem;color:#737373;margin-top:.5em;text-align:center}
.x-video{position:relative;aspect-ratio:16/9;margin:1.8em 0;border-radius:1rem;overflow:hidden;background:#000}
.x-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.x-preview{position:sticky;top:72px;z-index:20;max-width:48rem;margin:0 auto 1.5rem;background:#fef3c7;border:1px solid #f59e0b;color:#78350f;font-weight:600;font-size:.9rem;text-align:center;padding:.6rem 1rem;border-radius:.75rem}
/* invitation to turn on notifications */
.x-bellbtn{margin-top:.75rem;display:inline-flex;align-items:center;gap:.4rem;font-weight:600;font-size:.9rem;background:#000;color:var(--cardassar-yellow);border:0;border-radius:999px;padding:.55rem 1rem;cursor:pointer}
.x-bellbtn:hover{background:#262626}
.x-bellbtn.on{background:#dcfce7;color:#15803d;cursor:default}
.cvp-inv{position:fixed;left:16px;right:16px;bottom:16px;z-index:60;max-width:420px;margin-left:auto;background:#0a0a0a;color:#fff;border-radius:18px;box-shadow:0 18px 40px rgba(0,0,0,.35);border:1px solid #262626;padding:16px 16px 14px;display:grid;grid-template-columns:44px 1fr;gap:12px;transform:translateY(140%);transition:transform .35s ease}
.cvp-inv.show{transform:none}
.cvp-inv .i{width:44px;height:44px;border-radius:50%;background:var(--cardassar-yellow);color:#000;display:grid;place-items:center}
.cvp-inv .i svg{width:22px;height:22px}
.cvp-inv b{display:block;font-size:1rem;line-height:1.3}
.cvp-inv p{margin:.2rem 0 0;font-size:.85rem;color:#d4d4d4;line-height:1.4}
.cvp-inv .r{grid-column:1/-1;display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.cvp-inv button,.cvp-inv a{font:inherit;font-weight:700;font-size:.9rem;border:0;border-radius:10px;padding:10px 14px;min-height:42px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center}
.cvp-inv .y{background:var(--cardassar-yellow);color:#000}
.cvp-inv .n{background:transparent;color:#a3a3a3}
.cvp-inv .x{position:absolute;top:6px;right:8px;background:none;color:#737373;font-size:1.3rem;min-height:0;padding:4px 8px}
@media (prefers-reduced-motion:reduce){.cvp-inv{transition:none}}
/* access to the intranet from the public header */
.x-access{display:inline-flex;align-items:center;gap:.35rem;font-size:.85rem;font-weight:700;color:#000;background:var(--cardassar-yellow);border-radius:999px;padding:.35rem .8rem;line-height:1.2;transition:filter .2s}
.x-access:hover{filter:brightness(.92)}

/* legal pages */
.x-legal{line-height:1.65;color:#262626}
.x-legal h2{font-size:1.25rem;font-weight:700;margin:1.8rem 0 .6rem;color:#000}
.x-legal h2:first-child{margin-top:0}
.x-legal p{margin:.6rem 0}
.x-legal ul,.x-legal ol{margin:.6rem 0 .6rem 1.4rem}
.x-legal ul{list-style:disc}.x-legal ol{list-style:decimal}
.x-legal li{margin:.3rem 0}
.x-legal a:not(.x-btn){color:#a16207;text-decoration:underline}
.x-legal .x-btn{margin-top:.4rem}
.x-dpreview{position:fixed;left:50%;bottom:12px;transform:translateX(-50%);z-index:100;background:#111;color:#fff;font-size:.8rem;font-weight:600;padding:.5rem .9rem;border-radius:999px;box-shadow:0 6px 20px rgba(0,0,0,.35);border:2px solid var(--cardassar-yellow);white-space:nowrap;pointer-events:none}
@media (min-width:48rem){.md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* calendar: a light tint for won and lost matches */
.x-cal.x-won{background:#f0faf3;border-left:4px solid #22a05a}
.x-cal.x-lost{background:#fcf3f2;border-left:4px solid #d9534f}
.x-won .x-res-tag,.x-lost .x-res-tag{font-weight:700}
/* standings */
.x-st-h{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:20px 24px;border-bottom:1px solid #eee}
.x-st-nav{display:flex;align-items:center;gap:6px}
.x-st-nav button{width:40px;height:40px;border-radius:10px;background:#f2f2f2;font-size:22px;line-height:1;font-weight:700}
.x-st-nav button:disabled{opacity:.3}
.x-st-nav select{border:1px solid #ddd;border-radius:10px;padding:8px 10px;background:#fff;font-weight:600}
.x-st-body{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:0}
.x-st-table{overflow-x:auto;padding:8px 12px 16px}
.x-st-table table{width:100%;border-collapse:collapse;font-size:15px}
.x-st-table th{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#737373;font-weight:700;padding:10px 6px;text-align:center;border-bottom:2px solid #111}
.x-st-table th.t{text-align:left}
.x-st-table td{padding:9px 6px;text-align:center;border-bottom:1px solid #f0f0f0;font-variant-numeric:tabular-nums}
.x-st-table td.p{font-weight:800;width:32px;color:#525252}
.x-st-table td.t{text-align:left}
.x-st-table td.pt,.x-st-table th.pt{font-weight:900;font-size:16px}
.x-st-table tr.us td{background:color-mix(in srgb,var(--cardassar-yellow) 28%,#fff);font-weight:700}
.x-st-table tr.us td.p{box-shadow:inset 4px 0 0 var(--cardassar-yellow);color:#000}
.x-st-team{display:flex;align-items:center;gap:10px;min-width:0}
.x-st-team img,.x-st-ini{width:30px;height:30px;object-fit:contain;flex:none;border-radius:6px;background:#fff}
.x-st-ini{display:inline-flex;align-items:center;justify-content:center;background:#f2f2f2;font-size:11px;font-weight:800;color:#525252}
.x-st-team span{overflow:hidden;text-overflow:ellipsis}
.x-st-evo{border-left:1px solid #eee;padding:18px 20px}
.x-st-evo h3{font-weight:700;margin-bottom:8px}
.x-st-chart svg{width:100%;height:auto;display:block}
.x-st-chart .g{stroke:#eee;stroke-width:1}
.x-st-chart .ax{fill:#999;font-size:11px}
.x-st-chart .ln{fill:none;stroke:#111;stroke-width:2.5;stroke-linejoin:round}
.x-st-chart .pt{cursor:pointer}
.x-st-chart .pt circle{fill:#111;stroke:#fff;stroke-width:2}
.x-st-chart .pt text{fill:#fff;font-size:11px;font-weight:800}
.x-st-chart .pt text.ax{fill:#999;font-weight:600}
.x-st-chart .pt.on circle{fill:var(--cardassar-yellow);stroke:#111}
.x-st-chart .pt.on text:not(.ax){fill:#000}
.x-st-hint{font-size:12px;color:#8a8a8a;margin-top:6px}
@media (max-width:860px){.x-st-body{grid-template-columns:1fr}.x-st-evo{border-left:0;border-top:1px solid #eee}}
@media (max-width:640px){.x-st-table .w,.x-st-table th.w{display:none}.x-st-h{padding:16px}.x-st-table{padding:4px 6px 12px}.x-st-table table{font-size:14px}}


/* CV Cardassar — redisseny de la portada */
@media (min-width: 768px) {
  .relative.h-full.flex.flex-col.justify-center.items-center.text-center.text-white.px-4 {
    max-width: 760px;
    margin-inline: auto;
    padding-inline: 2rem;
  }

  .relative.h-full.flex.flex-col.justify-center.items-center.text-center.text-white.px-4 h1 {
    max-width: 100%;
    line-height: 0.98;
    text-wrap: balance;
  }

  .relative.h-full.flex.flex-col.justify-center.items-center.text-center.text-white.px-4 h2 {
    line-height: 0.92;
    text-wrap: balance;
  }

  .relative.h-full.flex.flex-col.justify-center.items-center.text-center.text-white.px-4 p {
    margin-top: 1.25rem;
    letter-spacing: 0.08em;
  }
}


/* CV Cardassar — portada minimalista: titular */
@media (min-width: 768px) {
  h1.font-black.tracking-tight {
    letter-spacing: -0.035em;
    line-height: 1.05;
  }

  h2.font-black.tracking-tight.text-\[var\(--cardassar-yellow\)\] {
    letter-spacing: -0.045em;
    line-height: 0.98;
  }

  h1.font-black.tracking-tight + h2.font-black.tracking-tight {
    margin-top: 0.15rem;
  }
}


/* CV Cardassar — portada minimalista: capa de contrast */
@media (min-width: 768px) {
  .absolute.inset-0.bg-gradient-to-b.from-black\/20.via-black\/40.to-black\/60 {
    background-image: linear-gradient(
      to bottom,
      rgb(0 0 0 / 8%),
      rgb(0 0 0 / 18%),
      rgb(0 0 0 / 30%)
    ) !important;
  }
}


/* CV Cardassar — portada inspirada en Hokkaido Yellow Stars */
.cv-hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 650px;
  max-height: none;
  isolation: isolate;
}

.cv-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -3;
}


.cv-hero__decor {
  position: fixed;
  left: 4%;
  top: 15%;
  width: clamp(120px, 20vw, 240px);
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}

.cv-hero__decor_2 {
  position: fixed;
  right: 4%;
  bottom: 15%;
  width: clamp(120px, 20vw, 220px);
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}

.cv-hero__composition {
  position: relative;
  width: min(100%, 1450px);
  height: 100%;
  min-height: inherit;
  margin-inline: auto;
}

.cv-hero__players {
  position: absolute;
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  max-width: none;
  pointer-events: none;
}

.cv-hero__players--large {
  height: 66%;
  max-height: 650px;
  width: auto;
  left: 50%;
  top: 5%;
  transform: translateX(-50%);
  z-index: 1;
}

.cv-hero__players--standing {
  height: 39%;
  max-height: 350px;
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%);
  z-index: 3;
}

.cv-hero__title {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 57%;
  transform: translate(-50%, -50%) rotate(-4deg);
  margin: 0;
  width: max-content;
  max-width: 65%;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 6.2vw, 6.5rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.055em;
  white-space: nowrap;
  color: #f3cb16;
  -webkit-text-stroke: 1.5px #111;
  text-shadow: 5px 5px 0 #111;
}

.cv-hero__scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 20px;
  height: 34px;
  border: 1px solid #111;
  border-radius: 20px;
  display: flex;
  justify-content: center;
}

.cv-hero__scroll span {
  width: 4px;
  height: 7px;
  margin-top: 6px;
  border-radius: 4px;
  background: #111;
}


@media (max-width: 1600px) {
.cv-hero__decor {
    opacity: 0.15;
  }

  .cv-hero__decor_2 {
  opacity: 0.15;
}
}

@media (max-width: 767px) {

   .cv-hero__decor {
    display: none !important;
  }

  .cv-hero__decor_2 {
  display: none !important;
}
  .cv-hero {
    height: 72svh;
    min-height: 520px;
    max-height: 760px;
  }

  .cv-hero__bg {
    object-position: 58% center;
  }

  .cv-hero__players--large {
    height: 52%;
    top: 12%;
  }

  .cv-hero__players--standing {
    height: 30%;
    bottom: 7%;
  }

  .cv-hero__title {
    top: 58%;
    font-size: clamp(1.8rem, 8.2vw, 3.8rem);
    -webkit-text-stroke: 1px #111;
    text-shadow: 3px 3px 0 #111;
    max-width: 95%;
  }

  .cv-hero__scroll {
    display: none;
  }
}


/* Navbar de la portada: totalment transparent */
#siteHead[data-home="1"] {
  background: transparent !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}


#siteHead[data-home="1"] nav a,
#siteHead[data-home="1"] nav button {
  color: #111;
}


/* Identitat del club al navbar */
#siteHead[data-home="1"] nav > a:first-child {
  gap: 12px;
}

#siteHead[data-home="1"] nav > a:first-child img {
  width: 70px !important;
  height: 70px !important;
}

#siteHead[data-home="1"] nav > a:first-child span {
  color: #000 !important;
  font-size: 1.45rem;
  font-weight: 800;
}

/* Navbar de la portada: logo arran de l'esquerra */
#siteHead[data-home="1"] nav {
  max-width: none !important;
  width: 100%;
  margin-left: 40px;
  margin-right: 0px;
  padding-left: 12px;
  padding-right: 120px;
}

/* Amagar el nom del club al navbar en mòbils */
@media (max-width: 767px) {
  #siteHead[data-home="1"] nav > a:first-child span {
    display: none;
  }
}




/* Navbar compacte: menú hamburguesa en amplades intermèdies */
@media (min-width: 768px) and (max-width: 2200px) {
  #siteHead nav {
    padding-left: 12px !important;
    padding-right: 100px !important;
  }

  /* Amagar els enllaços d'escriptori */
  #siteHead nav > div.hidden.md\:flex {
    display: none !important;
  }

  /* Mostrar intranet i hamburguesa */
  #siteHead nav > div.md\:hidden {
    display: flex !important;
    align-items: center;
    gap: 16px;
  }

  /* Logo compacte */
  #siteHead nav > a:first-child img {
    width: 70px !important;
    height: 70px !important;
  }

  #siteHead nav > a:first-child span {
    display: none !important;
  }

  /* Botó hamburguesa */
  #siteHead #navBtn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #000 !important;
  }
}



/* Botó Intranet: identitat CV Cardassar */
#siteHead .x-access {
  background: #000 !important;
  color: #f3cb16 !important;
  border: 1px solid #f3cb16;
  font-weight: 800;
}

#siteHead .x-access:hover {
  background: #f3cb16 !important;
  color: #000 !important;
  filter: none;
}


/* Seccions integrades en el fons continu del hero */
.cv-section-divider {
  position: relative;
  background: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.16);
}

.cv-section-heading {
  position: relative;
  padding: 28px 0;
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.cv-section-heading::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  background: #f3cb16;
  margin: 0 auto 18px;
  transform: skewX(-35deg);
}


/* Fons continu de la portada */
body:has(#hero) main {
  position: relative;
  isolation: isolate;
}


html[data-sw="public"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("/assets/img/hero-bg.webp?v=2");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}


/* Les seccions de la portada deixen veure el fons comú */
html[data-sw="public"] main > section:not(#hero) {
  background-color: transparent !important;
}


/* Capçalera transparent a totes les pàgines públiques */
html[data-sw="public"] #siteHead {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-bottom: none !important;
}


/* ==================================================
   DISSENY GLOBAL CV CARDASSAR — WEB PÚBLICA
   Exclou la intranet
   ================================================== */

/* Capçalera transparent a totes les pàgines públiques */
html[data-sw="public"] #siteHead {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

/* Logo i identitat del club */
html[data-sw="public"] #siteHead nav > a:first-child {
  gap: 12px;
}

html[data-sw="public"] #siteHead nav > a:first-child img {
  width: 70px !important;
  height: 70px !important;
}

html[data-sw="public"] #siteHead nav > a:first-child span {
  color: #000 !important;
  font-size: 1.45rem;
  font-weight: 800;
}

/* Textos del navbar en negre */
html[data-sw="public"] #siteHead nav a,
html[data-sw="public"] #siteHead nav button {
  color: #111;
}

/* Logo arran de l'esquerra */
html[data-sw="public"] #siteHead nav {
  max-width: none !important;
  width: 100%;
  margin-left: 40px;
  margin-right: 0;
  padding-left: 12px;
  padding-right: 80px;
}

/* Botó Intranet: negre i groc */
html[data-sw="public"] #siteHead .x-access {
  background: #000 !important;
  color: #f3cb16 !important;
  border: 1px solid #f3cb16;
  font-weight: 800;
}

html[data-sw="public"] #siteHead .x-access:hover {
  background: #f3cb16 !important;
  color: #000 !important;
  filter: none;
}


/* Menú hamburguesa en mòbils i amplades intermèdies */
@media (max-width: 1150px) {
  html[data-sw="public"] #siteHead nav > div.hidden.md\:flex {
    display: none !important;
  }

  html[data-sw="public"] #siteHead nav > div.md\:hidden {
    display: flex !important;
    align-items: center;
    gap: 16px;
  }

  html[data-sw="public"] #siteHead nav > a:first-child span {
    display: none !important;
  }

  html[data-sw="public"] #siteHead nav {
    padding-left: 30px !important;
    padding-right: 50px !important;
    margin-left: 0 !important;
  }

  html[data-sw="public"] #siteHead nav > a:first-child img {
    width: 60px !important;
    height: 60px !important;
  }

  html[data-sw="public"] #siteHead #navBtn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #000 !important;
  }
}


/* Fons continu a totes les pàgines públiques */
html[data-sw="public"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("/assets/img/hero-bg.webp?v=2");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Fons transparents a les seccions públiques */
html[data-sw="public"] main > section {
  background-color: transparent !important;
}

/* Fons comú a totes les pàgines públiques */
html[data-sw="public"],
html[data-sw="public"] body {
  background: transparent !important;
}

html[data-sw="public"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("/assets/img/hero-bg.webp?v=2") center center / cover no-repeat;
  pointer-events: none;
}

/* El contingut públic deixa veure el fons comú */
html[data-sw="public"] main,
html[data-sw="public"] main > section,
html[data-sw="public"] main > section > div {
  background-color: transparent !important;
}

/* Capçalera transparent a totes les pàgines públiques */
html[data-sw="public"] #siteHead {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

/* Eliminar el fons negre de la capçalera de Notícies */
html[data-sw="public"] main > section:first-child {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* =========================================
   IDENTITAT VISUAL DELS TÍTOLS I SUBTÍTOLS
   CV CARDASSAR
   ========================================= */

html[data-sw="public"] {
  --cv-yellow: #f3cb16;
  --cv-black: #111111;
}

/* Títols principals de les pàgines */
html[data-sw="public"] main > section h1,
html[data-sw="public"] main > section:first-child h1 {
  color: var(--cv-black);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* Subtítols principals */
html[data-sw="public"] main > section h1 + p {
  color: var(--cv-black);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  font-weight: 500;
  max-width: 760px;
}

/* Títols dels apartats interiors */
html[data-sw="public"] main h2 {
  color: var(--cv-black);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Accent groc corporatiu sota els títols dels apartats */
html[data-sw="public"] main h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  margin-top: 14px;
  background: var(--cv-yellow);
  transform: skewX(-30deg);
}

/* Subtítols i textos introductoris dels apartats */
html[data-sw="public"] main h2 + p {
  color: #292929;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.65;
}

/* Títol del hero de la portada */
html[data-sw="public"] #hero h1 {
  color: #111111;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.055em;
}

/* Subtítol del hero */
html[data-sw="public"] #hero h1 + p {
  color: #111111;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.5;
  font-weight: 600;
}

/* ==========================================
   HERO I SUBSECCIONS: MÉS CONTRAST
   ========================================== */

/* Títols principals dels apartats */
html[data-sw="public"] main h1,
html[data-sw="public"] main h2 {
  color: #111 !important;
  font-weight: 900 !important;
}

/* Etiquetes i subtítols previs als títols */
html[data-sw="public"] main section .cv-section-heading > p,
html[data-sw="public"] main section .cv-section-heading > span {
  color: #111 !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
}

/* Títol de l'apartat de partits */
html[data-sw="public"] .cv-section-heading h2 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem) !important;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

/* Accent groc corporatiu */
html[data-sw="public"] .cv-section-heading::before {
  width: 64px;
  height: 5px;
  background: #f3cb16;
  margin-bottom: 20px;
}

/* Text descriptiu de les subseccions */
html[data-sw="public"] main section p {
  color: #222;
}

/* Hero de portada */
html[data-sw="public"] #hero h1 {
  color: #111 !important;
  font-weight: 900 !important;
}

html[data-sw="public"] #hero p {
  color: #111 !important;
  font-weight: 800 !important;
}

/* Títols principals de totes les pàgines públiques */
html[data-sw="public"] main > div > h1,
html[data-sw="public"] main > section h1 {
  color: #111 !important;
  font-size: clamp(2.8rem, 5vw, 4.5rem) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.04em !important;
  margin-bottom: 1.25rem !important;
}

/* Subtítol dels encapçalaments d'apartat */
html[data-sw="public"] .cv-section-heading > div > p {
  color: #f3cb16 !important;
  font-size: clamp(1rem, 1.4vw, 1.2rem) !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.12em !important;
}

/* Títol dels apartats */
html[data-sw="public"] .cv-section-heading h2 {
  color: #111 !important;
  font-size: clamp(2.5rem, 4.5vw, 3.8rem) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.04em !important;
}

/* HERO: eliminar línies divisòries entre apartats */
html[data-sw="public"] .cv-section-divider,
html[data-sw="public"] .cv-section-heading {
  border-top: none !important;
  border-bottom: none !important;
}

/* Evitar línies creades amb pseudoelements */
html[data-sw="public"] .cv-section-divider::before,
html[data-sw="public"] .cv-section-divider::after,
html[data-sw="public"] .cv-section-heading::after {
  border: none !important;
  box-shadow: none !important;
}

/* ==========================================
   AJUST GLOBAL DELS APARTATS DE LA PORTADA
   ========================================== */

/* Eliminar línies divisòries de les seccions */
html[data-sw="public"] body:has(#hero) main > section {
  border-top: none !important;
  border-bottom: none !important;
}

/* Eliminar línies dels encapçalaments */
html[data-sw="public"] body:has(#hero) .cv-section-divider,
html[data-sw="public"] body:has(#hero) .cv-section-heading {
  border: none !important;
}

/* Títols de tots els apartats de la portada */
html[data-sw="public"] body:has(#hero) main h1,
html[data-sw="public"] body:has(#hero) main h2 {
  color: #111111 !important;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.04em !important;
}

html[data-sw="public"] body:has(#hero) main h3 {
  color: #111111 !important;
  font-size: clamp(2.0rem, 3.5vw, 2.8rem) !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.04em !important;
}

/* Excepció: conservar el contrast de les targetes de partits */
html[data-sw="public"] body:has(#hero) main .match-card p,
html[data-sw="public"] body:has(#hero) main .match-card h2 {
  font-size: inherit !important;
}

/* Accent groc corporatiu als encapçalaments */
html[data-sw="public"] body:has(#hero) .cv-section-heading::before {
  background: #f3cb16 !important;
}

/* Alinear tots els encapçalaments públics a l'esquerra */
html[data-sw="public"] main h1,
html[data-sw="public"] main h2,
html[data-sw="public"] main h3,
html[data-sw="public"] main .cv-section-heading,
html[data-sw="public"] main .cv-section-heading > div,
html[data-sw="public"] main .cv-section-heading p {
  text-align: left !important;
}

/* Eliminar el fons negre de l'encapçalament "MÉS ENDAVANT" */
html[data-sw="public"] main .bg-black.text-white.py-6 {
  background: transparent !important;
  background-color: transparent !important;
  color: #111111 !important;
}

/* Accent groc de marca sota el títol */
html[data-sw="public"] main .bg-black.text-white.py-6 h2 {
  color: #111111 !important;
}

/* Targetes amb borde groc corporatiu */
html[data-sw="public"] main .rounded-xl,
html[data-sw="public"] main .rounded-2xl {
  border: 1px solid rgba(243, 203, 22, 0.75) !important;
  border-radius: 14px;
}

/* Borde groc corporatiu a les targetes de "MÉS ENDAVANT" */
html[data-sw="public"] main section:has(h2) + section {
  border-color: transparent;
}

html[data-sw="public"] main section .bg-white,
html[data-sw="public"] main section .bg-gray-100,
html[data-sw="public"] main section .bg-gray-50 {
  border: 1px solid rgba(243, 203, 22, 0.8) !important;
  border-radius: 12px !important;
}

/* ==========================================
   FOOTER — IDENTITAT VISUAL CV CARDASSAR
   ========================================== */

/* Contenidor principal del footer */
html[data-sw="public"] footer {
  background: transparent !important;
  background-color: transparent !important;
  color: #111111 !important;
  border-top: 1px solid rgba(243, 203, 22, 0.8) !important;
}

/* Textos del footer */
html[data-sw="public"] footer p,
html[data-sw="public"] footer li,
html[data-sw="public"] footer address {
  color: #333333 !important;
  line-height: 1.7;
}

/* Títols de les columnes */
html[data-sw="public"] footer h2,
html[data-sw="public"] footer h3,
html[data-sw="public"] footer h4 {
  color: #111111 !important;
  font-weight: 900 !important;
  font-size: 1rem;
}

/* Enllaços */
html[data-sw="public"] footer a {
  color: #222222 !important;
  transition: color 0.2s ease;
}

html[data-sw="public"] footer a:hover {
  color: #a88400 !important;
}

/* Identitat del club */
html[data-sw="public"] footer strong {
  color: #111111 !important;
  font-weight: 900;
}

/* Separador de la zona legal */
html[data-sw="public"] footer .border-t {
  border-color: rgba(0, 0, 0, 0.12) !important;
}

/* Text legal inferior */
html[data-sw="public"] footer small,
html[data-sw="public"] footer .text-xs {
  color: #555555 !important;
  font-size: 0.75rem;
}

/* Evitar fons negres heretats de classes Tailwind */
html[data-sw="public"] footer .bg-black,
html[data-sw="public"] footer .bg-neutral-950,
html[data-sw="public"] footer .bg-gray-950 {
  background: transparent !important;
  background-color: transparent !important;
}

/* ==========================================
   FOOTER — TIPOGRAFIA MÉS GRAN
   ========================================== */

/* Nom del club */
html[data-sw="public"] footer strong {
  font-size: 1.25rem !important;
  font-weight: 900 !important;
}

/* Títols de les columnes */
html[data-sw="public"] footer h2,
html[data-sw="public"] footer h3,
html[data-sw="public"] footer h4 {
  font-size: 1.45rem !important;
  font-weight: 900 !important;
  margin-bottom: 14px;
}

/* Descripció del club i informació de contacte */
html[data-sw="public"] footer p,
html[data-sw="public"] footer address {
  font-size: 0.95rem !important;
  line-height: 1.8 !important;
}

/* Enllaços de navegació */
html[data-sw="public"] footer li,
html[data-sw="public"] footer li a,
html[data-sw="public"] footer a {
  font-size: 0.95rem !important;
  line-height: 1.9 !important;
}

/* Peu legal */
html[data-sw="public"] footer small,
html[data-sw="public"] footer .text-xs {
  font-size: 0.8rem !important;
  line-height: 1.6 !important;
}

/* Adaptació a mòbils */
@media (max-width: 640px) {
  html[data-sw="public"] footer p,
  html[data-sw="public"] footer address,
  html[data-sw="public"] footer li,
  html[data-sw="public"] footer li a,
  html[data-sw="public"] footer a {
    font-size: 1rem !important;
  }
}

/* Footer: logo i identitat del club més grans */
html[data-sw="public"] footer img {
  width: 62px !important;
  height: 62px !important;
  object-fit: contain;
}

html[data-sw="public"] footer strong {
  font-size: 1.4rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
}

/* Una mica més d'espai entre el logo i el nom */
html[data-sw="public"] footer strong {
  line-height: 1.3;
}

/* Partits a casa: identitat corporativa CV Cardassar */
html[data-sw="public"] main span.bg-red-600 {
  background-color: #f3cb16 !important;
  color: #111111 !important;
}

html[data-sw="public"] .club-main-title {
  text-align: center !important;
}


@media (min-width: 764px) and (max-width: 1150px) {
  html[data-sw="public"] #siteHead {
    z-index: 9999 !important;
  }

  html[data-sw="public"] #siteHead nav > div.md\:hidden {
    position: relative;
    z-index: 10000;
  }

  html[data-sw="public"] #siteHead #navBtn {
    position: relative;
    z-index: 10001;
    pointer-events: auto !important;
    cursor: pointer;
  }
}

/* Correcció del menú desplegable en amplades intermèdies */
@media (max-width: 1150px) {
  html[data-sw="public"] #siteHead #navMob:not([hidden]) {
    display: block !important;
  }
}

/* Botó hamburguesa circular CV Cardassar */
html[data-sw="public"] #siteHead #navBtn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  background: #000 !important;
  color: #fff !important;
  border: 0px solid #f3cb16 !important;
  border-radius: 50% !important;
  font-size: 25px !important;
  line-height: 1 !important;
  cursor: pointer;
}

/* Navbar en scroll: vidre fosc a totes les pàgines públiques */
@media (min-width: 200px) {
  html[data-sw="public"] #siteHead.shadow-lg {
    background: rgb(255, 255, 255, 0.2) !important;
    border-bottom: 1px solid rgba(243, 203, 22, 0.25) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  }
}

/* Animació d'entrada del hero */
@keyframes cvHeroReveal {
  from {
    opacity: 0;
    translate: 0 24px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

#hero .cv-hero__players--large,
#hero .cv-hero__title,
#hero .cv-hero__players--standing {
  opacity: 0;
  animation: cvHeroReveal 0.8s ease-out forwards;
}

#hero .cv-hero__players--large {
  animation-delay: 0.2s;
}

#hero .cv-hero__title {
  animation-delay: 0.7s;
}

#hero .cv-hero__players--standing {
  animation-delay: 1.1s;
}

@media (prefers-reduced-motion: reduce) {
  #hero .cv-hero__players--large,
  #hero .cv-hero__title,
  #hero .cv-hero__players--standing {
    animation: none;
    opacity: 1;
    translate: none;
  }
}

/* Més aire entre el hero i la primera secció */
@media (min-width: 768px) {
  #hero.cv-hero {
    height: calc(85vh + 100px);
  }
}

/* Ajust del text del hero en pantalles baixes */
@media (min-width: 768px) and (max-height: 1050px) {
  #hero .cv-hero__title {
    width: 50%;
    max-width: 650px;
    top: 50%;
  }
}

@media (min-width: 768px) and (max-height: 900px) {
  #hero .cv-hero__title {
    width: 50%;
    max-width: 650px;
    top: 50%;
  }
}

@media (min-width: 768px) and (max-height: 650px) {
  #hero .cv-hero__title {
    width: 55%;
    max-width: 520px;
  }
}

/* Mostrar el menú hamburguesa quan s'obri */
@media (min-width: 768px) and (max-width: 2200px) {
  html[data-sw="public"] #siteHead #navMob:not([hidden]) {
    display: block !important;
  }
}

/* Capçalera d'equip: vertical en mòbil, horitzontal en escriptori */
@media (min-width: 768px) {
  main section > div > div.max-w-6xl {
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    gap: 24px !important;
  }

  main section > div > div.max-w-6xl > div {
    width: auto !important;
  }
}

/* Botó de notificacions a la capçalera de l'equip */
#cvpTeam + section [data-cvp-quick] {
  display: block;
  margin-top: 12px;
  position: static;
  transform: none;
  margin-bottom: 20px;
}

@media (max-width: 767px) {
  #cvpTeam + section [data-cvp-quick] {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1200px) {
  #cvpTeam + section .max-w-6xl {
    position: relative;
  }

  #cvpTeam + section [data-cvp-quick] {
    position: absolute;
    right: 0;
    top: 70%;
    transform: translateY(-50%);
    margin-top: 0;
  }
}



/* Sense borde corporatiu als logos de patrocinador de la capçalera */
#cvpTeam + section img {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

html[data-sw="public"] main > section h1 {
  font-size: clamp(2.3rem, 4vw, 3.8rem) !important;
}
/* newsletter band (footer): colours follow the footer of the current design */
.x-nl{border-top:1px solid rgba(127,127,127,.25)}
.x-nl-in{max-width:72rem;margin:0 auto;padding:2rem 1.5rem;display:grid;gap:1.25rem;align-items:center}
@media (min-width:768px){.x-nl-in{grid-template-columns:1fr 1.1fr}}
.x-nl h3{font-weight:700;font-size:1.15rem;margin:0 0 .35rem;color:inherit}
.x-nl p{color:inherit;opacity:.75;font-size:.9rem;margin:0;line-height:1.5}
.x-nl-row{display:flex;gap:.5rem;flex-wrap:wrap}
.x-nl-row input{flex:1 1 220px;min-width:0;border-radius:.75rem;border:1px solid rgba(127,127,127,.4);background:rgba(127,127,127,.12);color:inherit;padding:.7rem .9rem;font-size:1rem}
.x-nl-row input::placeholder{color:inherit;opacity:.55}
.x-nl-row button{border:0;border-radius:.75rem;background:var(--cardassar-yellow);color:#000;font-weight:700;padding:.7rem 1.2rem;cursor:pointer}
.x-nl-row button:disabled{opacity:.6}
.x-nl-chk{display:flex;align-items:center;gap:.5rem;margin-top:.6rem;font-size:.82rem;opacity:.8}
.x-nl-chk a{text-decoration:underline}
.x-nl-chk input{width:16px;height:16px;accent-color:var(--cardassar-yellow)}
.x-nl .x-nl-msg{margin-top:.6rem;opacity:1;font-weight:600}
.x-nl .x-nl-msg.bad{color:#e5484d}

/* Portada per línies (editor de la web): fins a 4 imatges de dalt a baix; les de fons transparent es posen una mica per sobre de la de dalt */
.cv-hero.cv-hero--lines{height:auto!important;min-height:0!important;max-height:none!important}
.cv-hero__stack{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;width:min(100%,1200px,80vh);margin:0 auto;padding:clamp(96px,13vh,140px) 16px clamp(56px,8vh,90px)}
.cv-hero__h1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0}
.cv-hero__line{--ww:var(--w);position:relative;display:block;width:calc(var(--ww) * 1%);max-width:100%;height:auto;margin-top:calc((min(100vw, 1200px, 80vh) - 32px) * var(--ww) / 100 * var(--r) * var(--ov) * -1);pointer-events:none}
.cv-hero__line:first-of-type{margin-top:0}
@media (max-width:640px){.cv-hero__line{--ww:max(var(--w), 92)}}
