/* PS Article Themes – Editorial Edition */
.ps-article-wrap{
  padding: 48px 0;
}

/* Keep SportX container behavior: we don't touch layout wrappers outside article.
   We apply styles to header/content inside the wrapped article. */
.ps-article-wrap .entry-header,
.ps-article-wrap .entry-content{
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.ps-article-wrap .entry-header{
  margin-bottom: 28px;
}

.ps-article-wrap .entry-title{
  letter-spacing: -0.02em;
}

.ps-article-wrap .entry-meta{
  opacity: .86;
}

@media (max-width:768px){
  .ps-article-wrap{ padding: 28px 0; }
  .ps-article-wrap .entry-header,
  .ps-article-wrap .entry-content{
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Themes */
.ps-theme-blu{
  /* Atmosfera, non "pozza": leggero gradiente */
  background: linear-gradient(180deg, #8ea5bd 0%, #8a9fb5 60%, #7d94ab 100%);
}

.ps-theme-ink{
  background-color: #fffcf4;
}

.ps-theme-breaking{
  background-color: #fdeaea;
}

.ps-theme-notturno{
  background-color: #1e1e1e;
  color: #f1f1f1;
}

/* Custom theme via CSS vars */
.ps-theme-custom{
  background: var(--ps-custom-bg, #ffffff);
  color: var(--ps-custom-text, #111111);
}

/* Ensure text colors for dark themes */
.ps-theme-notturno .entry-header,
.ps-theme-notturno .entry-content{ color: #eaeaea; }
.ps-theme-notturno a{ color: #8ab4ff; }

/* Editorial refinements */
.ps-paper .entry-content{
  /* "Foglio", non card: carta calda + texture opzionale */
  background-color: #fdfcf8;
  padding: 56px 64px;
  /* Colonna più "giornale" quando paper attivo */
  max-width: 700px;
  border-radius: 10px 12px 8px 11px;
}

/* Mobile paper spacing */
@media (max-width:768px){
  .ps-paper .entry-content{
    padding: 32px 26px;
    max-width: 760px; /* on mobile allow width */
  }
}

/* Border & shadow are optional toggles */
.ps-paper-border .entry-content{
  border: 1px solid rgba(0,0,0,0.06);
}

.ps-paper-shadow .entry-content{
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 8px 18px rgba(0,0,0,0.08);
}

/* Texture only when enabled (articoli forti) */
.ps-paper-texture .entry-content{
  background-image:
    radial-gradient(rgba(0,0,0,0.015) 1px, transparent 1px);
  background-size: 4px 4px;
}

/* Longform */
.ps-paper-longform .entry-content{
  padding: 72px 80px;
  max-width: 720px;
}

@media (max-width:768px){
  .ps-paper-longform .entry-content{
    padding: 38px 28px;
  }
}

/* Header on colored themes: keep elegant separation */
.ps-theme-blu .entry-header{
  color: #0b1f3a; /* keeps title readable on light blue */
}
.ps-theme-notturno .entry-header{
  color: #f1f1f1;
}

/* If paper is enabled on dark themes, keep paper readable */
.ps-theme-notturno.ps-paper .entry-content{
  background-color: #222;
}
.ps-theme-notturno.ps-paper-texture .entry-content{
  background-image:
    radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
}

/* Optional: a subtle editorial accent under title when paper enabled */
.ps-paper .entry-title::after{
  content:"";
  display:block;
  width:72px;
  height:3px;
  margin-top:18px;
  background: rgba(0,0,0,0.15);
}

.ps-theme-notturno.ps-paper .entry-title::after{
  background: rgba(255,255,255,0.18);
}

/* Reading rhythm for paper (gentle) */
.ps-paper .entry-content p{
  line-height: 1.75;
  margin-bottom: 1.4em;
}
