/* === Ecumenism: tables and wayfinding on the essay pages ====================
   Rides on canon.css tokens, so day and night follow the same palette. A table
   is a ruled list on a wide screen and a stack of cards on a phone, so the page
   never scrolls sideways.
   ========================================================================= */

.ec-back { margin: 0 0 1rem; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; }
.ec-back a { color: var(--ink-subtle); text-decoration: none; border-bottom: 1px solid var(--rule); }
.ec-back a::before { content: "\2190\00a0"; }
.ec-back a:hover { color: var(--marian); border-bottom-color: var(--gold); }

.ec-table { margin: 1.1rem 0 0.4rem; }
.ec-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
.ec-table caption {
  caption-side: top; text-align: left; padding: 0 0 0.5rem;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep);
}
.ec-table th, .ec-table td { padding: 0.6rem 0.75rem 0.6rem 0; vertical-align: top; text-align: left; border-top: 1px solid var(--rule); }
.ec-table thead th {
  border-top: 0; border-bottom: 1px solid var(--rule-strong);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-subtle);
}
.ec-table tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.ec-table td { color: var(--ink-muted); }

.cn-essay ul { margin: 0.4rem 0 0.9rem; padding-left: 1.2rem; }
.cn-essay ul li { margin-bottom: 0.5rem; }
.cn-essay ul li::marker { color: var(--gold); }

/* A four-column comparison needs more than the reading column: on a wide
   screen it steps out to either side, centered on the text. */
.ec-cols-4 tbody th { width: 17%; }
.ec-cols-4 td:last-child { width: 15%; }
@media (min-width: 900px) {
  .ec-cols-4 { width: min(60rem, calc(100vw - 4rem)); margin-left: calc(50% - min(30rem, 50vw - 2rem)); }
}

/* Notes are numbered here, so they read as figures, not roman numerals. */
.ec-wrap .cn-notes ol { list-style: decimal; }

@media (max-width: 640px) {
  .ec-table caption { display: block; width: 100%; }
  .ec-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ec-table table, .ec-table tbody, .ec-table tr, .ec-table th, .ec-table td { display: block; width: 100%; }
  .ec-table tr { padding: 0.7rem 0; border-top: 1px solid var(--rule); }
  .ec-table th, .ec-table td { border: 0; padding: 0.15rem 0; }
  .ec-table tbody th, .ec-cols-4 tbody th, .ec-cols-4 td:last-child { width: 100%; }
  .ec-table tbody th { margin-bottom: 0.2rem; }
  .ec-table td[data-label]::before {
    content: attr(data-label); display: block;
    font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-subtle);
  }
}

/* From the wire: live headlines under a chapter (assets/ecumenism-wire.js). */
.ec-wire[hidden] { display: none; }
.ec-wire { margin-top: clamp(1.8rem, 4vw, 2.4rem); padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.ec-wire h2 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-subtle); margin-bottom: 0.7rem; }
.ec-wire ol { list-style: none; padding: 0; margin: 0; }
.ec-wire li { padding: 0.5rem 0; border-bottom: 1px solid var(--rule); line-height: 1.45; }
.ec-wire li a { color: var(--ink); text-decoration: none; }
.ec-wire li a:hover { color: var(--marian); }
.ec-wire-topic { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-subtle); margin-top: 0.15rem; }

/* Between Rome and ...: the watch, both directions (assets/ecumenism-wire.js). */
.ec-watch[hidden] { display: none; }
.ec-watch { margin-top: clamp(1.8rem, 4vw, 2.4rem); padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.ec-watch h2 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-subtle); margin-bottom: 0.7rem; }
.ec-watch ol { list-style: none; padding: 0; margin: 0; }
.ec-watch li { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); line-height: 1.45; }
.ec-watch li a { color: var(--ink); text-decoration: none; }
.ec-watch li a:hover { color: var(--marian); }
.ec-watch-meta { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.15rem; }

/* The date a chapter was last revised, under its lede. */
.ec-updated { margin: .4rem 0 0; font-size: .82rem; letter-spacing: .02em; color: var(--ink-subtle); }

/* Correspondence filter: a search box and two choices above the letters. */
.ec-filter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1.2rem 0 .6rem; padding: .7rem; border: 1px solid var(--rule); border-radius: 2px; }
.ec-filter input, .ec-filter select { min-height: 44px; font: inherit; font-size: .95rem; padding: 0 .6rem; border: 1px solid var(--rule); border-radius: 2px; background: transparent; color: inherit; }
.ec-filter input { flex: 1 1 14rem; }
.ec-filter-count { font-size: .82rem; color: var(--ink-subtle); margin-left: auto; }
.ec-letters [hidden] { display: none !important; } /* the stacked-card rows set display; hidden must still win */
.ec-watch-orig { display: block; font-size: .85rem; color: var(--ink-subtle); margin-top: .15rem; } /* the publisher's own words, under the English */

/* THE PHONE (2026-10-15). The canon hero sets its quote on one line at 4vw,
   about 15px on a phone, under a centered nine-line lede: the title read
   smaller than the paragraph beneath it. On a chapter the title wraps and
   leads, the hero reads left like the essay under it, section heads balance
   their lines instead of stranding a word, and a two-column timeline does not
   repeat its column name on every row. Scoped to .ec-wrap: the canon pages
   keep their single-line quote. */
.ec-toc { margin: 1.4rem auto 0; max-width: 30rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ec-toc summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-subtle); }
.ec-toc ol { margin: 0 0 .8rem; padding-left: 1.4rem; columns: 2 14rem; column-gap: 1.5rem; }
.ec-toc li { margin: 0 0 .35rem; break-inside: avoid; line-height: 1.4; }
.ec-toc a { color: var(--ink); text-decoration: none; }
.ec-toc a:hover { color: var(--marian); }
.ec-wrap .cn-essay h2 { text-wrap: balance; }
.ec-wrap .cn-essay { scroll-margin-top: 4.5rem; }
@media (max-width: 640px) {
  .ec-wrap .cn-hero { text-align: left; }
  .ec-wrap .cn-hero .cn-rose { margin-left: 0; width: 48px; height: 48px; }
  .ec-wrap .cn-hero h1 { white-space: normal; text-wrap: balance; font-size: clamp(1.7rem, 7.4vw, 2.4rem); line-height: 1.15; }
  .ec-wrap .cn-lede { margin: 0; text-align: left; font-size: 1.02rem; }
  .ec-wrap .cn-essay h2 { letter-spacing: .16em; line-height: 1.5; }
  .ec-cols-2 td[data-label]::before { display: none; }
  .ec-cols-2 tbody th { color: var(--gold-deep); font-size: .85rem; letter-spacing: .02em; }
}
