/* Insights tabbed shell */
.ins-tabs-panel[hidden] {
  display: none !important;
}

.ins-tabs-panel {
  padding: 28px 0 64px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ins-tabs-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

.ins-tabs-panel.is-active.is-enter {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .ins-tabs-panel {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.ins-tabs-panel--light {
  background: #f5f5f7;
}

.ins-tabs-panel--dark {
  background: #000;
  position: relative;
}

.ins-tabs-panel--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(56, 189, 248, 0.07) 0%, transparent 60%);
}

.ins-head {
  margin-bottom: 28px;
}

.ins-head__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0071e3;
}

.ins-tabs-panel--dark .ins-head__eyebrow {
  color: #38bdf8;
}

.ins-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #1d1d1f;
}

.ins-tabs-panel--dark .ins-head h2 {
  color: #fff;
}

.ins-head p {
  margin: 0;
  font-size: 0.9375rem;
  color: #6e6e73;
}

.ins-tabs-panel--dark .ins-head p {
  color: rgba(255, 255, 255, 0.5);
}

.ins-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ins-card {
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.ins-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 113, 227, 0.2);
}

a.ins-card:hover h3 {
  color: #0071e3;
}

.ins-card__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #0071e3;
  background: rgba(0, 113, 227, 0.1);
  margin-bottom: 12px;
}

.ins-card__hot {
  margin-left: 8px;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.ins-card h3 {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  color: #1d1d1f;
}

.ins-card p {
  margin: 0 0 16px;
  flex: 1;
  font-size: 12px;
  line-height: 1.65;
  color: #6e6e73;
}

.ins-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 12px;
  color: #86868b;
}

.ins-rank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
}

.ins-rank-boards {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ins-rank-board {
  border-radius: 20px;
  padding: 24px;
  background: rgba(14, 28, 54, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.16);
  backdrop-filter: blur(16px) saturate(180%);
}

.ins-rank-board__head {
  margin-bottom: 20px;
}

.ins-rank-board__tag {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  margin-bottom: 8px;
}

.ins-rank-board__head h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #f5f5f7;
}

.ins-rank-board__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ins-rank-figure {
  margin: 0;
}

.ins-rank-figure__link {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.14);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ins-rank-figure__link:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.32);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.ins-rank-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.ins-rank-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.ins-rank {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(14, 28, 54, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.18);
  backdrop-filter: blur(16px) saturate(180%);
}

.ins-rank__head {
  padding: 20px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

.ins-rank__tag {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  margin-bottom: 8px;
}

.ins-rank__head h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #f5f5f7;
}

.ins-rank__head p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
}

.ins-rank__list {
  list-style: none;
  margin: 0;
  padding: 12px;
}

.ins-rank__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.05);
}

.ins-rank__num {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  flex-shrink: 0;
}

.ins-rank__list li:first-child .ins-rank__num {
  background: #38bdf8;
  color: #000;
}

.ins-rank__name {
  flex: 1;
  min-width: 0;
}

.ins-rank__name strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #f5f5f7;
}

.ins-rank__name span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.ins-rank__val {
  text-align: right;
  flex-shrink: 0;
}

.ins-rank__val strong {
  display: block;
  font-size: 14px;
  color: #38bdf8;
}

.ins-rank__val span {
  display: block;
  font-size: 12px;
  color: #4ade80;
}

.ins-report-cta {
  border-radius: 16px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.08), rgba(0, 113, 227, 0.03));
  border: 1px solid rgba(0, 113, 227, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ins-report-cta h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #1d1d1f;
}

.ins-report-cta p {
  margin: 0;
  font-size: 14px;
  color: #6e6e73;
  max-width: 520px;
}

.ins-placeholder {
  margin-top: 24px;
  font-size: 13px;
  color: #86868b;
}

.ins-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border-radius: 16px;
  background: #fff;
  border: 1px dashed rgba(0, 0, 0, 0.1);
}

.ins-empty--dark {
  background: rgba(14, 28, 54, 0.45);
  border-color: rgba(56, 189, 248, 0.18);
}

.ins-empty__text {
  margin: 0;
  font-size: 15px;
  color: #86868b;
  letter-spacing: 0.02em;
}

.ins-empty--dark .ins-empty__text {
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 900px) {
  .ins-grid,
  .ins-rank-grid,
  .ins-rank-board__grid {
    grid-template-columns: 1fr;
  }
}

/* Article detail */
.ins-article-page {
  background: #f5f5f7;
}

.ins-article__hero {
  padding: 32px 0 48px;
  background: linear-gradient(145deg, #0a1628 0%, #0f2744 45%, #1a3a5c 100%);
  position: relative;
}

.ins-article__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 30% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 55%);
}

.ins-article__hero .ds-layout {
  position: relative;
  z-index: 1;
}

.ins-article__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.ins-article__crumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ins-article__crumb a:hover {
  color: #fff;
}

.ins-article__crumb-sep {
  opacity: 0.35;
}

.ins-article__hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ins-article__hero-tag {
  display: inline-flex;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ins-article__hero-tag--hot {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.35);
}

.ins-article__title {
  margin: 0 0 16px;
  max-width: 820px;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff;
}

.ins-article__hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.ins-article__meta-dot {
  opacity: 0.4;
}

.ins-article__body-wrap {
  padding: 40px 0 80px;
}

.ins-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.ins-article__main {
  min-width: 0;
}

.ins-article__content {
  border-radius: 16px;
  padding: 32px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.ins-article__content p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.85;
  color: #3a3a3c;
}

.ins-article__content p:last-child {
  margin-bottom: 0;
}

.ins-article__tags {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.ins-article__tags-label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
}

.ins-article__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ins-article__tag-chip {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #0071e3;
  background: rgba(0, 113, 227, 0.08);
}

.ins-article__pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.ins-article__pager-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ins-article__pager-link:hover {
  border-color: rgba(0, 113, 227, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.ins-article__pager-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.ins-article__pager-dir {
  font-size: 12px;
  font-weight: 600;
  color: #86868b;
}

.ins-article__pager-title {
  font-size: 13px;
  line-height: 1.5;
  color: #1d1d1f;
}

.ins-article__pager-link:hover .ins-article__pager-title {
  color: #0071e3;
}

.ins-article__pager-link--next {
  text-align: right;
}

.ins-article__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 500;
  color: #0071e3;
  text-decoration: none;
}

.ins-article__back:hover {
  text-decoration: underline;
}

.ins-article__aside {
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.ins-article__aside-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: #1d1d1f;
}

.ins-article__aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ins-article__aside-list li {
  margin-bottom: 4px;
}

.ins-article__aside-list a {
  display: block;
  padding: 10px 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.ins-article__aside-list a:hover {
  background: #f5f5f7;
}

.ins-article__aside-tag {
  display: inline-flex;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: #0071e3;
  background: rgba(0, 113, 227, 0.08);
}

.ins-article__aside-item-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: #1d1d1f;
}

.ins-article__aside-list a:hover .ins-article__aside-item-title {
  color: #0071e3;
}

.ins-article__aside-date {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #86868b;
}

@media (max-width: 900px) {
  .ins-article__layout {
    grid-template-columns: 1fr;
  }

  .ins-article__content {
    padding: 24px 20px;
  }

  .ins-article__pager {
    grid-template-columns: 1fr;
  }

  .ins-article__pager-link--next {
    text-align: left;
  }
}
