/* North Dakota home page. Load after the shared site stylesheet. */
body.nd-home {
    --nd-forest: #174b3c;
    --nd-deep: #103a2e;
    --nd-gold: #9b5b0a;
    --nd-ink: #203c33;
    --nd-muted: #50675e;
    --nd-line: #c9d6ce;
    --wrap: 78rem;
    --indigo: #174b3c;
    --indigo-deep: #103a2e;
    --fleece-bay: #203c33;
    --fleece-brown: #50675e;
    --fleece-silver: #50675e;
    --fleece-beige: #c9d6ce;
    --fleece-card: #ffffff;
    background: #ffffff;
    color: var(--nd-ink);
}

.nd-home .site-header {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--nd-line);
}

.nd-home .wordmark {
    color: var(--nd-forest);
}

.ndhome-current {
    display: block;
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 650;
    color: var(--nd-forest);
}

.nd-home .nav-links a:hover {
    background: var(--nd-forest);
    color: #ffffff;
}

.nd-home .site-footer {
    background: var(--nd-deep);
    color: #ffffff;
    border: 0;
}

.ndhome-page {
    padding: 0 0 5rem;
}

.ndhome-shell {
    max-width: 78rem;
    padding-inline: 1.5rem;
    margin-inline: auto;
}

.ndhome-page h2 {
    margin: 0 0 1rem;
    color: var(--nd-forest);
    font-size: clamp(1.7rem, 2.5vw, 2.25rem);
    line-height: 1.2;
}

.ndhome-page p {
    margin: 0 0 1rem;
}

.ndhome-page a {
    text-underline-offset: 0.2em;
}

.ndhome-page a:focus-visible,
.ndhome-page summary:focus-visible {
    outline: 3px solid var(--nd-gold);
    outline-offset: 4px;
}

.ndhome-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding-block: 1.25rem 2rem;
    font-size: 0.8rem;
    color: var(--nd-muted);
}

.ndhome-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
    align-items: stretch;
    border-bottom: 5px solid #bd852c;
}

.ndhome-hero-copy {
    padding: 2.5rem;
    background: var(--nd-forest);
    color: #ffffff;
}

.ndhome-page .ndhome-eyebrow {
    margin-bottom: 0.85rem;
    color: var(--nd-gold);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.ndhome-hero .ndhome-eyebrow {
    color: #f0cd88;
}

.ndhome-hero h1 {
    margin: 1.5rem 0;
    font-size: clamp(2.5rem, 4.3vw, 3.85rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: #ffffff;
}

.ndhome-hero .ndhome-lede {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
    line-height: 1.45;
    color: #f0cd88;
}

.ndhome-hero-copy > p:last-child {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.ndhome-photo {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    background: var(--nd-deep);
}

.ndhome-photo picture {
    display: flex;
    flex: 1;
    min-height: 0;
}

.ndhome-photo img {
    width: 100%;
    height: 100%;
    min-height: 25rem;
    object-fit: cover;
    object-position: center;
}

.ndhome-photo figcaption {
    padding: 0.7rem 1rem;
    font-size: 0.7rem;
    line-height: 1.5;
    color: #ffffff;
}

.ndhome-opening {
    max-width: 53rem;
    margin-block: 3rem;
}

.ndhome-opening p:last-child {
    color: var(--nd-muted);
    font-size: 1.05rem;
}

.ndhome-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 19rem;
    align-items: start;
    gap: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--nd-line);
}

.ndhome-main,
.ndhome-sidebar {
    min-width: 0;
}

.ndhome-section-heading > p:last-child {
    color: var(--nd-muted);
    font-size: 0.95rem;
}

.ndhome-directory-note {
    margin-block: 1.5rem 2rem;
    padding-left: 1rem;
    border-left: 3px solid #bd852c;
    color: var(--nd-muted);
    font-size: 0.88rem;
}

.ndhome-farm {
    margin-bottom: 1rem;
    border: 1px solid var(--nd-line);
    border-radius: 0.35rem;
    overflow: hidden;
}

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

.ndhome-farm > summary::-webkit-details-marker {
    display: none;
}

.ndhome-farm > summary:hover .ndhome-farm-name {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.ndhome-farm > summary:focus-visible {
    outline-offset: -5px;
}

.ndhome-town,
.ndhome-farm-name,
.ndhome-format {
    display: block;
}

.ndhome-town {
    color: var(--nd-muted);
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.04em;
}

.ndhome-farm-name {
    margin-block: 0.3rem 0.5rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--nd-forest);
}

.ndhome-format {
    color: var(--nd-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.ndhome-summary-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    flex: none;
}

.ndhome-profile-label {
    display: inline-block;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--nd-forest);
    color: var(--nd-forest);
    font-size: 0.6rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.035em;
    white-space: nowrap;
}

.ndhome-toggle {
    position: relative;
    display: block;
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--nd-forest);
}

.ndhome-toggle::before,
.ndhome-toggle::after {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    left: 0.25rem;
    width: 1rem;
    height: 2px;
    background: currentColor;
}

.ndhome-toggle::after {
    transform: rotate(90deg);
}

.ndhome-farm[open] > summary {
    border-bottom: 1px solid var(--nd-line);
    border-top: 4px solid var(--nd-forest);
    padding-top: calc(1.5rem - 4px);
}

.ndhome-farm[open] .ndhome-toggle::after {
    display: none;
}

.ndhome-farm-body {
    padding: 1.5rem;
    font-size: 0.95rem;
    color: var(--nd-muted);
}

.ndhome-address {
    font-size: 0.85rem;
}

.ndhome-farm-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-block: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--nd-line);
}

.ndhome-farm-body h3 {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    color: var(--nd-forest);
}

.ndhome-farm-notes p,
.ndhome-status p {
    font-size: 0.88rem;
}

.ndhome-farm-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.ndhome-farm-links > a {
    padding-block: 0.5rem;
    font-weight: 650;
    font-size: 0.85rem;
}

.ndhome-farm-links .ndhome-profile-button {
    display: inline-block;
    padding: 0.85rem 1rem;
    color: #ffffff;
    background: var(--nd-forest);
    border: 1px solid var(--nd-forest);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.ndhome-farm-links .ndhome-profile-button:hover {
    background: var(--nd-deep);
}

.ndhome-status {
    margin-block: 1.25rem;
    padding-left: 1rem;
    border-left: 3px solid #bd852c;
}

.ndhome-website-note {
    font-size: 0.82rem;
    font-style: italic;
}

.ndhome-visit,
.ndhome-faq,
.ndhome-next {
    margin-top: 3rem;
}

.ndhome-visit p,
.ndhome-next p {
    color: var(--nd-muted);
}

.ndhome-faq details {
    border-top: 1px solid var(--nd-line);
}

.ndhome-faq summary {
    padding: 1rem 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--nd-forest);
}

.ndhome-faq p {
    color: var(--nd-muted);
    font-size: 0.9rem;
}

.ndhome-next {
    padding-top: 2rem;
    border-top: 1px solid var(--nd-line);
}

.ndhome-activities {
    padding: 1.75rem;
    color: #ffffff;
    background: var(--nd-forest);
    border-top: 5px solid #bd852c;
}

.ndhome-activities h2,
.ndhome-activities .ndhome-eyebrow,
.ndhome-activities a,
.ndhome-activities a:hover {
    color: #ffffff;
}

.ndhome-activities h2,
.ndhome-day h2 {
    font-size: 1.65rem;
}

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

.ndhome-activities li + li {
    border-top: 1px solid #648d7f;
}

.ndhome-activities a {
    display: block;
    padding-block: 1rem;
    text-decoration: none;
}

.ndhome-activities a:focus-visible {
    outline-color: #f0cd88;
}

.ndhome-activities a:hover span {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.ndhome-activities span,
.ndhome-activities small {
    display: block;
}

.ndhome-activities span {
    font-size: 0.95rem;
    font-weight: 700;
}

.ndhome-activities small {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    line-height: 1.5;
}

.ndhome-day {
    margin-top: 2.5rem;
    padding-block: 1.5rem;
    border-block: 1px solid var(--nd-line);
}

.ndhome-day p {
    font-size: 0.9rem;
    color: var(--nd-muted);
}

@media (max-width: 65rem) {
    .ndhome-hero-copy {
        padding: 2rem;
    }

    .ndhome-layout {
        grid-template-columns: minmax(0, 1fr) 16rem;
        gap: 2rem;
    }

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

    .ndhome-farm > summary {
        padding: 1.25rem;
        gap: 0.75rem;
    }

    .ndhome-farm[open] > summary {
        padding-top: calc(1.25rem - 4px);
    }
}

@media (max-width: 52rem) {
    .ndhome-current {
        padding: 0.75rem 0.25rem;
    }

    .ndhome-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .ndhome-hero-copy {
        padding: 2rem;
    }

    .ndhome-hero h1 {
        font-size: clamp(2.75rem, 7vw, 4rem);
    }

    .ndhome-photo picture {
        display: block;
    }

    .ndhome-photo img {
        height: auto;
        min-height: 0;
        max-height: 28rem;
    }

    .ndhome-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 3rem;
    }

    .ndhome-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
        align-items: start;
        gap: 2rem;
    }

    .ndhome-day {
        margin-top: 0;
    }

    .ndhome-farm-notes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 40rem) {
    .ndhome-shell {
        padding-inline: 1rem;
    }

    .ndhome-breadcrumb {
        padding-bottom: 1.5rem;
    }

    .ndhome-hero-copy {
        padding: 1.75rem 1.5rem;
    }

    .ndhome-hero h1 {
        font-size: clamp(2.4rem, 10vw, 3.7rem);
    }

    .ndhome-photo picture {
        max-width: 26rem;
        margin-inline: auto;
        width: 100%;
    }

    .ndhome-photo img {
        width: 100%;
        max-height: none;
        aspect-ratio: 706 / 941;
        object-fit: cover;
    }

    .ndhome-opening {
        margin-block: 2.5rem;
    }

    .ndhome-farm > summary {
        padding: 1rem;
        gap: 0.6rem;
    }

    .ndhome-farm[open] > summary {
        padding-top: calc(1rem - 4px);
    }

    .ndhome-farm-name {
        font-size: 1.2rem;
        overflow-wrap: anywhere;
    }

    .ndhome-town {
        font-size: 0.63rem;
    }

    .ndhome-format {
        font-size: 0.73rem;
    }

    .ndhome-summary-tools {
        gap: 0.4rem;
    }

    .ndhome-profile-label {
        font-size: 0.52rem;
        padding: 0.4rem;
        letter-spacing: 0;
    }

    .ndhome-farm-body {
        padding: 1.25rem;
    }

    .ndhome-farm-notes,
    .ndhome-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .ndhome-farm-notes {
        gap: 0.5rem;
    }

    .ndhome-farm-links {
        align-items: flex-start;
        flex-direction: column;
    }
}
