/*
 * The changelog of [ehbo_changelog] (1.3.0), after moneybird.nl/changelog: one timeline, every
 * update a row with its date on the left and a card on the right (stacked on a phone). No filter
 * buttons and no month headings on the website (owner 2026-10-07).
 * Colours, radius, borders and fonts come from the theme's own tokens (leflite: --primary,
 * --general-border-radius, --card-border-color, …) so the page looks like the rest of the
 * website. The text sizes are the theme's own: "Lees meer in de kennisbank" inherits the size
 * of the text around it.
 * The label colours match the badges of the app (Nieuw green, Verbeterd blue, Opgelost amber).
 */

.ehbo-changelog {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* No ring after a mouse or touch click; keyboard focus keeps it. */
.ehbo-changelog__more:focus:not(:focus-visible) {
    outline: none;
}

.ehbo-changelog__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    scroll-margin-top: 140px;
}

@media (min-width: 768px) {
    .ehbo-changelog__item {
        grid-template-columns: 11rem minmax(0, 1fr);
        gap: 2rem;
    }

    .ehbo-changelog__meta {
        padding-top: 1.5rem;
    }
}

.ehbo-changelog__meta {
    font-size: var(--small-font-size, 0.875rem);
    color: var(--darkgray, #6b7280);
}

.ehbo-changelog__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--white, #fff);
    border: var(--card-border-width, 1px) solid var(--card-border-color, rgba(0, 0, 0, 0.12));
    border-radius: var(--general-border-radius, 12px);
}

.ehbo-changelog__label {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    font-size: var(--tiny-font-size, 0.75rem);
    font-weight: 600;
    line-height: 1.5;
}

.ehbo-changelog__label.is-new {
    background: #dcfce7;
    color: #166534;
}

.ehbo-changelog__label.is-improved {
    background: #dbeafe;
    color: #1e40af;
}

.ehbo-changelog__label.is-fixed {
    background: #fef3c7;
    color: #92400e;
}

.ehbo-changelog__title {
    margin: 0;
}

.ehbo-changelog__image {
    width: 100%;
    margin: 0.25rem 0;
}

/* Never larger than needed (owner 2026-10-12): at most ~22rem high, a portrait image narrower
   still; same idea as the image in the app's popup (max-h-80, object-contain). */
.ehbo-changelog__image-link {
    display: inline-block;
    max-width: 100%;
    cursor: zoom-in;
    -webkit-tap-highlight-color: transparent;
}

.ehbo-changelog__image-link:focus:not(:focus-visible) {
    outline: none;
}

.ehbo-changelog__img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 22rem;
    height: auto;
    border: 1px solid var(--card-border-color, rgba(0, 0, 0, 0.12));
    border-radius: var(--general-border-radius-small, 8px);
}

.ehbo-changelog__summary {
    margin: 0;
    font-weight: 600;
}

.ehbo-changelog__body > :first-child {
    margin-top: 0;
}

.ehbo-changelog__body > :last-child {
    margin-bottom: 0;
}

/* Lists: the browser default (40px indent) and the editor's <p> inside every <li> gave a deep,
   loose list that squeezed the text on a phone. Same indent and spacing as the lists in a
   kennisbank item on our site (.ehbo-handleiding__content ul: 22px, 6px between items). */
.ehbo-changelog__body ul,
.ehbo-changelog__body ol {
    padding-left: 22px;
}

.ehbo-changelog__body li {
    margin-bottom: 6px;
}

.ehbo-changelog__body li > p {
    margin: 0;
}

.ehbo-changelog__more {
    font-weight: 600;
    color: var(--primary, #2b3990);
    text-decoration: underline;
    text-underline-offset: 2px;
    -webkit-tap-highlight-color: transparent;
}

.ehbo-changelog__more:hover {
    text-decoration-thickness: 2px;
}

.ehbo-changelog__empty {
    margin: 0;
    color: var(--darkgray, #6b7280);
}
