/* Renewed Belief Scripture Index: matches the Year Through the Story companion (navy, gold, Anton + Archivo). */
.rbsi {
	--rbsi-navy: #1F3864;
	--rbsi-gold: #C9A227;
	--rbsi-ink: #1A1A1A;
	--rbsi-text: #4a4a4a;
	--rbsi-muted: #8a8a8a;
	--rbsi-line: #e3e3e3;
	--rbsi-tint: #f3f5f9;
	font-family: Archivo, sans-serif;
	color: var(--rbsi-text);
	line-height: 1.55;
}
.rbsi-page .rbsi {
	max-width: 960px;
	margin: 0 auto;
	padding: 8px 0 56px;
	box-sizing: border-box;
}
.rbsi *, .rbsi *::before, .rbsi *::after { box-sizing: border-box; }
.rbsi a { color: var(--rbsi-navy); text-decoration: none; }
.rbsi a:hover { text-decoration: underline; }
.rbsi ul, .rbsi ol { list-style: none; margin: 0; padding: 0; }
.rbsi li { margin: 0; }

.rbsi-kicker {
	font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--rbsi-gold); margin: 0 0 8px;
}
.rbsi h1, .rbsi h2 {
	font-family: Anton, Impact, sans-serif; font-weight: 400; color: var(--rbsi-navy);
	letter-spacing: .01em; text-transform: uppercase; margin: 0;
}
.rbsi h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; }
.rbsi h2 { font-size: 22px; line-height: 1.2; margin-bottom: 16px; }
.rbsi-head { margin-bottom: 36px; }
.rbsi-lede { font-size: 17px; margin: 12px 0 0; max-width: 620px; }

.rbsi-crumbs { font-size: 13px; color: var(--rbsi-muted); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.rbsi-crumbs a { color: var(--rbsi-muted); }
.rbsi-crumbs span:last-child { color: var(--rbsi-ink); }

/* Book grid */
.rbsi-testament { margin-bottom: 40px; }
.rbsi-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.rbsi-book {
	display: flex; flex-direction: column; gap: 2px; height: 100%;
	padding: 10px 12px; border: 1px solid var(--rbsi-line); border-radius: 6px; background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
a.rbsi-book:hover { border-color: var(--rbsi-navy); box-shadow: 0 2px 8px rgba(31,56,100,.08); text-decoration: none; }
.rbsi-book-name { font-weight: 600; color: var(--rbsi-ink); font-size: 15px; }
.rbsi-count { font-size: 12px; color: var(--rbsi-gold); font-weight: 600; }
.rbsi-book.is-empty { background: transparent; border-style: dashed; }
.rbsi-book.is-empty .rbsi-book-name { color: #b5b5b5; font-weight: 500; }

/* Chapter grid */
.rbsi-chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; margin-bottom: 10px; }
.rbsi-ch {
	display: flex; align-items: center; justify-content: center; height: 46px;
	border-radius: 6px; font-weight: 600; font-size: 15px;
	background: var(--rbsi-tint); color: var(--rbsi-navy); border: 1px solid transparent;
}
a.rbsi-ch:hover { border-color: var(--rbsi-navy); text-decoration: none; }
.rbsi-ch.has-main { background: var(--rbsi-navy); color: #fff; }
.rbsi-ch.has-main:hover { background: #162a4d; }
.rbsi-ch.is-empty { background: transparent; color: #c4c4c4; font-weight: 400; border: 1px dashed var(--rbsi-line); }
.rbsi-legend { font-size: 12px; color: var(--rbsi-muted); display: flex; gap: 6px; align-items: center; margin: 0 0 40px; }
.rbsi-legend .rbsi-ch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.rbsi-legend .rbsi-ch:first-child { margin-left: 0; }

/* Post cards */
.rbsi-section { margin-top: 8px; margin-bottom: 40px; }
.rbsi-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.rbsi-card { border: 1px solid var(--rbsi-line); border-top: 3px solid var(--rbsi-gold); border-radius: 6px; padding: 16px 18px; background: #fff; display: flex; flex-direction: column; }
.rbsi-card h3 { font-family: Archivo, sans-serif; font-size: 18px; font-weight: 700; line-height: 1.3; margin: 0 0 8px; }
.rbsi-card h3 a { color: var(--rbsi-ink); }
.rbsi-card-refs { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--rbsi-navy); margin: 0 0 6px; text-transform: uppercase; }
.rbsi-card-excerpt { font-size: 14px; margin: 0 0 12px; flex: 1; }
.rbsi-card-date { font-size: 12px; color: var(--rbsi-muted); margin: 0; }

.rbsi-mentions li { padding: 9px 0; border-bottom: 1px solid var(--rbsi-line); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.rbsi-mentions li a { font-weight: 600; }
.rbsi-refs { font-size: 13px; color: var(--rbsi-muted); }
.rbsi-empty { font-size: 16px; color: var(--rbsi-muted); }

.rbsi-pager { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rbsi-line); padding-top: 18px; font-weight: 600; }

/* Box at the end of posts */
.rbsi-postbox { margin: 40px 0 0; padding: 18px 20px; background: var(--rbsi-tint); border-left: 4px solid var(--rbsi-navy); border-radius: 4px; }
.rbsi-postbox p { margin: 0; }
.rbsi-postbox-main { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px !important; }
.rbsi-postbox-main a { background: var(--rbsi-navy); color: #fff !important; padding: 5px 12px; border-radius: 14px; font-size: 14px; font-weight: 600; }
.rbsi-postbox-main a:hover { background: #162a4d; text-decoration: none; }
.rbsi-postbox-also { font-size: 14px; margin-bottom: 10px !important; }
.rbsi-postbox-also span { color: var(--rbsi-muted); }
.rbsi-postbox-more { font-size: 13px; }

@media (max-width: 600px) {
	.rbsi-page .rbsi { padding: 8px 0 40px; }
	.rbsi-books { grid-template-columns: repeat(2, 1fr); }
	.rbsi-chapters { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
	.rbsi-ch { height: 40px; }
}
