/* Hymn subjects — list & detail */

.subject-page {
  --sub-ink: #14283d;
  --sub-navy: #0d3b66;
  --sub-muted: #64748b;
  --sub-border: #e2e8f0;
  --sub-soft: #f8fafc;
}

.subject-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.86rem;
  color: var(--sub-muted);
}
.subject-breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.45rem;
  color: #94a3b8;
}
.subject-breadcrumb a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
}
.subject-breadcrumb a:hover {
  color: var(--sub-navy);
  text-decoration: underline;
}
.subject-breadcrumb li[aria-current="page"] {
  color: #334155;
  font-weight: 600;
}

.subject-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sub-muted);
}
.subject-header h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: var(--sub-ink);
  font-weight: 700;
  margin-bottom: 0.55rem;
  line-height: 1.2;
}
.subject-lead {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 40rem;
  margin-bottom: 0.65rem;
}
.subject-description p:last-child { margin-bottom: 0; }
.subject-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sub-muted);
}

.subject-browse-list,
.subject-hymn-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--sub-border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.subject-browse-list li + li,
.subject-hymn-list li + li {
  border-top: 1px solid #f1f5f9;
}
.subject-browse-item,
.subject-hymn-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  text-decoration: none;
  color: var(--sub-ink);
  transition: background 0.15s ease;
}
.subject-browse-item:hover,
.subject-hymn-item:hover {
  background: var(--sub-soft);
  color: var(--sub-navy);
}
.subject-browse-letter,
.subject-hymn-thumb,
.subject-thumb-initial {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: var(--sub-navy);
}
.subject-hymn-thumb {
  overflow: hidden;
  border: 1px solid var(--sub-border);
  background: #eef2f6;
}
.subject-hymn-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.subject-browse-title,
.subject-hymn-title {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
}
.subject-browse-meta,
.subject-hymn-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--sub-muted);
  font-weight: 500;
  margin-top: 0.15rem;
}
.subject-browse-copy,
.subject-hymn-copy {
  flex: 1;
  min-width: 0;
}
.subject-browse-arrow {
  color: #94a3b8;
}
.subject-hymn-views {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sub-muted);
  background: #f1f5f9;
  border: 1px solid var(--sub-border);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.subject-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.subject-chip {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--sub-border);
  background: var(--sub-soft);
  color: #334155;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}
.subject-chip:hover {
  border-color: #cbd5e1;
  color: var(--sub-navy);
  background: #fff;
}

.subject-side-card {
  border: 1px solid var(--sub-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.subject-side-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: #eef2f6;
  border-bottom: 1px solid var(--sub-border);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #475569;
}
.subject-side-header i { color: var(--sub-navy); font-size: 1rem; }
.subject-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.subject-side-list li + li { border-top: 1px solid #f1f5f9; }
.subject-side-list a {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: var(--sub-ink);
  font-weight: 600;
  font-size: 0.9rem;
}
.subject-side-list a:hover { color: var(--sub-navy); background: var(--sub-soft); }
.subject-side-list small {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sub-muted);
}
.subject-side-footer {
  padding: 0.55rem 1rem 0.75rem;
  border-top: 1px solid var(--sub-border);
}
.subject-side-footer a {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--sub-navy);
  text-decoration: none;
}
.subject-side-footer a:hover { text-decoration: underline; }

.subject-search-form .form-control:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(13, 59, 102, 0.1);
}
.subject-search-form .btn-primary {
  background: var(--sub-navy);
  border-color: var(--sub-navy);
}
