@charset "utf-8";
/* ==========================================================================
   대전신학대학교 메인 (2026 개편) - index.php 전용
   ========================================================================== */

:root {
    --brand: #7a1408;
    --brand-dark: #560d05;
    --brand-soft: #f6ece8;
    --ink: #1c1f26;
    --ink-2: #464c58;
    --muted: #7d8391;
    --line: #e6e2dc;
    --bg: #ffffff;
    --bg-soft: #f7f4ef;
    --footer: #1b1d22;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(28, 31, 38, .08);
    --shadow-lg: 0 20px 50px rgba(28, 31, 38, .14);
    --header-h: 84px;
    --gutter: 24px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 1079px) {
    :root { --header-h: 64px; }
}
@media (max-width: 767px) {
    :root { --gutter: 16px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
.m26 {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.01em;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}
/* 그누보드 default.css / mobile.css 가 요소에 직접 지정한 글꼴·크기·굵기를 상속으로 되돌림 (게시판 페이지 .m26-reset 용) */
.m26-reset :where(div, p, h1, h2, h3, h4, h5, h6, ul, ol, li, dl, dt, dd, table, th, td, form, fieldset, legend, input, textarea, button, select, label, address) {
    font-family: inherit; font-size: inherit; line-height: inherit; font-weight: inherit; letter-spacing: inherit;
}
.m26 h1, .m26 h2, .m26 h3, .m26 p, .m26 ul, .m26 address, .m26 figure { margin: 0; padding: 0; }
.m26 ul { list-style: none; }
.m26 a { color: inherit; text-decoration: none; }
.m26 img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
.m26 button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.m26 address { font-style: normal; }
.m26 :focus-visible { outline: 3px solid #c2410c; outline-offset: 2px; border-radius: 4px; }
.m26 [hidden] { display: none !important; }
#m26-main:focus { outline: none; }

.m26-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
/* 그누보드 화면낭독기용 숨김 텍스트 : 위의 상속 초기화(font-size: inherit)보다 우선 */
.m26 .sound_only, .m26 .msg_sound_only {
    position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important;
    border: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; font-size: 1px !important;
}
.m26-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.m26-icon { width: 1.25em; height: 1.25em; flex: none; }

.m26-skip {
    position: absolute; left: 16px; top: -60px; z-index: 2000;
    padding: 10px 16px; border-radius: 8px;
    background: var(--brand); color: #fff !important; font-weight: 600;
    transition: top .2s;
}
.m26-skip:focus { top: 12px; }

/* ---------- header ---------- */
.m26-header {
    position: sticky; top: 0; z-index: 500;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s;
}
.m26-header.is-scrolled { box-shadow: 0 6px 24px rgba(28, 31, 38, .07); }
.m26-header__inner { display: flex; align-items: center; height: var(--header-h); gap: 24px; }

.m26-logo { flex: none; line-height: 0; }
.m26-logo img { width: auto; height: 42px; mix-blend-mode: multiply; }

.m26-gnb { flex: 1; display: flex; justify-content: center; height: 100%; }
.m26-gnb__list { display: flex; height: 100%; }
.m26-gnb__item { position: relative; height: 100%; }
.m26-gnb__link {
    position: relative; display: flex; align-items: center; height: 100%;
    padding: 0 22px; font-size: 17px; font-weight: 600; color: var(--ink); white-space: nowrap;
    transition: color .2s;
}
.m26-gnb__link::after {
    content: ""; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 3px;
    background: var(--brand); border-radius: 3px 3px 0 0;
    transform: scaleX(0); transition: transform .25s var(--ease);
}
.m26-gnb__item:hover .m26-gnb__link,
.m26-gnb__item:focus-within .m26-gnb__link { color: var(--brand); }
.m26-gnb__item:hover .m26-gnb__link::after,
.m26-gnb__item:focus-within .m26-gnb__link::after { transform: scaleX(1); }

.m26-gnb__sub {
    position: absolute; left: 50%; top: 100%;
    min-width: 188px; padding: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.m26-gnb__item:hover .m26-gnb__sub,
.m26-gnb__item:focus-within .m26-gnb__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.m26-gnb__sub a {
    display: block; padding: 8px 14px; border-radius: 8px;
    font-size: 15px; color: var(--ink-2); white-space: nowrap;
    transition: background .15s, color .15s;
}
.m26-gnb__sub a:hover, .m26-gnb__sub a:focus-visible { background: var(--brand-soft); color: var(--brand); }

.m26-util { flex: none; display: flex; align-items: center; gap: 6px; margin-left: auto; }
.m26-util__link { padding: 6px 10px; font-size: 14px; color: var(--muted); border-radius: 8px; }
.m26-util__link:hover { color: var(--brand); background: var(--brand-soft); }

.m26-menu-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 14px 0 12px; margin-left: 4px;
    border: 1px solid var(--line); border-radius: 999px;
    font-size: 14px; font-weight: 600; transition: border-color .2s, background .2s;
}
.m26-menu-btn:hover { border-color: var(--brand); color: var(--brand); }
.m26-menu-btn__bars { position: relative; width: 18px; height: 14px; }
.m26-menu-btn__bars i { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s, top .25s; }
.m26-menu-btn__bars i:nth-child(1) { top: 0; }
.m26-menu-btn__bars i:nth-child(2) { top: 6px; }
.m26-menu-btn__bars i:nth-child(3) { top: 12px; }
.m26-menu-btn[aria-expanded="true"] .m26-menu-btn__bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.m26-menu-btn[aria-expanded="true"] .m26-menu-btn__bars i:nth-child(2) { opacity: 0; }
.m26-menu-btn[aria-expanded="true"] .m26-menu-btn__bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* 전체메뉴 */
.m26-sitemap {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 36px 0 44px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.m26-sitemap__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.m26-sitemap__title { font-size: 17px; font-weight: 700; }
.m26-sitemap__title button {
    width: 100%; padding: 0 0 12px; margin-bottom: 10px; text-align: left;
    border-bottom: 2px solid var(--brand); color: var(--brand); cursor: default;
}
.m26-sitemap ul a { display: block; padding: 5px 0; font-size: 15px; color: var(--ink-2); }
.m26-sitemap ul a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1079px) {
    .m26-gnb { display: none; }
    .m26-logo img { height: 34px; }
    /* backdrop-filter 가 있으면 헤더가 fixed 자식의 기준 박스가 되어 전체메뉴 높이가 0 이 됨 */
    .m26-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .m26-sitemap {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: auto;
        height: calc(100vh - var(--header-h));
        height: calc(100dvh - var(--header-h));
        max-height: none; padding: 8px 0 32px; box-shadow: none;
        overscroll-behavior: contain; z-index: 1;
    }
    .m26-sitemap__grid { grid-template-columns: 1fr; gap: 0; }
    .m26-sitemap__col { border-bottom: 1px solid var(--line); }
    .m26-sitemap__title button {
        display: flex; justify-content: space-between; align-items: center;
        padding: 16px 4px; margin: 0; border: 0; color: var(--ink); cursor: pointer;
    }
    .m26-sitemap__title button::after {
        content: ""; width: 9px; height: 9px; margin-right: 4px;
        border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s;
    }
    .m26-sitemap__title button[aria-expanded="true"] { color: var(--brand); }
    .m26-sitemap__title button[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-2px, -2px); }
    .m26-sitemap__col ul { display: none; padding: 0 4px 14px; columns: 2; column-gap: 16px; }
    .m26-sitemap__col.is-open ul { display: block; }
    .m26-sitemap ul a { padding: 7px 0; break-inside: avoid; }
    body.m26-lock { overflow: hidden; }
}
@media (min-width: 600px) and (max-width: 1079px) {
    .m26-sitemap__col ul { columns: 3; }
}
@media (max-width: 479px) {
    .m26-menu-btn__label { display: none; }
    .m26-menu-btn { width: 42px; padding: 0; justify-content: center; margin-left: 0; }
    .m26-util__link { padding: 6px 6px; font-size: 13px; }
    .m26-logo img { height: 30px; }
    .m26-header__inner { gap: 8px; }
}

/* ---------- hero ---------- */
.m26-hero { padding-top: 24px; }
.m26-hero__frame { position: relative; max-width: 1416px; margin: 0 auto; padding: 0 var(--gutter); }
.m26-hero__track {
    position: relative; aspect-ratio: 1368 / 382; overflow: hidden;
    border-radius: 22px; background: #2b2b2b;
}
.m26-hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.m26-hero__slide.is-active { opacity: 1; visibility: visible; }
.m26-hero__slide a, .m26-hero__slide picture { display: block; width: 100%; height: 100%; }
.m26-hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.m26-hero__controls {
    position: absolute; right: calc(var(--gutter) + 18px); bottom: 18px;
    display: flex; align-items: center; gap: 2px; padding: 4px 6px;
    background: rgba(20, 20, 24, .55); color: #fff; border-radius: 999px;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.m26-hero__btn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.m26-hero__btn:hover { background: rgba(255, 255, 255, .15); }
.m26-hero__btn .m26-icon { width: 18px; height: 18px; }
.m26-hero__btn .m26-icon--play { display: none; }
.m26-hero.is-paused .m26-icon--pause { display: none; }
.m26-hero.is-paused .m26-icon--play { display: block; }
.m26-hero__dots { display: flex; align-items: center; gap: 6px; padding: 0 6px; }
.m26-hero__dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .5); transition: width .3s var(--ease), background .3s; }
.m26-hero__dot.is-active { width: 22px; background: #fff; }

@media (max-width: 767px) {
    .m26-hero { padding-top: 12px; }
    .m26-hero__track { aspect-ratio: 16 / 9; border-radius: 14px; }
    .m26-hero__controls { right: calc(var(--gutter) + 10px); bottom: 10px; padding: 2px 4px; }
    .m26-hero__btn { width: 28px; height: 28px; }
    .m26-hero__btn .m26-icon { width: 16px; height: 16px; }
}

/* ---------- quick ---------- */
.m26-quick { padding-top: 28px; }
.m26-quick__list { display: grid; grid-template-columns: repeat(var(--m26-quick-cols, 6), 1fr); gap: 14px; } /* 칸 수 = 바로가기 개수 (index.php) */
.m26-quick__list a {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 22px 8px 20px; height: 100%;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    font-size: 15px; font-weight: 600; text-align: center;
    transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.m26-quick__icon {
    display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand);
    transition: background .25s, color .25s;
}
.m26-quick__icon .m26-icon { width: 26px; height: 26px; }
.m26-quick__list a:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); }
.m26-quick__list a:hover .m26-quick__icon { background: var(--brand); color: #fff; }

@media (max-width: 767px) {
    .m26-quick { padding-top: 16px; }
    .m26-quick__list { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .m26-quick__list a { padding: 16px 4px 14px; gap: 8px; font-size: 13.5px; border-radius: 12px; }
    .m26-quick__icon { width: 44px; height: 44px; }
    .m26-quick__icon .m26-icon { width: 22px; height: 22px; }
}

/* ---------- section common ---------- */
.m26-section { padding: 72px 0; }
.m26-section--tint { background: var(--bg-soft); }
.m26-section--banner { padding: 56px 0 64px; }
.m26-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.m26-head__title { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.25; }
.m26-head__title small { margin-left: 8px; font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: -0.01em; }
.m26-more {
    display: inline-flex; align-items: center; gap: 4px; flex: none;
    padding: 6px 4px; font-size: 14px; color: var(--muted); transition: color .2s;
}
.m26-more .m26-icon { width: 16px; height: 16px; }
.m26-more:hover { color: var(--brand); }
.m26-empty { padding: 32px 0; color: var(--muted); text-align: center; font-size: 15px; list-style: none; }

@media (max-width: 767px) {
    .m26-section { padding: 48px 0; }
    .m26-section--banner { padding: 36px 0 44px; }
    .m26-head { margin-bottom: 16px; }
    .m26-head__title { font-size: 22px; }
    .m26-head__title small { display: none; }
    .m26-more__label { display: none; }
}

/* ---------- 대신소식 / 공지 ---------- */
.m26-board { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 56px; }

.m26-tabs { display: flex; gap: 8px; margin-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.m26-tabs::-webkit-scrollbar { display: none; }
.m26-tabs [role="tab"] {
    flex: none; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px;
    font-size: 15px; font-weight: 600; color: var(--ink-2); background: #fff;
    transition: background .2s, color .2s, border-color .2s;
}
.m26-tabs [role="tab"]:hover { border-color: var(--brand); color: var(--brand); }
.m26-tabs [role="tab"][aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.m26-list li { border-bottom: 1px solid var(--line); }
.m26-list a { display: flex; align-items: center; gap: 10px; padding: 15px 2px; }
.m26-list__subject { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; color: var(--ink); transition: color .15s; }
.m26-list a:hover .m26-list__subject { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.m26-list__date { flex: none; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.m26-badge {
    flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
    background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; line-height: 1;
}

.m26-notice li + li { margin-top: 12px; }
.m26-notice a {
    display: block; padding: 20px 22px; border-radius: var(--radius);
    background: var(--bg-soft); border: 1px solid transparent;
    transition: border-color .2s, background .2s;
}
.m26-notice a:hover { background: #fff; border-color: var(--brand); }
.m26-notice time { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.m26-notice strong {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 16px; font-weight: 600; line-height: 1.45;
}
.m26-notice p {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.55;
}

@media (max-width: 1079px) {
    .m26-board { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 767px) {
    .m26-tabs { margin: 0 calc(var(--gutter) * -1) 4px; padding: 0 var(--gutter); }
    .m26-tabs [role="tab"] { padding: 7px 15px; font-size: 14px; }
    .m26-list a { padding: 13px 0; }
    .m26-list__subject { font-size: 15px; }
    .m26-list__date { font-size: 13px; }
    .m26-notice a { padding: 16px 18px; }
}

/* ---------- DTU NEWS cards ---------- */
.m26-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.m26-card a {
    display: flex; flex-direction: column; height: 100%;
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line);
    transition: transform .3s var(--ease), box-shadow .3s;
}
.m26-card a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.m26-card__thumb { display: block; aspect-ratio: 32 / 21; overflow: hidden; background: #ece8e2; }
.m26-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.m26-card a:hover .m26-card__thumb img { transform: scale(1.05); }
.m26-card__noimg { display: grid; place-items: center; width: 100%; height: 100%; color: #b9b2a8; }
.m26-card__noimg .m26-icon { width: 36px; height: 36px; }
.m26-card__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 18px 20px 20px; }
.m26-card__title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 16px; font-weight: 600; line-height: 1.5;
}
.m26-card__date { margin-top: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 1079px) {
    .m26-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .m26-cards {
        display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
        margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px;
        scroll-padding: 0 var(--gutter); scrollbar-width: none;
    }
    .m26-cards::-webkit-scrollbar { display: none; }
    .m26-card { flex: 0 0 78%; scroll-snap-align: start; }
    .m26-card a:hover { transform: none; }
    .m26-card__body { padding: 14px 16px 16px; }
    .m26-cards .m26-empty { flex: 1; }
}

/* ---------- 학교행사 gallery ---------- */
.m26-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.m26-gallery a {
    position: relative; display: block; aspect-ratio: 1 / 1;
    border-radius: var(--radius); overflow: hidden; background: #ece8e2;
}
.m26-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.m26-gallery a:hover img { transform: scale(1.06); }
.m26-gallery__cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 48px 18px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
    color: #fff; font-size: 15px; font-weight: 600; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.m26-gallery .m26-empty { grid-column: 1 / -1; }

@media (max-width: 767px) {
    .m26-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .m26-gallery a { border-radius: 12px; }
    .m26-gallery__cap { padding: 36px 12px 10px; font-size: 13.5px; }
}

/* ---------- 참 · 앎 · 삶 ---------- */
.m26-motto { background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 100%); color: #fff; padding: 72px 0; }
.m26-motto__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 48px; align-items: center; }
.m26-motto__eyebrow { font-size: 12px; letter-spacing: .18em; opacity: .7; }
.m26-motto h2 { margin: 10px 0 18px; font-size: 44px; font-weight: 700; letter-spacing: 0; line-height: 1.15; }
.m26-motto__link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px;
    font-size: 14px; font-weight: 600; transition: background .2s, color .2s;
}
.m26-motto__link .m26-icon { width: 16px; height: 16px; }
.m26-motto__link:hover { background: #fff; color: var(--brand); }
.m26-motto__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.m26-motto__list li { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .28); }
.m26-motto__list strong { display: block; margin-bottom: 8px; font-size: 24px; font-weight: 700; }
.m26-motto__list strong span { margin-left: 6px; font-size: 14px; font-weight: 500; opacity: .75; }
.m26-motto__list p { font-size: 15px; line-height: 1.65; opacity: .88; }

@media (max-width: 1079px) {
    .m26-motto__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 767px) {
    .m26-motto { padding: 52px 0; }
    .m26-motto h2 { font-size: 34px; }
    .m26-motto__list { grid-template-columns: 1fr; gap: 20px; }
    .m26-motto__list li { padding-left: 16px; }
    .m26-motto__list strong { font-size: 20px; margin-bottom: 4px; }
}

/* ---------- banners ---------- */
.m26-banners { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.m26-banners a, .m26-banners span {
    display: flex; align-items: center; justify-content: center;
    height: 112px; padding: 10px; background: #fff;
    border: 1px solid var(--line); border-radius: 12px;
    transition: border-color .2s, box-shadow .2s;
}
.m26-banners a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.m26-banners img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; }

@media (max-width: 767px) {
    .m26-banners { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .m26-banners a, .m26-banners span { height: 84px; padding: 8px; }
}

/* ---------- footer ---------- */
.m26-footer { background: var(--footer); color: #a9adb7; padding: 44px 0 40px; font-size: 14px; }
.m26-footer__top {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
    padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.m26-footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.m26-footer__links a { color: #d4d7de; }
.m26-footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.m26-footer__links a.is-strong { color: #fff; font-weight: 700; }
.m26-family { display: flex; gap: 6px; }
.m26-family select {
    min-width: 200px; height: 40px; padding: 0 36px 0 14px;
    background: #2a2d34 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a9adb7' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
    color: #d4d7de; font: inherit; font-size: 14px;
    border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px;
    -webkit-appearance: none; appearance: none;
}
.m26-family button {
    height: 40px; padding: 0 16px; border-radius: 8px;
    background: rgba(255, 255, 255, .1); color: #fff; font-size: 14px; font-weight: 600;
}
.m26-family button:hover { background: var(--brand); }
.m26-footer__name { margin-bottom: 10px; font-size: 17px; font-weight: 700; color: #fff; }
.m26-footer__name span { margin-left: 8px; font-size: 12px; font-weight: 500; letter-spacing: .08em; color: #8b909b; }
.m26-footer address { display: flex; flex-wrap: wrap; gap: 4px 18px; line-height: 1.7; }
.m26-footer address a { color: #d4d7de; }
.m26-footer__copy { margin-top: 14px; font-size: 12px; letter-spacing: .03em; color: #6f7480; }

@media (max-width: 767px) {
    .m26-footer { padding: 36px 0 32px; font-size: 13px; }
    .m26-footer__links { gap: 6px 16px; }
    .m26-family { width: 100%; }
    .m26-family select { flex: 1; min-width: 0; }
    .m26-footer address { flex-direction: column; gap: 2px; }
    .m26-footer__name span { display: block; margin: 2px 0 0; }
}

/* ---------- 관리자 팝업레이어 ---------- */
.m26-popups { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 900; }
.m26-popup {
    position: absolute; top: var(--pop-top, 120px); left: var(--pop-left, 20px);
    width: var(--pop-width, 400px); max-width: calc(100vw - 32px);
    background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.m26-popup__body { overflow: auto; max-height: 75vh; }
.m26-popup__body img { max-width: 100%; height: auto; }
.m26-popup__foot { display: flex; justify-content: space-between; background: #24262c; }
.m26-popup__foot button { padding: 11px 16px; color: #e6e7ea; font-size: 14px; }
.m26-popup__foot button:hover { color: #fff; background: rgba(255, 255, 255, .08); }

@media (max-width: 767px) {
    .m26-popups {
        position: fixed; inset: 0; height: auto; overflow-y: auto;
        display: flex; flex-direction: column; align-items: center; gap: 12px;
        padding: 72px 16px 24px; background: rgba(15, 15, 20, .6);
    }
    .m26-popup { position: relative; top: auto; left: auto; width: 100%; max-width: min(var(--pop-width, 400px), 100%); flex: none; }
}

/* ---------- 안내 모달 ---------- */
.m26-modal {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(15, 15, 20, .7);
}
.m26-modal__box {
    width: 100%; max-height: calc(100vh - 32px); overflow-y: auto;
    padding: 20px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
    animation: m26-pop .3s var(--ease);
}
.m26-modal__grid { display: grid; gap: 16px; }
.m26-modal__grid--1 { grid-template-columns: 1fr; }
.m26-modal__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m26-modal__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m26-modal__box--1 { max-width: 440px; }
.m26-modal__box--2 { max-width: 800px; }
.m26-modal__box--3 { max-width: 1100px; }
.m26-modal__grid a { display: block; border-radius: 12px; overflow: hidden; transition: transform .25s var(--ease); }
.m26-modal__grid a:hover { transform: translateY(-3px); }
.m26-modal__grid img { width: 100%; }
.m26-modal__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.m26-modal__foot button { height: 42px; padding: 0 18px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.m26-modal__foot [data-modal="today"] { color: var(--ink-2); background: #f0eee9; }
.m26-modal__foot [data-modal="today"]:hover { background: #e6e2dc; }
.m26-modal__foot [data-modal="close"] { color: #fff; background: var(--brand); }
.m26-modal__foot [data-modal="close"]:hover { background: var(--brand-dark); }
@keyframes m26-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 767px) {
    .m26-modal__grid--2, .m26-modal__grid--3 { grid-template-columns: 1fr; }
    .m26-modal__box { padding: 14px; border-radius: 16px; }
    .m26-modal__foot button { flex: 1; }
}

/* ---------- 위로 가기 버튼 ---------- */
button.m26-totop {
    position: fixed; right: 24px; bottom: 24px; z-index: 850;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
    width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
    background: var(--brand); color: #fff; cursor: pointer; font-family: inherit;
    box-shadow: 0 8px 22px rgba(86, 13, 5, .28);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s, background .2s;
}
button.m26-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
button.m26-totop:hover { background: var(--brand-dark); }
button.m26-totop:focus-visible { outline: 3px solid #c2410c; outline-offset: 3px; }
button.m26-totop svg { width: 20px; height: 20px; margin-top: 2px; }
.m26-totop__label { font-size: 10px; font-weight: 700; letter-spacing: .06em; line-height: 1; margin-top: 1px; }
@media (max-width: 767px) {
    button.m26-totop { right: 16px; bottom: 16px; width: 46px; height: 46px; }
    button.m26-totop svg { width: 18px; height: 18px; }
    .m26-totop__label { font-size: 9px; }
}
@media print { button.m26-totop { display: none !important; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .m26 *, .m26 *::before, .m26 *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
