/* Source-reading additions. Scoped to the religion textbook; no navigation changes. */
.material-photo{margin:0 0 44px;border:1px solid #394047;border-radius:12px;overflow:hidden;background:#151a1e}
.material-image-link{display:block;background:#e6e1d7;padding:18px;text-align:center}
.material-image-link img{display:block;width:100%;height:auto;max-height:440px;object-fit:contain;margin:auto}
.material-photo figcaption{padding:22px 26px}
.material-label{display:block;font-size:11px!important;font-weight:700;letter-spacing:.12em;line-height:1.7!important;color:#dcc493!important;margin:0 0 10px!important}
.chapter-prose .material-caption{font-size:16px;line-height:1.9;margin:0 0 10px;font-weight:650;color:#ece8df}
.chapter-prose .material-date,.chapter-prose .material-note,.material-note{font-size:13px;line-height:1.9;color:#c2c1bd;margin:12px 0}
.chapter-prose .material-credit,.material-credit{font-size:11px;line-height:1.9;color:#aeb8bf;margin:12px 0 0}
.material-credit a,.material-sources a{color:#c5dce6;text-decoration-thickness:1px}
.material-read-link{display:inline-flex;align-items:center;min-height:44px;font-size:13px;color:#e3ca96;margin-top:8px}
.material-enlarge-note{display:block;color:#aeb8bf;font-size:11px}
.chapter-prose>.material-reading,.chapter-prose>.material-comparison,.chapter-prose>.material-map{margin:48px 0;scroll-margin-top:24px}
.chapter-prose .material-reading{padding:28px;border:1px solid #414a49;border-top:3px solid #bea678;border-radius:8px;background:#141b1e}
.chapter-prose .material-reading h2,.chapter-prose .material-comparison h2,.chapter-prose .material-map h2{display:block;font-size:23px;line-height:1.7;margin:0 0 20px}
.material-points{padding-left:22px;font-size:var(--prose-size);line-height:2}
.material-points li{padding:5px 0}
.material-points li::marker{color:#c7b386}
.material-question{border-top:1px solid #394340;margin-top:24px;padding-top:20px}
.material-question h3{font-size:15px;color:#dfc796;margin:0 0 10px}
.chapter-prose .material-question>p{font-size:var(--prose-size);margin:0 0 18px}
.material-answer{border:1px solid #42514f;border-radius:8px;overflow:hidden;background:#18221f}
.material-answer>summary{cursor:pointer;min-height:48px;padding:12px 18px;font-size:14px;font-weight:650;color:#dde5dc}
.material-answer>div{padding:0 18px 18px}
.chapter-prose .material-answer p{font-size:var(--prose-size);margin:0;line-height:2}
.material-sources{border-top:1px solid #344144;margin-top:22px;padding-top:14px}
.chapter-prose .material-sources>p{font-size:11px;color:#aeb8bf;margin:0 0 6px;line-height:1.8}
.material-sources ul{font-size:12px;line-height:1.9;padding-left:18px;margin:0}
.material-sources li{padding:3px 0}
.material-table-wrap{width:100%;max-width:100%;overflow-x:auto;border:1px solid #3c4449;border-radius:9px;overscroll-behavior-x:contain;margin:20px 0 14px}
.material-table{border-collapse:collapse;width:100%;min-width:600px;font-size:14px;line-height:1.9;background:#12171b}
.material-table caption{padding:13px 18px;text-align:left;font-size:12px;color:#c5c4bb;background:#1b2328}
.material-table th,.material-table td{padding:16px;text-align:left;vertical-align:top;border-bottom:1px solid #354047;border-right:1px solid #354047;white-space:normal;overflow-wrap:anywhere}
.material-table thead th{background:#232e33;color:#dfd4b9;font-size:12px;font-weight:700}
.material-table tbody th{width:23%;font-weight:650;color:#dfd4b9}
.material-table tbody td{color:#d2d5d4}
.material-table tr>:last-child{border-right:0}.material-table tbody tr:last-child>*{border-bottom:0}
.material-map-wrap{max-width:100%;overflow-x:auto;border:1px solid #3a4950;border-radius:10px;overscroll-behavior-x:contain}
.material-map-wrap img{display:block;width:100%;min-width:680px;height:auto}
.chapter-prose .material-scroll-note{font-size:12px;color:#aeb8bf;margin-bottom:12px;line-height:1.8}
.volume-materials,.material-review{margin:38px 0;padding-top:30px;border-top:1px solid #394047}
.volume-materials h2,.material-review h2{font-size:23px;margin:0 0 14px}
.volume-materials>p:not(.material-label),.material-review>p:not(.material-label),.series-materials>p:not(.material-label){font-size:14px;line-height:2;color:#c5c7c5;max-width:850px}
.material-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}
.material-card{display:flex;flex-direction:column;min-width:0;border:1px solid #38434a;border-radius:9px;overflow:hidden;text-decoration:none;background:#151c21;color:#e9e7df}
.material-card:hover{border-color:#cfbd94;color:#e9e7df}
.material-card img{display:block;width:100%;height:180px;object-fit:contain;background:#e6e1d7;padding:12px}
.material-card-body{display:flex;flex:1;flex-direction:column;padding:18px;gap:8px}
.material-card-body .material-label{margin:0!important}
.material-card strong{font-size:15px;line-height:1.8;font-weight:650}
.material-card-body>span:last-child{font-size:12px;color:#cbb88e;margin-top:auto;padding-top:5px}
.series-materials .material-gallery{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.series-materials .material-card img{height:165px}
.series-materials .material-card-body{padding:16px}
.series-materials .material-card strong{font-size:14px}
.material-directory{margin:24px 0;border:1px solid #38434a;border-radius:10px;background:#141a1e}
.material-directory summary{cursor:pointer;min-height:48px;padding:16px 20px;font-size:15px;color:#dfd4b9}
.material-directory>div{padding:0 24px 24px}
.material-directory h3{font-size:16px;margin:24px 0 10px}
.material-directory ul,.material-review ol{font-size:14px;line-height:2;padding-left:23px}
.material-directory li,.material-review li{padding:6px 0}
@media(max-width:1000px){.series-materials .material-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){
 .material-photo{margin-bottom:32px}.material-image-link{padding:12px}.material-image-link img{max-height:340px}
 .material-photo figcaption{padding:18px}.chapter-prose .material-caption{font-size:15px}
 .chapter-prose .material-reading{padding:20px 18px}.chapter-prose .material-reading h2,.chapter-prose .material-comparison h2,.chapter-prose .material-map h2{font-size:20px}
 .material-table{font-size:13px;min-width:570px}.material-table td,.material-table th{padding:13px}
 .material-gallery,.series-materials .material-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .material-card img,.series-materials .material-card img{height:145px;padding:9px}
 .material-card-body,.series-materials .material-card-body{padding:13px}.material-card strong{font-size:14px}
 .material-directory>div{padding:0 18px 18px}.volume-materials h2,.material-review h2{font-size:21px}
}
@media(max-width:360px){.material-gallery,.series-materials .material-gallery{grid-template-columns:1fr}.material-card img{height:190px}}
@media print{
 .material-photo,.chapter-prose .material-reading,.material-answer,.material-card,.material-directory{background:#fff;color:#222;border-color:#999}
 .material-photo{break-inside:avoid}.material-image-link{background:#f4f2ed;padding:10px}.material-image-link img{max-height:270px}
 .material-photo figcaption{padding:12px}.material-label,.material-question h3,.chapter-prose .material-caption,.chapter-prose .material-date,.chapter-prose .material-note,.material-credit,.material-enlarge-note,.material-sources a{color:#333!important}
 .material-read-link,.material-enlarge-note,.material-scroll-note{display:none}
 .chapter-prose .material-reading{padding:18px}.material-table-wrap,.material-map-wrap{overflow:visible;border-color:#aaa}
 .material-table{min-width:0;background:#fff;font-size:9pt;table-layout:fixed}.material-table th,.material-table td{padding:8px;color:#222!important;background:#fff!important;border-color:#bbb}
 .material-table caption{color:#222;background:#eee}.material-table thead{display:table-header-group}.material-table tr{break-inside:avoid}
 .material-map-wrap img{width:100%;min-width:0}.material-gallery,.series-materials .material-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
 .material-card img{height:130px}.material-card-body,.material-card strong,.material-card-body>span:last-child{color:#222}
 .material-answer>summary,.material-directory summary,.volume-materials>p:not(.material-label),.material-review>p:not(.material-label),.series-materials>p:not(.material-label),.chapter-prose .material-sources>p{color:#333}
 .material-sources{font-size:9pt}.material-sources a:after{content:" (" attr(href) ")";font-size:8pt;word-break:break-all}
}
