/* =========================================================
 * News article page (page/?page_id=...)
 * Dark fire frame (auth.css tokens) around a white article body,
 * because the editor's content is written for a white page.
 * ======================================================= */

.np-card {
  max-width: 1100px;
}

/* ---------- head ---------- */

.np-head {
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: radial-gradient(600px 180px at 0% 0%, rgba(255, 140, 40, .16), transparent 75%);
}

.np-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: var(--auth-muted);
}

.np-head__meta i {
  color: #a8662d;
}

.np-type {
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #2a0a02;
  background: linear-gradient(180deg, #ffe08a 0%, #f5a547 100%);
}

.np-head__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.np-title {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  background: linear-gradient(180deg, #fff3cf 0%, var(--auth-gold) 50%, var(--auth-line-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  word-break: break-word;
}

.np-share {
  flex: none;
  margin-top: 4px;
}

/* ---------- body (white paper) ---------- */

.np-body {
  padding: 22px 28px;
}

.np-content {
  padding: clamp(18px, 3vw, 32px);
  border-radius: 14px;
  background: #fff;
  color: #222;
  font-size: 14px;
  line-height: 1.75;
  box-shadow: 0 0 0 1px rgba(255, 211, 107, .25), 0 10px 30px rgba(0, 0, 0, .45);
  overflow-wrap: anywhere;
}

.np-content > :first-child {
  margin-top: 0;
}

.np-content > :last-child {
  margin-bottom: 0;
}

.np-content img {
  max-width: 100%;
  height: auto;
}

/* ---------- prev / next ---------- */

.np-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 0 28px 26px;
}

.np-nav__item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 14px;
  text-decoration: none;
  background: var(--auth-field);
  border: 1px solid var(--auth-line);
  transition: border-color .15s ease, box-shadow .2s ease, transform .12s ease;
}

.np-nav__item--next {
  flex-direction: row-reverse;
  text-align: right;
}

.np-nav__item > i {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--auth-gold);
  background: rgba(217, 136, 61, .12);
  border: 1px solid rgba(217, 136, 61, .25);
}

a.np-nav__item:hover,
a.np-nav__item:focus-visible {
  border-color: var(--auth-line-hot);
  box-shadow: 0 0 16px rgba(255, 122, 26, .2);
  transform: translateY(-1px);
  outline: none;
}

.np-nav__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.np-nav__text small {
  font-size: 12.5px;
  color: var(--auth-muted);
}

.np-nav__text strong {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--auth-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-nav__item.is-empty {
  opacity: .5;
}

@media (max-width: 767.98px) {
  .np-head {
    padding: 20px 18px 16px;
  }

  .np-head__row {
    flex-direction: column;
  }

  .np-body {
    padding: 16px 14px;
  }

  .np-nav {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 14px 20px;
  }
}
