/* ======================================================
   ALPHA GRADING – CARD CENTERING TOOL (Frontend Display)
   ====================================================== */

/* --- Container --- */

.card-report {
	padding: 30px 0;	
}

.cct-display-wrapper {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 30px;
  margin: 40px auto 20px;
  text-align: center;
}

.cct-side-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 350px;
/*   width: 100%; */
}

.cct-side-display h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #231f20;
}

/* --- Main measuring area --- */
.cct-measure {
  position: relative;
  display: inline-block;
  width: 350px;
  max-width: 350px; /* optional cap to prevent overflow */
}

.cct-measure img.cct-fluid-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ======================================================
   LINES (Refined for frontend parity with admin)
   ====================================================== */

.cct-line {
  position: absolute;
  background: transparent;
  pointer-events: none;
  z-index: 5;
  box-sizing: border-box;
  will-change: left, top;
}

/* --- Vertical lines --- */
.cct-line.outside-left,
.cct-line.inside-left,
.cct-line.inside-right,
.cct-line.outside-right {
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px dashed #23ffd3; /* thinner: match admin */
}

/* --- Horizontal lines --- */
.cct-line.outside-top,
.cct-line.inside-top,
.cct-line.inside-bottom,
.cct-line.outside-bottom {
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px dashed #23ffd3; /* thinner: match admin */
}

/* --- Outside lines: Magenta --- */
.cct-line.outside-left,
.cct-line.outside-right,
.cct-line.outside-top,
.cct-line.outside-bottom {
  border-color: #ec008c;
}

/* --- Hide invalid (NaN) lines --- */
.cct-line[style*="NaN"] {
  display: none !important;
}

/* --- Glow cleanup (so it doesn’t double-thicken) --- */
.cct-line::before {
  content: none; /* removed blur glow entirely for clean lines */
}

/* ======================================================
   SUMMARY TEXT
   ====================================================== */
.cct-summary {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #231f20;
  text-align: center;
  max-width: 600px;
}

.cct-summary-text {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.cct-grade strong {
  color: #000;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 768px) {
  .cct-display-wrapper {
    flex-direction: column;
    gap: 2.5rem;
  }

  .cct-side-display {
    max-width: 100%;
  }
}
