@import 'tailwindcss';
@import 'tw-animate-css';

@import './tailwind-shared.css';

/* Product / Payload CMS frontend — utilities, components, responsive overrides, base body, html */

@layer utilities {
  .container {
    width: 100%;
    margin-inline: auto;
    padding-inline: 1rem;
  }

  @variant sm {
    .container {
      max-width: var(--breakpoint-sm);
    }
  }

  @variant md {
    .container {
      max-width: var(--breakpoint-md);
      padding-inline: 2rem;
    }
  }

  @variant lg {
    .container {
      max-width: var(--breakpoint-lg);
    }
  }

  @variant xl {
    .container {
      max-width: var(--breakpoint-xl);
    }
  }

  @variant 2xl {
    .container {
      max-width: var(--breakpoint-2xl);
    }
  }

  .text-p-main {
    font-size: var(--text-p-main);
    line-height: var(--text-p-main--line-height);
    font-weight: var(--text-p-main--font-weight);
  }

  .text-p-sm {
    font-size: var(--text-p-sm);
    line-height: var(--text-p-sm--line-height);
    font-weight: var(--text-p-sm--font-weight);
  }

  .text-p-nav {
    font-size: var(--text-p-nav);
    line-height: var(--text-p-nav--line-height);
    font-weight: var(--text-p-nav--font-weight);
  }

  .text-caption-h {
    font-size: var(--text-caption-h);
    line-height: var(--text-caption-h--line-height);
    font-weight: var(--text-caption-h--font-weight);
  }

  .text-caption-p {
    font-size: var(--text-caption-p);
    line-height: var(--text-caption-p--line-height);
    font-weight: var(--text-caption-p--font-weight);
  }

  /* Layout stacks (token-driven primitives) */
  .stack-sm {
    display: flex;
    flex-direction: column;
    gap: var(--space-0-5);
  }

  .stack-md {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  .inline-sm {
    display: flex;
    align-items: center;
    gap: var(--space-0-5);
  }
}

@layer components {
  .resource-layout {
    display: grid;
    min-height: 100vh;
  }

  @variant lg {
    .resource-layout {
      grid-template-columns: 16.25rem 1fr;
    }
  }

  .resource-layout__aside {
    align-self: start;
    border-right: 1px solid var(--primary-100);
    background: var(--background);
  }

  @variant lg {
    .resource-layout__aside {
      position: sticky;
      top: var(--site-header-height);
      height: calc(100vh - var(--site-header-height));
      overflow-y: auto;
    }
  }

  .resource-layout__main {
    min-width: 0;
    padding-top: var(--space-3-5);
  }

  .resource-layout__mobile-nav {
    display: none;
  }

  .resource-mobile-sticky-nav {
    display: none;
  }

  .resource-mobile-sticky-nav__gradient {
    pointer-events: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(8rem + 0%);
    transition: height 0.4s ease;
    background: linear-gradient(to top, var(--background) 45%, rgba(254, 254, 254, 0) 100%);
  }

  .resource-mobile-sticky-nav__inner {
    pointer-events: auto;
    position: relative;
  }

  .resource-mobile-sticky-nav__card {
    border: 1px solid var(--primary-100);
    border-radius: var(--space-0-75);
    background: var(--background);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }

  .resource-mobile-sticky-nav__trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border: 0;
    background: transparent;
    color: var(--secondary-500);
    padding: var(--space-0-5) var(--space-1) var(--space-0-5) var(--space-1);
    height: var(--space-3-5);
  }

  .resource-mobile-sticky-nav.is-open .resource-mobile-sticky-nav__trigger {
    border-top: 1px solid var(--primary-100);
  }

  .resource-mobile-sticky-nav__label-wrap {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.125rem;
    align-items: flex-start;
  }

  .resource-mobile-sticky-nav__label-caption {
    color: var(--gray-100);
    font-size: var(--text-caption-p);
    line-height: var(--text-caption-p--line-height);
    font-weight: var(--text-caption-p--font-weight);
    text-transform: none;
  }

  .resource-mobile-sticky-nav__label, .resource-mobile-sticky-nav__close-label {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
    color: var(--accent-700);
    font-size: var(--text-p-nav);
    line-height: var(--text-p-nav--line-height);
    font-weight: var(--text-p-nav--font-weight);
    padding-bottom: var(--space-0-25);
    max-width: 100%;
  }

  .resource-mobile-sticky-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: var(--secondary-500);
    transition: transform 0.2s ease;
  }

  .resource-mobile-sticky-nav.is-open {
    .resource-mobile-sticky-nav__icon {
    transform: rotate(0deg);
  }
  .resource-mobile-sticky-nav__gradient{
    height: calc(14rem + 100%);
  }
  }
  .resource-mobile-sticky-nav__label-inner {
    display: flex;
    flex-direction: row;
    gap: var(--space-0-25);
    justify-content: flex-start;
}
  .resource-mobile-sticky-nav:not(.is-open) .resource-mobile-sticky-nav__icon {
    transform: rotate(180deg);
  }

  .resource-mobile-sticky-nav__icon svg {
    width: 0.875rem;
    height: 0.875rem;
  }

  .resource-mobile-sticky-nav__panel-wrap {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s ease, opacity 0.3s ease;
  }

  .resource-mobile-sticky-nav__panel-wrap.is-open {
    max-height: min(600px, 85vh);
    opacity: 1;
    
  }

  .resource-mobile-sticky-nav__panel {
    height: auto;
    overflow-y: auto;
    padding: var(--space-1-25);
    transform: translateY(0.25rem);
    transition: transform 0.24s ease;
  }

  .resource-mobile-sticky-nav__panel-wrap.is-open .resource-mobile-sticky-nav__panel {
    transform: translateY(0);
  }

  .resource-mobile-sticky-nav__panel-title {
    color: var(--primary-600);
    font-size: var(--text-h5);
    line-height: var(--text-h5--line-height);
    font-weight: var(--text-h5--font-weight);
    margin-bottom: var(--space-1);
  }

  .resource-page {
    padding-bottom: var(--space-4);
  }

  .resources-page__header {
    margin-bottom: var(--space-2-5);
  }

  /* Full-bleed filter bar: edge-to-edge viewport with 1rem inset (see ResourcesListingWithFilters). */
  .resources-page__filters-outer {
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
    margin-bottom: var(--space-2);
    padding-inline: 1rem;
  }

  .resources-page__filters-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-top: var(--space-0-125);
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    mask-image: var(--resources-filters-mask, linear-gradient(to right, #000 0%, #000 100%));
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    -webkit-mask-image: var(--resources-filters-mask, linear-gradient(to right, #000 0%, #000 100%));
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    scrollbar-color: var(--primary-100) transparent;
    scrollbar-width: thin;
  }

  .resources-page__filters-scroll::-webkit-scrollbar {
    height: 6px;
  }

  .resources-page__filters-scroll::-webkit-scrollbar-track {
    background: transparent;
  }

  .resources-page__filters-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background-color: var(--primary-100);
  }

  .resources-page__filters-track {
    display: flex;
    width: max-content;
    flex-wrap: nowrap;
    gap: var(--space-0-5);
  }

  @variant md {
    /* Align filter row with container grid; full-bleed only on small screens. */
    .resources-page__filters-outer {
      width: 100%;
      max-width: none;
      margin-inline: 0;
      padding-inline: 0;
    }

    .resources-page__filters-scroll {
      overflow-x: visible;
      overflow-y: visible;
      padding-bottom: 0;
      mask-image: none;
      -webkit-mask-image: none;
      scrollbar-width: none;
    }

    .resources-page__filters-scroll::-webkit-scrollbar {
      display: none;
    }

    .resources-page__filters-track {
      width: 100%;
      max-width: none;
      flex-wrap: wrap;
    }
  }

  .resources-grid {
    display: grid;
    gap: var(--space-1);
  }

  @variant md {
    .resources-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @variant xl {
    .resources-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }

  .resource-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--space-1);
    background: rgba(240, 244, 245, 0.50);
    text-decoration: none;
    transition: box-shadow 260ms ease;
  }

  .resource-card:hover {
    box-shadow: var(--shadow-sm);
    .resource-card__media-image{
      transform: scale(1.02);
    }
    .resource-card__title{
      color: var(--accent-700);
    }
  }

  .resource-card__media-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--primary-50);
  }

  .resource-card__media {
    height: 100%;
    width: 100%;
  }

  .resource-card__media-image {
    object-fit: cover;
    transition: transform 260ms ease;
  }

  .resource-card__media-fallback {
    height: 100%;
    width: 100%;
    background: var(--primary-50);
  }
.resource-page__title {
  color: var(--primary-600);
}
  .resource-card__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-1-25);
  }

  .resource-card__title {
    color: var(--primary-600);
    font-size: var(--text-h5);
    line-height: var(--text-h5--line-height);
    font-weight: var(--text-h5--font-weight);
    transition: color 260ms ease;
  }

  .resource-card__tags {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: var(--space-0-5);
    overflow: hidden;
    min-height: 1.625rem;
  }

  .resource-card__tags-measure {
    position: absolute;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-0-5);
    width: max-content;
    left: -9999px;
    top: -9999px;
  }

  .resource-card__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-0-25);
    white-space: nowrap;
    border-radius: var(--radius-full);
    border: 1px solid var(--primary-100);
    color: var(--primary-600);
    padding: 0.25rem 0.5rem;
    font-size: var(--text-caption-p);
    line-height: 1;
    font-weight: var(--text-caption-p--font-weight);
    border-radius: 333px;
  }

  .resource-card__tag--more {
    border-color: var(--primary-100);
  }

  .resource-card__tag-icon-wrap {
    display: inline-flex;
    flex: 0 0 auto;
    width: var(--space-1);
    height: var(--space-1);
  }

  .resource-card__tag-icon-media {
    width: 100%;
    height: 100%;
  }

  .resource-card__tag-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .resource-main-hero {
    position: relative;
    min-height: 14.4375rem;
    overflow: visible;
    padding-inline: var(--space-1);
  }

  .resource-main-hero:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 150%;
    height: 100%;
    background: var(--primary-50);
    z-index: -1;
  }

  @variant md {
    .resource-main-hero {
      padding-inline: var(--space-2);
    }
  }

  @variant lg {
    .resource-main-hero {
      padding-left: var(--space-5);
      padding-right: var(--space-2-5);
    }
  }

  .resource-main-hero__inner {
    display: flex;
    min-height: 14.4375rem;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }

  @variant md {
    .resource-main-hero__inner {
      flex-direction: row;
      align-items: flex-start;
    }
  }

  .resource-main-hero__content {
    display: flex;
    flex: 1 1 0%;
    flex-direction: column;
    gap: var(--space-0-75);
    padding-bottom: var(--space-1);
    padding-top: var(--space-2);
    width: calc(var(--space-10) * 3);
    container-type: inline-size;
    container-name: resource-hero-content;
  }


  @variant md {
    .resource-main-hero__content {
      padding-bottom: var(--space-2);
      padding-left: var(--space-0-5);
      padding-top: var(--space-2-5);
    }
  }

  .resource-main-hero__chapter {
    color: var(--primary-600);
    text-transform: uppercase;
    font-size: var(--text-caption-h);
    line-height: var(--text-caption-h--line-height);
    font-weight: var(--font-weight-semibold);
  }

  .resource-main-hero__meta {
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1);
  }

  .resource-main-hero__meta .resource-main-hero__chapter {
    margin: 0;
  }

  .resource-main-hero__meta-sep {
    color: var(--gray-50);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    user-select: none;
  }

  .resource-main-hero__published {
    margin: 0;
    color: var(--gray-500);
    margin-top: 1px;
  }

  .resource-main-hero__date-hint-wrap {
    position: relative;
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    outline: none;
  }

  .resource-main-hero__date-hint-wrap:focus-visible {
    border-radius: var(--radius-sm);
    box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent-700) 35%, transparent);
  }

  .resource-main-hero__date-pill {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: var(--space-0-25);
  }

  .resource-main-hero__history-icon {
    flex-shrink: 0;
    color: var(--primary-600);
  }

  /* Match .payload-richtext__citation-tooltip / chip hints: width grows with content, capped by column + viewport */
  .resource-main-hero__date-tooltip {
    position: absolute;
    left: 50%;
    top: 100%;
    z-index: 35;
    margin-top: 0.375rem;
    box-sizing: border-box;
    width: max-content;
    max-width: calc(
      100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 2rem
    );
    padding: var(--space-0-75) var(--space-1);
    border-radius: var(--radius-md);
    border: 1px solid var(--primary-100);
    background: var(--background);
    box-shadow: var(--shadow-sm);
    font-size: var(--text-p-sm);
    line-height: var(--text-p-sm--line-height);
    font-weight: var(--text-p-sm--font-weight);
    color: var(--gray-500);
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(0.25rem);
    transition:
      opacity 0.15s ease,
      visibility 0.15s ease,
      transform 0.15s ease;
  }

  .resource-main-hero__content .resource-main-hero__date-tooltip {
    max-width: min(
      80cqw,
      calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 2rem)
    );
  }

  .resource-main-hero__date-hint-wrap:hover .resource-main-hero__date-tooltip,
  .resource-main-hero__date-hint-wrap:focus-within .resource-main-hero__date-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .resource-main-hero__title {
    color: var(--primary-600);
  }

  /* @variant md {
    .resource-main-hero__media-wrap {
      width: auto;
      padding-bottom: var(--space-2);
    }
  } */
  .resource-main-hero__media-wrap {
    width: auto;
    margin-bottom: calc(var(--space-1) * -1);
    padding-top: var(--space-3-5);
  }



  .resource-main-hero__media-image {
    height: auto;
    width: 100%;
    border-radius: 1rem;
    object-fit: cover;
    aspect-ratio: 1.75 / 1;
  }

  @variant md {
    .resource-main-hero__media-image {
      width: 18.1875rem;
    }
  }

  .resource-main-content {
    padding-inline: var(--space-1);
    padding-top: var(--space-2);
    padding-bottom: var(--space-2-5);
  }

  @variant md {
    .resource-main-content {
      padding-inline: var(--space-2);
      padding-top: var(--space-3);
    }
  }

  @variant lg {
    .resource-main-content {
      padding-inline: var(--space-2-5);
    }
  }

  .resource-main-content__inner {
    max-width: calc(var(--space-1) * 40 + var(--space-10));
  }

  @variant lg {
    .resource-main-content__inner {
      padding-left: var(--space-10);
    }
  }

  .resource-main-content__section {
    scroll-margin-top: 6rem;
    container-type: inline-size;
    container-name: resource-main-section;
  }

  .resource-benefits {
    display: flex;
    row-gap: var(--space-1);
    column-gap: var(--space-2-5);
    margin-bottom: var(--space-1-5);
    flex-direction: row;
    flex-wrap: wrap;
    padding-top: var(--space-1);
}

  @variant md {
    .resource-benefits {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  .resource-benefits__item {
    display: flex;
    align-items: center;
    gap: var(--space-0-5);
    padding-right: var(--space-1-75);
    border-radius: var(--space-0-5);
  }

  .resource-benefits__icon-wrap {
    flex-shrink: 0;
    display: flex;
    padding: 1rem;
    border: 1px solid var(--primary-100);
    border-radius: 50%;
}

  .resource-benefits__icon {
    width: var(--space-1-5);
    height: var(--space-1-5);
  }

  .resource-benefits__text {
    min-width: 0;
  }

  .resource-benefits__title {
    color: var(--gray-500);
    font-size: var(--text-p-nav);
    line-height: var(--text-p-nav--line-height);
    font-weight: var(--text-p-nav--font-weight);
    margin: 0 0 var(--space-0-125);
  }

  .resource-benefits__description {
    color: var(--primary-600);
    font-size: var(--text-p-sm);
    line-height: var(--text-p-sm--line-height);
    font-weight: var(--font-weight-bold);
    margin: 0;
  }

  .resource-nav {
    padding-top: var(--space-2);
  }

  @variant lg {
    .resource-nav {
      display: flex;
      min-height: 100%;
      flex-direction: column;
    }
  }

  .resource-nav__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-0-75);
    padding-right: var(--space-1-5);
  }

  .resource-nav__section {
    display: flex;
    flex-direction: column;
    gap: var(--space-0-5);
  }

  .resource-nav__trigger {
    display: flex;
    width: 100%;
    align-items: center;
    gap: var(--space-0-5);
    text-align: left;
    text-transform: uppercase;
    color: color-mix(in oklab, var(--secondary-500) 80%, transparent);
    font-size: var(--text-caption-h);
    line-height: var(--text-caption-h--line-height);
    font-weight: var(--text-caption-h--font-weight);
    transition: color 0.2s ease;
    cursor: pointer;
  }

  .resource-nav__trigger:hover,
  .resource-nav__trigger.is-open {
    color: var(--secondary-500);
  }

  .resource-nav__icon {
    display: inline-flex;
    height: 1.5rem;
    width: 1.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: var(--secondary-100);
    color: var(--secondary-500);
  }

  .resource-nav__chevron {
    height: 0.75rem;
    width: 0.75rem;
    transition: transform 0.2s ease;
  }

  .resource-nav__chevron.is-open {
    transform: rotate(180deg);
  }

  .resource-nav__links {
    max-height: 0;
    overflow: hidden;
    border-left: 1px solid var(--primary-200);
    margin-left: var(--space-0-75);
    display: flex;
    flex-direction: column;
    gap: var(--space-0-125);
    opacity: 0;
    transform: translateY(-0.125rem);
    transition:
      max-height 0.25s ease,
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .resource-nav__links.is-open {
    max-height: 17.5rem;
    overflow-y: auto;
    opacity: 1;
    transform: translateY(0);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-200) transparent;
  }

  .resource-nav__links.is-open::-webkit-scrollbar {
    width: 0.25rem;
  }

  .resource-nav__links.is-open::-webkit-scrollbar-track {
    background: transparent;
  }

  .resource-nav__links.is-open::-webkit-scrollbar-thumb {
    background: var(--primary-200);
    border-radius: 9999px;
  }

  .resource-nav__links.is-open.has-mask-bottom {
    mask-image: linear-gradient(to bottom, white 80%, transparent 100%);
  }

  .resource-nav__links.is-open.has-mask-top {
    mask-image: linear-gradient(to bottom, transparent 0%, white 10%, white 100%);
  }

  .resource-nav__links.is-open.has-mask-both {
    mask-image: linear-gradient(to bottom, transparent 0%, white 10%, white 90%, transparent 100%);
  }

  .resource-nav__link {
    position: relative;
    display: block;
    width: 100%;
    padding: var(--space-0-5) 0 var(--space-0-5) var(--space-1);
    text-align: left;
    color: var(--primary-600);
    font-size: var(--text-p-nav);
    line-height: var(--text-p-nav--line-height);
    font-weight: var(--text-p-nav--font-weight);
    transition: color 0.2s ease;
    cursor: pointer;
  }

  .resource-nav__link:hover {
    color: var(--accent-700);
  }

  .resource-nav__link.is-active {
    color: var(--accent-700);
  }

  .resource-nav__link.is-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    border-radius: 0 4px 4px 0;
    background: var(--accent-700);
  }

  .resource-nav__link.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 5%;
    height: 90%;
    width: 12px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(90deg, var(--accent-700) 0%, rgba(31, 190, 175, 0.00) 100%);
    filter: blur(1.5px);
    opacity: 0.2;
  }

  .resource-nav__footer {
    margin-top: var(--space-1-5);
    border-top: 1px solid var(--secondary-100);
    padding-top: var(--space-1);
  }

  @variant lg {
    .resource-nav__footer {
      margin-top: auto;
      position: sticky;
      bottom: 0;
      background: var(--background);
      padding-bottom: var(--space-1);
    }
  }

  .resource-nav__footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-0-5);
  }

  .resource-nav__footer-link {
    color: var(--primary-600);
    font-size: var(--text-p-nav);
    line-height: var(--text-p-nav--line-height);
    font-weight: var(--text-p-nav--font-weight);
    transition: color 0.2s ease;
  }

  .resource-nav__footer-link:hover {
    color: var(--accent-700);
  }

  button.resource-nav__footer-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    /* font: inherit; */
    text-align: left;
    width: 100%;
  }

  .ui-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: var(--radius-md);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    user-select: none;
  }

  .ui-button:active {
    transform: scale(0.98);
  }

  .ui-button:focus-visible {
    outline: 1px solid color-mix(in oklab, var(--ring) 50%, transparent);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--ring) 20%, transparent);
  }

  .ui-button:disabled {
    pointer-events: none;
    opacity: 0.5;
  }

  .ui-button [data-slot='button-icon'] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
  }

  .ui-button [data-slot='button-icon']>svg {
    pointer-events: none;
    flex-shrink: 0;
    /* Match button font-size so row height matches text-only buttons (fixed rem was taller than 14px copy). */
    width: 1em;
    height: 1em;
  }

  .ui-button[data-size='big'],
  .ui-button[data-size='default'],
  .ui-button.size-big,
  .ui-button.size-default {
    gap: var(--space-0-25);
    padding: var(--space-0-75) var(--space-1);
    font-size: var(--text-p-nav);
    line-height: 1;
  }

  .ui-button[data-size='small'],
  .ui-button.size-small {
    gap: var(--space-0-25);
    padding: var(--space-0-5) var(--space-0-75);
    font-size: 13px;
    line-height: 1;
  }

  .ui-button[data-size='icon'],
  .ui-button.size-icon {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    font-size: var(--text-p-nav);
    line-height: 1;
  }

  /* Icon-only buttons: keep visual weight; size is set by button box, not 1em. */
  .ui-button[data-size='icon'] [data-slot='button-icon']>svg,
  .ui-button.size-icon [data-slot='button-icon']>svg {
    width: var(--space-1);
    height: var(--space-1);
  }

  .ui-button[data-size='big'][data-left-icon='true'],
  .ui-button[data-size='default'][data-left-icon='true'] {
    padding-left: var(--space-0-75);
  }

  .ui-button[data-size='big'][data-right-icon='true'],
  .ui-button[data-size='default'][data-right-icon='true'] {
    padding-right: var(--space-0-75);
  }

  .ui-button[data-size='small'][data-left-icon='true'] {
    padding-left: var(--space-0-5);
  }

  .ui-button[data-size='small'][data-right-icon='true'] {
    padding-right: var(--space-0-5);
  }

  .ui-button.primary {
    background: var(--primary-600);
    color: #fff;
  }

  .ui-button.primary:hover {
    background: color-mix(in oklab, var(--primary-600) 90%, black);
  }

  .ui-button.secondary {
    background: var(--primary-100);
    color: var(--secondary-foreground);
  }

  .ui-button.secondary:hover {
    background: var(--primary-50);
  }

  .ui-button.outline {
    border: 1px solid var(--primary-100);
    color: var(--foreground);
  }

  .ui-button.outline:hover {
    color: var(--accent-foreground);
    border-color: var(--primary-200);
  }

  .ui-button.destructive {
    background: var(--destructive);
    color: #fff;
  }

  .ui-button.destructive:hover {
    background: color-mix(in oklab, var(--destructive) 90%, black);
  }

  .ui-button.ghost {
    background: transparent;
    color: var(--foreground);
  }

  .ui-button.ghost:hover {
    background: var(--accent);
    color: var(--accent-foreground);
  }

  .ui-button.ghost.is-active {
    
    color: var(--accent-700);
  }

  .ui-button.ghost:active {
    
    color: var(--accent-700);
  }

  .ui-button.link {
    background: transparent;
    color: var(--primary-600);
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 0.125em;
  }

  .ui-button.link:hover {
    color: var(--accent-800);
  }

  .ui-button.link:active {
    transform: none;
  }

  .site-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--primary-100);
    background: color-mix(in oklab, var(--background) 95%, transparent);
    backdrop-filter: blur(4px);
  }

  .site-header.site-header--with-reading-progress {
    border-bottom: none;
  }

  .site-header__reading-progress {
    height: 2px;
    width: 100%;
    background: var(--primary-100);
    overflow: hidden;
  }

  .site-header__reading-progress-fill {
    height: 100%;
    width: 100%;
    transform-origin: left center;
    background: var(--accent-700);
    /* No width/transition: Safari defers layout during scroll; scaleX composits smoothly. */
    will-change: transform;
  }

  .page-wrapper {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    overflow-x: clip;
  }

  .site-header__container {
    padding-inline: 1rem;
  }

  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-0-75) 0;
  }

  .site-header__left {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }

  .site-header__tagline {
    display: inline-block;
    max-width: var(--space-10);
    color: var(--gray-100);
    font-size: var(--text-caption-p);
    line-height: 1;
    font-weight: var(--text-caption-p--font-weight);
  }

  .site-header__link {
    color: var(--foreground);
    font-size: var(--text-p-nav);
    line-height: var(--text-p-nav--line-height);
    font-weight: var(--text-p-nav--font-weight);
    transition: color 0.2s ease;
  }

  .site-header__link:hover {
    color: var(--primary);
  }

  .site-header__account-link {
    display: none;
    color: var(--foreground);
    font-size: var(--text-p-nav);
    line-height: var(--text-p-nav--line-height);
    font-weight: var(--text-p-nav--font-weight);
  }

  .site-header-spacer {
    height: 0px;
    flex: 0 0 auto;
  }

  

  .payload-richtext :is(h2, h3, h4, h5) {
    color: var(--primary-600);
  }

  .payload-richtext--gutter {
    width: 100%;
    margin-inline: auto;
    padding-inline: 1rem;
  }

  @variant sm {
    .payload-richtext--gutter {
      max-width: var(--breakpoint-sm);
    }
  }

  @variant md {
    .payload-richtext--gutter {
      max-width: var(--breakpoint-md);
      padding-inline: 2rem;
    }
  }

  @variant lg {
    .payload-richtext--gutter {
      max-width: var(--breakpoint-lg);
    }
  }

  @variant xl {
    .payload-richtext--gutter {
      max-width: var(--breakpoint-xl);
    }
  }

  @variant 2xl {
    .payload-richtext--gutter {
      max-width: var(--breakpoint-2xl);
    }
  }

  .payload-richtext--no-gutter {
    max-width: none;
  }

  .payload-richtext--prose {
    @apply mx-auto prose md:prose-md dark:prose-invert;
    max-width: 100%;
  }

  .payload-richtext--prose.resource-category-richtext {
    --tw-prose-headings: var(--primary-600);
    --tw-prose-body: var(--gray-500);
    --tw-prose-links: var(--primary-600);
    --tw-prose-bold: var(--gray-900);
    --tw-prose-bullets: var(--primary-600);
    --tw-prose-counters: var(--primary-600);
  }

  .payload-richtext--prose.resource-category-richtext :where(h2):not(:where(.not-prose, .not-prose *)),
  .resource-chapter-references__title {
    font-size: var(--text-h2);
    line-height: var(--text-h2--line-height);
    font-weight: var(--text-h2--font-weight);
    margin-top: 1.75em;
    margin-bottom: 0.75em;
    color: var(--primary-600);
  }

  .payload-richtext--prose.resource-category-richtext :where(h3):not(:where(.not-prose, .not-prose *)) {
    font-size: var(--text-h3);
    line-height: var(--text-h3--line-height);
    font-weight: var(--text-h3--font-weight);
    margin-top: 1.5em;
    margin-bottom: 0.6em;
  }
  .payload-richtext--prose.resource-category-richtext :where(h2 + h3):not(:where(.not-prose, .not-prose *)) {
  margin-top: .75em
  }

  .payload-richtext--prose.resource-category-richtext :where(h4):not(:where(.not-prose, .not-prose *)), .resource-block-timeline__item h4 {
    font-size: var(--text-h4);
    line-height: var(--text-h4--line-height);
    font-weight: var(--text-h4--font-weight);
    margin-top: 1.25em;
    margin-bottom: 0.4em;
  }

  .payload-richtext--prose.resource-category-richtext :where(h5):not(:where(.not-prose, .not-prose *)), .resource-block-timeline__item h5 {
    font-size: var(--text-h5);
    line-height: var(--text-h5--line-height);
    font-weight: var(--text-h5--font-weight);
    margin-top: .8em;
    margin-bottom: 0.4em;
  }
  .resource-block-banner__inner{
    .payload-richtext.payload-richtext--no-gutter h5 {
    margin-top: 0;
  }
  }
  .payload-richtext--prose.resource-category-richtext :where(p, ul, ol, li, a):not(:where(.not-prose, .not-prose *)), .resource-block-timeline__item p, .resource-block-banner__inner :is(ul li, ol li), .payload-richtext :is(ul li, ol li) {
    font-size: var(--text-p-main);
    line-height: var(--text-p-main--line-height);
    font-weight: var(--text-p-main--font-weight);
    margin-bottom: 0.4em;
  }

  .payload-richtext--prose.resource-category-richtext :where(strong, b):not(:where(.not-prose, .not-prose *)) {
    font-weight: var(--font-weight-bold);
  }

  .payload-richtext.resource-category-richtext :is(h2, h3, h4, h5) {
    color: var(--primary-600);
  }

  .payload-richtext.resource-category-richtext h2[id] {
    scroll-margin-top: 80px;
  }

  /* Lexical sections: one wrapper per h2 block (see RichText sectionizeByH2) */
  .resource-category-richtext .resource-category-h2-section {
    position: relative;
    min-width: 0;
  }

  .resource-category-richtext .resource-category-h2-section + .resource-category-h2-section {
    margin-top: 1.75em;
  }

  .resource-category-richtext
    .resource-category-h2-section:not(.resource-category-h2-section--preface)
    > h2:first-child {
    position: sticky;
    top: var(--site-header-height);
    z-index: 2;
    background: var(--background);
    box-shadow: 0 1px 0 color-mix(in oklab, var(--primary-100) 85%, transparent);
    padding-block: var(--space-0-25) var(--space-0-5);
    /* margin-top: 0; */
    padding-top: var(--space-1);
    padding-bottom: var(--space-1);
    margin-bottom: 0;
  }

  .resource-category-richtext
    .resource-category-h2-section:not(.resource-category-h2-section--preface)
    > h2:first-child + * {
      margin-top: var(--space-1-5);
      
    }

  /* AMA-style in-text citation (see ChapterCitationAnchor) */
  .payload-richtext__citation-wrap {
    position: relative;
    display: inline;
    vertical-align: baseline;
    white-space: nowrap;
  }

  .payload-richtext__citation-trigger {
    display: inline;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: var(--accent-700);
    vertical-align: baseline;
    line-height: inherit;
    vertical-align: super;
    font-size: small;
    width: var(--space-1);
    height: var(--space-1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 33px !important;
    background-color: var(--primary-50);
    color: var(--accent-700);
    font-size: 10px; 
    line-height: var(--space-0-75);
    font-weight: var(--font-weight-medium);
    position: relative;
    z-index: 1;
  }

  .payload-richtext__citation-wrap + .payload-richtext__citation-wrap::before {
    content: ", ";
    vertical-align: super;
    font-size: small;
  }

  /*
   * Hover wedge between superscript trigger and tooltip: without it, the pointer crosses “empty”
   * space that is not a descendant hit target → :hover drops and the tooltip (with link) vanishes
   * before the cursor reaches it (worse after tab/window switches).
   */
  .payload-richtext__citation-wrap::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% - 10px);
    width: max(3.5rem, 160%);
    height: 1.125rem;
    z-index: 28;
    pointer-events: none;
  }

  .payload-richtext__citation-wrap:hover::after,
  .payload-richtext__citation-wrap:focus-within::after {
    pointer-events: auto;
  }

  .payload-richtext__citation-trigger:focus-visible {
    outline: 2px solid var(--accent-700);
    outline-offset: 2px;
    border-radius: 2px;
  }

  .payload-richtext__citation {
    font-weight: var(--font-weight-semibold);
    margin-left: 0.05em;
    color: var(--accent-700);
  }

  .resource-block-procedure-type__chip[data-hint]::after {
    content: attr(data-hint);
    
  }

  .payload-richtext__citation-tooltip, .resource-block-procedure-type__chip[data-hint]::after {
    position: absolute;
    left: 50%;
    bottom: 100%;
    z-index: 30;
    margin-bottom: 3px;
    box-sizing: border-box;
    width: max-content;
    max-width: calc(
      100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 2rem
    );
    padding: var(--space-0-75) var(--space-1);
    border-radius: var(--radius-md);
    border: 1px solid var(--primary-100);
    background: var(--background);
    box-shadow: var(--shadow-sm);
    font-size: var(--text-p-sm);
    line-height: var(--text-p-sm--line-height);
    color: var(--gray-500);
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(0.25rem);
    transition:
      opacity 0.15s ease,
      visibility 0.15s ease,
      transform 0.15s ease;
  }

  /* Resource chapter body: grow with URL/title up to ~80% of section width; cap by viewport + safe area */
  .resource-main-content__section .payload-richtext__citation-tooltip {
    max-width: min(
      80cqw,
      calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 2rem)
    );
  }

  .payload-richtext__citation-wrap:hover .payload-richtext__citation-tooltip,
  .payload-richtext__citation-wrap:focus-within .payload-richtext__citation-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .payload-richtext__citation-tooltip-url {
    display: block;
    margin-bottom: var(--space-0-5);
    word-break: break-all;
  }

  .payload-richtext__citation-tooltip-link {
    font-weight: var(--font-weight-semibold);
    color: var(--accent-700);
    text-decoration: none;
  }

  .payload-richtext__citation-tooltip-link:hover {
    text-decoration: underline;
  }

  .payload-richtext__citation-tooltip-text {
    display: block;
    font-weight: var(--text-p-sm--font-weight);
    color: var(--gray-500);
  }

  .resource-chapter-references__citation {
    flex-shrink: 0;
    width: var(--space-1-5);
    height: var(--space-1-5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 33px;
    background-color: var(--primary-50);
    color: var(--accent-700);
    font-size: var(--text-caption-h);
    line-height: var(--text-caption-h--line-height);
    font-weight: var(--font-weight-regular);
  }

  .payload-richtext :is(p, ul, ol, li) {
    color: var(--gray-500);
  }

  .payload-richtext :is(strong, b) {
    color: var(--gray-900);
    font-weight: var(--font-weight-bold);
  }

  .payload-richtext a {
    color: var(--accent-700);
    text-decoration: none;
    text-underline-offset: 0.125em;
    transition: color 0.2s ease;
  }

  .payload-richtext a:hover {
    color: var(--accent-800);
    text-decoration: underline;
  }
  ul li,
  ol li {
    font-size: var(--text-p-main);
    line-height: var(--text-p-main--line-height);
    font-weight: var(--text-p-main--font-weight);
  }
  .payload-richtext ul li::marker,
  .payload-richtext ol li::marker {
    color: var(--primary-600);
  }


  /* Keep above fixed mobile chapter nav; smooth-scroll targets clear the header */
  .resource-chapter-references {
    position: relative;
    z-index: 2;
    isolation: isolate;
    scroll-margin-top: calc(var(--site-header-height) + var(--space-1));
  }

  .resource-chapter-references__list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    color: var(--gray-500);
    display: flex;
    flex-direction: column;
    gap: var(--space-0-5);
  }

  .resource-chapter-references__list.is-truncated {
    mask-image: linear-gradient(to bottom, white 20%, transparent 100%);
  }

  .resource-chapter-references__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-0-75);
    scroll-margin-top: calc(var(--site-header-height) + var(--space-1));
    font-size: var(--text-p-main);
    line-height: var(--text-p-main--line-height);
    font-weight: var(--text-p-main--font-weight);
  }

  .resource-chapter-references__body {
    min-width: 0;
    flex: 1;
  }

  .resource-chapter-references__text-link {
    margin: 0;
    color: var(--accent-700);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    display: inline;
    top: -2px;
    position: relative;
  }

  .resource-chapter-references__text-link:hover {
    color: var(--accent-800);
    text-decoration: underline;
  }

  .resource-chapter-references__text-link:focus-visible {
    outline: 2px solid var(--accent-500);
    outline-offset: 2px;
  }

  .resource-chapter-references__text-link--no-href, .resource-chapter-references__text-link--no-href:hover {
    color: var(--gray-500);
    font-weight: var(--text-p-main--font-weight);
    cursor: default;
    text-decoration: none;
  }

  .resource-chapter-references__toggle {
    position: relative;
    z-index: 3;
    margin-top: var(--space-1);
    width: fit-content;
    pointer-events: auto;
  }

  .resource-chapter-references__empty {
    color: var(--gray-500);
    font-size: var(--text-p-main);
    line-height: var(--text-p-main--line-height);
    font-weight: var(--text-p-main--font-weight);
  }

  .resource-next-step-banner {
    margin-top: var(--space-3-5);
    border-radius: var(--space-0-75);
    background: var(--primary-100);
    padding: var(--space-2) var(--space-1-5);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-0-75);
  }

  .resource-next-step-banner__icon {
    color: var(--primary-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--space-3);
    height: var(--space-3);
    flex-shrink: 0;
    background-color: white;
    padding: var(--space-0-75);
    border-radius: var(--space-0-25);
}

  .resource-next-step-banner__content {
    min-width: 0;
    margin-bottom: var(--space-0-75);
  }

  .resource-next-step-banner__title {
    color: var(--primary-600);
    font-size: var(--text-h5);
    line-height: var(--text-h5--line-height);
    font-weight: var(--text-h5--font-weight);
    margin: 0 0 var(--space-0-25);
  }

  .resource-next-step-banner__description {
    color: var(--gray-500);
    font-size: var(--text-p-main);
    line-height: var(--text-p-main--line-height);
    font-weight: var(--text-p-main--font-weight);
    margin: 0;
  }

  .resource-next-step-banner__action {
    margin-top: var(--space-0-25);
  }

  .resource-chapter-pager {
    margin-top: var(--space-3);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-0-75);
    padding-top: var(--space-1);
    border-top: 1px solid var(--gray-30);
}

  .resource-chapter-pager__button {
    width: 100%;
    justify-content: center;
  }

  .resource-chapter-pager__container {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: var(--space-0-5);
}

  .resource-chapter-pager__container.for-next {
    align-content: flex-end;
    text-align: right;
  }
  button.resource-chapter-pager__link {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: var(--space-0-25);
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
}
button.resource-chapter-pager__link:hover {
  color: var(--primary-600);
}
button.resource-chapter-pager__link svg {
  transition: transform 0.2s ease;
}
.resource-chapter-pager__container.for-next button.resource-chapter-pager__link:hover svg {
  transform: translateX(var(--space-0-125));
}
.resource-chapter-pager__container.for-previous button.resource-chapter-pager__link:hover svg {
  transform: translateX(calc(var(--space-0-125) * -1));
}
.resource-chapter-pager__text {
  color: var(--gray-100);
}
.resource-chapter-pager__container.for-next .resource-chapter-pager__text {
  padding-right: var(--space-1-25);
}
.resource-chapter-pager__container.for-previous .resource-chapter-pager__text {
  padding-left: var(--space-1-25);
}

  .resource-doctor-questions {
    margin-top: var(--space-1-5);
    border-top: 1px solid var(--primary-100);
    padding-top: var(--space-1);
  }

  .resource-doctor-questions__title {
    margin: 0 0 var(--space-0-75);
    color: var(--primary-600);
    font-size: var(--text-h5);
    line-height: var(--text-h5--line-height);
    font-weight: var(--text-h5--font-weight);
  }

  .resource-doctor-questions__content {
    color: var(--gray-700);
  }

  .resource-doctor-questions__content :is(ul, ol) {
    margin: 0 0 var(--space-0-75);
    padding-left: 1.5em;
  }

  .resource-doctor-questions__content :is(ul li) {
    list-style: disc;
  }

  .resource-doctor-questions__content :is(ol li) {
    list-style: decimal;
  }

  .resource-block-banner {
    margin: var(--space-2) auto;
    width: 100%;
  }

  .resource-block-banner__inner {
    display: flex;
    align-items: center;
    position: relative;
    border-radius: var(--radius-md);
    background: var(--primary-50);
    padding: var(--space-1-25) var(--space-1-5) var(--space-1-25) var(--space-3-5);
  }

  .resource-block-banner__inner h5 {
    margin-bottom: 0.4em;
  }
  .resource-block-banner__inner :is(p, ol, ul, li){
    font-size: var(--text-p-main);
    line-height: var(--text-p-main--line-height);
    font-weight: var(--text-p-main--font-weight);
  }

  .resource-block-banner__inner :is(ul, ol),
  .not-prose :is(ul, ol) {
    padding-inline-start: var(--space-0-75);
    margin-bottom: 0.4em;
  }

  .resource-block-banner__inner :is(ul li),
  .not-prose :is(ul li) {
    list-style: disc;
  }

  .resource-block-banner__inner :is(ol li),
  .not-prose :is(ol li) {
    list-style: decimal;
  }

  .resource-block-banner__inner::before {
    content: '';
    position: absolute;
    top: var(--space-1-25);
    left: var(--space-1-25);
    width: var(--space-1-5);
    height: var(--space-1-5);
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 16V12M12 8H12.01M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z' stroke='%2300606E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12 16V12M12 8H12.01M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z' stroke='black' stroke-opacity='0.2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
  }

  .resource-block-banner__inner--warning {
    background: var(--danger-25);
  }

  .resource-block-banner__inner--warning h5 {
    color: var(--danger-700) !important;
  }

  .resource-block-banner__inner--warning::before {
    content: '';
    position: absolute;
    top: var(--space-1-25);
    left: var(--space-1-25);
    width: var(--space-1-5);
    height: var(--space-1-5);
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_27604_42897)'%3E%3Cpath d='M12.8656 2.99996L22.3916 19.5C22.4794 19.652 22.5256 19.8244 22.5256 20C22.5256 20.1755 22.4794 20.3479 22.3916 20.4999C22.3038 20.652 22.1776 20.7782 22.0256 20.866C21.8736 20.9537 21.7011 21 21.5256 21H2.47361C2.29807 21 2.12563 20.9537 1.97362 20.866C1.8216 20.7782 1.69537 20.652 1.6076 20.4999C1.51984 20.3479 1.47363 20.1755 1.47363 20C1.47363 19.8244 1.51984 19.652 1.60761 19.5L11.1336 2.99996C11.2214 2.84795 11.3476 2.72172 11.4996 2.63396C11.6516 2.5462 11.8241 2.5 11.9996 2.5C12.1751 2.5 12.3476 2.5462 12.4996 2.63396C12.6516 2.72172 12.7778 2.84795 12.8656 2.99996ZM4.20561 19H19.7936L11.9996 5.49996L4.20561 19ZM10.9996 16H12.9996V18H10.9996V16ZM10.9996 8.99996H12.9996V14H10.9996V8.99996Z' fill='%23A6281D'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_27604_42897'%3E%3Crect width='24' height='24' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
  }


  .resource-block-dropdown {
    border: 1px solid var(--primary-100);
    border-radius: var(--space-0-75);
    padding: 0;
    margin-top: var(--space-1-25);
    margin-bottom: var(--space-1-5);
  }
  .resource-block-dropdown :is(p, ul, ol, li){
    font-size: var(--text-p-main);
    line-height: var(--text-p-main--line-height);
    font-weight: var(--text-p-main--font-weight);
  }

  .resource-block-dropdown.is-open .resource-block-dropdown__icon {
    transform: rotate(180deg);
  }

  .resource-block-dropdown__summary {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    margin: 0;
    padding: var(--space-1) var(--space-1-25);
    text-align: left;
    cursor: pointer;
    justify-content: flex-start;
    gap: var(--space-0-75);
    color: var(--primary-600);
    font-size: var(--text-h5);
    line-height: var(--text-h5--line-height);
    font-weight: var(--text-h5--font-weight);
    background: none;
    border: none;
    font-family: inherit;
  }

  .resource-block-dropdown__icon {
    display: inline-flex;
    flex-shrink: 0;
    height: 1.25rem;
    width: 1.25rem;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
    transition: transform 0.2s ease;
  }

  .resource-block-dropdown__summary > span:not(.resource-block-dropdown__icon) {
    flex: 1;
    min-width: 0;
    text-align: left;
  }

  .resource-block-dropdown__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
  }

  .resource-block-dropdown__panel-inner {
    overflow: hidden;
    padding: 0;
  }

  .resource-block-dropdown.is-open .resource-block-dropdown__panel {
    grid-template-rows: 1fr;
  }

  /* Let procedure chip ::after hints extend above the panel (default inner uses overflow:hidden for the grid animation). */
  .resource-block-dropdown.is-open .resource-block-dropdown__panel-inner {
    overflow: visible;
  }

  .resource-block-dropdown__content {
    margin-top: var(--space-0-5);
    max-width: none;
    padding: 0 var(--space-2) var(--space-1-5) var(--space-1-5);
    opacity: 0;
    transform: translateY(-0.25rem);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .resource-block-dropdown.is-open .resource-block-dropdown__content {
    opacity: 1;
    transform: translateY(0);
  }

  /* ---------- Resources password gate (/resources-gate) — BEM: resource-gate-page__* ---------- */
  .resource-gate-page {
    width: 100%;
  }

  .resource-gate-page__split {
    display: grid;
    min-height: 100dvh;
    grid-template-columns: 1fr;
  }

  @variant lg {
    .resource-gate-page__split {
      grid-template-columns: 1fr 1fr;
      min-height: 100dvh;
    }
  }

  .resource-gate-page__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-2);
    background: var(--primary-50);
  }

  .resource-gate-page__brand-inner {
    display: flex;
    max-width: 22rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    text-align: center;
  }

  .resource-gate-page__logo {
    max-width: calc(var(--space-1) * 12.5) !important;
    width: 100% !important;
    height: auto !important;
    min-height: 2.5rem;
    object-fit: contain;
  }

  .resource-gate-page__tagline {
    margin: 0;
    max-width: 20rem;
    color: var(--gray-900);
  }

  .resource-gate-page__form-column {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-2);
    background: var(--background);
  }

  .resource-gate-page__form-inner {
    width: 100%;
    max-width: 20.375rem;
  }

  .resource-gate-page__title {
    margin: 0 0 var(--space-1-5);
    color: var(--gray-500);
    font-size: var(--text-h2);
    line-height: var(--text-h2--line-height);
    font-weight: var(--text-h2--font-weight);
  }

  .resource-gate-page__error {
    margin: 0 0 var(--space-1);
    color: var(--destructive);
    font-size: var(--text-p-sm);
    line-height: var(--text-p-sm--line-height);
  }

  .resource-gate-page__field-error {
    order: 2;
    margin: calc(var(--space-0-25) * -1) 0 0;
    color: var(--destructive);
    font-size: var(--text-p-sm);
    line-height: var(--text-p-sm--line-height);
  }

  .resource-gate-page__input[aria-invalid='true'] {
    border-color: var(--destructive);
    box-shadow: 0 0 0 2px color-mix(in oklab, var(--destructive) 25%, transparent);
  }

  .resource-gate-page__form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }

  .resource-gate-page__label {
    order: 0;
    margin: 0;
    color: var(--primary-600);
    font-size: var(--text-p-sm);
    line-height: var(--text-p-sm--line-height);
    font-weight: var(--font-weight-regular);
  }

  .resource-gate-page__input {
    order: 1;
    box-sizing: border-box;
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-30);
    background: var(--sidebar);
    padding: 0.75rem var(--space-1);
    color: var(--gray-900);
    font-size: var(--text-p-sm);
    line-height: var(--text-p-sm--line-height);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }

  .resource-gate-page__input::placeholder {
    color: var(--gray-100);
  }

  .resource-gate-page__input:focus-visible {
    border-color: var(--accent-700);
    box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent-700) 35%, transparent);
  }

  .resource-gate-page__submit {
    order: 3;
    margin-top: var(--space-0-25);
    cursor: pointer;
    border: none;
    border-radius: var(--radius-md);
    background: var(--accent-700);
    padding: 0.75rem var(--space-1);
    color: var(--background);
    font-size: var(--text-p-sm);
    line-height: 1;
    font-weight: var(--font-weight-semibold);
    transition: background 0.15s ease, transform 0.15s ease;
  }

  .resource-gate-page__submit:hover {
    background: var(--accent-800);
  }

  .resource-gate-page__submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--accent-700);
  }

  /* ---------- Global modal (app shell) — BEM: global-modal, global-modal__* ---------- */
  .global-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-1);
  }

  .global-modal__backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: color-mix(in oklab, var(--gray-900) 45%, transparent);
    cursor: default;
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .global-modal--visible .global-modal__backdrop {
    opacity: 1;
  }

  .global-modal__dialog {
    position: relative;
    display: flex;
    max-height: min(90vh, 720px);
    width: 100%;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--background);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(0.75rem);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease;
  }

  .global-modal--visible .global-modal__dialog {
    opacity: 1;
    transform: translateY(0);
  }

  @variant md {
    .global-modal__dialog {
      width: min(100%, 600px);
      min-width: 320px;
    }
  }

  .global-modal__header {
    display: flex;
    flex-shrink: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-0-75);
    border-bottom: 1px solid var(--primary-100);
    padding: var(--space-1) var(--space-1-25);
  }

  .global-modal__header-main {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: var(--space-0-5);
    min-height: var(--space-2);
  }

  .global-modal__title {
    margin: 0;
    min-width: 0;
    color: var(--primary-600);
    font-size: var(--text-h5);
    line-height: var(--text-h5--line-height);
    font-weight: var(--text-h5--font-weight);
  }

  .global-modal__back, .global-modal__close {
    flex-shrink: 0;
  }
  

  .global-modal__body {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    padding: var(--space-1) var(--space-1-25);
    color: var(--gray-700);
    font-size: var(--text-p-main);
    line-height: var(--text-p-main--line-height);
    font-weight: var(--text-p-main--font-weight);
  }

  .global-modal__body .resource-block-dropdown {
    margin: 0;
  }

  .resource-doctor-questions__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-0-5);
  }

  .global-modal__footer {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-0-5);
    border-top: 1px solid var(--primary-100);
    padding: var(--space-1) var(--space-1-25);
  }

  .global-modal__icon {
    width: var(--space-1);
    height: var(--space-1);
  }

  /* overflow: visible so chip hint tooltips (::after) are not clipped */
  .resource-block-procedure-type {
    overflow: visible;
    border: 1px solid var(--primary-100);
    border-radius: var(--space-1);
    background: var(--background);
  }

  .resource-block-procedure-type__top {
    display: grid;
    gap: var(--space-2);
    padding: var(--space-1-5);
  }

  @variant md {
    .resource-block-procedure-type__top {
      grid-template-columns: minmax(0, 1fr) minmax(0, 14rem);
      align-items: start;
    }

    .resource-block-procedure-type__top.resource-block-procedure-type__top--no-media {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  .resource-block-procedure-type__title {
    margin: 0 0 var(--space-0-75);
    color: var(--primary-600);
    font-size: var(--text-h4);
    line-height: var(--text-h4--line-height);
    font-weight: var(--text-h4--font-weight);
  }

  .resource-block-procedure-type__chips {
    margin: 0;
    padding: 0;
    padding-inline-start: 0 !important;
    padding-inline-end: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: var(--space-0-5);
    flex-wrap: wrap;
    padding-bottom: var(--space-1-5);
    padding-top: var(--space-0-5);
  }

  .resource-block-procedure-type__chip {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-0-5);
    padding: var(--space-0-25) var(--space-0-5);
    border: 1px solid var(--primary-100);
    border-radius: 9999px;
    background: var(--background);
    font-size: var(--text-p-sm);
    line-height: var(--text-p-sm--line-height);
    font-weight: var(--text-p-sm--font-weight);
    color: var(--gray-500);
  }

  .resource-block-procedure-type__chip[data-hint] {
    cursor: pointer;
  }

  .resource-block-procedure-type__chip-icon-wrap {
    display: inline-flex;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    align-items: center;
    justify-content: center;
  }

  .resource-block-procedure-type__chip-icon {
    display: contents;
  }

  .resource-block-procedure-type__chip-icon-img {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
  }

  .resource-block-procedure-type__chip-label {
    flex: 1 1 auto;
    min-width: 0;
  }

  .resource-block-procedure-type__chip-info {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.125rem;
    border: none;
    background: transparent;
    color: var(--gray-500);
    cursor: inherit;
    opacity: 0.5;
    border-radius: 9999px;
  }

  /* Hint from CMS: anchored to full chip, centered above pill; hover anywhere on chip or focus inside (info button) */


  .resource-block-procedure-type__chip[data-hint]:is(:hover, :focus-within)::after {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    /* Wait 0.1s before showing so quick pointer passes don’t flash the hint */
    transition-delay: 0.1s;
  }

  .resource-block-procedure-type__chip[data-hint]:is(:hover, :focus-within)
    .resource-block-procedure-type__chip-info {
    color: var(--primary-600);
    opacity: 1;
  }

  .resource-block-procedure-type__chip-info:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in oklab, var(--primary-600) 35%, transparent);
    color: var(--primary-600);
    opacity: 1;
  }

  .resource-block-procedure-type__chip-info-svg {
    display: block;
    width: 1rem;
    height: 1rem;
  }

  .resource-block-procedure-type__description {
    margin: 0;
    color: var(--gray-500);
    font-size: var(--text-p-main);
    line-height: var(--text-p-main--line-height);
    font-weight: var(--text-p-main--font-weight);
  }

  .resource-block-procedure-type__description--richtext
    .resource-block-procedure-type__short-description-richtext
    :is(p, ul, ol, li) {
    font-size: var(--text-p-main);
    line-height: var(--text-p-main--line-height);
    font-weight: var(--text-p-main--font-weight);
    color: var(--gray-500);
  }

  .resource-block-procedure-type__description--richtext
    .resource-block-procedure-type__short-description-richtext
    :is(ul, ol) {
    margin: var(--space-0-5) 0 0;
    padding-left: 1.25rem;
    padding-bottom: var(--space-0-5);
  }

  .resource-block-procedure-type__description--richtext
    .resource-block-procedure-type__short-description-richtext
    :is(ul:last-of-type, ol:last-of-type) {
    padding-bottom: 0;
  }

  .resource-block-procedure-type__description--richtext
    .resource-block-procedure-type__short-description-richtext
    p {
    margin: 0 0 var(--space-0-5);
  }

  .resource-block-procedure-type__description--richtext
    .resource-block-procedure-type__short-description-richtext
    p:last-child {
    margin-bottom: 0;
  }

  .resource-block-procedure-type__description--richtext
    .resource-block-procedure-type__short-description-richtext
    :is(strong, b) {
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
  }

  .resource-block-procedure-type__media {
    margin: 0;
    overflow: hidden;
    border-radius: var(--space-0-75);
    border: 2px solid var(--accent-700);
    background: var(--primary-50);
  }

  .resource-block-procedure-type__media-inner {
    display: block;
    line-height: 0;
  }

  .resource-block-procedure-type__image {
    display: block;
    height: auto;
    width: 100%;
    object-fit: cover;
  }

  .resource-block-procedure-type__bottom {
    border-bottom-left-radius: var(--space-1);
    border-bottom-right-radius: var(--space-1);
    padding: var(--space-1-25) var(--space-1-5);
    background: var(--primary-50);
  }

  .resource-block-procedure-type__more-heading {
    margin: 0;
    color: var(--primary-600);
    font-size: var(--text-p-main);
    line-height: var(--text-p-main--line-height);
    font-weight: var(--text-p-main--font-weight);
  }

  .resource-block-procedure-type__more-toggle {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    margin: 0;
    padding: 0;
    text-align: left;
    cursor: pointer;
    justify-content: flex-start;
    gap: var(--space-0-75);
    color: inherit;
    font: inherit;
    font-family: inherit;
    font-weight: inherit;
    line-height: inherit;
    background: none;
    border: none;
  }

  .resource-block-procedure-type__more-toggle-label {
    flex: 1;
    min-width: 0;
    text-align: left;
    font-weight: var(--font-weight-semibold);
  }

  .resource-block-procedure-type__more-toggle.is-open {
    margin-bottom: var(--space-0-5);
  }

  .resource-block-procedure-type__more-toggle.is-open .resource-block-dropdown__icon {
    transform: rotate(180deg);
  }

  .resource-block-procedure-type__more-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
  }

  .resource-block-procedure-type__more-panel.is-open {
    grid-template-rows: 1fr;
    overflow: visible;
  }

  .resource-block-procedure-type__more-panel-inner {
    overflow: hidden;
    min-height: 0;
  }

  /* Citation tooltips are position:absolute and extend past line width; overflow:hidden clips them on the X axis. */
  .resource-block-procedure-type__more-panel.is-open .resource-block-procedure-type__more-panel-inner {
    overflow: visible;
  }

  .resource-block-procedure-type__more-panel .resource-block-procedure-type__additional {
    margin-top: var(--space-0-5);
    opacity: 0;
    transform: translateY(-0.25rem);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .resource-block-procedure-type__more-panel.is-open .resource-block-procedure-type__additional {
    opacity: 1;
    transform: translateY(0);
  }

  .resource-block-procedure-type__additional :is(p, ul, ol, li) {
    font-size: var(--text-p-main);
    line-height: var(--text-p-main--line-height);
    font-weight: var(--text-p-main--font-weight);
    color: var(--gray-500);
  }

  .resource-block-procedure-type__additional :is(ul, ol) {
    margin: var(--space-0-5) 0 0;
    padding-left: 1.25rem;
    padding-bottom: var(--space-1-25);
  }
  .resource-block-procedure-type__additional :is(ul:last-of-type, ol:last-of-type) {

    padding-bottom: 0;
  }

  .resource-block-procedure-type__additional p {
    margin: 0 0 var(--space-0-5);
  }

  .resource-block-procedure-type__additional p:last-child {
    margin-bottom: 0;
  }

  .resource-block-procedure-type__additional :is(strong, b) {
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
  }

  .resource-block-do-dont {
    border-radius: var(--space-0-75);
    padding: var(--space-1);
  }

  .resource-block-do-dont:has(.resource-block-do-dont__icon--dont) {
    background: linear-gradient(138deg, #FCF5F5 0%, rgba(252, 245, 245, 0.25) 100%);
  }

  .resource-block-do-dont:has(.resource-block-do-dont__icon--do) {
    background: linear-gradient(318deg, rgba(233, 249, 247, 0.15) 0%, #E9F9F7 100%);
  }

  .resource-block-do-dont__row {
    display: flex;
    gap: var(--space-0-5);
  }

  .resource-block-do-dont__icon {
    margin-top: 0.125rem;
    display: inline-flex;
    height: 1.5rem;
    width: 1.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
  }

  .resource-block-do-dont__icon--do {
    color: var(--accent-700);
  }

  .resource-block-do-dont__icon--dont {
    color: var(--destructive);
  }

  .resource-block-do-dont__content {
    flex: 1 1 0%;
    display: flex;
    max-width: none;
    flex-direction: column;
    gap: var(--space-0-5);
  }

  .resource-block-do-dont__title {
    margin: var(--space-0-25) 0;
    color: var(--primary-600) !important;
    font-size: var(--text-h5);
    line-height: var(--text-h5--line-height);
    font-weight: var(--text-h5--font-weight);
  }

  .resource-block-do-dont__media {
    margin-top: var(--space-0-75);
    overflow: hidden;
    border-radius: 0.75rem;
  }

  .resource-block-do-dont__image {
    height: auto;
    width: 100%;
    object-fit: cover;
  }

  

  .resource-block-timeline {
    margin-block: var(--space-2);
  }

  .resource-block-timeline__list {
    display: flex;
    flex-direction: column;
    gap: 0px;
  }

  .resource-block-timeline__item {
    display: flex;
    gap: var(--space-1);
  }

  .resource-block-timeline__track {
    display: flex;
    width: 0.5rem;
    flex-direction: column;
    align-items: center;
  }

  .resource-block-timeline__dot {
    margin-top: var(--space-0-5);
    height: var(--space-0-5);
    width: var(--space-0-5);
    border-radius: 9999px;
    background: var(--primary-600);
    flex-shrink: 0;
  }

  .resource-block-timeline__line {
    margin-top: var(--space-0-5);
    height: 100%;
    width: 1px;
    background: var(--primary-200);
  }

  .resource-block-timeline__content {
    min-width: 0;
    flex: 1 1 0%;
    padding-bottom: var(--space-2-5);
  }

  .resource-block-timeline__item:last-child .resource-block-timeline__content {
    padding-bottom: 0px;
  }

  p.resource-block-timeline__label {
    margin-bottom: var(--space-1-5) ;
    
    color: var(--gray-100) !important;
    text-transform: lowercase;
    font-size: var(--text-p-main);
    line-height: var(--text-caption-h--line-height);
    font-weight: 400;
  }
.timeline-content__wrapper{
  padding-left: var(--space-2-5);
}

  .resource-block-todo {
    margin-block: var(--space-1-5);
  }

  .resource-block-todo__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-0-5);
  }

  .resource-block-todo__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-0-5);
  }

  .resource-block-todo__row {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: flex-start;
    gap: var(--space-0-5);
    cursor: pointer;
  }

  .resource-block-todo__row:has(input:focus-visible) .resource-block-todo__marker {
    outline: 2px solid var(--primary-600);
    outline-offset: 2px;
  }

  .resource-block-todo__marker {
    margin-top: 0.125rem;
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1.5px solid var(--primary-600);
  }

  .resource-block-todo__marker-dot {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 9999px;
    background: var(--primary-600);
  }

  .resource-block-todo__text {
    color: var(--gray-500);
    font-size: var(--text-p-main);
    line-height: 1.6;
    font-weight: 400;
  }

  .resource-block-todo__item.is-checked .resource-block-todo__text {
    color: var(--gray-100);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
  }

  .resource-block-todo__copy {
    margin-top: var(--space-1);
  }

  .resource-block-todo__copy-button {
    border-width: 1.5px;
    border-color: var(--primary-100);
    color: var(--primary-600);
    font-weight: var(--font-weight-semibold);
  }

  .resource-block-todo__copy-button:hover {
    background: var(--primary-50);
    color: var(--primary-600);
  }

  .resource-block-float-image {
    margin-bottom: var(--space-1);
  }

  @variant md {
    .resource-block-float-image {
      max-width: 20rem;
    }

    .resource-block-float-image--left {
      float: left;
      margin-right: var(--space-1-5);
    }

    .resource-block-float-image--right {
      float: right;
      margin-left: var(--space-1-5);
    }

    .resource-block-two-column-images {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  .big-image-wrapper{
    margin-bottom: 2em;
    margin-top:2em;
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    align-items: flex-start;
    gap: var(--space-0-5);
  }
  .big-image-wrapper > :is(div, button),
  .big-image-wrapper img {
    width: 100%;
  }
.big-image-wrapper picture{
margin-bottom: 0;
margin-top:0;
width: 100%;
}
.big-image-wrapper p{
  margin-bottom: 1.5em;
  margin-top: var(--space-0-5);
  }
  .resource-block-two-column-images {
    display: grid;
    gap: var(--space-1);
  }

  .resource-block-two-column-images__figure {
    margin: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-0-5);
  }

  .resource-block-two-column-images__caption, .resource-block-two-column-images__caption .payload-richtext.payload-richtext--no-gutter.payload-richtext--prose p{
    margin: 0;
    font-size: var(--text-caption-p);
    line-height: var(--text-caption-p--line-height);
    font-weight: var(--text-caption-p--font-weight);
    color: var(--gray-100);
    font-style: italic;
  }
  .resource-block-two-column-images__figure > :first-child {
    height: 100%;
  }
  .resource-block-two-column-images__figure picture {
    height: 100%;
    display: block;
}
  .resource-block-media-image {
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    height: 100%;
    object-fit: cover;
  }

  .lexical-table tbody :is(th, td) {
    border: 0px !important;
    padding: var(--space-1) var(--space-1-25) var(--space-1) var(--space-1) !important;
    line-height: 1.25;
    min-width: 120px;
  }


  .lexical-table p {
    padding: 0 !important;
    margin: 0 !important;
    color: var(--gray-500) !important;
    line-height: inherit !important;
  }

  .lexical-table tbody tr {
    border-bottom: 1px solid var(--primary-100) !important;
  }

  .lexical-table tbody tr:first-child {
    overflow: hidden;
    background-color: var(--primary-100);
    border: 0px;
    border-bottom: 0px !important;

    p {
      font-weight: 500;
      color: var(--gray-900);
    }
  }

  .lexical-table tbody tr:first-child p,
  .lexical-table tbody tr :first-child p {
    font-weight: var(--font-weight-semibold) !important;
    color: var(--gray-900) !important;
  }

  .lexical-table tbody tr :first-child {
    border-top-left-radius: var(--space-0-25);
    border-bottom-left-radius: var(--space-0-25);
  }

  .lexical-table tbody tr :last-child {
    border-top-right-radius: var(--space-0-25);
    border-bottom-right-radius: var(--space-0-25);
  }
}
/* Mobile-specific styles */
@variant max-lg {
  @theme{
    --text-h1: 2.25rem;
    --text-h1--line-height: 1.05;
    --text-h2: 1.75rem;
    --text-h3: 1.5rem;
    --text-h4: 1.25rem;
    --text-h5: 1.125rem;
    --text-p-main: 1rem;
    --text-p-sm: 0.875rem;
    --text-p-nav: 0.875rem;
    --text-caption-h: 0.75rem;
    --text-caption-p: 0.75rem;
  }
  .resource-category-richtext
    .resource-category-h2-section:not(.resource-category-h2-section--preface)
    > h2:first-child{
      position: relative;
      top: 0;
    }
  .resource-block-procedure-type__chips{
    padding-bottom: var(--space-0-5);
  }
  .resource-block-procedure-type__top{
    gap: var(--space-1);
    padding: var(--space-1-25);
  }
  .resource-block-procedure-type__bottom{
    padding: var(--space-1-25) var(--space-1-5);
  }

  .payload-richtext--prose.resource-category-richtext :where(h2):not(:where(.not-prose, .not-prose *)), .resource-chapter-references__title{
    margin-top: 1.5em;
    margin-bottom: 0.55em;
  }
  
  .resource-block-banner__inner::before{
    width: var(--space-1-25);
    height: var(--space-1-25);
    top: calc(var(--space-1-25) + var(--space-0-125));
  }
  .resource-block-banner__inner {
    padding: var(--space-1-25) var(--space-1-5) var(--space-1-25) var(--space-3);
}
.timeline-content__wrapper{
  padding-left: var(--space-1-25);
}
p.resource-block-timeline__label{
  margin-bottom: var(--space-0-75);
}
.resource-block-timeline__dot{
  margin-top: var(--space-0-25);
}
.resource-block-timeline__item h4{
  margin-top: var(--space-1);
}
.resource-block-timeline__item{
  gap: var(--space-0-75);
}
.resource-benefits {
  
  row-gap: var(--space-0-75);
  column-gap: var(--space-1-5);
  margin-bottom: var(--space-1);
  flex-direction: row;
  flex-wrap: wrap;
  padding-top: var(--space-0-75);
}
.resource-benefits__icon-wrap{
  padding: var(--space-0-75);
}
.resource-benefits__icon{
  width: var(--space-1);
  height: var(--space-1);
}
.lexical-table-container {
  overflow: auto;
  margin: var(--space-1-75) calc(var(--space-1) * -1);
  width: calc(100% + var(--space-2));
  padding-inline: var(--space-1);
}
table.lexical-table{
  margin-top: 0;
  margin-bottom: 0;
}
.lexical-table tbody :is(th, td){
  padding: var(--space-0-75) var(--space-1) var(--space-0-75) var(--space-1) !important;
}
.resource-next-step-banner{
  padding: var(--space-1-5);
}
.resource-next-step-banner__content{
  margin-bottom: var(--space-0-25);
}
.resource-block-do-dont__icon{
  width: var(--space-1-25);
  height: var(--space-1-25);
  top: var(--space-0-125);
  position: relative;
}
  .container {
      max-width: inherit;
      padding-inline: 2rem;
      padding-inline: 0;
      max-width: calc(100% - var(--space-2));
  }
  .resource-main-content{
    padding-inline: 0;
  }
  .resource-main-hero:before{
    left: -40px;
  }
  .resource-main-hero {
    padding-inline: 0;
  }
  .resource-main-hero__content{
    width: 100%;
  }
  .resource-layout__aside{
    display: none;
  }
  .resource-main-hero__media-wrap{
    margin-bottom: 0;
  }

  .resource-mobile-sticky-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: block;
    padding-inline: var(--space-1);
    padding-bottom: calc(var(--space-0-75) + env(safe-area-inset-bottom));
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease;
  }

  .resource-mobile-sticky-nav.is-hidden-near-bottom {
    visibility: hidden;
    opacity: 0;
  }

  .resource-mobile-sticky-nav__row {
    display: flex;
    align-items: flex-end;
    gap: var(--space-0-5);
    pointer-events: auto;
  }

  .resource-mobile-sticky-nav__row .resource-mobile-sticky-nav__inner {
    flex: 1;
    min-width: 0;
  }

  .resource-mobile-sticky-nav__help-wrap {
    flex-shrink: 0;
    z-index: 1;
  }

  .resource-mobile-sticky-nav__help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius:333px;
    width: var(--space-3-5);
    height: var(--space-3-5);
    margin: 0;
    padding: 0;
    
    background: var(--primary-600);
    box-shadow: var(--shadow-sm);
    color: #fff;
    cursor: pointer;
    font: inherit;
    transition:
      color 0.2s ease,
      background-color 0.2s ease;
  }


  .resource-mobile-sticky-nav__help:focus-visible {
    outline: 1px solid color-mix(in oklab, var(--ring) 50%, transparent);
    outline-offset: 2px;
  }

  .resource-mobile-sticky-nav__help-icon {
    width: var(--space-1-25);
    height: var(--space-1-25);
    flex-shrink: 0;
  }

  .resource-layout__mobile-nav {
    display: block;
    padding-inline: 0;
  }

  .resource-layout__mobile-nav .resource-nav {
    padding-top: var(--space-1-5);
    padding-bottom: var(--space-1-5);
  }

  .resource-mobile-sticky-nav .resource-nav__links.is-open,
  .resource-layout__mobile-nav .resource-nav__links.is-open {
    max-height: none;
    overflow-y: visible;
    scrollbar-width: none;
  }

  .resource-mobile-sticky-nav .resource-nav__links.is-open.has-mask-top,
  .resource-mobile-sticky-nav .resource-nav__links.is-open.has-mask-bottom,
  .resource-mobile-sticky-nav .resource-nav__links.is-open.has-mask-both,
  .resource-layout__mobile-nav .resource-nav__links.is-open.has-mask-top,
  .resource-layout__mobile-nav .resource-nav__links.is-open.has-mask-bottom,
  .resource-layout__mobile-nav .resource-nav__links.is-open.has-mask-both {
    mask-image: none;
  }

  .resource-mobile-sticky-nav .resource-nav {
    padding-top: 0;
  }

  .resource-main-content {
    padding-bottom: env(safe-area-inset-bottom);
  }

  /* Space so “Show all” / last references aren’t under fixed mobile sticky nav */
  .resource-chapter-references {
    padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom));
  }
}
@variant max-md {

  .resource-main-hero__media-wrap{
    width: 100%;
    padding-top: var(--space-1-5);
  }

}
@variant lg-xl-only {
    .container {
        max-width: calc(100% - var(--space-2-5));
    }
    .resource-main-hero{
      padding-left: var(--space-3);
    }
    .resource-main-content__inner {
      padding-left: var(--space-3);
    }
}
@variant xl {
  .container {
      max-width: var(--breakpoint-xl);
  }
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }

  body {
    @apply bg-background text-foreground min-h-[100vh] flex flex-col;
    font-size: var(--text-p-main);
    line-height: var(--text-p-main--line-height);
    font-weight: var(--text-p-main--font-weight);
  }

  .h1, h1 {
    font-size: var(--text-h1);
    line-height: var(--text-h1--line-height);
    font-weight: var(--text-h1--font-weight);
  }

  h2 {
    font-size: var(--text-h2);
    line-height: var(--text-h2--line-height);
    font-weight: var(--text-h2--font-weight);
  }

  h3 {
    font-size: var(--text-h3);
    line-height: var(--text-h3--line-height);
    font-weight: var(--text-h3--font-weight);
  }

  h4 {
    font-size: var(--text-h4);
    line-height: var(--text-h4--line-height);
    font-weight: var(--text-h4--font-weight);
  }

  h5 {
    font-size: var(--text-h5);
    line-height: var(--text-h5--line-height);
    font-weight: var(--text-h5--font-weight);
  }
}

html {
  opacity: 0;
  scroll-behavior: smooth;
}

html[data-theme='dark'],
html[data-theme='light'] {
  opacity: initial;
}