/* 한의학원전 페이퍼 아틀라스 전용 스타일 - webapps/style.css의 차분한 색감과 가독성 중심 설계를 참고해 작성 */

:root {
  --bg-top: #eef3f7;
  --bg-mid: #f9f7f4;
  --bg-bottom: #e8f1ee;
  --card: #ffffff;
  --ink: #1f2c3a;
  --muted: #5a6b7a;
  --accent: #5d98c2;
  --accent-quiet: #7eb6a6;
  --line: #d8e3eb;
  --shadow: 0 16px 40px rgba(21, 55, 92, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --max-width: 1040px;
  --font-sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-serif: "Nanum Myeongjo", "Noto Serif KR", "Apple SD Gothic Neo", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-serif);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bottom) 100%);
  color: var(--ink);
  line-height: 1.72;
  font-size: 0.97rem;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #3f7497;
}

a:focus-visible {
  outline: 2px solid var(--accent-quiet);
  outline-offset: 3px;
}

.site-header {
  background: linear-gradient(135deg, #6ea3c5 0%, #7cb8a8 60%, rgba(255,255,255,0.25) 100%);
  color: #0f2233;
  padding: 2.8rem 1.5rem 2.4rem;
  text-align: center;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.6);
}

.site-header--slim {
  padding: 2.2rem 1.5rem 1.8rem;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

.page-title {
  margin-top: 0.25rem;
}

.subtitle {
  margin: 0.2rem 0 0.4rem;
  color: #3d5367;
  font-size: 0.98rem;
}

.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: rgba(15, 34, 51, 0.72);
  margin-bottom: 0.4rem;
}

.lede {
  margin-top: 0.6rem;
  color: rgba(15, 34, 51, 0.78);
  font-size: 1rem;
}

.shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

.section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  margin: -2.2rem auto 1.4rem;
  box-shadow: var(--shadow);
}

.section + .section {
  margin-top: 1.8rem;
}

.section-heading {
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.section-heading h2 {
  color: #1c3042;
  letter-spacing: -0.01em;
}

p {
  margin: 0.5rem 0;
  color: var(--muted);
  font-size: 0.97rem;
  text-indent: 1em;
}

code {
  background: #eef3f8;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.92rem;
}

.pill-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill {
  background: #e6f0f6;
  color: #23415e;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid #d4e2ec;
}

.post-list {
  margin-top: 1.8rem;
}

.post-card {
  background: linear-gradient(180deg, #fdfefe 0%, #f6f9fb 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.25rem;
  box-shadow: 0 12px 26px rgba(14, 48, 75, 0.06);
  margin-bottom: 5px;
  position: relative;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}

.post-card:hover {
  background: rgba(93, 152, 194, 0.08);
  box-shadow: 0 14px 30px rgba(14, 48, 75, 0.08);
  transform: translateY(-1px);
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.meta-chip {
  background: #e4eef4;
  color: #2d4862;
  padding: 0.3rem 0.65rem;
  border-radius: 10px;
  font-size: 0.9rem;
}
.meta-break {
  flex-basis: 100%;
  height: 0;
}
.meta-chip--category {
  background: #f6efe7;
  color: #8b4a0f;
  border: 1px solid #e2c9a3;
  font-weight: 700;
  font-size: 0.72rem;
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 0.15rem 0.5rem;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
}

.post-card__title {
  margin: 0.1rem 0 0.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 600;
}
.post-card__title .meta-views {
  font-size: 0.7rem;
  color: #9aa6b5;
  margin-left: 6px;
}
.post-card__title .badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  font-size: 0.55rem;
  line-height: 1;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #d94a4a;
  color: #fff;
  font-weight: 700;
  vertical-align: middle;
}

.post-card__subtitle {
  margin: -0.1rem 0 0.5rem 1.0rem;
  color: #4a6379;
  font-size: 0.96rem;
  font-family: "Noto Sans KR", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}

.post-card__author {
  margin: -0.35rem 0 0.6rem 1.0rem;
  color: #5a6c7a;
  font-size: 0.82rem;
}

.paper-subtitle {
  margin: 0.2rem 0 0.6rem 1.2rem;
  color: #4a6379;
  font-size: 0.96rem;
  font-family: "Noto Sans KR", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}

.content-edit {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f5f8fb;
  border: 1px solid #d4e1ed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(17, 45, 76, 0.08);
  color: #6b7c8c;
  text-decoration: none;
  font-size: 0.9rem;
}

.content-edit:hover,
.content-edit:focus {
  background: #e8f0f8;
  color: #1f4a73;
  border-color: #c0d4e6;
}

.commentary-box {
  margin-top: 1.2rem;
  padding: 1.2rem 1.3rem;
  border-radius: 16px;
  background: #f4f7fb;
  border: 1px solid #d5e3f1;
  box-shadow: 0 8px 24px rgba(14, 48, 75, 0.05);
  display: none;
}

.commentary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.commentary-title {
  font-weight: 800;
  color: #1f3042;
  letter-spacing: -0.01em;
}

.commentary-add {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #c9d5df;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b6a86;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(20, 52, 82, 0.08);
  cursor: pointer;
}

.commentary-add:hover,
.commentary-add:focus {
  background: #e8f0f8;
  color: #1f4a73;
}

.commentary-empty {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
  gap: 0.5rem;
}

.commentary-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.commentary-item {
  padding: 0.9rem 1rem 2.3rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #d9e2ec;
  box-shadow: 0 6px 16px rgba(20, 52, 82, 0.05);
  color: #2f3f52;
  position: relative;
}

.commentary-date {
  font-size: 0.82rem;
  color: #6a7a8a;
  margin-top: 0.2rem;
}

.commentary-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.commentary-actions {
  display: flex;
  gap: 0.25rem;
  position: absolute;
  right: 0.75rem;
  bottom: 0.55rem;
}

.commentary-action {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #c9d5df;
  background: #f6f9fc;
  color: #3a5872;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.commentary-action:hover,
.commentary-action:focus {
  background: #e8f0f8;
  color: #1f4a73;
}

.question-box {
  margin-top: 1.6rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid #d5e3f1;
  border-radius: 16px;
  background: #f7faff;
  box-shadow: 0 10px 24px rgba(14, 48, 75, 0.06);
  font-family: var(--font-sans, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}
.question-box * {
  font-family: inherit;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.question-title {
  font-weight: 800;
  color: #1f3042;
  letter-spacing: -0.01em;
}

.question-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.question-row label {
  display: block;
  font-weight: 700;
  color: #2f4155;
  margin-bottom: 0.25rem;
}

.question-row input,
.question-row textarea {
  width: 100%;
  border: 1px solid #cbd8e6;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font-size: 0.98rem;
  box-sizing: border-box;
}

.question-row textarea {
  min-height: 110px;
}

.question-edit {
  width: 100%;
  min-height: 90px;
  border-radius: 10px;
  border: 1px solid #cbd8e6;
  padding: 0.75rem 0.85rem;
  box-sizing: border-box;
  font-size: 0.95rem;
}

.question-inline-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.question-inline-controls input[type="password"] {
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid #cbd8e6;
  min-width: 140px;
}

.question-save-btn {
  align-self: flex-end;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  border: none;
  background: #4b82a8;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(20, 52, 82, 0.12);
}

.question-empty {
  display: none;
  justify-content: center;
  color: #5a6b7a;
  margin-bottom: 0.6rem;
}

.question-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.question-item {
  padding: 0.85rem 0.95rem 1.4rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #d9e2ec;
  box-shadow: 0 6px 16px rgba(20, 52, 82, 0.05);
  position: relative;
}

.question-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  color: #2f3f52;
  font-weight: 700;
}

.q-name { color: #1f4a73; }
.q-date { color: #6a7a8a; font-size: 0.9rem; }

.question-text {
  color: #2f3f52;
  line-height: 1.6;
}

.question-reply {
  margin-top: 0.7rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: #f0f6ff;
  border: 1px solid #c9daf6;
  color: #20324b;
}

.reply-label {
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: #1f4a73;
}

.reply-date {
  font-size: 0.85rem;
  color: #6a7a8a;
  margin-top: 0.2rem;
}

.reply-form textarea {
  width: 100%;
  min-height: 80px;
  border-radius: 10px;
  border: 1px solid #cbd8e6;
  padding: 0.7rem 0.85rem;
  box-sizing: border-box;
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.reply-form .reply-save {
  margin-top: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 9px;
  border: 1px solid #4b82a8;
  background: #4b82a8;
  color: #fff;
  cursor: pointer;
}

.commentary-edit {
  width: 100%;
  min-height: 90px;
  border-radius: 10px;
  border: 1px solid #cbd8e6;
  padding: 0.75rem 0.85rem;
  box-sizing: border-box;
  font-size: 0.95rem;
}

.commentary-form {
  margin-top: 0.8rem;
  display: none;
  flex-direction: column;
  gap: 0.4rem;
}

.commentary-form textarea {
  width: 100%;
  min-height: 110px;
  border-radius: 12px;
  border: 1px solid #cbd8e6;
  padding: 0.85rem 0.95rem;
  box-sizing: border-box;
  font-size: 0.95rem;
}

.commentary-form button {
  align-self: flex-end;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  background: #4b82a8;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(20, 52, 82, 0.12);
}

.post-card__excerpt {
  margin: 0.2rem 0 0.8rem;
}

.post-edit {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  font-size: 0.9rem;
  color: #7b8a99;
  text-decoration: none;
  padding: 0.18rem 0.48rem;
  border: 1px solid #c9d5df;
  border-radius: 10px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 6px 14px rgba(20, 52, 82, 0.08);
  z-index: 2;
}

.post-edit:hover,
.post-edit:focus {
  background: #e8f1f9;
  color: #1f4a73;
  border-color: #a8c3d9;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  background: #e8f4ef;
  color: #23524f;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
  border: 1px solid #d5e6df;
}

.post-card__actions {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: rgba(13, 32, 53, 0.08);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.post-card.is-open .post-card__actions {
  opacity: 1;
  pointer-events: auto;
}

.post-card__actions .btn-version {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  box-shadow: none;
  min-width: 200px;
  justify-content: center;
}

.list-note {
  margin-top: 0.9rem;
  padding: 0.95rem 1rem;
  background: #f1f5f8;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: #304555;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0.8rem;
  font-size: 0.95rem;
  margin: 1.6rem 0 0.6rem;
  color: #36566e;
}

.sort-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.sort-form label {
  font-weight: 700;
  color: #2c435b;
}

.sort-form select {
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  border: 1px solid #c5d5e2;
  background: #f7fbff;
  color: #1f3042;
  font-size: 0.82rem;
  font-family: "Noto Sans KR", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.breadcrumb a {
  color: #1b4d73;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border: 1px solid #c8d9e8;
  border-radius: 999px;
  background: #eef4f9;
  box-shadow: 0 8px 18px rgba(14, 48, 75, 0.05);
}

.paper {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem 2rem;
  box-shadow: var(--shadow);
}

.paper__header {
  margin-bottom: 1.1rem;
}

.paper-info {
  background: #f6fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 20px rgba(14, 48, 75, 0.05);
}

.paper-info__title h2 {
  margin: 0.2rem 0 0.4rem;
  color: #1c3042;
}

.paper-info__title .pdf-link {
  margin-left: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.75rem;
  color: #1b4d73;
  text-decoration: none;
}

.paper-info__title .pdf-link:hover {
  text-decoration: underline;
  color: #0f304c;
}

.info-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  row-gap: 0.5rem;
  column-gap: 0.75rem;
  margin: 0.6rem 0 0;
  padding: 0;
}

.info-list dt {
  font-size: 0.95rem;
  color: #4a6175;
  font-weight: 700;
  font-family: var(--font-sans);
}

.info-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.section-block {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1rem;
}

.section-block:first-of-type {
  border-top: none;
  padding-top: 0;
}

.section-block h2 {
  margin-bottom: 0.35rem;
}

.subsection {
  padding: 0.3rem 0 0.2rem 0.2rem;
}

.subsection h3 {
  margin: 0.2rem 0;
  color: #27465d;
}

.section-block p {
  color: var(--muted);
}

.paper ul,
.paper ol {
  color: var(--muted);
}

.paper ul {
  padding-left: 1.15rem;
}

.paper blockquote {
  margin: 0.8rem 0;
  padding: 0.6rem 1rem;
  border-left: 4px solid var(--accent-quiet);
  background: #f0f5f3;
  color: #284145;
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.term-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.term-card {
  background: linear-gradient(180deg, #f9fbfa 0%, #f2f6f5 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  box-shadow: 0 12px 26px rgba(14, 48, 75, 0.05);
}

.term-card__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #1f2f3f;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

.term-card__label {
  font-size: 0.92rem;
  color: #3f5a63;
  font-weight: 700;
  display: block;
}

.term-card__desc {
  margin: 0.2rem 0 0.1rem;
  color: var(--muted);
}

.relation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.circle-list {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0;
}

.circle-list li {
  position: relative;
  padding-left: 1.8rem;
  margin: 0.2rem 0;
  color: var(--muted);
}

.circle-list li::before {
  content: attr(data-icon);
  position: absolute;
  left: 0;
  top: 0;
  color: #0f2f4a;
  font-weight: 700;
  font-family: var(--font-sans);
}

.relation-card {
  background: linear-gradient(180deg, #f8fbfa 0%, #f1f5f4 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.05rem;
  box-shadow: 0 10px 24px rgba(14, 48, 75, 0.06);
}

.relation-title {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: #1f3040;
  font-size: 1rem;
  font-family: var(--font-sans);
}

.relation-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.relation-node {
  padding: 0.35rem 0.65rem;
  border-radius: 14px;
  background: radial-gradient(circle at 20% 20%, #ffffff 0%, #e6f1ff 50%, #d5e7ff 100%);
  color: #143452;
  border: 1px solid #b7d3f3;
  box-shadow: 0 8px 14px rgba(20, 52, 82, 0.12);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.relation-arrow {
  color: #5a6b7a;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0 0.05rem;
}

@media (max-width: 680px) {
  .relation-grid {
    grid-template-columns: 1fr;
  }

  .term-card-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    font-size: 0.68rem;
  }

  .footer-contact p {
    font-size: 0.68rem;
  }
}

.relation-desc {
  margin: 0.15rem 0;
  color: var(--muted);
  font-size: 0.96rem;
}

@media (max-width: 980px) {
  .term-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .term-card-grid {
    grid-template-columns: 1fr;
  }
}

.note {
  margin-top: 1.2rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: #f5f9f7;
  color: #37514a;
  font-size: 0.96rem;
}

.version-callout {
  margin-top: 1rem;
  padding: 1rem 1.1rem 1.2rem;
  border: 1px solid #3c5f7e;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #28445d, #2f5d61);
  box-shadow: 0 12px 26px rgba(7, 18, 29, 0.2);
  font-family: var(--font-sans);
}

.version-callout__text {
  margin: 0 0 0.75rem;
  color: #eef5fb;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.version-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.btn-version {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.95rem;
  border-radius: 10px;
  border: 1px solid #8fb6d7;
  background: #f1f7fb;
  color: #0f243a;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(20, 52, 82, 0.08);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  font-family: var(--font-sans);
}

.btn-version:hover {
  background: #d5e9f8;
  color: #0c253c;
  box-shadow: 0 12px 26px rgba(20, 52, 82, 0.12);
  transform: translateY(-1px);
}

.btn-version--solid {
  background: #5d98c2;
  border-color: #4b82a8;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(20, 52, 82, 0.12);
}

.btn-version--solid:hover {
  background: #4b82a8;
  color: #ffffff;
}

.btn-version--ghost {
  background: #f7fbff;
  border-color: #b8d3ea;
  color: #0f243a;
}

.btn-version--ghost:hover {
  background: #e1effc;
  color: #0c253c;
}

.btn-version--pdf {
  background: #fff8ec;
  border-color: #e6c58a;
  color: #5b3d0f;
}

.btn-version--pdf:hover {
  background: #fdeac9;
  color: #4a320d;
}

.btn-version.is-active,
.btn-version[aria-current="page"] {
  background: #5d98c2;
  border-color: #4b82a8;
  color: #ffffff;
  cursor: default;
  box-shadow: none;
  pointer-events: none;
}

.site-footer {
  background: linear-gradient(180deg, rgba(110, 163, 197, 0.2) 0%, rgba(124, 184, 168, 0.15) 100%);
  color: #2c3c4c;
  padding: 1.6rem 1.2rem 2rem;
  border-top: 1px solid rgba(216, 227, 235, 0.8);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
  text-align: center;
}

.footer-contact {
  margin-top: 0.4rem;
  color: #3b5064;
  line-height: 1.5;
}

.footer-admin {
  margin-top: 0.4rem;
  display: flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
}

.admin-link {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  font-size: 0.72rem;
  border: 1.5px solid #93a0ad;
  border-radius: 999px;
  color: #394452;
  background: #f5f7fa;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45);
}

.admin-link:hover,
.admin-link:focus {
  background: #e5e7eb;
  color: #111827;
}

.logout-link {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  font-size: 0.72rem;
  border: 1.5px solid #d27b7b;
  border-radius: 999px;
  color: #8b1c1c;
  background: #fff6f6;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}

.logout-link:hover,
.logout-link:focus {
  background: #fdecec;
  color: #6f1111;
}

.post-add {
  margin-top: 1.6rem;
  display: flex;
  justify-content: center;
}

.btn-add {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid #6d9bc4;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #e8f3ff 65%, #d5e7ff 100%);
  color: #1f4a73;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(31, 74, 115, 0.25);
}

.btn-add:hover,
.btn-add:focus {
  background: #dbeeff;
  color: #153551;
}

.small {
  font-size: 0.92rem;
  color: #4c6174;
}

@media (max-width: 780px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.2rem; }
  .site-header { padding: 2.2rem 1rem 2rem; }
  .section, .paper { padding: 1.4rem 1.1rem; }
  .post-card { padding: 1.15rem 1.05rem; }
  .breadcrumb { margin-top: 1.2rem; }
  .info-list { grid-template-columns: 1fr; row-gap: 0.35rem; }
  .info-list dt { color: #3f5870; }
}

@media (max-width: 540px) {
  body { line-height: 1.65; }
  /* 모바일에서는 좌우 여백을 최소화 */
  .shell { padding: 0 0.35rem 1.6rem; }
  .section,
  .paper { padding: 1.0rem 0.55rem; }
  .site-header { padding: 2rem 0.6rem 1.8rem; }
  .meta-grid { grid-template-columns: 1fr; }
  .post-card__meta { gap: 0.3rem; }
  .tag { font-size: 0.88rem; }
  .paper-info { padding: 0.9rem 1rem; }
  .paper-info__title h2 { font-size: 1.1rem; }
  .breadcrumb { font-size: 0.9rem; }
}
