diff --git a/kjvstudy_org/templates/reading_plans.html b/kjvstudy_org/templates/reading_plans.html
index 9c34a90..05fd896 100644
--- a/kjvstudy_org/templates/reading_plans.html
+++ b/kjvstudy_org/templates/reading_plans.html
@@ -162,10 +162,10 @@
Whether pursuing canonical familiarity through complete Bible reading or concentrating on specific portions, these schedules provide daily guidance for disciplined Scripture intake. Select a plan suited to your current season and study objectives.
-
+
Available Reading Plans
@@ -196,7 +196,7 @@
(function() {
// Load and display progress for each plan
const cards = Array.from(document.querySelectorAll('.plan-card'));
- var yourPlansSection = document.getElementById('your-plans');
+ var yourPlansSection = document.getElementById('your-reading-plans');
var yourPlansList = document.getElementById('your-plans-list');
var plansWithProgress = [];
diff --git a/kjvstudy_org/templates/stars.html b/kjvstudy_org/templates/stars.html
index 7aacb48..88b3087 100644
--- a/kjvstudy_org/templates/stars.html
+++ b/kjvstudy_org/templates/stars.html
@@ -619,11 +619,6 @@ kbd {
{% block content %}
-
-
@@ -1123,7 +1118,14 @@ kbd {
selectItem(selectedIndex <= 0 ? 0 : selectedIndex - 1);
} else if (e.key === 'ArrowLeft' || e.key === 'h') {
e.preventDefault();
- history.back();
+ // If selected item is expanded, collapse it
+ if (selectedIndex >= 0 && items[selectedIndex] && items[selectedIndex].classList.contains('expanded')) {
+ var url = items[selectedIndex].getAttribute('data-url');
+ if (url) toggleItem(url);
+ } else if (selectedIndex < 0) {
+ // Nothing selected, go back
+ history.back();
+ }
} else if (e.key === 'ArrowRight' || e.key === 'l') {
// Expand selected item
if (selectedIndex >= 0 && items[selectedIndex]) {