/* ===========================================================
   SIDEBAR SECOND REGION — UNIVERSAL BLOCK STYLING
   =========================================================== */

/**
 * Applies spacing, border separation, and consistent heading
 * styling to all blocks inside the sidebar.
 * Works for any block (Book Navigation, Dhwani, etc.).
 */

.region-sidebar-second .block {
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.region-sidebar-second .block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Headings inside sidebar blocks */
.region-sidebar-second .block h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.25rem;
}

/* Align embedded lists and media neatly */
.region-sidebar-second audio,
.region-sidebar-second ul,
.region-sidebar-second ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ===========================================================
   OPTION 1 — FULL-WIDTH DIVIDER
   =========================================================== */

/**
 * Uncomment this section if you prefer a clean, structured
 * look with a divider spanning the full sidebar width.
 */

/*
.region-sidebar-second .block {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.region-sidebar-second .block:hover {
  border-color: rgba(0, 0, 0, 0.2);
}
*/

/* ===========================================================
   OPTION 2 — INSET / LITERARY DIVIDER (Default)
   =========================================================== */

/**
 * Default poetic style: a typographically aligned dotted divider
 * suited for Devanagari content. Creates a soft visual rhythm.
 */

.region-sidebar-second .block {
  border-bottom: 1px dotted rgba(0, 0, 0, 0.25);
  width: calc(100% - 1rem);
  margin-left: 0.5rem;
}

/* Subtle refinement for block titles */
.region-sidebar-second .block h2 {
  color: #444;
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.25rem;
  padding-left: 0.25rem;
  letter-spacing: 0.02em;  /* slight tracking for elegance */
 }


 /* ===================================================
   Elgar Sidebar Audio — Properly Aligned, Natural Size
   =================================================== */

/* Sidebar audio: visible, natural width, left-aligned */
#region-sidebar-second audio,
.region-sidebar-second audio,
.sidebar-second audio {
  display: block !important;
  width: 220px !important;          /* compact and consistent */
  max-width: 100% !important;
  height: 32px !important;
  margin: 6px 0 !important;         /* remove horizontal centering */
  border-radius: 4px;
  box-sizing: border-box;
  background: transparent;
}

/* Parent containers: no centering or clipping */
#region-sidebar-second .views-field-field-mp3,
.region-sidebar-second .views-field-field-mp3,
.sidebar-second .views-field-field-mp3 {
  overflow: visible !important;
  display: block !important;
  width: auto !important;
  text-align: left !important;      /* ensure alignment with label text */
}

/* Optional: subtle native color */
#region-sidebar-second audio::-webkit-media-controls-panel {
  background-color: #fafafa;
}