/* JOBCOIN 2026-11-24 에디토리얼 마감·UX·접근성 보강(왼쪽 띠 없음, 압축 매니페스트 무손상). */
:root {
  --jc-sticky-offset: 74px;
  --jc-surface-border: #d2d8ca;
  --jc-shadow-subtle: 0 1px 2px rgba(23, 40, 35, 0.04), 0 6px 18px rgba(23, 40, 35, 0.04);
  --jc-shadow-hover: 0 4px 12px rgba(23, 40, 35, 0.07), 0 14px 30px rgba(23, 40, 35, 0.06);
}

/* 1. 고정 내비게이션 오프셋 일괄 교정(앵커 점프 및 Sticky 사이드바 가림 해소) */
html {
  scroll-padding-top: var(--jc-sticky-offset);
}

body .reading-desk,
body .article-sidebar .toc-box,
body .discovery-reading .discovery-aside {
  top: var(--jc-sticky-offset);
}

body .entry-content h2,
body .entry-content > h2,
body .entry-content > h3,
body .discovery-reading .discovery-prose h2,
body .source-box,
body .sitemap-article-group,
body .r2-reader-paths article {
  scroll-margin-top: var(--jc-sticky-offset);
}

/* 2. 고정 내비게이션 스크롤 깊이감 */
.nav-line {
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-line.is-scrolled {
  background: rgba(245, 244, 239, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(23, 40, 35, 0.06);
}

/* 3. WCAG 2.1 명도 대비 및 아이콘 크기 교정 */
nav.toc-box ol li.is-tail a::before {
  color: var(--muted);
}

.footer-upgrade__sitemap .jc-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.footer-upgrade__sitemap:hover .jc-icon,
.footer-upgrade__sitemap:focus-visible .jc-icon {
  transform: translateX(2px);
}

/* 4. 목록·검색 페이지 h2 카드 제목 계층 호환(.story h3와 동일 시각 규격 유지) */
.story--standard h2 {
  font-size: 22px;
  line-height: 1.5;
  margin: 10px 0 13px;
  font-weight: 650;
  text-wrap: balance;
}

.story--row h2 {
  font-size: 21px;
  line-height: 1.5;
  margin: 8px 0;
  font-weight: 650;
  text-wrap: balance;
}

.story--compact h2 {
  font-size: 17px;
  line-height: 1.55;
  margin: 8px 0 10px;
  font-weight: 650;
  text-wrap: balance;
}

.balanced-grid .story--standard h2 {
  font-size: 17px;
  line-height: 1.55;
}

/* 5. 카드·썸네일·탐색 경로 에디토리얼 마감 */
.lead-picture,
.story--standard .story-picture,
.story--row .story-picture,
.story--compact .story-picture {
  border-radius: 8px;
  border: 1px solid rgba(23, 40, 35, 0.08);
}

.story--compact .story-picture {
  border-radius: 6px;
}

.picture-tag {
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(23, 40, 35, 0.14);
}

.story-body h2 a,
.story-body h3 a,
.lead-story h2 a {
  transition: color 0.16s ease;
}

.story-body h2 a:hover,
.story-body h3 a:hover,
.lead-story h2 a:hover {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.round-link {
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.round-link:hover,
.round-link:focus-visible {
  border-color: var(--ink);
  transform: translateX(2px);
}

.home-path-list a {
  padding-inline: 10px;
  border-radius: 6px;
  transition: background-color 0.18s ease, padding-left 0.18s ease;
}

.home-path-list a:hover,
.home-path-list a:focus-visible {
  background: #ecefe4;
}

.home-path-list a b {
  transition: transform 0.18s ease;
}

.home-path-list a:hover b,
.home-path-list a:focus-visible b {
  transform: translateX(3px);
}

/* 6. 표면 위계·카드 보강(사장님 정책 준수: 왼쪽 띠 미사용, 얇은 전체 테두리) */
.context-card,
.reading-desk,
.learning-step,
.topic-hub-card,
.r2-reader-paths article,
.article-tool-cta {
  border-radius: 10px;
  border: 1px solid var(--jc-surface-border);
  box-shadow: var(--jc-shadow-subtle);
}

.context-card,
.topic-hub-card,
.r2-start-shortcuts a {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.context-card:hover,
.context-card:focus-visible,
.topic-hub-card:hover,
.topic-hub-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: var(--jc-shadow-hover);
}

.r2-start-shortcuts a {
  border-radius: 8px;
}

.r2-start-shortcuts a:hover,
.r2-start-shortcuts a:focus-visible {
  transform: translateY(-1px);
  border-color: var(--green);
  background: #eef1e7;
}

.editorial-banner {
  border-radius: 12px;
  background: radial-gradient(circle at 88% 18%, rgba(128, 148, 82, 0.24), transparent 46%), var(--ink);
  border: 1px solid rgba(212, 255, 87, 0.16);
}

.editorial-banner .pill-link {
  border-radius: 999px;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/* 7. 기사 상세 신뢰 컴포넌트·목차·표 마감 */
.source-box,
.review-details,
.article-disclosure,
.sidebar-principle {
  border-radius: 10px;
}

.sidebar-principle {
  border: 1px solid var(--jc-surface-border);
}

.source-box ol li a {
  border-radius: 6px;
  padding-inline: 8px;
  margin-inline: -8px;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.source-box ol li a:hover,
.source-box ol li a:focus-visible {
  background: #eaeee2;
}

.entry-content .toc-inline-list a.is-active {
  background: #e1e7d6;
  color: var(--ink);
  font-weight: 700;
}

@media (min-width: 601px) {
  .entry-content .article-table {
    border-radius: 10px;
  }

  .entry-content .article-table tbody tr:hover > td {
    background: #ebefe2;
  }
}

/* 8. 다이얼로그·페이지네이션·버튼 마감 */
dialog.site-dialog {
  border-radius: 14px;
  border-color: var(--jc-surface-border);
  box-shadow: 0 24px 60px rgba(23, 40, 35, 0.22);
}

.pagination .page-numbers {
  border-radius: 8px;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus-visible {
  background: #e7ebde;
  border-color: var(--green);
}

/* 9. 반응형 규격 동기화 */
@media (max-width: 1100px) {
  .story--row h2 {
    font-size: 19px;
  }
}

@media (max-width: 800px) {
  .story--standard h2 {
    font-size: 19px;
  }
}

@media (max-width: 680px) {
  .story-body h2 a {
    display: inline-block;
    padding-block: 12px;
    margin-block: -12px;
  }
}

@media (max-width: 540px) {
  .story--standard h2 {
    font-size: 22px;
    margin: 10px 0 12px;
  }

  .story--row h2 {
    font-size: 17px;
    line-height: 1.5;
    margin: 8px 0 10px;
  }

  .story--compact h2 {
    font-size: 17px;
    margin: 7px 0 10px;
  }

  .balanced-grid .story--standard h2 {
    font-size: 21px;
  }

  .editorial-banner {
    border-radius: 10px;
  }
}

@media (max-width: 380px) {
  :root {
    --jc-sticky-offset: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-line,
  .footer-upgrade__sitemap .jc-icon,
  .story-body h2 a,
  .story-body h3 a,
  .lead-story h2 a,
  .round-link,
  .home-path-list a,
  .home-path-list a b,
  .context-card,
  .topic-hub-card,
  .r2-start-shortcuts a,
  .editorial-banner .pill-link,
  .source-box ol li a,
  .pagination .page-numbers {
    transition: none;
  }

  .round-link:hover,
  .round-link:focus-visible,
  .home-path-list a:hover b,
  .home-path-list a:focus-visible b,
  .context-card:hover,
  .context-card:focus-visible,
  .topic-hub-card:hover,
  .topic-hub-card:focus-visible,
  .r2-start-shortcuts a:hover,
  .r2-start-shortcuts a:focus-visible,
  .footer-upgrade__sitemap:hover .jc-icon,
  .footer-upgrade__sitemap:focus-visible .jc-icon {
    transform: none;
  }
}
