/* ═══════════════════════════════════════════════════════════════
   "Ways into this topic" (2026-10-20): the block under the About section on /the-faith-received/topics/?t=<locus>
   (faith-port-topic-dev-notes.js). A segmented tablist and three card layouts: a numbered reading path, tradition
   pairs with palette edges, concept cards. Every word is the data's own; this file only lays it out.

   Self-contained surface, like the century ruler: its own hex tokens, light unless an ancestor sets data-sd-theme="dark". The topics page is light only,
   so the system setting is not read (2026-10-20), so scripts/check-topic-desk.mjs can measure every pair.
   No pills, no display face, no scroll box. Under .fr-dn so it beats screen.min.css.
   ═══════════════════════════════════════════════════════════════ */
.fr-dn {
  --wn-bg: #fffdf9; --wn-card: #f8f3ea; --wn-ink: #2d2927; --wn-muted: #5f5a54; --wn-accent: #9c4d37; --wn-rule: #d9c6a7;
  --wn-gf: #8c3b2a; --wn-pl: #a8572b; --wn-po: #6e4a2e; --wn-md: #7d6a3c; --wn-rc: #7a2f4f; --wn-lu: #2f5d7c; --wn-rf: #3d6b45; --wn-ed: #2d2927; --wn-hl: #6b6660;
}
html[data-sd-theme="dark"] .fr-dn {
  --wn-bg: #2b2c29; --wn-card: #333430; --wn-ink: #e9e9e5; --wn-muted: #b0b0a8; --wn-accent: #e6a08a; --wn-rule: #454740;
  --wn-gf: #e08a73; --wn-pl: #e2a064; --wn-po: #bf9a7c; --wn-md: #c9b574; --wn-rc: #d88aae; --wn-lu: #78afd6; --wn-rf: #82bd92; --wn-ed: #d8d0c6; --wn-hl: #9e968c;
}
.fr-dn { background: var(--wn-bg); color: var(--wn-ink); border: 1px solid var(--wn-rule); border-radius: 3px; padding: 24px 22px 22px; }
@media (max-width: 560px) { .fr-dn { padding: 18px 14px; } }
.fr-dn .td-block-h { color: var(--wn-ink); }
.fr-dn .td-note, .fr-dn .sd-muted { color: var(--wn-muted); }
.fr-dn a { color: var(--wn-accent); }
.fr-dn p, .fr-dn li, .fr-dn h4 { color: var(--wn-ink); }

/* The tablist of the standalone block (the section's own tabs are .tdk-tab in topic-desk.css): plain labels on one rule, the active one underlined. */
.fr-dn .fr-dn-tabs { display: flex; flex-wrap: wrap; gap: 0 26px; margin: 16px 0 20px; border: 0; border-bottom: 1px solid var(--wn-rule); }
.fr-dn .fr-dn-tab { margin: 0 0 -1px; min-height: 44px; padding: 10px 0 9px; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wn-muted); background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; cursor: pointer; }
.fr-dn .fr-dn-tab:hover { color: var(--wn-ink); border-bottom-color: var(--wn-rule); }
.fr-dn .fr-dn-tab[aria-selected="true"] { color: var(--wn-ink); border-bottom-color: var(--wn-accent); }
.fr-dn .fr-dn-tab:focus-visible, .fr-dn .fr-dn-view:focus-visible { outline: 2px solid var(--wn-ink); outline-offset: 2px; }

/* A course of reading: a vertical path of numbered steps joined by a thin line. */
.fr-dn .fr-dn-course { list-style: none; margin: 0; padding: 0; display: block; position: relative; }
.fr-dn .fr-dn-step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 16px; padding: 0 0 18px; }
.fr-dn .fr-dn-step::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--wn-rule); }
.fr-dn .fr-dn-step:last-child::before { display: none; }
.fr-dn .fr-dn-n { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--wn-accent); border-radius: 3px; background: var(--wn-bg); color: var(--wn-accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.fr-dn .fr-dn-step-body { padding: 12px 16px; background: var(--wn-card); border: 1px solid var(--wn-rule); border-radius: 3px; min-width: 0; }
.fr-dn .fr-dn-course .fr-dn-course-head { font-style: italic; }
.fr-dn .fr-dn-course .fr-dn-course-head a { display: inline-block; padding: 10px 0; color: var(--wn-accent); }
.fr-dn .fr-dn-course p { margin: 4px 0 0; max-width: 62ch; line-height: 1.6; }
.fr-dn .fr-dn-thesis { font-size: 0.92em; font-style: italic; color: var(--wn-muted); }

/* Traditions compared and concept guides: cards in a grid. */
.fr-dn .fr-dn-pairs, .fr-dn .fr-dn-concepts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .fr-dn .fr-dn-pairs, .fr-dn .fr-dn-concepts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .fr-dn .fr-dn-pairs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fr-dn .fr-dn-card { position: relative; min-width: 0; padding: 22px 18px 14px; background: var(--wn-card); border: 1px solid var(--wn-rule); border-radius: 3px; }
.fr-dn .fr-dn-card:hover, .fr-dn .fr-dn-card:focus-within { border-color: var(--wn-accent); }
.fr-dn .fr-dn-edge { position: absolute; left: 0; right: 0; top: 0; display: flex; height: 5px; }
.fr-dn .fr-dn-edge i { flex: 1; display: block; }
.fr-dn .e-gf { background: var(--wn-gf); } .fr-dn .e-pl { background: var(--wn-pl); } .fr-dn .e-po { background: var(--wn-po); } .fr-dn .e-md { background: var(--wn-md); }
.fr-dn .e-rc { background: var(--wn-rc); } .fr-dn .e-lu { background: var(--wn-lu); } .fr-dn .e-rf { background: var(--wn-rf); } .fr-dn .e-ed { background: var(--wn-ed); } .fr-dn .e-hl { background: var(--wn-hl); }
.fr-dn .fr-dn-pairs h4 { margin: 0 0 6px; font-size: 20px; font-weight: 600; line-height: 1.25; }
.fr-dn .fr-dn-card p { margin: 0 0 10px; max-width: 62ch; line-height: 1.65; }
.fr-dn .fr-dn-pages { margin: 0 0 10px; font-size: 14px; color: var(--wn-muted); }
.fr-dn .fr-dn-pages a { display: inline-block; padding: 10px 0; color: var(--wn-muted); }
.fr-dn .fr-dn-concept { padding-top: 18px; }
.fr-dn .fr-dn-open { min-height: 44px; padding: 10px 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--wn-accent); background: none; border: 0; border-radius: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fr-dn .fr-dn-open:hover { color: var(--wn-ink); }
.fr-dn .fr-dn-open:focus-visible { outline: 2px solid var(--wn-ink); outline-offset: 2px; }
.fr-dn .fr-dn-guide { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--wn-rule); }
@media (prefers-reduced-motion: no-preference) { .fr-dn .fr-dn-card { transition: border-color 0.15s; } }

/* The Scripture tab: a verse card grid (topic-scripture-tab.js). Same surface and tokens as the rest of the block. */
.fr-dn .tsc-lede { margin: 0 0 16px; max-width: 62ch; line-height: 1.6; color: var(--wn-muted); }
.fr-dn .tsc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .fr-dn .tsc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .fr-dn .tsc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fr-dn .tsc-card { min-width: 0; padding: 16px 18px 12px; background: var(--wn-card); border: 1px solid var(--wn-rule); border-top: 4px solid var(--wn-accent); border-radius: 3px; }
.fr-dn .tsc-card[hidden] { display: none; }
.fr-dn .tsc-card:hover, .fr-dn .tsc-card:focus-within { border-color: var(--wn-accent); }
.fr-dn .tsc-top { display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.fr-dn .tsc-ref { display: inline-block; padding: 8px 0; font-size: 22px; font-weight: 600; line-height: 1.15; text-decoration: none; }
.fr-dn .tsc-ref:hover { text-decoration: underline; }
.fr-dn .tsc-heat { flex: 0 0 38%; height: 8px; border-radius: 2px; background: var(--wn-rule); overflow: hidden; }
.fr-dn .tsc-heat i { display: block; height: 100%; background: var(--wn-accent); }
.fr-dn .tsc-count { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--wn-muted); }
.fr-dn .tsc-row { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--wn-rule); }
.fr-dn .tsc-h { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wn-muted); }
.fr-dn .tsc-chips, .fr-dn .tsc-works { list-style: none; margin: 0; padding: 0; }
.fr-dn .tsc-chips li, .fr-dn .tsc-works li { margin: 0; }
.fr-dn .tsc-chips a { display: inline-block; padding: 10px 0; line-height: 1.4; }
.fr-dn .tsc-works a { display: inline-block; padding: 10px 0 0; line-height: 1.4; }
.fr-dn .tsc-works span { display: block; padding-bottom: 6px; }
.fr-dn .tsc-chips a b { color: var(--wn-ink); font-weight: 600; }
.fr-dn .tsc-chips a span, .fr-dn .tsc-works span { font-size: 14px; color: var(--wn-muted); }
.fr-dn .tsc-all { margin-top: 16px; }

/* Traditions compared: numbered notes, the sample line, and each tradition's confessions and principal writers in its own half. */
.fr-dn .fr-dn-notes-h { margin: 0 0 2px; font-size: 14px; font-weight: 600; color: var(--wn-muted); }
.fr-dn .fr-dn-notes { margin: 0 0 12px; padding-left: 1.6em; font-size: 14px; }
.fr-dn .fr-dn-notes li { margin: 0; color: var(--wn-muted); }
.fr-dn .fr-dn-notes a { display: inline-block; min-height: 44px; padding: 12px 0; color: var(--wn-muted); }
.fr-dn .fr-dn-card .fr-dn-sample { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--wn-muted); }
.fr-dn .fr-dn-halves { display: grid; gap: 14px 22px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--wn-rule); grid-template-columns: minmax(0, 1fr); }
.fr-dn .fr-dn-half-h { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: var(--wn-ink); }
.fr-dn .fr-dn-row h5 { margin: 8px 0 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wn-muted); }
.fr-dn .fr-dn-row ul { list-style: none; margin: 0; padding: 0; }
.fr-dn .fr-dn-row li { margin: 0; line-height: 1.4; }
.fr-dn .fr-dn-row li a { display: inline-block; padding: 10px 0; overflow-wrap: anywhere; max-width: 100%; }
.fr-dn .fr-dn-row li span { font-size: 14px; color: var(--wn-muted); }
.fr-dn .fr-dn-note { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--wn-muted); }

/* The verse itself under its reference (the Scripture page's own text and default translation). */
.fr-dn .tsc-text { margin: 4px 0 10px; padding: 2px 0 2px 12px; border-left: 3px solid var(--wn-rule); font-size: 16.5px; line-height: 1.6; font-style: normal; color: var(--wn-ink); }
.fr-dn .tsc-text[hidden] { display: none; }
.fr-dn .tsc-text sup { margin-right: 2px; font-size: 0.7em; color: var(--wn-muted); }
.fr-dn .tsc-tr { margin-left: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wn-muted); white-space: nowrap; }
.fr-dn .tsc-places { font-size: 14px; color: var(--wn-muted); }
.fr-dn .tsc-places a { display: inline-block; min-width: 24px; padding: 10px 4px; text-align: center; }
