@import url("/vendor/pretendard/pretendardvariable-dynamic-subset.css");
@import url("/vendor/fredoka/fredoka.css");
/* 공통 화면 틀 (T021). 색은 초록 계열 변수로만 정한다(2026-10-08 디자인 변경) */
:root {
  --green-900: #0f3d26;
  --green-800: #145a37;
  --green-700: #1a7046;
  --green-600: #218a56;
  --green-500: #2fa86b;
  --green-100: #dff3e7;
  --green-50: #f1faf4;
  /* 곁들이는 색도 초록으로(2026-10-12 처음 초록으로 되돌림) */
  --sky-800: var(--green-800);
  --sky-700: var(--green-700);
  --sky-500: var(--green-500);
  --sky-100: var(--green-100);
  --sky-50: var(--green-50);
  --btn: var(--green-600);
  --btn-hover: var(--green-700);
  --btn-text: #fff;
  --bg: #f5f9f6;
  --surface: #fff;
  --line: #dce8e0;
  --text: #1d2a23;
  --muted: #5f6f66;
  --danger: #c0392b;
  --accent-warm: #fff6e0;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(15, 61, 38, .08), 0 4px 14px rgba(15, 61, 38, .05);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* 버튼 모양 클래스가 hidden을 덮지 않게 */

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Pretendard Variable", "Pretendard", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

main {
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 16px;
}
h1, h2, h3 { color: var(--green-900); line-height: 1.3; }
h2 { font-size: 1.2rem; }

/* 상단 메뉴: 왼쪽 로고·주 메뉴, 가운데 검색, 오른쪽 내 메뉴 */
.site-header { background: var(--green-800); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); position: sticky; top: 0; z-index: 10; }
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
}
.site-header a { color: #fff; text-decoration: none; }
.site-header a:hover { text-decoration: underline; }
.site-logo { display: inline-flex; align-items: center; gap: 8px; font-family: "Fredoka", "Pretendard Variable", sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: 0; }
.site-header__menu { display: flex; gap: 16px; }
.site-header__search { flex: 1; min-width: 160px; max-width: 360px; display: flex; }
.site-header__search input[type="search"] { border: 0; border-radius: 999px; padding: 6px 14px; font-size: 0.95rem; background: rgba(255,255,255,.15); color: #fff; }
.site-header__search input[type="search"]::placeholder { color: rgba(255,255,255,.75); }
.site-header__search input[type="search"]:focus { background: #fff; color: var(--text); outline: none; }
.site-header__right { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; align-items: center; margin-left: auto; }
.site-header nav > a, .site-header__right > * { white-space: nowrap; } /* 좁은 폭에서 글자 단위로 꺾이지 않고 줄 단위로 넘어간다(SC-010) */
.site-header__nickname { font-weight: 700; }
.profile-menu { position: relative; }
.site-header button.site-header__nickname { border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 0.95rem; padding: 5px 12px; }
.site-header button.site-header__nickname::after { content: " ▾"; font-size: 0.8em; }
.site-header button.site-header__nickname[aria-expanded="true"] { background: #fff; color: var(--green-800); }
.profile-menu__list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 150px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 0; z-index: 20; }
.site-header .profile-menu__list a, .site-header .profile-menu__list button { display: block; width: 100%; text-align: left; padding: 8px 16px; color: var(--text); background: transparent; border: 0; border-radius: 0; font-size: 0.95rem; font-weight: 400; font-family: inherit; }
.site-header .profile-menu__list a:hover, .site-header .profile-menu__list button:hover { background: var(--green-50); text-decoration: none; }
.site-header .button-light { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--green-800); font-weight: 700; }
.site-header .button-light:hover { text-decoration: none; background: var(--green-100); }
.site-header button { margin: 0; padding: 4px 10px; background: transparent; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; font-size: 0.85rem; }
@media (max-width: 640px) {
  .site-header nav { gap: 8px 12px; }
  .site-header__search { order: 10; flex-basis: 100%; max-width: none; }
  .site-header__right { gap: 4px 10px; font-size: 0.9rem; }
}

.site-footer {
  padding: 18px 16px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.site-footer a { color: var(--muted); }

a { color: var(--green-700); }
a:hover { color: var(--green-900); }

label { display: block; margin-top: 12px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="search"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--surface);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green-500); outline-offset: 0; border-color: var(--green-500); }
button {
  margin-top: 16px;
  padding: 9px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--green-700);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
button:hover:not(:disabled) { background: var(--green-800); }
button:disabled { opacity: 0.6; cursor: default; }

.message { margin-top: 12px; }
.message--error { color: var(--danger); }
.message--info { color: var(--green-700); }

/* 002 블로그 화면 */
main.wide { max-width: 960px; }
select, textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}
.hint { color: var(--muted); font-size: 0.875rem; margin: 4px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding: 0; list-style: none; }
.chips li { background: var(--green-100); border-radius: 12px; padding: 2px 10px; font-size: 0.875rem; }
.chips button { margin: 0 0 0 4px; padding: 0 4px; background: none; color: #555; }
.blog-list { list-style: none; padding: 0; margin: 16px 0; }
.blog-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; }
.blog-list .blog-list__meta { color: var(--muted); font-size: 0.875rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tabs button { margin: 0; background: var(--green-50); color: var(--green-800); }
.tabs button[aria-selected="true"] { background: var(--green-700); color: #fff; }
.pager { display: flex; flex-wrap: wrap; gap: 4px; }
.pager button { margin: 0; padding: 4px 10px; background: #fff; color: var(--green-700); border: 1px solid var(--line); }
.pager button[aria-current="page"] { background: var(--green-700); color: #fff; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row > * { margin-top: 0; }
.cover { width: 100%; max-height: 240px; object-fit: cover; border-radius: var(--radius); }
.notice { background: var(--accent-warm); border: 1px solid #f5c48a; border-radius: var(--radius); padding: 12px; margin: 12px 0; }
table.data { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.9rem; }
table.data th, table.data td { border-bottom: 1px solid #eee; padding: 6px; text-align: left; vertical-align: top; }
.table-wrap { overflow-x: auto; }
table.data th, table.data td { white-space: nowrap; } /* 좁은 폭에서는 표만 가로로 밀고 화면은 밀리지 않는다 */
.grow { flex: 1; min-width: 0; }
.sr-only { position: absolute !important; left: 0; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.blog-search { display: flex; gap: 8px; }
.blog-search input { flex: 1; min-width: 0; }
.blog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.blog-card { display: flex; gap: 12px; }
.blog-card__cover { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.blog-card__body { min-width: 0; }
.blog-card__name { font-weight: 600; }
.blog-card__desc { margin: 4px 0; overflow-wrap: anywhere; }
.blog-card__tags .tag { margin-right: 6px; color: var(--green-700); font-size: 0.875rem; }
.blog-list__empty { color: var(--muted); text-align: center; }
.badge { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--green-100); color: var(--green-700); font-size: 0.75rem; }
.pagination { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.pagination button { margin: 0; min-width: 36px; background: var(--green-50); color: var(--green-800); }
.pagination button.is-current { background: var(--green-700); color: #fff; }

/* 004 게시판 */
.post-list { list-style: none; padding: 0; margin: 12px 0; }
.post-item { position: relative; display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; }
.post-item__body { flex: 1; min-width: 0; }
.post-item__title { font-weight: 600; overflow-wrap: anywhere; }
.post-item__meta { color: var(--muted); font-size: 0.875rem; overflow-wrap: anywhere; }
.post-item__thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
/* PC는 마우스를 올리면 첫 사진, 모바일은 오른쪽 작은 첫 사진(D-100 #7) */
@media (hover: hover) and (min-width: 768px) {
  .post-item__thumb { display: none; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 120px; height: 90px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
  .post-item:hover .post-item__thumb { display: block; }
}
.post-title { overflow-wrap: anywhere; margin-bottom: 4px; }
.post-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; overflow-wrap: anywhere; }
.post-content img { max-width: 100%; height: auto; }
.post-content pre { overflow-x: auto; background: #f5f5f5; padding: 8px; border-radius: 4px; }
.post-content table { border-collapse: collapse; display: block; overflow-x: auto; }
.post-content th, .post-content td { border: 1px solid #ddd; padding: 4px 8px; }
.post-content blockquote { margin: 8px 0; padding-left: 12px; border-left: 3px solid #ccc; color: #555; }
.comment-list { list-style: none; padding: 0; margin: 8px 0; }
.comment { background: var(--surface); border: 1px solid #eee; border-radius: var(--radius); padding: 8px 12px; margin-bottom: 6px; }
.comment--reply { margin-left: 24px; background: #fbfbfb; }
.comment__meta { color: var(--muted); font-size: 0.8rem; }
.comment__text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0; }
.comment__deleted { color: #999; font-style: italic; }
.comment__actions button, .link-button { margin: 0 8px 0 0; padding: 0; background: none; color: var(--green-700); font-size: 0.85rem; }
.editor-box { margin-top: 12px; background: #fff; }
.counter { color: var(--muted); font-size: 0.8rem; text-align: right; }
.search-blogs { list-style: none; padding: 0; }
.feed-more { display: block; margin: 12px auto; }

/* 메인 화면 (2026-10-08): 위 검색 띠, 왼쪽 글 피드, 오른쪽 블로그 둘러보기 */
.hero { background: linear-gradient(135deg, var(--green-800), var(--green-600)); color: #fff; }
.hero__inner { max-width: 1120px; margin: 0 auto; padding: 36px 16px 32px; }
.hero h1 { color: #fff; margin: 0 0 6px; font-size: 1.8rem; }
.hero p { margin: 0 0 18px; color: rgba(255,255,255,.88); }
.hero .blog-search { max-width: 640px; }
.hero .blog-search input { border: 0; border-radius: 999px; padding: 12px 18px; }
.hero .blog-search button { margin: 0; border-radius: 999px; background: #fff; color: var(--green-800); padding: 0 22px; }
.hero .blog-search button:hover { background: var(--green-100); }
.hero__actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__actions a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; text-decoration: none; font-size: 0.9rem; }
.hero__actions a:hover { background: rgba(255,255,255,.28); }
main.home { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { main.home { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.panel > h2:first-child { margin-top: 0; }
.panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.panel__head h2 { margin: 0; }
.panel h2 { display: flex; align-items: center; gap: 8px; }
.panel .tabs { margin: 10px 0; }
.panel .post-list, .panel .blog-list { margin: 8px 0 0; }
.panel .post-item, .panel .blog-list li { box-shadow: none; }
.side-stack { display: grid; gap: 16px; }
@media (min-width: 861px) { .side-stack { position: sticky; top: 76px; } }
.side-stack .blog-card__cover { width: 48px; height: 48px; }
.side-stack .blog-card__desc { font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-stack label.inline { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.side-stack label.inline select { width: auto; padding: 4px 8px; }
.cta { background: var(--green-50); border: 1px dashed var(--green-500); border-radius: var(--radius); padding: 16px; }
.cta p { margin: 0 0 10px; color: var(--green-900); }
.cta a.button { display: inline-block; padding: 8px 16px; border-radius: 8px; background: var(--green-700); color: #fff; text-decoration: none; font-weight: 600; }

/* 목록·카드 공통 다듬기 */
.post-item, .blog-list li { transition: border-color .15s, box-shadow .15s; }
.post-item:hover, .blog-list li:hover { border-color: var(--green-500); box-shadow: var(--shadow); }
a.post-item__title, a.blog-card__name { display: block; color: var(--text); text-decoration: none; }
a.post-item__title:hover, a.blog-card__name:hover { color: var(--green-700); text-decoration: underline; }
.pagination button.is-current:disabled { opacity: 1; }
.tabs button { border-radius: 999px; padding: 6px 14px; font-size: 0.92rem; }
.tabs button[aria-selected="true"] { background: var(--green-700); color: #fff; }
.chips li a { text-decoration: none; }
.post-content blockquote { border-left-color: var(--green-500); }

/* 버튼처럼 보이는 링크와 블로그 홈 (2026-10-08) */
a.button { display: inline-block; padding: 9px 18px; border-radius: 8px; background: var(--green-700); color: #fff; text-decoration: none; font-weight: 600; }
a.button:hover { background: var(--green-800); color: #fff; }
a.button-outline, button.button-outline { background: var(--surface); color: var(--green-700); border: 1px solid var(--green-500); }
a.button-outline:hover { background: var(--green-50); color: var(--green-800); }
button.button-quiet { background: transparent; color: var(--muted); border: 1px solid var(--line); }
button.button-quiet:hover:not(:disabled) { background: var(--green-50); color: var(--danger); }
label.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
label.inline select { width: auto; padding: 4px 8px; }
/* 개별 블로그 첫 화면(2026-10-08 꾸밈): 위 띠 + 이름·소개·버튼, 아래는 글 목록과 블로그 정보 두 칸 */
main.blog-page { max-width: 1120px; }
.blog-hero { margin-bottom: 20px; padding: 0; overflow: hidden; }
.blog-hero__banner { position: relative; height: 150px;
  background: linear-gradient(135deg, var(--green-800), var(--green-500)); }
.blog-hero__cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-hero__body { position: relative; padding: 14px 24px 20px; }
.blog-hero h1 { margin: 10px 0 4px; font-size: 1.7rem; }
.blog-hero__desc { margin: 0 0 6px; color: var(--muted); white-space: pre-line; }
.blog-hero__desc:empty { display: none; }
.blog-hero #actions { margin-top: 14px; }
.blog-hero #actions button, .blog-hero #actions a { margin-top: 0; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.blog-layout > .blog-about { position: sticky; top: 76px; }
.blog-about h2 { margin-top: 0; }
.blog-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.blog-meta li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--green-50); color: var(--green-900); }
.blog-meta li::before { content: ""; width: 18px; height: 18px; flex: none; background: center / contain no-repeat; }
.blog-meta .blog-meta__owner::before { background-image: url("/img/icon/crown.svg"); }
.blog-meta .blog-meta__members::before { background-image: url("/img/icon/users.svg"); }
.blog-meta .blog-meta__visibility::before { background-image: url("/img/icon/eye.svg"); }
.blog-meta li:has(> span:empty) { display: none; }
.blog-about .chips { margin-top: 14px; }
.blog-about .chips:empty { display: none; }
#posts .blog-toolbar h2 { margin: 0; }
@media (max-width: 860px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr); }
  .blog-layout > .blog-about { position: static; order: -1; }
  .blog-hero__banner { height: 110px; }
  .blog-hero__body { padding: 0 16px 16px; }
}
#posts .blog-toolbar h2 { margin: 0; }
.post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.post-actions button { margin-top: 0; }
.side-stack .blog-card__desc { margin: 2px 0; }
.side-stack .blog-list__meta { margin: 4px 0 0; }
/* 글 상세는 읽기 좋은 폭으로 (2026-10-08) */
main.reading { max-width: 800px; }
main.reading .post-content { padding: 20px 24px; font-size: 1.02rem; line-height: 1.75; box-shadow: var(--shadow); }
main.reading article > .row { margin: 12px 0; }
main.reading article > .row > * { margin-top: 0; }
@media (max-width: 640px) { main.reading .post-content { padding: 16px; } }

/* 003 종 아이콘·알림 사이드바 (FR-028~FR-033). PC는 오른쪽 360px, 600px 이하는 화면 전체 */
.site-header button.site-header__bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; }
.site-header button.site-header__bell:hover { background: rgba(255,255,255,.25); }
.site-header button.site-header__bell[aria-expanded="true"] { background: #fff; color: var(--green-800); }
.site-header__badge { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 0.7rem; font-weight: 700; line-height: 18px; text-align: center; }
.notif-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 30; width: 360px; max-width: 100%; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -6px 0 24px rgba(43, 58, 15, .15); padding: 16px; overflow-y: auto; }
.notif-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.notif-panel__head h2 { margin: 0; }
.notif-panel__close { margin: 0; padding: 4px 12px; background: var(--green-50); color: var(--green-800); }
.notif-panel__close:hover:not(:disabled) { background: var(--green-100); }
.notif-panel__tabs { margin: 12px 0 8px; gap: 6px; }
.notif-panel__tabs button { padding: 4px 10px; font-size: 0.85rem; }
.notif-panel__actions { justify-content: flex-end; }
.notif-panel__actions button { margin: 0; padding: 4px 12px; font-size: 0.85rem; }
.notif-list { list-style: none; padding: 0; margin: 8px 0 0; }
.notif-list__empty { color: var(--muted); text-align: center; padding: 24px 0; }
.notif-item { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px; border-bottom: 1px solid var(--line); padding: 8px 4px; }
.notif-item.is-unread { background: var(--green-50); border-left: 3px solid var(--green-600); }
.notif-item__main { flex: 1; min-width: 0; margin: 0; padding: 0; background: none; color: var(--text); font-weight: 400; font-size: 0.92rem; text-align: left; }
.notif-item__main:hover:not(:disabled) { background: none; color: var(--green-800); }
.notif-item.is-unread .notif-item__content { font-weight: 600; }
.notif-item__content { display: block; overflow-wrap: anywhere; }
.notif-item__time { display: block; color: var(--muted); font-size: 0.78rem; }
.notif-item__delete { margin: 0; padding: 0 8px; background: none; color: var(--muted); font-size: 1.1rem; line-height: 1.4; }
.notif-item__delete:hover:not(:disabled) { background: none; color: var(--danger); }
.notif-item__detail { flex-basis: 100%; margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 600px) { .notif-panel { width: 100%; border-left: 0; } }

/* 003 프로필·팔로워 목록·신고 창·알림 설정·차단 목록 */
.profile-card { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; border-top: 4px solid var(--green-600); }
.profile-card__avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.profile-card__avatar--empty { background: linear-gradient(135deg, var(--green-500), #a7e3bf); }
.profile-card__body { flex: 1; min-width: 0; }
.profile-card__body h1 { margin: 0 0 6px; overflow-wrap: anywhere; }
.profile-card__bio { margin: 0 0 8px; white-space: pre-line; overflow-wrap: anywhere; }
.profile-card #actions button, .profile-card #actions a { margin-top: 0; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
@media (max-width: 640px) { .profile-grid { grid-template-columns: minmax(0, 1fr); } }
.user-list { list-style: none; padding: 0; margin: 8px 0; }
.user-item { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.user-item__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.user-item__avatar--empty { display: inline-block; background: var(--green-100); }
.user-item__name { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.user-item__meta { color: var(--muted); font-size: 0.85rem; margin-left: auto; white-space: nowrap; }
.user-item button { margin: 0 0 0 8px; padding: 4px 12px; font-size: 0.85rem; }
a.author-link { color: inherit; }
.report-dialog { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(43, 58, 15, .35); }
.report-dialog__box { width: 100%; max-width: 440px; max-height: 100%; overflow-y: auto; }
.report-dialog__reasons { border: 1px solid var(--line); border-radius: 8px; margin: 12px 0 0; padding: 8px 12px; }
.report-dialog__reasons legend { font-weight: 600; padding: 0 4px; }
.report-dialog__reason { display: flex; margin: 4px 0; color: var(--text); }
.settings-list { list-style: none; padding: 0; margin: 8px 0; }
.settings-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.settings-list label.inline { color: var(--text); font-size: 0.95rem; }

/* 글 상세(2026-10-08 꾸밈): 글을 한 장의 카드로, 위에 나뭇잎 띠, 아래 버튼 줄, 댓글은 따로 카드 */
main.post-page { max-width: 1040px; }
.post-back { margin: 0 0 14px; }
.post-back a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--green-800); font-weight: 600; text-decoration: none; font-size: 0.92rem; }
.post-back a::before { content: ""; width: 16px; height: 16px; background: url("/img/icon/arrow-left.svg") center / contain no-repeat; }
.post-back a:hover { border-color: var(--green-500); }
.post-back a:empty { display: none; }
.post-page .post-card { padding: 0; overflow: hidden; }
.post-card__head { position: relative; padding: 36px 40px 22px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--green-50), var(--surface)); }
.post-card__head::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--green-700), var(--green-500)); }
.post-page .post-title { margin: 0 0 10px; font-size: 2.2rem; padding-right: 60px; }
.post-card__meta { margin: 0; }
.post-card__meta a { color: var(--green-800); font-weight: 600; }
main.post-page .post-content { margin: 0; padding: 32px 40px 36px; border: 0; border-radius: 0; box-shadow: none; min-height: 280px; font-size: 1.1rem; line-height: 1.85; }
.post-page .post-card > .chips { margin: 0; padding: 0 40px 20px; }
.post-page .post-card > .chips:empty { display: none; }
.post-page .post-card__actions { margin: 0; padding: 16px 40px; border-top: 1px solid var(--line); background: var(--green-50); }
.post-card__spacer { flex: 1; }
.post-page .post-card > .message:empty { display: none; }
.post-page .post-card > .message { margin: 0; padding: 0 40px 14px; }
.like-button { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 16px; background: var(--surface); color: var(--green-800); border: 1px solid var(--green-500); }
.like-button::before { content: ""; width: 16px; height: 16px; background: url("/img/icon/heart.svg") center / contain no-repeat; }
.like-button[aria-pressed="true"] { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.like-button[aria-pressed="true"]::before { background-image: url("/img/icon/heart-filled.svg"); }
.post-page .comments-card { margin: 24px auto 0; max-width: 760px; padding: 16px 18px; font-size: 0.95rem; }
.comments-card h2 { font-size: 1.05rem; }
.comments-card h2 { margin-top: 0; display: flex; align-items: center; gap: 8px; }
.count-badge { display: inline-block; min-width: 26px; padding: 1px 8px; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-size: 0.85rem; text-align: center; }
.comment-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.comment-form__foot button { margin: 0; }
.comment-form__foot .counter { margin: 0; }
.post-page .comment { border-color: var(--line); padding: 10px 14px; }
.post-page .comment--reply { background: var(--green-50); border-left: 3px solid var(--green-500); }
@media (max-width: 600px) {
  .post-card__head { padding: 22px 16px 14px; }
  .post-page .post-title { font-size: 1.5rem; padding-right: 40px; }
  .post-card__head { background-size: 80px; background-position: right -16px top -20px, 0 0; }
  main.post-page .post-content { padding: 18px 16px; }
  .post-page .post-card > .chips, .post-page .post-card > .message { padding-left: 16px; padding-right: 16px; }
  .post-page .post-card__actions { padding: 12px 16px; }
  .post-card__spacer { display: none; }
}


/* 005 관리자 화면 (T009, SC-010): 같은 초록 틀(.panel, .tabs)을 쓰고, 표는 좁은 화면에서 카드로 바뀐다 */
main.admin { max-width: 1120px; }
main.admin > .panel { margin-top: 12px; }
.admin-filter { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.admin-filter > div { min-width: 140px; }
.admin-filter label { margin-top: 0; font-size: 0.875rem; }
.admin-filter input[type="date"] { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.admin-filter button { margin-top: 0; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 12px; background: var(--surface); font-size: 0.925rem; }
.admin-table th, .admin-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.admin-table th { background: var(--green-50); color: var(--green-900); font-size: 0.85rem; white-space: nowrap; }
.admin-table tr.is-clickable { cursor: pointer; }
.admin-table tr.is-clickable:hover, .admin-table tr.is-clickable:focus { background: var(--green-50); outline: none; }
.admin-detail { margin-top: 16px; padding-top: 12px; border-top: 2px solid var(--green-100); }
.admin-detail h3 { margin: 16px 0 6px; font-size: 1.05rem; }
.admin-detail .row button, .admin-actions button { margin-top: 0; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.admin-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 8px 0; }
.admin-dl dt { color: var(--muted); font-size: 0.875rem; }
.admin-dl dd { margin: 0; overflow-wrap: anywhere; }
.admin-pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--green-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; max-height: 320px; overflow: auto; margin: 8px 0; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 8px 0 16px; }
.stat-card { background: var(--green-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat-card__label { color: var(--muted); font-size: 0.875rem; }
.stat-card__value { color: var(--green-800); font-size: 1.9rem; font-weight: 800; }
.status-chip { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.status-chip--warn { background: var(--accent-warm); color: #8a5a00; }
.status-chip--danger { background: #fdecea; color: var(--danger); }
button.button-small { margin-top: 0; padding: 5px 12px; font-size: 0.875rem; }
button.button-danger { background: var(--danger); }
button.button-danger:hover:not(:disabled) { background: #9e2f23; }
button.button-light { background: var(--green-50); color: var(--green-800); border: 1px solid var(--line); }
button.button-light:hover:not(:disabled) { background: var(--green-100); }
.admin-hidden-note { color: var(--danger); font-weight: 600; }
@media (max-width: 720px) {
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table { background: transparent; }
  .admin-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; padding: 6px 12px; }
  .admin-table td { border: 0; padding: 3px 0; }
  .admin-table td::before { content: attr(data-label); display: inline-block; min-width: 6.5em; margin-right: 8px; color: var(--muted); font-size: 0.8rem; }
  .admin-filter > div { flex: 1 1 100%; }
  .admin-dl { grid-template-columns: minmax(0, 1fr); }
  .admin-dl dd { margin-bottom: 6px; }
}

/* 밝은 버튼은 마우스를 올려도 글자가 보이게(기본 button:hover는 짙은 초록 배경이라 글자색이 같아져 안 보였다) */
.tabs button:hover:not(:disabled):not([aria-selected="true"]),
.pagination button:hover:not(:disabled):not(.is-current) { background: var(--green-100); color: var(--green-900); }
.tabs button[aria-selected="true"]:hover, .pagination button.is-current:hover { background: var(--green-800); color: #fff; }
button.button-outline:hover:not(:disabled) { background: var(--green-50); color: var(--green-800); }
.like-button:hover:not(:disabled):not([aria-pressed="true"]) { background: var(--green-50); color: var(--green-800); }
.like-button[aria-pressed="true"]:hover { background: var(--green-800); color: #fff; }
.comment__actions button:hover:not(:disabled), .link-button:hover:not(:disabled) { background: none; color: var(--green-900); text-decoration: underline; }

/* 진한 메뉴 + 색 띠 모양(2026-10-12). 색은 처음 초록 */
.site-header { background: var(--green-800); color: #fff; border-bottom: 3px solid var(--green-500); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.site-header a { color: #fff; }
.site-header__search input[type="search"] { background: rgba(255,255,255,.14); color: #fff; }
.site-header__search input[type="search"]::placeholder { color: rgba(255,255,255,.7); }
.site-header button { border-color: rgba(255,255,255,.5); color: #fff; }
.site-header button.site-header__nickname { background: rgba(255,255,255,.14); color: #fff; }
.site-header button.site-header__nickname[aria-expanded="true"] { background: #fff; color: var(--green-800); }
.site-header button.site-header__bell { background: rgba(255,255,255,.14); color: #fff; }
.site-header button.site-header__bell:hover { background: rgba(255,255,255,.28); }
.site-header .button-light { background: #fff; color: var(--green-800); }
.site-header .button-light:hover { background: var(--green-100); }

/* 띠는 메뉴보다 한 톤 밝게, 그림 없이 색만(2026-10-12) */
.hero { background: linear-gradient(120deg, var(--green-800) 0%, var(--green-600) 55%, var(--green-500) 100%); color: #fff; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.88); }
.hero .blog-search input { box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.hero__actions a { background: rgba(255,255,255,.16); color: #fff; }
.hero__actions a:hover { background: rgba(255,255,255,.28); }
.blog-hero__banner { background: linear-gradient(120deg, var(--green-800), var(--green-600) 55%, var(--green-500)); }
.post-card__head::before { background: linear-gradient(90deg, var(--green-500), var(--sky-500)); }

/* 하늘색은 태그·배지·답글·알림처럼 "곁들이는" 곳에 쓴다 */
.badge { background: var(--sky-100); color: var(--sky-800); }
.blog-card__tags .tag { color: var(--sky-700); }
.chips li { background: var(--sky-100); }
.chips li a { color: var(--sky-800); }
.post-item:hover, .blog-list li:hover { border-color: var(--sky-500); }
.post-page .comment--reply { background: var(--sky-50); border-left-color: var(--sky-500); }
.notif-item.is-unread { background: var(--sky-50); border-left-color: var(--sky-500); }
.post-content blockquote { border-left-color: var(--sky-500); background: var(--sky-50); }
.cta { border-color: var(--sky-500); background-color: var(--sky-50); }
input:focus, select:focus, textarea:focus { outline-color: var(--sky-500); border-color: var(--sky-500); }

/* 버튼(2026-10-12): 연두 바탕 + 진한 글자, 둥근 모양. 마우스를 올리면 조금 진해진다 */
button, a.button, .cta a.button { background: var(--btn); color: var(--btn-text); border-radius: 999px; font-weight: 700;
  box-shadow: 0 1px 0 rgba(48,59,10,.12); transition: background .15s, box-shadow .15s, transform .05s; }
button:hover:not(:disabled), a.button:hover { background: var(--btn-hover); color: var(--btn-text); box-shadow: 0 2px 6px rgba(48,59,10,.18); }
button:active:not(:disabled), a.button:active { transform: translateY(1px); }
a.button-outline, button.button-outline { background: var(--surface); color: var(--green-800); border: 1.5px solid var(--btn); box-shadow: none; }
a.button-outline:hover, button.button-outline:hover:not(:disabled) { background: var(--sky-50); color: var(--green-900); border-color: var(--sky-500); }
.site-header .button-light { background: var(--green-800); color: #fff; }
.tabs button, .pagination button { border-radius: 999px; box-shadow: none; }
.tabs button[aria-selected="true"], .pager button[aria-current="page"], .pagination button.is-current { background: var(--btn); color: var(--btn-text); }
.tabs button[aria-selected="true"]:hover, .pagination button.is-current:hover { background: var(--btn-hover); color: var(--btn-text); }
.like-button { box-shadow: none; }
.like-button[aria-pressed="true"] { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.like-button[aria-pressed="true"]:hover { background: var(--btn-hover); color: var(--btn-text); }
.site-header button, .comment__actions button, .link-button, .chips button, .profile-menu__list button { box-shadow: none; }
button.button-danger, button.button-danger:hover:not(:disabled) { color: #fff; }
