/* Nick's Blog 2027 — V0.4.14
 * Deux citations Gutenberg natives :
 * - core/pullquote : exergue, fond bleu glacier et citation centrée ;
 * - core/quote : citation documentaire à filet vertical.
 * Portée volontairement limitée aux articles et pages ordinaires.
 */

/* Gutenberg Citation + citations HTML classiques de premier niveau. */
body.nicks-2027:is(.single-post, .page:not(.nb-editorial-page))
  .nv-content-wrap.entry-content .wp-block-quote,
body.nicks-2027:is(.single-post, .page:not(.nb-editorial-page))
  .nv-content-wrap.entry-content > blockquote:not(.wp-block-quote) {
  box-sizing: border-box;
  margin-block: clamp(24px, 3.4vw, 34px);
  padding: clamp(20px, 2.6vw, 27px) clamp(20px, 3vw, 30px);
  border: 1px solid #d8e3ee;
  border-left: 3px solid #1859a0;
  border-radius: 0 11px 11px 0;
  background: #f7fafd;
  box-shadow: none;
  color: #243246;
  text-align: left;
  font-style: normal;
}
body.nicks-2027:is(.single-post, .page:not(.nb-editorial-page))
  .nv-content-wrap.entry-content .wp-block-quote > p,
body.nicks-2027:is(.single-post, .page:not(.nb-editorial-page))
  .nv-content-wrap.entry-content > blockquote:not(.wp-block-quote) > p {
  margin: 0;
  color: #243246;
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  line-height: 1.58;
  font-style: italic;
  font-weight: 450;
  letter-spacing: -.012em;
}
body.nicks-2027:is(.single-post, .page:not(.nb-editorial-page))
  .nv-content-wrap.entry-content .wp-block-quote > p + p,
body.nicks-2027:is(.single-post, .page:not(.nb-editorial-page))
  .nv-content-wrap.entry-content > blockquote:not(.wp-block-quote) > p + p {
  margin-top: .8em;
}
body.nicks-2027:is(.single-post, .page:not(.nb-editorial-page))
  .nv-content-wrap.entry-content .wp-block-quote :is(cite,.wp-block-quote__citation),
body.nicks-2027:is(.single-post, .page:not(.nb-editorial-page))
  .nv-content-wrap.entry-content > blockquote:not(.wp-block-quote) cite {
  display: block;
  margin: 17px 0 0;
  color: #56718c;
  font-size: .78rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.45;
  letter-spacing: .085em;
  text-transform: uppercase;
  text-align: left;
}

/* Gutenberg Citation en exergue (core/pullquote), toutes variantes de base.
 * Le bloc ne reçoit aucun nouveau guillemet dans le texte stocké ; le signe
 * décoratif est purement CSS, invisible pour les lecteurs d'écran. */
body.nicks-2027:is(.single-post, .page:not(.nb-editorial-page))
  .nv-content-wrap.entry-content .wp-block-pullquote {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: clamp(28px, 4vw, 42px) auto;
  padding: clamp(35px, 4vw, 48px) clamp(22px, 4.5vw, 52px);
  border: 1px solid #d8e3ee;
  border-radius: 12px;
  background: #f4f8fc;
  box-shadow: none;
  color: #183b60;
  text-align: center;
}
body.nicks-2027:is(.single-post, .page:not(.nb-editorial-page))
  .nv-content-wrap.entry-content .wp-block-pullquote::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  left: clamp(16px, 2.5vw, 28px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.5rem, 7vw, 6.2rem);
  line-height: 1;
  font-weight: 400;
  color: #c9daea;
  pointer-events: none;
  user-select: none;
}
/* Reset indispensable : Neve et la feuille de lecture stylent les blockquotes. */
body.nicks-2027:is(.single-post, .page:not(.nb-editorial-page))
  .nv-content-wrap.entry-content .wp-block-pullquote blockquote {
  box-sizing: border-box;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-align: center;
  font-style: normal;
}
body.nicks-2027:is(.single-post, .page:not(.nb-editorial-page))
  .nv-content-wrap.entry-content .wp-block-pullquote blockquote > p {
  margin: 0;
  color: #183b60;
  font-size: clamp(1.35rem, 2.35vw, 1.85rem);
  line-height: 1.42;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -.018em;
  overflow-wrap: anywhere;
}
body.nicks-2027:is(.single-post, .page:not(.nb-editorial-page))
  .nv-content-wrap.entry-content .wp-block-pullquote blockquote > p + p {
  margin-top: .7em;
}
body.nicks-2027:is(.single-post, .page:not(.nb-editorial-page))
  .nv-content-wrap.entry-content .wp-block-pullquote blockquote :is(cite,.wp-block-pullquote__citation) {
  display: block;
  margin: 20px auto 0;
  color: #56718c;
  font-size: .79rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: center;
}

/* Lien éventuel cité comme source : accessible sur fond clair. */
body.nicks-2027:is(.single-post, .page:not(.nb-editorial-page))
  .nv-content-wrap.entry-content :is(.wp-block-quote,.wp-block-pullquote) cite a {
  color: #1859a0;
  text-decoration-thickness: 1px;
  text-underline-offset: .17em;
}

@media (max-width: 600px) {
  body.nicks-2027:is(.single-post, .page:not(.nb-editorial-page))
    .nv-content-wrap.entry-content .wp-block-pullquote {
    padding: 34px 19px 27px;
    border-radius: 9px;
  }
  body.nicks-2027:is(.single-post, .page:not(.nb-editorial-page))
    .nv-content-wrap.entry-content .wp-block-pullquote::before {
    top: 4px;
    left: 13px;
    font-size: 4.2rem;
  }
}

/* Impression : citations compactes, sans décorations inutiles ni fonds colorés. */
@media print {
  body.nicks-2027 .nv-content-wrap.entry-content :is(.wp-block-pullquote,.wp-block-quote) {
    width: auto !important;
    max-width: none !important;
    margin: 5mm 0 !important;
    padding: 3mm 5mm !important;
    border: 1px solid #aaa !important;
    border-left: 2px solid #555 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #000 !important;
    break-inside: avoid-page;
  }
  body.nicks-2027 .nv-content-wrap.entry-content .wp-block-pullquote::before {
    display: none !important;
  }
  body.nicks-2027 .nv-content-wrap.entry-content .wp-block-pullquote blockquote {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
  }
  body.nicks-2027 .nv-content-wrap.entry-content :is(.wp-block-pullquote,.wp-block-quote) :is(p,cite) {
    color: #000 !important;
    font-size: 11pt !important;
  }
}
