/* Additions for server-rendered pages: banners, centers cards, board, custom pages */
[hidden] { display: none !important; }
.sec-banner { margin-bottom: clamp(24px, 3vw, 40px); }
.sec-banner img { width: 100%; aspect-ratio: 21 / 7; object-fit: cover; display: block; }

.center-list { display: grid; gap: 28px; margin-top: clamp(32px, 4vw, 56px); }
.center-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-top: 2px solid var(--ink); background: var(--mist-pale); }
.center-card:not(:has(.center-imgs)) { grid-template-columns: 1fr; }
.center-imgs { display: grid; gap: 4px; grid-template-columns: 1fr 1fr; align-content: start; }
.center-imgs img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.center-imgs.n1 { grid-template-columns: 1fr; }
.center-imgs.n1 img, .center-imgs.n3 img:first-child { grid-column: 1 / -1; }
.center-body { padding: clamp(20px, 3vw, 40px); }
.center-body h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.03em; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.center-status { font-size: 13px; font-weight: 700; background: var(--gold); color: var(--ink); padding: 3px 10px; }
.center-card.is-plan .center-status { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); color: var(--ink-3); }
.center-meta { margin-top: 18px; display: grid; gap: 8px; }
.center-meta div { display: grid; grid-template-columns: 56px 1fr; gap: 12px; font-size: 16px; }
.center-meta dt { color: var(--ink-3); font-weight: 600; }
.center-meta dd { font-weight: 600; }
.center-body p { margin-top: 18px; font-size: 17px; color: var(--ink-2); line-height: 1.7; }
@media (max-width: 760px) { .center-card { grid-template-columns: 1fr; } }

/* sub pages (board, custom sections) */
.subpage main { padding-top: var(--bar); min-height: 70vh; }
.subpage .page-sec { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(56px, 8vw, 110px); }
.page-title { font-size: clamp(30px, 4vw, 52px); font-weight: 800; line-height: 1.2; letter-spacing: -0.04em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { padding: 8px 16px; font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--ink); min-height: 40px; display: inline-flex; align-items: center; }
.chip.is-on { background: var(--ink); color: var(--on-dark); }
.cat { font-style: normal; font-size: 13px; font-weight: 700; background: var(--gold); color: var(--ink); padding: 2px 8px; margin-right: 10px; vertical-align: 2px; }
.empty { padding: 60px 0; color: var(--ink-3); text-align: center; border-top: 2px solid var(--ink); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pager a { min-width: 40px; min-height: 40px; display: grid; place-items: center; text-decoration: none; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--rule); }
.pager a.is-on { background: var(--ink); color: var(--on-dark); box-shadow: none; }
.post-head { border-bottom: 2px solid var(--ink); padding-bottom: 24px; margin-bottom: 32px; }
.post-head .cat { display: inline-block; margin-bottom: 14px; }
.post-head time { display: block; margin-top: 14px; color: var(--ink-3); font-weight: 600; }
.post-body { font-size: 18px; line-height: 1.8; color: var(--ink); overflow-wrap: anywhere; }
.post-body > * + * { margin-top: 1em; }
.post-body h1, .post-body h2, .post-body h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; margin-top: 1.6em; }
.post-body h1 { font-size: 1.7em; } .post-body h2 { font-size: 1.45em; } .post-body h3 { font-size: 1.2em; }
.post-body img { max-width: 100%; height: auto; display: block; margin: 1.2em 0; }
.post-body a { text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.post-body ul, .post-body ol { padding-left: 1.4em; } .post-body ul { list-style: disc; } .post-body ol { list-style: decimal; }
.post-body blockquote { border-left: 4px solid var(--gold); padding: 4px 0 4px 18px; color: var(--ink-2); }
.post-body pre { background: var(--ink); color: var(--on-dark); padding: 16px; overflow: auto; font-size: 15px; }
.post-body table { border-collapse: collapse; width: 100%; } .post-body td, .post-body th { border: 1px solid var(--rule); padding: 8px 12px; }
.post-body .ql-align-center { text-align: center; } .post-body .ql-align-right { text-align: right; } .post-body .ql-align-justify { text-align: justify; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 48px 0 28px; border-top: 1px solid var(--rule); padding-top: 20px; }
.post-nav a { text-decoration: none; font-weight: 600; display: block; }
.post-nav a:last-child { text-align: right; }
.post-nav small { display: block; color: var(--ink-3); font-size: 13px; margin-bottom: 4px; }
.form-status { margin-top: 12px; font-size: 15px; font-weight: 600; }
.form-status.is-err { color: var(--stop); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
