/*
 * One Blog 화면 규칙. 분위기: 밝고 친근한 동네 블로그 모임.
 * - 바탕은 옅은 세이지, 글씨와 링크는 짙은 잉크색(검정 기반), 누르는 버튼도 잉크색
 * - 햇살 노랑은 "선택됨·지금 여기"(탭, 정렬, 페이지 번호, 메뉴의 현재 화면)에만 쓴다 (D-104)
 * - 블로그마다 정해진 파스텔 색(tile-0~5)은 블로그 이름표로만 쓴다
 * - 제목은 둥근 손글씨 느낌의 Jua, 본문은 IBM Plex Sans KR
 * - 모양: 버튼·탭·태그는 알약, 블로그 표지는 크게 둥근 사각, 입력칸은 살짝 둥근 사각. 그림자는 쓰지 않는다
 */
@import url("/css/fonts.css");

:root {
  --bg: #f2f5f3;
  --surface: #ffffff;
  --text: #1f2430;
  --muted: #5f6878;
  --line: #dfe5e1;
  --sun: #ffcf3f;
  --sun-strong: #f2b705;
  --sun-soft: #fff4cc;
  --accent: #1f2430;
  --accent-text: #ffffff;
  --link: var(--text);
  --ink-hover: #3a4252;
  --error: #c43d3d;
  --ok: #1d7f55;
  --tile-0: #ffe7a3;
  --tile-1: #c9ebda;
  --tile-2: #d5e3ff;
  --tile-3: #ffd8cc;
  --tile-4: #e6dafa;
  --tile-5: #cfeff5;
  --radius-tile: 22px;
  /* 폭: 로그인·가입 양식 / 글 읽기·쓰기·내 정보 / 목록 화면. 좌우 여백은 화면 폭에 따라 16~32px */
  --w-form: 440px;
  --w-medium: 760px;
  --w-wide: 1080px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius-panel: 18px;
  --radius-field: 12px;
  --font-display: "Jua", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-body: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* 한글은 낱말 중간에서 줄을 바꾸지 않는다. 띄어쓰기 없는 긴 주소·영문만 칸 끝에서 끊는다 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

/* 지금 여기: 선택된 탭·정렬·페이지·메뉴는 노랑으로만 표시한다 (D-104) */
[aria-current="page"],
[aria-pressed="true"],
[aria-selected="true"] {
  --here: var(--sun);
}

:focus-visible {
  outline: 3px solid var(--sun-strong);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

.tile-0 { --tile: var(--tile-0); }
.tile-1 { --tile: var(--tile-1); }
.tile-2 { --tile: var(--tile-2); }
.tile-3 { --tile: var(--tile-3); }
.tile-4 { --tile: var(--tile-4); }
.tile-5 { --tile: var(--tile-5); }

/* ── 상단 ─────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 8px max(var(--gutter), calc((100% - var(--w-wide)) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header .logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text);
  text-decoration: none;
}

/* 로고 앞의 햇살 동그라미 */
.site-header .logo::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 4px var(--sun-soft);
}

#header-user {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 14px;
}

#header-user a,
#header-user .link-button {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text);
}

#header-user a:hover,
#header-user .link-button:hover {
  background: var(--bg);
}

/* 비회원은 "로그인" 버튼 하나 (D-101) */
#header-user a.header-login {
  background: var(--text);
  color: var(--surface);
  font-weight: 600;
  text-decoration: none;
  padding: 7px 18px;
}

#header-user a.header-login:hover {
  background: var(--ink-hover);
}

#header-user a {
  text-decoration: none;
}

#header-user a[aria-current="page"] {
  background: var(--here);
  color: var(--text);
  font-weight: 600;
}

.link-button {
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.nickname {
  padding: 6px 12px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

/* ── 틀 ───────────────────────────────────────────── */

main {
  width: 100%;
  max-width: calc(var(--w-form) + 2 * var(--gutter));
  margin: 36px auto 64px;
  padding: 0 var(--gutter);
}

main.medium {
  max-width: calc(var(--w-medium) + 2 * var(--gutter));
}

main.wide {
  max-width: calc(var(--w-wide) + 2 * var(--gutter));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 32px;
}

.card + .card {
  margin-top: 20px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 30px;
  margin: 0 0 10px;
}

h2 {
  font-size: 22px;
  margin: 28px 0 12px;
}

h3 {
  font-size: 18px;
  margin: 20px 0 8px;
}

.card > h1:first-child,
.card > h2:first-child {
  margin-top: 0;
}

.steps {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}

.steps li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
}

.steps li.active {
  background: var(--sun);
  color: var(--text);
  font-weight: 600;
}

/* ── 입력 ─────────────────────────────────────────── */

label {
  display: block;
  margin: 16px 0 6px;
  font-size: 14px;
  font-weight: 600;
}

input[type="email"],
input[type="text"],
input[type="password"],
input[type="tel"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-field);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--text);
  outline: none;
  box-shadow: 0 0 0 3px var(--sun-soft);
}

.row {
  display: flex;
  gap: 8px;
}

.row input {
  flex: 1;
  min-width: 0;
}

.row > * {
  min-width: 0;
}

.row > button,
.row > .button-link {
  flex-shrink: 0;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-weight: 400;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--text);
  flex-shrink: 0;
}

input,
textarea,
select {
  max-width: 100%;
}

input[type="file"] {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--muted);
}

input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 7px 14px;
  border: 1.5px solid var(--text);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* 라디오·체크 옆 긴 설명은 단추 옆에서 줄을 맞춘다 */
.checkbox {
  align-items: flex-start;
}

.checkbox input {
  margin-top: 5px;
}

/* ── 버튼: 누르는 일은 노란 알약, 그다음 일은 테두리 알약 ── */

button.primary,
button.secondary,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

button.primary,
.button-link {
  background: var(--text);
  color: var(--surface);
  border: 1.5px solid var(--text);
}

button.primary:hover,
.button-link:hover {
  background: var(--ink-hover);
  border-color: var(--ink-hover);
}

button.primary.danger {
  background: var(--error);
  border-color: var(--error);
}

button.primary {
  width: 100%;
  margin-top: 22px;
}

button.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--text);
}

button.secondary:hover {
  background: var(--bg);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── 안내 글 ──────────────────────────────────────── */

.hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.message {
  min-height: 20px;
  margin: 8px 0 0;
  font-size: 14px;
}

/* 비어 있는 안내·오류 칸은 자리를 차지하지 않는다 (양식 사이가 벌어지지 않게) */
.message:empty {
  min-height: 0;
  margin: 0;
}

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

.message.ok {
  color: var(--ok);
}

/* 숨김은 어떤 표시 규칙보다 우선한다 (단추의 inline-flex가 숨김을 이겨 빈 검은 막대로 보이던 문제) */
.hidden {
  display: none !important;
}

.footer-links {
  margin-top: 18px;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 600px) {
  main {
    margin: 16px auto 48px;
  }

  .card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  h1 {
    font-size: 25px;
  }

  h2 {
    font-size: 20px;
  }
}

/* ── 블로그 (002) ───────────────────────────────────── */

select {
  width: auto;
  margin-left: 6px;
  padding: 7px 12px;
  border-radius: 999px;
}

fieldset {
  margin: 18px 0 0;
  padding: 0;
  border: none;
}

legend {
  font-size: 14px;
  font-weight: 600;
}

.required {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--error);
}

.hint-inline {
  font-weight: 400;
  color: var(--muted);
}

.prefix {
  align-self: center;
  color: var(--muted);
  font-size: 15px;
}

label.inline {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-weight: 400;
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.list-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 8px;
  font-size: 14px;
}

/* 고르기 단추(정렬·범위)와 탭은 같은 알약 모양: 고른 것만 노랑으로 채운다 (D-104) */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg);
}

.segmented button {
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.segmented button[aria-pressed="true"] {
  background: var(--here);
  color: var(--text);
  font-weight: 600;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 20px;
}

.blog-grid > * {
  min-width: 0;
}

/* 휴대폰에서는 두 줄로 (블로그·커뮤니티 앱처럼 한 화면에 여러 개) */
@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .blog-card {
    padding: 8px 8px 12px;
    border-radius: 18px;
    gap: 8px;
  }

  .blog-cover {
    border-radius: 12px;
  }

  .blog-card-body {
    padding: 0 4px;
  }

  .blog-name {
    font-size: 17px;
  }

  .blog-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
  }

  .blog-card .tag-list {
    display: none;
  }
}

/* 블로그 이름표: 블로그마다 정해진 색 위에 표지와 이름 */
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 10px 16px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-tile);
  background: var(--tile, var(--tile-0));
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.blog-card:hover,
.blog-card:focus-visible {
  border-color: var(--text);
  transform: rotate(-0.6deg);
}

.blog-cover {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius-tile) - 8px);
  background: var(--surface);
}

/* 대표 이미지가 없는 블로그: 흰 바탕에 블로그 색 첫 글자 */
.cover-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--tile) 35%, var(--surface));
}

.cover-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tile);
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1;
  color: var(--text);
}

.blog-card-body {
  padding: 0 6px;
}

.blog-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.blog-description {
  margin: 4px 0 0;
  font-size: 14px;
  color: color-mix(in srgb, var(--text) 75%, transparent);
  overflow-wrap: anywhere;
}

.blog-meta {
  margin: 6px 0 0;
  font-size: 13px;
  color: color-mix(in srgb, var(--text) 68%, transparent);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text);
  font-size: 12px;
  overflow-wrap: anywhere;
}

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

.post-item .tag {
  background: var(--bg);
}

.tag-list.editable {
  margin-bottom: 8px;
}

.tag-remove {
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  font-size: 13px;
}

.cover-picker {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cover-picker > div {
  flex: 1;
  min-width: 0;
}

.cover-picker .blog-cover {
  width: 160px;
  flex-shrink: 0;
  border-radius: var(--radius-field);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
}

.pagination button {
  min-width: 38px;
  padding: 6px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.pagination button:hover:not(:disabled) {
  background: var(--bg);
}

.pagination button[aria-current="page"] {
  background: var(--here);
  color: var(--text);
  font-weight: 600;
}

.blog-hero {
  display: block;
  width: 100%;
  height: clamp(120px, 22vw, 220px);
  object-fit: cover;
  border-radius: var(--radius-tile);
  margin-bottom: 20px;
  background: var(--bg);
}

.blog-hero.cover-tile {
  display: flex;
  background: var(--tile);
}

.blog-hero .cover-initial {
  width: auto;
  height: 64%;
  background: rgba(255, 255, 255, 0.55);
  font-size: clamp(40px, 7vw, 72px);
}

/* 블로그 첫 화면의 관리·구독 단추는 한 줄에 */
.blog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 16px 0 4px;
}

.blog-actions .row {
  align-items: center;
  flex-wrap: wrap;
}

.blog-actions .row.hidden {
  display: none;
}

.blog-actions button.inline-button {
  margin-top: 0;
}

.blog-description-full {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.share-area {
  margin: 16px 0;
  padding: 12px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-field);
}

@media (max-width: 480px) {
  .cover-picker {
    flex-direction: column;
  }

  .cover-picker .blog-cover {
    width: 100%;
  }
}

/* 좁은 화면에서 상단 메뉴가 글자 단위로 끊기지 않게 */
.site-header .logo,
#header-user a,
#header-user .nickname,
#header-user .link-button {
  white-space: nowrap;
}

#header-user {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

/* 닉네임이 길면 줄여서 보여 주고, 아주 좁은 화면에서는 사진 메뉴만 */
#header-user .nickname {
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 420px) {
  #header-user .nickname {
    display: none;
  }
}

/* ── 참여 신청 (003) ───────────────────────────────── */

.join-area,
.manage-area {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-field);
}

button.primary.inline-button {
  width: auto;
  margin-top: 4px;
}

.count {
  font-size: 14px;
  color: var(--muted);
}

.request-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.request-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.request-name {
  flex: 1;
  overflow-wrap: anywhere;
}

/* ── 글 (004) ──────────────────────────────────────── */

.post-area {
  margin-top: 24px;
}

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.post-list.notices .post-item {
  padding: 10px 14px;
  border-bottom: none;
  border-radius: var(--radius-field);
  background: var(--bg);
  margin-bottom: 6px;
}

.post-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.post-link:hover .post-title {
  text-decoration: underline;
}

.badge {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  font-size: 12px;
  font-weight: 600;
}

.post-meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.post-body {
  margin: 20px 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.post-body img {
  max-width: 100%;
  height: auto;
}

.post-body pre {
  padding: 14px 16px;
  overflow-x: auto;
  background: var(--bg);
  border-radius: var(--radius-field);
}

.post-body table {
  border-collapse: collapse;
}

.post-body th,
.post-body td {
  padding: 6px 10px;
  border: 1px solid var(--line);
}

.post-body blockquote {
  margin: 0;
  padding-left: 14px;
  border-left: 4px solid var(--line);
  color: var(--muted);
}

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

.link-button.danger {
  color: var(--error);
}

.editor {
  margin-bottom: 8px;
}

.editor-fallback {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}

.session-warning {
  margin: 8px 0;
  padding: 10px 16px;
  border-radius: var(--radius-field);
  background: var(--sun-soft);
  color: var(--text);
}

/* ── 댓글 (006) ────────────────────────────────────── */

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.comment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.comment-list.replies {
  margin-left: 20px;
  border-left: 2px solid var(--line);
  padding-left: 12px;
}

.comment-head,
.comment-body {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

.comment-date,
.comment-edited {
  font-size: 12px;
  color: var(--muted);
}

.comment-deleted {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

.mention {
  color: var(--text);
  font-weight: 600;
}

.comment-actions {
  display: flex;
  gap: 10px;
  font-size: 13px;
}

/* ── 관리자·공지 (007) ─────────────────────────────── */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 16px;
}

.tabs button {
  padding: 7px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}

.tabs button:hover {
  border-color: var(--text);
}

.tabs button[aria-selected="true"] {
  border-color: var(--here);
  background: var(--here);
  color: var(--text);
  font-weight: 600;
}

.search-row {
  margin: 8px 0;
}

.notice-form {
  margin: 8px 0 16px;
}

.admin-content {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.admin-table td span {
  display: inline-flex;
  gap: 8px;
}

.notice-strip {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
}

.notice-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-strip a {
  color: var(--text);
}

/* 008 카테고리 */
.category-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
}

.category-nav {
  flex-wrap: wrap;
}

#category-edit-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

#category-edit-list input {
  flex: 1 1 160px;
  min-width: 0;
}

/* 009 프로필·내 정보 */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar.large {
  width: 88px;
  height: 88px;
}

.profile-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.profile-counts {
  display: flex;
  gap: 12px;
}

.user-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.account-fixed {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
}

.account-fixed dd {
  margin: 0;
  overflow-wrap: anywhere;
}

#password-form {
  margin-top: 24px;
}

/* 010 검색·피드 */
form.search-row {
  margin-bottom: 16px;
}

form.search-row input {
  flex: 1 1 200px;
  min-width: 0;
}

.recent-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.tabs button.hidden {
  display: none;
}

/* 011 알림 */
.bell {
  position: relative;
}

.bell-badge {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--error);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.notification-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 100vw);
  overflow-y: auto;
  padding: 16px;
  background: var(--surface);
  border-left: 1.5px solid var(--text);
  z-index: 50;
}

.notification-panel.hidden {
  display: none;
}

.notification-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.notification-head strong {
  margin-right: auto;
}

.notification-list {
  list-style: none;
  margin: 8px 0;
  padding: 0;
}

.notification {
  border-bottom: 1px solid var(--line);
}

.notification-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 6px;
  color: var(--muted);
  text-decoration: none;
}

.notification.unread .notification-body {
  color: inherit;
  background: var(--sun-soft);
  font-weight: 600;
}

.notification-date {
  font-size: 12px;
  font-weight: 400;
}

#notification-settings {
  margin-top: 24px;
}

/* 012 블로그 관리 */
.manage-block {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.table-scroll {
  overflow-x: auto;
}

.danger-button {
  color: var(--error);
  border-color: var(--error);
}

#withdraw-form {
  margin-top: 24px;
}

/* 013 신고 창 */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: color-mix(in srgb, var(--text) 40%, transparent);
  z-index: 60;
}

.modal {
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
}

.modal textarea {
  width: 100%;
}

/* ── 메인 (UI 1단계) ───────────────────────────────── */

/* 첫 화면: 카드 없이 바탕 위에 인사와 검색창만 */
.home-hero {
  padding: 28px 4px 32px;
}

.hero-hello {
  margin: 0 0 6px;
  color: var(--muted);
  font-weight: 600;
}

.hero-title {
  max-width: 16em;
  margin: 0 0 22px;
  font-size: clamp(32px, 5.2vw, 52px);
  line-height: 1.18;
  word-break: keep-all;
}

.home-blogs {
  margin-top: 36px;
}

.home-blogs .list-header h2 {
  margin: 0;
}

@media (max-width: 560px) {
  .home-hero {
    padding: 12px 0 24px;
  }

}

/* ── 상단 메뉴: 알림·닉네임·프로필 사진 (D-101) ───────── */

.bell {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 999px;
}

.bell:hover {
  background: var(--bg);
}

.bell-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-menu {
  position: relative;
}

.avatar-button {
  display: inline-flex;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.avatar-button:hover,
.avatar-button.open {
  border-color: var(--text);
}

.avatar-button .avatar {
  width: 34px;
  height: 34px;
  background: var(--bg);
}

.profile-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 45;
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1.5px solid var(--text);
  border-radius: var(--radius-field);
}

.profile-menu-list.hidden {
  display: none;
}

#header-user .profile-menu-list a,
#header-user .profile-menu-list .link-button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  text-align: left;
  font-size: 15px;
}

/* 로그아웃은 메뉴 맨 아래, 선 하나로 나눈다 */
.profile-menu-list li:last-child {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

/* ── 메인 전환과 내 블로그 (D-100) ─────────────────── */

.view-switch {
  display: flex;
  width: fit-content;
  gap: 4px;
  margin: 0 auto 24px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.view-switch.hidden {
  display: none;
}

.view-switch button {
  padding: 9px 20px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.view-switch button:hover {
  background: var(--bg);
}

.view-switch button[aria-pressed="true"] {
  background: var(--here);
  font-weight: 600;
}

.text-link {
  font-size: 14px;
  color: var(--text);
}

.home-view .list-header {
  margin-bottom: 18px;
}

.home-view .list-header h1 {
  margin: 0;
}

.blog-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 22px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-icons.hidden {
  display: none;
}

.blog-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-radius: var(--radius-field);
  color: var(--text);
  text-align: center;
  text-decoration: none;
}

.blog-icon-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 24px;
  border: 2px solid transparent;
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.blog-icon-cover.cover-tile {
  background: var(--tile);
}

.blog-icon-cover .cover-initial {
  width: auto;
  aspect-ratio: auto;
  background: none;
  font-size: 38px;
}

.blog-icon:hover .blog-icon-cover,
.blog-icon:focus-visible .blog-icon-cover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.blog-icon-name {
  max-width: 100%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-icon-role {
  margin-top: -4px;
  font-size: 12px;
  color: var(--muted);
}

.blog-icon-plus {
  border: 2px dashed var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 36px;
  line-height: 1;
}

.blog-icon.create .blog-icon-name {
  color: var(--muted);
  font-weight: 400;
}

.home-empty {
  padding: 28px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
}

.home-empty p {
  margin: 0 0 16px;
}

.home-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── 내 정보·탈퇴 (D-102, D-103) ───────────────────── */

.profile-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 20px;
}

.profile-summary-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  overflow-wrap: anywhere;
}

.profile-summary-bio {
  margin: 2px 0 0;
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.account-fixed dt {
  color: var(--muted);
  font-size: 14px;
}

.back-link {
  display: block;
  width: 100%;
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
}

button.secondary.edit-done {
  width: 100%;
  margin-top: 28px;
}

.withdraw-link {
  margin: 40px 0 0;
  text-align: center;
  font-size: 12px;
}

.withdraw-link a {
  color: var(--error);
}

.withdraw-notes {
  margin: 8px 0 16px;
  padding-left: 20px;
  color: var(--text);
}

.withdraw-notes li + li {
  margin-top: 4px;
}

.withdraw-blocked {
  padding: 12px 16px;
  border: 1.5px solid var(--error);
  border-radius: var(--radius-field);
  color: var(--error);
}

.withdraw-blocked p {
  margin: 0 0 6px;
}

@media (max-width: 560px) {
  .blog-icons {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  }

  .blog-icon-cover {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }

  .view-switch:not(.hidden) {
    display: flex;
  }

  .view-switch button {
    flex: 1;
  }
}

/* ── 휴대폰 화면 다듬기 ───────────────────────────── */
@media (max-width: 600px) {
  /* 탭이 많으면 줄을 바꾸지 않고 옆으로 밀어서 본다 (커뮤니티 앱의 탭 줄처럼) */
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-left: -2px;
    padding: 2px;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tabs button {
    flex-shrink: 0;
  }

  .blog-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-hero {
    padding-top: 4px;
  }

  .list-header .button-link {
    padding: 8px 14px;
    font-size: 14px;
  }
}

#profile-remove {
  margin-top: 6px;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── 바로가기 (관리자 화면 → 글·댓글 위치) ─────────────── */
.goto-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.goto-link:hover {
  background: var(--bg);
}

/* 바로가기로 온 댓글: 형광 노랑 배경과 테두리로 강조 (D-104, D-108) */
.comment.comment-target {
  margin: 4px -12px;
  padding: 10px 12px;
  border: 2px solid #f5c400;
  border-radius: var(--radius-field);
  background: #fff68f;
}

.comment.comment-target:focus {
  outline: none;
}

/* 관리자 열람 안내 (D-106) */
.admin-view {
  margin: 0 0 16px;
  padding: 10px 16px;
  border: 1.5px dashed var(--text);
  border-radius: var(--radius-field);
  font-size: 14px;
}

.badge.muted {
  margin-left: 6px;
  background: var(--bg);
  color: var(--muted);
}

.comment.is-hidden .comment-body {
  color: var(--muted);
}

/* ── 아이콘 단추와 이름표 (D-108) ─────────────────── */
button.icon-button,
a.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

button.icon-button:hover,
a.icon-button:hover {
  background: var(--bg);
}

.icon-button.danger {
  color: var(--error);
}

.icon-button .icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 마우스를 올리거나 키보드로 가면 이름이 뜬다 */
[data-tip] {
  position: relative;
}

[data-tip]:hover::after,
[data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--text);
  color: var(--surface);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
}

/* 창 오른쪽 끝·왼쪽 끝의 단추는 이름표가 창 밖으로 나가지 않게 */
.tip-end[data-tip]:hover::after,
.tip-end[data-tip]:focus-visible::after {
  left: auto;
  right: 0;
  transform: none;
}

.tip-start[data-tip]:hover::after,
.tip-start[data-tip]:focus-visible::after {
  left: 0;
  transform: none;
}

.comment-actions {
  align-items: center;
  gap: 2px;
}

.comment-actions .icon-button {
  width: 32px;
  height: 32px;
}

.comment-actions .icon-button .icon {
  width: 18px;
  height: 18px;
}

/* ── 알림 창: 목록과 자세히 보기 (D-107) ─────────────── */
.notification-head .icon-button {
  width: 34px;
  height: 34px;
}

.notification-head strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
}

.notification-body {
  width: 100%;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
}

.notification-body:hover {
  background: var(--bg);
}

.notification-message {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-detail {
  padding-top: 4px;
}

.notification-type {
  margin: 12px 0 4px;
  font-size: 13px;
  color: var(--muted);
}

.notification-detail-message {
  margin: 0 0 4px;
  font-weight: 600;
}

.notification-reason {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: var(--radius-field);
  background: var(--bg);
  white-space: pre-line;
}

.notification-go {
  margin-top: 6px;
}

input[readonly] {
  background: var(--bg);
  color: var(--muted);
  cursor: default;
}

input[readonly]:focus {
  border-color: var(--line);
  box-shadow: none;
}

/* 설정: 알림 종류는 두 줄(2열)로, 그 아래 보관 기간 */
#notification-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 20px;
  margin-top: 12px;
}

#notification-types .checkbox {
  margin: 6px 0;
}

@media (max-width: 380px) {
  #notification-types {
    grid-template-columns: 1fr;
  }
}

/* ── 블로그 첫 화면 구성 (D-111): 짧은 머리 → 글 → (블로그장) 참여 신청 → 맨 아래 작은 운영 링크 ── */
#blog-home > .card + .card,
#blog-home > .card + .share-area {
  margin-top: 20px;
}

.blog-head .blog-hero {
  height: clamp(96px, 16vw, 168px);
  margin-bottom: 18px;
}

.blog-head h1 {
  margin-bottom: 4px;
}

.blog-head .blog-description-full {
  margin: 10px 0 0;
}

.blog-head .blog-actions {
  margin-top: 18px;
}

.blog-head #join-text:empty {
  display: none;
}

.blog-head #join-text {
  margin-top: 10px;
}

.post-area .list-header h2 {
  margin: 0;
}

.blog-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 18px;
  margin: 32px 0 8px;
}

.blog-footer .link-button {
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-footer #leave-button {
  color: var(--error);
}

.blog-footer .message {
  flex-basis: 100%;
  text-align: center;
}

/* 메인 "참여 신청" 탭 (D-111) */
.requests-view h1 {
  margin-bottom: 4px;
}

.my-request-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}

.my-request-list:empty {
  display: none;
}

.my-request {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}

.my-request + .my-request {
  border-top: 1px solid var(--line);
}

.my-request-blog {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.my-request-blog > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.my-request-blog strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-request-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
  object-fit: cover;
}

.my-request-cover.cover-tile {
  background: var(--tile);
}

.my-request-cover .cover-initial {
  width: auto;
  aspect-ratio: auto;
  background: none;
  font-size: 24px;
}

/* ── 가운데 창 (D-112) ─────────────────────────────── */
.modal.card {
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  max-height: min(84vh, 760px);
  padding: 0;
  overflow: hidden;
}

.modal.modal-wide {
  width: min(760px, 100%);
}

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

.modal-head h2 {
  margin: 0;
  font-size: 20px;
}

.modal-body {
  padding: 16px 24px 24px;
  overflow-y: auto;
}

body.modal-open {
  overflow: hidden;
}

.member-stats {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.member-stats th,
.member-stats td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.member-stats th {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.member-stats td.num,
.member-stats th.num {
  text-align: right;
}

.member-stats .nick {
  white-space: normal;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.count-link {
  padding: 2px 6px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--text);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.count-link:hover {
  background: var(--bg);
}

.count-link:disabled {
  color: var(--muted);
  text-decoration: none;
  cursor: default;
  opacity: 1;
}

.member-activity {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.member-activity li + li {
  border-top: 1px solid var(--line);
}

.member-activity a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 6px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.member-activity a:hover {
  background: var(--bg);
}

.member-activity .sub {
  font-size: 13px;
  color: var(--muted);
}

.activity-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kick-confirm {
  margin-top: 16px;
  padding: 16px;
  border: 1.5px solid var(--error);
  border-radius: var(--radius-field);
}

.kick-confirm p {
  margin: 0 0 8px;
}

.kick-confirm .row {
  margin-top: 12px;
  justify-content: flex-end;
}

.manage-card .list-header h2,
#members-block .list-header h2 {
  margin: 0;
}

.manage-card .list-header,
#members-block .list-header {
  margin-bottom: 8px;
}

.dialog-message {
  margin: 0 0 12px;
  white-space: pre-line;
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.dialog-actions button.primary.inline-button {
  margin-top: 0;
}

/* 확인 창은 알림 창보다 위에 */
.modal-overlay {
  z-index: 90;
}

/* 메인 "내 블로그" 아래: 참여 중인 블로그의 새 글 (D-113) */
.home-posts {
  margin-top: 28px;
}

.home-posts h2 {
  margin-top: 0;
}

/* 블로그 머리 단추 줄: 나가기·신고 아이콘은 맨 오른쪽 */
.blog-actions-end {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.blog-actions-end:not(:has(.icon-button:not(.hidden))) {
  display: none;
}

.blog-head #ops-message:empty {
  display: none;
}

/* ── 화면 설정 (D-115): 어둡게, 글자 크기 ─────────────── */
.setting-label {
  margin: 18px 0 8px;
  font-size: 14px;
  font-weight: 600;
}

.block-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.block-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

/* 파스텔 이름표와 노랑 위의 글씨는 어떤 화면에서도 짙은 잉크색 */
:root {
  --ink: #1f2430;
}

.blog-card,
.cover-initial,
.blog-icon-cover .cover-initial,
.comment.comment-target,
.steps li.active,
.segmented button[aria-pressed="true"],
.view-switch button[aria-pressed="true"],
.tabs button[aria-selected="true"],
#header-user a[aria-current="page"],
.pagination button[aria-current="page"] {
  color: var(--ink);
}

.blog-card .blog-description,
.blog-card .blog-meta {
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}

.blog-card .tag {
  color: var(--ink);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14171c;
  --surface: #1d2129;
  --text: #e6e8ed;
  --muted: #9aa3b2;
  --line: #2f3541;
  --sun-soft: #3a3320;
  --ink-hover: #c9ced8;
  --error: #ff7b7b;
  --ok: #5fd39b;
}

:root[data-theme="dark"] .notification.unread .notification-body {
  background: #2c2a1f;
}

:root[data-theme="dark"] .avatar,
:root[data-theme="dark"] .blog-cover {
  background: #2a2f39;
}

:root[data-theme="dark"] .modal-overlay {
  background: rgba(0, 0, 0, 0.6);
}

/* 글자 크기: 화면 전체를 비율로 키운다 */
:root[data-font="large"] body {
  zoom: 1.1;
}

:root[data-font="xlarge"] body {
  zoom: 1.2;
}

/* 닉네임 링크: 누르면 그 회원 프로필 (팔로우는 프로필에서) */
a.user-name {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

a.user-name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── 상단 가운데 검색창 (D-116) ───────────────────── */
.header-search {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  max-width: 440px;
  min-width: 0;
  margin: 0 auto;
  padding: 2px 4px 2px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}

.header-search:focus-within {
  border-color: var(--text);
  background: var(--surface);
}

.header-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 7px 0;
  border: none;
  background: transparent;
  font-size: 14px;
}

.header-search input[type="search"]:focus {
  box-shadow: none;
  border: none;
}

.header-search .icon-button {
  width: 32px;
  height: 32px;
}

@media (max-width: 640px) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .header-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
}

/* 글 목록: 오른쪽 사진 미리보기 */
.post-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.post-item-main {
  flex: 1;
  min-width: 0;
}

.post-item-thumb {
  flex-shrink: 0;
  display: block;
  width: 112px;
  height: 80px;
  border-radius: var(--radius-field);
  overflow: hidden;
  background: var(--bg);
}

.post-item-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 600px) {
  .post-item-thumb {
    width: 80px;
    height: 64px;
  }
}
