/* PMD design foundations. Load before each page's stylesheet. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #ffffff;
  --panel2: #f4f6f9;
  --panel3: #f8f9fb;
  --inset: var(--panel3);
  --line: #e5eaf0;
  --text: #202938;
  --muted: #657184;
  --pos: #c53543;
  --neg: #2560c4;
  --warn: #926600;
  --blue: #245ed6;
  --green: #087c53;
  --danger: #c53543;
  --accent-soft: #edf3ff;
  --success-soft: #edf8f3;
  --warning-soft: #fff8e8;
  --shadow: 0 .75rem 2rem #20293814;
  --amber: var(--warn);
  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-body: 1rem;
  --text-title: 1.25rem;
  --text-page: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  --text-price: clamp(1.875rem, 1.6rem + 1vw, 2rem);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --radius-sm: .5rem;
  --radius-md: .75rem;
  --radius-lg: 1rem;
  --content-max: 80rem;
  --sidebar-width: 14rem;
  --page-padding: clamp(1rem, 2.4vw, 2rem);
  --control-height: 2.75rem;
  --bottom-nav-height: 4rem;
}
:root[data-pmd-theme="dark"] {
  color-scheme: dark;
  --bg: #101820; --panel: #101820; --panel2: #192531; --panel3: #14202a;
  --line: #2a3746; --text: #f2f5f9; --muted: #a7b3c3;
  --pos: #ff8d97; --neg: #8eafff; --warn: #f0c96a; --blue: #98baff;
  --green: #65d4a4; --danger: #ff8d97; --accent-soft: #1c3049;
  --success-soft: #183429; --warning-soft: #332c1c; --shadow: 0 .75rem 2rem #0004;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--text-body)/1.6 -apple-system, BlinkMacSystemFont, "Noto Sans KR", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea, summary { font: inherit; }
button, input, select { min-height: var(--control-height); }
button, summary { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
input, select, textarea { min-width: 0; max-width: 100%; font-size: var(--text-body); }
a { color: var(--blue); text-underline-offset: .2em; }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
svg, img { max-width: 100%; }
:where(h1, h2, h3, p, a, small, strong, span) { overflow-wrap: anywhere; }
h1 { font-size: var(--text-page); line-height: 1.35; }
h2 { font-size: var(--text-title); line-height: 1.4; }
.pmd-page { width: 100%; max-width: var(--content-max); margin-inline: auto; padding: var(--page-padding); }
.skip-link {
  position: fixed; top: .5rem; left: .5rem; z-index: 200;
  padding: .75rem 1rem; border-radius: var(--radius-sm);
  background: var(--text); color: var(--bg); transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.pmd-mobile-header { display: none; }
.pmd-nav-toggle, .pmd-nav-close {
  min-width: var(--control-height); padding: .5rem .875rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--text); font-size: var(--text-sm);
}
.pmd-nav-close { display: none; }
.pmd-nav-backdrop { display: none; }
.pmd-mobile-brand { display: flex; align-items: center; gap: .625rem; color: var(--text); font-weight: 700; text-decoration: none; }
.pmd-mobile-brand .mark { width: 2rem; height: 2rem; border-radius: .5rem; font-size: var(--text-xs); }
.pmd-mobile-title { font-size: var(--text-sm); }
.pmd-build-note { font-size: var(--text-xs); color: var(--muted); }
.pmd-link { display: inline-flex; align-items: center; min-height: var(--control-height); font-size: var(--text-sm); }
.pmd-page-header { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3) var(--space-6); padding: .625rem var(--page-padding); min-height: 3.75rem; border-bottom: 1px solid var(--line); background: var(--bg); }
.pmd-page-header nav { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pmd-page-header nav a { display: inline-flex; align-items: center; min-height: var(--control-height); padding: .5rem .75rem; font-size: var(--text-sm); text-decoration: none; color: var(--muted); border-radius: var(--radius-sm); }
.pmd-page-header nav a[aria-current="page"], .pmd-page-header nav a:hover { color: var(--text); background: var(--panel2); }
.pmd-nav-toggle { display: none; }
.pmd-shell-ready .pmd-nav-toggle { display: inline-flex; align-items: center; }
@media (max-width: 74.999rem) {
  .pmd-mobile-header {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
    position: sticky; top: 0; z-index: 50; min-height: 3.75rem;
    padding: .5rem var(--page-padding); border-bottom: 1px solid var(--line); background: var(--bg);
  }
  .pmd-nav-close { display: block; margin-left: auto; }
  .pmd-nav-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 99; background: #0009; }
  body.pmd-nav-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
