/* ck-earn 11/18: 기업 실적 캘린더 (/earnings-calendar) - the approved mockup (owner "디자인좋다") */
.er{--bd:#E6EAF2;--tx:#0F172A;--mu:#64748B;--card:#fff;--soft:#F4F7FB;--band:#EEF2F8;--today:#E3EDFF;--blue:#2563EB;--on:#2563EB;--up:#E11D48;--upbg:#FFE9EC;--dn:#2563EB;--dnbg:#E6EEFF;--fl:#64748B;--flbg:#EEF2F8;--warm:#FFF8EA;--warmbd:#F3C567;--soon:#B45309;--soonbg:#FEF3C7;--cry:#C2410C;--crybg:#FFF1E2}
body.dm .er{--bd:#344458;--tx:#F1F5F9;--mu:#A8B8CC;--card:#192330;--soft:#1F2B3A;--band:#1F2B3A;--today:#1E3157;--blue:#93C5FD;--on:#2F6FE0;--up:#FB5A78;--upbg:#3A1E28;--dn:#6FA6FF;--dnbg:#1E2E4F;--fl:#A8B8CC;--flbg:#263345;--warm:#29231A;--warmbd:#6B5426;--soon:#FCD34D;--soonbg:#3A3015;--cry:#FDBA74;--crybg:#3A2A17}
.er *{box-sizing:border-box}
.er .er-mo{display:none}
.er .up{color:var(--up)}.er .dn{color:var(--dn)}.er .fl{color:var(--fl)}
.er button{font:inherit;cursor:pointer}
.er button:focus-visible{outline:2px solid var(--on);outline-offset:2px}

/* the 3 summary cards */
.er-sum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 4px}
.er-sc{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border:1px solid var(--bd);border-radius:18px;background:var(--card);box-shadow:0 4px 14px rgba(15,23,42,.05);min-width:0}
.er-sl{font-size:12.5px;font-weight:700;color:var(--mu)}
.er-sm{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:19px;font-weight:900;color:var(--tx);min-width:0}
.er-sm b{font-weight:900;word-break:keep-all}
.er-sm img,.er-sm .er-lg0{width:30px;height:30px;border-radius:50%;background:#fff;box-shadow:0 0 0 1px rgba(15,23,42,.08)}
.er-sm .er-lg0{font-size:14px}
.er-sm .er-lgs{display:inline-flex}.er-sm .er-lgs img,.er-sm .er-lgs .er-lg0{width:26px;height:26px;margin-left:-6px;box-shadow:0 0 0 2px var(--card)}.er-sm .er-lgs > :first-child{margin-left:0}
.er-ss{font-size:13px;line-height:1.5;color:var(--mu)}
.er-ss b{font-weight:800}
.er-v,.er-w{display:inline-flex;align-items:center;gap:4px;height:26px;padding:0 10px;border-radius:999px;font-size:12.5px;font-weight:800;font-style:normal;white-space:nowrap}
.er-v.up{background:var(--upbg)}.er-v.dn{background:var(--dnbg)}.er-v.fl{background:var(--flbg);color:var(--fl)}
.er-w{background:var(--flbg);color:var(--fl)}.er-w.soon{background:var(--soonbg);color:var(--soon)}

/* controls: week / month, the countries, 큰 회사만 */
.er-ctl{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:14px 0 10px}
.er-wk{display:inline-flex;align-items:center;gap:8px;font-size:16px;font-weight:900;color:var(--tx)}
.er-wk b{font-weight:900;white-space:nowrap}
.er-wk button{width:32px;height:32px;padding:0;border:1px solid var(--bd);border-radius:10px;background:var(--card);font-size:16px;line-height:30px;color:var(--tx)}
.er-wk button:disabled{opacity:.35;cursor:default}
.er-wk i{font-style:normal;height:22px;padding:0 8px;border-radius:999px;background:var(--today);color:var(--blue);font-size:12px;font-weight:800;line-height:22px;white-space:nowrap}
.er-wk i[hidden]{display:none}
.er-seg{display:inline-flex;margin-left:auto;padding:3px;border-radius:12px;background:var(--band)}
.er-seg button{height:30px;padding:0 13px;border:0;border-radius:9px;background:none;font-size:13.5px;font-weight:700;line-height:30px;color:var(--mu)}
.er-seg button.on{background:var(--on);color:#fff}
.er-chips{display:flex;flex-wrap:wrap;gap:6px;width:100%}
.er-chips button{display:inline-flex;align-items:center;gap:5px;height:34px;padding:0 12px;border:1px solid var(--bd);border-radius:999px;background:var(--card);font-size:13.5px;font-weight:700;color:var(--tx);white-space:nowrap}
.er-chips button.on{border-color:var(--on);background:var(--on);color:#fff}
.er-chips img{width:18px;height:18px;border-radius:50%}
.er-chips .er-tg{margin-left:auto;gap:7px;border-style:dashed}
.er-chips .er-tg.on{border-color:var(--bd);background:var(--card);color:var(--tx)}
.er-chips .er-tg i{width:30px;height:18px;border-radius:999px;background:#CBD5E1;position:relative;transition:background .15s}
.er-chips .er-tg i::after{content:"";position:absolute;left:2px;top:2px;width:14px;height:14px;border-radius:50%;background:#fff;transition:left .15s}
.er-chips .er-tg.on i{background:var(--on)}.er-chips .er-tg.on i::after{left:14px}
body.dm .er-chips .er-tg:not(.on) i{background:#475569}

/* the Mon-Fri strip */
.er-days{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0 0 6px}
.er-days[hidden]{display:none}
.er-dc{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:0;padding:8px 2px 7px;border:1px solid var(--bd);border-radius:14px;background:var(--card);color:var(--tx)}
.er-dc:hover{border-color:var(--on)}
.er-dc b{font-size:12px;font-weight:700;color:var(--mu)}.er-dc span{font-size:18px;font-weight:900;line-height:1.15}.er-dc small{font-size:11.5px;font-weight:700;color:var(--mu);white-space:nowrap}
.er-dc.on{border-color:var(--on);background:var(--today)}.er-dc.on small{color:var(--blue)}.er-dc.past span,.er-dc.past b{color:var(--mu)}
.er-help{display:flex;gap:9px;align-items:flex-start;margin:12px 0 0;padding:11px 14px;border-radius:14px;background:var(--soft);font-size:13px;line-height:1.6;color:var(--mu)}
.er-help b{color:var(--tx)}.er-help b.up{color:var(--up)}.er-help b.dn{color:var(--dn)}.er-help svg{flex:none;width:18px;height:18px;margin-top:2px;color:var(--blue)}

/* the list: a day, its releases */
.er-list{min-height:120px}
.er-day h3{display:flex;align-items:center;gap:8px;margin:14px 0 8px;padding:9px 14px;border-radius:12px;background:var(--band);font-size:16px;font-weight:900;color:var(--tx);scroll-margin-top:90px}
.er-day.today h3{background:var(--today)}
.er-day h3 i{font-style:normal;height:22px;padding:0 9px;border-radius:999px;background:#E11D48;color:#fff;font-size:12px;font-weight:800;line-height:22px}
.er-day h3 small{margin-left:auto;font-size:12.5px;font-weight:700;color:var(--mu);white-space:nowrap}
.er-r{display:grid;grid-template-columns:92px 240px minmax(0,1fr) auto;grid-template-areas:"t c n st" "t c x x";gap:4px 14px;align-items:center;margin:0 0 8px;padding:12px 16px;border:1px solid var(--bd);border-radius:16px;background:var(--card)}
.er-r.big{border-color:var(--warmbd);background:var(--warm);box-shadow:inset 4px 0 0 #F59E0B}
.er-t{grid-area:t;min-width:0}.er-t b{display:block;font-size:16px;font-weight:900;color:var(--tx);white-space:nowrap}.er-t small{display:block;margin-top:2px;font-size:12px;line-height:1.35;color:var(--mu);word-break:keep-all}
.er-c{grid-area:c;display:flex;align-items:center;gap:10px;min-width:0}
.er-lg{flex:none;width:40px;height:40px;border-radius:50%;background:#fff;box-shadow:0 0 0 1px rgba(15,23,42,.08)}
.er-lg0{display:inline-flex;align-items:center;justify-content:center;background:var(--band);color:var(--mu);font-size:16px;font-weight:900}
.er-nm{min-width:0}.er-nm b{display:block;font-size:16.5px;font-weight:900;line-height:1.3;color:var(--tx);word-break:keep-all;overflow-wrap:anywhere}
.er-nm small{display:flex;flex-wrap:wrap;align-items:center;gap:1px 5px;margin-top:2px;font-size:12px;color:var(--mu);white-space:nowrap}.er-nm small img{width:15px;height:15px;border-radius:50%}
.er-cry{font-style:normal;height:18px;padding:0 6px;border-radius:6px;background:var(--crybg);color:var(--cry);font-size:11px;font-weight:800;line-height:18px}
.er-st{grid-area:st;justify-self:end}
.er-n{grid-area:n;display:flex;flex-wrap:wrap;gap:3px 18px;align-items:baseline;min-width:0}
.er-n p{display:flex;align-items:baseline;gap:6px;margin:0;font-size:13.5px;color:var(--mu);white-space:nowrap}
.er-n p b{font-size:15px;font-weight:900;color:var(--tx)}.er-n p i{font-style:normal;font-weight:800}.er-n p small{font-size:12px}
.er-n .er-lastp{flex-basis:100%;font-size:12.5px}
.er-na{font-size:13px;color:var(--mu)}
.er-x{grid-area:x;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.er-rx{display:inline-flex;align-items:baseline;gap:5px;height:26px;padding:0 10px;border-radius:9px;background:var(--soft);font-size:12.5px;font-weight:800;line-height:26px;white-space:nowrap}
.er-r.big .er-rx{background:rgba(148,163,184,.16)}
.er-rx small{font-size:11.5px;font-weight:600;color:var(--mu)}.er-rx em{font-style:normal;font-weight:600;color:var(--mu)}
.er-old{margin:20px 0 0;padding-top:14px;border-top:1px dashed var(--bd)}
.er-oldh{margin:0 0 2px;font-size:14px;font-weight:800;color:var(--mu)}
.er .er-more{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:44px;margin-top:8px;padding:6px 12px;border:1px solid var(--bd);border-radius:14px;background:var(--card);font-size:14px;font-weight:800;color:var(--blue)}
.er-more svg{flex:none;width:14px;height:14px}
.er-more.open svg{transform:rotate(180deg)}
.er-empty{margin:14px 0;padding:22px 14px;border:1px dashed var(--bd);border-radius:14px;text-align:center;font-size:14px;color:var(--mu)}

/* 실적 발표와 비트코인 */
.er-cbs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.er-cb{display:flex;align-items:center;gap:14px;flex-wrap:wrap;min-width:0;padding:14px 16px;border:1px solid var(--bd);border-radius:16px;background:var(--card)}
.er-cbi{display:flex;align-items:center;gap:10px;min-width:0}.er-cbi b{display:block;font-size:16px;font-weight:900;color:var(--tx);word-break:keep-all}.er-cbi small{display:block;font-size:12px;color:var(--mu)}
.er-cbn{margin-left:auto;text-align:right}.er-cbn b{display:block;font-size:22px;font-weight:900}.er-cbn small{display:block;font-size:12px;color:var(--mu)}
.er-note{margin:10px 2px 0;font-size:13px;line-height:1.6;color:var(--mu)}
.er h2 .er-only{margin-left:8px;height:22px;padding:0 9px;border-radius:999px;background:#EDE9FE;color:#6D28D9;font-size:12px;font-weight:800;line-height:22px;white-space:nowrap}
body.dm .er h2 .er-only{background:#3B2F63;color:#C4B5FD}

/* tablet: the numbers go under the name */
@media (max-width:1024px){
	.er-r{grid-template-columns:86px minmax(0,1fr) auto;grid-template-areas:"t c st" "t n n" "t x x";gap:0 12px;align-items:start}
	.er-n,.er-x{margin-top:6px}
	.er-st{align-self:center}
	.er-cbs{grid-template-columns:1fr}
}
/* phone */
@media (max-width:640px){
	.er .er-pc,.er .er-n p.er-pc{display:none}
	.er .er-mo{display:inline}
	.er-sum{grid-template-columns:1fr;gap:8px}
	.er-sc{padding:11px 14px;gap:3px}.er-sm{font-size:17.5px}.er-sm img,.er-sm .er-lg0{width:28px;height:28px}
	.er-wk{font-size:15px;gap:6px}
	.er-chips button{height:32px;padding:0 10px;font-size:13px}.er-chips .er-tg{margin-left:0}
	.er-day h3{font-size:15px;padding:8px 12px}
	.er-r{grid-template-columns:70px minmax(0,1fr) auto;gap:0 8px;padding:11px 12px}
	.er-n,.er-x{margin-top:5px}
	.er-t b{font-size:14px}.er-t small{font-size:11.5px;white-space:normal}
	.er-lg{width:34px;height:34px}.er-c{gap:8px}.er-nm b{font-size:15.5px}
	.er-n{gap:2px 14px}.er-n p{flex-wrap:wrap;column-gap:6px;row-gap:0;font-size:13px}.er-n p b{font-size:14.5px}
	.er-n2{flex-direction:column}
	.er-n .er-lastp{flex-basis:auto;font-size:13px}
	.er-cb{gap:6px 14px}
	.er-cbn{margin-left:0;text-align:left}
}
/* small phones (360 / 375 / 384), and English phones (longer words): the mockup's time column leaves the name too little room -
   the time and the chip on top, the name under */
@media (max-width:389px){
	.er-r{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t st" "c c" "n n" "x x"}
	.er-t{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px}
	.er-t small{margin-top:0}
	.er-c{margin-top:6px}
}
@media (min-width:390px) and (max-width:640px){
	.er[data-en="1"] .er-r{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t st" "c c" "n n" "x x"}
	.er[data-en="1"] .er-t{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px}
	.er[data-en="1"] .er-t small{margin-top:0}
	.er[data-en="1"] .er-c{margin-top:6px}
}
/* ck-erlead 11/19 (owner's one-line lead): when it wraps (phones), two lines of even length - no single word left alone on line 2 */
.mk.er .tt-lead{text-wrap:balance}
/* ck-er2 11/19 (owner's pictures): the card titles bold + bigger with a coloured dot; card 1 = "주당순이익 +x% · 주가 +y%" in dark bold;
   the coming releases: see ck-er4 */
.er-sl{display:flex;align-items:center;gap:8px;font-size:15.5px;font-weight:900;line-height:1.3;color:var(--tx)}
.er-sl::before{content:"";flex:none;width:9px;height:9px;border-radius:50%;background:var(--dot,#94A3B8);box-shadow:0 0 0 3px var(--dotr,#E2E8F0)}
.er-sc1{--dot:#16A34A;--dotr:#DCFCE7}.er-sc2{--dot:#F59E0B;--dotr:#FEF3C7}.er-sc3{--dot:#2563EB;--dotr:#DBEAFE}
body.dm .er-sc1{--dot:#22C55E;--dotr:rgba(34,197,94,.25)}body.dm .er-sc2{--dot:#FBBF24;--dotr:rgba(251,191,36,.25)}body.dm .er-sc3{--dot:#60A5FA;--dotr:rgba(96,165,250,.25)}
.er-ss.er-ss1{font-size:14px;font-weight:800;color:var(--tx)}
.er-ss.er-ss1 b{font-weight:900}
@media (max-width:640px){
	.er-sl{font-size:14.5px}
	.er-ss.er-ss1{font-size:13.5px}
}
/* ck-er3 11/19 (owner's picture): 실적 발표와 비트코인 cards - name + date left, the big % right at the date's height, the hour's high / low under them
   right-aligned in grey; grey texts a little bigger */
.er{--mu2:#475569}
body.dm .er{--mu2:#B6C4D6}
.er-cb{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"i p" "h h";align-items:end;gap:6px 12px;padding:14px 18px}
.er-cbi{grid-area:i;align-self:center}
.er-cbi small{margin-top:2px;font-size:13.5px}
.er-cbp{grid-area:p;font-size:24px;font-weight:900;line-height:1.15;white-space:nowrap}
.er-cbh{grid-area:h;margin:0;text-align:right;font-size:14px;font-weight:600;line-height:1.5;color:var(--mu2)}
.er-cbh span{margin-left:6px;color:var(--mu)}
@media (max-width:640px){
	.er-cb{padding:12px 14px;gap:4px 10px}
	.er-cbp{font-size:22px}
	.er-cbh{font-size:13.5px}
}
/* 1025-1365 px: next to the sidebar the 3 number columns do not fit beside the name - the numbers go under the name, as on tablets */
@media (min-width:1025px) and (max-width:1365px){
	.er-r{grid-template-columns:86px minmax(0,1fr) auto;grid-template-areas:"t c st" "t n n" "t x x";gap:0 12px;align-items:start}
	.er-n,.er-x{margin-top:6px}
	.er-st{align-self:center}
}
/* ck-er4 11/19 (owner: keep the original look, only 예상 매출 in one straight column): "예상 주당순이익 $0.97" keeps its line, in a first column
   as wide as the longest one (KO 178 px / EN 136 px, measured over every month); 예상 매출 starts right after it in every row; 지난 분기 = the next line */
@media (min-width:1025px){
	.er-n.er-n3{display:grid;grid-template-columns:178px minmax(0,1fr);gap:3px 18px;align-items:baseline}
	.er[data-en="1"] .er-n.er-n3{grid-template-columns:136px minmax(0,1fr)}
	.er-n3 .er-ne{grid-column:1}
	.er-n3 .er-nr{grid-column:2;flex-wrap:wrap;row-gap:0}
	.er-n3 .er-lastp{grid-column:1 / -1}
}
/* ck-er5 11/19: no single word alone on a last line - the summary-card lines, and on phones the bitcoin cards' date line */
.er-sc .er-ss{text-wrap:balance}
@media (max-width:640px){
	.er-cbi small{text-wrap:balance}
}
/* ck-er7 11/19 (owner: "9곳" right under the "오" of "오늘 밤"): the count in summary card 2 starts where the title text starts (dot 9px + gap 8px) */
.er-sc2 .er-sm > b{margin-left:17px}
/* ck-er11 11/19 (owner): phones - every release row = time + chip on top, the name under it with the full width
   (phones show "▲ 예상보다 좋음" like PC, and long English names no longer go to 3 lines beside a time column) */
@media (max-width:1024px){
	.er-r{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t st" "c c" "n n" "x x"}
	.er-t{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px}
	.er-t small{margin-top:0}
	.er-c{margin-top:6px}
	.er-n .er-lastp{flex-basis:100%}
}
/* ck-er13 11/19 (owner): 주별 / 월별 at the right end of the "실적 발표 일정" title row; a long title wraps itself instead of pushing the switch down */
.er-calh{display:flex;align-items:center;gap:10px}
.er-calh h2{flex:1 1 auto;min-width:0;margin:0}
.er-calh .er-seg{flex:none;margin-left:auto}
/* ck-er14 11/19 (owner): 예상 매출 on phones too - the coming rows list 예상 주당순이익 / 예상 매출 / 지난 분기 one per line */
@media (max-width:1024px){
	.er-n.er-n3{flex-direction:column;align-items:flex-start;gap:2px}
	.er-n.er-n2{flex-direction:column;align-items:flex-start}
}
/* ck-er15 11/19 (owner): tablets (641-1024 px) place the rows exactly like phones - ck-er11 / ck-er14 above now reach 1024 px, ck-er4 starts at 1025 px */
