
.page-kitchen-history #history-view {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.25rem);
}

.page-kitchen-history #history-view-header .history-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-kitchen-history .history-layout {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2rem);
}

.page-kitchen-history .history-header {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    grid-template-areas:
        "portrait ingredients"
        "meta origin";
    align-items: start;
    gap: clamp(1rem, 2.4vw, 1.6rem);
}

.page-kitchen-history .history-portrait {
    grid-area: portrait;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-kitchen-history .history-ingredients-panel {
    grid-area: ingredients;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-width: 0;
}

.page-kitchen-history .history-meta-panel {
    grid-area: meta;
    display: grid;
    gap: 0.65rem;
}

.page-kitchen-history .history-locale {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-kitchen-history .history-origin {
    display: grid;
    gap: 0.85rem;
}

.page-kitchen-history .history-origin__media {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.page-kitchen-history .history-origin__trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-kitchen-history .history-content {
    display: grid;
    gap: 1rem;
}

.page-kitchen-history .history-portrait__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

.page-kitchen-history .history-origin__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

@media (max-width: 860px) {
    .page-kitchen-history .history-header {
        grid-template-columns: 1fr;
        grid-template-areas:
            "portrait"
            "ingredients"
            "meta";
    }

    .page-kitchen-history .history-portrait,
    .page-kitchen-history .history-portrait__placeholder {
        justify-self: center;
    }
}

@media (min-width: 980px) {
    .page-kitchen-history .history-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }
}

.page-kitchen-history #history-view-header h2 {
    margin: 0;
}

.page-kitchen-history #history-view-header > p {
    margin: 0.4rem 0 0;
    color: rgba(71, 85, 105, 0.85);
}

.page-kitchen-history .history-header {
    padding: clamp(1rem, 2.4vw, 1.6rem);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 20px 38px -30px rgba(148, 163, 184, 0.55);
}

.page-kitchen-history #history-portrait img {
    width: 100%;
    max-width: 340px;
    max-height: 320px;
    display: block;
    object-fit: cover;
    border-radius: 1.25rem;
    border: 1px solid rgba(203, 161, 114, 0.4);
    box-shadow: 0 18px 34px -26px rgba(92, 51, 23, 0.36);
    background: #fff7ed;
}

.page-kitchen-history .history-portrait__placeholder {
    width: 100%;
    max-width: 340px;
    min-height: 260px;
    padding: 1.4rem;
    text-align: center;
    border-radius: 1.25rem;
    border: 1px dashed rgba(203, 161, 114, 0.45);
    background: rgba(255, 247, 237, 0.45);
    color: rgba(67, 56, 45, 0.92);
}

.page-kitchen-history .history-portrait__placeholder h4,
.page-kitchen-history .history-portrait__placeholder p {
    margin: 0;
}

.page-kitchen-history .history-ingredients-panel h3 {
    margin: 0;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    line-height: 1.1;
    color: #16233b;
}

.page-kitchen-history .history-intro {
    margin: 0;
    color: rgba(71, 85, 105, 0.88);
}

.page-kitchen-history .history-ingredients {
    margin: 0;
    padding: 0.95rem 1.2rem;
    border-radius: 1.1rem;
    background: rgba(255, 247, 237, 0.74);
    border: 1px solid rgba(203, 161, 114, 0.35);
}

.page-kitchen-history .history-ingredients h4 {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a541d;
}

.page-kitchen-history .history-ingredients ul {
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(71, 56, 38, 0.94);
    line-height: 1.6;
}

.page-kitchen-history .history-locale {
    font-size: 0.85rem;
    color: rgba(71, 85, 105, 0.8);
}

.page-kitchen-history .history-locale__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.3rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.08);
    color: rgba(30, 41, 59, 0.76);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-kitchen-history .history-locale__btn:hover,
.page-kitchen-history .history-locale__btn:focus {
    background: rgba(120, 53, 15, 0.18);
    color: rgba(120, 53, 15, 0.95);
    transform: translateY(-1px);
}

.page-kitchen-history .history-locale__btn.is-active {
    background: rgba(120, 53, 15, 0.86);
    color: #fef3c7;
}

.page-kitchen-history .history-locale__btn.is-disabled {
    background: rgba(148, 163, 184, 0.2);
    color: rgba(100, 116, 139, 0.7);
}

.page-kitchen-history .history-meta-panel {
    margin: 0;
    padding: 1rem 1.2rem;
    border-radius: 1.2rem;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(203, 213, 225, 0.7);
}

.page-kitchen-history .history-meta-panel h4 {
    margin: 0 0 0.8rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(71, 85, 105, 0.85);
}

.page-kitchen-history .history-meta {
    display: grid;
    gap: 0.65rem;
    margin: 0;
}

.page-kitchen-history .history-meta div {
    display: grid;
    gap: 0.15rem;
}

.page-kitchen-history .history-meta dt {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(100, 116, 139, 0.9);
}

.page-kitchen-history .history-meta dd {
    margin: 0;
    font-weight: 600;
    color: rgba(30, 41, 59, 0.92);
}

.page-kitchen-history .history-origin {
    padding: clamp(0.85rem, 2vw, 1.1rem);
    border-radius: 1.2rem;
    background: rgba(251, 245, 236, 0.72);
    border: 1px solid rgba(203, 161, 114, 0.35);
}

.page-kitchen-history .history-origin__trigger {
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    background: transparent;
    cursor: zoom-in;
    text-decoration: none;
}

.page-kitchen-history .history-origin__trigger img {
    width: 100%;
    height: auto;
    max-height: 520px;
    display: block;
    border-radius: 1rem;
    border: 1px solid rgba(203, 161, 114, 0.4);
    box-shadow: 0 16px 32px -24px rgba(92, 51, 23, 0.35);
    background: #fff7ed;
    transition: transform 0.25s ease;
}

.page-kitchen-history .history-origin__trigger:hover img,
.page-kitchen-history .history-origin__trigger:focus img {
    transform: scale(1.015);
}

.page-kitchen-history .history-origin__placeholder {
    width: 100%;
    min-height: 280px;
    padding: 1.6rem;
    text-align: center;
    border-radius: 1rem;
    border: 1px dashed rgba(203, 161, 114, 0.45);
    background: rgba(255, 250, 242, 0.76);
    color: rgba(67, 56, 45, 0.92);
}

.page-kitchen-history .history-origin__placeholder h4,
.page-kitchen-history .history-origin__placeholder p,
.page-kitchen-history .history-origin__caption h4,
.page-kitchen-history .history-origin__caption p {
    margin: 0;
}

.page-kitchen-history .history-origin__caption h4 {
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a541d;
}

.page-kitchen-history .history-origin__caption p {
    margin-top: 0.3rem;
    color: rgba(100, 116, 139, 0.88);
}

.page-kitchen-history .history-content > section {
    padding: clamp(1rem, 2.3vw, 1.35rem);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 16px 28px -26px rgba(148, 163, 184, 0.5);
}

.page-kitchen-history .history-content > section h4 {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a541d;
}

.page-kitchen-history .history-richtext {
    color: rgba(51, 65, 85, 0.95);
    line-height: 1.75;
}

.page-kitchen-history .history-richtext > :first-child {
    margin-top: 0;
}

.page-kitchen-history .history-richtext > :last-child {
    margin-bottom: 0;
}

.page-kitchen-history .history-placeholder {
    margin: 0;
    color: rgba(100, 116, 139, 0.88);
}

.page-kitchen-history .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 860px) {
    .page-kitchen-history #history-portrait img {
        max-width: min(100%, 420px);
    }
}
