/* 공통 상단·하단·고정 메뉴(layouts/legacy.blade.php). 화면 폭과 무관하게 px로 고정한다. */
:root {
    --chrome-navy: #16213e;
    --chrome-yellow: #ffd84d;
    --chrome-accent: #e5262e;
    --chrome-ink: #1b2233;
    --chrome-sub: #6b7385;
    --chrome-line: #e3e7ee;
    --chrome-tabbar-height: 82px;
    /* 상단 좌우 여백: 본문 카드(.form-shell) 여백과 맞춘다. */
    --chrome-gutter: 28px;
}

.site-icon { display: block; flex: none; width: 25px; height: 25px; }

/* 상단 */
.site-header { position: sticky; top: 0; z-index: 99; width: 100%; background: #fff; box-shadow: 0 1px 0 var(--chrome-line); }
.site-header__inner { display: flex; align-items: center; height: 72px; padding: 0 var(--chrome-gutter); }
.site-header__logo { display: flex; margin-right: auto; padding-right: 10px; }
.site-header__logo img { width: auto; height: 48px; object-fit: contain; }
.site-header form { display: flex; margin: 0; }
.site-header__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    width: 68px; height: 62px; margin: 0; padding: 0; border: 0; border-radius: 12px; background: none;
    color: var(--chrome-ink); font: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em;
    white-space: nowrap; text-decoration: none; cursor: pointer;
}
.site-header__item--accent { color: var(--chrome-accent); font-weight: 700; }
.site-header__item:hover { background: #f4f6fa; }

/* 하단 */
.site-footer {
    padding: 35px 25px calc(var(--chrome-tabbar-height) + 50px + env(safe-area-inset-bottom, 0px));
    background: var(--chrome-navy); color: #fff; font-size: 19px; line-height: 1.5; text-align: left;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer__title { margin: 0 0 18px; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.site-footer__center {
    display: flex; align-items: center; justify-content: space-between; height: 70px; padding: 0 22px;
    border-radius: 18px; background: var(--chrome-yellow); color: var(--chrome-navy) !important; font-size: 22px; font-weight: 800;
}
.site-footer__center > span { display: flex; align-items: center; gap: 10px; }
.site-footer__center .site-icon { width: 28px; height: 28px; }
.site-footer__inquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.site-footer__inquiry a {
    display: flex; align-items: center; justify-content: center; gap: 9px; height: 55px;
    border: 1px solid rgba(255, 255, 255, .25); border-radius: 15px; font-size: 19px; font-weight: 600;
}
.site-footer__inquiry img { width: 25px; height: 25px; }
.site-footer__links { margin-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__links a {
    display: flex; align-items: center; gap: 15px; height: 65px;
    border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 20px; font-weight: 500;
}
.site-footer__links a > .site-icon:first-child { color: var(--chrome-yellow); }
.site-footer__links a > span { flex: 1; }
.site-footer__links a > .site-icon:last-child { width: 20px; height: 20px; opacity: .45; }
.site-footer__info { margin-top: 28px; color: rgba(255, 255, 255, .6); font-size: 15px; line-height: 1.8; word-break: keep-all; }
.site-footer__info a { color: #fff; font-weight: 700; }
.site-footer__search { width: 225px; max-width: 60%; height: auto; margin-top: 22px; }
.site-footer a:hover { opacity: .85; }

/* 고정 메뉴 */
.site-tabbar {
    position: fixed; bottom: 0; left: 50%; z-index: 102; transform: translateX(-50%);
    display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: var(--chrome-tabbar-height); width: 100%; max-width: 640px;
    height: calc(var(--chrome-tabbar-height) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--chrome-line); background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -6px 24px rgba(22, 33, 62, .06);
}
.site-tabbar form { display: flex; margin: 0; }
.site-tabbar__item {
    display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    margin: 0; padding: 0; border: 0; background: none; color: var(--chrome-sub);
    font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; text-decoration: none; cursor: pointer;
}
.site-tabbar__item .site-icon { width: 30px; height: 30px; }
.site-tabbar__item[aria-current="page"] { color: var(--chrome-navy); font-weight: 800; }
.site-tabbar__item--all { position: relative; top: -20px; justify-content: flex-start; color: var(--chrome-navy); font-weight: 800; }
.site-tabbar__item--all i {
    display: grid; flex: none; place-items: center; box-sizing: border-box; width: 68px; height: 68px; border: 5px solid #fff; border-radius: 50%;
    background: var(--chrome-navy); color: var(--chrome-yellow); box-shadow: 0 6px 14px rgba(22, 33, 62, .35);
}
.site-header__item:focus-visible, .site-tabbar__item:focus-visible, .site-footer a:focus-visible { outline: 2px solid var(--chrome-yellow); outline-offset: 2px; }
.site-header__item:focus-visible, .site-tabbar__item:focus-visible { outline-color: var(--chrome-navy); }

/* 모바일(본문 rem 기준이 10px로 줄어드는 폭)은 원래 크기로 둔다. */
@media (max-width: 640px) {
    :root { --chrome-tabbar-height: 66px; --chrome-gutter: 12px; }
    .site-icon { width: 20px; height: 20px; }
    .site-header__inner { height: 58px; }
    .site-header__logo { padding-right: 8px; }
    .site-header__logo img { height: 40px; }
    .site-header__item { gap: 3px; width: 54px; height: 50px; border-radius: 10px; font-size: 11px; }
    .site-footer { padding: 28px 20px calc(var(--chrome-tabbar-height) + 40px + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
    .site-footer__title { margin-bottom: 14px; font-size: 16px; }
    .site-footer__center { height: 56px; padding: 0 18px; border-radius: 14px; font-size: 18px; }
    .site-footer__center > span { gap: 8px; }
    .site-footer__center .site-icon { width: 22px; height: 22px; }
    .site-footer__inquiry { gap: 8px; margin-top: 8px; }
    .site-footer__inquiry a { gap: 7px; height: 44px; border-radius: 12px; font-size: 15px; }
    .site-footer__inquiry img { width: 20px; height: 20px; }
    .site-footer__links { margin-top: 22px; }
    .site-footer__links a { gap: 12px; height: 52px; font-size: 16px; }
    .site-footer__links a > .site-icon:last-child { width: 16px; height: 16px; }
    .site-footer__info { margin-top: 22px; font-size: 12px; }
    .site-footer__search { width: 180px; margin-top: 18px; }
    .site-tabbar__item { gap: 4px; font-size: 12px; }
    .site-tabbar__item .site-icon { width: 24px; height: 24px; }
    .site-tabbar__item--all { top: -16px; }
    .site-tabbar__item--all i { width: 62px; height: 62px; border-width: 4px; }
}
