/* resources.css — page-specific styles for the SecuRight Resources page.
   Externalized from the former inline <head> <style> block to satisfy strict
   CSP (style-src 'self', no unsafe-inline).
   Shared utilities live in tokens.css (.u-*). */

.page-hero { padding: 80px 0 48px; }
.page-hero h1 { font-size: clamp(52px, 8vw, 104px); line-height: 0.94; letter-spacing: -0.045em; font-weight: 500; margin: 24px 0 0; max-width: 1000px; }
.page-hero h1 em { font-style: normal; color: var(--accent); }

.res-section { margin-top: 72px; }
.res-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: end; margin-bottom: 36px; }
@media (max-width: 800px) { .res-head { grid-template-columns: 1fr; gap: 16px; } }
.res-head .kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.res-head h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.035em; font-weight: 500; line-height: 1.04; margin: 10px 0 0; }
.res-head h2 em { font-style: normal; color: var(--accent); }

/* Blog grid */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 820px) { .post-grid { grid-template-columns: 1fr; } }
.post { background: var(--bg-raised); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; transition: background .25s var(--ease); min-height: 240px; }
.post:hover { background: var(--bg-sunken); }
.post .ptag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.post h3 { font-size: 22px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 500; margin: 0; }
.post p { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0; flex: 1; }
.post .pmeta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; }

/* GitHub / open source band */
.oss { margin-top: 72px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg-sunken); padding: 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 800px) { .oss { grid-template-columns: 1fr; gap: 24px; padding: 32px; } }
.oss h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; font-weight: 500; line-height: 1.05; margin: 12px 0 16px; }
.oss p { font-size: 16px; color: var(--ink-2); line-height: 1.55; margin: 0; }
.oss .kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.oss-cta { display: flex; flex-direction: column; gap: 10px; }
.gh-link { display: inline-flex; align-items: center; gap: 10px; }
.gh-link-center { justify-content: center; }

/* Topic pills */
.topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.topic { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; }

.res-note { margin-top: 56px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; max-width: 720px; line-height: 1.7; }

/* hero lead — page-specific spacing/width */
.hero-lead { margin-top: 32px; max-width: 760px; }

/* center-aligned mono caption (pairs with u-mono-cap) */
.u-text-center { text-align: center; }

/* inline accent link with underline */
.link-accent { color: var(--accent); border-bottom: 1px solid currentColor; }
