:root {
  --article-ink: #1a1a1d;
  --article-cream: #fff2e0;
  --article-paper: #fff2e0;
  --article-teal: #34656d;
  --article-teal-soft: #e7f3ef;
  --article-coral: #ffb3a7;
  --article-line: rgba(26, 26, 29, 0.15);
}

html.lenis,
html.lenis body {
  height: auto;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

html.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.blog-detail {
  background: var(--article-paper);
  overflow-x: hidden;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  width: 100%;
  height: 3px;
  background: var(--article-coral);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.blog-detail main {
  margin-top: -50px;
}

.blog-detail main .hero,
.blog-detail main .img-container {
  height: min(820px, 78svh);
  min-height: 620px;
}

.blog-detail main .img-container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(14, 25, 25, 0.84) 0%, rgba(14, 25, 25, 0.5) 50%, rgba(14, 25, 25, 0.1) 82%),
    linear-gradient(0deg, rgba(12, 20, 20, 0.58), transparent 55%);
  pointer-events: none;
}

.blog-detail main .scroll-img {
  filter: none;
  transform: scale(1.035);
}

.blog-detail .quick-navigation,
.blog-detail .hero-text {
  z-index: 2;
}

.blog-detail .quick-navigation {
  top: 12rem;
  left: clamp(1.5rem, 6vw, 7rem);
}

.blog-detail .quick-navigation a {
  font-size: 0.95rem;
}

.blog-detail .hero-text {
  left: clamp(1.5rem, 6vw, 7rem);
  right: clamp(1.5rem, 6vw, 7rem);
  bottom: clamp(2.5rem, 6vh, 5rem);
  max-width: none;
}

.blog-detail .hero-text .article-eyebrow {
  width: auto;
  margin: 0 0 1rem;
  color: var(--article-cream);
  font-size: 0.73rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.blog-detail .hero-text h1 {
  width: min(1280px, 100%);
  margin: 0;
  color: var(--article-cream);
  font-size: clamp(2.5rem, 3.6vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.blog-detail .hero-text > p:not(.article-eyebrow) {
  width: min(900px, 100%);
  margin: 1.25rem 0 0;
  color: rgba(255, 242, 224, 0.84);
  font-size: clamp(1.04rem, 1.3vw, 1.24rem);
  font-weight: 200;
  line-height: 1.55;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
  margin-top: 1.6rem;
  color: rgba(255, 242, 224, 0.8);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.article-meta > :not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-left: 0.85rem;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  opacity: 0.7;
}

.article-meta > * {
  flex: 0 0 auto;
}

.blog-article {
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 9rem) clamp(1rem, 2vw, 2rem) clamp(4rem, 7vw, 7rem);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(210px, 240px) minmax(0, 1120px);
  gap: clamp(2.25rem, 4vw, 4rem);
  justify-content: center;
  align-items: start;
}

.article-content {
  min-width: 0;
}

.article-toc {
  position: sticky;
  top: 7rem;
  padding-top: 0.2rem;
  overflow: visible;
}

.article-toc__label {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--article-teal);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  list-style: none;
  text-transform: uppercase;
  cursor: pointer;
}

.article-toc__label::-webkit-details-marker {
  display: none;
}

.article-toc__label::after {
  content: "↓";
  float: right;
  color: var(--article-coral);
  font-size: 0.9rem;
}

.article-toc[open] .article-toc__label::after {
  content: "↑";
}

.article-toc:not([open]) .article-toc__label {
  margin-bottom: 0;
}

.article-toc ol {
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--article-line);
  list-style: none;
}

.article-toc li {
  margin: 0;
  padding: 0;
}

.article-toc a {
  display: block;
  margin-left: -1px;
  padding: 0.44rem 0 0.44rem 1rem;
  border-left: 1px solid transparent;
  color: rgba(26, 26, 29, 0.58);
  font-size: 0.8rem;
  font-weight: 200;
  line-height: 1.35;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}

.article-toc a:hover,
.article-toc a.is-active {
  border-left-color: var(--article-coral);
  color: var(--article-ink);
}

.blog-article .article-block {
  max-width: none;
  margin: 0 0 clamp(3.8rem, 6vw, 5.6rem);
}

.blog-article .article-block:last-child {
  margin-bottom: 0;
}

.blog-article .article-content > .article-block:first-child {
  margin-bottom: clamp(4rem, 7vw, 6rem);
  padding: 0 0 2rem clamp(1.25rem, 2.5vw, 2.2rem);
  border-bottom: 1px solid var(--article-line);
  border-left: 3px solid var(--article-teal);
}

.blog-article .article-content > .article-block:first-child > p:first-child {
  margin-top: 0;
  font-family: "PPNeueCorp", sans-serif;
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.35;
}

.blog-article h2 {
  scroll-margin-top: 7rem;
  margin: 0 0 1.25rem;
  color: var(--article-ink);
  font-size: clamp(1.65rem, 2vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.08;
  text-wrap: balance;
}

.blog-article h3 {
  scroll-margin-top: 7rem;
  margin: 2.5rem 0 0.8rem;
  color: var(--article-ink);
  font-size: clamp(1.2rem, 1.35vw, 1.45rem);
  font-weight: 500;
  line-height: 1.15;
}

.article-content p,
.article-content li {
  color: var(--article-ink);
  font-size: clamp(1.06rem, 1.25vw, 1.16rem);
  font-weight: 200;
  line-height: 1.78;
}

.article-content p {
  margin: 1rem 0 0;
}

.article-content strong {
  color: var(--article-ink);
  font-weight: 400;
}

.article-content ul,
.article-content ol {
  margin: 1.25rem 0 0;
  padding-left: 1.4rem;
}

.article-content li {
  padding-left: 0.35rem;
}

.article-content li + li {
  margin-top: 0.6rem;
}

.article-content li::marker {
  color: var(--article-coral);
  font-weight: 400;
}

.article-content a {
  color: var(--article-teal);
  font-size: inherit;
  font-weight: 300;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.article-content a:hover {
  color: var(--article-ink);
}

.blog-article a:focus-visible,
.article-toc a:focus-visible,
.quick-navigation a:focus-visible {
  outline: 2px solid var(--article-coral);
  outline-offset: 4px;
}

.blog-article .images-layout,
.blog-article .split-layout {
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.blog-article .images-layout img,
.blog-article .split-img img,
.blog-article .article-img-wrapper img {
  box-shadow: none;
}

.blog-article .hero-btn-layout {
  margin-top: 2rem;
}

.blog-article .hero-btn {
  border-radius: 999px;
  box-shadow: none;
}

.article-note,
.article-rule,
.medical-note {
  margin-top: 1.75rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid rgba(52, 101, 109, 0.24);
  background: rgba(231, 243, 239, 0.52);
}

.article-note__label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--article-teal);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-note p,
.article-rule p,
.medical-note p {
  margin: 0;
}

.article-rule {
  border-color: rgba(255, 179, 167, 0.64);
  background: rgba(255, 179, 167, 0.16);
}

.step-grid,
.decision-grid,
.routine-grid,
.dos-donts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.step-card,
.decision-card,
.routine-card,
.dos-donts > div {
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
  border: 1px solid var(--article-line);
  background: rgba(255, 242, 224, 0.46);
}

.step-card {
  counter-increment: summer-step;
}

.step-grid {
  counter-reset: summer-step;
}

.step-card::before {
  content: "0" counter(summer-step);
  display: block;
  margin-bottom: 1rem;
  color: var(--article-coral);
  font-family: "PPNeueCorp", sans-serif;
  font-size: 1.6rem;
}

.step-card h3,
.decision-card h3,
.routine-card h3,
.dos-donts h3 {
  margin: 0;
  font-size: clamp(1.2rem, 1.35vw, 1.45rem);
  line-height: 1.15;
}

.step-card p,
.decision-card p,
.routine-card p {
  font-size: 1rem;
  line-height: 1.65;
}

.decision-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.decision-card__label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--article-coral);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.treatment-table-wrap {
  width: 100%;
  margin-top: 1.8rem;
  overflow-x: auto;
  border: 1px solid var(--article-line);
}

.treatment-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.treatment-table th,
.treatment-table td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--article-line);
  color: rgba(26, 26, 29, 0.78);
  font-size: 0.92rem;
  font-weight: 200;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.treatment-table th {
  background: var(--article-teal);
  color: var(--article-cream);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.treatment-table tr:last-child td {
  border-bottom: 0;
}

.article-faq > h2 {
  margin-bottom: 0.8rem;
}

.article-faq__intro {
  max-width: 760px;
  margin: 0 !important;
  color: rgba(26, 26, 29, 0.7) !important;
}

.faq-list {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(26, 26, 29, 0.48);
}

.faq-list details {
  border-bottom: 1px solid rgba(26, 26, 29, 0.48);
}

.faq-list summary {
  position: relative;
  padding: clamp(1.8rem, 3vw, 2.7rem) 4rem clamp(1.8rem, 3vw, 2.7rem) 0;
  color: var(--article-ink);
  font-family: "Roboto", sans-serif;
  font-size: clamp(1.1rem, 1.25vw, 1.3rem);
  font-weight: 200;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  transition: color 220ms ease;
}

.faq-list summary:hover {
  color: var(--article-teal);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.65rem;
  width: 20px;
  height: 20px;
  background: url("/assets/icons/dark-plus.svg") center / contain no-repeat;
  transform: translateY(-50%);
  transform-origin: center;
  transition: transform 350ms ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(405deg);
}

.faq-list details > div {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 400ms cubic-bezier(0.215, 0.61, 0.355, 1),
    opacity 300ms ease;
}

.faq-list details[open] > div {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-list details > div > p {
  min-height: 0;
  margin: 0;
  padding: 0 4rem clamp(1.8rem, 3vw, 2.7rem) 0;
  overflow: hidden;
}

.faq-list summary:focus-visible {
  outline: 2px solid var(--article-coral);
  outline-offset: 5px;
}

.article-cta {
  margin-top: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  background: var(--article-teal);
  color: var(--article-cream);
}

.article-cta .article-note__label,
.article-cta h2,
.article-cta p {
  color: var(--article-cream);
}

.article-cta h2 {
  max-width: 640px;
}

.article-cta p {
  max-width: 650px;
  color: rgba(255, 242, 224, 0.82);
}

.article-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.6rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: var(--article-cream);
  color: var(--article-teal) !important;
  text-decoration: none;
}

.source-list {
  columns: 2;
  column-gap: 2.5rem;
  padding-left: 1.2rem;
}

.source-list li {
  break-inside: avoid;
  font-size: 0.87rem;
  line-height: 1.5;
}

.medical-note {
  margin-top: 2rem;
  border-color: var(--article-line);
  background: transparent;
}

.medical-note p {
  font-size: 0.9rem;
}

@media (min-width: 981px) and (max-height: 820px) {
  .article-toc {
    position: static;
  }
}

@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .article-content,
  .article-toc {
    min-width: 0;
    max-width: 100%;
  }

  .article-toc {
    position: static;
    max-height: none;
    margin-bottom: 3rem;
    padding: 1.25rem;
    border: 1px solid var(--article-line);
    overflow: visible;
  }

  .article-toc ol {
    columns: 2;
    column-gap: 2rem;
    border-left: 0;
  }

  .article-toc li {
    break-inside: avoid;
  }

  .article-toc a {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 767px) {
  .blog-detail main .hero,
  .blog-detail main .img-container {
    height: auto;
    min-height: 660px;
  }

  .blog-detail main .img-container::after {
    background:
      linear-gradient(90deg, rgba(14, 25, 25, 0.7), rgba(14, 25, 25, 0.18)),
      linear-gradient(0deg, rgba(12, 20, 20, 0.78), transparent 67%);
  }

  .blog-detail .quick-navigation {
    top: 9.5rem;
  }

  .blog-detail .hero-text {
    bottom: 2rem;
    width: auto;
    max-width: calc(100% - 2rem);
  }

  .blog-detail .hero-text h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.25rem, 9vw, 2.75rem);
    overflow-wrap: break-word;
  }

  .blog-detail .hero-text > p:not(.article-eyebrow) {
    width: 100%;
    margin-top: 1rem;
    font-size: 1rem;
    overflow-wrap: break-word;
  }

  .article-meta {
    gap: 0.4rem 0.6rem;
    margin-top: 1.1rem;
    font-size: 0.72rem;
  }

  .article-meta > :not(:last-child)::after {
    margin-left: 0.6rem;
  }

  .blog-article {
    padding-top: 4.5rem;
  }

  .article-toc {
    margin-bottom: 3.5rem;
  }

  .article-toc ol {
    columns: 1;
  }

  .blog-article .article-content > .article-block:first-child {
    padding-left: 1.1rem;
  }

  .blog-article .article-content > .article-block:first-child > p:first-child {
    font-size: 1.3rem;
  }

  .blog-article h2 {
    font-size: clamp(1.55rem, 6vw, 1.875rem);
  }

  .step-grid,
  .decision-grid,
  .routine-grid,
  .dos-donts {
    grid-template-columns: 1fr;
  }

  .source-list {
    columns: 1;
  }

  .article-cta {
    margin-right: -1rem;
    margin-left: -1rem;
  }

  .faq-list summary {
    padding: 1.55rem 3rem 1.55rem 0;
    font-size: clamp(1.1rem, 4.5vw, 1.2rem);
  }

  .faq-list summary::after {
    right: 0.35rem;
    width: 18px;
    height: 18px;
  }

  .faq-list details > div > p {
    padding-right: 0;
    padding-bottom: 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .article-toc a {
    transition: none;
  }
}
