.ce-main {
  padding: 30px 36px 60px;
  max-width: 1700px;
  margin: 0 auto;
}

.ce-top-title {
  font-weight: 650;
  color: #263548;
}

.ce-home {
  margin-left: auto;
  color: #526477;
  text-decoration: none;
  font-size: 13px;
}

.ce-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 25px;
}

.ce-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: #528b91;
  margin-bottom: 9px;
}

.ce-hero h1 {
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -1.1px;
  margin: 0 0 10px;
  color: #263548;
}

.ce-hero p {
  color: #738092;
  margin: 0;
  font-size: 14px;
}

.ce-hero-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: #e9f2f2;
  color: #528b91;
  display: grid;
  place-items: center;
  font-size: 28px;
}

.ce-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.ce-stat, .ce-panel {
  background: #fff;
  border: 1px solid #e5eaef;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(30, 50, 70, .035);
}

.ce-stat {
  padding: 21px 24px;
}

.ce-stat span {
  display: block;
  font-size: 12px;
  color: #7a8796;
  margin-bottom: 9px;
}

.ce-stat strong {
  font-size: 27px;
  color: #29394c;
  letter-spacing: -.6px;
}

.ce-panel {
  padding: 26px;
  margin-bottom: 22px;
}

.ce-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}

.ce-panel-heading h2 {
  margin: 0;
  font-size: 21px;
  color: #29394c;
}

.ce-panel-heading p {
  margin: 7px 0 0;
  font-size: 13px;
  color: #8290a0;
}

.ce-reset {
  background: #f3f6f8;
  border: 1px solid #e4e9ee;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  color: #526477;
}

.ce-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f7f9fb;
  border: 1px solid #e2e8ee;
  border-radius: 10px;
  padding: 0 15px;
  margin-bottom: 18px;
  color: #8493a1;
}

.ce-search input {
  width: 100%;
  padding: 15px 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: #29394c;
}

.ce-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.ce-filter-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  color: #526477;
}

.ce-filter-grid select {
  width: 100%;
  padding: 12px;
  background: #f7f9fb;
  border: 1px solid #e2e8ee;
  border-radius: 8px;
  color: #29394c;
}

.ce-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.ce-quick-filters button {
  border: 1px solid #dce7e9;
  background: #f0f7f7;
  color: #477d83;
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 12px;
  cursor: pointer;
}

.ce-table-wrap {
  overflow-x: auto;
}

.ce-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.ce-table th {
  padding: 14px 13px;
  background: #f7f9fb;
  color: #738092;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.ce-table td {
  padding: 16px 13px;
  border-bottom: 1px solid #edf0f3;
  font-size: 13px;
  color: #526477;
}

.ce-council-name {
  font-weight: 700;
  color: #29394c;
}

.ce-council-sub {
  display: block;
  color: #9aa5b0;
  font-size: 11px;
  margin-top: 4px;
}

.ce-party {
  display: inline-block;
  padding: 6px 9px;
  background: #f0f3f6;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
}

.ce-score {
  font-size: 15px;
  font-weight: 750;
  color: #29394c;
}

.ce-view {
  color: #528b91;
  font-weight: 700;
  text-decoration: none;
}

.ce-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  color: #8290a0;
  font-size: 12px;
}

.ce-pagination button {
  padding: 9px 15px;
  border: 1px solid #dce4eb;
  background: #fff;
  border-radius: 7px;
  cursor: pointer;
  margin-left: 7px;
}

.ce-pagination button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.ce-methodology {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #7c8998;
  font-size: 12px;
  line-height: 1.7;
  padding: 5px 8px;
}

.ce-methodology p {
  margin: 0;
}

@media(max-width: 1050px) {
  .ce-filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 650px) {
  .ce-main {
    padding: 20px 15px;
  }

  .ce-stats {
    grid-template-columns: 1fr;
  }

  .ce-filter-grid {
    grid-template-columns: 1fr;
  }

  .ce-panel {
    padding: 18px;
  }

  .ce-hero-icon {
    display: none;
  }
}


/* STEP 47K — POLITICAL AND FINANCIAL INDICATORS */

.ce-party {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 340px;
  line-height: 1.45;
}

.ce-party-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  display: inline-block;
}

.ce-financial {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ce-score small {
  font-size: 11px;
  font-weight: 500;
  color: #9aa5b0;
}

.ce-financial-band {
  font-size: 11px;
  color: #738092;
}

.ce-financial-confidence {
  font-size: 10px;
  color: #9aa5b0;
}

.ce-table tbody tr:hover {
  background: #fafcfd;
}

.ce-view:hover {
  text-decoration: underline;
}



/* STEP 47O — COUNCIL TYPE FILTER */

.ce-filter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media(max-width: 1050px) {
  .ce-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width: 650px) {
  .ce-filter-grid {
    grid-template-columns: 1fr;
  }
}


/* STEP 47P.2 — FINANCIAL SCORE RANGE */

.ce-filter-grid input[type="number"] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid #dce3e8;
  border-radius: 8px;
  background: #fff;
  color: #263445;
  font: inherit;
}

.ce-filter-grid input[type="number"]:focus {
  outline: 2px solid rgba(73, 131, 131, 0.18);
  border-color: #498383;
}



/* STEP 47R — FINANCIAL HEALTH OVERVIEW */

.ce-health-overview {
  margin-bottom: 24px;
}

.ce-health-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 24px;
}

.ce-health-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: #f7f9fa;
  border: 1px solid #e8edf0;
  border-radius: 10px;
}

.ce-health-stat > span {
  color: #718092;
  font-size: 12px;
  font-weight: 500;
}

.ce-health-stat strong {
  color: #263445;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.ce-health-stat small {
  color: #9aa5b0;
  font-size: 11px;
}

.ce-health-distribution {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 17px;
}

.ce-health-band {
  min-width: 0;
}

.ce-health-band-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: #536477;
  font-size: 12px;
}

.ce-health-band-heading strong {
  color: #263445;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ce-health-track {
  height: 7px;
  overflow: hidden;
  background: #edf1f3;
  border-radius: 10px;
}

.ce-health-fill {
  height: 100%;
  border-radius: inherit;
  transition: width .3s ease;
}

.ce-health-significant { background: #d47777; }
.ce-health-pressure { background: #dfa65d; }
.ce-health-mixed { background: #b7ad6a; }
.ce-health-good { background: #71aaa3; }
.ce-health-strong { background: #498383; }

.ce-health-footnote {
  margin: 20px 0 0;
  color: #8b98a5;
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .ce-health-stats {
    grid-template-columns: 1fr;
  }

  .ce-health-distribution {
    grid-template-columns: 1fr;
  }
}



/* STEP 47S.4B — POLITICAL & FINANCIAL COMPARISON */

.ce-political-comparison {
  margin-bottom: 24px;
}

.ce-political-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 26px;
}

.ce-political-summary > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: #f7f9fa;
  border: 1px solid #e8edf0;
  border-radius: 10px;
}

.ce-political-summary span,
.ce-political-summary small {
  color: #718092;
  font-size: 12px;
}

.ce-political-summary strong {
  color: #263445;
  font-size: 28px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.ce-political-heading-row,
.ce-political-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr)
                         minmax(220px, 2.2fr)
                         minmax(105px, .8fr);
  gap: 24px;
  align-items: center;
}

.ce-political-heading-row {
  padding: 0 12px 12px;
  color: #8b98a5;
  font-size: 11px;
  font-weight: 600;
  border-bottom: 1px solid #e8edf0;
}

.ce-political-heading-row span:last-child {
  text-align: right;
}

.ce-political-row {
  padding: 16px 12px;
  border-bottom: 1px solid #edf1f3;
}

.ce-political-row:last-child {
  border-bottom: 0;
}

.ce-political-name,
.ce-political-pressure {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ce-political-name strong {
  color: #263445;
  font-size: 13px;
  font-weight: 600;
}

.ce-political-name small,
.ce-political-pressure small {
  color: #93a0ad;
  font-size: 11px;
}

.ce-political-score-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 9px;
}

.ce-political-score-value strong {
  color: #263445;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.ce-political-score-value span {
  color: #a0abb5;
  font-size: 11px;
}

.ce-political-track {
  position: relative;
  height: 9px;
  background: #edf1f3;
  border-radius: 8px;
}

.ce-political-fill {
  height: 100%;
  border-radius: inherit;
  transition: width .3s ease;
}

.ce-political-benchmark-marker {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 2px;
  background: #263445;
  transform: translateX(-50%);
  box-shadow: 0 0 0 2px #fff;
}

.ce-political-pressure {
  align-items: flex-end;
  text-align: right;
}

.ce-political-pressure strong {
  color: #536477;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.ce-political-footnote {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid #edf1f3;
  color: #8b98a5;
  font-size: 11px;
  line-height: 1.7;
}

.ce-political-loading {
  padding: 20px 12px;
  color: #8b98a5;
  font-size: 13px;
}

@media (max-width: 760px) {
  .ce-political-summary {
    grid-template-columns: 1fr;
  }

  .ce-political-heading-row {
    display: none;
  }

  .ce-political-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ce-political-pressure {
    align-items: flex-start;
    text-align: left;
  }
}
