/* Arthopia editorial guides — full reading experience for CMS article pages. */

body#cms .ax-editorial-article {
  --ax-article-ink: #2f3928;
  --ax-article-muted: #69705f;
  --ax-article-line: #dfe5d8;
  --ax-article-cream: #faf8f1;
  --ax-article-green: #315d28;
  width: min(100% - 48px, 1360px);
  margin: 0 auto;
  padding: 0 0 72px;
  color: var(--ax-article-ink);
  overflow-wrap: anywhere;
}

body#cms .ax-editorial-article__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--ax-article-muted);
  font: 600 11px/1.4 Manrope, sans-serif;
}

body#cms .ax-editorial-article__breadcrumbs a {
  color: var(--ax-article-green);
  text-decoration: none;
}

body#cms .ax-editorial-article__breadcrumbs a:hover,
body#cms .ax-editorial-article__breadcrumbs a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body#cms .ax-editorial-article__hero {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  grid-template-areas: "copy media";
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(70, 91, 56, .12);
  border-radius: 28px;
  background: linear-gradient(135deg, #fbf8ef 0%, #f1f4e9 100%);
  box-shadow: 0 22px 60px rgba(43, 54, 35, .11);
}

body#cms .ax-editorial-article__hero-media {
  position: relative;
  grid-area: media;
  z-index: 0;
  min-height: 560px;
  overflow: hidden;
  background: #dce4d2;
}

body#cms .ax-editorial-article__hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(35, 59, 30, .2));
  pointer-events: none;
}

body#cms .ax-editorial-article__hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body#cms .ax-editorial-article__hero-copy {
  grid-area: copy;
  align-self: center;
  max-width: 620px;
  padding: clamp(42px, 5vw, 78px) clamp(30px, 5vw, 76px);
  color: var(--ax-article-ink);
}

body#cms .ax-editorial-article__eyebrow,
body#cms .ax-editorial-article__section-kicker {
  margin: 0 0 13px;
  color: #708362;
  font: 700 11px/1.2 Manrope, sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}

body#cms .ax-editorial-article__hero h1 {
  max-width: 590px;
  margin: 0;
  color: #30482a;
  font: 600 clamp(44px, 5vw, 76px)/.94 'EB Garamond', Georgia, serif;
  letter-spacing: -.025em;
}

body#cms .ax-editorial-article__lead {
  max-width: 540px;
  margin: 23px 0 0;
  color: #66715f;
  font: 500 clamp(15px, 1.15vw, 18px)/1.6 Manrope, sans-serif;
}

body#cms .ax-editorial-article__hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 30px;
}

body#cms .ax-editorial-article__button,
body#cms .ax-editorial-article__rail-cta {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: #315d28;
  color: #fffdf7;
  font: 700 12px/1 Manrope, sans-serif;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

body#cms .ax-editorial-article__button:hover,
body#cms .ax-editorial-article__button:focus-visible,
body#cms .ax-editorial-article__rail-cta:hover,
body#cms .ax-editorial-article__rail-cta:focus-visible {
  background: #47783a;
  transform: translateY(-2px);
}

body#cms .ax-editorial-article__text-link {
  color: #315d28;
  font: 700 12px/1.3 Manrope, sans-serif;
  text-underline-offset: 5px;
}

body#cms .ax-editorial-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  gap: clamp(28px, 6vw, 96px);
  max-width: 1170px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 90px) clamp(8px, 2vw, 30px) 0;
}

body#cms .ax-editorial-article__main {
  min-width: 0;
}

body#cms .ax-editorial-article__toc {
  margin: 0 0 42px;
  padding: 22px 24px;
  border: 1px solid var(--ax-article-line);
  border-radius: 18px;
  background: var(--ax-article-cream);
}

body#cms .ax-editorial-article__toc p {
  margin: 0 0 11px;
  color: var(--ax-article-green);
  font: 700 11px/1.2 Manrope, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body#cms .ax-editorial-article__toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

body#cms .ax-editorial-article__toc a {
  color: #52634a;
  font: 600 13px/1.45 Manrope, sans-serif;
  text-decoration: none;
}

body#cms .ax-editorial-article__toc a:hover,
body#cms .ax-editorial-article__toc a:focus-visible {
  color: var(--ax-article-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body#cms .arthopia-editorial-content {
  max-width: 780px;
  color: #4f584b;
  font: 500 16px/1.82 Manrope, sans-serif;
}

body#cms .arthopia-editorial-content > p:first-child {
  color: #344c2e;
  font: 500 clamp(19px, 2vw, 24px)/1.48 'EB Garamond', Georgia, serif;
}

body#cms .arthopia-editorial-content h2,
body#cms .ax-editorial-article__faq h2,
body#cms .ax-editorial-article__rail h2 {
  color: #3e5a32;
  font: 600 clamp(28px, 3vw, 42px)/1.05 'EB Garamond', Georgia, serif;
  letter-spacing: -.01em;
}

body#cms .arthopia-editorial-content h2 {
  scroll-margin-top: 28px;
  margin: 50px 0 15px;
}

body#cms .arthopia-editorial-content p {
  margin: 0 0 18px;
}

body#cms .arthopia-editorial-content ul {
  margin: 0 0 24px;
  padding-left: 23px;
}

body#cms .arthopia-editorial-content li {
  margin: 7px 0;
}

body#cms .arthopia-editorial-content a {
  color: var(--ax-article-green);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #a2bb91;
  text-underline-offset: 3px;
}

body#cms .ax-editorial-article__faq {
  margin-top: 62px;
  padding-top: 30px;
  border-top: 1px solid var(--ax-article-line);
}

body#cms .ax-editorial-article__faq h2,
body#cms .ax-editorial-article__rail h2 {
  margin: 0 0 22px;
}

body#cms .ax-editorial-article__faq-item {
  border-bottom: 1px solid var(--ax-article-line);
}

body#cms .ax-editorial-article__faq-question {
  padding: 18px 28px 18px 0;
  color: #3e5036;
  margin: 0;
  font: 700 14px/1.45 Manrope, sans-serif;
}

body#cms .ax-editorial-article__faq-item > p:last-child {
  max-width: 680px;
  margin: 0 0 18px;
  color: var(--ax-article-muted);
  font-size: 14px;
}

body#cms .ax-editorial-article__rail {
  align-self: start;
  position: sticky;
  top: 24px;
  padding: 27px 24px 24px;
  border: 1px solid var(--ax-article-line);
  border-radius: 22px;
  background: var(--ax-article-cream);
}

body#cms .ax-editorial-article__rail .ax-editorial-article__section-kicker {
  color: #778b69;
}

body#cms .ax-editorial-article__related {
  display: grid;
  gap: 10px;
}

body#cms .ax-editorial-article__related-link {
  display: grid;
  gap: 6px;
  position: relative;
  padding: 15px 25px 15px 0;
  border-top: 1px solid var(--ax-article-line);
  color: inherit;
  text-decoration: none;
}

body#cms .ax-editorial-article__related-link strong {
  color: #425e36;
  font: 600 22px/1.05 'EB Garamond', Georgia, serif;
}

body#cms .ax-editorial-article__related-link span {
  color: var(--ax-article-muted);
  font: 500 12px/1.5 Manrope, sans-serif;
}

body#cms .ax-editorial-article__related-link em {
  position: absolute;
  top: 17px;
  right: 0;
  color: var(--ax-article-green);
  font: normal 18px/1 Manrope, sans-serif;
}

body#cms .ax-editorial-article__related-link:hover strong,
body#cms .ax-editorial-article__related-link:focus-visible strong {
  color: #7a5533;
}

body#cms .ax-editorial-article__rail-cta {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  justify-content: space-between;
  margin-top: 22px;
  background: #315d28;
  color: #fffdf7;
}

body#cms .ax-editorial-article a:focus-visible,
body#cms .ax-editorial-article summary:focus-visible,
body#cms .ax-editorial-article__faq-question:focus-visible {
  outline: 3px solid #9bb486;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  body#cms .ax-editorial-article {
    width: 100%;
  }

  body#cms .ax-editorial-article__hero {
    grid-template-columns: 1fr;
    grid-template-areas: "media" "copy";
    min-height: 0;
    border-radius: 22px;
  }

  body#cms .ax-editorial-article__hero-media {
    min-height: 370px;
  }

  body#cms .ax-editorial-article__hero-copy {
    padding: 34px 25px 32px;
  }

  body#cms .ax-editorial-article__layout {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-right: 0;
    padding-left: 0;
  }

  body#cms .ax-editorial-article__rail {
    position: static;
  }
}

@media (max-width: 560px) {
  body#cms .ax-editorial-article {
    width: 100%;
    padding-bottom: 46px;
  }

  body#cms .ax-editorial-article__breadcrumbs {
    margin-bottom: 12px;
    font-size: 10px;
  }

  body#cms .ax-editorial-article__hero {
    min-height: 0;
  }

  body#cms .ax-editorial-article__hero-media::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(35, 59, 30, .2));
  }

  body#cms .ax-editorial-article__hero-media {
    min-height: 290px;
  }

  body#cms .ax-editorial-article__hero h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  body#cms .ax-editorial-article__lead {
    margin-top: 19px;
    font-size: 14px;
  }

  body#cms .ax-editorial-article__hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  body#cms .ax-editorial-article__button,
  body#cms .ax-editorial-article__text-link {
    justify-content: center;
    text-align: center;
  }

  body#cms .arthopia-editorial-content {
    font-size: 14px;
    line-height: 1.72;
  }

  body#cms .arthopia-editorial-content h2,
  body#cms .ax-editorial-article__faq h2,
  body#cms .ax-editorial-article__rail h2 {
    font-size: 32px;
  }

  body#cms .arthopia-editorial-content h2 {
    margin-top: 40px;
  }

  body#cms .ax-editorial-article__toc,
  body#cms .ax-editorial-article__rail {
    padding: 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body#cms .ax-editorial-article__button,
  body#cms .ax-editorial-article__rail-cta {
    transition: none;
  }
}
