/* DBD v3: retocs sobre el CSS original, sense canviar l'estètica. */
:root { --dbd-accent: #d60a52; --dbd-border: #dfdfe3; --dbd-bg: #faf9fa; }
html { scroll-behavior: smooth; }
body { overflow-wrap: break-word; }
img, video, iframe { max-width: 100%; }
.dbd-navigation { display:flex; align-items:center; justify-content:space-between; gap:.9rem;
    padding:.8rem clamp(1rem,4vw,3rem); background:#fff; border-bottom:1px solid var(--dbd-border); }
.dbd-navigation .dbd-brand { font-weight:750; color:var(--dbd-accent); text-decoration:none; }
.dbd-navigation div { display:flex; flex-wrap:wrap; align-items:center; gap:1.2rem; }
.dbd-navigation div a { text-decoration:none; border-bottom:0; }
.dbd-navigation div a:hover, .dbd-navigation div a:focus-visible { color:var(--dbd-accent); }
.dbd-hero { padding:2rem 1rem 1rem; }
.dbd-hero h1 { margin:.6rem auto 1.25rem; }
.dbd-alphabet { display:flex; gap:.4rem; justify-content:center; flex-wrap:wrap; margin:1.4rem auto; max-width:950px; }
.dbd-alphabet a { min-width:2.3rem; padding:.35rem .4rem; border-radius:.3rem; text-align:center;
    border:1px solid var(--dbd-border); text-decoration:none; font-weight:650; background:#fff; }
.dbd-alphabet a:hover, .dbd-alphabet a:focus-visible { color:#fff!important; background:var(--dbd-accent); }
.dbd-controls { max-width:1080px; margin:0 auto; }
.dbd-search-form .fields { margin-bottom:.3rem!important; }
.dbd-search-actions { display:flex; gap:.7rem; flex-wrap:wrap; align-items:center; justify-content:center; }
.dbd-search-actions button, .dbd-search-actions a { margin-bottom:0; }
.dbd-gallery.gallery { max-width:100%; }
.dbd-gallery.gallery article { min-width:150px; }
.dbd-gallery.gallery article .image { aspect-ratio:4/5; }
.dbd-gallery.gallery article .image img { width:100%; height:100%; object-fit:cover; }
.dbd-gallery .caption h3 { font-size:1.05rem!important; }
.dbd-gallery .dbd-gallery-link { display:block; border:0; height:100%; }
.dbd-result-count { margin:0 0 1.5rem; }
.dbd-results { width:min(1160px,100%); margin:0 auto; display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:1.1rem; }
.dbd-result { padding:1.3rem; text-align:left; border:1px solid var(--dbd-border); background:#fff;
    border-radius:.5rem; min-width:0; }
.dbd-result h2 { font-size:1.2rem; margin:0 0 .45rem; line-height:1.4; }
.dbd-result a { color:var(--dbd-accent); }
.dbd-result p { margin:0 0 .45rem; font-size:.95rem; }
.dbd-chip { display:inline-block; border:1px solid var(--dbd-border); background:#fff; border-radius:1rem;
    padding:.2rem .65rem; margin:.12rem; text-decoration:none; font-size:.84rem; color:var(--dbd-accent); }
.dbd-chip:hover { border-color:var(--dbd-accent); }
.dbd-pages { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:.5rem; margin:1.5rem auto; }
.dbd-pages a,.dbd-pages strong { padding:.3rem .7rem; border:1px solid var(--dbd-border);
    border-radius:.3rem; text-decoration:none; }
.dbd-pages strong { background:var(--dbd-accent); color:#fff; }
.dbd-bio-head { max-width:1000px; margin:0 auto; }
.dbd-bio-head h1 { margin-bottom:.4rem; line-height:1.2; }
.dbd-bio-head h2 { font-size:1.3rem; }
.dbd-facts { max-width:950px; margin:1.4rem auto 0; text-align:left; display:grid; grid-template-columns:1fr 1fr; gap:.65rem 1rem; }
.dbd-facts .dbd-fact { padding:.85rem 1rem; background:#fff; border:1px solid var(--dbd-border); border-radius:.3rem; min-width:0; }
.dbd-fact dt { font-weight:bold; margin-bottom:.35rem; color:var(--dbd-accent); }
.dbd-fact dd { margin:0; }
.dbd-fact dd p { margin:0; }
.dbd-fact dd .dbd-line { display:block; }
.dbd-biography { display:flex; flex-wrap:wrap; gap:2.5rem; margin:0 auto; width:min(1200px,100%); align-items:flex-start; }
.dbd-biography article { min-width:0; flex:1 1 550px; text-align:left; }
.dbd-prose { overflow-wrap:anywhere; hyphens:auto; text-align:left; line-height:1.72; }
.dbd-prose p { margin:0 0 1.05em; }
.dbd-prose img { max-width:100%; height:auto!important; width:auto!important; display:block; margin:.6rem 0 1rem; }
.dbd-prose blockquote { margin:1rem 0; }
.dbd-prose a { word-break:break-word; }
.dbd-prose ul,.dbd-prose ol { padding-left:1.7rem; }
.dbd-section { border-bottom:1px solid var(--dbd-border); padding-bottom:1.1rem; margin-bottom:1.5rem; }
.dbd-section h2 { font-size:1.5rem; margin:0 0 .85rem; }
.dbd-bio-images { flex:0 1 300px; min-width:220px; }
.dbd-bio-images figure { margin:0 0 1rem; }
.dbd-bio-images img { max-height:560px; width:100%; height:auto; object-fit:contain; border-radius:.3rem; }
.dbd-credit { color:#666; margin-top:1.5rem; font-size:.9rem; }
.dbd-map { width:100%; height:min(72vh,690px); min-height:350px; margin:1rem 0; border:1px solid var(--dbd-border); }
.dbd-map-fallback { max-width:1100px; margin:1rem auto; text-align:left; }
.dbd-map-fallback summary { cursor:pointer; }
.dbd-map-places { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:.5rem; padding-top:1rem; }
.dbd-map-places a { display:block; }
.dbd-consent { position:fixed; z-index:9999; bottom:1rem; left:1rem; right:1rem; max-width:560px;
    padding:1rem 1.2rem; background:#fff; border:1px solid #bcbcc4; box-shadow:0 4px 30px #0002;
    border-radius:.5rem; }
.dbd-consent[hidden] { display:none; }
.dbd-consent p { margin:0 0 .7rem; font-size:.95rem; }
.dbd-consent-actions { display:flex; flex-wrap:wrap; gap:.5rem; }
.dbd-consent .button { margin-bottom:0; }
.dbd-footer { border-top:1px solid var(--dbd-border); }
.dbd-copy { font-size:.85rem; color:#777; }
.dbd-xvu { text-decoration:none; border-bottom:0; font-weight:bold; }
@media (max-width:760px) {
    .dbd-navigation { flex-direction:column; text-align:center; padding:.8rem; }
    .dbd-navigation div { justify-content:center; }
    .dbd-facts { grid-template-columns:1fr; }
    .dbd-biography { display:block!important; }
    .dbd-bio-images { max-width:600px; margin:1rem auto; }
    .dbd-gallery.gallery { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; }
    .dbd-gallery.gallery article { flex:0 0 175px; scroll-snap-align:start; }
    .dbd-gallery .caption { padding:.5rem!important; }
    .dbd-hero { padding:1.3rem .6rem .7rem; }
    .dbd-section h2 { font-size:1.3rem; }
    .dbd-map { min-height:380px; height:65vh; }
}
@media (max-width:420px) {
    .dbd-alphabet a { min-width:2.15rem; }
    .dbd-results { grid-template-columns:1fr; }
    .dbd-navigation .dbd-brand { font-size:1rem; }
    .dbd-map { height:440px; }
}
@media (prefers-reduced-motion:reduce) {
    html { scroll-behavior:auto; }
}

.dbd-social { display:flex; flex-wrap:wrap; gap:1rem; justify-content:center; margin-bottom:1.5rem; }
.dbd-social a { text-decoration:none; border-bottom:0; font-size:.9rem; }
