/**
 * Why should you care — home (teaser + image marquee) and The Issue (full intro + voice).
 * Marquee: scrolling images of affected kei owners (placeholder until real stories); seamless loop, respects reduced motion.
 */

.why-you-care {
  margin-top: 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border-light, #e5e5e5);
}

.page-home .why-you-care {
  padding-top: var(--home-section-padding-block, 2rem);
  padding-bottom: var(--home-section-padding-block, 2rem);
}

/* Header: clear hierarchy, readable line length. Narrower measure to avoid orphans. */
.why-you-care-header {
  max-width: min(var(--max-width-hero, 680px), 52ch);
  margin-left: auto;
  margin-right: auto;
}

/* Home + poll: adventure flow — single column, cards then inline question then CTAs. */
.why-you-care--flow .why-you-care-header {
  max-width: min(720px, 95vw);
}

.why-you-care-flow {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Default state: three insight cards (ambient). Full width within centered flow. */
.wyc-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg, 1rem);
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
  width: 100%;
}

@media (min-width: 640px) {
  .wyc-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl, 1.25rem);
    margin-bottom: 2rem;
  }
}

.wyc-card {
  padding: var(--space-md, 12px) var(--space-lg, 16px);
  background: var(--color-bg-card, #fafafa);
  border: 1px solid var(--color-border-light, #e5e5e5);
  border-radius: 8px;
}

.wyc-card__headline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text, #222);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.wyc-card__body {
  font-size: var(--font-size-body, 1rem);
  color: var(--color-text-secondary, #555);
  line-height: 1.5;
  margin: 0;
}

/* Section explainer: directly under "Why should you care?" heading. */
.why-you-care-section-intro {
  font-size: var(--font-size-body, 1rem);
  color: var(--color-text, #222);
  margin: 0 auto 1.25rem;
  max-width: 42ch;
  line-height: 1.5;
  text-align: center;
}

/* Short line above poll: why we ask. */
.wyc-poll-intro {
  font-size: var(--font-size-body, 1rem);
  color: var(--color-text-secondary, #555);
  margin: 0 0 1rem 0;
  max-width: 42ch;
}

/* Line under poll progress bar: breadth-of-support / outreach context. */
.wyc-poll-under-goal {
  font-size: 0.9375rem;
  color: var(--color-text-secondary, #555);
  margin: 0.75rem 0 0;
  max-width: 42ch;
}

/* Poll goal: X of Y responses + progress bar. */
.kei-poll-goal {
  margin-bottom: 0.75rem;
  width: 100%;
}

.kei-poll-goal__label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary, #555);
  margin: 0 0 0.375rem 0;
}

.kei-poll-goal__bar {
  height: 6px;
  background: var(--color-border-light, #e5e5e5);
  border-radius: 999px;
  overflow: hidden;
}

.kei-poll-goal__bar-fill {
  height: 100%;
  background: var(--color-primary, #0645ad);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.wyc-inline-poll__goal .kei-poll-goal__label {
  margin-bottom: 0.25rem;
}

/* Inline poll: question + Yes/No pills + sub-options, no card chrome. */
.wyc-inline-poll {
  margin-bottom: 1.25rem;
  width: 100%;
  max-width: 360px;
}

.wyc-inline-question__label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text, #222);
  margin: 0 0 0.75rem 0;
}

.wyc-inline-question--hidden {
  display: none;
}

.wyc-inline-question__branch-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.wyc-inline-question__btn {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text, #222);
  background: var(--color-bg-card, #fff);
  border: 1px solid var(--color-border, #ccc);
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.wyc-inline-question__btn:hover {
  background: var(--color-bg-hover, #f0f0f0);
  border-color: var(--color-border, #999);
}

.wyc-inline-question__btn:focus-visible {
  outline: 2px solid var(--color-border-focus, #333);
  outline-offset: 2px;
}

.wyc-inline-question__btn[aria-pressed="true"] {
  background: var(--color-primary, #0645ad);
  border-color: var(--color-primary, #0645ad);
  color: #fff;
}

.wyc-inline-poll__step2 {
  margin-top: 1rem;
  overflow: visible;
  /* so focus outline (2px + 1px offset) on options is not clipped */
}

.wyc-inline-poll__step2--hidden {
  display: none;
}

.wyc-inline-poll__step2:not(.wyc-inline-poll__step2--hidden) {
  animation: wyc-step2-in 0.2s ease;
}

.wyc-inline-poll__step3 {
  margin-top: 0.5rem;
}

.wyc-inline-poll__step3--hidden {
  display: none;
}

@keyframes wyc-step2-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wyc-inline-poll__step2-legend {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text, #222);
  margin: 0 0 0.5rem 0;
}

.wyc-inline-poll__options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* Horizontal padding so focus outline (2px + 1px offset) is not clipped */
  padding: 0 3px;
}

.wyc-inline-poll__option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.35rem 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text, #222);
  background: var(--color-bg-card, #fff);
  border: 1px solid var(--color-border-light, #e5e5e5);
  border-radius: 6px;
  cursor: pointer;
  margin: 0;
}

.wyc-inline-poll__option:hover {
  background: #e3f2fd;
  border-color: #90caf9;
}

.wyc-inline-poll__option:focus-within {
  outline: 2px solid #1976d2;
  outline-offset: 1px;
}

.wyc-inline-poll__option input {
  margin-right: 0.5rem;
}

.wyc-inline-poll__footer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.wyc-inline-poll__total {
  font-size: var(--font-size-xs, 0.8125rem);
  color: var(--color-text-muted, #777);
}

.wyc-inline-poll__submit-wrap--hidden {
  display: none;
}

.wyc-inline-poll__back-wrap {
  margin-top: 1.25rem;
}

.wyc-inline-poll__back-wrap--hidden {
  display: none;
}

.wyc-inline-poll__back.wyc-inline-poll__back--link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--color-link, #1976d2);
  text-decoration: underline;
  cursor: pointer;
}

.wyc-inline-poll__back.wyc-inline-poll__back--link:hover {
  text-decoration-thickness: 2px;
}

.wyc-inline-poll__back.wyc-inline-poll__back--link:focus-visible {
  outline: 2px solid var(--color-focus, #1976d2);
  outline-offset: 2px;
}

.wyc-inline-poll__submit {
  margin: 0;
}

.wyc-cta {
  margin: 1.25rem 0 0 0;
  font-size: 1.125rem;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.25rem;
}

.wyc-cta .btn {
  margin: 0;
}

.wyc-cta__sep {
  color: var(--color-text-secondary, #555);
  font-weight: 400;
}

/* Branch view (after poll submit): tailored headline, body, CTAs, results. */
.wyc-branch-content {
  animation: wyc-branch-in 0.4s ease;
}

@keyframes wyc-branch-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wyc-branch-content__headline {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text, #222);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

/* Pill UI: headline as capsule badge (You're living this. / You can't buy... / It's about clear, consistent law.) */
.wyc-branch-content__headline--pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: var(--color-bg-card, #f5f5f5);
  border: 1px solid var(--color-border-light, #e5e5e5);
  margin-bottom: 0.75rem;
}

.wyc-branch-content__headline--pill:focus {
  outline: 2px solid var(--color-border-focus, #333);
  outline-offset: 2px;
}

.wyc-pill__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wyc-pill__icon svg {
  display: block;
}

/* Icon color + animation per outcome (SVG uses currentColor) */
.wyc-pill__icon--registered {
  color: #047857;
}

.wyc-pill__icon--registered svg {
  animation: wyc-icon-pulse 2.5s ease-in-out infinite;
}

.wyc-pill__icon--revoked {
  color: var(--color-hero-cta);
}

.wyc-pill__icon--revoked svg {
  animation: wyc-icon-revoked 2.8s ease-in-out infinite;
}

.wyc-pill__icon--denied {
  color: var(--color-error, #b91c1c);
}

.wyc-pill__icon--denied svg {
  animation: wyc-icon-shake 3s ease-in-out infinite;
}

.wyc-pill__icon--would_want {
  color: var(--color-hero-cta-hover, #d96b09);
}

.wyc-pill__icon--would_want svg {
  animation: wyc-icon-bounce 2.6s ease-in-out infinite;
}

.wyc-pill__icon--would_not_want {
  color: var(--color-link-action-hover, #1765cc);
}

.wyc-pill__icon--would_not_want svg {
  animation: wyc-icon-scale 2.8s ease-in-out infinite;
}

@keyframes wyc-icon-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

@keyframes wyc-icon-revoked {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(2px);
  }
}

@keyframes wyc-icon-shake {

  0%,
  90%,
  100% {
    transform: translateX(0);
  }

  93% {
    transform: translateX(-2px);
  }

  96% {
    transform: translateX(2px);
  }

  99% {
    transform: translateX(-1px);
  }
}

@keyframes wyc-icon-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes wyc-icon-scale {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {

  .wyc-pill__icon--registered svg,
  .wyc-pill__icon--revoked svg,
  .wyc-pill__icon--denied svg,
  .wyc-pill__icon--would_want svg,
  .wyc-pill__icon--would_not_want svg {
    animation: none;
  }
}

.wyc-branch-content__body {
  font-size: var(--font-size-body, 1rem);
  color: var(--color-text-secondary, #555);
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
}

.wyc-branch-content__cta-nudge {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text, #222);
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.wyc-branch-content__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.wyc-branch-content__ctas .btn {
  margin: 0;
}

/* Primary CTA is the dominant next step (slightly larger, clearer target). */
.wyc-branch-content__cta-primary {
  font-size: 1.0625rem;
  padding: 0.6rem 1.25rem;
}

/* Branch CTAs: outline style (light bg, colored text/border). Start outreach = orange, Share your story = blue. */
.wyc-branch-content__ctas .btn.btn--primary {
  background: var(--color-bg-card, #fff);
  border: 1px solid var(--color-hero-cta, #ed7a0a);
  color: var(--color-hero-cta, #ed7a0a);
}

.wyc-branch-content__ctas .btn.btn--primary:hover {
  background: #fff4e6;
  border-color: var(--color-hero-cta-hover, #d96b09);
  color: var(--color-hero-cta-hover, #d96b09);
}

.wyc-branch-content__ctas .btn.btn--primary.why-you-care-link {
  color: var(--color-hero-cta, #ed7a0a);
  text-decoration: none;
}

.wyc-branch-content__ctas .btn.btn--story {
  background: var(--color-bg-card, #fff);
  border: 1px solid var(--color-link-action, #1a73e8);
  color: var(--color-link-action, #1a73e8);
}

.wyc-branch-content__ctas .btn.btn--story:hover {
  background: #e8f0fe;
  border-color: var(--color-link-action-hover, #1765cc);
  color: var(--color-link-action-hover, #1765cc);
}

.wyc-branch-content__secondary {
  margin: 0;
}

.wyc-branch-content__nudge {
  margin-bottom: 1rem;
}

.wyc-branch-content__results {
  margin-bottom: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg-card, #fafafa);
  border: 1px solid var(--color-border-light, #e5e5e5);
  border-radius: 8px;
}

.wyc-branch-content__results-empty {
  font-size: var(--font-size-body, 1rem);
  color: var(--color-text-secondary, #555);
  margin: 0 0 0.75rem 0;
}

.wyc-branch-content__footer {
  margin: 0 0 0.25rem 0;
  font-size: var(--font-size-xs, 0.8125rem);
  color: var(--color-text-muted, #777);
}

.wyc-branch-content__change {
  margin: 0 0 1rem 0;
  font-size: 0.8125rem;
}

.wyc-branch-content__change .kei-poll-change-btn {
  font-size: inherit;
  color: var(--color-text-muted, #777);
}

.wyc-branch-content__share {
  margin: 0 0 0.75rem 0;
}

.wyc-branch-content__share .kei-poll-story-cta__hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted, #777);
}

.wyc-branch-content__after-change-cta {
  margin-top: 1.5rem;
}

.wyc-branch-content__after-change-cta .wyc-branch-content__ctas {
  margin-bottom: 0;
}

/* Primary CTA after change-answer: solid so it stands out as the main next step. */
.wyc-branch-content__after-change-cta .wyc-branch-content__ctas .btn.btn--primary {
  background: var(--color-hero-cta, #ed7a0a);
  border-color: var(--color-hero-cta, #ed7a0a);
  color: #fff;
  font-size: 1.125rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

.wyc-branch-content__after-change-cta .wyc-branch-content__ctas .btn.btn--primary:hover {
  background: var(--color-hero-cta-hover, #d96b09);
  border-color: var(--color-hero-cta-hover, #d96b09);
  color: #fff;
}

.wyc-branch-content__after-change-cta .wyc-branch-content__ctas .btn.btn--primary.why-you-care-link {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .wyc-inline-poll__step2:not(.wyc-inline-poll__step2--hidden) {
    animation: none;
  }

  .wyc-branch-content {
    animation: none;
  }
}

.why-you-care-two-col-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl, 1.25rem);
}

.why-you-care-col {
  min-width: 0;
}

@media (min-width: 640px) {
  .why-you-care-two-col-inner {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .why-you-care-col--poll {
    flex: 0 1 320px;
  }

  .why-you-care-col--reasons {
    flex: 1 1 50%;
    min-width: 0;
  }
}

.why-you-care-title {
  font-size: var(--font-size-h1, 1.6rem);
  font-weight: 700;
  color: var(--color-text, #222);
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
  line-height: var(--line-height-tight, 1.25);
}

/* Home: section title at top of block, centered. */
.why-you-care-title--section {
  text-align: center;
  margin-bottom: 1.5rem;
}

.page-home .why-you-care-title--section {
  margin-bottom: 1.75rem;
}

.page-home .why-you-care-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1.25rem;
}

/* Subheading above the three reasons (smaller than section title). */
.why-you-care-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text, #222);
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.01em;
  line-height: var(--line-height-tight, 1.25);
}

.page-home .why-you-care-subtitle {
  font-size: 1.2rem;
  margin-bottom: 0.875rem;
}

.why-you-care-teaser-list {
  margin: 0 0 1rem 0;
  padding: 0 0 0 1.5em;
  font-size: var(--font-size-body, 1rem);
  color: var(--color-text-secondary, #555);
  line-height: 1.75;
}

.why-you-care-teaser-item {
  margin-bottom: 0.5em;
}

.why-you-care-teaser-item:last-child {
  margin-bottom: 0;
}

.why-you-care-intro,
.why-you-care-voice {
  font-size: var(--font-size-body, 1rem);
  color: var(--color-text-secondary, #555);
  line-height: 1.75;
  margin: 0 0 1rem 0;
}

/* Home: larger teaser list and CTA so they read at a glance */
.page-home .why-you-care-teaser-list {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.page-home .why-you-care-teaser-item {
  margin-bottom: 0.6em;
}

.page-home .why-you-care-cta {
  margin: 1.5rem 0 0 0;
  font-size: 1.2rem;
  line-height: 1.7;
}

.why-you-care-voice {
  margin-bottom: 0;
}

.why-you-care-cta {
  margin: 1.5rem 0 0 0;
  font-size: var(--font-size-body, 1rem);
  line-height: 1.7;
}

.why-you-care-link {
  color: var(--color-link, #0645ad);
  text-decoration: underline;
  font-weight: 500;
}

.page-home .why-you-care-link {
  font-size: inherit;
}

.why-you-care-link:hover {
  text-decoration: none;
}

.why-you-care-link:focus {
  outline: 2px solid var(--color-border-focus, #333);
  outline-offset: 2px;
}

/* The Issue: subsection styling when inside brief_main */
.why-you-care--full .why-you-care-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.why-you-care--full .why-you-care-intro,
.why-you-care--full .why-you-care-voice {
  margin-bottom: 0.5rem;
}

/* ── Marquee: scrolling strip of images (affected kei owners). Duplicate strip = seamless loop. ── */
.why-you-care-marquee {
  margin-top: var(--space-2xl, 1.5rem);
  overflow: hidden;
  width: 100%;
  padding: var(--space-md, 12px) 0;
  position: relative;
}

/* Pause on hover (mouse) and when paused via control (keyboard/screen reader). */
.why-you-care-marquee:hover .why-you-care-marquee-track,
.why-you-care-marquee.why-you-care-marquee--paused .why-you-care-marquee-track {
  animation-play-state: paused;
}

.why-you-care-marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: why-you-care-marquee-scroll 50s linear infinite;
}

.why-you-care-marquee-strip {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg, 16px);
  padding: 0 var(--space-lg, 16px);
  flex-shrink: 0;
}

.why-you-care-marquee-item {
  flex-shrink: 0;
  margin: 0;
  width: 280px;
  overflow: hidden;
}

.why-you-care-marquee-item img {
  display: block;
  width: 100%;
  height: 187px;
  object-fit: cover;
  vertical-align: middle;
}

/* Text-only marquee card (e.g. would buy if legal statement). Same width as image cards. */
.why-you-care-marquee-item--text {
  display: flex;
  flex-direction: column;
  min-height: 187px;
  padding: var(--space-md, 12px);
  background: var(--color-bg-card, #fff);
  border: 1px solid var(--color-border-light, #e5e5e5);
  border-radius: 8px;
}

.why-you-care-marquee-item--text .why-you-care-marquee-item__statement {
  flex: 1;
  margin: 0 0 var(--space-sm, 8px);
  font-size: var(--font-size-xs, 0.8125rem);
  line-height: 1.4;
  color: var(--color-text, #222);
}

.why-you-care-marquee-item--text .why-you-care-marquee-caption {
  padding: 0;
}

@media (min-width: 640px) {
  .why-you-care-marquee-item--text {
    min-height: 213px;
  }
}

.why-you-care-marquee-caption {
  margin: 0;
  padding: var(--space-sm, 8px) var(--space-md, 12px) var(--space-md, 12px);
  font-size: var(--font-size-xs, 0.8125rem);
  line-height: 1.35;
  color: var(--color-text-secondary, #555);
}

.why-you-care-marquee-location {
  display: block;
  margin-top: 0.5em;
  font-size: 0.9em;
  color: var(--color-text-muted, #777);
}

@media (min-width: 640px) {
  .why-you-care-marquee-item {
    width: 320px;
  }

  .why-you-care-marquee-item img {
    height: 213px;
  }
}

@keyframes why-you-care-marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Pause control: visually hidden until keyboard focus (tabbing); hidden when motion is already reduced */
.why-you-care-marquee-control-wrap {
  position: absolute;
  top: var(--space-md, 12px);
  right: var(--space-md, 12px);
  z-index: 1;
}

/* Visually hidden until keyboard focus; then shows as a normal pause/resume button. */
.why-you-care-marquee-control {
  padding: var(--space-sm, 8px) var(--space-md, 12px);
  font-size: var(--font-size-xs, 0.8125rem);
  font-weight: 500;
  color: var(--color-text-secondary, #555);
  background: var(--color-bg-card, #fff);
  border: 1px solid var(--color-border-light, #e5e5e5);
  border-radius: 6px;
  cursor: pointer;
  position: absolute;
  /* Visually hide but keep in tab order; clip-path works where clip is deprecated. */
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}

.why-you-care-marquee-control:hover {
  color: var(--color-text, #222);
  border-color: var(--color-border, #ccc);
}

/* When tabbed to: show as a normal play/pause button with visible focus ring. */
.why-you-care-marquee-control:focus-visible {
  width: auto;
  height: auto;
  margin: 0;
  padding: var(--space-sm, 8px) var(--space-md, 12px);
  overflow: visible;
  clip-path: none;
  white-space: normal;
  border-width: 1px;
  outline: 2px solid var(--color-border-focus, #333);
  outline-offset: 2px;
}

/* Respect reduced motion: no auto-scroll; show first strip only, allow manual horizontal scroll; hide pause control */
@media (prefers-reduced-motion: reduce) {
  .why-you-care-marquee-control-wrap {
    display: none;
  }

  .why-you-care-marquee-track {
    animation: none;
  }

  .why-you-care-marquee-strip--dup {
    display: none;
  }

  .why-you-care-marquee {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .why-you-care-marquee-track {
    padding-right: var(--space-2xl, 24px);
  }
}