/* ── Article Layout ── */
.article-layout { padding: 40px 32px 64px; }
.layout { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }

/* Article card */
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); padding: 40px 44px 48px; }
.guide-label { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo-text); background: var(--indigo-light); border: 1px solid var(--indigo-mid); padding: 5px 12px; border-radius: 6px; margin-bottom: 20px; }
.article-card h1 { font-size: 2.4rem; font-weight: 800; color: var(--text-primary); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 16px; }
.article-intro { font-size: 1rem; color: var(--text-body); line-height: 1.75; margin-bottom: 40px; }

/* WYSIWYG content styles */
.article-content { color: var(--text-body); line-height: 1.75; }
.article-content h2 { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin: 36px 0 14px; }
.article-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin: 24px 0 10px; }
.article-content p { font-size: .95rem; margin-bottom: 16px; }
.article-content p:last-child { margin-bottom: 0; }
.article-content strong { font-weight: 700; color: var(--text-primary); }
.article-content ul, .article-content ol { padding-left: 20px; margin-bottom: 16px; }
.article-content li { font-size: .95rem; margin-bottom: 8px; }
.article-content a { color: var(--indigo); text-decoration: underline; }

/* Tables inside WYSIWYG */
.article-content table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 20px 0; font-size: .9rem; }
.article-content thead { background: #F8F9FC; }
.article-content thead th { padding: 13px 20px; text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.article-content tbody tr { border-bottom: 1px solid var(--border); }
.article-content tbody tr:last-child { border-bottom: none; }
.article-content tbody td { padding: 14px 20px; color: var(--text-body); vertical-align: middle; }
.article-content tbody td:first-child { font-weight: 700; color: var(--text-primary); }

/* Blockquote as callout */
.article-content blockquote { background: var(--indigo-light); border-left: 4px solid var(--indigo); border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 20px 0; font-size: .92rem; color: var(--indigo-text); }
.article-placeholder { color: var(--text-muted); font-size: .9rem; padding: 24px; background: var(--bg); border-radius: 10px; border: 1px dashed var(--border); }

/* Sidebar */
.sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.sidebar-sticky { display: flex; flex-direction: column; gap: 16px; }
.editors-note { background: var(--indigo-light); border: 1px solid var(--indigo-mid); border-radius: var(--r); padding: 22px 20px; }
.editors-note h4 { font-size: .95rem; font-weight: 700; color: var(--indigo); margin-bottom: 10px; }
.editors-note p { font-size: .88rem; color: var(--indigo-text); line-height: 1.65; }

/* ── Tags at bottom of article ── */
.article-tags-wrap {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.article-tags-wrap .brand-tags-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.article-tags-wrap .brand-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.article-tags-wrap .brand-tag-pill {
  display: inline-block;
  padding: 5px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  transition: all .18s;
}
.article-tags-wrap .brand-tag-pill:hover {
  background: var(--indigo-light);
  border-color: var(--indigo);
  color: var(--indigo);
}
