/* Forum board and post pages — layered on public.css and links.css (hero, breadcrumb, sheet heading, other-links). */

/* Board: one large box per post — image, title, preview */
.forum-section { --section-space: 32px; }
.post-list { display: grid; gap: 20px; }
.post-link { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); overflow: hidden; border: 1px solid #e3dcef; border-radius: 22px; background: #ffffff; box-shadow: 0 8px 24px #7953d70d; transition: border-color .15s, box-shadow .15s, transform .15s; }
.post-link:hover { border-color: #cdbde6; box-shadow: 0 12px 30px #7953d71a; transform: translateY(-2px); }
.post-thumb { position: relative; min-height: 100%; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #efe8fb, #f8f5fd); }
.post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #b49ad6; }
.post-placeholder svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.post-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 30px 34px; }
.post-body time { color: #6b6379; font-size: calc(10px + var(--font-size-step)); }
.post-body h3 { font-size: calc(20px + var(--font-size-step)); line-height: 1.4; letter-spacing: -.03em; word-break: keep-all; overflow-wrap: anywhere; }
.post-body p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: #5a5568; font-size: calc(12px + var(--font-size-step)); line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.post-more { margin-top: auto; padding-top: 6px; color: var(--accent-dark); font-size: calc(11px + var(--font-size-step)); font-weight: 600; }
.post-empty { padding: 48px 24px; border: 1px dashed #d8cfe6; border-radius: 22px; background: #ffffffb3; color: var(--muted); text-align: center; word-break: keep-all; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 30px; }
.pagination a { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid #e3dcef; border-radius: 12px; background: #ffffff; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.pagination a:hover { border-color: #cdbde6; color: var(--accent-dark); }
.pagination a[aria-current] { border-color: var(--accent); background: var(--accent); color: #ffffff; }
.page-gap { display: grid; place-items: center; min-width: 24px; color: var(--muted); }

/* Post page */
.post-article { max-width: 820px; margin: 30px auto 0; }
.post-article h1 { margin: 18px 0 0; font-size: calc(30px + var(--font-size-step)); line-height: 1.35; letter-spacing: var(--heading-tracking); font-weight: var(--heading-weight); word-break: keep-all; overflow-wrap: anywhere; }
.post-meta { margin-top: 12px; color: #676375; font-size: calc(10px + var(--font-size-step)); }
.post-image { margin: 26px 0 0; overflow: hidden; border-radius: 20px; background: #f3eff9; }
.post-image img { display: block; width: 100%; height: auto; }
.post-content { margin-top: 28px; }
.post-content p { color: #3b3747; font-size: calc(13px + var(--font-size-step)); line-height: 1.95; word-break: keep-all; overflow-wrap: anywhere; }
.post-content p + p { margin-top: 1.1em; }
.post-content a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.post-content:focus { outline: none; }
/* Info pages (사이트 소개, 개인정보처리방침) reuse the post layout with headed sections and lists. */
.post-content h2 { margin: 1.6em 0 .55em; font-size: calc(19px + var(--font-size-step)); letter-spacing: -.02em; line-height: 1.4; word-break: keep-all; }
.post-content ul, .post-content ol { margin: .5em 0 0; padding-left: 22px; color: #3b3747; font-size: calc(13px + var(--font-size-step)); line-height: 1.9; word-break: keep-all; }
.post-content li + li { margin-top: .35em; }
.post-content ul + p, .post-content ol + p { margin-top: 1.1em; }
.post-content code { padding: 1px 6px; border-radius: 6px; background: #f1ecf9; font-size: .92em; }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
.post-nav a { display: grid; gap: 6px; min-width: 0; padding: 18px 20px; border: 1px solid #e3dcef; border-radius: 16px; background: #ffffff; }
.post-nav a:hover { border-color: #cdbde6; }
.post-nav a.is-newer { grid-column: 2; text-align: right; }
.post-nav small { color: var(--muted); font-size: calc(9px + var(--font-size-step)); }
.post-nav strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.post-back { display: inline-flex; gap: 8px; margin-top: 22px; color: var(--accent-dark); font-weight: 600; }

@media (max-width:760px) {
  .post-link { grid-template-columns: 1fr; }
  .post-thumb { min-height: 0; }
  .post-body { padding: 22px 22px 24px; }
  .post-body h3 { font-size: calc(17px + var(--font-size-step)); }
  .post-article { margin-top: 20px; }
  .post-article h1 { font-size: calc(23px + var(--font-size-step)); }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a.is-newer { grid-column: auto; text-align: left; }
}
