@layer components {
  /* ===================================================
     📚 Source Footer (Reference Section)
     Version: 1.1 – Tokenised & Pillar-Aware
     =================================================== */
  .source-footer {
    margin: var(--space-xl) auto;
    padding: var(--space-md) var(--space-lg);
    background-color: var(--section-bg-bottom, var(--bg-secondary));
    border-left: 4px solid var(--text-accent);
    border-radius: var(--border-radius-base);
    box-shadow: 0 0 25px var(--shadow-glow);
    max-width: var(--grid-max-width);
  }

  /* Heading */
  .source-footer .section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-family: var(--font-display, 'Cinzel', serif);
    font-weight: 700;
    color: var(--text-accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: var(--space-md);
    gap: var(--space-sm);
  }

  .source-footer .section-heading::before,
  .source-footer .section-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--text-accent);
    opacity: 0.35;
  }

  /* List of sources */
  .source-footer .source-list {
    padding-left: var(--space-md);
    list-style-type: none;
    line-height: 1.75;
    font-size: var(--font-size-sm);
    font-family: var(--font-serif, 'Libre Baskerville', serif);
  }

  .source-footer .source-list li {
    page-margin-top: var(--space-xl); /* ensures anchors aren't hidden under header */
    margin-bottom: var(--space-xs);
  }

  .source-footer .source-list a {
    color: var(--text-accent);
    text-decoration: underline;
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }

  .source-footer .source-list a:hover {
    color: var(--highlight);
    text-decoration: none;
    text-shadow: 0 0 6px var(--shadow-glow);
  }

  /* Disclaimer under sources */
  .source-footer .disclaimer {
    margin-top: var(--space-lg);
    font-size: var(--font-size-sm);
    font-style: italic;
    font-family: var(--font-serif, 'Libre Baskerville', serif);
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
  }
}
