/* Shared styles for individual guide pages */
.article-hero {
  background: linear-gradient(135deg, #0A2540 0%, #1B3A5C 100%);
  color: #fff;
  padding: 80px 0 120px;
}
.article-meta-row {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 13px;
  color: rgba(255,255,255,.75);
}
.article-meta-row .dot { opacity: .4; }
.article-meta-row .cat-tag {
  background: var(--accent);
  color: var(--brand);
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.article-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  color: #fff;
  margin-bottom: 20px;
  max-width: 880px;
}
.article-hero p.lead {
  font-size: 20px;
  color: rgba(255,255,255,.9);
  max-width: 740px;
  line-height: 1.55;
}

.article-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  margin-top: -80px;
  position: relative;
  z-index: 2;
}
.toc-side {
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 18px;
  font-size: 13px;
}
.toc-side h4 {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.toc-side ol { list-style: none; counter-reset: toc; }
.toc-side li {
  counter-increment: toc;
  margin-bottom: 6px;
  padding-left: 24px;
  position: relative;
  font-size: 13px;
  line-height: 1.4;
}
.toc-side li::before {
  content: counter(toc);
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  background: rgba(10,37,64,.05);
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand);
}
.toc-side a {
  color: var(--text);
  transition: color .15s;
  font-weight: 500;
  display: block;
  padding: 4px 0;
}
.toc-side a:hover, .toc-side a.active { color: var(--accent); }

.guide-article {
  background: var(--surface);
  border-radius: 12px;
  padding: 56px;
  box-shadow: var(--shadow-md);
  max-width: 800px;
}
.guide-article p.intro {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.guide-article h2 {
  font-size: 28px;
  margin: 48px 0 12px;
  color: var(--brand);
  scroll-margin-top: 100px;
}
.guide-article h3 {
  font-size: 20px;
  margin: 28px 0 10px;
  color: var(--brand);
}
.guide-article p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 18px;
}
.guide-article ul, .guide-article ol {
  margin: 14px 0 20px 24px;
}
.guide-article li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 10px;
}
.guide-article strong { color: var(--brand); font-weight: 700; }
.guide-article em { color: var(--muted); font-style: italic; }
.guide-article a { color: var(--brand); border-bottom: 1px dotted var(--border); }
.guide-article a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.callout {
  background: rgba(201,162,39,.08);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 4px;
  margin: 24px 0;
}
.callout strong { color: var(--brand); display: block; margin-bottom: 6px; }
.callout p { margin-bottom: 0; font-size: 16px; }

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  margin: 8px 0;
  text-decoration: none;
  border: none !important;
}
.tool-link:hover { background: var(--brand-light); transform: translateY(-1px); }

.article-end {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.article-end h3 { font-size: 24px; margin-bottom: 12px; }
.article-end p { color: var(--muted); margin-bottom: 24px; }
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}
.related-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all .15s;
  display: block;
  text-decoration: none !important;
  border-bottom-style: solid !important;
}
.related-card:hover { border-color: var(--accent); background: rgba(201,162,39,.04); }
.related-card .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
}
.related-card .title {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
  line-height: 1.3;
}

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc-side { position: static; }
  .guide-article { padding: 32px 28px; }
  .related-grid { grid-template-columns: 1fr; }
}
