/* Kashrut page (page ID 835) - loaded only on that page from functions.php (add_theme_scripts).
   The server strips ?ver=, so after changing this file rename it (kashrut-r2.css, ...) and update functions.php. */

.mz-kosher {
    --mz-text: #5c5550;
    --mz-muted: #8a817a;
    --mz-accent: #6c777b;
    --mz-line: #e6e0d8;
    --mz-soft: #f7f4ef;
    direction: rtl;
    text-align: right;
    color: var(--mz-text);
    display: grid;
    grid-template-columns: 1fr minmax(260px, 400px);
    gap: 48px;
    align-items: start;
    max-width: 1000px;
    margin: 20px auto 60px;
    padding: 0 16px;
    box-sizing: border-box
}

.mz-kosher * {
    box-sizing: border-box
}

.mz-kosher .mz-kosher__eyebrow {
    display: table;
    font-size: 15px;
    letter-spacing: .04em;
    color: var(--mz-accent);
    border: 1px solid var(--mz-accent);
    border-radius: 999px;
    padding: 3px 14px;
    margin: 0 0 14px
}

.mz-kosher .mz-kosher__info h2 {
    display: block;
    font-size: 30px;
    line-height: 1.25;
    margin: 0 0 14px;
    color: var(--mz-text);
    font-weight: 700
}

.mz-kosher__intro {
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 26px
}

/* Details table */
.mz-kosher__table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 22px;
    font-size: 17px
}

.mz-kosher__table th,
.mz-kosher__table td {
    border-bottom: 1px solid var(--mz-line);
    padding: 13px 0;
    vertical-align: top;
    text-align: right
}

.mz-kosher__table tr:first-child th,
.mz-kosher__table tr:first-child td {
    border-top: 1px solid var(--mz-line)
}

.mz-kosher__table th {
    width: 34%;
    font-weight: 400;
    color: var(--mz-muted);
    padding-left: 16px;
    font-size: 15px
}

.mz-kosher__table td {
    font-weight: 600
}

.mz-kosher__table a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap
}

.mz-kosher__valid {
    color: #3f6b4f
}

.mz-kosher__note {
    font-size: 15px;
    line-height: 1.7;
    color: var(--mz-muted);
    background: var(--mz-soft);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 0
}

/* Appendix download button */
.mz-kosher .mz-kosher__download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 0;
    padding: 12px 22px;
    background: var(--mz-accent);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-size: 17px;
    transition: background .2s
}

.mz-kosher .mz-kosher__download:hover,
.mz-kosher .mz-kosher__download:focus {
    background: #4f585b;
    color: #fff
}

.mz-kosher__download svg {
    width: 20px;
    height: 20px;
    flex: none
}

/* Certificate image */
.mz-kosher__cert {
    margin: 0;
    position: sticky;
    top: 110px
}

.mz-kosher__cert a {
    display: block;
    background: #fff;
    border: 1px solid var(--mz-line);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(64, 27, 19, .08);
    transition: box-shadow .2s
}

.mz-kosher__cert a:hover {
    box-shadow: 0 14px 36px rgba(64, 27, 19, .16)
}

.mz-kosher__cert img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    margin: 0
}

.mz-kosher__cert figcaption {
    font-size: 14px;
    color: var(--mz-muted);
    text-align: center;
    margin-top: 10px
}

@media (max-width: 820px) {
    .mz-kosher {
        grid-template-columns: 1fr;
        gap: 32px
    }

    .mz-kosher__cert {
        position: static;
        order: -1;
        max-width: 420px;
        margin: 0 auto
    }

    .mz-kosher .mz-kosher__info h2 {
        font-size: 25px
    }

    .mz-kosher__table th {
        width: 38%
    }
}
