/* Manifesto v19.2 — reading entry, word count, and compact tenets only.
   The routed-link overlay and sticky tenet rail were removed after testing. */

/* --------------------------------------------------------------------------
   Reading entry / word count
   -------------------------------------------------------------------------- */
.manifesto-enter-reading{
  appearance:none;
  display:block;
  width:max-content;
  margin:6px auto 0;
  padding:14px 18px 16px;
  border:0;
  background:transparent;
  color:var(--reader-muted);
  font:300 10px/1.4 "IBM Plex Mono",monospace;
  letter-spacing:.12em;
  cursor:pointer;
  transition:color .16s ease,transform .16s ease;
}
.manifesto-enter-reading:hover,
.manifesto-enter-reading:focus-visible{
  color:var(--reader-text);
  transform:translateY(2px);
  outline:none;
}

/* Keep the counter clear of the 116px bottom margin ruler. */
.manifesto-word-count{
  position:absolute;
  z-index:29;
  right:18px;
  bottom:128px;
  padding:4px 6px;
  color:var(--reader-faint);
  background:color-mix(in srgb,var(--reader-paper) 82%,transparent);
  font:300 9.5px/1.2 "IBM Plex Mono",monospace;
  letter-spacing:.08em;
  font-variant-numeric:tabular-nums;
  pointer-events:none;
  white-space:nowrap;
}

/* --------------------------------------------------------------------------
   Tenet body: default compact state. Only heading + a three-line lead remain.
   -------------------------------------------------------------------------- */
.manifesto-subsection.tenet{
  position:relative;
}
.manifesto-subsection.tenet.is-collapsed > *:not(.manifesto-subsection-header):not(.tenet-preview-paragraph):not(.tenet-expand-toggle){
  display:none!important;
}
.manifesto-subsection.tenet.is-collapsed > .tenet-preview-paragraph{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
  max-height:calc(3 * var(--manifesto-font-size) * var(--manifesto-leading));
  margin-bottom:10px!important;
  mask-image:linear-gradient(to bottom,#000 0%,#000 78%,transparent 100%);
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 78%,transparent 100%);
}
.manifesto-subsection.tenet.is-expanded > .tenet-preview-paragraph{
  mask-image:none;
  -webkit-mask-image:none;
}
.tenet-expand-toggle{
  appearance:none;
  border:0;
  margin:0 0 24px;
  padding:5px 0 7px;
  background:transparent;
  color:var(--reader-faint);
  font:300 10px/1.4 "IBM Plex Mono",monospace;
  letter-spacing:.055em;
  cursor:pointer;
  transition:color .15s ease;
}
.tenet-expand-toggle:hover,
.tenet-expand-toggle:focus-visible{
  color:var(--reader-text);
  outline:none;
}
.manifesto-subsection.tenet.is-expanded > .tenet-expand-toggle{
  margin-bottom:18px;
}

@media(max-width:900px){
  .manifesto-word-count{
    right:10px;
    bottom:92px;
    font-size:8.5px;
  }
  .manifesto-enter-reading{
    padding-bottom:13px;
  }
}

@media(prefers-reduced-motion:reduce){
  .manifesto-enter-reading,
  .tenet-expand-toggle{
    transition:none!important;
  }
}
