/* 노선 조정 안내 — route-change.html 목록과 홈·버스 이용안내의 요약 (js/route-changes.js 가 그린다).
   색은 theme-navy.css 를 따른다: 남색 글자·판, 중립 회색 선, 바뀐 곳·시행 예정만 붉은 포인트(에뚜알). */
.rc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 공통: 지역 · 시행일 · 시행 예정 · 운행 법인 */
.rc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: #5d6b78; text-align: left; }
.rc-region { padding: 2px 9px; border: 1px solid #c9d1da; border-radius: 999px; font-size: 12px; color: #142b43; }
.rc-status { color: #a9312b; font-weight: 600; }
.rc-status::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 6px 2px 0; border-radius: 50%; background: currentColor; }
.rc-tag { padding: 2px 8px; border: 1px solid #a9312b66; border-radius: 4px; color: #a9312b; font-size: 11px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }

/* ── route-change.html ── */
.rc-section { width: calc(100% - 56px); max-width: 1200px; margin: auto; padding: 80px 0 120px; text-align: left; }
.rc-section .press-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
/* 머리말: 붉은 에뚜알 + 영문 (다른 상세화면의 머리말과 같은 말투) */
.rc-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 600 12px/1 "Archivo Expanded", sans-serif; letter-spacing: .08em; color: #a9312b; }
.rc-kicker::before { content: ""; width: 17px; height: 13px; background: #a9312b; -webkit-mask: var(--tn-etoile) center / contain no-repeat; mask: var(--tn-etoile) center / contain no-repeat; }
.rc-section .press-header h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -.045em; color: #142b43; }
.rc-intro { max-width: 760px; margin-bottom: 56px; color: #5d6b78; font-size: 15px; line-height: 1.85; }

/* 안내 하나: 왼쪽 시행일(세로 타임라인) + 오른쪽 흰 카드 */
.rc-notice { position: relative; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 36px; scroll-margin-top: 110px; }
.rc-notice + .rc-notice { margin-top: 40px; }
.rc-notice::before { content: ""; position: absolute; top: 14px; bottom: -40px; left: 7px; width: 1px; background: #d5dbe1; }   /* 타임라인 선 */
.rc-notice:last-child::before { bottom: 0; }
.rc-when { position: relative; display: grid; align-content: start; gap: 6px; padding-left: 34px; }
.rc-when::before { content: ""; position: absolute; top: 6px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px #142b43; }   /* 타임라인 점 */
.is-upcoming .rc-when::before { box-shadow: inset 0 0 0 4px #a9312b, 0 0 0 6px #a9312b1f; }
.rc-when-year { font: 600 12px/1 "Archivo Expanded", sans-serif; letter-spacing: .06em; color: #8593a0; }
.rc-when-day { font: 600 clamp(30px, 3vw, 40px)/1 "Archivo Expanded", sans-serif; letter-spacing: -.02em; color: #142b43; font-variant-numeric: tabular-nums; }
.is-upcoming .rc-when-day { color: #a9312b; }
.rc-when-week { font-size: 13px; color: #5d6b78; }

.rc-card { overflow: hidden; padding: 32px 36px 28px; border: 1px solid #e2e5e9; border-top: 3px solid #142b43; border-radius: 0 0 14px 14px; background: #fff; }
.is-upcoming .rc-card { border-top-color: #a9312b; }
.rc-operator { padding: 2px 10px; border-radius: 999px; background: #f4f5f7; color: #142b43; }
.rc-operator b { margin-right: 4px; font-weight: 600; }
.rc-card h3 { margin-top: 14px; font-size: clamp(20px, 2vw, 25px); font-weight: 600; letter-spacing: -.04em; color: #142b43; }
.rc-summary { margin-top: 8px; color: #5d6b78; line-height: 1.8; }

/* 노선별 줄: 번호판 · 바뀐 내용 · 운행 법인 */
.rc-changes { margin-top: 24px; list-style: none; padding: 0; }
.rc-changes > li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 18px 0; border-top: 1px solid #e2e5e9; }
.rc-route { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* 버스 앞 노선 번호판 모양 */
.rc-plate { min-width: 64px; padding: 7px 12px; border-radius: 8px; background: #142b43; color: #fff; font-size: 18px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; text-align: center; font-variant-numeric: tabular-nums; box-shadow: inset 0 -3px 0 #0003; }
.rc-type { padding: 2px 8px; border-radius: 4px; background: #e9edf1; font-size: 12px; color: #142b43; }
.rc-type-신설 { background: #a9312b; color: #fff; }
.rc-type-폐선 { background: #5d6b78; color: #fff; }
.rc-changes dl { display: grid; gap: 8px; padding-top: 4px; }
.rc-changes dl > div { display: grid; grid-template-columns: 44px 1fr; gap: 12px; font-size: 15px; line-height: 1.75; }
.rc-changes dt { font-size: 13px; line-height: 2; color: #5d6b78; }
.rc-before dd { color: #7b8794; }
.rc-after dt { color: #a9312b; font-weight: 600; }
.rc-after dd { color: #142b43; }
.rc-changes mark { padding: 0 2px; background: none; color: #a9312b; font-weight: 600; box-shadow: inset 0 -6px 0 #a9312b1f; }
.rc-route-ops { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding-top: 6px; }
.rc-source { margin-top: 18px; padding-top: 16px; border-top: 1px dashed #e2e5e9; font-size: 13px; color: #5d6b78; }
.rc-source a { color: #142b43; text-decoration: underline; text-underline-offset: 3px; }

/* 상세 내용 보기 (<details>): 카드 안에서 펼친다 */
.rc-more { margin-top: 20px; }
.rc-more summary { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid #142b43; border-radius: 999px; color: #142b43; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.rc-more summary::-webkit-details-marker { display: none; }
.rc-more summary::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.rc-more summary:hover { background: #142b43; color: #fff; }
.rc-more[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.rc-more-close, .rc-more[open] .rc-more-open { display: none; }
.rc-more[open] .rc-more-close { display: inline; }
.rc-more-body { margin-top: 18px; padding: 26px 28px; border-radius: 12px; background: #f6f7f9; text-align: left; }
.rc-more-body h4 { display: flex; align-items: center; gap: 8px; margin: 26px 0 12px; font-size: 15px; font-weight: 600; color: #142b43; }
.rc-more-body > h4:first-child, .rc-reason + h4 { margin-top: 0; }
.rc-more-body h4::before { content: ""; width: 12px; height: 9px; background: #a9312b; -webkit-mask: var(--tn-etoile) center / contain no-repeat; mask: var(--tn-etoile) center / contain no-repeat; }
.rc-reason { margin-bottom: 22px; font-size: 14px; color: #142b43; }
.rc-reason b { margin-right: 10px; color: #a9312b; font-weight: 600; }
.rc-stops { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; list-style: none; padding: 0; }
.rc-stops li { display: grid; justify-items: start; gap: 4px; text-align: left; padding: 16px 18px; border: 1px solid #e2e5e9; border-radius: 10px; background: #fff; font-size: 13px; color: #5d6b78; }
.rc-stop-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 15px; color: #142b43; }
.rc-stop-name strong { font-weight: 600; }
.rc-stop-code { color: #a9312b; font-weight: 600; font-variant-numeric: tabular-nums; }
.rc-stop-way { font-size: 12px; color: #5d6b78; }
.rc-map { color: #142b43; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.rc-more-route { padding: 18px 0; border-top: 1px solid #e2e5e9; }
.rc-more-route:first-of-type { border-top: 0; padding-top: 0; }
.rc-more-route-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; font-weight: 400; color: #5d6b78; }
.rc-more-route-head .rc-plate { min-width: 52px; padding: 4px 10px; font-size: 15px; }
.rc-path { display: grid; gap: 6px; }
.rc-path > div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; font-size: 14px; line-height: 1.7; }
.rc-path dt { font-size: 13px; color: #5d6b78; }
.rc-path .rc-after dt { color: #a9312b; font-weight: 600; }
.rc-path .rc-before dd { color: #7b8794; }
.rc-path mark { padding: 0 2px; background: none; color: #a9312b; font-weight: 600; box-shadow: inset 0 -6px 0 #a9312b1f; }
.rc-timetable + .rc-timetable { margin-top: 16px; }
.rc-timetable h6 { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #142b43; }
.rc-timetable ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; list-style: none; padding: 0; }
.rc-timetable li { display: grid; place-items: center; padding: 6px 4px; border-radius: 6px; background: #fff; font-size: 14px; color: #142b43; font-variant-numeric: tabular-nums; }
.rc-timetable li.has-note { grid-column: span 2; border: 1px solid #a9312b40; }
.rc-timetable small { font-size: 11px; color: #a9312b; }
.rc-attach { margin-top: 20px; font-size: 13px; color: #5d6b78; }

/* ── 요약 (홈 citizen-help 왼쪽 · 버스 이용안내 오른쪽) ── */
.rc-brief { margin-top: 40px; padding-top: 22px; border-top: 1px solid #e2e5e9; }
.rc-brief-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; color: #142b43; }
.rc-brief-head a { font-size: 12px; font-weight: 400; color: #5d6b78; }
.rc-brief-list { margin-top: 10px; list-style: none; padding: 0; text-align: left; }
.rc-brief-list li { display: block; }   /* 공통 css 의 li(inline-block)를 되돌린다 */
.rc-brief-list a { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid #e2e5e9; color: #142b43; }
.rc-brief-list a:hover .rc-brief-title { text-decoration: underline; text-underline-offset: 3px; }
.rc-brief-list .rc-meta { font-size: 12px; }
.rc-brief-title { font-size: 15px; font-weight: 600; letter-spacing: -.03em; }
.rc-brief-list a.rc-brief-line { grid-template-columns: auto 1fr; align-items: baseline; gap: 12px; padding: 12px 0; }
.rc-brief-line time { font-size: 12px; color: #5d6b78; font-variant-numeric: tabular-nums; white-space: nowrap; }
.citizen-guide .rc-brief-line time { color: #b9c8d6; }
.rc-brief-empty { margin-top: 14px; font-size: 14px; line-height: 1.7; color: #5d6b78; }
.citizen-guide .rc-brief-empty { color: #b9c8d6; }
.rc-brief-tags { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 900px) {
  .rc-notice { grid-template-columns: 1fr; gap: 14px; padding-left: 34px; }
  .rc-notice::before { bottom: -40px; }
  .rc-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-left: -34px; }
  .rc-when-year { order: 2; }
  .rc-when-week { order: 3; }
  .rc-when-day { font-size: 26px; }
  /* 좁은 화면: 첫 줄에 번호판·운행 법인, 둘째 줄에 내용 */
  .rc-changes > li { grid-template-columns: auto 1fr; gap: 10px 12px; padding: 14px 0; }
  .rc-changes dl { grid-column: 1 / -1; grid-row: 2; padding-top: 0; }
  .rc-route-ops { padding-top: 0; align-self: center; }
}
@media (max-width: 700px) {
  .rc-section { width: calc(100% - 40px); padding: 48px 0 80px; }
  .rc-card { padding: 22px 18px 20px; }
  .rc-changes dl > div { grid-template-columns: 36px 1fr; gap: 8px; font-size: 14px; }
  .rc-more-body { padding: 18px 12px; }
  .rc-timetable ol { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .rc-timetable li { font-size: 13px; }
  .rc-path > div { grid-template-columns: 1fr; gap: 0; }
  .rc-plate { min-width: 52px; padding: 5px 10px; font-size: 16px; }
}
