/* Powiązania z Atlasem SGGW: sekcja w karcie miejsca i legenda wydziałów. */
.faculty-swatch{display:inline-block;flex:none;width:9px;height:9px;border-radius:2px;box-shadow:inset 0 0 0 1px #0000001f}
.atlas-section{margin:16px 0 0;padding-top:14px;border-top:1px solid var(--line)}
.atlas-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:10px}
.atlas-heading h3{margin:0;font-family:var(--serif,Georgia,serif);font-weight:500;font-size:17px;letter-spacing:-.2px;color:var(--ink)}
.atlas-heading span{font-size:10px;color:var(--muted);white-space:nowrap}
.atlas-group{margin:0 0 11px}
.atlas-group h4{display:flex;align-items:center;gap:7px;margin:0 0 5px;font-size:10px;font-weight:650;line-height:1.35;color:var(--ink)}
.atlas-group h4 a{color:inherit;text-decoration:none}
.atlas-group h4 a:hover,.atlas-group h4 a:focus-visible{text-decoration:underline}
.atlas-seat{margin:0 0 4px 16px;font-size:10px;color:var(--muted)}
.atlas-group ul{list-style:none;margin:0;padding:0}
.atlas-group li+li{border-top:1px solid #dce2d899}
.atlas-group li a{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:7px 4px 7px 16px;border-radius:5px;color:var(--ink);text-decoration:none;font-size:11px;line-height:1.35}
.atlas-group li a:hover,.atlas-group li a:focus-visible{background:var(--paper-soft)}
.atlas-group li a.is-focus{background:#d8e78a66;font-weight:600}
.atlas-unit-name{overflow-wrap:anywhere}
.atlas-unit-count{flex:none;font-size:10px;color:var(--forest);font-variant-numeric:tabular-nums;white-space:nowrap}
.atlas-note{margin:8px 0 0;font-size:9px;line-height:1.55;color:#7f8b79}
.atlas-legacy{margin:2px 0 0;font-size:10px;color:var(--muted)}
.atlas-legacy summary{cursor:pointer;padding:5px 0;color:var(--forest)}
.atlas-legacy p{margin:4px 0 0;line-height:1.6}

.faculty-legend{position:absolute;z-index:17;left:calc(var(--panel) + 45px);top:126px;width:268px;max-height:calc(100dvh - 250px);overflow:auto;padding:14px 12px 12px;background:#fbfaf6f5;border:1px solid #ffffffd9;border-radius:10px;box-shadow:var(--shadow)}
.legend-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px 4px}
.legend-heading h3{margin:0;font-size:11px;font-weight:650;letter-spacing:.2px}
.legend-heading .icon-button{width:26px;height:26px;flex:none}
.faculty-legend ul{list-style:none;margin:0;padding:0}
.faculty-legend li button{display:flex;align-items:center;gap:9px;width:100%;padding:7px 6px;border:0;border-radius:5px;background:none;color:var(--ink);font:inherit;font-size:11px;line-height:1.3;text-align:left;cursor:pointer}
.faculty-legend li button:hover:not(:disabled),.faculty-legend li button:focus-visible{background:var(--paper-soft)}
.faculty-legend li button[aria-pressed="true"]{background:#d8e78a66;font-weight:600}
.faculty-legend li button:disabled{color:#9aa69d;cursor:default}
.faculty-legend li button:disabled .faculty-swatch{opacity:.35}
.legend-name{flex:1;min-width:0}
.legend-count{flex:none;font-size:9px;color:var(--muted);white-space:nowrap}
.faculty-legend .atlas-note{margin:8px 4px 0}
#toggle-faculties[aria-pressed="true"]{background:var(--forest);color:#fff}
@media(max-width:1100px){.faculty-legend{left:calc(var(--panel) + 30px);top:118px;width:240px}}
@media(max-width:760px){
 .faculty-legend{left:12px;right:12px;top:auto;bottom:calc(var(--tour-height,58px) + 62px);width:auto;max-height:38dvh;z-index:22}
 body.has-place .faculty-legend{display:none}
 .atlas-heading h3{font-size:15px}
}
