/* ============================================================
   capital-gateway-electricity-problem-solving-2.html — page styles
   Only what the shared ab-* library does not already cover:
   the declaration line, the header status note, the projected
   savings table, the italic source note, and the "Current Status"
   list (an ab-timeline whose gold dot is replaced by the source's
   own status glyph).
   ============================================================ */

/* -- the one-line declaration that closes the premise section -- */
.cg-declare {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.55;
  color: var(--navy);
}
.cg-declare strong { color: var(--navy); font-weight: 700; }

/* -- primary action row under the headline stats -- */
.cg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* -- live status line that follows the action row -- */
.cg-statusnote {
  margin: 22px 0 0;
  font-family: var(--font-nav);
  font-size: 14px;
  color: var(--muted);
}
.cg-statusnote a { color: var(--navy); font-weight: 600; text-decoration: none; }
.cg-statusnote a:hover { text-decoration: underline; }

/* -- projected savings table -- */
.cg-tablewrap {
  margin-top: 34px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.cg-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-family: var(--font-nav);
  font-size: 15.5px;
}

.cg-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: left;
  padding: 15px 24px;
  white-space: nowrap;
}

.cg-table td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--body-c);
}

.cg-table th:last-child,
.cg-table td:last-child { text-align: right; }

.cg-table td:last-child {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.cg-table tbody tr:nth-child(even) { background: var(--paper); }

.cg-table__sub { color: var(--muted); font-weight: 400; }

.cg-table tbody tr.cg-table__hi { background: var(--tint); }
.cg-table tbody tr.cg-table__hi td {
  border-bottom: 0;
  padding: 17px 24px;
  font-weight: 700;
  color: var(--navy);
}
.cg-table tbody tr.cg-table__hi td:last-child { font-size: 18px; }

@media (max-width: 640px) {
  .cg-table { font-size: 14.5px; }
  .cg-table th, .cg-table td { padding: 13px 16px; }
  .cg-table tbody tr.cg-table__hi td { padding: 15px 16px; }
}

/* -- the italic sourcing note beneath the table -- */
.cg-note {
  max-width: 76ch;
  margin: 20px 0 0;
  font-size: 15.5px;
  line-height: 1.75;
  font-style: italic;
  color: var(--muted);
}

/* -- "Current Status": ab-timeline with the source glyph as marker -- */
.cg-status-title { margin: 46px 0 0; }

.cg-status { margin-top: 24px; }
.cg-status::before { left: 12px; }          /* keep the rail centred on the glyphs */
.cg-status > li { padding: 0 0 20px 46px; }
.cg-status > li:last-child { padding-bottom: 0; }
.cg-status > li::before { content: none; }  /* the glyph replaces the gold dot */

.cg-status__icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  padding: 2px 0;
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
  background: var(--card);                          /* masks the rail behind the glyph */
}

.cg-status p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}
.cg-status strong { color: var(--ink); }

/* -- closing note, ruled off from the body of the story -- */
.cg-close {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 2px solid var(--line);
}

.cg-sign {
  margin: 8px 0 0;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--muted);
}
.cg-sign strong { color: var(--navy); }
.cg-sign a { color: var(--navy); font-weight: 600; text-decoration: none; }
.cg-sign a:hover { text-decoration: underline; }
