/* =========================================================
   Sierra Competitor Comparison Table
   ========================================================= */

.cc-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 24px 0;
  padding: 15px;
}

.cc-card {
  position: relative;
  width: min(980px, 100%);
  border-radius: 20px;
  padding: 26px;
  background: linear-gradient(180deg, #08123c 0%, #0b205f 100%);
  box-shadow: 0 18px 48px rgba(0,0,0,0.18);
}

.cc-cta {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  /* background: #f7922e; */
  background:
    radial-gradient(120% 140% at 45% 15%,
      rgba(255,255,255,0.16) 0%,
      rgba(255,255,255,0.08) 35%,
      rgba(255,255,255,0) 62%
    ),
    linear-gradient(90deg,
      #d86c1e 0%,
      #ea8224 28%,
      #f09a2d 58%,
      #f2ab35 82%,
      #f3b63c 100%
    );
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 10px 10px 0px 0px !important;
  padding: 10px 22px;
  font-size: 13px;
}

/* Grid */
.cc-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr 1.05fr;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}

/* Header */
.cc-head {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  min-height: 68px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
}

.cc-head--feature { font-weight: 800; }

.cc-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-brand__logo {
  display: block;
  max-height: 28px;
  width: auto;
}

/* Ensure Sierra header logo is visible */
.cc-brand__text .site-header__logo {
  display: block;
  width: 200px;
  height: 24px;
}

/* Body cells */
.cc-cell {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.cc-cell--feature {
  background: rgba(0,0,0,0.18);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

/* Left align content cells */
.cc-cell--sierra,
.cc-cell--competitor {
  justify-content: flex-start;
}

/* Inner layout */
.cc-cell-inner {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
}

/* Text */
.cc-text {
  margin: 0;
  text-align: left;
  font-size: 13px;
  line-height: 1.25;
  color: rgba(255,255,255,0.92);
  max-width: 360px;
}

/* =========================================================
   ICONS (hardened)
   ========================================================= */

/* Container */
.cc-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1 !important; /* prevent inherited opacity */
}

/* Color by type */
.cc-icon--good { color: #2ecc71; }
.cc-icon--warn { color: #f5b301; }
.cc-icon--bad  { color: #ff5a5f; }

/* Ensure SVG is not being faded by global styles */
.cc-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  opacity: 1 !important;
}

/* Force currentColor painting, but respect your inline opacities on the background shapes */
.cc-icon svg circle,
.cc-icon svg path {
  fill: currentColor !important;
  stroke: none !important;
}

/* Make sure the glyph (check/x/!) is fully visible even if some theme CSS sets opacity on paths */
.cc-icon svg path { opacity: 1 !important; }

/* Keep the background shapes subtle using their inline opacity attributes (circle/triangle already set inline) */

/* Remove last row divider */
.cc-cell:nth-last-child(-n + 3) { border-bottom: none; }

/* =========================================================
   OPTIONAL ZEBRA STRIPING (add .cc-zebra on .cc-wrap)
   ========================================================= */
.cc-zebra .cc-cell:nth-child(6n + 1),
.cc-zebra .cc-cell:nth-child(6n + 2),
.cc-zebra .cc-cell:nth-child(6n + 3) {
  background: rgba(255,255,255,0.08);
}
.cc-zebra .cc-cell:nth-child(6n + 4),
.cc-zebra .cc-cell:nth-child(6n + 5),
.cc-zebra .cc-cell:nth-child(6n + 6) {
  background: rgba(255,255,255,0.04);
}
.cc-zebra .cc-cell--feature { background: rgba(0,0,0,0.22); }

/* =========================================================
   MOBILE BRAND BADGES (added in render code above)
   ========================================================= */

.cc-mobile-brand {
  display: none; /* desktop off */
}

/* =========================================================
   Responsive: Better mobile layout
   Each feature becomes a section header + two rows (Sierra + Competitor)
   ========================================================= */

@media (max-width: 768px) {
  .cc-card { padding: 18px 14px; }

  .cc-cta { top: -20px; }

  .cc-grid {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  /* Hide desktop headers */
  .cc-head { display: none; }

  /* Feature row as section header */
  .cc-cell--feature {
    justify-content: center;
    text-align: center;
    background: rgba(0,0,0,0.28);
    padding: 14px 12px;
  }

  /* Stack Sierra/Competitor cells under each feature */
  .cc-cell {
    justify-content: flex-start;
    padding: 12px;
  }

  .cc-cell--sierra { background: rgba(255,255,255,0.06); }
  .cc-cell--competitor { background: rgba(255,255,255,0.03); }

  /* Show brand badge column */
  .cc-mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    flex: 0 0 88px;
    margin-right: 12px;
    padding: 10px 8px;
    border-radius: 10px;
    background: rgba(0,0,0,0);
  }

  .cc-mobile-brand__logo {
    display: block;
    width: 70px;
    height: 18px;
    object-fit: contain;
  }

  .cc-mobile-brand__text {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.80);
    line-height: 1.1;
    text-align: center;
  }

  /* Sierra mobile svg logo sizing */
  .cc-mobile-brand__sierra {
    width: 76px;
    height: 18px;
    display: block;
  }

  /* Icons slightly larger on mobile */
  .cc-icon,
  .cc-icon svg {
    width: 24px;
    height: 24px;
  }
  .cc-icon { flex: 0 0 24px; }

  .cc-text { max-width: none; }
}

