/* ================================================================
   Recover-You | Navigating Alberta Health
   Current addiction and mental-health access routes for Alberta.
   ================================================================ */

.ry-health-page {
  --health-red: #ff2438;
  --health-red-deep: #c90f24;
  --health-ink: #050506;
  --health-panel: #101012;
  --health-panel-2: #151518;
  --health-line: rgba(255, 255, 255, .12);
  --health-muted: #aaaab0;
}

/* Hero */
.ry-health-page .ry-health-hero {
  min-height: clamp(650px, 86vh, 900px);
}

.ry-health-page .ry-health-hero .ry-page-hero__bg {
  background-position: center 46%;
  filter: saturate(.82) contrast(1.08);
}

.ry-health-page .ry-health-hero .ry-page-hero__scrim {
  background:
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.62) 52%, rgba(0,0,0,.3) 100%),
    linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.28) 50%, #050506 95%, #050506 100%);
}

.ry-health-page .ry-health-hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 36%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, #050506 92%);
}

.ry-health-page .ry-health-hero .ry-page-hero__inner,
.ry-health-page .ry-health-hero .ry-scroll-cue {
  z-index: 3;
}

.ry-health-page .ry-health-hero .ry-page-hero__title {
  max-width: 1040px;
}

.ry-health-page .ry-health-hero .ry-page-hero__sub {
  max-width: 800px;
}

/* Shared typography */
.ry-health-page .ry-section-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: #d8d8dc;
  font-family: "Syncopate", sans-serif;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.ry-health-page .ry-section-eyebrow i {
  color: var(--health-red);
  font-style: normal;
}

/* Main guide */
.ry-health-page .ry-health-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 10vw, 150px) 0 clamp(95px, 10vw, 150px);
  color: #d6d6da;
  background:
    radial-gradient(circle at 9% 12%, rgba(255,255,255,.055), transparent 27%),
    radial-gradient(ellipse at 92% 58%, rgba(255,36,56,.05), transparent 34%),
    #050506;
}

.ry-health-page .ry-health-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image:
    radial-gradient(circle at 28% 40%, rgba(255,255,255,.14) 0 1px, transparent 1.5px),
    radial-gradient(circle at 73% 67%, rgba(255,255,255,.11) 0 1px, transparent 1.5px);
  background-size: 165px 175px, 225px 215px;
  mask-image: linear-gradient(90deg, transparent, #000 17%, #000 83%, transparent);
}

.ry-health-page .ry-health-intro .container {
  position: relative;
  z-index: 1;
}

.ry-health-page .ry-health-intro h2 {
  max-width: 940px;
  margin: 0 0 24px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.25rem, 5vw, 4.45rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.06em;
}

.ry-health-page .ry-health-intro h3 {
  color: #fff;
  font-family: "Poppins", sans-serif;
  letter-spacing: -.035em;
}

.ry-health-page .ry-health-intro p,
.ry-health-page .ry-health-intro li {
  color: #bcbcc1;
  font-family: "Lato", sans-serif;
  font-size: 1.02rem;
  line-height: 1.76;
}

.ry-health-page .ry-health-intro strong {
  color: #f4f4f5;
}

.ry-health-page .ry-health-intro a:not(.ry-health-call-card):not(.ry-health-intake__grid a):not(.ry-health-intake__secondary a) {
  color: var(--health-red);
  text-decoration-color: rgba(255,36,56,.55);
  text-underline-offset: 3px;
}

.ry-health-page .ry-health-lede {
  max-width: 890px;
  margin-bottom: clamp(45px, 6vw, 72px);
  color: #d0d0d4 !important;
  font-size: clamp(1.12rem, 2vw, 1.32rem) !important;
  line-height: 1.7 !important;
}

/* System shift card */
.ry-health-shift {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, .7fr);
  gap: 0;
  margin-bottom: 44px;
  overflow: hidden;
  border: 1px solid var(--health-line);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.014));
  box-shadow: 0 28px 74px rgba(0,0,0,.26);
}

.ry-health-shift__copy {
  padding: clamp(30px, 5vw, 50px);
}

.ry-health-shift__copy > span,
.ry-health-call-map__intro > span,
.ry-health-before-call__title > span,
.ry-health-experience > span,
.ry-health-script > span {
  display: block;
  margin-bottom: 13px;
  color: var(--health-red);
  font-family: "Syncopate", sans-serif;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.ry-health-shift__copy h3 {
  max-width: 700px;
  margin: 0 0 21px;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.2;
}

.ry-health-shift__copy p:last-child {
  margin-bottom: 0;
}

.ry-health-shift__mark {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px;
  text-align: center;
  border-left: 1px solid var(--health-line);
  background:
    radial-gradient(circle at center, rgba(255,255,255,.08), transparent 68%),
    rgba(255,255,255,.025);
}

.ry-health-shift__mark img {
  width: min(100%, 255px);
  height: auto;
  margin-bottom: 24px;
  padding: 22px;
  border-radius: 12px;
  background: #f4f4f4;
}

.ry-health-shift__mark small {
  max-width: 230px;
  color: #8f8f95;
  font-size: .78rem;
  line-height: 1.55;
}

/* Urgency decision tool */
.ry-health-call-map {
  margin: clamp(64px, 8vw, 105px) 0;
  overflow: hidden;
  border: 1px solid var(--health-line);
  border-radius: 20px;
  background: #0c0c0e;
  box-shadow: 0 30px 85px rgba(0,0,0,.32);
}

.ry-health-call-map__intro {
  padding: clamp(30px, 5vw, 48px);
  border-bottom: 1px solid var(--health-line);
}

.ry-health-call-map__intro h3 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3.4vw, 2.7rem);
  font-weight: 300;
}

.ry-health-call-map__intro p {
  max-width: 760px;
  margin: 0;
}

.ry-health-call-map__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ry-health-call-card {
  position: relative;
  display: flex;
  min-height: 255px;
  flex-direction: column;
  padding: clamp(28px, 4vw, 42px);
  color: #fff;
  text-decoration: none;
  border-right: 1px solid var(--health-line);
  border-bottom: 1px solid var(--health-line);
  background: linear-gradient(145deg, rgba(255,255,255,.038), transparent);
  transition: background .25s ease, transform .25s ease;
}

.ry-health-call-card:nth-child(2n) {
  border-right: 0;
}

.ry-health-call-card:nth-last-child(-n+2) {
  border-bottom: 0;
}

.ry-health-call-card:hover,
.ry-health-call-card:focus-visible {
  color: #fff;
  background: linear-gradient(145deg, rgba(255,36,56,.12), rgba(255,255,255,.02));
}

.ry-health-call-card--urgent {
  background: linear-gradient(145deg, rgba(255,36,56,.15), rgba(255,36,56,.035));
}

.ry-health-call-card__number {
  margin-bottom: 25px;
  color: var(--health-red);
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -.025em;
}

.ry-health-call-card strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
}

.ry-health-call-card p {
  margin: 0 0 23px;
  color: #a9a9af !important;
  font-size: .94rem !important;
  line-height: 1.62 !important;
}

.ry-health-call-card em {
  margin-top: auto;
  color: #d9d9dc;
  font-family: "Poppins", sans-serif;
  font-size: .7rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Regional intake */
.ry-health-intake {
  margin: clamp(70px, 9vw, 115px) 0;
}

.ry-health-intake__heading h3,
.ry-health-pathways-heading h3 {
  max-width: 840px;
  margin: 0 0 15px;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 300;
  line-height: 1.12;
}

.ry-health-intake__heading > p,
.ry-health-pathways-heading > p {
  max-width: 800px;
  margin-bottom: 38px;
  color: #98989e;
}

.ry-health-intake__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ry-health-intake__grid a {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  padding: 27px 29px;
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--health-line);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,.052), rgba(255,255,255,.015));
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.ry-health-intake__grid a:hover,
.ry-health-intake__grid a:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255,36,56,.58);
  background: linear-gradient(145deg, rgba(255,36,56,.1), rgba(255,255,255,.018));
}

.ry-health-intake__grid span {
  margin-bottom: 14px;
  color: #8f8f95;
  font-family: "Syncopate", sans-serif;
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.ry-health-intake__grid strong {
  margin-bottom: 8px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -.035em;
}

.ry-health-intake__grid small {
  margin-top: auto;
  color: #b0b0b5;
}

.ry-health-intake__secondary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--health-line);
  border-radius: 14px;
  background: var(--health-line);
}

.ry-health-intake__secondary a {
  display: flex;
  min-height: 110px;
  flex-direction: column;
  justify-content: center;
  padding: 22px 24px;
  color: #fff;
  text-decoration: none;
  background: #0b0b0d;
}

.ry-health-intake__secondary a:hover,
.ry-health-intake__secondary a:focus-visible {
  background: #151517;
}

.ry-health-intake__secondary strong {
  margin-bottom: 5px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: .92rem;
}

.ry-health-intake__secondary span {
  color: #929298;
  font-size: .82rem;
}

/* Before-call checklist */
.ry-health-before-call {
  display: grid;
  grid-template-columns: .55fr 1.25fr;
  gap: 25px 48px;
  margin: clamp(65px, 8vw, 105px) 0;
  padding: clamp(31px, 5vw, 50px);
  border: 1px solid var(--health-line);
  border-left: 3px solid var(--health-red);
  border-radius: 18px;
  background: linear-gradient(115deg, rgba(255,36,56,.105), rgba(255,255,255,.018));
}

.ry-health-before-call__title h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  font-weight: 400;
}

.ry-health-before-call ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ry-health-before-call li {
  position: relative;
  margin: 0;
  padding: 0 0 0 23px;
  font-size: .95rem !important;
  line-height: 1.56 !important;
}

.ry-health-before-call li::before {
  content: "";
  position: absolute;
  top: .58em;
  left: 0;
  width: 9px;
  height: 9px;
  border: 2px solid var(--health-red);
  border-radius: 50%;
}

.ry-health-before-call > p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--health-line);
}

/* Accordion */
.ry-health-pathways-heading {
  margin-top: clamp(75px, 9vw, 115px);
}

.ry-health-page #ahs-accordion {
  margin: 0 0 25px !important;
  border-top: 1px solid var(--health-line);
}

.ry-health-page #ahs-accordion .panel {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--health-line);
  border-radius: 0;
  background: transparent;
}

.ry-health-page #ahs-accordion .panel-heading {
  padding: 0;
  border: 0;
  background: transparent;
}

.ry-health-page #ahs-accordion .accordion-toggle {
  display: block;
  padding: 26px 0;
  text-decoration: none;
}

.ry-health-page #ahs-accordion .panel-title {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 0;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  line-height: 1.42;
}

.ry-health-page #ahs-accordion .panel-title > span {
  width: auto !important;
  color: #f3f3f4 !important;
}

.ry-health-page #ahs-accordion .panel-title i {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: transparent !important;
  font-size: 0;
  border: 1px solid rgba(255,36,56,.58);
  border-radius: 50%;
  background: rgba(255,36,56,.07);
  transition: border-color .25s ease, background .25s ease;
}

.ry-health-page #ahs-accordion .panel-title i::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid var(--health-red);
  border-bottom: 2px solid var(--health-red);
  transform: rotate(45deg);
  transition: margin .25s ease, border-color .25s ease, transform .25s ease;
}

.ry-health-page #ahs-accordion .accordion-toggle:hover .panel-title i,
.ry-health-page #ahs-accordion .accordion-toggle:focus-visible .panel-title i {
  border-color: var(--health-red);
  background: rgba(255,36,56,.16);
}

.ry-health-page #ahs-accordion .accordion-toggle[aria-expanded="true"] .panel-title i {
  border-color: var(--health-red);
  background: var(--health-red);
}

.ry-health-page #ahs-accordion .accordion-toggle[aria-expanded="true"] .panel-title i::after {
  margin-top: 4px;
  border-color: #fff;
  transform: rotate(225deg);
}

.ry-health-page #ahs-accordion .panel-body {
  padding: 0 56px 36px 0;
}

.ry-health-page #ahs-accordion .panel-body p,
.ry-health-page #ahs-accordion .panel-body li {
  color: #b4b4b9;
}

.ry-health-page #ahs-accordion .panel-body ul {
  margin: 18px 0 !important;
  padding-left: 22px;
}

.ry-health-page #ahs-accordion .panel-body li {
  margin-bottom: 9px;
}

.ry-health-script,
.ry-health-experience {
  margin: 24px 0;
  padding: 24px 27px;
  border: 1px solid var(--health-line);
  border-radius: 14px;
  background: rgba(255,255,255,.026);
}

.ry-health-script {
  border-left: 2px solid var(--health-red);
}

.ry-health-experience {
  background: linear-gradient(110deg, rgba(255,36,56,.12), rgba(255,36,56,.025));
}

.ry-health-script p,
.ry-health-experience p {
  margin-bottom: 0;
}

.ry-health-experience strong {
  display: block;
  margin-top: 16px;
}

/* Closing guidance */
.ry-health-page .ry-health-close {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 10vw, 145px) 0;
  color: #c6c6ca;
  background:
    radial-gradient(ellipse at 88% 14%, rgba(255,36,56,.075), transparent 30%),
    linear-gradient(180deg, #101012, #09090b);
  border-top: 1px solid var(--health-line);
}

.ry-health-page .ry-health-close h2 {
  max-width: 880px;
  margin: 0 0 28px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.1rem, 4.8vw, 4rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -.055em;
}

.ry-health-page .ry-health-close p,
.ry-health-page .ry-health-close li {
  color: #b8b8bd;
  font-size: 1.03rem;
  line-height: 1.76;
}

.ry-health-say-it {
  margin: 40px 0;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(255,36,56,.38);
  border-radius: 17px;
  background: linear-gradient(115deg, rgba(255,36,56,.12), rgba(255,36,56,.025));
}

.ry-health-say-it > span {
  display: block;
  margin-bottom: 19px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.ry-health-say-it ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--health-line);
}

.ry-health-say-it li {
  padding: 13px 0;
  border-bottom: 1px solid var(--health-line);
}

.ry-health-say-it strong {
  color: #fff;
}

.ry-health-page .ry-health-close blockquote {
  margin: 45px 0;
  padding: 6px 0 6px 28px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -.025em;
  border-left: 2px solid var(--health-red);
}

/* Sources and established ending */
.ry-health-page .ry-health-sources {
  padding: clamp(85px, 9vw, 130px) 0;
  color: #c6c6ca;
  background:
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px),
    #0d0d0f;
  background-size: 80px 80px;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.ry-health-page .ry-health-sources__panel {
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--health-line);
  border-radius: 18px;
  background: rgba(5,5,6,.78);
}

.ry-health-page .ry-health-sources__panel p,
.ry-health-page .ry-health-sources__panel li {
  color: #b9b9be;
  font-size: 1rem;
  line-height: 1.72;
}

.ry-health-page .ry-health-sources__panel p {
  margin-bottom: 22px;
}

.ry-health-page .ry-health-sources__panel ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--health-line);
}

.ry-health-page .ry-health-sources__panel li {
  padding: 13px 0;
  border-bottom: 1px solid var(--health-line);
}

.ry-health-page .ry-health-sources__panel strong {
  color: #fff;
}

.ry-health-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 25px;
}

.ry-health-source-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 14px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .045em;
  text-decoration: none;
  border: 1px solid rgba(255,36,56,.52);
  border-radius: 999px;
  background: rgba(255,36,56,.07);
}

.ry-health-source-links a:hover,
.ry-health-source-links a:focus-visible {
  color: #fff;
  border-color: var(--health-red);
  background: rgba(255,36,56,.18);
}

.ry-health-page .ry-health-sources__note {
  margin: 0 !important;
  color: #8f8f95 !important;
  font-size: .9rem !important;
}

.ry-health-page #where-next {
  background:
    radial-gradient(ellipse at 28% 10%, rgba(255,36,56,.08), transparent 34%),
    #050506;
}

@media (max-width: 991px) {
  .ry-health-page .ry-health-hero {
    min-height: 720px;
  }

  .ry-health-shift {
    grid-template-columns: 1fr;
  }

  .ry-health-shift__mark {
    min-height: 260px;
    border-top: 1px solid var(--health-line);
    border-left: 0;
  }

  .ry-health-intake__secondary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .ry-health-page .ry-health-hero {
    min-height: 680px;
  }

  .ry-health-page .ry-health-hero .ry-page-hero__bg {
    background-position: 62% center;
  }

  .ry-health-call-map__grid,
  .ry-health-intake__grid,
  .ry-health-before-call,
  .ry-health-before-call ul {
    grid-template-columns: 1fr;
  }

  .ry-health-call-card {
    min-height: 230px;
    border-right: 0;
    border-bottom: 1px solid var(--health-line) !important;
  }

  .ry-health-call-card:last-child {
    border-bottom: 0 !important;
  }

  .ry-health-before-call > p {
    grid-column: auto;
  }

  .ry-health-page #ahs-accordion .panel-title {
    gap: 12px;
    font-size: .97rem;
  }

  .ry-health-page #ahs-accordion .panel-body {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ry-health-call-card,
  .ry-health-intake__grid a,
  .ry-health-page #ahs-accordion .panel-title i,
  .ry-health-page #ahs-accordion .panel-title i::after {
    transition: none;
  }
}
