@charset "UTF-8";
/* ==========================
   Reset (Minimal)
========================== */
:root {
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
  height: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

code,
pre {
  font-size: 0.875rem;
}

input,
textarea,
select,
button {
  font: inherit;
  color: inherit;
}

/* ==========================
   Base (Global defaults)
========================== */
html,
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #111827;
  background-color: #f9fafb;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html {
  background-color: #f9fafb;
}

ul, ol {
  padding-left: 1.25rem;
  margin-bottom: 16px;
}

/* ==========================
   Nav-like 리스트 전역 리셋
   - 본문 리스트는 유지
   - 메뉴/내비/브레드크럼/페이지네이션만 점 제거
========================== */
ul.main-nav,
ul.menu, ol.menu,
.gnb ul, .sidemenu ul,
ul.gnb, ul.sidemenu,
ul.breadcrumb, ol.breadcrumb,
ul.pagination, ol.pagination,
ul.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-inline-start: 0;
}

.main-nav > li::marker,
.menu > li::marker,
.gnb li::marker,
.sidemenu li::marker,
.pagination > li::marker,
.footer-links > li::marker {
  content: none;
}

.main-nav li::before,
.menu li::before,
.gnb li::before,
.sidemenu li::before,
.pagination li::before,
.footer-links li::before {
  content: none;
}

.breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  display: inline;
}

.breadcrumb li + li::before {
  content: "›";
  margin: 0 0.5rem;
  opacity: 0.6;
}

dl, dd {
  margin: 0;
}

th, td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

th {
  text-align: left;
  font-weight: 500;
}

pre {
  padding: 8px 16px;
  border-radius: 6px;
  overflow: auto;
}

blockquote {
  margin: 0 0 16px;
  padding-left: 16px;
  border-left: 4px solid #e5e7eb;
  color: #374151;
}

hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 24px 0;
}

:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* ==========================
   Typography (Low global impact)
   - Global: minimal defaults (avoid component collisions)
   - Prose containers: full rhythm + link decoration
========================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  color: #111827;
  margin: 0;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
  font-size: 1rem;
  color: #374151;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

a.template-card,
a.template-card:hover {
  color: inherit;
  text-decoration: none;
}

/* ==========================
   Prose / Article Containers
   - 문서 본문에서만 리듬/링크 스타일 강화
========================== */
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6,
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6,
.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
  margin: 0 0 16px;
}
.prose p,
.article-content p,
.post-body p {
  margin: 0 0 16px;
}
.prose a,
.article-content a,
.post-body a {
  color: #2563eb;
  text-decoration: none;
}
.prose a:hover,
.article-content a:hover,
.post-body a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ==========================
   Utilities
========================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: #374151;
}

.fw-bold {
  font-weight: 700;
}

.text-ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stack > * + * {
  margin-top: 16px;
}

.noselect {
  user-select: none;
}

.pointer {
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
}
/* Motion Tokens (Design System) */
:root {
  --m-dur-1: 0.5s;
  --m-dur-2: 0.65s;
  --m-dur-3: 1s;
  --m-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --m-ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --m-dist-1: 10px;
  --m-dist-2: 14px;
  --m-stag-1: 0.08s;
  --m-stag-2: 0.09s;
  --m-st1: 0.12;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --m-dur-1: 0.01s;
    --m-dur-2: 0.01s;
    --m-dur-3: 0.01s;
    --m-dist-1: 0px;
    --m-dist-2: 0px;
    --m-stag-1: 0s;
    --m-stag-2: 0s;
  }
}
/* =====================================================
   Motion Reveal v1
   - target: [data-m]
   - done: .is-in
   - list: [data-m="stagger"] + [data-m-item]
===================================================== */
/* FOUC guard (m-ready 전에는 모션 숨김 금지) */
html:not(.m-ready) [data-m],
html:not(.m-ready) [data-m-item] {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

/* 단일 요소 기본 */
html.m-ready [data-m] {
  opacity: 0;
  transform: translate3d(0, var(--m-dist-2), 0);
  filter: none;
  transition-property: opacity, transform;
  transition-duration: var(--m-dur-2);
  transition-timing-function: var(--m-ease-out);
  will-change: opacity, transform;
}

html.m-ready [data-m].m-blur {
  filter: blur(4px);
  transition-property: opacity, transform, filter;
  will-change: opacity, transform, filter;
}

html.m-ready [data-m].is-in {
  opacity: 1;
  transform: none;
  filter: none;
  will-change: auto;
}

/* 방향별 */
html.m-ready [data-m=fade] {
  transform: none;
}

html.m-ready [data-m=up] {
  transform: translate3d(0, var(--m-dist-2), 0);
}

html.m-ready [data-m=down] {
  transform: translate3d(0, calc(var(--m-dist-2) * -1), 0);
}

html.m-ready [data-m=left] {
  transform: translate3d(calc(var(--m-dist-2) * -1), 0, 0);
}

html.m-ready [data-m=right] {
  transform: translate3d(var(--m-dist-2), 0, 0);
}

html.m-ready [data-m].is-in {
  opacity: 1;
  transform: none;
  filter: none;
  will-change: auto;
}

/* stagger 컨테이너는 관찰용 */
html.m-ready [data-m=stagger] {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

/* stagger item */
html.m-ready [data-m-item] {
  opacity: 0;
  transform: translate3d(0, var(--m-dist-1), 0);
  filter: none;
  transition-property: opacity, transform, filter;
  transition-duration: var(--m-dur-2);
  transition-timing-function: var(--m-ease-out);
  will-change: opacity, transform, filter;
}

html.m-ready [data-m-item].is-in {
  opacity: 1;
  transform: none;
  filter: none;
  will-change: auto;
}

@media (max-width: 768px) {
  html.m-ready [data-m],
  html.m-ready [data-m-item] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    will-change: auto;
  }
}
/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  html.m-ready [data-m],
  html.m-ready [data-m].is-in,
  html.m-ready [data-m-item],
  html.m-ready [data-m-item].is-in {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
.container {
  --container-max: 1440px;
  --container-px: clamp(20px, 4vw, 40px);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}
@media (max-width: 768px) {
  .container {
    --container-px: 20px;
  }
}
@media (max-width: 480px) {
  .container {
    --container-px: 16px;
  }
}

.container--sm {
  --container-max: 720px;
  --container-px: clamp(20px, 4vw, 40px);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}
@media (max-width: 768px) {
  .container--sm {
    --container-px: 20px;
  }
}
@media (max-width: 480px) {
  .container--sm {
    --container-px: 16px;
  }
}

.container--md {
  --container-max: 960px;
  --container-px: clamp(20px, 4vw, 40px);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}
@media (max-width: 768px) {
  .container--md {
    --container-px: 20px;
  }
}
@media (max-width: 480px) {
  .container--md {
    --container-px: 16px;
  }
}

.container--lg {
  --container-max: 1200px;
  --container-px: clamp(20px, 4vw, 40px);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}
@media (max-width: 768px) {
  .container--lg {
    --container-px: 20px;
  }
}
@media (max-width: 480px) {
  .container--lg {
    --container-px: 16px;
  }
}

.container--xl {
  --container-max: 1440px;
  --container-px: clamp(20px, 4vw, 40px);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}
@media (max-width: 768px) {
  .container--xl {
    --container-px: 20px;
  }
}
@media (max-width: 480px) {
  .container--xl {
    --container-px: 16px;
  }
}

.container--fluid {
  --container-max: 100vw;
  --container-px: clamp(20px, 4vw, 40px);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}
@media (max-width: 768px) {
  .container--fluid {
    --container-px: 20px;
  }
}
@media (max-width: 480px) {
  .container--fluid {
    --container-px: 16px;
  }
}

.container--bleed {
  padding-inline: 0;
}

.container--text {
  max-width: 72ch;
}

/* frontend/layout/_grid.scss
   Grid / Gap / Alignment Utilities
*/
/* =========================
   Basic Grids
========================= */
.grid-cols-1,
.grid-cols-2,
.grid-cols-3,
.grid-cols-4,
.grid-12 {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: 1fr;
  gap: 16px;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 768px) {
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 1280px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* =========================
   12 Column Grid
========================= */
.grid-12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 768px) {
  .grid-12 {
    grid-template-columns: 1fr;
  }
}

.col-1 {
  grid-column: span 1;
}

.col-2 {
  grid-column: span 2;
}

.col-3 {
  grid-column: span 3;
}

.col-4 {
  grid-column: span 4;
}

.col-5 {
  grid-column: span 5;
}

.col-6 {
  grid-column: span 6;
}

.col-7 {
  grid-column: span 7;
}

.col-8 {
  grid-column: span 8;
}

.col-9 {
  grid-column: span 9;
}

.col-10 {
  grid-column: span 10;
}

.col-11 {
  grid-column: span 11;
}

.col-12 {
  grid-column: span 12;
}

@media (max-width: 768px) {
  .col-1 {
    grid-column: auto;
  }
  .col-2 {
    grid-column: auto;
  }
  .col-3 {
    grid-column: auto;
  }
  .col-4 {
    grid-column: auto;
  }
  .col-5 {
    grid-column: auto;
  }
  .col-6 {
    grid-column: auto;
  }
  .col-7 {
    grid-column: auto;
  }
  .col-8 {
    grid-column: auto;
  }
  .col-9 {
    grid-column: auto;
  }
  .col-10 {
    grid-column: auto;
  }
  .col-11 {
    grid-column: auto;
  }
  .col-12 {
    grid-column: auto;
  }
}
/* =========================
   Gap Utilities
   - grid/flex 모두 적용 가능
========================= */
.gap-xs {
  gap: 4px;
}

.gap-sm {
  gap: 8px;
}

.gap-md {
  gap: 16px;
}

.gap-lg {
  gap: 24px;
}

.gap-xl {
  gap: 32px;
}

.gap-xl-2xl {
  gap: 40px;
}

.gap-2xl {
  gap: 48px;
}

.gap-3xl {
  gap: 64px;
}

.gap-3_5xl {
  gap: 80px;
}

.gap-4xl {
  gap: 96px;
}

.gap-5xl {
  gap: 128px;
}

/* =========================
   Alignment Utilities
========================= */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-center {
  text-align: center;
}

/* ===================================================
   Section layout rule (GLOBAL)
=================================================== */
.section {
  --section-bg: #fff;
  background: var(--section-bg);
  padding-block: 120px 120px;
  padding-inline: 0;
}
@media (max-width: 1024px) {
  .section {
    padding-block: 100px 100px;
    padding-inline: 0;
  }
}
@media (max-width: 768px) {
  .section {
    padding-block: 64px 64px;
    padding-inline: 0;
  }
}
@media (max-width: 480px) {
  .section {
    padding-block: 32px 32px;
    padding-inline: 0;
  }
}

.section--muted {
  --section-bg: #f8fafd;
}

.section--brand {
  --section-bg: color-mix(in srgb, var.$color-primary 10%, #fff);
}

.section--dark {
  --section-bg: #0b1220;
}

.l-card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .l-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .l-card-grid {
    grid-template-columns: 1fr;
  }
}
.l-card-grid.is-shift {
  max-width: clamp(780px, 78vw, 1040px);
  margin-left: auto;
}

@media (max-width: 1024px) {
  .l-card-grid.is-shift {
    max-width: none;
    margin-left: 0;
  }
}
/* ==========================================================================
   Global header height token
   - 실무 권장: 전역 토큰은 header가 아니라 core/layout에서 둬도 됨
   - 지금은 복붙 편하게 header-base 상단에 유지
   ========================================================================== */
:root {
  --header-h: 86px;
}

.site-header {
  --header-bg: transparent;
  --header-line: transparent;
  --nav-text: #111827;
  --nav-hover: #2563eb;
  --nav-muted: #4b5563;
  --nav-gap: clamp(24px, 4vw, 64px);
  --scroll-bg: #ffffff;
  --scroll-line: rgba(17, 24, 39, 0.08);
  --scroll-nav-text: #111827;
  --scroll-nav-muted: #4b5563;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-line);
  transition: background 220ms ease, border-color 220ms ease;
}
.site-header.is-scrolled, .site-header.header-solid {
  --header-bg: var(--scroll-bg);
  --header-line: var(--scroll-line);
  --nav-text: var(--scroll-nav-text);
  --nav-muted: var(--scroll-nav-muted);
}
.site-header .header-container {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(100% - 24px * 2, 1400px);
  margin-inline: auto;
}
@media (max-width: 768px) {
  .site-header .header-container {
    width: min(100% - 16px * 2, 1400px);
  }
}
.site-header .header-left,
.site-header .header-center,
.site-header .header-right {
  display: flex;
  align-items: center;
  min-width: 0;
}
.site-header .header-left {
  justify-content: flex-start;
}
.site-header .header-center {
  justify-content: center;
  min-width: 0;
}
.site-header .header-right {
  justify-content: flex-end;
  gap: 8px;
}
.site-header .logo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
}
.site-header .logo-link img {
  height: 38px;
  display: block;
  transition: opacity 220ms ease;
}
.site-header .logo-link .logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #2563eb;
  white-space: nowrap;
  transition: color 220ms ease;
}
.site-header .main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--nav-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 1024px) {
  .site-header .main-nav {
    display: none;
  }
}
.site-header .main-nav .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}
.site-header .main-nav .nav-link {
  display: inline-flex;
  align-items: center;
  padding: 14px 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--nav-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 220ms ease;
}
.site-header .main-nav .nav-link:hover {
  color: var(--nav-hover);
}
.site-header .sub-nav {
  display: none;
}
.site-header .auth-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
@media (max-width: 1024px) {
  .site-header .auth-nav {
    display: none;
  }
}
.site-header .auth-item {
  display: inline-flex;
  align-items: center;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--nav-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 220ms ease, opacity 220ms ease;
}
.site-header .auth-item:hover {
  color: var(--nav-hover);
}
.site-header .logout-inline {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.site-header .logout-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--nav-text);
  cursor: pointer;
  transition: color 220ms ease, opacity 220ms ease;
}
.site-header .logout-button:hover {
  color: var(--nav-hover);
}
.site-header .header-cta {
  color: var(--nav-text);
  border: 1px solid currentColor;
  background: transparent;
}
.site-header .header-cta:hover {
  color: var(--nav-hover);
  border-color: var(--nav-hover);
  background-color: #ffffff;
}

.site-header.header-solid {
  --header-bg: #ffffff;
  --header-line: rgba(17, 24, 39, 0.08);
}
.site-header.header-transparent {
  --header-bg: transparent;
  --header-line: rgba(255, 255, 255, 0.28);
}
.site-header.header-dark {
  --nav-text: #ffffff;
  --nav-muted: rgba(255,255,255,.72);
}
.site-header.header-dark .logo-link .logo-text {
  color: var(--nav-text);
}
.site-header.header-light {
  --nav-text: #111827;
  --nav-muted: #4b5563;
}
.site-header.header-light .logo-link .logo-text {
  color: #2563eb;
}
@media (min-width: calc(1024px + 1px)) {
  .site-header.nav--mega.is-nav-open {
    --header-bg: #ffffff;
    --header-line: rgba(17, 24, 39, 0.08);
    --nav-text: #111827;
    --nav-muted: #4b5563;
    --nav-hover: #2563eb;
  }
  .site-header.nav--mega.is-nav-open .logo-link .logo-text {
    color: #2563eb;
  }
}
.site-header:not(.scroll-skin--dark).header-transparent.is-scrolled {
  --header-bg: var(--scroll-bg);
  --header-line: var(--scroll-line);
  --nav-text: var(--scroll-nav-text);
  --nav-muted: var(--scroll-nav-muted);
}
.site-header:not(.scroll-skin--dark).header-transparent.is-scrolled .logo-link .logo-text {
  color: #2563eb;
}
.site-header.scroll-skin--dark.is-scrolled {
  --header-bg: rgba(0, 0, 0, 0.36);
  --header-line: transparent;
  --nav-text: rgba(255, 255, 255, 0.95);
  --nav-muted: rgba(255, 255, 255, 0.72);
  --nav-hover: #2563eb;
  background: var(--header-bg);
  border-bottom-color: var(--header-line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.site-header.scroll-skin--dark.is-scrolled .nav-link,
.site-header.scroll-skin--dark.is-scrolled .auth-item,
.site-header.scroll-skin--dark.is-scrolled .logout-button,
.site-header.scroll-skin--dark.is-scrolled .header-cta,
.site-header.scroll-skin--dark.is-scrolled .logo-link .logo-text {
  color: var(--nav-text);
}
.site-header.scroll-skin--dark.is-scrolled .header-cta {
  border-color: currentColor;
  background: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .site-header.scroll-skin--dark.is-scrolled .nav-link:hover,
  .site-header.scroll-skin--dark.is-scrolled .auth-item:hover,
  .site-header.scroll-skin--dark.is-scrolled .logout-button:hover {
    color: var(--nav-hover);
  }
  .site-header.scroll-skin--dark.is-scrolled .header-cta:hover {
    color: var(--nav-hover);
    border-color: var(--nav-hover);
    background: rgba(255, 255, 255, 0.12);
  }
}
@media (max-width: 1024px) {
  .site-header.header-dark {
    --header-bg: #ffffff;
    --header-line: rgba(17, 24, 39, 0.08);
    --nav-text: #111827;
    --nav-muted: #4b5563;
  }
}

.site-header .mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.site-header .mobile-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}
.site-header .mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: calc(1000 - 1);
}
.site-header .mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.site-header .mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100%;
  background: #ffffff;
  border-left: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
}
.site-header #mobile-menu:not([hidden]) .mobile-menu__panel {
  transform: translateX(0);
}
.site-header .mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}
.site-header .mobile-menu__title {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.site-header .mobile-menu__close {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-header .mobile-menu__close svg {
  width: 18px;
  height: 18px;
  display: block;
}
.site-header .mobile-menu__body {
  padding: 16px;
  overflow: auto;
}
.site-header .mobile-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-header .mobile-nav__link {
  display: block;
  padding: 12px 8px;
  text-decoration: none;
  color: #111827;
  font-weight: 600;
}
.site-header .mobile-sub {
  list-style: none;
  margin: 0 0 12px 0;
  padding: 0 0 0 12px;
}
.site-header .mobile-sub__link {
  display: block;
  padding: 10px 8px;
  text-decoration: none;
  color: #374151;
}
.site-header .mobile-auth {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}
.site-header .mobile-auth a, .site-header .mobile-auth button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 8px;
  color: #111827;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}
.site-header .mobile-nav__item.has-children .mobile-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}
.site-header .mobile-nav__item.has-children.is-open .mobile-sub {
  max-height: 520px;
}
.site-header .mobile-nav__item.has-children.is-open .mobile-nav__chev {
  transform: rotate(180deg);
}
.site-header .mobile-nav__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  color: #111827;
  text-align: left;
}
.site-header .mobile-nav__chev {
  width: 18px;
  height: 18px;
  transition: transform 220ms ease;
}
@media (max-width: 1024px) {
  .site-header .header-center {
    display: none;
  }
  .site-header .mobile-toggle {
    display: inline-flex;
  }
  .site-header .auth-nav {
    display: none;
  }
}

.no-scroll {
  overflow: hidden;
}

/* frontend/layout/header/_header-nav-dropdown.scss */
.site-header.nav--dropdown .main-nav .nav-item.has-children {
  position: relative;
}
.site-header.nav--dropdown .main-nav .sub-nav {
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  min-width: 180px;
  padding: 4px 0;
  margin: 0;
  list-style: none;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  --nav-muted: rgba(255, 255, 255, 0.82);
  --nav-hover: #2563eb;
}
.site-header.nav--dropdown .main-nav .nav-item.has-children.is-open > .sub-nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s ease, visibility 0s linear 0s;
}
.site-header.nav--dropdown .main-nav .sub-link {
  display: block;
  padding: 8px 16px;
  margin: 2px 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  color: #ffffff;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.site-header.nav--dropdown .main-nav .sub-link:hover, .site-header.nav--dropdown .main-nav .sub-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
}

/* frontend/layout/header/_header-nav-mega.scss */
.site-header.nav--mega .nav-wrap {
  position: relative;
  --mega-cols: 1;
  --mega-inner-x: 0px;
  --mega-inner-width: 0px;
  --mega-col-width: 0px;
  --mega-col-gap: var(--nav-gap, 64px);
}
.site-header.nav--mega .nav-wrap > .mega-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h, 80px);
  width: 100%;
  transform: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  z-index: calc(1000 + 20);
  --nav-text: #111827;
  --nav-muted: #4b5563;
  --nav-hover: #2563eb;
}
.site-header.nav--mega.is-nav-open .nav-wrap > .mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s ease, visibility 0s linear 0s;
}
@media (max-width: 1023px) {
  .site-header.nav--mega .nav-wrap > .mega-panel {
    display: none;
  }
}
.site-header.nav--mega .nav-wrap .mega-surface {
  background: var(--panel-bg, #ffffff);
  border-top: 1px solid var(--header-line, rgba(17, 24, 39, 0.08));
  padding: 24px 0;
}
.site-header.nav--mega .nav-wrap .mega-inner {
  width: min(100% - 24px * 2, 1400px);
  margin-inline: auto;
}
@media (max-width: 768px) {
  .site-header.nav--mega .nav-wrap .mega-inner {
    width: min(100% - 16px * 2, 1400px);
  }
}
@media (min-width: 1024px) {
  .site-header.nav--mega .nav-wrap .mega-inner {
    width: var(--mega-inner-width, min(100% - 24px * 2, 1400px));
    margin-left: var(--mega-inner-x, auto);
    margin-right: auto;
  }
}
.site-header.nav--mega .nav-wrap .mega-grid {
  display: grid;
  grid-template-columns: repeat(var(--mega-cols, 1), minmax(0, var(--mega-col-width, 1fr)));
  column-gap: var(--mega-col-gap, var(--nav-gap, 64px));
  row-gap: 24px;
  justify-content: start;
}
.site-header.nav--mega .nav-wrap .mega-link {
  display: block;
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--nav-muted);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.site-header.nav--mega .nav-wrap .mega-link:hover {
  color: var(--nav-hover);
}

/* frontend/layout/_footer.scss
   Footer (Global)
   - .container 기준으로 헤더/본문 라인과 정렬
*/
.site-footer {
  background-color: #111827;
  color: #d1d5db;
  padding-block: 48px;
  font-size: 0.875rem;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #374151;
}
.site-footer .footer-title {
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 16px;
}
.site-footer .footer-text {
  font-size: 0.75rem;
  line-height: 1.8;
  color: #d1d5db;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.site-footer .footer-text a {
  color: #2563eb;
  text-decoration: none;
}
.site-footer .footer-text a:hover {
  text-decoration: underline;
}
.site-footer .footer-line {
  display: block;
}
.site-footer .footer-link {
  color: #2563eb;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.site-footer .footer-link:hover {
  text-decoration: underline;
}
.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer .footer-links li {
  margin-bottom: 4px;
}
.site-footer .footer-links li a {
  font-size: 0.75rem;
  color: #d1d5db;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.site-footer .footer-links li a:hover {
  color: #2563eb;
}
.site-footer .footer-bottom {
  margin-top: 32px;
  padding-top: 16px;
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  text-wrap: balance;
}
@media (max-width: 1024px) {
  .site-footer .footer-grid {
    gap: 24px;
  }
}
@media (max-width: 768px) {
  .site-footer {
    padding-block: 32px;
  }
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 24px;
  }
  .site-footer .footer-title {
    margin-bottom: 8px;
  }
  .site-footer .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 4px;
  }
  .site-footer .footer-links li {
    margin-bottom: 0;
  }
  .site-footer .footer-bottom {
    margin-top: 24px;
  }
}
@media (max-width: 480px) {
  .site-footer {
    padding-block: 24px;
  }
  .site-footer .footer-grid {
    gap: 24px;
  }
  .site-footer .footer-links {
    grid-template-columns: 1fr;
  }
}

/* frontend/layout/overlay/_popup.scss */
/* ==========================================
   Frontend Global Popup Layer
========================================== */
#popup-layer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}

#popup-layer .popup-window {
  position: absolute;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  min-width: 280px;
  max-width: min(420px, 90vw);
  max-height: 90vh;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}

#popup-layer .popup-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#popup-layer .popup-body {
  flex: 1 1 auto;
  overflow: auto;
}

#popup-layer .popup-body > a,
#popup-layer .popup-body > img {
  display: block;
}

#popup-layer .popup-body img {
  width: 100%;
  height: auto;
  display: block;
}

#popup-layer .popup-bottom {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 12px;
  font-size: 0.875rem;
  background: #f9fafb;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
}

#popup-layer .popup-dont-show-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #4b5563;
  user-select: none;
  white-space: nowrap;
}

#popup-layer .popup-dont-show-label input[type=checkbox] {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

#popup-layer .popup-bottom-close {
  border: 0;
  background: none;
  padding: 4px 8px;
  font-size: 0.875rem;
  color: #2563eb;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

#popup-layer .popup-bottom-close:hover {
  background: rgba(37, 99, 235, 0.08);
}

#popup-layer .popup-window.popup-hidden {
  display: none;
}

@media (max-width: 480px) {
  #popup-layer .popup-window {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 92vw;
    max-width: 92vw;
    height: auto;
    max-height: 90vh;
  }
  #popup-layer .popup-inner {
    height: auto;
    max-height: 90vh;
  }
}
/* 
 * 시스템 점검 / 서비스 중단 시 노출되는
 * 전체 화면 오버레이 안내 패널(UI 전용, 페이지 대체용)
 */
/* =============================
 * 전체 배경 + 가운데 정렬
 * ============================= */
.system-maint-wrapper {
  min-height: 100vh;
  background: #e5e7eb;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
@media (max-width: 480px) {
  .system-maint-wrapper {
    padding: 16px;
  }
}

.system-maint-panel {
  width: min(720px, 100%);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(209, 213, 219, 0.9);
  overflow: hidden;
}

.system-maint-header {
  padding: 14px 20px;
  background: linear-gradient(90deg, #2563eb, #366fed);
  color: #f9fafb;
  display: flex;
  align-items: center;
  gap: 10px;
}

.system-maint-header-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.system-maint-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.system-maint-header-title {
  font-size: 14px;
  font-weight: 700;
}

.system-maint-header-sub {
  font-size: 12px;
  opacity: 0.9;
}

.system-maint-body {
  padding: 22px 22px 20px;
}
@media (max-width: 480px) {
  .system-maint-body {
    padding: 18px 16px 16px;
  }
}

.system-maint-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111827;
}
@media (max-width: 480px) {
  .system-maint-title {
    font-size: 18px;
  }
}

.system-maint-message {
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 14px;
}

.system-maint-desc {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 18px;
}

.system-maint-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.system-maint-btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.14s ease, box-shadow 0.18s ease;
}

.system-maint-btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #f9fafb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}
.system-maint-btn-primary:hover {
  background: #1658ea;
  transform: translateY(-1px);
}

.system-maint-btn-outline {
  background: #ffffff;
  color: #4b5563;
  border-color: #d1d5db;
}
.system-maint-btn-outline:hover {
  background: #f9fafb;
  transform: translateY(-1px);
}

/* scss/frontend/page/_auth.scss */
/* =========================================================
   Auth Page (로그인/회원가입 공통)
   - auth-page: 인증 페이지 전체 스코프
   - auth-wrapper: 가운데 정렬용 래퍼
   - auth-box: 카드 박스
   ========================================================= */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f9fafb;
}
.auth-page .auth-header {
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background-color: #ffffff;
}
.auth-page .auth-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.auth-page .auth-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
}
.auth-page .auth-home-link {
  font-size: 0.875rem;
  color: #4b5563;
  text-decoration: none;
}
.auth-page .auth-home-link:hover {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-page .auth-footer {
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  background-color: #ffffff;
}
.auth-page .auth-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
  color: #6b7280;
}
.auth-page .auth-footer-inner a {
  color: #6b7280;
  text-decoration: none;
}
.auth-page .auth-footer-inner a:hover {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-page .auth-wrapper {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px 24px;
}
.auth-page .auth-box {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 32px;
}
.auth-page .auth-title {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.auth-page .auth-message {
  margin-bottom: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  border: 1px solid transparent;
}
.auth-page .auth-message.error {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}
.auth-page .auth-message.info {
  color: #22c55e;
  background-color: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
}
.auth-page .auth-error-message {
  margin-bottom: 16px;
  color: #ef4444;
  font-size: 0.875rem;
}
.auth-page .auth-form {
  display: grid;
  gap: 16px;
}
.auth-page .form-group {
  display: grid;
  gap: 4px;
}
.auth-page .form-group label {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 600;
}
.auth-page .form-group.has-error .form-control {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.auth-page .help-text {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #6b7280;
}
.auth-page .field-error {
  color: #ef4444;
  font-size: 0.75rem;
}
.auth-page .input,
.auth-page .form-control {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  font-size: 1rem;
  color: #111827;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-page .input::placeholder,
.auth-page .form-control::placeholder {
  color: #94a3b8;
}
.auth-page .input:hover,
.auth-page .form-control:hover {
  border-color: #94a3b8;
}
.auth-page .input:focus,
.auth-page .form-control:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}
.auth-page .password-row .password-input {
  display: flex;
  align-items: center;
}
.auth-page .password-row .password-input .btn-text {
  margin-left: 4px;
  padding: 4px 8px;
  font-size: 0.875rem;
  color: #2563eb;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.auth-page .password-row .password-input .btn-text:hover {
  background-color: rgba(37, 99, 235, 0.08);
}
.auth-page .password-row .password-input .btn-text:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.auth-page .password-row .password-input .btn-text[aria-pressed=true] {
  color: #2563eb;
  font-weight: 500;
}
.auth-page .check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: #4b5563;
}
.auth-page .check input {
  width: 18px;
  height: 18px;
  appearance: none;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: #fff;
  transition: all 0.2s ease;
}
.auth-page .check input:checked {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
  position: relative;
}
.auth-page .check input:checked::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #2563eb;
}
.auth-page .check a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-page .btn {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.auth-page .btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border: none;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}
.auth-page .btn-primary:hover {
  filter: brightness(1.05);
}
.auth-page .btn-primary:active {
  transform: translateY(1px);
}
.auth-page .btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}
.auth-page .btn-outline {
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
}
.auth-page .btn-outline:hover {
  border-color: #94a3b8;
  color: #2563eb;
}
.auth-page .btn-outline:active {
  transform: translateY(1px);
}
.auth-page .btn-outline:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}
.auth-page .auth-extra {
  margin-top: 24px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.875rem;
  color: #6b7280;
}
.auth-page .auth-extra a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.auth-page .auth-extra a:hover {
  color: #1d4ed8;
}
.auth-page .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
@media (max-width: 768px) {
  .auth-page .auth-wrapper {
    padding: 24px 16px;
  }
  .auth-page .auth-box {
    padding: 24px;
  }
  .auth-page .btn,
  .auth-page .input,
  .auth-page .form-control {
    height: 44px;
  }
  .auth-page .actions {
    grid-template-columns: 1fr;
  }
}
