.nwh-activity {
    --nwh-text: #f0f7f2;
    --nwh-muted: #b6c4ba;
    --nwh-accent: #8ce2a7;
    --nwh-surface: #171d19;
    --nwh-line: #35423a;
    --nwh-hero-top: #193329;
    --nwh-hero-bottom: #151a16;
    --nwh-hero-ring: #87c99d26;
    --nwh-button: #9ee8b2;
    --nwh-button-hover: #b6f2c5;
    --nwh-button-text: #10321b;
    display: grid;
    gap: clamp(.65rem, 2vw, 1rem);
    min-width: 0;
    margin-block: 0 1.25rem;
    color: var(--nwh-text);
}

[data-theme="day"] .nwh-activity {
    --nwh-text: #1b2b21;
    --nwh-muted: #465e50;
    --nwh-accent: #22623c;
    --nwh-surface: #fcfffc;
    --nwh-line: #bdcfc2;
    --nwh-hero-top: #deeee3;
    --nwh-hero-bottom: #f5faf6;
    --nwh-hero-ring: #3a745329;
    --nwh-button: #286341;
    --nwh-button-hover: #1e5133;
    --nwh-button-text: #fff;
}

.nwh-activity .nwh-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    justify-items: start;
    gap: .75rem;
    padding: clamp(1.05rem, 4vw, 2rem);
    overflow: hidden;
    border: 1px solid var(--nwh-line);
    border-radius: 1.4rem;
    background: linear-gradient(126deg, var(--nwh-hero-bottom) 36%, var(--nwh-hero-top));
}

.nwh-activity .nwh-hero::before,
.nwh-activity .nwh-hero::after {
    position: absolute;
    z-index: -1;
    inset-inline-end: -2.25rem;
    inset-block-start: -8rem;
    width: clamp(13rem, 28vw, 21rem);
    aspect-ratio: 1;
    border: 1px solid var(--nwh-hero-ring);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.nwh-activity .nwh-hero::after {
    inset-inline-end: -4rem;
    inset-block-start: -6rem;
}

.nwh-activity .nwh-kicker {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin: 0;
    color: var(--nwh-accent);
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .075em;
    line-height: 1.4;
}

.nwh-activity .nwh-dot {
    flex: 0 0 .45rem;
    height: .45rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 .23rem var(--nwh-hero-ring);
}

.nwh-activity .nwh-hero h2 {
    max-width: 25ch;
    margin: 0;
    color: var(--nwh-text);
    font-size: clamp(1.75rem, 4vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.11;
    text-wrap: balance;
}

.nwh-activity .nwh-hero p:not(.nwh-kicker) {
    max-width: 55ch;
    margin: 0;
    color: var(--nwh-muted);
    font-size: .96rem;
    line-height: 1.6;
}

.nwh-activity .nwh-primary {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.75rem;
    margin-block-start: .2rem;
    padding: .5rem .85rem;
    border-radius: .7rem;
    background: var(--nwh-button);
    color: var(--nwh-button-text);
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
}

.nwh-activity .nwh-primary:hover {
    background: var(--nwh-button-hover);
    color: var(--nwh-button-text);
}

.nwh-activity a:focus-visible,
.nwh-activity button:focus-visible,
.nwh-activity h3:focus-visible {
    outline: 2px solid var(--nwh-accent);
    outline-offset: 3px;
}

.nwh-activity .nwh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: clamp(.65rem, 2vw, 1rem);
    min-width: 0;
}

.nwh-activity .nwh-card {
    min-width: 0;
    padding: clamp(.95rem, 2.5vw, 1.2rem);
    border: 1px solid var(--nwh-line);
    border-radius: 1.05rem;
    background: var(--nwh-surface);
}

.nwh-activity .nwh-card h3 {
    margin: 0;
    color: var(--nwh-text);
    font-size: clamp(1.05rem, 2.4vw, 1.26rem);
    font-weight: 780;
    line-height: 1.25;
    scroll-margin-block-start: 5.5rem;
}

.nwh-activity .nwh-card p {
    margin: .45rem 0 0;
    color: var(--nwh-muted);
    font-size: .86rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.nwh-activity .nwh-card a:not(.nwh-primary) {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    min-height: 2.75rem;
    color: var(--nwh-accent);
    font-size: .88rem;
    font-weight: 750;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: .17em;
}

.nwh-activity .nwh-card a:hover {
    text-decoration-thickness: .13em;
}

.nwh-activity .nwh-list {
    margin: .65rem 0 0;
    padding: 0;
    list-style: none;
}

.nwh-activity .nwh-list li {
    min-width: 0;
    padding-block: .45rem;
    border-block-start: 1px solid var(--nwh-line);
}

.nwh-activity .nwh-list .nwh-item-label,
.nwh-activity .nwh-list small,
.nwh-activity .nwh-list time {
    display: block;
    color: var(--nwh-muted);
    font-size: .77rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.nwh-activity .nwh-list .nwh-item-label {
    font-weight: 680;
}

.nwh-activity [hidden] {
    display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
    .nwh-activity .nwh-dot {
        animation: nwh-activity-pulse 1.35s ease-out 2;
    }

    @keyframes nwh-activity-pulse {
        0%, 100% { box-shadow: 0 0 0 .23rem var(--nwh-hero-ring); }
        55% { box-shadow: 0 0 0 .5rem transparent; }
    }
}

@media (forced-colors: active) {
    .nwh-activity .nwh-primary {
        border: 1px solid ButtonText;
    }

    .nwh-activity .nwh-dot {
        border: 1px solid currentColor;
    }
}
