:root {
    --festival-cream: #e6dcc8;
    --festival-paper: #eadcc5;
    --festival-orange: #bd634d;
    --festival-gold: #c69a4b;
    --festival-yellow: #c69a4b;
    --festival-olive: #3f4539;
    --festival-dark: #252513;
    --festival-brown: #513923;
    --festival-red: #a34338;
    --festival-blue: #7a99b1;
    /* Fallback only — Recreation.cshtml measures the real header height
       on load/resize and overwrites this via JS. */
    --header-height: 84px;
}


/* Self-hosted web font — files live in wwwroot/fonts. woff2 first
   (smaller, all modern browsers), woff as a fallback for older ones. */
@font-face {
    font-family: "Brittany Signature Script";
    src: url("/fonts/BrittanySignatureScript.woff2") format("woff2"),
         url("/fonts/BrittanySignatureScript.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    background: var(--festival-cream);
    color: var(--festival-dark);
    font-family: "League Spartan", sans-serif;
}


/* HEADER */

.festival-header {
    background: var(--festival-cream);
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(50, 40, 25, .08);
}


.festival-brand,
.footer-brand {
    color: var(--festival-dark);
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-transform: uppercase;
    line-height: 1;
    /* The header/footer row is a flex container, so without this the
       brand can get squeezed below its own content width at certain
       viewport widths — which, combined with wrapping text, is exactly
       what let "Town Farm" break into "TOWN" / "FARM". This forces
       something else in the row to give instead of the brand. */
    flex-shrink: 0;
}


    .festival-brand:hover {
        color: var(--festival-dark);
    }


    /* Client-approved 3-line wordmark: AUTUMN / at the / TOWN FARM.
       AUTUMN and TOWN FARM share this one class so they can never drift
       out of sync in size or weight — that was an explicit requirement.
       white-space: nowrap on both is the fix for the brand breaking
       mid-word at certain viewport widths; it must never wrap, full
       stop. */
    .brand-wordmark-caps {
        font-family: "League Spartan", sans-serif;
        font-weight: 700;
        /* 2rem is what tested well, but this is nowrap + flex-shrink:0
           (see above) — at a flat 2rem, "TOWN FARM" risks not fitting
           next to the hamburger on the narrowest phones (~320-360px)
           with nothing able to give. Scaling down on narrow viewports
           and reaching exactly 2rem by ~600px keeps the tested size
           everywhere it was tested and protects the sizes it likely
           wasn't. */
        font-size: clamp(1.3rem, 6vw, 2rem);
        letter-spacing: .08em;
        color: var(--festival-orange);
        white-space: nowrap;
    }

        /* Scoped to the header/footer brand specifically — the hero's H1
           reuses this same base class at a larger size but isn't
           wrapped in .festival-brand/.footer-brand, so it keeps the
           orange above. */
        .festival-brand .brand-wordmark-caps,
        .footer-brand .brand-wordmark-caps {
            color: #000;
        }

    .brand-wordmark-script {
        font-family: "Brittany Signature Script", cursive;
        /* Not part of the text-transform: uppercase inherited from the
           parent — a script font in all-caps loses the point of it
           being a script font. */
        text-transform: none;
        font-size: 1.4rem;
        line-height: 1.1;
        color: var(--festival-olive);
        white-space: nowrap;
    }


/* HOME-ONLY MOBILE QUICK NAV */

.home-mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.home-mobile-location {
    color: var(--festival-blue);
    font-weight: 700;
    letter-spacing: .06em;
    font-size: .85rem;
    text-transform: uppercase;
}

.home-mobile-date {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: #000;
    border: 1px solid #000;
    border-radius: 6px;
    padding: 4px 24px;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .04em;
}

    .home-mobile-date-dot {
        color: #000;
    }

.home-mobile-pills {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 2px;
    width: 100%;
    padding: 0 4px;
}

.home-mobile-pill {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--festival-blue);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 5px 6px;
    border-radius: 999px;
    transition: filter .2s ease;
}

    .home-mobile-pill:hover {
        filter: brightness(.9);
        color: white;
    }


.festival-nav a:not(.btn) {
    color: var(--festival-dark);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: .72rem;
    transition: color .2s ease;
}


    .festival-nav a:not(.btn):hover {
        color: var(--festival-orange);
    }


.mobile-menu-icon {
    font-size: 1.7rem;
    color: var(--festival-red);
}


.navbar-toggler {
    border: 0;
    box-shadow: none !important;
}


@media (max-width: 991.98px) {

    /* Brand centers in the row; the hamburger comes out of flow so it
       can float at the right edge without pushing the brand off-center
       or dropping to its own line. Desktop keeps the original
       space-between layout untouched. */
    /* !important because the row also carries Bootstrap's
       justify-content-between utility class, which is itself !important —
       a plain override here would silently lose to it and never actually
       center anything. */
    .festival-header-row {
        position: relative;
        justify-content: center !important;
    }

    .festival-header-row .navbar-toggler {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}


.offcanvas {
    background: var(--festival-cream);
}


.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}


    .mobile-nav > a:not(.btn) {
        color: var(--festival-dark);
        text-decoration: none;
        text-transform: uppercase;
        font-weight: 700;
    }



/* BUTTONS */

.btn-festival {
    background: var(--festival-orange);
    border: 1px solid var(--festival-orange);
    color: white;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: .8rem;
    padding: .8rem 1.4rem;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}


    /* Swap background/border-color to var(--festival-gold) or
       var(--festival-brown) here if festival-yellow doesn't land well.
       Gold pairs with the same dark text below; brown is dark enough
       that it needs color: white instead. */
    .btn-festival:hover {
        background: var(--festival-yellow);
        border-color: var(--festival-yellow);
        color: var(--festival-dark);
    }


/* Same shape/weight as .btn-festival, in festival-red instead of orange —
   used for the "Apply to Be a Vendor" and "Register for Events" buttons on
   the Events page. */
.btn-festival-red {
    background-color: var(--festival-red);
    border: 1px solid var(--festival-red);
    color: var(--festival-cream);
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: .8rem;
    padding: .8rem 1.4rem;
    transition: filter .2s ease;
}

    /* Bootstrap's .btn:hover rule sets background-color from a
       --bs-btn-hover-bg variable that only variant classes like
       .btn-primary define. .btn-festival-red isn't one of those, so the
       variable is unset, and since that Bootstrap rule has the same
       specificity as this one (one class + :hover each), it was the only
       rule setting background-color on hover — to transparent, since we
       hadn't restated it ourselves. Restating it here, with a small darken
       via filter, keeps the button red on hover instead of fading into
       the page. */
    .btn-festival-red:hover {
        background-color: var(--festival-red);
        filter: brightness(.85);
        color: var(--festival-cream);
    }


.btn-outline-festival {
    border: 2px solid var(--festival-orange);
    color: var(--festival-orange);
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: .8rem;
    padding: .75rem 1.4rem;
}


    .btn-outline-festival:hover {
        background: var(--festival-orange);
        color: white;
    }



/* HERO */

.festival-hero {
    position: relative;
    /* Was a gradient fading to 12% opacity over a background photo — the
       fade only reads as a "gradient" when something contrasting shows
       through it. With no hero photo, both fully-opaque stops keep this
       visible on its own, regardless of what's behind the section. */
    background: linear-gradient(90deg, var(--festival-cream) 0%, var(--festival-paper) 100%);
    overflow: hidden;
}


.hero-row {
    min-height: 650px;
    padding-top: 4rem;
    padding-bottom: 4rem;
}


.hero-kicker {
    color: var(--festival-orange);
    font-weight: 800;
    letter-spacing: .06em;
    margin-bottom: 12px;
}

    /* Scoped to just this section: with "Town Farm" now orange too (the
       approved wordmark), the kicker needed its own color so the two
       don't read as one flat block of orange. Events.cshtml's kicker is
       untouched. */
    .festival-hero .hero-kicker {
        color: var(--festival-brown);
    }


.hero-copy h1 {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 8px;
}

    /* Hero uses the same brand-wordmark classes as the header/footer,
       just scaled way up for a marquee presence. text-transform here
       makes the source case in the markup irrelevant either way. */
    .hero-copy .brand-wordmark-caps {
        /* Reduced from clamp(4rem, 7vw, 7rem) — "Autumn"/"Town Farm" as
           a 3-line mark takes more vertical space than the old single
           headline did, so the old max size ran too large overall. */
        font-size: clamp(2.75rem, 5.5vw, 5.75rem);
        line-height: .9;
        text-transform: uppercase;
    }

    .hero-copy .brand-wordmark-script {
        font-size: clamp(2rem, 4vw, 4.25rem);
    }


.festival-date {
    font-family: "Caveat", cursive;
    /* Was festival-orange — same as "Town Farm" directly above it, which
       made three same-colored lines stack up (kicker, wordmark, date).
       Considered festival-yellow, but this section's background is a
       light cream/paper gradient — yellow reads weakly against it. Gold
       is dark enough to stay readable here while still being distinct
       from orange. */
    color: var(--festival-gold);
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    /* Was 1 — "October 17, 2026 · 1–4 PM" wraps to two lines more often
       than the old shorter text did, and this cursive font needs a
       little extra room to avoid overlapping if it wraps. */
    line-height: 1.25;
    margin: 20px 0;
}


.hero-description {
    max-width: 530px;
    font-size: 1.05rem;
    line-height: 1.7;
}


.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}


.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: .68rem;
    text-transform: uppercase;
    font-weight: 800;
}


.feature-icon {
    color: var(--festival-olive);
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: .5rem;
}



/* POLAROID */

.hero-image-column {
    display: flex;
    justify-content: center;
}


.hero-polaroid,
.event-polaroid {
    background: var(--festival-paper);
    padding: 18px;
    box-shadow: 0 15px 35px rgba(38, 27, 16, .18);
}


.hero-polaroid {
    width: min(100%, 410px);
    transform: rotate(1deg);
}


    .hero-polaroid img,
    .event-polaroid img {
        display: block;
        width: 100%;
        object-fit: cover;
        aspect-ratio: 1 / 1;
    }


.polaroid-title,
.event-label {
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    padding-bottom: 12px;
}


.polaroid-caption,
.event-script {
    font-family: "Caveat", cursive;
    color: var(--festival-dark);
    font-size: 2.5rem;
    text-align: center;
    padding-top: 12px;
    line-height: 1;
}



/* GENERAL SECTIONS */

.festival-section {
    padding: 85px 0;
}


.section-cream {
    background: var(--festival-cream);
}

/* Reusable section backgrounds — used to tell the /events page's
   category sections apart (Food & Drink, Rides & Entertainment,
   Activities & Games, Community & Local Businesses) at a glance. Each
   pairs with .section-heading.light / .heading-mark.light except
   section-cream, which is light enough for the default dark text. */
.section-orange {
    background: var(--festival-orange);
}

.section-olive {
    background: var(--festival-olive);
}

.section-blue {
    background: var(--festival-blue);
}


.section-heading {
    font-family: "League Spartan", sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.7rem);
    letter-spacing: .02em;
}


    .section-heading.light {
        color: var(--festival-cream);
    }


.heading-mark {
    width: 48px;
    border-top: 3px solid var(--festival-orange);
    margin: 16px 0 28px;
}


    .heading-mark.light {
        border-color: var(--festival-cream);
    }


.highlight h3 {
    font-size: .82rem;
    text-transform: uppercase;
    font-weight: 800;
}



/* EVENTS */

.festival-events {
    position: relative;
    background: var(--festival-orange);
    padding: 80px 0 90px;
    overflow: hidden;
}


.event-polaroid {
    position: relative;
    z-index: 5;
    transform: rotate(-1deg);
}


.festival-events .row > div:nth-child(2) .event-polaroid {
    transform: rotate(1deg);
}


.festival-events .row > div:nth-child(3) .event-polaroid {
    transform: rotate(-.5deg);
}


.btn-outline-light-festival {
    color: var(--festival-cream);
    border: 2px solid var(--festival-cream);
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: .8rem;
    padding: .75rem 1.4rem;
}


    .btn-outline-light-festival:hover {
        background: var(--festival-cream);
        color: var(--festival-orange);
    }


.events-leaf {
    position: absolute;
    font-size: 13rem;
    line-height: 1;
    opacity: .1;
    pointer-events: none;
}


.events-leaf-left {
    bottom: -50px;
    left: -40px;
    transform: rotate(-20deg);
}


.events-leaf-right {
    top: 20px;
    right: -40px;
    transform: rotate(25deg);
}


.events-schedule-note {
    color: var(--festival-cream);
}


.schedule-group-heading {
    font-family: "League Spartan", sans-serif;
    text-transform: uppercase;
    color: var(--festival-cream);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: 14px;
    border-bottom: 2px solid rgba(243, 234, 217, .3);
    padding-bottom: 8px;
}


.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .schedule-list li {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(243, 234, 217, .15);
        color: var(--festival-cream);
        font-size: .92rem;
        line-height: 1.5;
    }

        /* The name always grows to fill remaining space, which pushes
           schedule-time to the right edge whether or not a thumbnail
           image is present before it. */
        .schedule-list li > span:first-of-type {
            flex: 1;
        }

        .schedule-list li:last-child {
            border-bottom: 0;
        }

        .schedule-list li a {
            color: var(--festival-gold);
            text-decoration: underline;
        }


.schedule-time {
    flex: 0 0 auto;
    font-weight: 700;
    white-space: nowrap;
    color: var(--festival-gold);
}


/* Image-card grid on /events (replaces the old .schedule-list bullet
   lists). Cream cards on the section's festival-orange background so
   they read as distinct tiles rather than blending into it. */
.event-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

/* 220px cards can't fit two across below ~480px with the desktop gap, so
   auto-fill drops to a single column right when phones need it most.
   Force two columns and tighten the gap/padding instead. */
@media (max-width: 575.98px) {
    .event-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .event-card-body {
        padding: 10px 10px 14px;
    }
}

.event-card {
    background: var(--festival-cream);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    display: flex;
    flex-direction: column;
}

/* Every real photo used on these cards is shot/cropped at 5:4, so the
   image box is sized to that same ratio — it matches what's actually in
   the files, instead of an arbitrary fixed height that would crop a 5:4
   photo more than necessary. Since every card in a row shares the same
   column width, a shared aspect-ratio still gives identical heights
   across the row (that's what actually matters here, not the pixel
   value) — swap this back to a fixed height if a future image ever
   isn't 5:4. */
.event-card-image-wrap {
    position: relative;
    aspect-ratio: 5 / 4;
    background-color: rgba(0, 0, 0, .08);
}

.event-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* The small icon-style images (scarecrow.png, paint-brush.png, etc.)
   are square glyphs on transparent backgrounds, not photos — cover
   would crop them oddly, so they get letterboxed and shrunk down
   instead of filling the frame edge-to-edge like a real photo would. */
.event-card-image-wrap:has(img[src*="/icons/"]) {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .event-card-image-wrap:has(img[src*="/icons/"]) .event-card-image {
        width: 55%;
        height: 55%;
        object-fit: contain;
    }

.event-card-body {
    padding: 14px 16px 18px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* min-height holds two lines' worth of space so a one-line title
   ("Cornhole") and a two-line one ("Tim Talks – About Fire Trucks")
   both leave the time/description/button lined up at the same spot
   from card to card. */
.event-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--festival-dark);
    line-height: 1.25;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    margin: 0 0 4px;
}

.event-card-time {
    font-size: .82rem;
    font-weight: 700;
    color: var(--festival-red);
    margin: 0 0 6px;
}

/* Same idea as .event-card-title's min-height: every card now carries a
   one- or two-line description (even the ones that previously had none),
   specifically so a card next to a Register-button card doesn't end up
   mostly empty space. min-height keeps the button/next-element position
   steady whether a given description wraps to one line or two. */
.event-card-desc {
    font-size: .82rem;
    color: var(--festival-brown);
    line-height: 1.3;
    min-height: 2.1em;
    margin: 0 0 10px;
}

    .event-card-desc a {
        color: var(--festival-red);
    }

/* Wraps a trailing "Learn more →" so it always starts its own line
   instead of wrapping mid-phrase at the end of the description text. */
.event-card-learn-more {
    display: block;
    margin-top: 2px;
    font-weight: 700;
}

/* Lives inside .event-card-image-wrap now (overlaid on the photo's
   bottom-right corner) rather than in the card body — keeps the body's
   text block the same height whether or not a given card registers,
   and reads like a label on the photo rather than a second button
   competing with the description for space. The shadow (not a solid
   backdrop box) is what keeps it legible on both light and dark
   photos without covering more of the image than the button itself. */
.event-card-register {
    position: absolute;
    right: 10px;
    bottom: 10px;
    margin: 0;
    font-size: .7rem;
    padding: .4rem .9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}


/* Small thumbnails for a few activities worth showing at a glance —
   deliberately compact so the list stays scannable. */
.schedule-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}



/* HIGHLIGHTS */

.festival-highlights {
    background: var(--festival-cream);
    padding: 60px 0;
}


.highlight {
    padding: 25px;
    height: 100%;
}


.festival-highlights .col-lg + .col-lg .highlight {
    border-left: 1px solid rgba(37, 37, 19, .15);
}


.highlight-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 15px;
}


.highlight p {
    margin: 0;
    font-size: .78rem;
    line-height: 1.6;
}



/* SCHEDULE NOTE (inside Events) */

.schedule-coming-soon {
    font-family: "Caveat", cursive;
    color: var(--festival-orange);
    font-size: 2.5rem;
}


    .schedule-coming-soon.light {
        color: var(--festival-cream);
    }



/* VENDOR APPLICATION */

.vendor-section {
    background: var(--festival-cream);
}


.vendor-apply-section {
    background: var(--festival-gold);
}


.vendor-rules-section {
    background: var(--festival-paper);
}


/* Sits between the cream Vendor section and the olive Contact section,
   so gold keeps the sequence from repeating a color back-to-back. */
.scarecrow-section {
    background: var(--festival-gold);
}


.vendor-rules-list {
    padding-left: 1.2rem;
    margin-bottom: 2rem;
}


    .vendor-rules-list li {
        margin-bottom: .6rem;
        line-height: 1.6;
    }


.vendor-free-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    background: white;
    border-radius: 4px;
    padding: 20px 25px;
}


.vendor-free-badge {
    flex: 0 0 auto;
    font-family: "League Spartan", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .05em;
    color: white;
    background: var(--festival-orange);
    padding: 6px 22px;
    border-radius: 999px;
}


.vendor-free-text {
    font-size: .95rem;
    font-weight: 700;
    color: var(--festival-brown);
}


/* VENDOR PAGE HEADER + INTRO */

.vendor-app-header {
    font-family: "League Spartan", sans-serif;
    color: var(--festival-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 12px;
}

.vendor-app-intro {
    color: #000;
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto 40px;
}


/* DATE / LOCATION / WHAT WE'RE LOOKING FOR */

.vendor-info-columns {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.vendor-info-col {
    flex: 1 1 0;
    min-width: 220px;
    padding: 0 24px;
    border-left: 1px solid var(--festival-red);
    text-align: center;
}

    .vendor-info-col:first-child {
        border-left: 0;
    }

    .vendor-info-col p {
        margin: 0;
        font-size: .92rem;
        line-height: 1.6;
    }

.vendor-info-heading {
    color: var(--festival-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .85rem;
    margin-bottom: 10px;
}

@media (max-width: 767.98px) {

    .vendor-info-col {
        flex: 1 1 100%;
        border-left: 0;
        border-top: 1px solid var(--festival-red);
        padding: 20px 12px;
    }

        .vendor-info-col:first-child {
            border-top: 0;
        }
}


.vendor-hr {
    border: 0;
    border-top: 1px solid var(--festival-red);
    margin: 32px 0;
    /* Bootstrap's base hr{} rule sets opacity: .25 on every <hr>. Border
       color is set explicitly above so Bootstrap's color:inherit doesn't
       matter here, but opacity isn't part of the border shorthand, so
       without this override it was still washing the red out to 25%. */
    opacity: 1;
}


.vendor-section-heading {
    color: var(--festival-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: 1.4rem;
    margin-bottom: 20px;
}


/* Custom checkbox — a plain native checkbox can't reliably take on a
   festival-red outline across browsers, since its appearance is
   OS-controlled by default. appearance: none opts out of that so the
   border/checkmark below are fully our own styling instead. */
.vendor-guidelines-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
}

    .vendor-guidelines-check input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        flex: 0 0 auto;
        width: 22px;
        height: 22px;
        border: 1px solid var(--festival-red);
        border-radius: 3px;
        margin-top: 2px;
        position: relative;
        cursor: pointer;
    }

        .vendor-guidelines-check input[type="checkbox"]:checked::after {
            content: "";
            position: absolute;
            left: 6px;
            top: 2px;
            width: 6px;
            height: 11px;
            border: solid var(--festival-red);
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

    .vendor-guidelines-check label {
        font-size: .9rem;
        line-height: 1.5;
        color: var(--festival-dark);
    }

        .vendor-guidelines-check label a {
            color: var(--festival-red);
        }


.btn-vendor-submit {
    display: inline-block;
    background: var(--festival-red);
    color: var(--festival-cream);
    border: 0;
    border-radius: 999px;
    font-family: "League Spartan", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: 1.4rem;
    padding: 14px 48px;
    transition: filter .2s ease;
}

    .btn-vendor-submit:hover {
        filter: brightness(.9);
        color: var(--festival-cream);
    }


.vendor-thankyou-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 16px;
}

.vendor-thankyou-text {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--festival-dark);
    font-size: 1.1rem;
}


/* Hides the honeypot field from real visitors without display:none — some
   spam bots specifically skip display:none fields when auto-filling forms,
   but still fill in anything merely positioned off-screen. */
.form-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


.vendor-form {
    /* background: white; */
    padding: 30px;
    border-radius: 4px;
    /* box-shadow: 0 10px 25px rgba(38, 27, 16, .1); */
}


    .vendor-form .form-label {
        font-size: .78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .03em;
        margin-bottom: .4rem;
        color: var(--festival-red);
        display: block;
    }


    .vendor-form .form-control,
    .vendor-form .form-select {
        border: 1px solid var(--festival-red);
        border-radius: 3px;
        padding: .7rem .9rem;
    }


    /* Text boxes and dropdowns are transparent in every state (focused,
       browser-autofilled, read-only) so whatever's behind the form shows
       through. The dropdown's option list still opens with a white
       background, which keeps the option text readable. Only
       background-color is set on the select so its arrow image is
       untouched. */
    .vendor-form .form-control,
    .vendor-form .form-control:focus,
    .vendor-form .form-control:read-only {
        background-color: transparent;
    }

        .vendor-form .form-control:-webkit-autofill,
        .vendor-form .form-control:-webkit-autofill:focus {
            -webkit-text-fill-color: inherit;
            transition: background-color 600000s 0s;
        }

    .vendor-form .form-select,
    .vendor-form .form-select:focus {
        background-color: transparent;
    }

    .vendor-form textarea.form-control {
        resize: vertical;
    }


    /* The visible "Choose File(s)" button is a plain <label for="..."> next
       to a visually-hidden real <input type="file"> (see Vendors.cshtml) —
       not the input's own native button. That native button (styled via
       ::file-selector-button) turned out not to be reliably stylable:
       Bootstrap ships its own hover rule for it
       (".form-control:hover:not(:disabled):not([readonly])
       ::file-selector-button") that's more specific than a plain class
       selector, and even overriding it with !important still weren't
       enough to keep it looking right hover in every environment,
       apparently platform-native button chrome bleeding back through.
       A <label> is a completely ordinary element with none of that —
       normal CSS rules apply, so its color and hover state behave exactly
       as written. Clicking it, or pressing Enter/Space while it's focused,
       opens the file picker exactly like a real file input button would;
       for a screen reader it's an ordinary label associated with the
       input, so it's announced as part of the same field. */
    .btn-choose-file {
        display: inline-block;
        background-color: var(--festival-red);
        color: var(--festival-cream);
        border-radius: 999px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .03em;
        font-size: .75rem;
        padding: .5rem 1rem;
        cursor: pointer;
        transition: filter .2s ease;
    }

        .btn-choose-file:hover {
            filter: brightness(.9);
        }

        /* The real input is visually hidden, not removed — keyboard users
           still Tab to it and can open the picker with Space/Enter. Since
           it has no visible box of its own to put a focus ring on, the
           ring goes on the label that stands in for it instead. */
        .file-input:focus-visible + .btn-choose-file {
            outline: 2px solid var(--festival-dark);
            outline-offset: 2px;
        }


    .vendor-form .form-hint {
        display: block;
        font-size: .75rem;
        color: var(--festival-brown);
        margin-top: 4px;
    }

    /* Label + info-icon button that opens the upload-hint modal
       (what to upload, size limits) instead of always-visible text
       under the field. */
    .field-label-row {
        display: flex;
        align-items: center;
        gap: .4rem;
    }

        .field-label-row .form-label {
            margin-bottom: 0;
        }

    .field-hint-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: none;
        background: none;
        color: var(--festival-red);
        font-size: 1rem;
        line-height: 1;
        cursor: pointer;
        transition: filter .2s ease;
    }

        .field-hint-icon:hover,
        .field-hint-icon:focus-visible {
            filter: brightness(.85);
        }

        .field-hint-icon:focus-visible {
            outline: 2px solid var(--festival-dark);
            outline-offset: 2px;
            border-radius: 999px;
        }

    /* Upload-hint modal content (matches the vendor-form/festival aesthetic). */
    .field-hint-modal .modal-content {
        background-color: var(--festival-cream);
        border: none;
        border-radius: 12px;
    }

    .field-hint-modal .modal-header {
        border-bottom: 1px solid rgba(0, 0, 0, .08);
    }

    .field-hint-modal .modal-title {
        color: var(--festival-dark);
        font-weight: 700;
    }

    .field-hint-modal .modal-body p {
        color: var(--festival-brown);
        font-size: .9rem;
    }


    .form-file-preview {
        margin-top: 8px;
        font-size: .8rem;
        color: var(--festival-brown);
    }

        .form-file-preview img {
            display: block;
            max-width: 140px;
            max-height: 140px;
            object-fit: cover;
            border-radius: 6px;
            border: 1px solid rgba(37, 37, 19, .15);
        }

        /* One row per selected file: optional thumbnail, name + size, and
           (multi-file inputs only) a Remove link. */
        .form-file-preview .form-file-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 6px 0;
        }

            .form-file-preview .form-file-item + .form-file-item {
                border-top: 1px solid rgba(37, 37, 19, .1);
            }

        .form-file-preview .form-file-thumb {
            flex: 0 0 auto;
        }

            .form-file-preview .form-file-thumb:empty {
                display: none;
            }

        .form-file-preview .form-file-info {
            flex: 1 1 auto;
            min-width: 0;
            overflow-wrap: anywhere;
        }

        .form-file-preview .form-file-note {
            display: block;
            margin-top: 2px;
        }

        .form-file-preview .form-file-remove {
            flex: 0 0 auto;
            background: none;
            border: 0;
            padding: 0;
            font-size: .8rem;
            color: var(--festival-red);
            text-decoration: underline;
            cursor: pointer;
        }

        .form-file-preview .form-file-error {
            color: #b02a37;
            margin-bottom: 4px;
        }

            .form-file-preview .form-file-error a {
                color: inherit;
                text-decoration: underline;
            }

    .form-file-status {
        margin-top: 8px;
        font-size: .8rem;
        font-style: italic;
        color: var(--festival-brown);
    }

    /* Running total of attached files vs. the upload cap. */
    .upload-tally {
        font-size: .82rem;
        color: var(--festival-brown);
    }

    .upload-tally-bar {
        height: 6px;
        margin-top: 4px;
        border-radius: 3px;
        background: #efe6d6;
        overflow: hidden;
    }

    .upload-tally-fill {
        height: 100%;
        width: 0;
        background: var(--festival-olive);
        transition: width .25s ease, background-color .25s ease;
    }

    .upload-tally.is-near-limit {
        color: var(--festival-red);
        font-weight: 600;
    }

        .upload-tally.is-near-limit .upload-tally-fill {
            background: var(--festival-red);
        }

        /* Multi-file lists get smaller thumbnails than the single logo preview. */
        .form-file-preview-list .form-file-thumb img {
            max-width: 56px;
            max-height: 56px;
        }


    /* Full-screen "submitting…" state for the vendor application — see
       the overlay markup and submit handler in Vendors.cshtml. */
    .vendor-submit-overlay {
        position: fixed;
        inset: 0;
        z-index: 2000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        background: rgba(255, 255, 255, .85);
    }

        .vendor-submit-overlay[hidden] {
            display: none;
        }

    .vendor-submit-overlay-box {
        max-width: 380px;
        padding: 32px 28px;
        text-align: center;
        background: white;
        border-radius: 4px;
        box-shadow: 0 10px 25px rgba(38, 27, 16, .2);
    }

    .vendor-spinner {
        width: 3rem;
        height: 3rem;
        color: var(--festival-red);
    }

    .vendor-submit-overlay-title {
        margin: 16px 0 6px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: var(--festival-dark);
    }

    .vendor-submit-overlay-note {
        margin: 0;
        font-size: .85rem;
        color: var(--festival-brown);
    }


    .vendor-form .form-check {
        padding-top: .3rem;
    }

        .vendor-form .form-check-label {
            text-transform: none;
            font-weight: 400;
            letter-spacing: normal;
        }



/* CONTACT */

.festival-contact {
    background: var(--festival-cream);
    padding: 60px 0;
}


.contact-social-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .contact-social-links a {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: var(--festival-dark);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        font-size: .85rem;
        text-decoration: none;
    }

        .contact-social-links a:hover {
            text-decoration: underline;
        }

        /* The Facebook/Instagram glyphs (Bootstrap Icons), in festival-red;
           the page name/handle next to them stays the section's normal
           dark text color. */
        .contact-social-links a .bi {
            color: var(--festival-red);
            font-size: 1.5rem;
            line-height: 1;
        }


/* 16:9 responsive embed, sized by its container's width rather than a
   fixed pixel height. */
.map-embed-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 6px;
    overflow: hidden;
}

    .map-embed-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }


.contact-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}


    .contact-box h2 {
        font-family: "League Spartan", sans-serif;
        text-transform: uppercase;
        font-size: 2.1rem;
    }


/* .vendor-form (see above) supplies the mirrored aesthetic: red uppercase
   labels, transparent red-bordered fields, the pill submit button, and the
   festival-red "Choose File" button, all meant for a cream backdrop (see
   .festival-contact below) — this block only adds what the contact form
   needs on top of that: its own width/spacing. */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 430px;
}

    .contact-form.vendor-form {
        padding: 0;
    }

    .contact-form .btn-vendor-submit {
        align-self: flex-start;
        /* Smaller than the vendor form's "Submit Application" — this is a
           shorter, lower-stakes form and the full-size pill read as too
           heavy here. */
        font-size: 1rem;
        padding: 10px 32px;
    }



/* FOOTER */

.festival-footer {
    background: var(--festival-cream);
    color: var(--festival-dark);
}


    .festival-footer .container {
        /* Matches the .g-5 gutter on the row below so its negative
           margins are fully absorbed by the container's padding
           instead of spilling past the viewport edge. */
        --bs-gutter-x: 3rem;
    }


    .festival-footer h4 {
        text-transform: uppercase;
        font-weight: 800;
        font-size: .78rem;
        margin-bottom: 18px;
    }


    /* .footer-credit is a <span> now (not a link) — the exclusion here is
       for .footer-credit-link, the two links inside it, which need their
       own inline/underlined styling instead of this block/dark-text
       treatment meant for the column link lists above. */
    .festival-footer a:not(.footer-credit-link) {
        display: block;
        color: var(--festival-dark);
        text-decoration: none;
        margin-bottom: 7px;
        font-size: .82rem;
    }


    /* Same exclusion as the base-state rule above — .footer-credit-link
       already gets its own hover color (see .footer-credit-link:hover);
       without this, "a" here (adding a type-selector point) actually beats
       that rule's specificity and repaints these links festival-orange —
       which is exactly the color of the bar they sit on. */
    .festival-footer a:not(.footer-credit-link):hover {
        color: var(--festival-orange);
    }


    .festival-footer p,
    .footer-event {
        font-size: .82rem;
        line-height: 1.6;
    }


.footer-bottom {
    background: var(--festival-orange);
    color: white;
    padding: 13px 0;
    font-size: .7rem;
}


.footer-credit {
    color: white;
}


.footer-credit-link {
    color: white;
    text-decoration: underline;
}

    /* Previously the link's hover color was left the same as its resting
       color, which on this section's festival-orange background read as
       "hover does nothing." Cream gives a real, visible change without
       clashing with the orange. */
    .footer-credit-link:hover {
        color: var(--festival-cream);
        text-decoration: none;
    }



/* HOME-ONLY CUSTOM FOOTER */

.home-footer {
    background: var(--festival-cream);
}


.home-footer-tile {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--festival-dark);
    max-width: 100%;
}

    .home-footer-tile-img {
        width: 100%;
        max-width: 96px;
        aspect-ratio: 1 / 1;
        object-fit: contain;
    }

    .home-footer-tile-label {
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        line-height: 1.35;
    }

    .home-footer-arrow {
        color: var(--festival-red);
        font-size: 1.3rem;
        line-height: 1;
    }


.home-footer-coords {
    display: inline-block;
    color: var(--festival-blue);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .04em;
}

    .home-footer-coords:hover {
        color: var(--festival-blue);
        text-decoration: none;
    }


.home-footer-credit {
    font-family: "Caveat", cursive;
    font-size: 1.2rem;
    color: var(--festival-dark);
    text-decoration: none;
}

    .home-footer-credit:hover {
        color: var(--festival-dark);
        text-decoration: none;
    }


/* MOBILE-ONLY QUICK ACTIONS (below the hero on Home/Index) */

.home-mobile-footer {
    padding: 14px 16px 5px;
    background: var(--festival-cream);
}

.home-mobile-footer-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.home-mobile-footer-btn {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    text-decoration: none;
    color: var(--festival-dark);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: uppercase;
    line-height: 1.25;
}

    .home-mobile-footer-btn img {
        width: 64px;
        height: 64px;
        object-fit: contain;
    }

.home-mobile-footer .home-footer-coords,
.home-mobile-footer .home-footer-credit {
    font-size: .8rem;
}



/* TABLET */

@media (max-width: 991.98px) {

    /* Home/Index on mobile: the hero plus the mobile quick-actions block
       right below it (in Index.cshtml) cover everything a first-time
       mobile visitor needs — nav pills and the hamburger cover the rest.
       Desktop keeps all of these sections. Scoped to .home-page (set on
       <body> only when ViewData["IsHomePage"] is true) so this never
       touches .vendor-section/.festival-events/etc. reused by name on
       other pages. */
    .home-page .festival-hero,
    .home-page .vendor-section,
    .home-page .festival-events,
    .home-page .scarecrow-section,
    .home-page .festival-contact,
    .home-page .home-footer {
        display: none;
    }


    .hero-copy {
        text-align: center;
    }


    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }


    .hero-features {
        justify-content: center;
    }


    .hero-copy .d-flex {
        justify-content: center;
    }


    .hero-polaroid {
        margin-top: 1rem;
    }


    .contact-box {
        flex-direction: column;
        align-items: stretch;
    }


    .contact-form {
        max-width: 100%;
    }


    .festival-highlights .col-lg + .col-lg .highlight {
        border-left: 0;
    }
}



/* MOBILE */

@media (max-width: 575.98px) {

    .hero-row {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }


    .hero-copy .brand-wordmark-caps {
        font-size: 4rem;
    }


    .hero-features {
        gap: 1rem;
    }


    .hero-feature {
        width: calc(50% - .5rem);
    }


    .hero-polaroid {
        margin-top: 3rem;
    }


    .festival-events {
        padding-left: 15px;
        padding-right: 15px;
    }


    .footer-bottom .container {
        text-align: center;
    }
}












/* =========================
   Recreation Page
   ========================= */

/* Section fills the viewport below the header. Both columns are flex
   items with default (stretch) cross-axis sizing, so each one is exactly
   as tall as the section — that full-height box is what lets the image
   and the text wrapper below share a common bottom edge. */

.recreation-hero {
    position: relative;
    display: flex;
    width: 100%;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    background: var(--festival-orange);
    overflow: hidden;
}


@media (max-width: 991.98px) {

    /* Scoped to .home-page only — Recreation.cshtml's standalone demo
       page uses this same class but has no quick-actions block after it,
       so it should keep filling the full available height there.
       --mobile-footer-height is measured by JS in Index.cshtml, same
       pattern as --header-height; the fallback is a reasonable guess for
       before that JS runs. */
    .home-page .recreation-hero {
        min-height: calc(100vh - var(--header-height) - var(--mobile-footer-height, 150px));
        min-height: calc(100dvh - var(--header-height) - var(--mobile-footer-height, 150px));
    }
}


/* Left artwork column */

/* Width is capped at 50vw, but on short/wide screens (e.g. 1440x720)
   the image becomes height-constrained and renders narrower than that.
   This computes that same narrower width, so the column — and the
   boundary with the text column next to it — shrinks right along with
   the image instead of leaving a gap. */
/* Sized off --hero-height (the hero's own actual measured rendered
   height — see the script at the bottom of Index.cshtml) rather than
   re-deriving "100vh - header [- mobile-footer]" independently. That
   fallback is only for the instant before the JS runs; once it does,
   this always matches the hero's real height no matter what else ever
   gets subtracted from it when computing that height. */
.recreation-art {
    position: relative;
    width: min(50vw, calc(var(--hero-height, calc(100dvh - var(--header-height, 84px))) * 626 / 832));
    flex: 0 0 auto;
}

    /* Stickied to the bottom-left corner of the section: no margin, no
       padding. Because the column's own width above already accounts
       for the available height, a plain width:100%/height:auto image
       always fits — it never needs cropping. */
    .recreation-art img {
        position: absolute;
        left: 0;
        bottom: 0;
        margin: 0;
        padding: 0;
        width: 100%;
        height: auto;
        display: block;
    }


/* Right text column */

.recreation-message {
    position: relative;
    flex: 1;
}

    /* This wrapper is pinned to the same bottom edge as the image, and is
       given the same rendered height the image ends up at:
       min(width-based height, --hero-height). Both this and
       .recreation-art now size off the one measured --hero-height value
       instead of each separately re-deriving "available height" — see
       the comment on .recreation-art above for why that used to drift
       out of sync. */
    .recreation-message-inner {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: min(calc(50vw * 832 / 626), var(--hero-height, calc(100dvh - var(--header-height, 84px))));
        display: flex;
        flex-direction: column;
        /* justify-content: flex-start puts the text at the TOP of the
           image-matched box (client request — was centered). align-items
           anchors both lines to the left edge so typing never re-centers
           already-typed letters — it only grows the line to the right. */
        justify-content: flex-start;
        align-items: flex-start;
        gap: .15em;
        padding: 0 clamp(1rem, 4vw, 4rem);
    }

    .recreation-line {
        display: block;
        color: #f7dcb9;
        font-size: clamp(1.75rem, 7vw, 8rem);
        /* Brittany Signature Script has tall ascenders/descenders that
           overlapped between the two lines at the old line-height (1.05).
           Bumped up, plus a matching gap on the flex container below, to
           give the swashes room. */
        line-height: 1.5;
        white-space: nowrap;
        font-family: "Brittany Signature Script", cursive;
        /* Right side slightly higher than left */
        transform: rotate(-5deg);
        transform-origin: left center;
        text-shadow: 0 0 3px rgba(247, 220, 185, .3), 0 0 8px rgba(247, 220, 185, .2);
        transition: opacity .1s ease, text-shadow .1s ease;
    }


        /* Neon flash */

        .recreation-line.neon-flash {
            text-shadow: 0 0 5px #f7dcb9, 0 0 12px #f7dcb9, 0 0 25px rgba(247, 220, 185, .9), 0 0 45px rgba(247, 220, 185, .6);
        }


/* EVENT REGISTRATION PAGE
   One outlined row per activity: icon (row height) | name + description |
   vertical rule | Name | Age | Register. Below the lg breakpoint it
   restacks: icon + description on top, Name/Age under that, a full-width
   Register button last. The message area (success/error text) sits on its
   own line under the fields and takes no space while empty. */

.event-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) 1px minmax(150px, 230px) 84px 150px;
    grid-template-areas:
        "icon info rule name age action"
        ". msg msg msg msg msg";
    column-gap: 22px;
    align-items: center;
    background: transparent;
    border: 1px solid var(--festival-red);
    border-radius: 6px;
    padding: 14px 20px;
}

.event-row-icon {
    grid-area: icon;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* The icon is as tall as the row's content. The PNGs carry a lot of
       transparent padding around the glyph, so object-view-box crops that
       away where supported (recent Chrome/Edge/Firefox/Safari) — the glyph
       then fills the height instead of floating small in the middle.
       Elsewhere it just shows uncropped, which is still fine. */
    .event-row-icon img {
        height: 100%;
        width: auto;
        aspect-ratio: 1 / 1;
        max-width: none;
        object-fit: contain;
        object-view-box: inset(18%);
    }

.event-row-info {
    grid-area: info;
}

.event-row-name {
    font-family: "League Spartan", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--festival-dark);
    margin: 0 0 2px;
}

.event-row-desc {
    margin: 0;
    color: var(--festival-brown);
    font-size: .95rem;
}

.event-row-rule {
    grid-area: rule;
    align-self: stretch;
    background: var(--festival-red);
}

.event-row-name-field {
    grid-area: name;
}

.event-row-age-field {
    grid-area: age;
}

.event-row-field .form-label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: .3rem;
    color: var(--festival-red);
}

.event-row-field .form-control {
    border: 1px solid var(--festival-red);
    border-radius: 3px;
    padding: .55rem .75rem;
}

    /* The boxes stay transparent in every state — focused, locked after a
       successful sign-up, and browser-autofilled — so the row's background
       always shows through. (Bootstrap turns .form-control white on focus,
       and browsers tint autofilled fields; the long transition below is the
       usual way to keep the autofill tint from ever painting.) */
    .event-row-field .form-control,
    .event-row-field .form-control:focus,
    .event-row-field .form-control:read-only {
        background-color: transparent;
    }

        .event-row-field .form-control:-webkit-autofill,
        .event-row-field .form-control:-webkit-autofill:focus {
            -webkit-text-fill-color: inherit;
            transition: background-color 600000s 0s;
        }

.event-row-action {
    grid-area: action;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

    /* An invisible stand-in for the "NAME"/"AGE" labels above the inputs
       beside it, so the button sits level with the input boxes instead of
       with the label-plus-input block as a whole. */
    .event-row-action::before {
        content: "\00a0";
        font-size: .78rem;
        margin-bottom: .3rem;
    }

.btn-event-register {
    min-width: 140px;
    background: var(--festival-red);
    color: var(--festival-cream);
    border: 1px solid var(--festival-red);
    border-radius: 999px;
    font-family: "League Spartan", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: 1rem;
    /* Same height as the text inputs next to it. */
    height: calc(1.5rem + 1.1rem + 2px);
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: filter .2s ease;
}

    .btn-event-register:hover:not(:disabled) {
        filter: brightness(.9);
    }

    .btn-event-register:disabled {
        cursor: default;
    }

    .btn-event-register.is-busy {
        opacity: .75;
    }

    /* Signed up: same pill, olive instead of red, so a finished row reads
       as "done" at a glance while scrolling a long list. */
    .btn-event-register.is-registered {
        background: var(--festival-olive);
        border-color: var(--festival-olive);
        color: var(--festival-cream);
        opacity: 1;
    }

.event-row-message {
    grid-area: msg;
    font-size: .88rem;
    font-weight: 600;
    margin-top: 8px;
    text-align: right;
}

    .event-row-message:empty {
        display: none;
    }

    .event-row-message.is-error {
        color: #b02a37;
    }

    .event-row-message.is-success {
        color: var(--festival-olive);
    }

.event-thankyou {
    margin-top: 56px;
}

@media (max-width: 991.98px) {

    .event-row {
        grid-template-columns: 64px minmax(0, 1fr) 96px;
        grid-template-areas:
            "icon info info"
            "name name age"
            "action action action"
            "msg msg msg";
        column-gap: 14px;
        row-gap: 12px;
        padding: 14px 16px;
    }

    .event-row-rule {
        display: none;
    }

    .event-row-action {
        align-items: stretch;
    }

        .event-row-action::before {
            display: none;
        }

    .btn-event-register {
        width: 100%;
    }

    .event-row-message {
        text-align: left;
        margin-top: 0;
    }
}



/* NORMAL-MODE HOME PAGE (Views/Home/Index.cshtml) — The Town Farm's
   everyday home page, used whenever the site isn't in Event mode. Built on
   the same palette, fonts and section/hero classes as the rest of the site;
   only what those don't already cover is defined here. */

.town-farm-info-card {
    background: var(--festival-paper);
    border-radius: 10px;
    padding: 26px 28px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

    .town-farm-info-card h3 {
        text-transform: uppercase;
        font-weight: 800;
        font-size: .9rem;
        letter-spacing: .06em;
        color: var(--festival-red);
        margin-bottom: 14px;
    }

    .town-farm-info-card p {
        line-height: 1.6;
    }

    .town-farm-info-card a {
        color: var(--festival-red);
        font-weight: 700;
    }


/* "What Happens Here": one card per event / program, on the olive section. */
.town-farm-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.town-farm-event-card {
    background: var(--festival-cream);
    border-radius: 10px;
    padding: 26px 24px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

    .town-farm-event-card h3 {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--festival-dark);
        margin-bottom: 10px;
    }

    .town-farm-event-card p {
        color: var(--festival-brown);
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .town-farm-event-card .town-farm-event-audience {
        font-size: .9rem;
        margin-bottom: 0;
    }


/* Photo gallery: uniform 4:3 tiles, cropped to fill. */
.town-farm-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.town-farm-gallery-item {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    aspect-ratio: 4 / 3;
    background-color: rgba(0, 0, 0, .08);
}

    .town-farm-gallery-item img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

@media (max-width: 575.98px) {

    .town-farm-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}


/* The hero's "Town Farm" is nowrap and, at the shared hero size's 2.75rem
   floor, about 440px wide, wider than a phone. Scale it with the viewport on
   phones only; tablet and desktop keep the shared hero sizing. */
@media (max-width: 575.98px) {

    .town-farm-hero .hero-copy .brand-wordmark-caps {
        font-size: 8.5vw;
    }
}


/* ------------------------------------------------------------------
   Post-mortem photo gallery + full-screen viewer
   (Views/EventHomes/AutumnAtTheTownFarmPostMortem.cshtml,
   wwwroot/js/photo-gallery.js)
   ------------------------------------------------------------------ */

/* 2 columns on phones, 3 on tablets, 4 (the maximum) on wide screens.
   Tiles are cropped squares so rows line up whatever shape the photos are;
   the viewer shows each photo whole. */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.photo-gallery-item {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.18);
    aspect-ratio: 1 / 1;
    cursor: zoom-in;
}

    .photo-gallery-item img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.25s ease;
    }

    .photo-gallery-item:hover img,
    .photo-gallery-item:focus-visible img {
        transform: scale(1.04);
    }

    .photo-gallery-item:focus-visible {
        outline: 3px solid var(--festival-gold);
        outline-offset: 2px;
    }

@media (min-width: 768px) {

    .photo-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (min-width: 1200px) {

    .photo-gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


/* The viewer covers the whole screen. The photo is stretched to its
   stage with object-fit: contain, so it always ends up as large as the
   screen allows without being cropped or distorted, for any aspect ratio.
   Phones leave room above (close button) and below (arrows + counter);
   wider screens leave room at the sides for the arrows. */
.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(12, 10, 6, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
}

    .photo-lightbox.is-open {
        opacity: 1;
        visibility: visible;
    }

.photo-lightbox-stage {
    position: absolute;
    inset: 0;
    padding: 56px 8px 72px;
}

.photo-lightbox-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.photo-lightbox-btn {
    position: absolute;
    z-index: 2; /* above the stage, which covers the whole screen */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

    .photo-lightbox-btn:hover,
    .photo-lightbox-btn:focus-visible {
        background: rgba(255, 255, 255, 0.3);
    }

    .photo-lightbox-btn:focus-visible {
        outline: 2px solid var(--festival-gold);
    }

    .photo-lightbox-btn[hidden] {
        display: none;
    }

.photo-lightbox-close {
    top: 8px;
    right: 8px;
}

/* Phones: arrows at the bottom corners, counter between them. */
.photo-lightbox-prev {
    bottom: 12px;
    left: 12px;
}

.photo-lightbox-next {
    bottom: 12px;
    right: 12px;
}

.photo-lightbox-count {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

@media (min-width: 768px) {

    .photo-lightbox-stage {
        padding: 32px 96px;
    }

    .photo-lightbox-close {
        top: 16px;
        right: 16px;
    }

    .photo-lightbox-prev,
    .photo-lightbox-next {
        top: 50%;
        bottom: auto;
        margin-top: -24px;
    }

    .photo-lightbox-prev {
        left: 24px;
    }

    .photo-lightbox-next {
        right: 24px;
    }

    .photo-lightbox-count {
        bottom: 12px;
    }
}

/* Phones held sideways have very little height: shrink the margins so
   the photo keeps as much of it as possible. */
@media (max-height: 480px) and (orientation: landscape) {

    .photo-lightbox-stage {
        padding: 8px 80px;
    }

    .photo-lightbox-prev,
    .photo-lightbox-next {
        top: 50%;
        bottom: auto;
        margin-top: -24px;
    }

    .photo-lightbox-prev {
        left: 16px;
    }

    .photo-lightbox-next {
        right: 16px;
    }

    .photo-lightbox-count {
        bottom: 8px;
    }
}

body.photo-lightbox-open {
    overflow: hidden;
}
