/* v56: surname atlas — responsive, private, no external chart library. */
.surname-atlas-open{border:1px solid #d9c9a3;background:linear-gradient(130deg,#284e5d,#226479);color:#fff;border-radius:12px;padding:9px 12px;font-weight:750;cursor:pointer;white-space:nowrap}
.surname-atlas-dialog{width:min(1040px,calc(100vw - 28px));max-height:92dvh;border:0;border-radius:25px;padding:0;background:#f6f8f6;color:#173547;box-shadow:0 24px 90px #031c3291;overflow:auto}
.surname-atlas-dialog::backdrop{background:#071a28b8;backdrop-filter:blur(4px)}
.surname-atlas-head{display:flex;justify-content:space-between;gap:20px;background:radial-gradient(circle at 90% 0%,#497b85,#1d3d54 62%);padding:25px 31px;color:#fff}
.surname-atlas-head h2{font:700 clamp(25px,3.2vw,38px) Georgia,serif;margin:5px 0 8px}
.surname-atlas-head p{max-width:720px;opacity:.88;margin:0}
.surname-atlas-head small{font-weight:800;letter-spacing:.16em;color:#ebcb88}
.surname-atlas-head button{align-self:flex-start;flex-shrink:0;border:1px solid #fff8;background:#fff2;color:#fff;border-radius:12px;width:42px;height:42px;font-size:25px;cursor:pointer}
.surname-atlas-controls{padding:22px 30px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:15px}
.surname-atlas-controls label{display:grid;gap:7px;font-weight:800;font-size:12px}
.surname-atlas-controls select,.surname-atlas-controls input{width:100%;min-width:0;background:#fff;border:1px solid #b2c7cf;border-radius:10px;padding:12px;color:#173547;font-size:14px}
.surname-atlas-stats{padding:0 30px;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.surname-stat{background:#fff;border:1px solid #d5e1df;border-radius:13px;padding:15px;display:grid;gap:5px}
.surname-stat strong{font:800 28px Georgia,serif;color:#285b69}
.surname-stat span{font-size:12px;color:#52676c}
.surname-atlas-unknown,.surname-atlas-message{padding:8px 30px;color:#527078;font-size:12px}
.surname-atlas-main{padding:8px 30px 25px;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:17px}
.surname-atlas-chart,.surname-atlas-list{background:#fff;border:1px solid #d9e4e0;border-radius:16px;padding:18px;min-width:0}
.surname-legend{display:flex;gap:15px;flex-wrap:wrap;font-size:13px;font-weight:800;margin-bottom:15px}
.surname-legend-a:before,.surname-legend-b:before{content:"";display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;background:#32849d}
.surname-legend-b:before{background:#dbac60}
.surname-decade{width:100%;display:grid;grid-template-columns:65px minmax(0,1fr) 52px;align-items:center;gap:8px;border:0;border-radius:9px;background:none;padding:6px;color:inherit;cursor:pointer;text-align:left}
.surname-decade:hover,.surname-decade[aria-pressed="true"]{background:#d7e8e9}
.surname-decade-label,.surname-decade-count{font-size:12px;font-variant-numeric:tabular-nums}
.surname-decade-track{height:29px;display:flex;flex-direction:column;gap:3px}
.surname-decade-bar{display:block;height:10px;min-width:0;border-radius:3px;transition:width .2s ease-out;background:#32849d}
.surname-decade-bar.b{background:#dbac60}
.surname-list-heading{display:grid;gap:6px;font-size:14px;margin-bottom:10px}
.surname-list-heading small{font-size:11px;color:#68818c}
.surname-person{display:flex;width:100%;justify-content:space-between;align-items:center;gap:12px;background:transparent;border:0;border-bottom:1px solid #e4edeb;padding:11px 5px;text-align:left;cursor:pointer;font-size:13px;color:inherit}
.surname-person:hover{background:#ecf7f7}.surname-person small{color:#69848a;font-variant-numeric:tabular-nums}
.surname-atlas-foot{display:flex;justify-content:flex-end;gap:9px;padding:14px 30px 22px;border-top:1px solid #d9e5e2}
.surname-atlas-foot button{padding:11px 18px;border-radius:10px;background:#225269;border:0;color:#fff;font-weight:800;cursor:pointer}
.surname-atlas-foot button:disabled{opacity:.5;cursor:default}
.surname-atlas-dialog button:focus-visible,.surname-atlas-dialog input:focus-visible,.surname-atlas-dialog select:focus-visible,.surname-atlas-open:focus-visible{outline:3px solid #d9a84e;outline-offset:2px}
@media(max-width:700px){.surname-atlas-dialog{width:100vw;max-height:100dvh;height:100dvh;border-radius:0}.surname-atlas-head{padding:18px}.surname-atlas-controls{padding:15px;grid-template-columns:1fr}.surname-atlas-stats{padding:0 15px;grid-template-columns:repeat(2,minmax(0,1fr))}.surname-atlas-main{padding:8px 15px 20px;grid-template-columns:1fr}.surname-atlas-unknown,.surname-atlas-message{padding:8px 15px}.surname-atlas-foot{padding:12px 15px}.surname-atlas-open{padding:8px 10px}}
@media(prefers-reduced-motion:reduce){.surname-decade-bar{transition:none}}
