/* --- Isolated Custom Container --- */
.books-resources-container {
	width: 100% !important;
	max-width: 1400px;
	background: #FFF;
	margin: 0 auto;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(67, 40, 28, 0.05);
	display: block !important;
	clear: both !important;
	box-sizing: border-box;
}

hr {
	border: none;
	border-top: 1px solid #dddad3;
	margin: 1px;
}

/* --- Intro Text Styling --- */
.books-intro-text {
	font-size: 16px;
	line-height: 1.6;
	color: #43281c;
	margin-bottom: 20px;
}

.books-foundational-note {
	background-color: #faf9f6;
	border-left: 4px solid #bfa89e;
	padding: 15px 20px;
	margin-bottom: 35px;
	font-size: 15px;
	line-height: 1.5;
	color: #43281c;
	border-radius: 0 6px 6px 0;
}

.books-foundational-note a {
	color: #8c6d53;
	text-decoration: underline;
	font-weight: bold;
}

.books-foundational-note a:hover {
	color: #43281c;
}

/* --- Section Dividers --- */
.books-resources-container h2 {
	font-size: 18px;
	color: #8c6d53;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 30px 0 15px 0;
	padding-bottom: 5px;
	border-bottom: 2px solid #f2efe9;
	width: 100%;
}

.books-category-grid h2:first-of-type {
	margin-top: 0;
}

/* --- Accordion Grid Architecture --- */
.books-category-grid {
	display: block !important;
	width: 100% !important;
	clear: both !important;
	float: none !important;
	box-sizing: border-box;
}

details {
	background-color: #fff;
	border: 1px solid #dddad3;
	border-radius: 6px;
	margin-bottom: 16px;
	transition: all 0.3s ease;
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
}

details[open] {
	border-color: #bfa89e;
	box-shadow: 0 3px 10px rgba(140, 109, 83, 0.08);
}

summary {
	font-weight: bold;
	padding: 14px 18px;
	cursor: pointer;
	outline: none;
	user-select: none;
	color: #43281c;
	background-color: #fcfbfa;
	font-size: 16px;
	transition: background-color 0.2s ease;
}

summary:hover {
	background-color: #f2efe9;
}

details[open] summary {
	border-bottom: 1px solid #dddad3;
	background-color: #f2efe9;
}

/* --- Book List Formatting --- */
ul.book-list {
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
}

ul.book-list li {
	padding: 14px 15px;
	border-bottom: 1px solid #e8e4db;
	display: flex;
	justify-content: space-between;
	align-items: middle;
	font-size: 15px;
	color: #43281c;
	box-sizing: border-box;
}

ul.book-list li:last-child {
	border-bottom: none;
}

ul.book-list li:nth-child(even) {
	background-color: #faf9f6;
}

.book-info-block {
	flex: 1;
	padding-right: 20px;
}

.book-title-link {
	color: #43281c;
	text-decoration: none;
	font-weight: bold;
}

.book-title-link:hover {
	text-decoration: underline;
}

.book-author-text {
	font-size: 14px;
	color: #7a756d;
	font-weight: normal;
	display: inline-block;
	margin-left: 8px;
}

.book-action-cell {
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.book-action-cell a {
	display: inline-block;
	color: #8c6d53;
	text-decoration: none;
	font-weight: bold;
	border: 1px solid #bfa89e;
	padding: 6px 14px;
	border-radius: 4px;
	background-color: #fff;
	font-size: 13px;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.book-action-cell a:hover {
	background-color: #8c6d53;
	color: #fff;
}

/* ==========================================================================
   Display Breakpoints & Layout Shifts
   ========================================================================== */

/* --- Desktop Layout: Two column master grid format --- */
@media screen and (min-width: 992px) {
	.books-category-grid {
		display: grid !important;
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 25px !important;
		align-items: start;
	}
	
	.accordion-section {
		margin-bottom: 0;
	}
}

/* --- Mobile Responsive Rules --- */
@media screen and (max-width: 640px) {
	ul.book-list li {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.book-info-block {
		padding-right: 0;
		margin-bottom: 10px;
		width: 100%;
	}
	
	.book-author-text {
		display: block;
		margin-left: 0;
		margin-top: 4px;
	}
	
	.book-action-cell {
		width: 100%;
	}
	
	.book-action-cell a {
		display: block;
		text-align: center;
		background: #8c6d53;
		color: #fff;
		padding: 10px;
		width: 100%;
		box-sizing: border-box;
	}
}


/* --- Isolated Custom Container --- */
.articles-resources-container {
	width: 100% !important;
	max-width: 1400px;
	background: #FFF;
	margin: 0 auto;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(67, 40, 28, 0.05);
	display: block !important; /* Overrides any external layout grids */
	clear: both !important;
	box-sizing: border-box;
}

hr {
	border: none;
	border-top: 1px solid #dddad3;
	margin: 1px;
}

/* --- Accordion Grid Architecture --- */
.articles-grid {
	display: block !important;
	width: 100% !important;
	clear: both !important;
	float: none !important;
	box-sizing: border-box;
}

details {
	background-color: #fff;
	border: 1px solid #dddad3;
	border-radius: 6px;
	margin-bottom: 16px;
	transition: all 0.3s ease;
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
}

details[open] {
	border-color: #bfa89e;
	box-shadow: 0 3px 10px rgba(140, 109, 83, 0.08);
}

summary {
	font-weight: bold;
	padding: 14px 18px;
	cursor: pointer;
	outline: none;
	user-select: none;
	color: #43281c;
	background-color: #fcfbfa;
	font-size: 16px;
	transition: background-color 0.2s ease;
}

summary:hover {
	background-color: #f2efe9;
}

details[open] summary {
	border-bottom: 1px solid #dddad3;
	background-color: #f2efe9;
}

/* --- Document Lists --- */
.articles-grid table {
	font-size: 15px;
	color: #43281c;
	width: 100%;
	border-collapse: collapse;
}

td {
	padding: 14px 15px;
	vertical-align: middle;
	border-bottom: 1px solid #e8e4db;
}

.articles-grid table tr:last-child td {
	border-bottom: none;
}

.articles-grid table tr:nth-child(even) {
	background-color: #faf9f6;
}

.article-title {
	font-size: 15px;
	color: #43281c;
}

.author-text {
	font-size: 14px;
	color: #7a756d;
	font-weight: normal;
	display: inline-block;
	margin-left: 8px;
}

td.pdf-link a {
	display: inline-block;
	color: #8c6d53;
	text-decoration: none;
	font-weight: bold;
	border: 1px solid #bfa89e;
	padding: 6px 16px;
	border-radius: 4px;
	background-color: #fff;
	transition: all 0.2s ease;
}

td.pdf-link a:hover {
	background-color: #8c6d53;
	color: #fff;
}

/* ==========================================================================
   Display Breakpoints & Layout Shifts
   ========================================================================== */

/* --- Desktop Layout: Two column grid format --- */
@media screen and (min-width: 992px) {
	.articles-grid {
		display: grid !important;
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 20px !important;
		align-items: start;
	}
	
	details {
		margin-bottom: 0;
	}
}

/* --- Mobile Responsive Rules --- */
@media screen and (max-width: 574px) {
	.articles-grid table, .articles-grid tr, .articles-grid td {
		display: block;
		width: 100% !important;
		box-sizing: border-box;
	}
	
	.articles-grid tr {
		border-bottom: 1px solid #e8e4db;
		padding: 15px 10px;
	}
	
	.articles-grid tr:last-child {
		border-bottom: none;
	}
	
	.articles-grid td {
		border-bottom: none;
		padding: 4px 0;
	}
	
	.article-title {
		font-size: 16px;
	}
	
	.author-text {
		display: block;
		margin-left: 0;
		margin-top: 4px;
	}
	
	td.pdf-link {
		margin-top: 10px;
	}
	
	td.pdf-link a {
		display: block;
		text-align: center;
		background: #8c6d53;
		color: #fff;
		padding: 10px;
		font-size: 14px;
	}
}


/* --- Isolated Custom Container --- */
.music-resources-container {
	width: 100% !important;
	max-width: 1400px;
	background: #FFF;
	margin: 0 auto;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(67, 40, 28, 0.05);
	display: block !important; /* Overrides any external flex grid layout */
	clear: both !important;
	box-sizing: border-box;
}

/* Force the intro text block to claim the full horizontal row alone */
.intro-text {
	width: 100% !important;
	display: block !important;
	clear: both !important;
	float: none !important;
	margin-bottom: 30px !important;
}

.intro-text p {
	font-size: 16px;
	line-height: 1.6em;
	color: #43281c;
	margin: 0;
}

hr {
	border: none;
	border-top: 1px solid #dddad3;
	margin: 1px;
}

/* --- Accordion Grid Architecture --- */
.music-grid {
	display: block !important;
	width: 100% !important;
	clear: both !important;
	float: none !important;
	box-sizing: border-box;
}

details {
	background-color: #fff;
	border: 1px solid #dddad3;
	border-radius: 6px;
	margin-bottom: 16px;
	transition: all 0.3s ease;
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
}

details[open] {
	border-color: #bfa89e;
	box-shadow: 0 3px 10px rgba(140, 109, 83, 0.08);
}

summary {
	font-weight: bold;
	padding: 14px 18px;
	cursor: pointer;
	outline: none;
	user-select: none;
	color: #43281c;
	background-color: #fcfbfa;
	font-size: 16px;
	transition: background-color 0.2s ease;
}

summary:hover {
	background-color: #f2efe9;
}

details[open] summary {
	border-bottom: 1px solid #dddad3;
	background-color: #f2efe9;
}

/* --- Track Lists --- */
.music-grid table {
	font-size: 15px;
	color: #43281c;
	width: 100%;
	border-collapse: collapse;
}

td {
	padding: 12px 15px;
	vertical-align: middle;
	border-bottom: 1px solid #e8e4db;
}

.music-grid table tr:last-child td {
	border-bottom: none;
}

.music-grid table tr:nth-child(even) {
	background-color: #faf9f6;
}

.sermon-title {
	font-size: 15px;
	color: #43281c;
}

td.speaker a.speaker {
	color: #606c38;
	text-decoration: none;
	font-weight: bold;
}

td.speaker a.speaker:hover {
	text-decoration: underline;
}

td.pdf-link a {
	color: #8c6d53;
	text-decoration: none;
	font-weight: bold;
}

td.pdf-link a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Display Breakpoints & Layout Shifts
   ========================================================================== */

/* --- Desktop Layout: Two column grid starts cleanly below the text --- */
@media screen and (min-width: 992px) {
	.music-grid {
		display: grid !important;
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 20px !important;
		align-items: start;
	}
	
	details {
		margin-bottom: 0;
	}
}

/* --- Mobile Responsive Rules --- */
@media screen and (max-width: 574px) {
	.music-grid table, .music-grid tr, .music-grid td {
		display: block;
		width: 100% !important;
		box-sizing: border-box;
	}
	
	.music-grid tr {
		border-bottom: 1px solid #e8e4db;
		padding: 15px 10px;
	}
	
	.music-grid tr:last-child {
		border-bottom: none;
	}
	
	.music-grid td {
		border-bottom: none;
		padding: 4px 0;
	}
	
	.sermon-title {
		font-size: 16px;
		margin-bottom: 8px;
	}
	
	td.speaker, td.pdf-link {
		display: inline-block;
		width: 48% !important;
		margin-top: 6px;
	}
	
	td.pdf-link {
		float: right;
	}
	
	td.speaker a.speaker {
		display: block;
		text-align: center;
		background: #606c38;
		color: #fff !important;
		padding: 10px;
		border-radius: 4px;
		font-size: 14px;
	}
	
	td.pdf-link a {
		display: block;
		text-align: center;
		background: #f2efe9;
		color: #8c6d53 !important;
		padding: 9px;
		border-radius: 4px;
		font-size: 14px;
		border: 1px solid #e8e4db;
	}
}
