:root {
  --gm-bg: #f8fafc;
  --gm-surface: #ffffff;
  --gm-surface-alt: #f1f5f9;
  --gm-surface-soft: #f8fafc;
  --gm-text: #0f172a;
  --gm-text-soft: #475569;
  --gm-text-muted: #64748b;
  --gm-border: #e2e8f0;
  --gm-border-strong: #cbd5e1;
  --gm-red: #c92a2a;
  --gm-red-dark: #a61f1f;
  --gm-red-soft: rgba(201, 42, 42, 0.08);
  --gm-green: #15803d;
  --gm-green-soft: rgba(21, 128, 61, 0.10);
  --gm-amber: #a16207;
  --gm-amber-soft: rgba(161, 98, 7, 0.10);
  --gm-orange: #c2410c;
  --gm-orange-soft: rgba(194, 65, 12, 0.10);
  --gm-deep-red: #991b1b;
  --gm-deep-red-soft: rgba(153, 27, 27, 0.10);
  --gm-footer: #081733;
  --gm-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --gm-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --gm-shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.08);
  --gm-radius-xs: 10px;
  --gm-radius-sm: 14px;
  --gm-radius: 20px;
  --gm-radius-lg: 24px;
  --gm-container: 1200px;
  --gm-transition: all 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--gm-bg);
  color: var(--gm-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-wrap {
  min-height: 100vh;
}

.gm-container {
  width: min(var(--gm-container), calc(100% - 40px));
  margin: 0 auto;
}

/* Shared type */
.gm-eyebrow,
.gm-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gm-red);
}

.gm-section h2,
.gm-home-cta h2,
.gm-page-hero h1,
.gm-scores-toolbar h2,
.gm-candidate-hero h1,
.gm-footer-brand h3 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--gm-text);
}

.gm-section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.gm-section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.02;
  margin-bottom: 10px;
}

.gm-section-head p:last-child {
  margin: 0;
  font-size: 18px;
  color: var(--gm-text-soft);
}

/* Header */
.gm-site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.gm-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between; /* ðŸ‘ˆ THIS is key */
  gap: 16px;
  min-height: 84px;
}

.gm-logo-link {
  display: inline-flex;
  align-items: center;
}

.gm-logo {
  height: 48px;
  width: auto;
}

.gm-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.gm-nav a {
  font-size: 15px;
  font-weight: 700;
  color: var(--gm-text-soft);
  transition: var(--gm-transition);
}

.gm-nav-btn {
    color: #fff !important;
}

.gm-nav a:hover {
  color: var(--gm-text);
}

/* Buttons */
.gm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: var(--gm-transition);
  cursor: pointer;
}

.gm-btn-primary {
  background: var(--gm-red);
  color: #fff;
  border-color: var(--gm-red);
  box-shadow: var(--gm-shadow-sm);
}

.gm-btn-primary:hover {
  background: var(--gm-red-dark);
  border-color: var(--gm-red-dark);
}

.gm-btn-secondary {
  background: #fff;
  color: var(--gm-text);
  border-color: var(--gm-border);
}

.gm-btn-secondary:hover {
  background: var(--gm-surface-soft);
  border-color: var(--gm-border-strong);
}

.gm-btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 10px;
}

.gm-text-link {
  color: var(--gm-text);
  font-weight: 700;
  transition: var(--gm-transition);
}

.gm-text-link:hover {
  color: var(--gm-red);
}

/* Shared cards */
.gm-card,
.gm-hero-copy,
.gm-hero-panel,
.gm-pillar-card,
.gm-candidate-card,
.gm-info-block,
.gm-table-card,
.gm-candidate-main-card,
.gm-candidate-score-card,
.gm-breakdown-card,
.gm-breakdown-side-card,
.gm-method-note-card {
  background: var(--gm-surface);
  border: 1px solid var(--gm-border);
  border-radius: var(--gm-radius);
  box-shadow: var(--gm-shadow-sm);
}

/* Home hero */
.gm-hero {
  padding: 56px 0 42px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.gm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 380px;
  gap: 28px;
  align-items: stretch;
}

.gm-hero-copy {
  padding: 42px;
}

.gm-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: var(--gm-text);
  max-width: 20ch;
}

.gm-subhead {
  margin: 0;
  max-width: 700px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--gm-text-soft);
}

.gm-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.gm-hero-panel {
  padding: 16px;
}

.gm-score-preview-card {
  width: 100%;
  height: 100%;
  padding: 26px;
  background: #fff;
  border-radius: 18px;
  box-shadow: none;
}

.gm-score-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.gm-score-preview-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--gm-text-soft);
}

.gm-score-preview-card h3 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gm-text);
}

.gm-score-preview-card p {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--gm-text-soft);
}

.gm-preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gm-preview-list li {
  padding: 12px 0;
  border-top: 1px solid var(--gm-border);
  font-size: 15px;
  font-weight: 600;
  color: var(--gm-text);
}

.gm-preview-list li:first-child {
  border-top: none;
  padding-top: 0;
}

/* Home sections */
.gm-section {
  padding: 54px 0;
}

.gm-section-alt {
  background: transparent;
}

.gm-pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.gm-pillar-card {
  padding: 24px;
  background: #fff;
}

.gm-pillar-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gm-text);
}

.gm-pillar-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--gm-text-soft);
}

.gm-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gm-section-head-inline {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.gm-candidate-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gm-candidate-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gm-candidate-photo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
   object-position: top center; /* Ã°Å¸â€˜Ë† KEY FIX */
  border: 1px solid var(--gm-border);
  flex-shrink: 0;
}

.gm-candidate-head h3 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gm-candidate-head h3 a:hover {
  color: var(--gm-red);
}

.gm-candidate-head p {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--gm-text-soft);
}

.gm-party-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--gm-surface-alt);
  color: var(--gm-text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gm-candidate-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gm-candidate-meta .gm-rating-strong,
.gm-candidate-meta .gm-rating-supportive,
.gm-candidate-meta .gm-rating-mixed,
.gm-candidate-meta .gm-rating-concerning,
.gm-candidate-meta .gm-rating-opposes {
    display: inline-block;
}

.gm-meta-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gm-text-muted);
}

.gm-score-number {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  color: var(--gm-green);
}

.gm-rating-strong {
  color: var(--gm-green);
}

.gm-rating-mixed {
  color: var(--gm-amber);
}

.gm-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.gm-info-block {
  padding: 28px;
}

.gm-info-block h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.05;
}

.gm-info-block p:last-of-type {
  margin-bottom: 0;
  font-size: 17px;
  color: var(--gm-text-soft);
  line-height: 1.75;
}

.gm-home-cta {
  padding: 0 0 64px;
}

.gm-home-cta-inner {
  background: var(--gm-footer);
  color: #fff;
  border-radius: 22px;
  padding: 34px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: var(--gm-shadow);
}

.gm-home-cta-inner .gm-kicker {
  color: rgba(255, 255, 255, 0.66);
}

.gm-home-cta-inner h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.02;
  color: #fff;
}

.gm-home-cta-inner p {
  margin: 0;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.76);
}

/* Score styles shared */
.gm-score-badge,
.gm-score-card-number,
.gm-score-pill,
.gm-breakdown-points,
.gm-side-score {
  font-weight: 800;
}

.gm-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  height: 66px;
  padding: 0 16px;
  border-radius: 18px;
  font-size: 24px;
  line-height: 1;
}

.gm-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
}

.gm-score-strong {
  background: var(--gm-green-soft);
  color: var(--gm-green);
}

.gm-score-supportive {
  background: rgba(22, 163, 74, 0.08);
  color: #166534;
}

.gm-score-mixed {
  background: var(--gm-amber-soft);
  color: var(--gm-amber);
}

.gm-score-concerning {
  background: var(--gm-orange-soft);
  color: var(--gm-orange);
}

.gm-score-opposes {
  background: var(--gm-deep-red-soft);
  color: var(--gm-deep-red);
}

/* Scores page */
.gm-page-hero {
  padding: 54px 0 34px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--gm-border);
}

.gm-page-hero-inner {
  text-align: center;
  max-width: 900px;
}

.gm-page-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.98;
}

.gm-page-subhead {
  margin: 0 auto;
  max-width: 760px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--gm-text-soft);
}

.gm-scores-section {
  padding: 40px 0 64px;
}

.gm-scores-toolbar {
  margin-bottom: 18px;
}

.gm-scores-toolbar h2 {
  margin-bottom: 6px;
  font-size: 34px;
  line-height: 1.05;
}

.gm-scores-toolbar p {
  margin: 0;
  font-size: 17px;
  color: var(--gm-text-soft);
}

.gm-table-card {
  overflow: hidden;
}

.gm-table-wrap {
  padding: 14px 18px 18px;
}

table.gm-scores-table.dataTable,
table.gm-scores-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin-top: 0 !important;
}

/* Align table headers with content */
.gm-scores-table th {
  text-align: left;
}

/* Optional: keep rating + button centered */
.gm-scores-table th:nth-child(4),
.gm-scores-table td:nth-child(4),
.gm-scores-table th:nth-child(5),
.gm-scores-table td:nth-child(5) {
  text-align: center;
}

table.gm-scores-table thead th {
  padding: 18px 14px !important;
  background: #fff;
  border-bottom: 1px solid var(--gm-border) !important;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gm-text-muted);
}

table.gm-scores-table tbody td {
  padding: 18px 14px !important;
  background: #fff;
  border-bottom: 1px solid var(--gm-border) !important;
  vertical-align: middle;
}

table.gm-scores-table tbody tr:last-child td {
  border-bottom: none !important;
}

table.gm-scores-table tbody tr:hover td {
  background: #fbfdff;
}

.gm-candidate-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.gm-candidate-copy {
  min-width: 0;
}

.gm-candidate-name {
  font-size: 19px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gm-text);
}

.gm-candidate-party {
  margin-top: 4px;
  font-size: 14px;
  color: var(--gm-text-soft);
}

.gm-office-cell,
.gm-district-cell {
  font-size: 15px;
  color: var(--gm-text);
}

.gm-rating-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--gm-text);
  white-space: nowrap;
}

/* DataTables controls */
.dataTables_wrapper {
  padding-top: 8px;
}

.dataTables_wrapper .dataTables_filter {
  margin-bottom: 18px;
}

.dataTables_wrapper .dataTables_filter label {
  width: 100%;
  font-size: 0;
}

.dataTables_wrapper .dataTables_filter input {
  width: min(100%, 360px);
  height: 46px;
  margin-left: 0 !important;
  padding: 0 16px;
  border: 1px solid var(--gm-border);
  border-radius: 12px;
  background: #fff;
  color: var(--gm-text);
  font-size: 15px;
  outline: none;
  box-shadow: none;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: rgba(15, 23, 42, 0.25);
}

.dataTables_wrapper .dataTables_info {
  padding-top: 18px !important;
  color: var(--gm-text-soft);
  font-size: 14px;
}

.dataTables_wrapper .dataTables_paginate {
  padding-top: 12px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  min-width: 38px;
  height: 38px;
  line-height: 24px;
  margin-left: 4px;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--gm-text) !important;
  font-weight: 700;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--gm-footer) !important;
  border-color: var(--gm-footer) !important;
  color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--gm-surface-alt) !important;
  border-color: var(--gm-border) !important;
  color: var(--gm-text) !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
  background-color: var(--gm-footer) !important;
  box-shadow: none !important;
}

/* Candidate page */
.gm-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--gm-text-soft);
}

.gm-breadcrumbs a:hover {
  color: var(--gm-red);
}

.gm-candidate-hero {
  padding: 34px 0 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--gm-border);
}

.gm-candidate-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 340px;
  gap: 22px;
  align-items: start;
}

.gm-candidate-main-card {
  padding: 30px;
}

.gm-candidate-top {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.gm-candidate-hero-photo {
  width: 116px;
  height: 116px;
  border-radius: 18px;
  object-fit: cover;
   object-position: top center; /* Ã°Å¸â€˜Ë† KEY FIX */
  border: 1px solid var(--gm-border);
  flex-shrink: 0;
}

.gm-candidate-top-copy {
  min-width: 0;
  flex: 1;
}

.gm-candidate-top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 12px;
}

.gm-meta-inline {
  font-size: 14px;
  font-weight: 600;
  color: var(--gm-text-soft);
}

.gm-candidate-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 0.96;
}

.gm-candidate-office {
  margin: 0 0 16px;
  font-size: 21px;
  line-height: 1.35;
  color: var(--gm-text-soft);
}

.gm-office-divider {
  margin: 0 8px;
  color: var(--gm-border-strong);
}

.gm-candidate-summary {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gm-text);
}

.gm-candidate-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.gm-candidate-score-card {
  padding: 28px 24px;
  position: sticky;
  top: 104px;
}

.gm-score-card-label {
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gm-text-muted);
}

.gm-score-card-number {
  width: 124px;
  height: 124px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  line-height: 1;
  margin-bottom: 18px;
}

.gm-score-card-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 10px 0 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #dff3e8;
  color: #166534;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  box-shadow: 0 10px 24px rgba(22, 101, 52, 0.12);
  border: 1px solid rgba(22, 101, 52, 0.12);
}

.gm-score-card-rating.gm-rating-strong-support {
  background: #dff3e8;
  color: #166534;
}

.gm-score-card-rating.gm-rating-supportive {
  background: #eaf7ef;
  color: #247a42;
}

.gm-score-card-rating.gm-rating-concerning {
  background: #fff4e5;
  color: #b45309;
}

.gm-score-card-rating.gm-rating-opposes {
  background: #fdecea;
  color: #b42318;
}

.gm-score-card-date,
.gm-score-card-method {
  font-size: 14px;
  color: var(--gm-text-soft);
}

.gm-score-card-method {
  margin: 8px 0 18px;
}

.gm-candidate-breakdown-section {
  padding: 48px 0 64px;
}

.gm-breakdown-list {
  display: grid;
  gap: 20px;
}

.gm-breakdown-card {
  padding: 26px;
}

.gm-breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.gm-breakdown-header-left {
  max-width: 900px;
}

.gm-breakdown-header h3 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gm-text);
}

.gm-breakdown-description {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gm-text-soft);
}

.gm-breakdown-score-wrap {
  flex-shrink: 0;
  text-align: right;
}

.gm-breakdown-points {
  min-width: 112px;
  height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 6px;
}

.gm-breakdown-percent {
  font-size: 14px;
  font-weight: 700;
  color: var(--gm-text-soft);
}

.gm-progress {
  height: 10px;
  margin-bottom: 24px;
  background: #eaf0f6;
  border-radius: 999px;
  overflow: hidden;
}

.gm-progress-bar {
  height: 100%;
  border-radius: 999px;
}

.gm-progress-bar.gm-score-strong,
.gm-progress-bar.gm-score-supportive,
.gm-progress-bar.gm-score-mixed,
.gm-progress-bar.gm-score-concerning,
.gm-progress-bar.gm-score-opposes {
  color: transparent;
}

.gm-progress-bar.gm-score-strong { background: var(--gm-green); }
.gm-progress-bar.gm-score-supportive { background: #16a34a; }
.gm-progress-bar.gm-score-mixed { background: var(--gm-amber); }
.gm-progress-bar.gm-score-concerning { background: var(--gm-orange); }
.gm-progress-bar.gm-score-opposes { background: var(--gm-deep-red); }

.gm-breakdown-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 22px;
  align-items: start;
}

.gm-eval-block {
  margin-bottom: 24px;
}

.gm-eval-label,
.gm-side-label {
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gm-text-muted);
}

.gm-eval-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gm-text);
}

.gm-evidence-list {
  display: grid;
  gap: 14px;
}

.gm-evidence-item {
  padding: 18px;
  border: 1px solid var(--gm-border);
  border-radius: 16px;
  background: #fbfdff;
}

.gm-evidence-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.gm-evidence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gm-evidence-type {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--gm-red-soft);
  color: var(--gm-red);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gm-evidence-date {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--gm-surface-alt);
  color: var(--gm-text-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gm-evidence-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--gm-red);
  white-space: nowrap;
}

.gm-evidence-link:hover {
  text-decoration: underline;
}

.gm-evidence-title {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gm-evidence-title a:hover {
  color: var(--gm-red);
}

.gm-evidence-excerpt {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gm-text);
}

.gm-evidence-notes {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gm-text-soft);
}

.gm-breakdown-side-card {
  padding: 20px;
}

.gm-side-score {
  min-width: 100px;
  height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}

.gm-breakdown-side-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gm-text-soft);
}

.gm-method-note-section {
  padding: 0 0 64px;
}

.gm-method-note-card {
  padding: 30px;
}

.gm-method-note-card h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
}

.gm-method-note-card p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--gm-text-soft);
}

/* Footer */
.gm-site-footer {
  background: var(--gm-footer);
  color: #fff;
  margin-top: 0;
}

.gm-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 42px;
  padding: 54px 0 28px;
}

.gm-footer-brand {
  max-width: 480px;
}

.gm-footer-brand h3 {
  margin: 0 0 12px;
  font-size: 30px;
  color: #fff;
}

.gm-footer-brand p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.74);
}

.gm-footer-links {
  display: flex;
  gap: 44px;
}

.gm-footer-links h4 {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.54);
}

.gm-footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gm-footer-links li + li {
  margin-top: 8px;
}

.gm-footer-links a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

.gm-footer-links a:hover {
  color: #fff;
}

.gm-footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gm-footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 1180px) {
  .gm-pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gm-featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gm-hero-grid {
    grid-template-columns: 1fr;
  }

  .gm-candidate-hero-grid {
    grid-template-columns: 1fr;
  }

  .gm-candidate-score-card {
    position: static;
  }
}

@media (max-width: 920px) {
  .gm-nav-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 14px 0;
        min-height: auto;
    }

  .gm-nav {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .gm-info-grid,
  .gm-footer-top,
  .gm-home-cta-inner,
  .gm-breakdown-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .gm-pillars-grid,
  .gm-featured-grid {
    grid-template-columns: 1fr;
  }

  .gm-candidate-meta {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .gm-footer-links {
    flex-wrap: wrap;
  }

  .gm-breakdown-score-wrap {
    text-align: left;
  }

  .gm-breakdown-header {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .gm-candidate-top {
    flex-direction: column;
  }

  .gm-candidate-hero-photo {
    width: 96px;
    height: 96px;
    border-radius: 16px;
  }

  .gm-candidate-hero h1 {
    font-size: 42px;
  }

  .gm-candidate-office {
    font-size: 18px;
  }

  .gm-evidence-top {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .gm-container {
    width: min(var(--gm-container), calc(100% - 24px));
  }

  .gm-logo {
    height: 42px;
  }

  .gm-hero {
    padding: 32px 0 24px;
  }

  .gm-hero-copy,
  .gm-score-preview-card,
  .gm-pillar-card,
  .gm-candidate-card,
  .gm-info-block,
  .gm-home-cta-inner,
  .gm-main-card,
  .gm-candidate-main-card,
  .gm-candidate-score-card,
  .gm-breakdown-card,
  .gm-breakdown-side-card,
  .gm-method-note-card {
    padding: 22px;
  }

  .gm-hero h1 {
    max-width: none;
    font-size: 40px;
  }

  .gm-subhead,
  .gm-page-subhead {
    font-size: 17px;
  }

  .gm-section,
  .gm-candidate-breakdown-section {
    padding: 34px 0 46px;
  }

  .gm-page-hero {
    padding: 36px 0 26px;
  }

  .gm-scores-section {
    padding: 28px 0 46px;
  }

  .gm-section-head-inline {
    display: block;
  }

  .gm-section-head-inline .gm-text-link {
    display: inline-block;
    margin-top: 10px;
  }

  .gm-candidate-meta {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gm-table-wrap {
    padding: 10px 10px 14px;
  }

  .gm-candidate-cell {
    min-width: 220px;
  }

  .gm-candidate-name {
    font-size: 17px;
  }

  .gm-candidate-photo {
    width: 54px;
    height: 54px;
    border-radius: 12px;
  }

  .dataTables_wrapper .dataTables_filter input {
    width: 100%;
  }

  .gm-home-cta-inner {
    display: block;
  }

  .gm-home-cta-inner .gm-btn {
    margin-top: 18px;
  }

  .gm-footer-top {
    padding-top: 40px;
  }
}


/* Static pages */
.gm-static-layout {
  display: grid;
  gap: 20px;
}

.gm-static-card {
  background: var(--gm-surface);
  border: 1px solid var(--gm-border);
  border-radius: var(--gm-radius);
  box-shadow: var(--gm-shadow-sm);
  padding: 30px;
}

.gm-static-card h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--gm-text);
}

.gm-static-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gm-text);
}

.gm-static-card p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--gm-text-soft);
}

.gm-static-card p:last-child {
  margin-bottom: 0;
}

.gm-static-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.gm-static-mini-card {
  background: var(--gm-surface-soft);
  border: 1px solid var(--gm-border);
  border-radius: 16px;
  padding: 22px;
}

.gm-static-mini-card p {
  margin-bottom: 0;
}

.gm-static-list {
  margin: 0;
  padding-left: 20px;
  color: var(--gm-text-soft);
}

.gm-static-list li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.75;
}

.gm-static-list li:last-child {
  margin-bottom: 0;
}

.gm-contact-grid {
  display: grid;
  gap: 20px;
}

.gm-contact-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.gm-contact-item {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--gm-border);
  border-radius: 14px;
  background: var(--gm-surface-soft);
}

.gm-contact-label {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gm-text-muted);
}

.gm-contact-item a {
  font-size: 18px;
  font-weight: 700;
  color: var(--gm-text);
}

.gm-contact-item a:hover {
  color: var(--gm-red);
}

@media (max-width: 720px) {
  .gm-static-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gm-static-card,
  .gm-static-mini-card {
    padding: 22px;
  }

  .gm-static-card h2 {
    font-size: 28px;
  }
}

.gm-scores-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.gm-scores-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
  width: 100%;
  margin-top: 16px;
}

.gm-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}

.gm-filter-search {
    min-width: 280px;
}

.gm-filter-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.gm-filter-input,
.gm-filter-select {
    height: 46px;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    background: #fff;
    padding: 0 14px;
    font-size: 15px;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gm-filter-input:focus,
.gm-filter-select:focus {
    outline: none;
    border-color: #d62828;
    box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.10);
}

.gm-filter-actions {
    display: flex;
    align-items: flex-end;
}

.gm-btn-secondary {
    background: #fff;
    color: #0f172a;
    border: 1px solid #dbe2ea;
}

.gm-btn-secondary:hover {
    border-color: #c8d2de;
    background: #f8fafc;
}

div.dataTables_filter,
div.dataTables_length {
    display: none !important;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 18px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 10px !important;
    border: 1px solid #dbe2ea !important;
    background: #fff !important;
    color: #0f172a !important;
    padding: 8px 14px !important;
    margin-left: 6px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #d62828 !important;
    border-color: #d62828 !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_info {
    margin-top: 18px;
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 991px) {
    .gm-scores-toolbar {
        align-items: stretch;
    }

    .gm-scores-filters {
        width: 100%;
    }

    .gm-filter-field,
    .gm-filter-search {
        min-width: 100%;
    }

    .gm-filter-actions {
        width: 100%;
    }

    .gm-filter-actions .gm-btn {
        width: 100%;
        justify-content: center;
    }
}

.gm-admin-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.gm-admin-home-card {
    background: #fff;
    border: 1px solid #d9e1ea;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 260px;
}

.gm-admin-home-card h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.1;
    color: #0f172a;
}

.gm-admin-home-card p {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: #475569;
    max-width: 40ch;
}

.gm-admin-home-card .gm-btn {
    margin-top: auto;
    align-self: flex-start;
}

.gm-admin-home-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    color: #d62828;
}

@media (max-width: 991px) {
    .gm-admin-home-grid {
        grid-template-columns: 1fr;
    }

    .gm-admin-home-card {
        min-height: auto;
        padding: 24px;
    }

    .gm-admin-home-card h2 {
        font-size: 28px;
    }

    .gm-admin-home-card p {
        font-size: 17px;
    }
}

.gm-admin-topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.gm-site-header {
  position: relative;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.gm-nav-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 14px 0;
        min-height: auto;
    }

.gm-logo {
  display: block;
  max-height: 56px;
  width: auto;
}

.gm-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.gm-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  color: #475569;
  transition: color 0.2s ease;
}

.gm-nav a:hover {
  color: #0f172a;
}

.gm-nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  background: #fff;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.gm-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #0f172a;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gm-mobile-nav {
  display: none;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  padding: 12px 20px 20px;
}

.gm-mobile-nav a {
  display: block;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  color: #334155;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.gm-mobile-nav a:last-child {
  border-bottom: none;
}

.gm-site-header.is-open .gm-mobile-nav {
  display: block;
}

.gm-site-header.is-open .gm-nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.gm-site-header.is-open .gm-nav-toggle span:nth-child(2) {
  opacity: 0;
}

.gm-site-header.is-open .gm-nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
  .gm-nav-row {
    min-height: 84px;
  }

  .gm-nav {
    display: none;
  }

  .gm-nav-toggle {
    display: inline-flex;
  }

  .gm-logo {
    max-height: 46px;
  }
}


.gm-share-card {
    margin-top: 20px;
    padding: 24px;
    background: #fff;
    border: 1px solid #dbe2ea;
    border-radius: 24px;
}

.gm-share-head h3 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.1;
    color: #0f172a;
}

.gm-share-head p {
    margin: 0 0 18px;
    color: #64748b;
    line-height: 1.6;
}

.gm-share-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gm-share-btn {
    width: 100%;
    justify-content: center;
}

.gm-share-feedback {
    margin-top: 12px;
    font-size: 14px;
    color: #64748b;
    min-height: 20px;
}

.gm-share-inline {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.gm-share-inline-head h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.2;
    color: #0f172a;
}

.gm-share-inline-head p {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
}

.gm-share-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gm-share-link {
    appearance: none;
    border: 1px solid #dbe2ea;
    background: #fff;
    color: #0f172a;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gm-share-link:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.gm-share-feedback {
    margin-top: 10px;
    min-height: 18px;
    font-size: 13px;
    color: #64748b;
}

.gm-share-bar {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gm-share-label {
    font-size: 14px;
    color: #64748b;
    margin-right: 6px;
}

.gm-share-label strong {
    color: #0f172a;
}

.gm-share-pill {
    border: 1px solid #dbe2ea;
    background: #fff;
    color: #0f172a;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gm-share-pill:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.gm-share-icons {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

.gm-share-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #dbe2ea;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gm-share-icon svg {
    width: 18px;
    height: 18px;
    fill: #0f172a;
}

.gm-share-icon:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* center wrapper */
.gm-share-icons-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* icon row */
.gm-share-icons {
    display: flex;
    gap: 12px;
}

/* icon button */
.gm-share-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #dbe2ea;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.gm-share-icon svg {
    width: 16px;
    height: 16px;
    fill: #0f172a;
}

/* hover */
.gm-share-icon:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}



/* toast (copy feedback) */
.gm-share-toast {
    margin-top: 10px;
    font-size: 13px;
    color: #16a34a;
    min-height: 18px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gm-share-toast.is-visible {
    opacity: 1;
}


.gm-share-icons-wrap {
    position: relative;
    margin-top: 8px;
    display: flex;
    justify-content: center;
}

.gm-share-icons {
    display: flex;
    gap: 8px;
}

.gm-share-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #dbe2ea;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gm-share-icon:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.gm-share-icon svg {
    width: 16px;
    height: 16px;
    fill: #0f172a;
}

.gm-share-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: #fff;
    border: 1px solid #dbe2ea;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    padding: 8px;
    z-index: 30;
}

.gm-share-menu-item {
    width: 100%;
    display: block;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    cursor: pointer;
}

.gm-share-menu-item:hover {
    background: #f8fafc;
}

.gm-share-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #dbe2ea;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    color: #0f172a; /* 👈 SVG inherits this */
    transition: all 0.2s ease;
}

.gm-share-icon svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
}


/* Hide toggle on desktop */
.gm-filter-toggle {
    display: none;
}

/* Mobile styles */
@media (max-width: 768px) {

    .gm-filter-toggle {
        display: block;
        width: 100%;
        margin-top: 12px;
        padding: 14px 16px;
        border-radius: 12px;
        border: 1px solid #dbe2ea;
        background: #fff;
        font-weight: 600;
        font-size: 15px;
        text-align: center;
    }

    .gm-scores-filters {
        display: none;
        margin-top: 12px;
    }

    .gm-scores-filters.is-open {
        display: block;
    }
}

.gm-candidate-meta strong[class^="gm-rating-"] {
    min-height: 2.6em;
    display: inline-block;
    line-height: 1.3;
}


.gm-rating-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* Strong Support */
.gm-rating-strong {
  background: #dff3e8;
  color: #166534;
}

/* Supportive */
.gm-rating-supportive {
  background: #edf7ed;
  color: #2e7d32;
}

/* Neutral / Limited / Concerning */
.gm-rating-concerning,
.gm-rating-limited,
.gm-rating-neutral {
  background: #fff4e5;
  color: #b45309;
}

/* Opposes */
.gm-rating-opposes {
  background: #fdecea;
  color: #b42318;
}

.gm-rating-badge {
  font-weight: 800;
}

.gm-score-card-rating {
  margin-bottom: 24px;
}

.gm-score-card-date {
  margin-top: 16px;
}

.gm-score-card-method {
  margin-top: 8px;
}

/* push share section down */
.gm-share-icons-wrap {
  margin-top: 28px;
}

.gm-share-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 10px;
}

.gm-share-icons-wrap {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
}

.gm-rating-badge {
  white-space: nowrap;
  display: inline-flex;
}


@media (max-width: 640px) {
  

  .gm-scores-table thead th:nth-child(1),
  .gm-scores-table tbody td:nth-child(1) {
    display: table-cell !important;
    width: 62% !important;
  }

  .gm-scores-table thead th:nth-child(4),
  .gm-scores-table tbody td:nth-child(4) {
    display: table-cell !important;
    width: 38% !important;
    text-align: right;
  }

  .gm-rating-badge {
    display: inline-flex !important;
    white-space: nowrap;
    font-size: 0.72rem;
    padding: 6px 9px;
  }
}


@media (max-width: 640px) {
  .gm-scores-table th:nth-child(1),
  .gm-scores-table td:nth-child(1) {
    width: 70% !important;
  }

  .gm-scores-table th:nth-child(4),
  .gm-scores-table td:nth-child(4) {
    width: 30% !important;
    text-align: right;
  }

  .gm-rating-badge {
    max-width:90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.62rem;
    padding: 5px 7px;
  }

  .gm-candidate-photo {
    width: 42px;
    height: 42px;
  }

  .gm-candidate-name {
    font-size: 0.82rem;
  }

  .gm-candidate-party {
    font-size: 0.72rem;
  }
}

@media (max-width: 640px) {
  .gm-scores-table tbody tr {
    position: relative;
  }

  .gm-scores-table tbody tr::after {
    content: "▾";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #94a3b8;
  }

  .gm-scores-table tbody tr.parent::after {
    content: "▴";
  }
}

@media (max-width: 640px) {
  .gm-scores-table tr.child td.child {
    padding: 0 12px 14px !important;
    background: #ffffff;
  }

  .gm-scores-table tr.child ul.dtr-details {
    width: 100%;
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
  }

  .gm-scores-table tr.child ul.dtr-details > li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid #e5eaf1;
  }

  .gm-scores-table tr.child ul.dtr-details > li:last-child {
    border-bottom: 0;
  }

  .gm-scores-table tr.child .dtr-title {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
  }

  .gm-scores-table tr.child .dtr-data {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
  }

  .gm-scores-table tr.child .dtr-data .gm-btn {
    padding: 7px 10px;
    font-size: 0.72rem;
    border-radius: 9px;
  }
}

.gm-row-hint {
  display: none;
}

@media (max-width: 640px) {
  .gm-row-hint {
    display: block;
    font-size: 0.64rem;
    color: #64748b;
    margin-top: 1px;
    font-weight: 700;
  }
}

@media (max-width: 640px) {
  .gm-scores-table tbody tr {
    cursor: pointer;
    transition: background 0.15s ease;
  }

  .gm-scores-table tbody tr:active {
    background: #f8fafc;
  }
}


@media (max-width: 640px) {
  .gm-scores-table tbody tr {
    transition: background 0.15s ease;
  }

  .gm-scores-table tbody tr:active {
    background: #f1f5f9;
  }
}