/* ACC FAUNA — natural areas directory + single area pages.
   Follows the cross-timbers card idiom: #eef2e8 tint panel, 1.5px forest
   border, lift on hover (same component language as .acc-partner-card
   and the homepage feature cards). Mobile-first. */

/* ---------- Directory rows ----------
   One area per row: photo, then the words, then its iNaturalist tallies.
   Stacks to a single column on phones. */

.acc-nature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

.acc-nature-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    background: #eef2e8;
    border: 1.5px solid #2c5e34;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 700px) {
    .acc-nature-card {
        grid-template-columns: 260px 1fr;
        align-items: stretch;
    }
}

/* With tallies the row runs photo | words | numbers — but only once there is
   room for a readable middle column. At 700px the two fixed tracks take 430px
   and leave the name, address, credit and excerpt about 180px. */
@media (min-width: 880px) {
    .acc-nature-card:has(.acc-nature-card__stats) {
        grid-template-columns: 260px 1fr 170px;
    }
}

.acc-nature-card:hover,
.acc-nature-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(13, 38, 20, 0.08);
    border-color: var(--wp--preset--color--leaf, #3d6b3f);
}

.acc-nature-card__media {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(44, 94, 52, 0.25);
}

@media (min-width: 700px) {
    .acc-nature-card__media {
        aspect-ratio: auto;
        min-height: 100%;
        border-bottom: 0;
        border-right: 1px solid rgba(44, 94, 52, 0.25);
    }
}

.acc-nature-card__media--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wp--preset--color--surface, #efe8d6);
    color: var(--wp--preset--color--leaf, #3d6b3f);
    opacity: 0.85;
}

.acc-nature-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.25rem 1.35rem 1.5rem;
}

.acc-nature-card__name {
    margin: 0;
    font-family: var(--wp--preset--font-family--serif, Georgia, serif);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.005em;
}

/* Title anchor stretched over the whole card = full-card click target,
   without wrapping the card in <a> (which lets the theme's content-link
   underline cascade into every line of text). */
.acc-nature-card__link {
    color: var(--wp--preset--color--primary, #1a3a1f);
    text-decoration: none !important;
}

.acc-nature-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.acc-nature-card__link:hover,
.acc-nature-card__link:focus-visible {
    color: var(--wp--preset--color--primary-light, #2c5e34);
}

.acc-nature-card__address {
    margin: 0;
    font-size: 0.8rem;
    color: var(--wp--preset--color--muted, #5b5847);
    overflow-wrap: anywhere;
}

.acc-nature-card__excerpt {
    margin: 0.15rem 0 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--wp--preset--color--foreground, #22301f);
}

.acc-nature-card__more {
    margin-top: 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wp--preset--color--leaf, #3d6b3f);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.acc-nature-card__more-icon {
    flex: 0 0 auto;
}

.acc-nature-card:hover .acc-nature-card__more {
    color: var(--wp--preset--color--primary, #1a3a1f);
}

/* iNaturalist tallies on the end of each row. Dark panel so the numbers read
   as live data rather than more of the card's copy. */
.acc-nature-card__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 1rem 1.35rem;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(61, 107, 63, 0.2), transparent 60%),
        linear-gradient(160deg, #16331b 0%, #0f2613 100%);
    color: #f3f1e7;
}
@media (min-width: 700px) {
    .acc-nature-card__stats {
        flex-direction: column;
        gap: 0.5rem;
        border-left: 1px solid rgba(44, 94, 52, 0.35);
    }
}
.acc-nature-card__stat { text-align: center; }
.acc-nature-card__num {
    display: block;
    font-family: var(--wp--preset--font-family--serif, Georgia, serif);
    font-size: clamp(1.35rem, 3.2vw, 1.65rem);
    line-height: 1;
    color: #fff;
}
.acc-nature-card__statlabel {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(243, 241, 231, 0.66);
}
/* Sentence case, not capitals. A label this small set in caps reads as
   shouting a brand name that is not even written that way -- and the tracking
   that makes caps legible is what makes mixed case look gappy, so it goes
   down with them. */
.acc-nature-card__statfoot {
    width: 100%;
    margin: 0;
    text-align: center;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(243, 241, 231, 0.45);
}
@media (min-width: 700px) {
    .acc-nature-card__statfoot {
        margin-top: 0.35rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(243, 241, 231, 0.14);
    }
}

/* ---------- Single area page ---------- */

.acc-area-meta {
    margin-bottom: 1.75rem;
}

.acc-area-meta__row {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
}

.acc-area-meta__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.acc-area-chip {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--wp--preset--color--surface, #efe8d6);
    border: 1px solid var(--wp--preset--color--border, #c9c2ad);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--wp--preset--color--primary, #1a3a1f);
}

.acc-area-section {
    margin-top: 2.75rem;
    padding-top: 2rem;
    border-top: 1px solid var(--wp--preset--color--border, #c9c2ad);
}

.acc-area-section__title {
    margin: 0 0 1rem;
    font-size: 1.35rem;
}

.acc-area-events__empty {
    color: var(--wp--preset--color--muted, #5b5847);
}

/* ---------- Join form ---------- */

.acc-area-join__lede {
    max-width: 46rem;
}

.acc-area-join__notice {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.acc-area-join__notice--ok {
    background: #eef2e8;
    border: 1px solid #2c5e34;
    color: #1a3a1f;
}

.acc-area-join__notice--err {
    background: #fdf0ef;
    border: 1px solid #f3c8c4;
    color: #8a2820;
}

.acc-area-join__form {
    max-width: 40rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.acc-area-join__hp {
    position: absolute !important;
    left: -9999px !important;
    height: 1px;
    overflow: hidden;
}

.acc-area-join__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .acc-area-join__row { grid-template-columns: 1fr 1fr; }
}

.acc-area-join__form label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wp--preset--color--primary, #1a3a1f);
}

.acc-area-join__form input[type="text"],
.acc-area-join__form input[type="email"],
.acc-area-join__form textarea {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--wp--preset--color--border, #c9c2ad);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-weight: 400;
    /* The label sets 0.85rem and these inherit it. Anything under 16px makes
       iOS zoom the page on focus. */
    font-size: 1rem;
}

.acc-area-join__form input:focus,
.acc-area-join__form textarea:focus {
    outline: 2px solid var(--wp--preset--color--primary-light, #2c5e34);
    outline-offset: 1px;
}

.acc-area-join__btn {
    align-self: flex-start;
    min-height: 44px;
    padding: 0.7rem 1.6rem;
    border: none;
    border-radius: 999px;
    background: var(--wp--preset--color--primary, #1a3a1f);
    color: var(--wp--preset--color--background, #faf7f0);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.82rem;
    cursor: pointer;
}

.acc-area-join__btn:hover {
    background: var(--wp--preset--color--primary-light, #2c5e34);
}

/* ---------- Single area: immersive hero + sidebar nav ---------- */

/* Dark green hero — featured image under a primary-green wash plus a
   bottom-up gradient so it reads like looking into the area. */
.acc-area-hero {
    position: relative;
    /* The hero is the first block after the header, so it inherits the site's
       default block gap and shows a strip of page background under the nav.
       It should sit flush against it. */
    margin-top: 0 !important;
}
.acc-area-hero .wp-block-cover__background {
    /* Core paints a flat dim; replace with a gradient so the top stays
       photographic and the base settles into deep green. */
    opacity: 1 !important;
    background: linear-gradient(
        to bottom,
        rgba(13, 43, 18, 0.25) 0%,
        rgba(13, 43, 18, 0.45) 55%,
        rgba(13, 43, 18, 0.88) 100%
    ) !important;
}
.acc-area-hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(246, 248, 246, 0.85);
    margin-bottom: 0.4rem;
}
.acc-area-hero__title {
    color: #f6f8f6 !important;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-wrap: balance;
    text-shadow: 0 2px 24px rgba(13, 43, 18, 0.55);
}

/* Sidebar — thin jump list of the other areas. */
.acc-area-nav {
    position: sticky;
    top: 90px; /* clears the sticky navbar */
    /* Bound it to the screen: pinned and taller than the viewport, everything
       past the fold could never be scrolled to. */
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 1.5px solid var(--wp--preset--color--border, #d1d5db);
    padding-left: 1.25rem;
}
.acc-area-nav__map {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--wp--preset--color--leaf, #3d6b3f);
    margin-bottom: 1.25rem;
}
.acc-area-nav__map:hover { color: var(--wp--preset--color--primary, #1a3a1f); }
.acc-area-nav__title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wp--preset--color--muted, #6b7280);
    margin: 0 0 0.75rem;
}
.acc-area-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.acc-area-nav__item {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(13, 43, 18, 0.08);
    font-size: 0.9375rem;
    line-height: 1.35;
}
.acc-area-nav__item:last-child { border-bottom: 0; }
.acc-area-nav__item a,
.acc-area-nav__item--current > span {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--wp--preset--color--foreground, #0b1410);
}
.acc-area-nav__item a:hover { color: var(--wp--preset--color--leaf, #3d6b3f); }
.acc-area-nav__item--current > span {
    font-weight: 700;
    color: var(--wp--preset--color--primary, #1a3a1f);
}
/* Thumbnail: a name alone doesn't distinguish a prairie remnant from a creek
   corridor. Fixed box so the list stays a straight column whatever the crop. */
.acc-area-nav__thumb {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--wp--preset--color--surface, #eef2e8);
}
.acc-area-nav__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms cubic-bezier(0.2, 0.65, 0.3, 1);
}
.acc-area-nav__item a:hover .acc-area-nav__thumb img { transform: scale(1.08); }
.acc-area-nav__item--current .acc-area-nav__thumb {
    outline: 2px solid var(--wp--preset--color--leaf, #3d6b3f);
    outline-offset: 1px;
}
.acc-area-nav__name { min-width: 0; }
@media (prefers-reduced-motion: reduce) {
    .acc-area-nav__thumb img { transition: none; }
    .acc-area-nav__item a:hover .acc-area-nav__thumb img { transform: none; }
}

/* ---------------------------------------------------------------
   iNaturalist panel — top of the area page
   --------------------------------------------------------------- */
/* The card carries its own frame, so it doesn't need the section's rule. */
.acc-inat-section { border-top: 0; }
.acc-inat {
    margin: 0;
    padding: 1.4rem 1.4rem 1.1rem;
    border-radius: 14px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(61, 107, 63, 0.16), transparent 55%),
        linear-gradient(160deg, #16331b 0%, #0f2613 100%);
    color: #f3f1e7;
    box-shadow: 0 18px 40px -26px rgba(13, 38, 20, 0.9);
}
@media (min-width: 700px) {
    .acc-inat { padding: 1.75rem 1.75rem 1.35rem; }
}
.acc-inat__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 1.1rem;
}
.acc-inat__eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #a8d9ae;
}
.acc-inat__all {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f3f1e7 !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(243, 241, 231, 0.45);
}
.acc-inat__all:hover { border-bottom-color: #f3f1e7; }

.acc-inat__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}
.acc-inat__stat {
    text-align: center;
    padding: 0.6rem 0.35rem;
    border-radius: 10px;
    background: rgba(243, 241, 231, 0.07);
}
.acc-inat__num {
    display: block;
    font-family: var(--wp--preset--font-family--serif, Georgia, serif);
    font-size: clamp(1.5rem, 4.5vw, 2.1rem);
    line-height: 1;
    color: #fff;
}
.acc-inat__label {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(243, 241, 231, 0.66);
}
/* Three columns on a phone leave "OBSERVATIONS" breaking mid-word. */
@media (max-width: 520px) {
    .acc-inat__label {
        font-size: 0.55rem;
        letter-spacing: 0.04em;
    }
    .acc-inat__stat { padding: 0.55rem 0.2rem; }
}

/* Fixed column counts rather than auto-fill: twelve photos divide evenly by
   four and by six, so the last row is never left half-empty. */
.acc-inat__grid {
    list-style: none;
    display: grid;
    /* Four across in ~267px of phone container is a 61px tile, too small for
       the photo and far too small for the species name over it. */
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0;
}
@media (min-width: 480px) {
    .acc-inat__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 700px) {
    .acc-inat__grid { grid-template-columns: repeat(6, 1fr); }
}
.acc-inat__item { margin: 0; }
.acc-inat__item a {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
}
.acc-inat__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 320ms cubic-bezier(0.2, 0.65, 0.3, 1);
}
.acc-inat__item a:hover img,
.acc-inat__item a:focus-visible img { transform: scale(1.07); }
/* Caption rides on a scrim so it stays legible over any photo. */
.acc-inat__caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.4rem 0.45rem 0.4rem;
    background: linear-gradient(to top, rgba(6, 18, 8, 0.92), transparent);
    opacity: 0;
    transition: opacity 220ms ease;
}
.acc-inat__item a:hover .acc-inat__caption,
.acc-inat__item a:focus-visible .acc-inat__caption { opacity: 1; }
.acc-inat__species {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}
.acc-inat__by {
    display: block;
    font-size: 0.58rem;
    color: rgba(243, 241, 231, 0.72);
}
.acc-inat__foot {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.5;
    color: rgba(243, 241, 231, 0.6);
}
.acc-inat__foot a { color: rgba(243, 241, 231, 0.85); }

/* Touch screens have no hover to reveal the caption — keep it showing. */
@media (hover: none) {
    .acc-inat__caption { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .acc-inat__item img,
    .acc-inat__caption { transition: none; }
    .acc-inat__item a:hover img { transform: none; }
}
.acc-area-nav__all {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--wp--preset--color--leaf, #3d6b3f);
}
.acc-area-nav__all:hover { color: var(--wp--preset--color--primary, #1a3a1f); }

/* Stack the sidebar under the content on small screens; drop sticky. The
   height clause catches landscape phones, which are wide but very short. */
@media (max-width: 781px), (max-height: 700px) {
    .acc-area-nav {
        position: static;
        max-height: none;
        overflow: visible;
        border-left: 0;
        border-top: 1.5px solid var(--wp--preset--color--border, #d1d5db);
        padding-left: 0;
        padding-top: 1.5rem;
        margin-top: 1rem;
    }
}

/* ---------- Sidebar "Visit" card ---------- */

.acc-area-info {
    background: #eef2e8;
    border: 1.5px solid #2c5e34;
    border-radius: 8px;
    padding: 1.1rem 1.2rem 1.25rem;
    margin-bottom: 1.5rem;
}
.acc-area-info__title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary, #1a3a1f);
    margin: 0 0 0.75rem;
}
.acc-area-info__address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0 0 0.9rem;
    font-size: 0.9rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    color: var(--wp--preset--color--foreground, #22301f);
}
.acc-area-info__address svg {
    flex: 0 0 auto;
    margin-top: 0.15rem;
    color: var(--wp--preset--color--leaf, #3d6b3f);
}
.acc-area-info__map-btn {
    display: block;
    text-align: center;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: var(--wp--preset--color--primary, #1a3a1f);
    color: var(--wp--preset--color--background, #faf7f0) !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none !important;
}
.acc-area-info__map-btn:hover {
    background: var(--wp--preset--color--primary-light, #2c5e34);
}
/* The city park page sits under Google Maps as the secondary of the two —
   same shape, outlined rather than filled, so the pair doesn't read as two
   competing primary actions. */
.acc-area-info__city-btn {
    margin-top: 0.5rem;
    background: transparent;
    color: var(--wp--preset--color--primary, #1a3a1f) !important;
    border: 1.5px solid var(--wp--preset--color--primary, #1a3a1f);
}
.acc-area-info__city-btn:hover {
    background: var(--wp--preset--color--primary, #1a3a1f);
    color: var(--wp--preset--color--background, #faf7f0) !important;
}
.acc-area-info__website {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(44, 94, 52, 0.25);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--wp--preset--color--leaf, #3d6b3f);
    overflow-wrap: anywhere;
}
.acc-area-info__website:hover { color: var(--wp--preset--color--primary, #1a3a1f); }
.acc-area-info__website svg { flex: 0 0 auto; }
/* Social links stack under the website as one group, so only the first of them
   draws a divider — three ruled rows in a column read as three unrelated
   sections rather than one list of places to find the group. */
.acc-area-info__social {
    margin-top: 0.55rem;
    padding-top: 0;
    border-top: 0;
}
.acc-area-info__social:first-of-type {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(44, 94, 52, 0.25);
}

/* Fact-panel headings match the other area-page section titles. */
.acc-area-glance__title {
    font-size: 1.35rem;
    margin: 2.25rem 0 0.75rem;
}

/* Embedded map in the Visit card — zoomed to the area's address. */
.acc-area-info__mapframe {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(44, 94, 52, 0.35);
    margin-bottom: 0.9rem;
    aspect-ratio: 4 / 3;
}
.acc-area-info__mapframe iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Main-column terrain map section. (The old sidebar-card
   .acc-area-info__mapframe styles above are now unused but harmless.) */
.acc-area-map__frame {
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid rgba(44, 94, 52, 0.35);
    aspect-ratio: 16 / 10;
}
.acc-area-map__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Leaflet topo map — canvas fills the frame; subtle green wash ties the
   OpenTopoMap palette to the site (soft-light blend, clicks pass through). */
.acc-area-map__frame { position: relative; }
.acc-area-map__canvas {
    width: 100%;
    height: 100%;
    background: #eef2e8;
    z-index: 0;
}
/* Palette theming happens in the vector style itself (area-map.js restyle):
   cream ground, green parks, leaf-green trails, faded buildings/side streets. */
.acc-area-map__pin { background: none; border: none; line-height: 0; }
.acc-area-map__pin svg { filter: drop-shadow(0 2px 3px rgba(13, 43, 18, 0.45)); }
/* Round the zoom controls to match the site's pill language. */
.acc-area-map__frame .maplibregl-ctrl-group {
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid #2c5e34;
    box-shadow: none;
}
.acc-area-map__frame .maplibregl-ctrl-group button { color: #1a3a1f; }
.acc-area-map__frame .maplibregl-ctrl-attrib { font-size: 0.6rem; }

/* Area intro — the first paragraph of each area's content reads as a lede:
   big serif in forest green, sitting flush under the highlight chips. */
.single-acc_area .wp-block-post-content > p:first-of-type {
    font-family: var(--wp--preset--font-family--serif, Georgia, serif);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--wp--preset--color--primary, #1a3a1f);
    margin: 0 0 1.75rem;
    text-wrap: pretty;
}

/* Share row in the sidebar Visit card */
.acc-area-info__share {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(44, 94, 52, 0.25);
}

/* ---------------------------------------------------------------
   "Cared for by ..." — grid card line + area-page credit
   ---------------------------------------------------------------
   Replaces a whole Participating-groups section that listed the same eleven
   parks a second time. Quiet on the card so it does not compete with the park
   name; given room on the area page, where a logo is legible.
   --------------------------------------------------------------- */
.acc-nature-card__group {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	margin: 0.35rem 0 0;
	font-size: 0.82rem;
	line-height: 1.3;
	color: var(--wp--preset--color--muted, #5b5847);
}

/* The heart sits with the words rather than beside them: sized in em so it
   tracks the text, and nudged down a hair because a baseline-aligned icon
   always reads slightly high next to lowercase letters. */
.acc-heart {
	flex: none;
	width: 0.95em;
	height: 0.95em;
	transform: translateY(0.1em);
	color: var(--wp--preset--color--leaf, #3d6b3f);
}

/* What is on at this area next. Carries the card's only live data, so it sits
   a step brighter than the group credit above it without shouting. */
.acc-nature-card__next {
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
	margin: 0.45rem 0 0;
	font-size: 0.85rem;
	line-height: 1.35;
	color: var(--wp--preset--color--primary, #1a3a1f);
}

.acc-nature-card__next svg {
	flex: none;
	margin-top: 0.15rem;
	opacity: 0.75;
}

/* The card title is a stretched link covering the whole card, so this one has
   to be lifted above it or the anchor underneath swallows the click. */
.acc-nature-card__next a {
	position: relative;
	z-index: 2;
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.acc-nature-card__next a:hover {
	text-decoration-thickness: 2px;
}

.acc-area-info__group {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--wp--preset--color--border, #d9d5c7);
}

.acc-area-info__group-label {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 0.5rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted, #5b5847);
}

/* Uppercase letters have no descenders and sit optically higher, so the label
   heart is centered and left a touch larger than the card one. */
.acc-area-info__group-label .acc-heart {
	width: 1.1em;
	height: 1.1em;
	transform: none;
}

.acc-area-info__group-logo {
	display: block;
	width: auto;
	max-width: min(160px, 100%);
	max-height: 64px;
	height: auto;
	margin: 0 0 0.5rem;
	object-fit: contain;
}

.acc-area-info__group-name {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--wp--preset--color--primary, #1a3a1f);
}

.acc-area-info__group-name a {
	text-decoration: none;
}

.acc-area-info__group-name a:hover {
	text-decoration: underline;
}

/* Captions are pinned open where there is no hover, so on the smallest tiles
   the photographer credit is what pushes the species name out of the box. */
@media (hover: none) and (max-width: 479px) {
    .acc-inat__caption { padding: 0.9rem 0.4rem 0.35rem; }
    .acc-inat__by { display: none; }
}

/* The template hard-codes minHeight:460 on the hero cover, which is taller
   than a landscape phone viewport. */
@media (max-height: 560px) {
    .acc-area-hero { min-height: 62vh !important; }
}
@media (max-width: 430px) {
    .acc-area-hero { min-height: 360px !important; }
}
