.cg-main {
  padding-block: var(--space-8) var(--space-9);
}

.cg-shell {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
}

.cg-toc {
  background-color: var(--velours);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cg-toc__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: none;
  border: none;
  color: var(--ivoire);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-base);
}

.cg-toc__toggle:hover {
  color: var(--rose-ceremonie);
}

.cg-toc__chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--cendre);
  border-bottom: 2px solid var(--cendre);
  transform: rotate(45deg);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.cg-toc__toggle[aria-expanded="true"] .cg-toc__chevron {
  transform: rotate(225deg);
}

.cg-toc__panel {
  display: none;
  padding: 0 var(--space-5) var(--space-5);
}

.cg-toc__toggle[aria-expanded="true"] + .cg-toc__panel {
  display: block;
}

.cg-toc__title {
  font-size: var(--text-xl);
  line-height: var(--leading-xl);
  margin-block-end: var(--space-4);
}

.cg-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cg-toc__list a {
  display: block;
  color: var(--cendre);
  font-size: var(--text-md);
  line-height: var(--leading-md);
  text-decoration: none;
  transition: color var(--transition-base);
}

.cg-toc__list a:hover,
.cg-toc__list a:focus-visible {
  color: var(--rose-ceremonie);
  text-decoration: underline;
  text-decoration-color: var(--rose-ceremonie);
  text-underline-offset: 3px;
}

.cg-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.cg-hero {
  max-width: var(--container-reading);
  width: 100%;
}

.cg-hero__title {
  font-size: var(--text-3xl);
  line-height: var(--leading-3xl);
  margin-block-end: var(--space-4);
}

.cg-hero__rule {
  width: 72px;
  height: 2px;
  background-color: var(--rose-ceremonie);
  margin-block-end: var(--space-5);
}

.cg-hero__lead {
  font-size: var(--text-lg);
  line-height: var(--leading-lg);
  color: var(--ivoire);
  margin-block-end: var(--space-5);
}

.cg-hero__date {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  color: var(--cendre);
  margin-block-end: 0;
}

.cg-hero__date-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid var(--cendre);
  border-radius: var(--radius-xs);
  position: relative;
}

.cg-hero__date-icon::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 3px;
  right: 3px;
  height: 1.5px;
  background-color: var(--cendre);
}

.cg-hero__date-icon::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 5px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background-color: var(--cendre);
  box-shadow: 4px 0 0 var(--cendre);
}

.cg-section {
  max-width: var(--container-reading);
  width: 100%;
  padding-block-start: var(--space-7);
  border-block-start: var(--separator-accent);
}

.cg-section__title {
  font-size: var(--text-2xl);
  line-height: var(--leading-2xl);
  margin-block-end: var(--space-5);
}

.cg-section__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.cg-section__body p {
  margin-block-end: 0;
  font-size: var(--text-md);
  line-height: var(--leading-md);
  color: var(--ivoire);
}

.cg-subtitle {
  font-size: var(--text-lg);
  line-height: var(--leading-lg);
  margin-block-end: var(--space-3);
}

.cg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cg-list li {
  position: relative;
  padding-inline-start: var(--space-5);
  font-size: var(--text-md);
  line-height: var(--leading-md);
  color: var(--ivoire);
}

.cg-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--rose-ceremonie);
}

.cg-notice,
.cg-warning {
  background-color: var(--brume);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.cg-notice__label,
.cg-warning__label {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--leading-sm);
  color: var(--or-champagne);
  margin-block-end: var(--space-2);
}

.cg-notice p:last-child,
.cg-warning p:last-child {
  margin-block-end: 0;
}

.cg-contact {
  background-color: var(--velours);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.cg-contact__title {
  font-size: var(--text-xl);
  line-height: var(--leading-xl);
  margin-block-end: var(--space-3);
}

.cg-contact p {
  margin-block-end: var(--space-3);
}

.cg-contact__list {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.cg-contact__list li {
  font-size: var(--text-md);
  line-height: var(--leading-md);
  color: var(--ivoire);
}

.cg-contact__list a {
  color: var(--rose-ceremonie);
  text-decoration: none;
}

.cg-contact__list a:hover,
.cg-contact__list a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--rose-ceremonie);
  text-underline-offset: 3px;
}

.cg-contact__note {
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  color: var(--cendre);
  margin-block-end: 0;
}

.cg-accent {
  color: var(--rose-ceremonie);
}

@media (min-width: 768px) {
  .cg-main {
    padding-block: var(--space-9) var(--space-10);
  }

  .cg-shell {
    padding-inline: var(--gutter-tablet);
    gap: var(--space-8);
  }

  .cg-hero__title {
    font-size: var(--text-4xl);
    line-height: var(--leading-4xl);
  }

  .cg-section__title {
    font-size: var(--text-3xl);
    line-height: var(--leading-3xl);
  }
}

@media (min-width: 1024px) {
  .cg-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: var(--space-8);
    align-items: start;
  }

  .cg-toc {
    position: sticky;
    top: var(--space-5);
  }

  .cg-toc__toggle {
    display: none;
  }

  .cg-toc__panel {
    display: block;
    padding: var(--space-5);
  }

  .cg-toc__title {
    font-size: var(--text-xl);
    line-height: var(--leading-xl);
  }
}

@media (min-width: 1120px) {
  .cg-shell {
    padding-inline: var(--gutter-desktop);
  }
}

@media (max-width: 1023px) {
  .cg-toc__title {
    font-size: var(--text-lg);
    line-height: var(--leading-lg);
  }
}

@media (max-width: 767px) {
  .cg-main {
    padding-block: var(--space-7) var(--space-8);
  }

  .cg-shell {
    padding-inline: var(--gutter-mobile);
    gap: var(--space-7);
  }

  .cg-content {
    gap: var(--space-7);
  }

  .cg-hero__title {
    font-size: var(--text-3xl);
    line-height: var(--leading-3xl);
  }

  .cg-hero__lead {
    font-size: var(--text-md);
    line-height: var(--leading-md);
  }

  .cg-section {
    padding-block-start: var(--space-6);
  }

  .cg-section__title {
    font-size: var(--text-2xl);
    line-height: var(--leading-2xl);
  }

  .cg-section__body {
    gap: var(--space-4);
  }

  .cg-notice,
  .cg-warning,
  .cg-contact {
    padding: var(--space-4);
  }
}
