/**
 * Filename: recipe_detail_v49b.css
 * Directory: /www/css
 * Description: Stil for adaptiv offentlig oppskriftsside i Matsnakk.no v49B.
 * Language: Norwegian
 * Copyright: Webmasterinfo.no
 */

.mn-recipe-detail {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 56px;
}

.mn-recipe-hero {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.05fr);
    gap: 28px;
    align-items: stretch;
    margin: 28px 0;
    padding: 18px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(35, 22, 16, 0.96), rgba(78, 45, 28, 0.94));
    box-shadow: 0 24px 65px rgba(29, 17, 11, 0.28);
    color: #fff7e8;
}

.mn-recipe-hero__image {
    min-height: 360px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
}

.mn-recipe-hero__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.mn-recipe-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(18px, 3vw, 36px);
}

.mn-recipe-hero__content h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.mn-recipe-hero__intro {
    max-width: 62ch;
    margin: 18px 0 0;
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(255, 247, 232, 0.88);
}

.mn-recipe-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
}

.mn-recipe-hero__meta time {
    color: rgba(255, 247, 232, 0.72);
}

.mn-recipe-chip-row,
.mn-recipe-overview,
.mn-recipe-taxonomy__chips,
.mn-recipe-allergen-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mn-recipe-chip-row {
    margin-top: 26px;
}

.mn-recipe-chip {
    min-width: 118px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 18px;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(14px);
}

.mn-recipe-chip strong,
.mn-recipe-chip small {
    display: block;
}

.mn-recipe-chip strong {
    font-size: 1.03rem;
}

.mn-recipe-chip small {
    margin-top: 4px;
    color: rgba(255,247,232,0.72);
}

.mn-recipe-overview {
    margin: 0 0 24px;
}

.mn-recipe-info-card,
.mn-recipe-ingredients,
.mn-recipe-method,
.mn-recipe-body,
.mn-recipe-taxonomy,
.mn-related-content-panel {
    border: 1px solid rgba(112, 72, 44, 0.16);
    border-radius: 26px;
    background: rgba(255, 252, 244, 0.96);
    box-shadow: 0 18px 48px rgba(34, 24, 18, 0.08);
}

.mn-recipe-info-card {
    flex: 1 1 240px;
    padding: 22px;
}

.mn-recipe-time-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.mn-recipe-time-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(91, 58, 37, 0.12);
}

.mn-recipe-time-list dt,
.mn-recipe-time-list dd {
    margin: 0;
}

.mn-recipe-time-list dt {
    color: rgba(54, 37, 28, 0.68);
}

.mn-recipe-time-list dd,
.mn-recipe-difficulty strong {
    font-weight: 800;
    color: #322018;
}

.mn-recipe-difficulty span {
    display: block;
    margin-bottom: 8px;
    font-size: 2.1rem;
    letter-spacing: 0.08em;
    color: #8b552f;
}

.mn-recipe-rating__stars {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin: 10px 0;
}

.mn-recipe-rating__stars button {
    width: 28px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: rgba(119, 77, 46, 0.12);
    color: rgba(88, 57, 38, 0.56);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.mn-recipe-rating__stars button:hover,
.mn-recipe-rating__stars button:focus-visible,
.mn-recipe-rating__stars button.is-active {
    background: rgba(139, 85, 47, 0.95);
    color: #fff7e8;
}

.mn-recipe-rating__stars button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.mn-recipe-rating__summary,
.mn-recipe-rating__message {
    margin: 8px 0 0;
}

.mn-recipe-rating__message {
    color: rgba(54, 37, 28, 0.66);
    font-size: 0.94rem;
}

.mn-recipe-main-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(360px, 1.14fr);
    gap: 24px;
    align-items: start;
}

.mn-recipe-ingredients,
.mn-recipe-method,
.mn-recipe-body,
.mn-recipe-taxonomy,
.mn-related-content-panel {
    padding: clamp(20px, 3vw, 32px);
}

.mn-recipe-ingredients {
    position: sticky;
    top: 18px;
}

.mn-recipe-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    margin-bottom: 20px;
}

.mn-recipe-panel-head h2,
.mn-recipe-allergens h2,
.mn-recipe-body h2 {
    margin: 0;
    color: #2e1f18;
}

.mn-recipe-step-reset {
    border: 1px solid rgba(139, 85, 47, 0.22);
    border-radius: 999px;
    padding: 8px 13px;
    background: transparent;
    color: #6b432a;
    cursor: pointer;
}

.mn-recipe-ingredient-section + .mn-recipe-ingredient-section,
.mn-recipe-method-section + .mn-recipe-method-section,
.mn-recipe-allergens {
    margin-top: 26px;
}

.mn-recipe-ingredient-section h3,
.mn-recipe-method-section h3,
.mn-recipe-allergen-group h3 {
    margin: 0 0 12px;
    color: #4a2f21;
}

.mn-recipe-ingredient-section ul,
.mn-recipe-step-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mn-recipe-ingredient-section li {
    display: grid;
    grid-template-columns: minmax(62px, auto) 1fr;
    gap: 9px 12px;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid rgba(91, 58, 37, 0.10);
}

.mn-recipe-ingredient__amount {
    font-weight: 800;
    color: #6b432a;
}

.mn-recipe-ingredient__name {
    color: #2f2119;
}

.mn-recipe-ingredient-section em,
.mn-recipe-ingredient-section small {
    grid-column: 2;
    color: rgba(54, 37, 28, 0.62);
}

.mn-recipe-step {
    margin-bottom: 14px;
    border: 1px solid rgba(112, 72, 44, 0.13);
    border-radius: 22px;
    background: rgba(255,255,255,0.62);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.mn-recipe-step label {
    display: grid;
    grid-template-columns: 26px 40px 1fr;
    gap: 12px;
    align-items: start;
    padding: 16px;
    cursor: pointer;
}

.mn-recipe-step input {
    margin-top: 7px;
}

.mn-recipe-step__number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #3a2519;
    color: #fff7e8;
    font-weight: 800;
}

.mn-recipe-step__content strong,
.mn-recipe-step__content span,
.mn-recipe-step__content small {
    display: block;
}

.mn-recipe-step__content strong {
    margin-bottom: 6px;
    color: #2f2119;
}

.mn-recipe-step__content span {
    line-height: 1.7;
    color: #3c2a20;
}

.mn-recipe-step__content small {
    margin-top: 10px;
    color: rgba(54, 37, 28, 0.64);
}

.mn-recipe-step.is-done {
    opacity: 0.56;
}

.mn-recipe-step.is-done .mn-recipe-step__content span {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(54, 37, 28, 0.42);
}

.mn-recipe-allergens {
    padding-top: 22px;
    border-top: 1px solid rgba(91, 58, 37, 0.12);
}

.mn-recipe-allergens p {
    color: rgba(54, 37, 28, 0.68);
}

.mn-recipe-allergen-tags span,
.mn-recipe-taxonomy__chips span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(139, 85, 47, 0.10);
    color: #503523;
    font-weight: 700;
    font-size: 0.92rem;
}

.mn-recipe-allergen-warning {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(139, 85, 47, 0.12);
    color: #513522;
    font-weight: 700;
}

.mn-recipe-body,
.mn-recipe-taxonomy,
.mn-related-content-panel,
.mn-content-interactions {
    margin-top: 24px;
}

.mn-recipe-body {
    line-height: 1.75;
    color: #37261c;
}

.mn-recipe-empty {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(139, 85, 47, 0.09);
    color: #563923;
}

@media (max-width: 860px) {
    .mn-recipe-detail {
        width: min(100% - 20px, 1180px);
    }

    .mn-recipe-hero,
    .mn-recipe-main-grid {
        grid-template-columns: 1fr;
    }

    .mn-recipe-hero__image,
    .mn-recipe-hero__image img {
        min-height: 240px;
    }

    .mn-recipe-ingredients {
        position: static;
    }

    .mn-recipe-step label {
        grid-template-columns: 24px 34px 1fr;
        gap: 10px;
        padding: 14px;
    }
}