@charset "utf-8";
/* =========================================================
 * 7대 암 소개 모달 + 2022 국가암등록통계 그래프
 * index.html .type-grid .t-chip 클릭 시 노출
 * 자료원: 보건복지부·중앙암등록본부 / 국가암지식정보센터
 * ========================================================= */

.type-grid .t-chip{cursor:pointer}

.cf-cancer-ov{
  position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(13,21,32,.55);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
  opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease;
}
.cf-cancer-ov.on{opacity:1;visibility:visible}

.cf-cancer{
  --male:#2f6fd0;--male-d:#19398a;--male-soft:#eaf1fb;
  --brand:#e81f86;--brand-2:#f06aa8;--brand-d:#c4196f;--brand-soft:#fdeef6;
  --ink:#0d1520;--muted:#6b7280;--line:#ececf0;
  width:100%;max-width:820px;max-height:92vh;background:#fff;border-radius:20px;
  overflow:hidden;display:flex;flex-direction:column;
  box-shadow:0 24px 64px rgba(13,21,32,.32);
  transform:translateY(18px) scale(.97);transition:transform .28s cubic-bezier(.2,.7,.3,1);
  font-family:'Pretendard',sans-serif;
}
.cf-cancer-ov.on .cf-cancer{transform:none}

.cf-cm-head{
  position:relative;display:flex;align-items:center;gap:14px;
  padding:26px 56px 26px 28px;color:#fff;
  background:linear-gradient(135deg,#e81f86 0%,#f06aa8 50%,#f5a0c8 100%);
}
.cf-cm-ico{width:52px;height:52px;border-radius:15px;flex:none;display:grid;place-items:center;background:rgba(255,255,255,.22)}
.cf-cm-ico .material-symbols-outlined{font-size:30px}
.cf-cm-t{font-size:12.5px;opacity:.9;font-weight:600}
.cf-cm-n{font-size:23px;font-weight:800;letter-spacing:-.4px;margin-top:3px}
.cf-cm-x{position:absolute;top:16px;right:16px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.2);color:#fff;cursor:pointer;border:0}
.cf-cm-x:hover{background:rgba(255,255,255,.36)}
.cf-cm-x .material-symbols-outlined{font-size:21px}

.cf-cm-body{padding:26px 28px;overflow-y:auto}
.cf-cm-desc{font-size:14.5px;line-height:1.8;color:#333;word-break:keep-all;margin:0}
.cf-cm-rh{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:800;color:var(--brand-d);margin:22px 0 12px}
.cf-cm-rh .material-symbols-outlined{font-size:19px}
.cf-cm-risks{display:flex;flex-direction:column;gap:8px;list-style:none;padding:0;margin:0}
.cf-cm-risks li{display:flex;align-items:flex-start;gap:9px;font-size:13.5px;color:#555;background:#faf5f8;border:1px solid #f0e0ea;padding:11px 14px;border-radius:10px;word-break:keep-all}
.cf-cm-risks li::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--brand);flex:none;margin-top:6px}

/* ── 통계 그래프 영역 ── */
.cf-stat-divider{height:1px;background:var(--line);margin:28px 0 4px}
.cf-stat-wrap{margin-top:24px}
.cf-stat-eyebrow{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:var(--brand-d);background:var(--brand-soft);padding:6px 13px;border-radius:999px;margin-bottom:6px}
.cf-stat-eyebrow .material-symbols-outlined{font-size:16px}
.cfg-card{border:1px solid var(--line);border-radius:16px;padding:22px 22px 18px;margin-top:16px;background:#fff}
.cfg-h{display:flex;align-items:center;gap:12px;padding-bottom:16px;border-bottom:1px solid #f0f1f5}
.cfg-h .cfg-ic{width:42px;height:42px;border-radius:12px;flex:none;display:grid;place-items:center;background:var(--brand-soft)}
.cfg-h .cfg-ic .material-symbols-outlined{font-size:23px;color:var(--brand)}
.cfg-h h4{font-size:17px;font-weight:800;color:var(--ink);letter-spacing:-.3px}
.cfg-h .cfg-sub{font-size:12px;color:var(--muted);font-weight:500;margin-top:2px}
.cfg-body{padding-top:20px}

.cfg-grid2{display:grid;grid-template-columns:1fr 1fr;gap:30px}
.cfg-gtab{display:flex;align-items:center;justify-content:center;gap:9px;margin-bottom:4px}
.cfg-gtab .material-symbols-outlined{font-size:22px}
.cfg-gtab b{font-size:17px;font-weight:800}
.cfg-gtab.m{color:var(--male-d)} .cfg-gtab.f{color:var(--brand)}
.cfg-gcnt{text-align:center;font-size:12.5px;color:var(--muted);margin-bottom:14px}
.cfg-gcnt strong{color:var(--ink);font-size:14.5px;font-weight:700}
.cfg-donutbox{position:relative;width:100%;max-width:260px;aspect-ratio:1;margin:0 auto}
.cfg-dcenter{position:absolute;inset:0;display:grid;place-content:center;text-align:center;pointer-events:none}
.cfg-dcenter .n{font-size:19px;font-weight:800;color:var(--ink);letter-spacing:-.5px}
.cfg-dcenter .c{font-size:11px;color:var(--muted);margin-top:2px}
.cfg-ranks{display:flex;flex-direction:column;gap:7px;margin-top:16px}
.cfg-rank{display:flex;align-items:center;gap:11px;padding:10px 13px;border-radius:12px;background:#f8f9fb;border:1px solid var(--line)}
.cfg-rank .medal{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;flex:none;color:#fff;font-weight:800;font-size:12px}
.cfg-rank.r1 .medal{background:linear-gradient(135deg,#f6b73c,#e8941a)}
.cfg-rank.r2 .medal{background:linear-gradient(135deg,#bcc4d2,#929cb0)}
.cfg-rank.r3 .medal{background:linear-gradient(135deg,#d99a6c,#b9743f)}
.cfg-rank .nm{flex:1;font-weight:700;font-size:14px;color:var(--ink)}
.cfg-rank .pc{font-weight:800;font-size:16px}
.cfg-rank.m .pc{color:var(--male-d)} .cfg-rank.f .pc{color:var(--brand)}
.cfg-legend{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:14px;justify-content:center}
.cfg-legend span{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}
.cfg-legend i{width:8px;height:8px;border-radius:3px;display:inline-block}

.cfg-trend{position:relative;width:100%;height:680px}

.cfg-gauges{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.cfg-gauge{text-align:center;background:#fafbfd;border:1px solid var(--line);border-radius:16px;padding:26px 16px}
.cfg-gauge .gt{display:flex;align-items:center;justify-content:center;gap:8px;font-size:17px;font-weight:800}
.cfg-gauge.m .gt{color:var(--male-d)} .cfg-gauge.f .gt{color:var(--brand)}
.cfg-gauge .ga{font-size:12px;color:var(--muted);margin:4px 0 12px}
.cfg-gauge svg{display:block;margin:0 auto;width:clamp(150px,42vw,200px);height:auto}
.cfg-gauge .ratio{display:inline-flex;align-items:center;gap:8px;margin-top:14px;font-size:14px;font-weight:800;padding:8px 16px;border-radius:999px}
.cfg-gauge.m .ratio{background:var(--male-soft);color:var(--male-d)}
.cfg-gauge.f .ratio{background:var(--brand-soft);color:var(--brand-d)}
.cfg-ppl .material-symbols-outlined{font-size:20px}
.cfg-ppl .off{color:#d6dde8}

.cfg-src{font-size:11.5px;color:#9aa3b2;margin-top:18px;padding-top:13px;border-top:1px solid var(--line);display:flex;align-items:flex-start;gap:7px}
.cfg-src .material-symbols-outlined{font-size:15px;flex:none;color:var(--brand)}

/* ── 해당 암종 성별 발생분율 막대 ── */
.cf-cm-stat:empty{display:none}
.cf-bars{display:flex;flex-direction:column;gap:11px}
.cf-srow{display:flex;align-items:center;gap:11px}
.cf-srow .cf-lab{width:38px;font-size:13px;font-weight:700;color:var(--muted);flex:none}
.cf-srow .cf-track{flex:1;height:26px;background:#eef0f4;border-radius:7px;overflow:hidden}
.cf-srow .cf-fill{height:100%;border-radius:7px;display:flex;align-items:center;justify-content:flex-end;padding-right:10px;color:#fff;font-size:12.5px;font-weight:800;min-width:42px;white-space:nowrap}
.cf-srow.m .cf-fill{background:linear-gradient(90deg,var(--male),var(--male-d))}
.cf-srow.f .cf-fill{background:linear-gradient(90deg,var(--brand-2),var(--brand-d))}
.cf-srow .cf-rk{font-size:12px;font-weight:700;color:#9aa3b2;flex:none;white-space:nowrap}
.cf-srow .cf-na{flex:1;font-size:12.5px;color:#9aa3b2}

@media (max-width:680px){
  .cfg-grid2,.cfg-gauges{grid-template-columns:1fr;gap:22px}
  .cfg-trend{height:560px}
}
@media (max-width:560px){
  .cf-cancer-ov{padding:14px}
  .cf-cm-head{padding:22px 50px 22px 20px;gap:12px}
  .cf-cm-ico{width:46px;height:46px;border-radius:13px}
  .cf-cm-ico .material-symbols-outlined{font-size:26px}
  .cf-cm-n{font-size:20px}
  .cf-cm-body{padding:22px 18px}
  .cf-cm-desc{font-size:13.5px}
  .cfg-card{padding:18px 15px}
  .cfg-h h4{font-size:15.5px}
  .cfg-trend{height:520px}
}
