/* Resources section (scripts/resources.mjs). Index pages are for finding things: an espresso masthead, search and
   folder tabs, contents and a grouped catalog. Article pages are for reading, with a comfortable measure. Same tokens as styles.css; straight 2px edges throughout. */
.res { padding-block: 2.5rem 5rem; }
@media (min-width: 52rem) { .res { padding-block: 3.5rem 7rem; } }
.res-draft { margin: 0; padding: 0.5rem 1.25rem; font-size: 0.875rem; text-align: center; color: var(--espresso); background: var(--meadow); }

.res-icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Shared pieces ---------- */
.res-crumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: 0.875rem; color: var(--ink-soft); }
.res-crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--sage); }
.res-crumbs a { text-decoration-color: rgb(37 28 32 / 0.3); }
.res-crumbs a:hover { color: var(--forest); text-decoration-color: currentColor; }

.res-lede { max-width: 40rem; margin-top: 0.875rem; font-size: 1.125rem; line-height: 1.55; color: var(--ink-soft); }

.res-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-soft); }
/* Separators sit after each part (inline-block so a link's underline doesn't run under them). */
.res-meta > :not(:last-child)::after { content: "·"; display: inline-block; margin-inline: 0.5rem; color: var(--sage); text-decoration: none; }
.res-meta a { text-decoration-color: rgb(74 79 71 / 0.35); }
.res-meta a:hover { color: var(--forest); text-decoration-color: currentColor; }
.res-type { font-weight: 700; color: var(--forest); }

/* ---------- Index pages (hub, category, feature): for finding things ---------- */
.res.res-index { padding-block: 0; }
.res-index [hidden] { display: none !important; }

/* Masthead: the header, title and lede on one espresso band */
/* Dark masthead: the area a browser shows when scrolled past the top (or bottom, by the footer) matches it instead of flashing linen. */
html:has(.res-mast) { background: var(--espresso); }
.res-mast .header-inner { border-bottom: 1px solid rgb(243 237 228 / 0.14); }
.res-mast .nav-list a[aria-current="page"] { border-bottom-color: var(--accent); }
.res-head { display: grid; gap: 0.75rem; padding-block: 2.75rem 3rem; }
.res-head .res-crumbs { grid-column: 1 / -1; }
.res-head .res-crumbs ol { margin: 0; color: var(--on-forest-soft); }
.res-head .res-crumbs a { text-decoration-color: rgb(243 237 228 / 0.35); }
.res-head .res-crumbs a:hover { color: var(--on-forest); text-decoration-color: currentColor; }
@media (min-width: 60rem) {
  .res-head { grid-template-columns: minmax(0, 1fr) 26rem; column-gap: 3.5rem; align-items: end; }
  .res-head > p { padding-bottom: 0.45rem; }
}
.res-head h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; }
.res-head > p { max-width: 34rem; font-size: 1.125rem; color: var(--on-forest-soft); }
.res-head > p em { font-family: var(--font-heading); font-style: italic; font-size: 1.08em; color: var(--accent); }

/* Tools: search, type tabs and active filters together. Sticky on wide screens. */
.res-main { padding-bottom: 4.5rem; }
.res-tools { position: sticky; top: var(--header-offset, 0px); z-index: 3; transition: top 250ms var(--ease-out); background: var(--linen); border-bottom: 1px solid var(--espresso); }
.res-bar { display: grid; gap: 0.6rem; padding-top: 1.25rem; background: var(--linen); }
.res-searchrow { display: flex; align-items: center; gap: 1.5rem; }
.res-search { position: relative; flex: 1 1 auto; }
.res-search .res-icon { position: absolute; left: 0; top: 50%; width: 1.125rem; height: 1.125rem; transform: translateY(-50%); color: var(--espresso); }
.res-search input {
  width: 100%; min-height: 2.75rem; padding: 0.5rem 2rem 0.5rem 1.85rem;
  background: transparent; border: 0;
  font: inherit; font-family: var(--font-heading); font-size: 1.375rem; color: var(--espresso); caret-color: var(--forest);
}
.res-search input::placeholder { color: var(--ink-soft); opacity: 1; }
.res-search input::-webkit-search-cancel-button { display: none; }
.res-search input:focus { outline: none; }
.res-search:focus-within { box-shadow: 0 2px 0 var(--forest); }
.res-count { flex: none; font-size: 0.9375rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.res-count b { font-weight: 600; color: var(--espresso); }

.res-active { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.res-active:empty { display: none; }
.res-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 2rem; padding: 0.2rem 0.5rem 0.2rem 0.7rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--espresso); cursor: pointer;
}
.res-chip svg { width: 0.75rem; height: 0.75rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.res-chip:hover { border-color: var(--espresso); }
.res-clear { padding: 0.2rem 0; background: none; border: 0; font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--forest); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; cursor: pointer; }
@media (min-width: 60rem) { .res-bar > .res-active { display: none; } }

/* Type filters as folder tabs: angled shoulders standing on a shared rule; the selected tab is solid forest */
.res-tabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.3rem; padding: 0.9rem 0 0; }
.res-tab {
  position: relative; z-index: 0; display: inline-flex; align-items: baseline; gap: 0.45rem;
  min-height: 2.5rem; margin-bottom: -1px; padding: 0.55rem 1.15rem 0.5rem;
  background: transparent; border: 0; border-radius: 0;
  font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--espresso); cursor: pointer;
  transition: color 150ms, opacity 150ms;
}
.res-tab::before {
  content: ""; position: absolute; inset: 0 0 1px; z-index: -1;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 3px 3px 0 0;
  transform: perspective(2.5rem) rotateX(3deg); transform-origin: bottom;
  transition: background-color 150ms, border-color 150ms;
}
.res-tab:hover::before { border-color: var(--espresso); }
.res-tab[aria-pressed="true"] { color: var(--on-forest); }
.res-tab[aria-pressed="true"]::before { inset: 0; background: var(--forest); border-color: var(--forest); }
.res-tab[aria-disabled="true"] { opacity: 0.42; cursor: not-allowed; }
.res-tab[aria-disabled="true"]:hover::before { border-color: var(--line); }
:is(.res-tab, .res-toccat, .res-tocfeat, .res-cathead) .n { font-weight: 400; font-size: 0.875rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.res-tab[aria-pressed="true"] .n { color: var(--on-forest-soft); }

/* Contents: links that jump to each category and feature, with the section in view in forest */
.res-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 2rem; }
@media (min-width: 60rem) {
  .res-grid { grid-template-columns: 15rem minmax(0, 1fr); gap: 3.5rem; }
  .res-toc { position: sticky; top: calc(var(--header-offset, 0px) + var(--sticky-h, 9rem) + 1.5rem); transition: top 250ms var(--ease-out); align-self: start; }
}
.res-jump { display: none; }
.res-toc ol { margin: 0; padding: 0; list-style: none; }
.res-toc > ol > li { border-bottom: 1px solid var(--line); padding-block: 0.4rem; }
.res-toccat, .res-tocfeat {
  display: flex; align-items: baseline; gap: 0.5rem;
  border-radius: var(--radius); color: var(--espresso); text-decoration: none;
  transition: background-color 150ms, color 150ms, opacity 150ms;
}
.res-toccat { width: calc(100% + 1.5rem); margin-inline: -0.75rem; padding: 0.6rem 0.75rem; }
.res-toccat .name { flex: 1; font-family: var(--font-heading); font-size: 1.375rem; line-height: 1.3; letter-spacing: -0.01em; }
.res-toc .res-tocfeats { display: grid; gap: 0.15rem; padding: 0.2rem 0 0.4rem 0.75rem; }
.res-tocfeat { width: calc(100% + 0.75rem); margin-right: -0.75rem; padding: 0.35rem 0.75rem; font-size: 0.9375rem; }
.res-tocfeat::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted var(--sage); transform: translateY(-0.25em); }
.res-tocfeat .n { order: 2; }
a[href]:is(.res-toccat, .res-tocfeat):hover { color: var(--forest); }
[aria-current="location"]:is(.res-toccat, .res-tocfeat) { background: var(--forest); color: var(--on-forest); }
[aria-current="location"]:is(.res-toccat, .res-tocfeat) .n { color: var(--on-forest-soft); }
:is(.res-toccat, .res-tocfeat):not([href]) { opacity: 0.42; }

/* Start here: three picks, set larger, divided by hairlines */
.res-picks { padding: 1.25rem 0 2.25rem; border-bottom: 1px solid var(--espresso); }
.res-picks > h2 { font-size: 1.5rem; line-height: 1.3; letter-spacing: -0.01em; }
.res-picks ol { display: grid; grid-template-columns: minmax(0, 1fr); margin: 1rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.res-pick { position: relative; display: grid; align-content: start; gap: 0.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.res-pick h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.res-pick > p:not(.res-rowmeta) { font-size: 0.9375rem; line-height: 1.55; color: var(--espresso); }
@media (min-width: 48rem) {
  .res-picks ol { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .res-pick { padding: 1.25rem 1.5rem 1.5rem; border-bottom: 0; }
  .res-pick + .res-pick { border-left: 1px solid var(--line); }
  .res-pick:first-child { padding-left: 0; }
  .res-pick:last-child { padding-right: 0; }
}

/* Catalog: categories, italic feature subheads, then quiet rows that lead with Katrina's note */
.res-section, .res-feathead { scroll-margin-top: calc(var(--header-offset, 0px) + var(--sticky-h, 9rem) + 1rem); }
.res-cathead { display: flex; align-items: baseline; gap: 0.75rem; padding: 2.5rem 0 0.75rem; border-bottom: 1px solid var(--espresso); }
/* The first category on show sits closer to the top */
#res-list > .res-section:not(.res-section:not([hidden]) ~ .res-section) .res-cathead { padding-top: 1.25rem; }
.res-cathead h2 { font-size: 1.5rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--espresso); }
.res-cathead .n { margin-left: auto; }
.res-feathead { display: flex; align-items: center; gap: 0.75rem; padding: 1.75rem 0 0.25rem; font-family: var(--font-heading); font-size: 1.0625rem; font-style: italic; font-weight: 500; line-height: 1.3; color: var(--forest); }
.res-feathead::after { content: ""; flex: 1; border-bottom: 1px solid var(--meadow-line); }
.res-row { position: relative; display: grid; gap: 0.4rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); transition: background-color 150ms; }
.res-feathead + .res-row { padding-top: 0.75rem; }
.res-row { isolation: isolate; }
/* Hover (or keyboard focus): a rounded sand tint, a step darker than the page, that reaches a little past the text on both sides. */
.res-row::before { content: ""; position: absolute; inset: 0 -1rem; z-index: -1; border-radius: 6px; transition: background-color 150ms; }
.res-row:is(:hover, :focus-within)::before { background: #ebe2d4; }
.res-row h3 { font-size: 1.3125rem; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
:is(.res-row, .res-pick) h3 a { text-decoration: none; }
:is(.res-row, .res-pick) h3 a::after { content: ""; position: absolute; inset: 0; }
:is(.res-row, .res-pick) h3 a:hover { color: var(--forest); }
:is(.res-row, .res-pick) h3 .res-icon { display: inline-block; width: 0.8em; height: 0.8em; margin-left: 0.3em; vertical-align: 0.02em; stroke-width: 1.75; }
.res-row > p:not(.res-rowmeta) { max-width: 62ch; font-size: 1rem; line-height: 1.6; color: var(--espresso); }
.res-rowmeta { display: flex; flex-wrap: wrap; gap: 0.15rem 1.1em; overflow: hidden; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.res-rowmeta > * { position: relative; }
/* Separators hang in the gap, so a wrapped line never starts with a dot (overflow clips the hanging one) */
.res-rowmeta > * + *::before { content: "·"; position: absolute; left: -0.75em; color: var(--sage); font-weight: 400; }
.res-rowmeta .res-type { font-weight: 600; color: var(--espresso); }
.res-rowmeta .res-by { font-weight: 600; color: var(--cinnamon-ink); }
.res-rowmeta .res-icon { width: 0.75rem; height: 0.75rem; margin-left: 0.2em; vertical-align: -0.05em; stroke-width: 1.75; }
:is(.res-row, .res-pick):has(h3 a:focus-visible) { outline: 2px solid var(--forest); outline-offset: 4px; }
:is(.res-row, .res-pick) h3 a:focus-visible { outline: none; }
:is(.res-tab, .res-toccat, .res-tocfeat, .res-chip, .res-clear, .res-reset):focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

.res-empty { display: grid; justify-items: start; gap: 1rem; padding: 2.5rem 0 3rem; border-bottom: 1px solid var(--line); }
.res-empty p { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.3; }
.res-empty .res-active { gap: 0.5rem; }
.res-empty > .res-reset { min-height: 2.5rem; padding: 0.5rem 1rem; background: var(--espresso); color: var(--on-forest); border: 0; border-radius: var(--radius); font: inherit; font-weight: 600; cursor: pointer; }
.res-empty > .res-reset:hover { background: var(--forest); }
.res-none { padding-block: 2.5rem; color: var(--ink-soft); }

/* Closing line before the footer */
.res-ask { padding-block: 3rem 4.5rem; border-top: 1px solid var(--line); }
.res-ask p { font-family: var(--font-heading); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.res-ask a { color: var(--forest); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; text-decoration-color: var(--meadow-line); }
.res-ask a:hover { text-decoration-color: var(--forest); }
.res-ask > p { text-align: center; } /* the line and its form sit centered under the list */

.res-index ::selection { background: var(--meadow); color: var(--espresso); }

/* Phone and tablet: only the search bar stays pinned, and contents becomes a "Jump to" line */
@media (max-width: 59.99rem) {
  .res-tools { display: contents; }
  .res-bar { position: sticky; top: var(--header-offset, 0px); z-index: 3; transition: top 250ms var(--ease-out); margin-inline: -1.25rem; padding: 0.75rem 1.25rem 0.6rem; border-bottom: 1px solid var(--espresso); }
  .res-tabs { padding-top: 1rem; }
  .res-grid { padding-top: 1rem; gap: 1rem; }
  .res-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem; }
  .res-jump { display: block; margin-right: 0.25rem; font-size: 0.875rem; color: var(--ink-soft); }
  .res-toc > ol { display: contents; }
  .res-toc > ol > li { border-bottom: 0; padding: 0; }
  .res-toccat { width: auto; margin: 0; min-height: 2.75rem; padding: 0.35rem 0.5rem; align-items: center; }
  .res-toccat .name { flex: none; font-size: 1.0625rem; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
  .res-toccat:not([href]) .name { text-decoration: none; }
  .res-toc .res-tocfeats { display: none; }
}
@media (min-width: 40rem) and (max-width: 59.99rem) {
  .res-bar { margin-inline: -2rem; padding-inline: 2rem; }
}
@media (max-width: 47.99rem) {
  .res-head { padding-block: 2rem 2.25rem; }
  .res-head > p { line-height: 1.5; }
  .res-search input { font-size: 1.0625rem; padding-right: 0; }
  .res-searchrow { gap: 1rem; }
  .res-searchrow .res-clear { display: none; }
  .res-count { font-size: 0.875rem; }
  /* Tabs stay on one row and one rule, sliding sideways when they run past the edge */
  .res-tabs { flex-wrap: nowrap; gap: 0.2rem; overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 -1px var(--line); }
  .res-tabs::-webkit-scrollbar { display: none; }
  .res-tab { flex: none; gap: 0.3rem; height: 2.5rem; min-height: 0; margin-bottom: 0; padding: 0.35rem 0.4rem; align-items: center; font-size: 0.8125rem; }
  .res-tab .n { font-size: 0.8125rem; }
  /* The selected tab already shows the type, so the filter row only appears for a search */
  .res-bar > .res-active .res-chip[data-remove="type"] { display: none; }
  .res-bar > .res-active:not(:has([data-remove="q"])) { display: none; }
  /* "Jump to" stays on one line */
  .res-toc { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .res-toc::-webkit-scrollbar { display: none; }
  .res-jump { flex: none; margin-right: 0; }
  .res-toccat { gap: 0.3rem; padding-inline: 0.45rem; }
  .res-toccat .name { font-size: 1rem; }
  .res-row h3 { font-size: 1.1875rem; }
  .res-row > p:not(.res-rowmeta) { font-size: 0.9375rem; }
  .res-pick h3 { font-size: 1.25rem; }
  .res-row::before { inset: 0 -0.75rem; }
  .res-ask { padding-block: 2.5rem 3.5rem; }
}
/* Questions form: folds open under the closing line */
.ask-form { max-width: 40rem; margin: 1.75rem auto 0; border: 1px solid var(--line); }
.ask-form .button { justify-self: start; }
#ask-open[aria-expanded="true"] { text-decoration-color: var(--forest); }

@media (prefers-reduced-motion: reduce) { .res-index * { transition: none !important; } }

/* "More in…" lists on article pages: rows divided by hairlines, not boxes. */
.res-list { margin: 0; padding: 0; list-style: none; }
.res-card { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.res-title { font-size: 1.3125rem; line-height: 1.3; text-wrap: balance; }
.res-title a { text-decoration: none; }
.res-title a:hover { color: var(--forest); text-decoration: underline; text-decoration-thickness: 1px; }
.res-title .res-icon { display: inline-block; width: 0.8em; height: 0.8em; margin-left: 0.3em; vertical-align: -0.02em; color: var(--forest); }
.res-summary { max-width: 65ch; margin-top: 0.375rem; color: var(--ink-soft); }
.res-card .res-meta { margin-top: 0.625rem; }

/* ---------- Article pages ---------- */
.res-article { max-width: 48rem; }
.res-article-head { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.res-article-head h1 { font-size: clamp(2.25rem, 1.75rem + 2vw, 3.25rem); text-wrap: balance; }
.res-article-head .res-meta { margin-top: 1.25rem; }

.res-body { max-width: 68ch; font-size: 1.0625rem; line-height: 1.7; }
.res-body > * + * { margin-top: 1.125rem; }
.res-body h2 { margin-top: 2.75rem; font-size: 1.75rem; line-height: 1.2; }
.res-body h3 { margin-top: 2rem; font-size: 1.375rem; line-height: 1.3; }
.res-body h4, .res-body h5 { margin-top: 1.75rem; font-family: var(--font-body); font-size: 1rem; font-weight: 700; }
.res-body :is(h2, h3, h4, h5) + * { margin-top: 0.625rem; }
.res-body a { text-decoration-color: rgb(47 74 58 / 0.45); }
.res-body a:hover { color: var(--forest); text-decoration-color: currentColor; }
.res-body ul, .res-body ol { padding-left: 1.4rem; }
.res-body ul { list-style: disc; }
.res-body ol { list-style: decimal; }
.res-body li::marker { color: var(--forest); }
.res-body li + li { margin-top: 0.375rem; }
.res-body li > :is(ul, ol) { margin-top: 0.375rem; }
.res-body img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
/* [IMAGE: ...] figures: the picture, then a smaller caption (a sentence or a numbered key). */
.res-figure { margin: 1.75rem 0; }
.res-figure img { display: block; background: var(--paper); }
.res-figure figcaption { margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-soft); }
.res-figure figcaption ol { margin: 0; }
.res-figure figcaption li + li { margin-top: 0.2rem; }
/* {icon:...} marks: inline at text size. */
.res-body .ico { display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; }
.res-body blockquote { padding-left: 1.25rem; font-family: var(--font-heading); font-style: italic; font-size: 1.1875rem; border-left: 1px solid var(--sage); }
.res-body pre, .res-body code { font-family: "Source Code Pro", ui-monospace, "Cascadia Code", Consolas, monospace; }
.res-body pre { overflow-x: auto; padding: 1rem 1.25rem; font-size: 0.875rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
/* Copy button (resources.js wraps each code block so the button stays put while the code scrolls). */
.res-code { position: relative; }
.res-code pre { padding-right: 5.5rem; }
.res-copy {
  position: absolute; top: 0.5rem; right: 0.5rem; min-height: 2.25rem; padding: 0.3rem 0.75rem;
  font: inherit; font-size: 0.8125rem; font-weight: 600; color: var(--forest);
  background: var(--linen); border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
}
.res-copy:hover { border-color: var(--forest); }
.res-copy:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.res-copy[data-done] { color: var(--on-forest); background: var(--forest); border-color: var(--forest); }
@media (max-width: 47.99rem) {
  .res-code pre { padding-right: 1.25rem; padding-top: 3rem; }
}
.res-body code { font-size: 0.875em; }
.res-body :not(pre) > code { padding: 0.1em 0.35em; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.callout { padding: 1rem 1.25rem; background: var(--meadow); border: 1px solid var(--meadow-line); border-radius: var(--radius); }
.callout strong { color: var(--forest); }
.callout-warning { background: #f6e7e1; border-color: #e6c6ba; }
.callout-warning strong { color: var(--error); }

.res-downloads { max-width: 40rem; margin-top: 3rem; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.res-downloads h2 { font-size: 1.25rem; }
.res-downloads ul { margin: 0.875rem 0 0; padding: 0; list-style: none; }
.res-downloads li + li { margin-top: 0.5rem; }
.res-downloads a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--forest); text-decoration-color: rgb(47 74 58 / 0.45); }
.res-downloads a:hover { text-decoration-color: currentColor; }

.res-related { margin-top: 4.5rem; }
.res-related h2 { padding-bottom: 0.75rem; font-size: 1.75rem; border-bottom: 1px solid var(--line); }
.res-related > p { margin-top: 1.5rem; }
.res-related .text-link { font-weight: 600; color: var(--forest); text-decoration: underline; text-decoration-color: rgb(47 74 58 / 0.45); }
.res-related .text-link:hover { text-decoration-color: currentColor; }
