.home-page { padding-top: var(--site-header-height); }
.home-page.preview-hide-nav { padding-top: 0; }
.home-dashboard {
  --home-card-gap: 20px;
  --home-top-gap: 24px;
  --home-header-gap: 0px;
  --home-content-width: min(1260px, calc(100vw - 64px));
  --home-title-width: 430px;
  position: relative;
  isolation: isolate;
  width: var(--home-content-width);
  margin: var(--home-top-gap) auto 0;
}
.home-overview { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; gap: 18px; min-height: calc(100svh - var(--site-header-height) - var(--home-header-gap) - var(--home-top-gap)); padding-bottom: 24px; }
.home-side-photos { display: none; }
@media (min-width: 1024px) {
  .home-side-photos { --home-photo-width: min(720px, calc((100vw - var(--home-title-width)) / 2 - 24px)); display: block; position: absolute; grid-area: 1 / 1 / 2 / 2; z-index: -1; inset: 0 auto -60px 50%; width: 100vw; transform: translateX(-50%); overflow: hidden; pointer-events: none; user-select: none; }
  .home-side-photo { position: absolute; bottom: 12px; width: auto; max-width: var(--home-photo-width); height: auto; max-height: min(420px, calc(100% - 24px)); object-fit: contain; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(42, 32, 20, .12); filter: saturate(.9); opacity: var(--managed-hero-opacity, 1); transition: opacity .3s ease; }
  .home-side-photo:not(.is-ready) { opacity: 0; }
  .home-side-photo-left { left: calc((100% - var(--home-title-width)) / 4); transform: translateX(-50%) rotate(-1deg); }
  .home-side-photo-right { right: calc((100% - var(--home-title-width)) / 4); transform: translateX(50%) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .home-side-photo { transition: none; }
}
.home-column { display: flex; flex-direction: column; gap: var(--home-card-gap); min-width: 0; }
.home-column[data-home-column="sidebar"] { width: min(var(--home-title-width), 100%); justify-self: center; gap: 16px; }
.home-column[data-home-column="updates"] { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
@media (min-width: 1101px) {
  .home-column[data-home-column="updates"] {
    width: calc(100vw - 64px);
    justify-self: center;
  }
}
.home-column > section { min-width: 0; margin: 0; }
.home-about { position: relative; left: 50%; width: min(1640px, calc(100vw - 64px)); margin: 0 0 40px; padding-top: 28px; transform: translateX(-50%); scroll-margin-top: var(--site-header-height); }
.home-about #join { scroll-margin-top: calc(var(--site-header-height) + 16px); }
.home-identity { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 12px; text-align: center; }
.home-identity > p { margin: 0 0 12px; color: var(--red); font: 700 11px/1.4 "Noto Sans KR", sans-serif; letter-spacing: 4px; }
.home-identity h1 { display: grid; justify-items: center; width: 100%; margin: 0; font: 900 clamp(90px, 8.8vw, 124px)/.78 "STKaiti", "KaiTi", "Noto Serif KR", "Batang", serif; letter-spacing: 0; text-shadow: 0 3px 0 rgba(255,255,255,.25); }
.home-identity h1 span { display: block; min-width: 2.15em; white-space: nowrap; }
.home-identity h1 span:last-child { color: var(--red-dark); }
.home-identity-links { display: grid; grid-template-columns: minmax(0, 1fr); width: min(132px, 100%); margin-top: 16px; }
.home-identity-links a { display: flex; justify-content: center; gap: 8px; align-items: center; min-height: 44px; padding: 10px 8px; border: 0; border-bottom: 1px solid rgba(24, 24, 18, .45); color: var(--ink); background: transparent; font-weight: 700; font-size: 12px; transition: color .16s ease, border-color .16s ease; }
.home-identity-links a:hover { color: var(--red-dark); border-bottom-color: var(--red-dark); }
.home-identity-links a span { color: inherit; }
.home-page #guide { scroll-margin-top: 96px; }
.home-identity .home-identity-copy { width: 100%; margin-top: 22px; font-size: 14px; color: var(--muted); line-height: 1.8; word-break: keep-all; }
.home-card { border: 1px solid var(--line); background: var(--paper-light); padding: 22px; }
.home-card { box-shadow: 0 8px 24px rgba(42, 32, 20, .045); }
.home-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.home-card-heading h2 { margin: 0; font-size: 23px; line-height: 1.3; }
.home-card-heading > a, .home-card-heading button { flex: 0 0 auto; color: var(--muted); font: 500 12px/1.5 "Noto Sans KR", sans-serif; }
.home-card-heading a:hover, .home-card-heading button:hover { color: var(--red); }
.home-card-heading button { border: 0; background: transparent; padding: 6px 0; cursor: pointer; }
.home-feed { overflow-wrap: anywhere; }
.home-empty { display: grid; align-content: center; min-height: 142px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.home-empty strong { color: var(--ink); font-size: 15px; font-weight: 500; }
.home-retry { width: fit-content; margin-top: 8px; border: 0; border-bottom: 1px solid currentColor; background: transparent; padding: 2px 0; font: inherit; cursor: pointer; }
.home-notice { display: flex; flex-direction: column; min-height: 280px; border-top: 2px solid var(--red-dark); scroll-margin-top: calc(var(--site-header-height) + 16px); }
.home-notice > .section-heading { flex: 0 0 auto; margin-bottom: 12px; }
.home-notice-content { min-height: 0; max-height: 340px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: rgba(24, 24, 18, .3) transparent; padding-right: 8px; }
.home-notice .notice-board { border-top: 1px solid var(--line); }
.home-notice .notice-board article { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 0; }
.home-notice .notice-board article > div { min-width: 0; }
.home-notice .notice-board article span { font-size: 11px; }
.home-notice .notice-board article strong { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.home-notice .notice-board-body { font-size: 12px; line-height: 1.8; }
.home-notice .notice-board:empty::before { display: block; padding: 20px 0; color: var(--muted); font-size: 13px; content: "등록된 공지가 없습니다."; }
.home-notice .notice-pagination { flex: 0 0 auto; gap: 4px; }
.home-notice .notice-page-numbers { flex: 1; flex-wrap: wrap; justify-content: center; gap: 2px; }
.home-notice .notice-pagination button { width: 30px; }
.home-party.home-card { display: flex; flex-direction: column; padding: 22px; border-top: 2px solid var(--red-dark); }
.home-party .home-card-heading { gap: 12px; margin-bottom: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.home-party .home-card-heading h2 { font-size: 23px; }
.home-party .home-card-heading > a { display: flex; align-items: center; min-height: 28px; }
.home-party .home-empty { min-height: 80px; padding: 12px 0; font-size: 12px; line-height: 1.7; }
.home-party .home-empty strong { font-size: 13px; }
.home-party-list { list-style: none; padding: 0; margin: 0; }
.home-party-list li + li { border-top: 1px solid rgba(24, 24, 18, .1); }
.home-party-link { display: grid; grid-template-columns: 72px minmax(0, 1fr) 58px; gap: 2px 8px; align-items: center; min-height: 44px; padding: 6px 0; line-height: 1.5; transition: background-color .16s ease; }
.home-party-category { grid-column: 1; grid-row: 2; justify-self: start; max-width: 100%; padding: 2px 6px; border: 1px solid rgba(24, 24, 18, .1); color: var(--muted); background: rgba(24, 24, 18, .025); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-party-title { grid-column: 1 / 3; grid-row: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 500; }
.home-party-time { grid-column: 2; grid-row: 2; color: var(--muted); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.home-party-count { grid-column: 3; grid-row: 1 / span 2; display: flex; align-items: baseline; justify-content: center; gap: 3px; min-width: 0; padding: 4px 6px; border-radius: 2px; color: var(--red-dark); background: rgba(117, 23, 15, .065); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-party-count strong { font-size: 13px; font-weight: 700; }
.home-party-link:hover, .home-party-link:focus-visible { background: rgba(117, 23, 15, .035); }
.home-party-link:hover .home-party-title, .home-party-link:focus-visible .home-party-title { color: var(--red-dark); }
.home-news { padding: 22px; border-top: 2px solid var(--red-dark); }
.home-news .home-card-heading { margin-bottom: 18px; }
.home-news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-news-item { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; }
.home-news-media { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; max-height: 210px; overflow: hidden; background: #e7dfcf; }
.home-news-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.home-news-media img.is-loading { opacity: 0; }
.home-news-placeholder { color: #91816e; font: 700 16px/1.3 "Gowun Batang", serif; }
.home-news-meta { display: flex; flex-wrap: wrap; gap: 3px 8px; font-size: 11px; color: var(--muted); }
.home-news-item h3 { margin: 0; font-family: "Noto Sans KR", sans-serif; font-size: 16px; line-height: 1.65; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-news-item a:hover { color: var(--red); }
.home-news-item p { display: none; }
.home-news-open { align-self: flex-start; margin-top: auto; padding-top: 2px; color: var(--red-dark); font-size: 12px; }
.home-dashboard :focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
@media (min-width: 851px) {
  .home-notice-content { flex: 1; height: 0; max-height: none; contain: size; }
  .home-party #home-party-feed { display: grid; flex: 1; }
  .home-party-list { display: grid; grid-auto-rows: minmax(44px, 1fr); }
  .home-party-list > li { display: grid; min-width: 0; }
}
@media (max-width: 850px) {
  .home-page { padding-top: calc(var(--site-header-height) + 8px); }
  .home-dashboard { --home-header-gap: 8px; }
}
@media (max-width: 1150px) {
  .home-dashboard { --home-card-gap: 16px; }
  .home-card { padding: 18px; }
  .home-card-heading h2 { font-size: 21px; }
  .home-party.home-card { padding: 18px; }
  .home-party .home-card-heading h2 { font-size: 21px; }
  .home-news-item { gap: 9px; }
  .home-news-list { gap: 16px; }
}
@media (min-width: 851px) and (max-width: 1100px) {
  .home-column[data-home-column="updates"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-party { grid-column: 1 / -1; }
}
@media (max-width: 850px) {
  .home-dashboard { --home-content-width: calc(100vw - 40px); }
  .home-column[data-home-column="updates"] { grid-template-columns: minmax(0, 1fr); }
  .home-identity h1 { font-size: 108px; }
}
@media (max-width: 650px) {
  .home-dashboard { --home-top-gap: 24px; --home-content-width: calc(100vw - 32px); }
  .home-identity { padding: 0; }
  .home-identity h1 { font-size: clamp(88px, 24vw, 108px); }
  .home-identity .home-identity-copy { font-size: 13px; }
  .home-identity-links { gap: 6px; }
  .home-identity-links a { padding-inline: 9px; font-size: 11px; }
  .home-card { padding: 20px; }
  .home-news { padding: 20px; }
  .home-news-list { grid-template-columns: 1fr; }
  .home-news-item { gap: 10px; }
  .home-news-item + .home-news-item { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 16px; }
}
@media (min-width: 851px) and (max-height: 850px) {
  .home-dashboard { --home-top-gap: 12px; }
  .home-identity > p { margin-bottom: 8px; }
  .home-identity h1 { font-size: clamp(80px, calc(24svh - 84px), 112px); }
  .home-identity .home-identity-copy { margin-top: 16px; font-size: 13px; line-height: 1.65; }
  .home-identity-links { margin-top: 12px; }
  .home-identity-links a { min-height: 40px; padding-block: 8px; }
  .home-notice, .home-news, .home-party.home-card { padding: 18px; }
  .home-card-heading h2, .home-party .home-card-heading h2 { font-size: 21px; }
  .home-news .home-card-heading { margin-bottom: 12px; }
  .home-news-media { max-height: clamp(96px, calc(100svh - 640px), 170px); }
  .home-news-item { gap: 8px; }
  .home-news-item h3 { font-size: 14px; line-height: 1.6; -webkit-line-clamp: 2; }
}
@media (min-width: 851px) and (max-height: 700px) {
  .home-dashboard { --home-top-gap: 8px; }
  .home-overview { gap: 12px; padding-bottom: 16px; }
  .home-identity > p { margin-bottom: 4px; }
  .home-identity h1 { font-size: 64px; }
  .home-identity .home-identity-copy { margin-top: 10px; font-size: 12px; line-height: 1.5; }
  .home-identity-links { margin-top: 10px; }
  .home-identity-links a { min-height: 32px; padding-block: 5px; }
  .home-notice, .home-news, .home-party.home-card { padding: 12px; }
  .home-news-media { max-height: 80px; }
}
@media (min-width: 851px) and (max-height: 850px) {
  .home-party-link { padding-block: 4px; line-height: 1.4; }
  .home-party-title { font-size: 13px; }
  .home-party-category { padding-block: 1px; font-size: 9px; }
  .home-party-time { font-size: 10px; }
}

@media (max-width: 850px) {
  .home-about { width: calc(100vw - 40px); }
}
@media (max-width: 650px) {
  .home-about { width: calc(100vw - 32px); padding-top: 24px; margin-bottom: 32px; }
}
