﻿:root {
  --paper: #fff;
  --ink: #1f2523;
  --soft-ink: #5c625f;
  --line: #ded6c9;
  --leaf: #556b55;
  --leaf-dark: #2f4637;
  --coral: #c96f5a;
  --mist: #eef1ed;
  --white: #fffdf8;
  --shadow: 0 18px 45px rgba(35, 34, 30, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Pretendard", "Malgun Gothic", Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

textarea,
.write-box textarea,
.admin-grid textarea,
.admin-category-fields textarea,
.post-detail-body,
.post-detail-body p,
.post-detail h1,
.poem-card h3,
.article-item h3,
.post-item h3,
.category-item h2,
.category-item-head h2,
.community-post-head h3,
.admin-row-title,
.admin-about-select b,
.poem-card p,
.article-item p,
.post-item p,
.category-item p,
.community-post-preview,
.comment-body,
.comment-edit-body,
.admin-row-preview {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.top-bar {
  background: #222821;
  color: #f7f0e7;
  font-size: 14px;
}

.top-inner {
  max-width: 1180px;
  min-height: 42px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

#userGreeting {
  color: #ffd166;
  font-weight: 900;
}

.top-inner a {
  opacity: 0.88;
}

.top-inner a:hover {
  opacity: 1;
}

.site-header {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  column-gap: 18px;
  row-gap: 12px;
}

.site-header.compact {
  padding-bottom: 0;
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-left: 38px;
  color: var(--logo-color, #1f2d24);
  font-family: "Gabriola", "Lucida Calligraphy", "Goudy Old Style", "HCR Batang", "GungSeo", "궁서", "Batang", serif;
  font-size: 37px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  justify-self: start;
  text-shadow:
    0 1px 0 #fff7ea,
    1px 1px 0 rgba(120, 76, 42, 0.18),
    0 3px 7px rgba(47, 70, 55, 0.2);
  -webkit-text-stroke: 0.2px rgba(31, 45, 36, 0.42);
}

.logo::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 18px;
  height: 36px;
  border-radius: 90% 10% 80% 20%;
  background:
    linear-gradient(135deg, transparent 48%, rgba(47, 70, 55, 0.48) 49%, transparent 52%),
    linear-gradient(160deg, #f5ead7 0%, #d3b784 42%, #8f633d 100%);
  box-shadow:
    inset -4px -2px 0 rgba(47, 70, 55, 0.16),
    0 2px 4px rgba(31, 37, 35, 0.14);
  transform: rotate(-23deg);
}

.logo::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 24px;
  width: 19px;
  height: 3px;
  border-radius: 999px;
  background: #5d3d25;
  transform: rotate(-23deg);
}

.main-nav {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 0 14px;
  border-top: 1px solid #d7cabb;
  border-bottom: 1px solid #e9e2d8;
  color: #46504b;
  font-weight: 800;
}

.main-nav a {
  position: relative;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 13px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.main-nav a:hover {
  background: #f5f1ea;
  border-color: #ded4c6;
  color: var(--leaf-dark);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--coral);
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.main-nav a.active {
  background: #eef1ed;
  border-color: rgba(85, 107, 85, 0.22);
  color: var(--leaf-dark);
}

.main-nav a:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 2px;
}

.header-search-form {
  width: 100%;
  max-width: 380px;
  margin: 0 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 0;
  align-items: center;
  overflow: hidden;
  border: 1.5px solid var(--leaf-dark);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(45, 62, 50, 0.1);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.header-search-form:focus-within {
  border-color: #2a9f72;
  box-shadow: 0 7px 18px rgba(42, 159, 114, 0.16);
}

.header-search-form input {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 0;
  background: #fff;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  outline: 0;
  min-width: 0;
}

.header-search-form button {
  height: 38px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
  background: var(--leaf-dark);
  color: #fff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.16s ease;
}

.header-search-form button:hover {
  background: #2a9f72;
}

.admin-quick-write-link {
  display: none;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: min(86px, 100%);
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(47, 70, 55, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, #2f4637, #2a9f72);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(42, 159, 114, 0.2);
  white-space: nowrap;
}

.admin-quick-write-link:hover {
  background: linear-gradient(135deg, #24382d, #238862);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #111;
}

@media (max-width: 1040px) and (min-width: 821px) {
  .site-header {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 10px;
  }

  .logo {
    min-width: 0;
    font-size: 31px;
  }

  .admin-quick-write-link {
    width: 74px;
    min-height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }

  .header-search-form {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 18, 15, 0.72), rgba(15, 18, 15, 0.28), rgba(15, 18, 15, 0.12));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 48px));
  margin-left: max(24px, calc((100vw - 1180px) / 2 + 24px));
  color: #fffaf0;
  padding: 76px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #f5b39f;
}

h1,
h2,
h3,
p {
  word-break: keep-all;
}

h1,
h2 {
  line-height: 1.22;
  margin: 0;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(40px, 6vw, 72px);
}

.hero-copy p:not(.eyebrow) {
  max-width: 540px;
  margin: 22px 0 0;
  font-size: 18px;
}

.hero-actions,
.community-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 34px;
}

.primary-btn,
.ghost-btn {
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
}

.primary-btn {
  background: var(--leaf-dark);
  color: #fffaf0;
}

.primary-btn:hover {
  background: var(--leaf);
}

.primary-btn:disabled,
.ghost-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.35);
  box-shadow: none;
}

.primary-btn:disabled:hover {
  background: var(--leaf-dark);
}

.ghost-btn {
  border-color: rgba(255, 250, 240, 0.68);
  color: #fffaf0;
  background: rgba(255, 255, 255, 0.08);
}

.ghost-btn.small {
  min-height: 38px;
  padding: 8px 14px;
  color: var(--leaf-dark);
  border-color: var(--line);
  background: var(--white);
}

.ghost-btn.draft-save-btn,
.draft-save-btn {
  border-color: rgba(42, 159, 114, 0.42);
  background: #f1fbf6;
  color: #1f6f52;
  font-weight: 900;
}

.ghost-btn.draft-save-btn:hover,
.draft-save-btn:hover {
  background: #dff6ea;
  color: #155c43;
}

.ghost-btn.draft-load-btn,
.draft-load-btn {
  border-color: rgba(47, 70, 55, 0.24);
  background: #fff;
  color: var(--leaf-dark);
  font-weight: 900;
}

.manual-draft-box {
  max-width: 640px;
}

.manual-draft-list {
  display: grid;
  gap: 10px;
}

.manual-draft-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.manual-draft-main {
  min-width: 0;
}

.manual-draft-main strong,
.manual-draft-main span,
.manual-draft-main p {
  display: block;
  overflow-wrap: anywhere;
}

.manual-draft-main span,
.manual-draft-main p {
  margin-top: 4px;
  color: var(--soft-ink);
  font-size: 12px;
}

.manual-draft-main p {
  margin-bottom: 0;
}

.manual-draft-actions {
  display: flex;
  gap: 6px;
}

.full {
  width: 100%;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 78px 24px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.about-link {
  display: block;
}

.intro-grid h2,
.section-heading h2,
.community-preview h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.intro-grid article p:not(.eyebrow),
.intro-grid .about-link p:not(.eyebrow),
.community-preview p {
  color: var(--soft-ink);
  margin: 18px 0 0;
}

#aboutBody {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.quote-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.quote-panel strong {
  color: var(--leaf-dark);
}

.quote-panel p {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.section-heading {
  margin-bottom: 26px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.poem-card,
.article-item,
.post-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.poem-card {
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.poem-card:hover,
.article-item:hover {
  border-color: var(--leaf);
  transform: translateY(-1px);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.category-item:hover {
  border-color: rgba(82, 167, 161, 0.78);
  transform: translateY(-1px);
  box-shadow:
    0 18px 44px rgba(31, 37, 35, 0.11),
    0 0 0 4px rgba(114, 207, 202, 0.09),
    0 0 28px rgba(114, 207, 202, 0.2);
}

.poem-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

.poem-card p,
.post-item p {
  color: var(--soft-ink);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.article-item p {
  color: var(--soft-ink);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.poem-card time,
.article-item time,
.post-meta {
  color: #87827a;
  font-size: 13px;
}

.muted-band {
  max-width: none;
  background: var(--mist);
}

.muted-band > * {
  max-width: 1132px;
  margin-left: auto;
  margin-right: auto;
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-item {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.article-item h3 {
  margin: 0 0 8px;
}

.article-item p {
  margin: 0;
}

.community-preview {
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.footer {
  padding: 36px 24px;
  text-align: center;
  color: #f7f0e7;
  background: #222821;
}

.auth-page {
  min-height: calc(100vh - 142px);
  padding: 54px 24px 80px;
  display: grid;
  place-items: start center;
  gap: 18px;
}

.auth-logo {
  justify-self: center;
  margin-bottom: 2px;
}

.auth-box {
  width: min(460px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.auth-box h1 {
  margin-bottom: 24px;
  font-size: 34px;
}

.auth-box h2 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.25;
}

.auth-box label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 800;
}

.auth-box input,
.write-box input,
.write-box textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  color: var(--ink);
}

.auth-box button {
  margin-top: 22px;
}

.auth-help {
  margin: 18px 0 0;
  color: var(--soft-ink);
}

.auth-help a {
  color: var(--leaf-dark);
  font-weight: 800;
}

.login-support {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.login-support p {
  margin: 0 0 12px;
  color: var(--soft-ink);
  font-size: 13px;
}

.login-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.login-links .ghost-btn.small {
  width: 100%;
  min-height: 38px;
  margin-top: 0;
  padding: 8px 10px;
}

.find-account-box {
  width: min(430px, 100%);
}

.find-account-box label {
  display: block;
  margin: 14px 0 7px;
  font-weight: 800;
}

.find-account-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  color: var(--ink);
}

.find-account-input[readonly] {
  background: var(--mist);
  color: var(--leaf-dark);
  font-weight: 800;
}

.find-account-box .primary-btn.full {
  margin-top: 18px;
}

.find-id-check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.find-id-check-row .find-account-input {
  min-width: 0;
}

.find-id-check-row .ghost-btn.small {
  min-height: 43px;
  margin-top: 0;
  padding: 8px 14px;
}

.find-account-guide {
  margin: 0 0 10px;
  color: var(--soft-ink);
  font-size: 14px;
}

.find-question-box {
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px solid rgba(85, 107, 85, 0.28);
  border-radius: 8px;
  background: var(--mist);
}

.find-question-box[hidden] {
  display: none;
}

.find-question-box span {
  display: block;
  margin-bottom: 4px;
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 800;
}

.find-question-box strong {
  display: block;
  margin-bottom: 10px;
  color: var(--leaf-dark);
  font-size: 15px;
}

.find-question-box label {
  margin-top: 12px;
}

.find-account-result {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--coral);
  font-weight: 800;
}

.form-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--coral);
  font-weight: 800;
}

.id-check-message {
  min-height: 20px;
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 800;
}

.id-check-message.ok {
  color: var(--leaf-dark);
}

.id-check-message.error {
  color: var(--coral);
}

.mypage-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 24px 70px;
}

.mypage-shell {
  display: grid;
  gap: 18px;
}

.mypage-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mypage-summary-card,
.mypage-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(31, 37, 35, 0.05);
}

.mypage-summary-card {
  padding: 18px;
  display: grid;
  gap: 4px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.mypage-summary-card:hover,
.mypage-summary-card:focus-visible {
  border-color: rgba(82, 167, 161, 0.72);
  box-shadow: 0 12px 28px rgba(47, 70, 55, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.mypage-summary span {
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 800;
}

.mypage-summary strong {
  color: var(--leaf-dark);
  font-size: 26px;
  line-height: 1.1;
}

.mypage-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 8px;
}

.mypage-menu button {
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--soft-ink);
  padding: 8px 13px;
  font-weight: 900;
  cursor: pointer;
}

.mypage-menu button.active,
.mypage-menu button:hover {
  border-color: rgba(82, 167, 161, 0.45);
  background: #f3fbf8;
  color: var(--leaf-dark);
}

.mypage-panel[hidden] {
  display: none;
}

.mypage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.mypage-profile-panel {
  display: grid;
  gap: 18px;
}

.mypage-card {
  padding: 22px;
}

.mypage-card-head {
  margin-bottom: 16px;
}

.mypage-card-head h2 {
  margin: 0;
  font-size: 24px;
}

.mypage-form {
  display: grid;
  gap: 12px;
}

.mypage-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mypage-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
}

.mypage-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
}

.mypage-form input:disabled {
  background: var(--mist);
  color: var(--leaf-dark);
  cursor: not-allowed;
  opacity: 1;
}

.mypage-password-check-row {
  grid-column: 1 / -1;
}

.mypage-password-check-row span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.mypage-password-check-row button {
  min-height: 43px;
  white-space: nowrap;
}

.mypage-actions {
  display: flex;
  justify-content: flex-end;
}

.danger-zone {
  background: #fff8f6;
  border-color: #e7c5bb;
}

.danger-zone p {
  margin: 0 0 16px;
  color: var(--soft-ink);
  font-size: 14px;
}

.mypage-list {
  display: grid;
  gap: 8px;
}

.mypage-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.mypage-list-item:hover {
  border-color: rgba(82, 167, 161, 0.65);
  background: #f8fffd;
}

.mypage-list-link {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.mypage-list-link strong {
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mypage-list-link span {
  color: #87827a;
  font-size: 12px;
  font-weight: 800;
}

.mypage-list-link p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 13px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mypage-list-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}

.mypage-list-actions .ghost-btn.small {
  min-height: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1;
}

.search-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 24px 70px;
}

.search-shell {
  display: grid;
  gap: 18px;
}

.search-form,
.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px;
}

.search-form input,
.admin-filter-bar input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
}

.search-count {
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 900;
}

.search-results,
.search-result-list {
  display: grid;
  gap: 12px;
}

.search-result-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
}

.search-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.search-group-head h2 {
  margin: 0;
  font-size: 22px;
}

.search-group-head span {
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 900;
}

.search-result-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
}

.search-result-item:hover {
  border-color: rgba(82, 167, 161, 0.65);
  background: #f8fffd;
}

.search-result-item strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.search-result-item span {
  color: #87827a;
  font-size: 12px;
  font-weight: 800;
}

.search-result-item p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.community-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

.category-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

.category-hero {
  margin: 26px 0 34px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(85, 107, 85, 0.12), rgba(201, 111, 90, 0.1)),
    var(--white);
  box-shadow: var(--shadow);
}

.category-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
}

#categoryEyebrow:empty {
  display: none;
}

.category-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--soft-ink);
  font-size: 18px;
}

.category-list-section {
  display: grid;
  gap: 18px;
}

.category-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.category-filter-bar span,
.category-filter-bar button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--soft-ink);
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.category-filter-bar span {
  cursor: default;
}

.category-filter-bar span:first-child,
.category-filter-bar button.active,
.category-filter-bar button:hover {
  background: var(--leaf-dark);
  border-color: var(--leaf-dark);
  color: #fffaf0;
}

.category-count {
  color: var(--soft-ink);
  font-weight: 800;
}

.category-list {
  position: relative;
  display: grid;
  gap: 12px;
}

.category-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 252, 250, 0.92)),
    var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(31, 37, 35, 0.04);
  transition:
    opacity 0.18s ease,
    filter 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.category-item:has(.category-admin-tools) {
  padding-right: 86px;
}

.category-item:has(.category-admin-tools) .category-item-head time {
  padding-right: 72px;
}

.category-list:has(.category-item:hover) .category-item:not(:hover) {
  opacity: 0.58;
  filter: saturate(0.72);
}

.category-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(114, 207, 202, 0.22), transparent),
    linear-gradient(135deg, rgba(114, 207, 202, 0.1), transparent 44%, rgba(201, 111, 90, 0.1));
  opacity: 0;
  pointer-events: none;
  transform: translateX(-18%);
  transition: opacity 0.2s ease, transform 0.28s ease;
}

.category-item::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  border: 1px solid rgba(114, 207, 202, 0);
  pointer-events: none;
  transition: border-color 0.18s ease;
}

.post-detail-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px 24px 60px;
}

.post-detail,
.comment-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.post-detail {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
}

.post-detail-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
}

.post-detail-kicker a {
  color: var(--leaf-dark);
}

.post-detail h1 {
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 16px;
}

.post-detail-body {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}

.post-detail-body p {
  margin: 0 0 10px;
}

.post-detail-body h2,
.post-detail-body h3,
.post-detail-body h4 {
  margin: 18px 0 10px;
  line-height: 1.35;
}

.post-detail-body blockquote {
  margin: 14px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--leaf);
  background: #f7faf8;
  color: var(--soft-ink);
}

.post-detail-body ul,
.post-detail-body ol {
  margin: 0 0 12px 22px;
  padding: 0;
}

.post-detail-actions {
  margin-top: 18px;
}

.post-detail-actions button {
  position: absolute;
  top: 22px;
  z-index: 2;
  pointer-events: auto;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-height: 0;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 800;
  white-space: nowrap;
}

.post-detail-actions button.admin-dark {
  right: 64px;
}

.post-detail-actions button.admin-danger {
  right: 20px;
}

.post-detail-actions button.guest-owner-tool.admin-dark {
  right: 64px;
}

.post-detail-actions button.guest-owner-tool.admin-danger {
  right: 20px;
}

.post-detail:has(.post-detail-actions button) .post-detail-kicker {
  padding-right: 110px;
}

.post-detail:has(.guest-owner-tool) .post-detail-kicker {
  padding-right: 110px;
}

.comment-section {
  margin-top: 24px;
  padding: 10px;
}

.comment-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.comment-head h2 {
  font-size: 18px;
}

.comment-head span {
  margin-left: auto;
  color: var(--soft-ink);
  font-weight: 900;
}

.comment-write-trigger {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 12px;
}

.comment-write-popup .comment-popup-box {
  width: min(560px, 100%);
}

.comment-write-popup .comment-form {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.comment-form {
  margin: 12px 0;
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.comment-writer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 800;
}

.comment-writer-row strong,
.comment-writer-row a {
  color: var(--leaf-dark);
}

.comment-guest-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.comment-guest-fields input,
.secret-unlock-form input {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  font: inherit;
}

.comment-guest-fields input:disabled {
  background: #f2f0ec;
  color: var(--soft-ink);
  cursor: not-allowed;
  opacity: 1;
}

.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 52px;
  padding: 9px 10px;
  resize: vertical;
  font: inherit;
}

.comment-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.secret-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.comment-form .primary-btn,
.comment-form .ghost-btn {
  min-height: 34px;
  padding: 7px 14px;
}

.comment-action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.comment-list {
  display: grid;
  gap: 8px;
}

.comment-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 8px 10px;
}

.comment-item.comment-linked {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(85, 107, 85, 0.14);
}

.comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--soft-ink);
  font-size: 12px;
  line-height: 1.2;
}

.comment-meta strong {
  color: var(--leaf-dark);
}

.comment-body {
  margin: 4px 0 0;
  line-height: 1.48;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-member-badge,
.comment-secret-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--leaf-dark);
  font-size: 11px;
  font-weight: 900;
}

.comment-secret-badge {
  background: #fff0dd;
  color: #8c5a1f;
}

.comment-tools {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin: 0;
}

.inline-tools {
  margin-left: 2px;
}

.comment-tools button,
.secret-unlock-form button,
.comment-mini-btn {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.comment-tools button {
  min-height: 18px;
  padding: 0 5px;
  font-size: 10px;
  line-height: 1;
}

.comment-edit-form {
  display: grid;
  gap: 5px;
  margin-top: 5px;
}

.comment-edit-body {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 8px;
  resize: vertical;
  font: inherit;
}

.compact-actions {
  gap: 8px;
}

.comment-mini-btn {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.primary-mini {
  border-color: var(--leaf-dark);
  background: var(--leaf-dark);
  color: var(--white);
}

.reply-form {
  margin: 8px 0 0;
  background: #f8faf6;
}

.comment-replies {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-left: 16px;
  border-left: 3px solid var(--mist);
}

.comment-reply-item {
  background: #fbfcf8;
}

.locked-comment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7f3ed;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 800;
}

.secret-unlock-form {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 64px;
  gap: 6px;
}

.secret-unlock-form button {
  height: 34px;
}

.category-item-number {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(238, 241, 237, 0.96), rgba(221, 243, 239, 0.9));
  color: #315d59;
  border: 1px solid rgba(82, 167, 161, 0.18);
  font-weight: 900;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.category-item:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.category-item:hover::after {
  border-color: rgba(114, 207, 202, 0.28);
}

.category-item:hover .category-item-number {
  background: #315d59;
  color: #f7fffd;
  box-shadow: 0 0 18px rgba(114, 207, 202, 0.36);
}

.category-item h2 {
  margin: 0;
  font-size: 22px;
}

.category-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  margin: 0 0 8px;
}

.category-item-head h2 {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.category-item p {
  margin: 0 0 12px;
  color: var(--soft-ink);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: color 0.16s ease;
}

.category-item:hover p {
  -webkit-line-clamp: 10;
}

.category-item time {
  color: #87827a;
  font-size: 13px;
}

.empty-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  color: var(--soft-ink);
  text-align: center;
  font-weight: 800;
}

.compact-empty {
  padding: 18px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.pagination button {
  min-width: 42px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--soft-ink);
  cursor: pointer;
  font-weight: 900;
}

.pagination button.active,
.pagination button:hover {
  background: var(--leaf-dark);
  border-color: var(--leaf-dark);
  color: #fffaf0;
}

.page-title {
  padding: 26px 0 34px;
}

.page-title h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.page-title > p:not(.eyebrow) {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--soft-ink);
  font-size: 16px;
  line-height: 1.7;
}

.community-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.side-menu,
.board-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.side-menu {
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.side-menu button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--soft-ink);
  cursor: pointer;
  text-align: center;
  padding: 10px 12px;
  font-weight: 800;
  white-space: nowrap;
}

.side-menu button.active,
.side-menu button:hover {
  background: var(--mist);
  color: var(--leaf-dark);
}

.board-panel {
  padding: 24px;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.board-head h2 {
  font-size: 30px;
}

.write-box {
  display: none;
  gap: 12px;
  margin: 20px 0;
}

.write-box.open {
  display: grid;
}

.community-writer-fields {
  display: grid;
}

.community-board-field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.community-board-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.community-auth-guide {
  margin: 0;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 800;
}

.board-panel > #postTitle,
.board-panel > #postBody,
.board-panel > .primary-btn[type="submit"] {
  display: none;
}

.write-box textarea {
  resize: vertical;
}

.post-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.board-panel .post-list {
  gap: 8px;
  margin-top: 14px;
}

.post-item {
  padding: 20px;
}

.post-item h3 {
  margin: 0 0 8px;
}

.post-item p {
  margin: 0 0 12px;
}

.community-post-item {
  padding: 12px 14px;
}

.community-post-item:has(.community-post-action-row) {
  padding-right: 82px;
}

.community-post-item:has(.community-post-action-row) .community-post-head .post-meta {
  padding-right: 72px;
}

.community-post-item:not(.community-comment-item) {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 252, 250, 0.92)),
    var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(31, 37, 35, 0.04);
  transition:
    opacity 0.18s ease,
    filter 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.board-panel .post-list:has(.community-post-item:not(.community-comment-item):hover) .community-post-item:not(.community-comment-item):not(:hover) {
  opacity: 0.58;
  filter: saturate(0.72);
}

.community-post-item:not(.community-comment-item)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(114, 207, 202, 0.22), transparent),
    linear-gradient(135deg, rgba(114, 207, 202, 0.1), transparent 44%, rgba(201, 111, 90, 0.1));
  opacity: 0;
  pointer-events: none;
  transform: translateX(-18%);
  transition: opacity 0.2s ease, transform 0.28s ease;
}

.community-post-item:not(.community-comment-item)::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  border: 1px solid rgba(114, 207, 202, 0);
  pointer-events: none;
  transition: border-color 0.18s ease;
}

.community-post-item:not(.community-comment-item):hover::before {
  opacity: 1;
  transform: translateX(0);
}

.community-post-item:not(.community-comment-item):hover::after {
  border-color: rgba(114, 207, 202, 0.28);
}

.community-post-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
}

.community-post-head h3 {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 17px;
}

.community-post-head .post-meta {
  white-space: nowrap;
}

.community-post-preview {
  display: -webkit-box;
  margin-top: 5px;
  color: var(--soft-ink);
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 13px;
  transition: color 0.16s ease;
}

.community-post-item:not(.community-comment-item):hover .community-post-preview {
  -webkit-line-clamp: 10;
}

.community-post-item .post-meta-row {
  min-height: 20px;
  margin-top: 4px;
}

.community-post-action-row {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  min-height: 0;
  margin-top: 0;
}

.post-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.community-post-tools {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.community-post-tools button {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--soft-ink);
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
}

.community-post-tools button:hover {
  border-color: rgba(31, 45, 36, 0.35);
  color: var(--ink);
}

.category-admin-tools {
  position: absolute;
  top: 20px;
  right: 14px;
  z-index: 2;
  margin-top: 0;
}

.admin-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

.admin-shell {
  display: grid;
  gap: 14px;
}

.admin-main-menu,
.admin-sub-menu {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-main-menu button,
.admin-sub-menu button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.admin-main-menu button {
  padding: 10px 18px;
  background: transparent;
  color: var(--soft-ink);
}

.admin-main-menu button.active,
.admin-main-menu button:hover {
  background: var(--leaf-dark);
  color: #fffaf0;
}

.admin-sub-menu {
  display: none;
  background: #fffaf3;
}

.admin-sub-menu.active {
  display: flex;
}

.admin-sub-menu button {
  padding: 9px 14px;
  background: transparent;
  color: var(--soft-ink);
}

.admin-sub-menu button.active,
.admin-sub-menu button:hover {
  background: var(--mist);
  color: var(--leaf-dark);
}

.admin-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.admin-toolbar,
.admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-toolbar {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.admin-toolbar h2 {
  font-size: 30px;
}

.admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-toolbar-actions[hidden] {
  display: none;
}

.admin-toolbar-actions .primary-btn:disabled {
  background: #c7c7bd;
  border-color: #c7c7bd;
  color: #f7f4ee;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-grid {
  display: grid;
  gap: 14px;
}

.admin-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-grid label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.admin-grid .wide {
  grid-column: 1 / -1;
}

.admin-logo-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
}

.admin-grid input,
.admin-grid textarea,
.admin-grid select,
.member-table input,
.member-table select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
}

.admin-grid input:disabled {
  background: #f2f0ec;
  color: var(--soft-ink);
  cursor: not-allowed;
  opacity: 1;
}

.admin-grid select {
  min-height: 46px;
  cursor: pointer;
}

.admin-grid input.admin-logo-color {
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 3px;
  border-radius: 8px;
  cursor: pointer;
}

.admin-grid input[type="file"] {
  padding: 9px 12px;
  cursor: pointer;
}

.admin-grid textarea {
  resize: vertical;
}

.admin-hero-preview {
  display: grid;
  gap: 10px;
}

.admin-hero-preview img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
}

.admin-hero-size-info {
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 800;
}

.admin-list-head {
  margin-bottom: 16px;
}

.admin-list-head p {
  margin: 0;
  color: var(--soft-ink);
}

.admin-edit-list {
  display: grid;
  gap: 14px;
}

.admin-row-list,
.admin-board-list {
  display: grid;
  gap: 12px;
}

.admin-row-item {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf3;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.admin-row-title {
  min-width: 0;
  font-weight: 900;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-row-link {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.admin-row-link:hover .admin-row-title,
.admin-row-link:focus-visible .admin-row-title {
  color: var(--leaf-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-row-title-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.admin-row-title-line .post-meta {
  white-space: nowrap;
  font-size: 12px;
}

.admin-row-preview {
  color: var(--soft-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-row-actions {
  display: flex;
  gap: 4px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
  line-height: 1;
}

.admin-row-actions .ghost-btn.small,
.member-table .ghost-btn.small {
  min-height: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1;
}

.admin-category-item {
  align-items: start;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.admin-category-item.hidden-category {
  background: #f1f1ee;
  border-style: dashed;
  opacity: 0.72;
}

.admin-category-item.special-category {
  border-color: rgba(85, 107, 85, 0.22);
  background: #f7faf5;
}

.admin-category-item.hidden-category .admin-row-actions::before {
  content: none;
}

.admin-category-item .admin-row-actions {
  align-self: end;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
  height: 40px;
}

.admin-category-item .admin-row-actions .ghost-btn.small {
  min-height: 18px;
  height: 18px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1;
}

.admin-post-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
}

.admin-global-search-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 12px;
}

.admin-global-search-row .admin-row-link {
  grid-column: 1;
}

.admin-global-search-row .admin-row-actions {
  grid-column: 2;
  min-width: 48px;
  flex-wrap: nowrap;
}

.admin-global-search-row .admin-row-title-line {
  grid-template-columns: minmax(0, 1fr) minmax(120px, max-content);
}

.admin-global-search-row .admin-row-title-line .post-meta {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.admin-post-row .admin-row-actions,
.admin-comment-row .admin-row-actions {
  align-self: start;
  padding-top: 0;
}

.admin-category-order {
  display: flex;
  align-items: center;
  align-self: end;
}

.admin-category-handle {
  width: 34px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--soft-ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: grab;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.admin-category-handle:active {
  cursor: grabbing;
}

.admin-category-item.dragging {
  opacity: 0.58;
}

.admin-category-item.drag-over,
.admin-post-row.drag-over {
  border-color: var(--leaf);
  background: #f3f7f1;
}

.admin-category-item.drag-over .admin-category-handle,
.admin-post-row.drag-over .admin-category-handle {
  border-color: var(--leaf);
  color: var(--leaf-dark);
  background: var(--mist);
}

.admin-post-row.dragging {
  opacity: 0.58;
}

.admin-category-fields {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(240px, 1.3fr);
  gap: 12px;
}

.admin-category-fields label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.admin-category-fields span {
  color: var(--soft-ink);
  font-size: 13px;
}

.admin-category-fields textarea {
  width: 100%;
  height: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 7px 10px;
  color: var(--ink);
  resize: none;
  line-height: 1.45;
}

.admin-category-fields input:disabled,
.admin-category-fields textarea:disabled {
  background: #eeeeea;
  color: var(--soft-ink);
  cursor: not-allowed;
  opacity: 1;
}

.admin-about-post {
  display: block;
}

.admin-about-post.selected {
  border-color: var(--leaf);
  background: #f3f7f1;
}

.admin-about-select {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  cursor: pointer;
}

.admin-about-select input {
  margin-top: 5px;
}

.admin-about-select span {
  display: grid;
  gap: 4px;
}

.admin-about-select strong {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
}

.admin-about-select b {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-about-select em {
  margin-left: 0;
  color: var(--soft-ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.admin-about-select small {
  color: var(--soft-ink);
  font-style: normal;
}

.admin-board-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf3;
  padding: 18px;
}

.admin-board-head {
  margin: 18px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-global-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f7f1;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-global-search-card {
  display: grid;
  gap: 16px;
}

.admin-global-group {
  display: grid;
  gap: 12px;
  background: #fffdf8;
  box-shadow: 0 8px 20px rgba(48, 40, 28, 0.05);
}

.admin-global-group-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-global-group-head strong {
  font-size: 18px;
  color: var(--ink);
}

.admin-edit-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf3;
  padding: 18px;
}

.admin-edit-card > button {
  margin-top: 12px;
}

.admin-dark {
  color: var(--leaf-dark);
  border-color: var(--line);
  background: var(--white);
}

.admin-danger {
  color: #9b3f31;
  border-color: #d8b5ad;
  background: #fff7f4;
}

.member-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.member-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: #fff;
}

.member-table th,
.member-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: middle;
}

.member-table th {
  background: var(--mist);
  color: var(--leaf-dark);
  font-size: 14px;
}

.member-table tr:last-child td {
  border-bottom: 0;
}

.member-value {
  display: block;
  max-width: 220px;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.member-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef6f2;
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.member-badge.blocked {
  background: #fff0eb;
  color: #9b4d38;
}

.member-action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.member-action-buttons .ghost-btn.small {
  min-height: 22px;
  padding: 2px 7px;
  font-size: 11px;
  line-height: 1.2;
}

.member-action-buttons .ghost-btn.small:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.member-search-extra {
  display: none;
}

.member-block-box {
  width: min(520px, 100%);
}

.member-block-form {
  display: grid;
  gap: 10px;
}

.member-block-target {
  margin: 0 0 4px;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 800;
}

.member-block-form label {
  color: var(--ink);
  font-weight: 900;
}

.member-block-form select,
.member-block-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
}

.member-block-form textarea {
  min-height: 110px;
  resize: vertical;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.withdraw-box {
  width: min(430px, 100%);
}

.withdraw-form {
  display: grid;
  gap: 10px;
}

.withdraw-form p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 800;
}

.withdraw-form label {
  color: var(--ink);
  font-weight: 900;
}

.withdraw-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
}

.admin-popup {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(31, 37, 35, 0.58);
}

.admin-popup.open {
  display: flex;
}

.admin-popup-box {
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.rich-editor-shell {
  display: grid;
  gap: 8px;
}

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.rich-editor-toolbar button,
.rich-editor-toolbar select,
.rich-color-tool {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.rich-editor-toolbar button {
  cursor: pointer;
}

.rich-color-tool {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-right: 5px;
}

.rich-color-tool input {
  width: 24px;
  height: 20px;
  border: 0;
  padding: 0;
  background: transparent;
}

.rich-editor-surface {
  min-height: 420px;
  max-height: 58vh;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
  outline: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  cursor: text;
}

.rich-editor-surface:focus {
  border-color: rgba(49, 93, 89, 0.5);
  box-shadow: 0 0 0 3px rgba(49, 93, 89, 0.08);
}

.rich-editor-surface p {
  margin: 0 0 12px;
}

.rich-editor-surface blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--leaf);
  background: #f7faf8;
}

.rich-editor-surface img,
.post-detail-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 14px 0;
  border-radius: 8px;
}

.rich-editor-surface img {
  cursor: pointer;
}

.rich-editor-selected-image {
  outline: 3px solid rgba(49, 93, 89, 0.65);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(49, 93, 89, 0.08);
}

.admin-popup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-popup-head h2 {
  font-size: 30px;
}

.popup-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.admin-popup-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 48px));
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--leaf-dark);
  color: #fffaf0;
  box-shadow: var(--shadow);
  font-weight: 900;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.admin-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.admin-toast.error {
  background: #9b3f31;
}

@media (max-width: 820px) {
  .site-header,
  .main-nav,
  .article-item,
  .community-preview {
    align-items: flex-start;
  }

  .comment-guest-fields,
  .secret-unlock-form {
    grid-template-columns: 1fr;
  }

  .comment-form-actions,
  .locked-comment {
    align-items: stretch;
    flex-direction: column;
  }

  .comment-action-buttons {
    justify-content: stretch;
  }

  .comment-action-buttons button,
  .comment-form .primary-btn {
    width: 100%;
  }

  .manual-draft-item {
    grid-template-columns: 1fr;
  }

  .manual-draft-actions {
    justify-content: stretch;
  }

  .manual-draft-actions button {
    flex: 1;
  }

  .site-header,
  .article-item,
  .community-preview {
    display: flex;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    gap: 14px;
    flex-wrap: wrap;
  }

  .header-search-form {
    width: 100%;
    margin: 0 0 4px;
    grid-template-columns: minmax(0, 1fr) 64px;
  }

  .admin-quick-write-link {
    width: 100%;
    min-height: 42px;
  }

  .header-search-form input,
  .header-search-form button {
    height: 40px;
  }

  .hero {
    min-height: 590px;
  }

  .hero::after {
    background: rgba(15, 18, 15, 0.62);
  }

  .hero-copy {
    width: calc(100% - 40px);
    margin: 0 20px;
  }

  .intro-grid,
  .card-grid,
  .community-layout,
  .category-item,
  .mypage-summary,
  .mypage-grid,
  .mypage-form-row,
  .admin-grid.two {
    grid-template-columns: 1fr;
  }

  .category-hero {
    padding: 24px;
  }

  .admin-toolbar,
  .admin-list-head,
  .admin-board-head,
  .admin-row-item,
  .mypage-list-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .mypage-list-item {
    grid-template-columns: 1fr;
  }

  .admin-row-item {
    display: flex;
  }

  .admin-category-item {
    align-items: stretch;
  }

  .admin-post-row {
    align-items: stretch;
  }

  .admin-category-order {
    width: auto;
  }

  .admin-row-actions {
    justify-content: flex-start;
  }

  .admin-row-title-line {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .admin-row-title-line .post-meta {
    white-space: normal;
  }

  .admin-category-fields {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .community-post-head {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .community-post-head .post-meta {
    white-space: normal;
  }

  .section {
    padding: 58px 20px;
  }

  .top-inner {
    padding: 0 16px;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .login-links {
    grid-template-columns: 1fr;
  }

  .search-form,
  .admin-filter-bar {
    grid-template-columns: 1fr;
  }

  .admin-toast {
    right: 16px;
    bottom: 16px;
  }
}






