.tgc-ct {
  --tgc-primary: #0b4fa3;
  --tgc-pledge: #4f9d3a;
  --tgc-donation: #0b4fa3;
  --tgc-accent: #ffd21f;
  --tube-height: 430px;
  --tube-width: 52px;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 26px 18px 20px;
  color: #12304f;
  text-align: center;
  box-sizing: border-box;
  font-family: inherit;
}

.tgc-ct *, .tgc-ct *::before, .tgc-ct *::after { box-sizing: border-box; }

.tgc-ct__total { margin-bottom: 22px; line-height: 1.05; }
.tgc-ct__total strong { display: block; font-size: clamp(28px, 5vw, 46px); color: var(--tgc-primary); }
.tgc-ct__total span { display: block; margin-top: 7px; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }

.tgc-ct__visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(135px, 1fr) 96px 128px minmax(135px, 1fr);
  align-items: start;
  justify-content: center;
  min-height: calc(var(--tube-height) + 78px);
}

.tgc-ct__thermometer-wrap { position: relative; grid-column: 2; width: 96px; height: calc(var(--tube-height) + 78px); margin: 0 auto; }
.tgc-ct__tube {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--tube-width);
  height: var(--tube-height);
  transform: translateX(-50%);
  overflow: hidden;
  border: 4px solid var(--tgc-primary);
  border-bottom: 0;
  border-radius: 999px 999px 8px 8px;
  background: rgba(255,255,255,.74);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.9), 0 5px 18px rgba(0,0,0,.18);
  z-index: 2;
}

.tgc-ct__fill { position: absolute; left: 4px; right: 4px; bottom: 0; height: 0; transition: height 2.8s cubic-bezier(.2,.8,.2,1), bottom 2.8s cubic-bezier(.2,.8,.2,1); }
.tgc-ct__fill--donations { background: linear-gradient(90deg, #07366f, var(--tgc-donation), #07366f); z-index: 2; }
.tgc-ct__fill--pledged { background: linear-gradient(90deg, #337829, var(--tgc-pledge), #337829); z-index: 1; }

.tgc-ct__graduations { position: absolute; inset: 18px 8px 8px; z-index: 4; opacity: .28; background: repeating-linear-gradient(to bottom, transparent 0 18px, #fff 18px 20px); pointer-events: none; }

.tgc-ct__bulb {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 88px;
  height: 88px;
  transform: translateX(-50%);
  border: 4px solid var(--tgc-primary);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #2a70bd 0 9%, var(--tgc-donation) 34%, #062f66 72%);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.75), 0 7px 18px rgba(0,0,0,.22);
  z-index: 5;
}

.tgc-ct__scale { position: relative; top: 8px; grid-column: 3; width: 128px; height: calc(var(--tube-height) + 78px); }
.tgc-ct__tick { position: absolute; left: 0; width: 100%; transform: translateY(50%); border-bottom: 1px solid rgba(18,48,79,.3); text-align: right; }
.tgc-ct__tick span { position: relative; top: -3px; display: inline-block; padding-left: 8px; color: #31516d; font-size: 11px; font-weight: 700; }
.tgc-ct__tick small { display: block; margin-top: 4px; color: #31516d; font-size: 9px; font-style: normal; font-weight: 900; letter-spacing: .08em; line-height: 1; text-transform: uppercase; }
.tgc-ct__tick--goal { display: flex; align-items: flex-start; border-bottom: 0; text-align: left; }
.tgc-ct__tick--goal::before { content: ""; flex: 0 0 28px; margin-top: 6px; border-top: 1px solid rgba(18,48,79,.42); }
.tgc-ct__tick--goal span { position: static; display: block; padding-left: 8px; line-height: 1.05; white-space: nowrap; }

.tgc-ct__label {
  position: absolute;
  z-index: 8;
  width: 142px;
  padding: 8px 10px;
  border: 2px solid currentColor;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.13);
  line-height: 1.05;
}
.tgc-ct__label span { display: block; margin-bottom: 4px; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.tgc-ct__label strong { display: block; font-size: 17px; }
.tgc-ct__label::after { content: ""; position: absolute; top: 50%; width: 36px; border-top: 2px solid currentColor; }
.tgc-ct__label--pledged { right: calc(50% + 49px); color: var(--tgc-pledge); }
.tgc-ct__label--pledged::after { left: 100%; }
.tgc-ct__label--donations { left: calc(50% + 108px); color: var(--tgc-donation); }
.tgc-ct__label--donations::after { right: 100%; }

.tgc-ct__footer-copy { margin-top: 58px; }
.tgc-ct__church { margin: 0 0 8px; color: var(--tgc-pledge); font-size: 10px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.tgc-ct__footer-copy h2 { margin: 0; color: var(--tgc-primary); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(27px, 4.5vw, 42px); font-weight: 700; line-height: 1.1; }
.tgc-ct__message { width: min(100%, 600px); margin: 10px auto 0; font-size: clamp(15px, 2vw, 19px); font-weight: 600; line-height: 1.4; }
.tgc-ct__actions { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.tgc-ct__button { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; padding: 9px 18px; border: 1px solid rgba(18,48,79,.16); border-radius: 999px; background: #fff; color: #31516d; box-shadow: 0 3px 9px rgba(0,0,0,.12); font: inherit; font-size: 12px; font-weight: 800; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.tgc-ct__button svg { width: 14px; height: 14px; fill: currentColor; }
.tgc-ct__button--donate { border-color: var(--tgc-pledge); background: var(--tgc-pledge); color: #fff; }
.tgc-ct__button--share { background: #fff; color: #31516d; }
.tgc-ct__button:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(0,0,0,.16); }
.tgc-ct__share-status { min-height: 20px; margin: 8px 0 0; font-size: 13px; }

@media (max-width: 640px) {
  .tgc-ct { --tube-height: 360px; --tube-width: 46px; padding-inline: 8px; }
  .tgc-ct__visual { grid-template-columns: 1fr 84px 90px 1fr; min-height: calc(var(--tube-height) + 70px); }
  .tgc-ct__thermometer-wrap { width: 84px; height: calc(var(--tube-height) + 70px); }
  .tgc-ct__bulb { width: 76px; height: 76px; }
  .tgc-ct__scale { width: 90px; height: calc(var(--tube-height) + 70px); }
  .tgc-ct__tick span { font-size: 9px; }
  .tgc-ct__tick--goal::before { flex-basis: 20px; }
  .tgc-ct__tick--goal span { padding-left: 6px; }
  .tgc-ct__label { width: 128px; padding: 8px 9px; }
  .tgc-ct__label strong { font-size: 15px; }
  .tgc-ct__label span { font-size: 9px; }
  .tgc-ct__label::after { width: 20px; }
  .tgc-ct__label--pledged { right: calc(50% + 42px); }
  .tgc-ct__label--donations { left: calc(50% + 73px); }
}

@media (max-width: 430px) {
  .tgc-ct { overflow: hidden; }
  .tgc-ct__visual { grid-template-columns: 1fr 74px 76px 1fr; }
  .tgc-ct__label { width: 112px; }
  .tgc-ct__label strong { font-size: 13px; }
  .tgc-ct__label--pledged { right: calc(50% + 35px); }
  .tgc-ct__label--donations { left: calc(50% + 61px); }
}

