/* 지원사업: 먹색 바탕·크림색 선 체계 안에서 쓰는 자료 현황, 접수 노선, 공고 줄, 선정 결과, 출처 목록
   공통 style.css의 변수·모양(각진 칸, 원형 표식, 노선 점·선, 물결띠, 아치)만 가져다 쓴다. */
.support-page { --sp-rule: rgba(239,229,210,.25); --sp-rule-2: rgba(239,229,210,.45); --sp-text: #e4dac7; }
.support-page main { overflow-x: clip; }
.sp-skip { position: absolute; left: 12px; top: -80px; z-index: 50; padding: 10px 16px; background: var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.sp-skip:focus { top: 12px; }

/* 머리 */
.sp-head .wrap { padding-bottom: 36px; }
.sp-head .wave-band { position: relative; z-index: 1; height: 48px; }
.sp-head h1 { word-break: keep-all; }
.sp-nobr { white-space: nowrap; }
.sp-head .story { min-height: 0; max-width: 46em; }
.sp-head-meta { margin-top: 6px; font-size: 14px; color: var(--line); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.sp-body { padding-bottom: 24px; }
.sp-nav, .sp-footer-nav { display: flex; gap: 4px 24px; flex-wrap: wrap; }
.sp-nav { padding-block: 14px; font-size: 14px; border-bottom: 1px solid var(--sp-rule); }
.sp-nav a, .sp-footer-nav a { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 5px; }
.support-page .section { scroll-margin-top: 12px; }
.support-page .section > .intro { word-break: keep-all; overflow-wrap: anywhere; }

/* 자료 범위 */
.sp-overview { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.sp-scope { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2vw, 21px); line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.sp-guide { margin: 24px 0 0; display: grid; gap: 0; }
.sp-guide > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 4px 16px; padding-block: 12px; border-top: 1px solid var(--sp-rule); }
.sp-guide dt { display: flex; gap: 10px; font-weight: 700; font-size: 14px; color: var(--line); }
.sp-guide dt::before { content: ''; flex: none; width: 14px; height: 7px; margin-top: 8px; border: 2px solid var(--line); border-bottom: 0; border-radius: 7px 7px 0 0; }
.sp-guide dd { margin: 0; font-size: 14px; color: var(--soft); word-break: keep-all; overflow-wrap: anywhere; }
.sp-figures { margin: 0; border: 2px solid var(--line); outline: 1px solid rgba(239,229,210,.4); outline-offset: 4px; }
.sp-figures > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 4px 16px; padding: 14px 20px; align-items: baseline; }
.sp-figures > div + div { border-top: 1px solid rgba(239,229,210,.35); }
.sp-figures dt { font-size: 13px; color: var(--soft); letter-spacing: .06em; }
.sp-figures dd { margin: 0; display: grid; gap: 2px; min-width: 0; }
.sp-figures dd > b { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sp-sub { font-size: 12px; color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }
.sp-tally { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.sp-tally li { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.sp-tally span { color: var(--soft); }
.sp-tally b { font-family: var(--display); font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 찾기 도구 */
.sp-tools { margin-top: 28px; padding: 22px 24px; background: var(--deep); border: 1px solid rgba(239,229,210,.3); display: grid; gap: 18px; min-width: 0; }
.sp-search { display: grid; grid-template-columns: 76px minmax(0, 560px); align-items: center; gap: 8px 12px; }
.sp-search label, .sp-legend { font-size: 14px; color: var(--soft); }
.sp-search input {
  font: inherit; color: var(--line); background: var(--land); border: 1px solid var(--sp-rule-2);
  padding: 10px 14px; min-height: 46px; width: 100%; border-radius: 0; -webkit-appearance: none; appearance: none;
}
.sp-search input::placeholder { color: var(--muted); }
.sp-group { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px 12px; align-items: start; min-width: 0; }
.sp-legend { padding-top: 9px; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.sp-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--sp-rule-2); border-radius: 20px; background: transparent; color: var(--line);
  font: inherit; font-size: 14px; cursor: pointer; max-width: 100%; overflow-wrap: anywhere; text-align: left;
}
.sp-chip:hover { border-color: var(--line); }
.sp-chip[aria-pressed="true"] { background: var(--line); color: var(--ink); border-color: var(--line); font-weight: 700; }
.sp-chip[aria-pressed="true"]::before { content: '✓'; font-size: 12px; }
.sp-chip:disabled { cursor: default; color: var(--muted); border-style: dashed; border-color: rgba(169,159,141,.6); }
.sp-n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sp-chip[aria-pressed="true"] .sp-n { color: var(--ink); }
.sp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sp-actions .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* 접수 시작 노선: 메뉴 노선과 같은 점·선. 공고가 없는 달은 점선 정거장 */
.sp-months { --dot: 14px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 13), minmax(0, 1fr)); row-gap: 10px; min-width: 0; }
.sp-stop { position: relative; min-width: 0; }
.sp-stop::before { content: ''; position: absolute; top: calc(10px + var(--dot) / 2 - 1px); left: 0; right: 0; height: 2px; background: var(--line); }
.sp-stop:first-child::before { left: 50%; }
.sp-stop:last-child::before { right: 50%; }
.sp-stop.is-empty::before { height: 0; background: none; border-top: 2px dashed var(--muted); }
.sp-stop.is-none::before { left: 0; right: 50%; height: 0; background: none; border-top: 2px dashed var(--muted); }
.sp-stop-btn { position: relative; width: 100%; min-height: 64px; padding: 10px 0 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; color: var(--line); font: inherit; cursor: pointer; }
.sp-stop-dot { position: relative; z-index: 1; width: var(--dot); height: var(--dot); border-radius: 50%; border: 2px solid var(--line); background: var(--deep); transition: background .2s; }
.sp-stop-name { font-size: 13px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.sp-stop-n { font-size: 11px; line-height: 1.3; color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-stop-btn:hover .sp-stop-dot { background: var(--line); }
.sp-stop-btn[aria-pressed="true"] .sp-stop-dot { width: 18px; height: 18px; margin-block: -2px; background: var(--line); box-shadow: 0 0 0 4px var(--deep), 0 0 0 6px rgba(239,229,210,.5); }
.sp-stop-btn[aria-pressed="true"] .sp-stop-name { font-weight: 700; }
.sp-stop-btn:disabled { cursor: default; color: var(--muted); }
.sp-stop-btn:disabled .sp-stop-dot { border-color: var(--muted); border-style: dashed; background: var(--deep); }
.sp-stop-btn:disabled .sp-stop-n { color: var(--muted); }

/* 결과 수와 상태 */
.sp-count { margin-top: 24px; font-size: 14px; color: var(--soft); letter-spacing: .04em; word-break: keep-all; overflow-wrap: anywhere; }
.sp-state { margin-top: 20px; padding: 24px; border: 2px dashed var(--muted); display: grid; gap: 10px; justify-items: start; color: var(--soft); }
.sp-state strong { font-family: var(--display); font-size: 20px; color: var(--line); }
.sp-help { color: var(--soft); font-size: 14px; margin-top: 24px; }
.sp-unknown { color: var(--muted); }
.sp-aside { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

/* 공고 줄: 행사 목록과 같은 날짜 칸 + 점선 절취선. 줄 전체가 펼침 단추 */
.sp-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.sp-item { scroll-margin-top: 16px; }
.sp-row { border: 1px solid rgba(239,229,210,.35); min-width: 0; transition: border-color .2s, background .2s; }
.sp-row:hover { border-color: var(--line); }
.sp-row.is-open { border: 2px solid var(--line); }
.sp-row.is-expanded { border-color: var(--line); background: var(--land); }
.sp-row-head { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr) 56px; min-width: 0; }
.sp-row-head:hover { background: rgba(239,229,210,.05); }
.sp-when { background: var(--deep); display: grid; align-content: center; justify-items: center; gap: 2px; padding: 14px 6px; text-align: center; }
.sp-when small { font-size: 11px; letter-spacing: .14em; color: var(--soft); }
.sp-when b { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sp-when b.is-unknown { font-family: var(--body); font-weight: 500; font-size: 15px; color: var(--muted); }
.sp-when span { font-size: 12px; color: var(--soft); font-variant-numeric: tabular-nums; }
.sp-row-main { padding: 14px 4px 14px 18px; border-left: 2px dashed rgba(239,229,210,.4); display: grid; gap: 4px; align-content: center; min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.sp-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sp-kind { display: inline-block; font-size: 11px; letter-spacing: .08em; line-height: 1.7; padding: 0 8px; border: 1px solid rgba(239,229,210,.4); border-radius: 10px; color: var(--soft); }
.sp-flag { display: inline-flex; align-items: center; font-size: 11px; letter-spacing: .06em; line-height: 1.7; padding: 0 8px; border-radius: 10px; border: 1px dashed var(--muted); color: var(--muted); }
.sp-flag.is-open, .sp-flag.is-soon { background: var(--line); color: var(--ink); border: 1px solid var(--line); font-weight: 700; }
.sp-row h3 { font-size: 18px; line-height: 1.4; margin-top: 2px; }
.sp-open { padding: 0; border: 0; background: none; color: var(--line); font: inherit; text-align: left; cursor: pointer; }
.sp-open::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.sp-row-sub { font-size: 13px; color: var(--soft); }
.sp-row-plan { display: flex; gap: 10px; font-size: 13px; color: var(--sp-text); }
.sp-row-plan em { flex: none; font-style: normal; color: var(--muted); min-width: 4em; }
.sp-row-plan.is-result { color: var(--line); font-weight: 500; }
.sp-row-plan.is-result em { color: var(--soft); }
.sp-dot { align-self: center; justify-self: center; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: var(--sea); transition: background .2s, box-shadow .2s; }
.sp-row-head:hover .sp-dot { background: var(--line); }
.sp-row.is-expanded .sp-dot { background: var(--line); box-shadow: 0 0 0 4px var(--land), 0 0 0 6px rgba(239,229,210,.5); }

/* 펼친 상세 */
.sp-detail { padding: 22px 24px 24px; border-top: 2px dashed rgba(239,229,210,.4); display: grid; gap: 20px; word-break: keep-all; overflow-wrap: anywhere; }
.sp-detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 36px; }
.sp-detail-main, .sp-detail-side { display: grid; gap: 18px; align-content: start; min-width: 0; }
.sp-block h4, .sp-detail-links h4, .sp-case-body h4 { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; font-family: var(--body); font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--soft); }
.sp-block h4::before, .sp-detail-links h4::before, .sp-case-body h4::before { content: ''; flex: none; width: 14px; height: 7px; border: 2px solid var(--line); border-bottom: 0; border-radius: 7px 7px 0 0; }
.sp-block > p, .sp-block > span { display: block; font-size: 15px; color: var(--sp-text); }
.sp-dl { margin: 0; display: grid; }
.sp-dl > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding-block: 7px; border-top: 1px solid var(--sp-rule); font-size: 14px; }
.sp-dl > div:last-child { border-bottom: 1px solid var(--sp-rule); }
.sp-dl dt { color: var(--soft); }
.sp-dl dd { margin: 0; min-width: 0; color: var(--sp-text); }
.sp-jump { font-size: 14px; text-underline-offset: 4px; justify-self: start; }
.sp-next { display: flex; gap: 14px; align-items: baseline; padding: 12px 16px; border: 1px dashed var(--soft); font-size: 14px; color: var(--soft); }
.sp-next b { flex: none; font-family: var(--display); font-size: 18px; color: var(--line); }
.sp-detail-links { display: grid; gap: 10px; }
.sp-detail-links h4 { margin-bottom: 0; }
.sp-links { display: grid; gap: 4px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); padding: 0; list-style: none; margin: 0; font-size: 14px; }
.sp-links li { min-height: 32px; display: flex; align-items: center; }
.sp-ext { text-underline-offset: 4px; overflow-wrap: anywhere; }
.sp-evidence { border-top: 1px solid var(--sp-rule); }
.sp-evidence summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--soft); letter-spacing: .06em; list-style: none; }
.sp-evidence summary::-webkit-details-marker { display: none; }
.sp-evidence summary::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--soft); }
.sp-evidence[open] summary::before { background: var(--soft); }
.sp-evidence ul { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 0; font-size: 13px; }
.sp-evidence li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 4px 12px; padding-block: 7px; border-top: 1px solid rgba(239,229,210,.15); align-items: baseline; }
.sp-evidence li b { font-weight: 500; color: var(--line); }
.sp-evidence li span { color: var(--soft); }
.sp-evidence li a { white-space: nowrap; }

/* 선정 결과: 운영진 명함과 같은 2단 칸 */
.sp-cases { margin-top: 28px; display: grid; gap: 24px; }
.sp-case { background: var(--land); border: 2px solid var(--line); min-width: 0; word-break: keep-all; overflow-wrap: anywhere; scroll-margin-top: 16px; }
.sp-case-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; padding: 22px 26px; background: var(--deep); }
.sp-case-seal { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--line); box-shadow: 0 0 0 5px var(--deep), 0 0 0 7px rgba(239,229,210,.4); display: flex; align-items: baseline; justify-content: center; padding-top: 16px; gap: 1px; font-family: var(--display); }
.sp-case-seal b { font-size: 30px; font-weight: 800; line-height: 1; }
.sp-case-seal small { font-size: 13px; color: var(--soft); }
.sp-case-title { display: grid; gap: 4px; min-width: 0; }
.sp-case-title h3 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; }
.sp-case-title h3 a { text-decoration: none; }
.sp-case-title h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.sp-case-facts { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px dashed rgba(239,229,210,.5); border-bottom: 1px solid var(--sp-rule); }
.sp-case-facts > div { padding: 14px 16px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.sp-case-facts > div + div { border-left: 1px solid var(--sp-rule); }
.sp-case-facts dt { font-size: 12px; letter-spacing: .1em; color: var(--soft); }
.sp-case-facts dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.45; }
.sp-case-facts dd .sp-unknown { font-family: var(--body); font-weight: 400; font-size: 15px; }
.sp-case-facts dd .sp-aside { font-family: var(--body); font-weight: 400; }
.sp-case-body { padding: 20px 26px 24px; display: grid; gap: 12px; }
.sp-names { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 196px), 1fr)); }
.sp-names li { display: grid; gap: 0; padding: 10px 14px; border: 1px solid rgba(239,229,210,.35); background: var(--sea); min-width: 0; }
.sp-names b { font-size: 15px; font-weight: 700; }
.sp-names span { font-size: 13px; color: var(--soft); }
.sp-names small { font-size: 12px; color: var(--muted); }
.sp-case-note { font-size: 14px; color: var(--soft); max-width: 60em; }
.sp-case-src { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 14px; }
.sp-case-src span { font-size: 12px; color: var(--muted); }

.sp-footer-nav { margin-left: auto; }

@media (max-width: 960px) {
  .sp-overview { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sp-figures { outline-offset: 3px; }
  .sp-case-facts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
  .sp-case-facts > div + div { border-left: 0; }
  .sp-case-facts > div { border-top: 1px solid var(--sp-rule); }
  .sp-case-facts > div:first-child { border-top: 0; }
}
@media (max-width: 820px) {
  .sp-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .sp-months { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .sp-stop:nth-child(7n)::before { right: 50%; }
  .sp-stop:nth-child(7n + 1)::before { left: 50%; }
  .sp-stop.is-none:nth-child(7n + 1)::before { display: none; }
}
@media (max-width: 600px) {
  .support-page .top .wrap { gap: 12px; }
  .support-page .top .btn { font-size: 12px; padding-inline: 12px; }
  .support-page .logo { font-size: 28px; }
  .sp-head .wrap { gap: 20px; padding-bottom: 24px; }
  .sp-head .big-seal { width: 64px; height: 64px; font-size: 30px; }
  .sp-head .wave-band { height: 32px; }
  .sp-nav { gap: 0 18px; }
  .sp-guide > div { grid-template-columns: minmax(0, 1fr); }
  .sp-figures > div { grid-template-columns: minmax(0, 1fr); padding: 12px 16px; }
  .sp-tools { padding: 18px 16px; }
  .sp-search, .sp-group { grid-template-columns: minmax(0, 1fr); }
  .sp-legend { padding-top: 0; }
  .sp-stop-name { font-size: 12px; }
  .sp-row-head { grid-template-columns: 72px minmax(0, 1fr) 36px; }
  .sp-when { padding: 12px 4px; }
  .sp-when b { font-size: 20px; }
  .sp-when small { letter-spacing: .04em; }
  .sp-when span { font-size: 11px; }
  .sp-row-main { padding: 12px 2px 12px 12px; }
  .sp-row h3 { font-size: 16px; }
  .sp-row-plan { flex-direction: column; gap: 0; }
  .sp-dot { width: 14px; height: 14px; }
  .sp-detail { padding: 18px 16px 20px; }
  .sp-next { flex-direction: column; gap: 2px; }
  .sp-evidence li { grid-template-columns: minmax(0, 1fr); }
  .sp-case-head { padding: 18px 16px; gap: 14px; }
  .sp-case-seal { width: 56px; height: 56px; padding-top: 12px; box-shadow: 0 0 0 4px var(--deep), 0 0 0 6px rgba(239,229,210,.4); }
  .sp-case-seal b { font-size: 24px; }
  .sp-case-facts > div { padding: 10px 16px; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: baseline; }
  .sp-case-body { padding: 16px 16px 20px; }
  .sp-footer-nav { margin-left: 0; }
}
@media (max-width: 480px) {
  .sp-row-head { grid-template-columns: minmax(0, 1fr) 36px; }
  .sp-when { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 0 8px; padding: 8px 14px; text-align: left; border-bottom: 2px dashed rgba(239,229,210,.4); }
  .sp-when b { font-size: 20px; }
  .sp-row-main { border-left: 0; padding: 12px 0 14px 14px; }
}
@media (max-width: 360px) {
  .sp-stop-name { font-size: 11px; letter-spacing: -.02em; }
  .sp-stop-n { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-row, .sp-dot, .sp-stop-dot { transition: none; }
}
