/* Nook — recipes */

.recipe-show-back {
    margin: 0 0 1.2rem;
}

.recipe-show-description {
    margin: 0.8rem 0 0;
}

.recipe-show-source {
    margin: 0.56rem 0 0;
}

.recipe-show-grid {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    margin-top: 1.6rem;
}

.recipe-show-grid-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.recipe-show-grid-image .recipe-show-image {
    margin: 0;
    width: 100%;
    max-height: none;
}

.recipe-show-grid-meta {
    margin: 0;
}

.recipe-show-image {
    max-width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1.6rem 0;
}

.recipe-show-section {
    margin-top: 0;
}

.recipe-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.56rem 1.6rem;
    margin: 1.6rem 0 0;
}

.recipe-meta dt {
    margin: 0;
    font-weight: 600;
}

.recipe-meta dd {
    margin: 0;
}

.recipe-nutrition-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recipe-meta-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(19.2rem, 1fr));
    gap: 1.2rem 1.6rem;
}

.recipe-nutrition-fields legend {
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.recipe-show-section h2 {
    margin-bottom: 0.8rem;
}

.recipe-list {
    margin: 0;
    padding-left: 2rem;
}

.recipe-list-steps li + li {
    margin-top: 0.8rem;
}

.recipe-preview-image {
    max-width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 6px;
    margin: 0.8rem 0 1.6rem;
}

.recipe-category-list {
    list-style: none;
    margin: 0.56rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
}

.recipe-category-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.recipe-category-item.dragging {
    opacity: 0.5;
}

.recipe-category-item .category-link {
    flex: 1;
}

.panel-sidebar-footer {
    margin-top: 1.2rem;
}

.recipe-category-checkboxes {
    border: none;
    margin: 0 0 1.6rem;
    padding: 0;
}

.recipe-category-checkboxes legend {
    font-weight: 600;
    margin-bottom: 0.56rem;
}

.recipe-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.56rem;
    margin: 0.8rem 0 0;
}

.recipe-category-tag {
    display: inline-block;
    font-size: 1.36rem;
    padding: 0.24rem 0.8rem;
    border-radius: 999px;
    background: #f4f4f5;
    color: #3f3f46;
    text-decoration: none;
}

.recipe-category-tag:hover {
    background: #e4e4e7;
}

.badge {
    display: inline-block;
    font-size: 1.2rem;
    padding: 0.16rem 0.72rem;
    border-radius: 999px;
}

.badge-warn {
    background: #fef3c7;
    color: #92400e;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(19.2rem, 1fr));
    gap: 1.6rem;
}

.time-input-24 {
    display: flex;
    align-items: center;
    gap: 0.56rem;
}

.time-input-24 select {
    width: auto;
    min-width: 7.2rem;
}

.time-input-24-sep {
    font-weight: 600;
}

@media (max-width: 640px) {
    .recipe-show-grid-row {
        grid-template-columns: 1fr;
    }
}
