.references-card {
    margin-block: 2rem;
    color: var(--ocean, #073b4c);
    background: #fffdf9;
    border: 1px solid #d5e2dd;
    border-radius: 20px;
    box-shadow: 0 8px 28px #073b4c06;
    overflow-wrap: anywhere;
    scroll-margin-top: 110px;
}
.references-card > summary { padding: 24px 28px; list-style: none; cursor: pointer; border-radius: 19px; }
.references-card > summary::-webkit-details-marker { display: none; }
.references-card > summary::marker { content: ''; }
.references-card > summary:hover { background: #f3f7f2; }
.references-card > summary:focus-visible { outline: 3px solid var(--teal, #167b7d); outline-offset: 4px; }
.references-card .references-summary { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 24px; align-items: center; gap: 18px; margin: 0; font: inherit; }
.references-icon { display: grid; place-items: center; width: 48px; height: 48px; background: #e8f2eb; color: var(--teal, #167b7d); border: 1px solid #d9e8df; border-radius: 14px; }
.references-icon svg { width: 25px; height: 25px; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.references-heading { display: grid; gap: 6px; min-width: 0; }
.references-title { font: 600 clamp(1.25rem, 2.3vw, 1.65rem)/1.2 var(--display, Georgia, serif); letter-spacing: -.025em; }
.references-action { color: var(--muted, #5d7177); font: 500 .82rem/1.45 var(--sans, sans-serif); }
.references-collapse { display: none; }
.references-count { padding: 6px 11px; border: 1px solid #dae4dd; border-radius: 30px; background: #f4f7f0; color: #526b60; font-size: .75rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.references-chevron { width: 22px; height: 22px; color: var(--teal, #167b7d); stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.references-card[open] > summary { border-bottom: 1px solid #dfe8df; border-radius: 19px 19px 0 0; }
.references-card[open] .references-expand { display: none; }
.references-card[open] .references-collapse { display: inline; }
.references-card[open] .references-chevron { transform: rotate(180deg); }
.references-body { padding: 24px 28px 12px; }
.references-card .references-note { margin: 0 0 8px; padding: 14px 17px; color: var(--muted, #5d7177); background: #f3f6f1; border-left: 2px solid #96bca7; border-radius: 0 10px 10px 0; font-size: .88rem; line-height: 1.7; }
.references-card .references-list { margin: 0; padding: 0; list-style: none; }
.references-card .references-list > li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 21px 0; margin: 0; border-bottom: 1px solid #e5ebe4; font-size: 1rem; line-height: 1.6; }
.references-card .references-list > li:last-child { border-bottom: 0; }
.references-number { display: grid; align-items: start; justify-content: center; padding-top: 2px; color: var(--coral, #bd6751); font-size: .75rem; font-weight: 800; line-height: 1.65; font-variant-numeric: tabular-nums; }
.references-entry { min-width: 0; }
.references-card .source-title { color: var(--ocean, #073b4c); font-size: .98rem; font-weight: 700; line-height: 1.55; text-decoration: none; }
.references-card a.source-title:hover { color: var(--teal, #167b7d); text-decoration: underline; text-underline-offset: 3px; }
.references-card .source-title svg { display: inline-block; flex-shrink: 0; width: 13px; height: 13px; margin-inline-start: 7px; color: var(--teal, #167b7d); stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: baseline; }
.references-card .source-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 5px; color: var(--muted, #5d7177); font-size: .8rem; line-height: 1.55; }
.references-publisher { font-weight: 600; }
.references-credits { display: grid; gap: 3px; margin-top: 8px; color: var(--muted, #5d7177); font-size: .78rem; line-height: 1.6; }
.references-credits a { color: var(--teal, #167b7d); text-decoration: underline; text-underline-offset: 3px; }
.references-card a:focus-visible { outline: 2px solid var(--teal, #167b7d); outline-offset: 4px; border-radius: 2px; }
.references-card .references-updated { margin: 0; padding: 14px 0 8px; border-top: 1px solid #e5ebe4; color: var(--muted, #5d7177); font-size: .78rem; }
@media (max-width: 575.98px) {
    .references-card { border-radius: 16px; }
    .references-card > summary { padding: 20px 18px; border-radius: 15px; }
    .references-card .references-summary { grid-template-columns: 36px minmax(0, 1fr) 20px; gap: 8px 12px; }
    .references-icon { grid-column: 1; grid-row: 1 / span 2; width: 36px; height: 40px; border-radius: 11px; }
    .references-icon svg { width: 22px; height: 22px; }
    .references-heading { grid-column: 2; }
    .references-count { grid-column: 2; grid-row: 2; justify-self: start; font-size: .68rem; padding: 3px 9px; }
    .references-chevron { grid-column: 3; grid-row: 1 / span 2; width: 20px; }
    .references-body { padding: 18px 18px 8px; }
    .references-card .references-note { padding: 12px; font-size: .82rem; }
    .references-card .references-list > li { grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding-block: 18px; }
    .references-card .source-title { font-size: .93rem; }
}
@media (prefers-reduced-motion: reduce) { .references-chevron { transition: none; } }
