/* Insight article detail — market_exm/insight-detail.css + layout */
:root {
  --ease: .3s cubic-bezier(.4,0,.2,1);
  --r-sm: 10px;
  --r-md: 16px;
  --r-full: 999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
}

body { background: #fdf8ff !important; }

.article-page {
  padding-top: var(--header-h);
  min-height: 100vh;
}

.article-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
}
@media (max-width: 640px) { .article-hero { height: 260px; } }

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,5,20,.15) 0%,
    rgba(10,5,20,.55) 60%,
    rgba(10,5,20,.85) 100%
  );
}
.article-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 0 36px;
}
.article-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 36px;
}
@media (max-width: 640px) {
  .article-hero-inner { padding: 0 20px; }
  .article-hero-content { padding: 28px 0 24px; }
}

.article-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--r-full);
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(244,114,182,.4);
}

.article-hero-title {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.35;
  margin-bottom: 14px;
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.article-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  color: rgba(255,255,255,.75);
}
.article-hero-meta i { font-size: .72rem; color: rgba(244,114,182,.85); }
.hero-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  flex-shrink: 0;
}

.article-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 36px 80px;
}
@media (max-width: 640px) { .article-container { padding: 0 20px 60px; } }

.article-toolbar {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 20px 0 0;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.article-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 51;
}
.article-share {
  position: relative;
  z-index: 52;
  /* 버튼↔메뉴 사이 hover 끊김 방지 (레이아웃 높이는 margin으로 상쇄) */
  padding-bottom: 10px;
  margin-bottom: -10px;
}
.article-share-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 10px;
}
.article-share-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  z-index: 200;
  min-width: 148px;
  padding: 6px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.article-share:hover .article-share-menu,
.article-share:focus-within .article-share-menu,
.article-share.is-open .article-share-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.article-share-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
  text-align: left;
  transition: background .15s ease, color .15s ease;
}
.article-share-menu__item:hover {
  background: var(--pink-lt);
  color: var(--text-pink);
}
.article-share-menu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: .78rem;
  flex-shrink: 0;
}
.article-share-menu__icon--kakao {
  background: #fee500;
  color: #3c1e1e;
}
.article-share-menu__icon--facebook {
  background: #1877f2;
  color: #fff;
}
.article-share-menu__icon--copy {
  background: #f1f5f9;
  color: var(--text-2);
}
.article-share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 9999;
  padding: 12px 20px;
  border-radius: var(--r-full);
  background: rgba(15, 23, 42, .92);
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.article-share-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.btn-share, .btn-bookmark-art {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--r-full);
  transition: var(--ease);
  border: 1px solid var(--border);
  color: var(--text-2);
  background: rgba(255,255,255,.9);
  cursor: pointer;
}
.btn-share:hover,
.btn-bookmark-art:hover {
  color: var(--text-pink);
  border-color: rgba(244,114,182,.3);
  background: var(--pink-lt);
}
.btn-bookmark-art.saved {
  color: var(--text-pink);
  border-color: rgba(244,114,182,.3);
  background: var(--pink-lt);
}

.article-body {
  position: relative;
  z-index: 1;
  font-size: .95rem;
  color: var(--text-1);
  line-height: 1.85;
}
.article-lead {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.75;
  padding: 20px 22px;
  border-left: 4px solid var(--pink);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: linear-gradient(135deg, rgba(252,231,243,.4), rgba(237,233,254,.3));
  margin-bottom: 28px;
}
.article-body h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -.025em;
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid rgba(244,114,182,.2);
}
.article-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 24px 0 10px;
}
.article-body p {
  margin-bottom: 18px;
  color: var(--text-2);
}
.article-body strong {
  font-weight: 700;
  color: var(--text-1);
}
.article-body em {
  font-style: normal;
  color: var(--text-pink);
  font-weight: 600;
}
.article-quote {
  position: relative;
  margin: 28px 0;
  padding: 22px 24px 22px 28px;
  background: linear-gradient(135deg, rgba(252,231,243,.5), rgba(237,233,254,.4));
  border-radius: var(--r-md);
  border: 1px solid rgba(244,114,182,.15);
}
.article-quote::before {
  content: '\201C';
  position: absolute;
  top: -4px;
  left: 16px;
  font-size: 3.5rem;
  color: rgba(244,114,182,.25);
  font-family: Georgia, serif;
  line-height: 1;
}
.article-quote p {
  font-size: .97rem;
  font-style: italic;
  color: var(--text-1);
  font-weight: 500;
  margin: 0;
  padding-left: 4px;
}
.article-quote cite {
  display: block;
  font-size: .75rem;
  font-style: normal;
  color: var(--text-3);
  margin-top: 10px;
  font-weight: 600;
  padding-left: 4px;
}
.article-highlight {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(252,231,243,.45), rgba(237,233,254,.45));
  border: 1px solid rgba(244,114,182,.15);
  margin: 24px 0;
}
.article-highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--pink), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .85rem;
  flex-shrink: 0;
}
.article-highlight p {
  margin: 0;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.7;
}
.article-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 24px;
  padding: 0;
}
.article-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.6;
}
.article-checklist li::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 9px;
}
.article-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(244,114,182,.25), transparent);
  margin: 36px 0;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.8);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: var(--ease);
}
.article-tag:hover {
  background: var(--pink-lt);
  border-color: rgba(244,114,182,.3);
  color: var(--text-pink);
}

.related-section {
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.related-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -.02em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--pink), var(--violet));
  flex-shrink: 0;
}
.related-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.7);
  border: 1px solid var(--border);
  transition: var(--ease);
  text-decoration: none;
}
.related-card:hover {
  background: rgba(255,255,255,.95);
  border-color: rgba(244,114,182,.22);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.related-thumb {
  width: 60px;
  height: 48px;
  border-radius: var(--r-sm);
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}
.related-info { flex: 1; min-width: 0; }
.related-cat {
  font-size: .68rem;
  font-weight: 700;
  color: var(--text-pink);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 3px;
}
.related-article-title {
  font-size: .86rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.related-date {
  font-size: .72rem;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.article-footer-nav {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.article-list-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-2);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--r-full);
  background: #fff;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--ease);
}
.article-list-back:hover {
  color: var(--text-pink);
  border-color: rgba(244, 114, 182, .35);
  background: var(--pink-lt);
  gap: 10px;
}
.article-list-back i { font-size: .82rem; }

[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
