/**
 * 자동 추출: style-new.css 의 순위 전용 비교바구니 규칙을 업종 허브에만 동일 적용.
 * 생성: node scripts/extract-industry-hub-tray-css.mjs
 * 수정 시 style-new 원문과 동기화할 것.
 */

/* KPI 순위 페이지 전용 우측 비교 바구니(.industry-hub-page 제외): 흰 배경 통일 · 그림자 제거 · 세로 압축 */
.industry-hub-page.ranking-page .ranking-tray-aside #compareTray.compare-tray,
.industry-hub-page.ranking-page .ranking-tray-aside #compareTray.compare-tray:hover,
.industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--collapsed,
.industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray:not(.compare-tray--collapsed) {
  filter: none;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  body:not(.dark-mode)
    .industry-hub-page.ranking-page
    .mobile-compare-tray-shell {
    background: #ffffff;
  }
  .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    .compare-tray--compact.compare-tray {
    border: 1px solid #e1e7ef;
    border-radius: 16px;
    box-shadow: none !important;
    filter: none;
    box-sizing: border-box;
  }

  body:not(.dark-mode)
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray {
    border-color: #e1e7ef;
  }

  /* KPI 순위: 모바일도 row 무선·컴팩트(터치 높이는 32px 이상 유지) */
  body:not(.dark-mode)
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    button.compare-tray-yearly {
    box-sizing: border-box;
    background: #ffffff;
    color: var(--text-main, #111827);
    border: 1px solid #e5ebf3;
    visibility: visible;
    opacity: 1;
    overflow: visible;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact {
    padding: 5px 8px 5px;
    box-sizing: border-box;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-toggle {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    box-sizing: border-box;
    line-height: 1;
    font-size: 12px;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-chevron {
    padding: 0;
    font-size: 11px;
    line-height: 1;
    min-width: 0;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-expandable {
    padding-top: 2px;
    margin-top: 0;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-title {
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    font-weight: 800;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-count {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-muted, #64748b);
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-header--toggle.compare-tray-header--collapsible-row {
    margin-bottom: 4px;
    padding-bottom: 6px;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 2px !important;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin: 0;
    color: var(--text-main, #111827);
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-item {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    border-bottom: none !important;
    border-top: none !important;
    min-height: 32px;
    padding: 1px 0;
    gap: 5px;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-actions {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
    min-width: 0;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-item
    + .compare-tray-item {
    margin-top: 0 !important;
    padding-top: 1px !important;
    border-top: none !important;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-detail,
  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-yearly {
    flex-shrink: 0 !important;
    min-width: 42px !important;
    height: 26px;
    min-height: 26px;
    max-height: 26px;
    padding: 0 7px;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    box-shadow: none;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    white-space: nowrap;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-yearly {
    color: var(--text-main, #111827);
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-remove {
    width: 22px;
    height: 26px;
    min-width: 22px;
    min-height: 26px;
    max-height: 26px;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-btn-group {
    margin-top: 0 !important;
    padding-top: 4px !important;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-btn-group
    button {
    height: 34px !important;
    min-height: 34px !important;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
  }

  body:not(.dark-mode)
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray
    .compare-tray-item:hover {
    background: #ffffff;
  }

  /* 모바일 하단 shell 동일 카드(#compareTray) — aside와 폰트 위계 통일 */
  .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-title {
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    font-weight: 800;
  }

  .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-count {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;
  }

  .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-name {
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 800;
  }

  .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-detail,
  .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-yearly {
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
  }

  .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-remove {
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
  }

  .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-btn-group
    button {
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
  }
}

body:not(.dark-mode)
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray {
  border: 1px solid #e1e7ef;
  box-shadow: none !important;
  filter: none;
}

body:not(.dark-mode)
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray,
body:not(.dark-mode)
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray
  .compare-tray-header,
body:not(.dark-mode)
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray
  .compare-tray-expandable,
body:not(.dark-mode)
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray
  .compare-tray-list,
body:not(.dark-mode)
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray
  .compare-btn-group {
  background: #ffffff;
}

body:not(.dark-mode)
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray
  .compare-tray-item {
  background: #ffffff;
}

body:not(.dark-mode)
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray
  .compare-tray-item:hover {
  background: #ffffff;
}

@media (min-width: 769px) {
  body:not(.dark-mode)
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--collapsible.compare-tray--compact {
    background: #ffffff;
    border: 1px solid #e1e7ef;
    box-shadow: none !important;
    filter: none;
  }
  /* 연도: 상단과 동선 — 흰 배경 + 명시 글자색(cta 상세 버튼은 별도 !important 규칙 유지) */
  body:not(.dark-mode)
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    button.compare-tray-yearly {
    box-sizing: border-box;
    background: #ffffff;
    color: var(--text-main, #111827);
    border: 1px solid #e1e7ef;
    visibility: visible;
    opacity: 1;
    overflow: visible;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact {
    width: 260px;
    max-width: 100%;
    padding: 5px 8px 5px;
    box-sizing: border-box;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-toggle {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    box-sizing: border-box;
    line-height: 1;
    font-size: 10px;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-chevron {
    padding: 0;
    font-size: 9px;
    line-height: 1;
    min-width: 0;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-title {
    font-size: 13px;
    line-height: 1.25;
    letter-spacing: -0.03em;
    font-weight: 800;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-count {
    font-size: 12px;
    line-height: 1.22;
    font-weight: 800;
    color: var(--text-muted, #64748b);
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-header--toggle.compare-tray-header--collapsible-row {
    margin-bottom: 4px;
    padding-bottom: 6px;
  }
  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-expandable {
    padding-top: 2px;
    margin-top: 0;
  }
  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    margin-bottom: 2px;
    padding: 0;
    list-style: none;
  }
  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-item {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    min-height: 30px;
    padding: 1px 0;
    margin: 0;
    box-sizing: border-box;
    border-bottom: none !important;
    border-top: none !important;
  }

  body:not(.dark-mode)
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-item {
    background: #ffffff;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-item
    + .compare-tray-item {
    border-top: none !important;
  }
  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: -0.022em;
    font-weight: 800;
    margin: 0;
    color: var(--text-main, #111827);
  }
  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-actions {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
    min-width: 0;
  }
  /* flex·min 축소로 글자가 잘리지 않도록 — 첫 줄 연도 가시성 포함 */
  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-detail,
  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-yearly {
    flex-shrink: 0 !important;
    min-width: 42px !important;
    height: 26px;
    min-height: 26px;
    max-height: 26px;
    padding: 0 7px;
    border-radius: 7px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
    overflow: visible;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    filter: none;
  }
  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-yearly {
    color: var(--text-main, #111827);
  }
  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-remove {
    width: 22px;
    height: 26px;
    min-width: 22px;
    min-height: 26px;
    max-height: 26px;
    padding: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: none;
    box-sizing: border-box;
    border-radius: 6px;
    color: #64748b;
    background: transparent;
    border: 0;
  }
  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-btn-group {
    margin-top: 0;
    padding-top: 4px;
    gap: 0;
    align-items: stretch;
    box-sizing: border-box;
    min-height: 0;
  }
  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-btn-group
    button {
    height: 34px;
    min-height: 34px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .ranking-page .ranking-table-card,
  .ranking-page .brand-ranking-results-card,
  .ranking-page .ranking-hero-intro-card,
  .ranking-page .ranking-filter-tool-card,
  .ranking-page .ranking-condition-summary {
    border-color: #e5ebf3;
    box-shadow: none !important;
    filter: none;
    box-sizing: border-box;
  }

  .ranking-page .ranking-related-section {
    border-color: #e5ebf3;
    box-shadow: none;
    filter: none;
  }

  .ranking-page .ranking-related-group {
    border-color: #e5ebf3;
  }

  .ranking-page .ranking-related-group--industries {
    border-color: #e4edf8;
  }

  .ranking-page .ranking-related-metric-card,
  .ranking-page .ranking-related-industry-card {
    border-color: #e5ebf3;
  }

  .ranking-page #rankingSeoContentBlock .ranking-seo-card {
    border-color: #e5ebf3;
  }

  .ranking-page #rankingSeoContentBlock .ranking-seo-card--blue {
    border-color: #e2ebfb;
  }

  .ranking-page #rankingSeoContentBlock .ranking-seo-card--green {
    border-color: #e6f3ec;
  }

  .ranking-page #rankingSeoContentBlock .ranking-seo-card--orange {
    border-color: #f5ecdd;
  }
}

.ranking-mobile-cards {
  display: none;
}
.ranking-mobile-flex {
  display: none;
  width: 100%;
  box-sizing: border-box;
}
.ranking-mobile-flex__head,
.ranking-mobile-flex__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  border-bottom: 1px solid var(--border-light, #f3f4f6);
}
.ranking-mobile-flex__head {
  min-height: 48px;
  font-weight: 600;
  font-size: 11px;
  background: var(--surface-muted, #f9fafb);
}
.ranking-mobile-flex__row {
  min-height: 64px;
}
.ranking-mobile-flex__cell {
  flex-shrink: 0;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 6px;
  font-size: 11px;
}
.ranking-mobile-flex__cell--rank {
  flex: 0 0 12%;
  max-width: 12%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ranking-mobile-flex__cell--brand {
  flex: 0 0 40%;
  max-width: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ranking-mobile-flex__brand-text {
  display: block;
  width: 100%;
  min-width: 0;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking-mobile-flex__cell--kpi {
  flex: 0 0 20%;
  max-width: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.ranking-mobile-flex__cell--actions {
  flex: 0 0 28%;
  max-width: 28%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ranking-mobile-flex__head-sep {
  margin: 0 2px;
  color: var(--text-muted, #9ca3af);
  font-weight: 400;
}
.ranking-mobile-flex__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}
.ranking-mobile-flex--empty {
  min-height: 64px;
}
.ranking-mobile-flex__empty-msg {
  padding: 28px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted, #6b7280);
  background: var(--surface-muted, #f9fafb);
}
.ranking-card {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: var(--surface, #fff);
}
.ranking-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ranking-card-name {
  font-weight: 600;
  font-size: 15px;
  flex: 1;
  min-width: 0;
}
.ranking-card-kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
}
.ranking-card-kpi-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.ranking-card-kpi-row .muted {
  color: var(--text-muted, #6b7280);
  font-size: 12px;
}
.ranking-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ranking-card-more {
  margin-top: 10px;
  font-size: 12px;
}
.ranking-card-more summary {
  cursor: pointer;
  color: var(--text-muted, #6b7280);
}
.ranking-card-extra {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted, #6b7280);
}
@media (max-width: 900px) {
  .ranking-top-layout.ranking-layout {
    grid-template-columns: 1fr;
  }
  .ranking-tray-aside {
    max-width: none;
    width: 100%;
  }
  .ranking-tray-aside .compare-tray {
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .ranking-table-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .ranking-table-unit {
    align-self: flex-end;
  }
  .ranking-table-wrapper {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    border-radius: 8px;
    overflow: hidden;
  }
  .ranking-table-wrapper .ranking-table {
    display: none !important;
  }
  .ranking-mobile-flex {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: var(--surface, #fff);
    box-sizing: border-box;
  }
  .ranking-mobile-flex--empty .ranking-mobile-flex__empty-msg {
    border: none;
    border-radius: 0;
  }
  .ranking-page .ranking-detail-btn,
  .ranking-mobile-flex .ranking-compare-btn {
    height: auto;
    min-height: 26px;
    padding: 3px 8px;
    font-size: 12px;
    line-height: 1.3;
    min-width: 40px;
  }
  .ranking-page {
    padding: 12px 16px calc(118px + env(safe-area-inset-bottom, 0px));
  }
  .ranking-page:has(.compare-tray--collapsed) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .ranking-results-inner,
  .ranking-results-root {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
}
.ranking-preview-section {
  margin: 20px 0 8px;
  padding: 16px 18px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: var(--surface, #fff);
}
.ranking-preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.ranking-preview-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}
.ranking-preview-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  color: var(--text, #111827);
  background: var(--surface-muted, #f9fafb);
}
.ranking-preview-all:hover {
  border-color: var(--navy, #1e3a5f);
  color: var(--navy, #1e3a5f);
}
.ranking-preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ranking-preview-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light, #f3f4f6);
  font-size: 14px;
}
.ranking-preview-item:last-child {
  border-bottom: none;
}
.ranking-preview-rank {
  font-weight: 700;
  color: var(--navy, #1e3a5f);
}
.ranking-preview-name {
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ranking-preview-kpi {
  font-size: 12px;
  white-space: nowrap;
}
.ranking-preview-skeleton,
.ranking-preview-empty,
.ranking-preview-error {
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-muted, #6b7280);
}
.ranking-preview-error {
  color: #dc2626;
}
body.dark-mode .ranking-page-title,
body.dark-mode .ranking-subheading {
  color: var(--text, #f3f4f6);
}
body.dark-mode .ranking-page .ranking-hero-intro-card,
body.dark-mode .ranking-page .ranking-filter-tool-card,
body.dark-mode .ranking-page .ranking-condition-summary {
  background: var(--bg-card);
  border-color: var(--border-light);
  box-shadow: none;
}
body.dark-mode .ranking-page .ranking-hero-copy .ranking-intro-line.rank-description {
  color: var(--text-sub);
}
body.dark-mode .ranking-page .ranking-filter-field .ranking-filter-select.ranking-select {
  background: var(--bg-card);
  border-color: var(--border-light);
  color: var(--text-main);
}
body.dark-mode .ranking-page .ranking-summary-chip {
  background: var(--bg-card);
  border-color: var(--border-light);
  color: var(--text-main);
}
body.dark-mode .ranking-page .ranking-detail-btn {
  background: var(--bg-card);
  border-color: var(--border-light);
  color: var(--text-main);
}
body.dark-mode .ranking-page .ranking-detail-btn:hover {
  background: var(--compare-accent, #3b82f6);
  border-color: var(--compare-accent, #3b82f6);
  color: #fff;
}
body.dark-mode .ranking-seo-block,
body.dark-mode .ranking-filter-bar,
body.dark-mode .ranking-tray-aside .compare-tray,
body.dark-mode .ranking-related-links {
  border-color: var(--border-light);
  background: var(--bg-section);
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact {
  background: #111827;
  border-color: #334155;
  color: #f8fafc;
  box-shadow: none;
  filter: none;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-header,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-header {
  border-bottom-color: #334155;
  color: #f8fafc;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-expandable,
body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-list,
body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-btn-group,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-expandable,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-list,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-btn-group {
  background: transparent;
  color: inherit;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-item,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-item {
  background: transparent;
  color: #f8fafc;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-item:hover,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-item:hover {
  background: #172033;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-item
  + .compare-tray-item,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-item
  + .compare-tray-item {
  border-top: 1px solid #334155 !important;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-name,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-name {
  color: #f8fafc;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-count,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-count {
  color: #cbd5e1;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-slim-hint,
body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-hint,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-slim-hint,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-hint {
  color: #cbd5e1;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-toggle,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-toggle {
  background: #0f172a;
  border: 1px solid #64748b;
  color: #f8fafc;
  box-shadow: none;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-remove:hover,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-remove:hover {
  color: #f8fafc;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-remove,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-remove {
  color: #94a3b8;
  background: transparent;
  border: 0;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-reset-btn,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-reset-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  box-shadow: none;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-reset-btn:hover:not(:disabled),
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-reset-btn:hover:not(:disabled) {
  background: #334155;
  border-color: #475569;
  color: #f8fafc;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  button.compare-tray-yearly,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  button.compare-tray-yearly {
  background: #0f172a;
  color: #f8fafc;
  border-color: #475569;
  box-shadow: none;
  visibility: visible;
  opacity: 1;
  overflow: visible;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  button.compare-tray-yearly:hover,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  button.compare-tray-yearly:hover {
  background: #1e293b;
  border-color: #64748b;
  color: #f8fafc;
}

/* KPI 트레이: 다크모드에서도 라이트와 동일 폰트 스케일(색 규칙과 분리) */
body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-title,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-title {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-count,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-count {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-name,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-name {
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  button.compare-tray-detail,
body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  button.compare-tray-yearly,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  button.compare-tray-detail,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  button.compare-tray-yearly {
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-remove,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-tray-remove {
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-btn-group
  button,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-btn-group
  button {
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

/* PC(≥769): KPI 순위 다크모드 비교바구니 — 라이트 PC와 동일 타이포 2단계 축소(모바일 규칙과 분리) */
@media (min-width: 769px) {
  body.dark-mode
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-toggle,
  body.dark-mode
    .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-toggle {
    font-size: 10px;
    line-height: 1;
  }

  body.dark-mode
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-chevron,
  body.dark-mode
    .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-chevron {
    font-size: 9px;
    line-height: 1;
  }

  body.dark-mode
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-title,
  body.dark-mode
    .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-title {
    font-size: 13px;
    line-height: 1.25;
    letter-spacing: -0.03em;
    font-weight: 800;
  }

  body.dark-mode
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-count,
  body.dark-mode
    .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-count {
    font-size: 12px;
    line-height: 1.22;
    font-weight: 800;
  }

  body.dark-mode
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-name,
  body.dark-mode
    .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-name {
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: -0.022em;
    font-weight: 800;
  }

  body.dark-mode
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    button.compare-tray-detail,
  body.dark-mode
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    button.compare-tray-yearly,
  body.dark-mode
    .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    button.compare-tray-detail,
  body.dark-mode
    .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    button.compare-tray-yearly {
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
  }

  body.dark-mode
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-remove,
  body.dark-mode
    .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-remove {
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
  }

  body.dark-mode
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-btn-group
    button,
  body.dark-mode
    .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-btn-group
    button {
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
  }
}

/* 모바일(≤768): KPI 순위 #compareTray 내부 타이포 2단계 축소(카드·버튼 박스 크기 불변 · font만) */
@media (max-width: 768px) {
  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-title,
  .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-title,
  body.dark-mode
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-title,
  body.dark-mode
    .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-title {
    font-size: clamp(11px, 0.82vw, 14px);
    line-height: 1.3;
    letter-spacing: -0.025em;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-name,
  .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-name,
  body.dark-mode
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-name,
  body.dark-mode
    .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-name {
    font-size: clamp(11px, 0.82vw, 14px);
    line-height: 1.3;
    letter-spacing: -0.025em;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-count,
  .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-count,
  body.dark-mode
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-count,
  body.dark-mode
    .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-count {
    font-size: 12px;
    line-height: 1.25;
    letter-spacing: -0.02em;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    button.compare-tray-detail,
  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    button.compare-tray-yearly,
  .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    button.compare-tray-detail,
  .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    button.compare-tray-yearly,
  body.dark-mode
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    button.compare-tray-detail,
  body.dark-mode
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    button.compare-tray-yearly,
  body.dark-mode
    .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    button.compare-tray-detail,
  body.dark-mode
    .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    button.compare-tray-yearly {
    font-size: 11px;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-btn-group
    button,
  .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-btn-group
    button,
  body.dark-mode
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-btn-group
    button,
  body.dark-mode
    .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-btn-group
    button {
    font-size: 11px;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-remove,
  .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-remove,
  body.dark-mode
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-remove,
  body.dark-mode
    .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-remove {
    font-size: 13px;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-toggle,
  .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-toggle,
  body.dark-mode
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-toggle,
  body.dark-mode
    .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-toggle {
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-chevron,
  .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-chevron,
  body.dark-mode
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-chevron,
  body.dark-mode
    .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-chevron {
    font-size: 9px;
    line-height: 1;
    letter-spacing: 0;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-hint,
  .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-hint,
  body.dark-mode
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-hint,
  body.dark-mode
    .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-hint {
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: -0.02em;
  }

  .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-expandable
    .compare-tray-slim-hint,
  .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-expandable
    .compare-tray-slim-hint,
  body.dark-mode
    .industry-hub-page.ranking-page
    .ranking-tray-aside
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-expandable
    .compare-tray-slim-hint,
  body.dark-mode
    .industry-hub-page.ranking-page
    .mobile-compare-tray-shell
    #compareTray.compare-tray.compare-tray--compact
    .compare-tray-expandable
    .compare-tray-slim-hint {
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: -0.02em;
  }
}



/* --- cta-primary-override.css 순위 전용 구간 이식(업종 허브) --- */
/* KPI 순위 페이지 비교바구니(#compareTray): 상세·비교 보기 다크 톤 통일 */
body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  button.compare-tray-detail.cta-tertiary,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  button.compare-tray-detail.cta-tertiary {
  background: #1d4ed8 !important;
  color: #eff6ff !important;
  border: 1px solid #3b82f6 !important;
  box-shadow: none !important;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  button.compare-tray-detail.cta-tertiary:hover:not(:disabled),
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  button.compare-tray-detail.cta-tertiary:hover:not(:disabled) {
  background: #2563eb !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  button.compare-tray-detail.cta-tertiary:active:not(:disabled),
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  button.compare-tray-detail.cta-tertiary:active:not(:disabled) {
  background: #1d4ed8 !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  button.compare-tray-detail.cta-tertiary:focus-visible,
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  button.compare-tray-detail.cta-tertiary:focus-visible {
  outline: 2px solid #60a5fa !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3) !important;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-start-btn.cta-primary:not(:disabled),
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-start-btn.cta-primary:not(:disabled) {
  background: #2563eb !important;
  border: 1px solid #2563eb !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-start-btn.cta-primary:hover:not(:disabled),
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-start-btn.cta-primary:hover:not(:disabled) {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
}

body.dark-mode
  .industry-hub-page.ranking-page
  .ranking-tray-aside
  #compareTray.compare-tray.compare-tray--compact
  .compare-start-btn.cta-primary:active:not(:disabled),
body.dark-mode
  .industry-hub-page.ranking-page
  .mobile-compare-tray-shell
  #compareTray.compare-tray.compare-tray--compact
  .compare-start-btn.cta-primary:active:not(:disabled) {
  background: #1e40af !important;
  border-color: #1e40af !important;
  color: #ffffff !important;
}