/* Cable Finder block styles — P1-8 signature blue block
   Full-bleed #0048FF with white type + USB-C connector line motif
*/

.cable-finder {
  padding: 5rem 0;
  min-height: 60vh;
  background-color: #0048FF;
  background-image:
    /* USB-C connector line motif — repeating cable cross-section at ~6% white opacity */
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.04) 0px,
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.04) 0px,
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 80px
    );
  color: #ffffff;
  position: relative;
  overflow: hidden;
  /* Break out of .is-layout-constrained parent to go full-bleed */
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Subtle large connector oval motif at corner */
.cable-finder::before {
  content: '';
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 220px;
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: 40px;
  pointer-events: none;
}

.cable-finder::after {
  content: '';
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  height: 150px;
  border: 2px solid rgba(255,255,255,0.05);
  border-radius: 30px;
  pointer-events: none;
}

/* Allow .cable-finder to escape its constrained parent */
.entry-content:has(.cable-finder),
.is-layout-constrained:has(.cable-finder),
article:has(.cable-finder) {
  overflow: visible !important;
}

.cable-finder .container { max-width: 720px; position: relative; z-index: 1; margin: 0 auto; padding: 0 1.5rem; }

.cable-finder__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: #ffffff;
}

.cable-finder__subtitle {
  color: rgba(255,255,255,0.8);
  margin: 0.5rem 0 1.75rem 0;
  font-size: 1.0625rem;
}

.cable-finder__progress {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.cable-finder__progress span {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

.cable-finder__progress span.is-active {
  background: #ffffff;
  color: #0048FF;
}

.cable-finder__step { display: none; }
.cable-finder__step.is-active { display: block; }

.cable-finder__step h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: #ffffff;
}

.cable-finder__choices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cable-finder__choices button {
  text-align: left;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md, 0.5rem);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  color: #ffffff;
  font-family: inherit;
}

.cable-finder__choices button:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-1px);
}

.cable-finder__choices button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.cable-finder__why {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.cable-finder__cta {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-weight: 700;
  border-radius: var(--radius-md, 0.5rem);
  text-decoration: none;
  background: #ffffff;
  color: #0048FF;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cable-finder__cta:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.cable-finder__cta:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.cable-finder__fallback {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

.cable-finder__fallback a {
  color: rgba(255,255,255,0.9);
}

.cable-finder__restart {
  margin-top: 2rem;
  background: none;
  border: 0;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
}

.cable-finder__restart:hover {
  color: #ffffff;
}

.cable-finder__restart:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .cable-finder__choices button,
  .cable-finder__cta {
    transition: none !important;
    transform: none !important;
  }
}
