/* ==========================================================
   Resources – single post (blog) + listing
   Fonts: IvyPresto Text Semi Bd (headings), Soleil Light (text)
   Own class names (rs-*) so old main.css rules do not clash.
   ========================================================== */
.rs-page {
  --rs-ink: #1f2a26;
  --rs-muted: #4a5651;
  --rs-green: #0e5e49;
  --rs-line: #c9c4b8;
  --rs-focus: #0a4fd6;
  --rs-font-head: "IvyPresto Text Semi Bd", "IvyPresto Text", Georgia, "Times New Roman", serif;
  --rs-font-body: "soleillight", "Soleil Light", "Soleil", "Helvetica Neue", Arial, sans-serif;
  color: var(--rs-ink);
  background: #fffdf9;
  font-family: var(--rs-font-body);
  font-synthesis: none;
  padding-bottom: 3rem;
}
.rs-page:focus { outline: none; }
.rs-page h1, .rs-page h2, .rs-page h3 { font-family: var(--rs-font-head); font-weight: normal; line-height: 1.25; margin: 0; }
.rs-page p, .rs-page li, .rs-page a { font-family: var(--rs-font-body); font-weight: normal; }
.rs-page img { max-width: 100%; height: auto; }
.rs-page ul[role="list"] { list-style: none; margin: 0; padding: 0; }
.rs-page a:focus-visible { outline: 3px solid var(--rs-focus); outline-offset: 3px; }
.rs-page .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- single ---------- */
.rs-wrap { max-width: 740px; margin: 0 auto; padding: 2rem 1rem 1rem; }

.rs-back { margin: 0 0 1rem; font-size: .875rem; }
.rs-back a { display: inline-flex; align-items: center; gap: .5rem; color: var(--rs-ink); text-decoration: none; min-height: 44px; }
.rs-back a:hover { text-decoration: underline; text-underline-offset: 4px; }

.rs-hero { margin: 0 0 1.75rem; }
.rs-hero__img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: cover; }

.rs-head { margin-bottom: 1.5rem; }
.rs-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 .5rem; font-size: .8125rem; letter-spacing: .03em; color: var(--rs-muted); }
.rs-title { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); margin: 0 0 .75rem; }
.rs-author { margin: 0; font-size: .875rem; color: var(--rs-muted); }

.rs-content { font-size: 1rem; line-height: 1.75; letter-spacing: .015em; }
.rs-content > * + * { margin-top: 1.1rem; }
.rs-content p { margin: 0; }
.rs-content h2, .rs-content h3, .rs-content h4 { font-family: var(--rs-font-head); margin-top: 2rem; line-height: 1.3; }
.rs-content h2 { font-size: 1.5rem; } .rs-content h3 { font-size: 1.25rem; } .rs-content h4 { font-size: 1.0625rem; }
.rs-content ul, .rs-content ol { padding-left: 1.4rem; }
.rs-content li + li { margin-top: .6rem; }
.rs-content a { color: var(--rs-green); text-decoration: underline; text-underline-offset: 3px; }
.rs-content img, .rs-content figure { max-width: 100%; height: auto; }
.rs-content blockquote, .rs-content .quoteDiv {
  margin: 1.75rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--rs-green);
  font-family: var(--rs-font-head); font-size: 1.25rem; line-height: 1.45;
}
.rs-content iframe { max-width: 100%; }
.rs-content table { width: 100%; border-collapse: collapse; }
.rs-content th, .rs-content td { border: 1px solid var(--rs-line); padding: .5rem .75rem; text-align: left; }

.rs-share { margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--rs-line); text-align: center; }
.rs-share__title { font-family: var(--rs-font-body) !important; font-size: .8125rem; color: var(--rs-muted); margin: 0 0 .5rem; }
.rs-share ul { display: flex; justify-content: center; gap: .75rem; }
.rs-share a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--rs-green); }
.rs-share a:hover { color: var(--rs-ink); }

/* ---------- cards (listing + Impactful Reads) ---------- */
.rs-card { position: relative; display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.rs-card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #e7e4dc; }
.rs-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-card__body { padding: 1.25rem 0 0; display: flex; flex-direction: column; gap: .6rem; flex: 1; }

.rs-tag {
  align-self: flex-start; display: inline-block;
  padding: .45rem .9rem; border: 1px solid var(--rs-green); color: var(--rs-green);
  font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2;
}
.rs-tag--over { position: absolute; left: 0; top: 1rem; border: 0; background: rgba(0, 0, 0, .72); color: #fff; }

.rs-card__title { font-size: 1.1875rem; line-height: 1.35; }
.rs-card__link { color: var(--rs-ink); text-decoration: none; display: inline; }
.rs-card__link::after { content: ""; position: absolute; inset: 0; }          /* whole card is clickable */
.rs-card__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.rs-card__link:focus-visible { outline: 3px solid var(--rs-focus); outline-offset: 4px; }
.rs-card__arrow { margin-left: .5rem; vertical-align: baseline; }
.rs-card__excerpt { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--rs-muted); }
.rs-card__author { margin: auto 0 0; font-size: .875rem; color: var(--rs-ink); }

/* ---------- Impactful Reads ---------- */
.rs-reads { max-width: 1100px; margin: 2.5rem auto 0; padding: 0 1rem; }
.rs-reads__title { text-align: center; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 1.75rem; }
.rs-reads__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--rs-line); }
.rs-reads__grid .rs-card { padding: 1.5rem; }
.rs-reads__grid .rs-card + .rs-card { border-left: 1px solid var(--rs-line); }

/* ---------- listing ---------- */
.rs-list { max-width: 1200px; margin: 0 auto; padding: 3rem 1rem 1rem; }
.rs-list__title { text-align: center; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); margin-bottom: 2.5rem; }
.rs-list__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rs-list__grid .rs-card { padding: 2rem 1.5rem; border-bottom: 1px solid var(--rs-line); }
.rs-list__grid .rs-card:nth-child(odd) { border-right: 1px solid var(--rs-line); }
.rs-list__grid .rs-card__body { padding-top: 1rem; }
.rs-empty { text-align: center; }

.rs-pagination { margin-top: 2.5rem; }
.rs-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.rs-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 .5rem; box-sizing: border-box;
  border: 1px solid var(--rs-ink); border-radius: 22px; color: var(--rs-ink); text-decoration: none; font-size: .9375rem;
}
.rs-pagination a.page-numbers:hover { background: var(--rs-ink); color: #fff; }
.rs-pagination .page-numbers.current { border-width: 2px; font-weight: bold; background: #fff; }
.rs-pagination .page-numbers.dots { border-color: transparent; }

@media (max-width: 768px) {
  .rs-reads__grid, .rs-list__grid { grid-template-columns: 1fr; }
  .rs-reads__grid .rs-card + .rs-card { border-left: 0; border-top: 1px solid var(--rs-line); }
  .rs-list__grid .rs-card:nth-child(odd) { border-right: 0; }
}
@media (forced-colors: active) {
  .rs-tag--over { border: 1px solid CanvasText; }
  .rs-pagination .page-numbers.current { outline: 2px solid CanvasText; }
}
@media print { .rs-share, .rs-reads, .rs-back { display: none; } }
