@import url("/politician-zen-maru-font.css");

/* Politician demo — CTA polish.
   Keep the civic office tone soft and approachable: white pill, pink stroke,
   bottom-weight shadow, clear arrow, and accessible interaction states. */
[data-demo-static][data-category="politician"] {
  --civic-cta-pink: #f85f8f;
  --civic-cta-pink-deep: #d94d80;
  --civic-cta-pink-soft: #fff5fa;
  --civic-cta-pink-shadow: #f5a7c5;
  --civic-cta-ink: #06224a;
  --civic-cta-blue: #1e78db;
  --civic-cta-blue-shadow: #9ed0f7;
}

[data-demo-static][data-category="politician"] header > .container-x > a[href="#contact"],
[data-demo-static][data-category="politician"] #politician-top > section:first-of-type a[href="#contact"],
[data-demo-static][data-category="politician"] #politician-top > section:first-of-type a[href="#reports"] {
  position: relative;
  isolation: isolate;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  background: #ffffff !important;
  text-decoration: none;
  letter-spacing: 0.1em;
  transform: translateY(0);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

[data-demo-static][data-category="politician"] header > .container-x > a[href="#contact"] {
  min-height: 44px;
  padding: 0.72rem 1rem !important;
  border: 1.8px solid var(--civic-cta-pink) !important;
  color: var(--civic-cta-pink) !important;
  box-shadow:
    0 4px 0 var(--civic-cta-pink-shadow),
    0 10px 22px rgba(248, 95, 143, 0.16) !important;
}

[data-demo-static][data-category="politician"] #politician-top > section:first-of-type a[href="#contact"] {
  min-width: min(100%, 18.5rem);
  min-height: 70px;
  padding: 0 2rem !important;
  gap: clamp(1.6rem, 5vw, 3.25rem) !important;
  border: 2px solid var(--civic-cta-pink) !important;
  color: var(--civic-cta-pink) !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  box-shadow:
    0 8px 0 var(--civic-cta-pink-shadow),
    0 16px 28px rgba(248, 95, 143, 0.18) !important;
}

[data-demo-static][data-category="politician"] #politician-top > section:first-of-type a[href="#reports"] {
  min-width: min(100%, 17rem);
  min-height: 64px;
  padding: 0 1.8rem !important;
  gap: clamp(1.25rem, 4vw, 2.7rem) !important;
  border: 1.8px solid rgba(30, 120, 219, 0.55) !important;
  color: var(--civic-cta-ink) !important;
  font-weight: 800 !important;
  box-shadow:
    0 7px 0 var(--civic-cta-blue-shadow),
    0 14px 24px rgba(30, 120, 219, 0.14) !important;
}

[data-demo-static][data-category="politician"] #politician-top > section:first-of-type a[href="#contact"] > svg:first-child,
[data-demo-static][data-category="politician"] #politician-top > section:first-of-type a[href="#reports"] > svg:first-child {
  display: none;
}

[data-demo-static][data-category="politician"] header > .container-x > a[href="#contact"] > svg:last-child,
[data-demo-static][data-category="politician"] #politician-top > section:first-of-type a[href="#contact"] > svg:last-child,
[data-demo-static][data-category="politician"] #politician-top > section:first-of-type a[href="#reports"] > svg:last-child {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 2.4;
  transform: translateY(-1px);
}

[data-demo-static][data-category="politician"] #politician-top > section:first-of-type a[href="#contact"]:hover,
[data-demo-static][data-category="politician"] header > .container-x > a[href="#contact"]:hover {
  background: var(--civic-cta-pink-soft) !important;
  color: var(--civic-cta-pink-deep) !important;
  border-color: var(--civic-cta-pink-deep) !important;
  transform: translateY(-1px);
}

[data-demo-static][data-category="politician"] #politician-top > section:first-of-type a[href="#reports"]:hover {
  background: #f7fbff !important;
  border-color: var(--civic-cta-blue) !important;
  color: var(--civic-cta-blue) !important;
  transform: translateY(-1px);
}

[data-demo-static][data-category="politician"] #politician-top > section:first-of-type a[href="#contact"]:active,
[data-demo-static][data-category="politician"] #politician-top > section:first-of-type a[href="#reports"]:active,
[data-demo-static][data-category="politician"] header > .container-x > a[href="#contact"]:active {
  transform: translateY(5px);
  box-shadow:
    0 3px 0 rgba(245, 167, 197, 0.9),
    0 6px 14px rgba(248, 95, 143, 0.13) !important;
}

[data-demo-static][data-category="politician"] #politician-top > section:first-of-type a[href="#contact"]:focus-visible,
[data-demo-static][data-category="politician"] #politician-top > section:first-of-type a[href="#reports"]:focus-visible,
[data-demo-static][data-category="politician"] header > .container-x > a[href="#contact"]:focus-visible {
  outline: 3px solid rgba(248, 95, 143, 0.32);
  outline-offset: 5px;
}

[data-demo-static][data-category="politician"] #civic-participate .civic-participate__item {
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 48%, rgba(255, 255, 255, 0.48) 100%),
    var(--participate-bg) center right / cover no-repeat;
  border: 1.6px solid rgba(248, 95, 143, 0.32);
  box-shadow:
    0 5px 0 rgba(245, 167, 197, 0.74),
    0 16px 30px rgba(248, 95, 143, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

[data-demo-static][data-category="politician"] #civic-participate .civic-participate__item:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 95, 143, 0.62);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 48%, rgba(255, 255, 255, 0.42) 100%),
    var(--participate-bg) center right / cover no-repeat;
}

[data-demo-static][data-category="politician"] #civic-participate .civic-participate__item:active {
  transform: translateY(4px);
  box-shadow:
    0 2px 0 rgba(245, 167, 197, 0.72),
    0 8px 18px rgba(248, 95, 143, 0.1);
}

@media (max-width: 640px) {
  [data-demo-static][data-category="politician"] #politician-top > section:first-of-type .mt-8.flex.flex-wrap {
    gap: 0.9rem;
  }

  [data-demo-static][data-category="politician"] #politician-top > section:first-of-type a[href="#contact"],
  [data-demo-static][data-category="politician"] #politician-top > section:first-of-type a[href="#reports"] {
    width: min(100%, 20rem);
    min-height: 64px;
    padding-inline: 1.45rem !important;
  }

  [data-demo-static][data-category="politician"] #civic-participate .civic-participate__item {
    border-radius: 1.25rem;
  }
}
