/* Cuvvar temporary car insurance guide */

body {
  min-height: 100vh;
  color: #34343a;
  background:
    radial-gradient(circle at 7% 6%, rgba(179, 0, 27, 0.08), transparent 27rem),
    radial-gradient(circle at 94% 34%, rgba(179, 0, 27, 0.045), transparent 24rem),
    #f8f8fa;
}

main {
  width: 100%;
  padding: clamp(28px, 5vw, 58px) 18px clamp(64px, 8vw, 100px);
}

main .centerbox {
  --article-gutter: clamp(24px, 5vw, 58px);
  width: min(100%, 1020px);
  max-width: 1020px !important;
  margin: 0 auto;
  padding: 0 var(--article-gutter) clamp(40px, 6vw, 68px);
  overflow: hidden;
  border: 1px solid rgba(179, 0, 27, 0.11);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 25px 70px rgba(33, 25, 27, 0.11);
}

main .centerbox > h1 {
  position: relative;
  margin: 0 calc(0px - var(--article-gutter)) clamp(30px, 5vw, 48px);
  padding: clamp(64px, 9vw, 98px) clamp(24px, 6vw, 68px) clamp(48px, 7vw, 72px);
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 5%, rgba(255, 255, 255, 0.16), transparent 18rem),
    radial-gradient(circle at 7% 105%, rgba(255, 91, 115, 0.3), transparent 20rem),
    linear-gradient(140deg, var(--brand-red-dark), var(--brand-red) 62%, #ce1c38);
  font-size: clamp(34px, 6vw, 61px);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 1.04;
  text-wrap: balance;
}

main .centerbox > h1::before {
  content: "Cuvvar guide";
  display: block;
  width: max-content;
  margin-bottom: 15px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

main .centerbox > h1::after {
  content: "Short-term cover explained clearly for UK drivers";
  display: block;
  max-width: 620px;
  margin-top: 19px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(14px, 2vw, 17px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.55;
}

main .centerbox > h1 .keyword {
  color: inherit;
  font-weight: inherit;
}

.toc {
  position: relative;
  margin: 0 0 clamp(38px, 6vw, 58px);
  padding: clamp(22px, 4vw, 31px);
  overflow: hidden;
  border: 1px solid #e8e5e7;
  border-radius: 19px;
  color: #34343a;
  background:
    linear-gradient(135deg, rgba(179, 0, 27, 0.035), transparent 48%),
    #fbfbfc;
  box-shadow: 0 10px 28px rgba(31, 24, 26, 0.055);
  text-align: left;
}

.toc::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--brand-red), var(--brand-red-light));
}

main .centerbox .toc h2 {
  margin: 0 0 17px;
  padding: 0;
  border: 0;
  color: #28272c;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.toc h2::before {
  content: "☰";
  display: inline-grid;
  width: 31px;
  height: 31px;
  margin-right: 9px;
  place-items: center;
  border-radius: 9px;
  color: var(--brand-red);
  background: rgba(179, 0, 27, 0.08);
  font-size: 13px;
  vertical-align: -4px;
}

.toc ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  position: relative;
  margin: 0;
  padding: 8px 0 8px 32px;
  counter-increment: toc;
  color: #5f5d64;
  font-size: 13px;
  line-height: 1.45;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  top: 8px;
  left: 0;
  color: var(--brand-red);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.toc a {
  color: #4c4a50;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.toc a:hover { color: var(--brand-red); }

main .centerbox > h2 {
  max-width: 830px;
  margin: clamp(38px, 6vw, 57px) 0 13px;
  padding-top: clamp(28px, 4vw, 38px);
  border-top: 1px solid #ece9eb;
  color: #27262b;
  font-size: clamp(25px, 3.5vw, 34px);
  font-weight: 820;
  letter-spacing: -0.037em;
  line-height: 1.16;
  scroll-margin-top: 102px;
  text-wrap: balance;
}

main .centerbox > h2::before {
  content: "";
  display: block;
  width: 38px;
  height: 4px;
  margin-bottom: 13px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-red-light));
}

main .centerbox > h3 {
  max-width: 830px;
  margin: 31px 0 9px;
  color: #35333a;
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

main .centerbox > p {
  max-width: 82ch;
  margin: 0 0 17px;
  color: #5e5c64;
  font-size: 16px;
  line-height: 1.82;
}

main .centerbox > p a,
main .centerbox > ul a {
  color: var(--brand-red);
  font-weight: 750;
}

main .centerbox .keyword {
  color: var(--brand-red);
  font-weight: 750;
}

main .centerbox > ul {
  max-width: 850px;
  margin: 18px 0 25px;
  padding: 19px 21px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  border: 1px solid rgba(179, 0, 27, 0.11);
  border-radius: 16px;
  background: #fffafb;
  list-style: none;
}

main .centerbox > ul li {
  position: relative;
  margin: 0;
  padding: 6px 0 6px 29px;
  color: #4f4d54;
  font-size: 14px;
  line-height: 1.55;
}

main .centerbox > ul li::before {
  content: "✓";
  position: absolute;
  top: 7px;
  left: 0;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--brand-red);
  font-size: 10px;
  font-weight: 900;
}

#returns-policy {
  margin-right: -20px;
  margin-left: -20px;
  padding: 34px 20px 0;
  border-top: 0;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, rgba(179, 0, 27, 0.055), transparent);
}

#faq + p,
#faq + p + p,
#faq + p + p + p {
  max-width: 850px;
  margin-bottom: 12px;
  padding: 17px 19px;
  border: 1px solid #ebe8ea;
  border-radius: 14px;
  background: #fbfbfc;
}

#faq + p strong:first-child,
#faq + p + p strong:first-child,
#faq + p + p + p strong:first-child {
  color: #333138;
}

#conclusion {
  color: var(--brand-red);
}

main .centerbox > p:last-child {
  margin-bottom: 0;
  padding: 20px 22px;
  border-left: 4px solid var(--brand-red);
  border-radius: 0 14px 14px 0;
  background: #fff7f8;
}

@media (max-width: 760px) {
  main {
    padding: 20px 12px 60px;
  }

  main .centerbox {
    padding-right: 20px;
    padding-bottom: 38px;
    padding-left: 20px;
    border-radius: 20px;
  }

  main .centerbox > h1 {
    margin-right: -20px;
    margin-left: -20px;
    padding: 54px 24px 45px;
  }

  .toc {
    padding: 21px 18px 21px 21px;
  }

  .toc ul,
  main .centerbox > ul {
    grid-template-columns: 1fr;
  }

  main .centerbox > h2 {
    scroll-margin-top: 82px;
  }
}

@media (max-width: 430px) {
  main {
    padding-right: 9px;
    padding-left: 9px;
  }

  main .centerbox {
    padding-right: 16px;
    padding-left: 16px;
    border-radius: 17px;
  }

  main .centerbox > h1 {
    margin-right: -16px;
    margin-left: -16px;
    padding: 45px 19px 39px;
    font-size: 34px;
  }

  .toc {
    padding: 19px 15px 19px 18px;
    border-radius: 15px;
  }

  main .centerbox > p {
    font-size: 15px;
    line-height: 1.75;
  }

  main .centerbox > ul {
    padding: 15px;
  }

  #returns-policy {
    margin-right: -8px;
    margin-left: -8px;
    padding-right: 8px;
    padding-left: 8px;
  }
}

@media print {
  .header,
  .footer,
  .toc {
    display: none !important;
  }

  body,
  main,
  main .centerbox {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: #ffffff;
    box-shadow: none;
  }

  main .centerbox > h1 {
    margin: 0 0 24px;
    padding: 0;
    color: #000000;
    background: none;
  }
}
