/* 공개 사이트 경제속보 토스트 (chun-breaking-public.js) — 회원 화면 토스트(chun-breaking-live.css)와 같은 모양, 색은 공개 사이트 변수 */
:root { --cbp-accent: #C2410C; }
html[data-theme="dark"] { --cbp-accent: #FB923C; }
.cbp-toasts { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 50%; transform: translateX(-50%); z-index: 1060; width: min(560px, calc(100vw - 24px));
  display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.cbp-toast { pointer-events: auto; position: relative; overflow: hidden; display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 12px 14px;
  background: var(--cs-surface, #fff); color: var(--cs-ink, #131A33); border: 1px solid var(--cbp-accent); border-left-width: 4px; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .18); cursor: pointer; font-size: 14px; line-height: 1.5; animation: cbpIn .35s cubic-bezier(.2, .8, .2, 1); }
.cbp-toast.noimg { grid-template-columns: minmax(0, 1fr) auto; }
.cbp-toast.out { animation: cbpOut .25s ease-in forwards; }
.cbp-toast:focus-visible { outline: 2px solid var(--cbp-accent); outline-offset: 2px; }
.cbp-toast .cbp-img { width: 88px; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: var(--cs-surface-2, #F4F6FA); }
.cbp-toast .cbp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cbp-toast .cbp-b { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cbp-toast .cbp-h { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--cs-faint, #6B7280); }
.cbp-toast .cbp-h b { color: var(--cbp-accent); font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.cbp-toast .cbp-h b::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cbp-accent); animation: cbpBreath 1.2s ease-in-out infinite; }
.cbp-toast .cbp-go { margin-left: auto; font-weight: 700; white-space: nowrap; }
.cbp-toast:hover .cbp-go { color: var(--cbp-accent); }
.cbp-toast .cbp-t { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; word-break: keep-all; color: var(--cs-ink, #131A33); }
.cbp-toast .cbp-t em { margin-right: 6px; padding: 1px 6px; border-radius: 6px; background: var(--cs-surface-2, #F4F6FA); font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--cs-muted, #4B5563); vertical-align: 2px; }
.cbp-toast .cbp-s { margin: 0; font-size: 13px; color: var(--cs-muted, #4B5563); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cbp-toast .cbp-x { border: 0; background: none; color: var(--cs-faint, #6B7280); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; font-size: 18px; line-height: 1; }
.cbp-toast .cbp-x:hover { background: var(--cs-surface-2, #F4F6FA); color: var(--cs-ink, #131A33); }
.cbp-toast .cbp-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--cbp-accent); opacity: .6; transform-origin: left; animation: cbpBar linear forwards; }
.cbp-toast:hover .cbp-bar { animation-play-state: paused; }
@media (max-width: 560px) {
  .cbp-toast { grid-template-columns: minmax(0, 1fr) 64px auto; }
  .cbp-toast .cbp-img { order: 2; width: 64px; aspect-ratio: 1 / 1; }
  .cbp-toast .cbp-b { order: 1; }
  .cbp-toast .cbp-x { order: 3; }
  .cbp-toast .cbp-s { -webkit-line-clamp: 2; }
  .cbp-toast .cbp-go { display: none; }
}
@keyframes cbpIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes cbpOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes cbpBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes cbpBreath { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .cbp-toast, .cbp-toast.out, .cbp-toast .cbp-h b::before { animation: none; } .cbp-toast .cbp-bar { display: none; } }
