.guide-page {
    background: #fcfcfa;
    letter-spacing: 0;
}
.guide-main {
    max-width: 1260px;
    margin: auto;
    padding: 32px 32px 64px;
}
.guide-heading,
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.guide-heading h1 {
    font-size: 38px;
    margin: 6px 0 20px;
    letter-spacing: 0;
}
.guide-heading .eyebrow {
    margin: 0;
    font-size: 11px;
}
.edition {
    font-size: 12px;
    border: 1px solid #cbdad4;
    padding: 8px 12px;
    border-radius: 4px;
    color: #3e6559;
    background: #eef6f1;
}
.guide-sections {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid #dfe3df;
    margin-bottom: 24px;
}
.guide-sections a {
    padding: 12px 0;
    font-weight: 700;
    text-decoration: none;
}
.guide-sections a[aria-current="page"] {
    border-bottom: 3px solid #7550a9;
}
.section-heading h2 {
    font-size: 23px;
    letter-spacing: 0;
    margin: 12px 0 20px;
}
.section-heading span,
.scope-note {
    font-size: 13px;
    color: #656276;
}
.map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr);
    gap: 32px;
}
.map-figure {
    margin: 0;
    min-width: 0;
}
.map-surface {
    position: relative;
    background: #46b9dc;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 8px;
}
.map-surface > img {
    width: 100%;
    height: 100%;
    display: block;
}
.map-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    border: 2px solid white;
    background: #344b43;
    color: white;
    font-weight: 800;
    box-shadow: 0 2px 6px #234a4860;
    cursor: pointer;
}
.map-pin[aria-pressed="true"] {
    background: #7550a9;
    outline: 3px solid #fff;
    outline-offset: 3px;
}
.map-pin:hover {
    background: #7550a9;
}
figcaption {
    font-size: 12px;
    color: #696475;
    line-height: 1.5;
    margin: 10px 0;
}
.district-picker {
    display: grid;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}
#district-list {
    font: inherit;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px;
    background: white;
    color: inherit;
    border: 1px solid #cdd4cf;
    border-radius: 4px;
}
.map-modes,
.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
}
.map-modes button,
.pagination button {
    min-height: 44px;
    min-width: 44px;
    padding: 8px 12px;
    font: inherit;
    font-size: 13px;
    border: 1px solid #cdd4cf;
    border-radius: 4px;
    background: white;
    color: inherit;
    cursor: pointer;
}
.map-modes button[aria-pressed="true"] {
    background: #344b43;
    color: white;
}
.pagination {
    justify-content: center;
    margin-top: 20px;
}
.pagination button:disabled {
    opacity: 0.35;
    cursor: default;
}
[hidden] {
    display: none !important;
}
#district-detail {
    scroll-margin-top: 110px;
    padding: 22px 0;
    line-height: 1.65;
}
#district-detail h3 {
    font-size: 26px;
    margin: 8px 0;
    letter-spacing: 0;
}
.status {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0;
    font-weight: 750;
    color: #397061;
}
.district-panel p {
    font-size: 14px;
}
.district-link {
    display: inline-block;
    margin-top: 12px;
    color: #654196;
    font-weight: 700;
    text-underline-offset: 4px;
}
#collection {
    margin-top: 0;
    scroll-margin-top: 110px;
}
.filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    margin: 24px 0;
}
.filters label {
    font-size: 12px;
    font-weight: 650;
    display: grid;
    gap: 7px;
}
.filters input,
.filters select,
.filters button {
    font: inherit;
    color: inherit;
    background: white;
    border: 1px solid #cdd4cf;
    border-radius: 5px;
    padding: 11px;
    min-width: 0;
    min-height: 44px;
}
.filters button {
    cursor: pointer;
    font-size: 12px;
}
.entry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.entry-card {
    display: block;
    border: 1px solid #e0e4e1;
    border-radius: 8px;
    text-align: left;
    padding: 0;
    overflow: hidden;
    background: white;
    color: inherit;
    cursor: pointer;
    font: inherit;
}
.entry-card:hover {
    border-color: #8d73aa;
    box-shadow: 0 3px 10px #36294310;
}
.entry-card .art {
    height: 168px;
    background-color: #e9f4f0;
}
.entry-card:nth-child(3n + 2) .art {
    background-color: #f6edf1;
}
.entry-card:nth-child(3n) .art {
    background-color: #eaf0fb;
}
.art {
    display: grid;
    place-items: center;
    overflow: hidden;
}
.art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    min-height: 0;
}
.sprite {
    width: 150px;
    height: 150px;
    background-repeat: no-repeat;
    background-size: 400% 200%;
}
.sprite.frog {
    background-image: url("/assets/guide/frog.png");
    background-position: 0 0;
}
.sprite.cat {
    background-image: url("/assets/guide/cat.png");
    background-size: 400% 100%;
    background-position: 100% 0;
}
.sprite.toby {
    background-image: url("/assets/guide/toby.png");
    background-size: 300% 100%;
    background-position: 50% 0;
}
.sprite.watering,
.sprite.butterfly {
    background-image: url("/assets/guide/nature.png");
    background-size: 300% 100%;
}
.sprite.butterfly {
    background-position: 50% 0;
}
.entry-copy {
    padding: 16px;
}
.entry-copy small {
    color: #55766c;
    font-size: 11px;
}
.entry-copy h3 {
    margin: 6px 0;
    font-size: 17px;
    letter-spacing: 0;
}
.entry-copy p {
    margin: 0;
    font-size: 12px;
    color: #746e80;
}
.guide-footer {
    padding: 25px 32px;
    display: flex;
    justify-content: center;
    gap: 24px;
    border-top: 1px solid #dfe3df;
    font-size: 13px;
    flex-wrap: wrap;
}
dialog {
    width: min(640px, calc(100% - 32px));
    max-height: 85dvh;
    overflow: auto;
    padding: 0;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    color: var(--ink);
}
dialog::backdrop {
    background: #202a3ba6;
}
.close-dialog {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 44px;
    height: 44px;
    font-size: 30px;
    background: white;
    border: 1px solid #d5dadd;
    border-radius: 50%;
    cursor: pointer;
    color: inherit;
}
#entry-detail > .art {
    height: 230px;
    background: #e9f4f0;
}
#entry-detail > .art .sprite {
    width: 210px;
    height: 210px;
}
#entry-detail .entry-copy {
    padding: 24px;
}
#entry-title {
    font-size: 28px;
    margin: 8px 0 14px;
    letter-spacing: 0;
}
dl {
    margin: 20px 0;
}
dt {
    font-size: 12px;
    font-weight: 750;
    color: #3e7968;
    margin-top: 18px;
}
dd {
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.65;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #7550a9;
    outline-offset: 3px;
}
@media (max-width: 900px) {
    .map-layout {
        gap: 20px;
        grid-template-columns: minmax(0, 1.3fr) minmax(240px, 1fr);
    }
    .entry-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .filters {
        grid-template-columns: 2fr 1fr 1fr;
    }
    .filters button {
        grid-column: 3;
    }
}
@media (max-width: 650px) {
    .guide-main {
        padding: 24px 16px 40px;
    }
    .guide-heading h1 {
        font-size: 30px;
    }
    .edition {
        font-size: 10px;
        padding: 6px;
    }
    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 0;
        margin-bottom: 16px;
    }
    .section-heading h2 {
        margin-bottom: 8px;
    }
    .map-layout {
        grid-template-columns: 1fr;
    }
    .map-pin {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    #district-detail {
        padding-bottom: 0;
    }
    .filters {
        grid-template-columns: 1fr 1fr;
    }
    .filters label:first-child {
        grid-column: 1/-1;
    }
    .filters button {
        grid-column: 1/-1;
    }
    .entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .entry-card .art {
        height: 140px;
    }
    .entry-copy {
        padding: 12px;
    }
    .entry-copy h3 {
        font-size: 15px;
    }
    .sprite {
        width: 125px;
        height: 125px;
    }
}
