/* ──────────────────────────────────────────────────────────────
   Harvest highlight — the "kg harvested so far" card that links
   to the harvest meter. Used on produce.html and
   practices/our-practices.html. Number filled by
   js/harvest-highlight.js.
   ────────────────────────────────────────────────────────────── */

.harvest-highlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    background: #e8dcc4;
    border: 1px solid #c4a572;
    border-radius: 12px;
    padding: 1.15rem 1.5rem;
    margin-bottom: 1.5rem;
    color: #2d3319;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.harvest-highlight:hover,
.harvest-highlight:focus-visible {
    transform: translateY(-2px);
    border-color: #5a7a3a;
    box-shadow: 0 6px 18px rgba(45, 51, 25, 0.12);
}
.harvest-highlight:focus-visible {
    outline: 2px solid #5a7a3a;
    outline-offset: 3px;
}

.hh-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.hh-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4a5a2f;
}

.hh-figure {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2.2rem, 6vw, 2.9rem);
    font-weight: 700;
    line-height: 1.05;
    color: #2d3319;
    font-variant-numeric: tabular-nums;
}
.hh-unit {
    font-size: 0.55em;
    font-weight: 600;
    color: #5a7a3a;
    margin-left: 0.1em;
}

.hh-sub {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    color: #4a5a2f;
    line-height: 1.4;
}

.hh-cta {
    flex-shrink: 0;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #5a7a3a;
    white-space: nowrap;
}
.harvest-highlight:hover .hh-cta { color: #2d3319; }

/* Pulsing "live" dot, matching the harvest meter header */
.hh-live-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5a7a3a;
    flex-shrink: 0;
}
.hh-live-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #5a7a3a;
    animation: hhRipple 2.2s ease-out infinite;
}
@keyframes hhRipple {
    0%   { transform: scale(1);   opacity: 0.6; }
    100% { transform: scale(2.6); opacity: 0; }
}

/* Data couldn't load — keep the card as a plain, still-clickable prompt */
.harvest-highlight.hh-nodata .hh-figure { display: none; }

@media (max-width: 560px) {
    .harvest-highlight {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        padding: 1rem 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .harvest-highlight { transition: none; }
    .harvest-highlight:hover,
    .harvest-highlight:focus-visible { transform: none; }
    .hh-live-dot::after { animation: none; }
}
