/* ============================================================
   XPLUG.IN — Technical article components (extends soc.css)
   ============================================================ */

.article-hero { padding-top: clamp(36px, 5vw, 64px); padding-bottom: 8px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-3); margin: 0 0 20px; }
.article-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: none; }
.article-hero h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 18px; max-width: 22ch; }
.article-hero .lede { font-size: 17px; color: var(--text-2); line-height: 1.6; margin: 0 0 8px; max-width: 68ch; }

.article-body { max-width: 74ch; margin: 0 auto; padding: 12px 0 8px; }
.article-body h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 600; letter-spacing: -0.02em; margin: 48px 0 16px; }
.article-body h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 32px 0 12px; color: var(--text); }
.article-body p { font-size: 15.5px; line-height: 1.75; color: var(--text-2); margin: 0 0 18px; }
.article-body ul, .article-body ol { font-size: 15.5px; line-height: 1.75; color: var(--text-2); margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--cyan); }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a:not(.btn) { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(37,216,232,0.35); text-underline-offset: 3px; }
.article-body a:not(.btn):hover { text-decoration-color: var(--cyan); }
.article-body code { font-family: var(--mono); font-size: 0.86em; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; color: var(--cyan); }

.article-body pre {
  background: #06070a; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 20px; overflow-x: auto; margin: 0 0 22px;
}
.article-body pre code {
  background: none; border: none; padding: 0; color: var(--text-2);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.65; white-space: pre;
}
.code-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 8px;
}

.article-body blockquote {
  margin: 0 0 22px; padding: 4px 0 4px 18px; border-left: 2px solid var(--cyan-d);
  color: var(--text-2); font-size: 15px; line-height: 1.65;
}

.article-cta {
  margin: 44px 0 8px; padding: 26px 28px; background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-lg); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.article-cta p { margin: 0; color: var(--text); font-size: 15px; max-width: 46ch; }
.article-cta p strong { color: var(--cyan); }

.article-nav { max-width: 74ch; margin: 0 auto; padding: 0 0 40px; }
.article-nav a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-2); }
.article-nav a:hover { color: var(--cyan); }

/* From the Lab — article cards on index.html */
.lab-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.lab-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; }
.lab-card:hover { border-color: var(--cyan-d); }
.lab-card .tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.lab-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0; line-height: 1.35; color: var(--text); }
.lab-card p { font-size: 13.5px; color: var(--text-2); line-height: 1.55; margin: 0; flex: 1; }
.lab-card .read { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.lab-card:hover .read { color: var(--cyan); }

@media (max-width: 720px) {
  .lab-grid { grid-template-columns: 1fr; }
  .article-cta { flex-direction: column; align-items: flex-start; }
}

/* Inline flow diagrams (no external diagramming lib — see CLAUDE.md: zero dependencies) */
.flow-diagram {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 4px 0; margin: 4px 0 28px; padding: 26px 22px;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.flow-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; width: 100%; gap: 0; }
.flow-box {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.01em; color: var(--text);
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 7px;
  padding: 10px 14px; text-align: center; line-height: 1.4;
}
.flow-box.accent { border-color: var(--cyan-d); color: var(--cyan); }
.flow-box.dim { color: var(--text-2); }
.flow-arrow { color: var(--text-3); font-family: var(--mono); font-size: 15px; padding: 0 10px; }
.flow-arrow.down { transform: rotate(90deg); padding: 4px 0; }
.flow-label {
  width: 100%; text-align: center; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin: 6px 0 2px;
}
@media (max-width: 640px) {
  .flow-row { flex-direction: column; }
  .flow-arrow:not(.down) { transform: rotate(90deg); padding: 4px 0; }
}

/* ============================================================
   Article ending — value block, FAQ, related reading
   ============================================================ */

.article-offer {
  margin: 52px 0 8px; padding: 28px 30px;
  background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-lg);
}
.article-offer .offer-eyebrow {
  display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cyan); margin: 0 0 12px;
}
.article-offer h2 {
  font-size: clamp(20px, 2.6vw, 25px); font-weight: 600; letter-spacing: -0.02em;
  margin: 0 0 18px; line-height: 1.25;
}
.offer-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.offer-list li {
  position: relative; padding-left: 26px; margin: 0;
  font-size: 14.5px; line-height: 1.6; color: var(--text-2);
}
.offer-list li::before {
  content: ""; position: absolute; left: 4px; top: 8px;
  width: 6px; height: 6px; border-top: 1.5px solid var(--cyan); border-right: 1.5px solid var(--cyan);
  transform: rotate(45deg);
}
.offer-list li strong { color: var(--text); font-weight: 600; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.offer-note {
  margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-3);
  padding-top: 16px; border-top: 1px solid var(--line);
}
.offer-note strong { color: var(--text-2); font-weight: 600; }

.article-faq { margin: 52px 0 0; }
.article-faq h2 {
  font-size: clamp(22px, 3vw, 28px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 20px;
}
.faq-item { padding: 18px 0; border-top: 1px solid var(--line); }
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--text); }
.faq-item p { font-size: 14.5px; line-height: 1.7; color: var(--text-2); margin: 0; }
.faq-item p + p { margin-top: 10px; }

.related { max-width: 74ch; margin: 0 auto; padding: 52px 0 8px; }
.related > h2 {
  font-size: clamp(18px, 2.4vw, 22px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 18px;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rel-card {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; display: flex; flex-direction: column; gap: 9px;
  text-decoration: none; color: inherit; transition: border-color .2s ease;
}
.rel-card:hover { border-color: var(--cyan-d); }
.rel-card .tag {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cyan);
}
.rel-card h3 { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; margin: 0; color: var(--text); }
.rel-card .read { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--text-3); margin-top: auto; }
.rel-card:hover .read { color: var(--cyan); }

@media (max-width: 720px) {
  .article-offer { padding: 24px 22px; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Blog index (/blog/)
   ============================================================ */

.blog-hero { padding-top: clamp(36px, 5vw, 64px); padding-bottom: 4px; }
.blog-hero h1 {
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.03em;
  font-weight: 600; margin: 0 0 18px; max-width: 26ch;
}
.blog-hero .lede { font-size: 17px; color: var(--text-2); line-height: 1.6; margin: 0; max-width: 68ch; }
.blog-list { padding: clamp(28px, 4vw, 44px) 0 clamp(40px, 6vw, 72px); }
.blog-group + .blog-group { margin-top: 44px; }
.blog-group > h2 {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.post-row {
  display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 18px 28px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.post-row:hover .post-title { color: var(--cyan); }
.post-tag {
  grid-column: 1 / -1; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cyan); margin: 0 0 -8px;
}
.post-main { min-width: 0; }
.post-title {
  font-size: clamp(17px, 2.2vw, 20px); font-weight: 600; letter-spacing: -0.015em;
  line-height: 1.35; margin: 0 0 8px; color: var(--text); transition: color .2s ease;
}
.post-main p { font-size: 14px; line-height: 1.6; color: var(--text-2); margin: 0; max-width: 66ch; }
.post-side {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--text-3);
  text-align: right; white-space: nowrap; padding-top: 4px;
}
.post-side span { display: block; }
.post-side span + span { margin-top: 5px; }

@media (max-width: 720px) {
  .post-row { grid-template-columns: 1fr; }
  .post-side { text-align: left; }
  .post-side span { display: inline; }
  .post-side span + span { margin-top: 0; }
  .post-side span + span::before { content: " · "; color: var(--text-4); }
}

/* Data tables inside article bodies (.dtable lives in product.css) */
.article-body .dtable-wrap { margin: 4px 0 24px; }
.article-body .dtable th, .article-body .dtable td { font-size: 13.5px; line-height: 1.6; }
