/**
 * Technical Article & Spoke Stylesheet — Eduardo Peiro Authority
 * Standard: Koray Centerpiece Annotation, Layout-Aware Ranking & WCAG AAA Contrast
 */

/* Container */
.article-site-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 6rem;
}

/* Header & Breadcrumbs */
.article-header {
  margin-bottom: 2.5rem;
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 1.25rem;
}

.article-breadcrumbs a {
  color: var(--text-secondary, #94a3b8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-breadcrumbs a:hover {
  color: #38bdf8;
}

.article-breadcrumbs-separator {
  color: #475569;
}

.article-topic-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.article-topic-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.article-title {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin-bottom: 1.2rem;
}

.article-title span.highlight {
  background: linear-gradient(135deg, #38bdf8 0%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.article-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: #94a3b8;
  font-weight: 400;
  margin-bottom: 1.75rem;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: #94a3b8;
}

.article-meta-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.article-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  object-fit: cover;
}

.article-author-name {
  color: #ffffff;
  font-weight: 700;
}

.article-meta-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
}

/* Hero Figure */
.article-hero-figure {
  margin: 0 0 3rem 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c101a;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.article-hero-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-figure-caption {
  padding: 0.85rem 1.25rem;
  background: rgba(12, 16, 26, 0.95);
  font-size: 0.82rem;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Above-The-Fold Centerpiece Interactive Widget */
.centerpiece-interactive-widget {
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.98) 0%, rgba(10, 14, 22, 0.99) 100%);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 3.5rem;
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.12);
  position: relative;
  overflow: hidden;
}

.centerpiece-interactive-widget::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #06b6d4, #38bdf8);
}

.widget-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.widget-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.badge-blue {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.widget-title {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 750;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.widget-desc {
  font-size: 0.92rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.simulator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  background: rgba(12, 16, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
}

.simulator-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.control-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 600;
}

.control-val {
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
}

.simulator-slider {
  width: 100%;
  accent-color: #10b981;
  cursor: pointer;
  height: 6px;
  background: #1e293b;
  border-radius: 4px;
}

/* Simulator Output Panel */
.simulator-output-panel {
  background: rgba(6, 9, 14, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.output-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.output-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.output-label {
  color: #94a3b8;
}

.output-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.status-pass {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-warn {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Article Body Typography */
.article-body {
  font-size: 1.125rem;
  line-height: 1.85;
  color: #cbd5e1;
}

.article-body p {
  margin-bottom: 1.75rem;
}

.article-body h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin: 3.25rem 0 1.25rem 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.article-body h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: #38bdf8;
  border-radius: 2px;
}

.article-body h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: -0.015em;
  margin: 2.25rem 0 0.85rem 0;
}

.article-body ul, .article-body ol {
  margin: 0 0 1.75rem 1.5rem;
  padding: 0;
}

.article-body li {
  margin-bottom: 0.6rem;
}

.article-body strong {
  color: #ffffff;
  font-weight: 700;
}

.article-body a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.article-body a:hover {
  color: #2dd4bf;
}

/* Triadic Factual Box */
.triad-box {
  background: rgba(18, 24, 38, 0.7);
  border-left: 4px solid #10b981;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.triad-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #10b981;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.triad-box p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #f1f5f9;
}

/* Patent Callout */
.patent-callout {
  background: rgba(12, 16, 26, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 1.4rem;
  margin: 2.25rem 0;
}

.patent-callout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
}

.patent-callout p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0;
}

/* SVG Figure Containers */
.figure-wrapper {
  margin: 2.75rem 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.figure-wrapper svg, .figure-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.figure-caption-dark {
  background: #0c101a;
  padding: 0.85rem 1.25rem;
  font-size: 0.82rem;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Comparison Table */
.data-table-wrapper {
  overflow-x: auto;
  margin: 2.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(12, 16, 26, 0.75);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
}

.comparison-table th {
  background: rgba(18, 24, 38, 0.95);
  color: #ffffff;
  font-weight: 700;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.comparison-table td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  vertical-align: top;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Author Bio Card */
.author-bio-card {
  margin-top: 4.5rem;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.95) 0%, rgba(12, 16, 26, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.author-bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  flex-shrink: 0;
  object-fit: cover;
}

.author-bio-info h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.35rem;
  color: #ffffff;
}

.author-bio-title {
  font-size: 0.88rem;
  color: #10b981;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.author-bio-text {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.author-bio-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Executive B2B CTA Box */
.executive-b2b-cta {
  margin-top: 2.5rem;
  padding: 2.25rem 2rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(26, 60, 110, 0.85) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.executive-b2b-cta h3 {
  color: #ffffff;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-top: 0;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.executive-b2b-cta p {
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 1.75rem;
  font-size: 1.02rem;
  line-height: 1.6;
}

.cta-button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Inviolable Button Isolation (WCAG AAA) */
.btn-cta,
.btn-cta *,
.card-cta-btn,
.card-cta-btn *,
.btn,
.btn * {
  color: #ffffff !important;
  fill: #ffffff !important;
  text-decoration: none !important;
}

.btn-cta-emerald {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #059669;
  border: 1px solid #10b981;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
  transition: all 0.25s ease;
}

.btn-cta-emerald:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
}

.btn-cta-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.btn-cta-navy:hover {
  background: #1e293b;
  border-color: #38bdf8;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .article-site-container {
    padding: 1.5rem 1rem 4rem;
  }
  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .author-bio-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .author-bio-links {
    justify-content: center;
  }
}
