/* Full app components, using the approved heritage palette from site.css. */
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #502823; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.page-main { min-height: 60vh; padding-bottom: 42px !important; }
.app-header-inner { gap: 28px; }
.nav-shell { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 14px 28px; }
.site-nav, .account-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.site-nav a { padding-block: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.site-nav a[aria-current] { color: var(--accent); border-bottom: 2px solid var(--accent); }
.account-nav { gap: 12px; font-size: .875rem; }
.account-nav a, .nav-button { color: var(--muted); text-decoration: none; }
.account-name { max-width: 15em; overflow-wrap: anywhere; }
.logout-form { margin: 0; }
.nav-button { padding: 0; background: none; border: none; cursor: pointer; }
.site-footer-wrap { border-top: 1px solid var(--rule); }
.page-heading { padding-block: 38px 26px; }
.page-kicker { margin: 0 0 9px; color: var(--accent); font-size: .875rem; letter-spacing: .055em; }
.page-title { margin: 0 0 14px; font-family: var(--font-title); font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.45; font-weight: 400; }
.page-description, .section-description { margin: 0; color: var(--muted); font-size: .95rem; }
.section-description { margin-block: 10px 22px; }
.heading-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.heading-row .page-title, .heading-row p { margin-bottom: 0; }
.heading-row .page-title { min-width: 0; }
.section-title { margin: 0; font-family: var(--font-title); font-size: 1.6rem; font-weight: 400; line-height: 1.5; }
.home-section { margin-top: 42px; }
.home-hero .hero-copy { padding-block: 42px; }
.home-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.home-hero .eyebrow { margin-bottom: 16px; }
.hero-search { display: flex; margin-top: 26px; max-width: 480px; }
.hero-search input { min-width: 0; flex: 1; border-right: 0; }
.demo-notice { border-left: 3px solid var(--gold); background: #eee5d4; padding: 12px 16px; margin-top: 22px; color: #61503b; font-size: .875rem; }
.region-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.region-chips a { display: block; min-width: 56px; padding: 8px 15px; border: 1px solid var(--rule); color: var(--ink); text-align: center; text-decoration: none; font-size: .9rem; }
.region-chips a:hover { background: var(--accent); color: var(--paper-light); border-color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 19px; border: 1px solid var(--accent); border-radius: 2px; font-size: .95rem; line-height: 1.5; text-decoration: none; cursor: pointer; text-align: center; }
.button-primary { color: #fffaf1; background: var(--accent); }
.button-primary:hover { color: white; background: #552c29; }
.button-secondary { color: var(--accent); background: var(--paper-light); }
.button-secondary:hover { color: var(--accent); background: #e9dfce; }
.button-small { padding: 7px 14px; font-size: .875rem; }
.button-danger { background: transparent; border-color: #954b40; color: #88392e; }
.button-danger:hover { color: white; background: #88392e; }
.button:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.text-link { font-size: .9rem; }
.muted { color: var(--muted); }
.full-width { width: 100%; }
.toolbar { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.toolbar label { display: flex; flex-direction: column; gap: 6px; flex: 1 1 120px; font-size: .875rem; }
.toolbar .search-field { flex: 3 1 250px; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #bdb09d; border-radius: 2px; color: var(--ink); background: var(--paper-light); line-height: 1.5; }
input[type=file] { font-size: .875rem; }
textarea { resize: vertical; }
select { min-width: 110px; }
.filter-panel { padding: 24px; border: 1px solid var(--rule); background: rgb(250 246 237 / 55%); }
.filter-panel .action-row { margin-top: 18px; }
.search-toolbar { margin-block: 24px 16px; }
.search-toolbar label { flex: 0 1 160px; }
.search-toolbar .search-field { flex: 1 1 240px; }
.action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.action-row form { margin: 0; }
.result-count { margin-block: 24px 18px; color: var(--muted); font-size: .9rem; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; }
.grid-full { grid-column: 1 / -1; }
.exhibition-card { min-width: 0; border: 1px solid var(--rule); background: var(--paper-light); display: flex; flex-direction: column; }
.poster-link { display: block; text-decoration: none; color: var(--ink); }
.poster { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #eae0cf; }
.poster-placeholder { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 27px 24px; aspect-ratio: 4 / 5; background: #e7ddca; border-bottom: 1px solid var(--rule); color: #443b31; }
.exhibition-card:nth-child(4n+2) .poster-placeholder { background: #dedfd6; color: #354139; }
.exhibition-card:nth-child(4n+3) .poster-placeholder { background: #e9d8cf; color: #67473e; }
.exhibition-card:nth-child(4n+4) .poster-placeholder { background: #d9dfe0; color: #3d4e52; }
.poster-kicker { font-size: .875rem; border-top: 1px solid currentColor; padding-top: 12px; }
.poster-heading { font-family: var(--font-title); font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.6; }
.poster-footnote { font-size: .875rem; opacity: .86; }
.card-body { display: flex; flex-direction: column; padding: 18px; flex: 1; }
.badge-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.badge { padding: 5px 8px; background: #eee3d6; color: #693e35; font-size: .8rem; font-weight: 500; line-height: 1.25; border-radius: 2px; white-space: normal; }
.badge-muted { background: #ebe7df; color: #5b564e; }
.badge-demo { background: #f2e8cb; color: #6b541d; }
.badge-ending { background: #ecd7d0; color: #873c30; }
.card-title { margin: 0 0 9px; font-size: 1.12rem; font-weight: 600; line-height: 1.65; }
.card-title a, .board-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover, .board-title a:hover { color: var(--accent); text-decoration: underline; }
.card-meta { color: var(--muted); margin: 0 0 6px; font-size: .875rem; }
.card-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--rule); padding-top: 13px; margin-top: auto; background: none; font-size: .875rem; }
.rating { color: #80542c; font-size: .9rem; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.review-card { padding: 26px; border: 1px solid var(--rule); background: rgb(250 246 237 / 65%); }
.review-card .rating { margin-top: 12px; }
.review-card > p:not(.rating) { color: var(--muted); font-size: .9rem; }
.board-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--rule); gap: 5px; }
.board-tabs a { padding: 12px 18px; color: var(--muted); text-decoration: none; font-size: .95rem; }
.board-tabs a[aria-current] { color: var(--accent); border-bottom: 3px solid var(--accent); font-weight: 600; }
.board-list { border-top: 1px solid var(--rule); }
.board-row { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 25px 5px; border-bottom: 1px solid var(--rule); }
.board-row-content { min-width: 0; }
.board-title { font-size: 1.15rem; line-height: 1.7; font-weight: 600; margin: 0 0 8px; }
.board-meta { margin: 0; color: var(--muted); font-size: .875rem; }
.board-excerpt { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.board-counts { display: flex; gap: 14px; flex-wrap: wrap; flex: 0 0 130px; color: var(--muted); font-size: .875rem; }
.breadcrumb-line { margin: 30px 0 22px; color: var(--muted); font-size: .875rem; }
.detail-layout { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(0, 1.6fr); gap: 42px; align-items: start; margin-top: 25px; }
.detail-poster { width: 100%; height: auto; display: block; }
.poster-placeholder.detail-poster { display: flex; }
.detail-poster .poster-heading { font-size: 2.3rem; }
.detail-main .page-title { font-size: clamp(1.7rem, 2.8vw, 2.35rem); margin-block: 15px; }
.detail-museum { font-size: 1.1rem; color: var(--muted); }
.exhibition-facts { margin: 22px 0; border-top: 1px solid var(--rule); }
.exhibition-facts > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; border-bottom: 1px solid var(--rule); padding: 14px 0; font-size: .95rem; }
.exhibition-facts dt { color: var(--muted); font-weight: 500; }
.exhibition-facts dd { margin: 0; overflow-wrap: anywhere; }
.prose { font-size: 1rem; line-height: 1.95; overflow-wrap: anywhere; }
.prose p { margin-bottom: 1.2em; }
.description-panel { border-block: 1px solid var(--rule); padding-block: 25px; margin-top: 20px; }
.reading-width { max-width: 850px; margin-inline: auto; }
.article-title { overflow-wrap: anywhere; }
.related-exhibition { padding: 16px 20px; background: #ece3d4; margin-bottom: 30px; font-size: .95rem; }
.related-exhibition a { margin-left: 8px; }
.article-image { max-width: 100%; height: auto; max-height: 800px; object-fit: contain; display: block; margin: 24px auto; }
.article-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 24px; }
.article-gallery .article-image { width: 100%; height: 100%; max-height: 520px; margin: 0; border-radius: 16px; object-fit: cover; }
.existing-attachments { margin-bottom: 22px; padding: 16px; border: 1px solid var(--rule); border-radius: 16px; background: #f9fafb; }
.attachment-thumbnails { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.attachment-thumbnails img { width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover; }
.reply-composer { margin-top: 12px; }
.reply-composer summary { width: fit-content; color: #374151; font-size: .875rem; font-weight: 600; cursor: pointer; }
.reply-composer form { display: grid; gap: 10px; margin-top: 12px; padding: 16px; border: 1px solid #d1d5db; border-radius: 14px; background: #f9fafb; }
.reply-target { order: -1; margin: 0; color: var(--muted); font-size: .82rem; }
.comment-reply { position: relative; margin: 16px 0 0 28px; padding: 18px; border: 1px solid #e5e7eb; border-left: 4px solid #111827; border-radius: 0 16px 16px 0; background: #f9fafb; }
.comment-reply::before { content: "답글"; display: inline-block; margin-bottom: 8px; color: #6b7280; font-size: .75rem; font-weight: 700; }
.article-actions { border-block: 1px solid var(--rule); padding-block: 20px; margin-top: 30px; }
.comments-section { padding-block: 30px; }
.comment { padding-block: 20px; border-bottom: 1px solid var(--rule); }
.comment .heading-row { margin-bottom: 10px; }
.comment .prose p:last-child { margin-bottom: 0; }
.comment-list { margin-block: 18px; }
.comment-form { margin-top: 25px; }
.comment-form-title { margin: 0 0 16px; font-size: 1rem; }
.login-prompt { padding: 20px; border: 1px solid var(--rule); }
.auth-shell { max-width: 560px; margin: 0 auto; padding-bottom: 28px; }
.form-panel { padding: 28px; border: 1px solid var(--rule); background: rgb(250 246 237 / 75%); }
.field { margin-bottom: 22px; }
.field > label { display: block; margin-bottom: 8px; font-size: .95rem; font-weight: 600; }
.required-mark { color: var(--accent); margin-left: 5px; }
.help-text { color: var(--muted); font-size: .875rem; margin-top: 7px; }
.help-text ul { padding-left: 20px; margin: 0; }
.field-error, .form-errors { color: #902e24; font-size: .9rem; }
.field-error p { margin: 5px 0 0; }
.form-errors { border: 1px solid #bb8070; background: #f4e3db; padding: 14px; margin-bottom: 22px; }
.form-errors ul { margin: 0; padding-left: 20px; }
.field-invalid input, .field-invalid textarea, .field-invalid select { border-color: #963c32; }
.auth-footnote { text-align: center; font-size: .95rem; margin-top: 22px; }
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 25px; border: 1px solid var(--rule); background: var(--paper-light); text-decoration: none; color: var(--ink); }
.stat-card strong { font-family: var(--font-title); font-size: 2rem; font-weight: 400; }
.stat-card.active { border-color: var(--accent); background: #ecdfd4; }
.pagination { justify-content: center; margin-top: 32px; }
.pagination-steps { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: center; }
.page-link { border: 1px solid var(--rule); background: var(--paper-light); color: var(--ink); padding: 9px 13px; font-size: .875rem; }
.page-link:hover { color: var(--accent); background: #e8ddcb; border-color: var(--accent); }
.page-link.is-disabled { color: #81776b; background: transparent; }
.page-current { padding-inline: 12px; font-size: .9rem; }
.message-region { padding-top: 18px !important; }
.site-message { padding: 12px 18px; border: 1px solid #a6aa8e; background: #eeefe2; margin-bottom: 10px; font-size: .95rem; }
.site-message p { margin: 0; }
.site-message-error { border-color: #b68479; background: #f4e3db; }
.empty-state .button { margin-top: 16px; }
.empty-state > p:last-of-type { color: var(--muted); }
@media (max-width: 1023px) {
  .app-header-inner { flex-wrap: wrap; gap: 16px; }
  .nav-shell { width: 100%; justify-content: space-between; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-card:last-child:nth-child(3) { grid-column: 1 / -1; }
  .poster-heading { font-size: 1.8rem; }
}
@media (max-width: 767px) {
  .site-nav, .account-nav { gap: 12px; }
  .site-nav a { font-size: .875rem; }
  .account-nav { padding-top: 7px; }
  .nav-shell { gap: 5px; }
  .page-heading { padding-top: 28px; }
  .heading-row { gap: 12px; }
  .section-title { font-size: 1.4rem; }
  .home-hero .hero-copy { padding: 32px 22px 240px; }
  .home-hero h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .home-hero .hero-art { height: 260px; }
  .hero-search { margin-top: 18px; }
  .hero-search input { font-size: .875rem; }
  .hero-search .button { padding-inline: 14px; }
  .home-section { margin-top: 32px; }
  .card-grid { gap: 16px; }
  .card-body { padding: 14px; }
  .card-title { font-size: 1rem; }
  .card-footer { margin-top: 10px; }
  .poster-placeholder { padding: 20px 16px; }
  .poster-kicker, .poster-footnote { font-size: .875rem; }
  .poster-heading { font-size: 1.45rem; }
  .detail-layout { grid-template-columns: 1fr; gap: 24px; }
  .detail-aside { max-width: 360px; width: 100%; margin-inline: auto; }
  .detail-poster .poster-heading { font-size: 2rem; }
  .board-tabs a { padding: 10px 11px; font-size: .875rem; }
  .board-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .board-counts { flex-basis: auto; }
  .filter-panel, .form-panel { padding: 20px; }
  .article-gallery { grid-template-columns: 1fr; }
  .attachment-thumbnails { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .comment-reply { margin-left: 14px; padding: 14px; }
  .profile-grid { gap: 8px; }
  .stat-card { flex-direction: column; padding: 16px 9px; gap: 5px; font-size: .875rem; }
  .stat-card strong { font-size: 1.5rem; }
  .page-link-edge { display: none; }
}
@media (max-width: 479px) {
  .card-grid, .review-grid { grid-template-columns: 1fr; }
  .review-card:last-child:nth-child(3) { grid-column: auto; }
  .poster, .poster-placeholder { aspect-ratio: 5 / 4; }
  .poster-heading { font-size: 1.8rem; }
  .poster-placeholder.detail-poster { aspect-ratio: 4 / 5; }
  .exhibition-facts > div { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
  .search-toolbar .search-field { flex-basis: 100%; }
  .search-toolbar > label:not(.search-field) { flex: 1; }
  .toolbar label { flex: 1 1 110px; }
  .form-panel { padding: 20px 16px; }
}
