/* ===========================================================================
   Version history
   ===========================================================================
   The page shares main.page-shell, .page-card and the .rules-* helpers from
   assets/css/rules/_base.css; this file only adds the changelog cards. */

.versions-list {
    display: grid;
    gap: 0.9rem;
    margin: 0 0 1.5rem;
}

.version-entry {
    margin: 0;
    padding: 1.15rem 1.25rem;
    background: linear-gradient(180deg, #fbfcff, #f3f5ff);
    border: 1px solid #e4e7f5;
    border-radius: 14px;
}

/* the newest release sits at the top of the list */
.versions-list .version-entry:first-child {
    background: #fff;
    border-color: rgba(0, 119, 181, 0.35);
    box-shadow: 0 10px 26px rgba(31, 35, 51, 0.08);
}

.version-entry h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.6rem;
    color: var(--dark-gray);
    font-size: 1.15rem;
}

.version-date {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(51, 51, 51, 0.06);
    color: #5e6773;
    font-size: 0.78rem;
    font-weight: 600;
}

/* What kind of release it was, one tag per entry, beside the date. The label is
   written in the markup and the kind decides the tint, so a new tag only needs
   a line below. Mixing the word with the colour keeps the page readable when it
   is skimmed for "what changed lately". */
.version-tag {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--tag-bg, rgba(51, 51, 51, 0.06));
    color: var(--tag-ink, #5e6773);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.version-tag--feature {
    --tag-ink: #0a6b34;
    --tag-bg: rgba(10, 128, 64, 0.12);
}

.version-tag--fix {
    --tag-ink: #b21326;
    --tag-bg: rgba(207, 10, 44, 0.1);
}

.version-tag--update {
    --tag-ink: #075a8a;
    --tag-bg: rgba(0, 119, 181, 0.12);
}

.version-tag--design {
    --tag-ink: #5b3fc4;
    --tag-bg: rgba(107, 75, 214, 0.12);
}

.version-tag--mobile {
    --tag-ink: #0b6f6f;
    --tag-bg: rgba(15, 143, 143, 0.13);
}

.version-tag--accessibility {
    --tag-ink: #8a5200;
    --tag-bg: rgba(200, 120, 0, 0.14);
}

.version-tag--store {
    --tag-ink: #a3177a;
    --tag-bg: rgba(199, 32, 145, 0.11);
}

.version-tag--privacy {
    --tag-ink: #3c465e;
    --tag-bg: rgba(60, 70, 94, 0.12);
}

.version-tag--content {
    --tag-ink: #8a3bb8;
    --tag-bg: rgba(164, 72, 201, 0.11);
}

.version-tag--release {
    --tag-ink: #1f2433;
    --tag-bg: rgba(31, 36, 51, 0.12);
}

.version-entry ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.version-entry li {
    position: relative;
    max-width: 68ch;
    margin: 0 0 0.35rem;
    padding-left: 1.15rem;
    color: #3f4457;
    line-height: 1.6;
}

/* brand-coloured bullet */
.version-entry li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-image: linear-gradient(180deg, var(--linkedin-color), var(--interpol-color));
}

.version-entry li:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .version-entry {
        padding: 1rem;
    }

    .version-entry h2 {
        font-size: 1.05rem;
    }
}
