/* Grace Online — scoped to this section. Do not style the shared header or footer. */

.ghco-page {
  background: #f7f1e8;
  color: #203f49;
}

.co-skip {
  position: absolute;
  left: 1rem;
  top: -120px;
  z-index: 1100;
  background: #fffefa;
  color: #203f49;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-family: "Source Sans 3", "Inter", "Segoe UI", sans-serif;
}

.co-skip:focus,
.co-skip:focus-visible {
  top: 0.75rem;
  outline: 3px solid #78629a;
  outline-offset: 3px;
}

.ghco-page .header .menu__link[aria-current="page"] {
  box-shadow: inset 0 -2px 0 rgba(35, 79, 115, 0.55);
}

.ghco {
  --ink: #203f49;
  padding-top: var(--gh-header-clearance, 7.2rem);
  --muted: #4b6065;
  --cream: #f7f1e8;
  --sage: #e8eee7;
  --line: #cdc8d0;
  --accent: #355c55;
  background: var(--cream);
  color: var(--ink);
  font-family: "Source Sans 3", "Inter", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.ghco *,
.ghco *::before,
.ghco *::after {
  box-sizing: border-box;
}

.ghco a {
  color: #28594f;
  text-underline-offset: 0.25rem;
}

.ghco .co-reading a,
.ghco .co-help a,
.ghco .co-close a,
.ghco .co-resource a:not(.co-button) {
  text-decoration: underline;
}

.ghco a:hover {
  text-decoration-thickness: 2px;
}

.ghco :focus-visible,
.co-subnav a:focus-visible {
  outline: 3px solid #78629a;
  outline-offset: 3px;
}

.ghco [hidden] {
  display: none !important;
}

.ghco h1,
.ghco h2,
.ghco h3,
.ghco .co-scenario legend {
  font-family: "Cormorant Garamond", Baskerville, Georgia, serif;
  font-weight: 500;
  color: var(--ink);
}

.ghco h1 {
  font-size: clamp(2.4rem, 5vw, 3.85rem);
  line-height: 1.12;
  margin: 0 0 1.15rem;
  letter-spacing: -0.02em;
}

.ghco h2 {
  font-size: clamp(1.7rem, 3vw, 1.85rem);
  line-height: 1.25;
  margin: 0 0 1rem;
}

.ghco h3 {
  font-size: 1.45rem;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

.ghco p {
  margin: 0 0 1rem;
}

.ghco ul,
.ghco ol {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
}

.ghco ul > li,
.ghco ol > li {
  margin: 0;
  padding: 0.45rem 0 0.45rem 0.2rem;
}

.ghco ul > li {
  list-style: disc;
}

.ghco ol > li {
  list-style: decimal;
}

.co-subnav {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.35rem 1.25rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.co-subnav__label {
  margin: 0;
  font-family: "Source Sans 3", "Inter", "Segoe UI", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #526d60;
}

.co-subnav__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  max-width: 100%;
}

.co-subnav a {
  font-family: "Source Sans 3", "Inter", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #203f49;
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border-radius: 22px;
}

.co-subnav a[aria-current="page"] {
  background: #e8eee7;
  box-shadow: inset 0 0 0 1px #bac9bd;
}

.co-hero {
  position: relative;
  overflow: hidden;
  border-block: 1px solid #e3dfd6;
  background:
    radial-gradient(ellipse at 8% 25%, #e5ece1 0, transparent 42%),
    radial-gradient(ellipse at 95% 80%, #eee4ef 0, transparent 44%),
    #f6f4ed;
}

.co-hero::before,
.co-hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  width: 230px;
  height: 310px;
  border: 1px solid #c4d2c1;
  border-radius: 90% 5% 90% 5%;
  transform: rotate(-30deg);
  opacity: 0.7;
  pointer-events: none;
}

.co-hero::before {
  left: -100px;
}

.co-hero::after {
  right: -100px;
  transform: rotate(30deg);
  border-color: #d2c7d9;
}

.co-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 53rem;
  margin: 0 auto;
  padding: 3.4rem 1.5rem 2.4rem;
}

.co-eyebrow {
  font-family: "Source Sans 3", "Inter", "Segoe UI", sans-serif;
  font-size: 0.75rem;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #526d60;
  margin: 0 0 0.85rem;
}

.ghco .co-hero .co-lead {
  font-family: "Cormorant Garamond", Baskerville, Georgia, serif;
  font-size: clamp(1.25rem, 2.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  max-width: 38rem;
  width: 100%;
  margin: 1.15rem auto 0;
}

.co-flourish {
  font-size: 1.6rem;
  color: #796b85;
  margin: 0.15rem auto 0;
  line-height: 1;
  text-align: center;
}

.co-content {
  max-width: 67.5rem;
  margin: 0 auto;
  padding: 2.8rem 1.5rem 1rem;
}

.co-content > section,
.co-content > aside {
  margin: 0 0 3rem;
}

.co-content > .co-intro,
.co-content > .co-reading {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.ghco .co-intro {
  text-align: center;
}

.co-reading h2:not(:first-child) {
  margin-top: 2.25rem;
}

.co-statement {
  padding: 1.9rem 2.2rem;
  background: #f2eee8;
  border: 1px solid #ddd3cc;
  border-radius: 22px;
  text-align: center;
}

.co-statement blockquote {
  font-family: "Cormorant Garamond", Baskerville, Georgia, serif;
  font-size: clamp(1.25rem, 2.4vw, 1.4rem);
  line-height: 1.65;
  margin: 0;
}

.co-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.co-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fffefa;
  padding: 1.75rem;
  box-shadow: 0 5px 14px rgba(26, 48, 69, 0.04);
  min-width: 0;
}

.co-link-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.2s ease;
}

.co-link-card:hover {
  box-shadow: 0 9px 24px rgba(26, 48, 69, 0.1);
}

.co-link-card p {
  font-size: 1.05rem;
  line-height: 1.6;
}

.co-number {
  font-family: "Source Sans 3", "Inter", "Segoe UI", sans-serif;
  font-size: 0.75rem;
  color: #5a6e58;
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 1.15rem;
}

.co-more {
  font-family: "Source Sans 3", "Inter", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: auto;
  padding-top: 0.5rem;
  color: #28594f;
}

.co-anchor {
  background: var(--sage);
  border: 1px solid #cad5c5;
  border-radius: 24px;
  text-align: center;
  padding: 1.9rem 1.75rem;
}

.co-anchor h2 {
  font-size: 1.7rem;
}

.co-anchor p {
  margin-bottom: 0;
}

.co-close {
  text-align: center;
  border-top: 1px solid #d9d9cb;
  padding: 2rem 1.25rem 2.4rem;
  background: #edf0e8;
  font-size: 0.95rem;
}

.co-footer-title {
  font-family: "Cormorant Garamond", Baskerville, Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
}

.co-close p:last-child {
  margin: 0;
}

.co-principles h2 {
  font-size: 1.55rem;
}

.co-principles p {
  font-size: 1.05rem;
}

.co-scenarios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.co-scenario {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.6rem;
  min-width: 0;
}

.co-scenario fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.co-scenario legend {
  font-size: 1.45rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  padding: 0;
}

.co-scenario fieldset > p {
  font-size: 1.05rem;
}

.co-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid #dadad1;
  border-radius: 12px;
  padding: 0.75rem;
  margin: 0.65rem 0;
  font-size: 1rem;
  line-height: 1.55;
  cursor: pointer;
}

.co-option:has(input:checked) {
  background: #eaf0e8;
  border-color: #77947e;
}

.co-option input {
  margin-top: 0.3rem;
  accent-color: #355c55;
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
}

.ghco button,
.ghco .co-button {
  font-family: "Source Sans 3", "Inter", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #fff;
  background: #355c55;
  border: 1px solid #355c55;
  border-radius: 22px;
  padding: 0.75rem 1.15rem;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.ghco button:hover,
.ghco .co-button:hover {
  background: #24453f;
  color: #fff;
}

.ghco button:disabled {
  background: #dde4dd;
  color: #526158;
  border-color: #bbc9bd;
  cursor: default;
}

.ghco .co-secondary {
  background: transparent;
  color: #355c55;
}

.ghco .co-secondary:hover {
  background: #eaf0e8;
  color: #24453f;
}

.co-feedback {
  font-size: 1rem;
  line-height: 1.65;
  margin: 1rem 0 0;
}

.co-feedback:empty {
  display: none;
}

.co-plan {
  background: #f0ebf2;
  padding: 1.9rem;
  border: 1px solid #d2c5db;
  border-radius: 24px;
}

.co-plan label {
  display: block;
  margin-bottom: 0.4rem;
}

.co-plan textarea {
  font-family: "Source Sans 3", "Inter", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  padding: 0.8rem;
  border: 1px solid #9ca69d;
  border-radius: 12px;
  resize: vertical;
  background: #fffefa;
  color: var(--ink);
}

.co-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.75rem 0;
}

.co-small {
  font-family: "Source Sans 3", "Inter", "Segoe UI", sans-serif;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 0.85rem;
}

.co-help {
  padding: 1.9rem;
  border: 1px solid #c3cfcc;
  border-left: 5px solid #66837b;
  border-radius: 18px;
  background: #edf3f0;
}

.co-help p:last-child {
  margin-bottom: 0;
}

.co-content > section.co-reflection {
  max-width: 40rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
  padding: 1.9rem 1.75rem;
  background: #f8f4ec;
  border: 1px solid #dcd1c1;
  border-radius: 24px;
  text-align: left;
}

.co-reflection p:last-child {
  margin-bottom: 0;
}

.co-resource {
  padding: 1.75rem;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 24px;
  margin-bottom: 1.5rem;
}

.co-gallery {
  width: min(100%, 34rem);
  margin: 1.35rem auto;
  min-width: 0;
}

.co-slide {
  margin: 0;
}

.co-slide img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid #dedbcf;
  border-radius: 14px;
}

.co-slide figcaption {
  font-family: "Source Sans 3", "Inter", "Segoe UI", sans-serif;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 0.65rem;
  color: var(--muted);
}

.co-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.co-gallery-controls p {
  font-family: "Source Sans 3", "Inter", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  margin: 0;
  text-align: center;
  flex: 1 1 8rem;
}

.co-resource > .co-button {
  margin-top: 0.35rem;
}

@media (max-width: 980px) {
  .co-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .co-grid,
  .co-scenarios {
    grid-template-columns: 1fr;
  }

  .co-content {
    padding: 1.9rem 1.15rem 0.5rem;
  }

  .co-hero-inner {
    padding: 2.4rem 1.15rem 1.7rem;
  }

  .co-statement,
  .co-link-card {
    padding: 1.45rem;
  }

  .co-number {
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 420px) {
  .co-subnav a {
    font-size: 0.85rem;
    padding: 0.5rem 0.65rem;
  }

  .co-lead {
    font-size: 1.2rem;
  }

  .co-content {
    padding-inline: 0.9rem;
  }

  .co-scenario,
  .co-plan,
  .co-resource,
  .co-reflection,
  .co-help {
    padding: 1.25rem;
  }

  .co-gallery-controls button {
    font-size: 0.8rem;
    padding: 0.65rem 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .co-link-card {
    transition: none;
  }
}

@media print {
  .co-subnav,
  .co-close,
  .co-gallery-controls,
  .co-scenario button,
  .co-actions,
  .header,
  .footer {
    display: none;
  }

  .ghco {
    background: #fff;
    font-size: 12pt;
    padding-top: 0;
  }

  .co-content {
    padding: 0;
  }

  .co-hero-inner {
    padding: 1.25rem;
  }

  .co-grid,
  .co-scenarios {
    display: block;
  }

  .co-card,
  .co-scenario {
    break-inside: avoid;
    margin-bottom: 1rem;
    box-shadow: none;
  }

  .co-slide[hidden] {
    display: block !important;
  }

  .co-slide {
    break-inside: avoid;
    margin: 1.25rem 0;
  }

  .co-plan textarea {
    height: 100px;
  }
}
