/* Une fin de lecture commune aux anciennes pages sombres et au papier du Journal. */
.jerry-header :is(.nav-back,.nav-btn) {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.journal-story {
  --end-ink: var(--j-text, #f4efdf);
  --end-muted: var(--j-muted, #c5c8ce);
  --end-accent: var(--j-text-accent, var(--burnt-orange, #ff7a00));
  --end-rule: var(--j-line, #566171);
  --end-surface: var(--j-surface, #141b25);
  --end-type: var(--j-body-font, 'Plus Jakarta Sans', system-ui, sans-serif);
  min-width: 0;
}
.journal-story .article-content a[href], .journal-story .article-content a[href]:visited {
  color: var(--end-accent); font-weight: 650; text-decoration: underline;
  text-decoration-thickness: .08em; text-underline-offset: .19em; overflow-wrap: anywhere;
}
.journal-story .article-content a[href]:hover { text-decoration-thickness: .14em; }
.journal-story .reading-tools { margin: clamp(1.25rem,3vw,2rem) 0; }
.journal-story .reading-actions#article-engagement-bar {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  width: min(100%,36rem); box-sizing: border-box; gap: .45rem; align-items: stretch;
  margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; backdrop-filter: none;
}
.journal-story .reading-actions .engagement-btn, .journal-story #btn-submit-comment {
  box-sizing: border-box; margin: 0; min-width: 0; min-height: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: .48rem;
  padding: .55rem .7rem; background: transparent; color: var(--end-ink); border: 1px solid var(--end-rule);
  border-radius: .3rem; box-shadow: none; transform: none; text-transform: none;
  cursor: pointer; font: 700 .9rem/1.25 var(--end-type);
}
.journal-story .reading-actions .engagement-btn [data-action-label] { font: inherit; }
.journal-story .reading-actions .engagement-btn svg { flex: none; width: 20px; height: 20px; }
.journal-story .reading-actions #btn-like-article, .journal-story #btn-submit-comment {
  background: var(--end-ink); color: var(--end-surface); border-color: var(--end-ink);
}
.journal-story .reading-actions [aria-pressed="true"] svg { fill: currentColor; }
.journal-story .reading-actions [aria-expanded="true"] { box-shadow: inset 0 -3px currentColor; }
.journal-story .reading-actions button:hover { border-color: var(--end-ink); }
.journal-story .reading-tools button:disabled { cursor: wait; opacity: .65; }
.journal-story :is(a,button,textarea,input):focus-visible { outline: 2px solid var(--end-accent); outline-offset: 3px; }
.journal-story .reading-tools [hidden] { display: none !important; }
.journal-story :is(#article-action-status,#article-comment-status) { margin: .65rem 0 0; color: var(--end-ink); font: 600 .9rem/1.45 var(--end-type); }
.journal-story :is(#article-action-status,#article-comment-status):empty { display: none; }
.journal-story .article-comments-section:not([hidden]), .journal-story #article-share-manual:not([hidden]) {
  display: block; box-sizing: border-box; margin: 1rem 0 0; padding: 1rem 0;
  border: 0; border-block: 1px solid var(--end-rule); border-radius: 0;
  color: var(--end-ink); background: transparent; box-shadow: none; backdrop-filter: none;
}
.journal-story .article-comments-title { color: var(--end-ink); margin: 0 0 .75rem; text-transform: none; }
.journal-story .reading-tools label { display: block; margin-bottom: .4rem; font: 650 .9rem/1.4 var(--end-type); }
.journal-story :is(.comment-textarea,#article-share-url) { box-sizing: border-box; width: 100%; padding: .75rem; margin: 0 0 .65rem; font: 1rem/1.45 var(--end-type); color: var(--end-ink); background: var(--end-surface); border: 1px solid var(--end-rule); border-radius: .25rem; }
.journal-story .comments-list-wrap:empty { display: none; }
.journal-story .reader-comment { padding: .75rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.journal-story .reader-comment strong { font-size: .88rem; }
.journal-story .article-semantic-linking { margin: 1.75rem 0; color: var(--end-ink); overflow-wrap: anywhere; }
.journal-story .linking-section-title { margin: 0 0 .5rem; color: var(--end-ink); font: 750 clamp(1.1rem,2.2vw,1.45rem)/1.25 var(--end-type); text-transform: none; letter-spacing: normal; }
.journal-story .linking-cards-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; }
.journal-story a.linking-card, .journal-story a.linking-card:visited {
  display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto;
  align-content: center; column-gap: .8rem; row-gap: .2rem; min-height: 52px;
  box-sizing: border-box; padding: .75rem .15rem; border: 0; border-top: 1px solid var(--end-rule);
  border-radius: 0; color: var(--end-ink); text-decoration: none; background: transparent; box-shadow: none;
}
.journal-story .linking-card:last-child { border-bottom: 1px solid var(--end-rule); }
.journal-story .linking-card__name { grid-area: 1 / 1; font: 720 1rem/1.4 var(--end-type); color: var(--end-ink); }
.journal-story .linking-card__meta { grid-area: 2 / 1; display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .65rem; color: var(--end-muted); font: 500 .85rem/1.45 var(--end-type); }
.journal-story .linking-date { color: var(--end-accent); font-weight: 700; }
.journal-story .linking-card::after { content: '→'; grid-area: 1 / 2 / 3; align-self: center; color: var(--end-accent); font: 700 1.2rem/1 var(--end-type); }
.journal-story .linking-card:hover .linking-card__name { text-decoration: underline; text-underline-offset: .2em; }
.article-layout .sidebar .btn-cta { background: var(--sand-beige, #f4efdf); color: var(--dark-soul, #141b25); }
@media (max-width: 36rem) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .journal-story .reading-actions .engagement-btn { padding: .55rem .15rem; flex-direction: column; gap: .25rem; font-size: .82rem; min-height: 58px; }
}
@media (max-width: 23rem) {
  .jerry-header { grid-template-columns: auto minmax(0, 1fr) auto; padding-inline: .5rem; }
  .jerry-header :is(.nav-back,.nav-btn) { padding-inline: .45rem; }
  .jerry-header .nav-logo a { font-size: 1.55rem; }
}
