/* ── The beekeeper page ─────────────────────────────────────────────────────
   A page about a person. Same grammar as the apiary page — a rail beside a
   column, hairlines as the only divider, one pill as the only loud element.
   Avatar carries a double gold ring; the visiting-card band uses a soft
   cream→plate gradient. Product cards in the catalogue match Home / Explore.
   Markup: app/templates/beekeeper.html
   Content: app.presenters.beekeeper_page
   Tokens (--plate-bg, --hairline, --pill-*) are declared in styles.css across
   all three themes; nothing here redefines one.
   ------------------------------------------------------------------------- */
.beekeeper-page {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.beekeeper-page__top {
    display: grid;
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
    padding: 2rem 1.75rem;
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--bg-color) 0%, var(--plate-bg) 100%);
    border: 1px solid var(--hairline);
}

/* ── Left rail: who this is ── */
.beekeeper-rail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.beekeeper-rail__name {
    margin: 0;
    color: var(--text-color);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* The merged page's one line about the place it is also about. */
.beekeeper-rail__place {
    margin: -0.75rem 0 0;
    color: var(--text-muted);
    font-family: var(--font-ui);
}

.beekeeper-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0;
    padding: 1rem 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    list-style: none;
}

.beekeeper-counts__item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.beekeeper-counts__value {
    color: var(--secondary-color);
    font-family: var(--font-ui);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.beekeeper-counts__label {
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 0.8rem;
}

/* The one loud thing on the page. */
.beekeeper-rail__cta {
    align-self: flex-start;
}

/* The way through to the place view, and its map. Quiet on purpose: a second
   button would make the page argue with itself about what to do next. */
.beekeeper-rail__link {
    align-self: flex-start;
    margin-top: -0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-ui);
}

.beekeeper-rail__link:hover {
    color: var(--text-color);
    text-decoration: underline;
}

/* ── Right column: the face and the words ── */
.beekeeper-main {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.beekeeper-portrait {
    margin: 0;
    display: flex;
    justify-content: flex-start;
}

/* Round avatar with a double gold ring — the visiting-card face.
   Middle gap uses --plate-bg so the ring reads on both the cream→plate
   gradient (light) and the darker plate band (dark theme). */
.beekeeper-portrait__plate {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(11rem, 42vw);
    aspect-ratio: 1;
    padding: 0.35rem;
    background-color: var(--surface-color);
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 0 4px var(--plate-bg), 0 0 0 7px var(--primary-color);
    overflow: hidden;
}

.beekeeper-portrait__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.beekeeper-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.beekeeper-section__heading {
    margin: 0;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.beekeeper-section__text {
    margin: 0;
    color: var(--text-color);
    font-family: var(--font-ui);
    line-height: 1.7;
    white-space: pre-wrap;
}

/* ── The places this beekeeper keeps ── */
.beekeeper-places,
.beekeeper-listings,
.beekeeper-notes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--hairline);
}

.beekeeper-places__list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.beekeeper-place {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--hairline);
}

.beekeeper-place:first-child {
    border-top: 1px solid var(--hairline);
}

.beekeeper-place__name {
    color: var(--text-color);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.beekeeper-place__name:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.beekeeper-place__line {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-ui);
}

.beekeeper-place__count {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-ui);
}

.beekeeper-place__count-value {
    color: var(--secondary-color);
    font-weight: 700;
}

/* ── The catalogue, across every place — same .product-card as Home ── */
.beekeeper-listings__grid {
    margin-top: 0;
}

.beekeeper-listings__empty {
    margin: 0;
    padding: 2.5rem 0;
    color: var(--text-muted);
    font-family: var(--font-ui);
}

/* ── Notes and recipes: declared content on a soft plate ── */
.beekeeper-notes__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 1.5rem 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.beekeeper-note {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    background: var(--plate-bg);
    border: 1px solid var(--hairline);
}

.beekeeper-note__title {
    margin: 0;
    color: var(--text-color);
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.3;
}

.beekeeper-note__date {
    margin: 0;
    color: var(--text-subtle);
    font-size: 0.8rem;
    font-family: var(--font-ui);
}

.beekeeper-note__text {
    margin: 0;
    color: var(--text-muted);
    font-family: var(--font-ui);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .beekeeper-page {
        gap: 2rem;
    }

    .beekeeper-page__top {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem 1.15rem;
    }

    .beekeeper-rail__name {
        font-size: 1.7rem;
    }

    .beekeeper-rail__cta {
        align-self: stretch;
        text-align: center;
    }

    .beekeeper-portrait {
        justify-content: center;
    }

    .beekeeper-place__count {
        margin-left: 0;
    }
}
