/* Relic Announcements v1.3.0 — light theme matched to relicpve.com and the suggestion board */
.rsa {
	--rsa-panel: #ffffff;
	--rsa-panel-2: #f4f4f5;
	--rsa-border: #e5e5e7;
	--rsa-border-hi: #d4d4d8;
	--rsa-text: #111113;
	--rsa-text-2: #3f3f46;
	--rsa-muted: #71717a;
	--rsa-ink: #0b0b0c;
	--rsa-accent: #e0322a;
	--rsa-accent-hi: #c4241d;
	--rsa-accent-soft: #fdeeed;
	--rsa-radius: 10px;
	--rsa-shadow: 0 1px 2px rgba(16, 16, 20, .04), 0 2px 8px rgba(16, 16, 20, .04);
	--rsa-shadow-hi: 0 2px 4px rgba(16, 16, 20, .05), 0 8px 24px rgba(16, 16, 20, .08);
	color: var(--rsa-text);
	font-size: 15px;
	line-height: 1.6;
	text-align: left;
}
.rsa *, .rsa *::before, .rsa *::after { box-sizing: border-box; }
.rsa a { color: var(--rsa-accent); text-decoration: none; }
.rsa a:hover { color: var(--rsa-accent-hi); text-decoration: underline; }
.rsa h1, .rsa h2, .rsa h3 { margin: 0; padding: 0; border: 0; color: inherit; font-family: inherit; text-transform: none; letter-spacing: normal; }
.rsa svg { width: 1em; height: 1em; flex: none; }
.rsa button { font: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; margin: 0; line-height: 1.2; }
.rsa-board { max-width: 960px; margin: 0 auto 3em; padding-top: 8px; }

/* Header */
.rsa-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--rsa-border); }
.rsa-h { font-size: 32px !important; font-weight: 800; color: var(--rsa-ink) !important; line-height: 1.15; }
.rsa-h::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 10px; background: var(--rsa-accent); border-radius: 2px; }
.rsa-sub { color: var(--rsa-muted); margin: 10px 0 0 !important; font-size: 15px; }

.rsa-btn, .rsa a.rsa-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 9px 16px; min-height: 40px;
	background: var(--rsa-panel); color: var(--rsa-text);
	border: 1px solid var(--rsa-border-hi); border-radius: 8px;
	font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.rsa-btn:hover, .rsa a.rsa-btn:hover { border-color: var(--rsa-ink); color: var(--rsa-ink); text-decoration: none; }
.rsa-btn:disabled { opacity: .45; cursor: default; }
.rsa a.rsa-btn-red { background: var(--rsa-accent); border-color: var(--rsa-accent); color: #fff; }
.rsa a.rsa-btn-red:hover { background: var(--rsa-accent-hi); border-color: var(--rsa-accent-hi); color: #fff; }

/* List */
.rsa-list { display: flex; flex-direction: column; gap: 12px; transition: opacity .15s; }
.rsa-list.is-loading { opacity: .5; }
.rsa-card {
	position: relative; display: flex; gap: 18px; padding: 18px;
	background: var(--rsa-panel); border: 1px solid var(--rsa-border); border-radius: var(--rsa-radius);
	box-shadow: var(--rsa-shadow); transition: border-color .15s, box-shadow .15s;
}
.rsa-card:hover { border-color: var(--rsa-border-hi); box-shadow: var(--rsa-shadow-hi); }
.rsa-card.is-pinned { border-color: #f3c9c6; background: linear-gradient(90deg, var(--rsa-accent-soft), var(--rsa-panel) 35%); }
.rsa-card.is-pinned::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; background: var(--rsa-accent); border-radius: var(--rsa-radius) 0 0 var(--rsa-radius); }

.rsa-date {
	flex: none; width: 60px; align-self: flex-start;
	display: flex; flex-direction: column; align-items: center; padding: 8px 0 7px;
	background: var(--rsa-ink); color: #fff; border-radius: 9px; line-height: 1.1;
}
.rsa-date-m { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ff8a84; }
.rsa-date-d { font-size: 24px; font-weight: 800; margin: 2px 0 1px; }
.rsa-date-y { font-size: 11px; color: #a1a1aa; }

.rsa-card-main { flex: 1; min-width: 0; }
.rsa-card-title { font-size: 19px !important; font-weight: 800; line-height: 1.3; margin: 2px 0 6px !important; }
.rsa .rsa-card-title a { color: var(--rsa-ink); }
.rsa .rsa-card-title a:hover { color: var(--rsa-accent); text-decoration: none; }
.rsa-excerpt { margin: 0 !important; color: var(--rsa-text-2); font-size: 14.5px; overflow-wrap: anywhere; }

.rsa-thumb { flex: none; width: 168px; height: 112px; border-radius: 8px; overflow: hidden; background: var(--rsa-panel-2); align-self: flex-start; }
.rsa .rsa-thumb img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block; margin: 0 !important; transition: transform .25s; }
.rsa-card:hover .rsa-thumb img { transform: scale(1.04); }

.rsa-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.rsa-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.6; }
.rsa-badge-pin { color: #fff; background: var(--rsa-accent); }
.rsa-badge-new { color: #15803d; background: #e7f7ec; }
.rsa-badge-server { color: #fff; background: var(--rsa-ink); }

.rsa-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; color: var(--rsa-muted); font-size: 13px; }
.rsa-dot { opacity: .5; }
.rsa .rsa-author { display: inline-flex; align-items: center; gap: 7px; color: var(--rsa-ink); font-weight: 600; }
.rsa a.rsa-author:hover { color: var(--rsa-accent); text-decoration: none; }
.rsa .rsa-av {
	width: 24px !important; height: 24px !important; min-width: 0 !important; max-width: none !important; aspect-ratio: 1 / 1; flex: 0 0 auto;
	border-radius: 50%; object-fit: cover; border: 1px solid var(--rsa-border); margin: 0 !important; padding: 0 !important; background: var(--rsa-panel-2);
}
.rsa .rsa-more { margin-left: auto; font-weight: 700; font-size: 13px; }
.rsa .rsa-edit { margin-left: auto; padding: 3px 12px; border: 1px solid var(--rsa-border-hi); border-radius: 6px; color: var(--rsa-text); font-weight: 600; }
.rsa .rsa-edit:hover { border-color: var(--rsa-ink); text-decoration: none; color: var(--rsa-ink); }

.rsa-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.rsa-pager:empty { display: none; }
.rsa-pageinfo { color: var(--rsa-muted); font-size: 13px; }
.rsa-empty { padding: 40px 16px; text-align: center; color: var(--rsa-muted); background: var(--rsa-panel-2); border: 1px dashed var(--rsa-border-hi); border-radius: var(--rsa-radius); }

/* Featured (newest) */
.rsa-featured {
	overflow: hidden; margin-bottom: 8px;
	background: var(--rsa-panel); border: 1px solid var(--rsa-border); border-radius: 14px;
	box-shadow: var(--rsa-shadow-hi); transition: box-shadow .2s;
}
.rsa-featured:hover { box-shadow: 0 4px 8px rgba(16, 16, 20, .06), 0 16px 40px rgba(16, 16, 20, .12); }
.rsa-hero { display: block; position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: var(--rsa-ink); }
.rsa .rsa-hero img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; margin: 0 !important; transition: transform .4s; }
.rsa-featured:hover .rsa-hero img { transform: scale(1.025); }
.rsa-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--rsa-accent); }
.rsa-featured-body { padding: 22px 26px 22px; }
.rsa-featured.no-image .rsa-featured-body { border-top: 4px solid var(--rsa-accent); }
.rsa-featured-title { font-size: 28px !important; font-weight: 800; line-height: 1.2; margin: 4px 0 10px !important; }
.rsa .rsa-featured-title a { color: var(--rsa-ink); }
.rsa .rsa-featured-title a:hover { color: var(--rsa-accent); text-decoration: none; }
.rsa-featured .rsa-excerpt { font-size: 15.5px; }
.rsa-badge-latest { color: #fff; background: var(--rsa-ink); }
.rsa a.rsa-btn-read {
	margin-left: auto; padding: 8px 16px; border-radius: 8px;
	background: var(--rsa-accent); color: #fff; font-weight: 700; font-size: 14px;
}
.rsa a.rsa-btn-read:hover { background: var(--rsa-accent-hi); color: #fff; text-decoration: none; }

/* Single */
.rsa-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px !important; background: none; border: 0; padding: 4px 0; color: var(--rsa-muted); cursor: pointer; font-size: 14px; font-weight: 600; }
.rsa-back:hover { color: var(--rsa-accent); }
.rsa-post { padding: 28px 32px; background: var(--rsa-panel); border: 1px solid var(--rsa-border); border-radius: var(--rsa-radius); box-shadow: var(--rsa-shadow); }
.rsa-post-title { font-size: 32px !important; font-weight: 800; line-height: 1.2; color: var(--rsa-ink); margin: 4px 0 0 !important; overflow-wrap: anywhere; }
.rsa-post > .rsa-meta { padding-bottom: 18px; border-bottom: 1px solid var(--rsa-border); }

/* Post body typography */
.rsa-content { margin-top: 22px; font-size: 16px; line-height: 1.7; color: var(--rsa-text-2); overflow-wrap: anywhere; }
.rsa-content > *:first-child { margin-top: 0 !important; }
.rsa-content p { margin: 0 0 1em !important; }
.rsa-content strong, .rsa-content b { color: var(--rsa-ink); font-weight: 700; }
.rsa-content h1, .rsa-content h2, .rsa-content h3, .rsa-content h4 { color: var(--rsa-ink); font-weight: 800; line-height: 1.3; margin: 1.6em 0 .6em !important; }
.rsa-content h2 { font-size: 22px !important; }
.rsa-content h3 { font-size: 19px !important; }
.rsa-content ul, .rsa-content ol { margin: 0 0 1em 1.3em !important; padding: 0 !important; }
.rsa-content li { margin: .3em 0; }
.rsa-content li::marker { color: var(--rsa-accent); }
.rsa-content img { max-width: 100% !important; height: auto !important; border-radius: 8px; }
.rsa-content figure { margin: 1.2em 0 !important; }
.rsa-content blockquote { margin: 1em 0 !important; padding: 10px 16px !important; background: var(--rsa-panel-2); border: 0 !important; border-left: 3px solid var(--rsa-border-hi) !important; border-radius: 0 8px 8px 0; color: var(--rsa-muted); font-style: normal; font-size: 15px; }
.rsa-content blockquote::before, .rsa-content blockquote::after { content: none !important; }
.rsa-content blockquote cite { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: var(--rsa-ink); margin-bottom: 4px; }
.rsa-content hr { border: 0; border-top: 1px solid var(--rsa-border); margin: 2em 0; }
.rsa-content iframe { max-width: 100%; border-radius: 8px; }
.rsa-content video { display: block; width: 100%; max-height: 560px; background: #000; border-radius: 8px; }
.rsa-content .rsa-video { margin: 1.2em 0 !important; }
.rsa-content .rsa-attachments { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 1.5em; padding-top: 1.5em; border-top: 1px solid var(--rsa-border); }
.rsa-content .rsa-attachments figure { margin: 0 !important; }
.rsa-content .rsa-attachments a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--rsa-border); }
.rsa-content .rsa-attachments img { display: block; width: 100%; height: 180px !important; object-fit: cover; border-radius: 0; transition: transform .25s; }
.rsa-content .rsa-attachments a:hover img { transform: scale(1.03); }

/* Compact "latest" list */
.rsa-latest { display: flex; flex-direction: column; gap: 2px; }
.rsa-latest-h { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--rsa-ink); margin-bottom: 8px; padding-bottom: 8px; border-bottom: 2px solid var(--rsa-accent); }
.rsa-latest-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--rsa-border); }
.rsa-latest .rsa-av { width: 32px !important; height: 32px !important; }
.rsa-latest-main { min-width: 0; }
.rsa .rsa-latest-title { color: var(--rsa-ink); font-weight: 700; line-height: 1.35; }
.rsa a.rsa-latest-title:hover { color: var(--rsa-accent); text-decoration: none; }
.rsa-latest .rsa-badge { font-size: 9px; padding: 0 6px; vertical-align: 2px; }
.rsa-latest-meta { color: var(--rsa-muted); font-size: 12px; margin-top: 2px; }
.rsa .rsa-latest-all { margin-top: 8px; font-size: 13px; font-weight: 700; }
.rsa-latest-empty { color: var(--rsa-muted); font-size: 14px; }

@media (max-width: 640px) {
	.rsa-head { flex-direction: column; align-items: stretch; }
	.rsa-h { font-size: 26px !important; }
	.rsa-card { flex-wrap: wrap; gap: 12px; padding: 14px; }
	.rsa-date { width: 52px; }
	.rsa-card-main { flex: 1 1 calc(100% - 64px); }
	.rsa-thumb { width: 100%; height: 160px; order: 3; }
	.rsa-hero { aspect-ratio: 16 / 9; }
	.rsa-featured-body { padding: 16px; }
	.rsa-featured-title { font-size: 22px !important; }
	.rsa a.rsa-btn-read { margin: 8px 0 0; width: 100%; text-align: center; }
	.rsa-post { padding: 18px; }
	.rsa-post-title { font-size: 24px !important; }
	.rsa-content { font-size: 15px; }
}

/* Lightbox */
.rsa-content img { cursor: zoom-in; }
.rsa-content a:has(> img) { cursor: zoom-in; }
html.rsa-lb-open-page, html.rsa-lb-open-page body { overflow: hidden !important; }
.rsa-lb {
	position: fixed; inset: 0; z-index: 100000;
	display: flex; align-items: center; justify-content: center;
	padding: 56px 72px 64px;
	background: rgba(8, 8, 10, .8);
	-webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
	opacity: 0; transition: opacity .18s ease;
	-webkit-tap-highlight-color: transparent;
}
.rsa-lb[hidden] { display: none; }
.rsa-lb.is-open { opacity: 1; }
.rsa-lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.rsa-lb-img {
	display: block; max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto;
	border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); background: #111;
	transform: scale(.98); transition: transform .18s ease, opacity .15s ease;
}
.rsa-lb.is-open .rsa-lb-img { transform: none; }
.rsa-lb.is-loading .rsa-lb-img { opacity: .35; }
.rsa-lb-cap { color: #d4d4d8; font-size: 14px; margin-top: 10px; text-align: center; }
.rsa-lb-cap:empty { display: none; }
.rsa-lb button {
	position: absolute; display: flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .08); color: #fff; border: 0; border-radius: 50%;
	cursor: pointer; padding: 0; margin: 0; box-shadow: none; font-family: inherit; line-height: 1;
	transition: background .15s;
}
.rsa-lb button:hover { background: #e0322a; }
.rsa-lb button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rsa-lb button[hidden] { display: none; }
.rsa-lb-close { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 30px; }
.rsa-lb-nav { top: 50%; width: 52px; height: 52px; margin-top: -26px !important; font-size: 36px; }
.rsa-lb-prev { left: 12px; }
.rsa-lb-next { right: 12px; }
.rsa-lb-bar { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 18px; align-items: center; color: #a1a1aa; font-size: 13px; }
.rsa-lb-bar a { color: #d4d4d8; text-decoration: underline; }
.rsa-lb-bar a:hover { color: #fff; }
@media (max-width: 640px) {
	.rsa-lb { padding: 56px 8px 60px; }
	.rsa-lb-nav { top: auto; bottom: 8px; margin-top: 0 !important; width: 44px; height: 44px; }
	.rsa-lb-prev { left: 12px; }
	.rsa-lb-next { right: 12px; }
	.rsa-lb-img { max-height: calc(100vh - 130px); }
}

/* Stop the browser's scroll anchoring from pulling the page down when a view swaps in. */
.rsa { overflow-anchor: none; }

/* Lightbox: keep images a comfortable size instead of filling the screen. */
.rsa-lb-img { width: auto !important; height: auto !important; max-width: min(960px, 85vw) !important; max-height: min(75vh, 680px) !important; object-fit: contain; }
@media (max-width: 640px) { .rsa-lb-img { max-width: 100% !important; max-height: 70vh !important; } }
