/* =========================================================
   SEEK LABS — article.css
   Single post page styles
   ========================================================= */

/* ── DARK HERO SECTION ──────────────────────────────────── */
.article-hero-section {
  background: linear-gradient(135deg, var(--dark-bg, #0B1628) 0%, #162233 100%);
  padding: calc(112px + var(--space-8, 32px)) 0 var(--space-10, 40px);
  color: var(--white);
}

/* Inner flex row: text left, image right — mirrors .news-featured-card */
.article-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6, 24px);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-10, 40px);
}

.article-hero-body {
  flex: 1 1 55%;
  min-width: 0;
}

/* ── EYEBROW ─────────────────────────────────────────────── */
.article-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-4, 16px);
}
.article-eyebrow a {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-light, #3A9FE8);
  text-decoration: none;
}
.article-eyebrow a:hover { color: var(--white); }
.article-eyebrow .wp-block-post-terms__separator { color: rgba(255,255,255,0.25); }

/* ── TITLE ───────────────────────────────────────────────── */
.article-title {
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin: 0 0 var(--space-5, 20px);
}

/* ── META ────────────────────────────────────────────────── */
.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4, 16px);
  flex-wrap: wrap;
}
.article-meta .wp-block-post-date,
.article-meta .wp-block-post-author-name {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.article-meta .wp-block-post-date a,
.article-meta .wp-block-post-author-name a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.article-meta .wp-block-post-date::after {
  content: '·';
  margin-left: var(--space-3, 12px);
  color: rgba(255,255,255,0.2);
}

/* ── HERO IMAGE (right column) ───────────────────────────── */
.article-hero-img {
  flex: 0 0 42%;
  max-width: 42%;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--dark-bg, #0B1628);
}
.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── ARTICLE BODY ───────────────────────────────────────── */
.article-body {
  padding: var(--space-12, 48px) 0 var(--space-16, 64px);
}

/* Typography inside the post content */
.article-body p {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--ink-light, #374151);
  margin-bottom: var(--space-5, 20px);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink, #1A1E26);
  margin: var(--space-10, 40px) 0 var(--space-4, 16px);
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink, #1A1E26);
  margin: var(--space-8, 32px) 0 var(--space-3, 12px);
}

.article-body h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink, #1A1E26);
  margin: var(--space-6, 24px) 0 var(--space-2, 8px);
}

.article-body h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink, #1A1E26);
  margin: var(--space-5, 20px) 0 var(--space-2, 8px);
}

/* h6 is used for image captions and attribution lines — small muted text. */
.article-body h6 {
  font-family: var(--font-body, 'General Sans', sans-serif);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-muted, #6B7280);
  font-style: italic;
  margin: -8px 0 var(--space-6, 24px);
  border-left: none;
  padding-left: 0;
}

.article-body a {
  color: var(--teal, #0072CE);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--teal-dark, #005AA0); }

.article-body ul,
.article-body ol {
  padding-left: var(--space-6, 24px);
  margin: var(--space-4, 16px) 0 var(--space-5, 20px);
}
.article-body li {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-light, #374151);
  margin-bottom: var(--space-2, 8px);
}

.article-body blockquote {
  border-left: 3px solid var(--teal, #0072CE);
  margin: var(--space-8, 32px) 0;
  padding: var(--space-4, 16px) var(--space-6, 24px);
  background: var(--cream, #F7F9FC);
  border-radius: 0 8px 8px 0;
}
.article-body blockquote p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink, #1A1E26);
  margin: 0;
}

/* Images inside the body */
.article-body figure,
.article-body img {
  max-width: 100%;
  border-radius: 8px;
}
.article-body figure {
  margin: var(--space-8, 32px) 0;
}
.article-body figcaption {
  font-size: 0.82rem;
  color: var(--ink-muted, #6B7280);
  text-align: center;
  margin-top: var(--space-2, 8px);
}

/* Horizontal rule */
.article-body hr {
  border: none;
  border-top: 1px solid var(--cream-dark, #E2E8F0);
  margin: var(--space-10, 40px) 0;
}

/* ── DISCLAIMERS ────────────────────────────────────────── */
.article-disclaimer {
  margin: var(--space-10, 40px) auto 0;
  padding: var(--space-5, 20px) var(--space-6, 24px);
  background: #FAF6EE;
  border-left: 3px solid #C9A961;
  border-radius: 4px;
}
.article-disclaimer p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #4a4a4a;
}
.article-disclaimer strong { color: #1a1a1a; font-weight: 600; }

.article-top-disclaimer {
  margin: var(--space-6, 24px) 0 var(--space-2, 8px);
  padding: var(--space-4, 16px) 0;
}
.article-top-disclaimer .container-narrow {
  background: #FAF6EE;
  border-left: 3px solid #C9A961;
  border-radius: 4px;
  padding: var(--space-4, 16px) var(--space-5, 20px);
}
.article-top-disclaimer p {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #4a4a4a;
}
.article-top-disclaimer p:last-child { margin-bottom: 0; }
.article-top-disclaimer strong { color: #1a1a1a; font-weight: 600; }

/* ── AUTHOR BIO BLOCK ───────────────────────────────────── */
.article-author-block {
  display: flex;
  align-items: center;
  gap: var(--space-5, 20px);
  margin: var(--space-10, 40px) 0 var(--space-6, 24px);
  padding-top: var(--space-6, 24px);
  border-top: 1px solid var(--cream-dark, #E2E8F0);
}

/* The image container (p > img) */
.article-author-block p {
  flex: 0 0 72px !important;
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}
.article-author-block p img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 50% !important;
}

/* The bio text (h6) */
.article-author-block h6 {
  flex: 1;
  font-size: 0.8rem !important;
  line-height: 1.55 !important;
  color: var(--ink-muted, #6B7280) !important;
  font-style: normal !important;
  margin: 0 !important;
  border-left: none !important;
  padding-left: 0 !important;
}

/* ── SHARE BAR ──────────────────────────────────────────── */
.article-share {
  margin: var(--space-6) 0 var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(11, 30, 63, 0.08);
}
.article-share-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(11, 30, 63, 0.55);
  margin: 0 0 var(--space-3);
}
.article-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.article-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(11, 30, 63, 0.16);
  background: #fff;
  color: #0B1E3F;
  font-family: var(--font-body, 'General Sans', sans-serif);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.article-share-btn:hover {
  background: #0B1E3F;
  color: #fff;
  border-color: #0B1E3F;
  transform: translateY(-1px);
}
.article-share-btn svg { width: 16px; height: 16px; display: block; flex: 0 0 16px; }
.article-share-btn.is-copied { background: #0B1E3F; color: #fff; border-color: #0B1E3F; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .article-hero-section {
    padding-top: calc(96px + var(--space-8, 32px));
    padding-bottom: var(--space-8, 32px);
  }
  .article-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .article-hero-img img { height: 320px; }
  .article-body { padding: var(--space-8, 32px) 0; }
  .article-body p, .article-body li { font-size: 1rem; }
}

@media (max-width: 480px) {
  .article-hero-section { padding-top: calc(80px + var(--space-6, 24px)); }
  .article-hero-img img { height: 240px; }
}
