body,
.recipe {
    grid-template-rows: auto;
    margin: 0;
}

.panel {
    border: 1px solid black;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    margin: 10px;
}

.accessories {
    grid-column: 1;
    grid-row: 3;
    margin-left: 0;
}

.info {
    grid-column: span 2;
    grid-row: 2;
    margin-left: 0;
    margin-right: 0;
}

header:not(:has(img.backdrop-cover))+.info {
    grid-column: span 2;
}

.toppings {
    border-radius: 24px;
    grid-column: 1;
    grid-row: 4;
    margin-left: 0;
}

.steps {
    margin-right: 0;
    grid-column: 2;
    grid-row-start: 3;
    grid-row-end: 6;
}

.info>div>span:empty:after {
    content: "-" !important;
}

.toppings::before,
.steps::before {
    content: "";
    position: absolute;
    transform: rotate(-20deg);
    opacity: .25;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background: url('./logo.svg');
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    filter: grayscale(100%);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 75%;

}

.accessories>ul+button,
.steps>ol+button,
.toppings>ul+button {
    display: none;
}

.mold,
.steps ol,
.toppings ul {
    font-size: 1rem;
}

.mold a>img {
    box-shadow: none;
}

.toppings>ul:not(:has(ul)),
.toppings>ul>li>ul {
    list-style: url('./toque.svg');
    font-size: 1rem;
}


.accessories .mold a>img {
    display: none;
}

.accessories ul {
    flex-direction: column;

    max-height: unset;
    overflow: auto;
}

:root {
    font-size: 1rem;
}

.backdrop {
    background-image: none;
}

.toolbar {
    display: none;
}

.photo-actions,
.gallery-grid .remove-photo {
    display: none;
}

.logo .qr {
    display: inline;
}

.logo {
    position: relative;
    grid-column: 1;
    grid-row: 5;
}

.logo>a {
    display: none;
}

.logo .ad:after {
    content: '';
    background: url('texte.svg');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
    display: block;
    height: 50%;
    width: 100%;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;

}

@media (min-width:15cm) {

    body,
    .recipe {
        grid-template-columns: 9cm auto;
    }

    .info>div>span.fal {
        width: 2cm;
    }
}

@media (max-width:14cm) {

    body,
    .recipe {
        grid-template-columns: 6.2cm auto;
    }
}

.info span.fal {
    height: auto;
}


.info>div>span>img {
    box-shadow: none;
    border-radius: 0;
}

.accessories>ul>.mold {
    padding: 0;
    align-self: flex-start;
}

body .admin-mold-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 0;
}

body .admin-mold-list .mold {
    list-style: none;
}

body .admin-mold-list .mold a {
    display: flex;
    align-items: center;
    gap: 12px;
}

body .admin-mold-list img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

body.admin-site.admin-auth-required>*:not(.admin-auth-gate) {
    display: none;
}

.admin-auth-gate {
    box-sizing: border-box;
    width: min(460px, calc(100% - 32px));
    margin: 12vh auto 0;
    padding: 32px;
    background: white;
    border: 1px solid #d8d2c8;
    box-shadow: 0 12px 32px rgb(50 39 24 / 12%);
}

.admin-auth-gate h1 {
    margin-top: 0;
    font-size: 30pt !important;
}

.admin-auth-gate form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-auth-gate input,
.admin-auth-gate button {
    box-sizing: border-box;
    min-height: 42px;
    padding: 8px 12px;
    font: inherit;
}

.admin-auth-gate button {
    cursor: pointer;
}

.admin-auth-error {
    min-height: 1.3em;
    color: #9c2f2f;
}

/* Mold ebook and authentication page overrides. */
.admin-auth-gate {
    grid-column: 1 / 3;
    grid-row: 1 / -1;
    justify-self: center;
    align-self: center;
    width: min(520px, calc(100% - 40px));
    margin: 40px 20px;
    padding: 28px;
}

.admin-auth-gate h1 {
    padding: 0;
    text-align: center;
}

header {

    >h1 {
        grid-column: span 2;
    }

    h1.panel {
        grid-column: span 2;
        margin: 0;
    }

    img.backdrop-cover {
        display: none;
    }

    img.cover {
        grid-column: 1;
        grid-row: 2;
        width: calc(100% - 10px);
        display: block;
        margin-left: 0;
    }
}