/* Resources pages (views/site/_resource.php): category lists and template / tool pages */
.rs-hero { padding: 26px 0 40px; background: linear-gradient(180deg, var(--ws-tint), transparent 85%); }
.rs-hero .ws-crumbs a { color: var(--ws-muted); text-decoration: none; }
.rs-hero .ws-crumbs a:hover { color: var(--ws-brand); }
.rs-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; margin-top: 18px; }
.rs-hero-grid.is-list { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.rs-hero h1 { margin: 12px 0 10px; font-family: var(--ws-head); font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.02em; color: var(--ws-ink); }
.rs-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--ws-card); border: 1px solid color-mix(in srgb, var(--ws-brand) 30%, var(--ws-line)); color: var(--ws-brand); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.rs-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rs-eyebrow.is-soon { color: #C2410C; border-color: #FDBA74; background: #FFF7ED; }
.rs-hero .ws-ticks { margin: 16px 0 4px; }
.rs-hero .ws-actions { margin-top: 22px; }
.rs-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 20px 0 0; padding: 0; }
.rs-trust li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ws-text); }
.rs-trust i { color: var(--ws-brand); font-size: 18px; }

/* document cover */
.rs-cover { position: relative; height: 330px; display: grid; place-items: center; }
.rs-sheet { position: relative; z-index: 1; width: 250px; height: 310px; padding: 28px 24px; border-radius: 14px; background: #fff; box-shadow: 0 30px 60px -25px rgba(15, 23, 42, .35), 0 0 0 1px rgba(15, 23, 42, .06); display: flex; flex-direction: column; gap: 9px; transform: rotate(-2deg); }
.rs-sheet-back { position: absolute; z-index: 0; transform: rotate(5deg) translate(18px, 6px); background: color-mix(in srgb, var(--ws-brand) 14%, #fff); box-shadow: none; }
.rs-sheet-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ws-brand); color: #fff; font-size: 24px; margin-bottom: 6px; }
.rs-sheet b { font-family: var(--ws-head); font-size: 17px; line-height: 1.25; color: #0F172A; }
.rs-sheet small { font-size: 12px; color: #64748B; margin-bottom: 8px; }
.rs-sheet i { display: block; height: 8px; border-radius: 4px; background: #E2E8F0; }
.rs-sheet i.short { width: 62%; }

/* formula card (BPO tools) */
.rs-formula { padding: 22px; border-radius: 18px; background: var(--ws-card); border: 1px solid var(--ws-line); box-shadow: 0 24px 50px -30px rgba(15, 23, 42, .4); }
.rs-formula > b { display: block; margin: 10px 0 12px; font-family: var(--ws-head); font-size: 17px; color: var(--ws-ink); }
.rs-formula-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ws-tint); color: var(--ws-brand); font-size: 22px; }
.rs-formula ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rs-formula li { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--ws-soft); }
.rs-formula li span { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ws-muted); }
.rs-formula code { font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ws-ink); background: none; padding: 0; }

/* sections */
.rs-section { padding: 44px 0; }
.rs-section.alt { background: var(--ws-soft); }
.rs-h2 { margin: 0 0 18px; font-family: var(--ws-head); font-size: 26px; color: var(--ws-ink); }
.rs-block { margin-bottom: 34px; }
.rs-block > h2, .rs-block.ws-prose h2 { font-family: var(--ws-head); font-size: 24px; color: var(--ws-ink); margin: 0 0 14px; }
.rs-block p { color: var(--ws-text); line-height: 1.7; }
.rs-steps { margin: 10px 0 0; padding-left: 20px; color: var(--ws-text); line-height: 1.8; }
.rs-paper { padding: 40px 46px; border-radius: 8px; background: #fff; color: #1F2937; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 20px 50px -28px rgba(15, 23, 42, .35); border: 1px solid #E5E7EB; font-size: 15px; line-height: 1.75; }
.rs-paper p, .rs-paper li { color: #1F2937; }
.rs-paper strong { color: #0F172A; }
.rs-paper table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.rs-paper th, .rs-paper td { border: 1px solid #D1D5DB; padding: 7px 9px; text-align: left; }
.rs-paper hr { border: 0; border-top: 1px dashed #CBD5E1; margin: 20px 0; }

/* list cards */
.rs-list, .rs-more { display: grid; gap: 14px; }
.rs-more { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rs-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; background: var(--ws-card); border: 1px solid var(--ws-line); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.rs-item:hover { border-color: color-mix(in srgb, var(--ws-brand) 45%, var(--ws-line)); box-shadow: 0 14px 30px -22px rgba(15, 23, 42, .45); transform: translateY(-1px); }
.rs-item-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ws-tint); color: var(--ws-brand); font-size: 22px; }
.rs-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rs-item-body b { font-family: var(--ws-head); font-size: 17px; color: var(--ws-ink); }
.rs-item-body > span { font-size: 14px; color: var(--ws-text); line-height: 1.5; }
.rs-kind { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ws-brand); }
.rs-kind.is-soon { color: #C2410C; }
.rs-go { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ws-brand); white-space: nowrap; }
.rs-item:hover .rs-go i { transform: translateX(3px); }
.rs-go i { transition: transform .15s; }
.rs-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rs-faq { margin-top: 0; }

/* end blocks */
.rs-end { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; }
.rs-help, .rs-demo { padding: 26px; border-radius: 18px; }
.rs-help { background: var(--ws-card); border: 1px solid var(--ws-line); }
.rs-help b, .rs-demo b { display: block; font-family: var(--ws-head); font-size: 20px; color: var(--ws-ink); }
.rs-help p, .rs-demo p { margin: 6px 0 16px; color: var(--ws-text); }
.rs-help .ws-actions { margin: 0; }
.rs-demo { background: linear-gradient(135deg, var(--ws-brand), color-mix(in srgb, var(--ws-brand) 55%, #0F172A)); }
.rs-demo b, .rs-demo p { color: #fff; }
.rs-demo p { opacity: .85; }
.rs-demo-btn { background: #fff; color: var(--ws-brand); border: 0; }
.rs-demo-btn:hover { color: var(--ws-brand); filter: brightness(.96); }

@media (max-width: 900px) {
	.rs-hero-grid { grid-template-columns: 1fr; gap: 26px; }
	.rs-cover { height: 270px; }
	.rs-sheet { width: 210px; height: 250px; }
	.rs-end { grid-template-columns: 1fr; }
	.rs-paper { padding: 24px 20px; font-size: 14.5px; }
}
@media (max-width: 600px) {
	.rs-item { flex-wrap: wrap; padding: 16px; }
	.rs-item-ico { width: 40px; height: 40px; font-size: 20px; }
	.rs-go { width: 100%; padding-left: 56px; }
	.rs-more .rs-go { padding-left: 0; }
}

/* document picture on the cover card (site/_rs_art.php) */
.rs-art { display: block; width: 100%; height: auto; margin-top: 4px; font-family: var(--ws-body, system-ui, sans-serif); }
.rs-sheet { height: auto; min-height: 310px; }
@media (max-width: 767px) { .rs-sheet { min-height: 250px; } }

[data-theme="dark"] .rs-demo-btn, [data-theme="dark"] .rs-demo-btn:hover { color: #0B4FA8; }
