/* Resources library (/endpoint-security-resources/): documents read as paper, videos play on the page, and a
   sticky bar filters and searches everything. Same language as the other pages: navy hero, red kicker, straight edges. */
.rs { --rs-bar: 64px; }
.rs main svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rs main p { margin: 0; }
.rs .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rs-k { margin: 0 0 12px !important; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #e0343c; }
.rs main h2 { margin: 0; font-size: clamp(30px, 2.5vw, 44px); font-weight: 900; line-height: 1.1; letter-spacing: -.02em; color: var(--navy); }
.rs main h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; color: var(--navy); }
.rs-meta { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: #7b86a8; }
.rs-desc { margin-top: 8px !important; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* ---------- hero ---------- */
.rs-hero { position: relative; overflow: hidden; color: #c9d4f2;
  background: radial-gradient(50% 70% at 80% 40%, rgba(80, 120, 230, .28), transparent 70%), linear-gradient(180deg, #0f1c4d, #152560); }
.rs-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
.rs-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 40px; align-items: center; min-height: clamp(520px, 38vw, 640px); padding-block: 40px 56px; }
.rs-crumb { display: flex; gap: 10px; margin-bottom: 40px; font-size: 12px; color: #9fb0de; }
.rs-crumb a { color: #c9d4f2; }
.rs-hero .rs-k { color: #ff7a80; }
.rs .rs-hero h1 { margin: 0; max-width: 14ch; font-size: clamp(44px, 3.9vw, 70px); font-weight: 900; line-height: 1.02; letter-spacing: -.035em; color: #fff; }
.rs-lead { margin-top: 20px !important; max-width: 620px; font-size: clamp(17px, 1.2vw, 20px); line-height: 1.6; color: #c9d4f2; }
.rs-search { display: flex; align-items: center; gap: 12px; max-width: 620px; margin-top: 28px; padding: 0 18px; height: 58px; border-radius: 14px; background: #fff; box-shadow: 0 18px 40px rgba(5, 12, 45, .35); color: #7b86a8; cursor: text; }
.rs-search svg { width: 20px; height: 20px; flex: none; }
.rs-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.rs-search:focus-within { box-shadow: 0 0 0 3px #8fb0ff, 0 18px 40px rgba(5, 12, 45, .35); }
.rs-counts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.rs-counts a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #ffffff12; box-shadow: inset 0 0 0 1px #8fb0ff33; font-size: 13.5px; font-weight: 700; color: #e6ecff; transition: background .2s; }
.rs-counts a:hover { background: #ffffff20; }
.rs-counts b { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--navy); font-size: 13px; }

/* the stack: three documents fanned out and a video card */
.rs-stack { position: relative; height: clamp(380px, 30vw, 520px); }
.rs-sheet { position: absolute; top: 6%; width: 44%; aspect-ratio: .77; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px rgba(5, 12, 45, .55), 0 0 0 1px #ffffff26; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.rs-sheet img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rs-sheet.s0 { left: 30%; z-index: 3; transform: rotate(-2deg); }
.rs-sheet.s1 { left: 8%; top: 12%; z-index: 2; transform: rotate(-11deg); }
.rs-sheet.s2 { left: 52%; top: 12%; z-index: 1; transform: rotate(9deg); }
.rs-hero:hover .rs-sheet.s1 { transform: rotate(-14deg) translateX(-10px); }
.rs-hero:hover .rs-sheet.s2 { transform: rotate(12deg) translateX(10px); }
.rs-film { position: absolute; z-index: 4; right: 2%; bottom: 2%; width: 42%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 50px rgba(5, 12, 45, .6), 0 0 0 4px #ffffff24; }
.rs-film img { width: 100%; height: 100%; object-fit: cover; }
.rs-film i { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(0deg, #0f1c4dcc, transparent 60%); }
.rs .rs-film i svg { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: #e0343c; color: #fff; fill: #fff; stroke: none; box-shadow: 0 0 0 8px #e0343c40; }
.rs-film small { position: absolute; left: 14px; bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; }

/* ---------- sticky type bar ---------- */
.rs-bar { position: sticky; top: var(--rs-header, 76px); z-index: 30; background: #fffffff5; backdrop-filter: blur(14px); border-bottom: 1px solid #dce3f1; }
.rs-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--rs-bar); }
.rs-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.rs-tabs button { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 14px; font-weight: 700; color: #596685; cursor: pointer; transition: background .2s, color .2s; }
.rs-tabs button span { padding: 1px 8px; border-radius: 999px; background: #eef2fa; font-size: 12px; color: #596685; }
.rs-tabs button:hover { background: #f1f4fa; color: var(--navy); }
.rs-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.rs-tabs button[aria-selected="true"] span { background: #ffffff26; color: #fff; }
.rs-found { flex: none; font-size: 13px; font-weight: 700; color: #7b86a8; }

/* ---------- sections ---------- */
.rs-sec { padding: clamp(56px, 5vw, 88px) 0; scroll-margin-top: calc(var(--rs-header, 76px) + var(--rs-bar)); }
.rs-sec[hidden] { display: none; }
.rs-pale { background: linear-gradient(180deg, #f5f7fc, #eef2f9); }
.rs-dark { background: linear-gradient(180deg, #0f1c4d, #152560); color: #c9d4f2; }
.rs .rs-dark h2, .rs .rs-dark h3 { color: #fff; }
.rs-dark .rs-k { color: #ff7a80; }
.rs-dark .rs-desc { color: #b9c6ea; }
.rs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.rs-head > p { max-width: 520px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.rs-dark .rs-head > p { color: #b9c6ea; }

/* buttons on every document */
.rs-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rs-dl, .rs-pv, .rs-vopen { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.rs-dl { background: #e0343c; color: #fff; box-shadow: 0 8px 18px rgba(224, 52, 60, .25); }
.rs-dl:hover { background: #c92a33; transform: translateY(-1px); }
.rs-pv, .rs-vopen { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px #cfd7ea; }
.rs-pv:hover, .rs-vopen:hover { background: #f1f4fa; }

/* featured */
.rs-featured { padding-bottom: 0; }
.rs-feat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 24px; align-items: stretch; }
.rs-feat { display: grid; grid-template-columns: minmax(240px, 34%) 1fr; gap: 36px; padding: 28px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px #e1e6f2, 0 18px 44px rgba(15, 28, 77, .08); }
.rs-feat-cover { position: relative; display: grid; place-items: center; padding: 22px; border-radius: 14px; background: linear-gradient(160deg, #eef2fa, #dde4f3); }
.rs-feat-cover img { width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: 4px; box-shadow: 0 18px 40px rgba(15, 28, 77, .25); transform: rotate(-1.5deg); }
.rs-feat-body { display: flex; flex-direction: column; justify-content: center; }
.rs-feat-body .rs-meta { margin-top: 10px !important; }
.rs-pts { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.rs-pts li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.rs-pts li::before { content: ''; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: #e0343c1f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0343c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.rs-side { display: grid; gap: 14px; }
.rs-tile { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 18px; background: #f5f7fc; box-shadow: inset 0 0 0 1px #e1e6f2; transition: transform .25s, box-shadow .25s; }
.rs-tile:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #c9d6f3, 0 14px 30px rgba(15, 28, 77, .1); }
.rs-tile .rs-k { margin-bottom: 4px !important; }
.rs-tile b { font-size: 19px; font-weight: 900; color: var(--navy); }
.rs-tile > span:not(.rs-k) { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.rs-tile em { margin-top: auto; padding-top: 10px; font-style: normal; font-size: 14px; font-weight: 800; color: #2f5fd0; }
.rs-tile-tour { background: linear-gradient(160deg, #15276a, #0f1c4d); box-shadow: none; }
.rs-tile-tour b { color: #fff; }
.rs-tile-tour > span:not(.rs-k) { color: #c9d4f2; }
.rs-tile-tour .rs-k { color: #ff7a80; }
.rs-tile-tour em { color: #8fb0ff; }

/* document cards */
.rs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rs-card { display: flex; flex-direction: column; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px #e1e6f2, 0 10px 28px rgba(15, 28, 77, .06); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.rs-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px #c9d6f3, 0 20px 44px rgba(15, 28, 77, .12); }
.rs-cover { display: grid; place-items: center; height: 250px; padding: 22px 22px 0; background: linear-gradient(160deg, #eef2fa, #dde4f3); overflow: hidden; }
.rs-cover img { width: 72%; height: 100%; object-fit: cover; object-position: top; border-radius: 4px 4px 0 0; box-shadow: 0 16px 36px rgba(15, 28, 77, .22); transition: transform .35s; }
.rs-card:hover .rs-cover img { transform: translateY(-6px); }
.rs-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.rs-body h3 { margin-top: 6px; }
.rs-body .rs-acts { margin-top: auto; padding-top: 16px; }

/* battle card */
.rs-wide { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); border-radius: 20px; background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px #e1e6f2, 0 18px 44px rgba(15, 28, 77, .08); }
.rs-wide-cover { padding: 26px; background: linear-gradient(160deg, #eef2fa, #dde4f3); }
.rs-wide-cover img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 16px 36px rgba(15, 28, 77, .2); }
.rs-wide .rs-body { justify-content: center; padding: 34px; }
.rs-wide h3 { font-size: 24px; }
.rs-note { margin-top: 12px !important; padding: 12px 14px; border-radius: 10px; background: #fff7e8; box-shadow: inset 3px 0 0 #e5a220; font-size: 13.5px; line-height: 1.5; color: #6b5420; }
.rs-wide .rs-acts { margin-top: 18px; padding-top: 0; }

/* presentations */
.rs-speaker { display: flex; align-items: center; gap: 14px; max-width: 520px; }
.rs-speaker img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #dce3f1; }
.rs-speaker p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.rs-speaker b { display: block; font-size: 15.5px; color: var(--navy); }
.rs-talks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.rs-talk { display: flex; flex-direction: column; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px #e1e6f2, 0 10px 28px rgba(15, 28, 77, .06); transition: transform .25s, box-shadow .25s; }
.rs-talk:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px #c9d6f3, 0 20px 44px rgba(15, 28, 77, .12); }
.rs-talk-cover { height: 200px; background: #0f1c4d; overflow: hidden; }
.rs-talk-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: .96; transition: transform .4s; }
.rs-talk:hover .rs-talk-cover img { transform: scale(1.03); }
.rs-venue { display: inline-flex; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: #fdecee; font-size: 12px; font-weight: 800; color: #c42533; }
.rs-talk h3 { margin-top: 10px; font-size: 17px; }
.rs-talk .rs-meta { margin-top: 8px !important; }

/* videos */
.rs-player { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); grid-template-rows: auto 1fr; gap: 22px 28px; }
.rs-screen { position: relative; grid-row: 1; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 40px 90px rgba(5, 12, 45, .5), 0 0 0 1px #8fb0ff33; }
.rs-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rs-poster { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.rs-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rs-poster:hover img { transform: scale(1.02); }
.rs-poster i { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(0deg, #0f1c4d99, transparent 55%); }
.rs .rs-poster i svg { width: 88px; height: 88px; padding: 26px; border-radius: 50%; background: #e0343c; fill: #fff; stroke: none; box-shadow: 0 0 0 12px #e0343c40; transition: transform .25s; }
.rs-poster:hover i svg { transform: scale(1.06); }
.rs-now { grid-column: 1; grid-row: 2; }
.rs-now h3 { margin-top: 6px; font-size: 22px; }
.rs-dark .rs-meta { color: #93a3d0; }
.rs-src { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: #8fb0ff; }
.rs-list { grid-column: 2; grid-row: 1 / span 2; display: grid; align-content: start; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rs-list button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px; border: 0; border-radius: 14px; background: #ffffff08; box-shadow: inset 0 0 0 1px #8fb0ff1f; font: inherit; text-align: left; color: #dfe6ff; cursor: pointer; transition: background .2s, box-shadow .2s; }
.rs-list button:hover { background: #ffffff12; }
.rs-list button[aria-current="true"] { background: #ffffff18; box-shadow: inset 0 0 0 1px #8fb0ff55, inset 3px 0 0 #e0343c; }
.rs-thumb { position: relative; flex: none; width: 128px; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #000; }
.rs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rs-thumb small { position: absolute; right: 5px; bottom: 5px; padding: 1px 6px; border-radius: 5px; background: #000000b3; font-size: 11px; font-weight: 700; color: #fff; }
.rs-li b { display: block; font-size: 14.5px; line-height: 1.35; color: #fff; }
.rs-li small { display: block; margin-top: 4px; font-size: 12px; color: #93a3d0; }
.rs-vnote { margin-top: 22px !important; font-size: 12.5px; color: #7f8fbf; }

.rs-empty { padding: 60px 0; text-align: center; font-size: 17px; color: var(--ink-2); }
.rs-empty a { color: #2f5fd0; font-weight: 800; }

/* closing */
.rs-cta { padding: 56px 0; background: #f3f5fb; border-top: 1px solid #e1e6f2; }
.rs-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.rs .rs-cta h2 { font-size: clamp(24px, 2vw, 34px); }
.rs-cta p { margin-top: 8px !important; font-size: 16px; color: var(--ink-2); }
.rs-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.rs-cta .btn-w { background: #e0343c; color: #fff; box-shadow: 0 10px 24px rgba(224, 52, 60, .28); }
.rs-cta .btn-g { color: var(--navy); box-shadow: inset 0 0 0 1.5px #b9c4de; }

/* the document viewer */
.rs-viewer { width: min(1180px, 94vw); height: 92vh; max-height: none; padding: 0; border: 0; border-radius: 18px; background: #f3f5fb; box-shadow: 0 40px 120px rgba(5, 12, 45, .6); overflow: hidden; }
.rs-viewer[open] { display: flex; flex-direction: column; }
.rs-viewer::backdrop { background: rgba(8, 14, 40, .72); backdrop-filter: blur(4px); }
.rs-vbar { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; background: #fff; border-bottom: 1px solid #e1e6f2; }
.rs-vic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: #fdecee; color: #e0343c; }
.rs-vbar > div { flex: 1; min-width: 0; }
.rs-vbar b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; color: var(--navy); }
.rs-vbar small { font-size: 12.5px; color: #7b86a8; }
.rs-vx { flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: #f1f4fa; font-size: 24px; line-height: 1; color: var(--navy); cursor: pointer; }
.rs-vx:hover { background: #e4e9f5; }
.rs-viewer iframe { flex: 1; width: 100%; border: 0; background: #525659; }

@media (prefers-reduced-motion: reduce) {
  .rs-sheet, .rs-card, .rs-talk, .rs-cover img, .rs-talk-cover img, .rs-poster img, .rs-tile { transition: none !important; }
}
@media (max-width: 1500px) {
  .rs-grid, .rs-talks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-talk { flex-direction: row; }
  .rs-talk-cover { flex: none; width: 38%; height: auto; min-height: 100%; }
}
@media (max-width: 1100px) {
  .rs-hero-in, .rs-feat-grid, .rs-wide, .rs-player { grid-template-columns: 1fr; }
  .rs-stack { display: none; }
  .rs-list { grid-column: 1; grid-row: auto; }
  .rs-now { grid-row: auto; }
  .rs-head { display: block; }
  .rs-head > p, .rs-speaker { margin-top: 14px; }
  .rs-found { display: none; }
}
@media (max-width: 700px) {
  .rs-grid, .rs-talks { grid-template-columns: 1fr; }
  .rs-feat { grid-template-columns: 1fr; }
  .rs-talk { flex-direction: column; }
  .rs-talk-cover { width: auto; height: 200px; }
  .rs-cta-in { display: block; }
  .rs-cta-btns { margin-top: 18px; }
}
.rs main [data-q][hidden], .rs-empty[hidden] { display: none !important; }
