/* Library entries (template-parts/resource.php). The guide design ships in the editorial/guide bundle
   (dt-resources.css); this file covers what only the native page has: editor prose inside the guide
   column, the FAQ block and the progress line. Loaded after wordpress.css; two-class selectors win. */

/* Editor content (core blocks) reads like the guide sections. */
.dt .rs-prose { font-family: var(--mono); color: var(--cream-text); }
.dt .rs-prose > p, .dt .rs-prose > .wp-block-paragraph { margin: 20px 0 0; font-size: 16px; line-height: 29px; }
.dt .rs-prose > :first-child { margin-top: 0; }
.dt .rs-prose h2 { margin: 56px 0 0; font-family: var(--display); font-weight: var(--dw); text-transform: uppercase; font-size: 34px; line-height: 1.02; letter-spacing: 0; color: var(--cream-ink); scroll-margin-top: 110px; }
.dt .rs-prose h3 { margin: 36px 0 0; font-family: var(--display); font-weight: var(--dw); text-transform: uppercase; font-size: 26px; line-height: 1.08; letter-spacing: 0; color: var(--cream-ink); }
.dt .rs-prose h4 { margin: 28px 0 0; font-family: var(--mono); font-size: 16px; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; color: var(--cream-ink); }
.dt .rs-prose :is(h2, h3, h4) + p { margin-top: 18px; }
.dt .rs-prose a:not(.dt-btn-solid) { color: var(--cream-ink); text-decoration: none; border-bottom: 1px solid rgba(221, 67, 67, .7); transition: color .2s ease, border-color .2s ease; }
.dt .rs-prose a:not(.dt-btn-solid):hover { color: var(--red); border-color: var(--red); }
.dt .rs-prose strong { color: var(--cream-ink); }
.dt .rs-prose :is(ul, ol) { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.dt .rs-prose li { position: relative; padding-left: 30px; font-size: 16px; line-height: 27px; }
.dt .rs-prose ul > li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 9px; height: 6px; background: var(--red); }
.dt .rs-prose ol { counter-reset: step; }
.dt .rs-prose ol > li { counter-increment: step; padding-left: 40px; }
.dt .rs-prose ol > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-size: 14px; letter-spacing: .12em; color: var(--red); }
.dt .rs-prose li :is(ul, ol) { margin-top: 10px; }
.dt .rs-prose blockquote { margin: 26px 0 0; padding: 22px 26px 24px; border: 1px solid var(--rule-soft); border-left: 4px solid var(--red); border-radius: 12px; background: var(--paper); font-size: 16px; line-height: 27px; color: var(--cream-ink); }
.dt .rs-prose blockquote p { margin: 0; }
.dt .rs-prose blockquote p + p { margin-top: 12px; }
.dt .rs-prose :is(figure, .wp-block-image) { margin: 28px 0 0; }
.dt .rs-prose img { border-radius: 12px; }
.dt .rs-prose figcaption { margin-top: 10px; font-size: 14px; line-height: 22px; color: var(--muted); }
.dt .rs-prose :is(table, .wp-block-table) { margin: 26px 0 0; }
.dt .rs-prose .wp-block-table { overflow-x: auto; border: 1px solid var(--rule-soft); border-radius: 12px; background: var(--paper); }
.dt .rs-prose .wp-block-table table { margin: 0; border: 0; }
.dt .rs-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 24px; }
.dt .rs-prose th { padding: 14px 18px; border: 0; border-bottom: 1px solid var(--rule); background: var(--cream-ink); color: #fff; font-weight: 400; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; text-align: left; }
.dt .rs-prose td { padding: 14px 18px; border: 0; border-top: 1px solid var(--rule-soft); vertical-align: top; }
.dt .rs-prose tr:first-child td { border-top: 0; }
.dt .rs-prose hr { margin: 40px 0 0; border: 0; border-top: 1px solid var(--rule); }
.dt .rs-prose .dt-btn-solid { margin-top: 24px; }

/* Questions readers ask: the entry's own FAQ, between the services and the sources. */
.dt .rs-faq details { border-bottom: 1px solid var(--rule); }
.dt .rs-faq details:first-of-type { margin-top: 18px; border-top: 1px solid var(--rule); }
.dt .rs-faq summary { position: relative; padding: 18px 44px 18px 0; list-style: none; cursor: pointer; font-family: var(--mono); font-size: 16px; line-height: 26px; color: var(--cream-ink); transition: color .2s ease; }
.dt .rs-faq summary::-webkit-details-marker { display: none; }
.dt .rs-faq summary::after { content: "+"; position: absolute; right: 2px; top: 16px; font-size: 24px; line-height: 1; color: var(--red); transition: transform .3s var(--eo); }
.dt .rs-faq details[open] summary::after { transform: rotate(45deg); }
.dt .rs-faq summary:hover { color: var(--red); }
.dt .rs-faq .a { padding: 0 0 22px; max-width: 66ch; font-family: var(--mono); font-size: 16px; line-height: 27px; color: var(--cream-text); }
.dt .rs-faq .a p { margin: 0; }
.dt .rs-faq .a p + p { margin-top: 12px; }
.dt .rs-faq .a a { color: var(--cream-ink); border-bottom: 1px solid rgba(221, 67, 67, .7); }

/* Reading progress and the TOC's current heading come from assets/js/resource.js. */
.dt .rs-progress { transition: transform .1s linear; }
.dt .rs-toc a[aria-current="true"] { color: var(--red); }
