/* ── Breadcrumb ── */
.article-breadcrumb {
  font-size: 13px;
  color: var(--text-3);
  padding: 18px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.article-breadcrumb a { color: var(--text-3); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--brand); }
.article-breadcrumb .sep { color: #0968ae; }

/* ── Hero ── */
.article-hero {
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.intent-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.wc-badge {
  font-size: 12px;
  color: var(--text-3);
  background: var(--surface-alt);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--line);
}
.article-hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.3px;
  color: var(--text-1);
  margin: 0 0 16px;
}
.article-hero-sub {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}
.article-hero-copy {
  display: grid;
  gap: 10px;

}
.article-meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.article-meta-card {

  margin-bottom: 10px;
    /*  min-width: 0;
    padding: 16px;
    border: 1px solid #cfe0ee;
    border-radius: 18px;
    background:
    linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(233,245,252,.82) 100%);
    box-shadow: 0 12px 28px rgba(44, 140, 210, .08);*/
  }
  .article-meta-card--wide {
    grid-column: span 3;
  }
  .article-meta-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 10px;
  }
  .article-meta-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-1);
  }
  .article-meta-value--muted {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-2);
  }
  .article-meta-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .article-meta-tag-list li {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #cfe0ee;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-2);
  }
  @media (max-width: 980px) {
    .article-meta-strip {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .article-meta-card--wide {
      grid-column: span 2;
    }
  }
  @media (max-width: 640px) {
    .article-meta-strip {
      grid-template-columns: 1fr;
    }
    .article-meta-card--wide {
      grid-column: span 1;
    }
  }
  .article-hero-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
  }
  .btn-back-topic {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    padding: 7px 14px;
    border: 1px solid var(--brand-subtle);
    border-radius: 8px;
    background: var(--brand-light);
    transition: background .15s;
  }
  .btn-back-topic:hover { background: var(--brand-subtle); color: var(--brand-dark); }
  .kit-count-pill {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-2);
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 5px 14px;
  }

/* ── Brief card ── */
.brief-card {
  background: var(--surface-dark);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin-bottom: 40px;
}
.brief-card-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
}
.brief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.brief-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 5px;
}
.brief-field p {
  font-size: 14px;
  color: rgba(255,255,255,.9);
  line-height: 1.5;
  margin: 0;
}
.brief-kw-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.brief-kw-list li {
  font-size: 12px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── Phase section ── */
.phase-section { margin-bottom: 48px; }
.phase-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.phase-header {
  margin-bottom: 20px;
}
.phase-title {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--text-1);
  margin: 0 0 10px;
}
.phase-summary {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0;
  max-width: 760px;
}

/* ── Prompt card ── */
.prompt-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 16px;
  background: #fff;
  transition: box-shadow .2s;
}
.prompt-card:hover { box-shadow: var(--sh-md); }
.prompt-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px 16px;
  user-select: text;
}
.prompt-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.prompt-card-meta { flex: 1; }
.prompt-card-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 3px;
}
.prompt-card-desc {
  font-size: 13px;
  color: var(--text-3);
  margin: 0;
}
.prompt-expand-btn {
  flex-shrink: 0;
  display: none;
}
.prompt-card-body {
  display: block;
  padding: 0 24px 24px;
  border-top: 1px solid var(--line-light);
}
.prompt-text-wrap {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 16px 0 12px;
  font-family: "Inter", monospace;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  border: 1px solid var(--brand-subtle);
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background .15s;
  user-select: none;
}
.copy-btn.copied {
  color: var(--green);
  background: var(--green-light);
  border-color: #a7f3d0;
}

/* ── Coming Soon state ── */
.kit-coming-soon {
  text-align: center;
  padding: 80px 24px;
  border: 2px dashed var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-alt);
}
.kit-coming-soon h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  margin: 16px 0 8px;
}
.kit-coming-soon p {
  font-size: 14px;
  color: var(--text-3);
  max-width: 380px;
  margin: 0 auto;
}

/* ── Sidebar ── */
.article-layout {
  max-width: 920px;
  margin: 0 auto;
}
.article-main {
  min-width: 0;
}
.sidebar-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  background: #fff;
  margin-bottom: 16px;
}
.sidebar-card-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: 14px;
}
.sidebar-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 13px;
}
.sidebar-stat:last-child { border-bottom: none; }
.sidebar-stat-label { color: var(--text-3); }
.sidebar-stat-value { color: var(--text-1); font-weight: 600; }
.related-article-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-light);
  text-decoration: none;
  color: var(--text-1);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: color .15s;
}
.related-article-link:last-child { border-bottom: none; }
.related-article-link:hover { color: var(--brand); }
.related-kit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.related-kit-dot.no-kit { background: var(--line); }

/* ── Mistakes & Tips ── */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 48px 0;
}
@media (max-width: 700px) { .insights-grid { grid-template-columns: 1fr; } }
.insight-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.insight-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.insight-card ul {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: none;
}
.insight-card ul li {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 10px;
  padding-left: 4px;
  position: relative;
}
.insight-card ul li::before {
  content: "›";
  position: absolute;
  left: -16px;
  color: var(--text-3);
  font-weight: 700;
}
.insight-mistakes ul li::before { content: "✗"; color: #ef4444; }
.insight-tips ul li::before    { content: "✓"; color: var(--green); }

/* ── AI Overview ── */
.ai-overview {
  margin-bottom: 36px;
  padding: 28px 32px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--r-lg);
}
.ai-overview-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.ai-overview-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
}
.ai-overview-body p {
  margin: 0 0 16px;
}
.ai-overview-body p:last-child { margin-bottom: 0; }
.ai-overview-body.is-collapsed {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.ai-overview-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
}
.ai-overview-toggle:hover {
  color: var(--brand-dark);
}

/* Fixed-open prompt workspace + richer insights */
.insight-card {
  padding: 26px;
  background: #fff;
}
.insight-card-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
  gap: 10px;
}
.insight-card-sub {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-3);
  margin: 0 0 18px;
}
.insight-list {
  display: grid;
  gap: 12px;
}
.insight-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line-light);
}
.insight-item:first-child {
  border-top: none;
  padding-top: 0;
}
.insight-index {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.insight-copy {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}
.insight-copy p {
  margin: 0;
}
.insight-mistakes {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff8f8 0%, #ffffff 100%);
}
.insight-mistakes .insight-index {
  background: #fef2f2;
  color: #b91c1c;
}
.insight-tips {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}
.insight-tips .insight-index {
  background: #eff6ff;
  color: #1d4ed8;
}

/* ── How-to-use strip ── */
.related-resources {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.related-resources-header {
  margin-bottom: 20px;
}
.related-resources-title {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--text-1);
  margin: 0 0 10px;
}
.related-resources-copy {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0;
}
.related-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.related-resource-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  padding: 18px 20px;
  color: var(--text-1);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.related-resource-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
  border-color: var(--brand-subtle);
}
.related-resource-card.is-disabled {
  opacity: .58;
  cursor: default;
}
.related-resource-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.related-resource-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.related-resource-card.is-disabled .related-resource-dot {
  background: var(--line);
}
.related-resource-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}
.related-resource-meta {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
}

.related-resource-link {
  margin-top: 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}
.hr
{
  margin-top: 15px;
  opacity: 0.2;
}
.mb-4
{
  margin-bottom: 25px;
}