/* ====================================================================
   Recover-You — Distorted Thinking
   A numbered field guide to common cognitive distortions.
   ==================================================================== */

.ry-distorted-page {
  counter-reset: dt-pattern;
}

.ry-distorted-page .ry-page-hero__bg {
  background-position: center 42%;
}

.ry-distorted-page .text-deep-pink { color: #ff3030 !important; }
.ry-distorted-page .text-extra-dark-gray,
.ry-distorted-page .text-medium-gray,
.ry-distorted-page .text-light-gray { color: inherit !important; }

.ry-dt-intro,
.ry-dt-takeaway,
.ry-dt-sources,
.learn-more-section {
  position: relative;
  padding: clamp(76px, 9vw, 120px) 0;
  overflow: hidden;
  background: #000;
}

.ry-dt-intro > .container,
.ry-dt-takeaway > .container {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------
   1. WHY THE BRAIN DOES THIS
   -------------------------------------------------------------------- */
.ry-dt-intro .d-inline-flex:first-child {
  display: inline-flex !important;
  margin-bottom: 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: .17em !important;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .43) !important;
  opacity: 1 !important;
}

.ry-dt-intro .d-inline-flex:first-child i { display: none; }

.ry-dt-intro h5 {
  max-width: 850px;
  margin: 0 0 34px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(34px, 5.2vw, 61px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.045em;
  color: #fff !important;
}

.ry-dt-intro h5 strong { font-weight: 650; }

.ry-dt-intro p,
.ry-dt-takeaway p {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.84;
  color: rgba(255, 255, 255, .7);
}

.ry-dt-intro p strong,
.ry-dt-takeaway p strong {
  font-weight: 700;
  color: rgba(255, 255, 255, .94);
}

.ry-dt-intro blockquote {
  position: relative;
  margin: 42px 0 0;
  padding: clamp(26px, 4vw, 38px) clamp(27px, 5vw, 48px) !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 15px !important;
  background:
    radial-gradient(circle at 95% 8%, rgba(255, 0, 0, .13), transparent 33%),
    linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)) !important;
  box-shadow: 0 30px 80px -58px rgba(0, 0, 0, .95);
}

.ry-dt-intro blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #ff4141, #8e0000);
}

.ry-dt-intro blockquote p {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(18px, 2.25vw, 23px);
  font-weight: 300;
  line-height: 1.62;
  color: rgba(255, 255, 255, .88);
}

/* --------------------------------------------------------------------
   2. THE DISTORTION CATALOGUE
   -------------------------------------------------------------------- */
.ry-dt-catalog {
  position: relative;
  padding: clamp(64px, 8vw, 104px) 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .88), rgba(0, 0, 0, .96)),
    url('../../images/webp/distorted-bg.webp') center top / cover repeat-y,
    #030303;
}

.ry-dt-catalog + .ry-dt-catalog { padding-top: 26px; }

.ry-dt-catalog > .container {
  position: relative;
  z-index: 1;
}

.ry-dt-catalog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.85%, rgba(255, 255, 255, .025) 50%, transparent 50.15%),
    repeating-linear-gradient(0deg, transparent 0 109px, rgba(255, 255, 255, .018) 110px);
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
}

#patterns-7::after,
#patterns-13::after {
  position: absolute;
  right: max(20px, calc((100vw - 1320px) / 2));
  top: 4px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(90px, 14vw, 190px);
  line-height: 1;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .025);
  pointer-events: none;
}

#patterns-7::after { content: "07"; }
#patterns-13::after { content: "13"; }
#patterns-13 { padding-bottom: clamp(40px, 5vw, 62px); }
.ry-dt-takeaway { padding-top: clamp(58px, 6vw, 78px); }

.ry-dt-catalog-intro {
  margin-bottom: clamp(44px, 7vw, 82px);
}

.ry-dt-catalog-intro > div {
  padding: clamp(34px, 5vw, 58px) !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 0, 0, .14), transparent 34%),
    rgba(255, 255, 255, .035) !important;
  box-shadow: 0 35px 90px -65px #000;
}

.ry-dt-catalog-intro .padding-fifteen-all {
  position: relative;
  padding: 0 !important;
}

.ry-dt-catalog-intro .padding-fifteen-all::before {
  content: "19";
  display: block;
  margin-bottom: 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 10vw, 108px);
  line-height: .86;
  letter-spacing: .03em;
  color: #ff2929;
  text-shadow: 0 0 38px rgba(255, 0, 0, .16);
}

.ry-dt-catalog-intro h3 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4.3vw, 49px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -.035em !important;
  color: #fff !important;
}

.ry-dt-catalog-intro h3 strong { font-weight: 650; }

.ry-dt-catalog > .container > .row:not(:first-child) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 20px !important;
}

#patterns-7 > .container > .row,
#patterns-13 > .container > .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 20px !important;
}

.ry-dt-catalog > .container > .row > [class*="col-"] {
  display: flex;
  width: 100%;
  max-width: none;
  padding: 0;
}

.dt-card {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  counter-increment: dt-pattern;
  padding: clamp(28px, 4vw, 43px) !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 16px;
  background:
    radial-gradient(circle at 95% 0%, rgba(255, 0, 0, .095), transparent 27%),
    linear-gradient(145deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .018)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    0 28px 70px -56px rgba(0, 0, 0, .98);
  color: rgba(255, 255, 255, .7);
  transition: border-color .25s ease, transform .25s ease, background-color .25s ease;
}

.dt-card:hover {
  border-color: rgba(255, 55, 55, .32);
  transform: translateY(-3px);
}

.dt-card::before {
  content: counter(dt-pattern, decimal-leading-zero);
  display: block;
  width: fit-content;
  margin-bottom: 20px;
  padding: 5px 9px 4px;
  border: 1px solid rgba(255, 48, 48, .3);
  border-radius: 999px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  line-height: 1;
  letter-spacing: .12em;
  color: #ff3b3b;
}

.dt-card::after {
  content: "";
  position: absolute;
  left: clamp(28px, 4vw, 43px);
  right: clamp(28px, 4vw, 43px);
  top: 76px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 44, 44, .34), transparent 72%);
}

.dt-card h5 {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  padding-top: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(23px, 2.6vw, 31px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: #fff !important;
}

.dt-card > span {
  display: block !important;
  margin: 0 0 20px !important;
  font-family: 'Lato', sans-serif;
  font-size: 14.5px !important;
  font-weight: 300 !important;
  line-height: 1.72;
  color: rgba(255, 255, 255, .65) !important;
}

.dt-card > span strong {
  display: inline-block;
  margin-right: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ff3b3b !important;
}

/* AKA: the shorthand voice of the distortion. */
.dt-card h5 + span {
  position: relative;
  padding: 15px 17px 15px 20px;
  border-left: 2px solid #ff3030;
  border-radius: 0 9px 9px 0;
  background: rgba(255, 0, 0, .045);
  font-family: 'Poppins', sans-serif;
  font-size: 14px !important;
  font-style: italic;
  line-height: 1.58;
  color: rgba(255, 255, 255, .78) !important;
}

.dt-card h5 + span strong { font-style: normal; }

/* Definition. */
.dt-card h5 + span + span {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .085);
}

/* Examples label. */
.dt-card h5 + span + span + span {
  margin-bottom: 7px !important;
}

.dt-card .margin-30px-tb {
  margin: 0 0 27px !important;
}

.dt-card .list-style-3 {
  margin: 0;
  padding: 0 !important;
  list-style: none;
}

.dt-card .list-style-3 li {
  position: relative;
  margin: 0;
  padding: 9px 0 9px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .065);
  font-family: 'Lato', sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.58;
  color: rgba(255, 255, 255, .61) !important;
}

.dt-card .list-style-3 li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 18px;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 54, 54, .9);
  border-radius: 50%;
}

/* Antidote and challenge question form the card's action footer. */
.dt-card .margin-30px-tb + span {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding: 17px 19px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: rgba(255, 255, 255, .035);
  color: rgba(255, 255, 255, .82) !important;
}

.dt-card .margin-30px-tb + span + span {
  margin: 0 !important;
  padding: 18px 19px;
  border: 1px solid rgba(255, 55, 55, .19);
  border-radius: 0 0 10px 10px;
  background: linear-gradient(105deg, rgba(255, 0, 0, .075), rgba(255, 255, 255, .025));
  font-family: 'Poppins', sans-serif;
  font-size: 14px !important;
  line-height: 1.58;
  color: rgba(255, 255, 255, .86) !important;
}

/* Let the final single card use the available width without becoming a wall. */
#patterns-13 > .container > .row:last-child > [class*="col-"] {
  grid-column: 1 / -1;
}

#patterns-13 > .container > .row:last-child .dt-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-rows: auto auto auto 1fr auto auto;
  column-gap: clamp(28px, 5vw, 68px);
}

#patterns-13 > .container > .row:last-child .dt-card::before {
  grid-column: 1;
  grid-row: 1;
}

#patterns-13 > .container > .row:last-child .dt-card h5 {
  grid-column: 1;
  grid-row: 2;
}

#patterns-13 > .container > .row:last-child .dt-card h5 + span {
  grid-column: 1;
  grid-row: 3;
}

#patterns-13 > .container > .row:last-child .dt-card h5 + span + span {
  grid-column: 1;
  grid-row: 4;
}

#patterns-13 > .container > .row:last-child .dt-card h5 + span + span + span {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}

#patterns-13 > .container > .row:last-child .dt-card .margin-30px-tb,
#patterns-13 > .container > .row:last-child .dt-card .margin-30px-tb + span,
#patterns-13 > .container > .row:last-child .dt-card .margin-30px-tb + span + span {
  grid-column: 2;
}

#patterns-13 > .container > .row:last-child .dt-card .margin-30px-tb {
  grid-row: 2 / span 3;
  align-self: start;
  margin-top: 0 !important;
}

#patterns-13 > .container > .row:last-child .dt-card .margin-30px-tb + span {
  grid-row: 5;
  align-self: end;
}

#patterns-13 > .container > .row:last-child .dt-card .margin-30px-tb + span + span {
  grid-row: 6;
}

/* --------------------------------------------------------------------
   3. CLOSING TAKEAWAY
   -------------------------------------------------------------------- */
.ry-dt-takeaway h5 {
  margin: 0 0 30px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.04em;
  color: #fff !important;
}

.ry-dt-takeaway h5 strong { font-weight: 650; }

.ry-dt-takeaway blockquote {
  margin: 0;
  padding: clamp(28px, 5vw, 48px) !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-left: 3px solid #ff3030 !important;
  border-radius: 0 15px 15px 0 !important;
  background:
    radial-gradient(circle at 95% 5%, rgba(255, 0, 0, .12), transparent 34%),
    rgba(255, 255, 255, .035) !important;
}

.ry-dt-takeaway blockquote p {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.68;
  color: rgba(255, 255, 255, .83);
}

.ry-dt-takeaway blockquote p:last-child { margin-bottom: 0; }

.ry-dt-takeaway .ry-card-lite {
  position: relative;
  margin-top: 28px !important;
  padding: clamp(28px, 5vw, 44px) !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 15px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)) !important;
  box-shadow: none !important;
}

.ry-dt-takeaway .ry-card-lite::after {
  content: "REGULATE FIRST";
  position: absolute;
  right: -12px;
  top: 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(54px, 9vw, 104px);
  line-height: 1;
  letter-spacing: .025em;
  color: rgba(255, 255, 255, .025);
  pointer-events: none;
}

.ry-dt-takeaway .ry-card-lite h6 {
  position: relative;
  z-index: 1;
  margin: 0 0 20px !important;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(19px, 2.5vw, 26px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #fff !important;
}

.ry-dt-takeaway .ry-card-lite p {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------
   4. WHERE NEXT + SOURCES
   -------------------------------------------------------------------- */
.learn-more-section {
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 0, 0, .085), transparent 34%),
    #050505;
}

.learn-more-title {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(46px, 7vw, 78px);
  letter-spacing: .03em;
  color: #fff !important;
}

.learn-more-subtitle {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, .54);
}

.learn-more-divider {
  width: 62px;
  height: 2px;
  margin: 26px auto 18px;
  background: #ff3030;
}

.learn-more-cards { margin-top: 22px; }
.learn-more-cards > .col { display: flex; margin-top: 16px; }

.learn-card {
  display: flex;
  width: 100%;
  min-height: 220px;
  flex-direction: column;
  padding: 28px 25px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
  color: #fff;
  transition: transform .25s ease, border-color .25s ease;
}

.learn-card:hover {
  border-color: rgba(255, 48, 48, .42);
  transform: translateY(-3px);
}

.learn-card.is-next { border-top-color: #ff3030; }
.learn-card-icon { display: none; }

.learn-card-label {
  margin-bottom: 24px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #ff3b3b;
}

.learn-card-label--explore { color: rgba(255, 255, 255, .38); }

.learn-card-title {
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}

.learn-card p {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, .54);
}

.ry-dt-sources {
  background: #020202 !important;
}

.ry-dt-sources h5 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4vw, 45px);
  font-weight: 300;
  color: #fff !important;
}

.ry-dt-sources .separator-line-horrizontal-full {
  width: 60px !important;
  height: 2px !important;
  margin: 24px auto 44px !important;
  background: #ff3030 !important;
}

.ry-dt-sources ol {
  counter-reset: dt-source;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ry-dt-sources ol > li {
  position: relative;
  counter-increment: dt-source;
  padding: 26px 0 26px 55px;
  border-top: 1px solid rgba(255, 255, 255, .085);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.72;
  color: rgba(255, 255, 255, .54);
}

.ry-dt-sources ol > li::before {
  content: counter(dt-source, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 25px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 23px;
  letter-spacing: .06em;
  color: #ff3333;
}

.ry-dt-sources ol strong { color: rgba(255, 255, 255, .88); }

.ry-dt-sources ol a {
  display: inline-block;
  margin-left: 5px;
  border-bottom: 1px solid rgba(255, 48, 48, .35);
  color: #ff4848 !important;
}

.ry-dt-sources ol + p {
  margin: 30px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .36);
}

@media (max-width: 991.98px) {
  .ry-dt-catalog > .container > .row:not(:first-child),
  #patterns-7 > .container > .row,
  #patterns-13 > .container > .row {
    grid-template-columns: 1fr;
  }

  #patterns-13 > .container > .row:last-child .dt-card {
    display: flex;
  }

  #patterns-13 > .container > .row:last-child .dt-card::before,
  #patterns-13 > .container > .row:last-child .dt-card::after,
  #patterns-13 > .container > .row:last-child .dt-card h5,
  #patterns-13 > .container > .row:last-child .dt-card > span,
  #patterns-13 > .container > .row:last-child .dt-card h5 + span,
  #patterns-13 > .container > .row:last-child .dt-card h5 + span + span,
  #patterns-13 > .container > .row:last-child .dt-card h5 + span + span + span,
  #patterns-13 > .container > .row:last-child .dt-card .margin-30px-tb,
  #patterns-13 > .container > .row:last-child .dt-card .margin-30px-tb + span,
  #patterns-13 > .container > .row:last-child .dt-card .margin-30px-tb + span + span {
    grid-column: auto;
    grid-row: auto;
  }

  #patterns-13 > .container > .row:last-child .dt-card .margin-30px-tb {
    margin-top: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .ry-distorted-page .ry-anchornav { top: 44px; }
  .ry-distorted-page .ry-page-hero__bg { background-position: 56% center; }
  .ry-dt-catalog { padding-block: 58px; }
  .ry-dt-catalog + .ry-dt-catalog { padding-top: 18px; }
  .ry-dt-catalog::before { opacity: .5; }
  .dt-card { padding: 27px 23px !important; }
  .dt-card::after { left: 23px; right: 23px; }
  .ry-dt-sources ol > li { padding-left: 44px; }
}

@media (max-width: 575.98px) {
  .ry-dt-catalog-intro > div { padding: 30px 22px !important; }
  .learn-card { min-height: 188px; }
}

@media (prefers-reduced-motion: reduce) {
  .dt-card,
  .learn-card { transition: none; }
  .dt-card:hover,
  .learn-card:hover { transform: none; }
}
