/* Resources hub (resources.html) and resource pages (resources/*.html). Loaded after css/astrix.css; every selector is prefixed .rs-. */

/* Type and topic tags (text labels) */
.rs-type { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .55rem; border-radius: .3rem; background: #e3e8f7; color: #2b3a7a; }
.rs-type.checklist { background: #e2f3ea; color: #145232; }
.rs-type.featured { background: var(--ax-grad); color: #fff; }
.rs-topic { font-size: .8rem; font-weight: 600; color: var(--ax-muted); }

/* Hub hero: learning path */
.rs-path { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; counter-reset: p; }
.rs-path li { counter-increment: p; display: grid; grid-template-columns: 2.4rem 1fr; gap: .8rem; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: .75rem; padding: .75rem .9rem; }
.rs-path li::before { content: counter(p); width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ax-grad); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.rs-path strong { display: block; color: #fff; }
.rs-path span { font-size: .85rem; color: rgba(255,255,255,.72); }
.rs-path a { color: #fff; }
.rs-caption { font-size: .78rem; color: rgba(255,255,255,.6); margin: .8rem 0 0; }

/* Featured resource */
.rs-featured { display: grid; grid-template-columns: 1.2fr 1fr; background: #fff; border: 1px solid var(--ax-line); border-radius: 1.1rem; overflow: hidden; }
.rs-featured-body { padding: 2rem 2.2rem; }
.rs-featured-body h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; margin: .6rem 0 .75rem; }
.rs-featured-body h3 a { color: var(--ax-navy); text-decoration: none; }
.rs-featured-body h3 a:hover, .rs-featured-body h3 a:focus { color: var(--ax-blue); text-decoration: underline; }
.rs-featured-body p { color: var(--ax-muted); }
.rs-featured-side { background: linear-gradient(160deg, var(--ax-navy), var(--ax-navy-2)); color: #fff; padding: 2rem 2.2rem; }
.rs-featured-side p { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ax-blue-light); margin-bottom: .6rem; }
.rs-featured-side ol { margin: 0; padding-left: 1.2rem; color: rgba(255,255,255,.85); font-size: .93rem; }
.rs-featured-side li { padding: .2rem 0; }
@media (max-width: 991.98px) { .rs-featured { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) { .rs-featured-body, .rs-featured-side { padding: 1.4rem 1.3rem; } }

/* Browse by topic */
.rs-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }
.rs-topics a { display: flex; flex-direction: column; height: 100%; padding: 1.25rem; background: #fff; border: 1px solid var(--ax-line); border-radius: 1rem; text-decoration: none; color: var(--ax-ink); }
.rs-topics a:hover, .rs-topics a:focus { border-color: var(--ax-blue); }
.rs-topics .ax-icon { flex: none; width: 2.5rem; height: 2.5rem; margin-bottom: .75rem; }
.rs-topics strong { color: var(--ax-navy); margin-bottom: .3rem; }
.rs-topics span.d { font-size: .88rem; color: var(--ax-muted); flex: 1; }
.rs-topics span.n { font-size: .8rem; font-weight: 700; color: var(--ax-blue); margin-top: .7rem; }
@media (max-width: 991.98px) { .rs-topics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 459.98px) { .rs-topics { grid-template-columns: 1fr; } }

/* Library filter */
.rs-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.25rem; }
.rs-filters .lbl { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ax-muted); margin-right: .25rem; }
.rs-filters button { font-size: .88rem; font-weight: 600; padding: .4rem .85rem; border-radius: 99px; border: 1px solid var(--ax-line); background: #fff; color: var(--ax-navy); min-height: 2.4rem; }
.rs-filters button:hover { border-color: var(--ax-blue); }
.rs-filters button[aria-pressed="true"] { background: var(--ax-navy); border-color: var(--ax-navy); color: #fff; }
.rs-status { font-size: .88rem; color: var(--ax-muted); margin-bottom: 1rem; }
.rs-empty { padding: 1.5rem; border: 1px dashed #b9c0d2; border-radius: 1rem; text-align: center; color: var(--ax-muted); }

/* Resource cards */
.rs-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--ax-line); border-radius: 1rem; padding: 1.4rem 1.4rem 1.2rem; }
.rs-card .meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .75rem; }
.rs-card h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: .5rem; }
.rs-card h3 a { color: var(--ax-navy); text-decoration: none; }
.rs-card h3 a:hover, .rs-card h3 a:focus { color: var(--ax-blue); text-decoration: underline; }
.rs-card p { font-size: .92rem; color: var(--ax-muted); flex: 1; }
.rs-card .go { font-weight: 700; font-size: .9rem; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }

/* Practical tools spotlight */
.rs-tool { height: 100%; border-radius: 1rem; padding: 1.5rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; }
.rs-tool h3 { font-size: 1.15rem; font-weight: 800; color: #fff; margin: .6rem 0 .5rem; }
.rs-tool p { color: rgba(255,255,255,.78); font-size: .93rem; }
.rs-tool ul { list-style: none; margin: 0 0 1.2rem; padding: 0; flex: 1; }
.rs-tool li { display: flex; gap: .55rem; padding: .3rem 0; font-size: .9rem; color: rgba(255,255,255,.85); }
.rs-tool li .ic { color: var(--ax-blue-light); margin-top: .15rem; }
.rs-tool .btn { align-self: flex-start; }

/* Product resources */
.rs-product { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.rs-product a { display: block; height: 100%; padding: 1.05rem 1.15rem; border: 1px solid var(--ax-line); border-radius: .85rem; background: #fff; text-decoration: none; }
.rs-product a:hover, .rs-product a:focus { border-color: var(--ax-blue); }
.rs-product strong { display: block; color: var(--ax-navy); }
.rs-product span { font-size: .87rem; color: var(--ax-muted); }

/* Concept to capability mapping */
.rs-map { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--ax-line); border-radius: 1rem; overflow: hidden; }
.rs-map th, .rs-map td { padding: .9rem 1.1rem; border-top: 1px solid var(--ax-line); vertical-align: top; font-size: .93rem; }
.rs-map thead th { border-top: 0; background: var(--ax-bg-soft); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ax-muted); }
.rs-map tbody th { color: var(--ax-navy); font-weight: 700; }
.rs-map td { color: var(--ax-muted); }
@media (max-width: 767.98px) {
  .rs-map thead { display: none; }
  .rs-map tbody th, .rs-map td { display: block; }
  .rs-map td { border-top: 0; padding-top: 0; }
  .rs-map td::before { content: attr(data-label); display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ax-violet); }
}

/* ---------- Resource page template ---------- */
.rs-head { background: var(--ax-bg-soft); border-bottom: 1px solid var(--ax-line); padding: 2.5rem 0 2.75rem; }
.rs-crumbs ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .88rem; color: var(--ax-muted); }
.rs-crumbs li + li::before { content: "/"; margin-right: .35rem; color: #9aa3b8; }
.rs-crumbs a { color: var(--ax-blue); }
.rs-head h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; max-width: 880px; margin: .75rem 0 1rem; }
.rs-head .lead { color: var(--ax-muted); max-width: 760px; }
.rs-byline { font-size: .88rem; color: var(--ax-muted); margin: 1rem 0 0; }
.rs-layout { padding-block: 3rem 4rem; }
.rs-toc { position: sticky; top: 92px; font-size: .9rem; }
.rs-toc p { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ax-violet); margin-bottom: .6rem; }
.rs-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ax-line); }
.rs-toc a { display: block; padding: .35rem 0 .35rem .9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ax-muted); text-decoration: none; }
.rs-toc a:hover, .rs-toc a:focus { color: var(--ax-blue); border-left-color: var(--ax-blue); }
@media (max-width: 991.98px) { .rs-toc { position: static; margin-bottom: 2rem; padding: 1rem 1.2rem; background: var(--ax-bg-soft); border-radius: .9rem; } }

/* Readable body copy */
.rs-prose { font-size: 1.05rem; line-height: 1.7; color: var(--ax-ink); max-width: 760px; }
.rs-prose h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; margin: 2.75rem 0 1rem; }
.rs-prose h2:first-child { margin-top: 0; }
.rs-prose h3 { font-size: 1.18rem; font-weight: 800; margin: 1.75rem 0 .6rem; }
.rs-prose p, .rs-prose li { color: #343b55; }
.rs-prose ul, .rs-prose ol { padding-left: 1.3rem; }
.rs-prose li { margin-bottom: .4rem; }
.rs-prose li::marker { color: var(--ax-violet); }
.rs-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.25rem 0 1.5rem; }
.rs-prose th, .rs-prose td { text-align: left; vertical-align: top; padding: .65rem .8rem; border-bottom: 1px solid var(--ax-line); }
.rs-prose thead th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ax-muted); border-bottom: 2px solid var(--ax-line); }
.rs-table-wrap { overflow-x: auto; }
.rs-table-wrap table { min-width: 560px; }
.rs-callout { border-left: 4px solid var(--ax-violet); background: #f4f5fd; padding: 1.1rem 1.3rem; border-radius: 0 .75rem .75rem 0; margin: 1.5rem 0; }
.rs-callout p:last-child, .rs-callout ul:last-child { margin-bottom: 0; }
.rs-callout .k { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ax-violet); margin-bottom: .4rem; }
.rs-takeaways { background: #fff; border: 1px solid var(--ax-line); border-radius: 1rem; padding: 1.3rem 1.5rem; margin-bottom: 2.25rem; }
.rs-takeaways h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.rs-takeaways ul { margin: 0; }
.rs-astrix { border: 1px solid #d3d9f3; border-radius: 1rem; overflow: hidden; margin: 2rem 0; }
.rs-astrix-head { background: linear-gradient(160deg, var(--ax-navy), var(--ax-navy-2)); color: #fff; padding: .8rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: .75rem; font-weight: 700; font-size: .95rem; }
.rs-astrix-head span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ax-blue-light); }
.rs-astrix-body { padding: 1.1rem 1.3rem; font-size: .98rem; }
.rs-astrix-body p:last-child, .rs-astrix-body ul:last-child { margin-bottom: 0; }
.rs-figure { margin: 1.5rem 0 2rem; }
.rs-figure figcaption { font-size: .85rem; color: var(--ax-muted); margin-top: .6rem; }
.rs-figure svg { display: block; width: 100%; height: auto; }

/* Checklists */
.rs-check { list-style: none; padding: 0 !important; margin: .75rem 0 1.5rem; border: 1px solid var(--ax-line); border-radius: .9rem; overflow: hidden; background: #fff; }
.rs-check li { margin: 0 !important; border-top: 1px solid var(--ax-line); }
.rs-check li:first-child { border-top: 0; }
.rs-check label { display: grid; grid-template-columns: 1.4rem 1fr; gap: .75rem; padding: .75rem 1rem; cursor: pointer; font-size: .98rem; line-height: 1.5; }
.rs-check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--ax-violet); }
.rs-check small { display: block; color: var(--ax-muted); font-size: .88rem; }
.rs-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 0 0 2rem; }
.rs-actions .note { font-size: .85rem; color: var(--ax-muted); }

/* Related resources and closing CTA on resource pages */
.rs-related { border-top: 1px solid var(--ax-line); padding-top: 2.5rem; margin-top: 3rem; }
.rs-related h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 1rem; }

@media print {
  .ax-nav, .ax-footer, .rs-toc, .rs-actions, .rs-related, .ax-cta, .skip-link, .rs-crumbs { display: none !important; }
  .rs-head { background: none; border: 0; padding: 0 0 1rem; }
  .rs-layout { padding: 0; }
  .rs-prose { max-width: none; font-size: 11pt; }
  .rs-check { border-color: #999; }
  .rs-check li { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
