/*
 * Numerorivi: key figure row. Icon on the left, big number overlapping it, text on the right.
 *
 * Usage (GB):
 *   container .numerorivi
 *     container .numero          -> GB image (icon) + headline p .numero-arvo (e.g. "20+")
 *     container .numero-teksti   -> headline h3 + headline p
 * Stack several rows; dividers come from --border-clr.
 */
@media only screen and (min-width: 320px) {
    .numerorivi {
        display: flex;
        flex-direction: column;
        gap: 28px;
        padding: 40px 0;
        border-top: 2px solid var(--border-clr);
    }

    .numerorivi:last-child {
        border-bottom: 2px solid var(--border-clr);
    }

    .numerorivi .numero {
        position: relative;
        display: flex;
        align-items: center;
        min-height: 130px;
        padding-left: 92px;
    }

    .numerorivi .numero figure {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    .numerorivi .numero img {
        height: 118px;
        width: auto;
    }

    .numerorivi .numero-arvo {
        position: relative;
        margin: 0;
        font-family: var(--number-font);
        font-weight: 500;
        font-size: clamp(88px, 9vw, 150px);
        line-height: 0.9;
        letter-spacing: -0.02em;
        color: var(--accent-clr);
    }

    .numerorivi .numero-teksti h3 {
        margin-bottom: 10px;
    }

    .numerorivi .numero-teksti p {
        max-width: 620px;
    }

    .numerorivi .numero-teksti a {
        text-decoration: underline;
        text-underline-offset: 4px;
    }
}

@media only screen and (min-width: 768px) {
    .numerorivi {
        flex-direction: row;
        align-items: center;
        gap: 56px;
    }

    .numerorivi .numero {
        flex: 0 0 42%;
        padding-left: 110px;
    }

    .numerorivi .numero img {
        height: 140px;
    }

    .numerorivi .numero-teksti {
        flex: 1 1 auto;
    }
}

/* Editor: inner blocks sit in .block-editor-block-list__layout, so the row layout goes there */
@media only screen and (min-width: 768px) {
    .editor-styles-wrapper .numerorivi > .block-editor-inner-blocks > .block-editor-block-list__layout {
        display: flex;
        align-items: center;
        gap: 56px;
    }

    .editor-styles-wrapper .numerorivi > .block-editor-inner-blocks > .block-editor-block-list__layout > .numero {
        flex: 0 0 42%;
    }

    .editor-styles-wrapper .numerorivi > .block-editor-inner-blocks > .block-editor-block-list__layout > .numero-teksti {
        flex: 1 1 auto;
    }
}
