/* T5 Scripture Planner — deliberately warm iron / parchment; no blue structural accents. */
body[data-site-page="scriptures"] main{padding-bottom:18px}
.scripture-masthead{background:
  linear-gradient(90deg,rgba(14,11,8,.96),rgba(24,17,12,.82) 58%,rgba(73,31,21,.42)),
  radial-gradient(circle at 83% 35%,rgba(197,151,77,.17),transparent 24rem),
  #16120e}
.scripture-overview{padding-top:54px}
.scripture-control-grid{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:12px;margin-bottom:18px}
.scripture-control-card{padding:17px;border-radius:8px!important;box-shadow:none!important}
.scripture-control-card label,.control-label{display:block;color:#dfd3b8;font-size:11px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;margin-bottom:8px}
.scripture-control-card select,.scripture-control-card input{width:100%;min-height:44px;background:#100d0a!important;border:1px solid #51463a!important;color:#eee4d2!important;border-radius:3px!important;padding:9px 11px;outline:none}
.scripture-control-card select:focus,.scripture-control-card input:focus{border-color:#b78b47!important;box-shadow:0 0 0 2px rgba(183,139,71,.16)}
.scripture-control-card small{display:block;color:#8e877d;font-size:10px;line-height:1.45;margin-top:8px}
.scripture-quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-content:start}
.scripture-quick-actions .control-label{grid-column:1/-1}
.scripture-quick-actions button{min-height:44px}
.scripture-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.scripture-kpi{position:relative;min-width:0;padding:17px 16px 15px;border:1px solid #40372e;background:linear-gradient(150deg,#211b15,#12100d);box-shadow:inset 0 0 0 2px #0d0b09;clip-path:polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px)}
.scripture-kpi::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#6f5834}
.scripture-kpi.primary-kpi::before{background:linear-gradient(#d2a457,#7f3027)}
.scripture-kpi span,.scripture-kpi strong,.scripture-kpi small{display:block}
.scripture-kpi span{color:#aaa196;font-size:9px;font-weight:850;letter-spacing:.07em;text-transform:uppercase;min-height:27px}
.scripture-kpi span b{color:#d3bd88}
.scripture-kpi strong{font:700 clamp(24px,2.3vw,34px)/1 Georgia,"Times New Roman",serif;color:#efdfb9;margin-top:8px;white-space:nowrap}
.scripture-kpi.primary-kpi strong{color:#f0cc73}
.scripture-kpi small{color:#817a72;font-size:9px;margin-top:7px;line-height:1.4}
.scripture-baseline-note{margin:13px 0 0;padding:10px 12px;border-left:2px solid #806238;background:rgba(30,24,18,.58);color:#9d958b;font-size:10px;line-height:1.55}
.scripture-baseline-note strong{color:#d7bf86}
.scripture-section-total{min-width:220px;text-align:right;padding:11px 14px;border:1px solid #43392f;background:#15120e}
.scripture-section-total span,.scripture-section-total strong,.scripture-section-total small{display:block}
.scripture-section-total span{color:#918980;font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.scripture-section-total strong{font:700 25px Georgia,"Times New Roman",serif;color:#e8cf8a;margin-top:3px}
.scripture-section-total small{color:#7f7870;font-size:9px;margin-top:2px}
.scripture-research-groups{display:grid;gap:18px}
.scripture-research-group{border:1px solid #3d352d;background:#12100d;box-shadow:0 16px 34px rgba(0,0,0,.18)}
.scripture-research-group-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border-bottom:1px solid #40372d;background:linear-gradient(90deg,#2a2118,#17130f 65%,#211610)}
.scripture-research-group-head h3{margin:0;font:700 20px Georgia,"Times New Roman",serif;color:#e5d5b1}
.scripture-research-group-head span{color:#a38656;font-size:9px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}
.scripture-research-group-head strong{font:700 17px Georgia,"Times New Roman",serif;color:#d8b969;white-space:nowrap}
.scripture-research-table-wrap{overflow-x:auto}
.scripture-research-table,.scripture-source-table{width:100%;border-collapse:collapse;min-width:850px}
.scripture-research-table th,.scripture-source-table th{text-align:left;padding:9px 10px;background:#191510;border-bottom:1px solid #443a31;color:#8f877e;font-size:8px;text-transform:uppercase;letter-spacing:.09em;white-space:nowrap}
.scripture-research-table td,.scripture-source-table td{padding:9px 10px;border-bottom:1px solid #2e2923;color:#bdb4a7;font-size:11px;vertical-align:middle}
.scripture-research-table tr:last-child td,.scripture-source-table tr:last-child td{border-bottom:0}
.scripture-research-table tr:hover td,.scripture-source-table tr:hover td{background:rgba(197,155,84,.035)}
.scripture-research-table .research-name{min-width:260px;color:#ddd1b7;font-weight:750}
.research-name small{display:block;color:#777068;font-size:8px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;margin-top:3px}
.research-target-chip{display:inline-block;margin-left:7px;padding:2px 5px;border:1px solid #806132;background:#251c11;color:#e0be70;font-size:7px;letter-spacing:.08em;text-transform:uppercase;vertical-align:1px}
.research-level-select{width:92px;min-height:34px;padding:5px 7px;background:#100d0a;color:#e2d7c4;border:1px solid #4a4036;border-radius:3px}
.research-number{font-variant-numeric:tabular-nums;color:#c4b99f!important;white-space:nowrap}
.research-remaining{color:#e0c47e!important;font-weight:800}
.research-level-costs{max-width:420px;color:#8e867c!important;font-size:9px!important;line-height:1.45}
.research-progress-cell{min-width:130px}
.research-progress-track{height:5px;background:#28221c;border:1px solid #372f28;overflow:hidden}
.research-progress-track>span{display:block;height:100%;background:linear-gradient(90deg,#765827,#c79b50);width:0}
.research-progress-cell small{display:block;color:#7c756d;font-size:8px;margin-top:4px}
.scripture-source-card{padding:0;border-radius:6px!important;overflow:hidden;box-shadow:none!important}
.scripture-source-toolbar{display:flex;gap:8px;padding:12px;border-bottom:1px solid #40372e;background:#191510}
.scripture-source-table-wrap{overflow-x:auto}
.scripture-source-table{min-width:900px}
.scripture-source-table th:first-child,.scripture-source-table td:first-child{width:52px;text-align:center}
.scripture-source-toggle{width:16px;height:16px;accent-color:#c79a4e}
.source-name{color:#ddd0b5!important;font-weight:800}
.source-free{color:#a4b18f!important}.source-paid{color:#d5b879!important}
.source-note{max-width:330px;color:#8d857b!important;font-size:9px!important;line-height:1.45}
.scripture-note-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.scripture-note-grid article{padding:18px;border-radius:7px!important;box-shadow:none!important}
.scripture-note-grid strong{font:700 18px Georgia,"Times New Roman",serif;color:#e4d2aa}
.scripture-note-grid p{margin:8px 0 0;color:#9b9389;font-size:11px;line-height:1.6}
body[data-site-page="scriptures"] .footer{margin-top:28px}
body[data-site-page="scriptures"] .toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1250px){.scripture-kpi-grid{grid-template-columns:repeat(3,1fr)}.scripture-control-grid{grid-template-columns:1fr 1fr}.scripture-quick-actions{grid-column:1/-1}}
@media(max-width:900px){.scripture-control-grid{grid-template-columns:1fr}.scripture-quick-actions{grid-column:auto}.scripture-kpi-grid{grid-template-columns:repeat(2,1fr)}.scripture-note-grid{grid-template-columns:1fr}.scripture-section-total{min-width:0;text-align:left}.scripture-research-section .section-title-row,.scripture-source-section .section-title-row{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.scripture-kpi-grid{grid-template-columns:1fr}.scripture-quick-actions{grid-template-columns:1fr}.scripture-source-toolbar{display:grid;grid-template-columns:1fr}.scripture-source-toolbar button{width:100%}.scripture-kpi strong{font-size:30px}}
