/* ==========================================================================
   Archive V1 — machinelearningplus.com
   Category, Tag & Author archive pages — premium editorial design
   ========================================================================== */

/* ---------- CSS Custom Properties (duplicated from blog-v4 for independence) ---------- */
:root {
  --mlp-orange: #FF850C;
  --mlp-blue: #365693;
  --mlp-dark-blue: #051e50;
  --mlp-font-body: "Inter", "Figtree", system-ui, -apple-system, sans-serif;
  --mlp-font-heading: "Noto Serif", Georgia, serif;
  --mlp-font-ui: "Inter", "Figtree", system-ui, sans-serif;

  --mlp-bg: #ffffff;
  --mlp-bg-page: #f6f7f9;
  --mlp-bg-alt: #f8f9fa;
  --mlp-text: #2d3748;
  --mlp-text-heading: #1a365d;
  --mlp-text-muted: #6b7b8d;
  --mlp-text-link: #2563eb;
  --mlp-border: #e5e7eb;
  --mlp-border-light: #f0f0f0;
  --mlp-shadow: 0 1px 3px rgba(0,0,0,0.08);
  --mlp-shadow-lg: 0 4px 12px rgba(0,0,0,0.1);

  /* Archive-specific */
  --arc-accent: var(--mlp-orange);
  --arc-max-width: 1200px;
  --arc-grid-gap: 28px;
}

/* ---------- Dark Mode ---------- */
[data-theme="dark"] {
  --mlp-bg: #1a1a2e;
  --mlp-bg-page: #121222;
  --mlp-bg-alt: #16213e;
  --mlp-text: #d8dce4;
  --mlp-text-heading: #a3c4f3;
  --mlp-text-muted: #9ca3af;
  --mlp-text-link: #60a5fa;
  --mlp-border: #374151;
  --mlp-border-light: #2a2a3e;
  --mlp-shadow: 0 1px 3px rgba(0,0,0,0.3);
  --mlp-shadow-lg: 0 4px 12px rgba(0,0,0,0.4);
}

/* ---------- Page Background ---------- */
body.archive,
body.author {
  background: var(--mlp-bg-page) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[data-theme="dark"] body.archive,
[data-theme="dark"] body.author {
  background: var(--mlp-bg-page) !important;
}

/* Reset Astra container */
body.archive .site-content > .ast-container,
body.author .site-content > .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
  display: block !important;
}

body.archive .ast-container,
body.author .ast-container {
  display: block !important;
  flex-wrap: unset !important;
  justify-content: unset !important;
}

body.archive #primary,
body.author #primary {
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
}

body.archive #secondary,
body.author #secondary {
  display: none !important;
}

/* Hide Astra default title/breadcrumbs */
body.archive .ast-archive-description,
body.author .ast-archive-description {
  display: none !important;
}

/* Hide Elementor footer on archive pages */
body.archive .elementor-location-footer,
body.author .elementor-location-footer {
  display: none !important;
}

/* Hide Scaler ads */
body.archive .scaler-ads-block,
body.author .scaler-ads-block {
  display: none !important;
}


/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */

/* ---------- Shared Hero Base ---------- */
.arc-hero {
  position: relative;
  overflow: hidden;
  padding-top: 120px; /* clear fixed header */
}

.arc-hero__inner {
  max-width: var(--arc-max-width);
  margin: 0 auto;
  padding: 48px 40px 56px;
  position: relative;
  z-index: 2;
}

/* Breadcrumbs */
.arc-breadcrumbs {
  font-family: var(--mlp-font-ui);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.arc-breadcrumbs a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.arc-breadcrumbs a:hover {
  color: #fff;
}

.arc-breadcrumbs .separator {
  opacity: 0.4;
}

.arc-breadcrumbs--dark {
  color: var(--mlp-text-muted);
}

.arc-breadcrumbs--dark a {
  color: var(--mlp-text-muted);
}

.arc-breadcrumbs--dark a:hover {
  color: var(--mlp-text);
}

/* ---------- Category Hero — Deep Navy Gradient ---------- */
.arc-hero--category {
  background: linear-gradient(135deg, #051e50 0%, #0d2f6e 50%, #0a1f4a 100%);
}

/* Dot grid overlay */
.arc-hero--category::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 1;
}

/* Warm orange radial glow */
.arc-hero--category::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  right: -100px;
  top: -200px;
  background: radial-gradient(circle, rgba(255,133,12,0.12) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.arc-hero--category .arc-hero__inner {
  border-left: 4px solid var(--arc-accent);
  padding-left: 36px;
}

.arc-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  margin-bottom: 16px;
  color: var(--arc-accent);
}

.arc-hero__title {
  font-family: var(--mlp-font-heading);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.arc-hero__description {
  font-family: var(--mlp-font-body);
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  max-width: 640px;
  margin: 0 0 20px;
}

.arc-hero__count {
  font-family: var(--mlp-font-ui);
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}

.arc-hero__count svg {
  opacity: 0.5;
}

/* Sub-category chips */
.arc-subcats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.arc-subcats__chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  color: rgba(255,255,255,0.8);
  font-family: var(--mlp-font-ui);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.arc-subcats__chip:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Dark mode toggle in hero — positioned inside .arc-hero__inner */
.arc-hero__toggle {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 8px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  line-height: 0;
}

.arc-hero__toggle:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Stagger entrance animation (skip toggle button) */
.arc-hero__inner > *:not(.arc-hero__toggle) {
  opacity: 0;
  transform: translateY(16px);
  animation: arcFadeUp 0.5s ease forwards;
}

.arc-hero__inner > *:not(.arc-hero__toggle):nth-child(2) { animation-delay: 0.05s; }
.arc-hero__inner > *:not(.arc-hero__toggle):nth-child(3) { animation-delay: 0.1s; }
.arc-hero__inner > *:not(.arc-hero__toggle):nth-child(4) { animation-delay: 0.15s; }
.arc-hero__inner > *:not(.arc-hero__toggle):nth-child(5) { animation-delay: 0.2s; }
.arc-hero__inner > *:not(.arc-hero__toggle):nth-child(6) { animation-delay: 0.25s; }
.arc-hero__inner > *:not(.arc-hero__toggle):nth-child(7) { animation-delay: 0.3s; }
.arc-hero__inner > *:not(.arc-hero__toggle):nth-child(8) { animation-delay: 0.35s; }

@keyframes arcFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ---------- Tag Hero — Light Surface ---------- */
.arc-hero--tag {
  background: var(--mlp-bg-page);
}

.arc-hero--tag .arc-hero__inner {
  background: var(--mlp-bg);
  border-radius: 16px;
  border-left: 4px solid var(--mlp-orange);
  padding: 40px 36px;
  box-shadow: var(--mlp-shadow);
  max-width: 900px;
}

.arc-hero--tag .arc-hero__title {
  color: var(--mlp-text-heading);
  font-size: clamp(28px, 4vw, 40px);
}

.arc-hero--tag .arc-hero__title .arc-tag-hash {
  color: var(--mlp-orange);
  margin-right: 4px;
}

.arc-hero--tag .arc-hero__description {
  color: var(--mlp-text-muted);
}

.arc-hero--tag .arc-hero__count {
  color: var(--mlp-text-muted);
}

/* Tag hero dark mode toggle — light theme colors */
.arc-hero--tag .arc-hero__toggle {
  background: var(--mlp-bg-alt);
  border-color: var(--mlp-border);
  color: var(--mlp-text-muted);
  top: -4px;
  right: -4px;
}

.arc-hero--tag .arc-hero__toggle:hover {
  background: var(--mlp-border);
  color: var(--mlp-text);
}


/* ---------- Author Hero — Profile with Stats ---------- */
.arc-hero--author {
  background: linear-gradient(135deg, #051e50 0%, #0d2f6e 50%, #0a1f4a 100%);
}

.arc-hero--author::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 1;
}

.arc-hero--author::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  right: -100px;
  top: -200px;
  background: radial-gradient(circle, rgba(255,133,12,0.12) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.arc-hero--author .arc-hero__inner {
  border-left: 4px solid var(--mlp-orange);
  padding-left: 36px;
}

.arc-author-profile {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.arc-author-avatar {
  flex-shrink: 0;
  position: relative;
  width: 100px;
  height: 100px;
}

.arc-author-avatar::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    var(--mlp-orange) 0deg,
    #f5c842 120deg,
    #3b82f6 240deg,
    var(--mlp-orange) 360deg
  );
  z-index: 0;
}

.arc-author-avatar img {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #051e50;
}

.arc-author-info {
  flex: 1;
  min-width: 0;
}

.arc-author-info .arc-hero__title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 8px;
}

.arc-author-bio {
  font-family: var(--mlp-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.68);
  max-width: 560px;
  margin: 0 0 20px;
}

.arc-author-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.arc-author-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.arc-author-social a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Author stats */
.arc-author-stats {
  display: flex;
  gap: 40px;
  margin-top: 28px;
}

.arc-author-stat {
  text-align: left;
}

.arc-author-stat__number {
  font-family: var(--mlp-font-heading);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.arc-author-stat__label {
  font-family: var(--mlp-font-ui);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}


/* ==========================================================================
   POST CARDS GRID
   ========================================================================== */

.arc-posts {
  max-width: var(--arc-max-width);
  margin: 0 auto;
  padding: 48px 40px 64px;
}

.arc-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--arc-grid-gap);
}

/* ---------- Post Card ---------- */
.arc-card {
  background: var(--mlp-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--mlp-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  /* Stagger entrance — applied by JS */
  opacity: 0;
  transform: translateY(20px);
}

.arc-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.25s ease;
}

.arc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mlp-shadow-lg);
}

.arc-card.is-visible:hover {
  transform: translateY(-4px);
}

/* Featured card (first in grid) */
.arc-card--featured {
  grid-column: span 2;
  flex-direction: row;
}

.arc-card--featured .arc-card__image-wrap {
  width: 50%;
  flex-shrink: 0;
}

.arc-card--featured .arc-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}

.arc-card--featured .arc-card__title {
  font-size: 22px;
  -webkit-line-clamp: 4;
}

/* Card image */
.arc-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.arc-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.arc-card:hover .arc-card__image-wrap img {
  transform: scale(1.05);
}

/* Read-time pill on image */
.arc-card__read-time {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  font-family: var(--mlp-font-ui);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  z-index: 2;
}

/* Hover overlay on image */
.arc-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.arc-card:hover .arc-card__overlay {
  opacity: 1;
}

.arc-card__overlay-text {
  font-family: var(--mlp-font-ui);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Skeleton shimmer */
.arc-card__skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--mlp-bg-alt) 25%, var(--mlp-border-light) 50%, var(--mlp-bg-alt) 75%);
  background-size: 200% 100%;
  animation: arcShimmer 1.5s infinite;
  z-index: 1;
}

.arc-card__image-wrap img.is-loaded + .arc-card__skeleton,
.arc-card__image-wrap img[complete] ~ .arc-card__skeleton {
  display: none;
}

@keyframes arcShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- CSS Placeholder (no featured image) ---------- */
.arc-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,133,12,0.08) 0%, transparent 50%),
    linear-gradient(135deg, #051e50 0%, #0a1f4a 40%, #0d2f6e 100%);
  /* Subtle noise texture via SVG data URI */
  background-blend-mode: normal;
}

/* Faint dot-grid texture overlay */
.arc-card__placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}

/* Accent stripe at top */
.arc-card__placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--arc-accent, var(--mlp-orange));
}

.arc-card__placeholder-logo {
  font-family: var(--mlp-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.38);
  margin-bottom: 12px;
  position: relative;
}

.arc-card__placeholder-title {
  font-family: var(--mlp-font-heading);
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 90%;
  position: relative;
}

.arc-card__placeholder-url {
  font-family: var(--mlp-font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.28);
  margin-top: 12px;
  position: relative;
}

/* Featured card placeholder — larger title */
.arc-card--featured .arc-card__placeholder-title {
  font-size: clamp(16px, 2.5vw, 22px);
  -webkit-line-clamp: 5;
}

/* Dark mode — subtle brightness lift */
[data-theme="dark"] .arc-card__placeholder {
  background:
    radial-gradient(circle at 20% 80%, rgba(255,133,12,0.06) 0%, transparent 50%),
    linear-gradient(135deg, #0a0a1a 0%, #121230 40%, #1a1a3e 100%);
}

/* Card body */
.arc-card__body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Category pill */
.arc-card__category {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--mlp-bg-alt);
  border-left: 3px solid var(--arc-accent);
  border-radius: 0 4px 4px 0;
  font-family: var(--mlp-font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--mlp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  margin-bottom: 10px;
  align-self: flex-start;
  transition: color 0.2s;
}

.arc-card__category:hover {
  color: var(--arc-accent);
}

/* Card title */
.arc-card__title {
  font-family: var(--mlp-font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--mlp-text-heading);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.arc-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.arc-card__title a:hover {
  color: var(--mlp-orange);
}

/* Card excerpt */
.arc-card__excerpt {
  font-family: var(--mlp-font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--mlp-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 12px;
  flex: 1;
}

/* Tag pills */
.arc-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.arc-card__tag {
  padding: 3px 8px;
  background: var(--mlp-bg-page);
  border-radius: 4px;
  font-family: var(--mlp-font-ui);
  font-size: 11px;
  font-weight: 500;
  color: var(--mlp-text-muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.arc-card__tag:hover {
  background: var(--mlp-border);
  color: var(--mlp-text);
}

/* Card footer */
.arc-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mlp-font-ui);
  font-size: 13px;
  color: var(--mlp-text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--mlp-border-light);
  margin-top: auto;
}

.arc-card__footer-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--mlp-text-muted);
  opacity: 0.4;
}


/* ==========================================================================
   PAGINATION
   ========================================================================== */

.arc-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 40px 0 0;
  font-family: var(--mlp-font-ui);
}

.arc-pagination a,
.arc-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.arc-pagination a {
  color: var(--mlp-text);
  background: var(--mlp-bg);
  border: 1px solid var(--mlp-border);
}

.arc-pagination a:hover {
  background: var(--mlp-bg-alt);
  border-color: var(--mlp-orange);
  color: var(--mlp-orange);
}

/* Current page */
.arc-pagination .current {
  background: var(--mlp-orange);
  color: #fff;
  font-weight: 600;
  border: 1px solid var(--mlp-orange);
  box-shadow: 0 0 0 3px rgba(255,133,12,0.18);
}

/* Prev/Next arrows */
.arc-pagination .prev,
.arc-pagination .next {
  font-weight: 600;
  gap: 4px;
}

.arc-pagination .dots {
  border: none;
  background: none;
  color: var(--mlp-text-muted);
  min-width: auto;
  padding: 0 4px;
}


/* ==========================================================================
   AUTHOR — LATEST ARTICLES SECTION
   ========================================================================== */

.arc-latest {
  max-width: var(--arc-max-width);
  margin: 0 auto;
  padding: 0 40px 64px;
}

.arc-latest__heading {
  font-family: var(--mlp-font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--mlp-text-heading);
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--mlp-border);
}

.arc-latest__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.arc-latest__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: var(--mlp-bg);
  border-radius: 12px;
  box-shadow: var(--mlp-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.arc-latest__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--mlp-shadow-lg);
}

.arc-latest__thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.arc-latest__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arc-latest__content {
  flex: 1;
  min-width: 0;
}

.arc-latest__cat {
  font-family: var(--mlp-font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--mlp-orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  margin-bottom: 4px;
  display: block;
}

.arc-latest__title {
  font-family: var(--mlp-font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--mlp-text-heading);
  margin: 0;
  line-height: 1.35;
}

.arc-latest__title a {
  color: inherit;
  text-decoration: none;
}

.arc-latest__title a:hover {
  color: var(--mlp-orange);
}

.arc-latest__date {
  font-family: var(--mlp-font-ui);
  font-size: 12px;
  color: var(--mlp-text-muted);
  margin-top: 4px;
}


/* ==========================================================================
   NO RESULTS
   ========================================================================== */

.arc-no-results {
  text-align: center;
  padding: 80px 40px;
  max-width: 500px;
  margin: 0 auto;
}

.arc-no-results__title {
  font-family: var(--mlp-font-heading);
  font-size: 24px;
  color: var(--mlp-text-heading);
  margin: 0 0 12px;
}

.arc-no-results__text {
  font-family: var(--mlp-font-body);
  font-size: 16px;
  color: var(--mlp-text-muted);
  line-height: 1.6;
}


/* ==========================================================================
   RESPONSIVE — Tablet (≤1024px)
   ========================================================================== */

@media (max-width: 1024px) {
  .arc-hero__inner {
    padding: 40px 24px 48px;
  }

  .arc-posts {
    padding: 36px 24px 48px;
  }

  .arc-posts__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  /* Featured card stacks on tablet */
  .arc-card--featured {
    grid-column: span 2;
    flex-direction: column;
  }

  .arc-card--featured .arc-card__image-wrap {
    width: 100%;
  }

  .arc-card--featured .arc-card__body {
    padding: 20px 22px 22px;
  }

  .arc-card--featured .arc-card__title {
    font-size: 20px;
  }

  /* Author hero stacks */
  .arc-author-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .arc-author-info .arc-hero__title {
    text-align: center;
  }

  .arc-author-bio {
    margin-left: auto;
    margin-right: auto;
  }

  .arc-author-social {
    justify-content: center;
  }

  .arc-author-stats {
    justify-content: center;
  }

  .arc-latest {
    padding: 0 24px 48px;
  }
}


/* ==========================================================================
   RESPONSIVE — Mobile (≤640px)
   ========================================================================== */

@media (max-width: 640px) {
  .arc-hero {
    padding-top: 80px;
  }

  .arc-hero__inner {
    padding: 28px 18px 36px;
  }

  .arc-hero--category .arc-hero__inner,
  .arc-hero--author .arc-hero__inner {
    padding-left: 18px;
    border-left-width: 3px;
  }

  .arc-hero--tag .arc-hero__inner {
    padding: 28px 18px;
    border-radius: 12px;
    border-left-width: 3px;
  }

  .arc-hero__title {
    font-size: clamp(26px, 7vw, 36px);
  }

  .arc-hero__description {
    font-size: 15px;
  }

  .arc-hero__icon {
    width: 40px;
    height: 40px;
  }

  .arc-author-avatar {
    width: 80px;
    height: 80px;
  }

  .arc-author-avatar img {
    width: 80px;
    height: 80px;
  }

  .arc-author-stats {
    gap: 24px;
  }

  .arc-author-stat__number {
    font-size: 24px;
  }

  .arc-posts {
    padding: 28px 16px 48px;
  }

  .arc-posts__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .arc-card--featured {
    grid-column: span 1;
    flex-direction: column;
  }

  .arc-card--featured .arc-card__image-wrap {
    width: 100%;
  }

  .arc-card--featured .arc-card__title {
    font-size: 18px;
  }

  .arc-card__body {
    padding: 16px 18px 18px;
  }

  .arc-card__title {
    font-size: 16px;
  }

  .arc-pagination a,
  .arc-pagination span {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .arc-latest {
    padding: 0 16px 48px;
  }

  .arc-latest__item {
    padding: 12px;
    gap: 14px;
  }

  .arc-latest__thumb {
    width: 64px;
    height: 48px;
  }
}


/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
  .arc-hero::before,
  .arc-hero::after,
  .arc-hero__toggle,
  .arc-subcats,
  .arc-author-social,
  .arc-card__overlay,
  .arc-card__skeleton,
  .arc-pagination {
    display: none !important;
  }

  .arc-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
