/* ============================================
   핸디캡 설명 페이지 (/handicap)
   ============================================ */

/* ===== Intro Hero ===== */
.hc-intro {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  padding: 72px 24px 0;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.hc-intro__inner {
  max-width: 720px;
  margin: 0 auto;
}
.hc-intro__title {
  font-size: 42px;
  font-weight: 800;
  color: var(--color-primary-deep);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hc-intro__lead {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-primary-deep);
  line-height: 1.5;
  margin: 0;
}
.hc-intro__lead b {
  color: var(--color-primary-deep);
  font-weight: 700;
}

/* Hero: 부가 설명 (스토리) */
.hc-intro__story {
  max-width: 620px;
  margin: 18px 0 0;
}
.hc-intro__story p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--color-text);
  margin: 0 0 10px;
}
.hc-intro__story p:last-child {
  margin: 0;
}

/* Hero: 서브 타이틀 */
.hc-intro__subtitle {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text);
  margin: 48px 0 20px;
  letter-spacing: -0.01em;
  display: block;
  position: relative;
  padding-bottom: 10px;
}
.hc-intro__subtitle::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: var(--color-primary-dark);
}

/* Hero: 계산식 */
.hc-intro__formula {
  display: inline-block;
  background: #fff;
  border: 1.5px solid var(--color-primary-light);
  border-radius: 8px;
  padding: 14px 22px;
  color: var(--color-primary-deep);
  max-width: 100%;
  word-break: keep-all;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  text-align: center;
}
.hc-intro__formula-main {
  font-size: 15px;
  font-weight: 700;
}
.hc-intro__formula-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--color-primary-light);
}

/* Hero: 예시 테이블 */
.hc-intro__table-block {
  margin-top: 24px;
  position: relative;
  overflow: visible;
}
.hc-intro__table-caption {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
}
.hc-intro__table-wrap {
  overflow: visible;
  padding-bottom: 72px; /* hc-intro 상단 padding과 맞춰 시각적 대칭 */
}
.hc-intro__table {
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--color-text);
  min-width: 440px;
}
.hc-intro__table thead th:first-child { border-top-left-radius: 7px; }
.hc-intro__table thead th:last-child  { border-top-right-radius: 7px; }
.hc-intro__table tbody tr:last-child td:first-child { border-bottom-left-radius: 7px; }
.hc-intro__table tbody tr:last-child td:last-child  { border-bottom-right-radius: 7px; }
.hc-intro__table th {
  background: #f5f5f5;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 12px;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
  color: var(--color-text);
}
.hc-intro__table td {
  padding: 9px 14px;
  text-align: center;
  border-bottom: 1px solid #eee;
  font-variant-numeric: tabular-nums;
}
.hc-intro__table tbody tr:last-child td {
  border-bottom: none;
}
.hc-intro__table tbody td b {
  color: var(--color-primary-deep);
  font-weight: 700;
}
.hc-intro__delta {
  font-weight: 600;
}
.hc-intro__delta--pos { color: #c62828; }
.hc-intro__delta--neg { color: #1565c0; }

.hc-intro__note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* ===== Main container ===== */
.hc {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  color: var(--color-text);
  line-height: 1.75;
  font-size: 15px;
}
.hc.hc-collapsed {
  display: none;
}

/* ===== "더 알아보기" 토글 ===== */
.hc-more-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 24px 0;
}
/* 접힌 상태에서는 토글 아래에 스크롤 여백을 둬서
   사용자가 스크롤했을 때 토글이 화면 중앙까지 올라올 수 있게 함 */
body:has(.hc.hc-collapsed) .hc-more-wrap {
  padding-bottom: 50vh;
}
.hc-more-toggle {
  width: 100%;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--color-primary-light);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}
.hc-more-toggle:hover {
  background: var(--color-primary-pale);
  border-color: var(--color-primary-dark);
}
.hc-more-toggle__chev {
  color: var(--color-primary-dark);
  font-size: 13px;
  transition: transform 0.2s;
}
.hc-more-toggle[aria-expanded="true"] .hc-more-toggle__chev {
  transform: rotate(180deg);
}

/* ===== Sup (TM) ===== */
.hc sup,
.hc-intro sup,
.hc-toc sup {
  font-size: 0.55em;
  vertical-align: super;
  line-height: 0;
  font-weight: 400;
  margin-left: 1px;
}

/* ===== TOC (접기/펴기) ===== */
.hc-toc {
  background: #fafafa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 56px;
}
.hc-toc__label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hc-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hc-toc__chapter {
  margin: 0;
  border-bottom: 1px solid var(--color-border);
}
.hc-toc__chapter:last-child {
  border-bottom: none;
}
.hc-toc__chapter-btn {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  transition: color 0.15s;
}
.hc-toc__chapter-btn:hover {
  color: var(--color-primary-dark);
}
.hc-toc__chev {
  color: var(--color-text-muted);
  font-size: 12px;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.hc-toc__chapter-btn[aria-expanded="true"] .hc-toc__chev {
  transform: rotate(180deg);
  color: var(--color-primary-dark);
}
.hc-toc__subs {
  list-style: none;
  padding: 0 0 10px 14px;
  margin: 0;
  display: none;
}
.hc-toc__chapter.is-open .hc-toc__subs {
  display: block;
}
.hc-toc__subs li {
  margin: 0;
}
.hc-toc__subs a {
  display: block;
  padding: 6px 0;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.hc-toc__subs a:hover {
  color: var(--color-primary-dark);
}

/* ===== Chapter ===== */
.hc-chapter {
  margin-bottom: 72px;
  scroll-margin-top: 72px;
}
.hc-chapter__num {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--color-primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hc-chapter__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-primary-dark);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.hc-chapter__lead {
  font-size: 15.5px;
  color: var(--color-text);
  margin: 0 0 32px;
  padding: 16px 18px;
  background: var(--color-primary-pale);
  border-left: 3px solid var(--color-primary-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.8;
}
.hc-chapter__lead b {
  color: var(--color-primary-deep);
}

/* ===== Sub-heading ===== */
.hc-sub {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-text);
  margin: 36px 0 14px;
  letter-spacing: -0.01em;
  scroll-margin-top: 72px;
}
.hc-sub:first-of-type {
  margin-top: 0;
}

/* ===== Body text ===== */
.hc p {
  margin: 0 0 14px;
  line-height: 1.8;
  color: var(--color-text);
}
.hc p:last-child { margin-bottom: 0; }
.hc ul, .hc ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.hc li {
  margin-bottom: 6px;
  line-height: 1.75;
}
.hc b {
  font-weight: 700;
  color: var(--color-text);
}
.hc code {
  background: #f5f5f5;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: 'Consolas', 'Menlo', monospace;
  font-size: 13px;
  color: var(--color-text);
}

/* ===== Equation box ===== */
.hc-equation {
  background: #f5f5f5;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14.5px !important;
  color: var(--color-text) !important;
  line-height: 1.75 !important;
  margin: 12px 0 18px !important;
  word-break: keep-all;
  border-left: 3px solid var(--color-border);
  font-weight: 500;
}
.hc-equation b {
  color: var(--color-primary-deep) !important;
  font-weight: 700;
}
.hc-equation--featured {
  background: linear-gradient(135deg, #eef5ec 0%, #f8fcf7 100%);
  border-left: 3px solid var(--color-primary-dark);
  font-size: 15px !important;
  padding: 18px 22px !important;
  font-weight: 600;
  text-align: center;
}

/* ===== Two-box (WHS 두 축) ===== */
.hc-twobox {
  display: flex;
  gap: 14px;
  margin: 18px 0 20px;
}
.hc-twobox__item {
  flex: 1;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.hc-twobox__item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 8px;
}
.hc-twobox__item p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.hc-twobox__link {
  font-size: 12px;
  color: var(--color-primary-dark);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ===== Table ===== */
.hc-table-wrap {
  overflow: visible;
  margin: 12px 0 18px;
}
.hc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.hc-table thead th {
  background: #f5f5f5;
  padding: 6px 12px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-text);
  font-size: 13px;
  white-space: nowrap;
  line-height: 1.35;
}
.hc-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.hc-table tbody tr:last-child td {
  border-bottom: none;
}
.hc-table tbody td b {
  color: var(--color-primary-deep);
  font-weight: 700;
}
.hc-table__highlight {
  background: var(--color-primary-pale);
}

/* 멀티 인덱스 헤더 */
.hc-table thead .th-group {
  border-bottom: 1px solid var(--color-border);
}
.hc-table thead .th-sub {
  font-weight: 600;
  background: #fafafa;
  font-size: 12.5px;
}
.hc-th-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-top: 1px;
  white-space: normal;
}

/* ===== Footnote ===== */
.hc-section__footnote {
  font-size: 14px !important;
  color: var(--color-text-secondary) !important;
  margin: 14px 0 0 !important;
  padding: 14px 16px !important;
  background: #fffbea;
  border-radius: var(--radius-sm);
  line-height: 1.75 !important;
  border-left: 3px solid #f5a623;
}
.hc-section__footnote b {
  color: var(--color-text) !important;
}

/* ===== 더보기 accordion ===== */
.hc-more {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin: 20px 0 24px;
  background: #fff;
  overflow: hidden;
}
.hc-more > summary {
  padding: 14px 20px;
  padding-right: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--color-primary-dark);
  background: #f8faf7;
  user-select: none;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hc-more > summary::-webkit-details-marker,
.hc-more > summary::marker { display: none; }
.hc-more > summary::before {
  content: '▸';
  color: var(--color-primary-dark);
  transition: transform 0.2s;
  display: inline-block;
  flex-shrink: 0;
}
.hc-more[open] > summary::before {
  transform: rotate(90deg);
}
.hc-more > summary:hover {
  background: var(--color-primary-pale);
}
.hc-more[open] > summary {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-primary-pale);
}
.hc-more__body {
  padding: 20px 22px;
  font-size: 14.5px;
  color: var(--color-text);
  line-height: 1.8;
}
.hc-more__body p {
  margin-bottom: 14px;
}
.hc-more__body p:last-child {
  margin-bottom: 0;
}
.hc-more__h {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin: 22px 0 10px;
  padding-top: 4px;
}
.hc-more__h:first-child {
  margin-top: 0;
}

/* ===== Example box ===== */
.hc-example {
  background: #f8faf7;
  border: 1px solid var(--color-primary-light);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 16px 0;
}
.hc-example > p:first-child {
  margin-top: 0;
}
.hc-example p {
  margin-bottom: 12px;
  font-size: 14.5px;
  line-height: 1.75;
}
.hc-example ol, .hc-example ul {
  margin-bottom: 12px;
  font-size: 14.5px;
}
.hc-example ol li,
.hc-example ul li {
  margin-bottom: 8px;
  line-height: 1.75;
}
.hc-example .hc-equation {
  margin: 4px 0 !important;
}

/* ===== "핸디캡 용어 사용 예시" 박스 ===== */
.hc-usage {
  margin: 22px 0 14px;
  padding: 18px 20px;
  background: var(--color-primary-pale);
  border-radius: var(--radius);
}
.hc-usage__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary-deep);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  line-height: 1.5;
}
.hc-usage__item {
  background: #fff;
  border-radius: 6px;
  padding: 14px 16px;
  border-left: 3px solid var(--color-primary-dark);
}
.hc-usage__quote {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.7;
  padding-bottom: 10px;
}
.hc-usage__mark {
  font-size: 0.85em;
  vertical-align: super;
  color: var(--color-primary-dark);
  font-weight: 700;
  line-height: 0;
  margin-left: 2px;
}
ol.hc-usage__footnotes {
  list-style: none;
  counter-reset: hc-fn;
  padding: 12px 0 0;
  margin: 0;
  border-top: 1px dashed var(--color-border);
}
.hc-usage__footnotes li {
  counter-increment: hc-fn;
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 12px;
}
.hc-usage__footnotes li:last-child {
  margin-bottom: 0;
}
.hc-usage__footnotes li::before {
  content: counter(hc-fn) ')';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 13.5px;
}
.hc-usage__footnotes li b {
  color: var(--color-text);
  font-weight: 700;
}
.hc-usage__hl {
  font-weight: 700;
  color: var(--color-text);
}
.hc-usage__hl--1 {
  background: linear-gradient(180deg, transparent 55%, #fff3a3 55%); /* 연노랑 */
}
.hc-usage__hl--2 {
  background: linear-gradient(180deg, transparent 55%, #ffd9b5 55%); /* 피치 */
}

/* ===== Warn/Info box (Chapter 5 "목표 ≠ 예상") ===== */
.hc-warnbox {
  background: #fff8e1;
  border-left: 4px solid #f5a623;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 24px 0;
}
.hc-warnbox__icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}
.hc-warnbox h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 8px;
}
.hc-warnbox p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}
.hc-warnbox p b {
  color: var(--color-text);
  font-weight: 700;
}

/* ===== Flow diagram (Chapter 5) ===== */
.hc-flow-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin: 24px 0 12px;
  letter-spacing: -0.01em;
}
.hc-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  padding: 16px 0;
}
.hc-flow__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 130px;
  flex: 0 1 auto;
}
.hc-flow__tag {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  font-weight: 700;
  text-transform: uppercase;
}
.hc-flow__box {
  padding: 14px 14px;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
  font-weight: 600;
  width: 100%;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.hc-flow__col--course .hc-flow__box {
  border-color: #1565c0;
  color: #1565c0;
}
.hc-flow__col--player .hc-flow__box {
  border-color: var(--color-primary-dark);
  color: var(--color-primary-deep);
}
.hc-flow__col--mix .hc-flow__box {
  border-color: #e65100;
  color: #e65100;
}
.hc-flow__box--goal {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}
.hc-flow__plus,
.hc-flow__arrow {
  display: flex;
  align-items: center;
  font-size: 18px;
  color: var(--color-text-muted);
  padding: 0 4px;
  align-self: flex-end;
  padding-bottom: 20px;
}

/* ===== Tooltip (용어·숫자 설명 팝업) ===== */
.hc-tip {
  display: inline-block;
  position: relative;
  cursor: help;
  text-decoration: underline dotted;
  text-decoration-color: var(--color-text-muted);
  text-underline-offset: 3px;
  -webkit-tap-highlight-color: transparent;
}
.hc-tip.is-active,
.hc-tip:hover {
  z-index: 10;
}
.hc-tip__content {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #2c2c2c;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s, visibility 0.15s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
  text-decoration: none;
}
.hc-tip__content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #2c2c2c;
}
.hc-tip:hover > .hc-tip__content,
.hc-tip.is-active > .hc-tip__content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hc-tip__content b {
  color: #a5d6a7 !important;
  font-weight: 700;
}
.hc-tip__content sup {
  color: inherit;
  font-weight: 400;
}
/* 툴팁 내 eyebrow 스타일 라벨 */
.hc-tip__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #bdbdbd;
  margin-right: 3px;
}
/* 표 셀 안에서 강조 컬러 유지 */
.hc-table tbody td .hc-tip > b {
  color: var(--color-primary-deep);
  font-weight: 700;
}
/* 마지막 컬럼 셀의 툴팁은 오른쪽 기준으로 펼쳐 가로 스크롤 방지 */
.hc-table tbody td:last-child .hc-tip__content,
.hc-intro__table tbody td:last-child .hc-tip__content {
  left: auto;
  right: 0;
  transform: none;
}
.hc-table tbody td:last-child .hc-tip__content::after,
.hc-intro__table tbody td:last-child .hc-tip__content::after {
  left: auto;
  right: 10px;
  transform: none;
}

@media (max-width: 480px) {
  .hc-tip__content {
    white-space: normal;
    min-width: 200px;
    max-width: min(280px, calc(100vw - 40px));
  }
}

/* ===== 목차로 가기 플로팅 버튼 ===== */
.hc-up-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  height: 44px;
  padding: 0 18px 0 16px;
  border-radius: 22px;
  background: var(--color-primary-dark);
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  z-index: 90;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
  letter-spacing: -0.01em;
}
.hc-up-btn__arrow {
  font-size: 16px;
  font-weight: 700;
  display: inline-block;
}
.hc-up-btn:hover {
  background: var(--color-primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.hc-up-btn:active {
  transform: translateY(0);
}

@media (max-width: 500px) {
  .hc-up-btn {
    bottom: 16px;
    right: 16px;
    height: 40px;
    padding: 0 14px 0 12px;
    font-size: 13px;
  }
  .hc-up-btn__arrow {
    font-size: 15px;
  }
}

/* ===== Back link ===== */
.hc-back {
  margin-top: 64px;
  font-size: 13px;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  text-align: center;
}
.hc-back a {
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 600;
}
.hc-back a:hover {
  text-decoration: underline;
}

/* ============================================
   모바일
   ============================================ */
@media (max-width: 768px) {
  .hc-intro {
    padding: 48px 16px 0;
  }
  .hc-intro__table-wrap {
    padding-bottom: 48px;
  }
  .hc-intro__title {
    font-size: 28px;
  }
  .hc-intro__lead {
    font-size: 16px;
  }
  .hc-intro__lead br {
    display: none;
  }
  .hc-intro__story {
    margin-top: 14px;
  }
  .hc-intro__story p {
    font-size: 13.5px;
    line-height: 1.75;
  }
  .hc-intro__subtitle {
    font-size: 17px;
    margin: 36px 0 16px;
  }
  .hc-intro__formula {
    padding: 12px 16px;
  }
  .hc-intro__formula-main {
    font-size: 13.5px;
  }
  .hc-intro__formula-sub {
    font-size: 12px;
    line-height: 1.5;
  }
  .hc-intro__table {
    font-size: 12px;
    min-width: 380px;
  }
  .hc-intro__table th {
    padding: 7px 10px;
    font-size: 11px;
  }
  .hc-intro__table td {
    padding: 7px 10px;
  }
  .hc-intro__note {
    font-size: 11px;
    margin-top: 10px;
  }

  .hc {
    padding: 36px 16px 60px;
    font-size: 14px;
  }

  .hc-toc {
    padding: 16px 20px;
    margin-bottom: 48px;
  }
  .hc-toc__list a {
    font-size: 14px;
    padding: 7px 0;
  }

  .hc-chapter {
    margin-bottom: 56px;
  }
  .hc-chapter__title {
    font-size: 22px;
    margin-bottom: 18px;
    padding-bottom: 12px;
  }
  .hc-chapter__lead {
    font-size: 14px;
    padding: 14px 14px;
    margin-bottom: 28px;
  }

  .hc-sub {
    font-size: 16.5px;
    margin: 30px 0 12px;
  }

  .hc p {
    line-height: 1.75;
  }

  .hc-equation {
    font-size: 13.5px !important;
    padding: 12px 14px !important;
  }
  .hc-equation--featured {
    font-size: 14px !important;
    padding: 15px 16px !important;
  }

  .hc-twobox {
    flex-direction: column;
    gap: 10px;
  }

  .hc-table {
    font-size: 13px;
  }
  .hc-table thead th,
  .hc-table tbody td {
    padding: 8px 10px;
  }

  .hc-more > summary {
    padding: 12px 16px;
    font-size: 13.5px;
  }
  .hc-more__body {
    padding: 16px;
    font-size: 13.5px;
  }
  .hc-more__h {
    font-size: 14.5px;
  }

  .hc-example {
    padding: 14px 16px;
  }
  .hc-example p,
  .hc-example ol,
  .hc-example ul {
    font-size: 13.5px;
  }

  .hc-usage {
    padding: 16px 16px;
  }
  .hc-usage__title {
    font-size: 13.5px;
    margin-bottom: 12px;
  }
  .hc-usage__item {
    padding: 11px 14px;
  }
  .hc-usage__quote {
    font-size: 14px;
  }
  .hc-warnbox {
    padding: 14px 16px;
    gap: 10px;
  }
  .hc-warnbox h4 {
    font-size: 15px;
  }
  .hc-warnbox p {
    font-size: 13px;
  }

  .hc-flow {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
  }
  .hc-flow__col {
    min-width: 0;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    max-width: 100%;
  }
  .hc-flow__tag {
    min-width: 86px;
    text-align: right;
    font-size: 10.5px;
  }
  .hc-flow__box {
    width: 200px;
    flex: 0 0 200px;
    min-height: 46px;
    padding: 10px 12px;
    font-size: 13px;
  }
  .hc-flow__plus,
  .hc-flow__arrow {
    justify-content: center;
    align-self: center;
    padding: 0;
    font-size: 18px;
    margin-left: 86px;
  }
  .hc-flow__arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 420px) {
  .hc-intro__title {
    font-size: 26px;
  }
  .hc-intro__lead {
    font-size: 14px;
  }
  .hc-chapter__title {
    font-size: 20px;
  }
  .hc-equation {
    font-size: 12.5px !important;
  }
  .hc-equation--featured {
    font-size: 13px !important;
  }
  .hc-flow__tag {
    min-width: 70px;
    font-size: 10px;
  }
  .hc-flow__box {
    width: 170px;
    flex: 0 0 170px;
    font-size: 12.5px;
  }
  .hc-flow__plus,
  .hc-flow__arrow {
    margin-left: 70px;
  }
}

/* 좁은 화면(테이블이 컨테이너를 넘침)에서만 가로 스크롤 + 툴팁 방향 조정
   (overflow-x: auto 적용 시 y축도 함께 clipping되므로 wrap 경계를 넘는 툴팁은 잘림)
   → 앞 행들은 아래로, 마지막 행은 위로 펼쳐 모든 툴팁을 wrap 안에 유지 */
@media (max-width: 500px) {
  .hc-intro__table-wrap,
  .hc-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* 기본: 아래로 */
  .hc-intro__table .hc-tip__content,
  .hc-table .hc-tip__content {
    top: calc(100% + 8px);
    bottom: auto;
  }
  .hc-intro__table .hc-tip__content::after,
  .hc-table .hc-tip__content::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #2c2c2c;
  }
  /* 마지막 행: 위로 (위 행 영역으로 펼쳐 wrap 안에 유지) */
  .hc-intro__table tbody tr:last-child .hc-tip__content,
  .hc-table tbody tr:last-child .hc-tip__content {
    top: auto;
    bottom: calc(100% + 8px);
  }
  .hc-intro__table tbody tr:last-child .hc-tip__content::after,
  .hc-table tbody tr:last-child .hc-tip__content::after {
    top: 100%;
    bottom: auto;
    border-top-color: #2c2c2c;
    border-bottom-color: transparent;
  }
}
