/* Scope: non-film/non-archive pages only (linked from audited templates).
   Replace repeated decoration with spacing while preserving controls, focus
   outlines, media frames and table/grid boundaries. */

/* Directory records: titles and whitespace carry the hierarchy. */
.fmc-separators-directory .event-sort {
  margin-block-end: clamp(1.75rem, 3vw, 2.5rem);
  padding-block-end: 0;
  border-block: 0 !important;
}
@layer systemReading {
  .fmc-separators-directory .film-index > article.event-card,
  .fmc-separators-directory .film-index > article.event-card + article.event-card {
    border-block: 0 !important;
    box-shadow: none !important;
  }
}
.fmc-separators-directory .film-index .event-card h2 a::before,
.fmc-separators-directory .film-index .event-card h2 a::after {
  content: none !important;
}

/* The TV agenda is a sequence of titled day chapters, not ruled rows. */
.fmc-separators-tv .tools {
  padding-block-end: clamp(1.25rem, 3vw, 2rem);
  border-block-end: 0;
}
.fmc-separators-tv .agenda > .day {
  padding-block-end: clamp(.75rem, 2vw, 1.25rem);
  border-block-end: 0;
}

/* Long-form pages: retain semantic breaks but render them as space. */
.reader-source-toc {
  padding-block: 0;
  margin-block-end: clamp(2.5rem, 5vw, 4rem);
  border-block: 0;
}
main.reader > section,
.translation-page hr {
  border-block: 0 !important;
}
.translation-page hr {
  height: 0;
  margin-block: clamp(2rem, 5vw, 3.5rem);
}
.photo-caption {
  padding-inline-start: 0;
  border-inline-start: 0;
}
.fmc-podcast-transcript,
.fmc-video-section {
  padding-block-start: 0;
  border-block-start: 0 !important;
}
.fm-art,
.fmc-video-card,
.poster-card,
.reading-card,
.note,
.original,
.reader pre {
  box-shadow: none !important;
}

/* Home links are internal; do not repeat an external-link glyph. */
.fmc-separators-home .fmc-latest-issue::before,
.fmc-separators-home .fmc-latest-issue::after {
  content: none !important;
}

/* WeChat reading exports: paper and headings, without a floating sheet. */
body.fmc-lines-wechat article {
  background: transparent;
  box-shadow: none;
}
body.fmc-lines-wechat h2 {
  padding-block-end: 0;
  border-block-end: 0;
}
body.fmc-lines-wechat ul.directory li {
  padding-block: .9rem;
  border-block-end: 0;
}

/* Public reader-mail template only: form controls keep their own boundaries. */
body.fmc-lines-letters .hero {
  border-block-end: 0;
}
body.fmc-lines-letters .panel,
body.fmc-lines-letters .thread {
  border: 0;
  box-shadow: none;
}
body.fmc-lines-letters .panel {
  padding-inline: 0;
  background: transparent;
}

/* Keep one footer boundary; remove the repeated rule inside it. */
footer.fmc-site-end .foot-legal,
footer.fmc-site-end .fmc-foot-links {
  border-block-start: 0 !important;
}

/* Imported WeChat article overflow; scoped to audited UI wrapper. */
@media (max-width: 900px) {
  body.fmc-lines-wechat > main,
  body.fmc-lines-wechat > main > article {
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
  }
  body.fmc-lines-wechat > main > article :where(h1, h2, h3, h4, p, li, blockquote, figcaption),
  body.fmc-lines-wechat > main > article .ocr-extract {
    min-inline-size: 0;
    overflow-wrap: anywhere;
  }
}
