/* Connecticut root page. Custom rules are scoped to .ct-home. */
.ct-home {
  --ch-green: #174c3b;
  --ch-teal: #00696e;
  --ch-rust: #a63f25;
  --ch-gold: #f3c65a;
  --ch-ink: #24382f;
  --ch-muted: #56655b;
  color: var(--ch-ink);
  background: #fffefa;
}

.ct-home .ch-page {
  padding-block: 2.5rem 4rem;
}

.ct-home .ch-shell {
  width: min(77rem, calc(100% - 3rem));
  margin-inline: auto;
}

.ct-home .ch-page h1,
.ct-home .ch-page h2,
.ct-home .ch-page h3 {
  color: inherit;
  line-height: 1.2;
}

.ct-home .ch-page p {
  max-width: none;
  line-height: 1.75;
}

.ct-home .ch-page a {
  color: var(--ch-teal);
  text-underline-offset: 0.22em;
}

.ct-home .ch-page a:hover {
  color: var(--ch-rust);
}

.ct-home .ch-page :focus-visible {
  outline: 3px solid var(--ch-teal);
  outline-offset: 4px;
}

.ct-home .ch-eyebrow {
  margin: 0 0 0.8rem;
  color: var(--ch-rust);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ct-home .ch-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.ct-home .ch-title-row h1 {
  margin: 0;
  color: var(--ch-green);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.ct-home .ch-hero-lead {
  margin: 0;
  padding-left: 1.4rem;
  border-left: 4px solid var(--ch-rust);
  color: var(--ch-rust);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
}

.ct-home .ch-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  align-items: start;
  gap: 1.4rem;
}

.ct-home .ch-photo {
  margin: 0;
}

.ct-home .ch-photo img {
  width: 100%;
  height: auto;
}

.ct-home .ch-photo figcaption {
  margin-top: 0.65rem;
  color: var(--ch-muted);
  font-size: 0.73rem;
  line-height: 1.5;
}

.ct-home .ch-hero-note {
  padding: 1.8rem;
  border-top: 5px solid var(--ch-gold);
  background: var(--ch-green);
  color: #fff;
}

.ct-home .ch-hero-note .ch-eyebrow {
  color: var(--ch-gold);
}

.ct-home .ch-hero-note h2 {
  margin: 0 0 1rem;
  font-size: 2.2rem;
  font-weight: 500;
}

.ct-home .ch-hero-note p {
  font-size: 0.91rem;
}

.ct-home .ch-hero-note p:last-child {
  margin-bottom: 0;
}

.ct-home .ch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

.ct-home .ch-main,
.ct-home .ch-sidebar {
  min-width: 0;
}

.ct-home .ch-main h2 {
  margin: 0 0 1rem;
  color: var(--ch-green);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.ct-home .ch-reviewed {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--ch-rust);
  color: var(--ch-muted);
  font-size: 0.88rem;
}

.ct-home .ch-reviewed strong {
  color: var(--ch-ink);
}

.ct-home .ch-directory,
.ct-home .ch-faq,
.ct-home .ch-finish {
  margin-top: 2.8rem;
}

.ct-home .ch-section-heading {
  padding: 1.6rem;
  border-top: 5px solid var(--ch-gold);
  background: var(--ch-teal);
  color: #fff;
}

.ct-home .ch-section-heading h2 {
  color: #fff;
}

.ct-home .ch-section-heading p {
  margin: 0;
  font-size: 0.91rem;
}

.ct-home .ch-farm-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.ct-home .ch-farm {
  margin: 0;
  border: 1px solid #bccbbf;
  border-left: 5px solid var(--ch-green);
  background: #fff;
  box-shadow: 0 3px 14px rgba(28, 59, 44, 0.05);
}

.ct-home .ch-farm:nth-child(3n + 2) {
  border-left-color: var(--ch-rust);
}

.ct-home .ch-farm:nth-child(3n) {
  border-left-color: var(--ch-teal);
}

.ct-home .ch-farm > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1.1rem;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem;
  list-style: none;
  cursor: pointer;
}

.ct-home .ch-farm > summary:hover {
  box-shadow: inset 0 0 0 2px var(--ch-teal);
}

.ct-home .ch-farm summary::-webkit-details-marker,
.ct-home .ch-faq summary::-webkit-details-marker {
  display: none;
}

.ct-home .ch-farm summary::marker,
.ct-home .ch-faq summary::marker {
  content: "";
}

.ct-home .ch-town,
.ct-home .ch-name {
  display: block;
}

.ct-home .ch-town {
  margin-bottom: 0.4rem;
  color: var(--ch-rust);
  font-size: 0.75rem;
  font-weight: 700;
}

.ct-home .ch-name {
  color: var(--ch-green);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.25;
}

.ct-home .ch-profile-label {
  grid-column: 2;
  align-self: center;
  padding: 0.45rem 0.6rem;
  background: var(--ch-rust);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ct-home .ch-toggle {
  grid-column: 3;
  align-self: center;
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
}

.ct-home .ch-toggle::before,
.ct-home .ch-toggle::after {
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 1.1rem;
  height: 2px;
  background: var(--ch-green);
  content: "";
}

.ct-home .ch-toggle::after {
  transform: rotate(90deg);
}

.ct-home .ch-farm[open] .ch-toggle::after {
  transform: rotate(0);
}

.ct-home .ch-detail {
  padding: 1.5rem 1.3rem;
  border-top: 1px solid #d5ded5;
  font-size: 0.94rem;
}

.ct-home .ch-focus {
  margin: 0 0 1rem;
  color: var(--ch-teal);
  font-size: 0.82rem;
  font-weight: 750;
}

.ct-home .ch-visit-note {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--ch-gold);
}

.ct-home .ch-visit-note h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.ct-home .ch-visit-note p {
  margin: 0;
  color: var(--ch-muted);
  font-size: 0.87rem;
}

.ct-home .ch-address {
  color: var(--ch-muted);
  font-size: 0.83rem;
}

.ct-home .ch-host {
  display: block;
  width: fit-content;
  padding-block: 0.65rem;
  font-size: 0.87rem;
  font-weight: 700;
}

.ct-home .ch-detail .ch-profile-button {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0.85rem 1rem;
  background: var(--ch-green);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.ct-home .ch-detail .ch-profile-button:hover {
  background: var(--ch-rust);
  color: #fff;
}

.ct-home .ch-activities {
  padding: 1.5rem;
  border-top: 5px solid var(--ch-gold);
  background: var(--ch-green);
  color: #fff;
}

.ct-home .ch-activities .ch-eyebrow {
  color: var(--ch-gold);
}

.ct-home .ch-sidebar h2 {
  margin: 0 0 1rem;
  font-size: 1.65rem;
  font-weight: 500;
}

.ct-home .ch-sidebar p {
  font-size: 0.88rem;
}

.ct-home .ch-activities ul {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.ct-home .ch-activities li {
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.ct-home .ch-activities a {
  display: block;
  padding: 1rem 0;
  color: #fff;
  text-decoration: none;
}

.ct-home .ch-activities a:hover {
  color: var(--ch-gold);
}

.ct-home .ch-activities a span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.ct-home .ch-activities a small {
  display: block;
  margin-top: 0.4rem;
  color: #fff;
  font-size: 0.77rem;
  line-height: 1.5;
}

.ct-home .ch-side {
  margin-top: 1.5rem;
  padding: 1.5rem;
}

.ct-home .ch-side p:last-child {
  margin-bottom: 0;
}

.ct-home .ch-plan {
  background: var(--ch-gold);
}

.ct-home .ch-plan .ch-eyebrow {
  color: var(--ch-green);
}

.ct-home .ch-fiber {
  border-top: 5px solid var(--ch-gold);
  background: var(--ch-rust);
  color: #fff;
}

.ct-home .ch-fiber .ch-eyebrow {
  color: #fff;
}

.ct-home .ch-activities :focus-visible,
.ct-home .ch-profile-button:focus-visible {
  outline-color: var(--ch-gold);
}

.ct-home .ch-faq details {
  margin: 0;
  border-top: 1px solid #bccbbf;
}

.ct-home .ch-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.ct-home .ch-faq summary::after {
  color: var(--ch-rust);
  content: "+";
}

.ct-home .ch-faq details[open] summary::after {
  content: "−";
}

.ct-home .ch-faq details p {
  margin: 0 0 1.2rem;
  color: var(--ch-muted);
  font-size: 0.9rem;
}

.ct-home .ch-finish {
  padding-top: 1.8rem;
  border-top: 4px solid var(--ch-rust);
}

@media (max-width: 65rem) {
  .ct-home .ch-layout {
    grid-template-columns: minmax(0, 1fr) 16rem;
    gap: 1.7rem;
  }

  .ct-home .ch-hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }

  .ct-home .ch-hero-note {
    padding: 1.4rem;
  }

  .ct-home .ch-hero-note h2 {
    font-size: 1.8rem;
  }

  .ct-home .ch-farm > summary {
    gap: 0.7rem;
  }
}

@media (max-width: 48rem) {
  .ct-home .ch-page {
    padding-top: 1.5rem;
  }

  .ct-home .ch-shell {
    width: calc(100% - 2rem);
  }

  .ct-home .ch-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.4rem;
  }

  .ct-home .ch-hero-grid,
  .ct-home .ch-layout {
    grid-template-columns: 1fr;
  }

  .ct-home .ch-hero-note {
    padding: 1.6rem;
  }

  .ct-home .ch-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .ct-home .ch-activities {
    grid-column: 1 / -1;
  }

  .ct-home .ch-activities ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.5rem;
  }

  .ct-home .ch-side {
    margin: 0;
  }
}

@media (max-width: 35rem) {
  .ct-home .ch-farm > summary {
    padding: 1rem;
    gap: 0.6rem;
  }

  .ct-home .ch-name {
    font-size: 1.25rem;
  }

  .ct-home .ch-profile-label {
    padding: 0.45rem;
    font-size: 0.6rem;
  }

  .ct-home .ch-detail {
    padding: 1.2rem 1rem;
  }

  .ct-home .ch-sidebar,
  .ct-home .ch-activities ul {
    grid-template-columns: 1fr;
  }
}

.ct-home #journey-sidebar {
  display: none;
}

@media (min-width: 1100px) {
  .ct-home .ch-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .ct-home .ch-sidebar {
    display: grid;
    align-self: stretch;
    grid-template-rows: auto auto auto minmax(51px, 1fr);
  }

  .ct-home #journey-sidebar {
    display: block;
    contain: size;
    overflow: clip;
  }
}
