/* Get Unstuck Before Christmas - overrides on top of the engine's designed template.
   These live here, not in engine/templates, so a future engine update cannot
   collide with them and nothing has to be re-applied by hand afterwards. */

/* 1. The highlight no longer clips the line above.
   The engine sets the h1 to roughly 1.08 line-height, which is tighter than the
   background box an inline <mark> paints. On a headline that wraps, each line's
   box crept up over the descenders of the line above, so the g, y and p were cut
   in half. More leading, and a cloned box so every wrapped line gets its own
   padding rather than one sliced box. */
/* The engine's own rule is `.dp h1, .dp h2, .dp h3 { line-height: 1.08 }`, so a
   bare `h1` here loses on specificity even though this file loads later. Match
   its shape and it wins on order.
   Note the padding stays horizontal only. Vertical padding would grow the
   background box again and put the overlap straight back: the extra room has to
   come from the leading, not the box. */
.dp h1 {
  line-height: 1.3;
}

/* The background box an inline <mark> paints is set by the font's own metrics,
   not by line-height: here it measures 82px against a 58px type size, which is
   taller than the 75px of leading, so the boxes ran into each other and into the
   line above. Loosening the headline enough to clear 82px would have made it
   limp, so the band itself is painted shorter instead, as a gradient that is
   transparent for the first and last eighth of the box. Layout is untouched,
   and --dp-mark is the engine's own highlight colour, so it still follows the
   brand. */
.dp h1 mark {
  padding-left: 0.2em;
  padding-right: 0.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  border-radius: 3px;
  background-color: transparent;
  background-image: linear-gradient(
    to bottom,
    transparent 12%,
    var(--dp-mark) 12%,
    var(--dp-mark) 88%,
    transparent 88%
  );
}

/* 2. The guarantee strip sat 245px left of centre: it has max-width 720px and no
   auto margins, so it hugged the left edge of a wider container. Kept here in
   case the strip is ever switched back on below. */
.dp-strip {
  margin-left: auto;
  margin-right: auto;
}

/* 3. The guarantee ran four times down the page. It now runs twice: the box beside
   the main call to action, and the full panel lower down, which is where someone
   actually reads the terms.
   Delete either rule below to bring that copy back. */
.dp-strip {
  display: none;
}

.dp-mini-guarantee {
  display: none;
}

/* 4. Quote marks around the testimonials. Done here rather than in the words
   themselves, so the quotes cannot end up doubled if the engine ever adds its
   own, and so the text stays clean to edit. */
.dp-quote p::before {
  content: "\201C";
}

.dp-quote p::after {
  content: "\201D";
}
