/* Hub-layout long articles (build-articles layout: hub). Requires css/style.css for :root tokens. */
.article-shell {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2.25rem) clamp(1rem, 3vw, 1.75rem) 3rem;
}
.article-shell__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.article-shell__top a {
  font-size: 0.95rem;
}
.article-shell__header h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  line-height: 1.25;
  font-weight: 650;
}
.article-shell__sub {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.article-shell__meta {
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.article-shell__body {
  color: var(--text);
}
.article-shell__body h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--accent);
  border-bottom: 1px solid rgba(125, 211, 252, 0.2);
  padding-bottom: 0.35rem;
}
.article-shell__body h2:first-of-type {
  margin-top: 0.5rem;
}
.article-shell__body h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.article-shell__body p {
  margin: 0.65rem 0;
  max-width: 48rem;
}
.article-shell__body ul {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--muted);
}
.article-shell__body ul li {
  margin: 0.35rem 0;
}
.article-shell__body ul strong {
  color: var(--text);
}
.article-embed {
  margin: 1.25rem 0 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.article-embed iframe {
  display: block;
  width: 100%;
  height: min(70vh, 560px);
  border: none;
  vertical-align: middle;
}
.article-embed video {
  display: block;
  width: 100%;
  max-height: min(70vh, 560px);
  height: auto;
  vertical-align: middle;
  background: #0a0f14;
}
.article-embed > img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.article-embed figcaption {
  padding: 0.5rem 0.85rem 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(18, 25, 34, 0.65);
}
.article-table-wrap {
  margin: 1rem 0 1.25rem;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.article-table th,
.article-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.article-table th {
  background: rgba(125, 211, 252, 0.08);
  color: var(--accent);
  font-weight: 600;
}
.article-table tr:last-child td {
  border-bottom: none;
}
.article-table tbody tr:hover td {
  background: rgba(125, 211, 252, 0.04);
}

/* Arabic article body: list marker spacing when dir=rtl */
.article-shell__body[dir="rtl"] ul {
  padding-left: 0;
  padding-right: 1.25rem;
}

/* Still grids (e.g. storyboard strips) */
.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}
.article-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border);
  vertical-align: middle;
}
