/* 호외 방 (11/29) — 본부 색·칸을 그대로 쓴다 */
#hoe-box { display: flex; flex-direction: column; gap: 8px; }
.hoe-band { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); font-size: 13px; color: var(--muted); }
.hoe-band b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.hoe-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.hoe-band.warn { border-color: rgba(240, 160, 75, .55); }
.hoe-band.warn .hoe-dot { background: var(--amber); }
.hoe-warn { margin: 0; padding: 7px 10px; border-left: 3px solid var(--amber); background: var(--panel-2); border-radius: 6px; font-size: 13px; text-wrap: pretty; }
.hoe-row.new { border-left: 4px solid var(--accent); }
.hoe-row.focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.hoe-m { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 12.5px; color: var(--muted); }
.hoe-m > * { white-space: nowrap; font-style: normal; }
.hoe-m time { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.hoe-t, .hoe-kt { display: block; color: var(--text); text-decoration: none; word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }   /* 제목 끝 낱말 혼자 남지 않게(11/29 묶음 줄 '…하드웨어에서 AI·데이터·드론으로') */
.hoe-t { font-size: 15px; font-weight: 650; margin-top: 3px; line-height: 1.45; }
.hoe-kt { font-size: 13.5px; margin-top: 1px; }
a.hoe-t:hover, a.hoe-kt:hover { text-decoration: underline; text-underline-offset: 3px; }
.hoe-rank { font-size: 11.5px; font-weight: 700; color: #f6c38a; border: 1px solid rgba(240, 160, 75, .6); border-radius: 5px; padding: 0 6px; }
.hoe-fix { font-size: 11.5px; font-weight: 700; color: #f3b1b1; border: 1px solid #6a3336; border-radius: 5px; padding: 0 6px; }
.hoe-new { font-size: 11.5px; font-weight: 700; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 0 7px; }
.hoe-cat { font-size: 12px; }
.hoe-same { font-size: 11.5px; font-weight: 650; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; }

/* 오늘 판 한 건씩 롤링 (11/30) — 앞에 '호외'+점, 뒤 칸에 기사 한 건의 제목 전체(두 줄 고정 높이 58px).
   몇 초 뒤 다음 기사가 아래에서 올라오고 지금 기사는 위로 빠진다(0.28초). 높이가 기사마다 같아서 밑 화면이 안 흔들린다. */
.hoe-tk { display: flex; align-items: stretch; height: 58px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.hoe-tk-lab { flex: none; display: flex; align-items: center; gap: 7px; padding: 0 12px 0 13px; border: 0; border-right: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.hoe-tk-lab b { font-weight: 750; letter-spacing: .02em; }
.hoe-tk-lab .hoe-dot { background: var(--green); }
.hoe-tk-lab.bad .hoe-dot { background: var(--red); box-shadow: 0 0 0 3px rgba(239, 91, 91, .18); }
.hoe-tk-win { position: relative; flex: 1; min-width: 0; overflow: hidden; touch-action: pan-y; }
.hoe-tk-it { position: absolute; inset: 0; display: flex; align-items: center; width: 100%; padding: 0 12px; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; text-align: left;
  transform: translateY(0); opacity: 1; transition: transform .28s ease-out, opacity .28s ease-out; }
.hoe-tk-it.in { transform: translateY(70%); opacity: 0; transition: none; }
.hoe-tk-it.out { transform: translateY(-70%); opacity: 0; }
.hoe-tk-t { display: block; width: 100%; font-size: 15px; font-weight: 600; line-height: 1.4; word-break: keep-all; overflow-wrap: normal; text-wrap: pretty; }   /* 못 끊는 덩어리는 낱말 중간에서 자르지 않고 삐져나오게 → fit() 이 재서 글자를 줄인다 */   /* balance 는 앞 시각만 첫 줄에 남기는 일이 있어(11/30 측정) pretty */
.hoe-tk-it.sm .hoe-tk-t { font-size: 13.5px; }
.hoe-tk-it.xs .hoe-tk-t { font-size: 12.5px; line-height: 1.35; }
.hoe-tk-it.bare .hoe-tk-m { display: none; }
.hoe-tk-it.xxs .hoe-tk-t { font-size: 12px; line-height: 1.33; }
.hoe-tk-it.x4 .hoe-tk-t { font-size: 11.5px; line-height: 1.22; overflow-wrap: break-word; }   /* 마지막 단계에서만 칸 밖으로 안 나가게 */
.hoe-tk-m { display: inline-flex; align-items: baseline; gap: 4px; margin-right: 7px; white-space: nowrap; vertical-align: baseline; }
.hoe-tk-ic { font-size: .82em; }
.hoe-tk-m time { color: var(--muted); font-size: .8em; font-weight: 500; font-variant-numeric: tabular-nums; }
.hoe-tk-it:hover .hoe-tk-t { text-decoration: underline; text-underline-offset: 3px; }
.hoe-tk-it:hover .hoe-tk-m { text-decoration: none; }
.hoe-tk-it:focus-visible, .hoe-tk-lab:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.hoe-tk-win:empty::before { content: "아직 보낸 기사가 없습니다"; display: flex; align-items: center; height: 100%; padding: 0 12px; color: var(--muted); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .hoe-tk-it, .hoe-tk-it.out { transition: none; } }
/* 폰: '호외'와 점을 위아래로 세워 앞칸을 좁힌다(제목 칸 +24px — 긴 제목이 칸 안에 들어가는 몫) */
@media (max-width: 480px) {
  .hoe-tk-lab { flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; font-size: 13.5px; }
  .hoe-tk-it { padding: 0 10px 0 11px; }
}
#sec-hoe { margin-bottom: 14px; }

dialog#hoe-dlg { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); width: min(760px, calc(100vw - 32px)); max-height: min(88vh, 960px); padding: 16px 18px 18px; overflow: auto; word-break: keep-all; overflow-wrap: break-word; }
dialog#hoe-dlg::backdrop { background: rgba(0, 0, 0, .55); }
.hoe-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.hoe-head h3 { margin: 0; font-size: 19px; }
#hoe-band { display: flex; flex-direction: column; gap: 6px; }
#hoe-band .hoe-band { background: var(--panel-2); }
.hoe-srcs { font-size: 13px; color: var(--muted); }
.hoe-srcs summary { cursor: pointer; padding: 2px 0; width: fit-content; }
.hoe-srcs ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.hoe-srcs li { display: flex; flex-wrap: wrap; gap: 0 8px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.hoe-srcs li b { color: var(--text); font-weight: 650; width: 100%; }
.hoe-srcs li.bad { border-color: rgba(239, 91, 91, .6); }
.hoe-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 8px; }
.hoe-tabs button { border: 1px solid var(--line); background: var(--panel-2); border-radius: 999px; padding: 6px 13px; font-size: 14px; color: var(--muted); white-space: nowrap; min-height: 36px; }
.hoe-tabs button.on { border-color: var(--accent); color: var(--text); font-weight: 650; }
.hoe-sw { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13.5px; cursor: pointer; margin-bottom: 4px; }
.hoe-sw input { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; }
.hoe-sw small { color: var(--muted); font-size: 12.5px; }
.hoe-day { margin: 16px 0 6px; font-size: 13.5px; color: var(--muted); font-weight: 650; }
.hoe-day small { font-weight: 500; }
#hoe-list > .hoe-row + .hoe-row, #hoe-list > .hoe-kid + .hoe-kid { margin-top: 8px; }
.hoe-row { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.hoe-ai { margin: 5px 0 0; font-size: 13.5px; color: #c9c5bc; line-height: 1.55; text-wrap: pretty; }
.hoe-old { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); text-wrap: pretty; }
.hoe-kids { margin-top: 8px; border-top: 1px dashed #343946; padding-top: 6px; }
.hoe-kids summary { cursor: pointer; font-size: 13px; color: var(--muted); width: fit-content; min-height: 28px; display: flex; align-items: center; }
.hoe-kids summary::marker { color: var(--muted); }
.hoe-kid { padding: 6px 0 2px 10px; border-left: 2px solid #3a3f4c; margin-top: 6px; }
.hoe-kid.solo { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; }
#hoe-list .more { margin-top: 10px; min-height: 40px; }
@media (max-width: 520px) {
  dialog#hoe-dlg { width: calc(100vw - 16px); max-height: calc(100dvh - 24px); padding: 12px 12px 16px; }
  .hoe-tabs button { padding: 6px 10px; font-size: 13.5px; }
  .hoe-band { gap: 3px 10px; }
}
