/* =====================================================================
   SHIM-ME Hub — How It Works section (Bucket B)
   Scoped to body #shim-how per §0 rule 3.
   Color/font props use !important to beat Total's late inline styles.
   Layout props (display, grid, position) are left without !important.
   ===================================================================== */

/* ---- Section chrome ---- */
/* padding/background handled by WPBakery row; border-bottom is ours */
body #shim-how {
  border-bottom: 1px solid var(--shim-line);
}

/* ---- Head ---- */
body #shim-how .shim-how__head {
  margin-bottom: 56px;
  max-width: 720px;
}

/* ---- Steps grid — 3 columns, bordered ---- */
body #shim-how .shim-how__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--shim-line);
  background: var(--shim-bg-3);
}

body #shim-how .shim-how__step {
  padding: 36px 32px 0;
  border-right: 1px solid var(--shim-line);
  display: flex;
  flex-direction: column;
}

body #shim-how .shim-how__step:last-child {
  border-right: 0;
}

/* ---- Step number ---- */
body #shim-how .shim-how__step-n {
  font-family: var(--shim-display) !important;
  font-weight: 900 !important;
  font-size: 56px !important;
  line-height: 1;
  color: var(--shim-red) !important;
  margin-bottom: 18px;
  display: block;
}

/* ---- Step title (h3) ---- */
body #shim-how .shim-how__step h3 {
  font-family: var(--shim-display) !important;
  font-weight: 700 !important;
  font-size: 26px !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.005em !important;
  color: var(--shim-text) !important;
  margin: 0 0 10px;
}

/* ---- Step body ---- */
body #shim-how .shim-how__step p {
  font-family: var(--shim-body) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--shim-text-dim) !important;
  margin: 0 0 28px;
}

/* ---- Artwork container (bottom of each step, full-bleed within card) ---- */
body #shim-how .shim-how__step-art {
  flex: 1;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  margin: 0 -32px;
  background: #0A0A0A;
  border-top: 1px solid var(--shim-line);
}

/* ================================================================
   Step 1 artwork — Ruler
   ================================================================ */
body #shim-how .shim-ruler-art {
  width: 80%;
  position: relative;
  padding: 24px 0;
}

body #shim-how .shim-ruler-art__line {
  height: 2px;
  background: var(--shim-red);
  position: relative;
}

/* End caps */
body #shim-how .shim-ruler-art__line::before,
body #shim-how .shim-ruler-art__line::after {
  content: '';
  position: absolute;
  top: -6px;
  width: 2px;
  height: 14px;
  background: var(--shim-red);
}
body #shim-how .shim-ruler-art__line::before { left: 0; }
body #shim-how .shim-ruler-art__line::after  { right: 0; }

/* Tick marks (positioned absolutely via inline style) */
body #shim-how .shim-ruler-art__tick {
  position: absolute;
  top: 6px;
  width: 1px;
  height: 16px;
  background: var(--shim-text-mute);
}

/* Measurement label */
body #shim-how .shim-ruler-art__measure {
  font-family: var(--shim-display) !important;
  font-weight: 700 !important;
  font-size: 24px !important;
  color: #fff !important;
  text-align: center;
  margin-top: 14px;
}

/* ================================================================
   Step 2 artwork — Calc formula
   ================================================================ */
body #shim-how .shim-calc-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

body #shim-how .shim-calc-art__row {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--shim-display) !important;
  font-size: 22px !important;
  color: var(--shim-text-dim) !important;
}

/* The ÷ operator */
body #shim-how .shim-calc-art__row span:nth-child(2) {
  font-family: var(--shim-display) !important;
  color: var(--shim-red) !important;
  font-size: 28px !important;
}

body #shim-how .shim-calc-art__eq {
  font-family: var(--shim-display) !important;
  color: var(--shim-red) !important;
  font-size: 28px !important;
  line-height: 1;
}

body #shim-how .shim-calc-art__out {
  font-family: var(--shim-display) !important;
  font-size: 36px !important;
  font-weight: 800 !important;
  color: #fff !important;
}

/* ================================================================
   Step 3 artwork — Install diagram
   ================================================================ */
body #shim-how .shim-install-art {
  width: 80%;
  height: 110px;
  position: relative;
}

/* Top frame rail */
body #shim-how .shim-install-art__frame {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 18px;
  background: #222;
  border: 1px solid var(--shim-line-2);
}

/* Floor / sill */
body #shim-how .shim-install-art__base {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 8px;
  background: #2a2a2a;
  border-top: 1px solid var(--shim-line-2);
}

/* Individual shim units (positioned via inline style left:%) */
body #shim-how .shim-install-art__shim {
  position: absolute;
  top: 20px;
  bottom: 10px;
  width: 26px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #C8CACE, #6C6E72);
  border: 1px solid #1a1a1a;
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 900px) {
  body #shim-how .shim-how__steps {
    grid-template-columns: 1fr;
  }

  body #shim-how .shim-how__step {
    border-right: 0;
    border-bottom: 1px solid var(--shim-line);
  }

  body #shim-how .shim-how__step:last-child {
    border-bottom: 0;
  }

  body #shim-how .shim-how__step-art {
    min-height: 160px;
  }
}

@media (max-width: 540px) {
  body #shim-how .shim-how__step {
    padding: 28px 24px 0;
  }

  body #shim-how .shim-how__step-art {
    margin: 0 -24px;
  }
}
