/* =============================================================
   GUIDE ARTICLE - resources/views/v2/guides/*.blade.php
   Figma: "Guides" article frame 10473:2385.
   Motion uses the individual `translate` / `scale` properties so it
   never fights a `transform` used for hover or layout.
   ============================================================= */
.guide-article {
  overflow-x: clip;
  background: var(--c-white);
}

/* ---------- Reading progress (script-v2.js sets --ga-progress) ---------- */
.ga-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  width: 100%;
  height: 4px;
  pointer-events: none;
  background: linear-gradient(to right, var(--c-blue) 29.808%, var(--c-orange));
  transform: scaleX(var(--ga-progress, 0));
  transform-origin: left;
}

/* ---------- Hero (10473:4087) ---------- */
.ga-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 473px;
  padding: 60px var(--page-gutter);
  overflow: hidden;
  isolation: isolate;
}
.ga-hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ga-hero-gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, var(--c-blue) 29.808%, var(--c-orange));
  opacity: 0.69;
}
.ga-hero-title {
  max-width: 887px;
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 42px;
  line-height: 60px;
  color: var(--c-white);
  text-align: center;
  text-transform: none;
}

/* ---------- Body (10473:2469) ---------- */
.ga-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 60px;
  padding-bottom: 100px;
}
.gd-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.guide-article p {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 25px;
  color: var(--c-text);
}
/* In-text links. !important beats style-v2.css's global `a { text-decoration: none !important }`. */
.gd-section p a {
  color: var(--c-blue);
  font-weight: 600;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.gd-section p a:hover,
.gd-section p a:focus-visible {
  color: var(--c-orange);
}
.gd-text p + p {
  margin-top: 16px;
}
.gd-text--tight p + p {
  margin-top: 0;
}

/* Section heading bar */
.gd-section > h2 {
  margin: 0;
  padding: 10px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 32px;
  line-height: 41.6px;
  color: var(--c-white);
  text-transform: capitalize;
  background: var(--c-blue);
  border-radius: 8px;
}

/* Titled items: numbered (teal number) or bulleted */
.gd-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gd-item h3,
.gd-item h4 {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 16px;
  line-height: 25px;
  color: var(--c-blue);
  text-transform: none;
}
.gd-num {
  color: #0d9488;
}
.gd-bullet h3,
.gd-bullet h4 {
  display: list-item;
  margin-left: 24px;
  list-style: disc outside;
}
.gd-bullet h3::marker,
.gd-bullet h4::marker {
  color: var(--c-blue);
}

/* Sub-blocks inside a section (11715:591) */
.gd-sub {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gd-subhead {
  margin: 0;
  padding: 0 10px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 24px;
  line-height: 33.6px;
  color: var(--c-blue);
  text-transform: capitalize;
  border-left: 4px solid var(--c-orange);
}
.guide-article .gd-lead {
  line-height: 28.8px;
}

/* ---------- Tables ---------- */
.gd-table-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--c-white);
  border: 1px solid var(--c-light-grey);
  border-radius: 16px;
  box-shadow: 0 24px 60px 0 rgba(39, 55, 117, 0.08);
}
.gd-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: var(--font-primary);
}
.gd-table thead th {
  height: 56px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 20px;
  line-height: normal;
  color: var(--c-white);
  text-align: center;
  vertical-align: middle;
  background: var(--c-orange);
  border-right: 1px solid #f48386;
}
.gd-table thead th.th-blue {
  background: var(--c-blue);
}
.gd-table tbody th,
.gd-table tbody td {
  padding: 16px;
  text-align: left;
  vertical-align: top;
  background: var(--c-white);
  border-right: 1px solid var(--c-light-grey);
  border-bottom: 1px solid var(--c-light-grey);
  transition: background-color 0.25s ease;
}
.gd-table tbody td {
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  color: var(--c-text);
}
.gd-table tr > :last-child {
  border-right: 0;
}
.gd-table tbody tr:last-child > * {
  border-bottom: 0;
}
.gd-table tbody tr:hover > * {
  background: #f7f8ff;
}
.gd-table--wide-pad tbody td {
  padding: 16px 32px;
}
/* Smaller body text (11715:685, 11715:734) */
.gd-table--small tbody td {
  font-size: 14px;
  line-height: 22.68px;
}
.gd-table--small tbody td strong {
  font-weight: 700;
  color: var(--c-text);
}
.gd-table--compare tbody th,
.gd-table--compare tbody td {
  height: 64px;
  vertical-align: middle;
}
.gd-table--compare tbody th {
  font-weight: 700;
  font-size: 14.5px;
  line-height: 21.75px;
  color: var(--c-text);
}
/* Types of credentialing (10473:2999) */
.gd-table--types thead th {
  font-size: 16px;
  white-space: nowrap;
}
.gd-table--types tbody th,
.gd-table--types tbody td {
  height: 148px;
}
.gd-table--types tbody th {
  font-weight: 600;
  font-size: 14.5px;
  line-height: 21.75px;
  color: var(--c-blue);
}
.gd-table--types tbody th span {
  display: block;
  max-width: 138px;
}
.gd-table--types tbody td {
  font-size: 14px;
  line-height: 22.68px;
}

/* ---------- CTA banner (11772:596) ---------- */
.ga-cta2 {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(to right, var(--c-blue) 29.808%, var(--c-orange));
  border-radius: 20px;
  box-shadow: 0 2.704px 11.561px 0 var(--c-bg-blue);
}
.ga-cta2-wave {
  position: absolute;
  top: 83px;
  left: calc(50% - 16.4px);
  z-index: -1;
  width: 786px;
  max-width: none;
  height: 353.884px;
  rotate: -14.37deg;
  pointer-events: none;
}
.ga-cta2-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 874px;
  max-width: 100%;
}
.ga-cta2-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.ga-cta2-title {
  max-width: 718px;
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 36px;
  line-height: 45px;
  color: var(--c-white);
  text-transform: none;
}
.guide-article .ga-cta2-sub {
  max-width: 622px;
  font-weight: 500;
  line-height: 25.2px;
  color: var(--c-white);
}
.ga-cta2-btn {
  position: relative;
  display: inline-flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  overflow: hidden;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  line-height: 16px;
  color: var(--c-white);
  text-align: center;
  text-decoration: none;
  background: var(--c-orange);
  border-radius: 50px;
  transition: box-shadow 0.3s ease, translate 0.3s ease;
}
.ga-cta2-btn:hover,
.ga-cta2-btn:focus-visible {
  color: var(--c-white);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.45);
  translate: 0 -2px;
}
/* A light sheen sweeps across the button on hover. */
.ga-cta2-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  translate: -110% 0;
  transition: translate 0.7s ease;
}
.ga-cta2-btn:hover::after {
  translate: 110% 0;
}
.ga-cta2-btn-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--c-white);
  border-radius: 9999px;
}
.ga-cta2-btn-icon img {
  width: 11px;
  height: 10px;
  transition: translate 0.3s ease;
}
.ga-cta2-btn:hover .ga-cta2-btn-icon img {
  translate: 2px 0;
}

/* ---------- Process diagram card (11696:7711) ---------- */
.gd-process {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  line-height: 0;
}
.gd-process img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- CTA banner with arrow panel (11772:613) ---------- */
.ga-cta1 {
  position: relative;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  box-sizing: border-box;
  min-height: 230px;
  padding: 40px 421px 40px 40px;
  overflow: hidden;
  background: var(--c-bg-blue);
  border: 2px solid var(--c-bg-blue);
  border-radius: 20px;
  box-shadow: 0 2.704px 11.561px 0 var(--c-bg-blue);
}
.ga-cta1-icon {
  flex-shrink: 0;
  width: 139.08px;
  height: 139.08px;
}
.ga-cta1-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 585px;
}
.ga-cta1-title {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 32px;
  line-height: 45px;
  color: var(--c-blue);
  text-transform: none;
}
.ga-cta1-title span {
  color: var(--c-orange);
}
.ga-cta1-panel {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 381px;
  height: 230px;
  color: var(--c-white);
  text-decoration: none;
}
.ga-cta1-shape {
  position: absolute;
  top: 0;
  left: 5.26px;
  width: 376px;
  height: 230px;
  overflow: hidden;
}
/* Halftone dots fading out from the top-right corner. */
.ga-cta1-dots {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 140px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.95) 1.5px, transparent 2px);
  background-size: 15.5px 15.5px;
  -webkit-mask-image: linear-gradient(225deg, #000 10%, transparent 60%);
  mask-image: linear-gradient(225deg, #000 10%, transparent 60%);
  border-top-right-radius: 20px;
  pointer-events: none;
}
.ga-cta1-btn {
  position: absolute;
  top: 79px;
  left: 77px;
  display: flex;
  gap: 15px;
  align-items: center;
}
.ga-cta1-btn-ic {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--c-white);
  border-radius: 9999px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.15));
}
.ga-cta1-btn-ic img {
  width: 25.5px;
  height: 25.5px;
}
.ga-cta1-btn-txt {
  width: 168px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: var(--c-white);
}
.ga-cta1-chev {
  width: 13px;
  height: 23.79px;
  rotate: 180deg;
  transition: translate 0.3s ease;
}
.ga-cta1-panel:hover .ga-cta1-chev,
.ga-cta1-panel:focus-visible .ga-cta1-chev {
  translate: 6px 0;
}
.ga-cta1-panel .ga-cta1-shape path {
  transition: filter 0.3s ease;
}
.ga-cta1-panel:hover .ga-cta1-shape > path,
.ga-cta1-panel:focus-visible .ga-cta1-shape > path {
  filter: brightness(1.08);
}
.ga-cta1-panel:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
}

/* =============================================================
   Motion
   ============================================================= */
@keyframes ga-fade-up {
  from { opacity: 0; translate: 0 24px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes ga-hero-zoom {
  from { scale: 1.12; }
  to   { scale: 1; }
}
@keyframes ga-fade-in {
  from { opacity: 0; }
}
@keyframes ga-bar-wipe {
  from { clip-path: inset(0 100% 0 0 round 8px); }
  to   { clip-path: inset(0 0 0 0 round 8px); }
}
@keyframes ga-wave-sway {
  0%, 100% { translate: 0 0; rotate: -14.37deg; }
  50%      { translate: -14px 10px; rotate: -11deg; }
}

@keyframes ga-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
@keyframes ga-twinkle {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}
@keyframes ga-chev-nudge {
  0%, 60%, 100% { translate: 0 0; }
  30%           { translate: 5px 0; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Hero plays on first paint in pure CSS. */
  .ga-cta1-btn-ic {
    animation: ga-pulse 2.4s ease-out infinite;
  }
  .ga-cta1-dots {
    animation: ga-twinkle 4s ease-in-out infinite;
  }
  .ga-cta1-chev {
    animation: ga-chev-nudge 2.4s ease-in-out infinite;
  }
  .ga-cta1-panel:hover .ga-cta1-chev {
    animation: none;
  }
  .ga-hero-img {
    animation: ga-hero-zoom 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .ga-hero-gradient {
    animation: ga-fade-in 1s ease both;
  }
  .ga-hero-title {
    animation: ga-fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both;
  }
  .ga-cta2-wave {
    animation: ga-wave-sway 9s ease-in-out infinite;
  }

  /* Scroll reveal: script-v2.js adds .is-reveal to [data-reveal] blocks, then
     .is-inview once one scrolls into view. Children land one after another. */
  .guide-article [data-reveal].is-reveal > *,
  .guide-article .is-reveal .gd-table tbody tr {
    opacity: 0;
    translate: 0 24px;
    transition:
      opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
      translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .guide-article [data-reveal].is-reveal.is-inview > *,
  .guide-article .is-reveal.is-inview .gd-table tbody tr {
    opacity: 1;
    translate: 0 0;
  }
  .guide-article [data-reveal].is-inview > :nth-child(2) { transition-delay: 0.08s; }
  .guide-article [data-reveal].is-inview > :nth-child(3) { transition-delay: 0.16s; }
  .guide-article [data-reveal].is-inview > :nth-child(4) { transition-delay: 0.24s; }
  .guide-article [data-reveal].is-inview > :nth-child(5) { transition-delay: 0.32s; }
  .guide-article [data-reveal].is-inview > :nth-child(n + 6) { transition-delay: 0.4s; }
  .guide-article .is-inview .gd-table tbody tr:nth-child(1) { transition-delay: 0.3s; }
  .guide-article .is-inview .gd-table tbody tr:nth-child(2) { transition-delay: 0.38s; }
  .guide-article .is-inview .gd-table tbody tr:nth-child(3) { transition-delay: 0.46s; }
  .guide-article .is-inview .gd-table tbody tr:nth-child(4) { transition-delay: 0.54s; }
  .guide-article .is-inview .gd-table tbody tr:nth-child(5) { transition-delay: 0.62s; }
  .guide-article .is-inview .gd-table tbody tr:nth-child(6) { transition-delay: 0.7s; }
  .guide-article .is-inview .gd-table tbody tr:nth-child(n + 7) { transition-delay: 0.78s; }
  /* The heading bar wipes open from the left. */
  .guide-article [data-reveal].is-inview > h2 {
    animation: ga-bar-wipe 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }
  /* The CTA banner rises as one piece. */
  .guide-article .ga-cta2.is-reveal {
    opacity: 0;
    translate: 0 32px;
    scale: 0.98;
    transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), scale 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .guide-article .ga-cta2.is-reveal > * {
    opacity: 1;
    translate: none;
  }
  .guide-article .ga-cta1.is-reveal > * {
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .guide-article .ga-cta1.is-reveal > .ga-cta1-icon { scale: 0.6; transition: opacity 0.6s ease, scale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .guide-article .ga-cta1.is-reveal > .ga-cta1-panel { translate: 60px 0; transition-delay: 0.2s; }
  .guide-article .ga-cta1.is-reveal.is-inview > .ga-cta1-icon { scale: 1; }
  .guide-article .ga-cta1.is-reveal.is-inview > .ga-cta1-panel { translate: 0 0; }
  /* The process diagram settles in from a slight zoom. */
  .guide-article .is-reveal .gd-process img {
    scale: 1.06;
    transition: scale 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .guide-article .is-reveal.is-inview .gd-process img {
    scale: 1;
  }
  .guide-article .ga-cta2.is-reveal.is-inview {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1199px) {
  /* Wide tables scroll sideways inside their card instead of squashing. */
  .gd-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .gd-table--types {
    min-width: 1100px;
  }
  .gd-table--small {
    min-width: 760px;
  }
  .ga-cta2-wave {
    left: 40%;
  }
}
@media (max-width: 1199px) {
  .ga-cta1 {
    flex-wrap: wrap;
    padding: 32px 32px 0;
  }
  .ga-cta1-text {
    flex: 1 1 320px;
  }
  .ga-cta1-panel {
    position: relative;
    top: auto;
    right: auto;
    width: calc(100% + 68px);
    margin: 0 -34px -2px;
    height: 150px;
    overflow: hidden;
    background: linear-gradient(to right, var(--c-blue) 29.808%, var(--c-orange));
  }
  .ga-cta1-shape {
    display: none;
  }
  .ga-cta1-btn {
    top: 50%;
    left: 50%;
    translate: -50% -50%;
  }
  .ga-cta1-btn-txt {
    width: auto;
    white-space: nowrap;
  }
  .ga-cta1-chev {
    margin-left: 12px;
  }
}
@media (max-width: 768px) {
  .ga-hero {
    min-height: 320px;
    padding: 48px 20px;
  }
  .ga-hero-title {
    font-size: 30px;
    line-height: 40px;
  }
  .ga-body {
    --page-gutter: 20px;
    padding-top: 40px;
    padding-bottom: 64px;
  }
  .gd-section > h2 {
    font-size: 24px;
    line-height: 32px;
  }
  .gd-subhead {
    font-size: 20px;
    line-height: 28px;
  }
  .gd-table thead th {
    font-size: 16px;
  }
  .gd-table--wide-pad tbody td {
    padding: 16px;
  }
  .gd-table:not(.gd-table--types):not(.gd-table--small) {
    min-width: 520px;
  }
  .ga-cta2 {
    padding: 32px 20px;
  }
  .ga-cta1 {
    gap: 20px;
    padding: 24px 20px 0;
  }
  .ga-cta1-icon {
    width: 90px;
    height: 90px;
  }
  .ga-cta1-title {
    font-size: 24px;
    line-height: 34px;
  }
  .ga-cta1-panel {
    width: calc(100% + 44px);
    margin: 0 -22px -2px;
  }
  .ga-cta1-btn-txt {
    font-size: 17px;
    white-space: normal;
    width: 180px;
  }
  .ga-cta2-title {
    font-size: 26px;
    line-height: 34px;
  }
  .ga-cta2-btn {
    white-space: normal;
    line-height: 22px;
  }
}
@media (max-width: 480px) {
  .ga-hero-title {
    font-size: 24px;
    line-height: 34px;
  }
}
