/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/.pnpm/next@15.5.26_@types+node@22.20.4_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/.pnpm/next@15.5.26_@types+node@22.20.4_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
:root {
  --paper: #f4efe6;
  --card: #fffdf8;
  --ink: #1c1915;
  --muted: #6f675c;
  --line: #e3d9c8;
  --navy: #143652;
  --gold: #9a7040;
  --code: #162027;
  --code-ink: #e8eef2;
  --danger: #8d2f2f;
  --shadow: 0 16px 40px rgba(28, 25, 21, 0.06);
  --serif: "Noto Serif KR", "Iowan Old Style", "Apple SD Gothic Neo", "Noto Sans KR", serif;
  --sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "IBM Plex Mono", "D2Coding", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(20, 54, 82, 0.06), transparent 50%),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; }

.shell { display: flex; min-height: 100vh; }
.content-col { flex: 1 1; min-width: 0; display: flex; flex-direction: column; }
.site-footer, .wrap { width: min(920px, calc(100% - 32px)); margin: 0 auto; }
.sidebar {
  width: 280px;
  flex: 0 0 280px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 14px;
  background: #fbf7f0;
  border-right: 1px solid var(--line);
}
.brand { text-decoration: none; padding: 0 8px 12px; }
.brand small {
  display: block;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--gold);
}
.brand strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
.sidebar-nav {
  flex: 1 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: auto;
  padding-right: 4px;
}
.sidebar-link, .sidebar-admin {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-gap: 6px;
  gap: 6px;
  align-items: start;
  padding: 8px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.45;
}
.sidebar-link:hover, .sidebar-admin:hover { background: #efe7da; }
.sidebar-link.active, .sidebar-admin.active {
  background: var(--navy);
  color: #f7f3ea;
}
.sidebar-link .num { font-family: var(--mono); font-size: 12px; color: var(--gold); padding-top: 2px; }
.sidebar-link.active .num { color: #e4c48a; }
.sidebar-link .title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-admin {
  margin-top: auto;
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.sidebar-admin.active { color: #f7f3ea; }
.menu-toggle, .sidebar-backdrop { display: none; }
.site-footer {
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 13px;
}

.masthead { padding: 36px 0 8px; }
.masthead h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.masthead p { margin: 0; color: var(--muted); max-width: 40rem; }

.index { list-style: none; margin: 28px 0 0; padding: 0; }
.index li + li { border-top: 1px solid var(--line); }
.index a {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  grid-gap: 14px;
  gap: 14px;
  align-items: baseline;
  padding: 18px 4px;
  text-decoration: none;
}
.index a:hover strong { color: var(--navy); }
.num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gold);
}
.index strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 700; }
.index em { display: block; margin-top: 4px; color: var(--muted); font-style: normal; font-size: 14px; }
.meta { color: var(--muted); font-size: 13px; white-space: nowrap; }

.article-head { padding: 34px 0 10px; }
.back {
  color: var(--gold);
  text-decoration: none;
  font-size: 13px;
}
.article-head h1 {
  margin: 12px 0 8px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.subtitle { margin: 0 0 10px; color: var(--muted); font-size: 18px; }

.article {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.9;
}
.article h2, .article h3 {
  font-family: var(--serif);
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.article h2 { margin: 2.2rem 0 0.7rem; font-size: 1.55rem; color: var(--navy); }
.article h3 { margin: 1.6rem 0 0.5rem; font-size: 1.2rem; }
.article p { margin: 0 0 1rem; }
.article ul, .article ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.article li + li { margin-top: 0.35rem; }
.article .caption {
  margin-top: -0.4rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.article .figure { margin: 1.2rem 0 0.6rem; text-align: center; }
.article .figure img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.article .callout {
  margin: 1.2rem 0 1.4rem;
  padding: 1rem 1.15rem 0.3rem;
  background: #f7f3ea;
  border-left: 3px solid var(--navy);
}
.article .callout p:first-child { color: var(--navy); }
.article .table-wrap { overflow-x: auto; margin: 0 0 1.3rem; }
.article table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  background: var(--card);
}
.article th, .article td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  vertical-align: top;
  text-align: left;
}
.article th { background: #f3eee4; color: var(--navy); }
.article td p, .article th p { margin: 0; }
.article pre {
  margin: 0 0 1.2rem;
  padding: 14px 16px;
  overflow: auto;
  background: var(--code);
  color: var(--code-ink);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
}
.article code { font-family: var(--mono); }
.article p code, .article li code {
  background: #efe7da;
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-size: 0.86em;
}
.ad-unit { margin: 1.4rem 0; min-height: 90px; }

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 12px;
  gap: 12px;
  margin: 28px 0 8px;
}
.pager a {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pager a span { display: block; color: var(--muted); font-size: 12px; }
.pager a strong { font-family: var(--serif); }
.pager .next { text-align: right; }

.comments { margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--line); }
.comments h2 { font-family: var(--serif); font-size: 24px; margin-bottom: 8px; }
.comment {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.comment header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.comment strong { color: var(--ink); }
.comment p { margin: 6px 0 0; white-space: pre-wrap; }
.comment-form, .stack { display: grid; grid-gap: 10px; gap: 10px; margin-top: 16px; }
label { display: grid; grid-gap: 6px; gap: 6px; font-size: 14px; }
input, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
textarea { min-height: 120px; resize: vertical; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
button, .button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--navy);
  color: white;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
button.ghost, .button.ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}
button.danger { background: var(--danger); }
.hint, .error { font-size: 13px; }
.hint { color: var(--muted); }
.error { color: var(--danger); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.admin { padding: 28px 0 48px; }
.admin h1 { font-family: var(--serif); margin: 0 0 8px; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.panel + .panel, .admin-list { margin-top: 16px; }
.login { width: min(420px, 100%); margin: 48px auto; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 12px; gap: 12px; }
.html-editor {
  min-height: 460px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
}
.preview {
  min-height: 460px;
  max-height: 70vh;
  overflow: auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.tools button { padding: 7px 12px; font-size: 13px; }
.post-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.post-row strong { font-family: var(--serif); }

@media (max-width: 800px) {
  .index a { grid-template-columns: 36px 1fr; }
  .meta { display: none; }
  .editor-grid, .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .content-col { padding-top: 56px; }
  .menu-toggle {
    display: inline-flex;
    position: fixed;
    z-index: 30;
    top: 12px;
    left: 12px;
    background: var(--navy);
    color: white;
  }
  .sidebar {
    position: fixed;
    z-index: 40;
    transform: translateX(-105%);
    transition: transform 0.18s ease;
    box-shadow: var(--shadow);
  }
  .sidebar.open { transform: none; }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    border: 0;
    padding: 0;
    background: rgba(28, 25, 21, 0.35);
  }
}

