/* === 기술 프로필 풀 페이지 스타일 === */
:root {
  --pf-green: #1976D2;
  --pf-green-dark: #0D47A1;
  --pf-green-light: #E3F2FD;
  --pf-orange: #F57C00;
  --pf-red: #C62828;
  --pf-gray-50: #FAFAFA;
  --pf-gray-100: #F5F5F5;
  --pf-gray-200: #EEEEEE;
  --pf-gray-300: #E0E0E0;
  --pf-gray-500: #9E9E9E;
  --pf-gray-600: #757575;
  --pf-gray-700: #424242;
  --pf-gray-900: #212121;
}
.prof-root { padding: 8px 0 60px; color: var(--pf-gray-900); font-family: 'Pretendard','Noto Sans KR',sans-serif; }
.prof-root *, .prof-root *::before, .prof-root *::after { box-sizing: border-box; }

/* Hero */
.prof-hero { padding: 28px 32px; border-radius: 14px; color: #fff; margin-bottom: 28px; position: relative; overflow: hidden; }
.prof-hero::before { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; background: rgba(255,255,255,0.08); border-radius: 50%; }
.prof-hero-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; position: relative; }
.prof-hero-icon { width: 52px; height: 52px; background: rgba(255,255,255,0.2); border-radius: 12px; display: grid; place-items: center; font-size: 26px; flex: 0 0 52px; }
.prof-hero-sector { font-size: 12px; padding: 4px 10px; background: rgba(255,255,255,0.25); border-radius: 12px; font-weight: 600; }
.prof-hero-code { font-family: 'Roboto Mono', ui-monospace, monospace; font-size: 13px; opacity: 0.85; }
.prof-hero-status { margin-left: auto; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.prof-hero-status.full { background: #FFC107; color: #5D4037; }
.prof-hero-status.placeholder { background: rgba(255,255,255,0.25); color: #fff; }
.prof-hero-name { font-size: 28px; font-weight: 800; line-height: 1.25; margin: 0 0 10px; position: relative; }
.prof-hero-def { font-size: 14px; line-height: 1.6; max-width: 800px; opacity: 0.95; position: relative; }

/* 4-way mapping bar */
.prof-mapping { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: -16px 0 28px; padding: 14px 18px; background: #fff; border: 1px solid var(--pf-gray-200); border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); position: relative; z-index: 2; }
@media (max-width: 900px) { .prof-mapping { grid-template-columns: repeat(2, 1fr); } }
.prof-mapping-item { padding: 4px 10px; border-left: 3px solid var(--pf-green); }
.prof-mapping-item .lbl { display: block; font-size: 10px; color: var(--pf-gray-500); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.prof-mapping-item .val { display: block; font-family: 'Roboto Mono', ui-monospace, monospace; font-size: 12px; color: var(--pf-gray-900); font-weight: 600; line-height: 1.4; word-break: keep-all; }

/* Section */
.prof-section { margin-bottom: 32px; }
.prof-h3 { font-size: 18px; font-weight: 700; margin: 0 0 14px; padding-left: 8px; border-left: 4px solid var(--pf-green); display: flex; align-items: center; gap: 10px; }
.prof-h3-note { font-size: 12px; font-weight: 400; color: var(--pf-gray-500); margin-left: auto; }

/* Key metrics row */
.prof-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .prof-metrics { grid-template-columns: repeat(2, 1fr); } }
.prof-metric { padding: 14px 16px; background: #fff; border: 1px solid var(--pf-gray-200); border-radius: 8px; }
.prof-metric .lbl { font-size: 11px; color: var(--pf-gray-600); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 6px; }
.prof-metric .val { font-size: 22px; font-weight: 800; color: var(--pf-green-dark); line-height: 1; }
.prof-metric .unit { font-size: 12px; color: var(--pf-gray-500); margin-left: 4px; font-weight: 500; }
.prof-metric .trend { display: flex; align-items: flex-end; gap: 2px; height: 18px; margin-top: 8px; }
.prof-metric .trend i { display: inline-block; width: 8px; background: var(--pf-green); border-radius: 1px 1px 0 0; opacity: 0.5; }
.prof-metric .trend i:last-child { opacity: 1; }

/* TRL bar */
.prof-trl-bar { display: flex; gap: 4px; margin-top: 8px; }
.prof-trl-step { flex: 1; height: 8px; background: var(--pf-gray-200); border-radius: 2px; }
.prof-trl-step.filled { background: linear-gradient(to right, var(--pf-green), var(--pf-green-dark)); }

/* Country level table */
.prof-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.prof-table th, .prof-table td { padding: 10px 12px; border-bottom: 1px solid var(--pf-gray-200); text-align: left; }
.prof-table th { background: var(--pf-green-light); color: var(--pf-green-dark); font-weight: 700; }
.prof-table tr.kor td:first-child::before { content: "★"; color: var(--pf-orange); margin-right: 4px; }
.prof-table tr.kor td { background: #FFF8E1; font-weight: 600; }
.prof-table .group-pill { padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.prof-table .group-pill.선도 { background: #E8F5E9; color: #2E7D32; }
.prof-table .group-pill.추격 { background: #FFF3E0; color: #E65100; }
.prof-table .group-pill.후발 { background: #FFEBEE; color: #C62828; }

/* List items (policies, news) */
.prof-list { list-style: none; padding: 0; margin: 0; }
.prof-list li { padding: 10px 14px; border: 1px solid var(--pf-gray-200); border-radius: 6px; margin-bottom: 6px; display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; }
.prof-list li:hover { border-color: var(--pf-green); background: var(--pf-gray-50); }
.prof-list .title { color: var(--pf-gray-900); flex: 1; line-height: 1.4; }
.prof-list .date { color: var(--pf-gray-500); font-size: 12px; font-family: 'Roboto Mono', ui-monospace, monospace; flex: 0 0 auto; }
.prof-list-more { display: block; text-align: center; padding: 10px; margin-top: 6px; background: var(--pf-gray-50); border: 1px dashed var(--pf-gray-300); border-radius: 6px; color: var(--pf-green-dark); font-size: 13px; font-weight: 600; text-decoration: none; }
.prof-list-more:hover { background: var(--pf-green-light); border-color: var(--pf-green); text-decoration: none; }

/* Leaders */
.prof-leaders { display: flex; flex-wrap: wrap; gap: 8px; }
.prof-leader { padding: 6px 12px; background: var(--pf-gray-100); border: 1px solid var(--pf-gray-200); border-radius: 16px; font-size: 13px; color: var(--pf-gray-700); }
.prof-leader.kor { background: var(--pf-green-light); color: var(--pf-green-dark); border-color: var(--pf-green); }

/* Related techs */
.prof-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 900px) { .prof-related { grid-template-columns: 1fr; } }
.prof-related-card { padding: 12px 14px; background: var(--pf-gray-50); border: 1px solid var(--pf-gray-200); border-radius: 8px; text-decoration: none; color: var(--pf-gray-900); display: flex; flex-direction: column; gap: 4px; transition: all .15s; }
.prof-related-card:hover { border-color: var(--pf-green); background: var(--pf-green-light); text-decoration: none; }
.prof-related-card .code { font-family: 'Roboto Mono', ui-monospace, monospace; font-size: 11px; color: var(--pf-gray-500); }
.prof-related-card .name { font-size: 14px; font-weight: 600; }

/* Sparkline */
.prof-spark { display: grid; grid-template-columns: 60px 1fr 80px; gap: 10px; align-items: center; padding: 8px 0; font-size: 13px; }
.prof-spark .lbl { color: var(--pf-gray-600); font-weight: 600; }
.prof-spark .bars { display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.prof-spark .bars i { display: inline-block; flex: 1; background: var(--pf-green); border-radius: 2px 2px 0 0; min-height: 4px; }
.prof-spark .bars i:last-child { background: var(--pf-orange); }
.prof-spark .val { text-align: right; color: var(--pf-gray-900); font-weight: 700; font-family: 'Roboto Mono', ui-monospace, monospace; }

/* Placeholder notice */
.prof-placeholder-notice { padding: 40px 24px; background: linear-gradient(135deg, var(--pf-gray-50) 0%, var(--pf-gray-100) 100%); border: 2px dashed var(--pf-gray-300); border-radius: 12px; text-align: center; color: var(--pf-gray-600); margin: 24px 0; }
.prof-placeholder-notice .icon { font-size: 48px; color: var(--pf-gray-400); margin-bottom: 12px; }
.prof-placeholder-notice strong { display: block; font-size: 18px; color: var(--pf-gray-700); margin-bottom: 8px; }
.prof-placeholder-notice p { font-size: 14px; line-height: 1.6; margin: 0 auto; max-width: 600px; }
.prof-placeholder-cta { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.prof-placeholder-cta a { padding: 8px 16px; background: #fff; border: 1px solid var(--pf-green); border-radius: 6px; color: var(--pf-green-dark); font-size: 13px; font-weight: 600; text-decoration: none; }
.prof-placeholder-cta a:hover { background: var(--pf-green); color: #fff; text-decoration: none; }

/* Deep link CTAs */
.prof-deeplinks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 28px; }
@media (max-width: 900px) { .prof-deeplinks { grid-template-columns: repeat(2, 1fr); } }
.prof-deeplink { padding: 14px 16px; background: #fff; border: 1px solid var(--pf-gray-200); border-radius: 8px; text-decoration: none; color: var(--pf-gray-900); display: flex; align-items: center; gap: 10px; transition: all .15s; }
.prof-deeplink:hover { border-color: var(--pf-green); background: var(--pf-green-light); text-decoration: none; }
.prof-deeplink i { font-size: 22px; color: var(--pf-green); }
.prof-deeplink .lbl { font-size: 11px; color: var(--pf-gray-500); display: block; }
.prof-deeplink .val { font-size: 13px; font-weight: 600; color: var(--pf-gray-900); }

/* Back to hub */
.prof-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: #fff; border: 1px solid var(--pf-gray-300); border-radius: 6px; color: var(--pf-gray-700); text-decoration: none; font-size: 13px; margin-bottom: 16px; }
.prof-back:hover { background: var(--pf-green-light); border-color: var(--pf-green); color: var(--pf-green-dark); text-decoration: none; }
