/* Loaded only for the Županijske linije content item. */
.site-header.county-lines-header {
    height: 300px;
}

.county-lines-header .content-title-area {
    width: 100%;
}

.county-lines-brand {
    margin: 20px auto 0;
    width: min(520px, 75%);
    line-height: 1;
}

.county-lines-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.county-lines-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.county-lines-intro {
    position: relative;
    padding: 62px 24px 32px;
    text-align: center;
    background: #f6f6f6;
}

.county-lines-emblem {
    position: absolute;
    top: -43px;
    left: calc(50% - 43px);
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #f5f7fa url('../icons/zupanijske-linije-content-icon.png') no-repeat center;
}

.county-lines-description {
    max-width: 1280px;
    margin: 0 auto 24px;
    color: #161616;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.5;
}

.county-lines-description p {
    margin: 0;
}

.county-lines-list {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.county-lines-list > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
}

.county-lines-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin: 0;
}

.county-lines-summary {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 84px;
    padding: 8px 20px 8px 8px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 24px rgb(0 0 0 / 7%);
}

.county-lines-number {
    display: flex;
    flex: 0 0 66px;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    box-sizing: border-box;
    border: 5px solid #358122;
    border-radius: 50%;
    background: #358122;
    box-shadow: inset 0 0 0 4px #8acb64;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.county-lines-name {
    color: #086cb2;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.county-lines-actions {
    display: flex;
    gap: 16px;
}

a.county-lines-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 168px;
    min-height: 52px;
    box-sizing: border-box;
    padding: 12px 20px;
    border: 1px solid #438dbe;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 3px 8px rgb(0 0 0 / 7%);
    color: #171717;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.county-lines-button img {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

a.county-lines-button:hover {
    color: #075d97;
    border-color: #075d97;
    background: #eef7fc;
}

a.county-lines-button:focus-visible {
    outline: 3px solid #075d97;
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .county-lines-row {
        gap: 16px;
    }

    .county-lines-actions {
        gap: 8px;
    }

    a.county-lines-button {
        min-width: 140px;
        padding-inline: 14px;
    }

    .county-lines-summary {
        gap: 14px;
    }
}

@media (max-width: 700px) {
    .site-header.county-lines-header {
        height: 265px;
    }

    .county-lines-brand {
        margin-top: 26px;
        width: min(380px, 88%);
    }

    .county-lines-intro {
        padding: 56px 20px 28px;
    }

    .county-lines-description {
        font-size: 16px;
    }

    .county-lines-list {
        padding: 24px 16px 40px;
    }

    .county-lines-list > ul {
        gap: 16px;
    }

    .county-lines-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 12px;
        border-radius: 12px;
        box-shadow: 0 5px 24px rgb(0 0 0 / 7%);
    }

    .county-lines-summary {
        min-height: 62px;
        padding: 0;
        box-shadow: none;
    }

    .county-lines-number {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
        font-size: 20px;
    }

    .county-lines-name {
        font-size: 15px;
    }

    .county-lines-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .county-lines-actions .county-lines-button {
        min-width: 0;
        padding: 10px 8px;
        gap: 7px;
        font-size: 13px;
    }
}
