
	h1.page-title{display:none;}
      .table-sm th{font-size:0.9em;}
      .table-sm td{font-size:0.9em;}
      .ttable-sm td, .table th {vertical-align: middle !important;}
	  
	  html { scroll-behavior: smooth; }
:root {
  --pink:   #cf027f;
  --blue:   #0092ce;
  --gold:   #fbba00;
  --dark:   #111318;
  --mid:    #3a3d47;
  --muted:  #6b7280;
  --light:  #f5f6f8;
  --border: #e2e5ea;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(0,0,0,.08);
  --red:    #A21E2F;
  --red-lt: #f8eff1;
}

.modal-backdrop {
    z-index: 9999;
}
.modal {
    z-index: 10000;
}
.modal-body{
text-align: justify;
}
/* ── HERO ── */
.gc-hero {
  background: #0d1117 url('https://www.cass.ad/sites/default/files/2026-05/AF_CASS_1920X450_vota.jpg') center/cover no-repeat;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
.gc-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.6));
}
.gc-hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 1140px;
  margin: 0 auto;
  padding: 32px 24px 28px;
  text-align: center;
}
.gc-hero-inner h1 {
  font-weight: 700;
  font-size: clamp(22px, 3.5vw, 40px);
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.2;
}
.gc-hero-inner p {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin: 0;
}
/* ── SUBNAV — exact from original el-subnav ── */
.gc-subnav {
  position: sticky; top: 0; z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.gc-subnav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 4px; overflow-x: auto;
  scrollbar-width: none;
}
.gc-subnav-inner::-webkit-scrollbar { display: none; }
.gc-subnav-inner a {
  font-size: 13px; font-weight: 500;
  color: var(--muted); text-decoration: none;
  padding: 14px 16px; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  display: inline-block;
}
.gc-subnav-inner a:hover { color: var(--dark); text-decoration: none; }
.gc-subnav-inner a.spy-active { color: var(--red); border-bottom-color: var(--red); }
/* ── LAYOUT ── */
.gc-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px 80px; }
.gc-section { margin-top: 72px; scroll-margin-top: 100px; }
.gc-sec-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px; padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.gc-sec-head h2 { font-size: 20px; font-weight: 700; color: var(--dark); margin: 0; }
.gc-sec-head i { color: var(--red); font-size: 18px; width: 22px; text-align: center; }
.gc-subsec-head{font-weight:600; margin-bottom:15px;}
/* ── KPI ROW ── */
.gc-kpi-row {
  display: flex; flex-wrap: wrap;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 30px;
  margin-top:60px;
}
.gc-kpi-item {
  flex: 1; min-width: 0;
  padding: 20px 18px;
  text-align: center;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.gc-kpi-item:last-child { border-right: none; }
    .gc-kpi-row { overflow: hidden; }
    .gc-vots-block { overflow: hidden; }
    .gc-part-block { overflow: hidden; }
.gc-kpi-icon { font-size: 26px; color: var(--mid); display: block; }
.gc-kpi-label { font-size: 12px; font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: .04em; display: block; }
.gc-kpi-val { font-size: 18px; font-weight: 700; color: var(--dark); display: block; }
/* ── PARTICIPACIÓ BLOCK ── */
.gc-part-block {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
.gc-part-main {
  display: grid;
  grid-template-columns: 110px 1fr 280px;
}
@media(max-width: 900px) {
  .gc-part-main { grid-template-columns: 1fr; }
  .gc-part-chart-col { border-left: none; border-top: 1px solid var(--border); }
}
.gc-part-icon-col {
  padding: 24px 16px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  border-right: 1px solid var(--border);
}
.gc-part-icon {
  width: 64px; height: 64px;
  background: var(--red-lt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--red);
}
.gc-part-icon-label { font-size: 12px; font-weight: 600; color: var(--red); text-align: center; }
.gc-part-table-col { overflow-x: auto; }
.gc-part-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.gc-part-table th {
  font-size: 12px; font-weight: 600; color: var(--red);
  padding: 12px 16px 6px; text-align: left;
}
.gc-part-table td {
  font-size: 13px; font-weight: 600; color: var(--dark);
  padding: 6px 16px 12px; background: var(--light);
}
.gc-part-table td small { font-weight: 400; color: var(--muted); font-size: 12px; }
.gc-part-table .col-sep { border-left: 1px solid var(--border); }
.gc-part-chart-col { border-left: 1px solid var(--border); padding: 14px 16px; }
.gc-chart-title { font-size: 12px; font-weight: 700; color: var(--red); margin-bottom: 2px; }
.gc-chart-subtitle { font-size: 10px; color: var(--muted); margin-bottom: 8px; }
/* ── VOTS BLOCK ── */
.gc-vots-block {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  display: flex; flex-wrap: wrap;
  overflow: hidden;
}
.gc-vots-icon-col {
  padding: 20px 16px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  border-right: 1px solid var(--border); min-width: 110px;
}
.gc-vots-item { flex: 1; min-width: 0; padding: 20px 18px; border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; }
.gc-vots-item:last-child { border-right: none; }
.gc-vots-label { font-size: 11px; font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 2px; }
.gc-vots-val { font-size: 20px; font-weight: 700; color: var(--dark); display: block; }
.gc-vots-pct { font-size: 11px; color: var(--muted); display: block; }
/* ── DONUT GRID ── */
.gc-donut-grid { display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:32px; }
@media(max-width:700px){ .gc-donut-grid { grid-template-columns:repeat(2,1fr); } }
.gc-donut-card { background:#fff;border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);text-align:center; }
.gc-donut-card h5 { font-size:13px;font-weight:700;color:var(--dark);margin-bottom:12px;line-height:1.3; margin-top:12px; }
.gc-donut-canvas { max-width:130px;height:130px;margin:0 auto;position:relative; }
.gc-donut-stats { display:flex;justify-content:center;gap:12px;margin-top:12px;flex-wrap:wrap; }
.gc-ds { text-align:center; }
.gc-ds .dv { font-size:14px;font-weight:700;display:block; }
.gc-ds .dl { font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em; }
/* ── MODALITAT PANES ── */
.modalitat-pane { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }
/* ── HOURLY TABLE — exact from original el-hour-card ── */
.gc-hour-wrap {
  background: #fff; border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  overflow-x: auto; margin-bottom: 32px;
}
.gc-hour-wrap h4 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.gc-htable { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 600px; }
.gc-htable th {
  font-size: 12px; font-weight: 600; letter-spacing: .03em;
  padding: 8px 10px; border-bottom: 2px solid var(--border);
  text-align: center; color: #fff;
}
.gc-htable td {
  font-size:14px;padding: 6px 10px; border-bottom: 1px solid var(--border);
  text-align: center; font-variant-numeric: tabular-nums;
}
.gc-htable tr.total-row td { font-weight: 700; background: var(--light); }
/* ── RESULTATS TABS ── */
.gc-res-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.gc-res-tab {text-align: left;
  font-size: 12px; font-weight: 600;
  padding: 8px 16px; border-radius: 8px; cursor: pointer;
  border: 2px solid var(--border); background: #fff; color: var(--muted);
  transition: all .2s; box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.gc-res-tab:hover { color: var(--dark); border-color: #ccc; }
.gc-res-tab.active { background: rgba(193,0,31,.07); border-color: var(--red); color: var(--red); }
.gc-res-tab.active-pink { background: rgba(207,2,127,.07); border-color: var(--pink); color: var(--pink); }
.gc-res-tab.active-blue { background: rgba(0,146,206,.07); border-color: var(--blue); color: var(--blue); }
.gc-res-tab.active-gold { background: rgba(251,186,0,.1); border-color: var(--gold); color: #9a7000; }
.gc-res-pane { display: none; }
.gc-res-pane.visible { display: block; }
/* ── RESULT GRID — exact from original el-result-grid / el-card2 ── */
.gc-res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media(max-width: 640px) { .gc-res-grid { grid-template-columns: 1fr; } }
.gc-box {
  background: #fff; border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.gc-box h4 { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.gc-kpis-inline { display: flex; gap: 20px; margin-bottom: 18px; }
.gc-ki { display: flex; flex-direction: column; }
.gc-ki .kv { font-size: 20px; font-weight: 700; color: var(--dark); }
.gc-ki .kl { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.gc-chart-h { height: 180px; position: relative; }
.gc-chart-h-tall { height: 290px; position: relative; }
/* Result tables — exact from original el-card2 table */
.gc-box table { width: 100%; border-collapse: collapse; font-size: 12px; }
.gc-box thead tr { background: var(--light); }
.gc-box th { padding: 7px 10px; font-weight: 600; font-size: 12px; color: var(--mid); border-bottom: 2px solid var(--border); text-align: left; }
.gc-box td { padding: 7px 10px; border-bottom: 1px solid var(--border); }
.gc-box tr:last-child td { border-bottom: none; }
.gc-box td.tc, .gc-box th.tc { text-align: center; }
.gc-box .win td { font-weight: 600; }
.win-badge {
  display: inline-flex; align-items: center;
  background: #f0fdf4; color: #16a34a; font-size: 9px; font-weight: 700;
  letter-spacing: .04em; padding: 2px 7px; border-radius: 20px;
  border: 1px solid #bbf7d0; text-transform: uppercase;
  vertical-align: middle; margin-left: 4px;
}
/* dl link */
.gc-dl {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; color: var(--blue);
  text-decoration: none; margin-bottom: 14px;
}
.gc-dl:hover { text-decoration: underline; }
.gc-dl::before { content: '↓'; font-weight: 700; }
/* ── CANDIDATURES — exact from original el-cand-card ── */
.gc-cand-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.gc-cand-pane { display: none; }
.gc-cand-pane.visible { display: block; }
.gc-cand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.gc-cand-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  text-align:center;
}
.gc-cand-card:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,0,0,.11); }
.gc-cand-card .ci { aspect-ratio: 4/3; overflow: hidden; background: var(--light); }
.gc-cand-card .ci img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gc-cand-card .cb { padding: 12px 12px 10px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.gc-cand-card .cn { font-size: 12px; font-weight: 400; color: var(--dark); line-height: 1.4; }
.gc-cand-card .cs { font-size: 12px; color: var(--dark); margin-top: 3px; font-weight: 400; }
.gc-cand-card .cfe {
  border: none; margin-top: 10px; display: inline-block;
  font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 0; cursor: pointer; background: none;
}
.gc-cand-card .cfe:hover { text-decoration: underline; }
#cand-pensionistes .gc-cand-card .cfe { background: rgba(207,2,127,.09); color: var(--pink); }
#cand-assalariats  .gc-cand-card .cfe { background: rgba(0,146,206,.09);  color: var(--blue); }
#cand-empresaris   .gc-cand-card .cfe { background: rgba(251,186,0,.13);  color: #9a7000; }
/* ── ELECTES — exact from original el-card ── */
.gc-elegits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.gc-elegit-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  text-align:center;
}
.gc-elegit-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.gc-elegit-card .ec-stripe { height: 4px; }
.gc-elegit-card .ec-stripe.s-pink { background: var(--pink); }
.gc-elegit-card .ec-stripe.s-blue { background: var(--blue); }
.gc-elegit-card .ec-stripe.s-gold { background: var(--gold); }
.gc-elegit-card .ec-img { padding: 20px 20px 12px; text-align: center; }
.gc-elegit-card .ec-img img {
  width: 84px; height: 84px; object-fit: cover;
  border-radius: 50%; border: 3px solid var(--border);
}
.gc-elegit-card .ec-body { padding: 0 18px 18px; text-align: center; }
.gc-elegit-card .ec-col {
  display: inline-block; font-size: 9px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px;
}
.gc-elegit-card .ec-col.cp { background: rgba(207,2,127,.09); color: var(--pink); }
.gc-elegit-card .ec-col.ca { background: rgba(0,146,206,.09); color: var(--blue); }
.gc-elegit-card .ec-col.ce { background: rgba(251,186,0,.13); color: #9a7000; }
.gc-elegit-card h3 { font-size: 13px; font-weight: 700; color: var(--dark); line-height: 1.35; margin: 0 0 4px; text-align: center !important; }
.gc-elegit-card .ec-suplent { line-height:1.3em; font-size: 12px; color: var(--muted); }
/* ── BACK TO TOP ── */
#gcTop {
  position: fixed; bottom: 24px; right: 24px;
  width: 38px; height: 38px;
  background: var(--dark); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 15px;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  opacity: 0; transition: opacity .3s; z-index: 50;
}
#gcTop.show { opacity: 1; }
#gcTop:hover { background: var(--blue); text-decoration: none; }
.main h2::after { display: none !important; }


/* Responsive */
.gc-kpi-row .gc-vots-icon-col {
  flex: 0 0 110px;
}

.gc-kpi-row .gc-kpi-item {
  flex: 1 1 0;
}

/* Tablet */
@media (max-width: 900px) {
  .gc-kpi-row .gc-vots-icon-col {
    flex: 0 0 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 18px 16px;
  }

  .gc-kpi-row .gc-kpi-item {
    flex: 0 0 50%;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .gc-kpi-row .gc-kpi-item:nth-child(3),
  .gc-kpi-row .gc-kpi-item:nth-child(5) {
    border-right: none;
  }

  .gc-kpi-row .gc-kpi-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

/* Móvil */
@media (max-width: 560px) {
  .gc-kpi-row {
    margin-top: 35px;
  }

  .gc-kpi-row .gc-kpi-item {
    flex: 0 0 100%;
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    padding: 18px 14px;
  }

  .gc-kpi-row .gc-kpi-item:last-child {
    border-bottom: none;
  }

  .gc-kpi-val {
    font-size: 17px;
  }

  .gc-kpi-label {
    font-size: 11px;
  }

  .gc-kpi-row i {
    font-size: 28px !important;
  }

  .gc-part-icon {
    width: 56px;
    height: 56px;
  }
}