/* Articles */
.articles-page {
  padding-bottom: 4rem;
}

.articles-hero {
  padding: 4.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(61, 220, 151, 0.12), transparent 60%),
    var(--bg);
}

.articles-eyebrow,
.article-card-topic {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.articles-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.articles-lead {
  margin: 0.85rem 0 0;
  max-width: 52ch;
  color: var(--muted);
}

.articles-body {
  padding-top: 2.5rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.article-card {
  display: grid;
  grid-template-rows: 180px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 31, 43, 0.88);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
  border-color: rgba(61, 220, 151, 0.35);
  transform: translateY(-2px);
}

.article-card-media {
  display: block;
  height: 180px;
  overflow: hidden;
  background: var(--bg-soft);
}

.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(61, 220, 151, 0.35), transparent 55%),
    linear-gradient(135deg, #122838, #0d1f2b);
}

.article-card-body {
  display: grid;
  gap: 0.65rem;
  padding: 1.1rem 1.15rem 1.2rem;
  align-content: start;
}

.article-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.25;
}

.article-card-title a:hover {
  color: var(--accent);
}

.article-card-excerpt {
  margin: 0;
  color: rgba(232, 241, 244, 0.82);
  font-size: 0.98rem;
  line-height: 1.55;
}

.article-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.45rem;
  color: rgba(232, 241, 244, 0.72);
  font-size: 0.8rem;
}

.article-card-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}

.article-card-stats .article-meta-sep {
  margin: 0 0.25rem;
}

.article-card-more {
  color: var(--accent);
  font-weight: 700;
}

.articles-empty {
  color: var(--muted);
}

.articles-pagination {
  margin-top: 2.5rem;
}

.articles-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.articles-pagination .page-numbers li {
  margin: 0;
}

.articles-pagination a,
.articles-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
}

.articles-pagination .current {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
}

.article-single {
  padding: 4rem 0 5rem;
  overflow: visible;
}

.article-single-inner {
  min-width: 0;
}

.article-single h1 {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 2.9rem);
  color: #ffffff;
  letter-spacing: -0.03em;
}

.article-single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.35rem;
  margin: 0.95rem 0 0;
  color: rgba(232, 241, 244, 0.78);
  font-size: 0.95rem;
}

.article-meta-sep {
  margin: 0 0.35rem;
  opacity: 0.45;
}

.article-reading,
.article-views {
  white-space: nowrap;
}

.article-single-cover {
  margin: 1.5rem 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.article-single-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.article-cover-credit {
  margin: 0;
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(7, 20, 28, 0.55);
  border-top: 1px solid var(--line);
}

.article-cover-credit a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-cover-credit a:hover {
  color: var(--ink);
}

.article-single-content {
  color: #f2f7f9;
  font-size: 1.2rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.article-single-content h2,
.article-single-content h3 {
  color: #ffffff;
  font-family: var(--font-display);
  margin: 2rem 0 0.9rem;
}

.article-single-content h2 {
  font-size: 1.65rem;
}

.article-single-content h3 {
  font-size: 1.3rem;
}

.article-single-content p {
  margin: 0 0 1.1rem;
}

.article-single-content a {
  color: var(--accent);
}

.article-single-content ul,
.article-single-content ol {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
}

@media (max-width: 960px) {
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}


/* Article rich content */
.article-toc {
  margin: 1.75rem 0 2.2rem;
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 40, 56, 0.95);
}

.article-toc strong {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
}

.article-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.article-toc li {
  margin: 0.3rem 0;
}

.article-toc .toc-sub {
  margin-left: 1rem;
  list-style-type: circle;
}

.article-toc a {
  color: var(--accent);
  text-decoration: none;
}

.article-toc a:hover {
  text-decoration: underline;
}

.article-single-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: rgba(61, 220, 151, 0.12);
  color: #ffffff;
  font-style: italic;
  font-size: 1.15rem;
}

.article-single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.95rem;
}

.article-single-content th,
.article-single-content td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.article-single-content th {
  background: rgba(61, 220, 151, 0.1);
  color: var(--ink);
}

.article-single-content .footnote-ref a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.article-footnotes {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.article-footnotes h2 {
  font-size: 1.2rem;
}


.article-single-content li {
  color: #f2f7f9;
  margin: 0.35rem 0;
}

.article-single-content strong {
  color: #ffffff;
}

.article-card-title {
  color: #ffffff;
}

.article-card-title a {
  color: #ffffff;
}


/* Author box (E-E-A-T) */
.article-author {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.35rem 1.5rem;
  align-items: start;
  margin: 2.75rem 0 0.5rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(61, 220, 151, 0.12), transparent 60%),
    rgba(13, 31, 43, 0.92);
}

.article-author-photo {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(61, 220, 151, 0.28);
  background: #0b1822;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.article-author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.article-author-label {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-author-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.article-author-role {
  margin: 0.35rem 0 0.75rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.article-author-bio {
  margin: 0;
  color: #e7eef2;
  line-height: 1.55;
  font-size: 0.96rem;
}

.article-author-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.article-author-tags li {
  margin: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 220, 151, 0.28);
  background: rgba(61, 220, 151, 0.08);
  color: #d7f7e8;
  font-size: 0.78rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .article-author {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }

  .article-author-photo {
    width: 96px;
    height: 96px;
    border-radius: 16px;
  }
}


/* Article + sticky calc sidebar (left) */
.article-single {
  overflow: visible;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 2rem 2.25rem;
  align-items: stretch;
  padding-top: 2rem;
  padding-bottom: 3rem;
  overflow: visible;
}

.article-sidebar {
  min-width: 0;
  align-self: stretch;
}

.article-sidebar-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 6rem;
  z-index: 5;
}

.article-calc-panel .calc-head .calc-head-title {
  font-size: 1.25rem;
}

.article-calc-panel .calc-head p {
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar-sticky {
    position: static;
    top: auto;
  }
}


/* Related articles */
.article-related {
  margin: 2.5rem 0 0.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.article-related-title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.article-related-card {
  display: grid;
  grid-template-rows: 110px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 31, 43, 0.9);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.article-related-card:hover {
  border-color: rgba(61, 220, 151, 0.35);
  transform: translateY(-2px);
}

.article-related-media {
  display: block;
  height: 110px;
  overflow: hidden;
  background: var(--bg-soft);
}

.article-related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-related-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(61, 220, 151, 0.35), transparent 55%),
    linear-gradient(135deg, rgba(18, 40, 56, 0.95), rgba(8, 20, 30, 0.95));
}

.article-related-body {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 0.95rem 1rem;
}

.article-related-card-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.3;
  color: #fff;
}

.article-related-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  font-size: 0.78rem;
  color: rgba(232, 241, 244, 0.7);
}

@media (max-width: 960px) {
  .article-related-grid {
    grid-template-columns: 1fr;
  }

  .article-related-card {
    grid-template-columns: 110px 1fr;
    grid-template-rows: auto;
  }

  .article-related-media {
    height: 100%;
    min-height: 96px;
  }
}

/* Section headings divide the article into clear reading blocks. */
.article-single-content h2 {
 margin: 3rem 0 1.35rem;
 padding: 1rem 1.25rem;
 border-top: 1px solid rgba(61,220,151,.18);
 border-left: 4px solid var(--accent, #3ddc97);
 border-radius: 0 12px 12px 0;
 background: linear-gradient(90deg, rgba(61,220,151,.10), rgba(61,220,151,.02));
 color: #f4fff9;
 font-size: clamp(1.45rem, 2.2vw, 1.9rem);
 font-weight: 800;
 line-height: 1.3;
 letter-spacing: -.015em;
 scroll-margin-top: 100px;
}
.article-single-content > h2:first-child { margin-top: .5rem; }
@media (max-width: 760px) {
 .article-single-content h2 { margin-top: 2.25rem; padding: .85rem 1rem; font-size: 1.4rem; }
}
