/* ==========================================================================
   Journal index, journal posts and the legal pages.
   These have no Figma frame: they are assembled from the components the
   design already defines (page title, journal rows, lead copy) so they sit
   inside the same system rather than inventing a new one.
   ========================================================================== */

.editorial-page { position: relative; background: var(--c-page); padding: 0 0 14rem; }

.editorial-page__head { position: relative; padding: 34rem var(--page-x, 6.5rem) 0; }

.editorial-page__title {
  font-size: var(--fs-display-xxl);
  line-height: var(--lh-display-xxl);
  letter-spacing: var(--ls-display-xxl);
  color: var(--c-grey-150);
}

.editorial-page__lede {
  max-width: 93rem;
  margin: 6rem 0 0;
  font-family: var(--f-editorial);
  font-weight: var(--fw-light);
  font-size: var(--fs-editorial);
  line-height: var(--lh-statement);
  font-variation-settings: 'opsz' 14, 'wdth' 100;
  color: #676767;
}

.editorial-page__body {
  position: relative;
  max-width: 114.4rem;
  margin: 12rem 0 0 auto;
  padding: 0 var(--page-x, 6.5rem);
}

.editorial-page__body p {
  margin: 0 0 2.8rem;
  font-family: var(--f-body);
  font-weight: var(--fw-light);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--c-ink);
}
.editorial-page__body p:last-child { margin-bottom: 0; }

.editorial-page__meta {
  margin: 0 0 3.2rem;
  font-family: var(--f-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  text-transform: uppercase;
  color: var(--c-ink);
}

/* Post list, reusing the journal row component in flow */
.post-list { list-style: none; margin: 12rem 0 0; padding: 0 var(--page-x, 6.5rem); }
.post-list .journal__row { position: relative; height: auto; padding: 4rem 0; border-top: 0.15rem solid var(--c-grey-300); }
.post-list .journal__row:last-child { border-bottom: 0.15rem solid var(--c-grey-300); }
.post-list .journal__title { position: relative; left: auto; top: auto; white-space: normal; }
.post-list .journal__meta { position: relative; left: auto; top: auto; margin: 1.6rem 0 0; }
.post-list .journal__excerpt { position: relative; left: auto; top: auto; width: auto; max-width: 56rem; margin: 0.8rem 0 0; }

.editorial-page__back { display: inline-block; margin: 8rem 0 0; }

@media (max-width: 1366px) {
  .editorial-page { padding-bottom: 8rem; }
  .editorial-page__head { padding-top: 16rem; }
  .editorial-page__title { font-size: var(--fs-display-xl); line-height: var(--lh-display-xl); letter-spacing: var(--ls-display-xl); }
  .editorial-page__lede { margin-top: 3.2rem; line-height: var(--lh-editorial); }
  .editorial-page__body,
  .post-list { margin-top: 6rem; }
  .post-list .journal__row { padding: 3rem 0; }
}

/* ---- Long-form legal copy -----------------------------------------------
   Privacy and Terms are the only sectioned prose on the site, so headings,
   lists and inline links live here rather than in every page. */
.editorial-page__updated {
  margin: 0 0 5.6rem;
  font-family: var(--f-ui);
  font-size: var(--fs-body);
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  color: var(--c-grey-500);
}

.editorial-page__body h2 {
  margin: 6.4rem 0 2.4rem;
  font-family: var(--f-ui);
  font-size: var(--fs-ui-lg);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-ui);
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--c-ink);
}

.editorial-page__body ul { margin: 0 0 2.8rem; padding: 0; list-style: none; }

.editorial-page__body li {
  position: relative;
  margin: 0 0 1.4rem;
  padding-left: 2.6rem;
  font-family: var(--f-body);
  font-weight: var(--fw-light);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--c-ink);
}
.editorial-page__body li::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: calc(var(--lh-lead) / 2 - 0.3rem);
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--c-ink);
}

.editorial-page__body a:not(.arrow-link) {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  text-decoration-thickness: 0.1rem;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.editorial-page__body a:not(.arrow-link):hover { opacity: 0.55; }
