/* 영어 1년권 묶음 이벤트 알림 (2026-11-20). 홈 첫 화면 묶음 표시 + 다른 공개 화면의 한 줄 띠. oneteach_event_strip.py가 싣는다. */

/* 1. 홈이 아닌 공개 화면: 머리 영역 바로 아래 한 줄(본문 흐름 안) */
.ot-event-strip { display:block; margin:0; padding:0; background:#fff0e7; }
.ot-event-strip > a { display:flex; align-items:center; justify-content:center; gap:10px; min-height:46px; margin:0 auto; padding:8px 16px; max-width:1200px; color:#1f2633; font-size:15px; font-weight:650; line-height:1.4; letter-spacing:-.02em; text-decoration:none; word-break:keep-all; }
.ot-event-strip > a > b { flex:none; padding:3px 10px; border-radius:999px; background:#ff5100; color:#fff; font-size:13px; font-weight:700; line-height:1.4; white-space:nowrap; }
.ot-event-strip > a > span { min-width:0; color:#1f2633; }
.ot-event-strip > a > small { flex:none; margin:0; color:#c43e00; font-size:14px; font-weight:650; white-space:nowrap; }
.ot-event-strip > a > .chev { flex:none; width:12px; height:12px; color:#c43e00; }
.ot-event-strip .es-short { display:none; }
.ot-event-strip > a:hover > span { text-decoration:underline; text-underline-offset:3px; }
.ot-event-strip > a:focus-visible { outline:2px solid #ff5100; outline-offset:-3px; border-radius:6px; }
@media(max-width:760px) {
  .ot-event-strip > a { gap:8px; padding:8px 12px; font-size:14px; }
  .ot-event-strip .es-long, .ot-event-strip > a > small { display:none; }
  .ot-event-strip .es-short { display:inline; }
}
@media(max-width:345px) { .ot-event-strip > a { gap:6px; padding:8px; font-size:13px; letter-spacing:-.035em; } .ot-event-strip .es-ev { display:none; } }
/* 홈 맨 위 띠: 아주 좁은 화면에서는 남은 날만 */
@media(max-width:360px) { .home-event-bar .home-event-word { display:none; } }
@media print { .ot-event-strip { display:none; } }

/* 2. 홈 첫 화면: 서비스 세 칸을 이벤트 묶음으로 */
body.nue-live[data-view="index"] .home-bundle-head { display:flex; align-items:center; justify-content:center; gap:12px; max-width:920px; margin:22px auto 0; padding:11px 20px; border-radius:20px 20px 0 0; background:#ff5100; color:#fff; font-size:17px; font-weight:700; line-height:1.35; letter-spacing:-.025em; text-decoration:none; word-break:keep-all; }
body.nue-live[data-view="index"] .home-bundle-head .hb-d { flex:none; padding:2px 10px; border-radius:999px; background:#fff; color:#ff5100; font-size:13.5px; font-weight:800; line-height:1.45; white-space:nowrap; }
body.nue-live[data-view="index"] .home-bundle-head .hb-t { min-width:0; }
body.nue-live[data-view="index"] .home-bundle-head .hb-go { flex:none; display:inline-flex; align-items:center; gap:5px; font-size:14.5px; font-weight:650; opacity:.94; white-space:nowrap; }
body.nue-live[data-view="index"] .home-bundle-head .chev { width:12px; height:12px; }
body.nue-live[data-view="index"] .home-bundle-head:hover .hb-t { text-decoration:underline; text-underline-offset:4px; }
body.nue-live[data-view="index"] .home-bundle-head:focus-visible { outline:3px solid #1f2633; outline-offset:2px; }
body.nue-live[data-view="index"] .home-bundle-head + .home-service-nav { position:relative; margin-top:0; padding:10px; gap:22px; border-radius:0 0 22px 22px; background:#fff0e7; }
body.nue-live[data-view="index"] .home-bundle-head + .home-service-nav a { position:relative; background:#fff; }
body.nue-live[data-view="index"] .home-bundle-head + .home-service-nav a:hover { background:#fff; }
body.nue-live[data-view="index"] .home-bundle-head + .home-service-nav a.is-primary { background:#fff; }
/* 칸 사이 더하기 표시 */
body.nue-live[data-view="index"] .home-bundle-head + .home-service-nav a + a::before { content:"+"; position:absolute; left:-22px; top:50%; width:22px; margin-top:-13px; color:#ff5100; font-size:22px; font-weight:800; line-height:26px; text-align:center; }
body.nue-live[data-view="index"] .home-service-nav b { display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; }
body.nue-live[data-view="index"] .home-service-nav .hb-chip { flex:none; padding:2px 8px; border-radius:999px; background:#fff0e7; color:#c43e00; font-size:12.5px; font-style:normal; font-weight:700; line-height:1.5; letter-spacing:-.02em; white-space:nowrap; }
body.nue-live[data-view="index"] .home-service-nav .hb-chip-key { background:#ff5100; color:#fff; }
@media(max-width:1000px) {
  body.nue-live[data-view="index"] .home-bundle-head { font-size:16px; }
  body.nue-live[data-view="index"] .home-bundle-head .hb-go { font-size:14px; }
}
@media(max-width:760px) {
  body.nue-live[data-view="index"] .home-bundle-head { flex-wrap:wrap; justify-content:flex-start; gap:4px 8px; margin-top:14px; padding:8px 14px 9px; border-radius:15px 15px 0 0; font-size:15.5px; text-align:left; }
  body.nue-live[data-view="index"] .home-bundle-head .hb-t { flex:1 1 100%; order:3; }
  body.nue-live[data-view="index"] .home-bundle-head .hb-t > span { white-space:nowrap; }
  body.nue-live[data-view="index"] .home-bundle-head .hb-go { margin-left:auto; font-size:13.5px; }
  body.nue-live[data-view="index"] .home-bundle-head + .home-service-nav { padding:6px; gap:12px; border-radius:0 0 15px 15px; }
  body.nue-live[data-view="index"] .home-bundle-head + .home-service-nav a + a::before { left:0; right:0; top:-13px; width:auto; margin-top:0; font-size:16px; line-height:14px; }
  /* 좁은 화면에서는 이벤트 묶음이 같은 내용을 말하므로 보조 문단을 접어 검색창을 첫 화면 가까이 둔다 */
  body.nue-live[data-view="index"] .hero-lead:has(+ .home-bundle-head) { display:none; }
  body.nue-live[data-view="index"] .home-service-nav .hb-chip { font-size:12px; }
}
/* 높이가 낮은 PC 화면: 보조 문단을 접어 검색창을 첫 화면 안에 둔다 */
@media(min-width:761px) and (max-height:780px) { body.nue-live[data-view="index"] .hero-lead:has(+ .home-bundle-head) { display:none; } }
@media(prefers-reduced-motion:no-preference) {
  @keyframes ev-rise { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
  @keyframes ev-pop { 0% { opacity:0; transform:scale(.5); } 70% { opacity:1; transform:scale(1.14); } 100% { opacity:1; transform:none; } }
  body.nue-live[data-view="index"] .home-bundle-head { animation:ev-rise .6s cubic-bezier(.2,.75,.2,1) .36s both; }
  body.nue-live[data-view="index"] .home-bundle-head + .home-service-nav a + a::before { animation:ev-pop .45s cubic-bezier(.2,.9,.3,1.2) 1.05s both; }
  body.nue-live[data-view="index"] .home-bundle-head + .home-service-nav a:nth-child(3)::before { animation-delay:1.25s; }
  body.nue-live[data-view="index"] .home-service-nav .hb-chip { animation:ev-pop .45s cubic-bezier(.2,.9,.3,1.2) both; }
  body.nue-live[data-view="index"] .home-service-nav a:nth-child(1) .hb-chip { animation-delay:.9s; }
  body.nue-live[data-view="index"] .home-service-nav a:nth-child(2) .hb-chip { animation-delay:1.15s; }
  body.nue-live[data-view="index"] .home-service-nav a:nth-child(3) .hb-chip { animation-delay:1.35s; }
}
