/* Money Calendar — 종이 가계부 시리즈 공통 셸 (기능 페이지) */

/*
 * Freeze directive: 1~15 기능의 제목·설명·섹션 구조·텍스트·버튼·번호 체계는 정책상 고정.
 * 아래는 기기별 UI 배율만 조정: PC 1.0 / 태블릿(≤1024px) 0.85 / 모바일(≤480px) 0.75
 */
:root {
  --mc-ui-scale: 1;
}

@media (max-width: 1024px) {
  :root:has(body.mc-app) {
    --mc-ui-scale: 0.85;
  }
}

@media (max-width: 480px) {
  :root:has(body.mc-app) {
    --mc-ui-scale: 0.75;
  }
}

html:has(body.mc-app) {
  font-size: calc(100% * var(--mc-ui-scale));
  overflow-x: clip;
}

body.mc-app {
  overflow-x: clip;
  max-width: 100%;
  min-width: 0;
}

.mc-app,
.mc-app input,
.mc-app textarea,
.mc-app select,
.mc-app button {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: #0f172a;
  color: #fff;
  border-radius: 10px;
  z-index: 1000;
}

/* 맨 위로(기능·사용 가이드 데모): 우측 하단 고정, 사이드 광고 Safe Zone — rem으로 기기 배율 반영 */
.mc-scroll-top {
  position: fixed;
  right: max(2.25rem, calc(env(safe-area-inset-right, 0px) + 1.5rem));
  bottom: max(2.5rem, calc(env(safe-area-inset-bottom, 0px) + 1.75rem));
  z-index: 85;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 3.125rem;
  min-height: 3.125rem;
  padding: 0.5rem 0.375rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border-default) 82%, transparent);
  background: color-mix(in srgb, var(--color-surface) 76%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-text-primary);
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.14);
  transition: opacity 0.22s ease, transform 0.18s ease, border-color 0.18s ease;
  font: inherit;
}

.mc-scroll-top:hover {
  border-color: color-mix(in srgb, var(--color-primary) 35%, var(--border-default));
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
}

.mc-scroll-top:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-primary) 55%, transparent);
  outline-offset: 3px;
}

.mc-scroll-top__icon {
  display: block;
  flex-shrink: 0;
}

.mc-scroll-top__label {
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  opacity: 0.92;
}

html[data-theme="dark"] .mc-scroll-top {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
}

.mc-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  background: transparent;
}

/* 종이 질감: 본문·카드보다 반드시 뒤(z-index: -1), 클릭 통과 */
.mc-app::before {
  content: "";
  position: absolute;
  inset: 0;
  min-height: 100%;
  z-index: -1;
  pointer-events: none;
  background-color: var(--mc-paper-bg);
  background-image: var(--mc-paper-texture);
}

.mc-app__canvas {
  flex: 1;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  /* 본문은 일반 블록 플로우만 사용 (제목·가이드가 위로 밀리지 않도록) */
  min-height: 0;
  max-width: 100%;
  overflow-x: clip;
}

/* —— Global header —— */
.mc-global-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: color-mix(in srgb, var(--mc-paper-veil) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-default);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--color-text-primary) 4%, transparent);
}

/* 헤더 즐겨찾기(최대 5) — 한 줄·5칸 고정, flex 비율은 common.css */
.mc-fav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: nowrap;
}

.mc-fav-bar.mc-fav-bar--grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
  min-height: 34px;
}

.mc-fav-bar__cell {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mc-fav-bar__link {
  font-size: clamp(0.55rem, 1.05vw, 0.65rem);
  font-weight: 750;
  line-height: 1.15;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--border-default);
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  box-sizing: border-box;
}

.mc-fav-bar__link:hover {
  border-color: var(--border-strong);
  color: var(--color-text-primary);
}

/* Navigation(즐겨찾기): 태블릿·모바일에서 드롭다운 */
.mc-fav-dropdown {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.mc-fav-dropdown > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-default);
  background: color-mix(in srgb, var(--color-surface) 90%, transparent);
  user-select: none;
}

.mc-fav-dropdown > summary::after {
  content: "▾";
  flex: 0 0 auto;
  font-size: 0.9em;
  line-height: 1;
  opacity: 0.95;
}

.mc-fav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.mc-fav-dropdown[open] > summary {
  border-color: var(--border-strong);
  color: var(--color-text-primary);
}

.mc-fav-dropdown__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: min(280px, calc(100vw - 48px));
  max-height: min(60vh, 320px);
  overflow: auto;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--border-default);
  background: color-mix(in srgb, var(--color-surface) 96%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
}

.mc-fav-dropdown__link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 750;
  color: var(--color-text-secondary);
  text-decoration: none;
}

.mc-fav-dropdown__link:hover {
  background: var(--color-surface-2);
  color: var(--color-text-primary);
}

.mc-fav-dropdown__empty {
  padding: 10px 12px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* 모바일·태블릿: 드롭다운 슬림 / 데스크톱 좁은 폭: 그리드 탭 밀도 */
@media (min-width: 1025px) and (max-width: 1320px) {
  .mc-fav-bar,
  .page-home .mc-fav-bar {
    gap: 4px;
  }

  .mc-fav-bar.mc-fav-bar--grid,
  .page-home .mc-fav-bar.mc-fav-bar--grid {
    gap: 4px;
  }

  .mc-fav-bar__link,
  .page-home .mc-fav-bar__link {
    padding: 4px 4px;
  }
}

@media (max-width: 1024px) {
  .mc-fav-dropdown > summary {
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  .mc-global-header__inner .mc-fav-bar,
  .site-header__inner .mc-fav-bar {
    display: none !important;
  }

  .mc-fav-dropdown {
    display: block;
  }
}

@media (max-width: 480px) {
  .mc-fav-dropdown > summary {
    padding: 5px 6px;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }
}

.page-home .mc-fav-dropdown {
  display: none;
}

.page-home .mc-fav-bar {
  display: grid !important;
}

@media (max-width: 1024px) {
  .page-home .mc-fav-bar {
    display: none !important;
  }

  .page-home .mc-fav-dropdown {
    display: block;
  }
}

/* 사이드바 최초 오픈 시 즐겨찾기 안내 */
.mc-drawer-fav-tip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 10px 10px 12px;
  margin: 0 0 10px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--color-primary) 38%, var(--border-default));
  background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface));
}

.mc-drawer-fav-tip__text {
  flex: 1;
  margin: 0;
  padding-top: 1px;
  font-size: 0.82rem;
  font-weight: 680;
  line-height: 1.45;
  color: var(--color-text-primary);
  min-width: 0;
}

.mc-drawer-fav-tip__close {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-surface) 70%, transparent);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.mc-drawer-fav-tip__close:hover {
  color: var(--color-text-primary);
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
}

.mc-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

/* 홈(index) brand 레이아웃과 100% 동일하게 유지 */
.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.mc-brand:focus-visible {
  outline: none;
  border-radius: var(--radius-md);
  box-shadow: var(--focus-ring);
}

.mc-brand__mark {
  display: grid;
  place-items: center;
}

.mc-brand__titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mc-brand__series {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.mc-brand__page {
  /* 세부 기능 제목은 본문에 존재하므로 헤더에서는 숨김(레이아웃 고정) */
  display: none;
}

.mc-global-header__tools {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Theme toggle (기능 페이지용) — 치수는 common.css --mc-header-scale */
.mc-global-header .theme-toggle {
  position: relative;
  border-radius: 999px;
  border: 1px solid var(--border-default);
  background: color-mix(in srgb, var(--color-text-muted) 16%, var(--color-surface));
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.mc-global-header .theme-toggle:hover {
  border-color: var(--border-strong);
}

.mc-global-header .theme-toggle:active {
  transform: scale(0.99);
}

.mc-global-header .theme-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.mc-global-header .theme-toggle__thumb {
  position: absolute;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary) 14%, var(--color-surface));
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
  transform: translateX(0);
  transition: transform 0.22s ease;
}

html[data-theme="dark"] .mc-global-header .theme-toggle {
  background: color-mix(in srgb, var(--color-primary) 26%, var(--color-surface));
  border-color: color-mix(in srgb, var(--color-primary) 32%, var(--border-default));
}

.mc-global-header .theme-toggle__icon {
  display: none;
}

/* Hamburger — 치수는 common.css */
.mc-hamburger,
.mc-global-header .hamburger {
  border: 1px solid var(--border-default);
  background: var(--color-surface);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.12s ease, background 0.2s ease;
}

.mc-hamburger:hover,
.mc-global-header .hamburger:hover {
  background: var(--color-surface-2);
  border-color: var(--border-strong);
}

.mc-hamburger:focus-visible,
.mc-global-header .hamburger:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.mc-hamburger__icon,
.mc-global-header .hamburger__icon {
  position: relative;
  width: 18px;
  height: 12px;
}

.mc-hamburger__icon::before,
.mc-global-header .hamburger__icon::before,
.mc-hamburger__icon::after,
.mc-global-header .hamburger__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--color-text-primary);
  opacity: 0.85;
}

.mc-hamburger__icon::before,
.mc-global-header .hamburger__icon::before {
  top: 0;
  box-shadow: 0 5px 0 var(--color-text-primary), 0 10px 0 var(--color-text-primary);
}

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr;
}

.drawer[hidden] {
  display: none;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.44);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  max-height: 100dvh;
  width: min(380px, 94vw);
  padding: 16px 14px calc(18px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--mc-paper-veil) 94%, transparent);
  backdrop-filter: blur(18px);
  border-left: 1px solid var(--border-default);
  transform: translate3d(12px, 0, 0);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.drawer.is-open .drawer__backdrop {
  opacity: 1;
}

.drawer.is-open .drawer__panel {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.is-drawer-open {
  overflow: hidden;
}

html.is-drawer-open {
  overflow: hidden;
  height: 100%;
}

html.is-drawer-open body {
  overflow: hidden;
}

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 8px;
}

.drawer__title {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.drawer__close {
  min-height: 44px;
  min-width: 52px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border-default);
  background: var(--color-surface);
  cursor: pointer;
  font-weight: 750;
  color: var(--color-text-primary);
}

.drawer__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.28);
}

/* 15개 항목이 패널 안에 스크롤 없이 들어가도록 밀도 조정 (내부 스크롤 제거) */
#mc-drawer-list {
  margin-top: 4px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: block;
  padding-right: 6px;
}

.mc-drawer__row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--border-default);
  background: var(--color-surface);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.mc-drawer__item-link {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
}

.mc-drawer__row .mc-drawer__item-link {
  border: none;
  background: transparent;
}

.mc-drawer__fav {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--color-text-muted);
  display: grid;
  place-items: center;
}

.mc-drawer__fav:hover,
.mc-drawer__fav:focus-visible {
  background: var(--color-surface-2);
  outline: none;
  box-shadow: var(--focus-ring);
}

.mc-drawer__fav.is-on {
  color: #ca8a04;
}

.mc-drawer__section {
  border: 1px solid var(--border-default);
  border-radius: 16px;
  background: color-mix(in srgb, var(--color-surface) 90%, transparent);
  padding: 10px 10px 8px;
  margin-bottom: 10px;
}

.mc-drawer__section-title {
  font-size: 0.6875rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 2px 4px 8px;
}

.mc-drawer__section-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.mc-drawer__section .mc-drawer__row {
  padding: 12px 12px;
  border-radius: 16px;
}

.mc-drawer__num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 900;
  background: var(--color-surface-2);
  color: var(--color-text-primary);
  border: 1px solid var(--border-default);
}

.mc-drawer__title {
  font-size: 0.9375rem;
  font-weight: 850;
  letter-spacing: -0.01em;
  line-height: 1.2;
  display: block;
  min-width: 0;
}

.mc-drawer__row:hover {
  background: var(--color-surface-2);
  border-color: var(--border-strong);
}

.mc-drawer__row.is-active {
  border-color: color-mix(in srgb, var(--color-primary) 45%, var(--border-default));
  background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 22%, transparent);
}

/* (legacy) 이전 2열 컴팩트 스타일 제거됨 */

.drawer__meta {
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-default);
}

.mc-excel-slot {
  margin-top: 14px;
  margin-bottom: 4px;
}

/* 공용 PC 등 — 엑셀 백업 후 브라우저 데이터 삭제 안내 */
.mc-security-tip {
  margin-top: 16px;
  margin-bottom: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--color-warn) 42%, var(--border-default));
  background: color-mix(in srgb, var(--color-warn) 11%, var(--color-surface));
  box-shadow: 0 1px 0 color-mix(in srgb, var(--color-text-primary) 5%, transparent);
}

html[data-theme="dark"] .mc-security-tip {
  background: color-mix(in srgb, var(--color-warn) 12%, var(--color-bg-soft));
  border-color: color-mix(in srgb, var(--color-warn) 32%, var(--border-default));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mc-security-tip__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 600;
  color: var(--color-text-primary);
}

.mc-security-tip__icon {
  margin-right: 6px;
}

.mc-security-tip__label {
  font-weight: 850;
  letter-spacing: -0.01em;
}

.mc-security-tip__link {
  color: var(--color-primary);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mc-security-tip__link:hover {
  color: var(--color-primary-hover);
}

.mc-app .container,
.mc-app__canvas .container {
  width: 100%;
  max-width: min(var(--container-max-width), 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* 헤더 inner: common.css와 동일 69px(rem) — 본 규칙보다 구체적으로 세로 패딩 제거 */
.mc-app .mc-global-header > .container.mc-global-header__inner {
  padding-top: 0;
  padding-bottom: 0;
}

.mc-app__canvas .container {
  padding-top: 0.625rem;
}

.mc-app .card {
  padding: 1.375rem;
  box-sizing: border-box;
}

.mc-app .btn,
.mc-app .btn-secondary {
  padding: 0.625rem 1.125rem;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

.mc-app .btn--block {
  min-height: 3rem;
}

/* 공통 유틸(px)을 rem으로 덮어 기기 배율(html font-size)과 함께 축소 */
.mc-app .mt-10 {
  margin-top: 0.625rem;
}
.mc-app .mt-16 {
  margin-top: 1rem;
}
.mc-app .mt-20 {
  margin-top: 1.25rem;
}
.mc-app .mt-24 {
  margin-top: 1.5rem;
}
.mc-app .mb-10 {
  margin-bottom: 0.625rem;
}
.mc-app .mb-20 {
  margin-bottom: 1.25rem;
}

.mc-app #main {
  display: block;
  max-width: 100%;
  min-width: 0;
}

/* 페이지 도입부: 제목 → 키커 → 리드 — 컨테이너(그리드) 가로 100%, 가로 스크롤 없음 */
.mc-page-intro {
  margin-top: 0;
  margin-bottom: 1.375rem;
  padding: 0.625rem 0 1.625rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border-default) 72%, transparent);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.mc-page-intro__title {
  margin: 0 0 0.625rem;
  font-size: clamp(1.28rem, 3.4vw, 1.62rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.22;
  color: var(--color-text-primary);
  max-width: 100%;
  width: 100%;
}

.mc-page-intro__kicker {
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.72;
  word-break: keep-all;
  text-transform: none;
  color: var(--color-text-secondary);
  margin: 0 0 0.75rem;
  max-width: 100%;
  width: 100%;
}

.mc-page-intro .mc-page-intro__lead {
  margin-top: 0;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  line-height: 1.78;
  font-size: 0.975rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 마침표 등 문장 단위로만 줄바꿈되도록 문장을 블록으로 묶을 때 */
.mc-page-intro .mc-intro-sentence {
  display: block;
  margin-bottom: 0.55em;
}

.mc-page-intro .mc-intro-sentence--philosophy {
  display: block;
}

.mc-page-intro .mc-page-intro__lead .mc-intro-sentence:last-child {
  margin-bottom: 0;
}

.mc-page-intro__note {
  margin-top: 0.625rem;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.mc-page-intro__kicker + .mc-page-intro__lead {
  margin-top: 2px;
}

@media (min-width: 900px) {
  .mc-intro-single-line.mc-page-intro__kicker,
  .mc-intro-single-line.mc-page-intro__lead {
    white-space: nowrap;
    overflow-x: auto;
    max-width: 100%;
  }
}

/* 엑셀 컨트롤 슬롯은 excel-manager.css 에서 스타일 */

@media (max-width: 480px) {
  .mc-brand__page {
    font-size: 0.9375rem;
  }
}

/* 헤더 · 즐겨찾기 드롭다운 · 사이드 메뉴 — 문의하기 */
.mc-header-contact {
  margin-right: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.mc-header-contact:hover {
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
}

.mc-header-contact:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.mc-fav-dropdown__link--contact {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-default);
  font-weight: 850;
  color: var(--color-primary);
}

.mc-drawer__contact-wrap {
  flex-shrink: 0;
  padding: 8px 2px 4px;
}

.mc-drawer__contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--color-primary) 35%, var(--border-default));
  background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface));
  color: var(--color-primary);
  font-weight: 850;
  font-size: 0.9375rem;
  text-decoration: none;
  box-sizing: border-box;
}

.mc-drawer__contact-link:hover {
  background: color-mix(in srgb, var(--color-primary) 18%, var(--color-surface));
}

.mc-drawer__contact-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

@media (max-width: 380px) {
  .mc-header-contact {
    font-size: 0.75rem;
    padding: 6px 8px;
  }
}
