/* ---------------------------------------------------------------------
 * THE TWO CARD ROWS OF THE IT SECURITY PAGE (post 21300)
 *
 * The page carries the same row of three cards twice: the steps of the
 * work (.ccsecp-steps, Audit / Hardening / Verification) and the papers
 * that come out of it (.ccsecp-deliv, report / plan / evidence). Both
 * rows are built from the same two classes, .ccsec-steps for the grid
 * and .ccsec-step for a card, and the page stylesheet in the Elementor
 * page settings draws them.
 *
 * What that stylesheet cannot do is corrected here.
 *
 * 1. THE CARD WAS DRAWING TWO FRAMES
 *    Every container of the page carries a ::before for its background
 *    overlay, and Elementor hands that pseudo element a full set of box
 *    values: left, width, height and the four border widths. The page
 *    stylesheet uses the same pseudo for the ghost numeral and sets only
 *    right and top on it. The border widths it does not set stayed, so
 *    the pseudo drew a second one pixel frame in the card colour, as
 *    wide as the whole card and ending 38px above its foot. That is the
 *    inner box that looked like a smaller card sitting inside the card.
 *
 * 2. THE GHOST NUMERAL SAT IN THE WRONG CORNER
 *    Same cause. With left and width both present, right is ignored, the
 *    box is as wide as the card, and the digits are drawn at its left
 *    end, behind the headline; top: -38px then pushed them out of the
 *    clipped card and cut their upper third off.
 *
 *    Both are fixed by handing the box back: left, bottom, width and
 *    height on auto and border on zero. What is left is a box as wide as
 *    its digits, which can then be put where it belongs. The same repair
 *    is in assets/ccx-ideas.css for the idea cards of the home page, and
 *    the reasoning is written out there in full.
 *
 * 3. THE ROWS HAD NO EFFECT ON THEM
 *    Both rows now take the rim glow and the soft interior light through
 *    their class names. The card has to stop clipping for the aura to be
 *    seen, which it can now that the numeral stays inside the frame by
 *    itself.
 *
 * 4. THE STEPS OPEN WITH AN ICON, THE PAPERS WITH A PHOTOGRAPH
 *    A rounded orange tile above the headline on the three steps, a band
 *    running the full width of the card at the head of the three papers.
 *    Both are widgets put in by the build script; everything that makes
 *    them look built in is here.
 *
 * SPECIFICITY
 * The page stylesheet writes .elementor-21300 .ccsec-step, which counts
 * two classes. Every rule here that has to beat it repeats a class name,
 * and the two rows are named as well, which keeps the whole file off the
 * timeline of the same name on the home page (.ccsec-tl .ccsec-step in
 * assets/ccx-security.css).
 * ------------------------------------------------------------------ */

/* ---------------------------------------------------------------------
 * MEASUREMENTS
 *
 * The first four are read from the Elementor settings of the card and
 * are not changed here: the photograph has to reach past the padding to
 * sit flush against the frame and the numeral has to be placed from the
 * height of that photograph, so both need the numbers in a form a
 * calculation can use.
 * ------------------------------------------------------------------ */
.elementor-21300 .ccsecp-steps .ccsec-step,
.elementor-21300 .ccsecp-deliv .ccsec-step {
  --cclp-pad-top: 28px;
  --cclp-pad-side: 26px;
  --cclp-gap: 10px;
  --cclp-radius: 15px;          /* the 16px of the card less its 1px frame */

  /* The height of the photograph band on the three papers. Fixed rather
   * than a ratio: below 1025px the third card runs the full width of the
   * grid while the other two are half of it, and a ratio would give that
   * card a band twice as tall as its neighbours. */
  --cclp-img-h: 168px;

  /* The numeral is placed by its box, and what a reader sees are the
   * digits inside it. In Plus Jakarta Sans at this weight the digits
   * start about 0.14 of the type size below the top of that box, which
   * is why every placement below subtracts that share: it keeps the same
   * visible distance when the type size changes with the breakpoint. */
  --cclp-num-size: 128px;
  --cclp-num-lead: calc(var(--cclp-num-size) * 0.14);
  --cclp-num-right: 18px;
  --cclp-num-op: 0.7;

  /* The aura of the rim. The cards stand 24px apart, so it stops in the
   * middle of that gutter instead of reaching into the neighbour. */
  --gc-pad: 18px;
}

/* The steps have nothing above the headline but the icon tile, and the
 * numeral sits in the band beside it: 18px below the upper edge of the
 * card, which is the one strip no line of text reaches. */
.elementor-21300 .ccsecp-steps .ccsec-step {
  --cclp-num-top: calc(18px - var(--cclp-num-lead));
}

/* On the papers that strip is the photograph, so the numeral moves below
 * it. Written as a sum from the height of the band, so changing the band
 * moves the numeral with it. */
.elementor-21300 .ccsecp-deliv .ccsec-step {
  --cclp-num-top: calc(var(--cclp-img-h) + 10px - var(--cclp-num-lead));
}

/* ---------------------------------------------------------------------
 * THE CARD
 *
 * The page stylesheet clips the card, which was the only way to keep the
 * numeral from hanging out of it. The numeral stays inside by itself now
 * and nothing else on the card reaches past its edge, while the aura of
 * the rim lies 18px outside it and was being cut at the frame. So the
 * clip goes. The photograph is held inside its own widget instead, which
 * carries the rounded upper corners.
 * ------------------------------------------------------------------ */
.elementor-21300 .ccsecp-steps .ccsec-step.ccsec-step.ccsec-step,
.elementor-21300 .ccsecp-deliv .ccsec-step.ccsec-step.ccsec-step {
  overflow: visible;
}

/* The interior light lies under a paragraph of body text and a list, so
 * the area glow is taken down from the shared soft variant: at its usual
 * strength the whole card lifts while the pointer rests on it and the
 * type loses contrast. The pool around the pointer keeps its strength,
 * which is the part a visitor is meant to notice. */
.elementor-21300 .ccsecp-steps .ccsec-step.mmrb-glowcard,
.elementor-21300 .ccsecp-deliv .ccsec-step.mmrb-glowcard {
  --gc-soft: hsl(212 92% 62% / 1.5%);
}

/* ---------------------------------------------------------------------
 * THE GHOST NUMERAL
 *
 * The box is handed back first, then placed. The fill runs from a
 * brighter top to a fainter foot rather than one flat value: the upper
 * edge is what makes the numeral readable on the card, the lower edge
 * keeps it from competing with the headline underneath. The whole thing
 * lifts a little while the pointer is on the card.
 * ------------------------------------------------------------------ */
.elementor-21300 .ccsecp-steps .ccsec-step.ccsec-step::before,
.elementor-21300 .ccsecp-deliv .ccsec-step.ccsec-step::before {
  top: var(--cclp-num-top);
  right: var(--cclp-num-right);
  left: auto;
  bottom: auto;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  z-index: 0;
  font-size: var(--cclp-num-size);
  line-height: 1;
  opacity: var(--cclp-num-op);
  mix-blend-mode: normal;
  background-color: transparent;
  background-image: linear-gradient(180deg,
    rgba(255, 255, 255, 0.105) 0%,
    rgba(255, 255, 255, 0.075) 45%,
    rgba(255, 255, 255, 0.042) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.35s ease-out;
}
.elementor-21300 .ccsecp-steps .ccsec-step.ccsec-step:hover::before,
.elementor-21300 .ccsecp-deliv .ccsec-step.ccsec-step:hover::before {
  opacity: 1;
}

/* The first card of each row ends on a one, and a one carries a good
 * deal of white space of its own on the right. Aligned by the box its
 * digits would stand clear of the edge by more than those of the other
 * two, so the inset is taken back by that amount and all three numerals
 * end on the same line. */
.elementor-21300 .ccsecp-steps .ccsec-s1,
.elementor-21300 .ccsecp-deliv .ccsec-d1 {
  --cclp-num-right: 8px;
}

/* ---------------------------------------------------------------------
 * THE ICON TILE ON THE THREE STEPS
 *
 * A rounded orange tile above the headline, the same shape the service
 * cards put on their round icons, squared off here because the cards of
 * this page are square shouldered. The mark inside is a line drawing at
 * two pixels, stroked in the colour the tile inherits, so a single
 * colour value governs the whole set.
 * ------------------------------------------------------------------ */
.elementor-21300 .ccsecp-steps .ccsecp-ico > .elementor-widget-container {
  margin: 0 0 2px;
  line-height: 0;
}
.elementor-21300 .ccsecp-steps .ccsecp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #FFFFFF;
  background: linear-gradient(145deg, #FF8E2B 0%, #CE5904 100%);
  box-shadow:
    0 4px 11px rgba(206, 89, 4, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transition: transform 0.35s ease-out, box-shadow 0.35s ease-out;
}
.elementor-21300 .ccsecp-steps .ccsec-step:hover .ccsecp-badge {
  transform: translateY(-1px);
  box-shadow:
    0 6px 15px rgba(206, 89, 4, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.elementor-21300 .ccsecp-steps .ccsecp-badge svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* ---------------------------------------------------------------------
 * THE PHOTOGRAPH ON THE THREE PAPERS
 *
 * Each card opens with a picture of the paper it describes. Flush with
 * the frame, so it has to leave the padding of the card: it is pulled
 * out by the padding it was given on three sides and made wider by the
 * two side paddings it no longer sits inside.
 *
 * Four class names, and this time not against the page stylesheet but
 * against Elementor itself, which caps every widget inside a container
 * at the width of that container:
 *
 *   .elementor.elementor .e-con > .elementor-widget { max-width: 100%; }
 *
 * A widget meant to be wider than the space between the paddings has to
 * weigh more than that rule, and it counts four class names.
 * ------------------------------------------------------------------ */
.elementor-21300 .ccsecp-deliv .ccsec-step > .ccsecp-shot.ccsecp-shot.ccsecp-shot.ccsecp-shot {
  width: calc(100% + var(--cclp-pad-side) * 2);
  max-width: none;
  margin: calc(var(--cclp-pad-top) * -1) calc(var(--cclp-pad-side) * -1) 0;
  align-self: stretch;
}

/* The rounded upper corners and the clip live on the widget, not on the
 * card, so the card can keep its overflow visible for the rim aura. */
.elementor-21300 .ccsecp-deliv .ccsecp-shot > .elementor-widget-container {
  position: relative;
  margin: 0;
  overflow: hidden;
  line-height: 0;
  border-radius: var(--cclp-radius) var(--cclp-radius) 0 0;
}

/* A hairline closes the band against the card, the same line the
 * questions on this page draw between two entries. */
.elementor-21300 .ccsecp-deliv .ccsecp-shot > .elementor-widget-container::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0) 100%);
}

/* The three pictures were taken in different light, and a row only reads
 * as one set if the three panels weigh the same, so all three are held
 * to one correction. The crop is what varies with the width of the card;
 * object-fit trims what does not fit. */
.elementor-21300 .ccsecp-deliv .ccsecp-shot.ccsecp-shot img {
  display: block;
  width: 100%;
  height: var(--cclp-img-h);
  object-fit: cover;
  border-radius: 0;
  filter: saturate(0.92) brightness(0.88) contrast(1.04);
  transform: scale(1);
  transition: transform 0.5s ease-out, filter 0.35s ease-out;
}
.elementor-21300 .ccsecp-deliv .ccsec-step:hover .ccsecp-shot.ccsecp-shot img {
  transform: scale(1.035);
  filter: saturate(0.98) brightness(0.96) contrast(1.04);
}

/* ---------------------------------------------------------------------
 * THE BULLET LINES
 *
 * The page stylesheet draws them and keeps doing so. Two values are
 * taken up: the lines stood at 48 percent white, which is thin against
 * the card at this size, and they sat a little tight for four entries
 * that each run to two lines.
 * ------------------------------------------------------------------ */
.elementor-21300 .ccsecp-steps .ccsecp-list.ccsecp-list {
  gap: 10px;
}
.elementor-21300 .ccsecp-steps .ccsecp-list.ccsecp-list li {
  color: #FFFFFF8F;
  line-height: 22px;
}

/* ---------------------------------------------------------------------
 * NARROWER SCREENS
 *
 * At 1024px the grid falls to two columns and the third card runs the
 * full width, which makes it wide enough to carry the numeral of the
 * two above it unchanged; only the type comes down a step.
 *
 * Below 768px everything is one column. The page stylesheet takes the
 * numeral away there (content: none), which leaves the head of the card
 * flat. It comes back small instead: a numeral has to be named per card
 * to exist at all, so all six are named again.
 * ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .elementor-21300 .ccsecp-steps .ccsec-step,
  .elementor-21300 .ccsecp-deliv .ccsec-step {
    --cclp-num-size: 116px;
  }
}

@media (max-width: 767px) {
  .elementor-21300 .ccsecp-steps .ccsec-step,
  .elementor-21300 .ccsecp-deliv .ccsec-step {
    --cclp-pad-top: 22px;
    --cclp-pad-side: 20px;
    --cclp-img-h: 150px;
    --cclp-num-size: 64px;
    --cclp-num-right: 14px;
    --cclp-num-op: 0.62;
  }
  .elementor-21300 .ccsecp-steps .ccsec-s1,
  .elementor-21300 .ccsecp-deliv .ccsec-d1 {
    --cclp-num-right: 8px;
  }

  .elementor-21300 .ccsecp-steps .ccsec-s1.ccsec-s1::before { content: "01"; }
  .elementor-21300 .ccsecp-steps .ccsec-s2.ccsec-s2::before { content: "02"; }
  .elementor-21300 .ccsecp-steps .ccsec-s3.ccsec-s3::before { content: "03"; }
  .elementor-21300 .ccsecp-deliv .ccsec-d1.ccsec-d1::before { content: "01"; }
  .elementor-21300 .ccsecp-deliv .ccsec-d2.ccsec-d2::before { content: "02"; }
  .elementor-21300 .ccsecp-deliv .ccsec-d3.ccsec-d3::before { content: "03"; }

  .elementor-21300 .ccsecp-steps .ccsecp-badge {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }
  .elementor-21300 .ccsecp-steps .ccsecp-badge svg {
    width: 20px;
    height: 20px;
  }
}

/* A pointer is the only thing that moves any of this, so a visitor who
 * asks for less motion keeps the colour and loses the travel. */
@media (prefers-reduced-motion: reduce) {
  .elementor-21300 .ccsecp-steps .ccsecp-badge,
  .elementor-21300 .ccsecp-deliv .ccsecp-shot.ccsecp-shot img {
    transition: none;
  }
  .elementor-21300 .ccsecp-steps .ccsec-step:hover .ccsecp-badge {
    transform: none;
  }
  .elementor-21300 .ccsecp-deliv .ccsec-step:hover .ccsecp-shot.ccsecp-shot img {
    transform: none;
  }
}

/* --------------------------------------------------------------------
 * r17: the icon badge inside a timeline step.
 *
 * The three step cards became the upright timeline in round 16 and the
 * card badges were left out on purpose there. Lars wants the pictures
 * back, richer than the old inline SVGs: the generated tiles (orange
 * multi-stop gradient, white line icon, soft gloss) sit as the first
 * child of every cctl-item. The numbered tile on the line stays the
 * mark of the step; this badge is the picture of what the step does.
 * -------------------------------------------------------------------- */
.ccsectl .cctl-item .elementor-widget-image.ccsec-tlicon {
  width: 44px;
  margin-bottom: 10px;
}
.ccsectl .cctl-item .ccsec-tlicon img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(206, 89, 4, 0.35);
}
@media (max-width: 767px) {
  .ccsectl .cctl-item .elementor-widget-image.ccsec-tlicon { width: 38px; margin-bottom: 8px; }
  .ccsectl .cctl-item .ccsec-tlicon img { width: 38px; height: 38px; border-radius: 10px; }
}
