/* ============================================
   STRATIUM — Article Page Styles
   ============================================ */

/* ---------- Article Hero ---------- */
.article-hero {
  position: relative;
  padding: 10rem 1.5rem 4rem;
  overflow: hidden;
  text-align: center;
}

.article-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.article-hero__content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
}

.article-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: hsl(var(--fg-muted));
  margin-bottom: 1.5rem;
  transition: color 0.3s var(--ease-out);
}

.article-hero__back:hover {
  color: hsl(var(--pink));
}

.article-hero__back span {
  transition: transform 0.3s var(--ease-out);
}

.article-hero__back:hover span {
  transform: translateX(-4px);
}

.article-hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.article-hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: hsl(var(--fg-muted));
  line-height: 1.5;
}

/* ---------- Article Body ---------- */
.article {
  padding: var(--space-xl) 0;
}

.article__section {
  margin-bottom: var(--space-xl);
}

.article__section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.article__section h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article__section p {
  color: hsl(var(--fg) / 0.85);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.article__section ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.article__section ul li {
  color: hsl(var(--fg) / 0.8);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.article__section ul li::marker {
  color: hsl(var(--cyan));
}

/* Callout text */
.article__callout-text {
  font-size: 1.375rem !important;
  color: hsl(var(--fg)) !important;
  margin: 1.5rem 0 !important;
}

/* ---------- Limitation Cards ---------- */
.article__limitations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.article__limit-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--bg-card) / 0.5);
  backdrop-filter: blur(8px);
  transition: all 0.4s var(--ease-out);
}

.article__limit-card:hover {
  border-color: hsl(var(--pink) / 0.4);
  box-shadow: 0 12px 40px hsl(var(--pink) / 0.08);
  transform: translateY(-4px);
}

.article__limit-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.article__limit-card p {
  font-size: 0.95rem !important;
  color: hsl(var(--fg-muted)) !important;
  margin-bottom: 0 !important;
}

/* ---------- Outcome Block ---------- */
.article__outcome {
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid hsl(var(--pink));
  background: hsl(var(--pink) / 0.05);
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: hsl(var(--fg) / 0.85);
  line-height: 1.7;
}

/* ---------- Attribute List ---------- */
.article__attributes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.article__attr {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border) / 0.4);
  background: hsl(var(--bg-card) / 0.3);
  transition: all 0.3s var(--ease-out);
}

.article__attr:hover {
  border-color: hsl(var(--cyan) / 0.4);
  background: hsl(var(--bg-card) / 0.6);
  transform: translateX(8px);
}

.article__attr-label {
  font-weight: 700;
  font-family: var(--font-headline);
  white-space: nowrap;
  min-width: 12rem;
}

.article__attr-detail {
  color: hsl(var(--fg-muted));
  font-size: 0.95rem;
}

/* ---------- Policy Block ---------- */
.article__policy-block {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 2px solid hsl(var(--cyan) / 0.3);
  background: linear-gradient(135deg, hsl(var(--cyan) / 0.05), hsl(var(--bg-card) / 0.5));
  margin: 2rem 0 var(--space-xl);
}

.article__policy-block h4 {
  font-size: 1.1rem;
  color: hsl(var(--cyan));
  margin-bottom: 0.75rem;
}

.article__policy-block p {
  color: hsl(var(--fg) / 0.85);
  margin-bottom: 0.75rem;
}

.article__policy-block ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.article__policy-block ul li {
  color: hsl(var(--fg) / 0.8);
  line-height: 1.7;
  margin-bottom: 0.3rem;
}

.article__policy-block ul li::marker {
  color: hsl(var(--cyan));
}

.article__policy-note {
  font-size: 1.125rem !important;
  color: hsl(var(--fg)) !important;
  margin-bottom: 0 !important;
  padding-top: 0.5rem;
  border-top: 1px solid hsl(var(--cyan) / 0.2);
}

/* ---------- Why ABAC Wins ---------- */
.article__wins {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.article__win {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border) / 0.4);
  background: hsl(var(--bg-card) / 0.3);
  transition: all 0.4s var(--ease-out);
}

.article__win:hover {
  border-color: hsl(var(--pink) / 0.3);
  background: hsl(var(--bg-card) / 0.5);
  box-shadow: 0 8px 32px hsl(var(--pink) / 0.06);
}

.article__win-number {
  font-family: var(--font-headline);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.6;
  flex-shrink: 0;
  width: 3.5rem;
}

.article__win h3 {
  font-size: 1.25rem;
  margin-top: 0 !important;
  margin-bottom: 0.5rem;
}

.article__win p {
  margin-bottom: 0.5rem !important;
}

.article__win ul {
  margin-bottom: 0;
}

/* ---------- Comparison Table ---------- */
.article__table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border) / 0.5);
}

.article__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.article__table thead {
  background: hsl(var(--bg-card));
}

.article__table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 700;
  font-family: var(--font-headline);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: hsl(var(--fg-muted));
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.article__table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid hsl(var(--border) / 0.3);
  color: hsl(var(--fg) / 0.8);
}

.article__table tbody tr {
  transition: background 0.2s var(--ease-out);
}

.article__table tbody tr:hover {
  background: hsl(var(--bg-card) / 0.5);
}

.article__table td:nth-child(2) {
  color: hsl(var(--fg-muted));
}

/* ---------- Data-Centric Block ---------- */
.article__data-centric {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 2px solid hsl(var(--yellow) / 0.3);
  background: linear-gradient(135deg, hsl(var(--yellow) / 0.03), hsl(var(--bg-card) / 0.5));
  margin: 2rem 0;
}

.article__dc-arrow {
  font-size: 2.5rem;
  color: hsl(var(--yellow));
  flex-shrink: 0;
  line-height: 1;
  padding-top: 0.25rem;
}

.article__data-centric ul li::marker {
  color: hsl(var(--yellow));
}

/* ---------- Emphasis text ---------- */
.article__emphasis {
  font-size: 1.2rem !important;
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: hsl(var(--bg-card) / 0.5);
  border: 1px solid hsl(var(--border) / 0.3);
}

/* ---------- Use Cases ---------- */
.article__use-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.article__use-case {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--bg-card) / 0.5);
  backdrop-filter: blur(8px);
  transition: all 0.4s var(--ease-out);
}

.article__use-case:hover {
  border-color: hsl(var(--pink) / 0.4);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px hsl(var(--pink) / 0.08);
}

.article__use-case h3 {
  margin-top: 0 !important;
  margin-bottom: 0.5rem;
}

.article__use-case p {
  font-size: 0.95rem !important;
  color: hsl(var(--fg-muted)) !important;
  margin-bottom: 0 !important;
}

/* ---------- Gains List ---------- */
.article__gains {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.article__gain {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border) / 0.4);
  background: hsl(var(--bg) / 0.5);
  font-size: 1.05rem;
  color: hsl(var(--fg) / 0.9);
  transition: all 0.3s var(--ease-out);
}

.article__gain:hover {
  border-color: hsl(var(--pink) / 0.4);
  background: hsl(var(--bg-card) / 0.5);
}

/* ---------- Bottom Line (RBAC vs ABAC) ---------- */
.article__bottom-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0;
}

.article__bl-block {
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.article__bl-block--rbac {
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--bg-card) / 0.3);
}

.article__bl-block--abac {
  border: 2px solid hsl(var(--cyan) / 0.4);
  background: linear-gradient(135deg, hsl(var(--cyan) / 0.05), hsl(var(--bg-card) / 0.5));
  box-shadow: 0 8px 32px hsl(var(--cyan) / 0.08);
}

.article__bl-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(var(--fg-muted));
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article__bl-block blockquote {
  font-size: 1.15rem;
  font-style: italic;
  color: hsl(var(--fg));
  line-height: 1.6;
  margin: 0;
}

.article__bl-block--abac blockquote {
  color: hsl(var(--cyan));
}

.article__bl-vs {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--fg-muted) / 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- CTA Points ---------- */
.article__cta-points {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  color: hsl(var(--fg-muted));
}

.article__cta-dot {
  color: hsl(var(--pink));
}

/* ---------- Glow lines in article ---------- */
.article .section-glow-line {
  margin: var(--space-lg) 0;
}

/* ---------- Architecture Steps (air-gapped article) ---------- */
.article__arch-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.article__arch-step {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border) / 0.4);
  background: hsl(var(--bg-card) / 0.3);
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.article__arch-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.article__arch-step:nth-child(1)::before,
.article__arch-step:nth-child(4)::before { background: hsl(var(--cyan)); }
.article__arch-step:nth-child(2)::before,
.article__arch-step:nth-child(5)::before { background: hsl(var(--pink)); }
.article__arch-step:nth-child(3)::before { background: hsl(var(--yellow)); }

.article__arch-step:hover {
  border-color: hsl(var(--cyan) / 0.3);
  background: hsl(var(--bg-card) / 0.5);
  box-shadow: 0 8px 32px hsl(var(--cyan) / 0.06);
}

.article__arch-step:hover::before {
  opacity: 1;
}

.article__arch-num {
  font-family: var(--font-headline);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.5;
  flex-shrink: 0;
  width: 3.5rem;
}

.article__arch-body h3 {
  font-size: 1.25rem;
  margin-top: 0 !important;
  margin-bottom: 0.5rem;
}

.article__arch-body p {
  margin-bottom: 0.5rem !important;
}

.article__arch-body ul {
  margin-bottom: 0.5rem;
}

.article__arch-key {
  font-weight: 600;
  color: hsl(var(--fg)) !important;
}

.article__arch-example {
  padding: 1rem;
  border-radius: var(--radius);
  background: hsl(var(--bg) / 0.5);
  border: 1px solid hsl(var(--border) / 0.3);
  font-size: 0.95rem;
  color: hsl(var(--fg) / 0.8);
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* ---------- Design Principles Grid ---------- */
.article__principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.article__principle {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--bg-card) / 0.5);
  backdrop-filter: blur(8px);
  transition: all 0.4s var(--ease-out);
}

.article__principle:hover {
  border-color: hsl(var(--cyan) / 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px hsl(var(--cyan) / 0.08);
}

.article__principle-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.article__principle h3 {
  font-size: 1.1rem;
  margin-top: 0 !important;
  margin-bottom: 0.5rem;
}

.article__principle p {
  font-size: 0.95rem !important;
  color: hsl(var(--fg-muted)) !important;
  margin-bottom: 0 !important;
}

/* ---------- Pitfalls List ---------- */
.article__pitfalls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.article__pitfall {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--pink) / 0.15);
  background: hsl(var(--pink) / 0.03);
  transition: all 0.3s var(--ease-out);
}

.article__pitfall:hover {
  border-color: hsl(var(--pink) / 0.3);
  background: hsl(var(--pink) / 0.05);
}

.article__pitfall-x {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: hsl(var(--pink) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: hsl(var(--pink));
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 2px;
}

.article__pitfall h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.article__pitfall p {
  font-size: 0.95rem !important;
  color: hsl(var(--fg-muted)) !important;
  margin-bottom: 0 !important;
}

/* ---------- Stacked Bottom Line (crypto-agility variant) ---------- */
.article__bottom-line-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.article__bls-static {
  padding: 2rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--bg-card) / 0.3);
  max-width: 36rem;
}

.article__bls-static p {
  font-size: 1.2rem !important;
  color: hsl(var(--fg-muted)) !important;
  margin-bottom: 0 !important;
}

.article__bls-break {
  font-family: var(--font-headline);
  font-size: 2.5rem;
  font-weight: 800;
  color: hsl(var(--pink));
  line-height: 1;
}

.article__bls-agile {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 2px solid hsl(var(--yellow) / 0.4);
  background: linear-gradient(135deg, hsl(var(--yellow) / 0.05), hsl(var(--bg-card) / 0.5));
  box-shadow: 0 12px 48px hsl(var(--yellow) / 0.08);
  max-width: 36rem;
}

.article__bls-agile p {
  font-size: 1.15rem !important;
  line-height: 1.8 !important;
  color: hsl(var(--fg) / 0.9) !important;
  margin-bottom: 0 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .article-hero {
    padding: 8rem 1.5rem 3rem;
  }

  .article__limitations {
    grid-template-columns: 1fr;
  }

  .article__attr {
    flex-direction: column;
    gap: 0.25rem;
  }

  .article__attr-label {
    min-width: auto;
  }

  .article__win {
    flex-direction: column;
    gap: 0.75rem;
  }

  .article__win-number {
    width: auto;
  }

  .article__use-cases {
    grid-template-columns: 1fr;
  }

  .article__bottom-line {
    grid-template-columns: 1fr;
  }

  .article__bl-vs {
    text-align: center;
  }

  .article__data-centric {
    flex-direction: column;
    gap: 1rem;
  }

  .article__cta-points {
    flex-direction: column;
    align-items: center;
  }

  .article__cta-dot {
    display: none;
  }

  .article__arch-step {
    flex-direction: column;
    gap: 0.75rem;
  }

  .article__arch-num {
    width: auto;
  }

  .article__principles {
    grid-template-columns: 1fr;
  }
}
