/* Resources (Oct 21, 2026): Origin's Resources hub (useorigin.com/resources),
 * measured live at 1440, 1024 and 390 and rebuilt in Lessen's brand. Loads
 * after chrome.css and os.css. Every class starts with rs- and every rule
 * is scoped to body.rs-page, so nothing here can change another page.
 *
 * Origin, measured (1440): title h1 at y205 (96/96), chips at y335 (36 tall,
 * 24 apart), the list from y371. Each group: padding 100 / 0, a 1px 14%
 * hairline under it (not under the last), a 16/24 label 60% white, 24 below
 * it a 48/48 heading, 100 below that the cards. The featured card is
 * 1376 x 611 (9:4), radius 16, padding 48 / 96, two 580 columns 24 apart, a
 * 155deg gradient and a white inset glow, a 580 x 359 white paper on the
 * right; 50 below it the cards. Cards 448 x 464 (680 wide in twos), radius 30,
 * padding 48, a 135deg 12% -> 1% white glass; a 12px tracked label at the
 * top, the title 24/36 light in the middle, the date at the bottom. SEE MORE
 * (36 tall) 48 below the cards. The type menu: white, 200 wide, radius 8,
 * 10 under its chip, options 26 tall, fading in over .3s while the + turns
 * into an x. The search widens 90 -> 250 over .3s. Tablet (768-991): two
 * columns, cards 400 tall, radius 24, padding 40, an odd last card across
 * the row. Phones: one column, cards 320 tall, radius 24, padding 30; below
 * 480 the chips stack full width.
 */

/* ---------------------------------------------------------------- 1. title, filters, search */
.rs-page .rs-top { position: relative; z-index: 6; padding: 205px 32px 0; text-align: center; }
.rs-page .rs-h1 { max-width: none; line-height: 96px; }
.rs-page .rs-filters { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; margin-top: 34px; }
.rs-page .rs-filter { position: relative; }
.rs-page .rs-filter[hidden] { display: none !important; }
.rs-page .rs-chip .pl { transition: transform .3s ease-in-out; }
.rs-page .rs-chip svg:not(.pl) { flex: none; width: 14px; height: 14px; fill: none; stroke: var(--os-glow); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.rs-page .rs-now { gap: 8px; }

/* the white menu under a chip (Origin's filter list) */
.rs-page .rs-menu { position: absolute; z-index: 30; left: 50%; top: calc(100% + 10px); width: 200px; padding: 5px 0; border-radius: 8px; text-align: left;
  background: #FFFFFF; box-shadow: 0 0 10px rgba(0, 0, 0, .2); transform: translateX(-50%);
  opacity: 0; visibility: hidden; transition: opacity .3s ease-in-out, visibility 0s linear .3s; }
.rs-page .rs-menu.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease-in-out, visibility 0s; }
.rs-page .rs-menu button { display: block; width: 100%; padding: 5px 10px; border: 0; border-radius: 0; background: none; cursor: pointer; text-align: left;
  font: 500 12px/16px var(--os-sans); letter-spacing: .03em; text-transform: uppercase; color: #3A3D3B; -webkit-tap-highlight-color: transparent; }
.rs-page .rs-menu button:hover, .rs-page .rs-menu button:focus-visible { background: rgba(0, 0, 0, .06); color: #000000; outline: none; }
.rs-page .rs-menu button[hidden] { display: none !important; }

/* ---------------------------------------------------------------- 2. the list and its groups */
.rs-page .rs-list { padding: 0 32px; }
.rs-page .rs-group { max-width: 1400px; margin: 0 auto; padding: 100px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); scroll-margin-top: 24px; }
.rs-page .rs-group.is-last { border-bottom-color: transparent; }
.rs-page .rs-head { max-width: 980px; margin: 0 auto 100px; text-align: center; }
.rs-page .rs-cap { font: 400 16px/24px var(--os-sans); color: var(--os-fg-2); }
.rs-page .rs-h2 { margin-top: 24px; font-size: 48px; line-height: 48px; letter-spacing: -.02em; }
.rs-page .rs-h2:focus { outline: none; }
.rs-page .rs-h2:focus-visible { outline: 2px solid var(--os-glow); outline-offset: 6px; }

/* ---------------------------------------------------------------- 3. the featured guide (Origin's featured article) */
.rs-page .rs-feat { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: center; aspect-ratio: 9 / 4;
  padding: 48px 96px; border-radius: 16px; overflow: hidden; text-decoration: none; color: #FFFFFF;
  background: linear-gradient(155deg, #164832 32%, #3F936E 80%); box-shadow: inset 0 6px 226px rgba(233, 243, 238, .75); -webkit-tap-highlight-color: transparent; }
.rs-page .rs-feat:focus-visible { border-radius: 16px; outline-offset: 4px; }
.rs-page .rs-feat-copy { display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; min-width: 0; text-align: left; }
.rs-page .rs-feat-cap { font: 400 16px/24px var(--os-sans); color: rgba(255, 255, 255, .6); }
.rs-page .rs-feat-t { font: 300 24px/36px var(--os-sans); letter-spacing: -.01em; color: #FFFFFF; text-wrap: pretty; }
.rs-page .rs-feat-meta { font: 500 16px/24px var(--os-sans); letter-spacing: .03em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }

/* the white paper: a Lessen chart drawn in HTML, sized in container units so
   it scales like Origin's picture does */
.rs-page .rs-paper { container-type: inline-size; position: relative; display: flex; flex-direction: column; aspect-ratio: 580 / 359; border-radius: 24px; overflow: hidden; background: #FFFFFF; color: #0C0E0D; }
.rs-page .rs-paper-t { flex: none; display: flex; align-items: center; justify-content: center; height: 13.45cqw; padding: 0 4cqw; font: 300 3.6cqw/1 var(--os-sans); letter-spacing: -.025em; white-space: nowrap; }
.rs-page .rs-paper-t i { margin: 0 .18em; font-family: var(--os-serif); font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: 0; }
.rs-page .rs-paper-panel { position: relative; flex: 1; margin: 0 .35cqw 3.45cqw; border-radius: 2.8cqw 2.8cqw 0 0; background: #F4F6F5; }
.rs-page .rs-paper-tag { position: absolute; top: 2.6cqw; right: 3.2cqw; display: inline-flex; align-items: center; gap: .9cqw; font: 400 max(1.55cqw, 7px)/1 var(--os-sans); color: #656A67; }
.rs-page .rs-paper-tag::before { content: ""; width: .9cqw; height: .9cqw; min-width: 4px; min-height: 4px; border-radius: 50%; background: #107550; }
.rs-page .rs-chart { position: absolute; inset: 6.4cqw 4cqw 7.6cqw 11cqw; }
.rs-page .rs-chart-y { position: absolute; left: -9.2cqw; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap; font: 400 max(1.45cqw, 6px)/1 var(--os-sans); color: #8A908C; }
.rs-page .rs-chart-plot { position: absolute; inset: 0; }
.rs-page .rs-chart-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.rs-page .rs-chart-grid > span { position: relative; height: 0; border-top: 1px dashed #D9DDDA; }
.rs-page .rs-chart-grid > span:last-child { border-top-style: solid; border-top-color: #C9CECB; }
.rs-page .rs-chart-grid b { position: absolute; right: calc(100% + 1.5cqw); top: 0; transform: translateY(-50%); font: 500 max(1.3cqw, 5.5px)/1 var(--os-sans); color: #8A908C; }
.rs-page .rs-chart-cap { position: absolute; left: 0; right: 0; bottom: var(--v); z-index: 2; height: 0; border-top: 1.5px dashed #107550; }
.rs-page .rs-chart-cap em { position: absolute; right: 0; bottom: .7cqw; padding: .3cqw .8cqw; border-radius: .6cqw; font: 500 max(1.45cqw, 6px)/1 var(--os-sans); font-style: normal; color: #107550; background: #F4F6F5; }
.rs-page .rs-chart-bars { position: absolute; inset: 0 2.2cqw; display: flex; align-items: flex-end; gap: 3.9cqw; }
.rs-page .rs-chart-bars > span { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
.rs-page .rs-chart-bars i { display: block; width: 100%; height: var(--v); border-radius: .7cqw .7cqw 0 0; background: #DADEDB; }
.rs-page .rs-chart-bars span > span { position: absolute; left: 50%; top: calc(100% + 1.7cqw); transform: translateX(-50%); white-space: nowrap; font: 400 max(1.7cqw, 6px)/1 var(--os-sans); color: #656A67; }
.rs-page .rs-chart-bars .over:nth-child(1) i { background: #E2EEE7; }
.rs-page .rs-chart-bars .over:nth-child(2) i { background: #D5E8DD; }
.rs-page .rs-chart-bars .over:nth-child(3) i { background: #C7E2D3; }
.rs-page .rs-chart-bars .over:nth-child(4) i { background: #B9DBC8; }
.rs-page .rs-chart-bars .over:nth-child(5) i { background: #A9D3BC; }
.rs-page .rs-chart-bars .under i { background: #3F936E; }
.rs-page .rs-chart-bars .rise i { background: #DADEDB; }
.rs-page .rs-chart-bars .now i { background: #107550; }
.rs-page .rs-chart-bars .now > span { color: #0C0E0D; font-weight: 500; }

/* ---------------------------------------------------------------- 4. cards (Origin's resource cards) */
.rs-page .rs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rs-page .rs-feat + .rs-grid { margin-top: 50px; }
.rs-page .rs-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rs-page .rs-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 24px; min-width: 0; height: 464px; padding: 48px; border-radius: 30px; text-align: left; text-decoration: none; color: #FFFFFF;
  background: linear-gradient(135deg, rgba(250, 250, 250, .12), rgba(250, 250, 250, .01)); -webkit-tap-highlight-color: transparent; }
.rs-page .rs-card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(255, 255, 255, .035); opacity: 0; transition: opacity .3s var(--os-io); pointer-events: none; }
.rs-page a.rs-card:hover::after { opacity: 1; }
.rs-page .rs-card:focus-visible { border-radius: 30px; }
.rs-page .rs-card-cap, .rs-page .rs-card-meta { flex: none; font: 500 12px/15.6px var(--os-sans); letter-spacing: .03em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.rs-page .rs-card-t { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; text-align: center; font: 300 24px/36px var(--os-sans); letter-spacing: -.01em; color: #FFFFFF; text-wrap: balance; }
/* the art: one silk still per guide or tool, as light in the upper glass */
.rs-page .rs-card-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0; pointer-events: none;
  mix-blend-mode: screen; opacity: .55; -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 34%, transparent 70%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 34%, transparent 70%);
  transition: opacity .45s var(--os-io); }
.rs-page a.rs-card:hover .rs-card-art, .rs-page a.rs-card:focus-visible .rs-card-art { opacity: .8; }

/* help lines: the source label is the heading, the numbers sit where Origin's date does */
.rs-page .rs-card--help .rs-card-t { text-wrap: balance; }
.rs-page .rs-calls { flex: none; display: flex; flex-wrap: wrap; gap: 8px; }
.rs-page .rs-call { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 10px 12px; border-radius: 8px; text-decoration: none; white-space: nowrap;
  font: 500 12px/16px var(--os-sans); letter-spacing: .05em; text-transform: uppercase; color: #FFFFFF; background: rgba(255, 255, 255, .1); transition: background-color .2s; -webkit-tap-highlight-color: transparent; }
.rs-page .rs-call:hover { background: rgba(255, 255, 255, .18); }
.rs-page .rs-call svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.rs-page .rs-call svg.ext { width: 13px; height: 13px; margin-left: 1px; }

/* notes and the SEE MORE row */
.rs-page .rs-note { max-width: 560px; margin: 40px auto 0; text-align: center; font: 300 12px/16.92px var(--os-sans); color: var(--os-fg-2); }
.rs-page .rs-more { display: flex; justify-content: center; margin-top: 48px; }
.rs-page .rs-note + .rs-more { margin-top: 24px; }
.rs-page .rs-more[hidden] { display: none !important; }

/* nothing matches: Origin's 300px "No items found" box */
.rs-page .rs-empty { max-width: 1400px; min-height: 300px; margin: 100px auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.rs-page .rs-empty-t { font: 400 18px/27px var(--os-sans); color: #FFFFFF; }
.rs-page .rs-empty-p { max-width: 520px; font: 300 14px/21px var(--os-sans); color: var(--os-fg-2); }
.rs-page .rs-empty-p a, .rs-page .rs-empty-reset { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: #FFFFFF; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }

/* cards that appear (SEE MORE, a filter or a search) rise in; nothing moves on its own */
.rs-page .rs-enter { animation: rsEnter .7s var(--os-out) both; animation-delay: calc(var(--rs-i, 0) * 60ms); }
@keyframes rsEnter { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: none; } }


/* the filters hide things with [hidden]; these boxes set their own display */
.rs-page [data-rs-item][hidden], .rs-page .rs-group[hidden], .rs-page .rs-empty[hidden], .rs-page [data-rs-note][hidden] { display: none !important; }

/* ---------------------------------------------------------------- 5. tablet (Origin 768-991) */
@media (max-width: 991px) {
  .rs-page .rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-page .rs-grid > .rs-span { grid-column: 1 / -1; }
  .rs-page .rs-card { height: 400px; padding: 40px; border-radius: 24px; }
  .rs-page .rs-card:focus-visible { border-radius: 24px; }
  .rs-page .rs-card-t { font-size: 20px; line-height: 30px; }
  .rs-page .rs-feat { column-gap: 16px; aspect-ratio: 2.05; padding: 40px; }
  .rs-page .rs-feat-t { font-size: 20px; line-height: 30px; }
}

/* ---------------------------------------------------------------- 6. phones (Origin 767 and down) */
@media (max-width: 767px) {
  .rs-page .rs-top { padding: 175px 32px 0; }
  .rs-page .rs-h1 { font-size: 60px; line-height: 60px; }
  .rs-page .rs-list { padding: 70px 32px 0; }
  .rs-page .rs-group { padding: 70px 0; }
  .rs-page .rs-head { margin-bottom: 70px; }
  .rs-page .rs-h2 { margin-top: 18px; font-size: 40px; line-height: 40px; }
  .rs-page .rs-grid, .rs-page .rs-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .rs-page .rs-grid > .rs-span { grid-column: auto; }
  .rs-page .rs-card { height: 320px; padding: 30px; gap: 18px; }
  .rs-page .rs-feat { display: flex; flex-direction: column; align-items: stretch; aspect-ratio: auto; padding: 28px 10px 10px; gap: 30px; }
  .rs-page .rs-feat-copy { display: flex; flex-direction: column; justify-content: flex-start; gap: 30px; padding: 0 20px; }
  .rs-page .rs-feat-cap, .rs-page .rs-feat-meta { text-align: center; }
  .rs-page .rs-paper { aspect-ratio: 16 / 9; border-radius: 18px; }
  .rs-page .rs-paper-t { height: 12cqw; font-size: 3.7cqw; }
  .rs-page .rs-chart { inset: 5.2cqw 4cqw 7cqw 11cqw; }
  .rs-page .rs-feat + .rs-grid { margin-top: 16px; }
  .rs-page .rs-note { margin-top: 30px; }
  .rs-page .rs-more { margin-top: 38px; }
  .rs-page .rs-note + .rs-more { margin-top: 24px; }
  .rs-page .rs-call { height: 44px; padding: 14px 14px; }
  .rs-page .rs-empty { margin: 70px auto; }
}
@media (max-width: 479px) {
  .rs-page .rs-top { padding: 175px 16px 0; }
  .rs-page .rs-h1 { font-size: 40px; line-height: 40px; }
  .rs-page .rs-filters { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 26px; }
  .rs-page .rs-filter .rs-chip { width: 100%; justify-content: space-between; }
  .rs-page .rs-now { width: 100%; justify-content: flex-start; }
  .rs-page .rs-search, .rs-page .rs-search input, .rs-page .rs-search input:focus { width: 100%; }
  .rs-page .rs-menu { left: 0; right: 0; width: auto; transform: none; }
  .rs-page .rs-list { padding: 70px 16px 0; }
  .rs-page .rs-h2 { font-size: 36px; line-height: 36px; }
  .rs-page .rs-card-t { font-size: 18px; line-height: 27px; }
  .rs-page .rs-feat { padding: 28px 6px 6px; gap: 24px; }
  .rs-page .rs-feat-copy { gap: 24px; padding: 0 18px; }
  .rs-page .rs-feat-cap, .rs-page .rs-feat-meta { font-size: 14px; }
  .rs-page .rs-feat-t { font-size: 18px; line-height: 27px; }
  .rs-page .rs-paper { border-radius: 16px; }
}

/* ---------------------------------------------------------------- 7. motion off */
@media (prefers-reduced-motion: reduce) {
  .rs-page .rs-enter { animation: none; }
  .rs-page .rs-menu, .rs-page .rs-menu.is-open, .rs-page .rs-chip .pl, .rs-page .rs-card-art, .rs-page .rs-card::after { transition: none; }
}

/* ---------------------------------------------------------------- 8. search results, Clear, suggestions (Oct 21, 2026) */
.rs-page .rs-searchbox { display: inline-flex; align-items: center; gap: 8px; }
.rs-page .rs-clear { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; cursor: pointer; font: 500 12px/16px var(--os-sans); letter-spacing: .05em; text-transform: uppercase; color: #FFFFFF; background: rgba(255, 255, 255, .1); }
.rs-page .rs-clear:hover { background: rgba(255, 255, 255, .18); }
.rs-page .rs-clear[hidden] { display: none !important; }
.rs-page .rs-clear svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.rs-page .rs-results { max-width: 1000px; margin: 0 auto; padding: 80px 0 100px; }
.rs-page .rs-results[hidden] { display: none !important; }
.rs-page .rs-results-t { font: 400 16px/24px var(--os-sans); color: var(--os-fg-2); text-align: center; margin-bottom: 32px; }
.rs-page .rs-results-t:focus { outline: none; }
.rs-page .rs-res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rs-page .rs-res-in { position: relative; display: grid; gap: 8px; padding: 26px 64px 26px 30px; border-radius: 20px; text-decoration: none; color: #FFFFFF; background: linear-gradient(135deg, rgba(250, 250, 250, .12), rgba(250, 250, 250, .02)); transition: background-color .3s; }
.rs-page a.rs-res-in:hover { background-color: rgba(255, 255, 255, .05); }
.rs-page .rs-res-type { font: 500 12px/16px var(--os-sans); letter-spacing: .05em; text-transform: uppercase; color: var(--os-glow, #A8EDC4); }
.rs-page .rs-res-title { font: 300 24px/32px var(--os-sans); letter-spacing: -.01em; }
.rs-page .rs-res-desc { font: 300 15px/22px var(--os-sans); color: var(--os-fg-2); max-width: 70ch; }
.rs-page .rs-res-go { position: absolute; right: 28px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.rs-page .rs-res .rs-calls { margin-top: 6px; }
.rs-page .rs-anim .rs-res { animation: rsEnter .5s var(--os-out) both; animation-delay: calc(var(--rs-i, 0) * 40ms); }
.rs-page .rs-sugg { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 6px 0 4px; }
.rs-page .rs-sugg-chip { cursor: pointer; border: 0; }
@media (max-width: 767px) { .rs-page .rs-results { padding: 40px 0 70px; } .rs-page .rs-res-in { padding: 22px 48px 22px 22px; } .rs-page .rs-res-title { font-size: 20px; line-height: 28px; } .rs-page .rs-res-go { right: 18px; } }
@media (max-width: 479px) { .rs-page .rs-searchbox { width: 100%; } .rs-page .rs-searchbox .rs-search { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .rs-page .rs-anim .rs-res { animation: none; } }

/* one tool since the self-check was removed (Oct 23, 2026): centre it */
.rs-grid.rs-grid--2.rs-grid--solo { grid-template-columns: minmax(0, 680px) !important; justify-content: center; }
