:root {
    --board-bg: #f7ecc0;
    --board-ink: #2b2b2b;
    --group-blue: #5aa0c6;
    --badge-ice-blue: #1d6fd4;
    --badge-hot-bg: #f5cfc8;
    --badge-hot-text: #9e3d34;
    --badge-ice-bg: #c8ddf5;
    --badge-ice-text: #2a6aab;
    --accent-red: #c23a2e;
    --stamp-red: rgba(194, 58, 46, 0.28);
    --line: rgba(90, 70, 40, 0.28);
    --board-column-width: 28rem;
    --board-column-gap: clamp(3rem, 6vw, 5.5rem);
    --menu-group-gap: 1.75rem;
    --board-top-padding: clamp(1.5rem, 3vw, 2.25rem);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

html {
    font-size: 20px;
}

body.board-page {
    min-height: 100vh;
    background: var(--board-bg);
    color: var(--board-ink);
    font-family: "Noto Sans KR", sans-serif;
}

/* 공개 메뉴판(수정·관리 화면 아님): 편집 커서 대신 손 모양 */
body.board-page:not(.is-admin) .board-grid,
body.board-page:not(.is-admin) .board-gallery-carousel {
    cursor: pointer;
}

.board {
    --gap-logo-menu: 64px;
    --gap-menu-gallery: 20px;
    --gap-gallery-footer: 48px;
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--board-bg);
    padding: var(--board-top-padding) clamp(1.25rem, 4vw, 3rem) 32px;
}

.board-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 1.75rem;
}

.board-top-nav-start,
.board-top-nav-end {
    display: flex;
    align-items: center;
    gap: 10px;
}

.board-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--group-blue);
    text-decoration: none;
    line-height: 0;
    opacity: 0.9;
    transition: opacity 0.15s ease;
}

.board-nav-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.board-nav-link:hover {
    opacity: 1;
}

.board-nav-icon {
    width: 1.6rem;
    height: 1.6rem;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, var(--board-column-width)));
    grid-template-rows: auto auto;
    justify-content: center;
    gap: 0 var(--board-column-gap);
    width: 100%;
    max-width: calc(var(--board-column-width) * 2 + var(--board-column-gap));
    margin-inline: auto;
    align-items: stretch;
}

.board-brand {
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: start;
    text-align: center;
    margin-bottom: var(--gap-logo-menu);
}

.board-column[data-column="1"] {
    grid-column: 1;
    grid-row: 2;
    position: relative;
}

.board-column[data-column="1"]::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: calc(var(--board-column-gap) / -2);
    width: 1px;
    background: var(--line);
}

.board-column[data-column="2"] {
    grid-column: 2;
    grid-row: 2;
}

.column-groups {
    width: 100%;
    max-width: var(--board-column-width);
}

.board-logo {
    display: block;
    width: min(320px, 100%);
    height: auto;
    margin: 0 auto;
}

.menu-group {
    margin-bottom: var(--menu-group-gap);
}

.group-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.group-title-wrap {
    flex: 1;
    min-width: 0;
}

.group-title-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
}

.group-name,
h2.group-name {
    margin: 0;
    color: var(--group-blue);
    font-size: 1.25rem;
    font-weight: 700;
}

.group-subtitle {
    margin: 0;
    color: var(--group-blue);
    font-size: 0.95rem;
    font-weight: 500;
}

.group-subtitle .subtitle-accent,
.group-subtitle .subtitle-accent-red {
    color: var(--accent-red);
}

.group-subtitle .subtitle-accent-blue {
    color: var(--badge-ice-text);
}

.group-subtitle .subtitle-accent-green {
    color: #4a7c3a;
}

.group-subtitle .subtitle-accent-brown {
    color: #8b6f47;
}

.group-subtitle .subtitle-accent-ink {
    color: var(--board-ink);
}

.group-subtitle .subtitle-accent-gray {
    color: #6a6a6a;
}

.group-gallery-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    margin-inline: 1px;
    border-radius: 6px;
    line-height: 0;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.group-gallery-link:hover {
    transform: scale(1.08);
    box-shadow: 0 1px 4px rgba(90, 160, 198, 0.35);
}

.group-gallery-link .group-gallery-icon {
    width: 1.35rem;
    height: 1.35rem;
    display: block;
}

.group-items {
    min-height: 8px;
    padding-left: 1.4em;
}

.menu-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 3px 0;
}

.menu-item.has-divider {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.menu-item-body {
    flex: 1;
    min-width: 0;
}

.menu-item-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 6px;
}

.item-name {
    font-size: 1.12rem;
    font-weight: 500;
}

.item-option {
    color: var(--accent-red);
    font-size: 1rem;
    font-weight: 500;
}

.item-badges {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.temp-badge {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
}

.temp-badge-hot {
    background: var(--badge-hot-bg);
    color: var(--badge-hot-text);
}

.temp-badge-ice {
    background: var(--badge-ice-bg);
    color: var(--badge-ice-text);
}

.item-note {
    color: var(--accent-red);
    font-size: 0.95rem;
    margin-top: 1px;
}

.menu-item-price-wrap {
    position: relative;
    min-width: 2.6em;
    text-align: right;
    flex-shrink: 0;
}

.item-price {
    font-size: 1.12rem;
    font-variant-numeric: tabular-nums;
}

.coming-soon-stamp {
    display: inline-block;
    transform: rotate(-18deg);
    background: var(--stamp-red);
    color: var(--accent-red);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    white-space: nowrap;
    pointer-events: none;
}

.group-coming-soon .group-items {
    position: relative;
}

.board-gallery-carousel {
    --board-gallery-visible: 4;
    width: 100%;
    max-width: calc(var(--board-column-width) * 2 + var(--board-column-gap));
    margin: var(--gap-menu-gallery) auto 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    clear: both;
}

.board-gallery-carousel.is-loading {
    display: none;
}

.board-gallery-viewport {
    overflow: hidden;
    width: 100%;
}

.board-gallery-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    transition: none;
}

.board-gallery-track.is-sliding {
    transition: transform 0.9s cubic-bezier(0.33, 1, 0.68, 1);
}

.board-gallery-slide {
    flex: 0 0 calc((100% - (var(--board-gallery-visible) - 1) * 8px) / var(--board-gallery-visible));
    margin: 0;
    text-align: center;
    background: #fff;
    padding: 6px 6px 8px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(60, 45, 20, 0.1);
}

.board-gallery-image {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    background: #f5f0e0;
}

.board-gallery-caption {
    margin: 6px 0 0;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--board-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-footer {
    margin-top: var(--gap-gallery-footer);
    text-align: center;
    color: #4a4a4a;
    font-size: 1.2rem;
    line-height: 1.7;
}

.board-tagline {
    color: var(--group-blue);
    font-weight: 700;
    margin: 0 0 8px;
}

.board-hours {
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1.4em;
    white-space: nowrap;
}

.board-bank {
    margin: 0.15em 0 0;
    line-height: 1.2;
}

.is-hidden {
    opacity: 0.45;
}

@media (max-width: 900px) {
    .board {
        padding: clamp(1.25rem, 3vw, 2rem) 4vw 28px;
    }

    .board-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        justify-content: stretch;
        max-width: none;
        gap: var(--menu-group-gap) 0;
    }

    .board-brand {
        grid-column: 1;
        grid-row: auto;
    }

    .board-column[data-column="1"],
    .board-column[data-column="2"] {
        grid-column: 1;
        grid-row: auto;
    }

    .board-column[data-column="1"]::after {
        display: none;
    }

    .column-groups {
        max-width: none;
    }

    .board-gallery-carousel {
        --board-gallery-visible: 3;
    }
}

@media (max-width: 640px) {
    .board-gallery-carousel {
        --board-gallery-visible: 2;
    }

    .board-gallery-caption {
        font-size: 0.78rem;
    }
}
