/* =========================================
   FICHIER : css/post-content.css
   PAGE    : articles du Journal Horizon
   ROLE    : lecture et typographie editoriale
   ========================================= */

.post-reading {
  padding: 92px 0 104px;
  background: #fff;
}

.post-reading__layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 820px);
  gap: 58px;
  justify-content: center;
  align-items: start;
}

/* Rail discret */
.post-reading__rail {
  position: sticky;
  top: 126px;
  display: grid;
  gap: 4px;
  padding-top: 4px;
}

.post-reading__label {
  margin-bottom: 10px;
  color: var(--post-accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.post-reading__rail a {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  color: var(--post-muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.post-reading__rail a:hover {
  color: var(--post-accent);
}

/* Corps de l'article */
.post-content {
  min-width: 0;
  color: rgba(45, 52, 54, 0.86);
  font-size: 1.08rem;
  line-height: 1.86;
}

.post-content > *:first-child {
  margin-top: 0;
}

.post-content > *:last-child {
  margin-bottom: 0;
}

.post-content p {
  margin: 0 0 1.45em;
}

.post-content > p:first-child {
  color: var(--post-ink);
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 2vw, 1.62rem);
  font-weight: 600;
  line-height: 1.55;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--post-ink);
  scroll-margin-top: 130px;
}

.post-content h2 {
  margin: 2.1em 0 0.65em;
  font-size: var(--hz-title-content);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.post-content h3 {
  margin: 1.8em 0 0.6em;
  font-size: var(--hz-title-content-small);
  line-height: 1.12;
}

.post-content h4 {
  margin: 1.55em 0 0.55em;
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 800;
}

.post-content strong {
  color: var(--post-ink);
  font-weight: 800;
}

.post-content a {
  color: var(--post-accent);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(255, 110, 64, 0.35);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.post-content a:hover {
  text-decoration-color: var(--post-accent);
}

.post-content ul,
.post-content ol {
  display: grid;
  gap: 9px;
  margin: 1.5em 0;
  padding-left: 1.5em;
}

.post-content li {
  padding-left: 0.25em;
}

.post-content li::marker {
  color: var(--post-accent);
  font-weight: 900;
}

.post-content blockquote {
  position: relative;
  margin: 2.2em 0;
  padding: 25px 28px 25px 34px;
  border: 0;
  border-radius: 0 18px 18px 0;
  background: rgba(30, 61, 89, 0.045);
  color: var(--post-ink);
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 600;
  line-height: 1.5;
}

.post-content blockquote::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--post-accent);
}

.post-content blockquote p {
  margin: 0;
}

.post-content img {
  display: block;
  width: min(100%, 1120px);
  height: auto;
  margin: 2.2em auto;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(30, 61, 89, 0.1);
}

.post-content figure {
  margin: 2.2em 0;
}

.post-content figure img {
  margin-bottom: 0;
}

.post-content figcaption {
  margin-top: 10px;
  color: var(--post-muted);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

.post-content hr {
  width: 90px;
  height: 2px;
  margin: 3em auto;
  border: 0;
  background: var(--post-accent);
}

.post-content table {
  width: 100%;
  margin: 2em 0;
  border-spacing: 0;
  border-collapse: separate;
  overflow: hidden;
  border: 1px solid var(--post-line);
  border-radius: 14px;
  font-size: 0.92rem;
}

.post-content th,
.post-content td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--post-line);
}

.post-content th {
  background: var(--post-soft);
  color: var(--post-ink);
  font-weight: 800;
}

.post-content tr:last-child td {
  border-bottom: 0;
}