@charset "utf-8";
/* ==========================================================================
   muktimoon common.css (CLEAN)
   - Global tokens + container
   - Overflow guard 유지
   - Footer styles 유지
   - Home styles are scoped by .mm-home (regression guard)
   ========================================================================== */
/* ------------------------------------------------------------
   Font: Welcome (global)
------------------------------------------------------------ */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.min.css");

/* --------------------------------------------------------------------------
   0) Tokens
   -------------------------------------------------------------------------- */
:root {
  --mm-container-max: 1200px;
  --mm-gutter: 16px;

  --mm-space-1: 6px;
  --mm-space-2: 10px;
  --mm-space-3: 12px;
  --mm-space-4: 16px;
  --mm-space-5: 20px;
  --mm-space-6: 24px;
  --mm-space-7: 32px;
  --mm-space-8: 44px;

  --mm-radius-1: 12px;
  --mm-radius-2: 16px;
  --mm-radius-3: 20px;

  --mm-shadow-1: 0 10px 26px rgba(15, 23, 42, 0.10);
  --mm-shadow-2: 0 18px 44px rgba(15, 23, 42, 0.14);

  --mm-surface: #ffffff;
  --mm-surface-2: #f6f7f9;
  --mm-border: rgba(15, 23, 42, 0.10);

  --mm-title: #0f172a;
  --mm-prose: #334155;
  --mm-muted: #64748b;

  --mm-reading-max: 980px;
  --mm-brand-red: #c1121f;
  /* 기존 #e11d2e 보다 한 톤 어둡게 */

  /* Brand (blue, trust tone) */
  --mm-brand-primary: #1d4ed8;
  /* primary */
  --mm-brand-primary-dark: #1e40af;
  /* hover/active */
  --mm-brand-soft: #eff6ff;
  /* soft bg */
  --mm-focus-ring: rgba(29, 78, 216, 0.45);


}

/* --------------------------------------------------------------------------
   1) Temporary overflow guard (선택지 B 유지)
   -------------------------------------------------------------------------- */
html,
body {
  padding: 0;
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

@supports (overflow: clip) {

  html,
  body {
    overflow-x: clip;
  }
}

.sound_only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#container_title{
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ======================================================================
   top banner
   - fit container width, no overflow
   ====================================================================== */
.mm-container .mm-pc-board-banner,
#container .mm-pc-board-banner{
  width:100%;
  margin: 8px 0 18px;
}

.mm-container .mm-pc-board-banner picture,
.mm-container .mm-pc-board-banner img,
#container .mm-pc-board-banner picture,
#container .mm-pc-board-banner img{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
}

/* --------------------------------------------------------------------------
   Mobile login layer helpers
   - 기본값: PC/모바일 모두 숨김
   - 모바일에서 열릴 때(html.mm-login-open)만 mobile.css에서 노출
   -------------------------------------------------------------------------- */
#aside .mm-loginlayer__bg,
#aside .mm-loginlayer__close {
  display: none;
}

/* 로그인 상태 상단 메시지 숨김(테마 UI에서는 불필요) */
#hd_login_msg {
  display: none !important;
}

/* Skip link: 기본 숨김, 키보드 포커스 시만 표시 */
#skip_to_container {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10000;
}

#skip_to_container a {
  position: absolute;
  left: var(--mm-gutter);
  top: var(--mm-space-2);
  transform: translateY(-150%);
  transition: transform 0.18s ease;
  padding: 10px 12px;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  text-decoration: none;
  box-shadow: var(--mm-shadow-1);
}

#skip_to_container a:focus {
  transform: translateY(0);
}

/* Popup layer: '팝업레이어 알림' 제목(h2)만 화면에서 숨김(기능 유지) */
#hd_pop>h2 {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   2) Global container
   -------------------------------------------------------------------------- */
.mm-container {
  width: 100%;
  max-width: var(--mm-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--mm-gutter);
  padding-right: var(--mm-gutter);
}

/* ==========================================================================
   3) Footer (#mm-footer.mm-footer)
   ========================================================================== */
.mm-footer,
.mm-footer *,
.mm-footer *::before,
.mm-footer *::after {
  box-sizing: border-box;
}

.mm-footer {
  background: #000000;
  color: #e3e3e3;
}

.mm-footer a {
  color: inherit;
  text-decoration: none;
}

.mm-footer a:hover,
.mm-footer a:focus {
  text-decoration: underline;
}

.mm-footer .mm-stack>*+* {
  margin-top: var(--mm-stack-gap, var(--mm-space-3));
}

.mm-footer__inner {
  padding-top: var(--mm-space-7);
  padding-bottom: var(--mm-space-7);
  display: flex;
  flex-direction: column;
  gap: var(--mm-space-6);
}

.mm-footer__brand {
  display: flex;
  align-items: center;
}

.mm-footer__logo img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
}

.mm-footer__text {
  --mm-stack-gap: var(--mm-space-3);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #d6d6d6;
}

.mm-footer__text p {
  margin: 0;
}

.mm-footer__notice-ko {
  display: inline;
  margin-left: 0.35em;
  color: #bdbdbd;
}

/* ==========================================================================
   Home page (index.php) - layout + tones (v2, dedup)
   - Scope safety: .mm-home 내부에서만 적용
   - 목표: 벤치마킹 톤(밴드 높이/색 농도/장식 위치/읽기폭) 2차 미세 조정
   ========================================================================== */

.mm-home {
  --mm-home-max: 980px;
  --mm-home-gutter: 16px;

  --mm-home-radius: 22px;
  --mm-home-border: rgba(15, 23, 42, 0.10);
  --mm-home-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);

  --mm-ink: #0f172a;
  --mm-ink-2: #334155;
  --mm-ink-muted: #475569;

  --mm-band-h: 8px;
  /* 벤치마킹: 상단 밴드 높이 */
  --mm-prose-max: 820px;
  /* 본문 줄 길이(읽기폭) */

  background: #f3f4f6;
  padding: 26px 0 64px;
}

.mm-home .mm-container {
  width: 100%;
  max-width: var(--mm-home-max);
  margin: 0 auto;
  padding: 0 var(--mm-home-gutter);
  box-sizing: border-box;
  /* padding 포함해도 100%를 넘지 않게(가로 잘림 방지) */
}

.mm-home .mm-section+.mm-section {
  margin-top: 44px;
}

/* Home top welcome banner (scoped) */
.mm-home .mm-welcome-banner{
  display: block;
  margin: 0 0 16px;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff; /* 경계 이음새(흰 줄/모호함) 방지 */
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: var(--mm-shadow-1);
}

.mm-home .mm-welcome-banner img{
  display: block;
  width: 100%;
  height: auto;
}

/* ------------------------------------------------------------
   Titles (home)
   ------------------------------------------------------------ */
.mm-home .mm-title {
  margin: 0 0 16px;
  text-align: center;
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--mm-ink);
}

.mm-home .mm-title::after {
  content: "";
  display: block;
  width: 86px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: var(--mm-ink);
  opacity: 0.75;
}

/* 2줄 제목(단일 h2) */
.mm-home .mm-title--split {
  margin-bottom: 18px;
}

.mm-home .mm-title__main {
  display: block;
}

.mm-home .mm-title__sub {
  display: block;
  margin-top: 8px;
  font-weight: 800;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--mm-ink-muted);
}

/* Hero title: underline 제거 + 좌측 정렬 */
.mm-home .mm-title--hero {
  text-align: left;
  margin: 18px 0 0;
  font-size: clamp(22px, 2.6vw, 40px);
  color: #7c3aed;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.40);
}

.mm-home .mm-title--hero::after {
  display: none;
}

/* ------------------------------------------------------------
   Card base (home)
   ------------------------------------------------------------ */
.mm-home .mm-card {
  border-radius: var(--mm-home-radius);
  border: 1px solid var(--mm-home-border);
  box-shadow: var(--mm-home-shadow);
  overflow: hidden;
  /* 좁은 폭에서 밴드/장식이 radius 밖으로 삐져나오는 현상 방지 */
}

/* prose readability */
.mm-home .mm-card--prose {
  padding: 26px 24px;
  background: #ffffff;
}

.mm-home .mm-card--prose>* {
  max-width: var(--mm-prose-max);
  margin-left: auto;
  margin-right: auto;
}

.mm-home .mm-card--prose p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--mm-ink-2);
}

.mm-home .mm-card--prose p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   Hero cards
   ------------------------------------------------------------ */
.mm-home .mm-card--hero {
  position: relative;
  overflow: hidden;
}

/* Light hero (Intro) */
.mm-home .mm-card--hero-light {
  background: #ffffff;
}

.mm-home .mm-card--hero-light::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: var(--mm-band-h);
  background: linear-gradient(90deg, #2563eb, #22c55e);
  opacity: 0.95;
}

.mm-home .mm-card--hero-light .mm-hero__grid {
  position: relative;
  padding: 26px 24px 24px;
}

.mm-home .mm-card--hero-light .mm-hero__copy {
  max-width: var(--mm-prose-max);
  margin: 0 auto;
}

.mm-home .mm-card--hero-light .mm-callout.mm-callout--notice {
  margin-top: 16px;
  padding: 14px 14px 13px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-left: 5px solid #f59e0b;
}

.mm-home .mm-card--hero-light .mm-callout__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--mm-ink);
}

.mm-home .mm-card--hero-light .mm-callout p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mm-ink-2);
}

/* Intro deco: 위치/크기 2차 조정(벤치마킹 대비 더 우측/상단) */
.mm-home .mm-card--hero-light .mm-hero__deco {
  position: absolute;
  right: -210px;
  top: -170px;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  opacity: 0.55;
  pointer-events: none;

  background:
    radial-gradient(circle at 30% 30%,
      rgba(37, 99, 235, 0.28) 0%,
      rgba(34, 197, 94, 0.16) 48%,
      rgba(255, 255, 255, 0) 70%);
}

/* Dark hero (Why) */
.mm-home .mm-card--hero-dark {
  background: linear-gradient(135deg, #0b1020 0%, #141a34 55%, #0b1020 100%);
  border: 1px solid rgba(15, 23, 42, 0.25);
}

.mm-home .mm-card--hero-dark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: var(--mm-band-h);
  background: linear-gradient(90deg, #7c3aed, #2563eb, #22c55e);
  opacity: 0.95;
}

/* 벤치마킹: 대각 라인 농도 약하게 */
.mm-home .mm-card--hero-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(255, 255, 255, 0.10) 0px,
      rgba(255, 255, 255, 0.10) 2px,
      rgba(255, 255, 255, 0.00) 2px,
      rgba(255, 255, 255, 0.00) 12px);
  opacity: 0.22;
  pointer-events: none;
}

.mm-home .mm-card--hero-dark .mm-hero__content {
  position: relative;
  z-index: 1;
  padding: 26px 24px 24px;

  display: flex;
  /* DOM은 h2 먼저, 시각은 h2를 아래로 */
  flex-direction: column;
}

.mm-home .mm-card--hero-dark .mm-hero__content>p {
  order: 1;
  max-width: 660px;
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.86);
}

.mm-home .mm-card--hero-dark .mm-hero__content>p:last-of-type {
  margin-bottom: 0;
}

.mm-home .mm-card--hero-dark .mm-title--hero {
  order: 2;
  max-width: 720px;
}

/* Hero mark (WHY/BONUS 공통): 기본 위치/크기/레이어 */
.mm-home .mm-card--hero .mm-hero__mark {
  position: absolute;
  right: 18px;
  bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: clamp(64px, 10vw, 120px);
  z-index: 0;
  user-select: none;
  pointer-events: none;
  opacity: 1;
  /* 섹션별로 필요 시 override */
}

/* Dark(WHY): 기존 톤 유지 */
.mm-home .mm-card--hero-dark .mm-hero__mark {
  color: rgba(255, 255, 255, 0.10);
}

/* Amber(BONUS): 배경이 밝아서 다크 잉크로 은은하게 */
.mm-home .mm-card--hero-amber .mm-hero__mark {
  color: rgba(15, 23, 42, 0.10);
}

/* ------------------------------------------------------------
   Tone system for sections (bands/strip/steps)
   ------------------------------------------------------------ */
.mm-home .mm-tone {
  --mm-tone-accent: #2563eb;
  --mm-tone-band: #2b2f6e;
}

/* per-tone vars */
.mm-home .mm-tone--purple {
  --mm-tone-accent: #7c3aed;
  --mm-tone-band: #6d28d9;
}

.mm-home .mm-tone--navy {
  --mm-tone-accent: #2563eb;
  --mm-tone-band: #2b2f6e;
}

.mm-home .mm-tone--teal {
  --mm-tone-accent: #059669;
  --mm-tone-band: #059669;
}

.mm-home .mm-tone--amber {
  --mm-tone-accent: #f59e0b;
  --mm-tone-band: #f59e0b;
}

.mm-home .mm-tone--red {
  --mm-tone-accent: #ef4444;
  --mm-tone-band: #ef4444;
}

/* subtitles as strip inside prose cards */
.mm-home .mm-tone .mm-card--prose .mm-subtitle {
  margin: 18px calc(-1 * 24px) 12px;
  padding: 12px 24px;

  background: var(--mm-tone-band);
  color: #ffffff;

  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;

  border-left: 8px solid rgba(255, 255, 255, 0.28);
}

.mm-home .mm-tone .mm-card--prose .mm-subtitle:first-of-type {
  margin-top: 14px;
}

/* bullets: 더 또렷한 마커(벤치마킹 톤) */
.mm-home .mm-tone .mm-bullets {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.mm-home .mm-tone .mm-bullets>li {
  position: relative;
  padding-left: 30px;
  margin: 10px 0;

  font-size: 15.5px;
  line-height: 1.75;
  color: var(--mm-ink-2);
}

.mm-home .mm-tone .mm-bullets>li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 20px;
  height: 20px;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.10);
}

.mm-home .mm-tone .mm-bullets>li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.60em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--mm-tone-accent);
}

/* steps: 번호 원을 톤 컬러로 */
.mm-home .mm-tone .mm-step::before {
  background: var(--mm-tone-accent);
  border-color: rgba(255, 255, 255, 0.0);
  color: #ffffff;
}

/* ------------------------------------------------------------
   Soft background accents for 11~15
   - 섹션이 밋밋한 문제: 카드 배경을 은은하게 차등
   ------------------------------------------------------------ */
.mm-home .mm-tone--soft-slate .mm-card {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.mm-home .mm-tone--soft-sky .mm-card {
  background: linear-gradient(180deg, #ffffff, #f0f9ff);
}

.mm-home .mm-tone--soft-violet .mm-card {
  background: linear-gradient(180deg, #ffffff, #f5f3ff);
}

.mm-home .mm-tone--soft-amber .mm-card {
  background: linear-gradient(180deg, #ffffff, #fff7ed);
}

.mm-home .mm-tone--soft-emerald .mm-card {
  background: linear-gradient(180deg, #ffffff, #ecfdf5);
}

/* ------------------------------------------------------------
   Responsive tuning (home)
   ------------------------------------------------------------ */
@media (max-width: 991.98px) {
  .mm-home {
    --mm-band-h: 6px;
    --mm-prose-max: 100%;
    padding: 18px 0 44px;
  }

  .mm-home .mm-section+.mm-section {
    margin-top: 34px;
  }

  .mm-home .mm-card--prose {
    padding: 20px 18px;
  }

  .mm-home .mm-card--hero-light .mm-hero__grid {
    padding: 20px 18px 18px;
  }

  .mm-home .mm-card--hero-dark .mm-hero__content {
    padding: 20px 18px 18px;
  }

  .mm-home .mm-card--hero .mm-hero__mark {
    right: 12px;
    bottom: 8px;
    opacity: 0.95;
  }

  .mm-home .mm-card--hero-light .mm-hero__deco {
    right: -260px;
    top: -210px;
    width: 560px;
    height: 560px;
    opacity: 0.45;
  }

  .mm-home .mm-tone .mm-card--prose .mm-subtitle {
    margin-left: calc(-1 * 18px);
    margin-right: calc(-1 * 18px);
    padding: 11px 18px;
    font-size: 15px;
  }

  .mm-home .mm-tone .mm-bullets>li {
    font-size: 15px;
    padding-left: 28px;
  }
}

@media (min-width: 992px) {
  .mm-home {
    padding: 26px 0 70px;
  }

  .mm-home .mm-card--prose {
    padding: 28px 32px;
  }

  .mm-home .mm-card--hero-light .mm-hero__grid {
    padding: 30px 32px 28px;
  }

  .mm-home .mm-card--hero-dark .mm-hero__content {
    padding: 30px 32px 28px;
  }

  .mm-home .mm-tone .mm-card--prose .mm-subtitle {
    margin-left: calc(-1 * 32px);
    margin-right: calc(-1 * 32px);
    padding: 12px 32px;
  }
}

/* ======================================================================
   Site Header (semantic, responsive base)
   - scope: .mm-site-header only
   ====================================================================== */
.mm-site-header,
.mm-site-header * {
  box-sizing: border-box;
}

.mm-site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.mm-site-header__top {
  background: #ffffff;
}

.mm-site-header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.mm-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.mm-brand__logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: 220px;
}

.mm-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  cursor: pointer;
}

.mm-iconbtn:focus {
  outline: 2px solid var(--mm-focus-ring);
  outline-offset: 2px;
}

/* Nav bar */
.mm-site-nav {
  background: var(--mm-brand-primary);
  /* benchmark red tone */
}

.mm-site-nav__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.mm-menubtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.14);
  color: #ffffff;
  cursor: pointer;
}

.mm-menubtn__label {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mm-navscroll {
  flex: 1 1 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mm-navscroll::-webkit-scrollbar {
  height: 0;
}

.mm-navlist {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.mm-navlink {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mm-navlink:hover,
.mm-navlink:focus {
  background: rgba(0, 0, 0, 0.18);
}

/* Modal base (search) */
.mm-modal[hidden] {
  display: none !important;
}

.mm-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.mm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.mm-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 24px));
  margin: 10vh auto 0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.mm-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.mm-modal__title {
  font-weight: 700;
  color: #0f172a;
}

/* Search form */
.mm-search__form {
  padding: 14px;
  display: flex;
  gap: 10px;
}

.mm-search__form input[type="text"] {
  flex: 1 1 auto;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.16);
}

.mm-search__submit {
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

/* Drawer */
.mm-drawer[hidden] {
  display: none !important;
}

.mm-drawer {
  position: fixed;
  inset: 0;
  z-index: 2100;
}

.mm-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.mm-drawer__panel {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: min(86vw, 360px);
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
  border-right: 1px solid rgba(15, 23, 42, 0.10);
  display: flex;
  flex-direction: column;
}

.mm-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.mm-drawer__title {
  font-weight: 700;
  color: #0f172a;
}

.mm-drawer__body {
  padding: 12px 14px 16px;
  overflow: auto;
}

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

.mm-drawer__item+.mm-drawer__item {
  margin-top: 10px;
}

.mm-drawer__link {
  display: block;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 400;
  background: rgba(15, 23, 42, 0.05);
  width: 100%;
}

.mm-drawer__sub {
  margin: 8px 0 0;
  padding: 0 0 0 10px;
  list-style: none;
}

.mm-drawer__sublink {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #334155;
  background: rgba(15, 23, 42, 0.03);
  margin-top: 6px;
  font-weight: 700;
}

.mm-drawer__auth {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mm-authlink {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  text-decoration: none;
  font-weight: 800;
}

/* ==========================================================================
   Header / Nav (mm-hd) - semantic + responsive base
   ========================================================================== */
.mm-hd,
.mm-hd *,
.mm-hd *::before,
.mm-hd *::after {
  box-sizing: border-box;
}

.mm-hd {
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.mm-hd__top {
  padding: 10px 0;
}

.mm-hd__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mm-hd__logo img {
  display: block;
  height: 42px;
  /* 로고 선명도 체감용 */
  width: auto;
  max-width: 100%;
}

.mm-hd__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mm-hd__iconbtn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #f3f4f6;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mm-hd__allbtn {
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: var(--mm-brand-primary);
  color: #ffffff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mm-hd__search {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  padding: 10px 0 12px;
}

.mm-hd__searchform {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mm-hd__searchform input[type="text"] {
  flex: 1 1 auto;
  height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
}

.mm-hd__searchbtn {
  width: 46px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #0f172a;
  color: #fff;
}

/* nav */
.mm-nav {
  background: var(--mm-brand-primary);
}

.mm-nav__primary {
  margin: 0;
  padding: 0;
  list-style: none;

  display: flex;
  align-items: center;
  gap: 0;

  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mm-nav__primary::-webkit-scrollbar {
  display: none;
}

.mm-nav__item {
  flex: 0 0 auto;
}

.mm-nav__link {
  display: block;
  padding: 14px 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.mm-nav__item.is-active>.mm-nav__link {
  background: rgba(0, 0, 0, 0.14);
}

.mm-nav__subrow {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
  padding: 10px 0;
}

.mm-nav__subrow .mm-container {
  display: block;
}

.mm-nav__sublist {
  margin: 0;
  padding: 0 var(--mm-gutter);
  list-style: none;

  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mm-nav__sublink {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: #0f172a;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

/* account */
.mm-hd__account {
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.mm-account {
  margin: 0;
  padding: 10px 0;
  list-style: none;

  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mm-account a {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
}

.mm-account a:hover,
.mm-account a:focus {
  text-decoration: underline;
}

/* drawer */
.mm-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.mm-drawer__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.mm-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 86%;
  max-width: 360px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
}

.mm-drawer__head {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mm-drawer__title {
  font-weight: 700;
  color: #0f172a;
}

.mm-drawer__close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #f3f4f6;
}

.mm-drawer__body {
  padding: 12px 14px 18px;
  overflow: auto;
}

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

.mm-drawer__item+.mm-drawer__item {
  margin-top: 10px;
}

.mm-drawer__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mm-drawer__link {
  color: #0f172a;
  text-decoration: none;
  font-weight: 400;
  font-size: 14px;
}

.mm-drawer__expander {
  width: 40px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
}

.mm-drawer__sub {
  margin: 8px 0 0;
  padding: 0 0 0 12px;
  list-style: none;
  border-left: 2px solid rgba(15, 23, 42, 0.10);
}

.mm-drawer__sub a {
  color: #334155;
  text-decoration: none;
  font-weight: 400;
  font-size: 13px;
}

.mm-drawer__account {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}

.mm-account--drawer {
  justify-content: flex-start;
  padding: 0;
}

html.mm-noscroll,
body.mm-noscroll {
  overflow: hidden !important;
}


/* --------------------------------------------------------------------------
   Home: Partner banners
   - 카드 크기 기준: 300x200(3:2) 느낌 유지 (그리드 칼럼은 2/3, 폭은 자동 축소)
   - 이미지 없거나 로딩 에러면 동일 크기 “텍스트 카드”로 표시
   -------------------------------------------------------------------------- */
.mm-partners {
  margin: 16px 0 24px;
}

.mm-partners__grid{
  display: grid;

  /* ✅ 2개/3개 배치 + 각 카드 최대 300px, 좁아지면 같이 줄어듦 */
  grid-template-columns: repeat(2, minmax(0, 300px));
  gap: 1px;

  /* ✅ 전체 영역 중앙 정렬 */
  justify-content: center;

  max-width: var(--mm-container-max, 1200px);
  margin: 0 auto;
  padding: 0 var(--mm-gutter, 16px);
}

@media (min-width: 576px){
  .mm-partners__grid{
    grid-template-columns: repeat(3, minmax(0, 300px));
  }
}

.mm-partners__item{
  position: relative;
  width: 100%;

  /* ✅ 항상 3:2 박스 (대부분 300x200 배너에 맞춤) */
  aspect-ratio: 3 / 2;

  border-radius: 14px;
  overflow: hidden;

  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  text-decoration: none;
}

.mm-partners__item img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  /* ✅ 배너 크기가 제각각이어도 박스 안에서 정돈 */
  object-fit: cover;

  display: block;
}

/* ✅ 텍스트 카드(이미지 없음) / 로딩 에러(깨짐) 공통 */
.mm-partners__fallback{
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 12px;
  text-align: center;

  font-weight: 400;
  color: inherit;
  background: var(--mm-brand-soft, #eff6ff);

  opacity: 0;              /* 기본은 숨김 */
}

.mm-partners__item.is-text .mm-partners__fallback{
  opacity: 1;
}

/* ✅ 이미지 로딩 에러시: img 숨기고 fallback 보여주기 */
.mm-partners__item.is-broken img{
  display: none;
}
.mm-partners__item.is-broken .mm-partners__fallback{
  opacity: 1;
}



/* ------------------------------------------------------------
   FOR SUB PAGE - pretty bullets (mm-sub-page, mm-sub-page2) 
   ------------------------------------------------------------ */
/* pretty bullets */
.mm-sub-page .mm-bullets{
  margin: 12px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.mm-sub-page .mm-bullets > li{
  position: relative;
  padding: 10px 12px 10px 38px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  background: rgba(0,0,0,.02);
  color: rgba(0,0,0,.85);
  line-height: 1.55;
}

.mm-sub-page .mm-bullets > li::before{
  content: "✓";
  position: absolute;
  left: 12px;
  top: 10px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--mm-brand-soft, rgba(29,78,216,.10));
  color: var(--mm-brand-primary, #1d4ed8);
  font-size: 12px;
  line-height: 1;
}

/* hover(선택) */
.mm-sub-page .mm-bullets > li:hover{
  border-color: rgba(0,0,0,.16);
  background: rgba(0,0,0,.03);
}


.mm-sub-page2 .mm-bullets{
  margin: 12px 0;
  padding: 0;
  list-style: none;
  border-left: 3px solid rgba(0,0,0,.08);
}

.mm-sub-page2 .mm-bullets > li{
  position: relative;
  padding: 8px 0 8px 18px;
  color: rgba(0,0,0,.85);
  line-height: 1.6;
}

.mm-sub-page2 .mm-bullets > li::before{
  content: "";
  position: absolute;
  left: -7px;
  top: 15px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--mm-brand-primary, #1d4ed8);
}


/* steps (ordered) */
.mm-sub-page .mm-steps{
  margin: 14px 0;
  padding: 0;
  list-style: none;
  counter-reset: mmstep;
  display: grid;
  gap: 10px;
}

.mm-sub-page .mm-steps > .mm-step{
  counter-increment: mmstep;
  position: relative;
  padding: 12px 12px 12px 52px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  background: rgba(0,0,0,.02);
  color: rgba(0,0,0,.88);
  line-height: 1.6;
}

.mm-sub-page .mm-steps > .mm-step::before{
  content: counter(mmstep);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--mm-brand-primary, #1d4ed8);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* hover(선택) */
.mm-sub-page .mm-steps > .mm-step:hover{
  border-color: rgba(0,0,0,.16);
  background: rgba(0,0,0,.03);
}

/* 모바일에서 조금 타이트하게(선택) */
@media (max-width: 766px){
  .mm-sub-page .mm-steps{ gap: 8px; }
  .mm-sub-page .mm-steps > .mm-step{ padding-left: 48px; }
  .mm-sub-page .mm-steps > .mm-step::before{ width: 26px; height: 26px; }
}

.mm-sub-page2 .mm-steps{
  margin: 14px 0;
  padding: 0;
  list-style: none;
  counter-reset: mmstep;
  border-left: 3px solid rgba(0,0,0,.08);
}

.mm-sub-page2 .mm-steps > .mm-step{
  counter-increment: mmstep;
  position: relative;
  padding: 10px 0 10px 18px;
  color: rgba(0,0,0,.88);
  line-height: 1.7;
}

.mm-sub-page2 .mm-steps > .mm-step::before{
  content: counter(mmstep);
  position: absolute;
  left: -14px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #fff;
  border: 2px solid var(--mm-brand-primary, #1d4ed8);
  color: var(--mm-brand-primary, #1d4ed8);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* FAQ (dl) */
.mm-sub-page .mm-faq,
.mm-sub-page2 .mm-faq{
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

/* Q row */
.mm-sub-page .mm-faq > dt,
.mm-sub-page2 .mm-faq > dt{
  margin: 0;
  padding: 12px 14px 12px 52px;
  position: relative;

  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  background: #fff;

  color: rgba(0,0,0,.90);
  font-weight: 400;
  line-height: 1.5;
}

/* Q badge */
.mm-sub-page .mm-faq > dt::before,
.mm-sub-page2 .mm-faq > dt::before{
  content: "Q";
  position: absolute;
  left: 14px;
  top: 12px;

  width: 28px;
  height: 28px;
  border-radius: 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--mm-brand-primary, #1d4ed8);
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

/* Answer */
.mm-sub-page .mm-faq > dd,
.mm-sub-page2 .mm-faq > dd{
  margin: -6px 0 0;           /* dt와 살짝 붙여 카드처럼 */
  padding: 12px 14px 12px 52px;
  position: relative;

  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  background: rgba(0,0,0,.02);

  color: rgba(0,0,0,.78);
  line-height: 1.75;
}

/* A badge */
.mm-sub-page .mm-faq > dd::before
.mm-sub-page2 .mm-faq > dd::before{
  content: "A";
  position: absolute;
  left: 14px;
  top: 12px;

  width: 28px;
  height: 28px;
  border-radius: 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.10);
  color: rgba(0,0,0,.65);
  font-size: 13px;
  line-height: 1;
}

/* hover(선택) */
.mm-sub-page .mm-faq > dt:hover,
.mm-sub-page2 .mm-faq > dt:hover{
  border-color: rgba(0,0,0,.16);
  background: rgba(0,0,0,.01);
}

/* 모바일 타이트(선택) */
@media (max-width: 766px){
  .mm-sub-page .mm-faq,
  .mm-sub-page2 .mm-faq{ gap: 8px; }
  .mm-sub-page .mm-faq > dt,
  .mm-sub-page .mm-faq > dd,
  .mm-sub-page2 .mm-faq > dt,
  .mm-sub-page2 .mm-faq > dd{
    padding-left: 48px;
  }
  .mm-sub-page .mm-faq > dt::before,
  .mm-sub-page .mm-faq > dd::before,
  .mm-sub-page2 .mm-faq > dt::before,
  .mm-sub-page2 .mm-faq > dd::before{
    width: 26px;
    height: 26px;
  }
}


@media (max-width: 991px){
  #container{ padding-left:10px;padding-right:10px;}
}