@font-face {
  font-family: "Pretendard Variable";
  src: url("/assets/fonts/PretendardVariable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --brand-50: #f4fbff;
  --brand-100: #e4f4fd;
  --brand-200: #c8e8fa;
  --brand-500: #62acd7;
  --brand-600: #3b82b3;
  --brand-700: #2d678f;
  --lilac-50: #faf7ff;
  --lilac-100: #f1e8ff;
  --lilac-500: #9876df;
  --lilac-600: #7959bd;
  --ink: #172033;
  --muted: #64748b;
  --line: #dbe7f3;
  --danger: #be123c;
  --success: #047857;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(148, 213, 248, .24), transparent 34rem),
    radial-gradient(circle at 92% 5%, rgba(196, 173, 244, .18), transparent 30rem),
    linear-gradient(180deg, #f9fcff 0%, #faf8ff 48%, #fff 100%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(98, 172, 215, .35); outline-offset: 2px; }

.maple-shell { min-height: 100vh; }
.maple-container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }

.maple-main { padding-block: 1.5rem 3rem; }
.maple-grid { display: grid; gap: 1rem; }
.maple-grid-2, .maple-grid-3, .maple-grid-4 { grid-template-columns: 1fr; }
.maple-card {
  border: 1px solid rgba(219,231,243,.96); border-radius: 1rem;
  background: rgba(255,255,255,.95); box-shadow: 0 16px 42px rgba(15,23,42,.07);
}
.maple-card-pad { padding: 1.15rem; }
.maple-card-soft { border-color: var(--brand-100); background: linear-gradient(135deg, rgba(244,251,255,.98), rgba(250,247,255,.95)); }
.maple-hero { overflow: hidden; padding: clamp(1.5rem, 4vw, 3.25rem); position: relative; }
.maple-hero::after { content: ""; position: absolute; width: 18rem; height: 18rem; right: -6rem; top: -8rem; border-radius: 50%; background: linear-gradient(135deg, rgba(166,215,241,.3), rgba(196,173,244,.24)); pointer-events: none; }
.maple-eyebrow { display: inline-flex; align-items: center; gap: .45rem; color: var(--brand-700); font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.maple-title { margin: .8rem 0 0; font-size: clamp(1.8rem, 5vw, 3.3rem); line-height: 1.15; letter-spacing: -.045em; font-weight: 950; }
.maple-subtitle { margin: .8rem 0 0; max-width: 48rem; color: var(--muted); font-size: .98rem; line-height: 1.75; }
.maple-section { margin-top: 1.25rem; }
.maple-section-head { margin-bottom: .85rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.maple-section-title { margin: 0; font-size: 1.3rem; letter-spacing: -.025em; font-weight: 900; }
.maple-section-desc { margin: .25rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }

.maple-btn {
  min-height: 2.85rem; border: 1px solid transparent; border-radius: .8rem; padding: .68rem 1rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  cursor: pointer; font-size: .9rem; font-weight: 900; transition: transform .15s, background .15s, border-color .15s;
}
.maple-btn:hover { transform: translateY(-1px); }
.maple-btn-primary { color: white; background: linear-gradient(135deg, var(--brand-600), #6875d8); box-shadow: 0 10px 24px rgba(59,130,179,.22); }
.maple-btn-secondary { color: #6545a5; border-color: var(--lilac-100); background: var(--lilac-50); }
.maple-btn-ghost { color: #475569; border-color: #dbe3ec; background: white; }
.maple-btn-danger { color: white; background: #be123c; }
.maple-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.maple-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.maple-field { display: block; }
.maple-label { display: block; margin-bottom: .45rem; color: #334155; font-size: .85rem; font-weight: 900; }
.maple-input, .maple-select, .maple-textarea {
  width: 100%; min-height: 3rem; border: 1px solid #cbddec; border-radius: .8rem; padding: .72rem .9rem;
  color: var(--ink); background: white; box-shadow: inset 0 1px 2px rgba(15,23,42,.03);
}
.maple-textarea { min-height: 7rem; resize: vertical; }
.maple-input:focus, .maple-select:focus, .maple-textarea:focus { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(98,172,215,.14); outline: 0; }
.maple-help { margin: .35rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.maple-form-grid { display: grid; grid-template-columns: 1fr; gap: .9rem; }

.maple-alert { margin: 1rem 0; border: 1px solid; border-radius: .9rem; padding: .85rem 1rem; font-size: .88rem; font-weight: 800; line-height: 1.55; }
.maple-alert-info { color: #075985; border-color: #bae6fd; background: #f0f9ff; }
.maple-alert-success { color: #065f46; border-color: #a7f3d0; background: #ecfdf5; }
.maple-alert-error { color: #9f1239; border-color: #fecdd3; background: #fff1f2; }
.maple-alert-warning { color: #92400e; border-color: #fde68a; background: #fffbeb; }
.maple-badge { min-height: 1.8rem; display: inline-flex; align-items: center; border-radius: 999px; padding: .25rem .65rem; font-size: .72rem; font-weight: 900; }
.maple-badge-blue { color: #0369a1; background: #e0f2fe; }
.maple-badge-purple { color: #6d28d9; background: #f3e8ff; }
.maple-badge-green { color: #047857; background: #d1fae5; }
.maple-badge-red { color: #be123c; background: #ffe4e6; }
.maple-badge-gray { color: #475569; background: #f1f5f9; }

.maple-stat { padding: 1.1rem; }
.maple-stat-label { color: var(--muted); font-size: .78rem; font-weight: 900; }
.maple-stat-value { margin-top: .4rem; font-size: 1.65rem; font-weight: 950; letter-spacing: -.035em; }
.maple-list { margin: 0; padding: 0; list-style: none; }
.maple-list-item { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid #edf2f7; }
.maple-list-item:last-child { border-bottom: 0; }
.maple-table-wrap { overflow-x: auto; }
.maple-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.maple-table th { padding: .75rem; color: #64748b; background: #f8fafc; text-align: left; font-weight: 900; white-space: nowrap; }
.maple-table td { padding: .82rem .75rem; border-top: 1px solid #edf2f7; vertical-align: middle; }
.maple-empty { padding: 2rem 1rem; color: var(--muted); text-align: center; line-height: 1.7; }
.maple-amount { font-variant-numeric: tabular-nums; letter-spacing: -.02em; font-weight: 900; }
.maple-muted { color: var(--muted); }
.maple-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }


.format { color: #475569; line-height: 1.8; }
.format h1, .format h2, .format h3 { color: var(--ink); line-height: 1.3; font-weight: 900; }
.format a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.format img { max-width: 100%; height: auto; border-radius: 1rem; }
.format blockquote { margin-inline: 0; border-left: 4px solid var(--lilac-500); padding: .75rem 1rem; background: var(--lilac-50); }

/* Legacy template compatibility while DaisyUI is removed. */
.btn {
  min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 1px solid transparent; border-radius: .8rem; padding: .62rem 1rem; cursor: pointer;
  color: #334155; background: #fff; font-size: .875rem; font-weight: 800; line-height: 1.2;
  transition: color .15s, background-color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn:hover { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand-700); }
.btn:focus-visible { outline: 3px solid rgba(98,172,215,.25); outline-offset: 2px; }
.btn:disabled, .btn-disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { color: #fff; border-color: var(--brand-600); background: var(--brand-600); }
.btn-primary:hover { color: #fff; border-color: var(--brand-700); background: var(--brand-700); }
.btn-secondary { color: #6545a5; border-color: var(--lilac-100); background: var(--lilac-50); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-error { color: #fff; background: #be123c; }
.btn-sm { min-height: 2.25rem; padding: .45rem .75rem; font-size: .78rem; }
.btn-lg { min-height: 3.25rem; padding: .75rem 1.2rem; }
.btn-circle, .btn-square { width: 2.75rem; padding: 0; }
.btn-circle { border-radius: 999px; }

.input, .select, .textarea {
  width: 100%; min-height: 2.75rem; border: 1px solid #cbddec; border-radius: .8rem; padding: .65rem .85rem;
  color: var(--ink); background: #fff; font: inherit;
}
.textarea { min-height: 7rem; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand-500); outline: 3px solid rgba(98,172,215,.16); }
.input-bordered, .select-bordered, .textarea-bordered { border-color: #cbddec; }
.form-control { display: flex; flex-direction: column; gap: .35rem; }
.label { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .2rem .1rem; }
.label-text { color: #334155; font-size: .84rem; font-weight: 800; }

.card { border: 1px solid rgba(190,214,232,.76); border-radius: 1rem; background: rgba(255,255,255,.96); box-shadow: var(--shadow-soft); }
.card-body { padding: 1.15rem; }
.card-title { color: var(--ink); font-size: 1.05rem; font-weight: 900; }
.alert { display: flex; align-items: flex-start; gap: .65rem; border: 1px solid; border-radius: .85rem; padding: .8rem 1rem; line-height: 1.55; }
.alert-info { color: #075985; border-color: #bae6fd; background: #f0f9ff; }
.alert-success { color: #065f46; border-color: #a7f3d0; background: #ecfdf5; }
.alert-warning { color: #92400e; border-color: #fde68a; background: #fffbeb; }
.alert-error { color: #9f1239; border-color: #fecdd3; background: #fff1f2; }
.badge { min-height: 1.6rem; display: inline-flex; align-items: center; border: 1px solid transparent; border-radius: 999px; padding: .2rem .55rem; font-size: .7rem; font-weight: 900; }
.badge-primary, .badge-info { color: #0369a1; background: #e0f2fe; }
.badge-secondary { color: #6d28d9; background: #f3e8ff; }
.badge-success { color: #047857; background: #d1fae5; }
.badge-warning { color: #92400e; background: #fef3c7; }
.badge-error { color: #be123c; background: #ffe4e6; }
.navbar { min-height: 4rem; display: flex; align-items: center; gap: .75rem; padding: .5rem 1rem; }
.dropdown { position: relative; }
.dropdown-content { position: absolute; z-index: 40; }
.modal { position: fixed; z-index: 60; inset: 0; display: none; place-items: center; padding: 1rem; background: rgba(15,23,42,.5); }
.modal.modal-open, .modal[open] { display: grid; }
.modal-box { width: min(100%, 34rem); max-height: calc(100dvh - 2rem); overflow: auto; border-radius: 1rem; padding: 1.25rem; background: #fff; box-shadow: 0 24px 70px rgba(15,23,42,.2); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .75rem; border-bottom: 1px solid #e8eef4; text-align: left; }

@media (min-width: 640px) {
  .maple-card-pad { padding: 1.4rem; }
  .maple-form-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .maple-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .maple-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .maple-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 900px) {
  .maple-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .maple-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (min-width: 1180px) {
  .maple-shell { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
