/* The home has no hero banner any more, so the stat bar sits under the header instead of overlapping the banner. */
.stat-wrap { margin-top: 0; padding-top: 28px; }
.section.member-posts-section { padding-top: 40px; }
.member-posts-section .section-head { margin-bottom: 14px; }
.mp-toolbar { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin: 0 0 12px; }
.mp-toolbar label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.mp-toolbar select, .mp-button { font: inherit; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--fg); }
.mp-button { cursor: pointer; font-size: 13px; }
.mp-button:disabled { opacity: .45; cursor: default; }
.mp-button:focus-visible, .mp-toolbar select:focus-visible, .mp-rail:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mp-status, .mp-pages span { color: var(--muted); font-size: 13px; }
.mp-status { flex: 1 1 200px; min-width: 0; }
.mp-pages { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.mp-pages[hidden] { display: none; }
.mp-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; }
/* Compact cards: three lines of text beside a small whole-picture thumbnail; 글 전체 보기 opens the full post. */
.mp-card { flex: 0 0 min(360px, 84vw); scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "head" "body" "foot"; gap: 8px 12px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); color: var(--fg); }
.mp-card.has-photo { grid-template-columns: minmax(0, 1fr) 96px; grid-template-areas: "head photo" "body photo" "foot foot"; }
.mp-card header { grid-area: head; display: flex; align-items: center; gap: 10px; }
.mp-card header div { display: grid; gap: 2px; }
.mp-card small { color: var(--muted); font-size: 12px; }
.mp-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; margin: 0; }
.mp-card .mp-body { grid-area: body; white-space: normal; font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mp-photo { grid-area: photo; width: 96px; height: 96px; object-fit: contain; border-radius: 10px; background: var(--bg-soft); }
.mp-card footer { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mp-card .mp-button { padding: 6px 11px; font-size: 12.5px; }
.mp-card footer a, .mp-dialog a { color: var(--accent-strong); font-size: 13px; }
.mp-dialog { width: min(720px, calc(100vw - 32px)); max-height: 85dvh; margin: auto; overflow: auto; border: 1px solid var(--line-strong); border-radius: 20px; padding: 24px; background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.mp-dialog::backdrop { background: var(--bg); opacity: .8; }
.mp-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.mp-dialog h3 { margin: 0; }
.mp-dialog .mp-body { margin: 16px 0; }
.mp-dialog .mp-images { display: grid; gap: 14px; margin-bottom: 18px; }
.mp-dialog .mp-images img { width: 100%; height: auto; border-radius: 10px; }
@media (max-width: 600px) {
  .stat-wrap { padding-top: 20px; }
  .section.member-posts-section { padding-top: 32px; }
  .mp-toolbar label span { display: none; }
  .mp-status { order: 3; flex-basis: 100%; }
  .mp-card.has-photo { grid-template-columns: minmax(0, 1fr) 76px; }
  .mp-photo { width: 76px; height: 76px; }
  .mp-dialog { padding: 18px; }
}
