/* ============================================================
   What's new (/whats-new/)
   The shared tool intro, then "Coming soon" cards and a dated log
   of recent updates, with the privacy page's "On this page" aside
   (prose-layout / prose-aside / prose-toc in global.css).
   ============================================================ */

/* --- Tags: New / Improved / Fixed --- */
.wn-tag {
    display: inline-flex;
    align-items: center;
    flex: none;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
}

.wn-tag--new      { background: rgba(128, 195, 66, 0.16); color: #b5e58a; }
.wn-tag--improved { background: rgba(39, 170, 226, 0.16); color: #7fd0f2; }
.wn-tag--fixed    { background: rgba(245, 158, 11, 0.16); color: #fcd34d; }

/* --- Layout --- */
.wn-main {
    min-width: 0;
}

.panel .wn-section-title {
    margin: 0 0 18px;
    text-align: left;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-text-light);
    scroll-margin-top: 24px;
}

/* --- Coming soon --- */
.wn-soon {
    padding: 26px 28px 28px;
    background:
        radial-gradient(50% 120% at 100% 0%, rgba(255, 209, 0, 0.07), transparent 70%),
        var(--color-bg-panel);
}

.wn-soon__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.wn-soon__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border: 1px dashed rgba(255, 209, 0, 0.3);
    border-radius: 14px;
    background: rgba(255, 209, 0, 0.03);
    color: inherit;
    text-decoration: none;
    scroll-margin-top: 24px;
}

a.wn-soon__card {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

a.wn-soon__card:hover {
    border-color: rgba(255, 209, 0, 0.6);
    background: rgba(255, 209, 0, 0.06);
    text-decoration: none;
}

.wn-soon__icon svg {
    display: block;
    width: 22px;
    height: 22px;
    margin-bottom: 6px;
    color: var(--color-wow-gold);
}

.wn-soon__tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-wow-gold);
}

.wn-soon__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-light);
}

.wn-soon__body {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

/* --- Recent updates: a dated timeline --- */
.wn-log {
    padding: 26px 28px 10px;
}

.wn-entry {
    position: relative;
    padding: 0 0 22px 26px;
    border-left: 1px solid var(--color-border-light);
    margin-left: 6px;
}

.wn-entry:last-child {
    border-left-color: transparent;
}

.wn-entry::before {
    /* 13px circle, centered on the 1px line (its center sits half a pixel left
       of the padding edge) and on the date's first line (24px tall) */
    content: "";
    position: absolute;
    box-sizing: border-box;
    left: -7px;
    top: 5.5px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 0 4px rgba(39, 170, 226, 0.12);
}

.panel .wn-entry__date {
    margin: 0 0 12px;
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-light);
    scroll-margin-top: 24px;
}

.wn-entry__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wn-entry__list li {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
}

.wn-entry__list .wn-tag {
    justify-content: center;
}

.wn-entry__text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.wn-entry__text a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(39, 170, 226, 0.4);
    text-underline-offset: 3px;
}

.wn-note {
    border-color: rgba(255, 209, 0, 0.2);
    background: rgba(255, 209, 0, 0.03);
}

@media (max-width: 1000px) {
    .wn-soon__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .wn-soon,
    .wn-log {
        padding-left: 18px;
        padding-right: 18px;
    }
    .wn-entry__list li {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }
    .wn-entry__list .wn-tag {
        justify-self: start;
    }
}
