/* 홈은 게시판을 중심에 두고 PC·태블릿·휴대폰 순서로 탐색 위치를 조정합니다. */
.community-home {
    --type-title: clamp(1.5rem, 2.2vw, 2rem);
    --type-section: 1.25rem;
    --type-heading: 1.0625rem;
    --type-body: 1rem;
    --type-menu: .9375rem;
    --type-meta: .8125rem;
    font: 400 var(--type-body)/1.55 var(--k-font-primary), system-ui, sans-serif;
    overflow-wrap: anywhere;
}
.community-home *,
.community-home *::before,
.community-home *::after {
    box-sizing: border-box;
}
.community-home a {
    color: inherit;
    text-decoration: none;
}
.community-shell [data-show],
.community-shell [data-unless] {
    display: none !important;
}
.my-sections {
    display: grid;
    gap: 16px;
}
.community-home :is(input, button, select) {
    color: inherit;
    font: inherit;
}
.community-home button {
    cursor: pointer;
}
.community-home :is(h1, h2, h3, p, dl, dd) {
    margin: 0;
}
.community-home :is(h1, h2, h3) {
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.035em;
}
.community-home h1 {
    font-size: var(--type-title);
}
.community-home h3 {
    font-size: var(--type-heading);
}
.community-home h2 {
    font-size: var(--type-section);
}
.home-symbols {
    position: absolute;
    width: 0;
    height: 0;
}
.home-icon {
    flex: none;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.home-skip {
    position: absolute;
    z-index: 3;
    padding: 12px;
    background: var(--community-surface);
    transform: translateY(-110%);
}
.home-skip:focus {
    transform: translateY(0);
}
.home-bar {
    border-bottom: 1px solid var(--community-line);
    background: var(--community-surface);
}
.home-bar-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding-inline: 32px 20px;
}
.home-bar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 32vw) minmax(150px, .6fr);
    align-items: center;
    gap: 16px;
    min-height: 64px;
}
.header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}
.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
    font-size: var(--type-section);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.15;
}
.home-brand img {
    width: 46px;
    height: 46px;
}
.home-brand small, .home-intro small {
    display: block;
    font-size: .66rem;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .14em;
}
.home-brand small {
    text-align: center;
    margin-top: 2px;
    font-size: 10px;
}
.home-bar .home-tool, .home-bar .home-alert {
    display: inline-grid;
    place-items: center;
    position: relative;
    width: 44px;
    height: 44px;
    flex: none;
    color: var(--community-text);
    background: transparent;
    border: 0;
    border-radius: 50%;
}
.home-bar :is(.home-tool,.home-alert):hover {
    color: var(--community-accent);
    background: var(--community-tint);
}
.home-bar .header-account summary {
    width: 38px;
    height: 38px;
    border: 1px solid var(--community-line);
    background: var(--community-bg);
}
.home-bar .home-icon {
    width: 22px;
    height: 22px;
}
.home-bar .mobile-search-toggle, .mobile-sections {
    display: none;
}
.home-search {
    display: flex;
    align-items: center;
    width: min(340px, 36vw);
    border: 1px solid var(--community-line);
    border-radius: 8px;
    background: var(--community-bg);
}
.home-search input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 0;
    background: transparent;
}
.home-search button {
    display: grid;
    width: 44px;
    height: 36px;
    place-items: center;
    border: 0;
    background: transparent;
}
.home-action,
.home-secondary,
.home-intro a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: var(--type-menu);
    font-weight: 600;
}
.community-home .home-action {
    background: var(--community-primary);
    color: var(--community-on-primary);
}
.home-secondary,
.home-intro a {
    border: 1px solid var(--community-line);
    background: var(--community-surface);
    color: var(--community-accent);
}
.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(220px, 23vw, 288px);
    align-items: start;
    gap: 16px;
    padding: 24px 16px 32px;
}
.home-side {
    display: grid;
    gap: 2px;
}
.home-side a {
    font-size: var(--type-menu);
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
}
.home-side a:hover,
.home-side a[aria-current],
.home-mobile a[aria-current] {
    background: var(--community-tint);
    color: var(--community-accent);
}
.community-home .home-nav-label {
    margin: 16px 12px 2px;
    font-size: var(--type-meta);
    color: var(--community-muted);
}
.home-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 22px 24px;
    border-radius: 8px;
    background: var(--community-tint);
}
.home-intro h1 {
    font-size: var(--type-title);
}
.home-intro p,
.home-intro h1 span {
    color: var(--community-accent);
}
.home-layout main,
.home-rail {
    display: grid;
    gap: 16px;
    min-width: 0;
}
.home-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--community-line);
    border-radius: 8px;
    background: var(--community-surface);
}
.community-home .home-empty {
    margin-top: 12px;
    padding-block: 16px 6px;
    border-top: 1px solid var(--community-line);
    color: var(--community-muted);
    font-size: var(--type-menu);
}
.home-directory-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    margin-bottom: 6px;
}
.home-directory-heading button {
    min-height: 44px;
    border: 0;
    background: transparent;
    color: var(--community-accent);
}
#boardResult:not(:empty) {
    margin-bottom: 12px;
    color: var(--community-muted);
}
.home-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.home-group h3 {
    margin-bottom: 10px;
    font-size: var(--type-body);
    color: var(--community-accent);
}
.home-group dl > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2px 10px;
    padding-block: 10px;
    border-top: 1px solid var(--community-line);
}
.home-group dd {
    color: var(--community-muted);
    font-size: var(--type-meta);
}
/* 게시판 목록의 이동 링크와 개별 안내 화면에 같은 글자색과 간격을 적용합니다. */
.home-group dt a,
.board-overview nav a,
.home-empty a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.board-overview {
    width: min(100%, 960px);
    min-height: 55vh;
    margin: 0 auto;
    padding: 24px 16px;
}
.board-overview nav {
    margin-bottom: 16px;
    color: var(--community-muted);
}
.board-overview h1 {
    margin-bottom: 6px;
    font-size: var(--type-title);
}
/* 제목과 메타 정보가 작은 지면에서 자연스럽게 줄을 바꾸도록 합니다. */
.reading-rows,
.reading-compact {
    margin: 0;
    padding: 0;
    list-style: none;
}
ol.reading-compact {
    list-style: decimal inside;
}
.reading-rows li,
.reading-compact li {
    border-top: 1px solid var(--community-line);
}
.reading-rows a {
    display: grid;
    grid-template-columns: minmax(80px, .3fr) minmax(0, 1fr);
    gap: 2px 12px;
    padding: 10px 0;
}
.reading-board,
.reading-meta {
    font-size: var(--type-meta);
    color: var(--community-muted);
}
.reading-rows .reading-meta {
    grid-column: 2;
}
.reading-title {
    font-weight: 500;
}
/* 작성 댓글은 목록에서 두 줄로 미리 보고 원문에서 전체 내용을 읽습니다. */
.own-comment-preview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.reading-pages a[aria-current="page"] {
    color: var(--community-accent);
    font-weight: 600;
}
.reading-compact a,
.reading-pages a {
    display: inline-block;
    padding: 8px 0;
}
.reading-body {
    margin-block: 18px;
    padding-block: 18px;
    border-top: 1px solid var(--community-line);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
/* 글 작성과 댓글 영역은 기존 지면과 프리텐다드 입력 토큰을 공유합니다. */
.participation-form,
.participation-form > label {
    display: grid;
    gap: 8px;
}
.participation-form {
    margin-block: 16px;
    gap: 16px;
}
.participation-form :is(input, select, textarea),
.participation-actions button {
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--community-line);
    border-radius: 8px;
    background: var(--community-surface);
    color: var(--community-text);
    font: inherit;
}
.participation-form textarea {
    resize: vertical;
}
.participation-actions,
.kept-photos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.participation-actions a {
    padding: 10px;
    text-decoration: underline;
}
.participation-actions [aria-pressed="true"] {
    border-color: var(--community-accent);
    color: var(--community-accent);
    background: var(--community-tint);
}
.kept-photos img {
    width: 88px;
    height: 72px;
    object-fit: cover;
}
.post-photo {
    display: block;
    max-width: 100%;
    height: auto;
    margin-block: 14px;
}
.post-thread {
    margin-block: 22px;
}
.post-thread h2 {
    margin-top: 20px;
}
.thread-list {
    padding: 0;
    list-style: none;
}
.thread-list li {
    padding-block: 12px;
    border-top: 1px solid var(--community-line);
}
.thread-reply {
    margin-inline-start: 20px;
}
.thread-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.reading-filters,
.reading-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-block: 16px;
}
.reading-filters :is(input, select, button) {
    max-width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--community-line);
    border-radius: 8px;
    font: inherit;
}
.reading-filters :is(input, select) {
    background: var(--community-surface);
    color: var(--community-text);
}
.reading-filters input[type="search"] {
    flex: 1 1 190px;
    min-width: 0;
}
#boards .home-search {
    width: min(100%, 340px);
    margin-bottom: 12px;
}
@media (max-width: 767px) {
    .reading-rows a {
        display: flex;
        flex-direction: column;
    }
}
.home-rail .home-welcome {
    font-size: 22px;
}
.header-account {
    position: relative;
    flex: none;
}
.header-account summary {
    list-style: none;
    cursor: pointer;
}
.header-account summary::-webkit-details-marker {
    display: none;
}
.header-account[open] > summary {
    color: var(--community-accent);
    background: var(--community-tint);
}
.header-account .account-popup {
    position: absolute;
    inset-inline-end: 0;
    inset-block-start: calc(100% + 4px);
    width: min(18rem, calc(100vw - 24px));
    max-height: calc(100dvh - 76px);
    overflow: auto;
    padding: 16px;
    background: var(--community-surface);
    border: 1px solid var(--community-line);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--community-text) 14%, transparent);
}
.account-popup > div {
    display: grid;
    gap: 8px;
}
.account-popup p {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--community-muted);
}
.account-popup :is(.home-action, .home-secondary) {
    width: 100%;
}
.account-popup [role="alert"] {
    color: var(--community-danger);
}
/* 본인 프로필의 항목과 값을 작은 화면에서도 한 줄씩 읽을 수 있게 배치합니다. */
.profile-summary {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px 16px;
    margin-block: 16px 24px;
}
.profile-summary dt {
    color: var(--community-muted);
}
.profile-summary dd {
    margin: 0;
    overflow-wrap: anywhere;
}
.profile-visibility {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    border: 1px solid var(--community-line);
    border-radius: 8px;
}
.profile-visibility label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
}
.profile-visibility input[type="checkbox"] {
    min-height: 0;
    accent-color: var(--community-accent);
}
.community-home .profile-link {
    text-decoration: underline;
    text-underline-offset: 3px;
}
/* 알림 행은 읽음 상태와 글 제목을 함께 표시하고 긴 제목은 줄을 바꿉니다. */
.alert-row,
.alert-choices {
    display: grid;
    gap: 6px;
    padding-block: 12px;
}
.alert-title {
    justify-self: start;
    max-width: 100%;
    min-height: 44px;
    text-align: start;
    overflow-wrap: anywhere;
    background: var(--community-surface);
    color: var(--community-accent);
    border: 0;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.alert-choices {
    margin-block: 12px;
    border: 0;
}
/* 개인 목록과 즐겨찾기 버튼은 게시판의 표면·간격·선택 색상을 공유합니다. */
.board-overview > .home-panel + .home-panel {
    margin-top: 16px;
}
.board-favorite {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.board-favorite button[aria-pressed="true"] {
    background: var(--community-tint);
    border-color: var(--community-accent);
}
.reading-compact [data-saved-board] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.home-mobile {
    display: none;
}
/* 고정된 공통 영역과 독립적으로 스크롤하는 본문을 한 화면에 배치합니다. */
.community-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px minmax(0, var(--community-content-width, 1088px)) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100vh;
    height: 100dvh;
    background: var(--community-bg);
}
.community-shell > .home-bar {
    position: relative;
    z-index: 3;
    grid-column: 1 / -1;
    grid-row: 1;
}
.community-shell > .home-side {
    grid-column: 2;
    grid-row: 2;
    align-content: start;
    padding: 24px 8px 24px 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.community-content {
    grid-column: 3;
    grid-row: 2;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    scrollbar-gutter: stable;
}
.community-shell > .site-footer {
    grid-column: 1 / -1;
    grid-row: 3;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px 20px;
    max-width: none;
    min-height: 48px;
    padding: 2px max(16px, calc((100% - 1288px) / 2));
    background: var(--community-surface);
}
.community-shell .footer-bottom,
.community-shell .footer-top {
    gap: 12px;
}
.home-bar .home-search {
    width: min(100%, 400px);
    margin-inline: 0;
    flex-direction: row-reverse;
    background: var(--community-bg);
}
.home-bar .home-search input {
    padding-left: 0;
    font-size: 14px;
}
.home-alert,
.home-session {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.home-alert {
    justify-content: center;
    min-width: 32px;
    color: var(--community-muted);
}
.home-alert span {
    position: absolute;
    right: 5px;
    top: 3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--community-danger);
    font-size: 0;
}

.home-side .home-menu {
    margin-bottom: 8px;
}
.home-board-menu {
    --menu-inset: 12px;
    --menu-icon-width: 19px;
    --menu-icon-gap: 8px;
    padding: 14px 0 10px;
    border-top: 1px solid var(--community-line);
}
.home-board-menu .home-nav-label {
    margin: 8px 0 2px;
    padding-inline: var(--menu-inset);
    font-size: var(--type-menu);
}
.home-board-menu a {
    min-height: 32px;
    padding: 6px 8px;
}
.home-board-menu > a {
    padding-inline-start: calc(var(--menu-inset) + var(--menu-icon-width) + var(--menu-icon-gap));
}
.community-shell > .home-side {
    border-inline-end: 1px solid var(--community-line);
    background: var(--community-surface);
}
.home-favorite-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: var(--menu-inset);
}
.home-favorite-heading a {
    font-size: var(--type-meta);
    color: var(--community-muted);
}
.home-favorite-heading strong, .home-board-menu .home-nav-label {
    display: flex;
    align-items: center;
    gap: var(--menu-icon-gap);
}
.home-favorite-heading .home-icon, .home-nav-label .home-icon {
    width: var(--menu-icon-width);
    height: var(--menu-icon-width);
    color: var(--community-accent);
}
.home-board-menu .home-nav-label {
    color: var(--community-text);
    font-weight: 700;
}
.community-shell .home-intro h1 {
    font-size: var(--type-title);
}
.home-checkin {
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--community-surface);
    color: var(--community-muted);
}
.community-shell .home-panel {
    border-radius: 12px;
}
.community-shell #latest h2 {
    font-size: var(--type-section);
}
#home .home-directory-heading > a,
.home-card-title span[aria-hidden] {
    color: var(--community-muted);
}
.home-feed {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: left;
}
.home-feed th {
    background: var(--community-bg);
    color: var(--community-muted);
    font-size: var(--type-menu);
    font-weight: 500;
}
.home-feed :is(th, td) {
    padding: 6px;
}
.home-feed :is(th, td):first-child {
    width: clamp(80px, 9vw, 114px);
}
.home-feed :is(th, td):last-child {
    width: 84px;
    text-align: right;
    color: var(--community-muted);
    font-size: var(--type-meta);
}
.home-feed td {
    height: clamp(54px, 5.8vw, 72px);
    border-bottom: 1px solid var(--community-line);
}
.home-feed td:first-child,
.home-feed td a span:not(.feed-title),
.home-rail ol li::marker {
    color: var(--community-accent);
}
.community-home .home-panel a:hover,
.community-home .reading-rows a:hover .reading-title {
    color: var(--community-accent);
    text-decoration: none;
}
.home-panel h2:has(.home-card-title) + .home-empty {
    border-top: 0;
}
.home-feed tbody tr:last-child td {
    border-bottom: 0;
}
#home .home-card-title {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--community-line);
    font-size: var(--type-heading);
}
#home .reading-compact li {
    border: 0;
}
#home .reading-compact {
    margin-top: 12px;
}
#home .reading-compact a {
    display: inline;
    padding: 0;
}
#home .reading-compact li + li {
    margin-top: 8px;
}
.home-rail ol.reading-compact {
    padding-left: 1.4em;
    list-style-position: outside;
}
#home .home-rail .home-panel {
    padding: 14px 12px;
}
.home-rail h2 {
    font-size: var(--type-heading);
}
#home .home-rail .home-directory-heading {
    min-height: 24px;
}

.community-shell [hidden] {
    display: none;
}
.community-shell .home-group dl > div[hidden] {
    display: none;
}
@media (min-width: 1024px) {
    .community-shell .home-brand {
        font-size: 24px;
    }
    .home-side .home-menu {
        margin-bottom: 2px;
    }
    .home-board-menu a {
        min-height: 30px;
    }
    .home-feed td {
        height: clamp(60px, 6.4vw, 78px);
    }
}
@media (max-width: 1023px) {
    .home-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .home-rail {
        grid-column: 1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}
@media (max-width: 767px) {
    .community-shell .home-bar-inner {
        min-height: 60px;
        gap: 4px 10px;
    }
    .community-shell .home-layout {
        padding-block: 14px;
    }
    .home-feed :is(th, td):first-child {
        width: 22%;
    }
    .home-feed :is(th, td):last-child {
        width: 64px;
    }
    .home-feed td {
        height: 52px;
    }
    .community-shell {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr) auto auto;
    }
    .community-content {
        grid-column: 1;
        scrollbar-gutter: auto;
    }
    .community-shell > .site-footer {
        flex-wrap: wrap;
        min-height: 0;
        gap: 0 12px;
        padding: 2px 12px;
    }
    .community-shell .footer-top,
    .community-shell .footer-bottom {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 4px 12px;
    }
    .community-shell .footer-bottom nav {
        margin: 0;
        gap: 10px;
    }
    .community-shell .site-footer nav a {
        min-height: 32px;
    }
    .home-bar-inner {
        flex-wrap: wrap;
        gap: 6px 12px;
        padding: 10px 16px;
    }
    .home-brand {
        font-size: 18px;
    }
    .home-search {
        flex: 1;
        min-width: 140px;
    }
    .home-search input {
        font-size: var(--type-body);
    }
    .home-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        padding: 16px 12px 28px;
    }
    .home-side {
        display: none;
    }
    .home-rail {
        grid-column: 1;
        grid-template-columns: minmax(0, 1fr);
    }
    .home-mobile {
        grid-column: 1;
        grid-row: 4;
        display: flex;
        justify-content: space-around;
        padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--community-line);
        background: var(--community-surface);
    }
    .home-mobile a {
        display: grid;
        justify-items: center;
        align-content: center;
        gap: 2px;
        min-width: 56px;
        min-height: 48px;
        border-radius: 8px;
        font-size: 12px;
    }
    .home-panel,
    .home-intro {
        padding: 16px;
    }
    .home-groups {
        gap: 10px;
    }
}
@media (max-width: 460px) {
    .home-search {
        order: 1;
        flex-basis: 100%;
    }
    .home-groups {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* 가로로 짧은 화면에서도 폼과 본문을 조작할 스크롤 영역을 확보합니다. */
@media (max-height: 520px) {
    .community-shell > .site-footer {
        max-height: 48px;
        overflow: auto;
    }
}

/* 대시보드의 브랜드 배너와 주제 탐색은 게시판 피드 위에서 한 단위로 읽힙니다. */
#home .community-content {
    background: var(--community-surface);
    scrollbar-width: thin;
}
#home .home-layout {
    padding: 18px 6px 18px 18px;
}
#home .home-layout main {
    gap: 14px;
}
#home .home-rail {
    gap: 12px;
}
#home #latest, #home .home-groups {
    padding: 10px 14px 8px;
}
#home .home-directory-heading {
    min-height: 30px;
    margin-bottom: 4px;
}
#home #latest {
    padding-bottom: 14px;
}
#home .home-directory-heading h2, #home .home-rail h2 {
    font-weight: 700;
}
#home .home-directory-heading > a {
    font-size: var(--type-meta);
}
@media (min-width: 1024px) {
    #home .community-shell {
        --community-content-width: 1104px;
    }
    #home .home-layout {
        grid-template-columns: minmax(0, 1fr) clamp(244px, 23.5vw, 288px);
    }
}
#home .home-intro {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 190px;
    padding: 20px 32px;
    border-radius: 12px;
    background: linear-gradient(110deg, color-mix(in srgb, var(--community-tint) 72%, var(--community-surface)), var(--community-tint));
}
#home .home-intro::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    z-index: -1;
    width: min(46%, 294px);
    background: url("../../images/community/rest-banner.png") right bottom / auto 100% no-repeat;
    mask-image: linear-gradient(to right, transparent, var(--community-text) 16%);
}
#home .home-intro > div {
    max-width: 65%;
}
#home .home-intro h1 {
    margin-block: 8px 4px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}
#home .home-intro small {
    color: var(--community-accent);
    font-size: 12px;
}
#home .home-intro h1 span {
    color: inherit;
}
#home .home-intro p {
    color: var(--community-text);
    font-size: 14px;
}
#home .home-checkin {
    margin-top: 13px;
    min-height: 36px;
    padding: 6px 22px;
    border: 0;
    border-radius: 24px;
    background: var(--community-accent);
    color: var(--community-surface);
}
.home-topics {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0;
}
.home-topics a {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 6px;
    min-height: 78px;
    text-align: center;
    border: 1px solid var(--community-line);
    border-radius: 9px;
    background: var(--community-surface);
    font-size: 14px;
    font-weight: 500;
}
.home-topics svg {
    color: var(--community-accent);
    width: 26px;
    height: 26px;
}
.home-topics a:has(use[href="#icon-heart"]) svg { color: var(--community-danger); }
.home-topics a:hover {
    background: var(--community-tint);
}
.feed-controls, .feed-controls nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.feed-controls {
    justify-content: space-between;
    border-bottom: 1px solid var(--community-line);
}
.feed-controls nav a {
    padding: 6px 16px;
    border-bottom: 2px solid transparent;
    font-size: var(--type-menu);
}
.feed-controls [aria-current] {
    color: var(--community-accent);
    border-color: currentColor;
    font-weight: 700;
}
.hero-copy-mobile, .mobile-feed-more, .topic-short, #latest [data-screen="mobile"] {
    display: none;
}
#feedSort select {
    min-height: 30px;
    padding-inline: 8px;
    border: 1px solid var(--community-line);
    border-radius: 6px;
    background: var(--community-surface);
    font-size: var(--type-meta);
}
#home .home-feed thead {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.feed-board-col { width: 100px; }
.feed-author-col { width: 102px; }
.feed-time-col { width: 68px; }
.mobile-checkin { display: none; }
#home .home-feed td {
    height: 36px;
    padding: 6px 4px;
    font-size: 14px;
}
#home .home-feed td:first-child {
    width: 100px;
}
#home .home-feed td:first-child a {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 5px;
    color: var(--community-text);
    background: var(--community-tint);
    font-size: 12px;
    font-weight: 600;
}
#home .home-feed .feed-author, #home .home-feed td:last-child {
    width: 70px;
    color: var(--community-muted);
    font-size: var(--type-meta);
}
/* 게시판 이름을 계속 표시하고 종류별 색조는 기존 토큰에서 가져옵니다. */
#home .home-feed [data-board]:is([data-board="lounge"], [data-board="benefits"], [data-board="survival"]) {
    background: light-dark(var(--k-bg-info-soft-200), color-mix(in srgb, var(--k-color-blue-300) 22%, var(--community-surface)));
}
#home .home-feed [data-board]:is([data-board="today"], [data-board="feelings"]) {
    background: light-dark(var(--k-bg-orange-pale), color-mix(in srgb, var(--k-color-warning) 22%, var(--community-surface)));
}
#home .home-feed [data-board]:is([data-board="resignation"], [data-board="humor"]) {
    background: light-dark(var(--k-bg-pink-pale), color-mix(in srgb, var(--k-bg-pink) 22%, var(--community-surface)));
}
#home .home-feed [data-board="pastime"][href] {
    background: light-dark(var(--k-status-success-bg), color-mix(in srgb, var(--k-color-chart-mint) 22%, var(--community-surface)));
}
#home .home-groups {
    display: block;
    border: 1px solid var(--community-line);
    border-radius: 12px;
}
/* 열람 가능한 게시판만 같은 너비로 배치해 제목 행이 빈 열을 만들지 않게 합니다. */
.home-highlight-boards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 10px;
}
#home .home-groups .home-panel {
    padding: 8px 12px;
    border-radius: 8px;
}
#home .home-groups .home-card-title {
    padding: 0;
    border: 0;
    font-size: 14px;
    font-weight: 700;
}
#home .home-groups .reading-compact {
    margin: 4px 0 0;
    padding-inline-start: 1em;
    list-style: disc;
    font-size: 13px;
}
#home .home-groups .reading-compact li {
    margin: 0;
}
#home .home-groups .reading-compact a, #home #popular li a {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
#home .home-rail .home-panel {
    padding: 12px 16px;
}
#home .attendance-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    color: var(--community-accent);
    font-weight: 600;
}
.attendance-count img {
    max-width: 40%;
    height: auto;
    border-radius: 24px;
}
.attendance-online {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--community-muted);
    font-size: var(--type-meta);
    font-variant-numeric: tabular-nums;
}
.attendance-online::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-inline-end: 3px;
    border-radius: 50%;
    background: var(--community-line);
}
.attendance-online[data-ready]::before {
    background: var(--fm-color-success);
}
#home .attendance-summary {
    display: grid;
    align-content: space-between;
    min-height: 154px;
}
#home .attendance-summary strong {
    font-size: 36px;
    font-variant-numeric: tabular-nums;
    color: var(--community-accent);
}
#home .attendance-summary a, #homePoll button {
    width: 100%;
    margin-top: 10px;
    border: 0;
    min-height: 37px;
    padding-block: 5px;
}
#home .home-rail .home-action .home-icon, #home .home-checkin .home-icon {
    width: 16px;
    height: 16px;
}
.state-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.state-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1px 10px;
    padding-block: 3px;
    font-size: 14px;
    line-height: 1.25;
}
.state-icon {
    grid-row: span 2;
    align-self: center;
    width: 32px;
    text-align: center;
    font-size: 19px;
}
.state-list progress {
    appearance: none;
    grid-column: 2 / -1;
    width: 100%;
    height: 5px;
    overflow: hidden;
    border: 0;
    border-radius: 4px;
    background: var(--community-line);
    color: var(--community-primary);
}
.state-list progress::-webkit-progress-bar { background: var(--community-line); }
.state-list progress::-webkit-progress-value { background: var(--community-primary); }
.state-list progress::-moz-progress-bar { background: var(--community-primary); }
#home #homePoll {
    background: linear-gradient(140deg, var(--community-tint), color-mix(in srgb, var(--community-tint) 72%, var(--community-surface)));
}
#homePoll h2 a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--community-accent);
}
#homePoll > a[data-text="pollQuestion"] {
    display: block;
    margin-block: 4px;
    font-weight: 700;
}
#homePoll .alert-choices {
    gap: 4px;
    font-size: 14px;
    padding: 0;
    margin: 6px 0;
}
#homePoll .alert-choices label {
    display: flex;
    align-items: center;
    gap: 6px;
}
#homePoll .alert-choices input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--community-accent);
}
#home #popular ol {
    padding-inline-start: 0;
    list-style: none;
    margin-top: 4px;
}
#popular small {
    font-size: var(--type-meta);
    color: var(--community-muted);
}
.popular-rank {
    min-width: 20px;
    border-radius: 4px;
    text-align: center;
    color: var(--community-muted);
    font-variant-numeric: tabular-nums;
    background: var(--community-bg);
}
#popular li:nth-child(-n+3) .popular-rank {
    background: light-dark(var(--k-bg-pink), color-mix(in srgb, var(--k-bg-pink) 24%, var(--community-surface)));
    color: var(--community-text);
    font-weight: 700;
}
#home #popular li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding-block: 3px;
    font-size: 14px;
    border-bottom: 1px solid var(--community-line);
}
@media (min-width: 768px) {
    #latest .feed-controls {
        margin-block: 8px;
    }
    #latest .home-empty {
        margin-top: 0;
        padding-top: 6px;
        border-top: 0;
    }
    #home .home-feed td:first-child a {
        width: min(100%, 84px);
        text-align: center;
    }
}
@media (max-width: 767px) {
    .home-bar .mobile-search-toggle { display: inline-grid; }
    .home-bar .home-search { display: none; }
    .home-bar-inner:has(.mobile-search-toggle[aria-expanded="true"]) .home-search {
        display: flex;
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        margin-bottom: 4px;
    }
    .community-shell .home-bar-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0 4px;
        min-height: 52px;
        padding: 2px 12px;
    }
    .header-tools { position: relative; gap: 0; }
    .header-account { position: static; }
    .home-bar .header-tools :is(.home-tool, .home-alert) { width: 36px; height: 42px; }
    .home-bar .header-account summary { border: 0; background: transparent; }
    .home-brand img { width: 34px; height: 34px; }
    .community-shell .home-brand { font-size: 20px; }
    .home-brand small { display: none; }
    .mobile-sections {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    .mobile-sections a {
        justify-self: center;
        min-width: 52px;
        text-align: center;
        padding: 7px 3px;
        border-bottom: 2px solid transparent;
        font-size: var(--type-menu);
    }
    .mobile-sections [aria-current] {
        color: var(--community-accent);
        border-bottom-color: currentColor;
        font-weight: 700;
    }
    #home .home-intro { min-height: 157px; padding: 16px 18px; }
    #home .home-intro::after {
        width: min(42%, 140px);
        background-image: url("../../images/community/rest-banner-mobile.png");
        background-size: contain;
    }
    #home .home-intro > div { max-width: 75%; }
    #home .home-intro h1 { font-size: 25px; margin-block: 6px 4px; }
    #home .home-intro small { font-size: 10px; }
    #home .home-intro p { font-size: 13px; }
    #home .home-checkin { min-height: 35px; margin-top: 10px; padding-inline: 18px; }
    .hero-copy-desktop, .desktop-checkin, #home .home-feed colgroup { display: none; }
    .hero-copy-mobile { display: block; }
    .mobile-checkin { display: inline; }
    .home-topics a[data-compact="omit"] { display: none; }
    #home .community-content { scrollbar-width: none; }
    #home .home-layout { padding: 12px; gap: 12px; }
    .home-topics { gap: 5px; }
    .home-topics a { min-height: 66px; font-size: 13px; }
    .home-topics svg { width: 22px; height: 22px; }
    #home #latest { padding: 4px 0 0; overflow: hidden; }
    #latest .home-directory-heading { margin: 0; padding-inline: 12px; min-height: 36px; }
    #latest .home-directory-heading h2 { font-size: 18px; }
    #latest .home-directory-heading .mobile-feed-more { font-size: 24px; padding-inline: 6px; }
    #home .home-layout > main, #home .home-rail { display: contents; }
    #home .home-groups { order: 2; }
    #home .attendance-summary, #home #popular, #home #homePoll { order: 1; }
    #home .feed-controls, #feedSort, .topic-long,
    #home #latest [data-screen="desktop"], .state-list li:nth-child(n+2) { display: none; }
    #home .home-feed tr[data-screen="mobile"] { display: grid; }
    #latest p[data-screen="mobile"] { display: block; }
    .topic-short, .mobile-feed-more { display: inline; }
    #home .home-rail .state-summary { background: var(--community-tint); padding-block: 9px; }
    #home .state-summary .state-icon { width: 44px; line-height: 44px; background: var(--community-surface); border-radius: 50%; }
    #home .home-feed, #home .home-feed tbody { display: block; }
    #home .home-feed tr {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: baseline;
        gap: 2px 8px;
        padding: 6px 14px;
        border-bottom: 1px solid var(--community-line);
    }
    #home .home-feed tr:last-child { border: 0; }
    #home .home-feed tr td {
        width: auto;
        height: auto;
        border: 0;
        padding: 0;
        text-align: start;
    }
    #home .home-feed td:nth-child(-n+2) { grid-column: 1 / -1; }
    #home .home-feed td:nth-child(2) { font-weight: 600; }
    #home .home-feed td.feed-author { width: auto; }
    #home .home-feed time::before { content: "· "; }
    .community-shell .footer-bottom > span { display: none; }
    .community-shell > .site-footer { flex-wrap: nowrap; }
    .community-shell .footer-bottom nav { gap: 8px; }
}
@media (max-width: 520px) {
    .home-highlight-boards {
        grid-auto-flow: row;
    }
}
@media (max-width: 360px) {
    .community-shell .home-brand { font-size: 19px; gap: 2px; }
    .community-shell .home-bar-inner { padding-inline: 8px; }
}
