.sunday-board {
	--sd-primary: var(--t-primary, rgba(0, 0, 0, .85));
	--sd-secondary: var(--t-secondary, rgba(0, 0, 0, .6));
	--sd-tertiary: var(--t-tertiary, rgba(0, 0, 0, .45));
	--sd-disabled: var(--t-disabled, rgba(0, 0, 0, .25));
	--sd-border1: var(--border1, rgba(0, 0, 0, .06));
	--sd-border2: var(--border2, rgba(0, 0, 0, .11));
	--sd-border3: var(--border3, rgba(0, 0, 0, .18));
	--sd-bg1: var(--bg1, rgba(0, 0, 0, .02));
	--sd-bg2: var(--bg2, rgba(0, 0, 0, .04));
	--sd-bg3: var(--bg3, rgba(0, 0, 0, .06));
	--sd-bg4: var(--bg4, rgba(0, 0, 0, .11));
	--sd-base: var(--base, #fff);
	--sd-brand: var(--brand, #f2795a);
	--sd-brand-hover: var(--brand-hover, #df684b);
	--sd-link: var(--link, #d85e40);
	--sd-danger: var(--danger, #f5222d);
	--sd-r4: var(--r4, 4px);
	--sd-r6: var(--r6, 6px);
	--sd-r8: var(--r8, 8px);
	color: var(--sd-primary);
	font: 400 14px/1.6 Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
.sunday-board,
.sunday-board * { box-sizing: border-box; }
.sunday-board a { color: inherit; text-decoration: none; }
.sunday-board img { max-width: 100%; height: auto; }
.sunday-board button,
.sunday-board input,
.sunday-board select,
.sunday-board textarea { font: inherit; }
.sunday-board a:focus-visible,
.sunday-board button:focus-visible,
.sunday-board input:focus-visible,
.sunday-board select:focus-visible { border-color: var(--sd-brand); outline: 0; box-shadow: inset 0 0 0 1px var(--sd-brand); }
.sd-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.sunday-board__header { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--sd-border2); gap: 16px; }
.sunday-board__header h1 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.4; letter-spacing: -.02em; }
.sd-categories { display: flex; align-items: center; margin: 0 0 24px; padding-bottom: 1px; overflow-x: auto; border-bottom: 1px solid var(--sd-border2); gap: 4px; }
.sd-categories a { display: inline-flex; flex: 0 0 auto; align-items: center; height: 40px; padding: 0 12px; border-bottom: 2px solid transparent; color: var(--sd-secondary); font-weight: 600; }
.sd-categories a:hover { color: var(--sd-primary); background: var(--sd-bg1); }
.sd-categories a.is-active { border-bottom-color: var(--sd-brand); color: var(--sd-brand); }
.sd-categories .sd-category-child { font-size: 13px; font-weight: 400; }

.sd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 19px; border: 1px solid var(--sd-border3); border-radius: var(--sd-r6); color: var(--sd-primary); background: var(--sd-base); font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; }
.sd-btn:hover { background: var(--sd-bg2); }
.sd-btn:active { background: var(--sd-bg3); }
.sd-btn--primary { padding: 0 20px; border-color: var(--sd-brand); color: #fff !important; background: var(--sd-brand); }
.sd-btn--primary:hover { border-color: var(--sd-brand-hover); background: var(--sd-brand-hover); }
.sd-btn--danger { border-color: var(--sd-danger); color: #fff; background: var(--sd-danger); }
.sd-btn--small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.sd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sd-actions--end { justify-content: flex-end; }
.sd-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; min-height: 20px; padding: 1px 6px; border: 1px solid transparent; border-radius: var(--sd-r4); color: var(--sd-secondary); background: var(--sd-bg3); font-size: 12px; font-weight: 600; line-height: 1.4; vertical-align: middle; }

.sd-list-wrap { overflow-x: auto; border-top: 1px solid var(--sd-border2); border-bottom: 1px solid var(--sd-border2); }
.sd-list { width: 100%; border: 0; border-collapse: collapse; table-layout: fixed; }
.sd-list th { height: 44px; padding: 0 12px; border: 0; border-bottom: 1px solid var(--sd-border2); color: var(--sd-tertiary); background: var(--sd-bg1); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
.sd-list td { height: 52px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--sd-border1); color: var(--sd-secondary); font-size: 13px; line-height: 1.5; }
.sd-list tbody tr:last-child td { border-bottom: 0; }
.sd-list tbody tr:hover td { background: var(--sd-bg1); }
.sd-list th:not(.sd-list__title),
.sd-list td:not(.sd-list__title) { width: 104px; text-align: center; }
.sd-list th:last-child:not(.sd-list__title),
.sd-list td:last-child:not(.sd-list__title) { width: 72px; }
.sd-list .sd-list__title { width: auto; color: var(--sd-primary); text-align: left; }
.sd-list__title > a:first-of-type { font-weight: 600; }
.sd-list__title > a:first-of-type:hover { color: var(--sd-link); }
.sd-list__title img { margin-left: 4px; vertical-align: middle; }
.sd-list .is-notice td { background: var(--sd-bg1); }
.sd-list .is-notice .sd-list__title { color: var(--sd-brand); }
.sd-comment-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 5px; border-radius: 10px; color: var(--sd-secondary); background: var(--sd-bg3); font-size: 11px; font-weight: 600; }
.sd-empty { padding: 48px 16px !important; color: var(--sd-tertiary) !important; text-align: center !important; }
.sd-list-footer { display: grid; grid-template-columns: auto minmax(260px, 1fr); margin-top: 20px; gap: 20px; }
.sd-list-footer .sd-pagination { grid-column: 1 / -1; }
.sd-search { display: flex; justify-content: flex-end; gap: 8px; }
.sd-search input,
.sd-search select,
.sd-inline-field input,
.sd-write__title input,
.sd-write__title select,
.sd-author-fields input { height: 48px; min-width: 0; padding: 0 16px; border: 1px solid var(--sd-border3); border-radius: var(--sd-r6); color: var(--sd-primary); background: var(--sd-base); outline: 0; }
.sd-search input { width: min(260px, 100%); }
.sd-search select { width: 128px; padding-right: 32px; }
.sd-search input:hover,
.sd-search select:hover,
.sd-inline-field input:hover,
.sd-write__title input:hover,
.sd-write__title select:hover,
.sd-author-fields input:hover { border-color: var(--sd-tertiary); }
.sd-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; margin: 28px 0 0; gap: 4px; }
.sd-pagination a,
.sd-pagination strong { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--sd-r6); color: var(--sd-secondary); font-size: 13px; font-style: normal; }
.sd-pagination a:hover { background: var(--sd-bg2); color: var(--sd-primary); }
.sd-pagination strong { color: #fff; background: var(--sd-brand); }

.sd-content-feed { display: grid; gap: 24px; }
.sd-content-card,
.sd-document,
.sd-comments,
.sd-trackbacks,
.sd-context-card,
.sd-context-form,
.sd-comment-form--standalone { overflow: hidden; border: 1px solid var(--sd-border2); border-radius: var(--sd-r8); background: var(--sd-base); }
.sd-content-card > header { padding: 24px 28px 18px; border-bottom: 1px solid var(--sd-border1); }
.sd-content-card h2 { margin: 6px 0 8px; font-size: 22px; line-height: 1.4; letter-spacing: -.02em; }
.sd-content-card h2 a:hover { color: var(--sd-link); }
.sd-content-card header p,
.sd-meta { display: flex; flex-wrap: wrap; margin: 0; color: var(--sd-tertiary); font-size: 13px; gap: 6px 16px; }
.sd-content-card__body { padding: 28px; line-height: 1.7; }
.sd-content-card > footer { padding: 12px 28px; border-top: 1px solid var(--sd-border1); color: var(--sd-link); font-weight: 600; }
.sd-content-card--notice { border-color: var(--sd-border3); }

.sd-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.sd-gallery__card { min-width: 0; overflow: hidden; border: 1px solid var(--sd-border2); border-radius: var(--sd-r8); background: var(--sd-base); }
.sd-gallery__thumbnail { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-bottom: 1px solid var(--sd-border1); background: var(--sd-bg2); }
.sd-gallery__thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.sd-gallery__placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; padding: 24px; color: var(--sd-tertiary); background: var(--sd-bg2); text-align: center; }
.sd-gallery__placeholder span { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.sd-gallery__body { padding: 14px 16px 16px; }
.sd-gallery__body h2 { margin: 0 0 8px; overflow: hidden; font-size: 16px; font-weight: 700; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.sd-gallery__body h2 a:hover { color: var(--sd-link); }
.sd-gallery__meta { display: flex; align-items: center; margin: 0; color: var(--sd-tertiary); font-size: 12px; gap: 5px 10px; }
.sd-gallery__meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-gallery__meta a { margin-left: auto; color: var(--sd-link); font-weight: 600; }
.sd-gallery > .sd-empty { grid-column: 1 / -1; }

.sd-guestbook { display: grid; gap: 12px; }
.sd-guestbook__entry { overflow: hidden; border: 1px solid var(--sd-border2); border-radius: var(--sd-r8); background: var(--sd-base); }
.sd-guestbook__entry > header { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 10px 20px; border-bottom: 1px solid var(--sd-border1); gap: 16px; }
.sd-guestbook__entry > header strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.sd-guestbook__entry > header time { flex: 0 0 auto; color: var(--sd-tertiary); font-size: 12px; }
.sd-guestbook__body { display: block; padding: 18px 20px 20px; }
.sd-guestbook__body:hover { background: var(--sd-bg1); }
.sd-guestbook__body p { max-width: 76ch; margin: 0; color: var(--sd-secondary); font-size: 15px; line-height: 1.75; white-space: pre-line; }
.sd-guestbook__entry > footer { min-height: 41px; padding: 9px 20px; border-top: 1px solid var(--sd-border1); color: var(--sd-link); font-size: 13px; font-weight: 600; }

.sd-memo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sd-memo__card { display: flex; min-width: 0; min-height: 124px; flex-direction: column; border: 1px solid var(--sd-border2); border-radius: var(--sd-r6); background: var(--sd-base); }
.sd-memo__body { flex: 1; padding: 14px 16px 12px; }
.sd-memo__body:hover { background: var(--sd-bg1); }
.sd-memo__body p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--sd-secondary); font-size: 14px; line-height: 1.6; white-space: pre-line; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.sd-memo__card > footer { display: flex; min-height: 37px; align-items: center; padding: 8px 16px; border-top: 1px solid var(--sd-border1); color: var(--sd-tertiary); font-size: 12px; gap: 8px; }
.sd-memo__card > footer strong { min-width: 0; overflow: hidden; color: var(--sd-secondary); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sd-memo__card > footer time { margin-left: auto; white-space: nowrap; }
.sd-memo__card > footer a { display: inline-flex; min-width: 20px; height: 20px; align-items: center; justify-content: center; padding: 0 5px; border-radius: 10px; color: var(--sd-link); background: var(--sd-bg3); font-weight: 600; }
.sd-memo > .sd-empty { grid-column: 1 / -1; }

.sd-document__header { padding: 28px 32px 22px; border-bottom: 1px solid var(--sd-border2); }
.sd-document__header h1 { margin: 8px 0 10px; font-size: clamp(22px, 4vw, 28px); font-weight: 700; line-height: 1.4; letter-spacing: -.025em; }
.sd-document__body { min-height: 240px; padding: 32px; line-height: 1.7; }
.sd-document__footer { padding: 18px 32px 24px; border-top: 1px solid var(--sd-border1); }
.sd-document__footer .sd-actions { justify-content: flex-end; margin-top: 20px; }
.sd-extra { border-bottom: 1px solid var(--sd-border1); background: var(--sd-bg1); }
.sd-extra dl,
.sd-update-vars { display: grid; grid-template-columns: 140px 1fr; margin: 0; }
.sd-extra dt,
.sd-extra dd,
.sd-update-vars dt,
.sd-update-vars dd { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--sd-border1); }
.sd-extra dt,
.sd-update-vars dt { color: var(--sd-secondary); font-weight: 600; }
.sd-files { margin-top: 12px; }
.sd-link-button { padding: 4px 0; border: 0; color: var(--sd-link); background: transparent; font-weight: 600; cursor: pointer; }
.sd-files ul { margin: 8px 0 0; padding: 12px 16px; border: 1px solid var(--sd-border1); border-radius: var(--sd-r4); background: var(--sd-bg1); list-style: none; }
.sd-files li + li { margin-top: 6px; }
.sd-files small { color: var(--sd-tertiary); }
.sd-tags { display: flex; flex-wrap: wrap; margin-top: 16px; gap: 6px; }
.sd-tags a,
.sd-tag-list a,
.sd-vote-list a { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 6px; border-radius: var(--sd-r4); color: var(--sd-secondary); background: var(--sd-bg3); font-size: 12px; }
.sd-tags a:hover,
.sd-tag-list a:hover,
.sd-vote-list a:hover { color: var(--sd-link); }

.sd-comments { margin-top: 24px; }
.sd-comments__header { padding: 18px 24px; border-bottom: 1px solid var(--sd-border2); }
.sd-comments__header h2,
.sd-trackbacks h2 { margin: 0; font-size: 18px; line-height: 1.4; }
.sd-comment-list { margin: 0; padding: 0; list-style: none; }
.sd-comment { margin-left: min(calc(var(--comment-depth) * 20px), 80px); padding: 20px 24px; border-bottom: 1px solid var(--sd-border1); }
.sd-comment > header { display: flex; justify-content: space-between; color: var(--sd-secondary); gap: 16px; }
.sd-comment > header time { color: var(--sd-tertiary); font-size: 12px; }
.sd-comment__body { margin-top: 12px; }
.sd-comment__actions { display: flex; justify-content: flex-end; margin: 12px 0 0; gap: 14px; }
.sd-comment__actions a { color: var(--sd-tertiary); font-size: 12px; font-weight: 600; }
.sd-comment__actions a:hover { color: var(--sd-link); }
.sd-comment-form { padding: 24px; background: var(--sd-bg1); }
.sd-comment-form--standalone { background: var(--sd-base); }
.sd-editor { margin: 20px 0; }
.sd-author-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; gap: 12px; }
.sd-author-fields label { display: grid; color: var(--sd-secondary); font-size: 13px; font-weight: 600; gap: 6px; }
.sd-author-fields label:last-child:nth-child(4),
.sd-author-fields label:last-child:nth-child(5) { grid-column: 1 / -1; }
.sd-author-fields input { width: 100%; }
.sd-options { display: flex; flex-wrap: wrap; align-items: center; margin: 18px 0; color: var(--sd-secondary); gap: 8px 18px; }
.sd-options label { display: inline-flex; align-items: center; min-height: 32px; gap: 6px; }
.sd-options input { width: 16px; height: 16px; margin: 0; accent-color: var(--sd-brand); }
.sd-captcha { margin: 16px 0; }

.sd-form-header { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--sd-border2); }
.sd-form-header h1,
.sd-context-form h1 { margin: 0; font-size: 22px; line-height: 1.4; }
.sd-write__title { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
.sd-write__title input { width: 100%; }
.sd-extra-form { margin-top: 20px; overflow-x: auto; }
.sd-extra-form table { width: 100%; border-collapse: collapse; }
.sd-extra-form caption { padding: 8px 0; color: var(--sd-tertiary); text-align: left; }
.sd-extra-form th,
.sd-extra-form td { padding: 12px; border: 1px solid var(--sd-border1); text-align: left; }
.sd-extra-form th { width: 160px; background: var(--sd-bg1); }
.sd-extra-form em { color: var(--sd-danger); }
.sd-context-card { margin-bottom: 16px; padding: 24px; }
.sd-context-card h2 { margin: 0; font-size: 18px; }
.sd-context-card p { margin: 6px 0 0; color: var(--sd-tertiary); }
.sd-context-form { max-width: 560px; margin: 24px auto; padding: 28px; }
.sd-context-form > label { display: block; margin: 20px 0 6px; color: var(--sd-secondary); font-weight: 600; }
.sd-context-form .sd-actions { margin-top: 24px; }
.sd-inline-field { display: flex; gap: 8px; }
.sd-inline-field input { flex: 1; }
.sd-trackbacks { margin-top: 24px; padding: 24px; }
.sd-trackback-url { overflow-wrap: anywhere; color: var(--sd-tertiary); }
.sd-trackbacks article { padding: 16px 0; border-top: 1px solid var(--sd-border1); }
.sd-trackbacks article header { display: flex; justify-content: space-between; }
.sd-trackbacks time { color: var(--sd-tertiary); font-size: 12px; }
.sd-tag-list { display: flex; flex-wrap: wrap; margin-bottom: 24px; gap: 8px; }
.sd-tag-list span { margin-left: 5px; color: var(--sd-tertiary); }
.sd-vote-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sd-vote-list section { padding: 20px; border: 1px solid var(--sd-border2); border-radius: var(--sd-r8); }
.sd-vote-list h2 { margin: 0 0 12px; font-size: 16px; }
.sd-vote-list section > div { display: flex; flex-wrap: wrap; gap: 6px; }
.deleted { color: var(--sd-tertiary); }

@media (max-width: 768px) {
	.sunday-board__header { margin-bottom: 16px; }
	.sd-list th:not(.sd-list__title),
	.sd-list td:not(.sd-list__title) { display: none; }
	.sd-list .sd-list__title { min-width: 280px; }
	.sd-list-footer { display: flex; flex-direction: column; }
	.sd-search { display: grid; grid-template-columns: 112px 1fr auto; }
	.sd-search select,
	.sd-search input { width: 100%; }
	.sd-content-card > header,
	.sd-content-card__body,
	.sd-document__header,
	.sd-document__body,
	.sd-document__footer { padding-right: 20px; padding-left: 20px; }
	.sd-document__body { min-height: 180px; }
	.sd-comment { margin-left: min(calc(var(--comment-depth) * 10px), 30px); padding: 18px 16px; }
	.sd-author-fields { grid-template-columns: 1fr; }
	.sd-author-fields label:last-child:nth-child(4),
	.sd-author-fields label:last-child:nth-child(5) { grid-column: auto; }
	.sd-write__title { grid-template-columns: 1fr; }
	.sd-inline-field { flex-direction: column; }
	.sd-vote-list { grid-template-columns: 1fr; }
	.sd-gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
	.sd-gallery__body { padding: 12px; }
	.sd-gallery__meta { align-items: flex-start; flex-direction: column; gap: 2px; }
	.sd-gallery__meta a { margin-left: 0; }
	.sd-guestbook__entry > header,
	.sd-guestbook__body,
	.sd-guestbook__entry > footer { padding-right: 16px; padding-left: 16px; }
	.sd-memo { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.sunday-board *,
	.sunday-board *::before,
	.sunday-board *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
