/*
 * Public pages of News Portal (phase 20): the live demo's home page (resources/views/pages/home.php →
 * news.release.home, classes .npx-*) and the demo's sign-ins on the login page (resources/views/news/release/
 * demo-logins.php). Light and dark come from the Kit's tokens; everything fits 320 px. (Pattern of the Online Classes
 * release.)
 */
.npx-hero {
  text-align: start;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.npx-hero-inner {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

@media (min-width: 960px) {
  .npx-hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.npx-hero-text {
  min-width: 0;
}

.npx-hero h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 1.3rem + 3vw, var(--text-5xl));
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.npx-hero .lead {
  max-width: 60ch;
  margin: var(--space-5) 0 0;
  color: var(--text-muted);
  font-size: clamp(var(--text-base), 0.95rem + 0.4vw, var(--text-lg));
  line-height: 1.6;
}

.npx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-5);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--brand-border, var(--border));
  border-radius: var(--radius-lg);
  background: var(--brand-soft);
  color: var(--brand-text, var(--brand));
  font-size: var(--text-sm);
  font-weight: 600;
}

.npx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-8) 0 0;
}

.npx-hero .hero-actions {
  justify-content: flex-start;
}

.npx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-8) 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.npx-chips li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.npx-chips .icon {
  color: var(--success);
}


/* ---- the hero's picture drawn in CSS: a front page with the ticker, a live blog and a push count ---- */
.npx-hero-art {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.npx-paper {
  display: grid;
  gap: var(--space-3);
  width: min(100%, 400px);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  font-size: var(--text-sm);
}
.npx-masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 3px double var(--border-strong);
}
.npx-masthead strong {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
}
.npx-masthead span,
.npx-foot {
  color: var(--text-subtle);
  font-size: var(--text-xs);
}
.npx-ticker {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  min-width: 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--danger-soft, #fde8e8);
  color: var(--danger, #b42318);
  overflow: hidden;
}
.npx-ticker b {
  flex: none;
  text-transform: uppercase;
  font-size: var(--text-xs);
}
.npx-ticker span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.npx-lead {
  display: grid;
  grid-template-columns: 38% minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}
.npx-pic {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-soft) 100%);
}
.npx-lead b,
.npx-cols b {
  display: block;
  line-height: 1.35;
}
.npx-live {
  display: inline-block;
  margin-bottom: var(--space-1);
  padding: 0 var(--space-2);
  border-radius: var(--radius-full);
  background: var(--danger, #b42318);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
}
.npx-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.npx-line {
  display: block;
  height: 6px;
  margin-top: var(--space-2);
  border-radius: 3px;
  background: var(--border);
}
.npx-short {
  width: 60%;
}
.npx-push {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-text, var(--brand));
  font-weight: 600;
}
.npx-foot {
  margin: 0;
}

/* ---- sections ---- */
.npx-section {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

.npx-band {
  border-block: 1px solid var(--border);
  background: var(--bg-subtle);
}

.npx-section-head {
  max-width: 720px;
  margin: 0 auto clamp(1.5rem, 1rem + 2vw, 2.75rem);
  text-align: center;
}

.npx-section-head h2 {
  margin: 0;
  font-size: clamp(var(--text-2xl), 1.2rem + 1.6vw, var(--text-4xl));
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.npx-section-head p {
  margin: var(--space-3) 0 0;
  color: var(--text-muted);
}

.npx-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.npx-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.npx-feature {
  padding: var(--space-6);
  transition: transform var(--duration-fast, 0.15s) ease, box-shadow var(--duration-fast, 0.15s) ease;
}

.npx-feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.npx-feature h3,
.npx-who h3,
.npx-steps h3 {
  margin: var(--space-4) 0 var(--space-2);
  font-size: var(--text-lg);
}

.npx-feature p,
.npx-who p,
.npx-steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.npx-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--brand-soft);
  color: var(--brand-text, var(--brand));
}

.npx-who {
  min-width: 0;
}

.npx-who > .icon {
  width: 28px;
  height: 28px;
  color: var(--brand-text, var(--brand));
}

.npx-steps {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.npx-steps li {
  position: relative;
  min-width: 0;
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.npx-step-no {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: var(--brand-fg, #fff);
  font-family: var(--font-heading);
  font-weight: 700;
}

.npx-faq-wrap {
  max-width: 860px;
}

.npx-faq {
  display: grid;
  gap: var(--space-3);
}

.npx-faq details {
  padding: var(--space-4) var(--space-5);
}

.npx-faq summary {
  font-weight: 600;
  cursor: pointer;
}

.npx-faq details p {
  margin: var(--space-3) 0 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.npx-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: clamp(1.5rem, 1rem + 3vw, 3rem);
  border-radius: var(--radius-2xl);
  background: var(--brand-gradient, var(--brand));
  color: var(--brand-fg, #fff);
}

.npx-cta h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(var(--text-2xl), 1.2rem + 1.2vw, var(--text-3xl));
}

.npx-cta p {
  max-width: 56ch;
  margin: var(--space-2) 0 0;
  opacity: 0.92;
}

.npx-cta .npx-actions {
  margin: 0;
}

.npx-cta .btn:not(.btn-primary) {
  border-color: color-mix(in srgb, currentColor 45%, transparent);
  background: transparent;
  color: inherit;
}

.npx-cta .btn-primary {
  background: var(--surface);
  color: var(--brand-text, var(--brand));
}

@media (prefers-reduced-motion: reduce) {
  .npx-feature,
  .npx-feature:hover {
    transform: none;
    transition: none;
  }
}

/* ---- the demo's sign-ins on the login page (390 px: one per row, addresses may break) ---- */
.auth-wrap {
  grid-template-columns: minmax(0, 1fr); /* the Kit's grid sized its track from the card's 440 px (the Kit's login grid) */
}
.auth-card {
  max-width: 100%;
  justify-self: center;
}
[data-demo-logins] {
  flex-wrap: wrap;
}
[data-demo-logins] > * {
  min-width: 0;
}
.news-demo-logins {
  flex: 1 1 100%;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.news-demo-login {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}
.news-demo-login .small,
[data-demo-logins] .small {
  min-width: 0;
  overflow-wrap: anywhere;
}
.news-demo-logins > p {
  margin: 0;
}

/* ---- the demo's roles in the call to action ---- */
.npx-roles {
  display: grid;
  gap: var(--space-1);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}
.npx-cta > div {
  min-width: 0;
}

