/* Resources (inc/resources.php): how-to pages written in the WordPress editor. A reading layout at docs sizes:
   no eyebrows, no captions, no cards. A step is a paragraph with the editor's "Step" style; the number is a
   counter that restarts at every h2, so staff never type one. The h2 uses counter-set, not counter-reset: a reset
   there starts a nested counter that the paragraphs after it do not use. */
.rs { --rs-ink: #ededf0; --rs-text: #c3c7ce; --rs-muted: #8d939b; --rs-line: #ffffff1f; --rs-link: #9fc2ff; padding: clamp(28px, 4vw, 52px) 0 96px; color: var(--rs-text); font-size: 16.5px; line-height: 1.65; }
.rs-layout { display: grid; grid-template-columns: minmax(0, 760px) 200px; gap: 72px; justify-content: center; width: min(1160px, 100% - 48px); margin: 0 auto; }
.rs a { color: var(--rs-link); text-decoration: none; }
.rs a:hover { text-decoration: underline; }
.rs b, .rs strong { color: var(--rs-ink); font-weight: 550; }

.rs-crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--rs-muted); font-size: 14px; }
.rs .rs-crumbs a { color: var(--rs-muted); }
body.is-studio .rs .rs-body h2 a { color: inherit; text-decoration: none; }
body.is-studio .rs .rs-body h2 a:hover { text-decoration: underline; }
.rs .rs-updated a { color: var(--rs-muted); }
body.is-studio .rs .rs-article h1 { margin: 18px 0 0; color: #fff; font-size: 40px; font-weight: 550; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.rs .rs-summary { margin: 12px 0 0; color: var(--rs-muted); font-size: 20px; line-height: 1.45; }
.rs-avail { margin: 22px 0 0; padding: 14px 18px; border: 1px solid var(--rs-line); border-radius: 10px; font-size: 15.5px; }
.rs .rs-avail p { margin: 0; }
.rs .rs-avail p + p { margin-top: 4px; color: var(--rs-muted); }

.rs-body { counter-reset: step; }
body.is-studio .rs .rs-body h2 { margin: 56px 0 0; color: #fff; font-size: 26px; font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; counter-set: step 0; scroll-margin-top: 110px; }
body.is-studio .rs .rs-body h3 { margin: 32px 0 0; color: #fff; font-size: 19px; font-weight: 500; }
.rs-body p { margin: 16px 0 0; }
.rs-body ul, .rs-body ol { margin: 16px 0 0; padding-left: 24px; }
.rs-body li { margin-top: 10px; padding-left: 4px; }
.rs-body p.is-style-step { position: relative; margin-top: 22px; padding-left: 44px; counter-increment: step; }
.rs-body p.is-style-step::before { content: counter(step); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #ffffff38; border-radius: 50%; color: var(--rs-ink); font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.rs-body p.is-style-note { margin-top: 16px; padding: 2px 0 2px 16px; border-left: 2px solid #ffffff3d; }
.rs-body p.is-style-formula { padding: 14px 18px; border: 1px solid var(--rs-line); border-radius: 10px; color: var(--rs-ink); font-variant-numeric: tabular-nums; }
.rs-body code { padding: 1px 6px; border: 1px solid var(--rs-line); border-radius: 6px; color: var(--rs-ink); font: 500 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; }
.rs-body figure { margin: 18px 0 6px; }
.rs-body p.is-style-step + figure { margin-left: 44px; }
.rs-body figure.wp-block-image img { display: block; max-width: 100%; height: auto; border: 1px solid var(--rs-line); border-radius: 10px; background: #0d0e10; }
.rs-body figure.wp-block-table { overflow-x: auto; border: 1px solid var(--rs-line); border-radius: 10px; }
.rs-body table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.rs-body th, .rs-body td { padding: 12px 16px; border: 0; border-top: 1px solid var(--rs-line); text-align: left; vertical-align: top; }
.rs-body .wp-block-table thead { border-bottom: 0; }
.rs-body thead th { border-top: 0; color: var(--rs-muted); font-size: 13.5px; font-weight: 500; }
.rs-body td:first-child { white-space: nowrap; }
.rs-calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 18px; margin: 22px 0 0; padding: 20px; border: 1px solid var(--rs-line); border-radius: 10px; }
.rs .rs-calc-title { grid-column: 1 / -1; margin: 0; color: var(--rs-ink); font-weight: 500; }
.rs-calc label { display: grid; gap: 6px; font-size: 14.5px; }
.rs-calc input { width: 100%; padding: 9px 12px; border: 1px solid #ffffff38; border-radius: 8px; background: #0d0e10; color: var(--rs-ink); font: inherit; font-variant-numeric: tabular-nums; }
.rs-calc input:focus-visible { outline: 2px solid var(--rs-link); outline-offset: 1px; }
.rs .rs-calc-result { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0; padding-top: 14px; border-top: 1px solid var(--rs-line); }
.rs .rs-calc-result + .rs-calc-result { padding-top: 0; border-top: 0; }
.rs-calc output { color: #fff; font-size: 20px; font-weight: 550; font-variant-numeric: tabular-nums; }
.rs-index { padding-left: 0 !important; list-style: none; }
.rs-index li { display: grid; gap: 2px; margin-top: 0; padding: 14px 0; border-top: 1px solid var(--rs-line); }
.rs-index li:last-child { border-bottom: 1px solid var(--rs-line); }
.rs-index span { color: var(--rs-muted); font-size: 15px; }
.rs .rs-updated { margin: 64px 0 0; padding-top: 20px; border-top: 1px solid var(--rs-line); color: var(--rs-muted); font-size: 14px; }

.rs-toc { position: sticky; top: 110px; align-self: start; font-size: 14px; }
.rs .rs-toc p { margin: 0 0 10px; color: var(--rs-ink); font-weight: 500; }
.rs .rs-toc a { display: block; padding: 5px 0; color: var(--rs-muted); line-height: 1.4; }
.rs .rs-toc a:hover { color: #fff; text-decoration: none; }

@media (max-width: 1000px) {
  .rs-layout { grid-template-columns: minmax(0, 760px); }
  .rs-toc { display: none; }
}
@media (max-width: 720px) {
  .rs-layout { width: calc(100% - 32px); }
  body.is-studio .rs .rs-article h1 { font-size: 32px; }
  .rs .rs-summary { font-size: 18px; }
  body.is-studio .rs .rs-body h2 { margin-top: 44px; font-size: 23px; }
  .rs-body p.is-style-step { padding-left: 38px; }
  .rs-body p.is-style-step + figure { margin-left: 0; }
}
