/* South Dakota root directory. Scoped to .sd-home. */
.sd-home {
  --sh-red: #993c35;
  --sh-deep: #263f43;
  --sh-gold: #f1c46c;
  --sh-ink: #303c3d;
  --sh-muted: #626b6b;
  --sh-line: #d6dcdb;
  background: #fff;
  color: var(--sh-ink);
}

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

.sd-home .sh-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding-block: 1.4rem;
  color: var(--sh-muted);
  font-size: 0.8rem;
}

.sd-home .sh-hero-heading {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: end;
  padding: 1.2rem 0 2rem;
  border-top: 3px solid var(--sh-red);
}

.sd-home .sh-eyebrow {
  margin: 0 0 0.8rem;
  color: var(--sh-red);
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.sd-home h1 {
  margin: 0;
  color: var(--sh-deep);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.sd-home h1 em {
  color: var(--sh-red);
  font-weight: 400;
}

.sd-home .sh-hero-intro {
  max-width: 29rem;
  margin: 0 0 0.3rem;
  font-size: 1.07rem;
  line-height: 1.7;
}

.sd-home .sh-photo {
  margin: 0;
}

.sd-home .sh-photo picture {
  display: block;
  border-radius: 0.3rem;
  overflow: hidden;
}

.sd-home .sh-photo img {
  width: 100%;
  height: auto;
}

.sd-home .sh-photo figcaption {
  padding-block: 0.55rem;
  color: var(--sh-muted);
  font-size: 0.68rem;
}

.sd-home .sh-hero-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  padding: 1.2rem 1.5rem;
  background: var(--sh-deep);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: 3px solid var(--sh-gold);
}

.sd-home .sh-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  align-items: start;
  gap: 3.5rem;
  margin-block: 3.5rem 4rem;
}

.sd-home .sh-main,
.sd-home .sh-sidebar {
  min-width: 0;
}

.sd-home h2 {
  margin: 0 0 1rem;
  color: var(--sh-deep);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.sd-home .sh-intro p,
.sd-home .sh-farm-body p {
  margin: 0 0 1.1rem;
}

.sd-home .sh-directory {
  margin-top: 3rem;
}

.sd-home .sh-section-head {
  padding-bottom: 0.7rem;
  margin-bottom: 1.4rem;
  border-bottom: 2px solid var(--sh-deep);
}

.sd-home .sh-section-head > p {
  margin: 0 0 0.5rem;
  font-size: 0.87rem;
  color: var(--sh-muted);
}

.sd-home .sh-farm {
  margin-block: 1rem;
  border: 1px solid var(--sh-line);
  border-radius: 0.35rem;
  overflow: hidden;
}

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

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

.sd-home .sh-farm > summary:hover,
.sd-home .sh-farm[open] > summary {
  background: #f5f7f5;
}

.sd-home .sh-farm[open] > summary {
  border-bottom: 1px solid var(--sh-line);
}

.sd-home .sh-location,
.sd-home .sh-farm-name,
.sd-home .sh-focus {
  display: block;
}

.sd-home .sh-location {
  color: var(--sh-red);
  font-size: 0.7rem;
  font-weight: 700;
}

.sd-home .sh-farm-name {
  color: var(--sh-deep);
  margin-block: 0.35rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.sd-home .sh-focus {
  color: var(--sh-muted);
  font-size: 0.74rem;
}

.sd-home .sh-summary-meta {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.sd-home .sh-profile-label {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--sh-red);
  border-radius: 0.2rem;
  color: var(--sh-red);
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.sd-home .sh-toggle {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  color: var(--sh-deep);
  flex: 0 0 1.7rem;
}

.sd-home .sh-toggle::before {
  content: '+';
  font-size: 1.7rem;
  line-height: 1;
}

.sd-home .sh-farm[open] .sh-toggle::before {
  content: '−';
}

.sd-home .sh-farm-body {
  padding: 1.5rem;
  font-size: 0.94rem;
}

.sd-home .sh-farm-body h3 {
  margin: 0 0 0.8rem;
  color: var(--sh-deep);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.3;
}

.sd-home .sh-visit-note {
  margin-block: 1.4rem;
  padding-left: 1rem;
  border-left: 3px solid var(--sh-gold);
}

.sd-home .sh-visit-note h4 {
  margin: 0 0 0.5rem;
  color: var(--sh-red);
  font-size: 0.85rem;
  font-weight: 750;
}

.sd-home .sh-address {
  color: var(--sh-muted);
  font-size: 0.84rem;
}

.sd-home .sh-farm-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.7rem;
}

.sd-home a {
  color: var(--sh-red);
}

.sd-home a:hover {
  color: var(--sh-deep);
}

.sd-home .sh-farm-website {
  font-size: 0.86rem;
  font-weight: 650;
}

.sd-home .sh-profile-button {
  display: inline-block;
  padding: 0.7rem 0.95rem;
  border-radius: 0.2rem;
  background: var(--sh-red);
  color: #fff;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.sd-home .sh-profile-button:hover {
  background: var(--sh-deep);
  color: #fff;
}

.sd-home .sh-review {
  margin-top: 1.3rem;
  color: var(--sh-muted);
  font-size: 0.78rem;
}

.sd-home .sh-visit-guide {
  margin-top: 3rem;
  padding-block: 2rem;
  border-top: 1px solid var(--sh-line);
  border-bottom: 1px solid var(--sh-line);
}

.sd-home .sh-guide-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.sd-home .sh-guide-columns h3 {
  color: var(--sh-red);
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.sd-home .sh-guide-columns p {
  font-size: 0.83rem;
  margin: 0;
}

.sd-home .sh-sidebar > section {
  margin-bottom: 1.8rem;
  padding: 1.5rem;
  border: 1px solid var(--sh-line);
  border-radius: 0.3rem;
}

.sd-home .sh-sidebar h2 {
  font-size: 1.65rem;
}

.sd-home .sh-sidebar .sh-eyebrow {
  font-size: 0.6rem;
}

.sd-home .sh-activities {
  background: var(--sh-deep);
}

.sd-home .sh-activities h2,
.sd-home .sh-activities a {
  color: #fff;
}

.sd-home .sh-activities .sh-eyebrow {
  color: var(--sh-gold);
}

.sd-home .sh-activities ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.sd-home .sh-activities li {
  padding-block: 1rem;
  border-top: 1px solid #536b6e;
}

.sd-home .sh-activities li:last-child {
  padding-bottom: 0;
}

.sd-home .sh-activities a {
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.sd-home .sh-activities a:hover {
  text-decoration: underline;
}

.sd-home .sh-activities li p {
  margin: 0.35rem 0 0;
  color: #d3dddc;
  font-size: 0.76rem;
}

.sd-home .sh-route-note {
  border-top: 3px solid var(--sh-red);
}

.sd-home .sh-route-note h3 {
  color: var(--sh-red);
  font-size: 0.9rem;
  margin: 1.2rem 0 0.4rem;
}

.sd-home .sh-route-note p:not(.sh-eyebrow),
.sd-home .sh-faq p {
  font-size: 0.82rem;
  margin: 0 0 0.7rem;
}

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

.sd-home .sh-faq summary {
  padding-block: 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sh-deep);
  cursor: pointer;
}

.sd-home .sh-faq summary::after {
  content: ' +';
  color: var(--sh-red);
}

.sd-home .sh-faq details[open] summary::after {
  content: ' −';
}

.sd-home .sh-bottom {
  margin-top: 3rem;
}

.sd-home .nav-links [aria-current='page'] {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--sh-red);
  font-size: 0.88rem;
  font-weight: 600;
}

.sd-home :is(a, summary, button):focus-visible {
  outline: 3px solid #ad601d;
  outline-offset: 4px;
}

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

  .sd-home .sh-farm > summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .sd-home .sh-summary-meta {
    justify-content: space-between;
  }

  .sd-home .sh-guide-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 48rem) {
  .sd-home .sh-shell {
    width: min(42rem, calc(100% - 2rem));
  }

  .sd-home .sh-hero-heading,
  .sd-home .sh-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sd-home .sh-hero-heading {
    gap: 1.5rem;
  }

  .sd-home h1 {
    font-size: clamp(2.6rem, 8.8vw, 4rem);
  }

  .sd-home .sh-hero-footer {
    padding: 1.15rem;
    font-size: 0.78rem;
  }

  .sd-home .sh-layout {
    margin-top: 2.5rem;
    gap: 2.5rem;
  }

  .sd-home .sh-farm > summary,
  .sd-home .sh-farm-body {
    padding: 1.2rem;
  }
}
