/* Community guidelines */

.community-guidelines-page .nav__cta::after {
  display: none;
}

.cg {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.cg .wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.cg h1,
.cg h2,
.cg h3,
.cg summary {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.022em;
}

.cg :focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
}

.cg-hero {
  height: auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  padding: clamp(48px, 6vw, 72px) 0 clamp(64px, 7vw, 88px);
}

.cg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 760px 460px at 78% 38%, rgba(197, 75, 30, 0.26), transparent 68%),
    radial-gradient(ellipse 1100px 280px at 50% 100%, rgba(197, 75, 30, 0.1), transparent 75%);
  pointer-events: none;
}

.cg-hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.cg-hero__kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--hero-terra);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cg-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: var(--cream);
}

.cg-hero p {
  margin-top: 18px;
  max-width: 46ch;
  color: rgba(250, 245, 234, 0.88);
  font-family: var(--font-sans);
  font-size: var(--text-support);
  line-height: 1.65;
}

.cg-hero__art {
  width: 100%;
  max-width: 420px;
  justify-self: end;
}

.cg-sec {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: 64px;
  padding: 72px 0;
  border-top: 1px solid #e0d2b8;
  align-items: start;
}

.cg .wrap > .cg-sec:first-of-type {
  border-top: 0;
  padding-top: 72px;
}

.cg-sec:last-of-type {
  padding-bottom: 96px;
}

.cg-sec__side {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  align-self: start;
}

.cg-sec__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--terra);
  font-size: 1.375rem;
  line-height: 1.2;
  margin-bottom: 0;
}

.cg-sec__side h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.125rem);
  color: var(--ink);
  margin-top: 6px;
}

.cg-sec__side h2::after {
  content: none;
}

.cg-intro p {
  color: rgba(31, 26, 18, 0.82);
}

.cg-intro p + p {
  margin-top: 18px;
}

.cg-prose {
  max-width: 680px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}

.cg-prose > p {
  margin: 0 0 18px;
}

.cg-prose .cg-sub {
  margin: 48px 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.5625rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.cg-prose .cg-sub:first-child {
  margin-top: 0;
}

.cg-sec[aria-labelledby="cg-intro"] .cg-prose > p.em {
  margin: 28px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.35;
  color: var(--terra);
  font-weight: 500;
}

.cg-sec[aria-labelledby="cg-patients"] .cg-prose > p.em {
  font-style: italic;
  color: #5a5249;
  font-weight: 400;
}

.cg-prose a {
  color: var(--terra);
  font-weight: 600;
  text-underline-offset: 3px;
}

.cg-prose ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.cg-prose li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  color: var(--ink);
}

.cg-prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terra);
}

.cg-prose ol.cg-expect {
  list-style: none;
  padding: 0;
  margin: 28px 0 8px;
  counter-reset: cg-expect;
}

.cg-prose ol.cg-expect > li {
  counter-increment: cg-expect;
  position: relative;
  padding: 0 0 26px 54px;
  margin-bottom: 0;
}

.cg-prose ol.cg-expect > li:last-child {
  padding-bottom: 0;
}

.cg-prose ol.cg-expect > li::before {
  content: counter(cg-expect);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--terra);
  color: var(--terra);
  border-radius: 50%;
  text-align: center;
  line-height: 31px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9375rem;
  background: none;
}

.cg-prose ol.cg-expect > li > p {
  margin: 0 0 10px;
}

.cg-prose blockquote.cg-quote {
  margin: 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--terra);
  background: none;
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.45;
  max-width: none;
}

.cg-prose blockquote.cg-quote p {
  color: var(--ink);
  margin: 0 !important;
}

.cg-callout {
  margin: 36px 0;
  padding: 20px 24px;
  max-width: none;
  border-radius: 0 4px 4px 0;
  border: 0;
  border-left: 4px solid var(--terra);
  background: #f1e6d2;
}

.cg-callout p {
  margin: 0 !important;
  line-height: 1.65;
  color: var(--ink);
}

.cg-body--pillars {
  padding-top: 8px;
  padding-bottom: 8px;
}

.cg-body--pillars .cg-community {
  margin-top: 0;
}

.cg-community {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 0;
}

.cg-community > li {
  padding: 28px 0;
  border-top: 1px solid var(--hair);
}

.cg-community > li:first-child {
  padding-top: 12px;
}

.cg-intro + .cg-acc {
  margin-top: 48px;
  border-top: 1px solid var(--hair);
  padding-top: 8px;
}

.cg-community + .cg-intro {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--hair);
}

.cg-community__num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--terra);
}

.cg-community h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.cg-community p {
  margin: 0;
  max-width: 62ch;
  color: rgba(31, 26, 18, 0.82);
}

.cg-acc {
  margin-top: 40px;
  border-top: 1px solid var(--hair);
}

.cg-acc details {
  border-bottom: 1px solid var(--hair);
}

.cg-acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.cg-acc summary::-webkit-details-marker {
  display: none;
}

.cg-acc summary:hover {
  color: var(--terra);
}

.cg-acc .cg-plus {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--hair);
  position: relative;
  transition: background 0.2s, border-color 0.2s, transform 0.25s;
}

.cg-acc .cg-plus::before,
.cg-acc .cg-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.cg-acc .cg-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity 0.2s;
}

.cg-acc details[open] .cg-plus {
  background: var(--terra);
  border-color: var(--terra);
  transform: rotate(180deg);
}

.cg-acc details[open] .cg-plus::after {
  opacity: 0;
}

.cg-acc details[open] summary {
  color: var(--ink);
}

.cg-acc .cg-body {
  padding: 0 58px 30px 0;
  color: rgba(31, 26, 18, 0.82);
  animation: cg-in 0.3s ease;
}

.cg-acc .cg-body p + p {
  margin-top: 14px;
}

.cg-acc .cg-body ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
}

.cg-acc .cg-body li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 6px;
  color: var(--ink);
}

.cg-acc .cg-body li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terra);
}

.cg-acc .cg-body .cg-community > li {
  padding-left: 0;
  margin-bottom: 0;
}

.cg-acc .cg-body .cg-community > li::before {
  content: none;
}

.cg-intro p,
.cg-acc .cg-body > p {
  max-width: 68ch;
}

.cg-acc .cg-body .em {
  color: var(--ink);
  font-weight: 600;
}

.cg-acc .cg-body a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration-color: var(--terra);
  text-decoration-thickness: 2px;
}

.cg-acc .cg-body blockquote.cg-quote {
  margin: 16px 0 0;
  padding: 20px 24px;
  border-left: 4px solid var(--terra);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 0 12px 12px 0;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.58;
}

.cg-acc .cg-body blockquote.cg-quote p {
  color: var(--ink);
}

.cg-acc .cg-body blockquote.cg-quote p + p {
  margin-top: 14px;
}

.cg-acc .cg-body ol.cg-expect {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  counter-reset: cg-expect;
}

.cg-acc .cg-body ol.cg-expect > li {
  counter-increment: cg-expect;
  position: relative;
  padding-left: 0;
  margin-bottom: 28px;
}

.cg-acc .cg-body ol.cg-expect > li:last-child {
  margin-bottom: 0;
}

.cg-acc .cg-body ol.cg-expect > li::before {
  content: counter(cg-expect, decimal-leading-zero);
  position: static;
  display: block;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--terra);
  margin-bottom: 8px;
}

.cg-acc .cg-body ol.cg-expect blockquote.cg-quote {
  margin-top: 12px;
}

@keyframes cg-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .cg-hero .wrap {
    grid-template-columns: 1fr;
  }

  .cg-hero__art {
    display: none;
  }

  .cg-sec {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 60px 0;
  }

  .cg-sec__side {
    position: static;
  }

  .cg-acc .cg-body {
    padding-right: 0;
  }

  .cg-sec {
    gap: 32px;
    padding: 0 0 56px;
    border-top: 0;
  }

  .cg .wrap > .cg-sec:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
  }

  .cg-sec__side {
    margin: 0 -24px;
    padding: 28px 24px 26px;
    background: #f1e6d2;
  }

  .cg-sec__num {
    font-size: 1.5rem;
  }

  .cg-sec__side h2 {
    font-size: clamp(2.25rem, 9vw, 2.5rem);
    line-height: 1.1;
  }

  .cg-sec__side h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 5px;
    border-radius: 3px;
    background: var(--terra);
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cg-acc .cg-body {
    animation: none;
  }

  .cg-acc .cg-plus {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
