/* ElectionTracker evergreen coffee CTA (Nov 10 2026). Does not alter race data. */
/* ElectionTracker Ko-fi card, v10.2 styling (Nov 3 2026)
   Navy card, thin flag stripe on top, gold coffee coin, 2-line serif headline, gold CTA pill.
   Selectors are scoped under #etcr-region where needed to beat the base .etcr-kofi button styles. */

#etcr-region a.et-kofi-patriotic-v10-link,
a.et-kofi-patriotic-v10-link {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 13px;
  width: 100%;
  min-height: 0 !important;
  padding: 19px 16px 16px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(230, 201, 137, .38) !important;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(230, 201, 137, .16), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, rgba(178, 34, 52, .28), transparent 60%),
    linear-gradient(160deg, #18294f 0%, #0f1a36 55%, #0b1228 100%) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .04) inset,
    0 1px 0 rgba(255, 255, 255, .08) inset,
    0 0 34px rgba(230, 190, 100, .18),
    0 14px 30px rgba(0, 0, 0, .45) !important;
  color: #fff8e6 !important;
  text-decoration: none !important;
  text-align: left;
  font-weight: 400 !important;
  overflow: hidden;
  isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* Thin red / white / blue stripe along the top edge */
a.et-kofi-patriotic-v10-link::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg,
    #b22234 0 33.33%,
    #f4f1ea 33.33% 66.66%,
    #2f5bb7 66.66% 100%);
  opacity: .95;
  z-index: 2;
}

/* Soft sheen that sweeps across on hover */
a.et-kofi-patriotic-v10-link::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 236, 190, .14), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 0;
  transition: left .7s ease;
}

#etcr-region a.et-kofi-patriotic-v10-link:hover,
#etcr-region a.et-kofi-patriotic-v10-link:focus-visible,
a.et-kofi-patriotic-v10-link:hover,
a.et-kofi-patriotic-v10-link:focus-visible {
  transform: translateY(-3px);
  filter: none;
  border-color: rgba(240, 210, 140, .7) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .05) inset,
    0 0 46px rgba(240, 200, 110, .32),
    0 18px 36px rgba(0, 0, 0, .5) !important;
}

a.et-kofi-patriotic-v10-link:hover::after,
a.et-kofi-patriotic-v10-link:focus-visible::after {
  left: 120%;
}

a.et-kofi-patriotic-v10-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Gold coin. The JS puts a star in it; CSS swaps in a coffee cup and hides the star. */
.et-kofi-flag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #fff1c4 0%, #f0cf7a 45%, #c8973c 100%);
  box-shadow:
    0 0 0 3px rgba(240, 207, 122, .18),
    0 0 18px rgba(255, 210, 110, .45),
    inset 0 -2px 4px rgba(120, 80, 20, .35),
    inset 0 2px 3px rgba(255, 255, 255, .6);
  font-size: 0;
  color: transparent;
}

.et-kofi-flag::before {
  content: '\2615';
  font-size: 22px;
  line-height: 1;
  color: #3a2410;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .45));
}

.et-kofi-copy-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}

.et-support-title {
  display: block;
  font-family: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.12;
  letter-spacing: .005em;
  color: #fff8e6 !important;
  text-shadow: 0 1px 10px rgba(255, 214, 120, .22);
  text-wrap: balance;
}

.et-kofi-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe9ad 0%, #e9c16a 55%, #cf9d43 100%);
  box-shadow: 0 0 0 1px rgba(255, 236, 180, .6) inset, 0 4px 12px rgba(0, 0, 0, .35);
  color: #241706 !important;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
}

.et-kofi-cta::after {
  content: '\2192';
  font-size: 13px;
  transition: transform .2s ease;
}

a.et-kofi-patriotic-v10-link:hover .et-kofi-cta::after,
a.et-kofi-patriotic-v10-link:focus-visible .et-kofi-cta::after {
  transform: translateX(3px);
}

@media (max-width: 600px) {
  #etcr-region a.et-kofi-patriotic-v10-link,
  a.et-kofi-patriotic-v10-link {
    padding: 18px 16px 15px !important;
  }
  .et-support-title {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.et-kofi-patriotic-v10-link,
  a.et-kofi-patriotic-v10-link::after,
  .et-kofi-cta::after {
    transition: none !important;
  }
  a.et-kofi-patriotic-v10-link:hover,
  a.et-kofi-patriotic-v10-link:focus-visible {
    transform: none;
  }
}

/* v10.3: second Ko-fi card in the Election Night Live Map header, under the green status pill */
.etnm-side-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  width: 268px;
  max-width: 100%;
}
.etnm-side-stack a.et-kofi-patriotic-v10-link {
  width: 100%;
}
@media (max-width: 760px) {
  .etnm-side-stack {
    width: 100%;
    align-items: stretch;
  }
  .etnm-side-stack #etnm-status {
    align-self: flex-start;
  }
}

/* Featured support box: a clear, compact secondary action. */
.et-kofi-headline a.et-kofi-patriotic-v10-link { width: min(275px,100%); flex: 0 0 auto; }
.et-kofi-headline a.et-kofi-patriotic-v10-link .et-support-title { font-size: 18px; }
/* Map support should not overwhelm the race-status indicator. */
.etnm-side-stack a.et-kofi-patriotic-v10-link { padding: 13px 12px !important; gap: 10px; }
.etnm-side-stack a.et-kofi-patriotic-v10-link .et-kofi-flag { width: 38px; height: 38px; }
.etnm-side-stack a.et-kofi-patriotic-v10-link .et-support-title { font-size: 16px; }
.etnm-side-stack a.et-kofi-patriotic-v10-link .et-kofi-cta { font-size: 10.5px; }
.et-kofi-patriotic-v10-link .et-support-title { overflow-wrap: anywhere; }
@media(max-width:690px){
 .et-kofi-headline a.et-kofi-patriotic-v10-link{width:100%;}
}
