/* CSS Reset for consistent rendering */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, serif;
  background-color: #f9f9f9;
  padding: clamp(15px, 4vw, 20px);
/*  display: flex;
  justify-content: center; */
  display: block;
  min-height: 100vh;
  overflow-x: hidden;
}
/*
.devotional-container {
  background: #ffffff;
  padding: clamp(20px, 5vw, 30px) clamp(20px, 5vw, 30px) clamp(25px, 5vw, 35px);  
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
  display: block;  
  word-break: break-word;  
}
*/
.devotional-container {
    background: #ffffff;
    padding: clamp(20px, 5vw, 30px) clamp(20px, 5vw, 30px) clamp(25px, 5vw, 35px);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    height: auto;
  /*  min-height: 100vh; /* Changed from min-height: 0 */
    min-height: auto;

    overflow: visible; /* Changed from overflow: hidden */
    display: block;
    word-break: break-word;
    
}





h1, h2, h3, h4 {
  color: #333333;
}

h1, .devotion-title {
  text-align: center;
  color: darkblue;
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  margin-bottom: 0.3em;
}

.devotion-subtitle {
  text-align: center;
  font-style: italic;
  font-size: clamp(1rem, 3vw, 1.25rem);
  margin-bottom: 1em;
}

h2 {
  margin-top: 2.5rem;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.3rem;
  font-size: clamp(1.3rem, 3vw, 1.5rem);
}

h3 {
  margin-top: 1.8rem;
  font-size: clamp(1.2rem, 3vw, 1.3rem);
}

h4 {
  margin-top: 1.8rem;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.devotional-container h3 {
  border-bottom: none;
}

p {
  line-height: 1.6;
  margin-top: 0.9rem;
}

ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

ul li {
  margin-bottom: 0.3rem;
  line-height: 1.6;
}

blockquote {
  border-left: 3px solid #a4c2f4;
  background-color: #f8fafc;
  padding: 1rem 1rem 1rem 1.5rem;
  margin: 1.5rem 0;
  color: #1f2937;
  font-style: italic;
  max-width: 100%;
}

.key-verse {
  background-color: #eaf4f4;
  padding: 1rem;
  margin: 1rem 0;
  font-style: italic;
}

.devotion-footer {
  text-align: center;
  color: darkblue;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  box-sizing: border-box;
}
.devotion-footer {
    position: relative;    /* REQUIRED for absolute children */
}
.devotion-footer a {
  color: darkblue;
  text-decoration: none;
}
.devotion-footer .copyright {
    margin-top: 0.45rem;
    font-size: 0.8rem;
    color: #555;
    text-align: center;
}

.devotion-footer a:hover {
  text-decoration: underline;
}
/* Invisible hotspot for verification tap */
.devotion-footer {
  position: relative; /* enables absolutely-positioned child */
}


.v-hotspot {
  position: absolute;
  bottom: 0;          /* touchable bottom edge */
  right: 0;           /* bottom-right */
  width: 60px;        /* bigger hit area */
  height: 60px;
  opacity: 0;
  z-index: 9999;      /* ensure it's above all footer text */
  pointer-events: auto;  /* allow taps */
}

.menu-list {
  list-style-type: none;
  padding-left: 0;
}

.menu-list li {
  margin-bottom: 1.5rem;
}

.menu-list a {
  text-decoration: none;
  color: inherit;
}

/* Key Thoughts & Takeaways Accordion */
.devotion-extras {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  margin-bottom: 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

.devotion-extras summary {
  cursor: pointer;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: bold;
  color: #1e3a8a;
  outline: none;
}

.devotion-extras summary::after {
  content: " ▾";
  font-weight: normal;
  transition: transform 0.2s ease;
}

.devotion-extras[open] summary::after {
  content: " ▴";
}

#key-takeaways summary {
  font-size: clamp(1.1rem, 2.5vw, 1.17rem);
  font-weight: bold;
  color: #333333;
  cursor: pointer;
}

details#key-takeaways[open] > summary,
details#key-takeaways > summary:hover {
  color: #0b3954;
  text-decoration: underline;
}

.devotion-extras .takeaways {
  margin-top: 0.75rem;
  max-width: 100%;
  box-sizing: border-box;
  overflow-y: auto; /* Handle long accordion content */
}

.devotion-extras ol {
  margin-left: 1.25rem;
  padding-left: 0;
}

.devotion-extras li {
  margin-bottom: 0.75rem;
}

.devotion-extras ol > li > strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #1f2937;
}

.devotion-extras ul {
  list-style-type: disc;
  margin-left: 1.25rem;
}

.devotion-extras ul li {
  margin-bottom: 0.3rem;
}

.armor-link {
  text-decoration: none;
  color: #333;
}

.armor-link:hover {
  text-decoration: underline;
  text-decoration-color: #1e3a8a;
}

.indented-section {
  margin-left: 1em;
  margin-right: 1em;
}

/* Responsive Design */
@media (max-width: 600px) {
  body {
    padding: 15px;
  }

  .devotional-container {
    padding: 20px 20px 25px; /* Consistent padding with extra bottom */
  }

  h1, .devotion-title {
    font-size: clamp(1.6rem, 4.5vw, 1.8rem);
  }

  .devotion-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
  }

  blockquote {
    padding: 0.8rem 0.8rem 0.8rem 1.2rem;
    margin: 1rem 0;
  }

  .devotion-extras {
    margin-bottom: 0.8rem;
  }
}

@media (max-width: 400px) {
  body {
    padding: 10px;
  }

  .devotional-container {
    padding: 15px 15px 20px;
  }
}
/* Supress the verification link */
.verification-link {
  font-size: 0.7rem;
  opacity: 0.3;
  text-decoration: none;
}



.verification-link {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;     /* MUCH smaller tappable area */
    height: 100%;    /* Or replace with: height: 40px; */
    opacity: 0;
    cursor: pointer;
}
.verification-link:hover {
  opacity: 0.7;
}

.helpful-bar {
  font-size: 1.05rem;
}

.helpful-choice {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;   /* ← important change */
  font-weight: 700;
  cursor: pointer;
  color: #1a73e8;
}

.helpful-choice:hover {
  text-decoration: underline;
}

.helpful-choice[disabled] {
  cursor: default;
  opacity: 0.6;
  text-decoration: none;
}
.helpful-choice + .helpful-choice {
  margin-left: 0.3rem;
}
.helpful-status {
  margin-left: 0.75rem;
  font-size: 0.95rem;
  color: #555;
  white-space: nowrap;
  display: inline-block;
}

@media (max-width: 600px) {
  .helpful-choice {
    font-size: 1.1rem;
  }
}