/* =========================================================
   FAMILY LAW GLOSSARY
========================================================= */

.zl-glossary {
	    font-family: "Barlow", sans-serif;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 10px 0 60px;
    box-sizing: border-box;
}


/* =========================================================
   TITLE
========================================================= */

.zl-glossary-title {
    margin: 0 0 42px;
    padding: 0;

    text-align: center;

    font-family: inherit;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 700;

    color: #173b2c;
}


/* =========================================================
   ALPHABET
========================================================= */

.zl-glossary-alphabet {
display: grid;
    grid-template-columns: auto auto auto auto auto auto auto auto auto;
    gap: 10px;
    justify-content: center;
	    margin-bottom: 50px;
}


/* =========================================================
   ALPHABET BUTTON
========================================================= */

.zl-glossary-alphabet .zl-glossary-letter,
.zl-glossary-section-letter{
    border-radius: 52px;
	padding: 0;
	    width: 69px;
    height: 49px;
    border: 0;
	font-weight: 400;
    background: var( --e-global-color-305d552 ) !important;
    color: var( --e-global-color-accent ) !important;
    font-family: inherit;
    font-size: 24px;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}


/* =========================================================
   HOVER
========================================================= */

.zl-glossary-letter:not(:disabled):hover {
    background: #e7e4d4;
}


/* =========================================================
   ACTIVE LETTER
========================================================= */

.zl-glossary-letter.is-active {
    background: var( --e-global-color-accent ) !important;
    color: #f5f5f5 !important;
}


/* =========================================================
   DISABLED LETTER
========================================================= */

.zl-glossary-letter.is-disabled, .zl-glossary-letter:disabled {
    background: rgba(207, 207, 207, 0.2) !important;
    color: #CFCFCF !important;
    cursor: not-allowed;
}


/* =========================================================
   RESULTS
========================================================= */

.zl-glossary-results {
    width: 100%;

    position: relative;

    transition: opacity 0.2s ease;
}

.zl-glossary-section {
    background-image: url(/wp-content/uploads/2026/09/Line-Break.png);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 100% 2px;
    width: 100%;
    margin: 0 0 60px;
    padding: 0 0 20px;
}


/* =========================================================
   SECTION LETTER BADGE
========================================================= */

.zl-glossary-section-letter {
    display: flex;
    align-items: center;
    justify-content: center;
	margin-bottom: 20px;
}


/* =========================================================
   GLOSSARY ITEM
========================================================= */

.zl-glossary-item:not(:last-child) {
    margin: 0;
    padding: 0 0 14px;
    margin-bottom: 14px;
}


/* =========================================================
   TERM TITLE
========================================================= */

.zl-glossary-term {
margin: 0 0 4px;
    font-size: 24px;
    font-weight: 500;
}


/* =========================================================
   DEFINITION
========================================================= */
.zl-glossary-definition {
    font-size: 16px;
}


/*
 * WordPress editor paragraphs
 */

.zl-glossary-definition p {
    margin: 0 0 5px;
}


.zl-glossary-definition p:last-child {
    margin-bottom: 0;
}


/*
 * Links inside definition
 */

.zl-glossary-definition a {
    color: inherit;
    text-decoration: underline;
}


/* =========================================================
   NO RESULTS
========================================================= */

.zl-glossary-no-results {
    padding: 25px 0;

    color: #465750;

    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   AJAX LOADING
========================================================= */

.zl-glossary-results.is-loading {
    opacity: 0.35;
    pointer-events: none;
}


/*
 * Loading spinner
 */

.zl-glossary-results.is-loading::after {
    content: "";

    position: absolute;

    top: 30px;
    left: 50%;

    width: 24px;
    height: 24px;

    margin-left: -12px;

    border: 2px solid #ddd;
    border-top-color: #173b2c;

    border-radius: 50%;

    animation: zl-glossary-spin 0.7s linear infinite;
}


@keyframes zl-glossary-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 767px) {

    .zl-glossary {
        padding: 5px 20px 40px;
    }


    .zl-glossary-title {
        font-size: 21px;
        margin-bottom: 30px;
    }


    .zl-glossary-alphabet {
        width: 100%;

        grid-template-columns: repeat(9, 1fr);

        gap: 7px 5px;

        margin-bottom: 35px;
    }


    .zl-glossary-letter {
        width: 40px;
        max-width: 100%;

        justify-self: center;
    }


    .zl-glossary-term {
        font-size: 15px;
    }


    .zl-glossary-definition {
        font-size: 10px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    .zl-glossary {
        padding-left: 15px;
        padding-right: 15px;
    }


    .zl-glossary-title {
        font-size: 20px;
        margin-bottom: 25px;
    }


    .zl-glossary-alphabet {
        grid-template-columns: repeat(7, 1fr);
        gap: 8px 5px;
    }


    .zl-glossary-letter {
        width: 38px;
        height: 28px;

        line-height: 28px;

        font-size: 11px;
    }


    .zl-glossary-section {
        margin-bottom: 28px;
    }


    .zl-glossary-section-letter {
        width: 38px;
        height: 28px;

        margin-bottom: 13px;
    }


    .zl-glossary-item {
        padding-bottom: 13px;
        margin-bottom: 14px;
    }


    .zl-glossary-term {
        font-size: 14px;
    }


    .zl-glossary-definition {
        font-size: 10px;
        line-height: 1.5;
    }

}