/* Danmi notice + schedule full-view polish v6 */

/* 공지사항 전체보기: 제목/날짜/분류 위치를 더 안정적으로 정렬 */
.route-notice-list {
  display: grid !important;
  gap: 14px !important;
  align-content: start !important;
}
.route-notice-item {
  border-radius: 22px !important;
  overflow: hidden !important;
}
.route-notice-summary {
  display: grid !important;
  grid-template-columns: auto minmax(0,1fr) auto auto !important;
  align-items: center !important;
  column-gap: 12px !important;
  row-gap: 6px !important;
  width: 100% !important;
  min-height: 64px !important;
  padding: 14px 18px !important;
}
.route-notice-summary .notice-category {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  justify-self: start !important;
}
.route-notice-summary strong {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: block !important;
  min-width: 0 !important;
  font-size: 1.02rem !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  align-self: center !important;
}
.route-notice-summary time {
  grid-column: 2 !important;
  grid-row: 2 !important;
  justify-self: start !important;
  align-self: center !important;
  font-size: 0.9rem !important;
  line-height: 1.2 !important;
  color: var(--text-sub, #746a85) !important;
}
.route-notice-summary .notice-chevron {
  grid-column: 4 !important;
  grid-row: 1 / span 2 !important;
  justify-self: end !important;
  align-self: center !important;
}
.route-notice-item.pinned .route-notice-summary {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45) !important;
}
.route-notice-content {
  padding: 0 18px 18px !important;
  font-size: 0.98rem !important;
  line-height: 1.8 !important;
}

/* 방송일정 전체보기: 날짜/상태/내용을 더 키우고 중심 정렬 */
.route-week-head {
  margin-bottom: 18px !important;
}
.route-week-title h3 {
  font-size: 1.14rem !important;
  line-height: 1.25 !important;
}
.route-week-list {
  display: grid !important;
  gap: 12px !important;
}
.route-week-row {
  display: grid !important;
  grid-template-columns: 92px 90px minmax(0,1fr) !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 96px !important;
  padding: 16px 18px !important;
  border-radius: 22px !important;
}
.route-week-date {
  display: grid !important;
  justify-items: center !important;
  align-content: center !important;
  gap: 5px !important;
  min-height: 62px !important;
  text-align: center !important;
}
.route-week-date strong {
  font-size: 1.16rem !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}
.route-week-date span {
  font-size: 0.95rem !important;
  line-height: 1.15 !important;
  color: var(--text-sub, #746a85) !important;
}
.route-week-state {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  align-self: center !important;
  min-width: 84px !important;
  min-height: 38px !important;
  padding: 4px 12px !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-align: center !important;
}
.route-week-content {
  display: grid !important;
  align-content: center !important;
  gap: 6px !important;
  min-width: 0 !important;
}
.route-week-time {
  display: inline-flex !important;
  align-items: center !important;
  justify-self: start !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  background: rgba(255,255,255,.6) !important;
  color: var(--text-sub, #6a6179) !important;
}
.route-week-content > strong {
  display: block !important;
  min-width: 0 !important;
  font-size: 1.06rem !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  word-break: keep-all !important;
}
.route-week-content p {
  margin: 0 !important;
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  color: var(--text-sub, #6f667f) !important;
}
.route-week-note-label {
  display: inline-flex !important;
  align-items: center !important;
  margin-right: 8px !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
}

html[data-theme="dark"] .route-notice-summary time,
body.dark-mode .route-notice-summary time,
html[data-theme="dark"] .route-week-date span,
body.dark-mode .route-week-date span,
html[data-theme="dark"] .route-week-content p,
body.dark-mode .route-week-content p,
html[data-theme="dark"] .route-week-time,
body.dark-mode .route-week-time {
  color: #d7cfea !important;
}
html[data-theme="dark"] .route-week-time,
body.dark-mode .route-week-time {
  background: rgba(255,255,255,.08) !important;
}

@media (max-width: 760px) {
  .route-notice-summary {
    grid-template-columns: auto minmax(0,1fr) auto !important;
    padding: 12px 14px !important;
    min-height: 62px !important;
  }
  .route-notice-summary .notice-category {
    grid-row: 1 !important;
  }
  .route-notice-summary strong {
    grid-column: 2 !important;
    grid-row: 1 !important;
    font-size: 0.98rem !important;
  }
  .route-notice-summary time {
    grid-column: 2 !important;
    grid-row: 2 !important;
    font-size: 0.84rem !important;
  }
  .route-notice-summary .notice-chevron {
    grid-column: 3 !important;
    grid-row: 1 / span 2 !important;
  }
  .route-notice-content {
    padding: 0 14px 14px !important;
    font-size: 0.93rem !important;
  }

  .route-week-row {
    grid-template-columns: 72px 74px minmax(0,1fr) !important;
    gap: 10px !important;
    min-height: 88px !important;
    padding: 13px 14px !important;
  }
  .route-week-date strong {
    font-size: 1.05rem !important;
  }
  .route-week-date span {
    font-size: 0.87rem !important;
  }
  .route-week-state {
    min-width: 70px !important;
    min-height: 34px !important;
    padding: 4px 8px !important;
    font-size: 0.87rem !important;
  }
  .route-week-content > strong {
    font-size: 0.98rem !important;
    line-height: 1.4 !important;
  }
  .route-week-content p {
    font-size: 0.88rem !important;
  }
}

/* v6.1: 실제 DOM 기준 최종 중심 보정 */
.route-notice-item,
.route-week-row {
  box-sizing: border-box !important;
}
.route-notice-summary {
  box-sizing: border-box !important;
  min-height: 76px !important;
}
.route-notice-summary > * {
  margin: 0 !important;
}
.route-notice-summary .notice-category {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 68px !important;
  min-height: 34px !important;
  padding: 5px 12px !important;
  line-height: 1 !important;
  text-align: center !important;
}
.route-notice-summary strong,
.route-notice-summary time {
  width: 100% !important;
  text-align: left !important;
}
.route-notice-summary .notice-chevron {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  line-height: 1 !important;
  transform: translateY(0) !important;
}
.route-notice-item.open .notice-chevron {
  transform: rotate(180deg) !important;
}

.route-week-row > * {
  margin: 0 !important;
}
.route-week-date,
.route-week-state,
.route-week-content {
  box-sizing: border-box !important;
}
.route-week-date {
  width: 100% !important;
  min-height: 70px !important;
  padding: 7px 6px !important;
  border-radius: 18px !important;
  background: color-mix(in srgb, var(--accent-soft, #eee8ff) 58%, transparent) !important;
}
.route-week-date strong {
  font-size: 1.28rem !important;
}
.route-week-date span {
  font-size: 1.02rem !important;
  font-weight: 700 !important;
}
.route-week-state {
  min-width: 88px !important;
  min-height: 40px !important;
  border-radius: 999px !important;
}
.route-week-content {
  justify-items: start !important;
  text-align: left !important;
}
.route-week-content > strong {
  font-size: 1.12rem !important;
}

@media (max-width: 760px) {
  .route-notice-summary {
    min-height: 72px !important;
    column-gap: 10px !important;
  }
  .route-notice-summary .notice-category {
    min-width: 58px !important;
    min-height: 32px !important;
    padding-inline: 9px !important;
  }
  .route-notice-summary strong {
    font-size: 1rem !important;
  }
  .route-notice-summary .notice-chevron {
    width: 30px !important;
    height: 30px !important;
  }

  .route-week-row {
    grid-template-columns: 68px 70px minmax(0,1fr) !important;
    gap: 9px !important;
    min-height: 94px !important;
    padding: 13px 12px !important;
  }
  .route-week-date {
    min-height: 66px !important;
    padding: 6px 4px !important;
    border-radius: 16px !important;
  }
  .route-week-date strong {
    font-size: 1.14rem !important;
  }
  .route-week-date span {
    font-size: .92rem !important;
  }
  .route-week-state {
    min-width: 68px !important;
    min-height: 36px !important;
    padding-inline: 7px !important;
    font-size: .9rem !important;
  }
  .route-week-content > strong {
    font-size: 1rem !important;
  }
}

@media (max-width: 420px) {
  .route-week-row {
    grid-template-columns: 62px 64px minmax(0,1fr) !important;
    gap: 7px !important;
    padding-inline: 10px !important;
  }
  .route-week-date strong { font-size: 1.08rem !important; }
  .route-week-date span { font-size: .86rem !important; }
  .route-week-state {
    min-width: 62px !important;
    font-size: .84rem !important;
  }
  .route-week-content > strong {
    font-size: .96rem !important;
  }
}
