@page {
    size: A4 portrait;
    margin: 0;
}

* {
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #e5e8e5;
    color: #1f2923;
    font-family: Georgia, 'Times New Roman', serif;
}

.print-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: #29332d;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .16);
}

.print-toolbar a,
.print-toolbar button {
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid #728176;
    border-radius: 5px;
    background: #fff;
    color: #29332d;
    font: 700 14px Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
}

.print-toolbar button {
    background: #496251;
    color: #fff;
}

.print-document {
    padding: 18px 0 28px;
}

.print-page {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 210mm;
    height: 297mm;
    margin: 0 auto 18px;
    padding: 13mm 16mm 12mm;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(245, 239, 226, .46) 0, rgba(255, 253, 248, 0) 31mm),
        #fffdf8;
    box-shadow: 0 12px 34px rgba(31, 42, 34, .16);
    page-break-after: always;
}

.print-page:last-child {
    margin-bottom: 0;
    page-break-after: auto;
}

.page-frame {
    position: absolute;
    inset: 7mm;
    border: 1px solid rgba(126, 91, 47, .72);
    box-shadow: inset 0 0 0 1.2mm #fffdf8, inset 0 0 0 1.35mm rgba(32, 55, 44, .22);
    pointer-events: none;
}

.page-frame::before,
.page-frame::after {
    content: '';
    position: absolute;
    width: 22mm;
    height: 22mm;
    border-color: #20372c;
}

.page-frame::before {
    left: 4mm;
    top: 4mm;
    border-left: 4px double;
    border-top: 4px double;
}

.page-frame::after {
    right: 4mm;
    bottom: 4mm;
    border-right: 4px double;
    border-bottom: 4px double;
}

.print-header {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14mm;
    padding: 3mm 6mm 4mm;
}

.print-brand {
    display: flex;
    align-items: center;
    gap: 4mm;
}

.print-logo {
    width: 22mm;
    height: 22mm;
    object-fit: contain;
}

.print-eyebrow,
.print-outlet,
.print-menu-title,
.print-menu-title p,
.print-menu-title span {
    margin: 0;
    font-family: Arial, sans-serif;
}

.print-eyebrow {
    margin-bottom: 1mm;
    color: #9a7241;
    font-size: 7pt;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.print-header h1 {
    margin: 0;
    color: #20372c;
    font-size: 24pt;
    line-height: .95;
    font-weight: 600;
}

.print-outlet {
    margin-top: 1.5mm;
    color: #59645d;
    font-size: 8pt;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.print-menu-title {
    min-width: 40mm;
    padding-left: 6mm;
    border-left: 1px solid #b89a72;
    text-align: right;
}

.print-menu-title p {
    color: #20372c;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13pt;
    font-style: italic;
    font-weight: 600;
}

.print-menu-title span {
    display: block;
    margin-top: 1.5mm;
    color: #7b6650;
    font-size: 7.5pt;
    font-weight: 700;
    letter-spacing: .12em;
    white-space: nowrap;
}

.print-ornament {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5mm;
    padding: 0 11mm;
}

.print-ornament span {
    width: 28mm;
    height: 1px;
    background: #b89a72;
}

.print-ornament b {
    width: 3mm;
    height: 3mm;
    border: 1px solid #a9804d;
    transform: rotate(45deg);
}

.print-courses {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    row-gap: 5mm;
    padding: 5mm 6mm 13mm;
}

.print-course {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.course-heading {
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    gap: 2.5mm;
    margin-bottom: 3mm;
    padding-bottom: 1.8mm;
    border-bottom: 1px solid rgba(169, 128, 77, .48);
}

.course-heading span {
    color: #9a7241;
    font: 700 7pt Arial, sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.course-heading h2 {
    margin: 0;
    color: #20372c;
    font-size: 19pt;
    font-style: italic;
    font-weight: 600;
}

.course-items {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: max-content;
    align-content: space-evenly;
    column-gap: 12mm;
    row-gap: 2.4mm;
}

.print-item {
    position: relative;
    min-width: 0;
    padding: 2.2mm 0 2.5mm 4mm;
    border-top: 1px solid rgba(169, 128, 77, .22);
    border-bottom: 1px solid rgba(32, 55, 44, .12);
    break-inside: avoid;
}

.print-item::before {
    content: '';
    position: absolute;
    left: .3mm;
    top: 3.4mm;
    width: 1.5mm;
    height: 1.5mm;
    border: 1px solid #a9804d;
    background: #fffdf8;
    transform: rotate(45deg);
}

.print-item.no-description {
    min-height: 11mm;
    padding-bottom: 2.2mm;
}

.print-item-head {
    display: flex;
    align-items: baseline;
    min-width: 0;
}

.print-item-name {
    max-width: 72%;
    margin: 0;
    color: #1f2923;
    font-size: 10.5pt;
    font-weight: 600;
    line-height: 1.18;
}

.print-item-leader {
    flex: 1 1 auto;
    min-width: 5mm;
    margin: 0 1.5mm 1mm;
    border-bottom: 1px dotted rgba(126, 91, 47, .68);
}

.print-item-price {
    flex: 0 0 auto;
    font-family: Arial, sans-serif;
    color: #20372c;
    font-size: 8pt;
    font-weight: 700;
    white-space: nowrap;
}

.print-item-description {
    margin: 1.4mm 0 0;
    color: #59645d;
    font-family: Arial, sans-serif;
    font-size: 7.8pt;
    line-height: 1.38;
}

.print-footer {
    position: absolute;
    z-index: 1;
    left: 23mm;
    right: 23mm;
    bottom: 10.5mm;
    display: flex;
    justify-content: space-between;
    padding-top: 2.5mm;
    border-top: 1px solid rgba(169, 128, 77, .55);
    color: #6c655c;
    font: 7.5pt Arial, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 850px) {
    .print-toolbar button {
        display: none;
    }

    .print-toolbar a {
        width: min(100%, 420px);
        text-align: center;
    }

    .print-document {
        overflow-x: auto;
        padding: 12px;
    }

    .print-page {
        transform-origin: top left;
    }
}

@media print {
    html,
    body {
        background: #fff;
    }

    .print-toolbar {
        display: none;
    }

    .print-document {
        padding: 0;
    }

    .print-page {
        margin: 0;
        box-shadow: none;
    }
}
