/* Shared visual system. Loaded after legacy feature styles to retain their behavior. */
:root {
  --bg: #fff; --surface: #fff; --surface-strong: #f2f6f6;
  --ink: #17252b; --muted: #607079; --line: #e0e7e8;
  --teal: #087f74; --teal-soft: #e9f5f2; --shadow: none;
  --report-bg: #fff; --report-ink: #17252b; --report-muted: #607079;
  --report-line: #e0e7e8; --report-teal: #087f74; --report-shadow: none;
}
body, body.report-page { font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; font-size: 13px; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
.ui-icon { width: 18px; height: 18px; flex: 0 0 18px; vertical-align: middle; }
.explorer-page .app-shell { width: min(1280px, calc(100% - 112px)); padding: 0 0 32px; }
.topbar { min-height: 76px; padding: 0; margin: 0; }
.brand-lockup strong { font-size: 28px; letter-spacing: -1.1px; font-weight: 850; }
.primary-nav { display: flex; align-items: center; gap: 32px; }
.primary-nav a { padding: 27px 0 23px; border-bottom: 3px solid transparent; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 650; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); }
.explorer-page .page-intro { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 34px 0 22px; }
.intro-copy h1 { margin: 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.3; letter-spacing: -1.6px; font-weight: 780; }
.intro-copy > p:last-child { margin: 10px 0 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
.intro-copy strong { color: inherit; font-weight: 450; }
.outline-link { padding: 10px 16px; border: 1px solid var(--teal); border-radius: 6px; color: var(--teal); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.outline-link:hover { background: var(--teal-soft); }
.provenance-line { display: flex; gap: 22px; align-items: center; border-top: 1px solid var(--line); padding: 12px 0; color: var(--muted); font-size: 12px; }
.provenance-line strong { color: var(--ink); font-weight: 650; }
.provenance-line > span { border-left: 1px solid var(--line); padding-left: 22px; }
.explorer-nav { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); margin: 8px 0 16px; }
.explorer-nav > a { display: inline-flex; align-items: center; gap: 4px; color: var(--teal); font-size: 13px; font-weight: 650; text-decoration: none; }
.explorer-nav .rank-switch { display: flex; padding: 0; margin: 0; border: 0; gap: 20px; border-radius: 0; box-shadow: none; }
.rank-tab { min-height: 50px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 0 14px; font-size: 16px; font-weight: 720; }
.rank-tab.active { border-color: var(--teal); background: transparent; }
.rank-tab:hover { background: transparent; }
.control-panel { grid-template-columns: minmax(200px, 1fr) auto minmax(140px, 190px) auto auto; align-items: center; gap: 18px; padding: 14px; border: 0; background: #f2f6f6; }
.control-panel label { font-weight: 550; }
.control-panel .search-field { position: relative; display: block; }
.search-field .ui-icon { position: absolute; left: 13px; top: 12px; color: var(--muted); pointer-events: none; }
.control-panel .search-field input { padding-left: 39px; }
.control-panel .year-field { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.year-field select { min-width: 110px; }
.control-panel input, .control-panel select { border-color: #ccd7d9; border-radius: 6px; min-height: 42px; font-size: 13px; }
.control-panel .scope-toggle { padding: 0; min-height: 42px; background: transparent; border: 0; color: var(--ink); font-size: 13px; white-space: nowrap; }
.control-panel .scope-toggle input { width: 16px; height: 16px; min-height: 16px; accent-color: var(--teal); }
.reset-button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 38px; padding: 4px 8px 4px 18px; border: 0; border-left: 1px solid #cdd8da; background: transparent; color: var(--ink); cursor: pointer; white-space: nowrap; }
.reset-button:hover { color: var(--teal); }
.data-trust { display: flex; flex-wrap: wrap; align-items: center; position: relative; padding: 0; margin-top: 14px; background: #fff6df; border: 0; border-radius: 6px; font-size: 12px; }
.data-trust .data-quality-message { flex: 1; margin: 0; padding: 11px 150px 11px 16px; color: #795218; border: 0; background: transparent; font-size: 12px; font-weight: 600; }
.trust-details { margin-left: auto; }
.trust-details > summary { display: flex; align-items: center; gap: 10px; padding: 11px 16px; color: #795218; cursor: pointer; list-style: none; white-space: nowrap; }
.trust-details summary::-webkit-details-marker { display: none; }
.trust-details[open] { width: 100%; }
.trust-details[open] > summary { position: absolute; right: 0; top: 0; }
.trust-details[open] > summary .ui-icon { transform: rotate(180deg); }
.trust-details[open] ~ * { clear: both; }
.trust-content { padding: 18px 20px; border: 1px solid #eedfb9; border-top: 0; border-radius: 0 0 6px 6px; background: #fffcf5; }
.trust-meta { display: flex !important; flex-wrap: wrap; align-items: center; gap: 12px !important; }
.trust-meta .mode-badge { border: 0; padding: 0; background: transparent; color: var(--ink); font-size: 12px; }
.trust-meta .updated-at { font-size: 12px; }
.trust-actions { display: flex !important; align-items: center; justify-content: space-between; gap: 14px !important; margin-top: 12px; }
.trust-actions #refreshButton { min-height: 34px; padding: 7px 12px; font-size: 12px; font-weight: 550; }
.summary-grid { margin: 22px 0 28px; background: transparent; border: 0; border-radius: 0; gap: 0; }
.metric { padding: 0 24px; min-height: 84px; border-left: 1px solid var(--line); }
.metric:first-child { border-left: 0; padding-left: 16px; }
.metric span { font-size: 12px; font-weight: 500; }
.metric strong { margin: 8px 0 7px; color: var(--teal); font-size: clamp(21px, 2.25vw, 30px); line-height: 1.2; letter-spacing: -1px; font-weight: 720; }
.metric small { font-size: 11px; line-height: 1.5; }
.results-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 28px; }
.results-layout .table-section { min-width: 0; margin: 0; border: 0; border-radius: 0; overflow: visible; }
.table-section > .section-heading { padding: 0 0 14px; min-height: 45px; border: 0; align-items: center; }
.section-heading h2 { font-size: 22px; line-height: 1.4; letter-spacing: -.5px; }
.table-tools { gap: 12px; }
.table-tools > span { font-size: 11px; }
.table-tools button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 10px; color: var(--ink); font-size: 12px; font-weight: 550; }
.export-help { border: 0; padding: 0 0 12px; font-size: 11px; line-height: 1.5; }
.table-section > .table-wrap { border: 1px solid var(--line); border-radius: 7px; }
.table-section table { min-width: 720px; }
.table-section th, .table-section td { padding: 14px 12px; }
.table-section th { font-weight: 650; font-size: 11px; white-space: nowrap; background: #f1f5f5; color: var(--ink); }
.table-section td { font-size: 13px; }
.table-section td.numeric { font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.table-section .rank { font-size: 13px; width: 46px; color: var(--muted); }
.company-title-row { display: flex; align-items: flex-start; gap: 7px; flex-wrap: wrap; }
.company-cell { min-width: 210px; }
.company-cell strong { font-size: 15px; font-weight: 700; }
.company-cell > span { display: block; font-size: 10px; line-height: 1.55; margin-top: 5px; color: var(--muted); max-width: 300px; }
.row-actions { gap: 4px; }
.row-actions button { min-width: 28px; min-height: 25px; padding: 2px 5px; font-size: 10px; font-weight: 500; border-color: #d4dee0; background: #fff; }
.row-actions button:hover, .row-actions button.active { background: var(--teal-soft); border-color: var(--teal); color: var(--teal); }
.table-section .payout { font-size: 14px; font-weight: 700; color: var(--teal); }
.basis-note { background: transparent; border: 0; padding: 0; font-size: 9px; font-weight: 500; }
.basis-note.mixed, .basis-note.matched { background: transparent; border: 0; }
.pagination-bar { padding: 16px 0; border: 0; gap: 8px; }
.pagination-bar button { min-width: 50px; min-height: 34px; font-size: 12px; font-weight: 550; }
#pageIndicator { min-width: 52px; font-size: 12px; font-weight: 550; }
.page-size { display: inline-flex; gap: 8px; align-items: center; margin-right: auto; color: var(--muted); font-size: 11px; }
.page-size select { padding: 7px 8px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); font-size: 12px; }
.insight-rail { min-width: 0; }
.insight-rail .visual-section { margin: 0; background: #f2f7f7; border: 0; padding: 22px; border-radius: 8px; }
.insight-rail .section-heading { display: block; padding: 0; border: 0; }
.insight-rail .section-heading h2 { font-size: 19px; }
.insight-rail .section-heading > span { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.insight-rail .bar-chart { padding: 18px 0 10px; gap: 16px; }
.insight-rail .bar-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 8px; padding: 4px 0; border-radius: 0; }
.bar-name { grid-column: 1 / -1; }
.bar-name strong { font-size: 13px; font-weight: 650; }
.insight-rail .bar-name span { display: none; }
.bar-track { height: 12px; border-radius: 1px; background: #e1eceb; }
.bar-fill { background: var(--teal); border-radius: 1px; }
.bar-value { color: var(--ink); font-size: 11px; font-variant-numeric: tabular-nums; }
.rail-link { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #d4e1e1; margin-top: 12px; padding-top: 16px; text-decoration: none; color: var(--teal); font-size: 12px; font-weight: 650; }
.insight-strip { margin: 28px 0 48px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); }
.insight-strip article { border-left: 1px solid var(--line); margin: 18px 0; padding: 0 24px; min-height: 72px; }
.insight-heading { padding-left: 0; }
.insight-strip article span, .insight-strip article small { color: var(--muted); font-weight: 450; }
.insight-strip article strong { font-size: 23px; font-weight: 650; }
.section-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.insight-heading .section-note { margin: 0 0 6px; font-size: 11px; }
.featured-reports { border: 0; padding: 0 0 36px; margin: 0; }
.featured-reports-heading { margin-bottom: 16px; }
.featured-report-grid { gap: 0 20px; }
.featured-report-grid a { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 18px 0; min-height: 82px; gap: 10px; }
.featured-report-grid strong { font-size: 15px; font-weight: 650; }
.methodology-band { background: #f3f7f7; padding: 32px; margin: 0; border: 0; grid-template-columns: 1.5fr 1fr; gap: 36px; }
.methodology-copy h2 { font-size: 25px; line-height: 1.45; letter-spacing: -.7px; }
.methodology-copy > p:not(.eyebrow) { font-size: 13px; line-height: 1.8; }
.methodology-copy a { display: inline-flex; align-items: center; color: var(--teal); font-size: 13px; }
.formula-display { display: flex; flex-direction: column; align-items: center; padding-left: 32px; border-left: 1px solid #d1dfe0; text-align: center; }
.formula-display strong, .formula-display > span { font-size: 26px; font-weight: 700; line-height: 1.7; letter-spacing: -.6px; }
.formula-display strong { border-bottom: 2px solid var(--ink); padding: 0 20px; }
.formula-display small { margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.faq-section { padding: 0; margin: 40px 0; grid-template-columns: 1fr 2.3fr; }
.faq-heading h2 { font-size: 24px; }
.faq-list summary { font-size: 14px; font-weight: 600; padding: 18px 28px 18px 0; }
.faq-list p { padding-left: 0; font-size: 13px; line-height: 1.8; }
.partner-band { margin: 0; padding: 28px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); }
.partner-band strong { font-size: 23px; font-weight: 700; letter-spacing: -.5px; }
.partner-band p { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.partner-band > a { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 20px; background: var(--teal); color: white; border: 0; border-radius: 6px; font-size: 13px; }
.site-footer { margin-top: 0; border: 0; padding: 24px 0; }
.footer-copy { font-size: 10px; line-height: 1.8; }
.site-footer nav a { font-size: 11px; }
.personal-panel { margin: 0 0 22px; border-radius: 6px; background: #f7fafa; }
.personal-panel article { background: transparent; }
.compare-section { margin: 0 0 24px; }
.company-detail .detail-heading { flex-wrap: wrap; gap: 12px; }
.information-header { width: min(1280px, calc(100% - 112px)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; border-bottom: 1px solid var(--line); }
.information-page .legal-page { max-width: 820px; margin: 40px auto 64px; padding: 36px 40px; border: 0; box-shadow: none; }
.legal-page h1 { font-size: 32px; letter-spacing: -1px; line-height: 1.4; }
.legal-page h2 { margin-top: 36px; font-size: 20px; }
.legal-page p, .legal-list { color: #43575d; font-size: 14px; line-height: 1.9; }
.report-header, .report-shell, .report-footer { width: min(1280px, calc(100% - 112px)); }
.report-header { min-height: 76px; }
.report-header nav { gap: 18px; }
.report-brand { font-size: 26px; letter-spacing: -1px; }
.report-brand span { display: none; }
.report-header nav a { font-weight: 600; }
@media (max-width: 1150px) {
  .explorer-page .app-shell, .information-header, .report-header, .report-shell, .report-footer { width: calc(100% - 56px); }
  .control-panel { grid-template-columns: minmax(180px, 1fr) auto minmax(120px, 150px) auto; gap: 12px; }
  .control-panel .year-field > span { display: none; }
  .reset-button { grid-column: 4; border: 0; justify-self: end; padding: 0; }
  .control-panel .scope-toggle { grid-column: 4; grid-row: 1; }
  .reset-button { grid-column: 1 / -1; grid-row: 2; min-height: 22px; }
  .results-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; }
  .table-section > .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .table-tools { width: 100%; justify-content: space-between; }
  .metric { padding: 0 16px; }
}
@media (max-width: 900px) {
  .results-layout { grid-template-columns: 1fr; }
  .insight-rail .bar-chart { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
  .insight-rail .bar-row { grid-template-columns: 1fr; }
  .bar-value { text-align: left; }
  .insight-rail .visual-section { padding: 22px; }
  .insight-rail .rail-link { justify-content: flex-start; gap: 5px; }
  .table-section > .section-heading { flex-direction: row; align-items: center; }
  .table-tools { width: auto; }
  .methodology-band { grid-template-columns: 1fr 1fr; gap: 24px; padding: 26px; }
  .formula-display { padding-left: 24px; }
  .formula-display strong, .formula-display > span { font-size: 22px; }
  .featured-report-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .insight-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .insight-heading { grid-column: 1 / -1; min-height: auto; padding: 18px 0 0; }
  .insight-strip article:nth-child(2) { border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
  .explorer-page .app-shell, .information-header, .report-header, .report-shell, .report-footer { width: calc(100% - 40px); }
  .topbar, .information-header, .report-header { flex-wrap: wrap; min-height: 100px; gap: 4px; padding: 16px 0 0; }
  .brand-lockup strong, .report-brand { font-size: 23px; }
  .primary-nav { width: 100%; gap: 24px; }
  .primary-nav a { padding: 10px 0 12px; font-size: 12px; }
  .explorer-page .page-intro { display: block; padding: 26px 0 20px; }
  .intro-copy h1 { font-size: 27px; letter-spacing: -1.1px; word-break: keep-all; }
  .intro-copy > p:last-child { font-size: 13px; max-width: 330px; }
  .page-intro .outline-link { display: inline-block; margin-top: 16px; padding: 8px 12px; font-size: 11px; }
  .provenance-line { display: block; font-size: 11px; line-height: 1.8; }
  .provenance-line > span { display: block; padding: 0; border: 0; }
  .explorer-nav { margin: 6px 0 14px; }
  .explorer-nav .rank-switch { gap: 10px; }
  .rank-tab { padding: 0 2px; font-size: 14px; min-height: 46px; }
  .explorer-nav > a { font-size: 11px; }
  .explorer-nav > a .ui-icon { width: 14px; }
  .control-panel { grid-template-columns: 1fr 1fr; padding: 12px; gap: 12px; }
  .control-panel .search-field { grid-column: 1 / -1; }
  .control-panel .year-field { grid-column: 1; grid-row: 2; }
  .control-panel .sector-field { grid-column: 2; grid-row: 2; }
  .control-panel .scope-toggle { grid-column: 1; grid-row: 3; justify-content: flex-start; font-size: 12px; min-height: 30px; }
  .reset-button { grid-column: 2; grid-row: 3; font-size: 12px; min-height: 30px; }
  .data-trust .data-quality-message { flex-basis: 100%; padding: 12px 14px 4px; font-size: 11px; line-height: 1.7; }
  .trust-details { width: 100%; }
  .trust-details > summary { padding: 7px 14px 11px; font-size: 11px; }
  .trust-details[open] > summary { position: static; }
  .trust-content { padding: 14px; }
  .trust-actions { align-items: flex-start; flex-direction: column; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 24px 0; margin: 24px 0; }
  .metric { padding: 0 14px; min-height: 75px; }
  .metric:nth-child(odd) { border-left: 0; padding-left: 0; }
  .metric strong { font-size: 22px; letter-spacing: -.7px; }
  .metric span { font-size: 11px; }
  .metric small { font-size: 10px; }
  .section-heading h2 { font-size: 17px; }
  .table-section > .section-heading { flex-wrap: wrap; gap: 8px; }
  .table-tools { width: 100%; }
  .export-help { font-size: 10px; }
  .page-size { gap: 5px; }
  .pagination-bar { gap: 4px; }
  .pagination-bar button { min-width: 43px; }
  .insight-rail .bar-chart { grid-template-columns: 1fr; gap: 12px; }
  .insight-rail .bar-row { grid-template-columns: minmax(0, 1fr) auto; }
  .insight-rail .bar-value { text-align: right; }
  .insight-strip { margin-bottom: 36px; }
  .insight-strip article { padding: 0 12px; }
  .insight-strip article strong { font-size: 18px; line-height: 1.35; }
  .insight-strip article small { font-size: 10px; line-height: 1.6; }
  .insight-strip article span { font-size: 10px; }
  .featured-report-grid { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .featured-reports-heading { align-items: flex-start; }
  .featured-reports-heading h2 { font-size: 20px; }
  .featured-reports-heading > a { font-size: 11px; white-space: nowrap; }
  .section-note { font-size: 11px; }
  .featured-report-grid strong { font-size: 13px; }
  .methodology-band { grid-template-columns: 1fr; padding: 24px 20px; }
  .methodology-copy h2 { font-size: 22px; }
  .formula-display { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .faq-section { grid-template-columns: 1fr; gap: 18px; }
  .faq-heading h2 { font-size: 22px; }
  .faq-list summary { font-size: 13px; }
  .partner-band { align-items: stretch; flex-direction: column; gap: 20px; }
  .partner-band strong { font-size: 21px; line-height: 1.5; }
  .partner-band p { font-size: 12px; line-height: 1.7; }
  .information-page .legal-page { width: calc(100% - 40px); padding: 0; margin: 28px auto 48px; }
  .legal-page h1 { font-size: 28px; }
  .report-header nav { gap: 4px; }
  .report-header nav a { padding: 8px 6px; font-size: 11px; }
  .report-header nav button { font-size: 11px; }
}

/* Disclosure direction follows the visual concept without text-glyph icons. */
.faq-list summary::after { content: ""; width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); top: 22px; }
.faq-list details[open] summary::after { content: ""; transform: rotate(225deg); top: 25px; }
