/* Shared festival article and directory styles. Original photos keep their aspect ratio. */
body.fm-editorial {
  --fm-paper: #faf8f3;
  --fm-ink: #262c29;
  --fm-muted: #656b66;
  --fm-accent: #b43f2d;
  --fm-line: #dfdfd5;
  margin: 0;
  background: var(--fm-paper);
  color: var(--fm-ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
.fm-site, .fm-site * { box-sizing: border-box; }
.fm-site { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.fm-site :is(p, h1, h2, h3, figure, ol, ul, dl) { margin: 0; }
.fm-site a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.fm-site a:hover { color: var(--fm-accent); }
.fm-site a:focus-visible, .fm-site [tabindex]:focus-visible { outline: 2px solid var(--fm-accent); outline-offset: 5px; }
.fm-skip { position: fixed; z-index: 1000; top: -80px; left: 20px; padding: 10px 20px; background: #fff; color: #262c29; }
.fm-skip:focus { top: 12px; }
.fm-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; border-bottom: 1px solid var(--fm-line); }
.fm-brand { display: flex; align-items: baseline; gap: 17px; font-size: 25px; font-weight: 800; letter-spacing: -.055em; text-decoration: none; }
.fm-brand span { color: var(--fm-muted); font-size: 13px; font-weight: 400; letter-spacing: -.015em; }
.fm-header nav { display: flex; gap: 28px; font-size: 14px; }
.fm-header nav a { text-decoration: none; }
.fm-hero { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 52px; padding: 54px 0 52px; border-bottom: 1px solid var(--fm-line); }
.fm-breadcrumb { display: flex; gap: 10px; color: var(--fm-muted); font-size: 12px; margin-bottom: 25px; }
.fm-breadcrumb a { text-decoration: none; }
.fm-site .fm-kicker { color: var(--fm-accent); font-size: 13px; font-weight: 700; letter-spacing: .035em; margin-bottom: 14px; }
.fm-site h1 { font-size: clamp(31px, 3.35vw, 43px); font-weight: 750; letter-spacing: -.055em; line-height: 1.34; word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty; }
.fm-site .fm-deck { color: #505a53; font-size: 17px; line-height: 1.85; margin-top: 22px; word-break: keep-all; overflow-wrap: anywhere; }
.fm-site .fm-byline { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 23px; color: var(--fm-muted); font-size: 12px; }
.fm-byline a { text-decoration: none; font-weight: 650; color: var(--fm-ink); }
.fm-hero-photo img { display: block; width: 100%; height: auto; border-radius: 3px; }
.fm-hero-photo figcaption { margin-top: 10px; color: var(--fm-muted); font-size: 11px; line-height: 1.7; }
.fm-hero-text-only { grid-template-columns: 1fr; max-width: 820px; }
.fm-reading-layout { display: grid; grid-template-columns: minmax(0, 740px) minmax(0, 248px); gap: 72px; padding-top: 38px; }
.fm-content { min-width: 0; overflow-wrap: anywhere; }
.fm-content p { margin-block: 14px; }
.fm-content :is(h2, h3, section) { scroll-margin-top: 30px; }
.fm-content h2 { margin: 54px 0 17px; font-size: 28px; font-weight: 750; letter-spacing: -.045em; line-height: 1.4; word-break: keep-all; }
.fm-content h3 { margin: 0 0 12px; font-size: 23px; font-weight: 700; letter-spacing: -.045em; line-height: 1.45; word-break: keep-all; }
.fm-content h3:not(.fm-festival h3) { margin-top: 31px; }
.fm-content :is(ul, ol) { padding-left: 22px; margin: 12px 0 20px; }
.fm-content li { margin-block: 7px; padding-left: 2px; }
.fm-content a { color: #934031; }
.fm-content strong { font-weight: 700; }
.fm-content .fm-lead { margin-top: 0; font-size: 19px; line-height: 1.9; letter-spacing: -.025em; }
.fm-content .fm-summary { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 22px; padding: 24px 0; margin: 23px 0 4px; border-block: 1px solid var(--fm-line); }
.fm-summary dt { font-size: 12px; color: var(--fm-muted); margin-bottom: 4px; }
.fm-summary dd { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.6; }
.fm-content .fm-mobile-toc { display: none; }
.fm-sidebar { position: sticky; top: 28px; align-self: start; }
.fm-toc { margin-top: 8px; }
.fm-toc p { font-size: 13px; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--fm-line); }
.fm-toc ol { list-style: none; padding: 12px 0; counter-reset: contents; }
.fm-toc li { counter-increment: contents; }
.fm-toc a { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; color: var(--fm-muted); font-size: 13px; text-decoration: none; line-height: 1.7; }
.fm-toc a::before { content: counter(contents, decimal-leading-zero); font-size: 11px; color: #85897e; font-variant-numeric: tabular-nums; }
.fm-sidebar-note { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--fm-line); color: var(--fm-muted); font-size: 12px; line-height: 1.8; }
.fm-sidebar-note p { color: var(--fm-ink); font-size: 13px; margin-bottom: 7px; }
.fm-date-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 22px 0; border-block: 1px solid var(--fm-line); }
.fm-date-grid .fm-day { color: var(--fm-accent); font-size: 13px; margin: 0 0 11px; font-weight: 700; }
.fm-date-grid ul { padding-left: 17px; margin: 0; font-size: 14px; line-height: 1.8; }
.fm-date-grid li { margin-top: 0; margin-bottom: 10px; }
.fm-content .fm-note { font-size: 14px; color: var(--fm-muted); line-height: 1.8; }
.fm-table-wrap { width: 100%; overflow-x: auto; margin: 18px 0; border: 1px solid var(--fm-line); border-radius: 3px; background: #fffdfa; }
.fm-table-wrap table { width: 100%; min-width: 670px; border-collapse: collapse; font-size: 13px; line-height: 1.7; text-align: left; }
.fm-table-wrap caption { text-align: left; padding: 15px 17px; color: var(--fm-muted); font-size: 12px; }
.fm-table-wrap th, .fm-table-wrap td { padding: 12px 16px; border-top: 1px solid #e8e7df; vertical-align: top; }
.fm-table-wrap thead th { background: #efeee6; color: #50564f; font-weight: 600; }
.fm-table-wrap tbody th { width: 27%; font-weight: 550; }
.fm-table-wrap td:nth-child(2) { width: 15%; white-space: nowrap; }
.fm-table-wrap td:nth-child(3) { width: 20%; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fm-table-wrap tr:nth-child(even) { background: #f8f7f1; }
.fm-facts-table table { min-width: 0; font-size: 15px; }
.fm-facts-table tbody th { width: 23%; min-width: 70px; }
.fm-facts-table td:nth-child(2) { width: auto; white-space: normal; }
.fm-content .fm-festival { padding: 28px 0 30px; border-bottom: 1px solid var(--fm-line); }
.fm-content .fm-festival:last-of-type { border-bottom: none; }
.fm-content .fm-place { color: var(--fm-accent); font-size: 12px; font-weight: 600; letter-spacing: .025em; margin: 0 0 9px; }
.fm-content .fm-facts { color: var(--fm-muted); font-size: 13px; line-height: 1.85; padding-left: 13px; border-left: 2px solid #d8d5c6; margin: 15px 0 20px; }
.fm-content .fm-official { margin: 18px 0 0; font-size: 13px; }
.fm-official a { font-weight: 550; }
.fm-content figure { margin: 23px 0 7px; }
.fm-content figure img { display: block; width: 100%; height: auto; border-radius: 2px; }
.fm-content figcaption { margin-top: 9px; color: var(--fm-muted); font-size: 11px; line-height: 1.75; }
.fm-content .fm-checklist { padding: 2px 0 0; list-style: none; }
.fm-checklist li { padding: 15px 0 15px 25px; margin: 0; border-bottom: 1px solid var(--fm-line); position: relative; }
.fm-checklist li::before { content: ""; position: absolute; left: 0; top: 26px; width: 8px; height: 8px; border: 1px solid var(--fm-accent); }
.fm-content .fm-sources { color: var(--fm-muted); font-size: 13px; line-height: 1.9; margin: 45px 0 70px; padding-top: 25px; border-top: 1px solid var(--fm-line); }
.fm-sources h2 { font-size: 20px; margin: 0 0 15px; color: var(--fm-ink); }
.fm-sources ul { padding-left: 18px; }
.fm-footer { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 31px 0 40px; border-top: 1px solid var(--fm-line); font-size: 12px; color: var(--fm-muted); }
.fm-footer p { display: flex; gap: 20px; }
.fm-footer p a { color: var(--fm-ink); font-weight: 700; text-decoration: none; }
.fm-footer nav { display: flex; gap: 22px; }
.fm-footer nav a { text-decoration: none; }
.fm-directory-hero { padding: 46px 0 34px; }
.fm-directory-hero h1 { font-size: clamp(30px, 3.4vw, 43px); }
.fm-category-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 17px 0; border-block: 1px solid var(--fm-line); font-size: 14px; }
.fm-category-nav a { color: var(--fm-muted); text-decoration: none; }
.fm-category-nav a[aria-current="page"] { color: var(--fm-accent); font-weight: 650; }
.fm-post-card { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 40px; padding: 34px 0; border-bottom: 1px solid var(--fm-line); }
.fm-post-card:last-child { border-bottom: none; }
.fm-card-photo img { display: block; width: 100%; height: auto; border-radius: 3px; }
.fm-card-photo figcaption { margin-top: 8px; color: var(--fm-muted); font-size: 10px; line-height: 1.7; }
.fm-post-card h2 { font-size: clamp(24px, 2.35vw, 31px); line-height: 1.5; letter-spacing: -.045em; font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; }
.fm-post-card h2 a { display: block; text-decoration: none; }
.fm-site .fm-card-excerpt { margin-top: 17px; color: var(--fm-muted); font-size: 15px; line-height: 1.9; }
.fm-read-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; margin-top: 17px; font-size: 14px; font-weight: 600; }
.fm-read-link span { color: var(--fm-accent); }
.fm-site .pagination { margin: 24px 0 45px; }
.fm-site .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.fm-site .page-numbers { min-width: 32px; text-align: center; }
.fm-empty { padding: 40px 0; color: var(--fm-muted); }
.fm-next-festivals { margin-top: 45px; padding: 30px 0 45px; border-top: 1px solid var(--fm-line); }
.fm-next-festivals h2 { font-size: 26px; line-height: 1.4; letter-spacing: -.045em; }
.fm-site .fm-next-intro { margin-top: 9px; color: var(--fm-muted); font-size: 14px; }
.fm-site .fm-next-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; padding: 0; list-style: none; }
.fm-next-list li { min-width: 0; }
.fm-next-list a { display: block; height: 100%; padding: 18px; border: 1px solid var(--fm-line); border-radius: 3px; text-decoration: none; }
.fm-next-status { color: var(--fm-accent); font-size: 12px; font-weight: 650; }
.fm-next-list h3 { margin-top: 8px; font-size: 18px; line-height: 1.6; letter-spacing: -.03em; word-break: keep-all; overflow-wrap: anywhere; }
.fm-site .fm-next-date { margin-top: 12px; color: var(--fm-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.fm-next-date time { white-space: nowrap; }
@media (max-width: 980px) {
  .fm-site { width: calc(100% - 48px); }
  .fm-hero { gap: 30px; padding-block: 38px; }
  .fm-hero h1 { font-size: 34px; }
  .fm-reading-layout { grid-template-columns: minmax(0, 1fr); }
  .fm-sidebar { display: none; }
  .fm-content .fm-mobile-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 32px; font-size: 13px; line-height: 2; }
}
@media (max-width: 640px) {
  body.fm-editorial { font-size: 16px; }
  .fm-site { width: calc(100% - 40px); }
  .fm-header { min-height: 78px; gap: 12px; }
  .fm-brand { font-size: 23px; }
  .fm-brand span { display: none; }
  .fm-header nav { gap: 15px; font-size: 12px; }
  .fm-hero { grid-template-columns: 1fr; gap: 28px; padding: 29px 0 26px; }
  .fm-breadcrumb { margin-bottom: 20px; }
  .fm-hero h1 { font-size: 31px; line-height: 1.4; }
  .fm-site .fm-deck { font-size: 16px; margin-top: 17px; }
  .fm-site .fm-byline { font-size: 11px; gap: 4px 12px; margin-top: 17px; }
  .fm-hero-photo figcaption { font-size: 10px; }
  .fm-reading-layout { padding-top: 25px; }
  .fm-content .fm-lead { font-size: 18px; }
  .fm-content .fm-summary { gap: 12px; padding-block: 20px; }
  .fm-summary dt { font-size: 11px; }
  .fm-summary dd { font-size: 13px; }
  .fm-content h2 { font-size: 25px; margin-top: 40px; }
  .fm-content h3 { font-size: 21px; }
  .fm-date-grid { grid-template-columns: 1fr; gap: 0; padding: 5px 0; }
  .fm-date-grid > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 16px; padding: 18px 0 10px; }
  .fm-date-grid > div + div { border-top: 1px solid var(--fm-line); }
  .fm-date-grid .fm-day { font-size: 13px; }
  .fm-date-grid ul { font-size: 14px; }
  .fm-content .fm-festival { padding: 25px 0; }
  .fm-content .fm-facts { font-size: 12px; }
  .fm-table-wrap::before { content: "표를 좌우로 밀어 날짜와 요금을 확인하세요."; display: block; position: sticky; left: 0; width: 100%; padding: 10px 14px; background: #efeee6; border-bottom: 1px solid var(--fm-line); color: var(--fm-muted); font-size: 11px; }
  .fm-facts-table::before { display: none; }
  .fm-facts-table table { font-size: 14px; }
  .fm-facts-table th, .fm-facts-table td { padding: 11px 12px; }
  .fm-directory-hero { padding: 29px 0 27px; }
  .fm-directory-hero h1 { font-size: 30px; }
  .fm-category-nav { font-size: 13px; padding-block: 15px; gap: 12px 20px; }
  .fm-post-card { grid-template-columns: 1fr; gap: 22px; padding-block: 26px; }
  .fm-post-card h2 { font-size: 25px; }
  .fm-site .fm-card-excerpt { margin-top: 12px; font-size: 15px; }
  .fm-read-link { margin-top: 12px; }
  .fm-content .fm-sources { margin-bottom: 40px; }
  .fm-next-festivals { margin-top: 32px; padding-block: 25px 32px; }
  .fm-next-festivals h2 { font-size: 23px; }
  .fm-site .fm-next-list { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 17px; }
  .fm-next-list a { padding: 16px; }
  .fm-footer { align-items: flex-start; flex-direction: column; padding-bottom: 30px; }
  .fm-footer p { gap: 15px; }
  .fm-footer nav { gap: 18px; }
}
@media screen and (max-width: 680px) {
  .fm-facts-table:has(tr > :nth-child(3)) table {
    min-width: 670px;
  }
  .fm-facts-table:has(tr > :nth-child(3))::before {
    display: block;
  }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  body.fm-editorial { background: white; font-size: 12pt; }
  .fm-site { width: 100%; }
  .fm-sidebar, .fm-header nav, .fm-mobile-toc, .fm-footer { display: none; }
  .fm-next-festivals { display: none; }
  .fm-reading-layout { display: block; }
  .fm-hero { gap: 25px; padding-top: 0; }
  .fm-table-wrap { overflow: visible; }
  .fm-table-wrap table { min-width: 0; }
  .fm-festival { break-inside: avoid; }
}
