:root {
      --bg: #0f172a;
      --bg-alt: #020617;
      --accent: #38bdf8;
      --accent-soft: rgba(56, 189, 248, 0.15);
      --text: #e5e7eb;
      --muted: #9ca3af;
      --radius: 12px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: system-ui, sans-serif;
      background: radial-gradient(circle at top, #1e293b 0, #020617 55%, #000 100%);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    /* NAVIGATION BAR */
    .nav {
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(18px);
      background: rgba(15, 23, 42, 0.96);
      border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    }

    .nav-inner {
      max-width: 1120px;
      margin: 0 auto;
      padding: 0.6rem 1.25rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      position: relative;
    }

    .nav-brand {
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }

    .nav-logo {
      width: 60px;
      height: 60px;
      border-radius: 999px;

      padding: 1px;
    }

    .nav-logo-inner {
      width: 100%;
      height: 100%;
      border-radius: inherit;

    }

    .nav-title {
      font-weight: 600;
      font-size: 0.98rem;
    }

    .nav-subtitle {
      font-size: 0.8rem;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.16em;
    }

    /* NAV LINKS */
    .nav-links-wrapper {
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }

    .nav-link {
      padding: 0.45rem 0.8rem;
      border-radius: 999px;
      font-size: 0.91rem;
      color: var(--muted);
      transition: all 0.2s ease;
    }

    .nav-link:hover {
      color: var(--text);
      background: rgba(15, 23, 42, 0.9);
    }

    .nav-link.active {
      color: var(--accent);
      background: var(--accent-soft);
    }

    .nav-cta {
      padding: 0.45rem 0.9rem;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.4);
      font-size: 0.78rem;
      color: var(--text);
      background: radial-gradient(circle at top left, #0ea5e9, #1e293b 55%, #020617);
    }

    /* PURE CSS MOBILE TOGGLE */
    #nav-toggle {
      display: none;
    }

    .nav-toggle-label {
      display: none;
      flex-direction: column;
      gap: 4px;
      cursor: pointer;
      padding: 0.4rem;
    }

    .nav-toggle-bar {
      width: 22px;
      height: 2px;
      background: var(--muted);
      border-radius: 2px;
      transition: 0.2s ease;
    }

    /* PAGE LAYOUT */
    .page {
      flex: 1;
      display: flex;
      flex-direction: column;
      padding: 1.25rem 0.75rem 1.5rem;
    }

    .page-inner {
      max-width: 1120px;
      margin: 0 auto;
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .holy-grail {
      display: grid;
      grid-template-columns: 240px minmax(0, 1fr) 260px;
      gap: 1rem;
    }

    .panel {
      background: #0b1120;
      border: 1px solid rgba(148, 163, 184, 0.25);
      border-radius: var(--radius);
      padding: 1rem;
    }

    .panel-title {
      font-size: 1.02rem;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 0.6rem;
    }

    .panel-heading {
      font-size: 1.0rem;
      font-weight: 600;
      margin-bottom: 0.4rem;
    }

    .panel-body {
      font-size: 0.9rem;
      color: var(--muted);
      line-height: 1.5;
    }

    .footer {
      max-width: 1120px;
      margin: 0 auto;
      width: 100%;
      padding: 0.75rem 0.75rem 0;
      font-size: 0.75rem;
      color: var(--muted);
      display: flex;
      justify-content: space-between;
      border-top: 1px solid rgba(30, 64, 175, 0.6);
    }

    /* RESPONSIVE */
    @media (max-width: 960px) {
      .holy-grail {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 720px) {
      .nav-links {
        display: none;
      }

      .nav-toggle-label {
        display: flex;
      }

      .nav-links-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.95);
        flex-direction: column;
        padding: 0.6rem 1rem;
        display: none;
      }

      /* When checkbox is checked, show menu */
      #nav-toggle:checked ~ .nav-links-wrapper {
        display: flex;
      }

      .nav-links {
        flex-direction: column;
        gap: 0.6rem;
        display: flex;
      }

      .footer {
        flex-direction: column;
        align-items: flex-start;
      }
    }
   .audio-player {
  font-family: Arial, Helvetica, sans-serif;
  background: #000000;
  color: #ffffff;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #1e90ff;
}

/* Track title */
.audio-player .title {
  margin: 0;
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
}

/* Artist name */
.audio-player .artist {
  margin: 0 0 10px;
  font-size: 12px;
  color: #87ceeb;
  opacity: 0.9;
}

/* Seek & volume sliders */
.audio-player input[type="range"] {
  width: 100%;
  accent-color: #87ceeb;
}

/* Time display */
.audio-player .time {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #b0e0ff;
  opacity: 0.85;
}

/* Controls row */
.audio-player .controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

/* Play / pause button */
.audio-player button {
  background: #1e90ff;
  border: none;
  color: #ffffff;
  padding: 8px 10px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s, transform 0.2s;
}

.audio-player button:hover {
  background: #63b8ff;
  transform: scale(1.1);
}

/* Playlist container */
.audio-player .playlist {
  margin-top: 15px;
  background: #0a0a0a;
  border: 1px solid #1e90ff;
  border-radius: 6px;
  max-height: 140px;
  overflow-y: auto;
}

/* Playlist items */
.audio-player .track {
  padding: 6px;
  cursor: pointer;
  color: #ffffff;
  font-size: 12px;
  border-radius: 4px;
}

.audio-player .track:hover {
  background: rgba(135,206,235,0.2);
}

/* Active track */
.audio-player .track.active {
  background: rgba(30,144,255,0.35);
  color: #ffffff;
  font-weight: bold;
}

 /* Form styling that “belongs” inside your panel system */
    .bible-form { margin-top: 6px; }
    .bible-form .form-row { margin: 10px 0; }
    .bible-form label { display:block; font-weight:700; margin-bottom:4px; }
    .bible-form input, .bible-form select {
      width: 100%;
      box-sizing: border-box;
      padding: 8px 10px;
      border: 1px solid rgba(0,0,0,.25);
      border-radius: 6px;
      background: rgba(255,255,255,.85);
      font-size: 14px;
    }
    .bible-form .hint { font-size: 12px; opacity: .8; margin-top: 4px; }
    .bible-form button[type="submit"]{
      margin-top: 8px;
      padding: 10px 14px;
      border: 1px solid rgba(0,0,0,.25);
      border-radius: 8px;
      cursor: pointer;
      background: rgba(255,255,255,.9);
      font-weight: 700;
    }
    .bible-form button[type="submit"]:hover{ background: rgba(255,255,255,1); }

    .bible-results { margin-top: 14px; }
    .bible-result { line-height: 1.55; }

    .bible-pager { display:flex; flex-wrap:wrap; gap:6px; margin-top: 10px; }
    .pager-btn{
      padding: 6px 10px;
      border-radius: 8px;
      border: 1px solid rgba(0,0,0,.25);
      background: rgba(255,255,255,.85);
      cursor: pointer;
      font-weight: 700;
    }
    .pager-btn.is-active{ background: rgba(0,0,0,.08); }
/* Streamline pass: cleaner rhythm without changing theme */
img {
  max-width: 100%;
  height: auto;
}

.panel-inner > * + * {
  margin-top: 0.85rem;
}

.panel-heading:empty {
  display: none;
}

.panel-title {
  letter-spacing: 0.04em;
}

.panel-body + .panel-body {
  margin-top: 0.85rem;
}

.main-stack {
  display: grid;
  gap: 1rem;
}

.panel-expand {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 0.5rem;
}

.panel-expand-summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.panel-expand-summary::-webkit-details-marker {
  display: none;
}

.panel-expand-summary::before {
  content: "+ ";
  color: var(--accent);
  font-weight: 700;
}

.panel-expand[open] .panel-expand-summary::before {
  content: "- ";
}

.panel-expand-content {
  margin-top: 0.6rem;
}

.panel a {
  color: var(--accent);
}

.panel a:hover {
  text-decoration: underline;
}

.footer img {
  vertical-align: middle;
}

@media (max-width: 960px) {
  .panel {
    padding: 0.9rem;
  }
}

/* Typography tightening pass */
body {
  font-size: 16px;
  line-height: 1.45;
}

.nav-title {
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.nav-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.panel-title {
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.25;
  margin-bottom: 0.55rem;
}

.panel-heading {
  font-size: 1rem;
  line-height: 1.3;
}

.panel-body {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #aeb9c8;
}

.panel-body em {
  color: #c8d3e0;
}

.panel-body p,
.panel-body li {
  line-height: 1.65;
}

.panel-expand-summary {
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer {
  font-size: 0.78rem;
  line-height: 1.4;
}

@media (max-width: 960px) {
  .panel-title {
    font-size: 0.86rem;
    letter-spacing: 0.06em;
  }

  .panel-body {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .nav-subtitle {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .nav-title {
    font-size: 0.96rem;
  }

  .panel {
    padding: 0.85rem;
  }

  .panel-body {
    font-size: 0.9rem;
    line-height: 1.58;
  }
}

/* Nav dropdown menus (desktop hover + mobile tap) */
.nav-dropdown {
  position: relative;
}

.nav-summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-summary::-webkit-details-marker {
  display: none;
}

.nav-summary::after {
  content: "▾";
  font-size: 0.7rem;
  opacity: 0.8;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 200px;
  background: #0b1120;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  padding: 0.35rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
  z-index: 30;
}

.nav-dropdown[open] .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  display: grid;
  gap: 0.2rem;
}

.nav-dropdown-link {
  display: block;
  padding: 0.5rem 0.62rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-link:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.95);
}

@media (max-width: 720px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-summary {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    margin-top: 0.4rem;
    min-width: 0;
    width: 100%;
    box-shadow: none;
  }
}
