/* EVXPERTZ News article template */

.np {
  max-width: 820px;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 4rem;
}

.np-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
}

.np-crumbs a {
  color: var(--neon-blue);
  text-decoration: none;
}

.np-crumbs a:hover {
  text-decoration: underline;
}

.np-crumbs span {
  color: var(--text-muted);
  max-width: 16rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-skeleton .np-sk-hero {
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #e9e9ee 25%, #f4f4f7 50%, #e9e9ee 75%);
  background-size: 200% 100%;
  animation: npShimmer 1.2s infinite;
}

.np-skeleton .np-sk-bar {
  height: 14px;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, #e9e9ee 25%, #f4f4f7 50%, #e9e9ee 75%);
  background-size: 200% 100%;
  animation: npShimmer 1.2s infinite;
}

.np-skeleton .w80 { width: 80%; }
.np-skeleton .w60 { width: 60%; }
.np-skeleton .w40 { width: 40%; }

@keyframes npShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.np-hero {
  margin-bottom: 1.15rem;
}

.np-featured {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a1a08;
  background: linear-gradient(135deg, #4cff00, #b8ff7a);
}

.np-featured--inline {
  position: static;
}

/* Floated 1:1 image — text wraps on the right and underneath */
.np-body::after {
  content: "";
  display: table;
  clear: both;
}

.np-float-media {
  float: left;
  width: 50%;
  max-width: 50%;
  margin: 0.15rem 1.25rem 1rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lux);
}

.np-float-media .float-left-img,
.np-float-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .np-float-media {
    float: none;
    display: block;
    width: min(100%, 320px);
    max-width: 100%;
    margin: 0 auto 1.15rem;
  }
}

.np-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
}

.np-category {
  color: var(--neon-blue);
  background: rgba(0, 148, 255, 0.1);
  border: 1px solid rgba(0, 148, 255, 0.2);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.np-title {
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 0.85rem;
}

.np-deck {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 1.15rem;
}

.np-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.np-author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.np-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.np-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}

.np-author span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.np-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
}

.np-tag {
  display: inline-flex;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
}

.np-body {
  overflow: auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.np-body h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 1.75rem 0 0.75rem;
}

.np-body h3 {
  font-size: 1.1rem;
  font-weight: 750;
  margin: 1.35rem 0 0.55rem;
}

.np-body p {
  margin: 0 0 1.1rem;
}

.np-body ul,
.np-body ol {
  margin: 0 0 1.2rem;
  padding-left: 1.25rem;
}

.np-body li {
  margin: 0.35rem 0;
  list-style: disc;
}

.np-body strong {
  font-weight: 700;
}

.np-body a {
  color: var(--neon-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.np-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 2rem 0 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.np-share-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-right: 0.25rem;
}

.np-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.np-share a:hover {
  transform: translateY(-2px);
  border-color: var(--neon-blue);
  color: var(--neon-blue);
}

.np-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
}

.np-nav-btn {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 88px;
}

.np-nav-btn:hover {
  border-color: rgba(0, 148, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.np-nav-btn--next {
  text-align: right;
  align-items: flex-end;
}

.np-nav-dir {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neon-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.np-nav-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.np-nav-empty {
  min-height: 1px;
}

.np-related {
  margin: 0 0 2rem;
}

.np-related-heading {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 1rem;
}

.np-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.np-related-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.np-related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.np-related-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg-elevated);
}

.np-related-card p {
  padding: 0.75rem 0.85rem 0.95rem;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.np-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--neon-blue);
  text-decoration: none;
}

.np-back:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .np-nav {
    grid-template-columns: 1fr;
  }
  .np-nav-btn--next {
    text-align: left;
    align-items: flex-start;
  }
  .np-related-grid {
    grid-template-columns: 1fr;
  }
}
