section .section-inner {
  padding-top: 64px;
  padding-bottom: 64px;
  max-width: 700px;
}

.h2,
h2 {
  font-size: 3.6rem;
  line-height: 4.5rem;
  margin: 0 0 16px;
}

.h5,
h5 {
  font-size: 1.6rem;
  line-height: 24rem;
  margin: 0 0 16px;
}

.h3,
h3 {
  font-size: 3rem;
  line-height: 3.8rem;
  margin: 0 0 16px;
}

p {
  margin: 0 0 16px;
}

main p:not(.h2, .h3, .h4, .h5, .h6), 
main span,
main ul.disc-list li,
main ol li {
  font-size:18px;
  line-height:28px;
}

main .disclaimer p {
  font-size: 14px;
  line-height: 20px;
}

.wide-content {
  width: min(1170px, calc(100vw - 60px));
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-block: 32px;
}

/** In Short/To sum it up **/
.summary-box .block-inner {
  padding: 24px;
  background-color: #edf7fc;
}

.summary-box h3 {
  font-size: 24px;
  line-height: 30px;
}

/** scrollable table */
.table-scroll {
  margin-block: 32px 16px;
}

table thead tr th {
  padding-block: 0 16px;
}

.icon-48 {
  height: 48px;
}

@media screen and (max-width: 767px) {
  section .section-inner {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  h2,
  .h2 {
    font-weight: 500;
    font-size: 24px;
    line-height: 30px;
  }

  .wide-content {
    width: calc(100vw - 30px);
    margin-block: 24px;
  }

  .summary-box .block-inner {
    padding: 16px;
  }

  .summary-box img {
    width: 32px;
  }

  /** scrollable table */
  .table-scroll {
    margin-right: -16px;
    width: auto;
    overflow-x: auto;
  }

  .table-scroll table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    left: auto;
    transform: none;
  }

  .table-scroll table th,
  .table-scroll table td {
    min-width: 240px;
  }
}

@media screen and (max-width: 800px) {
  .advice-left-contents {
    max-width: unset;
  }
}

@media screen and (max-width: 640px) {
  h1 {
    font-size: 24px;
    line-height: 30px;
  }

  .social-links,
  .social-links.vertical {
    justify-content: space-between;
    gap: 10px;
  }

  .social-links .sharing-custom {
    width: 55px;
  }
}

.article-content-container {
  display: flex;
  flex: 1;
  flex-direction: column !important;
  gap: 16px !important;
}

.grey-box {
  background-color: #eaeaea;
  padding: 20px 38px;
}

/** heading */
.nav-inner {
  padding-block: 64px 32px;
}

.nav-bar .nav-inner {
  justify-content: center;
}

.is-sticky .nav-bar .nav-inner {
  justify-content: flex-start;
}

/** hero banner */
.hero .section-inner,
.hero .section-inner * {
  box-sizing: border-box;
}

.hero .section-inner {
  max-width: none;
  padding: 0 !important;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "card-image photo";
}

.hero-card-image {
  grid-area: card-image;
  display: grid;
  align-items: center;
  justify-items: end;
  min-width: 0;
  padding: 40px clamp(24px, 6.25vw, 120px) 40px 24px;
  background-color: #eee;
}

.hero-card-image img {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
}

.hero-photo {
  grid-area: photo;
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center;
  transform: scale(1.05);
}

@media (max-width: 639px) {
  .hero .section-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "photo"
      "card-image";
  }

  .hero-card-image {
    justify-items: center;
    padding: 30px 20px;
  }

  .hero-photo {
    aspect-ratio: 375 / 282;
  }

  .hero-photo img {
    transform: translateX(14%) translateY(4%) scale(1.85);
  }
}

.what-is-a-cash-back-credit-card .section-inner {
  --content-width: 700px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--content-width) minmax(0, 1fr);

  background-color: #006ac3;
  color: #fff;

  margin: 0;
  max-width: none;

  padding-block: 0;
}

.what-is-a-cash-back-credit-card__content {
  grid-column: 2;
  grid-row: 1;

  min-width: 0;
  padding-block: 0;
}

.what-is-a-cash-back-credit-card__visual {
  grid-column: 3;
  grid-row: 1;

  position: relative;
  min-width: 0;
}

.what-is-a-cash-back-credit-card__visual img {
  position: absolute;
  inset: 0;

  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center right;
}

.what-is-a-cash-back-credit-card ol.disc-list > li,
.what-is-a-cash-back-credit-card ul.disc-list > li {
  filter: brightness(0) invert();
}

.what-is-a-cash-back-credit-card h2 {
  margin-top: 46px !important;
}

.what-is-a-cash-back-credit-card ul {
  margin-bottom: 46px;
}

@media (max-width: 1000px) {
  .what-is-a-cash-back-credit-card .section-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 32px 24px;
  }

  .what-is-a-cash-back-credit-card__visual {
    grid-column: 1;
    grid-row: 1;

    height: 125px;
    margin-inline: 0;
    left: -24px;
  }

  .what-is-a-cash-back-credit-card__visual img {
    object-position: left center;
  }

  .what-is-a-cash-back-credit-card__content {
    margin-inline: auto;
    max-width: 700px;
    grid-column: 1;
    grid-row: 2;

    padding-block: 0;
  }

  .what-is-a-cash-back-credit-card h2 {
    margin-top: 0 !important;
    font-size: 20px;
    line-height: 25px;
  }

  .what-is-a-cash-back-credit-card ul {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 639px) {
  .what-is-a-cash-back-credit-card .section-inner {
    padding: 32px 16px;
  }

  .what-is-a-cash-back-credit-card__visual {
    height: 200px;
  }
}

.big-numbers {
  font-weight: 500;
  font-size: 36px;
  line-height: 44px;
  color: #006ac3;
}

.how-is-cash-back-posted-and-redeemed .section-inner,
.types-of-cash-back-credit-cards .section-inner,
.feature-section .section-inner,
.how-to-choose-the-right-cash-back-credit-card .section-inner,
.conclusion .section-inner {
  padding-top: 0;
}

@media screen and (max-width: 767px) {
  .how-is-cash-back-posted-and-redeemed .section-inner,
  .types-of-cash-back-credit-cards .section-inner,
  .conclusion .section-inner {
    padding-top: 0;
  }

  .how-to-choose-the-right-cash-back-credit-card .section-inner {
    padding-top: 32px;
  }
}

.content-label {
  font-weight: 500;
  margin-block: 16px 8px;
}

.custom-flex-wpr {
  display: flex;
  gap: 30px;
}

.custom-flex-wpr .flex-item {
  flex: 1;
  display: flex;
  gap: 16px;
}

.custom-flex-wpr .flex-item h3 {
  font-family: "Roboto";
  font-size: 16px;
  line-height: 24px;
}

@media screen and (max-width: 639px) {
  .custom-flex-wpr {
    flex-direction: column;
    gap: 24px;
  }
}

.table-scroll:nth-of-type(n + 2) {
  margin-block: 32px 64px;
}

.feature-section {
  --section-bg: #fff;
  background: var(--section-bg);
  padding-block: 0;
}

.section-inner {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 24px;
}

.feature-layout {
  --circle-size: 194px;
  --grid-gap: 30px;
  --card-padding: 24px;

  position: relative;
}

.feature-layout,
.feature-layout * {
  box-sizing: border-box;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* grid-auto-rows: 1fr; */
  gap: var(--grid-gap);
}

.feature-card {
  min-width: 0;
  padding: var(--card-padding);
  background: #f3f4f5;
  display: flex;
  flex-direction: column;
}

.feature-card:nth-child(-n + 2) {
  /* padding-bottom: calc(var(--circle-size) / 2 + 16px); */
  padding-bottom: calc(var(--circle-size) / 2);
}

.feature-card:nth-child(4) .card-top {
  width: calc(100% - 85px);
  align-self: flex-end;
}

.feature-card h3 {
  font-family: "Roboto";
  font-weight: 500;
  font-size: 18px;
  line-height: 27px;
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0;
  line-height: 1.7;
}

.feature-card p + p {
  margin-block: 16px;
}

.feature-circle {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: var(--circle-size);
  aspect-ratio: 1;
  border-radius: 50%;

  display: grid;
  place-items: center;
  padding: 20px;

  background: #0055a5;
  color: #fff;
  text-align: center;

  box-shadow: 0 0 0 18px var(--section-bg);
}

.feature-circle p {
  margin: 0;
  line-height: 1.5;
  font-family: "RBCDisplay";
  font-weight: 700;
}

.formula {
  font-family: "RBCDisplay";
  font-weight: 500;
  font-size: 18px;
  line-height: 27px;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .feature-section {
    padding-block: 0;
  }

  .feature-section .section-inner {
    padding-block: 32px 0;
  }

  .feature-layout {
    --circle-size: 180px;
    --grid-gap: 16px;
    --card-padding: 16px;
    padding-top: calc(2 * var(--circle-size) / 3);
    margin-block: 32px 0;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
  }

  .feature-grid > .feature-card {
    padding: var(--card-padding);
  }

  .feature-grid > .feature-card:first-child {
    padding-top: calc(var(--circle-size) / 3 + 2 * var(--card-padding));
  }

  .feature-circle {
    top: 0;
    transform: translateX(-50%);
    box-shadow: 0 0 0 12px var(--section-bg);
  }

  .feature-card:nth-child(4) .card-top {
    width: 100%;
    align-self: auto;
  }
}

.how-to-choose-the-right-cash-back-credit-card h3.step {
  font-family: "Roboto";
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
}

.how-to-choose-the-right-cash-back-credit-card .item-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 30px;

  margin-block: 22px;
  /* padding: 0 49.6px; */
  list-style: none;
}

.item-list > li {
  flex: 0 1 auto;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.item-list > li:nth-child(3) {
  max-width: 210px;
}

[lang=fr-CA] .item-list > li:nth-child(3) {
  max-width: 321px;
}


.icon-32 {
  width: 32px;
}

.checklist-box h3,
.checklist-box h4 {
  font-weight: 500;
  font-size: 24px;
  line-height: 30px;
}

.checklist-box .table-cell img {
  width: 45px;
}

.how-to-choose-the-right-cash-back-credit-card h3.step {
  margin-block: 32px 16px;
}

@media screen and (max-width: 767px) {
  .item-list > li:nth-child(3) {
    max-width: none;
  }

  table.table-striped {
    margin-block: 0 24px;
  }

  .checklist-box {
    margin-block: 24px;
  }

  .checklist-box .table-cell img {
    width: 32px;
  }

  .how-to-choose-the-right-cash-back-credit-card .item-list {
    flex-direction: column;
    margin-block: 22px;
  }

  .how-to-choose-the-right-cash-back-credit-card h3.step {
    margin-block: 0 8px;
    padding-block: 8px 0;
  }

  .table-striped + h3.step {
    padding-block: 0;
  }
}

.comparison-table {
  width: min(933px, calc(100vw - 30px));
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.comparison-table img {
  max-width: 100%;
  height: auto;
}

.comparison-table thead tr th {
  text-align: center;
}

.comparison-table tbody th,
.comparison-table tbody th * {
  text-align: left;
  font-weight: 500;
}

.comparison-table td,
.comparison-table th {
  width: calc(100% / 3);
}

@media (max-width: 767px) {
  .comparison-table img {
    width: 100%;
  }

  .comparison-table.table-striped:not(.table-stack) tbody tr:nth-child(odd) th {
    background-color: unset;
  }

  .comparison-table.table-striped:not(.table-stack) tbody td:nth-child(2),
  .comparison-table.table-striped:not(.table-stack) tbody td:nth-child(3) {
    background-color: #e3f4ff;
    border-bottom: 1px solid #cadae5;
  }

  .comparison-table {
    border-bottom: none;
  }

  .comparison-table,
  .comparison-table > thead,
  .comparison-table > tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .comparison-table > thead > tr,
  .comparison-table > tbody > tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comparison-table > thead > tr > *,
  .comparison-table > tbody > tr > * {
    display: block;
    width: auto;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }

  .comparison-table > thead > tr > .comparison-corner {
    display: none;
  }

  .comparison-table > tbody > tr > .comparison-label {
    grid-column: 1 / -1;
    text-align: left;
  }
}

.how-to-maximize-cash-back-and-use-your-card-effectively .section-inner {
  padding-top: 0;
}

.how-to-maximize-cash-back-and-use-your-card-effectively h3 {
  font-weight: 500;
  font-size: 24px;
  line-height: 30px;
}

.how-to-maximize-cash-back-and-use-your-card-effectively
  .table-wpr.table-item
  .table-cell {
  vertical-align: middle;
}

@media screen and (max-width: 767px) {
  .how-to-maximize-cash-back-and-use-your-card-effectively .section-inner {
    padding-top: 0;
    padding-bottom: 24px;
  }

  .how-to-maximize-cash-back-and-use-your-card-effectively h3 {
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
  }
}

@media screen and (max-width: 767px) {
  .conclusion {
    padding-top: 0;
    padding-bottom: 0;
  }
}

.faqs {
  background-color: #f5f8f9;
}

.faqs .custom-flex-wpr {
  display: flex;
  flex-direction: row;
}

.faqs .custom-flex-wpr .flex-item {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faqs .custom-flex-wpr .flex-item:first-child {
  max-width: 328px;
}

.faqs h3 {
  font-family: "Roboto";
  font-weight: 500;
  font-size: 18px;
  line-height: 27px;
}

@media screen and (max-width: 767px) {
  .faqs .custom-flex-wpr {
    flex-direction: column;
    margin-block: 0;
  }

  .faqs h3 {
    font-size: 16px;
    line-height: 24px;
  }

  .faqs .custom-flex-wpr .flex-item {
    gap: 16px;
  }
}

.article-img {
  aspect-ratio: 370 / 250;
  object-fit: cover;
}

@media screen and (max-width: 639px) {
  #read-next-articles .grid-one-third {
    flex-direction: column;
    gap: 16px;
  }
  .article-img {
    max-width: 100%;
  }

  #read-next-articles .grid-wpr > [class*="grid-"] {
    margin-bottom: 24px;
  }
}

.card-tools-grid-item h3 {
  font-size: 24px;
}

@media screen and (max-width: 639px) {
  .card-tools-grid-item {
    padding: 24px !important;
  }

  .card-tools-grid-item h3 {
    font-size: 18px;
    line-height: 27px;
  }

  .card-tools-grid-item > div {
      justify-content: space-around;
    flex-direction: column;
    display: flex;
  }

  .card-tools-grid-item.item-1 > div {
    width: 65% !important;
  }

  .card-tools-grid-item.item-2 > div {
    width: 71% !important;
  }
  .card-tools-grid-item.item-3 > div {
    width: 71% !important;
  }

  .card-tools-grid-item.item-4 > div {
    width: 71% !important;
  }

  .card-tools-grid-item img {
    position: absolute;
    right: 8px;
    bottom: 0;
  }

  .card-tools-grid-item.item-1 img {
    bottom: 8px;
  }

  .card-tools-grid-item.item-2 > div {
    width: 71% !important;
  }
  .card-tools-grid-item.item-2 img {
    max-width: 180px;
    bottom: 0;
    right: -7px;
  }

  .card-tools-grid-item.item-2 .btn {
    max-width: 80%;
  }

  .card-tools-grid-item.item-3 .btn {
    max-width: 81%;
  }

  .card-tools-grid-item.item-3 img {
    bottom: 4px;
    right: -50px;
  }

  .card-tools-grid-item.item-4 img {
    max-width: 240px;
    bottom: -5px;
    right: -120px;
  }
  .card-tools-grid-item.item-4 .btn {
    max-width: 85%;
  }
}

/** custom DVL table **/
@media screen and (min-width: 640px) {
  .tablesaw-bar {
    display: none !important;
  }
  .tablesaw-swipe-cellhidden {
    display: table-cell !important;
  }
}
