/* --------------------------------------------------------------------------
   1. Base Typography & Container
   -------------------------------------------------------------------------- */
.poem-container,
.poem-container * {
  font-family: 'Roboto', sans-serif !important;
}

.poem-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Global spacing between sections */
  .poem-container > * + * {
    margin-top: 2rem;
  }
  
/* --------------------------------------------------------------------------
   2. Content Sections
   -------------------------------------------------------------------------- */

/* Workshop & Contest Blocks */
  .workshop-container,
  .contest-container {
    background-color: #f0f0f0;
    padding: 1rem;
    border-radius: 0.5rem;
  margin: 0; /* spacing via global rule above */
}

/* Custom spacing between workshop and contest containers */
.workshop-container + .contest-container {
  margin-top: 1.5rem;
  }
  
/* Main poem content spacing */
.contest-container + .poem-main-container {
  margin-top: 2rem;
}

/* Info Panels - Poem Details and Author Bio */
.poem-details-container,
.author-bio {
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 0; /* spacing via global rule above */
}

/* Different background colors for panels */
.poem-details-container {
  background-color: #f9f9f9;
}

.author-bio {
  background-color: #f7f7f7;
}

/* Custom spacing for info panels */
.poem-main-container + .poem-details-container,
.poem-details-container + .author-bio {
  margin-top: 2rem;
}

/* Panel headings */
.poem-details-container h3,
.author-bio h3,
#comments h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

/* Panel paragraphs */
.poem-details-container p,
.author-bio p {
  margin: 0.5rem 0;
}

/* --------------------------------------------------------------------------
   3. Comments Section
   -------------------------------------------------------------------------- */
#comments {
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
  margin: 0;
}

/* Spamicide / details styling */
#comments details {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0.25rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

#comments details summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  margin: 0;
}

#comments details summary::-webkit-details-marker {
  display: none;
}

#comments details[open] summary {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   4. Floating Comment Button (Mobile Only)
   -------------------------------------------------------------------------- */
   .floating-comment-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0d77b5;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: block !important; /* Ensure visibility */
  width: auto;              /* Allow content to determine width */
  max-width: 90%;           /* Prevent extending beyond screen edges */
}

.floating-comment-button,
.floating-comment-button a,
.floating-comment-button button {
  border: none !important;
  outline: none !important;
}

  .floating-comment-button a {
    color: inherit;
    text-decoration: none;
    display: block;
  }
  
  /* Hide on desktop, show only on small screens */
  @media (min-width: 768px) {
    .floating-comment-button {
      display: none;
    }
  }