/* South Carolina home. Scoped so activity pages and farm profiles retain their styles. */

.sc-home {
  --sch-teal: #124b50;
  --sch-rust: #a83d25;
  --sch-ink: #253936;
  --sch-muted: #576863;
  --sch-line: #d7e1dc;
  --fleece-white: #ffffff;
  --fleece-card: #ffffff;
  --fleece-beige: #d7e1dc;
  --fleece-brown: #576863;
  --fleece-bay: #253936;
  --indigo: #124b50;
  --indigo-deep: #a83d25;
  margin: 0;
  background: #ffffff;
  color: var(--sch-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

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

.sc-home .wrap,
.sc-home .sch-shell {
  width: min(100% - 3rem, 77rem);
  margin-inline: auto;
}

.sc-home .site-header {
  border-bottom-color: var(--sch-line);
  background: #ffffff;
}

.sc-home .wordmark,
.sc-home .nav-links a {
  color: var(--sch-teal);
}

.sc-home .wordmark .sub {
  color: var(--sch-muted);
}

.sc-home .nav-toggle {
  min-width: 44px;
  min-height: 44px;
}

.sc-home :focus-visible {
  outline: 3px solid var(--sch-rust);
  outline-offset: 4px;
}

.sc-home .sch-page {
  padding-bottom: 4rem;
}

.sc-home .sch-page h1,
.sc-home .sch-page h2,
.sc-home .sch-page h3 {
  margin: 0;
  color: var(--sch-teal);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.17;
  text-wrap: balance;
}

.sc-home .sch-page p {
  margin: 0 0 1rem;
}

.sc-home .sch-page a {
  color: var(--sch-teal);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
  overflow-wrap: anywhere;
}

.sc-home .sch-page a:hover {
  color: var(--sch-rust);
}

.sc-home .sch-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.65rem;
  padding-block: 1.3rem;
  color: var(--sch-muted);
  font-size: 0.78rem;
}

.sc-home .sch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.75rem);
  padding-block: 1rem 2.75rem;
}

.sc-home .sch-photo {
  min-width: 0;
  margin: 0;
}

.sc-home .sch-photo picture,
.sc-home .sch-photo img {
  display: block;
}

.sc-home .sch-photo picture {
  overflow: hidden;
  border-radius: 0.8rem;
}

.sc-home .sch-photo img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.sc-home .sch-photo figcaption {
  padding-top: 0.65rem;
  color: var(--sch-muted);
  font-size: 0.69rem;
  line-height: 1.5;
}

.sc-home .sch-page .sch-kicker {
  margin-bottom: 0.8rem;
  color: var(--sch-rust);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.6;
  text-transform: uppercase;
}

.sc-home .sch-hero h1 {
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 4.4vw, 4.1rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.sc-home .sch-hero h1 em {
  display: block;
  color: var(--sch-rust);
  font-style: normal;
}

.sc-home .sch-page .sch-deck {
  margin-top: 1.4rem;
  color: var(--sch-teal);
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.6;
}

.sc-home .sch-hero-copy > p:last-child {
  margin-bottom: 0;
  color: var(--sch-muted);
  font-size: 0.92rem;
}

.sc-home .sch-primer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 3.75rem;
  padding-block: 1.5rem;
  border-top: 3px solid var(--sch-teal);
  border-bottom: 1px solid var(--sch-line);
}

.sc-home .sch-primer h2 {
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.sc-home .sch-primer p {
  margin-bottom: 0;
  color: var(--sch-muted);
  font-size: 0.84rem;
}

.sc-home .sch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18.5rem;
  align-items: start;
  gap: clamp(2rem, 4.5vw, 3.75rem);
}

.sc-home .sch-main-column,
.sc-home .sch-sidebar {
  min-width: 0;
}

.sc-home .sch-section-head h2,
.sc-home .sch-visit-guide > h2,
.sc-home .sch-explore h2 {
  margin-bottom: 1.15rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 400;
}

.sc-home .sch-page .sch-directory-note {
  margin-block: 1.5rem 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--sch-rust);
  color: var(--sch-muted);
  font-size: 0.85rem;
}

.sc-home .sch-farm {
  margin-bottom: 0.8rem;
  border: 1px solid var(--sch-line);
  border-radius: 0.65rem;
  background: #ffffff;
}

.sc-home .sch-farm > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 1.2rem;
  min-height: 6.8rem;
  padding: 1.3rem;
  border-radius: 0.65rem;
  cursor: pointer;
  list-style: none;
}

.sc-home summary::-webkit-details-marker {
  display: none;
}

.sc-home summary::marker {
  content: "";
}

.sc-home .sch-summary-main {
  min-width: 0;
}

.sc-home .sch-farm-name {
  display: block;
  color: var(--sch-teal);
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sc-home .sch-farm-place {
  display: block;
  margin-top: 0.45rem;
  color: var(--sch-muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.sc-home .sch-summary-side {
  display: inline-flex;
  flex-shrink: 0;
  align-self: center;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
}

.sc-home .sch-profile-label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--sch-rust);
  border-radius: 0.25rem;
  color: var(--sch-rust);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  line-height: 1;
  white-space: nowrap;
}

.sc-home .sch-toggle {
  position: relative;
  display: block;
  flex: 0 0 1.9rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--sch-teal);
  color: #ffffff;
}

.sc-home .sch-toggle::before,
.sc-home .sch-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.7rem;
  height: 2px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.sc-home .sch-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.sc-home .sch-farm > summary:hover .sch-farm-name {
  color: var(--sch-rust);
}

.sc-home .sch-farm[open] {
  border-color: var(--sch-teal);
}

.sc-home .sch-farm[open] > summary {
  border-bottom: 1px solid var(--sch-line);
  border-radius: 0.65rem 0.65rem 0 0;
}

.sc-home .sch-farm[open] .sch-toggle {
  background: var(--sch-rust);
}

.sc-home .sch-farm[open] .sch-toggle::after {
  display: none;
}

.sc-home .sch-farm-body {
  padding: 1.5rem;
  font-size: 0.93rem;
}

.sc-home .sch-page .sch-visit-status {
  margin-bottom: 0.8rem;
  color: var(--sch-rust);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sc-home .sch-address {
  color: var(--sch-muted);
  font-size: 0.81rem;
}

.sc-home .sch-farm-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-block: 1.5rem 1rem;
}

.sc-home .sch-farm-notes section {
  padding-top: 0.9rem;
  border-top: 2px solid var(--sch-line);
}

.sc-home .sch-farm-notes h3 {
  margin-bottom: 0.65rem;
  font-size: 0.83rem;
  font-weight: 750;
  letter-spacing: 0;
}

.sc-home .sch-farm-notes p {
  margin-bottom: 0;
  color: var(--sch-muted);
  font-size: 0.83rem;
}

.sc-home .sch-farm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.2rem;
  padding-top: 0.5rem;
}

.sc-home .sch-source-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.6rem;
  font-size: 0.83rem;
  font-weight: 700;
}

.sc-home .sch-page .sch-profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--sch-teal);
  border-radius: 0.25rem;
  background: var(--sch-teal);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-decoration: none;
}

.sc-home .sch-page .sch-profile-button:hover {
  border-color: var(--sch-rust);
  background: var(--sch-rust);
  color: #ffffff;
}

.sc-home .sch-visit-guide,
.sc-home .sch-explore {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 3px solid var(--sch-teal);
}

.sc-home .sch-guide-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.sc-home .sch-guide-columns h3 {
  margin-bottom: 0.6rem;
  font-size: 1rem;
  font-weight: 750;
}

.sc-home .sch-guide-columns p {
  margin-bottom: 0;
  color: var(--sch-muted);
  font-size: 0.88rem;
}

.sc-home .sch-explore {
  border-color: var(--sch-rust);
}

.sc-home .sch-explore > p:last-child {
  margin-bottom: 0;
}

.sc-home .sch-side {
  margin-bottom: 1.75rem;
  padding: 1.5rem;
  border: 1px solid var(--sch-line);
  border-radius: 0.65rem;
  font-size: 0.85rem;
}

.sc-home .sch-side h2 {
  margin-bottom: 1.1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 400;
}

.sc-home .sch-side > :last-child {
  margin-bottom: 0;
}

.sc-home .sch-side .sch-kicker {
  font-size: 0.6rem;
}

.sc-home .sch-activities {
  border-color: var(--sch-teal);
  background: var(--sch-teal);
  color: #ffffff;
}

.sc-home .sch-activities .sch-kicker,
.sc-home .sch-activities h2,
.sc-home .sch-activities nav a {
  color: #ffffff;
}

.sc-home .sch-activities nav {
  display: grid;
}

.sc-home .sch-activities nav a {
  display: block;
  padding-block: 0.9rem;
  border-top: 1px solid rgb(255 255 255 / 28%);
  text-decoration: none;
}

.sc-home .sch-activities nav strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.sc-home .sch-activities nav span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  line-height: 1.65;
}

.sc-home .sch-activities nav a:hover {
  color: #ffffff;
}

.sc-home .sch-activities nav a:hover strong {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.sc-home .sch-activities :focus-visible {
  outline-color: #ffffff;
}

.sc-home .sch-choice {
  border-top: 4px solid var(--sch-rust);
}

.sc-home .sch-faq details {
  border-top: 1px solid var(--sch-line);
}

.sc-home .sch-faq summary {
  padding-block: 0.9rem;
  color: var(--sch-teal);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.sc-home .sch-faq summary::after {
  color: var(--sch-rust);
  content: " +";
  white-space: nowrap;
}

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

.sc-home .sch-faq details p {
  color: var(--sch-muted);
  font-size: 0.8rem;
}

.sc-home .sch-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sc-home .site-footer {
  margin-top: 0;
  border-top: 0;
  background: var(--sch-teal);
  color: #ffffff;
}

.sc-home .site-footer p {
  color: #ffffff;
}

@media (max-width: 64rem) {
  .sc-home .sch-layout {
    grid-template-columns: minmax(0, 1fr) 16rem;
    gap: 1.75rem;
  }

  .sc-home .sch-farm > summary {
    gap: 0.8rem;
    padding: 1.1rem;
  }

  .sc-home .sch-summary-side {
    gap: 0.6rem;
  }

  .sc-home .sch-farm-notes {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .sc-home .sch-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 54rem) {
  .sc-home .sch-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .sc-home .sch-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1.5rem;
  }

  .sc-home .sch-side {
    margin-bottom: 0;
  }

  .sc-home .sch-activities {
    grid-column: 1 / -1;
  }

  .sc-home .sch-activities nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }

  .sc-home .sch-primer {
    gap: 1.25rem;
  }
}

@media (max-width: 40rem) {
  .sc-home .wrap,
  .sc-home .sch-shell {
    width: calc(100% - 2rem);
  }

  .sc-home .sch-crumbs {
    padding-block: 1rem;
    font-size: 0.74rem;
  }

  .sc-home .sch-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    padding-top: 0.75rem;
    padding-bottom: 2rem;
  }

  .sc-home .sch-hero-copy {
    grid-row: 1;
  }

  .sc-home .sch-hero h1 {
    max-width: 13ch;
    font-size: clamp(2.8rem, 10.5vw, 3.8rem);
  }

  .sc-home .sch-photo {
    width: min(100%, 23rem);
    margin-inline: auto;
  }

  .sc-home .sch-primer {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
    margin-bottom: 2.5rem;
  }

  .sc-home .sch-farm > summary {
    gap: 0.75rem;
    padding: 1rem;
  }

  .sc-home .sch-farm-name {
    font-size: 1.02rem;
  }

  .sc-home .sch-farm-place {
    font-size: 0.72rem;
  }

  .sc-home .sch-summary-side {
    gap: 0.5rem;
  }

  .sc-home .sch-profile-label {
    padding: 0.4rem;
    font-size: 0.53rem;
    letter-spacing: 0.04em;
  }

  .sc-home .sch-toggle {
    flex-basis: 1.7rem;
    width: 1.7rem;
    height: 1.7rem;
  }

  .sc-home .sch-farm-body {
    padding: 1.1rem;
    font-size: 0.9rem;
  }

  .sc-home .sch-farm-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .sc-home .sch-guide-columns,
  .sc-home .sch-sidebar,
  .sc-home .sch-activities nav {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-home *,
  .sc-home *::before,
  .sc-home *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
